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
914b43d53ab351be628c97bce1fc06c882bacfd6
d1cdf08eb18f9abf7a53228e2aadb62b85c06c3f
/Q5.py
1a99fdfaed66b09bbe695480d1512f0036393d36
[ "MIT" ]
permissive
ashutoshvrm8/Python-Programs
cdeab603cdbde51d5a0c8ee834ccb6296fc0fd79
190ac85dbaa4870c0f2fb22a91e8c6d8a8788f44
refs/heads/master
2020-03-26T05:19:33.959320
2018-08-13T17:45:12
2018-08-13T17:45:12
144,550,957
0
0
null
null
null
null
UTF-8
Python
false
false
588
py
# -*- coding: utf-8 -*- """ Created on Mon Aug 13 14:09:19 2018 @author: Ashutosh Verma """ ''' Define a class which has at least two methods: getString: to get a string from console input printString: to print the string in upper case. Also please include simple test function to test the class methods. '...
[ "noreply@github.com" ]
ashutoshvrm8.noreply@github.com
86aa8e4a31017d6d63b19ac4cd3b040d922f3902
353def93fa77384ee3a5e3de98cfed318c480634
/.history/week01/homework02/maoyanspiders/maoyanspiders/spiders/movies_20200628181659.py
ef1424ea237252dfb40fa01bde4bf24ab2c06ba7
[]
no_license
ydbB/Python001-class01
d680abc3ea1ccaeb610751e3488421417d381156
ad80037ccfc68d39125fa94d2747ab7394ac1be8
refs/heads/master
2022-11-25T11:27:45.077139
2020-07-19T12:35:12
2020-07-19T12:35:12
272,783,233
0
0
null
2020-06-16T18:28:15
2020-06-16T18:28:15
null
UTF-8
Python
false
false
2,603
py
# -*- coding: utf-8 -*- import scrapy from maoyanspiders.items import MaoyanspidersItem import lxml.etree from bs4 import BeautifulSoup as bs class MoviesSpider(scrapy.Spider): name = 'movies' allowed_domains = ['maoyan.com'] start_urls = ['http://maoyan.com/board/4'] header = { 'Content-Ty...
[ "31039587+ydbB@users.noreply.github.com" ]
31039587+ydbB@users.noreply.github.com
b36a400f9ec8c7f93a466522a7d0624e68a7e56a
16e6e7171f0611c8f17a355c48bec3b003f65b06
/10PRINT.py
d3b1e2a87c9917f7768b77137d35dbfb53ed33c9
[]
no_license
SamR5/Turtle-drawings
ab92e9c27c744384b7e9884e2945f2f8505d1436
259bb8b84ec510b4d94f8b36d742d77e76c1c271
refs/heads/master
2020-08-08T05:07:17.651595
2019-10-08T19:16:53
2019-10-08T19:16:53
213,721,801
1
0
null
null
null
null
UTF-8
Python
false
false
1,767
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- import random as r import turtle import math as m def random01grid(W, H): """""" return [[r.choice((0, 1)) for _ in range(W)] for _ in range(H)] def filter_squares(sequences): """Avoid the closed squares with the random01grid generator""" for i ...
[ "rami.samuel@gmx.fr" ]
rami.samuel@gmx.fr
ef55375899974c8431de8eade1ae04cf626550e9
3330807a7ece9ad99048a0917f969e433fe2b512
/IPython/external/temboo/Library/eBay/Trading/FetchToken.py
91f7d41df326a13a8b7eab9765b0d9038024a6f9
[ "BSD-3-Clause" ]
permissive
montyz/ipython
b8f9387a20b32e8d54453dbabc5e8cef4f2be2c7
e9c74a856ea3841515db7b4e49de4fc9a0cfdb9d
refs/heads/master
2021-01-15T20:08:29.242060
2015-02-04T17:24:51
2015-02-04T17:24:51
30,228,181
0
0
null
2015-02-03T06:12:11
2015-02-03T06:12:10
null
UTF-8
Python
false
false
5,427
py
# -*- coding: utf-8 -*- ############################################################################### # # FetchToken # Completes the authentication process by retrieving an eBay user token after they have visited the authorization URL returned by the GetSessionID Choreo and clicked "I agree". # # Python versions 2.6...
[ "monty@Montys-Mac-Mini.local" ]
monty@Montys-Mac-Mini.local
bb575f540480070a9ac4bbc049ef56876951d516
8d1d6da96122bb8cf9d9d5b9a04a86d005e60221
/slicing.py
0d59073d8189be98695b82a5ea9d74edf60fc4ef
[]
no_license
feverrro/Python
85dd6c6bf7097b434e7509e86d2ada1b2ab09fde
a8ac41a7c3e449144b84c364e751f344bee1da2e
refs/heads/master
2020-05-23T09:42:27.585597
2019-06-02T23:40:15
2019-06-02T23:40:15
186,711,433
0
0
null
null
null
null
UTF-8
Python
false
false
468
py
my_list = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] # 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 # -10,-9,-8,-7,-6,-5,-4,-3,-2,-1 # list[start:end:step] # print(my_list[::-1]) sample_url = 'http://questionmark.com' print(sample_url) # Reverse the url print(sample_url[::-1]) # Get the top level domain print(sample_url[-4:])...
[ "50637065+feverrro@users.noreply.github.com" ]
50637065+feverrro@users.noreply.github.com
a7a89e0b98c823da3182800cda0c3e9b0acfaecc
09a1d8a920ddb9193dfcc9b05ddd842b83b18e0d
/aerosandbox_legacy_v0/examples_legacy_v0/vlm4_conventional.py
6d4ece711f7bb8d718aaa5d3f6e9995720f1a915
[ "MIT" ]
permissive
aqreed/AeroSandbox
8564b6adb1f297e94aec96872b55f59171ae8ac1
a0c5f3b2760fcddee28cff2715eeddcb8bcbe655
refs/heads/master
2021-03-24T21:02:14.881986
2020-03-15T22:43:55
2020-03-15T22:43:55
247,564,677
1
0
MIT
2020-03-15T22:46:25
2020-03-15T22:46:24
null
UTF-8
Python
false
false
3,281
py
from aerosandbox import * glider = Airplane( name="Conventional", xyz_ref=[0, 0, 0], # CG location wings=[ Wing( name="Main Wing", xyz_le=[0, 0, 0], # Coordinates of the wing's leading edge symmetric=True, xsecs=[ # The wing's cross ("X") sections ...
[ "peterdsharpe@gmail.com" ]
peterdsharpe@gmail.com
a0b4d2b6558019c0e406f1ef097a97fcefb6b50f
e5f49057eac43349a7fa999d90cb951e49617440
/filter/docclass.py
e6a113f9f13d3049b9b891fe7adaa77184535832
[]
no_license
Hsingmin/CI_py2.7
2ae9464c687a1ecfadc7928c6e4915d828ffc10e
ef2906755d498a054beec20a99c4784351816cce
refs/heads/master
2021-08-30T06:23:09.630058
2017-12-16T13:01:19
2017-12-16T13:01:19
110,184,772
1
0
null
null
null
null
UTF-8
Python
false
false
3,701
py
# docclass.py import re import math def sampletrain(c1): c1.train('Nobody owns the water.', 'good') c1.train('the quick rabbit jumps fences', 'good') c1.train('buy pharmaceuticals now', 'bad') c1.train('make quick money at the online casino', 'bad') c1.train('the quick brown fox jumps', 'good') de...
[ "alfred_bit@sina.cn" ]
alfred_bit@sina.cn
42c55265daabb2470cae40ea23ca66ff4211931f
94567834d7ca69fba178a9d2d0ae89a73f813741
/analyses/monthly_time_series/China_prmsl/plot_ts.py
630af662e02fee6a55708d2f481b49b4f71496c9
[]
no_license
philip-brohan/Yangtze_floods
41b6d655fd4f06f8129c4e5c10d51d5e74d6cec4
8ad376328f5b7866d82dd3613e6157cfa31abea1
refs/heads/master
2021-09-07T23:56:51.250070
2021-08-23T16:43:58
2021-08-23T16:43:58
243,798,164
0
0
null
null
null
null
UTF-8
Python
false
false
1,964
py
#!/usr/bin/env python # 20CRv3 time-series: Monthly average, regional average. # Each ensemble member as a seperate line. # Uses pre-calculated time-series. import os import iris import numpy import datetime import pickle import matplotlib from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas...
[ "philip@brohan.org" ]
philip@brohan.org
e48b011a4281f1c3089723f1597597fce601faaa
3791dbf95468f63e8b99ebb5b87609ad86dba124
/Python/Fundamentals/type.py
268555e012d39cd52ecff5ad24a0a03c7be6e99a
[]
no_license
Mbank8/DojoAssignments
81c91d2dcc71664d26fa9b7b9d3d88aa928fe41e
e71a077abb9da3e55482d0396c8284e4d8aad8cf
refs/heads/master
2020-12-02T16:45:46.285331
2017-09-04T19:06:39
2017-09-04T19:06:39
96,580,296
0
0
null
null
null
null
UTF-8
Python
false
false
825
py
sI = 45 mI = 100 bI = 455 eI = 0 spI = -23 sS = "Rubber baby buggy bumpers" mS = "Experience is simply the name we give our mistakes" bS = "Tell me and I forget. Teach me and I remember. Involve me and I learn." eS = "" aL = [1,7,4,21] mL = [3,5,7,34,3,2,113,65,8,89] lL = [4,34,22,68,9,13,3,5,7,9,2,12,45,923] eL = [] ...
[ "mattbank8@gmail.com" ]
mattbank8@gmail.com
f05d7438fcbd0cc6346fdb97f5e45c2d6a27018d
0c575380b862ef3b7e06b57bd923cae589c042a6
/python/problem63.py
9a55875cdf9b9e896682850faa6f2232465ed31d
[]
no_license
mawaldne/projecteuler
9e6bbef2b49fd7a37b1f33c6e4a9868f37606fe5
b9f158abd9dec4d54e6c0f17ca5e554a0a31c6c4
refs/heads/master
2020-08-05T00:58:27.950931
2015-05-23T21:03:26
2015-05-23T21:03:26
1,083,702
0
0
null
null
null
null
UTF-8
Python
false
false
138
py
c = 0 for i in range(1,100): for j in range(1,100): k = i**j if (len(str(k)) == j): print(i,j,k) c+=1 print("count=" + str(c))
[ "mike.waldner@gmail.com" ]
mike.waldner@gmail.com
4469104b4cf522163c52e095d0631a2f498a2975
bea0fcd95b6dcfaf6e79ad476593985bdbca23be
/src/venvdir/venvs.py
0d993b0c813808d3cd914ad87ab7ca22bbb2f5de
[]
no_license
antazoey/venvdir
6b7ff6bedb892943e50c440ac2480c80d7705c3a
28220fb18747045ea1747486bce73bca681f524b
refs/heads/main
2023-05-04T22:51:44.395747
2020-10-21T02:14:30
2020-10-21T02:14:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,242
py
import os from venv import create as create_venv from os.path import exists as does_path_exist from venvdir.error import VenvDirBaseError from venvdir._configparser import config_parser from venvdir.util import get_default_venvs_path from venvdir.util import remove_directory class ManagedVirtualEnvironment: def ...
[ "yingthi@live.com" ]
yingthi@live.com
138079087bc6109c11aa7274f355d5231054b646
0a6a70540c96cc259374375b037d39eab1139b95
/letters.py
cc8dca9126511cec927fbc4a21aaa30a5029b657
[]
no_license
bl4ck-op4l/umbraria
ef2c9208607253c32c9f58eef7a15a0c37785f5d
346f739c89fb104e4269c12fb4d7d3da6c838a97
refs/heads/master
2023-05-29T06:04:17.579776
2021-06-14T20:01:14
2021-06-14T20:01:14
376,925,942
0
0
null
null
null
null
UTF-8
Python
false
false
1,087
py
from cv2 import cv2 import json import os.path as path _alphabet = None def get_alphabet(): global _alphabet if _alphabet is not None: return _alphabet _alphabet = Alphabet() return _alphabet class Alphabet: def __init__(self): with open('alphabet/letters.json', 'r') as f: ...
[ "dark.hole1@yandex.ru" ]
dark.hole1@yandex.ru
e4e0fd9b1a065f32e5e1b0c354d3c525a313a27e
a8cf9fd981ab062dc72fd11404373fee332b923d
/models/asr_config.py
23a63ac8a5929ee42e24b04953820f62375d7ca5
[]
no_license
liyunbin/asr
bdd8df76b7be692fb480448792551a215398ffde
196f94e740965a53f9b4dc92ab105b5a074596ad
refs/heads/master
2020-04-07T16:53:44.068500
2018-11-26T11:19:37
2018-11-26T11:19:37
158,547,639
2
0
null
null
null
null
UTF-8
Python
false
false
2,893
py
import data_utils import numpy as np class Struct: def __init__(self, **entries): self.__dict__.update(entries) # 模型参数这设置 baidu_deep_speech_2 = { 'window_size':.025, # 帧长短 单位:秒 'window_stride': .01, # 帧窗口 单位:秒 'window':np.hamming, 'feature_normalize':True, ...
[ "LYb1987920" ]
LYb1987920
f64456cd8aa6edb9dff8e61db95c050245376561
1f9042242fdd6f0bb67674c84192cef7554f9274
/DjangoWebProject2/DjangoWebProject2/settings.py
82cd9a9bcdddeef3d2ab503ea369d9d4ec7410f9
[]
no_license
zhouwengqing/python
e8e86eb4d371ef20333f65292f728cb5f15a4aae
8558582c9f73ce1301a8a1eab4e75c621f522fed
refs/heads/master
2020-08-31T15:40:36.055254
2019-10-31T09:04:31
2019-10-31T09:04:31
218,724,378
0
0
null
null
null
null
UTF-8
Python
false
false
3,328
py
""" Django settings for DjangoWebProject2 project. Generated by 'django-admin startproject' using Django 1.9.1. 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/ """ im...
[ "597031327@qq.com" ]
597031327@qq.com
76b015554549951c9624095bf2d5901ec911f980
73f06b4bc66bc5ee5cbb6021f555cf5a132adac3
/api/urls.py
e8976d703cbccd6f9bb638b0f64f8dac2e435513
[]
no_license
monicasegu/fulproject
addd201baa47cc8cc4ca33d4583bb91b0991dfa8
00b9b914a86162585b55c8930a710389dac4edb3
refs/heads/master
2021-01-14T17:31:02.575940
2020-02-24T09:37:58
2020-02-24T09:37:58
242,697,063
0
0
null
null
null
null
UTF-8
Python
false
false
101
py
from django.urls import path, re_path urlpatterns = [ path("grams/",GramsView.as_view()) ]
[ "segumonica@gmail.com" ]
segumonica@gmail.com
f063aa1d6f700e179430b1f88ff384085054a662
68359f6f4eaf33e5632e8f5dfff11120786a55f1
/coodepool/coodepool/wsgi.py
96847f88b70c9011c9b37bf933ffb8e3dae267be
[]
no_license
bogiSrbac/vendingMashine
d84e2d244bdff57078ab6837ca1451142ab10b74
acd8e3136dcf0706f2850175cfd4c8e65f99e30c
refs/heads/main
2023-07-17T06:16:40.396834
2021-08-23T23:51:31
2021-08-23T23:51:31
399,273,194
1
0
null
null
null
null
UTF-8
Python
false
false
395
py
""" WSGI config for coodepool 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/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SET...
[ "momir.bogosavac@yahoo.com" ]
momir.bogosavac@yahoo.com
63ccdfe5804f1f8a3ed9608807bce43b88ac5db3
1f731283124223185a7b59a1b44891c56e965d4f
/plotter_raster.py
74153a9fa8957da6b8bb758a08aec6f391a1f45a
[]
no_license
KalelR/Chialvo
ad2a5ecdd6a9eafd34fa7b8d2f7f0d8bb2fe3a10
6f3b7226c11268ed9f435ea642a93bf99cacc3d9
refs/heads/master
2022-09-29T18:58:12.848856
2020-06-06T17:41:13
2020-06-06T17:41:13
267,693,041
0
0
null
null
null
null
UTF-8
Python
false
false
1,278
py
# -*- coding: UTF-8 -*- #--------------------------------- RUN WITH PYTHON2 import numpy as np import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt import os.path from os import path alpha = '1.8' v_eps = ["0.021"] N = 525 seed = '1002' k_mean = '0.03'; sigma = '0.0035' DIR = "/home/kalel/hoggar/c...
[ "kalelluizrossi@gmail.com" ]
kalelluizrossi@gmail.com
920bde8494004fccb4a049249d10f17b7726fe68
f0181afd2eea9b086ce9487fb8d7fd949282140a
/bin/countgenbank.py
173a4ff2ea62bc564b9bd89f321a8135b513e0b3
[ "MIT" ]
permissive
linsalrob/EdwardsLab
4a571676859c8b7238e733a0d3ad98ceb2e83c63
3c466acc07f1a56b575860ad26c92f900b272a53
refs/heads/master
2023-08-20T17:13:35.466103
2023-08-17T09:17:36
2023-08-17T09:17:36
25,702,093
36
25
MIT
2020-09-23T12:44:44
2014-10-24T18:27:16
Python
UTF-8
Python
false
false
1,679
py
""" Count features in a genbank file or directory of files """ import os import sys import argparse from roblib import message, genbank_seqio __author__ = 'Rob Edwards' __copyright__ = 'Copyright 2020, Rob Edwards' __credits__ = ['Rob Edwards'] __license__ = 'MIT' __maintainer__ = 'Rob Edwards' __email__ = 'raedwards...
[ "raedwards@gmail.com" ]
raedwards@gmail.com
248be39ec105936bcc88d6125a53761ab7d02f6d
d757122d418770f8184daa8d471b7013cd4c2943
/cobropago/transactions/tests/factories.py
61207a60ca41d8e6396736c8ca8ae11303e6eae0
[]
no_license
luisfernandobarrera/cobropago
623211338310fa3d20dc7bcd45629d5c4667d2ba
89ba7e026a00a78516bbef809f99c1c538ee581c
refs/heads/master
2021-09-05T16:00:36.032311
2018-01-29T14:12:44
2018-01-29T14:12:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,354
py
import uuid import factory import random import datetime class AccountFactory(factory.django.DjangoModelFactory): class Meta: model = 'transactions.Account' django_get_or_create = ('name', 'ledger', 'user') id = factory.Sequence(lambda n: uuid.uuid4()) name = factory.Faker('name') class...
[ "luisfernando@informind.com" ]
luisfernando@informind.com
3922cf0e75dcaeacc14c827a6d0028e6d446c8b1
254cb0c780d34e6e9907e1f2fa2c2bf91ccf38aa
/games/exceptions.py
b0914ff30ee4b666d8ace6c1ba208499eef35a84
[]
no_license
JamesDevJim/game-zulu
f9d6d2db32996c014a6b31103c4ce7d737a177ff
bb9024db3b11960dd7df077c1efbf44db5ecdc3a
refs/heads/master
2020-12-23T09:24:16.174149
2020-02-27T03:57:43
2020-02-27T03:57:43
237,109,565
0
1
null
2020-02-27T03:57:44
2020-01-30T00:24:08
Python
UTF-8
Python
false
false
254
py
class QuitGame(Exception): """Custom exception class to signal that the game must be quit""" pass class ChangeGame(Exception): def __init__(self, message="", *, new_game): super().__init__(message) self.new_game = new_game
[ "janis@lesinskis.com" ]
janis@lesinskis.com
192348d3292cb7bb944ce9f7b56ba8fd915b8483
092beb9039bbd50c9ab00023dc22e5e337794bef
/iqwig_load.py
91ede2bd44fd99b986ead3f1d48bd152a25a06d2
[]
no_license
edwelker/pmh_img
1321b84b9041e0ba4d98243f074d0bf5684fd868
4f16e9c416a2a200c1776dce3e242d26e679618c
refs/heads/master
2016-09-05T19:33:56.967095
2013-08-05T21:36:07
2013-08-05T21:36:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,432
py
import os import sys sys.path.insert(0, '/home/welkere/python') sys.path.insert(0, '/home/welkere/python/pmh_img') os.environ['DJANGO_SETTINGS_MODULE'] = 'pmh_img.settings' from images.models import Image from lxml import etree parser = etree.XMLParser() xml = etree.parse('import/iqwig.xml') for el in xml.getroot...
[ "eddie.welker@gmail.com" ]
eddie.welker@gmail.com
387f7ab70a3051285c0fb672dfc1abd0bcc59647
9085df69c15b6359978b597baceed0d78f10dd41
/datasets/coco_custom_builtin_meta.py
eb783916f943f9c9d19fabacd6f4c6419fc0d8be
[]
no_license
CharelBIT/OSDetector.detectron2
e92bf0f3f0e3401944ee4949318034db64f79dad
07a9b7b3fc50ec0ae6f84650df4bdfce1709ad55
refs/heads/master
2023-02-21T19:02:42.006051
2021-01-31T06:58:41
2021-01-31T06:58:41
334,592,055
0
0
null
null
null
null
UTF-8
Python
false
false
963
py
COCO_STEEL_CATEGORIES = [ {"color": [220, 20, 60], "isthing": 1, "id": 1, "name": "1"}, {"color": [119, 11, 32], "isthing": 1, "id": 2, "name": "2"}, {"color": [0, 0, 142], "isthing": 1, "id": 3, "name": "3"}, {"color": [0, 0, 230], "isthing": 1, "id": 4, "name": "4"},] def _get_coco_steel_instances_m...
[ "31466099+CharelBIT@users.noreply.github.com" ]
31466099+CharelBIT@users.noreply.github.com
eb377e37d8705e70dde3ea336062f491f5577c50
7c2be4611efc0a672627d19b6decb7a9eead93d9
/module/settings.py
f192310a959dbc734753d00895588a643dd47b81
[]
no_license
wyattsam/jam
c9372e00a2a0deb34f0eca2fd9a11707609ea6e5
2851a848908100a4e308383e4621dddcf8290a66
refs/heads/master
2020-05-29T11:05:19.285347
2015-06-12T17:52:17
2015-06-12T17:52:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
929
py
import yaml import os environment = os.getenv('ENV','devel') _here = os.path.dirname(os.path.abspath(__file__)) try: path = 'config/{0}.yml' pathEnv = os.path.join(_here, '..', path.format(environment)) _config_file = open(pathEnv, 'r') config = yaml.load(_config_file) except IOError as e: errst...
[ "lizhifan@usc.edu" ]
lizhifan@usc.edu
71b8a3e5f5dd1c40eff94c6cfb5c2f4d514efc70
21c253a03971bf79513f03d4f1f99d3a67f97d49
/08/08.py
753cca7c4fe147fbed0f07c90bc33ee893a14b8c
[]
no_license
hinzed1127/aoc2019
9d2d07cc03af4fc0e10da1bccc8721dd6ab9dd2f
98b6d2049e2331c2583d47d05061690b87ea0f2b
refs/heads/master
2020-09-29T06:32:11.089890
2020-01-03T23:49:05
2020-01-03T23:49:05
226,976,655
0
0
null
null
null
null
UTF-8
Python
false
false
1,469
py
pixels = [int(x) for x in open('input.txt').read().strip()] width = 25 height = 6 # part 1 layers = [] while len(pixels) > 0: layer = [] for rows in range(height): row = [] for digits in range(width): row.append(pixels.pop(0)) layer.append(row) layers.append(layer) fe...
[ "dan.hinze@adhocteam.us" ]
dan.hinze@adhocteam.us
4079d5185261835ffa9df17e29142566cf46c3bd
dece3eb22be792aeac65ea12a1f183dd73498add
/coding/Mysql/1.py
10119b94c419e57e3114923e1eb5292e80410ffd
[]
no_license
santanu5670/Python
352515ad82f94157e7f74467c5e7dedd6c9069c8
48c2779ccf934588f2bfce7cd322088acec04080
refs/heads/master
2023-06-24T09:22:49.925654
2021-07-22T15:17:34
2021-07-22T15:17:34
387,683,810
0
0
null
null
null
null
UTF-8
Python
false
false
214
py
import mysql.connector mydb=mysql.connector.connect(host='localhost',user='nsec',password='nsec',database='mysql') print(mydb) if(mydb): print('Connection successful') else: print('Connection Unsuccessful')
[ "santanu2539@gmail.com" ]
santanu2539@gmail.com
7e3284f637fab8035de3d8707ac87fc2b0b02936
dc090f77a992b1e2a8f101a40285bad294318fbd
/CNN_WGAN_GP.py
5877d944c91904dc9fdb8cf21b2c1f2355bb5127
[ "MIT" ]
permissive
tkddnr7671/SinusoidalGAN
2cf023ec0760364934d075df026e4196aea5ac2a
72e1464e5c5c5a02effb951578a8ab74a49a6160
refs/heads/master
2020-04-15T03:20:19.133339
2019-12-18T19:39:27
2019-12-18T19:39:27
164,345,066
2
1
null
null
null
null
UTF-8
Python
false
false
11,431
py
# import packages import argparse from ops import * from utilities import * if __name__ == '__main__': parser = argparse.ArgumentParser('') parser.add_argument('--phones', type=str, default='mono') parser.add_argument('--freq', type=str, default='1.0kHz') parser.add_argument('--snr', type=str, default=...
[ "noreply@github.com" ]
tkddnr7671.noreply@github.com
a7677befea7a6b552e60676b28cd22a65f524086
91e1854f8d7150a9af2f006279d5999775c8cac2
/gitchat/t1.py
ee5c70d83eb722485e7069678d758d32be6e50fd
[]
no_license
cmic1980/gitchat
d8048a4936f690f41f07ae38d1cbf97623a37b0c
dde1d1587f68ccfd58ab8ceaf3fa2f44c3e70dd0
refs/heads/master
2022-12-04T12:35:45.379061
2020-08-24T10:01:32
2020-08-24T10:01:32
289,866,428
0
0
null
null
null
null
UTF-8
Python
false
false
414
py
import pdfkit import gitchat.settings as settings confg = pdfkit.configuration(wkhtmltopdf='D:/dev/wkhtmltox/bin/wkhtmltopdf.exe') url = 'https://gitbook.cn/books/5f3a7fefd8cfc5171638e2f4/index.html' # 一篇博客的url options = {'cookie': []} for item in settings.COOKIE.items(): options['cookie'].append(item) print(...
[ "miao.yu@ctx.sg" ]
miao.yu@ctx.sg
32cb4744b0a27ce5fff742501ffb32eb53ceb386
37236e21173c7a3f9287be616905405708bb9b5c
/linqsh/main.py
28564680e333a5200008f07e5a034140a408e556
[]
no_license
foriequal0/linqsh
7c0c2fd0f392fe8ce4ce0c6a17875854824e7442
969a99555cf4f25d922cf978f4fcd1ce5cf73930
refs/heads/master
2020-02-26T15:20:35.162408
2015-08-30T14:36:33
2015-08-30T14:36:33
41,629,555
0
0
null
null
null
null
UTF-8
Python
false
false
1,418
py
import argparse import sys import os.path import linqsh.env as env import linqsh.cmds import importlib import linqsh.utils.split from asq.initiators import query from asq.selectors import identity def add_common_arguments(parser): pass def main(): basename = os.path.basename(sys.argv[0]) if basename in ...
[ "foriequal@gmail.com" ]
foriequal@gmail.com
0ae5aa472863f78daed685a05bb3eafc6c6f559c
fb6e7922df3da2e9cdc37a00150d6d7663e907ff
/environment/rtfm/dynamics/item/weapon/tridents.py
7f513dd0c963025c039f762d29b6e88477da154d
[ "Apache-2.0" ]
permissive
Spiph/GTG
c54a587002c42a032c89e8eceb5ec638f6c8c05f
4a45032290d0c1364e4398684582c51094b245f5
refs/heads/main
2023-09-02T14:44:14.946624
2021-10-27T12:29:05
2021-10-27T12:29:05
393,086,007
0
0
Apache-2.0
2021-08-05T15:09:07
2021-08-05T15:09:07
null
UTF-8
Python
false
false
465
py
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. from .base_weapon import Weapon from ... import dice as D, material as M class BaseTrident(Weapon): pass class Trid...
[ "jzyjiangzhengyao@gmail.com" ]
jzyjiangzhengyao@gmail.com
8fe1adc8a2f7cc5727b0cd5a4a916d96de3c62be
287230b6695941701830dd513273d516c7235ba9
/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/share/gdb/python/gdb/command/explore.py
3ae3ddf4d4507770ac8b76efca9071c9d41cd773
[]
no_license
haohlliang/rv1126
8279c08ada9e29d8973c4c5532ca4515bd021454
d8455921b05c19b47a2d7c8b682cd03e61789ee9
refs/heads/master
2023-08-10T05:56:01.779701
2021-06-27T14:30:42
2021-06-27T14:30:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
version https://git-lfs.github.com/spec/v1 oid sha256:41b594eab49a76825efa70b96626c28561c2c913f05efdf6b4dfa05d7838aed5 size 26824
[ "geierconstantinabc@gmail.com" ]
geierconstantinabc@gmail.com
c1873a773be89f1211eb3e4c066198116c6ee23f
1f01958585a0c0f10872d7f65181729e56db284f
/Methods/Extra_Functions.py
bc5f24f141c222b9427ca7d3d9bd672d5c694105
[]
no_license
Lyngsaae/Individual-user-tracking---MscThesis_DTU_Spring2020
1d36adb22c7be4a06d4dd0c6b3737004b3601c9b
55f602be03086bdfdce2264943efa6c0be50f795
refs/heads/master
2022-11-15T08:56:36.691455
2020-07-06T10:35:17
2020-07-06T10:35:17
265,823,941
0
0
null
null
null
null
UTF-8
Python
false
false
3,726
py
import cv2 import numpy as np # Draw bonding box and pose def drawTracking(frame, c1, c2, PoseNet): x_offset = int(abs(c1[0] - c2[0]) * 0.5) if c1[0] - x_offset < 0: x_offset = c1[0] if c2[0] + x_offset >= frame.shape[1]: x_offset = frame.shape[1] - c2[0] - 1 profiles = Po...
[ "noreply@github.com" ]
Lyngsaae.noreply@github.com
94762fd3d7df399a13b4ec413e8824568a94be8d
021f3512b248ead3887b7464a4f32fd157853f98
/panama-papers/wikipedia-1.py
03f4c105745c1c23c6ef0977b8d7872044e1e6ba
[ "MIT" ]
permissive
jtmorgan/ds4ux
c1953dca84bfa108392bd25ffe2cb1fb21d0a261
14c4ece59b367fe7c8db09a126161693b9a640b3
refs/heads/master
2020-12-24T21:01:04.186781
2017-10-04T01:03:11
2017-10-04T01:03:11
59,071,205
0
0
null
null
null
null
UTF-8
Python
false
false
2,071
py
# Copyright (C) 2016 Ben Lewis, and Morten Wang # Licensed under the MIT license, see ../LICENSE # Question: When was the first edit to the panama papers wikipedia article? import requests ENDPOINT = 'https://en.wikipedia.org/w/api.php' page_title = 'Panama_Papers' p = { 'action' : 'query', 'prop' :...
[ "jonnymorgan.esq@gmail.com" ]
jonnymorgan.esq@gmail.com
badf45471c3b327d2c70128f37e7ce72f490e432
4681fa51f8d7389229dafa6124b948a08ee49baf
/mypetshop/wsgi.py
c0748ffeec8857066295faffd2e59f9057d6e4d8
[]
no_license
kattyxDD/PetShop_kt
40d2e8329e98777b10603d345f158caf0f617a30
92a4ee3eb0be70d0dbcb7400d16f6fea18b3d20f
refs/heads/master
2020-08-27T13:39:12.609981
2019-11-20T21:56:41
2019-11-20T21:56:41
217,391,708
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
""" WSGI config for mypetshop 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.setdefault('DJANGO_SET...
[ "kat.vargasm@alumnos.duoc.cl" ]
kat.vargasm@alumnos.duoc.cl
1f9f4decc5db879cfc598fe5c9b819fbed4f43a3
b79bce0cf363d2b6dd11371d378d78d48e973270
/kashgari/tasks/classification/base_model.py
7000ff01695ba716d958546221c048d0d0394381
[ "Apache-2.0" ]
permissive
CharlotteSean/Kashgari
2d9338761b16d9804fb81ff92ce2ab1d256c80a7
ab9970ecf6c0164416bfbbec1378c690b0f00d76
refs/heads/master
2022-01-22T03:52:12.284458
2019-07-17T03:48:04
2019-07-17T03:48:04
197,900,673
2
0
Apache-2.0
2019-07-20T08:15:03
2019-07-20T08:15:03
null
UTF-8
Python
false
false
8,165
py
# encoding: utf-8 # author: BrikerMan # contact: eliyar917@gmail.com # blog: https://eliyar.biz # file: base_classification_model.py # time: 2019-05-22 11:23 import random import logging import kashgari from typing import Dict, Any, Tuple, Optional, List from kashgari.tasks.base_model import BaseModel, BareEmbedding...
[ "eliyar917@gmail.com" ]
eliyar917@gmail.com
259e794cad0040bcd4708de22d5d229d14681030
c085b06c9eb220eb40b5ada840886c09a152f053
/Libros de Python/web/web/ejer/tema-01/compose1.py.txt
d8040cca2291387aa8843870ff3af3f23cb0674a
[]
no_license
thanggc/libros
7d3bf564c5a227f08390fbcc6721a0aed160e3e0
430c03fe97544d263b5c3a665327b527d9c223a8
refs/heads/master
2020-12-25T13:23:38.527089
2013-04-29T23:14:08
2013-04-29T23:14:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
139
txt
def compose (*funcs): def composed (x): for f in reversed (funcs): x = f (x) return x return composed
[ "mini.guero@hotmail.com" ]
mini.guero@hotmail.com
c4890060c5757c30353d0ca108171f30b92bf7b6
564d2af5ebb68f8a9d6b89638a053bdf2e2e6bd3
/Python/Problem-7/dictionary.py
a23ebce83a9fd26ca15b3918d7f415b052b160d4
[]
no_license
Dev-SumitPatil/SumitPatil
ac69dc8360109dc29003fb053df6a8c200bc0ea1
d05a6cd170e078a83acadda2cc1bf9ed513beb43
refs/heads/master
2023-06-14T12:48:50.633086
2021-06-29T16:34:37
2021-06-29T16:34:37
271,215,310
1
0
null
null
null
null
UTF-8
Python
false
false
69
py
n=int(input()) d={} for g in range(1,n+1): d[g]=g*g print(d,end="")
[ "sumit.patil6291@gmail.com" ]
sumit.patil6291@gmail.com
405d8bcb0b31d77a0d6e4e204408ddbb95b0786f
44dcb2d759917401e1c7008810d9a8efcd50457f
/others/decorators/closures-example.py
f4711ae0bf61b81198c01f62786c7560a5e47826
[]
no_license
raghav18gupta/python-advance
85deaf2e5aaf7474111ec794d1f49a92d6db0f83
751d5881a958aaea978dbabb21195a3fb12ff7b0
refs/heads/master
2021-05-03T06:20:36.687805
2018-12-28T09:10:53
2018-12-28T09:10:53
120,592,480
1
0
null
null
null
null
UTF-8
Python
false
false
459
py
import logging logging.basicConfig(filename='logs/closures-example.log', level=logging.INFO) def logger(func): def log_func(*args): logging.info("Running '{}' with arguments '{}'".format(func.__name__, args)) print(func(*args)) return log_func def add(x, y): return x+y def sub(x, y): ...
[ "18raghavgupta@gmail.com" ]
18raghavgupta@gmail.com
9a8d835fc0417f099a283d9cda4fda5b43d186f5
ea395e2c1c6ec29ded901aac071c49067cb52e1f
/apps/goods/views.py
7fd8d383b65ec268101ee56471419007763f3847
[]
no_license
QiuPeng92/dailyfresh
f2defda84f0357ba23cc98cc64f9473347c913bc
dce616a06633dd705f5c06546dbc28609e2d50b5
refs/heads/master
2022-12-27T17:03:18.302790
2020-10-11T11:01:17
2020-10-11T11:01:17
297,071,582
0
0
null
null
null
null
UTF-8
Python
false
false
7,363
py
from django.core.cache import cache from django.shortcuts import render, redirect, reverse from django.views.generic import View from django_redis import get_redis_connection from goods.models import GoodsType, GoodsSKU, IndexGoodsBanner, IndexPromotionBanner, IndexTypeGoodsBanner from order.models import OrderG...
[ "976384846@qq.com" ]
976384846@qq.com
aa884db62255ca147c6e5f1127cfa1c35728050e
fca6677041d0b3d074d958f45cb5ca4fc36cecc7
/EvenOdd seperator.py
f75e229b244e883bb3efc919bd0c0511813462d5
[]
no_license
Eshh/Python-Language
c3d0f280f58067d9350a2b50a2e25bf99fb2422b
8dfbbffcdb7186642cbe1fa153b60ba3ac84fc61
refs/heads/master
2020-04-13T02:40:54.892309
2018-12-23T17:18:59
2018-12-23T17:18:59
162,909,726
1
0
null
null
null
null
UTF-8
Python
false
false
540
py
# Accept a list and place all even numbers on the left and odd numbers on the right l = [] while True: n = int(input("Please enter a number,press 0 to stop: ")) if n == 0: break l.append(n) print(f"Given list of numbers is: {l[:]}") print() i = 0 temp = [] for n in l: if n % ...
[ "noreply@github.com" ]
Eshh.noreply@github.com
5a39eb4515a0c355d70391a8ba46300d1c5c0dda
21021d152b1ad38d16aec37de02b286726481d59
/submitter.py
d88edcb1f5ab845cae22b6ba95225cacc1bc80f4
[]
no_license
drewtu2/neu_timesheet_bot
53f0a7bb9fc020091942c94ac65bd3b4e2191170
575f7092fc0c5b565883422a8e2572cabc25dd4c
refs/heads/master
2021-09-14T23:08:20.488549
2018-05-21T21:21:07
2018-05-21T21:21:07
115,580,496
0
0
null
null
null
null
UTF-8
Python
false
false
8,287
py
#! python3 import pyautogui import logging import mylogger import datetime import csv import cv2 import os import sys from math import pow from time import sleep DAYS_OF_WEEK = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] def generateEntries(config_fi...
[ "drewtu2@yahoo.com" ]
drewtu2@yahoo.com
d6b2a25ddb12afec7062cff3eb7df5acd5126835
2d7b4a57aca05fae79bf75266339b0913f9c361f
/ore/organizations/forms.py
702fcd565163cb2c3caf5c697f4d1d5d7e0fb38f
[ "MIT" ]
permissive
maxov/ore-old
8aa6bbece458cbdce281f42695fe8b6b14c1e378
1d1c73795406fa52ae969726feb89f7aedbc4afc
refs/heads/master
2021-01-19T21:12:51.100761
2016-03-06T03:21:40
2016-03-06T03:21:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,225
py
from django import forms from django.core.exceptions import ValidationError from django.core.files.uploadedfile import InMemoryUploadedFile from django.core.urlresolvers import reverse from django.forms import widgets from django.utils.html import escape from crispy_forms.helper import FormHelper from crispy_forms.lay...
[ "git@lukegb.com" ]
git@lukegb.com
f189e83fa455180aaf2bfc05218e55cf1702ea2d
1d190884f14859b5859257bba8f6c32093c8670a
/plugin/Generator.py
c7a19cafbd52cbf06efcb15b2916a9ad5fac7d6a
[]
no_license
umlfri-old/addon_code_generation
ed8aeb1fa1560ab0a1f12fee58adf50782729c1a
f04d85b68930ef4a49b66a01a3caf6d7799a0c3d
refs/heads/master
2021-01-20T16:25:02.586449
2015-02-11T06:01:34
2015-02-11T06:01:34
90,839,564
0
0
null
null
null
null
UTF-8
Python
false
false
963
py
import os import os.path #from Documentation import CDocumentation class CGenerator: def __init__(self, type, path = None): self.type = type self.path = path def GetType(self): return self.type def SetPath(self, type): self.type = type def GetPath(sel...
[ "bax007@gmail.com" ]
bax007@gmail.com
c31f8fda7fccbe3ee02c224b83ad81987d17fbf7
c579e5c86dd506f25a6566e2a43ed4a28c46b9cc
/myapp/migrations/0005_auto_20190715_0002.py
40687135b9101501cf7760cc140318001d77274f
[]
no_license
VincentMarx/upload_file_to_GCS_with_django
15bf0ab8b3ad420557f6f25082aada49532cfa45
797fab4020c9d6dda199389e05ed6d2a8adb1a20
refs/heads/master
2022-06-19T10:11:35.946483
2019-08-02T13:10:40
2019-08-02T13:10:40
195,653,835
0
0
null
2022-05-25T03:38:27
2019-07-07T13:22:38
Python
UTF-8
Python
false
false
513
py
# Generated by Django 2.2.3 on 2019-07-14 16:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('myapp', '0004_auto_20190713_2326'), ] operations = [ migrations.AlterField( model_name='document', name='filename', ...
[ "q1w2e3r4" ]
q1w2e3r4
41b64fdd2aa33f0adaccd7cc116173d412208847
8d2fbfe726eedc6ceba7c204589c29c5210f9d0d
/Session 9 homework 22052017/playerbullet.py
d38a8bb95fd0e22a8827aae466331962459268b0
[]
no_license
supervehacker/Homework
b91cf33ee314143bd2a6ca13e1a3308a72dda382
8a8abc654ff1fa56942d86153f98db08a1b58aef
refs/heads/master
2021-01-20T04:28:37.810224
2017-07-03T10:24:24
2017-07-03T10:24:24
89,693,768
0
0
null
null
null
null
UTF-8
Python
false
false
379
py
import pygame class PlayerBullet: def __init__(self): self.x = 0 self.y = 0 self.image = pygame.image.load ("resources/player_bullet.png") def draw(self, screen): screen.blit (self.image, (self.x - self.image.get_width()/2, self.y - self.image...
[ "huavinhvietanh@gmail.com" ]
huavinhvietanh@gmail.com
57f17c6d24bea0ddbab1fe2adb4696e3bc7d2812
b10c95923eadb9abb6aff4a7a6dd8aa199a0c54b
/app_ex/Mercury/views.py
d2076f749901cbd82b477511f031e06f93a4e664
[ "Apache-2.0" ]
permissive
huisezhiyin/Solar
4a720d4ea1c034f0b2ff674411ab792d695d62cd
e1c9e548c2e922ef63764ac90b9ee237d005b8fc
refs/heads/master
2020-05-16T01:42:41.197115
2019-04-22T06:17:25
2019-04-22T06:17:25
182,609,187
0
0
null
null
null
null
UTF-8
Python
false
false
1,877
py
from rest_framework.viewsets import GenericViewSet from rest_framework.decorators import action from rest_framework.response import Response from app_ex.Mercury.models import User from django.contrib.auth import login, logout, authenticate from django.http.response import HttpResponseRedirect from rest_framework.permis...
[ "837364695@qq.com" ]
837364695@qq.com
9a3319bcfa18e3b934550bb8f706d239a6bc2c5b
00cf2ec634b6dda5de9171b424447d148ca34ebc
/lesson_2/5.py
2b7fd0676848c454a79839aca2c1498862a8e9b1
[]
no_license
coffin5257/pylearning
d2831d81af3d67d1a55fd3c3408380606de9b41d
30ac5e12e8cc599529a398c53216b3078786bc58
refs/heads/master
2020-06-04T04:12:17.694747
2014-04-28T22:56:00
2014-04-28T22:56:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
261
py
#!/user/bin/env python port = [] print port port.append(22) print port port.append(80) print port port.append(23) print port port.append(8080) print port port.append(139) print port port.append(445) print port port.append(3389) print port port.sort() print port
[ "coffin5257@gmail.com" ]
coffin5257@gmail.com
ea87058f0b89ef2986d354a4d11d9415fbf9a678
f5ad59e9ebdd65e00b8a9c1a740bb6eef878fe99
/utils/augmentations.py
a7ef530c764d19f4b9771ac5b8ccbda6a16f0894
[ "MIT" ]
permissive
xiaobingchan/ssd.pytorch
8c506c7cf6cc8e29cd548b9c561a7b1bf258a4ae
31df8460f49cfb59d545500af7d92d36e7d643b3
refs/heads/master
2023-03-22T02:13:04.155628
2021-03-13T03:10:15
2021-03-13T03:10:15
347,259,018
0
0
null
null
null
null
UTF-8
Python
false
false
13,485
py
# -*- coding: utf-8 -*- import torch from torchvision import transforms import cv2 import numpy as np import types from numpy import random def intersect(box_a, box_b): max_xy = np.minimum(box_a[:, 2:], box_b[2:]) min_xy = np.maximum(box_a[:, :2], box_b[:2]) inter = np.clip((max_xy - min_xy), a_min=0, a_m...
[ "you@example.com" ]
you@example.com
aaf8ee7c32b2e9d10a2f3f84ac1cab0e7b8e8bf5
b37a6f215e52ef3884c39cf337a9f2ebdbc142aa
/test/test_raysync_z_download.py
0bc3e760a8e4737f7a08eb8d349def3d9d1be8fb
[]
no_license
wangxinlei995/test
9fe73c04a095f4c876a2c0c442eebebda94f3461
891fd9c3514f692a4f22bcce9f415080400849be
refs/heads/master
2020-04-08T19:07:46.499539
2018-11-29T09:38:27
2018-11-29T09:38:27
159,641,187
3
1
null
null
null
null
UTF-8
Python
false
false
5,423
py
import ctypes import unittest from public.config import Config,SDK_PATH,DOWNLOAD_PATH import os from public.log import logger import time from public.transfer_public import upload_task,statechanged_func class TestRaysyncDownload(unittest.TestCase): '''测试下载基本功能''' URL = Config().get('URL') port = Confi...
[ "772725218@qq.com" ]
772725218@qq.com
203001c61b060edefb7a98c2ccc7daaa1ee84d37
8027e4740f16ff7467c5d86ce39ce4582e33a03c
/settings_local.py
a5ac64ef73c30affd72f7577ee991e50dc925f2d
[ "MIT" ]
permissive
johmathe/deep-visualization-toolbox
992acffeadeae97607c1acfb93c9e5fb65fa7092
da2b0e2abd34844cb4d7a655d894d3c96167ca00
refs/heads/master
2020-06-21T16:41:32.783190
2016-11-25T20:02:29
2016-11-25T20:02:29
74,780,020
0
0
null
2016-11-25T18:24:43
2016-11-25T18:24:42
null
UTF-8
Python
false
false
1,481
py
# Define critical settings and/or override defaults specified in # settings.py. Copy this file to settings_local.py in the same # directory as settings.py and edit. Any settings defined here # will override those defined in settings.py # Set this to point to your compiled checkout of caffe caffevis_caffe_root =...
[ "johan.mathe@gmail.com" ]
johan.mathe@gmail.com
a5d6912a8b5dfec853e4d84a910c2cc66c36ae5a
7f064d3905ed3df6638daf365e71953f1721509d
/train.py
2c78263048c19effc369e8b7c29b9d28443c68d0
[]
no_license
CV-IP/warp3d_reposing
3993c035de81126aeea41b22fd3f769aee7d3bd2
522e783ae36b6202495aded049937eee35f00b50
refs/heads/master
2022-11-05T03:53:55.275520
2020-06-27T11:21:42
2020-06-27T11:21:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,632
py
import os from tensorflow.python.framework.errors_impl import InvalidArgumentError from dataset_definitions import get_dataset from model import generator, discriminator from parallel_map import parallel_map_as_tf_dataset from losses import get_feature_loss, init_perception_model, get_pose_loss, init_pose_model import ...
[ "knoche.markus@googlemail.com" ]
knoche.markus@googlemail.com
980b0516f66aa8953a4e96d81f2d63e276eaac24
17800f414e88c1c274962ef70d55f180426744fa
/models.py
16b112842cb0424a2ce474df7d20bf110a4bdb58
[]
no_license
Synchronik/blogzz
49bf5c01070df580c355a852cf715c8d29ee7e0c
19650c73ba7dcb092e3492252607af2d5c0fc7a9
refs/heads/master
2021-01-20T04:09:39.942864
2017-04-28T01:19:56
2017-04-28T01:19:56
89,651,082
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
from google.appengine.ext import db class User(db.Model): username = db.StringProperty(required = True) pw_hash = db.StringProperty(required = True) email = db.StringProperty() class Post(db.Model): title = db.StringProperty(required = True) author = db.ReferenceProperty(required = True) body ...
[ "howardLbenjamin@gmail.com" ]
howardLbenjamin@gmail.com
5fd55b3db006f549473fed526a24e011e326aaa1
0e0966ec491a21b3d6838722925b840f13a0f1ba
/test.py
989d9ead103edfd472ebdedee2af452a0898735e
[]
no_license
dev-paltron/test_webapp
6126a595f6effadd715579469327b32950c4f021
5bafac9514d11cfa916e5c1d22e24f79073cc9b7
refs/heads/master
2021-09-19T08:17:13.143876
2018-07-25T14:53:52
2018-07-25T14:53:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,755
py
import psycopg2 import requests r = requests.put('http://httpbin.org/put', data = {'key':'value'}) class PostgreSQL: def __init__(self): # Define our connection string self.host = 'internalrecruiting.cq03nwpqmo5j.us-east-2.rds.amazonaws.com' self.db = 'recruiting' self.user = 'd...
[ "daniel.stojanovic@paltron.com" ]
daniel.stojanovic@paltron.com
3a52b9c6927f6ac10436c9115a4019e95d9bc16b
0c6d0c6094a1823d60260ccb06fccc93a020747c
/virtual/bin/pip
2ba8a1fa10ada58b76b24c51998c0a24cdc4a9c6
[ "MIT" ]
permissive
Brian-Muchera/Pitch-Project
888a8fac9d1811af3d692f22e937b4d6245b929d
5d1b0533256931979d123cddcfab9f61a6a4b45b
refs/heads/master
2022-12-22T18:20:48.243849
2020-09-25T10:55:19
2020-09-25T10:55:19
296,649,600
0
0
null
null
null
null
UTF-8
Python
false
false
267
#!/home/muchera-brian/Documents/Pitch-project/virtual/bin/python # -*- coding: utf-8 -*- import re import sys from pip._internal.cli.main import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "mucherabrian2@gmail.com" ]
mucherabrian2@gmail.com
ad0b0295d9ea1ffea7f3b2b7763f265e7b92aa1a
0f923a810256cfccac6c0642383638accaa8c83d
/terminal.py
aa7f6ccc6415275cf20270726ab7f148281295b2
[ "MIT" ]
permissive
overvenus/terminal-tools
7aca04bb4aca7122e821216ba53727d760f6bdb3
2db36334f9df068a30b42adfe270117f7ac5ae0d
refs/heads/master
2021-01-12T12:09:50.676607
2015-12-16T12:22:45
2015-12-16T12:22:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,883
py
#!/usr/bin/env python import json import urllib import urllib2 # Authentication def setup_credentials(utoken, atoken, credsfile): if utoken is None and atoken is None: try: creds = json.load(open(credsfile, 'r')) utoken = creds['user_token'] atoken = creds['access_token'...
[ "admin@example.com" ]
admin@example.com
0a3b80486839397a933311c72f8518a47c487fef
9bbdebe01a670a0fd0bfb7a964132cce993af83e
/locallibrary/migrations/0004_country.py
5e2582dd27e8c722acb409dcd252a92eea26cbc2
[]
no_license
ahayek84/locallibrary
985bb97af07d90b6abe8d20f4d1bf809e1e2808c
d93cfb81229234ad27acc9f880d340a9d5083ee2
refs/heads/master
2020-04-27T07:00:43.896036
2019-03-14T14:00:51
2019-03-14T14:00:51
174,124,560
1
0
null
null
null
null
UTF-8
Python
false
false
588
py
# Generated by Django 2.1.7 on 2019-03-07 13:29 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('locallibrary', '0003_delete_country'), ] operations = [ migrations.CreateModel( name='Country', fields=[ ...
[ "ahayek84@gmail.com" ]
ahayek84@gmail.com
a63d008f4a88eae9d409a21dec51ccc26b7b1055
0946fc233478fec9eac9eb247d45667c3b3989e8
/reassignment.py
ab002343bf6d67cf8ea6059c7d08a196ae10471d
[]
no_license
hoinx/music-processing-experiments
0da954e268d6a7120729cb3b012f53d836cd1dc7
bdd76fa8a8e1b90c8d4e610dcd3a6beadc2e7b1d
refs/heads/master
2020-04-30T13:00:35.283119
2015-11-02T19:54:46
2015-11-02T19:54:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,545
py
import os import matplotlib.pyplot as plt import numpy as np import scipy from files import load_wav from spectrogram import real_half, create_window from analysis import split_to_blocks from tuning import pitch_to_freq, freq_to_pitch, pitch_bin_range, quantize_freqs_to_pitch_bins def cross_spectrum(spectrumA, spectr...
[ "bohumir.zamecnik@gmail.com" ]
bohumir.zamecnik@gmail.com
614447c098ce3f30733b40a27ed5cb686bb2975b
fc0e6cad12c05a564c888987d078c8386e585c18
/airflow-project/create_tables.py
3b57540442066dd93eef662d6bf027eafaacc1cf
[]
no_license
richard-to/ud-dend
80c2682a743d5bee69c752e801c08ea8ef47e7e7
8119651f390c8cd53d37598ffed9ea5316d3ae3b
refs/heads/master
2023-02-19T04:25:14.614563
2021-01-17T03:01:07
2021-01-17T03:01:07
328,534,754
0
0
null
null
null
null
UTF-8
Python
false
false
1,718
py
import configparser import boto3 import psycopg2 def main(): """Entrypoint to drop/create Redshift tables""" # Load config config = configparser.ConfigParser() config.read("dwh.cfg") aws_key = config.get("AWS", "KEY") aws_secret = config.get("AWS", "SECRET") db_cluster_id = config.get(...
[ "richard@hazelanalytics.com" ]
richard@hazelanalytics.com
062b7b625a834b19f07f60721477c2eec814657b
3abd92a8a9c2f8f3a698f813547e61b9342b2507
/blog/tools.py
2b001a4ecc94eee0b7086a97084d8d4364d8a49b
[]
no_license
gmilktank/web_develop
a2717e268b7cd4d90e8ed615f636e3a6e4485f5a
485e2cb898d9341a782be3657f9649b24aec1fd6
refs/heads/master
2021-01-21T14:48:53.185413
2016-07-06T08:25:34
2016-07-06T08:25:34
58,506,379
0
0
null
null
null
null
UTF-8
Python
false
false
2,072
py
# -*- coding:utf-8 -*- __author__ = 'milktank' import hmac import random SECRET = 'imsosecret' import re import string import hashlib import time import datetime import logging def make_salt(): return ''.join(random.choice(string.letters) for x in xrange(5)) # Implement the function valid_pw() that returns True ...
[ "milktank@mail.ustc.edu.cn" ]
milktank@mail.ustc.edu.cn
43a764c898b53f02f2de98733e49d342cbeef5dd
3a8fd98b56e6f7188963b6fb04838f29ef8eab58
/4.QA机器人项目/prepar_data.py
4e376fc6c5dae0a19ba8746949528e1cb1c5d9c0
[]
no_license
sunshinewhy/Pytorch_Learning_Notes
a5d6790ec67a1824271250710caf2fe2f0267d2b
3cf67a01fce023952514863f5ed072d984746aa3
refs/heads/master
2023-08-30T09:37:51.813355
2021-10-28T06:28:52
2021-10-28T06:28:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
717
py
# -*- coding: utf-8 -*- # date: 2021/10/21 # Project: Pytorch学习 # File Name: prepar_data.py # Description: 作为生成数据的主函数使用,通过调用已经写好的方法直接生成所需要的数据 # Author: Anefuer_kpl # Email: 374774222@qq.com from data.prepar_corpus.prepar_classify_corpus import process_classify_xiaohuangji, process_classify_QA from data.prepar_corpus.p...
[ "374774222@qq.com" ]
374774222@qq.com
4887675c21970c73fbb8d10f2891370c490380cb
387587c753e76d98a6a0401327766c45561d5109
/ros_catkin_ws/devel_isolated/roslaunch/lib/python2.7/dist-packages/roslaunch/__init__.py
8752f22becaf4ebc75be508c7fbdbba3736db545
[ "MIT" ]
permissive
letrend/neopixel_fpga
7a4819a566fab02bd602c3338b8aaa0ddf4bee85
d9247417a9d311eceebad5898571846c6e33a44a
refs/heads/master
2021-01-23T01:00:55.290431
2017-05-30T20:15:38
2017-05-30T20:15:38
92,855,363
0
0
null
null
null
null
UTF-8
Python
false
false
1,028
py
# -*- coding: utf-8 -*- # generated from catkin/cmake/template/__init__.py.in # keep symbol table as clean as possible by deleting all unnecessary symbols from os import path as os_path from sys import path as sys_path from pkgutil import extend_path __extended_path = "/root/ros_catkin_ws/src/ros_comm/roslaunch/src"...
[ "simon.trendel@tum.de" ]
simon.trendel@tum.de
02650d3908ac10b7a8f2d51dad07cac1493b5748
2eb779146daa0ba6b71344ecfeaeaec56200e890
/python/oneflow/compatible/single_client/ops/layers.py
1f64355013b6e7f7ad79cbd2282b85e7c29c16d5
[ "Apache-2.0" ]
permissive
hxfxjun/oneflow
ee226676cb86f3d36710c79cb66c2b049c46589b
2427c20f05543543026ac9a4020e479b9ec0aeb8
refs/heads/master
2023-08-17T19:30:59.791766
2021-10-09T06:58:33
2021-10-09T06:58:33
414,906,649
0
0
Apache-2.0
2021-10-09T06:15:30
2021-10-08T08:29:45
C++
UTF-8
Python
false
false
63,471
py
""" Copyright 2020 The OneFlow Authors. All rights reserved. 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 agr...
[ "noreply@github.com" ]
hxfxjun.noreply@github.com
7675cc1534dbcb6409736d1936327d30a9a71b7f
1286ed0470bb1448f31a9e4e0410cd73f241b692
/regolith/emailer.py
8e251d7378ea23c2a45025bd0e54a2bc82670cdf
[ "CC0-1.0" ]
permissive
st3107/regolith
db2a24d1793fdc726266d6cb519517a03c4118eb
44e51b32c2df50a78789a1fe7ed3fae333ca361c
refs/heads/master
2023-01-12T23:17:08.218641
2022-08-29T11:14:38
2022-08-29T11:14:38
216,075,147
0
0
CC0-1.0
2019-10-18T17:28:04
2019-10-18T17:28:04
null
UTF-8
Python
false
false
5,782
py
"""Emails people via SMTP""" import os import smtplib import tempfile from email.mime.text import MIMEText from email.mime.application import MIMEApplication from email.mime.multipart import MIMEMultipart try: from docutils.core import publish_string except ImportError: publish_string from regolith.builders.g...
[ "cjb2250@columbia.edu" ]
cjb2250@columbia.edu
06395ea74d5d4f3708f9562ba729722d35da37df
55525e05b1d8aab004ad2f6d5527b7cea0fbe837
/modules/helpers/ddg_path_handler.py
ed4ffbccb45cd2f297355d1e2f5ae46dbc8de93f
[ "MIT" ]
permissive
ItWasDNS/DDG-Parser
af84e9af9997573de73206a475483e117eac8a65
fd63099df7b93a603b9fe2ae4259c232f0555a65
refs/heads/master
2020-05-19T14:45:39.639324
2019-05-06T22:47:35
2019-05-06T22:47:35
185,067,741
2
0
null
null
null
null
UTF-8
Python
false
false
1,035
py
""" Handle directory paths for DuckDuckGo Parser """ import os def process_directory_paths(): """ Process directory paths core """ while True: ddg_path = input("Enter full path of com.duckduckgo.mobile.android: ") if os.path.exists(ddg_path): if ddg_path[-1:] != '/': ...
[ "itwasdns@gmail.com" ]
itwasdns@gmail.com
c47eda6052e58bb859f3d9478ba9cbf9b409da38
c4e9b4d198e13a26d484618ea403a52d43cd4969
/python/itertools/itertools_product.py
a9efdfef0d941973b5732aa8f90a0661ff14d026
[]
no_license
cbeach512/hackerrank
ced7e6949b08743d641bcff04d386c53e80de7e3
539fde613428492d6051e5f9bab836f38e796de9
refs/heads/master
2020-05-23T20:26:36.202220
2019-06-19T12:31:13
2019-06-19T12:31:13
186,931,540
0
0
null
null
null
null
UTF-8
Python
false
false
1,909
py
#!/usr/bin/env python3 """itertools.product() - itertools.product() This tool computes the cartesian product of input iterables. It is equivalent to nested for-loops. For example, product(A, B) returns the same as ((x,y) for x in A for y in B). - Sample Code > from itertools import product > > print list(pr...
[ "cbeach@apple.com" ]
cbeach@apple.com
ade8e8a7cbc2fe557bf0ff2004866b47a5e39bfd
9cd975a7d1708545402af335649e4b575ae1e522
/tutorias/day_hour/apps.py
e4a9185256edadedc91d9d4c1090ea8b70272e6a
[]
no_license
GDawg4/tutoresBackend
4a67e40afc0c999d641933350e1b89fea1e9fbe2
f5bd7619c2299764ff29337929900fc3c43171d4
refs/heads/master
2023-01-19T12:15:13.373329
2020-12-01T04:47:12
2020-12-01T04:47:12
287,171,881
0
0
null
null
null
null
UTF-8
Python
false
false
90
py
from django.apps import AppConfig class DayHourConfig(AppConfig): name = 'day_hour'
[ "garoz.r4@gmail.com" ]
garoz.r4@gmail.com
b2b0b2abe9ba40aa66f95f1394d568aac656a584
b8d140ce82306ee4032af2d5b15c4229d42d7e5e
/crab/vendor/qute/_utils.py
9f6c45778ecde2946f334896c14c0127780a7cfd
[ "MIT" ]
permissive
jdrese/crab
a387827512641ade632b655eea766431381ae670
3cd20dad1d4d44b03468d7828b87a28351cecf18
refs/heads/master
2022-06-30T09:56:36.461807
2020-05-14T07:46:13
2020-05-14T07:46:13
285,549,135
1
0
MIT
2020-08-06T11:08:16
2020-08-06T11:08:16
null
UTF-8
Python
false
false
4,931
py
""" This holds a set of small helper functions """ from .vendor import Qt # ------------------------------------------------------------------------------ def addLabel(widget, label): """ Adds a label to the widget, returning a layout with the label on the left and the widget on the right. :param wi...
[ "mike.malinowski@outlook.com" ]
mike.malinowski@outlook.com
acd76d9fe84f69bf0e8ea42fc7d7363661a6960a
927522e2c8db0fccf047e847464315c9c1abdde4
/svae_models/models.py
d2612a0d69ace0b32e3be9973156481ea53edb36
[ "MIT" ]
permissive
ljm198134/A-Boundary-Based-Out-of-Distribution-Classifier-for-Generalized-Zero-Shot-Learning
3564e161e3aeef42bbbc991f599dfff746c83f51
adc4f4d9905ea65477cf35e89b9822a9b96b8f14
refs/heads/master
2023-03-19T10:30:33.724597
2021-03-15T08:59:03
2021-03-15T08:59:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,223
py
import numpy as np import torch from torch import nn from torch.utils.data import Dataset import torch.nn.functional as F import ipdb def free_params(module: nn.Module): for p in module.parameters(): p.requires_grad = True def frozen_params(module: nn.Module): for p in module.parameters(): p.r...
[ "chenxingyu_1990@163.com" ]
chenxingyu_1990@163.com
8a75273dfc36efeb43600a7cd2021c8b334f144a
31680e9bda4fe64f21ab8995295342f2e75edb21
/tests/__init__.py
b44ed6d43f6d3c7fe898a3adb8992c781973d688
[]
no_license
trucdngo/TestAutomationPython
2893c34ffd6224443188868c89812ca3ccbbee07
b4bc044678cd6080752392fe7947de2eae098462
refs/heads/master
2021-05-05T19:41:40.210015
2018-01-22T10:01:41
2018-01-22T10:01:41
117,762,534
0
0
null
null
null
null
UTF-8
Python
false
false
22
py
__author__="truc ngo"
[ "truc.dinh.ngo@gmail.com" ]
truc.dinh.ngo@gmail.com
8de98e0b2afadc9c7d993b9e94a5beb61526c029
719e5b3f31a02efda070228290c4411ec8982002
/model/Coisa.py
aa6fcc1b8281fb080caa1ab843ca1151949e5666
[]
no_license
luizclaudio/lc-gae-test
f8bf6166cb2bf7b2c5a94d215d41765cdf1c1e88
196c1b9196b2cd4bb518369d6a4b5cb371b410dc
refs/heads/master
2020-04-06T06:45:25.937971
2012-11-16T13:45:48
2012-11-16T13:45:48
6,714,235
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
from google.appengine.ext import db from Categoria import Categoria class Coisa(db.Model): nome = db.StringProperty() descricao = db.StringProperty() preco = db.FloatProperty() categoria = db.ReferenceProperty(Categoria)
[ "LCSILVA@.fieb.org.br" ]
LCSILVA@.fieb.org.br
674040e0b79eea73ea2b9e3982ff2978067e8e26
d83f4e78abd4e62ab74bb0332ac603cdd639c2a8
/main51.py
83cb4de0fd33c7cb6fa4671e9e7e793494d3bc62
[]
no_license
macjimenez/ModelMCPCNGaus
4b77e474fe233c7f979567d77b4e2bc5b76f8498
d3593db361b6764a841f4f685e7209fd7db4fdf6
refs/heads/main
2023-05-31T20:01:34.459669
2021-06-23T16:16:54
2021-06-23T16:16:54
379,445,535
0
0
null
null
null
null
UTF-8
Python
false
false
4,317
py
from load_data_ddi3 import load_data, sentence_split_for_pcnn from model5 import CNN, MCCNN, PCNN, MC_PCNN from ddi_conf5 import param # Get hyperparameter informaction import numpy as np if __name__ == '__main__': cfg = param() (tr_sentences2idx, tr_d1_pos_lst, tr_d2_pos_lst, tr_pos_tuple_lst, tr_y), \ (...
[ "noreply@github.com" ]
macjimenez.noreply@github.com
4c7bf9da3c440f083420f5aebb551f508e936d97
a0f1852428f77f50005d4918c3de2add230fe4ba
/inference.py
886b572e8d05197b37bd1e5789a1e1134c0b97c0
[]
no_license
meghasn/impact.ai_mask
4ff5f96d9ac3cde0c64b933ea34752c5c2eab439
17bf9d9ae63c288800290960c2c664d7c1b65e75
refs/heads/main
2023-07-23T12:55:58.228788
2023-07-11T18:58:50
2023-07-11T18:58:50
300,572,615
0
0
null
null
null
null
UTF-8
Python
false
false
1,834
py
#!/usr/bin/env python # coding: utf-8 #infrence code to detect font styles. import torch import torch.nn as nn import torch.optim as optim from torch.optim import lr_scheduler import numpy as np import torchvision from torchvision import datasets, models, transforms import matplotlib.pyplot as plt import time impo...
[ "meghoos99@gmail.com" ]
meghoos99@gmail.com
eb054a0a301424250438b1113dad6196e6440827
6e8f982204debb342fb661688008cf27269b38a2
/parl/remote/tests/cluster_monitor_test.py
94341700c00ffc8b5e26b818fa9d394d02b0c60a
[ "Apache-2.0" ]
permissive
thinkall/PARL
fe65acbb9824c2352f900b734170101a14d6a6fd
aa48c15cacf28dd058729df0c62a1191f9fc36f2
refs/heads/develop
2022-11-06T14:20:56.204445
2020-06-17T01:41:27
2020-06-17T01:41:27
272,723,628
0
0
Apache-2.0
2020-06-16T14:30:23
2020-06-16T14:02:17
null
UTF-8
Python
false
false
2,191
py
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # 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 app...
[ "2466956298@qq.com" ]
2466956298@qq.com
b0483b5e4f30b0a029f0539408dc16c9035922fb
1b8af40e0cb7d4f1f50ea654bd977bbe34f3c0ef
/0x01-python-if_else_loops_functions/1-last_digit.py
ec22cad683b96c63813dbb795102ba2aaa3e2e40
[]
no_license
Moussaddak/holbertonschool-higher_level_programming
38dd28a423d93b1fddbbdd7ba21a8e09e284a36e
7f55fadd27c369b028ea94b59f472094ad4715d3
refs/heads/master
2023-02-27T08:19:27.537694
2021-02-11T22:48:42
2021-02-11T22:48:42
259,457,139
1
0
null
null
null
null
UTF-8
Python
false
false
340
py
#!/usr/bin/python3 import random number = random.randint(-10000, 10000) if number < 0: lastDigit = number % -10 else: lastDigit = number % 10 print("Last digit of", number, "is", lastDigit, "and is", end=" ") if lastDigit > 5: print("greater than 5") elif lastDigit == 0: print("0") else: print("less...
[ "meddeb.moussaddak@gmail.com" ]
meddeb.moussaddak@gmail.com
aa58c72a61686c3fcbfc652c3ea34db79cf29d43
ec5c35ac5163c4e81262a81a6a6c46667c01733d
/server/auth.py
b279dc4faf0008a333cb253cdb50ed329e219f6b
[]
no_license
kotawiw/bytedance-exercise-2
27b32d81aa7e8040c1c8448acbe9c4ff20ff5b26
8db190487a6490ec852d8418d93ba62251a5437f
refs/heads/master
2022-12-24T00:04:53.047395
2020-09-23T11:48:13
2020-09-23T11:48:13
297,948,510
0
0
null
null
null
null
UTF-8
Python
false
false
1,925
py
import functools from flask import Blueprint from flask import g from flask import request from flask import session from flask import abort from flask import jsonify from server.models.users import User bp = Blueprint("auth", __name__, url_prefix="/api/auth") def login_required(view): @functools.wraps(view) ...
[ "you@example.com" ]
you@example.com
cb9fea69d94faa36471e4ad0b10ce34000e12f81
250c6e755972478b9488a8c270ee77c63ae0d3ca
/ping.py
a115c04f9fa37012931c28ba4c21225d8adee96b
[]
no_license
zz7a5pe4/test
999fc6154d1c6b7706b4aa10b1d37d8708b0f57e
768d687611f763ab4606b25e6418ab360d2accfe
refs/heads/master
2021-01-19T09:31:00.192395
2012-03-31T16:32:31
2012-03-31T16:32:31
3,833,538
1
0
null
null
null
null
UTF-8
Python
false
false
11,891
py
#!/usr/bin/env python # coding: utf-8 """ A pure python ping implementation using raw sockets. Note that ICMP messages can only be send from processes running as root (in Windows, you must run this script as 'Administrator'). Bugs are naturally mine. I'd be glad to hear about them. There are cert...
[ "x@x-Latitude-E6410.(none)" ]
x@x-Latitude-E6410.(none)
6aaeff9c56d64847c2c21f107e952413f161274a
c8bdd4dc2153b77498bc5b9f7f2208712a556ea1
/mb_aligner/dal/section.py
7bec24c75c75c218863de3cb19530da9a5c11784
[ "MIT" ]
permissive
adisuissa/mb_aligner
ac0b9d567a7da70dcc60d570505080e3b75cec32
1c92ce7df862908ebaab9ded54985c2413b9d2c5
refs/heads/master
2023-07-19T21:08:56.716304
2019-09-11T13:49:58
2019-09-11T13:49:58
203,250,865
0
3
MIT
2023-07-06T21:05:45
2019-08-19T21:11:58
Python
UTF-8
Python
false
false
13,527
py
from collections import defaultdict import os import json from mb_aligner.dal.tile import Tile from mb_aligner.dal.mfov import Mfov import csv import numpy as np import cv2 import subprocess class Section(object): """ Represents a single section (at least one mfov) in the system """ def __init__(self,...
[ "adisuis@seas.harvard.edu" ]
adisuis@seas.harvard.edu
b49176bbe9ac6adffa0f0c6e3d10eb788bbdd4da
9f87aeb02315b2da4de8be873593d8bbdbdd1793
/app/routes.py
5d846c6dd580245f71bb51cfab4e2f8bf4c4f715
[]
no_license
haomjc/microblog
6cefae82064051d3b4dc8a854ef969edd6e6c87b
bc0a792cfb82acc5553fd61f94db17df51081a60
refs/heads/master
2022-12-19T00:00:10.422477
2020-09-22T06:35:23
2020-09-22T06:35:23
297,557,735
0
0
null
null
null
null
UTF-8
Python
false
false
5,223
py
from datetime import datetime from flask import render_template, flash, redirect, url_for, request from flask_login import current_user, login_user, logout_user, login_required from app import app, db from app.forms import LoginForm, RegistrationForm, PostForm from app.models import User, EditProfileForm, Post @app...
[ "haomjc@163.com" ]
haomjc@163.com
2ef5d65a6762bf7ec0660dcbc8a518b61d0e7fd1
0dcc77aef9c0e6155aea8dbf5ef89f57f656f3a1
/indeed_scraper.py
0baef7ffd2378f1ed39c04bb6563c417198803ed
[]
no_license
mercuryretro/scraping-da-web
b83e4e8008cdd03b2a461e8031c294160d0fc47b
578cd98381b78f94de0c645edc836592a538299e
refs/heads/main
2023-07-17T19:14:39.322399
2021-09-05T01:09:38
2021-09-05T01:09:38
403,174,150
0
0
null
null
null
null
UTF-8
Python
false
false
793
py
import requests from bs4 import BeautifulSoup URL = 'https://www.indeed.com/jobs?q=software%20developer&l=San%20Diego%2C%20CA&vjk=370bd89a13a9d5b8' page = requests.get(URL) soup = BeautifulSoup(page.content, 'html.parser') results = soup.find(id="resultsCol") job_elements = results.find_all('div', class_='slider_ite...
[ "peyton.capers27@gmail.com" ]
peyton.capers27@gmail.com
0053a7079faf9fa027992cb3f4a7f048e6e8bee4
0e2768a4a21367c4c2f89976f2dadd5c94fec09b
/StarGAN/age_test.py
b6cf116b145149480910e3303ec1f6fc45ca770a
[]
no_license
xogus1107/Capstone
1dcea5d7fd1d603c8b31133d7a64325fee8b72ed
e84fd5a2e5419da969a8013a4ee0b98b4c1d22cf
refs/heads/master
2020-03-30T03:47:23.028610
2018-12-11T02:53:33
2018-12-11T02:53:33
150,708,066
1
1
null
2018-12-11T02:53:34
2018-09-28T08:16:27
Python
UTF-8
Python
false
false
3,984
py
import os import argparse from solver import Solver from data_loader import get_loader from torch.backends import cudnn def str2bool(v): return v.lower() in ('true') def main(config): # For fast training. cudnn.benchmark = True # Create directories if not exist. if not os.path.exists(config.log_...
[ "lkjim0757@naver.com" ]
lkjim0757@naver.com
8d84e331999ee560a1d310384f193f97c74a7f4d
b55331bb2018ec5633c565f78f508491ba03f688
/Archive/TP_WorkingV2.py
2e0212a40f028af37fe58caca44945469d8cdcd2
[]
no_license
ebenhoffer/PyPhotoBooth
f51d70f06a441e4e45c4b2118e928ec3432404bd
c7ef5b271108b893ffa39c6ba8ce4952fd7f71c6
refs/heads/master
2020-07-19T03:05:56.289992
2019-09-04T16:44:53
2019-09-04T16:44:53
206,363,955
0
0
null
null
null
null
UTF-8
Python
false
false
5,115
py
import numpy as np import cv2 as cv import tkinter import PIL from tkinter import * from PIL import Image from PIL import ImageTk eyeCheck = cv.CascadeClassifier('haarcascade_eye.xml') faceCheck = cv.CascadeClassifier('haarcascade_frontalface_default.xml') def init(data): data.canvas = np.zeros((512,512,3), np.ui...
[ "noreply@github.com" ]
ebenhoffer.noreply@github.com
2923f3132d31b44f5dc2d0ee8d49bb8af8dec7e2
36f008d27c7dca66cc3e34a39f83bd97c562af40
/hotel_app/migrations/0003_auto_20200906_1309.py
073555433f71ebdfbf0dadd24ffd37b0df65d93c
[]
no_license
yash-rao/Hotel_Reservation_System
e92e31151788f720f399d0505093a53acd8b4094
09d1941059b5b35ead12c5c4f97c4efb9da1cba0
refs/heads/main
2023-08-16T13:05:01.487883
2021-10-06T11:46:23
2021-10-06T11:46:23
413,821,371
0
0
null
null
null
null
UTF-8
Python
false
false
413
py
# Generated by Django 3.0.7 on 2020-09-06 07:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hotel_app', '0002_room_cover_image'), ] operations = [ migrations.AlterField( model_name='room', name='price_per_nig...
[ "yashbarot712@gmail.com" ]
yashbarot712@gmail.com
b3aa4d9fb003f4ac0049040ec5cd7a6d3f657b93
2c4a2790457a2c16c9c92bc2e6feeb6cc9271994
/laptop/catkin_ws/build/turtlebot3/turtlebot3_pointop/catkin_generated/pkg.installspace.context.pc.py
2bf9e1ccc9e204260bada0f003da4a1983ed2144
[]
no_license
Zoltan3057/skalman
df37e6f376665363b6ea73c6c16fe8312e473e07
0e4cead39f6328c74622dd11688837b77152ff17
refs/heads/master
2021-09-22T22:26:07.265321
2018-09-17T20:47:05
2018-09-17T20:47:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
418
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "rospy;geometry_msgs".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "turtlebot3_pointop...
[ "fregu856@student.liu.se" ]
fregu856@student.liu.se
c5eff68c8b796ff94a2692ba8cf76aaf4f3eb551
ec3cb08103ae911db0f41ee175dd6d4c51824b8c
/tripadvisor_v1.py
535e8e9abceae4b89874b64d984ba10d48f93f7d
[]
no_license
ningxi22/selenium
fc1ded3dd2f0b6b2a4932634d0ad5ac9cfbb5e60
eff9f2201403a2b2571c0d5d2d98507d24ac1827
refs/heads/master
2020-12-03T09:25:57.884904
2017-08-01T17:40:07
2017-08-01T17:40:07
95,620,699
0
0
null
null
null
null
UTF-8
Python
false
false
3,136
py
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import time import csv driver = webdriver.Chrome() driver.get("https://www.tripadvisor.com/Restaurants-g60763-zfn29504-New_...
[ "ningxi.xu@gmail.com" ]
ningxi.xu@gmail.com
7959a7bdfe32b792394d8ee2bfa24cd3fc1a79db
f199c862c3b10ad8baef3bb2b72fcc30e4a83b1d
/src/lib/core/TimeScheduler.py
bf583a685ad4f4dbdaa933a9b9dc4679cca8f88f
[]
no_license
SolarHalo/gcp
bf5b38ec3e0ff8c3e4ea16e13a59c74a5fc6c638
9c5a19f39638f86f3c1fb3baa4ef2fcc99aba5e8
refs/heads/master
2020-04-27T03:34:43.310080
2015-03-23T14:19:09
2015-03-23T14:19:09
26,103,114
0
0
null
null
null
null
UTF-8
Python
false
false
2,070
py
''' Created on 2014-10-30 @author: tiamsw ''' from apscheduler.scheduler import Scheduler class TimeScheduler: instance = None def __init__(self): ''' ''' @staticmethod def getInstance(): if TimeScheduler.instance is None: TimeScheduler.instance = TimeSc...
[ "tiamsw@163.com" ]
tiamsw@163.com
10a36eacdb52f0a15e33186b9e335a508836db51
6d8785b1e44a13094798389c2273ba4f8f78f116
/home/models.py
eccbf795f1947fcaa828fdf2b3a88d72590d29ac
[]
no_license
Supriya1999/TODO-LIST-Django
fd9414afefb7aa4eeb0dd679d098a95ee7a9533d
31125e72e27341b2937fc4a041abf0558aefc8fc
refs/heads/main
2023-03-26T04:30:50.893798
2021-03-26T06:28:03
2021-03-26T06:28:03
351,400,353
0
0
null
null
null
null
UTF-8
Python
false
false
501
py
from django.db import models from django.contrib.auth.models import User # Create your models here. class Task(models.Model): user = models.ForeignKey(User,on_delete=models.CASCADE,null=True,blank=True) task_title = models.CharField(max_length=30) task_description = models.TextField() complete = model...
[ "sasupriya1999@gmail.com" ]
sasupriya1999@gmail.com
6c44b894d9db843118a93d875ff7cfc539f2c331
0d1430a89c5863fc66a7c45e59fbf2451328cc2f
/manage.py
5cb0893b83aa6344cbb8a86ce7b41c66dd1f107a
[]
no_license
yurchik/shortener_service
77eaf4986de68859dd4df143cc92eb2ba55f9610
7ebf2e06f5da000496e46913119de445c81da2d0
refs/heads/master
2021-01-21T12:31:25.820767
2017-05-19T11:26:18
2017-05-19T11:26:18
91,796,678
0
0
null
null
null
null
UTF-8
Python
false
false
805
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "yurchik.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the ...
[ "15_yurchik@ukr.net" ]
15_yurchik@ukr.net
73e4c6bd217f7949adbe8e395dd344f590caaa88
57e37e1df9596cdaf86d3dc81cfbe15c5303157f
/SocialMediaenv/social_media/login_app/migrations/0007_auto_20200625_0059.py
b85ab48b079026324aa416a8e4f4f1f51ed52538
[]
no_license
Tanzin-Ul-Islam/Django_Social_Media
45d9240b25456768b4cc1976f4971c7921a6ceae
7578aeb98702bbbb6ae820de11c2c5a4c237243a
refs/heads/master
2022-11-29T11:37:07.949118
2020-08-10T20:15:45
2020-08-10T20:15:45
286,519,157
0
0
null
null
null
null
UTF-8
Python
false
false
798
py
# Generated by Django 3.0.7 on 2020-06-24 18:59 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), ('login_app', '0006_auto_2...
[ "tanzin.cse@gmail.com" ]
tanzin.cse@gmail.com
74911b085ce07450528579e74930275f1d369daa
06c6872671cda2867addc059c7d04db2d8ca8264
/train.py
a4211652f4546732fc4e47751f47ec9602e3d1b6
[]
no_license
freesoul84/lock_system
2968e3dd53b7628ae29375daf18ce2c612994fe1
aa712ab1ccc58d4f3bdf055c0a5ee2f297b9ca7b
refs/heads/master
2020-04-18T08:26:38.176100
2019-01-24T16:23:34
2019-01-24T16:23:34
167,396,595
0
0
null
2019-11-14T19:39:22
2019-01-24T16:10:26
Python
UTF-8
Python
false
false
918
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jan 24 10:47:29 2019 @author: alkesha """ import cv2,os import numpy as np recognizer = cv2.face.LBPHFaceRecognizer_create() detector= cv2.CascadeClassifier("haarcascade_frontalface_default.xml") def trainer(path): imagePaths=[os.path.join(path...
[ "noreply@github.com" ]
freesoul84.noreply@github.com
5a1a39dcaccf51f55c34a7b6299bd52b34d99ebe
94b9b86aef875d16b85325ff7293a48edd261a5d
/day5/part1.py
f8f5324fdd6b61dd5eb40844ace846c9fd9af9fb
[]
no_license
ChanceDurr/adventofcode
43a044a335ca4acc95cff50c9116e989e190dcaa
c8ae7d61afa1f8c6c9beddf0a1a611f95af0f00c
refs/heads/main
2023-02-03T12:34:37.103869
2020-12-16T22:28:37
2020-12-16T22:28:37
321,394,559
0
0
null
null
null
null
UTF-8
Python
false
false
1,190
py
all_seats = [*range(0, 1024)] max_seat_id = 0 with open('day5/input.txt') as f: seats = f.readlines() for seat in seats: seat = seat.strip('\n') # Get the row number start_row = [0, 127] n_of_seats = 128 for letter in seat[:6]: n_of_seats = n_of_seats / 2 ...
[ "chancedurr@gmail.com" ]
chancedurr@gmail.com
1ccb569c8cd950c90ba8af01abc664229472ddcc
172c5da69ed8914dc899f65be8716e0fac55249b
/surveys/views.py
d8838fa92b0dc94e0cbbf96fee6d71ae1036af1a
[]
no_license
TheProrok29/django_questionnaires
cd75f0271e3b1012351c94b0fde4cb87f795ef5c
2e62bf2e96fa58f96b80c84c04d08825dfb9ac37
refs/heads/master
2020-05-01T05:11:52.268230
2019-04-07T19:44:30
2019-04-07T19:44:30
177,295,076
0
0
null
null
null
null
UTF-8
Python
false
false
7,222
py
from django.shortcuts import render, HttpResponseRedirect from .models import Survey, Question, Answer from django.contrib.auth.decorators import login_required from . import forms from django.urls import reverse from django.contrib import messages @login_required def surveys(request): kwargs = {} kwargs['sur...
[ "tomaszdbogacki@gmail.com" ]
tomaszdbogacki@gmail.com
c24f51715dcfbe718a86902de5b545c045196363
56aede4d7bf9d70daa9bc5d562619d19fe1df491
/opus_jobs_project/wsgi.py
02dff954a6ed93dbc9aab84eba7568798b4d101a
[]
no_license
HarryMead/Opus-Jobs
fcf593479fc9354d0989493676fe30075f142fdb
34e7c33bdabc5262f430f35ebabc011b81c34cea
refs/heads/master
2022-12-09T11:02:12.790980
2020-08-24T00:00:11
2020-08-24T00:00:11
38,561,772
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
""" WSGI config for opus_jobs_project 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.7/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "opus_jobs_project.settings")...
[ "Harrison.mead@xtra.co.nz" ]
Harrison.mead@xtra.co.nz
c88ef625871b37019f0265c54e125567dc6b0fd0
70844a1d9914dd15abca5ac577202b6583419a8c
/0x0A-python-inheritance/5-base_geometry.py
00e48c846a361ba671ddc62757d2714d150c0e03
[]
no_license
Sarolus/holbertonschool-higher_level_programming
77611d2d484a5d28458c5c3b20bd926a3c7348a0
988f657fc2b529ef8e63d7fc1f720c81789e061d
refs/heads/main
2023-08-28T12:48:42.064074
2021-09-22T16:32:59
2021-09-22T16:32:59
361,689,146
0
1
null
null
null
null
UTF-8
Python
false
false
178
py
#!/usr/bin/python3 """ Module containing the prototype of an empty class called BaseGeometry """ class BaseGeometry(): """ An empty class """ pass
[ "cactussius.primus@gmail.com" ]
cactussius.primus@gmail.com
90593ff711ea932ec1a2f7a1ec6b49f285920849
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_75/1267.py
24da43f932ff6c1352b5a0a632af37122acf1eab
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,444
py
import unittest def cut(s, size): for i in range(0, len(s), size): yield s[i:i + size] def parse_combining(s): d = {} for mom, dad, kiddo in cut(s, 3): d[frozenset((mom, dad))] = kiddo return d def parse_opposing(s): l = [] for mom, dad in cut(s, 2): l.a...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
202a857213b0644c304db810a9de4782e07461a6
f61ed873d7e2c1ded6e7bb7a7cb028e040486d4a
/utils/file/export_task.py
a0c48bbb601254beb190f4ecf9cd13b13e44e3e0
[ "MIT" ]
permissive
Nels885/csd_dashboard
d9af0c8ac5667351b04b7c45fdc3a361c45fb54b
62aee2d88223868772d578ab663e53a3fa2da4d1
refs/heads/master
2023-08-30T21:32:33.946530
2023-03-22T07:14:23
2023-03-22T07:14:23
184,559,125
0
1
MIT
2023-06-20T09:11:37
2019-05-02T10:07:07
Python
UTF-8
Python
false
false
8,785
py
import tempfile import datetime import csv import xlwt import os.path import shutil from django.utils import timezone from celery_progress.backend import ProgressRecorder from openpyxl import Workbook from openpyxl.styles import Font, Alignment from sbadmin.tasks.base import BaseTask from utils.file.export import HTM...
[ "voirin.lionel@gmail.com" ]
voirin.lionel@gmail.com
5b66f593299d88348602f82de3c4379b06b53ca9
564f7eadb7a6a20528a11e30d86f3015240736cd
/Udacity/break.py
a11bc7d312f77f833efb9d42be205bc537810fe0
[]
no_license
andy12290/Udacity--Python-Foundation
3966beb5f78021be38c0ad46e77cace4f715922a
0b62d97556bde4e4e721aa145498cffc6f3338b8
refs/heads/master
2021-09-01T07:27:32.335505
2017-12-25T17:21:46
2017-12-25T17:21:46
115,353,145
0
0
null
null
null
null
UTF-8
Python
false
false
212
py
import time import webbrowser # This is module to open the web browser after 10 sec. time break i=1 while i < 4: time.sleep(10) webbrowser.open("http://www.youtube.com/watch?v=dQw4w9WgXcQ") i += 1
[ "noreply@github.com" ]
andy12290.noreply@github.com
46242aaf44725ba72b28bb0703b136b0bc5e3d06
07be848aa06b2a6e4cf1e8f91eba883aa7cfdaa3
/medicare/login/views.py
c930987289211cdd2b51da48b507dd9ce29753e5
[]
no_license
nehaDeshp/Clinic-Mangement
743df974ff996736c8e99cc27fe13df326029496
ef42afc27f48957e0fd1bb0b79e63aa8e5c06d7f
refs/heads/master
2021-04-26T12:53:08.653545
2018-02-12T17:22:28
2018-02-12T17:22:28
120,924,608
0
1
null
null
null
null
UTF-8
Python
false
false
1,856
py
from django.shortcuts import render from django.shortcuts import render_to_response from django.shortcuts import render,get_object_or_404 from django.template.context_processors import request, csrf from django.http import Http404,HttpResponseRedirect from .models import AllUser from django.contrib.sessions.model...
[ "noreply@github.com" ]
nehaDeshp.noreply@github.com
50c6172473e34cff7b5a5a941eb2be17cd93f182
b4e4ce76c56652a41b7f89070e20168851152ed1
/core/solver_ddpg.py
6bc6f0cef9f448ff783fd97c48097fbf80417cf7
[ "MIT" ]
permissive
electryone/deeprl
acb6a21b517344e353c9776e600e8bc0ac4d962b
449a2f6e31b0e03b60a465d241cca953a0bd9598
refs/heads/master
2020-03-28T20:28:31.849650
2017-08-30T20:08:56
2017-08-30T20:08:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,569
py
# -------------------------------------------------------------------# # Released under the MIT license (https://opensource.org/licenses/MIT) # Contact: mrinal.haloi11@gmail.com # Enhancement Copyright 2017, Mrinal Haloi # -------------------------------------------------------------------# import tensorflow as tf impo...
[ "mrinal.haloi11@gmail.com" ]
mrinal.haloi11@gmail.com
00efaa654303bb521255933b6b05a32353705e0b
200df6cda6e54d56a4c800e10e6d5f248d7d59f2
/02-算法思想/深度优先搜索/1443.收集树上所有苹果的最短时间(M).py
794b7e54a04b50798535eaa444524ea390e4065c
[]
no_license
jh-lau/leetcode_in_python
b9b9a47d0b3ce29c3c56836b39decc3ec4487777
1d1876620a55ff88af7bc390cf1a4fd4350d8d16
refs/heads/master
2023-04-17T15:01:49.925774
2021-04-24T01:17:39
2021-04-24T01:17:39
192,735,826
0
0
null
null
null
null
UTF-8
Python
false
false
3,027
py
""" @Author : liujianhan @Date : 2020/8/17 13:52 @Project : leetcode_in_python @FileName : 1443.收集树上所有苹果的最短时间(M).py @Description : 给你一棵有 n 个节点的无向树,节点编号为 0 到 n-1 ,它们中有一些节点有苹果。通过树上的一条边,需要花费 1 秒钟。你从 节点 0 出发,请你返回最少需要多少秒,可以收集到所有苹果,并回到节点 0 。 无向树的边由 edges 给出,其中 edges[i] = [fromi, toi] ,表示...
[ "O06jW6jFQiOy4K5c" ]
O06jW6jFQiOy4K5c
51fcf64b3bb1d1bd8cc776f626dc58ee1b9e51ff
38203e1d19e30c53017f9c9bcbbe94a2d60df14d
/main/pylinkmysql.py
31fbd0001c32ae6ddbe3551582c631296d98cb17
[]
no_license
DespairYoke/python-link-mysql
9e048bf5c1c69695c031f4364b99be5ce1be4768
8f2781ef73a8aca205d9d4f8c44c0bd92d7388ec
refs/heads/master
2020-03-16T22:18:01.256788
2018-05-11T11:57:19
2018-05-11T11:57:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
#!/usr/bin/python3 #coding=utf-8 import pymysql # 打开数据库连接 db = pymysql.connect("localhost","root","root","zwdtest") # 使用游标 cursor = db.cursor() cursor.execute("select version()") sql = """CREATE TABLE EMPLOYEE ( FIRST_NAME CHAR(20) NOT NULL, LAST_NAME CHAR(20), AGE INT, SEX ...
[ "810095178@qq.com" ]
810095178@qq.com
488152bdc0ef328a70ee6ccd07698f17118a24f7
1aeb5a1fb033d2c3379256121b42e1b8b9a5264f
/hackerrank/implementation/grading_students.py
a084ddb5edc50765d6f045447ff972784cdc7949
[]
no_license
mf4lsb/Algorithms
9d1622f563209e86c76294b186adca1043d33b61
33ae9f7bf03935a78fbefc3e1670c1af43aa7aac
refs/heads/master
2021-01-01T09:57:51.746248
2017-05-19T06:33:24
2017-05-19T06:33:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
675
py
#!/bin/python import sys def solve(grades): result = [] for grade in grades: if grade < 38: result.append(grade) else: grade = round_up(grade) result.append(grade) return result def round_up(grade): next_multiple = 40 while next_mult...
[ "noreply@github.com" ]
mf4lsb.noreply@github.com