blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
33cb28c71979cd41eae4f7e54bb6eee6e03f6272
09ede5eeff888fd42726b85f8640f5b084d9a648
/a2/umap_a2.py
b0b9b3720b03423f24a4faa08504108b94ed80bf
[]
no_license
fhopfmueller/visualizing-mnist-activations
6e8cf00d91aff4d665529c78abb91214f883417a
4c36b99db038d6b5a1c8b8ff3fa4bf56b42209a2
refs/heads/master
2020-05-26T04:50:30.553641
2019-05-28T14:01:07
2019-05-28T14:01:07
188,111,234
0
0
null
null
null
null
UTF-8
Python
false
false
1,107
py
umap_a2.py
#reads hidden activations from data/hidden_activations.pt and tsnes them, hopefully, saving the result import torch import umap import matplotlib.pyplot as plt import sklearn.manifold import time hidden_activations = torch.load("../data/hidden_activations.pt") a2 = hidden_activations[1] N = len(a2) del(hidden_activa...
439787b1cfd736c4034a441c0e6335e0fa359fba
65fc11a23b0ad3d1ba75d3c92fc763ddfa3668bd
/get_log_automation/tools/getadblog.py
f5d6227394520d1af8a1a46e4d724a55d3f56c71
[]
no_license
zhumike/no1
1458a20d9ea0db7e27936126c4e1dd3c5c8e5633
5bb3bfda0be572a3ced49e15f843359e3ec8301b
refs/heads/master
2021-04-28T16:17:07.881654
2018-09-18T13:37:28
2018-09-18T13:37:28
122,012,091
0
0
null
null
null
null
UTF-8
Python
false
false
1,659
py
getadblog.py
import os,sys import shutil import time def getDevicesList(): os.system("adb devices") return list(map(lambda x: x.split("\t")[0], os.popen("adb devices").readlines()[1:-1])) def cur_file_dir(): path = sys.path[0] if os.path.isdir(path): return path elif os.path.isfile(path): return os.path.dirname(path) ...
6b5ab54c756df9efa55d548259afe4a642a9cc93
9d91667bb775de579197f8bd94a8cc67fd488244
/reviews/migrations/0002_auto_20190622_1536.py
09e766a809a345343e697babcbf2955e1078a259
[]
no_license
YazhiniTP/FoodReviewInSG_Python
bd0c82e8222ffb1ba91ca42ec802169fe8e82964
e377695d692187593d8aeeb61e261849e74bdfd9
refs/heads/master
2020-04-26T08:38:54.734162
2019-07-19T09:59:03
2019-07-19T09:59:03
173,429,720
0
0
null
null
null
null
UTF-8
Python
false
false
504
py
0002_auto_20190622_1536.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-06-22 07:36 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('reviews', '0001_initial'), ] operations = [ migrations.AlterField( ...
1faba71c7030bc54f340aa868d33ea595dbd592e
d3db0a7911437501cf227a23c0cc4a945d49c93a
/server/app/__init__.py
7343e3a265661865d2b3099f744903301d09f2e2
[ "BSD-3-Clause" ]
permissive
Raphaeljunior/crux
91e6b5c87af8f73a9eebd0a1f73f8b614cef59c7
22ec0c19e8d416e6d0bdae6f51d33ea159a098cb
refs/heads/master
2020-03-30T13:48:00.367834
2018-06-10T01:31:14
2018-06-10T01:31:14
151,288,345
0
0
BSD-3-Clause
2018-10-02T16:38:42
2018-10-02T16:38:41
null
UTF-8
Python
false
false
202
py
__init__.py
__all__ = [ 'admin', 'backends', 'fixtures' 'migrations', 'models', 'schema', 'signals' 'tests', 'views', 'apps' ] default_app_config = 'app.apps.CruxAppConfig'
a004b2b3a82f048464dbc065ac2f3ad5332fa7a2
02ceaba34a8637ab70a04c75e162856c491a4e85
/ir_eval/preprocessing.py
3f90abf19005b04e0a78753dd90cb15a65704336
[]
no_license
Colaplusice/ttds_movie_search
d0ae33772b77361990ab3033dfb79af11393f4d3
178c2f74380469c28ae0097266928c19a7252bec
refs/heads/master
2023-02-12T00:29:08.865702
2020-12-12T18:03:58
2020-12-12T18:03:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,724
py
preprocessing.py
import re import sys import os import nltk import string from nltk.stem import PorterStemmer from nltk.corpus import stopwords from nltk.tokenize import word_tokenize from nltk.tokenize import TweetTokenizer nltk.download('stopwords') nltk.download('punkt') stop_words = set(stopwords.words('english')) tweetTokenize...
c040dd869ce162e06530bee9d94155d2c3e53bb1
637759f7ee42366d2683cb414b715a4dff487602
/get_new_route.py
f7761df16f3bb71581fd9157be859296cbde33f2
[]
no_license
gseemann/climb_recommender
36b35dd95566328a5555fae350819d8b9b2cc382
277619a52989d01cb2f76e65982c7b5b3b61a762
refs/heads/master
2023-07-19T07:14:52.213524
2021-01-05T15:16:11
2021-01-05T15:16:11
232,151,224
5
1
null
2023-07-06T22:00:53
2020-01-06T17:31:52
Jupyter Notebook
UTF-8
Python
false
false
11,876
py
get_new_route.py
#import libraries import pandas as pd #for api calls from bs4 import BeautifulSoup import requests import json #personal api and aws keys import config import query_helper #helper functions def get_route_info(id_): #get page content web_address = f'https://www.mountainproject.com/route/{id_}' ...
d9cdd707c3ec4522462493da5a8a73a2ece01d8f
6da809050e7faac9b4ad197cd5333d84168ae5b8
/MysterEats_App/models.py
4a25ea21cdce9fb0d386ef1bf580bf0f61a76855
[]
no_license
bouzianey/MysterEats
2a4517de79447f71736bd344fbb6fab2d37d7d8a
dac74ebb042453c9976c920cc706630a244018f5
refs/heads/master
2022-10-21T09:29:50.512520
2020-05-13T18:54:34
2020-05-13T18:54:34
272,792,514
0
0
null
null
null
null
UTF-8
Python
false
false
6,627
py
models.py
from datetime import datetime from itsdangerous import TimedJSONWebSignatureSerializer as Serializer from MysterEats_App import app, db, login_manager from flask_login import UserMixin from time import time import json @login_manager.user_loader def load_user(user_id): return User.query.get(int(user_id)) class ...
be62a6a562210dd85e2a4d56d324f8be17a42c97
1d300d7143393550bb2e136386c11a979f1a5eb0
/TTHAnalysis/cfg/run_ZGamma_cfg.py
4ce6d2eba47f43f206f6e2b46ff83e3d50d5e937
[]
no_license
MT2Analysis/cmgtools-lite
4db0e63e4ad9c5341e4eb168d46e2024f0463c55
e2d5af55c53b0a5ff7bd5584fc7483177d5dd22d
refs/heads/80X
2021-01-13T08:14:21.837670
2017-02-16T17:53:55
2017-02-16T17:53:55
54,978,010
0
1
null
2018-01-19T15:02:42
2016-03-29T13:28:23
Python
UTF-8
Python
false
false
27,004
py
run_ZGamma_cfg.py
import PhysicsTools.HeppyCore.framework.config as cfg #Load all analyzers from CMGTools.TTHAnalysis.analyzers.susyCore_modules_cff import * # Comment this line if you want the diagnostic folders produced along with the output root file cfg.Analyzer.nosubdir = True ##------------------------------------------ ## Re...
34bc7e6c8a877d1c886b61dc3298f8f2dbb4ca63
ebc3025441a4a03238d7ef94f8c239bace1da624
/TakeABreak/takeABreak.py
9228df77fea0ff14bf2454c0e4eba5f5d7bcccfc
[]
no_license
nitinkc/PythonConcepts
c600fca83fe8ad73272f3b08219baf814edb4582
bb451804d767a3fe2d8eb3457e980bc65a4d1db7
refs/heads/master
2023-07-14T16:28:49.273260
2023-06-26T03:38:38
2023-06-26T03:38:38
132,221,480
0
2
null
null
null
null
UTF-8
Python
false
false
277
py
takeABreak.py
import webbrowser import time duration = 2*60*60 #Testing duration = 2 n_times = 6 print ("The Timer Started at " +time.ctime()) while(n_times > 0 ): time.sleep(duration) webbrowser.open("https://www.youtube.com/watch?v=-qlJiGGvPUI") n_times = n_times-1
a57565ad3d633ca424396fd37032e77f7ad11ef8
278b45c0080002e6d61d2a705b399c54ba3b8c19
/models.py
da7031813d8a34514d257cc5a7fa73d6521b389b
[]
no_license
berryweinst/ECoG
f1553cb2a66addb8d62dac123f541c4de590f6f4
13bfdb05fc1be94abbf7eedbd2aa0a5757c9177f
refs/heads/master
2020-03-10T12:36:53.983192
2018-05-15T20:34:45
2018-05-15T20:34:45
129,382,132
1
0
null
null
null
null
UTF-8
Python
false
false
5,119
py
models.py
import matplotlib.pyplot as plt import numpy as np import pickle import h5py as h5 from scipy import stats import torch from torch import FloatTensor from torch.autograd import Variable from torch.nn import Linear, Module, BatchNorm1d, Dropout, ReLU6 from torch.nn.functional import sigmoid, softmax # from attention i...
5ca46dcbfb5cb17916ffec58e572ce74e04bb700
3ac4b5708383964c3ec5eb569261bb8c412a080a
/holidays.py
3065f57d87c25ae5417f8c6715883d166961894c
[]
no_license
SumedhSankhe/NYISO_Baseline
60917335b7e3e1f4e542f20eda8b1a4055f533c7
8ae922deae1891f8949dd3c11c5db09c385062df
refs/heads/master
2020-08-30T17:26:10.896439
2019-11-10T22:49:16
2019-11-10T22:49:16
218,443,908
2
0
null
null
null
null
UTF-8
Python
false
false
997
py
holidays.py
# -*- coding: utf-8 -*- """ Created on Sat Oct 26 02:45:20 2019 @author: sumedh """ # https://stackoverflow.com/questions/33094297/create-trading-holiday-calendar-with-pandas import datetime as dt from pandas.tseries.holiday import AbstractHolidayCalendar, Holiday, nearest_workday, \ USMartinLutherKingJr, USPresi...
e321e07736ff374187f36824af14fe51dc5f34aa
089a1755f9bf5bc20f196e1594d840d9de96cb3b
/jsk_baxter_robot/jsk_baxter_startup/jsk_baxter_tools/xdisplay_image_topic.py
08f523afdd0d5548891b469a7bea5abfb23ab43f
[]
no_license
jsk-ros-pkg/jsk_robot
bdf985f7358afdda77cd2023001de615d835addb
9a1da3dccba70a646dc42c81f911ef2dd2a5475c
refs/heads/master
2023-08-16T20:31:05.752190
2023-08-07T23:50:54
2023-08-07T23:50:54
17,374,635
75
80
null
2023-08-07T23:50:55
2014-03-03T17:59:55
Common Lisp
UTF-8
Python
false
false
2,660
py
xdisplay_image_topic.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import cv2 import numpy as np import cv_bridge import jsk_topic_tools import rospy from sensor_msgs.msg import Image def cv_centerize(src, dst_shape): """Centerize image for specified image size @param src: image to centerize @param dst_shape: image shape (...
482be6573ce3b913b5752419390e439d0054dcf2
9347dc4373bd824763d560303b9be1eb4a525338
/items.py
a8480eb035101e4117dcdb6979b0e0f30e50d646
[]
no_license
ltwt/rent
cca113eff2ddf47270b4c1fb9983ede91f487ba5
f0e97573328029ef453ebc9748c271352fbb59e4
refs/heads/master
2021-01-02T09:15:04.874631
2015-07-10T06:30:46
2015-07-10T06:30:46
38,864,376
0
0
null
null
null
null
UTF-8
Python
false
false
612
py
items.py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html from scrapy.item import Item,Field class RentItem(Item): # define the fields for your item here like: # name = scrapy.Field() title = Field(default='') ...
009408ab675ccc7d46631f27bfa6643d201ae407
cadf64df978069aff38052fdd66a604a7b01ce3a
/fixbody.py
e4f3d317bbe75d9cee233119c50cf44d220f8a17
[]
no_license
st3fan/mozilla-mobile-scripts
bff1ea664259288f3a445a0b34e8ee1a784c0ae5
9c86f08810c98abbd46aaa9914fb06b65bdb1632
refs/heads/master
2023-03-06T23:21:57.395714
2021-02-16T18:06:52
2021-02-16T18:06:52
294,152,939
0
0
null
null
null
null
UTF-8
Python
false
false
614
py
fixbody.py
#!/usr/bin/env python3 import os, re from github import Github # https://github.com/PyGithub/PyGithub PATTERN = re.compile(r"^┆Issue is synchronized with this \[Jira Task\]\(https://jira.mozilla.com/browse/FNX\d-\d+\)$", re.MULTILINE) if __name__ == "__main__": github = Github(os.getenv("GITHUB_ACCESS_TOKEN")) ...
a91ca5000ba26476e15e02163fc15c128fcff1b9
c9b1e04ba65ba3e0af2a8ae86b88187b72bcaa0b
/branches/Release0_72_Branch/buildbot/master/cleanup.py
796fda4a9c598f48d753bf21e993054d6967ee92
[]
no_license
feitianyiren/TaskCoach
7762a89d5b521cfba0827323a9e8a91d1579810b
0b7427562074845ac771e59e24a750aa5b432589
refs/heads/master
2020-04-08T04:56:35.491490
2016-01-12T13:29:03
2016-01-12T13:29:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
784
py
cleanup.py
#!/usr/bin/python # Cleanup the htdocs subdirectory where the buildbot stores the # distribution files (only keep 2 latest versions). Run from cron. import os, re def cleanup(path, rx): files = [] for name in os.listdir(path): mt = rx.search(name) if mt: files.append((int(mt.group...
fcc5241e98c429d6a85d498a8ec1d6cf447af7ae
5761eca23af5ad071a9b15e2052958f2c9de60c0
/generated-stubs/allauth/socialaccount/providers/orcid/provider.pyi
a04a9d78e8a3c4fdede86481d5a6f8e6a0997ca4
[]
no_license
d-kimuson/drf-iframe-token-example
3ed68aa4463531f0bc416fa66d22ee2aaf72b199
dd4a1ce8e38de9e2bf90455e3d0842a6760ce05b
refs/heads/master
2023-03-16T13:52:45.596818
2021-03-09T22:09:49
2021-03-09T22:09:49
346,156,450
0
0
null
null
null
null
UTF-8
Python
false
false
654
pyi
provider.pyi
from allauth.socialaccount.providers.base import ProviderAccount as ProviderAccount from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider as OAuth2Provider from typing import Any class Scope: USERINFO_PROFILE: str = ... class OrcidAccount(ProviderAccount): def get_profile_url(self): ... ...
32728ae2950949667821b2eaf6168a666a4aa1eb
a3d13706f15f7dbbe25406c06b104b3c7fa7739f
/pynotif/setup.py
33748162360afb1178805b96d95eb298bae14063
[]
no_license
jaiwardhan/winSysTrayExamples
6807647a8ba062f1f65b63bd58e1fc65c19277c7
a39cf8419f94e965fac2df5babd95e093011f611
refs/heads/master
2020-03-21T14:10:06.956507
2018-06-26T02:49:21
2018-06-26T02:49:21
138,644,209
1
0
null
null
null
null
UTF-8
Python
false
false
1,004
py
setup.py
''' ################ For notif.py #################### ''' # from cx_Freeze import setup, Executable # setup( # name = "notif", # version = "1.0.0", # options = {"build_exe": { # 'packages': ["win10toast", "six"], # 'include_msvcr': True, # }}, # executables = [Executable("notif.py...
c4fda126575e14800d7e073bdd410d8a8cc4c4c7
1f050907d8c7cbea45ea9b69720ff41d73037bfa
/dashboard/urls.py
cd4085500c2855a786d7807b28429e050f0e996e
[]
no_license
carlosnp/ecommerces
c3d7d94e67612e87d6d4a8125dc9f09cbe60418a
eaf9732594d7b27729ca656a2ae7e913c5bc0285
refs/heads/master
2020-05-24T12:59:21.994764
2019-05-21T17:39:53
2019-05-21T17:39:53
187,280,045
0
0
null
null
null
null
UTF-8
Python
false
false
351
py
urls.py
# Django from django.urls import path, include # Project from .views import HomeView, InternationalizationView, ContactView app_name = "dashboards" urlpatterns = [ path("", HomeView.as_view(), name="home"), path("contact/", ContactView.as_view(), name="contact"), path("Inter18n/", InternationalizationView...
32ea0365eacaa8ed88aee34450045e891257310d
0ce0bcd4a7b48fd9cc7e581628cd0e6fd3a25408
/cajas/concepts/urls.py
fc6770d9a1e2e39957616e79d2cc5c4aee8176a5
[ "MIT" ]
permissive
dmontoya1/cajas
a3f588f6943141849e1c8b351da1db280e8cc04c
5eb3d5835250d5dafae398082200b79c1ca8063b
refs/heads/master
2023-05-06T14:18:31.961086
2019-10-04T00:00:56
2019-10-04T00:00:56
371,432,708
0
0
null
null
null
null
UTF-8
Python
false
false
195
py
urls.py
from django.urls import path from .api.views.concept_detail import ConceptDetail app_name = 'concepts' urlpatterns = [ path("<int:pk>/", ConceptDetail.as_view(), name='concept_detail'), ]
73e86ca1fa59ae005445a263b63047903629a9a9
2b2969e32962f25270a333fdf5ad91425050142f
/TrimRecord.py
63283becc1173612256427f3bce676b0ec60b84d
[]
no_license
AlexanderYastrebov/anki-trim-record
23054f03ca0eafce6c228ac196a52dd8aae60553
323c1a1e6971bd610a374ac006fc3dd16bc5331e
refs/heads/master
2020-03-20T16:54:15.861028
2018-06-16T02:58:27
2018-06-16T03:04:25
137,548,085
1
0
null
null
null
null
UTF-8
Python
false
false
259
py
TrimRecord.py
import anki.sound trim_start="0.25" trim_end="0.15" anki.sound.processingChain = [ ["sox", "-q", "rec.wav", "trimmed.wav", "trim", trim_start, "reverse", "trim", trim_end, "reverse"], ["mv", "trimmed.wav", "rec.wav"], ] + anki.sound.processingChain
c781f7011049f45a9d34a9d87d1ad56e645c06f7
3ea3224d13a71ce61e8f4034ab74c1dc94001aae
/python-app/main.py
99e9f5e5a76492944f1ff47ff5629ac6013f2a95
[]
no_license
nivaldogmelo/docker-talk
71ed517f3861c47b680dcf4eabbf04f3df85a7a4
308fdc746307dca50164d664f95a66dd12de1106
refs/heads/master
2022-12-26T11:17:57.654503
2019-06-13T19:25:32
2019-06-13T19:25:32
191,380,763
1
0
null
2022-12-10T18:47:35
2019-06-11T13:47:04
Dockerfile
UTF-8
Python
false
false
362
py
main.py
import json from flask import Flask, request import requests app = Flask(__name__) @app.route('/') def home_page(): return 'Home Page!' @app.route('/looqers') def get_looqers(): req = request.get_json() looqers = requests.get('http://node-app:3000') var = json.loads(looqers.content.decode('utf-8')) ...
1d8783d6d2b3528db34b3ac731326a66d0963203
a6c5ae4a6c99e5629e7dc7dfc807b4ef3415dd32
/transform_master.py
de6754a152978e08362868abefb83ce8e33f9310
[]
no_license
dqgdqg/Multi_camera_fall_detection
b5f5758f235f3f4f4e504b1112792b0f2fbb777a
cf80c6a2c747859e3a82ea10692a558bdb4574b4
refs/heads/master
2020-04-12T04:05:02.110504
2018-12-30T08:37:28
2018-12-30T08:37:28
162,284,669
4
1
null
null
null
null
UTF-8
Python
false
false
2,520
py
transform_master.py
import os import sys import numpy as np import time from my_models import * import paramiko from keras.preprocessing.image import ImageDataGenerator from keras.models import Model from keras.layers import Input, GlobalAveragePooling2D, Dense os.environ["CUDA_VISIBLE_DEVICES"] = '1' def inference_master(...
0e989d8b786a989e1d46278474badd4d110207e4
6e463b9904c06c06b14c5c50d8e0c2fc4d82e3b0
/input.py
48b78eaffe226e0889f78aab67c87c2426d7613f
[]
no_license
obadiahkorir/Python-Class
52779c67aed86fccd7275bde5d3564ced8e4b60f
6beec9390315db300d6c218f15d850faae6b9cae
refs/heads/master
2020-04-06T14:00:22.515035
2018-11-15T13:59:17
2018-11-15T13:59:17
157,523,682
1
0
null
2018-11-15T13:59:18
2018-11-14T09:26:24
Python
UTF-8
Python
false
false
154
py
input.py
num1=int(input("Enter First Number:")) num2=int(input("Enter Second Number:")) float=num1-num2 print("The difference between",num1,"and",num2,"is",float)
b08134297f196364a7166a8cb95ff233dee4577f
3373978e9dbbe394d45995d800964c67d1abcd4d
/projeto_p3/resources.py
d915e3d965ee66ad79920ee8ac0895905612a983
[]
no_license
a32940/projeto_p31
1995a419efec24ca144b959d78b88c8516f32d43
9c7cfc36550474ffef166ca0c2a6431b66b5ee3b
refs/heads/master
2022-11-02T17:30:16.655123
2018-10-22T18:20:29
2018-10-22T18:20:29
128,791,806
0
1
null
2022-10-28T23:36:41
2018-04-09T15:17:08
Python
UTF-8
Python
false
false
283
py
resources.py
from import_export import widgets, fields, resources from import_export.widgets import ForeignKeyWidget,DateWidget from .models import obras from django.conf import settings class obrasResource(resources.ModelResource): class Meta: model = obras exclude = ('dono_de_obra',)
ec2adef8044c5aefd3e4aaadf7c34c3a812cb009
c28d577a955e7783344cb4ab79c552f30c98af44
/Boatwright_et_al.,2018/assembly_and_qc_scripts/fix_fastq_files_v2.py
4550ee6be2fdc28bd5761149751688145064a60d
[ "MIT" ]
permissive
GatorShan/papers
607aca46e79487d7004db829f4925b2cc68b904d
fc77bcae17d475da99d758407be3ff7f9b298c3d
refs/heads/master
2020-11-25T10:46:22.286149
2018-10-30T18:18:26
2018-10-30T18:18:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,082
py
fix_fastq_files_v2.py
#!/usr/bin/env python import sys, os, Bio, re, itertools, operator, collections, csv, argparse from Bio import SeqIO from Bio.Seq import Seq from Bio.SeqRecord import SeqRecord from Bio.Alphabet import IUPAC from itertools import islice ## script replaces spaces in fq read id with an underbar # Parse command line ar...
92ef3ae1c53ef02a7fd87c05ba0208b3b5333fb8
9588892810313d988039b030a71d8aea2987cf29
/stringstat.py
7eef89d5446f378abd4912796a5558fdbe589962
[]
no_license
yilmazerhakan/Shannon_Entropy
d1e6beb92b0e5a7689d469ee57301c8dafae0e09
c12fff8f8a5201fd4bbe45d1a091f55379d920d4
refs/heads/master
2021-01-17T06:16:25.150225
2013-01-20T06:20:12
2013-01-20T06:20:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,232
py
stringstat.py
#!/usr/bin/env python """ Classes and functions needed for calculating the Shannon entropy of text. """ #----------------------- #Imports #----------------------- from math import * from UserList import UserList import copy import sys import string #----------------------- #Classes #----------------------- class Que...
588669e3b8e9d630d0b8785e90872e238b287706
9a123c2a3be7dbd2d5c60a4e5830b903b9b6e552
/module_build_service/migrations/versions/caeae7a4f537_ref_build_context.py
ffc2e25e676bb7e09ca6aee9d9eb9c07db8c410a
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
James6xie/fm-orchestrator
d3b24093d1c635142dc57262382fdae869cd82b1
d3656b159b457126f99c323f49572809c7afc47d
refs/heads/master
2023-02-19T04:35:25.791000
2020-11-30T19:25:13
2020-12-04T12:08:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,501
py
caeae7a4f537_ref_build_context.py
"""Add ModuleBuid.ref_build_context. Revision ID: caeae7a4f537 Revises: 9ca1c166f426 Create Date: 2018-04-18 13:37:40.365129 """ # revision identifiers, used by Alembic. revision = 'caeae7a4f537' down_revision = '9ca1c166f426' from alembic import op import sqlalchemy as sa # Data migration imports from module_buil...
dd4bd553a6bb8c3667f4caca72b8b499eed38c4d
824dd0d6d2f528dc00ef0d1f3fca8a3ea5a1df7d
/problem/15/python/solve_15.py
1a83c9fa01905257e18bbd1fa3f73c24da67cdd0
[]
no_license
Rotwang/stuff
a712710b17bdfbe8ec7a0d52c02fea928db465b8
4674778d53f4216d16ee80fa2869e8c3114c5c84
refs/heads/master
2021-01-18T14:19:11.470548
2018-03-24T19:17:49
2018-03-24T19:17:49
2,186,573
0
0
null
null
null
null
UTF-8
Python
false
false
1,665
py
solve_15.py
#!/usr/bin/env python def find_indexes(x,arr): for i in range(0, len(arr)): if x in arr[i]: return [ i, arr[i].index(x) ] grid_height = 3 grid_size = grid_height ** 2 grid = [ 9 for x in range(0, grid_height) ] grid[0] = [ 1, 2,...
d7563f3bb7268671a1b776db58cf963936ce967e
9ac65c7dbc4f0256c19a156329c1ffec9d307659
/Sum of squares.py
447bd648a31c9314e91f9f05f9c52b8fd1badf60
[]
no_license
jps27CSE/Python-Programming
7f8dd41d3aa53a317bff202d5d376c7aee5bcc43
5513771bd37ca24664126578b172bbe2c8298bd6
refs/heads/master
2022-12-03T07:15:32.704823
2020-08-27T06:25:53
2020-08-27T06:25:53
285,767,193
1
0
null
null
null
null
UTF-8
Python
false
false
222
py
Sum of squares.py
def squares(number): final=0 for i in range(number+1): square=(i**2) final=final+square return final inNumber=int(input("enter a number:")) result=squares(inNumber) print(result)
227b61cb7865c57e669f79196e60eca0e93a1175
3d19e1a316de4d6d96471c64332fff7acfaf1308
/Users/A/atogle/boston-restaurant-inspections.py
040b7f4cd5f86faf1f6bc58e669b42a09490ba59
[]
no_license
BerilBBJ/scraperwiki-scraper-vault
4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc
65ea6a943cc348a9caf3782b900b36446f7e137d
refs/heads/master
2021-12-02T23:55:58.481210
2013-09-30T17:02:59
2013-09-30T17:02:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,692
py
boston-restaurant-inspections.py
############################################################################### # Scrape Boston restaurant inspections via # http://www.cityofboston.gov/isd/health/mfc/search.asp ############################################################################### import scraperwiki from datetime import datetime from Beauti...
37d514048fb2c2ea105f0acf18283db17ce80d1f
904ba254ffb0c53643526276ca3642e17bbae8b4
/password.py
c6bda997ae6bc2a8d39171e405800d72e7287250
[]
no_license
devcoder2020/python_password_generator
b9d97e90d9bd265d10d363d67595b79f35535865
b97e25ca8b012f48fe4020eaa6cc08313f0a6382
refs/heads/main
2023-02-06T09:50:03.719010
2020-12-29T13:58:34
2020-12-29T13:58:34
325,296,348
0
0
null
null
null
null
UTF-8
Python
false
false
1,585
py
password.py
# Lee Haynes # Phone: + 44 (0) 785 374 0636 # Email: LeeHaynes2019@yandex.com # Website: http://www.devcoder.me.uk/ # Instagram: junior_web_developer_2020 # Create password generator import random min_passwd_length = 8 # Created a password list password_list = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1...
1c3ffff6476b47c5146b3e17f1ab0517b40f2daf
98810fbf90a42028915a88bfac9fb8cb8681008e
/azure-devops/azext_devops/devops_sdk/v5_0/task_agent/task_agent_client.py
91d347319f8eb62605586e64e0dd71199dbc8e8c
[ "MIT", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-unicode", "LGPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "PSF-2.0", "PostgreSQL", "LicenseRef-scancode-python-cwi", "LGPL-2.1-or-later", "LicenseRef-scancode-proprietary-license", "LGPL-2.1-only", "C...
permissive
Azure/azure-devops-cli-extension
ba87357a8243e1318f100791fc32acbb59448d05
bd34a6fd0658a15dadf6c09c7f6217ca5ffa662b
refs/heads/master
2023-08-29T10:56:54.228674
2023-07-17T04:37:06
2023-07-17T04:37:06
107,708,057
419
208
MIT
2023-08-02T02:10:10
2017-10-20T17:39:11
Python
UTF-8
Python
false
false
31,861
py
task_agent_client.py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------...
000d453a37964b5e7c827b7e812e319bd9dfcb86
a6b1be08930b14370c11ceca2b3e549503273da3
/dotExe/Aion/models.py
7c6e46355e91a9ee208ff4be3992923ef2cdc9af
[]
no_license
Jringas/secprog
d02464c2ef7b52ea25e457370b46319b1eb73d05
f9e720576d5ebad1e61dc6546874ede6f228f66a
refs/heads/master
2020-03-11T18:32:06.096400
2018-04-19T20:19:51
2018-04-19T20:19:51
130,179,619
0
0
null
null
null
null
UTF-8
Python
false
false
4,564
py
models.py
from django.db import models from django.utils import timezone from datetime import datetime from django.core.validators import EmailValidator from django.core.validators import MinValueValidator from django.core.exceptions import ValidationError from passlib.hash import pbkdf2_sha256 # Create your models here. privile...
b28e0ff8de250c6f687271e7ba5a73e2f57ed302
fbba65dab44197cce8f8ba4dda93289d7f576608
/remove_duplicates.py
74b331b8d7b5e523aade93bb2df8c0f3ed5a2317
[]
no_license
elhakimyasya/Sample-EL-Creative-Academy
eae552e64ac0fa8642d1db79871f2b471dd33574
ad291b15b1462f64307bd53cfaaab79348fa03cc
refs/heads/master
2023-03-09T06:41:20.613627
2021-10-27T00:07:00
2021-10-27T00:07:00
236,825,857
3
7
null
2023-03-05T09:38:40
2020-01-28T19:47:19
CSS
UTF-8
Python
false
false
90
py
remove_duplicates.py
list_ku = ["a", "b", "a", "c", "c"] list_ku = list(dict.fromkeys(list_ku)) print(list_ku)
1091df36195499a8c3cc4217f99b4228107cfc72
9b704c68c8dc0ad5b66581e4d185af9d588ff026
/wtform_fields.py
015b5746eeb8d25d78b08e319651360f03331644
[]
no_license
fernanet/api
016232068ce67bf8bc524a7c7fa0069e3c563ec5
a6d16b02500d9a392e807dd883c5b058c9450dfd
refs/heads/master
2023-08-16T03:27:22.766844
2021-10-07T18:36:50
2021-10-07T18:36:50
410,401,357
0
0
null
null
null
null
UTF-8
Python
false
false
1,979
py
wtform_fields.py
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField from wtforms.validators import InputRequired, Length, EqualTo, ValidationError from passlib.hash import pbkdf2_sha256 from models import User def invalid_credentials(form, field): """ Validador de nome de usuário e senha ""...
333187ae4a804f332491d8599e0ade2bdf0ea92a
635c110f7fd0c2b7a90b6a11fb9f461a2cc91f5b
/LeetCode/Easy/1022. Sum of Root To Leaf Binary Numbers.py
e94e12ce2f34d4d78df0bb5c3f30b07f73f44712
[]
no_license
Njokosi/python
95ebab73344bf6bb41ad5e39d7cd5bb9212fec14
0e54d6f0c566d0fb100e5a001ba0043f401fd3ff
refs/heads/main
2023-02-02T00:51:02.428933
2020-12-19T15:23:08
2020-12-19T15:23:08
322,874,998
0
0
null
null
null
null
UTF-8
Python
false
false
1,919
py
1022. Sum of Root To Leaf Binary Numbers.py
""" You are given the root of a binary tree where each node has a value 0 or 1. Each root-to-leaf path represents a binary number starting with the most significant bit. For example, if the path is 0 -> 1 -> 1 -> 0 -> 1, then this could represent 01101 in binary, which is 13. For all leaves in the tree, consider the...
498aae8a6c7b4059fe863c91d3810f68c5ef0b95
b802d20a3a3b3b16e89a6a484de519ec76200cd6
/test.py
14679924a36b2b079bd0565bc1d42a3e2d90b184
[]
no_license
ZelinW/Dissertation
46a2488ad03e0fcca4f490fada5df8c29ba54a12
451047362845757ea9f27f6bf6a1fb4c471be321
refs/heads/master
2023-06-13T22:18:30.790664
2021-07-15T23:33:52
2021-07-15T23:33:52
386,076,586
0
0
null
null
null
null
UTF-8
Python
false
false
2,033
py
test.py
import matplotlib.pyplot as plt import numpy as np import torch from ACDC_data import load_nii, crop_image, rescale_intensity, data_augmenter, onehot2mask, mask2onehot from config import get_cfg_defaults from model.SemSegment_pl import SemSegment def accuracy(pred, truth): return np.mean(np.equal(pred, truth)) ...
87a7a857c7680bfa1851f741fc2e3586a3ea2321
6eec2948c0907b5377de51e61014a48dff3d5ce7
/graficos/calculadora.py
e34d0f5b02d5f8a092b1b7c3bf8d8be6ebbb945b
[]
no_license
clcneogeek325/Script_python
4da937cb2caee93a2e0eb945e77ccac8e88ec4bc
87607c97fa738b3e64aefbe0e8c4425724ecff73
refs/heads/master
2021-01-17T07:44:07.124077
2016-06-04T03:26:44
2016-06-04T03:26:44
15,943,668
0
0
null
null
null
null
UTF-8
Python
false
false
2,046
py
calculadora.py
import pygtk, gtk pygtk.require('2.0') class Calculadora: def destroy(self, widget, data=None): print "La aplicasion ha terminado" gtk.main_quit() def __init__(self): self.wx = gtk.Window(gtk.WINDOW_TOPLEVEL) self.wx.set_position(gtk.WIN_POS_CENTER) self.wx.set_size_re...
736965283b0f26238b1f9bbc304208135e21c119
c45ffbb25f14b33d85bb1eff2504b28b898d973c
/migrations/versions/7849e34112a0_.py
d0c209aae6ff5dff28880e5e4196472079469694
[]
no_license
ttrnecka/rebbl-stock-market
d15178c83a486a993dbf28fdff3edd57623c1e95
96646691b5849b5a358762d93c3fc8fc431b2c84
refs/heads/master
2020-06-30T11:58:08.010782
2020-01-28T18:37:40
2020-01-28T18:37:40
200,819,107
1
0
null
null
null
null
UTF-8
Python
false
false
3,965
py
7849e34112a0_.py
"""empty message Revision ID: 7849e34112a0 Revises: Create Date: 2019-08-06 15:35:04.975879 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '7849e34112a0' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
dc4471054a9f1c80160f9112768c2888326dffee
922e923bdab099efa7161f5806ed262ba5cc84c4
/apps/pages/migrations/0018_boardmeetingyear.py
fae48608a6d29703daad73d56bd984027ac5f46d
[ "MIT" ]
permissive
iamjdcollins/districtwebsite
eadd45a7bf49a43e6497f68a361329f93c41f117
89e2aea47ca3d221665bc23586a4374421be5800
refs/heads/master
2021-07-05T19:06:12.458608
2019-02-20T17:10:10
2019-02-20T17:10:10
109,855,661
0
0
null
null
null
null
UTF-8
Python
false
false
1,486
py
0018_boardmeetingyear.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-12-07 21:37 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import django.db.models.manager class Migration(migrations.Migration): dependencies = [ ('objects', '0004_event'), ...
a5e234b976bc4f4e7cf794ed96c29f98393b4358
42b7a1a874237019a0d03a6cb679157a4ffd7a50
/models/name.py
1cbe26a99b51d17579a99cb1abc34f7cafa38055
[]
no_license
minhduc9699/whotocall
b0c641a3252db8b003b1905d8d46a064232182f0
76f0b9c6ba4e52d4b773caa13b1513414e75acac
refs/heads/master
2020-03-11T20:10:53.514726
2018-05-10T11:39:41
2018-05-10T11:39:41
130,229,932
0
0
null
null
null
null
UTF-8
Python
false
false
404
py
name.py
from mongoengine import * class User(Document): fullname = StringField() email = StringField() username = StringField(unique=True) password = StringField() class Name(Document): name = StringField() audio = StringField() class Character(Document): char = StringField() audio = String...
5a1fff2b5771e46724582f6d0816691891db91cd
1d9dcd282d0e6eb6c1037b5cea7e8d42e2b4eac8
/proj/hps_accel/gateware/get.py
c40ef3351b0279203dca665d823a26fce1008a11
[ "Apache-2.0" ]
permissive
JosephBushagour/CFU-Playground
2bcfa7e779c10c26d181af69f72f673d0ce44e7e
d4f660ad81f8807558120bbd311371eff1a0ce3b
refs/heads/main
2023-07-09T20:37:07.648389
2021-08-17T20:52:57
2021-08-17T20:52:57
375,424,619
1
0
Apache-2.0
2021-06-09T16:41:36
2021-06-09T16:41:36
null
UTF-8
Python
false
false
5,092
py
get.py
# Copyright 2021 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
32c36da8f97b11e58256d7f7cd1c4dc173751219
171cec9275f0c0c9af6e7aa00b2bc274a223fe0f
/Demo/phanloai.py
9015d213885a01ede6c5fac681f663e31cadfb6b
[]
no_license
zhangwq740/classification_animal_sound
276a8b5760a46e1e8be8034f15cdc4bf69726158
f3c7267672b5195eb8dfce3c15c448d5f2b3efb3
refs/heads/main
2023-06-09T06:07:06.809324
2021-06-22T05:04:54
2021-06-22T05:04:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,398
py
phanloai.py
import os import time import numpy import scipy import pandas import sklearn import seaborn import matplotlib import matplotlib.pyplot as plt import librosa import librosa.display import IPython.display as ipd from sklearn import neighbors,datasets from sklearn.model_selection import train_test_split from sklearn.metri...
2f52370876286470476cd02b09421db93e8d352e
94fd404ddeb3a5e04eee75235a37e33186256160
/teamregistrations/apps.py
3681c6317adf7064cc65e49edd5bbe362da421eb
[]
no_license
nkpc14/Sapphire
171ad973df10b314260085f7406c5cff896892ce
662e2eac2d99ebb3cfa0837f96be93945dd18285
refs/heads/master
2020-09-03T07:29:26.385083
2019-11-04T04:18:34
2019-11-04T04:18:34
219,416,331
0
0
null
null
null
null
UTF-8
Python
false
false
109
py
apps.py
from django.apps import AppConfig class TeamregistrationsConfig(AppConfig): name = 'teamregistrations'
8b2273e720efbe843783ef5689bd987c337f1e62
8ead7b07b7dcef814145a45dd32309dec3d70fb9
/ADMCode/snuz/ars/lqr_env.py
f24a304e90259ad85e9df8efaf94002a85d8ee91
[ "MIT" ]
permissive
CoAxLab/AdaptiveDecisionMaking_2018
48ca67f233c52f2df3e3717ab61e8b84862aabf8
bc5acb77edff67699a91c3721ff4605d25a39101
refs/heads/master
2023-08-04T02:01:46.753476
2023-07-20T15:34:12
2023-07-20T15:34:12
148,518,954
10
6
MIT
2022-09-19T17:34:48
2018-09-12T17:47:04
Jupyter Notebook
UTF-8
Python
false
false
1,560
py
lqr_env.py
import gym from gym import spaces from gym.utils import seeding import numpy as np from os import path class LQR_Env(gym.Env): def __init__(self): self.viewer = None self.A = np.array([[1.01, 0.01, 0.0],[0.01, 1.01, 0.01], [0., 0.01, 1.01]]) self.B = np.eye(3) self.d, self.p ...
9f3a772f7014b4fca38a1bf1801d1d7a1b8ef781
7c7fec37e1e21bf04d596aa0f8a1d5c936b754f3
/dut/image.py
0f5d7d282c5607928264ef357f526d49133f98da
[ "MIT" ]
permissive
gemmanguen/cnn-coprocessor
9a566c6b4fd2ccf21a14bda9716558d12500f684
156eb39ea472573563440ad852d3706e42252748
refs/heads/master
2023-03-18T18:47:59.647462
2020-09-14T02:28:18
2020-09-14T02:36:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,220
py
image.py
#!/usr/bin/env python3 """ Testbench for the image_write module. """ from typing import Dict import testbench as dut # type: ignore def concat_cfg1(arg0: int) -> int: return (arg0 & 0xffffffff) def concat_cfg2(arg1: int, arg0: int) -> int: shift_arg0 = (arg0 & 0x0000ffff) shift_arg1 = (arg1 & 0x0000f...
35f1abf12128884e391295a55cf5407ace02ce7d
e7193b43c25f5397384d95d1d8b2973cf3e4c3e4
/Python 3 Programming/2.Python Functions, Files, and Dictionaries/Project/Code.py
7666e6e6a64506fd3b81e6a2e2e4505fb8fb6831
[]
no_license
AhmedSimeda/Coursera-Courses
1e95a008456cc1fc59ab9810269141c5f49a1b0a
51c2aeb77332fdf9b78b027a8958c2f00ff44203
refs/heads/master
2022-12-31T06:45:17.946768
2020-10-13T11:51:11
2020-10-13T11:51:11
284,992,725
0
0
null
null
null
null
UTF-8
Python
false
false
2,443
py
Code.py
#!/usr/bin/env python # coding: utf-8 # In[ ]: punctuation_chars = ["'", '"', ",", ".", "!", ":", ";", '#', '@'] # lists of words to use positive_words = [] with open("positive_words.txt") as pos_f: for lin in pos_f: if lin[0] != ';' and lin[0] != '\n': positive_words.append(lin.strip()) ne...
cdc31049ebcac53ac9238f27c9f24bd3998c5c37
3dc4cacb54fc59b71eb89cfae6d474e5700ac1dc
/code/cfads_by_drosdowsky_MJO.py
1ccacc4c7da39c27ecadbf79b2c5e6f6c8b92cf1
[ "MIT" ]
permissive
EVS-ATMOS/cmdv-rrm-anl
12e5c31602f9a8b9cfb2586c0b950e04d1459bd4
fde36aa21037bcdf396df0517d463fb4107fab82
refs/heads/master
2021-01-19T12:07:45.854107
2018-11-30T15:01:18
2018-11-30T15:01:18
70,076,653
0
2
MIT
2018-11-30T15:01:19
2016-10-05T16:07:55
Jupyter Notebook
UTF-8
Python
false
false
10,261
py
cfads_by_drosdowsky_MJO.py
import matplotlib matplotlib.use('Agg') import pyart from netCDF4 import Dataset import numpy as np from datetime import datetime, timedelta from copy import deepcopy import glob import math import dask.array as da from distributed import Client, LocalCluster from dask import delayed, compute import time import sys fro...
4bfe87ffcaebaef9b6aee1cf264e190f8ff44a33
b12ce8c94708d4956637a22a1fd7bac934b0114d
/thinc/tests/layers/test_pytorch_wrapper.py
aa40d9044146f5ecedaf516603533f9d0c645719
[ "MIT" ]
permissive
explosion/thinc
b7774921197f31f04ae653c377999b5e3375c877
cc91edcfc86fe8b684b1dcebd04fce08893b6ae4
refs/heads/master
2023-08-27T21:05:05.435971
2023-08-11T07:15:00
2023-08-11T07:15:00
25,311,354
2,827
305
MIT
2023-09-11T10:46:47
2014-10-16T16:34:59
Python
UTF-8
Python
false
false
6,951
py
test_pytorch_wrapper.py
import numpy import pytest from thinc.api import ( SGD, ArgsKwargs, CupyOps, Linear, MPSOps, NumpyOps, PyTorchWrapper, PyTorchWrapper_v2, PyTorchWrapper_v3, Relu, chain, get_current_ops, torch2xp, use_ops, xp2torch, ) from thinc.backends import context_pools ...
77a9e095c218f9338b8f1b3f1ab6ac0fca5269d3
af0b9a47a3679e2aee66604622d87c560c403be5
/plot_graph_example.py
cc9b092feb94ee726790563305f58c0c167eb3e9
[]
no_license
AnnyWang/graph-based-bandit
4cc1292db539835b0ecbff25a42387f75e0df8dd
b626bb7c12c351f8e9ca33852656297760cbddd9
refs/heads/master
2022-04-04T21:27:33.768191
2020-01-27T16:29:02
2020-01-27T16:29:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
498
py
plot_graph_example.py
learned_graph=create_networkx_graph(node_num, primal_adj) edge_num=learned_graph.number_of_edges() edge_weights=primal_adj[np.triu_indices(node_num,1)] edge_weights[edge_weights<0]=0 edge_color=edge_weights edge_alpha=edge_color nodes=nx.draw_networkx_nodes(learned_graph, knn_pos, node_color=learned_signal,node_s...
523942872164efceb19476a9d841acff3b5bbcfc
427d4f539ab798c41e50bcca18d1b34ac45a9fe9
/my_modules.py
18d75e50456ed5711b97902e298384c193738a28
[]
no_license
SHawkeye77/stj
84006aa9a740472a284f7e478e3e094d7f2f7a9f
7fa82350ef8ba4e421b17ecaa9f1fd884d77a769
refs/heads/master
2022-06-24T23:59:00.644585
2020-05-08T16:25:50
2020-05-08T16:25:50
236,225,417
0
0
null
null
null
null
UTF-8
Python
false
false
545
py
my_modules.py
# My created modules for this project import random import os def get_rand_image(): # Returns name of random image file (non-hidden) image_name = random.choice(os.listdir("./images/")) while (image_name[0]=="."): image_name = random.choice(os.listdir("./images/")) return image_name def get_ra...
3aa9c54aa95930faa0d0e82903795bc0192515e8
b26adfeba0bec8ad1030ef3eecef6584fc350a0d
/clean.py
1611a0bed8089ee4c75c52b3c84b575eebe72338
[]
no_license
chai-wanchai/PredictRainfall
673d9abb30a659925aff0272cc0f83f30cb57e29
c305a269d3eea6f3824a19f5794c880a6e96a533
refs/heads/master
2022-12-11T21:28:08.466096
2017-12-01T14:57:52
2017-12-01T14:57:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,727
py
clean.py
import pandas as pd import os def MixAndCleanFile(pathOfFile,Filename): col = ['Date', 'Lat', 'Long', 'avg_IR8', 'max_IR8', 'min_IR8', 'avg_IR13', 'max_IR13', 'min_IR13', 'avg_IR15', 'max_IR15', 'min_IR15', 'diff_avg_IR8-13', 'diff_avg_IR8-15', 'diff_avg_IR13-15', ...
7a583fba3cda63f0c2de399e96ca561ea361bf89
95a4d0f2577ac4220733ba89d5a2b2b61e4173db
/lc-python/src/lock/249. Group Shifted Strings.py
11b90fa3f2a55aecd4237192d2c6ea4902761ca1
[]
no_license
christina57/lc-python
e00a75e642b9d382a5c68925d316215d4a9f2970
4406b55946f58d3efb2d70040a80ef454b9c78eb
refs/heads/master
2021-01-10T13:04:32.869448
2017-07-15T07:02:07
2017-07-15T07:02:07
43,226,636
0
0
null
null
null
null
UTF-8
Python
false
false
1,023
py
249. Group Shifted Strings.py
""" 249. Group Shifted Strings Given a string, we can "shift" each of its letter to its successive letter, for example: "abc" -> "bcd". We can keep "shifting" which forms the sequence: "abc" -> "bcd" -> ... -> "xyz" Given a list of strings which contains only lowercase alphabets, group all strings that belong to the...
552c1744a046bb13e75a95d8611968093904940a
9ad53657cb6521833eed693508ebca71db63f58e
/LoggerWrapper.py
4d908154474f4c7458dbc86d2956e810cbfe00cb
[]
no_license
shivamdutta/needle
ba5cba8e45d7015b7e0173ac2a7065b62503ebf4
dde1aeda3beb772865b5d5b9aa673bf15eb83c15
refs/heads/master
2023-08-14T12:36:45.027661
2020-10-02T04:42:43
2020-10-02T04:42:43
201,234,049
0
0
null
null
null
null
UTF-8
Python
false
false
1,102
py
LoggerWrapper.py
import logging class _Singleton(type): """ A metaclass that creates a Singleton base class when called. """ _instances = {} def __call__(cls, *args, **kwargs): if cls not in cls._instances: cls._instances[cls] = super(_Singleton, cls).__call__(*args, **kwargs) return cls._instan...
225eb5e799e07117f738e5c112224463c883e3a1
09f26e62f24147a2ee999f1a5c02aaac19d564db
/fileHandlingUtils.py
b5e7d6cfba1c7fb05dbed4ab764bcf4e75310ad4
[]
no_license
torococo/OvarianCancer
e114e4aeb1dda082d94c65ea6d5089df221fce60
68847a6369dc5227c58a5437aba4ba5e25da229c
refs/heads/master
2021-01-19T23:26:23.188303
2017-06-14T13:54:51
2017-06-14T13:54:51
88,984,982
0
1
null
null
null
null
UTF-8
Python
false
false
699
py
fileHandlingUtils.py
import numpy as np import re import os # ======================================================== # Function to get coreID from file name via regex matching def GetCoreId(fName): regex = re.compile(r'\d+') coreId = regex.findall(fName) return int(coreId[0]) # ==============================================...
5126e8135b9dd3f987d442d9753bfa0a82748847
34443cbcdd4c71e57225792c16d646634b8615fb
/creator.py
5a25bfc4918b17d441ed3cf22e0f7bf34ae63256
[]
no_license
Misn/sm
400d7dab3d344698754919ba78160b78aec9513c
3c743ee0435debe7ffa7d8dfeafc345b0b2997a6
refs/heads/master
2016-09-05T10:33:02.802043
2015-01-08T21:52:41
2015-01-08T21:52:41
28,482,028
0
0
null
null
null
null
UTF-8
Python
false
false
6,328
py
creator.py
#!/usr/bin/python3 from subprocess import call from tkinter import * from tkinter import ttk class Point: def __init__(self, x_coord, y_coord, p_delay): self.x=x_coord; self.y=y_coord; self.delay=p_delay; #def parameters_write(*args): #try: #pic_file=open("pic_file", 'w'); #pic_file.write("{0} {1} {2}"...
ed08747e6c368567028ea47498e3def3ef5332a5
f33b30743110532ddae286ba1b34993e61669ab7
/126. Word Ladder II.py
5e27d453e846d0d5ef6f60f3fbc14fc65689b832
[]
no_license
c940606/leetcode
fe9dcee7a5daa4d52999d5f53253dd6dd33c348b
631df2ce6892a6fbb3e435f57e90d85f8200d125
refs/heads/master
2021-07-10T14:01:26.164966
2020-08-16T10:46:16
2020-08-16T10:46:16
186,588,449
3
0
null
null
null
null
UTF-8
Python
false
false
2,753
py
126. Word Ladder II.py
class Solution(object): def findLadders1(self, beginWord, endWord, wordList): """ :type beginWord: str :type endWord: str :type wordList: List[str] :rtype: List[List[str]] """ cur = set([(beginWord,)]) n = len(beginWord) wordList = set(wordList...
f79d7f5fec5178958cc6d4fcd0e08534d6548b8d
53da67c60accc532931730162df04bca7a5b7326
/pdfex/native_content_value.py
6d8718079dc07583c6e71a7914072d089d92f430
[]
no_license
garnhold/ompnbox
a469f5ea396093f6f923918e3efe58009d9e3ce4
b0f9115978b426c0fa5a3a4666bb65c4201926e4
refs/heads/master
2020-12-07T06:49:43.388509
2020-01-09T04:53:31
2020-01-09T04:53:31
232,662,561
0
0
null
null
null
null
UTF-8
Python
false
false
145
py
native_content_value.py
#import pdfex class NativeContentValue(object): def __init__(self): pass def render_content_value(self, content_renderer): pass
12cadf616900c6c7e38dc1c978c75b203a541ce5
6415c13547e6943f7b65337cbd2790c4e18723c8
/netbox/circuits/migrations/0032_provider_service_id.py
58936d1bdc055041af94c40122dd1e2c2e8b8354
[ "Apache-2.0" ]
permissive
netbox-community/netbox
287254a9698270d51f57b1297118e9f01536da5a
506884bc4dc70299db3e2a7ad577dd7fd808065e
refs/heads/develop
2023-08-24T09:11:46.685121
2023-08-23T18:44:14
2023-08-23T18:44:14
52,796,596
8,122
1,817
Apache-2.0
2023-09-14T18:16:01
2016-02-29T14:15:46
Python
UTF-8
Python
false
false
417
py
0032_provider_service_id.py
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('circuits', '0004_rename_cable_peer'), ('dcim', '0145_site_remove_deprecated_fields'), ] operations = [ migrations.AddField( model_name='providernetwork', nam...
79ea29c99bafd6f582a31131456e09e5124ce031
391dfd77c1bb85c08b4ead451ecdab0858eb141f
/moderngl_window/loaders/scene/wavefront.py
ebf5ba829d801b576d1477d905265c9e6bae0d87
[ "MIT" ]
permissive
moderngl/moderngl-window
308682b5aa625dbb49ca554459bed9853a5e69c3
200f2b9ea8b350b0ac9bb6a2d24310c0d8227794
refs/heads/master
2023-05-28T00:33:49.924394
2023-05-18T11:06:26
2023-05-18T11:06:26
172,498,670
205
48
MIT
2023-09-01T17:45:51
2019-02-25T12:05:57
Python
UTF-8
Python
false
false
5,538
py
wavefront.py
import logging import os import numpy import pywavefront from pywavefront import cache from pywavefront.obj import ObjParser import moderngl from moderngl_window.loaders.base import BaseLoader from moderngl_window.opengl.vao import VAO from moderngl_window import resources from moderngl_window.resources.decorators i...
4647d2414351a0db7880e74d28a6c13216b4c99d
49904d1954c6410c2d390962184d141801849333
/Python/Longest Palindromic Substring.py
cf67183d3c630b2d35d43d9023bba617fbfc3b47
[]
no_license
moyantri/Hacktoberfest2021-1
7e12ca33ba89ecbb149243c7b56cb5925f7bd77b
0c9c9db5bd3855ba332335ecfc0c63f5830912fb
refs/heads/main
2023-08-29T12:43:40.356978
2021-10-04T15:02:26
2021-10-04T15:02:26
413,462,701
0
0
null
2021-10-04T15:02:27
2021-10-04T14:42:37
null
UTF-8
Python
false
false
533
py
Longest Palindromic Substring.py
def longestPalindrome(self, s: str) -> str: res = s[0] max_length=1 for i in range(len(s)): # if max_length>len(s)-i: break for j in range(len(s)-1,i+max_length-1,-1): if s[i:j+1]==s[i:j+1][::-1]: max_length=j-i res=s[i:j+1] ...
749a0127b97ffc3e5a2fb8fba139043371e04bcf
d87f2eb7f360f29c23a02df0619c32f3bff549ea
/Nurse_A/Nurse_A/__init__.py
76bdb09aff86f5c1836b21d6dd81617ae5625981
[]
no_license
ianxiaohanxu/gather_test
962be60edb01e1d2bffa0419c05c274b3f52f608
fe9ec9ec341b20b76f26f6e8ed64898e4049d908
refs/heads/master
2021-01-10T09:42:15.003052
2016-02-24T06:46:48
2016-02-24T06:46:48
36,235,001
1
0
null
2015-05-30T16:39:46
2015-05-25T14:15:25
Python
UTF-8
Python
false
false
51
py
__init__.py
import Platform, Scenario, Settings, Ext_unittest
0ee4fe22f1cb9b86f112091bdfeeb1f088d741e8
a1aafda89bee1b3abb04db7c8ce60a5786a5dacc
/setting.py
045b412c45d07c7caea378d2541e7f3541d1bd59
[]
no_license
bbill/elec5517-assignment1
92fe572ad528f59203c82d180d9d6c1fa5d7c17b
f806bdd064d5e6513722609991691a1966bc30b7
refs/heads/master
2022-02-19T17:19:49.674719
2019-09-29T12:45:06
2019-09-29T12:45:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
217
py
setting.py
# Common Setting for monitoring module. MONITOR_PERIOD = 10 # For monitoring traffic TOSHOW = True # For showing information in terminal
3dfb36531cae22bc41bf23969c738d473687716c
83e1f140336bd56bc5f59e7654f348673fe51b13
/interview_practice/max_prodOfThree.py
f9d1785cc98bfee11948e34cfc68794a82eccb2f
[]
no_license
Lohit9/MasterYourAlgorithms
e812a6bc45537927bbf82d964e07ed2c888dd14b
007885cfead14d2b8b7d77843f6dd96d18f38c9c
refs/heads/master
2021-01-09T06:48:48.377079
2017-03-10T23:33:37
2017-03-10T23:33:37
37,003,173
4
0
null
null
null
null
UTF-8
Python
false
false
314
py
max_prodOfThree.py
def max_prodOfThree(nums): nums.sort() currProd, pastProd = 1, nums[-1] # for i in (1, len(nums)): # currProd = nums[-1-i]*pastProd # if pastProd > currProd: # break # pastProd = currProd return nums[-1]*nums[-2]*nums[-3] print max_prodOfThree([1,2,3,4,-3,-7])
78e98233bdc914469e1302af82ada8caa361069c
7da6e6031f51cda1606354ff961dd0a46ed4a22c
/scripts/sortContigs.py
1bca0c328ced52a7207108ad33c4612f83139acf
[]
no_license
ReverendCasy/Comparative-genomics-2020
0429de5d3803d5a58d4ae0567f5c5c09ea083765
3964b8bd7a89c24e4ad7e934f34c46641bf8c461
refs/heads/main
2023-01-31T14:52:21.723876
2020-12-06T08:20:57
2020-12-06T08:20:57
310,754,525
0
0
null
2020-12-06T08:20:58
2020-11-07T02:54:53
Python
UTF-8
Python
false
false
2,697
py
sortContigs.py
#!/usr/bin/env python3 from Bio import SeqIO from collections import ChainMap from collections import defaultdict from typing import Generator from fetchNucleotides import findFile import click import gzip import os """ Sorts prokaryotic genomes into chromosomes, plasmids and unattributed contigs/fragments and write...
b8f790a6625b0f37b30ba94c848515655abdc60a
fa35db633b6b9c70e593b789fc7d649926ca795a
/Livros_Cursos/Nilo_3ed/cap04/Exercicio_04-03.py
689c2a13feccab8bab9d70a58d49ece22578fe5a
[]
no_license
Evaldo-comp/Python_Teoria-e-Pratica
0700035db45d8a2800c2830fb3d9faa140654350
d909782ecd1bb25d88c6c84897503743c5e9f401
refs/heads/master
2023-03-22T10:40:19.056375
2021-03-05T18:56:22
2021-03-05T18:56:22
264,572,161
0
1
null
2020-11-06T21:22:10
2020-05-17T03:00:35
Python
UTF-8
Python
false
false
981
py
Exercicio_04-03.py
# -*- coding: utf-8 -*- """ Escreva um programa que leia três números e que imprima o maior e o menor """ n1 = int(input("Insira o primeiro número: ")) n2 = int(input("Insira o segundo número: ")) n3 = int(input("Insira o terceiro número: ")) # inicialização das variáveis maior = None menor = None # Definição do ma...
73a3a031033185be0e89a1bbfcc1ca8a76a6eb33
5410859a5ea642b207050c4d7ff8471f6b05f65e
/lab6/compose.py
adc02478019f0ede33ed6a3fbd7bee133e55bf88
[]
no_license
erishan6/ProgCL
82c45ec5ed43ea7034d64d1ab7dae51941d276c6
336637f3c8f8396e992f5f75d45a5d7b47c93257
refs/heads/master
2021-10-21T08:05:41.525556
2019-03-03T15:51:44
2019-03-03T15:51:44
155,974,949
0
0
null
null
null
null
UTF-8
Python
false
false
468
py
compose.py
# -*- coding: utf-8 -*- def can_be_composed(word1, word2): mydict = {} for s in word2: if s not in mydict.keys(): mydict[s] = 1 else: mydict[s] += 1 for s in word1: if s not in mydict.keys(): return False elif mydict[s] == 0: r...
f675268132ec84d8f64e6efa34e2b00753394cb9
4d50ed28c891d5083a0cf4f9d14ef45b21f152bb
/outliers/outlier_cleaner.py
bff44c1c1a098bb39f13cf29bc84468013378735
[]
no_license
MatejBabis/UD120
b4146b0e3047b24958e188e363fa2aa6e05904c8
14317358672056ddf6cfbb68afa2002ea95e4d81
refs/heads/master
2020-03-20T15:56:17.740963
2018-06-28T19:07:25
2018-06-28T19:07:25
137,525,274
0
0
null
null
null
null
UTF-8
Python
false
false
899
py
outlier_cleaner.py
#!/usr/bin/python def outlierCleaner(predictions, ages, net_worths): """ Clean away the 10% of points that have the largest residual errors (difference between the prediction and the actual net worth). Return a list of tuples named cleaned_data where each tuple is of the f...
8776e5df943a3c1658cf2dfc70c155d9b033688e
c48339ac976af126c28988ec2d7022cb3bece388
/08_mongosite/__init__.py
1211b5e6fb8887b783279f2776aa67fd2d9368f3
[]
no_license
aaronli39/SoftDev10
69b5468a68ebfd321cdbec817b8df143380ff113
5bdae457564d1cba0e0bf0973749a17b3ae0f8c9
refs/heads/master
2020-04-27T14:09:10.730887
2019-03-07T18:24:55
2019-03-07T18:24:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,629
py
__init__.py
# Team Team # Joan Chirinos, Aaron Li, Joyce Liao import os from flask import Flask, render_template, redirect, url_for, session, request, flash, get_flashed_messages import pprint from util import pokemon as pk app = Flask(__name__) app.secret_key = os.urandom(32) @app.route('/') def landing(): return render_...
f98321e6dc2e9bfe6f490686ec798a71a163ea03
89bae02f23e787416fda894a128c9abfb4986515
/metalearning/allennlp/allennlp/data/samplers/__init__.py
354cd02cd4cf8704278e78f3e22ae5f252745139
[ "Apache-2.0" ]
permissive
asheverdin/multilingual-interference
f2e64cebfffc749b080fa64860659922224e6e65
7bc1b5918142e3c84bea83c5a7f39e3f245172e9
refs/heads/main
2023-05-12T13:07:19.997696
2021-05-28T22:16:26
2021-05-28T22:16:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
222
py
__init__.py
from allennlp.data.samplers.batch_sampler import BatchSampler from allennlp.data.samplers.bucket_batch_sampler import BucketBatchSampler from allennlp.data.samplers.max_tokens_batch_sampler import MaxTokensBatchSampler
13c1edc4543a431da288a9011d97bab933413b3f
a0fbc9de4e38158495e27ea65da36b66e492ebae
/reviewboard/extensions/hooks.py
2ad4a8cff04cc5d01d9d58636a4bde8126f2dad6
[ "MIT" ]
permissive
iantropov/reviewboard
a700e8bc2072d2f23cc5989066403dc52d6b6487
a3c0d92484aab3bbea109ae3fd9f4149803f7560
refs/heads/master
2021-01-18T02:41:46.059095
2011-10-20T19:33:57
2011-10-20T19:33:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,021
py
hooks.py
from djblets.extensions.base import ExtensionHook, ExtensionHookPoint import djblets.extensions.hooks as djblets_hooks class DashboardHook(ExtensionHook): __metaclass__ = ExtensionHookPoint def get_entries(self): raise NotImplemented class NavigationBarHook(ExtensionHook): """A hook for adding ...
02b7a5591ea59e37c726354701995c8422b44edd
1ac7c9a5fdfed4f07fb33d20e38f167061574fa2
/synonym/connections.py
728e98f63adb60d26603dc2374b205c3d59ecc54
[]
no_license
dragonlol88/hive-synonym
4a4e33434ebf4293fe993ee9059bc7592d331805
cf3af75e8d955ffdfb715c766dabbd1f60c73e9c
refs/heads/main
2023-03-08T17:43:53.317755
2021-02-27T07:20:14
2021-02-27T07:20:14
340,398,104
0
0
null
null
null
null
UTF-8
Python
false
false
15,393
py
connections.py
from typing import ( Optional, List, Tuple, Dict, Union, Any, Mapping ) from sqlalchemy import create_engine from sqlalchemy.engine import Engine from sqlalchemy.orm import Session from sqlalchemy_pagination import paginate from elasticsearch import Elasticsearch from .exceptions import ( ...
f79bf0696c28c84b09c7f4f19887995fd64e1741
bf007dec921b84d205bffd2527e376bb60424f4c
/Codeforces_Submissions/1104A.py
d1676935b6b6da66d576035425c4c63159f0eab3
[]
no_license
Suvrojyoti/APS-2020
257e4a94f52f5fe8adcac1ba4038cc66e81d9d26
d4de0ef098e7ce9bb40036ef55616fa1f159f7a5
refs/heads/master
2020-12-21T19:27:59.955338
2020-04-22T13:27:49
2020-04-22T13:27:49
236,534,218
0
0
null
null
null
null
UTF-8
Python
false
false
220
py
1104A.py
n=int(input()) i=max(min(9,n-1),1) while i>0: if n%i==0: print(n//i) a=[i for j in range((n//i))] for k in range(len(a)): print(a[k],end=" ") print() break i-=1
96134f8431b8d850f0dcb83fcf3dfb3e907b026f
5ad272b04a253f86d3da755571ee5dfe42da89eb
/Pro2.py
e3f020c6b9388f3294f909a11a5d0264f3d374a9
[]
no_license
PaulZhang666/Web-Crawler
dc3002f5f0e10c2a784f54ef18b3d02ae5b72cbc
6ab58e955ac3244225cf8de25680dc9440027a12
refs/heads/master
2021-01-10T16:02:46.043467
2016-03-13T02:52:11
2016-03-13T02:52:11
53,764,154
0
0
null
null
null
null
UTF-8
Python
false
false
3,377
py
Pro2.py
import urllib, urllib2, cookielib, re from collections import deque firstgeturl = 'http://cs5700sp16.ccs.neu.edu/accounts/login/?next=/fakebook/' posturl = 'http://cs5700sp16.ccs.neu.edu/accounts/login/' finalgeturl = 'http://cs5700sp16.ccs.neu.edu/fakebook/' cj = cookielib.CookieJar() cookie_hanler = urllib2.HTTPCoo...
e796dcd917e0534169c38fd9e047bfca2db15d1f
3fdf6a2885357a901ea50457f0e4340b06487ff9
/proxytest.py
00db2e8fe896a5c36de1a6c7d12019faf5b64671
[]
no_license
caorong/py-code-collection
74c1b1acefcb7382219a2a678cc84f8707dd9f8b
24066aa7827e43000f6ce232d1798fe5f49da470
refs/heads/master
2021-01-01T06:54:57.500367
2015-02-09T13:56:29
2015-02-09T13:56:29
25,777,658
0
0
null
null
null
null
UTF-8
Python
false
false
872
py
proxytest.py
# coding: utf-8 # import ppproxy from ppproxy import getProxy import Queue, time def test2(): q = Queue.Queue(2999) q.put_nowait(1) q.put_nowait(2) q.put_nowait(3) print q.get() q.put_nowait(4) print q.get() def test(): # print dir(ppproxy.parser) # print ppproxy.parser.checkPath(...
914c635613fca4a3d4ca1a3a54f1e4a9568031c5
7c3b25e11de1a409c5511798945fa127e2b6afc0
/server/__tests__/integration/test_app.py
d9ea297b45ee1b40aa976c100eb60450faa73ba8
[]
no_license
josethz00/eletronicx_fullstack
de271bb647e4a6bffcd47b4c79f4a783c6098f77
18359ff2361276cc4c4c8d50705449d33b87aa31
refs/heads/main
2023-03-18T06:30:19.188294
2021-03-03T14:26:36
2021-03-03T14:26:36
342,675,069
0
0
null
null
null
null
UTF-8
Python
false
false
92
py
test_app.py
from flask import Flask def test_app_is_created(app: Flask): assert app.name == 'app'
fba1d9e55c13b2b0ea4d162d0c27e95a5bb1023e
14a98d076df84d5e49df6f67c4a7c784d8e6976d
/beam/kuill.py
2ed3e98180c6050fdd070923bb0266769d8a35fe
[]
no_license
sivy/kuiil
a591fa55efdde60fc3c70fd3ffb190b720f91d46
cec63b7a1ca6d2e26f9af7f7a8b1a4b99df07e01
refs/heads/master
2020-12-22T13:24:05.468659
2020-02-28T22:38:23
2020-02-28T22:38:23
236,797,383
0
0
null
null
null
null
UTF-8
Python
false
false
7,063
py
kuill.py
import argparse import csv import logging from pipeline.trenchrun import get_character_data, get_all_species_data import apache_beam as beam from apache_beam.metrics.metric import Metrics from apache_beam.options.pipeline_options import PipelineOptions from apache_beam.options.pipeline_options import SetupOptions lo...
5879c0722170256afac1bd36c8aead7f570959de
1498c7f4c44df77f32c41e3c84b55d5fba073731
/爬虫小练习/003_requests_sample003.py
a80a6ae441ad2a4abe9c899843eb7f9500260c7c
[]
no_license
whh881114/common_scripts
1afbffcb32f3190b3f3ed3b5e1364d8ccd108e88
23ce2e25b407c27373b53829a844e51269a8b296
refs/heads/master
2020-05-07T22:53:29.801739
2019-08-26T15:07:06
2019-08-26T15:07:06
180,965,324
0
0
null
null
null
null
UTF-8
Python
false
false
560
py
003_requests_sample003.py
# -*- coding: UTF-8 -*- # 网页中有中文,需要重装载入sys并设置编码为utf-8 import sys reload(sys) sys.setdefaultencoding('utf-8') import requests # 这里的代码是伪代码,只是示例。 # 示例:下载图片(小文件)。 r = requests.get(IMAGE_URL) with open("./img/image2.png", "wb") as f: f.write(r.content) # 示例:下载视频,镜像(大文件)。 r = requests.get(VIDEO_URL, stream=True) ...
5afd72162f53b541bc339abb4a8219caa9f4165c
571a89f94f3ebd9ec8e6b618cddb7d05811e0d62
/gwcontest2015/a/main.py
f67a520fccefa445d6322c03b3672becad5b5131
[]
no_license
ryu19-1/atcoder_python
57de9e1db8ff13a107b5861f8f6a231e40366313
cc24b3c2895aad71d40cefbb8e2893dc397b8f4f
refs/heads/master
2023-05-10T05:32:16.507207
2021-05-19T17:48:10
2021-05-19T17:48:10
368,954,430
0
0
null
null
null
null
UTF-8
Python
false
false
620
py
main.py
#!/usr/bin/env python3 import sys from collections import deque, Counter from heapq import heappop, heappush from bisect import bisect_right from itertools import accumulate sys.setrecursionlimit(10**6) INF = 10**12 m = 10**9 + 7 def main(): l = [25, 39, 51, 76, 163, 111, 136, 128, 133, 138] K = len(l) a...
0ad762bc0bbede44f59ba66bc4c3bcf5fd2d9844
1efbf5d4f19e3b62eb2681ddcd9269171d6dea79
/137.py
8bd10fbc08a32ee797bae3be6468ccbde6be9fa2
[]
no_license
sorrowise/euler
37c2e55158933e4fc9da0e0193a110a2dd6a3f6c
dcae31ccbd7c2e17c135e9447e22525b0fb33da8
refs/heads/master
2023-07-14T09:49:13.550699
2023-07-04T03:07:57
2023-07-04T03:07:57
99,288,127
67
7
null
2017-12-18T07:16:05
2017-08-04T01:03:01
Python
UTF-8
Python
false
false
403
py
137.py
# time cost = 13.2 µs ± 128 ns def main(N=15): arr = [] x1,y1,x2,y2,x3,y3 = -1,1,1,1,4,2 u,v = 9,4 while True: x1,y1 = -u+5*v,-v+u x2,y2 = u+5*v,v+u x3,y3 = 4*u+10*v,4*v+2*u target = [(x-1)//5 for x in [x1,x2,x3] if (x-1)%5==0] arr += target if len(arr) =...
69b07862c1a2bd6121e379849fd6c4b820ebfb5a
cd0ebb875906fb0dc8c93212c8e93a432e597c69
/httpbl/tests.py
79c29a52e5b1a6bd9075a136f90e4694d035df83
[ "BSD-2-Clause" ]
permissive
dekoza/django-httpbl
62f7a8727276eb20369bc3e9fa9aea25c47f7c1b
01183f356cf93bdfd3e2164643c87794cd2ebfd6
refs/heads/master
2020-04-05T23:21:03.505150
2013-08-04T15:04:15
2013-08-04T15:04:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,755
py
tests.py
#coding: utf-8 from django.utils import unittest from django.test.client import RequestFactory from django.http import HttpResponseNotFound, HttpResponsePermanentRedirect from django.core.exceptions import ImproperlyConfigured from django.conf import settings from django.template.response import SimpleTemplateResponse ...
8e291ea9fafe401f9737dc7f506565c888a2deb6
68228c137d426de67520c1640a86fa518a4b534a
/src/django_counter/views.py
c4d111a31716849cc4711ef6def0d3f9fb2f8440
[]
no_license
akvo/django-counter
278c1f6e9fe9a5f4e29a1ef900d552469c8d4b16
3b38f45a243970fda1a61124fd6ec8b9bd352c35
refs/heads/master
2021-01-18T15:25:18.989145
2014-05-27T11:21:48
2014-05-27T11:21:48
20,099,050
1
0
null
2014-05-27T11:21:48
2014-05-23T12:41:52
Python
UTF-8
Python
false
false
1,357
py
views.py
from django.http import HttpResponseRedirect, HttpResponse import mimetypes, rfc822, os, stat from pdb import set_trace from django.shortcuts import get_object_or_404 from models import RedirCounter, Referer, ViewCounter try: from PIL import Image except ImportError: import Image from StringIO import StringIO...
c590056fd3831514f921f12a42567055a58ab513
55c0782462a25d29ea721b7fc27d14d92d89f36a
/gameApp/models.py
96b03d417fe8620f8edc1412d3d2ed277925b17b
[ "Apache-2.0" ]
permissive
cs-fullstack-2019-spring/django-mini-project4-juwan-melatti
5b505215c4f9b8f97f4c9648792a3dd78e9995d5
d3fe26a960263726bc21162343beaf241df4c033
refs/heads/master
2020-04-27T01:36:56.531852
2019-03-12T14:36:24
2019-03-12T14:36:24
173,970,622
0
0
null
null
null
null
UTF-8
Python
false
false
921
py
models.py
from django.db import models from django.utils import timezone from django.contrib.auth.models import User # Create your models here. class GameCollector(models.Model): username = models.CharField(max_length=70) Password1 = models.CharField(max_length=70) Password2 = models.CharField(max_length=70) da...
cb69386e492c7693f813fdf5881e628550c08fb6
9194738f0a52455b355f0262f39f8c7bcdb82a55
/bin/alamut_to_excel_noconf.py
55acc68ad6bf4d1ce174305337fb4bd1aec8ad35
[]
no_license
jjevans/tools
5e6de81b98ff7ad80abf3575122d002513dcc06f
9113ca727e0d45a6f224a683bc0057a7d7b1549c
refs/heads/master
2021-01-01T19:48:06.216054
2017-07-28T21:37:45
2017-07-28T21:37:45
98,688,731
1
0
null
null
null
null
UTF-8
Python
false
false
2,775
py
alamut_to_excel_noconf.py
#!/usr/bin/env python import re import sys import va_annotate import va_excel import yaml # take alamut output and create a Variant Assessment excel sheet # lmm test tab will have dummy data tests = [("dummy_test","dummy_transcript")] try: alamutfile = sys.argv[1] templatefile = sys.argv[2] fieldsfile = sys.argv[...
2298e9388a3d1cd4da649d68945abdcaa33a56d6
9969b9d35a915f9661602cb82d34e2ba06912d3c
/processing.py
e3ded37d1b9f1b737c5f1fba0e595930c4383b83
[ "Apache-2.0" ]
permissive
vijayp/imageanalysis
affa66f8eada6905b0f789f56c991ab548b30132
b4646f084a03d6dd99f711c07a90d0334bf7a7aa
refs/heads/master
2022-12-04T19:32:22.796600
2021-02-28T21:27:56
2021-02-28T21:27:56
4,621,908
20
4
Apache-2.0
2022-11-22T07:29:49
2012-06-11T06:56:57
Python
UTF-8
Python
false
false
11,766
py
processing.py
#!/usr/bin/env python3 # Copyright Vijay Pandurangan (vijayp@vijayp.ca) 2012 # Apache 2.0 Licence from PIL import Image, ImageDraw, ImageFont #from GChartWrapper import Pie import pickle from collections import defaultdict import colorsys import argparse import sys import os import json import threading from multiproc...
c7d56eca14086ae680d5bbb2335b0b4ce8bea58e
402cb8ac32c5ca7a53f5875688d1ebba1e96474b
/set149.py
7a4b43410f002f7a4f4e1a454626fc81b77fb3e0
[]
no_license
Srija-U/codekataplayer
c073a13d8621f641a8aba8f23ebee4e1b673d58f
392f24f35f178b034cfb76d2acc31bbc4b3a5814
refs/heads/master
2020-05-02T10:59:45.052802
2019-07-22T00:27:46
2019-07-22T00:27:46
177,914,184
1
3
null
null
null
null
UTF-8
Python
false
false
82
py
set149.py
n=int(input()) n=str(bin(n)) c=0 for i in n: if i=='1': c+=1 print(c)
c0485d69f3125ded24209cde6e6ebf2a7a880f27
a9e60d0e5b3b5062a81da96be2d9c748a96ffca7
/configurations/i15-config/scripts/scannables/chiPseudoDevice.py
0111f0d5d875bbe191226edd4f885c3ec490d5b6
[]
no_license
openGDA/gda-diamond
3736718596f47607335ada470d06148d7b57526e
bbb64dcfd581c30eddb210c647db5b5864b59166
refs/heads/master
2023-08-16T08:01:11.075927
2023-08-15T16:01:52
2023-08-15T16:01:52
121,757,699
4
1
null
null
null
null
UTF-8
Python
false
false
4,785
py
chiPseudoDevice.py
from gda.device.scannable import ScannableMotionBase from time import sleep import future.EulerianKconversion as H # http://sector7.xor.aps.anl.gov/calculators/kappa.html class ChiPseudoDevice(ScannableMotionBase): def __init__(self, name, theta, kappa, phi, thoffset=2.2, phioffset=2.2): self.setName(nam...
61275ce0e9b54434f9be55a45aa94872cdac6318
6715b97c40b4fa299a3bd0ff7523cb5bd9f5a652
/src/pymortests/cache.py
d6ee06e7be0a5c8ecdbf90777f886826505bb997
[ "BSD-2-Clause" ]
permissive
RahulSundar/pymor
3cfaaa91640ffd5ecea74d1d3a2a07b048db1877
6e283d03b413db5bb58e6d67ef467456d3a2bbf2
refs/heads/master
2022-11-24T09:08:26.611044
2020-07-29T13:43:55
2020-07-29T15:01:33
284,639,479
1
0
NOASSERTION
2020-08-03T08:00:29
2020-08-03T08:00:28
null
UTF-8
Python
false
false
2,412
py
cache.py
# This file is part of the pyMOR project (http://www.pymor.org). # Copyright 2013-2020 pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) import tempfile import time import os from uuid import uuid4 from datetime import datetime, timedel...
10d1634d47ba5a053abe30c3b33e1ee5832041d9
c953a76d9b28114e2ae2006af49a71a14619a452
/examples/planners/prm.py
0cfc304c6cf3f68a8271eb7a1d99a1142dd2d270
[ "MIT" ]
permissive
veds12/gennav
40e259c795885a52c11e5722373140064f92bf4e
2c746ebe424ed5e48f4eee5dd2dde23b2215c231
refs/heads/master
2023-02-24T20:29:14.127374
2021-01-27T12:21:29
2021-01-27T12:21:29
272,356,986
0
0
null
2020-06-15T06:14:22
2020-06-15T06:14:22
null
UTF-8
Python
false
false
2,563
py
prm.py
from gennav.envs import PolygonEnv # imports polygon environment from gennav.envs.common import visualize_path from gennav.planners.prm.prm import ( PRM, # imports Probabilistic Roadmap class from the planers ) from gennav.utils import RobotState from gennav.utils.geometry import Point from gennav.utils.samplers ...
33724461d75f554e878e852c76d64e768f0a4da2
2bcc585fbcaf6d49c666d79d182302667d8f0e42
/src/gousios/2-add_month.py
4d4e34c76a59758c30e0070518f5c5ec84737cfd
[]
no_license
ayonel/DLPP
5c5bbb54fb91e78858d50aac0c49d97c9705714f
9aeb350538f47d30f3ff87efc10cd3cd32835a71
refs/heads/master
2018-12-20T22:02:29.381002
2018-09-25T10:05:07
2018-09-25T10:05:07
116,004,267
0
2
null
null
null
null
UTF-8
Python
false
false
686
py
2-add_month.py
# 为每个pull添加其月份属性,分别添加到pullinfo表以及gousios表 import pymongo import src.database.dbutil as dbutil import src.constants as constants if __name__ == '__main__': client = dbutil.get_connection() for org, repo in constants.org_list: print(org) pullinfo_list = list(client[org]['pullinfo'].find()) ...
79bd7651097bf721c680f223b51f972ec0c5e28d
8c25694562ae81ae19cd71ab0ef1129b10350f58
/userlixo/handlers/user/message/ping.py
e3059be63ea4bb552810f89a043092aada811df7
[ "MIT" ]
permissive
AmanoTeam/UserLixo
e1cd3650f11600bf1fa80cafe5e26426f70f2321
13ccae5fc989a5a58e7019b471f4b03277ff124b
refs/heads/userlixo-czp
2023-07-19T05:27:58.620634
2023-07-11T16:24:41
2023-07-11T16:24:41
224,276,766
73
57
MIT
2023-03-06T11:57:30
2019-11-26T20:07:40
Python
UTF-8
Python
false
false
588
py
ping.py
# SPDX-License-Identifier: MIT # Copyright (c) 2018-2022 Amano Team from datetime import datetime from pyrogram import Client, filters from pyrogram.enums import ChatAction from pyrogram.types import Message @Client.on_message(filters.su_cmd("ping")) async def onping(c: Client, m: Message): before = datetime.no...
560237df3add8f084840a774ad9d7b52b0011ae0
85968a4401e963c3153823cb3f27f70efdc68344
/python_blog/learn_code/PythonFullStack-master/Chapter06/psutil_mem.py
2e58557ca087cae4bc908e592c0c04c0f42cfacc
[]
no_license
LouisLinY/study_blog
d1e17b0126c68466e34d2ab9d944927e4c089af9
7351ca3b4c225d4d64d6a4f5dc5d5bd6dde03ca8
refs/heads/master
2020-11-24T13:16:33.641974
2020-01-12T09:36:28
2020-01-12T09:36:28
228,161,966
1
0
null
null
null
null
UTF-8
Python
false
false
309
py
psutil_mem.py
# -*- coding: utf-8 -*- import psutil memory = psutil.virtual_memory() print( memory ) print('物理总内存=' , memory.total) print('可使用内存=' , memory.available) print('已使用内存百分比=' , memory.percent) print('已使用内存=' , memory.used) print('空闲的内存数=' , memory.free)
952104de5d7e0909872011b9b0ea30a45eb45ded
b9fcfe2a28a4cd45589f700752cb9ed6599eddb3
/8_14.py
20a75d0be9eb3e6ab3c9ee1d9b841c1a0c2a4f29
[]
no_license
abaillargeon/MAE4353
0c88ec1dc64188d0c8c07a84cff0e238d476e670
43863c70970b57ea46dad28f3a0359aabfe5a946
refs/heads/master
2021-01-21T12:26:52.058647
2012-09-03T14:40:41
2012-09-03T14:40:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
741
py
8_14.py
import numpy as np from bolt_class import * from scipy.optimize import newton l_1 = 2.0 #in l_2 = 1.0 #in d = 0.5 #in pitch = 1.0/13 E = 30e6 #psi #Part a nut_h = 7.0/16 #in (table A-31) bolt_l = l_1+l_2+nut_h grip_l = l_1+l_2 print str(np.ceil(bolt_l*4.0)/4) + ' in'#closest 1/4in #Part b A_t = 0.1419 #table 8-2 A_d...
748f2b0e244637fdf6ff91aa8356445ee8af544c
111fa26f067b2184468a870eccca93c535979d6b
/thirty_one.py
73d0a7d063b3a5391a3d6d119bef379239c4a3db
[]
no_license
hw313/-offer
75120639b031c41305b670b68c669b2b9f79733f
54202febcd19a260fe5512ef0eda63f4ed113030
refs/heads/master
2020-04-26T02:43:46.551885
2019-03-05T16:00:31
2019-03-05T16:00:31
173,243,337
0
0
null
null
null
null
UTF-8
Python
false
false
554
py
thirty_one.py
# -*- coding:utf-8 -*- """ ------------------------------------------------- File Name: thirty_one Description : Author : huang wei date: 2019/3/5 ------------------------------------------------- Change Activity: 2019/3/5: -------------------------------------------...
32ccf43b45b3fd3f178530dccd627932292f6188
66ea50bd1e0d974873d4aebfccf646953858607f
/etcd-monitor-to-falcon/etcd-monitor.py
fbe847c458a01ad4ae078f1320a3adcf546bbab1
[]
no_license
yindashan/python-monitor
d9be4a4e0ede81ea014a221628f31aa6554ba1d5
83b8c686a1ef3575fc748ee04a68cca9b6503b71
refs/heads/master
2020-07-12T16:52:30.680011
2019-08-21T08:14:29
2019-08-21T08:14:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,138
py
etcd-monitor.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import socket import requests import time import json import yaml from optparse import OptionParser from StringIO import StringIO from decimal import Decimal from etcd_metric import ( etcd_stats_all, etcd_metrics, COUNTER ) def stats_result(ip, port, value):...
69cf471a4e64691c5de25a0bbe03ccdb78c9e8c3
dd5ce67d84816108d030c29b42c919b8d893a26a
/staqz.py
edb5ea1c2ec9dd99dd8a9fdd3a98d7e80ab9188d
[]
no_license
Rigil-Kent/staqz
09fa2dafe59c93898f9337e863dfbdc14af74217
8ee44ff7e223cf880dc583d935ec547b91df959a
refs/heads/master
2020-04-11T01:49:12.350474
2019-01-11T02:56:53
2019-01-11T02:56:53
161,427,026
0
0
null
null
null
null
UTF-8
Python
false
false
3,025
py
staqz.py
from datetime import datetime import stock as stock from flask import Flask, render_template, request from flask_bootstrap import Bootstrap from flask_moment import Moment from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField from wtforms.validators import DataRequired userportfo...
4420e9658cded43d8c50b9653aa9eadc00907bbb
15b3fa557203fabbfd64c38026f8d0f663939b51
/orb/py_orb.py
25768782772fbefecb68070507c021861e9cf368
[]
no_license
amarsaikhanb/ASC
0b427a422f77dabdc4a3a416edf15a99a885c848
4268dd322f8e4542a398d1d9adeda14e9eed5524
refs/heads/master
2021-09-28T20:36:00.690926
2018-11-20T09:35:21
2018-11-20T09:35:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
549
py
py_orb.py
import numpy as np import cv2 from matplotlib import pyplot as plt img = cv2.imread('main3.jpg',0) # Initiate STAR detector orb = cv2.ORB_create() # Initiate SIFT detector # find the keypoints with ORB kp = orb.detect(img,None) outImage =None # compute the descriptors with ORB kp, des = orb.compute(img, kp) ...
8e54857e4cc83388ca528ba50ecd6ba88ed287a0
29160be550a8d4716127aa601d819e6685eae751
/CompSciClass/Chapter2/readtext.py
0eaff890532b0f50a92b8bef285b369ab3c0bf2c
[]
no_license
Zazzerpoof/Code
5817f40659009754e06bb1f7a32aa9e88849eede
01c36d2623824cf7943756449acf5b120957f9bb
refs/heads/master
2020-04-29T09:57:47.440152
2019-06-01T03:02:11
2019-06-01T03:02:11
167,744,287
0
0
null
null
null
null
UTF-8
Python
false
false
90
py
readtext.py
f = open(r"C:\Users\gidre\Desktop\Code\words.txt") #for line in f: # print("Hi")
1ab90a9470cd9cefed2881ebcf913edc44d18821
3a334c70012a7712fbf99b26a415422191b1eaa3
/bla.py
f803697e11374384a6c6b92dc9e8f3438fb19cc6
[ "Apache-2.0" ]
permissive
sheelagowry/sumorobot
2c28b596cd83f047fd40a564c23b184400bf6e92
aef8db675bbd1a4b4b0ab89ef789c06a87adf56e
refs/heads/master
2021-01-01T03:58:31.806368
2016-05-12T15:51:27
2016-05-12T15:51:27
58,390,318
0
0
null
null
null
null
UTF-8
Python
false
false
2,389
py
bla.py
import os from time import sleep from threading import Thread from flask import Flask, render_template, Response import json import NetworkManager class MotorThread(Thread): # This class generates PWM signal necessary for servo motors def __init__(self, pin=192): Thread.__init__(self) self.pa...
8f40e08e2cec177efc274c80fa001f89b1555b74
8247ccd2a32a353f12d8f067aeae6c4c085665e9
/magma/operators.py
0754a45f518b76cfc3fadb21e0d4b383c11aeb7f
[ "MIT" ]
permissive
gitter-badger/magma
7ae0b511f24020d209923fdb8e448fc579ba59fa
c2f9eedffb9a921c9cefb0c742254e3adb522034
refs/heads/master
2020-08-14T05:53:03.005786
2019-10-14T17:18:03
2019-10-14T17:18:03
215,109,656
0
0
NOASSERTION
2019-10-14T17:50:49
2019-10-14T17:50:49
null
UTF-8
Python
false
false
2,937
py
operators.py
from magma import _BitType, BitType, BitsType, UIntType, SIntType class MantleImportError(RuntimeError): pass class UndefinedOperatorError(RuntimeError): pass def raise_mantle_import_error_unary(self): raise MantleImportError( "Operators are not defined until mantle has been imported") def r...