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
879913c4b70bee4502b035d12d1c323881a4572e
087594210fbc0c8d417368d9ea347748eba77206
/graphical pass point/cryptography.py
3b5dbae3665e91c0db7b85fbe2a39f0ab871ee22
[]
no_license
hazelclement/python-programs
f663055a3f62a96684f31e25dfd47903cb0feca6
055c5f8922126119bc8e74d6c0f17569d280c23a
refs/heads/master
2022-12-01T16:05:09.048514
2020-07-21T17:46:01
2020-07-21T17:46:01
281,458,353
0
0
null
2020-07-21T17:46:03
2020-07-21T17:11:41
Python
UTF-8
Python
false
false
241
py
message = 'This is program to explain reverse cipher.' translated = '' #cipher text is stored in this variable i = len(message) - 1 while i >= 0: translated = translated + message[i] i = i - 1 print("The cipher text is ", translated)
[ "hazelclement15@gmail.com" ]
hazelclement15@gmail.com
a8e62b0c6869bc28fe1c9890457dd16af7d1ceb5
2656adb154039d0e1393979b225c8fe82584c00c
/render.py
9fa244baa6a04e8da35dc5ce9eb487d7ba818f51
[ "Apache-2.0" ]
permissive
TOKUJI/BlackBull
b90221832884db9f5cbd5a49ff3fb7951dc1ca9a
92eb736c01464f4a76e88ce3f60e244906eb7dbb
refs/heads/master
2022-12-08T17:30:37.163685
2021-06-13T08:27:47
2021-06-13T08:27:47
164,662,920
1
0
Apache-2.0
2022-12-08T07:48:42
2019-01-08T14:11:26
Python
UTF-8
Python
false
false
794
py
from mako.template import Template def render_login_page(data=None): login_template = Template(filename='templates/login.html', ) return login_template.render_unicode() def render_dummy_page(data=None): template = Template(filename='templates/dummy.html', module_directory='templates/modules/') retur...
[ "14055040+TOKUJI@users.noreply.github.com" ]
14055040+TOKUJI@users.noreply.github.com
6fa0a724f104e22e21a81398bf7856c9112ccc71
5b75ec6cf092e94bd359ffce19c483e71b8e7163
/3_Selenium/2-2.py
7e2e762bac8f8f844dc671253dd1d0d7de0c0a05
[]
no_license
Jeongyoungwang/1_Lecture
ef443a25191b83328daca2122a418b84a966369f
8459629c9904573b7157c11738e789e2a1d4b0be
refs/heads/master
2020-05-03T12:32:39.601764
2019-03-31T03:02:17
2019-03-31T03:02:17
178,629,236
0
0
null
null
null
null
UTF-8
Python
false
false
694
py
import sys import io import requests sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding = 'utf-8') sys.stderr = io.TextIOWrapper(sys.stderr.detach(), encoding = 'utf-8') #Response 상태코드 s = requests.Session() r = s.get('http://httpbin.org/get') #print(r.status_code) #print(r.ok) #https://jsonplaceholder.typic...
[ "sumer3@naver.com" ]
sumer3@naver.com
e4b3cbe089af89580345befdfa21e0813a578041
f7779fc2b88a0f4ad66b1e941f057f9f2be91f73
/apps/casts/migrations/0006_auto__add_unique_castsservices_name.py
8faa9175262fba990db3336940348c3e933a6dd2
[]
no_license
tumani1/vsevi
e30664c1573996bcd825e57e7b8137345c0858e7
6504b7689573055405ee044b2d75c31cb1ab0a2d
refs/heads/master
2020-07-21T22:33:44.384719
2014-11-07T15:28:10
2014-11-07T15:28:10
35,594,443
0
0
null
null
null
null
UTF-8
Python
false
false
19,157
py
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding unique constraint on 'CastsServices', fields ['name'] db.create_...
[ "dlyubimov@aaysm.com" ]
dlyubimov@aaysm.com
bfc7634cdd1a75ce104e75f79c628ef609e282d3
e1b47553d8bdbff498e3ed441f2be9e5f250c91d
/python/hrank/algo/dynamic/The_Longest_Increasing_Subsequence/lis.py
a582885252130aea1cb57d7074f885642aa5e4e7
[]
no_license
ahmed-sharif/misc
55b776823fc922886d4981085289e05c4be8a213
2ad06b132408ecfc7ac79b1cdca06588b94ef76c
refs/heads/master
2020-04-15T14:03:38.214577
2017-10-25T18:00:51
2017-10-25T18:01:39
57,257,631
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
# https://www.hackerrank.com/challenges/longest-increasing-subsequent def compute_lis(a): n = len(a) lis = [1 for _ in range(n)] for i in range(1, n): for j in range(i): if a[i] > a[j]: lis[i] = max(lis[i], lis[j] + 1) return max(lis) a = [] n = int(raw_input().strip...
[ "asharif@linkedin.com" ]
asharif@linkedin.com
23e52be0c8ce3adfba088e27013ec2ded693edb9
db5030b0ef8de107af5161b44e4cb0a03e97ff18
/My codes/csv format/T.py
358b85c80dd0e3e06ae77858af67589d0c55d216
[]
no_license
saadmaan/Thesis-
c7f7bed9993e7f731930740845f5c402ca4c4736
5ae789aa64dae484c8efd6a839854a78465905e1
refs/heads/master
2021-02-28T03:06:42.518424
2020-05-17T17:41:21
2020-05-17T17:41:21
245,657,300
0
0
null
null
null
null
UTF-8
Python
false
false
212
py
import pandas as pd df = pd.read_csv('F:\THesis\Dataset\Crime.csv') saved_column = df['Start Date/Time'] #you can also use df['column_name'] print(saved_column) for row in saved_column: str(row); c = row[0]
[ "saadmanhabib26@gmail.com" ]
saadmanhabib26@gmail.com
d0686bbf88f5f164a24afb5e2449f189d6ba2b4b
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/abc008/B/4886377.py
4b2e8bb008ccb62443ac42cbdabfef1b5a1468e8
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
147
py
import collections N = int(input()) names = [input() for i in range(N)] max_ele = collections.Counter(names) print(max_ele.most_common()[0][0])
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
bf1fd77267d8c4bca07a45429c04b6b67db22867
0970a4aab1070bdb28b799fab2cf61693c4ccab2
/src/tf-idf.py
120bfc4d0f4f88914b5d27c3c389f38a84926175
[]
no_license
nickzhangf/machine-learning
ca53842ab0a07e7e6df8317e1ecc09e3dd0fc958
a2376319c3a0b1fac315153f72f780f0402b7271
refs/heads/master
2020-12-29T02:39:02.406050
2017-02-13T02:33:34
2017-02-13T02:33:34
52,136,530
0
0
null
null
null
null
UTF-8
Python
false
false
1,589
py
# coding:utf-8 __author__ = "liuxuejiang" import jieba import jieba.posseg as pseg import os import sys from sklearn import feature_extraction from sklearn.feature_extraction.text import TfidfTransformer from sklearn.feature_extraction.text import CountVectorizer if __name__ == "__main__": corpus = ["我 来到 北京 清华大学"...
[ "fengz2008@163.com" ]
fengz2008@163.com
751a74264a973fe1ab989c874cc4a9a039bd45e4
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_55/373.py
65e1a8ea83c63527538a4d324820da9d12a0a74e
[]
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
1,581
py
''' Created on May 9, 2010 @author: indra ''' import sys, os filename = "C-large" path = os.path.normpath(os.path.join(os.path.dirname(__file__), filename+".in")) reader = open(path, "rb") path = os.path.normpath(os.path.join(os.path.dirname(__file__), filename+".out")) writer = open(path,"w") ncases ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
b34d5bebd57109d20aee7fec341878dfb3c9875c
31eaed64b0caeda5c5fe3603609402034e6eb7be
/python_zumbi/py_web/test_scraping_2.py
8504ae20c38d531160f7f991a12e83e59ccd487b
[]
no_license
RaphaelfsOliveira/workspace_python
93657b581043176ecffb5783de208c0a00924832
90959697687b9398cc48146461750942802933b3
refs/heads/master
2021-01-11T17:39:49.574875
2017-06-28T20:55:43
2017-06-28T20:55:43
79,814,783
0
0
null
null
null
null
UTF-8
Python
false
false
344
py
import urllib.request #modulo que permite conversar com a internet pagina = urllib.request.urlopen( 'http://beans.itcarlow.ie/prices-loyalty.html') text = pagina.read().decode('utf8') print(text) i = text.find('>$') preco = float(text[i+2:i+6]) if preco < 4.74: print('Em Promoção: ', preco) else: print('Es...
[ "raphaelbrf@gmail.com" ]
raphaelbrf@gmail.com
2e95edb992349cc95441512bef5344b238ed4afd
c3c2af25c3269e200d2773ec9f8800f4f9a20165
/backend/manage.py
42924076b3f1daf8f7bf76a1488f43e45b84b567
[]
no_license
crowdbotics-apps/divine-hill-27443
a39ecac7c1c5f510d00bf4e300acea3e46ecca24
f6abe52a7080da59cc99b1fb01a039933f273a2c
refs/heads/master
2023-04-26T09:05:39.002510
2021-05-26T19:29:02
2021-05-26T19:29:02
371,147,367
0
0
null
null
null
null
UTF-8
Python
false
false
637
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'divine_hill_27443.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: ra...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
716cb29adc3becdd4a5965eee788155597749d7b
c618cbb638e1c69e08ad26df505971d8f33b100c
/profiles/migrations/0001_initial.py
598e94cc6d9faf816a5297467fe411cbb294bb0e
[]
no_license
mikeemorales/house-plant
bf612d461459429cd1898d9ba7e2e8f6d90544a3
3b76df1c6464a22f1cd76b1f650d2cfe584e61ed
refs/heads/master
2023-08-23T03:23:27.836900
2021-09-18T03:22:34
2021-09-18T03:22:34
339,876,234
0
1
null
null
null
null
UTF-8
Python
false
false
1,413
py
# Generated by Django 3.1.6 on 2021-02-25 06:55 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django_countries.fields class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.A...
[ "j.mikeemorales@gmail.com" ]
j.mikeemorales@gmail.com
efed41830ae32c4bd43678d92ff17f433ecfa92d
f12024bf505b270177ad24e7acc9c9980f0ad1a8
/aidants_connect_web/migrations/0002_auto_20220511_1735.py
a7511994fa2c6e1a4487fd2519a07eb859755a02
[ "MIT" ]
permissive
betagouv/Aidants_Connect
18be11e542d3071e516c32b357e9dbab927ecedb
228ff94f5f3696ed8384992d7a8c9a3adbe6eeda
refs/heads/main
2023-08-31T02:49:05.557288
2023-08-29T09:10:14
2023-08-29T09:10:14
180,139,859
22
15
MIT
2023-09-13T09:37:51
2019-04-08T12:02:11
Python
UTF-8
Python
false
false
664
py
# Generated by Django 3.2.12 on 2022-05-11 15:35 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('aidants_connect_web', '0001_20220329_stable_schema'), ] operations = [ migrations.AddField( model_name='habilitationrequest', ...
[ "liviapribeiro@gmail.com" ]
liviapribeiro@gmail.com
c654094c0fdeb50abb400c1c1d0e67fc97c80eb7
36a0b764f6a899ce381aa5c4e69257d6c6f7f65b
/meiduo_mall/utils/fdfs/MyFileStorage.py
32fa6af0e25bb0339eb83bd0ea424b77dca016d0
[]
no_license
create6/meiduo_ub
ec23b1b0e88f784dacbd5c18cbe5c83799e2b88c
4651f21e9669b0e8224004cb596a08195109677d
refs/heads/master
2020-05-31T08:10:57.178001
2019-06-28T02:15:02
2019-06-28T02:15:02
188,504,868
0
0
null
null
null
null
UTF-8
Python
false
false
1,246
py
from django.conf import settings from django.core.files.storage import Storage from fdfs_client.client import Fdfs_client """ 自定义文件存储类(官方文档-视图层-文件上传-自定义存储): 1, 定义类继承自Storage 2, 必须保证参数能够初始化 3, 必须实现open,save方法 """ class MyStorage(Storage): def __init__(self, base_url=None): if not base_url: base...
[ "1362254116@qq.com" ]
1362254116@qq.com
626bb65d7cd1ec6e7fc65aef68d875d25f67e8f3
3c6b5cdad2099125c9713041f21a14f41693f5b3
/init/tar.py
24de4fc9a420da40a63d3639ad7617086615fe08
[]
no_license
fudashuai/SetDisplayMode
6d41d625e17c755d7ad913182fce83288353f5b0
23183820cbb4d9d20ea6aacfaa4e21bc30fd7cb5
refs/heads/main
2023-06-15T07:42:21.198382
2021-07-18T05:38:22
2021-07-18T05:38:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,122
py
#!/usr/bin/env/python3 # -*- coding:utf-8 -*- import os import platform import shutil import tempfile import time from distutils.core import setup from pathlib import Path from subprocess import PIPE, run from zipfile import ZipFile def pack_pyd(cur_dir, excepts=('launch.py')): while True: try: ...
[ "funchan@msn.cn" ]
funchan@msn.cn
b9a0d4a8c907d64a769984ce54c21e598bceb55a
857fc21a40aa32d2a57637de1c723e4ab51062ff
/PythonChallenge/Ex05/05_01.py
93d0926dda5e81b77d9190b1a9e433c954140ed4
[ "MIT" ]
permissive
YorkFish/git_study
efa0149f94623d685e005d58dbaef405ab91d541
6e023244daaa22e12b24e632e76a13e5066f2947
refs/heads/master
2021-06-21T18:46:50.906441
2020-12-25T14:04:04
2020-12-25T14:04:04
171,432,914
0
0
null
null
null
null
UTF-8
Python
false
false
117
py
#!/usr/bin/env python3 # coding:utf-8 from pickle import load with open("banner.p", "rb") as f: print(load(f))
[ "18258788231@163.com" ]
18258788231@163.com
caffdc2df4dd79e41559544d02eaf346767be562
f9258ddebd486a3452679b1524834c63fcdfdb39
/src/project5.py
da6c8401460dfc1fab1095c713878dba49143e42
[]
no_license
gracemc1003/Project5
bfe11357630a969a208a982898486a36325f8603
d8fa3d113fb4dbc0121c739769f0491e5ad3cb93
refs/heads/main
2023-01-01T09:56:14.729995
2020-10-12T18:27:02
2020-10-12T18:27:02
303,476,565
0
0
null
null
null
null
UTF-8
Python
false
false
2,917
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Oct 6 12:38:03 2020 @author: gracemcmonagle """ #%% import pandas as pd import matplotlib.pyplot as plt from datetime import datetime from sklearn.model_selection import train_test_split from statsmodels.tsa.holtwinters import SimpleExpSmoothing, Holt ...
[ "noreply@github.com" ]
gracemc1003.noreply@github.com
4e52cc987f5b50af5d9b223ce2923ca558ff6980
3d2d5ecb7377410d309737412febce208138b583
/1-Regular Expression/count_num_of_number.py
9a505e1802aab7af797e54e4d9c1947ea8948616
[]
no_license
rika77/access_web_data
fd938c8cac4f7ac8bdabdc511ec5034bb6d5f003
2c76f5a482d08c655d637944014076c9752e7f2d
refs/heads/master
2020-09-05T13:57:23.726304
2019-11-07T01:39:06
2019-11-07T01:39:06
220,126,264
0
0
null
null
null
null
UTF-8
Python
false
false
153
py
import re with open('regex_sum_180748.txt') as f: s = f.read() nums = re.findall('[0-9]+', s) ans = 0 for num in nums: ans += int(num) print(ans)
[ "mahimahi.kametan@gmail.com" ]
mahimahi.kametan@gmail.com
3ed12bf18a7b64349018b7c6e07ad53b57159f1b
a0a656cefd97b6f6416a8f6f38d1ed8524589929
/add_assets/serializers.py
0ef70f1a4ded1da53789566550b3661a1cafa9bd
[]
no_license
zhixingchou/opsmanage-copy-add_assets
c932bf2641ff408be1d43bbf96b50ad2f47acb81
c120889f9d1aa74de3f3e33f787aa5b9343e9011
refs/heads/master
2021-06-28T23:21:42.458019
2017-09-13T05:37:31
2017-09-13T05:37:31
103,357,803
0
0
null
null
null
null
UTF-8
Python
false
false
853
py
# coding:utf-8 from rest_framework import serializers from appone.models import * from django.contrib.auth.models import Group,User class AssetsSerializer(serializers.ModelSerializer): class Meta: model = Assets fields = ('id','assets_type','management_ip') class ServerSerializer(s...
[ "376616017@qq.com" ]
376616017@qq.com
463a971b29b02dbb0551e83fda61984330b49500
e9a08404751aee4891ed01fc7ef42c05761e853a
/attendanceChkIn_OUT.py
5b50f76cd1bfae65c13ab12c2a0801639a124bd1
[]
no_license
kathirm/TNPLTRPA
8eed651ff46a02bcfe5de48153ec198751ee6c20
db170bd8ad686543188c6aac82d2e9c12c72b0e7
refs/heads/master
2022-12-17T10:26:27.049538
2020-07-24T09:35:43
2020-07-24T09:35:43
171,221,067
0
0
null
2022-12-08T06:21:54
2019-02-18T05:35:17
Python
UTF-8
Python
false
false
3,093
py
import datetime , json, sys, requests from random import randrange def date_backward(token, uId, chkType, inpttime): try: dtlist = [] #get_backward date tmlist = [] #get_time's Random headers = {"Authorization" : "Bearer %s"%token} cur = datetime.date.today() curdte = str(cu...
[ "mkathir@terafastnet.com" ]
mkathir@terafastnet.com
48055f2562c59506a8d7d57a62f9919785d4a11c
c96ce403a4f4db5594639d2687bf01af8fe02f2e
/lesson_python_socket_client.py
79307ea721212d093910a6450632ad7e2917f674
[]
no_license
jiangyefan/lesson_python
b8aae7a0581fdad747271da044d87471973d51ba
4aa09e1e5d9fa995567a2f220c698d15711735e8
refs/heads/master
2021-01-02T22:47:27.064987
2017-08-06T22:59:15
2017-08-06T22:59:15
99,359,231
0
0
null
null
null
null
UTF-8
Python
false
false
926
py
#!/usr/bin/env python #coding=utf-8 #__author__:Administrator #__date__:2017/8/5 import socket #客户端 #connect #recv() #send() #sendall() #close() #创建socket对象 sk2=socket.socket() address=('127.0.0.1',8011) sk2.connect(address) # data=sk2.recv(1024) #接收数据 # print(str(data,'utf8')) while True: inp=input('>>>') ...
[ "200592201@qq.com" ]
200592201@qq.com
bb8ae320072d41a28d6b424e78999326d64cdafb
3028b704ebfcec101577634ae45bd5ed84bdcd2d
/验证码.py
aee2fdf52f874399ca9423210e0a7afa4af02b72
[]
no_license
ANGLE-AKAMA/VerifyPicture
f73fb482d9fd61b79e523e0faa344b9dd098ffb7
81b009c4e4ffc2f4d01281d148fb99d497d4df2b
refs/heads/master
2020-08-13T19:44:02.128680
2019-10-14T11:46:11
2019-10-14T11:46:11
215,027,517
1
1
null
null
null
null
UTF-8
Python
false
false
3,200
py
import cv2 import numpy as np import time import os import glob import sys import reductNoise import pytesseract from PIL import Image from waterDropleCut import WaterCutting from waterFill import WaterFilled for file in os.listdir("easy_img") : fileName= file.split(".")[0] filepath = os.path.join("easy_img",...
[ "18138802413@163.com" ]
18138802413@163.com
2c7332530c6106c9f596a55673e138596fa175ad
be7a0aa49a9b4fdad1b8b21c6f1eb6bd508be109
/ex027vs1.py
8f5869722797ed74a9a1bd50c65b05a9267c8f63
[]
no_license
tlima1011/python3-curso-em-video
29a60ee3355d6cb3ba8d1f48c6a3ecd7bc6e60dd
f6454f4d636a2bf73c151e67710f732e2d8e738c
refs/heads/master
2021-02-04T01:13:35.313590
2020-04-14T12:51:19
2020-04-14T12:51:19
243,593,899
0
0
null
null
null
null
UTF-8
Python
false
false
210
py
nomeCompleto = str(input('Informe seu nome completo.: ')).strip() nomeCompleto = nomeCompleto.split() print(f'Primeiro nome é {nomeCompleto[0].capitalize()} e o último é {nomeCompleto[-1].capitalize()}')
[ "noreply@github.com" ]
tlima1011.noreply@github.com
ffa1f1f3a4d948cf970225aaaf6d9dfcbc38315c
d4ce88b6262d30e86f9be2d5635df8544df846e2
/Web Scrapping/Selenium-Request&Beutifulsoup Detailed/Selenium/selenim_intr.py
353973c7f248a049a92800b0e4111b37b27abe14
[]
no_license
ahmetzekiertem/Web-Scrapping
e8d5d3fd2da03f408553c3f6fa1815d79d663af2
75a95b8373a84357bdd037cf6fef7461097bfacf
refs/heads/master
2022-04-19T16:32:28.369369
2020-04-19T12:51:42
2020-04-19T12:51:42
256,998,504
1
0
null
null
null
null
UTF-8
Python
false
false
394
py
from selenium import webdriver # imports from time import sleep from bs4 import BeautifulSoup # make a webdriver object - chrome driver path for my system -- > /Users/waqarjoyia/Downloads/chromedriver driver = webdriver.Chrome('/Users/mac/Desktop/geckodriver') # open some page using get method ...
[ "40203533+ahmetzekiertem@users.noreply.github.com" ]
40203533+ahmetzekiertem@users.noreply.github.com
bdcc367d50d850b9415469d0b80cd63c73ec7513
3a6a211ea0d32405497fbd6486c490bb147e25f9
/third_party/webtest/webtest/http.py
890ef96ff90e6543783dd70d2c2b7b0768054a2f
[ "BSD-3-Clause", "MIT" ]
permissive
catapult-project/catapult
e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0
53102de187a48ac2cfc241fef54dcbc29c453a8e
refs/heads/main
2021-05-25T07:37:22.832505
2021-05-24T08:01:49
2021-05-25T06:07:38
33,947,548
2,032
742
BSD-3-Clause
2022-08-26T16:01:18
2015-04-14T17:49:05
HTML
UTF-8
Python
false
false
4,240
py
# -*- coding: utf-8 -*- """ This module contains some helpers to deal with the real http world. """ import threading import logging import select import socket import time import os import six import webob from six.moves import http_client from waitress.server import TcpWSGIServer def get_free_port(): s = socke...
[ "qyearsley@google.com" ]
qyearsley@google.com
be9c106d741c93b8522ff5e49ea7ff2e5f2b74fe
aeeba89591b787bbe6b93ffb4889be9a8fca521e
/cfg.py
cf7791d7a7b0fe3603dac542a0bbc59c1ee3d3aa
[ "MIT" ]
permissive
wistic/python-web-crawler
efa7968f66ecd7396797390f253d0ff68f3623a1
e3738fd49d77bdff4c43a0ec31ed36cc381d26b8
refs/heads/master
2022-12-10T05:38:40.030202
2020-08-28T14:24:38
2020-08-28T14:24:38
288,676,553
1
0
null
null
null
null
UTF-8
Python
false
false
415
py
config = { "root_url": "https://flinkhub.com", "sleep_timer": 5, "Max_links_limit": 5000, "Recrawl_time_limit_hours": 24, "user_agent": "Python Spiderbot", "No_of_threads": 5, "database_name": "python-web-crawler", "collection_name": "Links", "connection_uri": "mongodb://loca...
[ "prathameshkatkar11@gmail.com" ]
prathameshkatkar11@gmail.com
d5badcde10dd50e2893aabf8911f0571f3d6e3e6
397383b771362fd00f83ef95a783e0578b3d3495
/firstVideo.py
6dbb481e3b8e4e5cee5ace6afce80e5d0fc1fd22
[]
no_license
kshaba01/parrot-ar-drone
d2ee3d2119dd6fc18906ed860de12d5638044d1c
a8c37d7fc1396e2ab265545d27c1431bed166899
refs/heads/main
2023-01-01T15:34:45.705102
2020-10-26T20:03:19
2020-10-26T20:03:19
307,161,089
0
0
null
null
null
null
UTF-8
Python
false
false
2,807
py
######### # firstVideo.py # This program is part of the online PS-Drone-API-tutorial on www.playsheep.de/drone. # It shows the general usage of the video-function of a Parrot AR.Drone 2.0 using the PS-Drone-API. # The drone will stay on the ground. # Dependencies: a POSIX OS, openCV2, PS-Drone-API 2.0 beta or higher. #...
[ "kshaba@gmail.com" ]
kshaba@gmail.com
805e86f1d2bd1c867967768dadacd89d4c06a759
8823a9b97780bdf5f92c2ef3bfab28ea5a95abc0
/problems/strings/tests/test_substrings.py
434a5384b114cf584fe7f903cd441b2004d71c0d
[]
no_license
castlemilk/puzzles
1ef2f9b7d0707e821869064b78a57691f2ba7a0a
4cdc757fd14a444abe48254a0ecc8b04ca4b9552
refs/heads/master
2022-12-15T05:19:51.818193
2018-03-07T10:32:36
2018-03-07T10:32:36
122,824,563
0
0
null
2022-12-07T23:46:49
2018-02-25T10:07:36
Python
UTF-8
Python
false
false
190
py
from problems.strings import substrings def test_permutations1(): assert substrings.is_permutation('abcd','aaaaa') is False assert substrings.is_permutation('abcd', 'dcab') is True
[ "ben.ebsworth@gmail.com" ]
ben.ebsworth@gmail.com
6e3dd7d9f9580b03b86f84b139624874d5968242
1391fe8dcace0742232d11d96f1eca5da02581ba
/test.py
465cf5bafb6627ab4907e62fc187ca32fd3dbf60
[]
no_license
ha8sh/test
a0b879d2cc7b8d753aa7f4bfd75703cfa3b02d51
af18128bae0ad195f9fb064da0807d67fd65180d
refs/heads/master
2023-02-26T04:33:11.201116
2021-01-25T19:10:07
2021-01-25T19:10:07
332,850,122
0
0
null
null
null
null
UTF-8
Python
false
false
16
py
print("hassan")
[ "root@ibs.ping308.net" ]
root@ibs.ping308.net
e2ded22e10d7c8fdba1a33dd11b5e8581b59afb5
16158ba3a3d94569498d51ab03ac19d7444b0349
/kg/Recommender-System-master/Recommender_System/algorithm/KGCN/gpu_memory_growth.py
9a808bd2987cfa7e6fb19015613b64193b9534f9
[ "MIT" ]
permissive
lulihuang/DL_recommendation
c4109346a93336d85eed7bce2acfea143c76012c
5e8b1b562cb4e6360103b11b6ec5601cd69282a3
refs/heads/main
2023-03-22T12:51:08.395165
2021-03-11T03:11:59
2021-03-11T03:11:59
328,589,292
1
0
null
null
null
null
UTF-8
Python
false
false
391
py
""" import此文件后将gpu设置为显存增量模式 """ from tensorflow import config gpus = physical_devices = config.list_physical_devices('GPU') if len(gpus) == 0: print('当前没有检测到gpu,设置显存增量模式无效。') for gpu in gpus: try: config.experimental.set_memory_growth(gpu, True) except RuntimeError as e: print...
[ "727445285@qq.com" ]
727445285@qq.com
7f9d646ad4abee72b62035b949da452c7e34ddbd
35f076d1e8b5bbc3871a622b7808246e24b87f95
/src/github/__init__.py
10e03497751ba2b6964ca5e7dd22f5646fd3c7f5
[]
no_license
elena20ruiz/github_crawler
379ece12e07dcc5c866ca2aa8604d564d45010ff
dad9484539cc371584eb94ecfc20861e342325ee
refs/heads/master
2020-12-27T18:17:21.001287
2020-02-08T17:35:18
2020-02-08T17:35:18
238,001,792
0
0
null
null
null
null
UTF-8
Python
false
false
68
py
GITHUB_URL = 'https://github.com' __all__ = [ 'GITHUB_URL' ]
[ "elena.ruiz.bdn@gmail.com" ]
elena.ruiz.bdn@gmail.com
d7df85c05060a2aec8d54ca9acc857b79150ca15
ba466ae34666eb71584cc3a808bdd78f5f555d2f
/exercicios/ex37.py
2ccae9fb556d61448789994befc172790a367837
[]
no_license
gilmargjs/cursoEmVideoPython
8fa30984c00abd3ca331aab3de3d8e017d451e52
cb15343bf5c884b2045e6a35b949cd02c3e8321c
refs/heads/main
2023-06-12T22:48:59.398215
2021-06-30T20:52:55
2021-06-30T20:52:55
381,829,438
0
0
null
null
null
null
UTF-8
Python
false
false
796
py
"""programa que laeia um número intgeiro qualquer e peça para o usuario escolher qual será a base da conversão: -1 para binario -2 para octal -3 para hexadecimal """ print('='*30) print('SISTEMA DE CONVERÇÃO DE BASES') print('='*30) num = int(input("Digite um número: ")) print('''Escolha uma das Bases para Conversão:...
[ "gilmarjose2014@gmail.com" ]
gilmarjose2014@gmail.com
a2ebd1a75d40d5243131985f9e179274ccf490e4
e3efa07f9d804b7cb65ff79034f5565953f369df
/day12.py
c7105577cb87ead3b6059b6f7b882ff7dfdab838
[]
no_license
fursovia/adventofcode2020
decb277b7eedbbf5229e8c2d80dfe74bede4d234
8d65174fc6908736cc5609ea3115eda9d9586f63
refs/heads/main
2023-01-30T21:35:17.927959
2020-12-13T17:33:55
2020-12-13T17:33:55
317,532,322
0
0
null
null
null
null
UTF-8
Python
false
false
2,974
py
from dataclasses import dataclass from typing import List, Tuple from collections import OrderedDict RAW = """F10 N3 F7 R90 F11""" CARDINAL_MAPPING = OrderedDict( { "N": (0, +1), "E": (-1, 0), "S": (0, -1), "W": (+1, 0), } ) DIRECTIONS = list(CARDINAL_MAPPING.values()) @dat...
[ "fursov.ia@gmail.com" ]
fursov.ia@gmail.com
6433092cbee060d537b5cb9919a76a1ec7c5ab85
683b73e0c95c755a08e019529aed3ff1a8eb30f8
/machina/apps/forum_conversation/forum_attachments/admin.py
de1995638c922ddee9447fdc8ec8937ae0ebd484
[ "BSD-3-Clause" ]
permissive
DrJackilD/django-machina
b3a7be9da22afd457162e0f5a147a7ed5802ade4
76858921f2cd247f3c1faf4dc0d9a85ea99be3e1
refs/heads/master
2020-12-26T08:19:09.838794
2016-03-11T03:55:25
2016-03-11T03:55:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
492
py
# -*- coding: utf-8 -*- # Standard library imports # Third party imports from django.contrib import admin # Local application / specific library imports from machina.core.db.models import get_model Attachment = get_model('forum_attachments', 'Attachment') class AttachmentAdmin(admin.ModelAdmin): list_display =...
[ "morgan.aubert@zoho.com" ]
morgan.aubert@zoho.com
138b1b5eaed3c0e2c160f52a49e9ed9f1a6fd14b
65331b368b8956c4864e95e21e6b9c2b3c715a2f
/__init__.py
951540ce32097ac761cc9accb9ab3842ef23d029
[]
no_license
yamoimeda/diccionario-guna
83358ded73d79282457ff21984cdbff3028e1a82
e3041d22721cab9e97e9ebd45d3456d9960aecfe
refs/heads/master
2021-06-27T08:56:02.247787
2021-02-11T23:27:30
2021-02-11T23:27:30
203,426,052
0
0
null
null
null
null
UTF-8
Python
false
false
994
py
from flask import Flask,redirect,url_for,render_template,request,jsonify from pymongo import MongoClient import sqlite3 as sql app = Flask(__name__) #cliente = MongoClient("localhost", 27017) #db = cliente.diccionarios @app.route('/',methods=['GET','POST']) def index(): return render_template('inicios.ht...
[ "noreply@github.com" ]
yamoimeda.noreply@github.com
b5d716b2740e66732492a580f7db8280232f261e
d3d8acc788bd3a8d7e5f861ad87c4d802723062b
/test/step3_descope200MCHF_HLT.py
c2272355f19530f27df01562b14bf70d1dee3ae4
[]
no_license
calabria/L1IntegratedMuonTrigger
27ff0bde46208f84595423ec375080979fbe4c62
05a368b8d04f84b675d40445555f2cacfd135e4e
refs/heads/master
2021-01-24T21:57:42.232290
2015-08-11T11:52:35
2015-08-11T11:52:35
38,485,204
0
2
null
2015-08-11T11:52:35
2015-07-03T09:40:57
Python
UTF-8
Python
false
false
4,607
py
# Auto generated configuration file # using: # Revision: 1.20 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v # with command line options: step3_descope200MCHF --fileout file:out_hlt_descope200MCHF.root --mc --eventcontent RECOSIM --step HLT --customise RecoParticleFlow/Pandora...
[ "sven.dildick@cern.ch" ]
sven.dildick@cern.ch
2eb73db4561ba05eee120641d58dcfdf2e0c885b
333632d57adb95541042769fed09b9698996f0b2
/fullstack/venv_linux_auth0/bin/rst2xml.py
483278b51727939b4ecb68f5f5a86856858bfb7c
[]
no_license
NginxNinja/Udacity_FullStack
c71f0ef323d794767c59b7316f845744ec9d9773
ec028682633e4979a5938956ff92d336270a57f3
refs/heads/master
2021-05-19T15:12:05.720426
2020-05-24T00:31:33
2020-05-24T00:31:33
251,841,704
0
0
null
2020-04-18T06:18:28
2020-03-31T22:55:39
Python
UTF-8
Python
false
false
622
py
#!/vagrant/venv_linux_auth0/bin/python # $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing Docutils XML. """ try: import locale locale.set...
[ "dummy.kenmen2@gmail.com" ]
dummy.kenmen2@gmail.com
450652c8cc5a188c7692244ac62b7cc5f3cd3443
23be24e92420af66307121468136570234aceebd
/Problems/What day is it/task.py
49c6dff7b35a4222d7bf355ce9d79d44fb131b7e
[]
no_license
sanqit/credit_calculator
c309013f6639e886ae2a257b6c37c401d2d7b1fa
1b2aaab271b985ec2df47fe6409a08e4dd180a0f
refs/heads/master
2022-11-15T05:30:49.412246
2020-07-04T20:50:04
2020-07-04T20:50:04
277,182,017
0
0
null
null
null
null
UTF-8
Python
false
false
146
py
offset = int(input()) time = 10.5 n = time + offset if n < 0: print("Monday") elif n > 24: print("Wednesday") else: print("Tuesday")
[ "admin@sanqit.ru" ]
admin@sanqit.ru
2edce3beb41e028a8b6e04ee2df6b6902f74f0a5
feee01a7ba1ccc745060cf8233168934c5ef6426
/apps/courses/migrations/0009_course_teacher.py
33de7421a3c85d8ba99c73f05edd594c8b124b27
[]
no_license
carpenter-zhang/muke
bfa7fa320536466de3f12223b4ae98dc635ceba6
7529f4e6be5c1919b86194093e45f574a0ffa89a
refs/heads/master
2021-08-26T08:15:35.907867
2017-11-22T13:15:06
2017-11-22T13:15:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
633
py
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2017-11-08 16:51 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('organizations', '0006_teacher_image'), ('courses', '00...
[ "596864319@qq.com" ]
596864319@qq.com
151d04d5fcd1d701ef91676c6174b1bebb1baf8c
208db76b669686f782d59ec393efdb11e3d3cbbc
/test.l0.py
0f6d3d40bd459a45e68347a3ddc466043ba27139
[]
no_license
vsevolod-oparin/stream-dynamic-components
149542d1dd754cd3f9a7e7bfdff118612e3fb21a
ef5e40cb07f568205a140b78a77067f32d4f34cd
refs/heads/master
2021-01-10T01:32:21.968060
2016-02-09T16:00:41
2016-02-09T16:00:41
51,305,791
3
0
null
null
null
null
UTF-8
Python
false
false
2,774
py
#!/usr/bin/python # -*- coding: utf-8 -*- import unittest import random from algo.l0sample import Rec1 as Rec1 from algo.l0sample import RecS as RecS from algo.l0sample import RecGeneral as RecGeneral class TestRec1(unittest.TestCase): def test_zero(self): r = Rec1(100, 0.001) self.assertFalse(r...
[ "oparin.vsevolod@gmail.com" ]
oparin.vsevolod@gmail.com
9ef5be1266f315f4969221617ac232fd1647c121
1ed17b57788423eb62570020286daf3016749706
/CountryGroup.py
e88e6d468fe13afca192163b40994c5c0da6a8bc
[]
no_license
yuvapriya/TopCoder
b37749e4afae7fedf5a10881ba2dd2249dc08bc5
6dea4cc9bb70ab26ac70a846a2cd46a82061c033
refs/heads/master
2021-01-19T06:37:17.735811
2015-05-17T21:47:30
2015-05-17T21:47:30
35,783,828
0
0
null
null
null
null
UTF-8
Python
false
false
945
py
#Problem Statement: http://community.topcoder.com/stat?c=problem_statement&pm=13687 def countryGroup(arr): countryGrp = {} prev = None for i in range(len(arr)): val = arr[i] if( val in countryGrp): countryGrp[val] +=1 if(val != 1): if prev != None and ...
[ "m.yuvapriya@gmail.com" ]
m.yuvapriya@gmail.com
ad833abfa7ebc2a0c6d29bf5cc8502e93504ecf0
115dfb558763fe51bc6d065435e4181057907dee
/lintcode/空格替换.py
4bc2be3615ae4a137bf54514b44b36f8585a3a6f
[]
no_license
StSphinx/leetcode
a8f328f9f409ca57d56f2054598e2024c578c0a6
699e8ead451b570aed22d3a705a5ecbb7178cea1
refs/heads/master
2020-09-22T02:49:27.327193
2019-05-22T03:46:12
2019-05-22T03:46:12
37,531,684
0
0
null
null
null
null
UTF-8
Python
false
false
510
py
# -*- coding:utf-8 -*- __author__ = 'Muming' class Solution: # @param {char[]} string: An array of Char # @param {int} length: The true length of the string # @return {int} The true length of new string def replaceBlank(self, string, length): # Write your code here for k, v in enumerate(...
[ "zhhljdb6014@gmail.com" ]
zhhljdb6014@gmail.com
e3c07ab1c0f8f850ba14972383d4621221272771
f36be49208238248fa155311a8fa115e3e672efb
/faq/migrations/0001_initial.py
6eb45e075d0be3bdde3f88467367a6da286b3f51
[ "MIT" ]
permissive
Sejong-Creative-Semester2021/OJ-BE
71eb3bd88ce6767952227811d922000a9f407867
cecc511b771f1979ba7a556abdae1cbefa8e17bd
refs/heads/main
2023-08-14T03:23:54.029155
2021-09-17T13:00:45
2021-09-17T13:00:45
397,147,494
0
0
MIT
2021-08-30T04:03:01
2021-08-17T07:12:44
Python
UTF-8
Python
false
false
1,141
py
# Generated by Django 3.2.6 on 2021-09-17 12:49 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import utils.models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MO...
[ "mksin00@naver.com" ]
mksin00@naver.com
948f743d6e0bc327c25c496c6faeecf388f602ac
569970f62eca0ff81e1f3aaca7f14c08021fa1a3
/example1.py
459893bf3f7a622ea4c88414a80137553c732951
[ "MIT" ]
permissive
u9n/enron-modbus
c958c0af7408dcbc6efe3b526b55eba694e63c98
68418a07dbbd8b6e4763e4d1cb8eb2915ff040d7
refs/heads/main
2023-08-17T01:07:55.522410
2023-08-08T12:33:17
2023-08-08T12:33:17
377,763,911
2
0
null
null
null
null
UTF-8
Python
false
false
594
py
from enron_modbus.client import EnronModbusClient from enron_modbus.transports import SerialTransport transport = SerialTransport(port="/dev/tty.usbserial", baudrate=9600) client = EnronModbusClient(transport=transport) client.connect() print(client.read_numerics(1, 5160, 6)) print(client.read_numeric(1, 5160)) print(...
[ "henrik@pwit.se" ]
henrik@pwit.se
d8229a35567ff7594f50dbb89b7cea36bec123ac
148125096da896fd93292d2cd408265d159fec28
/qa/rpc-tests/p2p-acceptblock.py
2267768dbfeb2685302144171cfdd388f4355b4c
[ "MIT" ]
permissive
lycion/lkcoinse
7cfbcbdfc1e98f20d9dfc497ea65fd75ca6de25d
9cf9ed5730217566b44466c22dc255f0134ad1bb
refs/heads/master
2020-03-30T03:24:44.245148
2018-09-28T04:55:30
2018-09-28T04:55:30
150,548,883
0
0
null
null
null
null
UTF-8
Python
false
false
12,678
py
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Lkcoinse Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import test_framework.loginit from test_framework.mininode import * from test_framework.test_framework im...
[ "lycion@gmail.com" ]
lycion@gmail.com
f44cb8ff8292065f395502b902384d138c5b9281
f09ef05dbc335a095c3652089bd98c9ba2f0e1de
/project_model/blog/migrations/0004_blogpost_posted_by.py
442e65869d57a4228993da0add9fc0dbedf1a905
[]
no_license
Dzinsyah/DJANGO_MVC
be45e2900203717dba51c1221f899d1c54324c36
5dea4d592ffecd1918e78c2aae185076a4e21fa4
refs/heads/master
2020-04-22T02:50:53.661662
2019-02-13T11:58:45
2019-02-13T11:58:45
170,065,027
0
0
null
null
null
null
UTF-8
Python
false
false
505
py
# Generated by Django 2.1.5 on 2019-02-11 07:48 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('blog', '0003_blogpost'), ] operations = [ migrations.AddField( model_name='blogpost', ...
[ "dzinsyah@alphatech.id" ]
dzinsyah@alphatech.id
0a38162b769782206e31ce264818a2b2f80a10da
afff172ee00de38de8b7d6663cfbd85d80cf2db9
/blog/models.py
7634e140fb8e695428f95cdddf51b62e5434a0d0
[]
no_license
marmik13/DjangoEcommerce-site
f7af4748ad75de4dce2be9c37e6773bf25a8d900
47a7819db4e1be5ea61d646279a5cd47d25da961
refs/heads/master
2022-07-26T10:51:37.652455
2020-05-24T05:40:09
2020-05-24T05:40:09
264,853,534
0
0
null
null
null
null
UTF-8
Python
false
false
686
py
from django.db import models # Create your models here. class Blogpost(models.Model): post_id = models.AutoField(primary_key=True) title = models.CharField(max_length=200) head0 = models.CharField(max_length=500, default="") chead0 = models.CharField(max_length=10000, default="") head1 = models.C...
[ "marmikpatelme13398@gmail.com" ]
marmikpatelme13398@gmail.com
1d0914e57305a093924e35492cdf55af4109608e
5805bf03876af7f32e75fbc467b257768676ce42
/compadre-appengine/compadre-server/run.py
5b81242d833dbdb0fafb4183df8d100cd0b475bd
[]
no_license
mtaziz/Compadre
53ce8c717674886cadb16c81f2d87bdc7a11fe78
83473b404597dcf7140e8a435ac4c1e4d894020f
refs/heads/master
2021-01-17T15:54:39.716474
2016-06-20T16:57:01
2016-06-20T16:57:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
104
py
import os import sys sys.path.insert(1, os.path.join(os.path.abspath('.'), 'lib')) import application
[ "yonatano@gmail.com" ]
yonatano@gmail.com
6537118072122509e9adad7738eee5616a1b24dd
fc83fc10fcc509316e612d73bd40a81d3ca0a2e6
/tests/nd_gaussian_multiprocessing.py
1f8c698393e3a088d991eb3484785a391dc3c783
[ "MIT" ]
permissive
DimitriMisiak/mcmc-red
47dfb7e0664205da55fa463df77851722082e3c3
caae0ce39d082e578176a5078a9184980b0851c3
refs/heads/main
2023-06-19T04:10:42.385862
2019-07-05T07:45:01
2019-07-05T07:45:01
387,757,149
0
0
null
null
null
null
UTF-8
Python
false
false
3,928
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Handy MCMC scripts. Test for the different fit method (mcmc, ptmcmc, minimizer). Author: Dimitri Misiak (misiak@ipnl.in2p3.fr) """ import numpy as np import matplotlib.pyplot as plt import sys import scipy.signal as sgl from os import path import scipy.optimize ...
[ "dimitrimisiak@gmail.com" ]
dimitrimisiak@gmail.com
05c06ff5850ee1f5cbab0d42f5704ce5b0f4acb3
57d1580fd540b4819abb67f9db43fdfbba63725f
/hydrogen_notebooks/option_pricing/binomial_european_call_delta_hedging.py
29f3ca209e1b50cb4571fff0cac52d807c607296
[]
no_license
glyfish/alpaca
49edfcb9d80551825dfa4cf071f21aeb95a3502f
2b5b69bcf50ed081a526742658be503706af94b4
refs/heads/master
2023-02-22T00:24:19.293502
2022-09-05T17:20:23
2022-09-05T17:20:23
186,169,438
1
3
null
2023-02-11T00:52:12
2019-05-11T18:38:58
Python
UTF-8
Python
false
false
2,302
py
# %% %load_ext autoreload %autoreload 2 import os import sys import numpy from matplotlib import pyplot from lib import config from scipy.stats import binom wd = os.getcwd() yahoo_root = os.path.join(wd, 'data', 'yahoo') pyplot.style.use(config.glyfish_style) # %% def qrn(U, D, R): return (R - D) / (U - D) def...
[ "troy.stribling@gmail.com" ]
troy.stribling@gmail.com
ce5dade7d36a431e3ec81dade64648f6c22eca35
7832e7dc8f1583471af9c08806ce7f1117cd228a
/aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/RunClusterServiceActionRequest.py
eb1c959505c70fd4e06aa43388665c4d9f9b06a3
[ "Apache-2.0" ]
permissive
dianplus/aliyun-openapi-python-sdk
d6494850ddf0e66aaf04607322f353df32959725
6edf1ed02994245dae1d1b89edc6cce7caa51622
refs/heads/master
2023-04-08T11:35:36.216404
2017-11-02T12:01:15
2017-11-02T12:01:15
109,257,597
0
0
NOASSERTION
2023-03-23T17:59:30
2017-11-02T11:44:27
Python
UTF-8
Python
false
false
3,508
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "haowei.yao@alibaba-inc.com" ]
haowei.yao@alibaba-inc.com
84eb65886a58255c2d3c09f27ece27c9be43b5bf
d55deb7b26277a647aff5887cdbe65f002035ac7
/jobs/models.py
b2cee414ec2ee17dd8d1ae2de7a8ea7258a12eae
[ "MIT" ]
permissive
cyndi088/recruitment
0af95ef6028c678e49952752e65dd7e58fd9799f
e25e29b8b6724f1dce7b9ed5d9efb409744907c0
refs/heads/main
2023-01-22T18:38:55.403025
2020-12-03T06:19:16
2020-12-03T06:19:16
318,094,536
0
0
MIT
2020-12-03T06:19:17
2020-12-03T06:13:45
Python
UTF-8
Python
false
false
1,226
py
from django.db import models from datetime import datetime from django.contrib.auth.models import User # Create your models here. JobTypes = [ (0, "技术类"), (1, "产品类"), (2, "运营类"), (3, "设计类") ] Cities = [ (0, "北京"), (1, "上海"), (2, "深圳"), (3, "杭州") ] class Job(models.Model): job_typ...
[ "cyndi088@163.com" ]
cyndi088@163.com
74dd88c522c1f43180958ef5d5f77d70bc1a149a
529b575a77c6c39714704c60e9705eaf52bd48d3
/tictactoe.py
dea97741580f86f1c1e9f720054c2dca5e7284b3
[]
no_license
alevi0106/AI
82151cd5c415f0ab7d852cc8d76f88ae56490835
c9ab47e63d8f8a0a0f0d5b1fd824a5096f3115a8
refs/heads/master
2020-03-22T21:58:33.549768
2018-09-27T10:01:02
2018-09-27T10:01:02
140,725,573
2
0
null
null
null
null
UTF-8
Python
false
false
4,120
py
board=[2]*10 board_copy=[" "]*10 #To draw a board def draw(): for i in range(1,10): if board[i]==3: board_copy[i]="X" if board[i]==5: board_copy[i]="O" #print(board_copy) print(' {} | {} | {}'.format(board_copy[1],board_copy[2],board_copy[3])) print(' {} | {} | {}'.format(board_copy[4],board_copy[5],boa...
[ "noreply@github.com" ]
alevi0106.noreply@github.com
f1a9d5f8ac93d9af895ae5ffd7c6036d617c5d19
6b83e1eb08926bd2437c3a42bf53e262fda81cd3
/algorithms/envs/flow/envs/ring/lane_change_accel.py
ea40b24414a20e24a7db6c8d2e50716d09bf8c08
[]
no_license
TerryLiu2k/DMPO
a92d2b96458066cd441293f618aca10bd21fce22
060c4135973a1b9bdea0cd26ea8f78a3a7ad5d98
refs/heads/master
2023-08-15T16:09:08.202735
2021-10-16T04:07:38
2021-10-16T04:07:38
416,567,453
6
0
null
null
null
null
UTF-8
Python
false
false
10,406
py
"""Environments that can train both lane change and acceleration behaviors.""" from algorithms.envs.flow.envs.ring.accel import AccelEnv from algorithms.envs.flow.core import rewards from gym.spaces.box import Box import numpy as np ADDITIONAL_ENV_PARAMS = { # maximum acceleration for autonomous vehicles, in m/s...
[ "terrylyclow@yahoo.com" ]
terrylyclow@yahoo.com
59394e931356467d27d5d2fb4d1f788d461283b7
026c31969fe43e3d14029a8dbf7b4e3e435a06d2
/users/tests/test_admin.py
7c8be906cd6030b7fe983ed5bab088036da8a00c
[ "MIT" ]
permissive
victorfsf/github-monitor
db83c9f2ad0e725f6adbfa2c56c299aeadd5bc3a
7192827d44ca616c0914864770f8f7910cbe55b3
refs/heads/master
2020-03-08T00:44:30.341022
2018-04-09T23:43:12
2018-04-09T23:43:12
127,812,813
2
0
null
null
null
null
UTF-8
Python
false
false
846
py
from django.test import TestCase from django.test.client import RequestFactory from model_mommy import mommy from common.site import GithubMonitorAdminSite from users.admin import GithubUserAdmin class TestGithubUserAdmin(TestCase): def setUp(self): factory = RequestFactory() self.user = mommy....
[ "victorfsf.dev@gmail.com" ]
victorfsf.dev@gmail.com
0e13ea228a661ee0d8e2c5bfce784e4d705a8f66
09b0075f56455d1b54d8bf3e60ca3535b8083bdc
/WideResnet.py
595e4f69f1baa13a9f27f80fdb61e54773195de4
[]
no_license
YanYan0716/MPL
e02c1ddf036d6019c3596fd932c51c3a14187f5e
6ad82b050ec1ed81987c779df2dddff95dc1cde5
refs/heads/master
2023-04-17T23:05:54.164840
2021-05-07T01:14:49
2021-05-07T01:14:49
331,491,485
11
6
null
null
null
null
UTF-8
Python
false
false
7,157
py
import os from abc import ABC os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' import tensorflow as tf import tensorflow.keras as keras from tensorflow.keras import layers from tensorflow.keras import regularizers import config class BasicBlock(layers.Layer): def __init__(self, in_channels, out_channels, stride, drop...
[ "yanqian0716@gmail.com" ]
yanqian0716@gmail.com
a25c70b086e30d5453a6b2028947b60a2489d0ec
333b2e1284be6ea06a9989bcc76fd296f5c4f0a4
/modules/study.py
7aff8c48c34019e170d78e05afffc4ecb7954e76
[]
no_license
luomeng007/MyLife
567df155a30857e2c5f03049611d83eb0a847c02
76447fdfeaa83d7b77964560d56c67ce2cd36905
refs/heads/main
2023-01-20T14:17:30.613718
2020-11-29T10:46:26
2020-11-29T10:46:26
309,741,680
1
1
null
null
null
null
UTF-8
Python
false
false
2,352
py
# -*- coding: utf-8 -*- import os import time import speech class Study: def __init__(self): while True: print("请您选择,提示:请输入序号1或者2") print("1. 学习30分钟") print("2. 学习60分钟") self.choice = input("您的决定: ") print("") if self....
[ "noreply@github.com" ]
luomeng007.noreply@github.com
4d251c34bdbf56b6e283315909d38807e090ff38
66746ed38e13b2d069829b1e7d963e2a66808f4e
/37 - Estrutura de repetição WHILE - Cria menu.py
92ebdc45c4e59ce4ccd23fb7fb34b6fe0a53358f
[]
no_license
leanndropx/px-python-logica-de-programacao
23ea8064381646623556130c29c7ecec4a845eb1
72d852abc8b4f85c0963909aab8e6aa0e9278ec1
refs/heads/master
2023-06-17T09:22:47.516634
2021-07-15T11:42:19
2021-07-15T11:42:19
385,781,144
0
0
null
null
null
null
UTF-8
Python
false
false
1,636
py
# - DESCREVENDO O DESAFIO print('37 - Crie um programa que leia DOIS valores e mostre um menu na tela:') print('1 - somar') print('2 - multiplicar') print('3 - maior') print('4 - novos números') print('5 - sair do programa') print() print() # - INICIALIZANDO O PROGRAMA # IMPORTA BIBLIOTECAS f...
[ "leanndrompeixoto1@gmail.com" ]
leanndrompeixoto1@gmail.com
b09fdc0bc43f30b2b51c8893afcf2024ef86d619
0009c76a25c89a0d61d3bc9e10071da58bdfaa5a
/py/ztools/mtp/mtp_tools.py
0496f5ae683026478bdcc98faf9cc9c89b3e14a9
[ "MIT" ]
permissive
julesontheroad/NSC_BUILDER
84054e70a80b572088b0806a47ceb398302451b5
e9083e83383281bdd9e167d3141163dcc56b6710
refs/heads/master
2023-07-05T05:23:17.114363
2021-11-15T19:34:47
2021-11-15T19:34:47
149,040,416
1,249
143
MIT
2022-12-15T03:19:33
2018-09-16T22:18:01
Python
UTF-8
Python
false
false
8,313
py
import os from listmanager import folder_to_list from listmanager import parsetags from pathlib import Path import Print import shutil from mtp.wpd import is_switch_connected import sys import subprocess from python_pick import pick from python_pick import Picker squirrel_dir=os.path.abspath(os.curdir) NSCB_dir=os.pat...
[ "42461174+julesontheroad@users.noreply.github.com" ]
42461174+julesontheroad@users.noreply.github.com
3b02f493286c8655b3bc6b8e6da7a3105dcca05f
a3b46d9b89bf7cf984413845db604ec2c98df8b3
/code.py
78d1cca2ec8f0d4db535249a5eb54e431c8c5d2a
[]
no_license
asahazmy/Field-prediction
3c1b3cd1a057457648237db2933f5608dff6a305
6b7ff05371e20ac9da9cd54ca74ac606914c7f70
refs/heads/master
2023-01-03T06:14:01.879003
2020-10-25T13:08:21
2020-10-25T13:08:21
275,312,086
0
0
null
null
null
null
UTF-8
Python
false
false
6,972
py
import matplotlib.pyplot as plt import tensorflow as tf from tensorflow import reduce_sum from tensorflow.keras.backend import pow from tensorflow.keras.models import Model from tensorflow.keras.layers import Input, Conv2D, MaxPool2D, UpSampling2D, Concatenate, Add, Flatten from tensorflow.keras.losses import bin...
[ "noreply@github.com" ]
asahazmy.noreply@github.com
3412b6740ab16c481792133ad7b3581fee11316c
604756ba3da355fffb1a1cf4b882441de2d75184
/app/util/py2mongo.py
d6d181192ddcc862daecdedcade7e3838cf2a87d
[]
no_license
gowthamlabs/python-rest-ml
4e93f64019e28f4436b4c634d275e98b70c98939
3aa0a1b6fddd52037bfcdb065a9ae63105fd9f6c
refs/heads/master
2020-07-29T01:59:28.579650
2019-09-30T04:46:39
2019-09-30T04:46:39
209,625,473
1
0
null
null
null
null
UTF-8
Python
false
false
890
py
from pymongo import MongoClient # pprint library is used to make the output look more pretty from pprint import pprint # connect to MongoDB, change the << MONGODB URL >> to reflect your own connection string # client = MongoClient("localhost:27017") --> this also works try: client = MongoClient(port=27017) except Exce...
[ "gowtham.venugopalan@cognizant.com" ]
gowtham.venugopalan@cognizant.com
e30bf0195bbfc6ed9aa15d5e111172064f3af938
bc863127e5f44ede4cfe46316ec44ce00cffb2d4
/config.py
d27612bdaa7edb6acf23a584e67ea2f321b668d9
[]
no_license
yogeshBsht/FeedbackForm
d33ce048261177badbed07871711da6260b93086
8c87505100bda14add08b1bfa3918ffc95a97525
refs/heads/main
2023-06-02T15:42:36.984226
2021-06-21T17:06:31
2021-06-21T17:06:31
378,629,987
0
0
null
null
null
null
UTF-8
Python
false
false
796
py
import os from dotenv import load_dotenv basedir = os.path.abspath(os.path.dirname(__file__)) load_dotenv(os.path.join(basedir, '.env')) class Config(object): SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \ 'sqlite:///' + os.path.join(basedir, 'app.db') SQLALCHEMY_TRACK_MODIFICATIONS = ...
[ "ybnsit@gmail.com" ]
ybnsit@gmail.com
91f7b4d2efaf48ed26bfcc96e2670ac062a664fe
6515c886cc420539bed05b2250c76e1c6974e5da
/models/mxnet_resnet_50.py
708dbb07c13c01468c1d3fe4962f17ca8206bfd6
[]
no_license
yuanmengzhixing/pytorch_deep_metric_learning
a320fd4e8863b9b8c3768b61e46027ccfc2077ee
b57621355a49af89573447c72685694043548434
refs/heads/master
2020-03-22T23:10:11.622231
2018-03-11T08:02:56
2018-03-11T08:02:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
35,697
py
import torch.nn as nn import torch.nn.functional as F import torch import numpy as np __weights_dict = dict() pre_trained_path = '/home/zhengxiawu/project/pytorch_deep_metric_learning/pretrained_models/kit_pytorch.npy' #pre_trained_path = '/home/zhengxiawu/deep_learning/model/mxnet_2_resnet/mx2pt_resnet_50.npy' #pre_...
[ "zhengxiawu@126.com" ]
zhengxiawu@126.com
552afe3365ed66d2b8652c89879abaa32a139ce6
548a195b2bd6e5857f008ef4b5a305983bada183
/popular-movie-nicer.py
c207732295d01f823104ab24c3592707649b22c2
[]
no_license
aashray18521/Udemy-Spark_Python
b404801aba3bcb9c896a34fcd3679172ef092caf
13174529199d581598902dadcf07dcb171cadf33
refs/heads/master
2020-03-28T10:55:32.160605
2018-09-17T06:44:21
2018-09-17T06:44:21
148,159,774
1
0
null
null
null
null
UTF-8
Python
false
false
794
py
from pyspark import SparkConf, SparkContext def loadMovieNames(): movieNames = {} with open("ml-100k/u.item") as f: for line in f: fields = line.split('|') movieNames[int(fields[0])] = fields[1] return movieNames conf = SparkConf().setMaster("local").setAppName("nicePopularMovie") sc = SparkContext(conf = ...
[ "noreply@github.com" ]
aashray18521.noreply@github.com
ff0ea4acf2347925603c4adec3f917e249a6c633
eb0ff0b6979a4cef6b1d8509d10579da9a6aca90
/main.py
5c8cb04f647953e8faa71d2b9c1e2fbec3279661
[]
no_license
SusaOP/Motion-Detection-Security-Camera
71b44e2b80ddf99f611c85c375b68afa242f41e3
33468eb9a6743476e048fd2785c0ad82cf5feb79
refs/heads/main
2023-06-27T20:30:12.629899
2021-08-06T01:04:39
2021-08-06T01:04:39
393,207,450
0
0
null
null
null
null
UTF-8
Python
false
false
1,256
py
import os import shutil from datetime import datetime from operateCamera import videoRecord from into_frames import toFrames from compare_frames import compare from send_email import fromFlaggedToSent from send_email import establishAttachment local_max = 0 for i in range(2): saveDir, videoFile = videoRecord() ...
[ "noreply@github.com" ]
SusaOP.noreply@github.com
72ec7cf470d37dd39544d24e30dce4db9ee66c02
69d4577c856c8352f4b41a83431ca304bae3a8a2
/model/charcnn.py
286006f682bb6386485eaa862be0faef17d080aa
[ "Apache-2.0" ]
permissive
tagucci/NCRFpp
ecbdd6d9c6e87505bc200047eb4f2a21c651d2c9
3fd65685c26ed0686efde933d262b85daeb02697
refs/heads/master
2020-03-11T22:51:23.497036
2018-04-19T12:38:44
2018-04-19T12:38:44
130,304,515
0
0
Apache-2.0
2018-04-20T03:35:53
2018-04-20T03:35:53
null
UTF-8
Python
false
false
2,910
py
# -*- coding: utf-8 -*- # @Author: Jie Yang # @Date: 2017-10-17 16:47:32 # @Last Modified by: Jie Yang, Contact: jieynlp@gmail.com # @Last Modified time: 2018-03-30 16:18:23 import torch import torch.autograd as autograd import torch.nn as nn import torch.nn.functional as F import numpy as np class CharCNN(nn....
[ "jie_yang@mymail.sutd.edu.sg" ]
jie_yang@mymail.sutd.edu.sg
9a6921acf2118b13a365d80619408f90133228ad
12596a0809bc4ce7eba4f1f32cbf96c8191f5628
/ProgramFlow/guessinggame.py
cd83bec8fcc24262a2d83ae812b093853753f8c7
[]
no_license
MichaelAntropov/python-masterclass
e19c34d11eab42b9a3c58d568c866fb747ffe3ff
037456ff3f67ae5adf16465e8882a42ada0ca6c1
refs/heads/master
2023-04-06T11:59:19.402503
2021-04-17T13:43:04
2021-04-17T13:43:04
342,575,001
0
0
null
null
null
null
UTF-8
Python
false
false
1,335
py
import random highest = 10 lowest = 0 answer = random.randint(lowest, highest) print(answer) # TODO: Remove after testing print("Please guess a number between {} and {}:".format(lowest, highest)) while True: guess = int(input()) if guess == 0: print("U gave up :(") elif guess < lowest or guess...
[ "mikhael.antropov@gmail.com" ]
mikhael.antropov@gmail.com
506ab3ede97c112af86c4a23956ee39a25c9aecd
83b1a267809c08a57a3bb16c103d71539502a650
/job/migrations/0011_apply_created_at.py
c9ebca4b68d4fe3dc9d8d3052bdac004ee5816f8
[]
no_license
rimatechcampus/django-jobboard-project-
c66933295b4692c7d3cb055dcf0cbaef80424b38
8823e1e7db011a4fbaa0fc87f1810bcd5dab08c6
refs/heads/master
2022-11-20T16:40:56.495550
2020-07-19T16:52:13
2020-07-19T16:52:13
279,794,420
0
0
null
null
null
null
UTF-8
Python
false
false
378
py
# Generated by Django 3.0.8 on 2020-07-18 08:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('job', '0010_apply_job'), ] operations = [ migrations.AddField( model_name='apply', name='created_at', fi...
[ "riyamtechcampus@gmail.com" ]
riyamtechcampus@gmail.com
354f4e8b11fc7deaae648a37d207d137f827d66e
0aa87ee2e544f56c17c2dde28a3b3feed08daa14
/apps/users/urls.py
6dda1d1373eadae3c77476250c17308642600204
[]
no_license
yanshigou/mxonline
f2cc44724c1511418953e7e06d04661244b29455
cebc3295734713846828246fc54dd33f8df14f86
refs/heads/master
2022-12-09T12:11:05.734326
2022-08-17T10:38:13
2022-08-17T10:38:13
148,120,737
0
2
null
2022-12-08T02:58:15
2018-09-10T08:06:10
Python
UTF-8
Python
false
false
1,309
py
# -*- coding: utf-8 -*- __author__ = 'dzt' __date__ = '2018/12/21 23:48' from django.conf.urls import url from .views import UserInfoView, UploadImageView, UpdatePwdView, SendEmailCodeView, UpdateEmailView, MyCourses from .views import MyFavOrgView, MyFavTeacherView, MyFavCourseView, MyMessageView urlpatterns = [ ...
[ "569578851@qq.com" ]
569578851@qq.com
0861548899e4e325b8f98626824a5f2a3f40c4a1
d620b82c57adde1636826601e2b99209689ad2c4
/model/xgboost/xgboostprocess.py
8facdb750067deadb04ba3f2ca6276a0d2ee0326
[]
no_license
weigebushiyao/HFData-PitchSystemModel
1a75e2da6bef1bdbcae0eee1b1b9519bee03b56c
58c77cdfcf85e49d7ab1f7163374c906ac0df361
refs/heads/master
2022-07-11T22:30:35.794840
2020-05-18T06:36:54
2020-05-18T06:36:54
264,849,547
0
0
null
null
null
null
UTF-8
Python
false
false
3,260
py
#-*-coding:utf-8-*- from sklearn.model_selection import RandomizedSearchCV import pandas as pd from xgboost.sklearn import XGBRegressor from model.get_data_path import get_train_data_path,get_test_data_path from sklearn.model_selection import train_test_split import os from util.show_save_result import ShowAndSave cu...
[ "505456072@qq.com" ]
505456072@qq.com
88f5d9a2605d4624cc87af7e584ecdf570ac00dc
6eb302bf3456b5fe700a4e3281ca7bb4597477bf
/student_chatbot/app.py
646b9b82f4b4c27cc03f005615fed2b793fd3fae
[]
no_license
lekhya19311/Student-Informative-Chat-Bot-System
f39a99d219bef3e534077c2cf2abcd7dd8d4eec1
7cd420bb5a21383bddf0f5bea01335d3e8bcbf9e
refs/heads/master
2021-01-26T13:58:08.538530
2020-02-22T09:28:17
2020-02-22T09:28:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,486
py
import os from flask import send_file from flask import Flask, session, render_template, request, redirect, url_for, flash, jsonify from flask_bcrypt import Bcrypt from flask_session import Session from database import Base, Attendance, Marks,Accounts, Profile, Feedback from sqlalchemy import create_engine, exc from sq...
[ "satheeshgajula22@gmail.com" ]
satheeshgajula22@gmail.com
fa26cbfd0a0af998227fd24745c6f1b50a85ae34
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03046/s367901013.py
bd60026b909a76c85e533b517ac364ab9dac011a
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
1,127
py
from sys import stdout printn = lambda x: stdout.write(str(x)) inn = lambda : int(input()) inl = lambda: list(map(int, input().split())) inm = lambda: map(int, input().split()) ins = lambda : input().strip() DBG = True # and False BIG = 999999999 R = 10**9 + 7 def ddprint(x): if DBG: print(x) m,k = inm...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
a0754fefb495c8c77a0ceb23a9ff13a8cc1d720f
0a669c18356f783fdd31ac54519b7c91f2fb3ef7
/01-Estrutura_Sequencial/08-Salario_hora_simples.py
8153ac315ed945727e1f63797c0f8bc3d3d8dd4d
[]
no_license
guilhermejcmarinho/Praticas_Python_Elson
5295bca77785c22c6502c7b35988a89e6e8fba8e
27145a99dd18c57281736079d94aef468d7276dc
refs/heads/main
2023-07-28T22:41:58.636331
2021-09-10T22:09:37
2021-09-10T22:09:37
400,654,904
0
0
null
null
null
null
UTF-8
Python
false
false
187
py
sal_hora = float(input('Informe o valor da hora trabalhada: ')) hr_trab = float(input('Informe quantas horas trabalhou: ')) print('Salário total no mês: R$', round(sal_hora*hr_trab, 2))
[ "gui.the.great@gmail.com" ]
gui.the.great@gmail.com
b1c5a6fe4a11aa713099d0337893a6259fa2e086
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02973/s301790930.py
280647a2fd8669a6345ecf3a1ac6c75ef906c3dc
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
269
py
from sys import stdin from bisect import bisect N = int(stdin.readline().rstrip()) A = [] for i in range(N): A.append(int(input())) dp = [] for a in A[::-1]: i = bisect(dp, a) if i < len(dp): dp[i] = a else: dp.append(a) print(len(dp))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
2c4cfe1cd667b7a708c96b4978b00325826dfb19
0987f31e64bcacb41ba3a1e20054d7b8ac0d7346
/contests/panasonic2020/a.py
3c85e5a3a0a4b6b5ab170b052566849aab8ae7bf
[]
no_license
masakiaota/kyoupuro
81ae52ab3014fb2b1e10472994afa4caa9ea463b
74915a40ac157f89fe400e3f98e9bf3c10012cd7
refs/heads/master
2021-06-27T04:13:52.152582
2020-09-20T03:21:17
2020-09-20T03:21:17
147,049,195
1
0
null
null
null
null
UTF-8
Python
false
false
1,905
py
import sys sys.setrecursionlimit(1 << 25) read = sys.stdin.readline def read_ints(): return list(map(int, read().split())) def read_a_int(): return int(read()) def read_tuple(H): ''' H is number of rows ''' ret = [] for _ in range(H): ret.append(tuple(map(int, read().split())))...
[ "aotamasakimail@gmail.com" ]
aotamasakimail@gmail.com
a9f2bfe4189be9732b9d1c4db1fff1baab5cbbd9
94b8f8f7241545e614dc51f708c3b5b876f6db0c
/test.py
ce1d52ce890c992dc59565079f5e3c9ef7ba3cca
[ "MIT" ]
permissive
aliyun/The-Blessings-of-Unlabeled-Background-in-Untrimmed-Videos
b369155d11560508a43892da1e84f46cc7ae0852
aca214c56fc05778a1f9f382c2f634cbeca4d852
refs/heads/master
2023-06-23T20:32:16.577804
2021-07-27T06:40:45
2021-07-27T06:40:45
370,694,896
30
3
null
null
null
null
UTF-8
Python
false
false
7,256
py
import torch import torch.nn as nn import numpy as np import utils import os import os.path as osp import json from eval.eval_detection import ANETdetection from tqdm import tqdm import sys def test(net, config, logger, test_loader, test_info, step, model_file=None): with torch.no_grad(): net.eval() ...
[ "alen.ly@alibaba-inc.com" ]
alen.ly@alibaba-inc.com
dc99e0b0e9ab6f25c323a84c139ce0ec4d9fcdeb
bcd33ba045b68fe6fba6f7a3a8fd95124106ac16
/tests/test_dates.py
d2c3b3422cc62b44cc924dd40f9e617529822d61
[ "MIT" ]
permissive
bfontaine/Romme
43d9ba2f6cd09f7b24f8916b121854521009cdd0
affdfb23a6bb882c17da95ec3767710d5bebd59a
refs/heads/master
2021-03-27T12:29:13.329232
2017-06-10T19:42:30
2017-06-10T19:42:30
93,895,352
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
# -*- coding: UTF-8 -*- import unittest from romme.dates import RepublicanDate class TestDates(unittest.TestCase): def test_str(self): rd = RepublicanDate(1, 1, 1) self.assertEqual("1 Vendémiaire, an I", str(rd))
[ "b@ptistefontaine.fr" ]
b@ptistefontaine.fr
1d1dfcd44cf71fa592df181189c7efe1af6af40d
7a8560742946bfb95f4a252693264c34d4d0473d
/k2/centroid.py
e09491c999915180b3830fd138110d6e2140551a
[ "MIT" ]
permissive
benmontet/K2-noise
3781e475ed6d5e2748a7ac3ddd878b8eec334254
a4b682cdf33f85d2dffc4cef115dcedacfccb4b4
refs/heads/master
2016-09-05T13:02:09.051080
2014-10-25T14:36:22
2014-10-25T14:36:22
22,899,258
1
0
null
null
null
null
UTF-8
Python
false
false
604
py
# -*- coding: utf-8 -*- from __future__ import division, print_function __all__ = ["centroid"] import numpy as np from functools import partial from itertools import izip, imap from .c3k import find_centroid def centroid(tpf, **kwargs): # Load the data. data = tpf.read() times = data["TIME"] image...
[ "danfm@nyu.edu" ]
danfm@nyu.edu
0249930c34da9815a0b78f5701b102bed3daa0b0
57a9d84e8bcf505795e7e4f2a57f096edebd0040
/read_statistics/migrations/0002_readdetail.py
c76c1ec0c7df8243dc8104d4804adc7e95280b51
[]
no_license
klllllsssss/mysite
03541240c3d8013da40e3fdcaefbf9cfffabdfe3
14fbce7d1cb5097f16d2002da5a7a709cc7953f6
refs/heads/master
2022-09-18T13:30:47.399220
2020-06-03T11:04:23
2020-06-03T11:04:23
269,059,986
0
0
null
null
null
null
UTF-8
Python
false
false
909
py
# Generated by Django 2.0 on 2020-04-27 11:53 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0002_remove_content_type_name'), ('read_statistics', '0001_initial'), ...
[ "549284627@qq.com" ]
549284627@qq.com
7fdb76e70da796bb88882454749b09f5a59d1b45
ec4586abcc179293656f0afd837b0d521d072a75
/torchsl/mvsl/__init__.py
d61621ffcfa464dc736802882d9237e957f9b3a7
[]
no_license
ZDstandup/mvda
e483387e0b7e50c84bc28ffd864d44a724d23762
13f854e063f10a9374856d0e2005b233788a645f
refs/heads/master
2021-01-13T20:42:51.842836
2019-12-15T19:16:13
2019-12-15T19:16:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
382
py
from .mvda import MvDA, MvDAvc, RMvDA, RMvDAvc from .pcmvda import pcMvDA from .mvcsda import MvCSDA, MvDAplusCS from .mvlfda import MvLFDA, MvLFDAvc, RMvLFDA, RMvLFDAvc from .mvccda import MvCCDA, MvDCCCDA __all__ = [ 'MvDA', 'MvDAvc', 'RMvDA', 'RMvDAvc', 'pcMvDA', 'MvCSDA', 'MvDAplusCS', 'MvLFDA', '...
[ "inspiros.tran@gmail.com" ]
inspiros.tran@gmail.com
a602ed4d95af34413839a7d25ad1df255e16af0c
e67ae29c22eca0e23a63f871c008c0de3b0cf1df
/Civ4 Reimagined/PublicMaps/not_too_Big_or_Small.py
fddb4814cf8770bde44e7db1b6693f74db53c0c5
[ "CC-BY-3.0" ]
permissive
NilsBatram/Civ4-Reimagined
16f9e24174118ee7662723230f101fb563d31b4b
a9bc57908321dd12db3417b89bd569de7b99dea1
refs/heads/master
2020-12-08T11:30:46.160054
2020-06-18T20:32:55
2020-06-18T20:32:55
66,165,954
0
0
null
null
null
null
UTF-8
Python
false
false
6,732
py
## "not too Big or Small". A modified version of "big and small" to scale better with larger maps. ## by Karadoc. version 1.4 from CvPythonExtensions import * import CvUtil import CvMapGeneratorUtil from CvMapGeneratorUtil import FractalWorld from CvMapGeneratorUtil import TerrainGenerator from CvMapGenerato...
[ "Nils.Batram@gmx.de" ]
Nils.Batram@gmx.de
fdb4bdf1a20e33fa178f567d6dfa0aac72099ca5
c6716e87bde12a870d517ebe64c6916477ef3251
/tableFormats.py
dfc915f56ec17c0cb2887a8fce4b5c6e7c0c0ed0
[ "BSD-3-Clause" ]
permissive
adasilva/prettytable
efca75828341319e2962727e55f7cce5519eb4b7
899e255a53b257cf392565dc1d9f02bef25c4c4a
refs/heads/master
2021-01-25T04:01:43.633364
2015-08-19T15:26:49
2015-08-19T15:26:49
40,557,221
0
2
null
null
null
null
UTF-8
Python
false
false
2,591
py
from prettytable import PrettyTable import abc class TableString(object): """Metaclass for formatted table strings.""" __metaclass__ = abc.ABCMeta @abc.abstractmethod def __unicode__(self): return @abc.abstractmethod def __str__(self): return @abc.abstractmethod def get_s...
[ "awesomeashley527@gmail.com" ]
awesomeashley527@gmail.com
ba04885de6ca2c1a171de58f0649c0d7f07f2428
a3e48885987e895d0d33b5dd903d51aaf4d21ce6
/duplicate_strings.py
b6413d4a9b2d69466c9d364f828210a31a44ee9a
[]
no_license
das-amrit/helper_scripts
2e17c0c585356dd6cf9bd84b5082f6a20dd815f7
fdca380e55bfaee5cf5fb3365421931513501db7
refs/heads/master
2021-03-24T04:23:54.449186
2019-02-17T06:44:45
2019-02-17T06:44:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
139
py
import itertools text = "aforapple" text_list = list(text) new_text = [k for k,g in itertools.groupby(text_list)] print("".join(new_text)
[ "noreply@github.com" ]
das-amrit.noreply@github.com
c9593dfd5fb0088ce2c4645844975fd74e3c847e
7b53e120dc4022b09eed0cf87a975482dc1d2056
/M2/utils.py
93ee422692d9b63b45deed53160a1d656ec285cf
[]
no_license
YuanKQ/DDI-VAE
878ba120c2a61e7966bf1638680c5b39a610d690
fe2c5a699e5294287c0b05b60fd037c21c7fddd1
refs/heads/master
2020-03-17T12:34:12.895257
2018-05-16T01:50:45
2018-05-16T02:11:56
133,594,155
1
0
null
null
null
null
UTF-8
Python
false
false
1,766
py
import prettytensor as pt import tensorflow as tf import numpy as np logc = np.log(2.*np.pi) c = - 0.5 * np.log(2*np.pi) def tf_normal_logpdf(x, mu, log_sigma_sq): return ( - 0.5 * logc - log_sigma_sq / 2. - tf.div( tf.square( tf.subtract( x, mu ) ), 2 * tf.exp( log_sigma_sq ) ) ) def tf_stdnormal_logpdf(x): ret...
[ "kq_yuan@outlook.com" ]
kq_yuan@outlook.com
30049a45def159f6d425e056ab47ba6b13055d72
3fdf83182664bf1c5c8c5b91186ed1a476cdcae7
/manage.py
b82fa89d927388c22b2efe834deb746bcbac493a
[]
no_license
gauravdhingra99/Webkiosk-online-Student-portal-
7a3d47e1bd0e05d1a853685a66e28627ae04eef3
fa1369e0e616b6688f9f906fd0c5ea42efa06368
refs/heads/master
2020-04-06T19:46:05.882112
2019-02-27T16:30:13
2019-02-27T16:30:13
157,748,816
3
1
null
null
null
null
UTF-8
Python
false
false
540
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "webkiosk.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are...
[ "gauravdhingra9999@gmail.com" ]
gauravdhingra9999@gmail.com
55936ee6e0c535be6c763d5bbe570c3d5d24d065
5c7deaef83574a53416681063827cdbcb3004b7c
/PyGameMultiAgent/gameclient.py
3dc5ddca4fd9eafea0898bdf3db2f38152da05a0
[]
no_license
guotata1996/baselines
ba53ed2bb3d8015551f8e46dd8398a21b638ea80
d7e2bee2ce1d98e5f2c511d6ede4e627e1112ad6
refs/heads/master
2020-06-22T00:00:09.431445
2019-08-07T03:22:39
2019-08-07T03:22:39
138,416,090
0
0
null
null
null
null
UTF-8
Python
false
false
3,635
py
import pygame import pygame.locals import socket import select import random import numpy as np from baselines.PyGameMultiAgent.staticworld import StaticWorld class GameClient(object): def __init__(self, addr="127.0.0.1", serverport=9009): self.clientport = random.randrange(8000, 8999) self.conn =...
[ "jg4006@columbia.edu" ]
jg4006@columbia.edu
fcf325192bb689fddfa24f58302b76220e0f8f1b
9708ad482f925fb5a57df285b478602ad2749196
/lib.py
af36fdf38a4f7b1c906176f91a90afb6c6a5b74c
[]
no_license
cczeus/project-euler
580b6e559da23554aaab06b82b671ebbf382c26c
57970c2f0a2b64c5e444050bb437ba3b3620bff1
refs/heads/master
2022-06-02T23:25:47.280066
2022-05-19T23:30:41
2022-05-19T23:30:41
68,892,531
0
1
null
null
null
null
UTF-8
Python
false
false
709
py
import math def isPrime(num): if num == 2: return True elif num % 2 == 0: return False elif num < 0: return False for j in range(3, int(math.sqrt(num)) + 1, 2): if(num % j == 0): return False return True def getFactors(num): factors = [] i = 1 ...
[ "chriszuis@MacBook-Pro.local" ]
chriszuis@MacBook-Pro.local
1b20703b930ae2d775880d83cd617d40c9cdfa18
ea867a1db2b730964b471e5f198ac74988417fa5
/steemtools/helpers.py
5c4e3a5d73bff0aa5310093de2799d44d516835b
[ "MIT" ]
permissive
Denis007138/steemtools
0b58fa4bb2608c0134752b0855a36464cff9073a
c7f7ad9f482ff1b56e1218ceffbf574c95cf0c1f
refs/heads/master
2021-01-11T01:34:36.721177
2016-10-10T13:58:44
2016-10-10T13:58:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,494
py
import datetime import re import time import dateutil from dateutil import parser from funcy import contextmanager, decorator from werkzeug.contrib.cache import SimpleCache @contextmanager def timeit(): t1 = time.time() yield print("Time Elapsed: %.2f" % (time.time() - t1)) @decorator def simple_cache...
[ "_@furion.me" ]
_@furion.me
47220864385f35b099736c3ef297a7ae7f1cbe54
ca08100b33a78c01bf49f097f4e80ed10e4ee9ad
/intrepidboats/apps/owners_portal/utils.py
605fe7065629b6a2f9983f3de5ed580162b6c11a
[]
no_license
elite0401/intrepidpowerboats
347eae14b584d1be9a61ca14c014135ab0d14ad0
d2a475b60d17aa078bf0feb5e0298c927e7362e7
refs/heads/master
2021-09-11T01:51:47.615117
2018-04-06T02:20:02
2018-04-06T02:20:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,654
py
from django.conf import settings from django.contrib.sites.models import Site from django.core.mail import send_mail from django.template.loader import render_to_string from django.urls import reverse from django.utils.translation import gettext as _ def send_report_email(user_boat): context = { 'user': u...
[ "elite.wisdom@gmx.com" ]
elite.wisdom@gmx.com
2b21f9bf32ec2ff92c015f407d8cc4df35ebc205
693431e2be60ac6f9d59996589c7023408537603
/talk/metrics_publisher/publisher.py
0855e20eee392393c3d46d0806aa5e8dfda83fa9
[]
no_license
rapyuta-robotics/io_tutorials
deb547590a4519f19923dc9593399cae2e2d6683
88cf45629e4c02dff385048ece4b2b344a6100a3
refs/heads/master
2023-05-27T15:46:33.673684
2023-02-22T08:52:32
2023-02-22T08:52:32
118,696,902
7
24
null
2023-05-23T03:37:59
2018-01-24T02:00:39
CMake
UTF-8
Python
false
false
1,629
py
#!/usr/bin/env python import random import rospy from std_msgs.msg import String from ros_monitoring_msgs.msg import MetricList, MetricData, MetricDimension def get_metric_list(cycle, count): robot_dimensions = [ MetricDimension(name='cycle', value='cycle' + str(cycle)), MetricDimension(name='r...
[ "noreply@github.com" ]
rapyuta-robotics.noreply@github.com
e924e94bc28ebc9f1f2c03016db85c413511282e
965ec7b89c996c51579561e944be93f054f94301
/test1.py
dc6a774ac0e491436d86533342ea435beb02201e
[ "MIT" ]
permissive
nayunhwan/SMaSH_Python
e26b20def4d6ca3ed042087a218150db6bac9d9a
6e80520f43f6e014be2abc40d6f51f76338e3ff8
refs/heads/master
2018-12-27T11:51:39.860739
2018-10-24T06:55:32
2018-10-24T06:55:32
34,496,868
0
0
null
null
null
null
UTF-8
Python
false
false
269
py
#-*- coding: utf-8 -*- # 예제 ex_A.py unit_price = input("사과 1개의 가격은 얼마입니까? ") apple_count = input("사과의 개수는 모두 몇 개 입니까? ") price = apple_count * unit_price print "전체 사과의 가격은 ", price, "원 입니다."
[ "kbk9288@gmail.com" ]
kbk9288@gmail.com
be1ca56a4c8e33d679fe761dc4faa412b354bfa3
61e68e3a4d6cc841da4350dc193315822ca4e354
/lecture/4_정렬/4_퀵정렬.py
45420f20a5eaaae9aafb31ff3bea12843c0068c4
[]
no_license
sswwd95/Algorithm
34360cd333019d6ded60f967c19aa70f1655e12a
a70bdf02580a39b9a5c282a04b0b2f8c2cb41636
refs/heads/master
2023-04-16T21:05:07.293929
2021-05-08T10:58:05
2021-05-08T10:58:05
362,651,885
0
0
null
null
null
null
UTF-8
Python
false
false
1,091
py
array = [5, 7, 9, 0, 3, 1, 6, 2, 4, 8] def quick_sort(array, start, end): if start >= end: # 원소가 1개인 경우 종료 return pivot = start # 피벗은 첫 번째 원소 left = start + 1 right = end while(left <= right): # 피벗보다 큰 데이터를 찾을 때까지 반복 while(left <= end and array[left] <= array[pivot]): ...
[ "sswwd95@gmail.com" ]
sswwd95@gmail.com
02af91d9a068eb13b6123c2f26b025668f5bb79f
6eaf69ffd454ed6933e3395516246d878cb09781
/repozeldapapp/tests/functional/test_authentication.py
f998f67ccdc2ccc018c17f9cecb7cb08697d7a58
[]
no_license
ralphbean/repoze-ldap-app
0d6658ef13b153736aaed6aa07fbdcaf65cbe1d9
cc00fe59bcc286fd44d1e22a14c40cfc8419e21d
refs/heads/master
2021-01-01T05:35:25.069715
2011-07-19T15:30:31
2011-07-19T15:30:31
2,072,811
0
0
null
null
null
null
UTF-8
Python
false
false
3,583
py
# -*- coding: utf-8 -*- """ Integration tests for the :mod:`repoze.who`-powered authentication sub-system. As repoze-ldap-app grows and the authentication method changes, only these tests should be updated. """ from repozeldapapp.tests import TestController class TestAuthentication(TestController): """Tests fo...
[ "ralph.bean@gmail.com" ]
ralph.bean@gmail.com
a2de64aec718958e8d3b7c4e7137f9309a3fd152
b79042eb362a9ba284f0c518854a3b7e6ee39284
/learning_users/basic_app/forms.py
7015436716565e7010f8c6798e71463f0e946b09
[]
no_license
Austin911/django-deployment-example
2dc2e7d8b777928b7fd6d631978581fff54aa9d6
eded8b839224b7202902f61a35f058693242ac55
refs/heads/master
2020-03-11T16:24:32.888430
2018-04-19T01:08:00
2018-04-19T01:08:00
130,115,703
0
0
null
null
null
null
UTF-8
Python
false
false
442
py
from django import forms from django.contrib.auth.models import User from basic_app.models import UserProfileInfo class UserForm(forms.ModelForm): password = forms.CharField(widget= forms.PasswordInput()) class Meta(): model= User fields = ('username','email','password') class UserProfileInfo...
[ "austin88yang@gmail.com" ]
austin88yang@gmail.com
6c298475750028ddc507024c20d0d2fb7fe96055
c3e2fd391265f13e9104e2d441d4b046e1b892b5
/Pattern_TD_Trap.py
d0ce2792f0af14cb63f1c9dd57b1ae33cc87077a
[]
no_license
jamesliu1/The-Book-of-Trading-Strategies
262f0824ca3b6ba34daea63fba80bca6492c4a6e
11ecc59db0e0d6ff5ec0685bb6d3dcd26780cacf
refs/heads/main
2023-08-23T15:28:38.112508
2021-10-19T13:28:19
2021-10-19T13:28:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,246
py
# Base parameters expected_cost = 0.5 * (lot / 10000) assets = asset_list(1) window = 1000 # Trading parameters horizon = 'H1' # Mass imports my_data = mass_import(0, horizon) def signal(Data): # Adding columns # Bullish signal for i in range(len(Da...
[ "noreply@github.com" ]
jamesliu1.noreply@github.com
b8d49ed51407d17cd6270de28b88938cd694fa87
49f875de9e18812b25ead4cd15a562e9f1347256
/selection_sort.py
357b07b8ad678f0c637fe113b98915da400095ef
[]
no_license
brandontarney/ds_algo_review
020499e7e81435b2475fd50acc717f3093fc0f7f
cabd42f01bd8f027db0d0e3de870263adbf9327a
refs/heads/master
2020-06-23T16:30:50.564707
2019-09-09T01:02:17
2019-09-09T01:02:17
198,680,204
0
0
null
null
null
null
UTF-8
Python
false
false
848
py
#!/bin/python #NOTE - this is pseudocode, not real python code #Algorithm #Create sorted sublist (usually in the front of the list) #Find the next smallest value and swap it into front position of a sorted sublist #NOTE this is effectively iterating (inner loop) over the unsorted list vs. selection sort iterating...
[ "brandon.tarney@gmail.com" ]
brandon.tarney@gmail.com
9994c856f9f6988cd9021ad10b5aef5d6047c41c
09e0940849ba15a2179b4418057aac28aac81bac
/app/doyin.py
97041f90e5e2688edc51ac2ae0f95cabb6dc9784
[ "MIT" ]
permissive
tqdonkey/app-bot
75886957114840877adf473e99cf05dcf424f2f5
df01784b3f2875facfe1e79d4614a906dc8e7a7b
refs/heads/master
2022-02-28T22:46:52.418077
2019-08-20T12:28:59
2019-08-20T12:28:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,215
py
# -*- coding: utf-8 -*- ''' create by: 小宝 mail: 1435682155@qq.com create date: 2019.8.11 Purpose: hehe Desc:just do it~ ''' import sys import time import os import shutil sys.path.append('./app') from common.app import app from common import config from common import screenshot from common import comm...
[ "root@lbp.localdomain" ]
root@lbp.localdomain
dd203b86fd8abbb163bbe54b4e921223fe92e53f
1ed65a23ea5d9a135096bc55ea9df9b96625d909
/core/migrations/0030_userprofile_is_active.py
905bbf27e4e80966ed1aa6b9747b3c4b8caca345
[]
no_license
nfishel48/simntx
367b8323e6b4f433912eb687888a456e0959c228
0dc7f6c41adff1c21a52aca6e2712e7fcb3e9a48
refs/heads/master
2022-12-31T02:22:28.344922
2020-10-16T02:21:23
2020-10-16T02:21:23
271,566,126
0
0
null
null
null
null
UTF-8
Python
false
false
390
py
# Generated by Django 2.2 on 2020-06-25 03:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0029_auto_20200624_2234'), ] operations = [ migrations.AddField( model_name='userprofile', name='is_active', ...
[ "nfishel@emich.edu" ]
nfishel@emich.edu
ffc5de43ef8bdec5bcaa803f057de2f9ed1be0f1
85be26cd8c2ee8afb3d7ce2495f320e81cb7582f
/pylearn2/minimun_sample/minimum_test.py
920a1de30bcb8c568241463c2154706aff0468da
[]
no_license
basharbme/deeplearning4windows
368f9faf5902d943bad053de62dcc6860d20ae79
20fea62a2f17ba142e68a349d1cffa582eb6312a
refs/heads/master
2020-05-24T05:31:28.835187
2016-02-03T10:13:04
2016-02-03T10:13:04
187,117,816
1
0
null
2019-05-17T00:09:27
2019-05-17T00:09:26
null
UTF-8
Python
false
false
1,482
py
# coding: UTF-8 import os,codecs,platform from pylearn2.config import yaml_parse from pylearn2.scripts.train import train import numpy as np from pylearn2.utils import serial os.environ["PYLEARN2_DATA_PATH"] = os.path.dirname(os.getcwd()) if platform.system() == "Windows": os.environ['THEANO_FLAGS'] = "floatX=fl...
[ "jgpuauno@gmail.com" ]
jgpuauno@gmail.com
b1c1eca6d9cd2f7761661a9abe7a38a71c3ffc06
baec3aca9482e90605ac4e4ecee52b3d6eb44f1f
/21/d21.py
3cc7219aec0f5c0137007760f688852551e5a018
[]
no_license
grvn/aoc2017
9390d89dbcda7a10352ad65dae71eeec51c930ea
48d380d8ff7000d38fdba9fb93bcfa99c1f0c447
refs/heads/master
2021-10-08T06:06:35.298716
2018-12-08T18:52:36
2018-12-08T18:52:36
112,791,442
0
0
null
null
null
null
UTF-8
Python
false
false
1,623
py
#!/usr/bin/env python3 from sys import argv filename=argv[1] iterations=int(argv[2]) rules={} start=((".", "#", "."), (".", ".", "#"), ("#", "#", "#")) def rotate(sqgr): return tuple(tuple(x) for x in zip(*sqgr[::-1])) with open(filename) as f: input = f.readlines() input = [line.strip() for line in in...
[ "rickard" ]
rickard