blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
719912f69370c91a4fdab0e0d9c7201a5272929d
4c44a7281b62038f83a5caf3b8870d655db1c86c
/lists.py
aa5e4fecb4527a715ee1ff5c1958c67c45f6a95c
[]
no_license
delamora3david/ProyectoFinal
58676c3b3e5300c36d952876ed6088f9f0b2a6f9
b545320ae8f399453f5b1c6256e55c536c66366e
refs/heads/master
2023-02-11T06:52:30.889833
2021-01-09T01:45:32
2021-01-09T01:45:32
328,012,707
0
0
null
null
null
null
UTF-8
Python
false
false
762
py
# Author: David De la Mora # Date: Oct 10, 2020 # Universidad Veracruzana # lists.py adnseq = ["A", "C", "T", "G", "A", "T", "G", "T", "A", "C"] adnseq2 = ["T", "G", "A", "T", "G"] n = len(adnseq) print adnseq print " length = ",n print " first position = ",adnseq[0] print " last position = ",adnseq[n-1] print " f...
5dac554d2b83d3ae6d2f7f816a6e0e619379dd4f
b8815e8465c64f7b9b42266366cf60903267a6ee
/predykcja.py
fdf9c0f1271e6e951640312ab0ccaeb38fdcd5be
[]
no_license
cynddan/ProjektII
0779f85c6ee26d7b72b4ebdfe51fe684ed860214
d16a1ba1e4bc1bdb67486e03d079def361318172
refs/heads/master
2022-12-19T18:43:18.448186
2020-09-29T14:39:00
2020-09-29T14:39:00
299,641,420
0
0
null
null
null
null
UTF-8
Python
false
false
1,140
py
import os os.environ["KERAS_BACKEND"] = "plaidml.keras.backend" from keras.models import load_model from keras.utils import np_utils from keras.models import model_from_json import numpy as np json_file = open('model.json', 'r') loaded_model_json = json_file.read() json_file.close() loaded_model = model_from_json(l...
e9fc29c6db8536842548dc0b16b5b63be29da3c1
89fe7ab88acb82b9bed1718c67570346255c4580
/tournament/urls.py
c45c827ab525906d3f02a0184de1c577a8fb1de8
[]
no_license
bunny232/wakegolftourfinal
aa0597a7fb80650e7771b1e1dd6c7d46a3ab0b6e
1881a8ddff43a3b6552d5544e4d756e9e9a39de9
refs/heads/main
2023-04-27T01:03:46.190787
2021-05-07T10:35:09
2021-05-07T10:35:09
363,582,945
0
0
null
null
null
null
UTF-8
Python
false
false
218
py
from django.urls import path from . import views urlpatterns = [path('', views.TournamentListView.as_view(), name='tournament_list'), path('<int:pk>/', views.TournamentDetailView.as_view(), name='tournament_detail')]
02de4efdb14ee9b26c3604b8639fd795f496ff2a
348112db732ce6480af93604ed2e44b15b6b181a
/scoreboard.py
346bcaf1e2edde58b816dfb4671d4006cbb17d21
[]
no_license
vzbiven/alien_invasion
b3ab89a9ee5f7dca0e4300f9d262caaa5ee9d7ff
b2a139d00e922f8fa633ad5e251126dbc1c30f03
refs/heads/master
2021-09-01T11:59:24.132878
2017-12-26T21:34:09
2017-12-26T21:34:09
115,156,115
0
0
null
null
null
null
UTF-8
Python
false
false
3,409
py
import pygame.font from pygame.sprite import Group from ship import Ship class Scoreboard: """Класс для вывода игровой информации""" def __init__(self, ai_settings, screen, stats): """Инициавлизирует атрибуты подсчета очков""" self.screen = screen self.screen_rect = screen.get_rect() ...
abb7a5ff2e147e6f3a2c6e5b5b06e12ddf6207c3
4a1273f72e7d8a07a3fa67ac9f2709b64ec6bc18
/retiresmartz/tests/test_social_security.py
79ee980a0f79030246707e0e54844ec9226eb916
[]
no_license
WealthCity/django-project
6668b92806d8c61ef9e20bd42daec99993cd25b2
fa31fa82505c3d0fbc54bd8436cfc0e49c896f3e
refs/heads/dev
2021-01-19T14:10:52.115301
2017-04-12T11:23:32
2017-04-12T11:23:32
88,132,284
0
1
null
2017-04-13T06:26:30
2017-04-13T06:26:29
null
UTF-8
Python
false
false
370
py
from datetime import date from django.test import TestCase from retiresmartz.calculator.social_security import calculate_payments class SocialSecurityTests(TestCase): def test_calculate_payments(self): amounts = calculate_payments(dob=date(1975, 1, 1), income=60000) self.assertEqual(amounts[67], ...
cbd1b722e0e86cd63eb8142f7c52e5992e0f74fe
6899f55b07bd6d49da2d331dfce217f92673ed34
/Accounts/migrations/0026_posts_description.py
d3e8983d361a75752c164f4c44b5f79eac7bf04d
[ "MIT" ]
permissive
Khushiraikar1/sudhaksha_maxo
e72945f2d2e6ec985b27a67f2db4465cf3a72ce2
ccaba5426b8fcac0d6772bdb78916cb0cd0c09e7
refs/heads/main
2023-02-11T12:09:35.046523
2021-01-15T16:37:55
2021-01-15T16:37:55
317,636,328
2
6
MIT
2021-01-15T15:40:49
2020-12-01T18:46:39
HTML
UTF-8
Python
false
false
400
py
# Generated by Django 3.1.3 on 2021-01-09 13:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Accounts', '0025_auto_20210109_0049'), ] operations = [ migrations.AddField( model_name='posts', name='description',...
9386930dd28039deb8f1f7147efb17aeb95ab14a
bfa3752f3398fbd071cf6299ea5a1ecaab3b56b0
/resources/image/reader.py
8efb05d8d871cb4b32d18b82d72a7ffe109787d9
[]
no_license
paka747/AmazFirConverter
5be401016588f66ef16f7c58473e975ce13fc109
7bc63f3108e325d9c9ebf9f6da9004106f38c785
refs/heads/master
2020-12-10T18:38:50.856309
2020-01-13T19:37:47
2020-01-13T19:37:47
233,675,329
0
0
null
null
null
null
UTF-8
Python
false
false
2,205
py
import logging import io from PIL import Image import resources.image.color class Reader(): def __init__(self, stream): self._reader = stream self._bip = True def read(self): signature = self._reader.read(4) if signature[0] != ord('B') or signature[1] != ord('M'): ...
a2107ed1f5a6887c7579c341ea54dae9bcd302d8
4e372ff685bfb9af1c418e0c5401d5410e3adb69
/random_poke_collection/random_poke_collection/wsgi.py
9dc6e4059d8f2c6386e684e660bda09196b7afd2
[]
no_license
opinedo1/pokemon-collection-project
8afbd1133d4fac3a63bcf4aa4cf440a6c814c4bf
69fafd1f6957e63202aac36d3dfef1fa9188c63d
refs/heads/main
2023-05-15T04:48:23.382961
2021-06-17T01:54:51
2021-06-17T01:54:51
377,675,705
0
0
null
null
null
null
UTF-8
Python
false
false
421
py
""" WSGI config for random_poke_collection project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefaul...
05a84f2dcb29053453cd748b398607357195d124
46315e5409eaa258424378685b9bfac7000d7aec
/bug_tracker/views.py
326463acef58237f2cbd57e7d7909238deb21e69
[]
no_license
chewh115/bug_tracker
29eb90b80fde5c756316c7ac966daf79829c977a
5f2c0a68ce09431aafe93bab5194695c12f7dc0d
refs/heads/master
2022-11-21T00:14:46.497265
2020-05-22T14:49:09
2020-05-22T14:49:09
266,133,722
0
0
null
null
null
null
UTF-8
Python
false
false
154
py
from django.shortcuts import render, reverse, HttpResponseRedirect # Create your views here. def index(request): return render(request, 'index.html')
60c860ab7b2872850b368745818ecefc77a57aee
e78c0512b369dc88ab0d975689a1d90600ead8e4
/PlaneGame.py
998bc7ce344089f16a5a21be25e2fb38e2765524
[]
no_license
Lugaba/pythonGames
61b8a57b6821b82d26566bf9406e18e180b9ea3b
bff67349aef9c419304710e1bc4811fa0b00be19
refs/heads/master
2023-09-02T21:41:32.503448
2021-11-21T22:43:21
2021-11-21T22:43:21
418,909,596
0
0
null
null
null
null
UTF-8
Python
false
false
3,667
py
import pygame import random # Controle mais fácil das teclas pressionadas from pygame.locals import ( K_UP, K_DOWN, K_LEFT, K_RIGHT, K_ESCAPE, KEYDOWN, QUIT, ) SCREEN_WIDTH = 800 SCREEN_HEIGHT = 600 # Define objeto Player estendendo a classe pygame.sprite.Sprite # A superfície desenhada na ...
cf2e1ff76673bf89c4d395061a404022a88c9d42
8aee66ff178f12c1af69c474d22d5b3c07c6ea5a
/WTL_Ecommerce/urls.py
7047dbcac4ee0723d91407e7c24a53a7c2b02e9b
[]
no_license
yugvajani/Ecommerce
65b6b9bac0b5ef13ba3002f5463d61382a0010e6
b612ac68de8d69357fb09f77bf4fb0f7558fc5a9
refs/heads/master
2022-12-31T14:01:57.469654
2020-10-25T05:38:37
2020-10-25T05:38:37
295,621,975
0
0
null
null
null
null
UTF-8
Python
false
false
978
py
from django.contrib import admin from django.urls import path, include from django.contrib.auth import views as auth_views from users import views as user_views from django.conf import settings from django.conf.urls.static import static from django.conf.urls import url urlpatterns = [ path('admin/', admin.site.ur...
226118c526c576d8edfde2c75a1994b83da6395a
5c7bd453ac9461062436814db502154da3c38d77
/scripts/make-release.py
d0e419d5844edda53a841ed631f399086b17a194
[ "LicenseRef-scancode-warranty-disclaimer", "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
Earth4Us/flopy
51a425862035341b03a08643678e2144343a1967
af42e7827fe053af911efef0f37dcb76dad7e9c0
refs/heads/develop
2022-10-05T03:40:42.428197
2022-09-08T19:50:23
2022-09-08T19:50:23
79,733,250
0
0
null
2017-01-22T17:33:07
2017-01-22T17:33:06
null
UTF-8
Python
false
false
11,864
py
#!/usr/bin/python import datetime import json import os import subprocess import sys from importlib.machinery import SourceFileLoader # file_paths dictionary has file names and the path to the file. Enter '.' # as the path if the file is in the root repository directory file_paths = { "version.py": "../flopy", ...
6f3751a95e5c8e16e37c51ded4053218e3407a7f
fc0cd56d74c5b7def0c9d38372ef702653ec1734
/app/models/fund.py
0ca754c2f586b29056d1ad59a112e8ef9684284a
[ "MIT" ]
permissive
netai/stockbag_backend
644fec30dee33333c3a5d59911846b64e6b85c5b
b5bbc09fea896bcb1c03091579f6de658bff4c13
refs/heads/main
2023-02-20T06:39:58.092445
2021-01-22T12:02:38
2021-01-22T12:02:38
325,260,340
0
0
null
null
null
null
UTF-8
Python
false
false
517
py
import datetime from ..extensions import db class Fund(db.Model): """Fund model for storing Fund retated details""" __tablename__ = "fund" id = db.Column(db.Integer, primary_key=True, autoincrement=True) total_amount = db.Column(db.Float, nullable=False, default=0) invested_amount = db.Column(db.F...
805fe9af7e02ba40fe0d350dea64824948b00342
7d08ef3bd07c73dd3f2ea7cf895446745ff4d631
/student/migrations/0002_auto_20170202_0927.py
7b58339fefc99639257a691eb43245eb83a7f844
[]
no_license
Elite-Programmers/CAMS
574eb946bf6c8c99cd6103f6c9ff5a75f9eeafd8
a0327ba778778924165afbb5085c747cb722c026
refs/heads/master
2020-05-23T09:09:14.460122
2017-02-12T20:14:40
2017-02-12T20:14:40
80,438,454
1
0
null
null
null
null
UTF-8
Python
false
false
3,559
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-02 09:27 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('student', '0001_initial'), ] operations = [ migrations.CreateModel( ...
da9a6ff7b3c39d31a27e2c7a7ff298d9bdd5cb71
cbc4ecd12791144f1755fccd27e51bf3e08cf53b
/account/migrations/0002_contact.py
33a3e6729f55871839cee091a94837cae74d6fa3
[]
no_license
Sr0o/bookmarks
b501c0123e1e84007f5981e04f7f8c64bfc49dd1
f89a87d3a7f11454cb616e7ac350ecd71e1ddfd1
refs/heads/master
2021-05-07T01:03:40.380940
2017-11-11T03:41:10
2017-11-11T03:41:10
108,243,159
0
0
null
null
null
null
UTF-8
Python
false
false
1,110
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-10-19 09:10 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_depende...
919ad93f8397a45a32157a3d9ce108dcda051ccb
7769cb512623c8d3ba96c68556b2cea5547df5fd
/configs/retinanet_x101_64x4d_fpn_1x.py
c8be724f92d2a09198980ad017f4851b0be09359
[ "MIT" ]
permissive
JialeCao001/D2Det
0e49f4c76e539d574e46b02f278242ca912c31ea
a76781ab624a1304f9c15679852a73b4b6770950
refs/heads/master
2022-12-05T01:00:08.498629
2020-09-04T11:33:26
2020-09-04T11:33:26
270,723,372
312
88
MIT
2020-07-08T23:53:23
2020-06-08T15:37:35
Python
UTF-8
Python
false
false
3,901
py
# model settings model = dict( type='RetinaNet', pretrained='open-mmlab://resnext101_64x4d', backbone=dict( type='ResNeXt', depth=101, groups=64, base_width=4, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, style='pytorch'), neck=...
605745dd340911ea20f595bd26b3485acb318778
ef5cf217c8f85f84a8c9ef4f508ccba547955cd8
/OFB_api/server.py
5af9457a930ebcdcaf23f16095e3d5e3966ab9ca
[]
no_license
Eleonore9/Envir_hack_OpenForBusiness
a28b0d605587cd3f6c1eb74eb31ba45903aa89f5
1e11db3bd9a66b67a45340ee90bdabe862286fd4
refs/heads/master
2021-01-22T07:18:10.908823
2015-05-09T23:21:33
2015-05-09T23:21:33
32,635,793
0
0
null
null
null
null
UTF-8
Python
false
false
501
py
from flask import Flask, render_template import get_amee_api as amee app = Flask(__name__) @app.route('/api/get_amee_data/') # Use get_amee_api to retrieve data # and feed it into the db def feed_amee_data(): api_call = amee.get_amee_data() json_data = amee.get_sustainability_data(api_call) print json_data...
8a94846bb25fe3e5e904a7897250e5bbd62b2faa
5467ad49eedeababafa1a9287bf1e0d2263c44fd
/src/benchmarks/pyvnumpy.py
b26a1cba161807cddfa13fcf6f784c10eb819ee8
[]
no_license
Shadesfear/bachelor
ea5456e8e89218890ea16d882872e2a8970b896e
8dc07b6b1a516ee80bfe97feb599dffc3dc48614
refs/heads/master
2022-07-08T22:03:14.744995
2019-06-05T13:55:21
2019-06-05T13:55:21
170,278,348
0
0
null
2022-06-21T21:41:45
2019-02-12T08:12:21
PostScript
UTF-8
Python
false
false
784
py
import benchpress as bp from benchpress.suite_util import BP_ROOT import random scripts = [ ('Python', 'python_random_centroids', ["10", "20", "50", "100", "1000", "5000"]), ('Numpy', 'numpy_random_centroids', ["10", "20", "50", "100", "1000", "5000"]), # ('numpy_version', 'pure-numpy-kmeans', ["10", "20"...
60ba9feb268c4d6bdb08de9c05f99d96d934f28e
6b95f96e00e77f78f0919c10b2c90f116c0b295d
/TelstraTPN/models/body.py
6402d1a63505555d93481a28e94f4ec6e6af57af
[]
no_license
telstra/Programmable-Network-SDK-python
0522b54dcba48e16837c6c58b16dabde83b477d5
d1c19c0383af53a5f09a6f5046da466ae6e1d97a
refs/heads/master
2021-09-19T17:09:06.831233
2018-07-30T03:22:26
2018-07-30T03:22:26
113,531,312
3
1
null
2018-07-30T03:22:27
2017-12-08T04:23:15
Python
UTF-8
Python
false
false
3,864
py
# coding: utf-8 """ Telstra Programmable Network API Telstra Programmable Network is a self-provisioning platform that allows its users to create on-demand connectivity services between multiple end-points and add various network functions to those services. Programmable Network enables to connectivity to a g...
bb0fd3227823ae168714b2d609f75a815db3c820
b05761d771bb5a85d39d370c649567c1ff3eb089
/venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/pynamodb/connection/__init__.pyi
f649861fa13ab72cf0f93c2e820af2c7a7f8dc10
[]
no_license
JawshyJ/Coding_Practice
88c49cab955eab04609ec1003b6b8c20f103fc06
eb6b229d41aa49b1545af2120e6bee8e982adb41
refs/heads/master
2023-02-19T10:18:04.818542
2023-02-06T21:22:58
2023-02-06T21:22:58
247,788,631
4
0
null
null
null
null
UTF-8
Python
false
false
96
pyi
/home/runner/.cache/pip/pool/b4/87/2e/b11aa30f971bc3d814440e95ea0252de4a2d77aa81c6e6be59eb9449f8
fdd8e9b78b9290cfe113da295706a008023d84a6
0280c9cdab7763ef6710e8f7ed6e94740dfda374
/visualization/Python_Vis/lr_scheduler.py
602c362be38f2bf6aa4c346a1a52807470e86ccb
[]
no_license
Sandy-Zeng/RandomLR
73181bbd6d946d1163b7b337524b070285b61f20
ec0f2ff7bf312c015e54b39815d140b8855ae145
refs/heads/master
2020-04-12T08:00:19.208337
2019-08-25T14:29:28
2019-08-25T14:29:28
162,378,477
0
2
null
null
null
null
UTF-8
Python
false
false
18,490
py
import numpy as np import time import math from keras.callbacks import * def U(tmp_lr,random_range): np.random.seed(int(time.time())) tmp_lr = np.random.random() * tmp_lr * random_range # tmp_lr = tmp_lr + tmp_lr * np.random.random() return tmp_lr def UA(tmp_lr,random_range): np.random...
77724477cb371ab0f924e77a121a7073d482a6f5
8ef50ff641161167a9250a4f3ba623f718ef5e2a
/fol/estimator_box.py
4a0fe0d8929ade73c19986fe9f8811ceddbd72ee
[]
no_license
CodingMice/EFO-1-QA-benchmark
6c1e4c14d425ac06d94bda47f2e867fb2b5d0e0e
9d693d89192c51e3336be9ebd19f198552ba3bbe
refs/heads/master
2023-08-11T13:02:59.547499
2021-09-21T02:03:53
2021-09-21T02:03:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,912
py
from typing import List import torch from torch import nn import torch.nn.functional as F from .appfoq import (AppFOQEstimator, IntList, find_optimal_batch, inclusion_sampling) class BoxOffsetIntersection(nn.Module): def __init__(self, dim): super(BoxOffsetIntersection, self).__ini...
62363c4bcc24d91b45188cf7f657fda66070fe0d
37146b1529bfb8094d5ef17734498aba1e701b33
/python/python_course/pythonStudy4/FangWenKongZhiExample.py
82883cdaa0bcd2c25e723093041cf2edf8fa576c
[]
no_license
nanfeng729/code-for-test
9c8e3736ac4c86a43002a658faf37349817de130
28071453c38742bffd5b5bdf7461bffdaa6c96be
refs/heads/master
2022-10-07T17:59:44.558278
2020-06-06T10:19:19
2020-06-06T10:19:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
289
py
class fwkz: a = 0 b = 0 _c = 0 # 定义受保护的属性 __d = 0 # 定义私有的属性 def jisuan(self): return self.a + self.b def jisuan2(self): return self.a + self._c def jisuan3(self): return self.b + self.__d
4d7aee584bfa414d4dd6b80729501ae6eea347e9
fc754f2fe3d3bc5ab0b2800a5dc0863e5918b705
/Survival/BayesianOptimization /train_bayesian_rn.py
3366d7746b60ec85f5f68b07c688248ecfdea015
[]
no_license
eunji6546/studying_ML
034b9f482961a15d4508910e0e2567ac69fb8357
96968d32d4ac65a5099d4f1596c36341540c7ac3
refs/heads/master
2021-01-01T18:59:44.119346
2018-05-28T15:40:27
2018-05-28T15:40:27
98,482,941
0
0
null
null
null
null
UTF-8
Python
false
false
5,731
py
from keras.layers import Dense, Dropout, Input from keras.models import Model import tensorflow as tf import keras.backend.tensorflow_backend as ktf from keras.callbacks import ModelCheckpoint import os import argparse import pickle from sklearn.model_selection import train_test_split import numpy as np from sklearn.d...
b60ab3d3a4b85ca553f13b17a6cd77ce03fc9d73
1b456cb5c5f390e009fbf0de41848e3b342386cf
/turn_on_off_led.py
70e3659742afc84df3bef59c2857a0e3fe32c964
[]
no_license
ruthie1246/sca_pi
71ce4f9fa9bf8960fca89f1e6bf6b42861cba466
143d5b5bbca9fa160799d2e7a72fe66e3268feb6
refs/heads/master
2020-03-19T08:37:50.791761
2018-06-07T21:19:51
2018-06-07T21:19:51
136,222,062
0
0
null
null
null
null
UTF-8
Python
false
false
500
py
#!/usr/bin/env python # this script turns the Auto Flash Led on and then off import RPi.GPIO as GPIO import time # breadboard setup GPIO.setmode(GPIO.BOARD) GPIO.setwarnings(False) # assign pin number for Auto Flash LED; pin 11 = GPIO 17 led_pin = 11 # set Auto Flash LED pin's mode as output GPIO.setup(led_pin,GPIO...
75a66330ae5b0d0bb7cb5c16f81ab5a7898ce9bc
29f56da5b7a0c7b5beeb514cf490cddc7845a6bc
/flask_app/code/services/clouds.py
954d9b3ef60998490b9e66badf9ee288b296274a
[]
no_license
NikolaDojic/aiven-cloud-selection
4e18da21da602656a0c9fd279473aa44fc36cadc
6d5a3654bd3c496ae2e104a38650c841f2a15997
refs/heads/master
2023-03-06T23:20:14.062833
2021-02-21T20:34:21
2021-02-21T20:34:21
340,959,150
0
0
null
null
null
null
UTF-8
Python
false
false
2,671
py
import traceback from math import sin, cos, sqrt, atan2, radians from services.http_client import request from services.platforms import platform_service from services.regions import region_service class CloudService: def __init__(self): self.clouds = [] self.get_clouds() def get_clouds(self): self.c...
62f589b3a1d1afe7c7c16ad3f3034d502934f87a
f9392b6e2def41d2c2dc2f50611237cd65ecb444
/nthToLast.py
e2615074efdebd60b468855777f1d2752dd4f58c
[]
no_license
chloevo26/Python-Data-Structures
f648c63bba6b298c45b428fbb315f741d8f25d53
198f915bcac4a89cc1d2f92c9be4f7999d3041cf
refs/heads/master
2022-04-12T17:50:49.628270
2020-03-26T18:15:32
2020-03-26T18:16:41
250,172,204
0
0
null
null
null
null
UTF-8
Python
false
false
544
py
class Node(object): def __init__(self, data): self.data = data self.next = None def nth_to_last_node(n, head): left_pointer = head right_pointer = head for i in range(n-1): # if right_pointer == None if not right_pointer.nextnode: raise LookupError('Error: n ...
eecd8d7e1cac6970d97109c32dbd46b80d850aa1
c7cc67f02e23baf64309c800ba9d2d98c8b93455
/CARTRegressor.py
4ca3734a0a25ae9a458f03f27ad3813fb6019820
[]
no_license
struggl/MachineLearning
fbbbd16d64a507d398bc47a3cf4f916903fdcf35
e5f2b7da88fb4eed8aaf6e842b7ab1a8bbe0677a
refs/heads/master
2020-07-23T17:59:57.494656
2019-12-29T09:12:54
2019-12-29T09:12:54
207,659,022
0
0
null
null
null
null
UTF-8
Python
false
false
15,883
py
'''CART决策树实现回归''' import numpy as np import collections from MLBase import DecisionTreeRegressorBase class CARTRegressor(DecisionTreeRegressorBase): '''CART决策树回归,与C4.5决策树分类器实现的区别在于: 1._chooseBestFeatureToSplit方法中不使用信息增益_calInformationGain而是误差平方和_calSSE 2.save_model与load_model方法的默认路径 ''' def __init__(self,dataDir,...
a177e253ea50e040cf4d5e07336b7f3ab00906d1
dff94b33103d645a2a7022200ea77b691ef7fbe9
/back/migrations/0001_initial.py
c6a8150a8cd9ddd7d1cb5fda71bb5ad97c37fabc
[]
no_license
chrispsk/dw
07f4babd503108807b233bc19a9474e2ef089486
d464a26fcb6f43f79120f9751b9aee1bc0a1d6df
refs/heads/main
2023-03-28T00:53:22.701182
2021-04-03T18:06:03
2021-04-03T18:06:03
349,007,338
0
0
null
null
null
null
UTF-8
Python
false
false
1,194
py
# Generated by Django 2.2.5 on 2021-03-18 12:26 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Vulnerability', fields=[ ...
5feb057978dcef04f7941a69cf4669689c34a76d
ca7da6ff26b5bd739c2fe15acb5651c5a59823cb
/campaigns/migrations/0001_initial.py
7a86f8d62b6ea0752372258680b70f7147986ce2
[]
no_license
mihi-tr/cntrct
b015da328d186daa4e4a7ea47eb4048ac1dfb148
d205f3c43df1e0e0f8d2a693274700d4511083fe
refs/heads/master
2016-08-03T00:25:56.321637
2014-08-19T06:36:56
2014-08-19T06:36:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,866
py
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Campain' db.create_table(u'campaigns_campain', ( ...
68734f0871f16a8b272e9587dcb828ec191bbac6
28aec93a7a4c850de4fca40c89660d85e5529b5d
/afieldio/settings.py
fea2d792d602b37aa94180251f5c9a5d1934d82b
[]
no_license
afieldio/django-portfolio-boilerplate
85e2682507f8476f64e6a7a11f67b686e8d30be7
ea7974dabd6654b0bc509ce34771fa3fb34fc12e
refs/heads/master
2021-05-04T10:40:50.558858
2019-03-09T12:25:48
2019-03-09T12:25:48
51,506,647
0
0
null
null
null
null
UTF-8
Python
false
false
3,518
py
""" Django settings for afieldio project. Generated by 'django-admin startproject' using Django 1.9.2. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import os ...
6f4f236a04b08ff986588d8d74bf27e19b3776ce
a9958f7c7887a92ec9fc48b02ed8a5cb75a03311
/db.py
1b274e58f4478c7f209d2e9b19cf25ce7d613166
[]
no_license
ahmedfadhil/Dynamically-Weighted-Bandwidth-
816c18777b49f3520433e65accf9e179f64e0836
1c8821aec73f32e704d12cebffcda01d1319bc80
refs/heads/master
2021-01-02T09:39:58.814463
2017-08-03T21:55:26
2017-08-03T21:55:26
99,271,051
1
0
null
null
null
null
UTF-8
Python
false
false
4,374
py
import matplotlib.pyplot as plt from matplotlib import style import numpy as np from sklearn.datasets.samples_generator import make_blobs style.use('ggplot') X, y = make_blobs(n_samples=15, centers=3, n_features=2) ##X = np.array([[1, 2], ## [1.5, 1.8], ## [5, 8], ## [8, 8], ## ...
208a4bbe45fd1316bedf6ae67548ab3e9cdaa390
722d43256ac73d94b66aed7d800115e4db64879e
/posts/views.py
d4a9788f3ee2b260c69beed76aeeeafe01799949
[]
no_license
Keci/coursecommunicator
af9829146c884fc2e3e115fa8cb1dc52229e2fb3
4392e8c551653ee04e8edb3e31da72f01aef4f51
refs/heads/master
2020-04-06T05:24:21.445000
2013-02-20T19:27:35
2013-02-20T19:27:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,629
py
from posts.models import Post from posts.models import Tag from django.contrib.auth.models import User from django.contrib.auth import authenticate from django.contrib.auth import login from django.template import Context, loader from django.core import serializers from django.core.serializers import serialize from dja...
e2726c0d4cfcd0845bf0b5d7398d5d88d7a2f7ea
c5460b21b473c61606aef92613a36fa429da9c37
/Web-Scraping-and-Document-Databases/scrape_mars.py
988bd539c7adae10c3d793b180faac707cda7910
[]
no_license
chitraderrob/NU-Homework
ce5461780147cf78d38b3b4962e8f11b5000419e
93cc49a3b3dbab94eb1a29f66a2cb193453814fd
refs/heads/master
2020-06-04T04:01:58.515125
2019-10-23T20:13:07
2019-10-23T20:13:07
191,865,354
0
0
null
null
null
null
UTF-8
Python
false
false
4,431
py
#!/usr/bin/env python # coding: utf-8 # In[68]: from splinter import Browser from bs4 import BeautifulSoup as bs import requests import time import pandas as pd from pprint import pprint # In[72]: # Define function to initialize browser def init_browser(): executable_path = {"executable_path":"C:\Progra...
f6b28e44289b1bbd336d17842f7005fa46b1940f
0033cac5a4a233b00230912f2efd4a6b7971a5ea
/restapi/config/urls.py
fa6a19e7a44d4c4613ce2ed5ff6f0223c6d32991
[]
no_license
RamyaSaba/restapi
c2460008bdd7018c99eb32195b9bd86bd75fe0fa
594f99532746fdde84e1d132eaea4f68fe95134c
refs/heads/main
2023-07-29T03:52:38.114933
2021-09-07T11:18:35
2021-09-07T11:18:35
403,935,047
0
0
null
null
null
null
UTF-8
Python
false
false
803
py
"""config URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
c1bc4002b45701e9ddcbdae5fbd9f337effbe930
587dbdf730b6cc3e693efc5dca5d83d1dd35ee1a
/leetcode/1501-1800/1785.py
d13fff05ea446efdd48f2dcbc0f23ee12d81b53b
[]
no_license
Rivarrl/leetcode_python
8db2a15646d68e4d84ab263d8c3b6e38d8e3ea99
dbe8eb449e5b112a71bc1cd4eabfd138304de4a3
refs/heads/master
2021-06-17T15:21:28.321280
2021-03-11T07:28:19
2021-03-11T07:28:19
179,452,345
3
1
null
null
null
null
UTF-8
Python
false
false
680
py
# -*- coding: utf-8 -*- # ====================================== # @File : 1785 # @Time : 2021/3/8 12:20 # @Author : Rivarrl # ====================================== from algorithm_utils import * class Solution: """ [1785. 构成特定和需要添加的最少元素](https://leetcode-cn.com/problems/minimum-elements-to-add-to-form-...
6a9feb892b18246836a3f72e8fa01e86e03bc329
f2ef824c0ae5b40662a0ac72d5c122d29fae126b
/translation3.py
fd0126a89e684c1520e35718e541a77069f57556
[]
no_license
novanator/translation-py
1e02d0dc23705fa0729182f9ea4258b3f3db9e5c
84188a32b27e541c072a7691ad915ac0a6aab984
refs/heads/master
2016-09-06T09:12:06.446249
2013-08-22T20:56:09
2013-08-22T20:56:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
524
py
""" Author: Novanator 2012 Program: Translation3 """ import random from btree import Node from btree import BinTree file = open ("list.txt", "r") contents = file.read () words = contents.split () random.shuffle(words) tree=BinTree() for i in words: tree.put(i) l=[] for x in words: if tree.exists(x[::-1]...
24cd0e7ef358d89c027efe1f498eef298d992f52
f7d2dff2aac6af35e7a3ef1dfbafdb15c1ab735a
/Source/MonthlyNicsFirearmBackgroundCheck.py
ff3ff7ea003ca8b1596ed1702c5b03339eb1d06b
[]
no_license
santhoshsundar/NICS-Firearm-Background-Check
5114cb9963073c89685d10877e0640999040875a
73d0d6fa28c0e2297137d459c22b0aaa11b30f9d
refs/heads/master
2021-09-08T10:59:30.801178
2018-03-09T11:24:18
2018-03-09T11:24:18
124,420,510
0
0
null
null
null
null
UTF-8
Python
false
false
802
py
import matplotlib matplotlib.use('TkAgg') import pandas as pd import matplotlib.pyplot as plt import seaborn as sb sb.set() df = pd.read_csv('../Data/nics-firearm-background-checks.csv') totals_monthly = df.groupby('month')['totals'].sum() totals_monthly = totals_monthly[2:] ticks = pd.np.arange(2, len(totals_monthl...
b1b18bc452761dd1d27d1780a8e7572981ae0eb3
dd3046b6357e7c69c895992f61dd231190bd0546
/example/linkage_demo/work_with_AlwaysAI/pedestrian_tracking_demo/venv/lib/python3.6/site-packages/pip/_internal/cli/req_command.py
c011d150cb35fae86540a98ebd1e64eaae6624ae
[ "Apache-2.0" ]
permissive
baidu-research/hydra-vcam
0bb7519792d7c57b868378c0924612883db7ff2d
035d8119f4b1eab0da9153abc3d085a34331752d
refs/heads/master
2023-08-28T18:19:28.824791
2021-09-01T00:38:41
2021-10-22T23:47:10
401,811,271
5
0
null
null
null
null
UTF-8
Python
false
false
16,891
py
"""Contains the Command base classes that depend on PipSession. The classes in this module are in a separate module so the commands not needing download / PackageFinder capability don't unnecessarily import the PackageFinder machinery and all its vendored dependencies, etc. """ import logging import os from ...
087c4004b3983645a25c445cf140502e90ea48cb
5bd28b96831fe60aced347d5b6c2de71689fcfd7
/CENG114_HW2_250201073/250201073_HW2.py
e6c79d688140a77e1cb883f234eaae659d79383f
[]
no_license
kturk/Probability-and-Statistics-Assignments
11e0053c1a8c6f9a9211b61c64a10a5313b9e707
95d0e29d442ae76e0abb341b645fc14d90ee1cdf
refs/heads/master
2022-10-21T23:50:25.778275
2020-06-12T08:40:02
2020-06-12T08:40:02
271,749,776
0
0
null
null
null
null
UTF-8
Python
false
false
2,197
py
""" ID = 250201073 """ import numpy as np from matplotlib import pyplot as plt # Part a (Inverse Transform Method) U = [] Xa = [] av_Xa = [] vr_Xa = [] counterA = 0 varianceSumA = 0 # Populate the given arrays. while counterA < 50000: u = np.random.rand() U.append(u) x = u ** (1/2) Xa.append(x)...
b78dd6f1233d96d74d8b8bfd51465d2c4ae27fe7
f25ebcee8c6656ec182f7b5c7775a5deebccdc47
/flask_example_venv/bin/tree-cli
d7f717a71f163acb8ea765e939b52e640c2845c2
[]
no_license
ThourayaBchir/flask_app_example
e2efeb60e20a983f183c2a3473b4d1b7f0091929
4c515ee0470a696917e894fd18d2f0def3c7ea10
refs/heads/master
2021-02-12T13:56:52.902798
2020-03-03T09:43:05
2020-03-03T09:43:05
244,597,078
1
0
null
null
null
null
UTF-8
Python
false
false
273
#!/Users/thy/Documents/flask_app_example/flask_example_venv/bin/python # -*- coding: utf-8 -*- import re import sys from Tree.cli import create_tree if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(create_tree())
8a5e4ac253eace3e40205da364061599b73b25be
fdb2263be1f531b19f68159a47bc80e92b04e594
/resnet.py
9741e0a64ff5f4b6f2c00d3b5e23a5ca633b40ee
[]
no_license
YutoNishimura-v2/ResNet_alpha
8e3e5276b030123a0d15fc81d416aa3806ce16f1
209253d59d750982c2bc8f92629ff778fc653583
refs/heads/main
2023-03-02T17:01:16.273459
2021-02-10T12:57:59
2021-02-10T12:57:59
337,329,001
0
0
null
null
null
null
UTF-8
Python
false
false
19,334
py
import torch from torch import Tensor import torch.nn as nn from torch.hub import load_state_dict_from_url from typing import Type, Any, Callable, Union, List, Optional """ 引用 : https://github.com/pytorch/vision/blob/master/torchvision/models/resnet.py """ __all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 're...
07dce7326e1fd86aed16c354812c720a6127c7bc
c12b09ecd3c519cdb0828f309ce1599917720a2e
/ET/migrations/0004_auto_20161025_1923.py
cc617095d06a7a0f49be17d17446b409407ecb3a
[ "MIT" ]
permissive
Noisyfox/EaTogether
bd9653a12aa97944bcbd98885a1724248029652b
d5b114881162fc34e71873bcacaacbe6b8da3a79
refs/heads/master
2023-06-07T22:46:23.262391
2016-10-28T10:25:08
2016-10-28T10:25:08
381,741,155
0
0
null
null
null
null
UTF-8
Python
false
false
1,036
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-10-25 08:23 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('ET', '0003_auto_20161024_0239'), ] operations = [ ...
58e81d09ba3bc33e083459c4867d677e429e25f0
f2137b5f8be137c990f73ad36adb2a9e405b49bf
/main/views.py
4d10e3e1a3ff3f706c45bb2ec6866ad45c209d20
[]
no_license
adrianmrit/timedbase
0d100f2263f45058a7d22e64d2b71bef76a2ca9c
49b85139f0c5bfa93133780457adf07e7fb27c0a
refs/heads/master
2022-04-10T16:53:11.739659
2020-03-26T06:33:16
2020-03-26T06:33:16
244,293,981
0
0
null
null
null
null
UTF-8
Python
false
false
1,981
py
from django.shortcuts import render, get_object_or_404 from .models import Brand, Watch, Price, Store from django.db.models.functions import Substr from django.db.models import Count import string from django.views import View from django.db.models import OuterRef, Subquery, Exists from django.forms.models import model...
d1ceddd5578256f0263eb983b6a49351a31c6bcb
7546e55f860b7701cdeae4f965c40a6a8f3378c4
/main/migrations/0001_initial.py
0b2d306436d8ac4255aeae1c7a2e970b3c7db734
[]
no_license
ave-78/django_db
7503c6e6b86b6eb2e054bf300e9aec16575d071d
1574c14b217bc641d4072f883275bf6d637dff46
refs/heads/master
2020-07-12T09:07:48.528959
2019-08-27T19:34:31
2019-08-27T19:34:31
204,775,199
0
0
null
null
null
null
UTF-8
Python
false
false
533
py
# Generated by Django 2.2.4 on 2019-08-17 16:02 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Person', fields=[ ('id', models.AutoField(a...
c69b72f0144463de20a2f5dabb19dfaa40619e36
83376d2150f5a062fad469f38861bc9a966a846d
/soft/views.py
ac8cc6f3bf7431f786bd70819c81f9e1ed224d7a
[]
no_license
jramirezminery/soft_eun
bd15c1595cbddd53d1aae3c5dd95ad53b122d3f6
9fcdaf14d5af4ad31329ba3a493fb1e02846f348
refs/heads/main
2023-06-16T18:09:34.698049
2021-07-13T18:02:03
2021-07-13T18:02:03
385,690,466
0
0
null
null
null
null
UTF-8
Python
false
false
5,940
py
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.urls import reverse from datetime import datetime, timedelta from dateutil import tz, parser from soft.auth_helper import get_sign_in_flow, get_token_from_code, store_user, remove_user_and_token, get_token from so...
0f7cae39e2933783f96903bf67c4b59e190f3428
a451997e7d5830c694e7d06c7fe3452867a98838
/helper/shared.py
52c714ef78a3c26a544677abfa20f85912e61fce
[]
no_license
Mshardul/marketplace_app
7d46f9ba0f9e998df8780f662bce409d23a98515
d5056384fc6c540c6acaa57fc9d4423ad4213c4d
refs/heads/main
2023-06-23T11:40:42.629537
2021-07-16T20:10:32
2021-07-16T20:10:32
386,751,792
0
0
null
null
null
null
UTF-8
Python
false
false
650
py
import sqlite3 errorCodes = [-1, -2] def execute(connection, command): try: cursor = connection.cursor() cursor.execute(command) connection.commit() return 1 except sqlite3.Error as er: print('sql error!!!') return -1 except Exception as e: print('some error occured') return -2 ...
72eeefb22e0a53df2a57c4dfef7d17c8dee8d8e5
6c2b42003dc9ae3c1eb71a2bbe88d291d5830c77
/api/migrations/0002_competitor_positions.py
7c233bdecf8090e507b22fd20a049ee557e08ca9
[]
no_license
TIY-Bracket/bracket_api
8d91641c7d31f3ac502374237ba465fe10325fe0
18d1d3c397aa2d39fedc3eef27a903b9cc63ab66
refs/heads/master
2023-01-07T04:54:59.744999
2015-12-17T20:00:44
2015-12-17T20:00:44
45,284,518
2
3
null
2022-12-26T19:54:55
2015-10-31T01:33:22
CSS
UTF-8
Python
false
false
1,180
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('api', '0001_initial'), ] operati...
552175db6cfacb1baf32881be918574025485a07
fee6e33f28f267c207874f7300b2e1ef5a580d21
/GSM_model/prot_prod.py
feb606c85c6927a5a714e6b7edbcd43c59d01dff
[ "MIT" ]
permissive
TCAndersen/DTU_Biobuilders_2021
4c23782ef317083ef380060ab7762dcfeea2188f
5a7648e7cd75c486f2a5218e7863d069f0b2c993
refs/heads/main
2023-06-10T10:05:25.305758
2021-07-01T22:03:20
2021-07-01T22:03:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,502
py
import sys # define the molecular weight for each nucleotide, ribonucleotide and aa (obtained from excel) dna_MW = {'A': 313.2, 'T': 304.2, 'G': 329.2, 'C': 289.2} rna_MW = {'A': 329.2, 'U': 306.2, 'G': 345.2, 'C': 305.2} aa_MW = {'A': 71.078, 'R': 156.186, 'N': 114.103, 'D': 115.087, 'C': 103.143, 'E': 128.129, 'Q...
955d9213fda02b98b578d9b7922b9a937028d2ac
22a83feb9f3e6679606204e40d01191e76ad2255
/JSONIFY_data.py
264c0e7191e3d0acb4031842f96597e4ed79a52d
[]
no_license
stevenhuynh17/UVSA_Norcal_Summit_App
1be18512095592f7f6d2fa66ce3e8188d11d93ed
01d28f06ce230f501c6d3b54f6c5a0ec499f15de
refs/heads/master
2022-12-11T16:51:21.860429
2019-10-04T23:47:21
2019-10-04T23:47:21
200,340,921
0
0
null
2022-12-09T20:59:25
2019-08-03T06:30:44
JavaScript
UTF-8
Python
false
false
296
py
from analysis.writeAgenda import writeAgenda from analysis.extractFamily import extractFamily from analysis.extractWkshp import extractWkshp famMembers = 'data/attendees/captainCrunch.csv' def assembleJSON(): extractFamily(famMembers) writeAgenda() extractWkshp() assembleJSON()
d835a6c951beb5c578bf0721b074f492301e078a
747a43e9e8e69f870d8d693214a89f4da6859176
/examples/lsc/wikikg90m/dgl-ke-ogb-lsc/python/dglke/dataloader/ensemble_dataset.py
72e0b8c58e739ffd226d7b02c1d7d81eb35c1e55
[ "MIT", "Apache-2.0" ]
permissive
AprLie/ogb
32a8ae331e8ebfa287b81015d88ab996b6ddb9b3
7e4f25bbc013e76c8f04990e1d9d659a67f5f491
refs/heads/master
2023-06-04T14:05:55.669928
2021-06-16T02:30:51
2021-06-16T02:30:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,277
py
from ogb.lsc import WikiKG90MDataset from .KGDataset import KGDataset import numpy as np import os.path as osp class WikiKG90MDatasetEnsemble(WikiKG90MDataset): def __init__(self, root: str = 'dataset'): super(WikiKG90MDatasetEnsemble, self).__init__(root) self._other_entity_feat = None ...
77153b8fad70acaa18583bba626fc2ae4c272948
2897b6dcb7512ff875df949c49e15d122a7134f1
/ez_health_card/urls.py
13bae7ca5ab0806957c463e1b907a36034d5ad51
[]
no_license
RomanGodMode/django-pills
30662bcbb3ef9f9717068e0ceb3357ad5ba0ae0c
6e9866ce0c743a73faef6fa215ed1763ec86cced
refs/heads/master
2023-07-15T11:28:40.312612
2021-08-19T23:26:29
2021-08-19T23:26:29
396,949,320
0
0
null
null
null
null
UTF-8
Python
false
false
1,210
py
"""ez_health_card URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Clas...
[ "Poza228337" ]
Poza228337
09dc07a8917962e0450d3ab3dd894432d39d5a7e
2b85d44c6a00b73787ff350a7f79415d9ad67a9b
/base.py
1d99ebd958946f477c6c96d237c513dfb737c5b3
[]
no_license
wg4568/MultiplayerServer
dbaf81e072f0760c3fcc29bd9720c3ca22a8cdcc
694d0b8c2564716c21234aec717512a518b9555b
refs/heads/master
2021-04-30T18:24:00.617647
2017-01-29T17:40:39
2017-01-29T17:40:39
80,360,774
0
0
null
null
null
null
UTF-8
Python
false
false
2,060
py
import pygame, time pygame.M_1 = 323 pygame.M_2 = 324 pygame.M_3 = 325 def control_check(): keys = list(pygame.key.get_pressed()) mouse = pygame.mouse.get_pressed() keys.append(mouse[0]) keys.append(mouse[1]) keys.append(mouse[2]) return keys class Game: def __init__(self): pygame.init() self.pygame = pyga...
637a199f53ea8c73496a92bc9bfdb4cf51269691
ef59fd73399600e4997ff058c69ef0fc1bebecf5
/buttonTime.py
00166d1cabda6b65a24e590d181e3187b402fd9b
[]
no_license
jimTheSTEAMClown/Python-Code
cfae6d5e1fde5229d7bca7cbd9ef5973845c24e1
e7bde6b09b951d24d66ad09a305b9a8d240f1d45
refs/heads/master
2022-05-16T18:20:49.150597
2022-05-02T00:51:55
2022-05-02T00:51:55
80,686,095
2
0
null
null
null
null
UTF-8
Python
false
false
1,611
py
# Button & Time # 3.3v = 1,17, 5.0v =2,4 GND = 6,9,14,20,25,30,34,39 # I/O = 3,5,7,8,10,11,12,13,15,16,18,19,21,22,23,24, # More I/O =26,27,28,29,31,32,33,35,36,37,38,40 import RPi.GPIO as GPIO import time from time import sleep GPIO.setmode(GPIO.BOARD) timeButton = 18 gotTimeLED = 5 GPIO.setup(gotTimeLED, GPIO.OU...
cc954fa88f2ef80d6bbed34f913c5ce7504a0730
049c70af1725af2ed64696769b10cb0b4e8a9083
/swiper/wsgi.py
c79b6d0e659c63f4648c0d3bbe4368ff2b4f049c
[]
no_license
luoxunchao/PM
a7756a50ff9f1c78f97c360131e53c8632dd8f95
70c14c5601a5dcfb5fdb5bec448257aa7075bd34
refs/heads/master
2022-04-20T03:12:33.424962
2020-04-21T04:02:18
2020-04-21T04:02:18
256,093,219
0
0
null
null
null
null
UTF-8
Python
false
false
389
py
""" WSGI config for swiper project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTIN...
2c84b88b2248d07bc3fdaaa1c84bb232af9210d9
6558766df338730772d02a318e65bfa46cff40b6
/apps/openprofession/migrations/0037_simulizatordata.py
856c0742ca3f953cf907bf71e7a9709af76ae251
[]
no_license
ITOO-UrFU/openedu
02dc265872e2de1d74b1e8eca0c6596c7860841a
7c6507d671653fc0ccf35b5305f960eb32e7159f
refs/heads/master
2021-01-20T21:16:39.987744
2019-08-07T10:02:12
2019-08-07T10:02:12
101,761,728
1
0
null
null
null
null
UTF-8
Python
false
false
1,403
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2018-03-13 14:13 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('openprofession', '0036_pdavailable'), ] operations = [ migrations.CreateMod...
bca17f6f16c5c7b53f36b1772c1609844002a2d0
45a61af9028a1805c08b6f7638c7aebe8140bd2d
/Groundwater/mf6/autotest/test_z01_nightly_build_examples.py
271101a6d317d1429ed62e0954a5f125c5a0fd18
[]
no_license
gumilar19/Personal
1c1fac036af3a4b9d4d425b7c8cb604271b94fd2
c666b07c5184006aca8e6ad946cc98ef72dfe9fe
refs/heads/master
2023-08-14T20:39:07.164849
2021-09-29T11:19:10
2021-09-29T11:19:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,397
py
import os import sys import subprocess import pathlib try: import pymake except: msg = 'Error. Pymake package is not available.\n' msg += 'Try installing using the following command:\n' msg += ' pip install https://github.com/modflowpy/pymake/zipball/master' raise Exception(msg) try: import fl...
7a869242e62651332acf39ad8c78795f8e37978c
d51b1f998f89b3fbb6fbae17cfcb0892321324a9
/main.py
ba3c5735adf69908a3bdc5a5c82319b17faddefd
[]
no_license
astrawmyer/covid
54a0b7198ac8d57a1096cdf6ee2c3cb17c358682
7bf9ed8945b427606042157b6afbc8240cba11c0
refs/heads/master
2023-01-31T14:39:19.147284
2020-12-18T01:42:49
2020-12-18T01:42:49
256,884,720
0
0
null
null
null
null
UTF-8
Python
false
false
3,425
py
""" Reads US daily data from covidtracking.com and makes a graph of positive per day. """ import requests import json import matplotlib.pyplot as plt import numpy as np usaData = requests.get("https://covidtracking.com/api/us/daily") jsonUSA = json.loads(usaData.content) stateData = requests.get("https://covidtracki...
2c03a8f00dba9649920449327717fc93a359c4e8
6de98ab5e761f4bb1f65db0993b0aa35ed26ca3d
/lambda/hello_world/hello_world/__init__.py
f195925ac52a6ea6e3d07bb0b01812c2f5b3154c
[]
no_license
jiixing/fab_aws
a79cdae643872af4b9db85e637471d188a7e5834
72916a46c74d1831d1dc9ab292c2aa0e34efe66b
refs/heads/master
2021-07-07T21:58:21.115986
2017-10-01T05:12:02
2017-10-01T05:12:02
105,414,485
0
0
null
2017-10-01T02:32:22
2017-10-01T02:32:22
null
UTF-8
Python
false
false
38
py
from localcontext import LocalContext
17a9404fe58bde1a11ae138c1925ab4fe91f325f
002010b7cf7bf0c674c081f5d86b84dc67122048
/sales/migrations/0015_installationpaymentreceipt_pointofsalesreceipt.py
c10fc9d16e8468e79b6d0706eb21a5f88a6fed6e
[]
no_license
Afotey-AntyGravity/Receipt-number
824e2f2099cb458aaf54ad25c973849bed7543eb
1f33694d9bdfe2bbdd1e0fc68af37dbf71708f3f
refs/heads/main
2023-05-27T11:14:02.960247
2021-06-10T00:46:10
2021-06-10T00:46:10
375,331,630
0
0
null
null
null
null
UTF-8
Python
false
false
2,439
py
# Generated by Django 3.1.3 on 2021-04-22 19:48 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('tools', '0007_tax'), ('sales', '0014_auto_20210422_1741'), ] operations = [ migration...
bfff0b51dad9c1f7c57317b42ae7678d470157f9
5a977855c32226303bdec2585dc7d159a801b12f
/material/codigo/pygame-camera/macroscope/macroscope.py
d3adce138aba14217294e7b8d57667288bf88297
[]
no_license
javacasm/RaspberryAvanzado
5eecd62c3598b2e36bc4ee91c3e96b33734903bf
bbccc7b8af8c2c9b5e2e298b3e5c063d9aa056c1
refs/heads/master
2021-09-11T16:45:18.263481
2018-04-09T22:06:11
2018-04-09T22:06:11
108,258,204
4
0
null
null
null
null
UTF-8
Python
false
false
8,612
py
#!/usr/bin/env python # RPi Macroscope by [email protected], December 2017 # https://www.raspberrypi.org/learning/push-button-stop-motion/worksheet/ # https://raspberrypi.stackexchange.com/questions/28302/python-script-with-loop-that-detects-keyboard-input import os, sys, time from picamera import PiCamera from time ...
7c7cb40880177ef4808f0f7f1831e2f43f0c5b62
26d023e21346700a71bae8e477da0ea39d38b345
/meetup_integration/management/commands/get_group.py
9213cd91b1b7024cf0e46048ff9986fd4aeb555c
[]
no_license
NejcZupec/meetup-basket
b6ee4232dc4b4f610a3fa8e55fd23a39f3df9ab2
1d1cc84db5be4a1357f97b8156b6750fe25f51f8
refs/heads/master
2020-12-25T17:24:06.157240
2020-05-02T15:07:02
2020-05-02T15:07:02
25,652,805
1
1
null
2017-01-23T20:39:37
2014-10-23T18:53:07
JavaScript
UTF-8
Python
false
false
837
py
import json from django.core.management.base import BaseCommand from meetup_integration.models import Group from meetup_integration.utils import MeetupAPI class Command(BaseCommand): args = "group_urlname" help = "Get group by urlname." def handle(self, *args, **options): try: group...
6230c89fbf90c5fe08760c737ce41aeee110b049
fde10302616f4bbba5a67a33decb65e47765e268
/misc/v1/reconstruction/meshroom_to_log.py
798f63beb6c87bdb1d5544ec8dea13d120d761ec
[]
no_license
laurelkeys/ff
b1f562f2e3caf2cd0616ca93fff4fb3872e55cdc
bac774e1f7b3131f559ee3ff1662836c424ebaa5
refs/heads/master
2023-02-23T17:46:49.011034
2022-01-21T20:31:59
2022-01-21T20:31:59
214,757,656
1
1
null
2023-02-11T00:30:56
2019-10-13T03:58:59
Python
UTF-8
Python
false
false
4,269
py
import os import glob import json import argparse import collections import numpy as np # ref.: # [1] https://www.tanksandtemples.org/tutorial/ # [2] https://colmap.github.io/format.html#images-txt # [3] https://github.com/colmap/colmap/blob/dev/src/estimators/pose.h#L125 # [4] https://github.com/alicevision/mesh...
ae378a7e6c6616477c225aaa5251e45a2a44e7c1
6985d11d175d184686f92bfa02aad78d01e09d72
/study5 list/main.py
1cfd4498460550f7672cc8e76b53c5f2a9050a3f
[]
no_license
lianhuo-yiyu/python-study
eaf34f60e330065af7ee51c764e10614f029c179
a7045143115d6a2e92578dd9cf1edc07e45bb1c0
refs/heads/main
2023-04-20T22:24:30.744987
2021-05-16T04:46:35
2021-05-16T04:46:35
367,785,686
0
0
null
null
null
null
UTF-8
Python
false
false
2,331
py
#python的列表 list 相当于数组 列表中括号[] #列表创建 lst = ['hello', 100, 'hello', 100, 500, 4, 5] lst1 = list([98, 46, 45]) print(lst1) print(lst) #list不同于数组在于索引从左数是0,1,2,3 还可以从右边数是-1,-2,-3 列表里面的数据类型可以不一样 print(lst1[1]) print(lst1[-2]) #index()获取list中的指定元素的索引位置 print(lst.index('hello')) #存在相同元素只返回第一个的索引 print('100的第一个索引位置为'+str(...
c5c40df7b9b89b1510c0c329855e78d180775dd2
bcae3a575f8705dc2f8c5aedbaf6c7138f4713bf
/1030A.py
3d123c7cfd105d953a1da4405448da8100d27d6b
[]
no_license
raghavbiyani19/CodeForces
50635299a79d9dd04e4a3cb23d8dff073aad8074
7365b67feea59ab4b520529535ae2f107f4c714b
refs/heads/master
2020-12-21T04:15:27.893593
2020-07-01T12:59:10
2020-07-01T12:59:10
236,303,119
0
0
null
null
null
null
UTF-8
Python
false
false
184
py
n = int(input()) answers = list(map(int,input().split(" ")))[:n] flag = 0 for item in answers: if item==1: flag = 1; if flag == 1: print("HARD") else: print("EASY")
0b086d7aa26f41565a6e64ed16dc3a0147df5f7b
9e8ee26fdab9313df81a22dae700f8417ed60722
/slideshow.py
ad1248130c4428f50a6a64d5acbd7038a07f9826
[]
no_license
neelneelpurk/slideshow
fe80b812225f8f51f3bc7006b12a94f9834b03d0
5248134943fed11349184a008fef37c1e0baaedc
refs/heads/master
2021-01-19T13:37:30.582857
2017-02-18T18:50:09
2017-02-18T18:50:09
82,403,233
0
0
null
null
null
null
UTF-8
Python
false
false
617
py
import numpy as np import cv2 import imutils import glob print "Give your file location:" string = str(raw_input()) images = glob.glob(string + '*.jpg') ch_img = cv2.imread(images[0]) ch_img = imutils.resize(ch_img, width=640, height = 540) for fn in images: img = cv2.imread(fn) gray = imutils.resize(img, width=640...
6c4d831a16742e2736ba85c002e8ce061fa04f55
6d8a241829d4632af665210b27a3a4cd05e2e77f
/snippets/migrations/0002_facedata.py
9e04225a52466f40ca29450b589072f03508c239
[]
no_license
wangyu0426/openfaceApi
25252f7ea64c6a6f969827427443fe1d69e521ab
2c356d925a9d565d2a5f46ccaa3598dfffee9837
refs/heads/master
2021-05-08T10:36:44.548521
2018-02-05T16:31:27
2018-02-05T16:31:27
119,849,871
0
0
null
null
null
null
UTF-8
Python
false
false
683
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-09-25 07:39 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('snippets', '0001_initial'), ] operations = [ migrations.CreateModel( ...
96cd03528b16f7d81aceb85fe867c042d368eee5
94ebceffc6e946ac64b606e0ab68a8921ae300de
/python/generate_candidate.py
f9ad44e7abc217fcea3414cf592f3fac74fef586
[]
no_license
chaozc/poselet_code
026d7cbc62211eae8a1ebf4e27e7b9b2263a5ca4
7e24f343d07bd8589cba974e387d4ab20319de81
refs/heads/master
2016-09-05T15:53:25.939303
2015-02-16T12:26:57
2015-02-16T12:26:57
29,904,855
1
2
null
null
null
null
UTF-8
Python
false
false
982
py
import cv2 import os import numpy as np from sys import argv from MyRandint import MyRandint from poseletFunc import * if __name__ == "__main__": #argv[1]: num of bin conf = config() flist = os.listdir(conf['img_dir']) noFile = len(flist) cntImg = 0 totPatch = 0 rand = MyRandint() bsz = int(argv[1]) for f in f...
52d1846ef9a4c6284f0c539b5d764e7dfc000969
32433810ef0421e98dcce1c8d6bd2f7a22cc12dc
/U_net/evaluation.py
7064db6a9be567e3f629d5a1dde96abcfdecb18a
[]
no_license
stabling/projects
927ba90868c49ededc41b540fde307b17302b9f3
aefebf988a2b9652ab694cf5e9339fa12cdbd7cd
refs/heads/master
2020-07-11T03:07:25.522426
2019-10-22T00:33:57
2019-10-22T00:33:57
204,432,604
3
0
null
null
null
null
UTF-8
Python
false
false
2,048
py
import torch # SR : Segmentation Result # GT : Ground Truth def get_accuracy(SR, GT, threshold=0.5): SR = SR > threshold GT = GT == torch.max(GT) corr = torch.sum(SR == GT) tensor_size = SR.size(0) * SR.size(1) * SR.size(2) * SR.size(3) acc = float(corr) / float(tensor_size) return acc def...
c591850521ec3385a522112a5789fc7abcb51c61
0f91f86a1ca75669242030dfb03e3ac3efa3461f
/Spam Classification and Elasticsearch/train_classifier.py
7af7aa5b61e1bfe36c5c53673f13f509312b5ca6
[]
no_license
apanimesh061/InformationRetrieval
d2b434b165a59d64d66fad3d7d1d1eb7f7791dce
9008d47a70624872d5bc01af02c72be757d2df10
refs/heads/master
2021-01-19T04:20:32.223938
2016-08-02T03:30:16
2016-08-02T03:30:16
64,720,997
1
0
null
null
null
null
UTF-8
Python
false
false
1,309
py
# ------------------------------------------------------------------------------- # Name: train_classifier # Purpose: train the SPAM classifier # # Author: Animesh Pandey # # Created: 29/04/2015 # Copyright: (c) Animesh Pandey 2015 # --------------------------------------------------------...
8641472ef5dfd1cb9a2a6258a62732f29e906a23
14bfecfc9854dcbb77f42c1b387ae51875fe5d4f
/doorMotion.py
44291bc8d50909effb756fc4c873b1ff48a3b211
[]
no_license
rcreddy06/Hack-A-Door
5a64a15d59b865a44ab59536ab213d3b238ea97c
598b9f4883165aac40c84ed3da004449ea51100b
refs/heads/master
2020-05-18T03:22:44.456478
2015-07-15T18:07:23
2015-07-15T18:07:23
39,152,394
1
0
null
null
null
null
UTF-8
Python
false
false
570
py
# Reference https://www.modmypi.com/blog/raspberry-pi-gpio-sensing-motion-detection # coding: utf-8 import RPi.GPIO as GPIO import time import sys GPIO.setmode(GPIO.BCM) PIR_PIN = 21 GPIO.setup(PIR_PIN, GPIO.IN) def MOTION(PIR_PIN): print "Door Open!" execfile('ledtest.py') print "Wait for Door to Op...
96f3e80f04bc682d09494ac4303b866f15fbe926
c2dbcf00d4e1f5730e3088822d3abcc8ad5f8e90
/restaurants/migrations/0004_auto_20190720_0834.py
bebf6c08b7e31789b8e58f399a28487be894c392
[]
no_license
sfares85/task_10
af3f6045c961cfd715067f7e8b1732eda4665a91
452d9abc498cc0b9f92f16f878ad98b32ca9539b
refs/heads/master
2020-06-22T03:21:13.801780
2019-07-20T13:26:58
2019-07-20T13:26:58
197,619,834
0
0
null
2019-07-18T16:12:43
2019-07-18T16:12:42
null
UTF-8
Python
false
false
1,221
py
# Generated by Django 2.1.5 on 2019-07-20 08:34 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('restaurants', '0003_auto...
4a93f895c4f634e938a00892439e5aa761ecf1b5
3d61fe0f49f5d344fc32a6faa799f0a46deec9a5
/2017/AoC-2017-13v2.py
290341cd10f0980f65f036c7d6c15a02ddab3382
[]
no_license
sbeaumont/AoC
558296fd26cd5272e33d3cb9113c09e4945c98ac
406eda614d8434d8feb71fe1262f1fda54972a12
refs/heads/master
2022-12-13T07:38:36.089775
2022-12-04T21:11:49
2022-12-04T21:11:49
75,467,985
0
0
null
null
null
null
UTF-8
Python
false
false
578
py
PUZZLE_INPUT_FILE_NAME = "AoC-2017-13-input.txt" # Parse parent and children names with open(PUZZLE_INPUT_FILE_NAME) as puzzle_input_file: firewall = {int(line.split(":")[0]): int(line.split(":")[1]) for line in puzzle_input_file.readlines()} max_depth = max(firewall, key=firewall.get) def check_layers(wait_tim...
902119212ac3b5b8562ee82d7fa00a5c7d370c0f
d204cc764f4cbbb4755c3b630c0790fee53628ee
/subscriptions/views.py
cc6fa370f2b47f0412b08233bbd0170aac8ab8a1
[]
no_license
jace3k/satellite-backend
9e0f73e389da10126d5a38f36db9503b470adda2
bec7f19234a03134482d918fa68cd2674e14a7a1
refs/heads/master
2020-05-04T13:25:32.501293
2019-04-04T17:11:36
2019-04-04T17:11:36
179,159,795
0
0
null
null
null
null
UTF-8
Python
false
false
511
py
from rest_framework import viewsets from rest_framework.authentication import TokenAuthentication from rest_framework.permissions import IsAuthenticated from subscriptions.models import Subscription from subscriptions.serializers import SubscriptionSerializerDetail class SubscriptionViewSet(viewsets.ModelViewSet): ...
2e18eb6be957873c745d543ad85b0034148f4db7
a305d9a74d2332fdfaacc1d041a5ec8a22dae2db
/square.py
ab50b0bb35101b31be278505919126ef1b588e57
[]
no_license
CodArtist/Fractals
d340fd124ec70b12f3dc63f93d086614278869c6
2c1e98db3414c8fb7830efa88973de43a49f6315
refs/heads/main
2022-12-27T00:36:58.890657
2020-10-12T05:15:31
2020-10-12T05:15:31
303,283,755
0
0
null
null
null
null
UTF-8
Python
false
false
461
py
import turtle bob =turtle.Turtle() bob.speed(100000) bob.penup() bob.forward(-150) bob.pendown() color = ["green","blue","red"] i=0 def star(turtle,size,col): if size <=10: return else: turtle.fillcolor(col) turtle.begin_fill() for i in range(4): turtle.forw...
40cd6567e784c1030fabefe70f52924dc26380f0
f1c2578a7774a4873932badf4359ea0344ccdecd
/DSM FW Pack/deployable/NodeFolders/node_modules/jquery/node_modules/contextify/build/config.gypi
7f412d1edefa168a37d4d0767cc8aec9c6f76670
[ "MIT" ]
permissive
heppy83/DSMFramework
0f30d0bb282a14680755a03a8d342b4ffab90bb9
84aa26c93d1e811f10f3c6f6916184abef6f46b7
refs/heads/master
2020-03-29T13:21:17.365084
2013-05-19T10:09:20
2013-05-19T10:09:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,738
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [] }, "variables": { "clang": 0, "gcc_version": 42, "host_arch": "x64", "node_install_npm": ...
98f212d0387b519b346a5a4365cc5f62ecaf13bd
4596e3f0097723e402c8fe21933f016d99cdb08b
/two_strings_equal.py
ae0844187de26d825498e9b5244b34bb1d530c1c
[]
no_license
Harshavardhanteja7/Python-Assignments
3b0af25d088e42c24407be53ccd78064df5244db
cae8657618ea44ff62268e315e26adb655c9cbbf
refs/heads/master
2022-11-09T06:19:37.462857
2020-06-27T17:25:30
2020-06-27T17:25:30
273,303,284
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
# -*- coding: utf-8 -*- """two_strings_equal.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1tWdMpgZwyMC_Sbp5iSaa9SRuARW-oXWx """ str_1=str(input("Enter the 1st string: ")) str_2=str(input("Enter the 2nd string: ")) if str_1==str_2: ...
5c2e5d83b929a6609dc21da6bbf6211579490049
9f0acd43cb381e4945565d591001516d992fb031
/tr_option/opt20005.py
daebd24819a039043ff7586b380cc2c5b818d96a
[ "MIT" ]
permissive
atheling44/KiwoomTrader
ab10a404f5f879d00f0662eaad53c10b1aa8d931
ae630513a738e495f9010b2671043220f07d22ed
refs/heads/master
2023-03-16T10:07:39.252689
2019-12-26T11:36:36
2019-12-26T11:36:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,247
py
from tr_option.base import KWTR from copy import deepcopy # [ opt20005 : 업종분봉조회요청 ] class Opt20005(KWTR): def __init__(self, core): super().__init__(core) self.rq_name = self.tr_code = 'opt20005' self.record_name_single = '업종분봉차트' self.header_single = [ '업종코드', ...
a698324d7311e2d9e04a2ca8aeeb1e61b0da888f
b1a7dcee012b5ceff3da580d3f7b3129a4b561af
/learn/settings.py
6954595b8cd11d3c30e8b79ed24822e29a0b7c62
[]
no_license
azamjon180/learn
730f3555beb33f4127f6f5fe23f4c6a19295373b
c54172019a2146dfb4c500137a7dd5e232d5fd4e
refs/heads/master
2022-12-14T03:13:39.070059
2020-09-17T08:27:02
2020-09-17T08:27:02
294,693,554
0
0
null
null
null
null
UTF-8
Python
false
false
3,405
py
""" Django settings for learn project. Generated by 'django-admin startproject' using Django 3.0.3. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os # B...
0a46787003d24c0133f2ba04614a8d583391bd69
419c703dd00a6f2219a8f81408364d7f4fa9e3db
/cgi-bin/model.py
52d5878dce25f269db670d1cac2e35f35a2b0963
[]
no_license
borhanreo/digit_predict
3897663f1a2689e915551c94194592baade81ec4
81a322b39c60e9793c3df1f857112651b2eb5f5e
refs/heads/master
2020-04-20T06:26:53.609897
2019-02-01T11:10:03
2019-02-01T11:10:03
168,684,380
4
0
null
null
null
null
UTF-8
Python
false
false
1,199
py
""" Define Convolutional Nerual Network model for MNIST input """ from tflearn import DNN from tflearn.layers.core import input_data, dropout, fully_connected from tflearn.layers.conv import conv_2d, max_pool_2d from tflearn.layers.normalization import local_response_normalization from tflearn.layers.estimator...
327af865bfb543690b70b52f2def73ab01b9997d
0c759cd37338db689ce36c22944d4a6f8f9fe74e
/app/web/urls.py
f34b140f798fd05d83f4dac018e2c881404c359d
[]
no_license
mkramb/acegit
4dee079719c82fa9f95e9c5d59ac6af72a211f7a
76c8383496a5531461aab59ceb16daff7a3c406a
refs/heads/master
2021-01-10T06:43:54.496288
2016-02-24T17:39:16
2016-02-24T17:39:16
52,461,727
0
0
null
null
null
null
UTF-8
Python
false
false
411
py
from django.conf.urls import patterns, url, include from django.views.generic import TemplateView from app.web.views import HookView urlpatterns = patterns( '', url( r'^$', TemplateView.as_view(template_name='web/home.html'), name='web' ), url(r'^hook/(?P<repo_id>.+)$', HookView.as_view(), nam...
acc3a59ce841b1ef522f84e87223ee9a40cfc144
419df78283bfd823e78242c67cd092fde5796843
/4/accessing_last_item_in_a_list.py
16aaa25c4f5bf3e2d4514c5bd958ce2d1db9899d
[]
no_license
SandeshChinchole/python-programs
4f27c8a4fea010ef928d2177e4d582165feb798a
04c0b7fe281810771c7965a1ae11df6868a11052
refs/heads/master
2023-06-11T07:33:17.361490
2021-06-27T23:41:43
2021-06-27T23:41:43
310,763,282
0
0
null
null
null
null
UTF-8
Python
false
false
559
py
# accessing last item using index smoothies = ['coconut', 'strawberry', 'banana', 'pineapple', 'acai berry'] length = len(smoothies) last = smoothies[length-1] print('Last item using index: ', last) # accessing last item using negative index (take the last three smoothies on our list and print them) smoothies = ['c...
2670d4a865a34c6b12557710f3b157b604b6bf68
148cb99e0f23679c20243470ad62dc4155aa5252
/baseinfo/migrations/0016_auto_20191206_0806.py
8d98453f8d32b5509559f2cb37242495b58c3609
[]
no_license
Hamidnet220/tax
46060f24b55a4f348194599d59247ff9435f4379
000051be5df6a98f679d13a94e37b9ee30efd5a9
refs/heads/master
2020-06-19T09:41:20.998214
2019-12-10T01:01:17
2019-12-10T01:01:17
196,666,093
0
0
null
null
null
null
UTF-8
Python
false
false
608
py
# Generated by Django 2.1.7 on 2019-12-06 08:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('baseinfo', '0015_guarantee_guarantee_file'), ] operations = [ migrations.AlterField( model_name='guarantee', name='g...
b90a0305484644a6728e50d68732ee9e6989bb14
478fad340a97fc14d365b95bbd6f8ac1dcc71953
/121/Solution.py
d76a39e78ef9cadd8e4004cc32002f4a3d0d5986
[]
no_license
sandyg05/leetcode
93cca3b3ce4f38cf1ea1c6d3e8400d7b6b776c37
e9d8036e2be6dbd1b8c958431e07dc35b88ebfa8
refs/heads/master
2022-07-16T10:03:59.529470
2020-05-13T05:35:49
2020-05-13T05:35:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
994
py
""" Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction (i.e., buy one and sell one share of the stock), design an algorithm to find the maximum profit. Note that you cannot sell a stock before you buy one. Example 1: ...
61bf434ef9c9cd94c19c4eee92ececa6952d9ec4
1a78a2d3e71c26998c0022ac487fa6545e5d2e79
/programs/remove_mtdna.py
f4e1eb669d70f1e9d11842bde2e8b5851a5d489a
[]
no_license
ncc95/project3
5471cc92e26ecc3d9e192d07f4d2c651c8aee032
1055285f463e80ba2857bbf63fe42f5e532a4869
refs/heads/master
2021-09-19T03:23:56.371561
2018-07-22T12:39:05
2018-07-22T12:39:05
141,892,965
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
def remove_mtdna_from_sam(input,output): with open(input) as f: with open(output, "w") as g: for line in f: if line.rsplit("\t")[2] != "chrM": g.write(line) remove_mtdna_from_sam("aln.sam", "aln_no_mtdna.sam")
63050037ff16f231d2e413b0f7308febc154a77d
ddbb862a813d28154547f46bf3f9af9297e355f7
/Monte Carlo1.1.py
39f1e4ee233fdf5e16fbaff8e7998b2b5a73bd50
[]
no_license
YizhuoLu/EE511project4
23aa001f18ec63ed3762d843eed4a9437769ba15
3761e43418399d513afac53e690628cd6e20fc07
refs/heads/master
2020-03-23T11:58:24.831547
2018-07-19T05:39:14
2018-07-19T05:39:14
141,529,251
1
0
null
null
null
null
UTF-8
Python
false
false
936
py
import numpy as np import matplotlib.pyplot as plt import math s = [] N = 100 def uniformSample(N): for i in range(N): x = np.random.uniform(0, 1) y = np.random.uniform(0, 1) s.append([x, y]) return s z = np.array(uniformSample(N)) count = 0 for i in range(len(z)): if...
2bc1fcc7b2f69fdf2a3224d4812bd611106212fd
ca3a49676cdf1016b2d729f0432b451d35b7a281
/bad-solutions/add.py
698f358d6ce95ac0d0d3832d8c44a19f39928fd9
[ "MIT" ]
permissive
SquareandCompass/code-align-evals-data
3bb71b605316f56bb27466f23706a329f3fb4938
97446d992c3785d6605f1500b2c9b95d042e7b9c
refs/heads/main
2023-06-19T12:47:56.277363
2021-07-21T00:22:56
2021-07-21T00:22:56
640,147,842
0
1
null
2023-05-13T06:22:30
2023-05-13T06:22:29
null
UTF-8
Python
false
false
575
py
def add(lst): """Given a non-empty list of integers lst. add the even elements that are at odd indices.. Examples: add([4, 2, 6, 7]) ==> 2 """ return sum([lst[i] for i in range(1, len(lst) / 2, 2) if lst[i] % 2 == 0]) def check(candidate): # Check some simple cases assert candidate...
a5075c05b906fd9b22238fdec92901e48a23a4c7
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02817/s121273903.py
c74297c5df6c42af00d7dd1b1408fea1fb86e8a6
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
41
py
x=list(input().split()) print(x[1]+x[0])
2bc555da0fa56b4908c116b59adf873b9464b273
a508eddc00e29a64b1ee7e201617d4a7d4544056
/manage.py
18f71d68c9ab139a98120b6182d8567fc6f359ca
[]
no_license
Dishanth-G/ASD_detection
f7e572e548e04bedceeda566577ee5a2bd38b602
c4a9ca651fbc85f04e411e038f838e4def3f5699
refs/heads/master
2023-01-21T22:03:22.582557
2020-12-02T17:52:00
2020-12-02T17:52:00
312,204,551
2
1
null
null
null
null
UTF-8
Python
false
false
667
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'DeployModel.settings') try: from django.core.management import execute_from_command_line except ...
54698d3df9e146bba7518dcc501a9dbbc6db33e5
4d2937e2c974b65939a5021b36bf98d1088d92c2
/hw1/test.py
b278da97353896a1e46fc4eabec5bd2d0d666976
[]
no_license
tommy413/ADLxMLDS2017
97d9ab35fdc56c0982a26ffc991bb5878d942981
d613908ab9b3b3be9fa93b939d17cfde5908ca57
refs/heads/master
2021-03-27T12:28:44.149677
2018-01-16T09:58:51
2018-01-16T09:58:51
105,556,782
0
0
null
null
null
null
UTF-8
Python
false
false
1,797
py
# -*- coding: utf-8 -*- import sys import numpy as np import pickle as pkl import os import csv #os.environ["THEANO_FLAGS"] = "device=gpu0" os.environ['TF_CPP_MIN_LOG_LEVEL'] = '1' from keras.models import load_model,model_from_json import json data_path = "feature/%s" % sys.argv[1] model_name = sys.argv[2] output_pa...
9791ec8a8e82cb5b0b7f1957f907a4f4768882cc
3b69b6bffacd1247eed2a1d5f074301b90ef976c
/config/settings.py
a87bf951d79027ab6e52c66969f8e80035a0c3f8
[ "MIT" ]
permissive
AdamSpannbauer/django_hello_world
326aaf3cc9c43e2f6c6ecca78b826b976da97b34
610b02c932df41692fe557f3d96cb97e95e28242
refs/heads/main
2023-01-28T19:25:54.750254
2020-12-06T21:35:49
2020-12-06T21:35:49
318,765,265
0
0
null
null
null
null
UTF-8
Python
false
false
3,071
py
""" Django settings for config project. Generated by 'django-admin startproject' using Django 3.1.4. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib ...
73811021c3a1796cb4a40a018b7f159349ac18de
419667d83ba1500e241863a509f6ebd23c7dc8b6
/addDatabase.py
c9ccfec8dcb3444dd12c8a4cec1ec3243d66b3e8
[]
no_license
mahavasu/Item-Catalog
c0de566bbf9b5450d9c6dca02160aa1a059d1f99
d2b3b6d5c935fdd65faff0a66f1ccacf0dc93a9e
refs/heads/master
2021-01-19T10:13:54.677485
2015-10-05T16:59:29
2015-10-05T16:59:29
38,135,762
0
0
null
null
null
null
UTF-8
Python
false
false
2,179
py
from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from database_setup import Category, Base, Item, User engine = create_engine('sqlite:///catalog.db') # Bind the engine to the metadata of the Base class so that the # declaratives can be accessed through a DBSession instance Base.metadata.bin...
0ef9cb329b0021acd62f178d23501015177ba738
49e6d84b54d093f5ef318bd0a61cdc8d3f712cb8
/digitalmanifesto/wsgi.py
2ec366fad0959abeb16f02a6748a434e00d50fe5
[ "MIT" ]
permissive
gwhigs/digital-manifesto
deeed2f19eb5b5743d18a14b99fcc08aa6293e09
e6dc01b9a228943f065709f1eef6a8266564dabd
refs/heads/master
2021-01-24T10:47:43.210444
2018-12-29T21:22:55
2018-12-29T21:22:55
30,809,164
4
1
null
2015-06-14T20:42:03
2015-02-14T21:20:19
Python
UTF-8
Python
false
false
407
py
""" WSGI config for digitalmanifesto project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "digitalmanifesto.settings") ...
3d28100d3c9863e403e81490f9fc06870275da9c
3af4d4cf1a53d460476d2e5f2f38761919a8a3b9
/pyDLib/Core/controller.py
506ee3faa08a25296f2bc592e6049c4b4416de6b
[ "MIT" ]
permissive
lmoshood/abstractDataLibrary
1b87affe6478d52989e09c3ab0cfc4630d1ff6d1
16be28e99837e40287a63803bbfdf67ac1806b7b
refs/heads/master
2020-07-09T05:10:27.204031
2019-03-28T15:50:34
2019-03-28T15:50:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,188
py
"""Implements theory_main objects : interfaces wrapper by interInterfaces """ import json import logging import os from typing import Dict, Type, List, Optional from . import data_model, groups, formats, sql, threads, security from . import init_all, StructureError class Callbacks: def __getattr__(self, key): ...
0e9a38665795bd642e825d58f2ad24a34ebb9439
f8c3c677ba536fbf5a37ac4343c1f3f3acd4d9b6
/ICA_SDK/test/test_instrument.py
aeb50805e0f9f55fb14b9f8cfa35dbca74de8c92
[]
no_license
jsialar/integrated_IAP_SDK
5e6999b0a9beabe4dfc4f2b6c8b0f45b1b2f33eb
c9ff7685ef0a27dc4af512adcff914f55ead0edd
refs/heads/main
2023-08-25T04:16:27.219027
2021-10-26T16:06:09
2021-10-26T16:06:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,573
py
# coding: utf-8 """ IAP Services No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest ...
c1497ab46aea616ebff8be15bec4cfafe17f1d6f
74431a8edaa5b313a48ca501f737983c08fe3de6
/aws_nag/utility.py
4db3dbf2ccc32c8cb31612c7d39ebb2f156314ce
[]
no_license
dliggat/aws-resource-notifier
0f2d73e197f7c518045cce9bae87c7587785a252
74f76eddddad6cb763bec9a6b444a9414e2eab61
refs/heads/master
2020-03-23T15:48:52.473607
2018-07-21T02:54:36
2018-07-21T02:54:46
141,776,366
0
0
null
null
null
null
UTF-8
Python
false
false
683
py
import boto3 class Utility(object): _aws_account_id = None THRESHOLD = 11 @classmethod def aws_account_id(cls): """Query for the current account ID by inspecting the default security group.""" if cls._aws_account_id is None: cls._aws_account_id = int(boto3.client('ec2').d...
68079fdbc941656a3155d91dfdbba596998dcc14
754435b83f377583c571773696367aa8827dae92
/remover.py
65b8177902c8403cbca198badcc86b764c3068c3
[]
no_license
szyangming/emma_tools
8a42a72049144af0177d17885f5ff282118cf1c4
2046754a985b66740ea613f0f8c006e7adb0e887
refs/heads/master
2023-04-26T20:22:01.491919
2021-05-19T02:10:37
2021-05-19T02:10:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,386
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2020/5/30 10:23 上午 # @Author : CrissChan # @Site : https://blog.csdn.net/crisschan # @File : remove.py # @Intro : 删除所有类型的类 import os import shutil class Remover(object): @classmethod def dir(cls,rm_root): ''' 递归删除目录以及目录内的所有内容...
04a2fa5b79e53367d1fa702e2c9297adc459942f
16f9faf6665f5189a8561534bb4bd8b0951ba1aa
/codes/metrics/__init__.py
d2cda599af5afa1f5e55bab4d4b114afd37eab3e
[]
no_license
azuryl/LPTN
4b36dba2a7f5b2bcc7dc35ac3734839054069ca2
a1b2db50117a842abc1f44d805291032651014ab
refs/heads/main
2023-07-01T02:59:17.916730
2021-08-12T19:49:46
2021-08-12T19:49:46
395,425,328
1
0
null
null
null
null
UTF-8
Python
false
false
102
py
from .psnr_ssim import calculate_psnr, calculate_ssim __all__ = ['calculate_psnr', 'calculate_ssim']
f096bfa561df5e515ae7053d95cb1615b3355d9e
4dbfd15a57f72cb2b4cd7b9585c1809891e57833
/volunteer.na4u.ru/noneisnull.py
a095ed0b248ed7ba23f23ae363af530d29930e73
[]
no_license
papalos/volunteerReg
2959ad9c47915d69a711c775737a33883dd7e6f3
3a55bac19299c90438c9c9e3b041097eda139d4d
refs/heads/master
2022-12-08T22:57:03.569832
2020-09-18T09:53:32
2020-09-18T09:53:32
296,578,487
0
0
null
null
null
null
UTF-8
Python
false
false
50
py
def nulling(n): return 0 if n is None else n
34c06dc74f45348f0075ae426c9ad58a2c008486
9bdc2e9f0382bd96ef3af4f9eca94fa58c5a4dc1
/keras/mnist-privacy/model/pipeline_train.py
0687d543d7075f6d1210e6bc5a96b7c003608086
[ "Apache-2.0" ]
permissive
shicongisme/models
90cf9a84b47c8d2a4de51fdfb7f6c4b9f796e317
d8df07877aa8b10ce9b84983bb440af75e84dca7
refs/heads/master
2022-02-01T12:01:11.443827
2019-05-26T22:25:04
2019-05-26T22:25:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,112
py
# Copyright 2018, The TensorFlow Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...