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
618421f2c2ca41e846e9a550696550ebdaf5f9b0
05d04370e2547aba75c5a6ddfab52ee66a4421ce
/ccpweb/ccpweb/views.py
35e5668861f40f36e8c3866e01adb1ef928d98ee
[ "BSD-3-Clause" ]
permissive
story645/ccp-viz-toolkit
4488404518dee1b4dc0cb33ac51c19aa15ee3156
cd75f674d7b17a2bba8ed4bffb6853fae94885c5
refs/heads/master
2020-05-19T09:20:37.152986
2015-03-26T16:32:14
2015-03-26T16:32:14
32,113,131
1
0
null
null
null
null
UTF-8
Python
false
false
3,425
py
#!/usr/bin/env python # # views.py # # Hannah Aizenman, 2011-08 # # http://www.opensource.org/licenses/bsd-license.php """Views (web pages) served by ccpweb. """ __docformat__ = "restructuredtext" # http://docs.python.org/library/os.html import os # https://docs.pylonsproject.org/projects/pyramid/1.0/api/response.h...
[ "story645@gmail.com" ]
story645@gmail.com
aa5a47cef1ff7e66f6dc3832cbb11801660d4db4
3e3d49eb90e7f2d69007c047fce5d399c1b3f290
/timing_inv_scipy_false_double.py
9ee1999e0ba4e72a20338343114c78934643c0ff
[]
no_license
paulavillalobosb/MCOC2021-P0
4a246ee0a950966cd8813e3618f1ea7d9f37f1fc
3f95a52fe06f4cef2f8bd869dc53547081a99c31
refs/heads/main
2023-08-14T06:47:26.942540
2021-09-04T03:16:03
2021-09-04T03:16:03
393,170,255
0
0
null
2021-08-05T21:05:00
2021-08-05T21:04:59
null
UTF-8
Python
false
false
1,042
py
from time import perf_counter from numpy import zeros from numpy import half, single, double, longdouble from scipy.linalg import inv from laplaciana import laplaciana Ns = [1, 5, 10, 15, 20, 30, 40, 50, 60, 70, 80, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000, 2000, 3000, 4000, 5000] dts_inv = [] mems = [] corr...
[ "noreply@github.com" ]
paulavillalobosb.noreply@github.com
9fe1ed6f574a42544e5e006c9a68e4d65d323276
0861a97ef4d89614c5a581eefc00e355d4c1e454
/data_transformation.py
04d2ff162fdcdae695fe691a4d851bdb9a6a478f
[]
no_license
befitz/ISOM837_AnalyticsStoryTelling
c3c917764e4d7f89330c374e8dbe062a86e59f37
b13708c46b8c068f1da66fe64d56d0b9ee54fe5f
refs/heads/main
2023-09-03T06:06:51.653802
2021-11-17T02:56:04
2021-11-17T02:56:04
425,417,809
0
0
null
null
null
null
UTF-8
Python
false
false
2,473
py
from fred_data_extract import build_seperations_table import pandas as pd import numpy as np def create_transformed_table(table_raw): """ Function to transform the variables which improve skewness args: table_raw (pd.DataFrame) returns: table_transformed (pd.DataFrame) """ table_transformed = pd.DataFrame...
[ "brynnefitzgerald@gmail.com" ]
brynnefitzgerald@gmail.com
4b99c672e34294a5f110b6531518b6d7056de15a
1be2cbc9fd62cf77cc05a64807acf7d857b84eee
/blackopt/config.py
a2114330cc418e849f46670ef206413bcc1d54b6
[]
no_license
ikamensh/blackopt
4fdce2c0147b1a5a85024c9b59925d3d1a35b13f
a6ab24ce1be21a5ca9e26d0bb1f59bb50fd007a2
refs/heads/master
2023-01-23T12:55:42.087216
2020-12-05T19:18:30
2020-12-05T19:18:30
178,232,685
0
0
null
2020-10-18T20:57:29
2019-03-28T15:33:53
Python
UTF-8
Python
false
false
382
py
import os default_workspace = "_blackopt_workspace" _rootdir = default_workspace def set_rootdir(path): path = os.path.expanduser(path) global _rootdir _rootdir = path def prepend_rootdir(prefix): prefix = os.path.expanduser(prefix) path = os.path.join(prefix, default_workspace) global _rootd...
[ "ikkamens@amazon.com" ]
ikkamens@amazon.com
fd955ae2db91bc85be3d90b6dca3e3008638e687
916aca4052eeb9f04bca9082c95b8121d9854b4c
/codility/Iterations/binarygap/BinaryGap.py
bc3ad55f522d643d056cc7c9ccb10f9eb4778a73
[]
no_license
sirbega/ikre
db15fc8e06fe66e1bc0d8d3cfb3b47a29d960666
3372928b1ac1fcb7e6643ccd709b6d306e1383de
refs/heads/master
2020-05-31T12:44:28.931216
2019-11-28T18:32:43
2019-11-28T18:32:43
94,031,020
0
0
null
null
null
null
UTF-8
Python
false
false
753
py
#!/usr/bin/env python3 """Return the binary representation of the input integer.""" def solution(N): """Return the longest binary gap of the input integer.""" mod = "" bi = "" num = N while num > 0: tmp = num % 2 mod = str(tmp) bi = mod + bi num = num // 2 broj ...
[ "sirbega@gmail.com" ]
sirbega@gmail.com
ba0d04740f9c5e84c0b1e7a8614b8ae861af8c7b
8b36dacd454c99b6d742bff0aceca7983e9e2f5d
/myportfolio/urls.py
7ff088260a8fa45764610d9672a09d429dd7cd59
[]
no_license
netteNz/nettenz-portfolio
ec3afa3b170665961c58cfc0d6af2485c22a68b8
ea95d7a1f99f54ceceb4d470de854c06483eaecd
refs/heads/master
2021-09-23T09:30:24.491470
2020-05-21T03:01:10
2020-05-21T03:01:10
251,180,385
1
0
null
2021-09-22T18:49:01
2020-03-30T02:21:47
JavaScript
UTF-8
Python
false
false
251
py
from django.contrib import admin from django.urls import path, include from blog.views import BlogView, ContentView urlpatterns = [ path('admin/', admin.site.urls), path('', BlogView.as_view()), path('content/', ContentView.as_view()) ]
[ "lugo.emanuel@gmail.com" ]
lugo.emanuel@gmail.com
d24e4f1aa4d8188ac9c432b29ddf64d3c59c0c73
ee7a2e1b18c870cb13840fc0d47f217050bac3fe
/bnbvolunteer/volunteers/migrations/0016_auto_20150116_1722.py
8a5ab1823a968332dc038b17877768849e5edb2f
[ "MIT" ]
permissive
lfzhangMIT/bnb
92344d50599fe915915d63ee3f1c11677f0a4416
15ea0170f6c495e9f455b2f380b4eb40d466968e
refs/heads/master
2021-05-28T09:20:28.723664
2015-01-29T19:08:25
2015-01-29T19:08:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
824
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('volunteers', '0015_auto_20150115_1631'), ...
[ "lfzhang@mit.edu" ]
lfzhang@mit.edu
c8a0aef9d6c8d9789721dd16c42b8132ae7309e8
e9daa35941efb7e1cab3cfee788110bd66d088cc
/dataset.py
2b6e6bddf516cfc1d347ce1f219c30103158dffe
[]
no_license
Souli-prgms/Bengali
5763d48861eeb0606105f6345e56b08cef60612d
33de884a7b32de202ebd2627c29a8d50dc9ea54a
refs/heads/master
2020-12-26T18:33:00.407173
2020-02-01T11:19:44
2020-02-01T11:19:44
237,598,607
0
0
null
null
null
null
UTF-8
Python
false
false
1,828
py
import os import torch import pandas as pd from torch.utils.data import Dataset, DataLoader import pickle import constants class BengaliDataset(Dataset): def __init__(self, label_file, index): self.label_file = label_file self.labels = self.retrieve_labels() self.images = Non...
[ "soulignach@gmail.com" ]
soulignach@gmail.com
3cc86621a38c55c60af190e6064d74da255a9e2b
14d8adc86adc14c1d64a5550b1bbd5663e984545
/combination_sum_ii.py
97ed76da8e3052e379884a175fa1c814d6591641
[]
no_license
milllu/leetcode
e1b68ef7774cc0c1b49325ec1b87280d27570d94
458b3e72cd82a203b10bdca747c4c3ba85708f75
refs/heads/master
2020-03-30T23:41:46.180308
2018-10-11T01:08:31
2018-10-11T01:08:31
151,709,941
0
0
null
null
null
null
UTF-8
Python
false
false
1,375
py
""" 给定一个数组 candidates 和一个目标数 target ,找出 candidates 中所有可以使数字和为 target 的组合。 candidates 中的每个数字在每个组合中只能使用一次。 说明: 所有数字(包括目标数)都是正整数。 解集不能包含重复的组合。 示例 1: 输入: candidates = [10,1,2,7,6,1,5], target = 8, 所求解集为: [ [1, 7], [1, 2, 5], [2, 6], [1, 1, 6] ] 示例 2: 输入: candidates = [2,5,2,1,2], target = 5, 所求解集为: [ [1,2,2...
[ "3351440959@qq.com" ]
3351440959@qq.com
c98d6c778d6329030608bdebead5f8f1899b0e82
3b0e5028888bbed694dd33e2fed89f594d5f11e4
/vscode/extensions/donjayamanne.python-0.5.8/pythonFiles/completion.py
6b8484b0cf0f6c39df45f0ea3f90114cc110afb0
[ "MIT" ]
permissive
gustavosoares/dotfiles
670cb6c89117fd69f4eb2fca6859029dda7da1c2
c2eb5332711819a52fa22878e7f5cd2fb79e3633
refs/heads/master
2022-05-03T06:04:01.726283
2019-06-14T18:44:04
2019-06-14T18:44:04
67,193,472
1
0
null
2022-04-22T20:44:35
2016-09-02T05:41:06
Python
UTF-8
Python
false
false
20,922
py
import os import io import re import sys import json import traceback WORD_RE = re.compile(r'\w') class JediCompletion(object): basic_types = { 'module': 'import', 'instance': 'variable', 'statement': 'value', 'param': 'variable', } def __init__(self): self.defaul...
[ "gustavosoares@gmail.com" ]
gustavosoares@gmail.com
327c77ed90386f136794d5cc8bff500841a33e77
b797527c6f73940ca689c54cd39ee340bd20bb94
/venv/Scripts/pip3.7-script.py
5fe98e8c50a2b3fbec83993a42c23db079181f91
[]
no_license
xiaohanZhang1993/Alien
cda241b1fa20c402c473adc07509bbc5366b9f3f
56708730a5575f22c6c35869b8ada18a10245c49
refs/heads/master
2022-09-04T01:00:03.615416
2020-05-28T08:57:39
2020-05-28T08:57:39
267,540,927
0
0
null
null
null
null
UTF-8
Python
false
false
402
py
#!D:\zxhDemo\PyDemo\Alien\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.e...
[ "15901192657@163.com" ]
15901192657@163.com
765285890e983bd8e8cc25a9fff7a46290138ba2
2b84403b0dd9a0a5ffc13e868280af16964de03b
/assg.py
e83ceeb2553e6cb5efd7cc8375fd206f64b29035
[]
no_license
akhil8031/Python-Basics
6de2f93d85b67095f32526c7ceb46c03588f390e
52a8eb64a5e6ddcc12a7ed36103495ef5e2f3894
refs/heads/master
2021-01-19T03:52:26.659429
2017-04-05T17:55:51
2017-04-05T17:55:51
87,339,929
0
0
null
null
null
null
UTF-8
Python
false
false
305
py
import urllib from BeautifulSoup import * url=raw_input('Enter url-') c=raw_input('Count : ') count=int(c) p=raw_input('pos : ') pos=int(p) i=1 print url while i<=count: html = urllib.urlopen(url).read() soup = BeautifulSoup(html) tags = soup('a') url=tags[pos-1].get('href',None) print url i=i+1
[ "akhil_jain96@ymail.com" ]
akhil_jain96@ymail.com
aace7c3ac8ae4dfbaf9a425ce523bb342eaafc68
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/pg_2204+034/sdB_pg_2204+034_coadd.py
1d84ed11150bebd234261af2a75e6b07e15f708b
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
UTF-8
Python
false
false
429
py
from gPhoton.gMap import gMap def main(): gMap(band="NUV", skypos=[331.818708,3.705497], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_pg_2204+034/sdB_pg_2204+034_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdB/sdB_...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
5b790c05efde005633fb1c19cb300766e68666b7
f5439c1a7a15c4eb709da6f32eb252679a1d44bd
/preprocessing/kmeans.py
6717fa4ba4ccf1d88609971f2dbf28a8e0289d70
[]
no_license
Veranep/rideshare-replication
fa8b0c6535fb864d4597d01603e9391269361b87
2c6cd7d2aa26402445a6f306c0244018f36682b0
refs/heads/master
2022-05-21T10:01:53.750758
2022-04-28T10:53:35
2022-04-28T10:53:35
443,341,991
0
0
null
2022-04-28T10:53:37
2021-12-31T12:35:20
Jupyter Notebook
UTF-8
Python
false
false
565
py
import pickle from sklearn.cluster import KMeans def write_kmeans(): zone_lat_long = open("../data/paper_replication/zone_latlong.csv").read().split("\n") d = {} coords = [] for i in zone_lat_long: if i!='': a,b,c = i.split(",") d[a] = (float(b),float(c)) co...
[ "veraneplenbroek@icloud.com" ]
veraneplenbroek@icloud.com
c0bdac944aed5cb00d3ab2541709a23fecbc22e3
50948d4cb10dcb1cc9bc0355918478fb2841322a
/azure-mgmt-network/azure/mgmt/network/v2018_11_01/models/application_gateway_rewrite_rule_set.py
bf4a4ba184e7533ad006b1884070f8b6fb8071ac
[ "MIT" ]
permissive
xiafu-msft/azure-sdk-for-python
de9cd680b39962702b629a8e94726bb4ab261594
4d9560cfd519ee60667f3cc2f5295a58c18625db
refs/heads/master
2023-08-12T20:36:24.284497
2019-05-22T00:55:16
2019-05-22T00:55:16
187,986,993
1
0
MIT
2020-10-02T01:17:02
2019-05-22T07:33:46
Python
UTF-8
Python
false
false
2,111
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
4a023c9917b1ece7ff0f3b855279ef7f22908d65
3edfb949e51ca489d4d18baa60dde4c3cbeaa14a
/TextProcessing10.py
6e38e4ecb36822d4769a04d8befe78b7f0a679a5
[]
no_license
BartKlak/Python_TextProcessing
f0d5083f3c9a75b9860a016c269db380919930b3
2293bdedfbe231e06aa0968297419445e3867e9e
refs/heads/main
2022-12-28T03:22:02.792036
2020-10-15T13:28:00
2020-10-15T13:28:00
304,333,092
0
0
null
null
null
null
UTF-8
Python
false
false
722
py
#coding: utf-8 import sys, codecs def palindrome_j(text): text = text.decode('utf-8') final_text = "" c = False if text.endswith(u'。') or text.endswith(u'?') or text.endswith(u'!'): if text.endswith(u'。'): b = u'。' c = True elif text.endswith(u'?'): b...
[ "noreply@github.com" ]
BartKlak.noreply@github.com
680b6a92527d1990409c17c06dc480420d55e2ce
ac8af2ee72e946de29e18a24a30aa0a3c0d9ac25
/Image/EncoderDecoderImage.py
34c200412b9e67cd4faa93167ceb0c32e44dee3f
[]
no_license
SaraHisham/NeuralNetwork-Based-Generic-Compression
668c33ee18cf437cf7485ab94a94757271eb069f
b3a5c2575f7ef005979535557c8cf5ab1b8861ae
refs/heads/master
2022-06-07T18:58:19.275782
2020-05-05T22:51:43
2020-05-05T22:51:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,714
py
import tensorflow as tf import cv2 import numpy as np import matplotlib.pyplot as plt import math from PIL import Image def encode_image(in_file, out_file): # Load the trained model loaded_model = tf.keras.models.load_model('image_autoencoder.h5') # Encoder Model encoder = tf.keras.Model(loaded_model....
[ "noreply@github.com" ]
SaraHisham.noreply@github.com
75adb90a03bc1dd4b3be5b75369e93d8a907d7a6
97c330276400e6bbf28f2e290232737e38da08cb
/ok/client/models/concept_case.py
d640c795374fff81a6ffec659a335941ce7834b0
[]
no_license
dudduss/Ants
5e70818a8c5a17ee71e98db5c1f2312d3b9cdc5e
4d64c1e450fc0aee7d82fd43fd1c1251573e984a
refs/heads/master
2021-01-10T21:04:01.132400
2014-12-29T22:11:01
2014-12-29T22:11:01
28,608,245
2
0
null
null
null
null
UTF-8
Python
false
false
2,132
py
"""TestCase for conceptual tests. ConceptTestCases are designed to be natural language tests that help students understand high-level understanding. As such, these test cases focus mainly on unlocking. When used in the grading protocol, ConceptTestCases simply display the answer if already unlocked. """ from client.m...
[ "duddus@berkeley.edu" ]
duddus@berkeley.edu
f628da0c9740b5ad71322a330b762fa7226e6c0b
564efe38e9e6f2d21f0dcd7ee87c7dc4feeccf5a
/05-Lists/112-remove-outliers.py
30234d16ddf7bf3ce30e5cd31ab2c02b9f35d071
[]
no_license
khalid-hussain/python-workbook
79210ffa920a5ef2c44f00e9a806bdfe0bfa8e6f
eac2b2678530fec76a14805aeb5c9ff3ea02da5d
refs/heads/master
2020-09-12T23:15:10.381083
2020-08-25T10:42:59
2020-08-25T10:42:59
222,589,124
0
0
null
null
null
null
UTF-8
Python
false
false
614
py
def removeOutliers(theList, n): theList.sort() for i in range(n): theList.pop() theList.reverse() for i in range(n): theList.pop() def main(): theCount = 0 myList = [] while True: theInt = input('Input an integer (blank to quit): ') if theInt == '': ...
[ "mohammad.khalid.hussain@gmail.com" ]
mohammad.khalid.hussain@gmail.com
2fcd7e6b876d749e2093d3fd619eeecf1d36ff0d
8e814a581f30bd4536460b468cfc689f893a6122
/run.py
1092d58483c4ccbfd76e9d549ee4d9f06711c31c
[]
no_license
oopaze/palapas_bot
f4ba7e39b2749a84607b8114f4179cea113e283d
f3745abe1ea0fd4acb47b7aa53a4e54b88a43269
refs/heads/main
2023-07-22T02:14:22.151484
2021-09-04T19:33:23
2021-09-04T19:33:23
399,289,028
1
0
null
null
null
null
UTF-8
Python
false
false
70
py
import os import app if __name__ == '__main__': bot = app.run()
[ "jgomes@geobit.com.br" ]
jgomes@geobit.com.br
6b5e099ccb9a5b1a542954e0ee18584f02edbe2a
5fde19b9fd338a59607135401d80c7894688b5c5
/modules/topic_modeling.py
f97bf7b34d1c3605c6f5322710f7f9222c539461
[]
no_license
mdahwireng/Corona-virus-tweet-analysis
86e07585ad432e306a2477ae062d7b55a260a021
6a75ff86ad40cc338b5102385ecca1fe8365fad8
refs/heads/master
2023-06-09T08:16:18.461046
2021-06-30T19:40:11
2021-06-30T19:40:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,685
py
from gensim import corpora from gensim.models import ldamodel, CoherenceModel from gensim.parsing.preprocessing import remove_stopwords import pyLDAvis.gensim_models as gensimvis import pyLDAvis class TweetDFTopicModeling: """ this function will create topic modeling model parsed data for modeling Ret...
[ "kaaymike@hotmail.co.uk" ]
kaaymike@hotmail.co.uk
a21618f0ce0aa6432175d36b0042e7df8e21bb69
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/prime-big-291.py
dac9afb7dc0a8d107113bc4bc06e8af627553a69
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
1,479
py
# Get the n-th prime starting from 2 def get_prime(n:int) -> int: candidate:int = 2 found:int = 0 while True: if is_prime(candidate): found = found + 1 if found == n: return candidate candidate = candidate + 1 return 0 # Never happens def is_prime...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
439f5f98233e4a3cae705adbae6d64ead367bd92
58d5b73c0b7d29da81be6aaacfd995762c2e8a4e
/Exercício63.py
3874d0d94f9c7f0963c164c3358e776e61912422
[]
no_license
DevRaphael7/exercercios-Python
92d40076c9364159939bd0db8a49125bec757591
ecfe3e469ee8d2dbae8c7cfa921c3a78e4f91996
refs/heads/master
2023-03-29T12:09:00.692504
2021-04-06T19:36:09
2021-04-06T19:36:09
354,956,754
0
0
null
null
null
null
UTF-8
Python
false
false
534
py
salario = float(input('Salario do funcionário: ')) if salario < 500: novo_salario = (salario * 0.05) + salario elif salario >= 500 or salario < 1200: novo_salario = (salario * 0.12) + salario if salario < 600: aux_escolar = 150 print('Auxílio escolar: %.2f R$' % aux_escolar) novo_salario += aux_escolar elif ...
[ "raphaelramalho1989@gmail.com" ]
raphaelramalho1989@gmail.com
731068a69d0161d159f5927e1f21c41ba145374c
5782615a0c591a68ec416c32b5de84cd7d821f86
/regex.py
3a576936269a30dd67e581b2650c4ae1ea1c8ddf
[ "Apache-2.0" ]
permissive
richardcardona/learnpython-exercises
2d8c6d99cc9bb43d43357999bcb9d7d37d6d0e8e
7941b2a6e9110e4ce54e576477c35ec524f5a676
refs/heads/master
2016-09-06T21:21:39.173502
2013-12-23T04:38:50
2013-12-23T04:38:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
806
py
#!/usr/bin/env python # Example import re pattern = re.compile(r"\[(on|off)\]") # Slight optimization re.search(pattern, "Mono: Playback 65 [75%] [-16.50dB] [on]") # Returns a Match object! re.search(pattern, "Nada...:-(") # Doesn't return anything. # End Example # Exercise: make a regular expression that will match ...
[ "rcardona@zenoss.com" ]
rcardona@zenoss.com
ccc52c7268b209204e24e471f4f03112e1051a6d
78fda3f59f3e74ad638f50320fbd17dce0daaa9f
/PcHome.py
621be741a0f4ad6af3d936c9900881731524b835
[]
no_license
Pika0908/getTitle
48979584d38f9873b0f748c930f87784ae3964ec
693daa12aa1bef1b08a7c44f5d109607534b49ba
refs/heads/master
2020-05-09T04:17:26.894916
2019-04-12T10:16:50
2019-04-12T10:16:50
180,983,977
0
0
null
null
null
null
UTF-8
Python
false
false
811
py
import requests from lxml import etree import urllib def url( word ): return urllib.parse.quote( word ) import base64 def b64( word ): b =base64.b64encode( word.encode('utf-8') ).decode( "utf-8" ) return b class Craw(): def __init__(self, keyword ): self.keyword = keyword def getTitle( s...
[ "noreply@github.com" ]
Pika0908.noreply@github.com
4d64441abe0869be9f47a8f134236aca6d023928
9f5c33c8fe13682c0212046f376ed7585a99fff9
/venv/Scripts/pwiz.py
ab80f14785575ce67dd32af16b2fbc73339dd790
[]
no_license
ajsmash7/Lab4part2
a421ca77a401cdd6b69d7427cfcfbe44ac0bc852
016dc6ff7f32504aa54c0da721303ee2c2fbb894
refs/heads/master
2020-05-03T12:57:31.400564
2019-03-31T04:03:23
2019-03-31T04:03:23
178,640,582
0
0
null
null
null
null
UTF-8
Python
false
false
7,123
py
#!C:\Users\Ashley Johnson\PycharmProjects\Lab4part2\venv\Scripts\python.exe import datetime import sys from getpass import getpass from optparse import OptionParser from peewee import * from peewee import print_ from peewee import __version__ as peewee_version from playhouse.reflection import * TEMPLATE = """from pe...
[ "wt6268bu@go.minneapolis.edu" ]
wt6268bu@go.minneapolis.edu
0d5fa245a529ddeeda28d724b8adc4bcffa098d1
efd2ec91bb1861f571a9ac6a663b72203eeaf8c1
/env/lib/python3.6/tempfile.py
e5f4dd3d9c1adb7fde84d96552564a983ab0c6e4
[]
no_license
bopopescu/DjangoFirst
de2cfdf6dcf9d72e211b3374865f4b38dd2465df
d2776f44d15024d6ed03d184e27269dff0c53d2a
refs/heads/master
2021-10-28T08:48:15.508077
2019-04-23T06:29:28
2019-04-23T06:29:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
47
py
/home/satish/anaconda/lib/python3.6/tempfile.py
[ "satish.kumar@egovernments.org" ]
satish.kumar@egovernments.org
4510030ace0a00577d04e5e396c4983e2c081ec9
5143d1523f4d97162e053a5ec3bd9b27f984e8ff
/adding.py
5bd494a5ec79393e15bda2833b7546271d4fcf82
[]
no_license
Crolabear/record1
674c61f59146383ae3eba07a574373ff1874e69a
179409b1ada938d59334f61fafe4af9287169599
refs/heads/master
2021-01-10T18:19:24.374436
2016-04-06T03:36:50
2016-04-06T03:36:50
44,950,104
1
0
null
null
null
null
UTF-8
Python
false
false
1,744
py
# the goal of this is to find different ways to add some integers to a specified number within a fix number of operation def checkDuplicateElements(list1): l2 = [] a=len(list1) for k in range(a): for item in list1: if list1[k] return 1 # not done yet def pairWiseSum(l11,l22): ...
[ "crolabear@gmail.com" ]
crolabear@gmail.com
c61d44bcc8be1346b3b1a8bb2742d5847838cc8a
2b115f9c5929fedd06d4dd6969100ab2df484adf
/messenger/urls.py
9903187e19c8320adcd0f81ea319f70a102f44a3
[]
no_license
sorXCode/Avina-API
0b790bfd8ac8b9c84d1db45db0819e0585d954b9
7687ba7434b77d6c33944c65fff0409459a9d5ce
refs/heads/master
2023-04-11T01:17:35.570752
2021-04-14T15:01:45
2021-04-14T15:01:45
342,429,666
0
1
null
null
null
null
UTF-8
Python
false
false
303
py
from django.urls import path from rest_framework.urlpatterns import format_suffix_patterns from .views import StartMessaging, Conversation urlpatterns = [ path('', StartMessaging.as_view()), path('<str:product_uid>', Conversation.as_view()), ] urlpatterns = format_suffix_patterns(urlpatterns)
[ "sorxcode@gmail.com" ]
sorxcode@gmail.com
938122dec190bda5aaa71ba0b043213672f7cde2
7f9bff4b21048faa813f4c67c5316e899ca5de20
/scrape.py
76723569acc6445960263fbf1ec2a51a069cdadd
[]
no_license
neilnach/DLeagueAnalysis
c0fb43dda4a29b4c9d417316653d602f942da4d8
67cb72cd5ce244c56cd7f9ad3d5b83ace498d4de
refs/heads/master
2021-01-24T04:01:53.820714
2019-01-29T22:24:06
2019-01-29T22:24:06
122,917,295
0
0
null
null
null
null
UTF-8
Python
false
false
20,515
py
import csv import requests from bs4 import BeautifulSoup #opening csv outfile = open("./D-League.csv", "w") writer = csv.writer(outfile) writer.writerow(["Player", "Split", "Team", "GP", "GS", "Min", "FGM", "FGA", "FG%", "3PM", "3PA", "3P%", "FTM", "FTA", "FT%", "ORB", "DRB", "TRB", "AST", "STL", "BLK", "PF", "TOV",...
[ "nnachnan@purdue.edu" ]
nnachnan@purdue.edu
30609fa30e639e7b15f7080d945b32a768d2b7bd
51ae7595b30725ac64f207aada4b24ee14a67c28
/django_lv2/new_populate.py
819d735af36b656f6aad8c7121152bdf085b4823
[]
no_license
aniketgarg22/django-deployment-example
0889429aefb9ef5a3bff185a2c56ffff8d745797
405aefae263f03e40f8e5ad5ccb574f04e2e3eb4
refs/heads/master
2023-01-13T08:50:34.019429
2020-11-15T07:26:55
2020-11-15T07:26:55
312,978,676
0
0
null
null
null
null
UTF-8
Python
false
false
568
py
import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", 'django_lv2.settings') import django django.setup() from djangoapp.models import User from faker import Faker fakegen = Faker() def populate(N=5): for entry in range(N): fake_name = fakegen.name().split() fake_first_name = fake_name[0] fake_last_nam...
[ "aniketgarg@Anikets-MacBook-Air.local" ]
aniketgarg@Anikets-MacBook-Air.local
51e08bae586536d9a36d487813134e6cc5884797
397bea9873d99bd57838ee20b9159cb75ec94862
/lab8/text_recognizer/tests/support/create_emnist_lines_support_files.py
a5b833120bc7c0d8460e88e411789819c6d59dc1
[]
no_license
richardyantas/text-recognizer-project
a6e4de23ee04c3872b033604aaedbe26b48e2948
46eee48583391c5d2ccfd304aab0f07f8a7651dd
refs/heads/master
2020-04-27T03:53:28.642746
2019-03-06T00:05:15
2019-03-06T00:05:15
174,038,051
0
0
null
null
null
null
UTF-8
Python
false
false
846
py
from pathlib import Path import shutil import numpy as np from text_recognizer.datasets import EmnistLinesDataset import text_recognizer.util as util SUPPORT_DIRNAME = Path(__file__).parents[0].resolve() / 'emnist_lines' def create_emnist_lines_support_files(): shutil.rmtree(SUPPORT_DIRNAME, ignore_errors=Tru...
[ "richardyantas5@gmail.com" ]
richardyantas5@gmail.com
be478fa628908fb468452b0e8d62065396268a9c
ab53f5af878bbbf23c5b94e14febebdceae8303e
/test/test_windows.py
179515d8e12ddd9d30190e7fb56863c2d2dfa205
[ "BSD-2-Clause" ]
permissive
nadyacla/jsonformatter
dd0445505530f05017fda5f3cf7f17f6a83ad677
a5561e58de0857766d8cd10729ebe261f9fe8296
refs/heads/master
2023-06-21T17:40:04.755771
2021-01-02T01:32:21
2021-01-02T01:32:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,872
py
#!/usr/bin/env python # -*- coding: gbk -*- """ File: jsonformatter.py Author: Me Email: yourname@email.com Github: https://github.com/yourname Description: jsonformatter.py """ import datetime import logging import os import random import unittest from collections import OrderedDict from logging.confi...
[ "my_colorful_days@163.com" ]
my_colorful_days@163.com
6d18d34dfc24af3535f595e30436cb9f835c5d28
c69db65f1dbb1a817bf67ada19ddf419d167ef8e
/ks_crm/urls.py
759e86e9782869913ad1f31a56380154e87dbf1c
[]
no_license
saury2013/ks_edu
8c7c32d15904e1c71c5db7cf5ac2a810acf30d52
66c1d0c0cd6345d2833fc583dbf77a68477fdb3c
refs/heads/master
2020-03-12T13:32:21.497020
2018-08-30T13:46:46
2018-08-30T13:46:46
130,644,544
0
0
null
null
null
null
UTF-8
Python
false
false
1,379
py
"""ThreeFish URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-...
[ "saury2011@sina.com" ]
saury2011@sina.com
8f7dcc5a6f73539920f68c2f94233a37e626e3f4
9a22ecc2c9d063b398834bae6948187c84227695
/Hookworm_InputData.py
02f12b721658923feea9f4a1f34f26840c3bd149
[]
no_license
natalieolson/HPM573_PROJECT
ea92115eac44e1f99f85b59154625a2f2d408b0a
2d9542914e8a6b7f19188dbbbbb6b1c9b94163d7
refs/heads/master
2020-03-14T17:30:21.100982
2018-05-01T14:20:14
2018-05-01T14:20:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,231
py
import numpy as np # simulation settings POP_SIZE = 500 # cohort population size SIM_LENGTH = 10 # length of simulation (years) ALPHA = 0.05 # significance level for calculating confidence intervals DISCOUNT = 0.03 # daily discount rate DELTA_T = 1/12 PSA_ON = False #Transmission Rate (Rate of infectio...
[ "noreply@github.com" ]
natalieolson.noreply@github.com
a1d6925b48ced31e74c4adeb3aa9fa318d89ddab
42ea67fa053b8dd01e0b85b1ec731cd10f34723e
/Classification/Adult/script.py
889fe460d6128a60688b98a479fabc6bc2ea2d50
[]
no_license
Jinsu-Han/DATAMINING
cbfafb962ead7bcba918c7dd37b52236dcf59cb2
2148dbb8a87ab6038ad731bf4f1254ad094e8c7f
refs/heads/master
2021-05-16T06:54:29.025746
2017-06-10T22:53:05
2017-06-10T22:53:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,963
py
import pandas as pd import numpy as np from sklearn.preprocessing import LabelEncoder import random from sklearn.ensemble import RandomForestClassifier from sklearn.ensemble import GradientBoostingClassifier from sklearn.metrics import (accuracy_score, average_precision_score, ...
[ "mohammadnrdn@gmail.com" ]
mohammadnrdn@gmail.com
6d4a8f2e86197d24d64165978b5ee9b80a879c81
90f468d1a8328421041e1d1eb17e8333228a3d84
/instituteapp/admin.py
571823c429dbf451d9fefbb14b706bb8334e1307
[]
no_license
nikhilpilla/remote_repository
27c339a373823efedb3aaf87e0b4c15ccc4fb48e
1015cc6b9b3bae82cb30fe894aa4d957484e8650
refs/heads/master
2020-12-20T09:07:01.865114
2020-01-24T14:14:19
2020-01-24T14:14:19
236,024,557
0
0
null
null
null
null
UTF-8
Python
false
false
334
py
from django.contrib import admin from instituteapp.models import ServicerData class ServicerDataAdmin(admin.ModelAdmin): list_display = ['courseno', 'coursename', 'fee', 'faculty', 'timeduration'] admin.site.register(ServicerData,Servi...
[ "nikhiljaikumar.pilla@gmail.com" ]
nikhiljaikumar.pilla@gmail.com
17ccb12c8a2aa66962df220602332c829a79fc87
a56fdac4317ee4a7b1c9f70395d7ed8b074e9359
/pizzacart/migrations/0006_alter_product_desc.py
9f9514db020e78de6a2d552e682c21a9b8fea043
[]
no_license
akshaysaini13/Pizza-App
2496a8017acca966ef827c457100458f8838692a
0d56736db9cd7079fe54102966a54e01fa1d4211
refs/heads/master
2023-08-28T19:52:54.052654
2021-10-23T16:18:12
2021-10-23T16:18:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
377
py
# Generated by Django 3.2.6 on 2021-10-23 07:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pizzacart', '0005_alter_product_piztype'), ] operations = [ migrations.AlterField( model_name='product', name='desc'...
[ "akshaysaini13@gmail.com" ]
akshaysaini13@gmail.com
20ca100f65320d6d541360471bad566804fcf5e0
996cb7f9a28ad5f5cd7e355ef82545f5a7c43100
/python/problems/034_problem.py
31de1b530e737b09b201d0925e0c041ff6106753
[]
no_license
rhedshi/project-euler
abec8888136362ff7a5b06e656c1e1fa9e5a7318
3e841c2de10d5b1616e179e3fe95d3e8939de47c
refs/heads/master
2023-05-24T16:14:12.036456
2021-12-02T02:25:22
2021-12-02T02:26:53
80,599,212
3
0
null
2021-12-01T18:40:17
2017-02-01T07:44:55
Python
UTF-8
Python
false
false
480
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Problem 34 - Digit factorials ============================= 145 is a curious number, as 1! + 4! + 5! = 1 + 24 + 120 = 145. Find the sum of all numbers which are equal to the sum of the factorial of their digits. Note: as 1! = 1 and 2! = 2 are not sums they are not ...
[ "rhed@fb.com" ]
rhed@fb.com
32445e94f16c9d5cb84226c5780b74192610469b
96cc32daf3a1cc0406b3f15f6c2a3e3ae7158d1e
/V2RaycSpider1225/src/config.py
060def8b9bce1bb68a814197a7a1c70f84666c18
[ "MIT" ]
permissive
mcyrj/V2RayCloudSpider
272999de21443d8b450ef0dcbf3cc1f16d63a3db
c1808571b7d244f0ac4bd50078661a3d5a2bc254
refs/heads/master
2023-06-11T09:55:53.498179
2021-07-11T09:02:35
2021-07-11T09:02:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,864
py
""" 读取yaml配置文件,生成全局静态变量。 """ import os import shutil from sys import platform import pytz import yaml # --------------------------------------------------- # TODO 配置文件索引 # 默认的单机配置文件为 config.yaml # --------------------------------------------------- # 若在单机上开启多个进程的任务,既每个进程应对应一个启动配置文件(.yaml)则需改动此处user_指向的文件名,如: # confi...
[ "62018067+QIN2DIM@users.noreply.github.com" ]
62018067+QIN2DIM@users.noreply.github.com
3c6be4d87f52e0e542c15e1383f89d83b2ac5584
9fa5d9ef9f9a4896126f42d2d16e87948a73579d
/build_xclient_all.py
a4a0968b88b5a11f61430e93a6aeea2c74583ff0
[]
no_license
ReadingCode/xware
6c3272171922014f49216c36f70de31756ccd2b1
6a7edf746822d38c084867a7ce9930cc5a764da9
refs/heads/master
2020-03-26T05:03:53.876231
2013-05-29T06:09:32
2013-05-29T06:09:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
396
py
#!/usr/bin/env python import os import sys commands = [ 'scons -f xclient.scons unicode=yes release=no', 'scons -f xclient.scons unicode=no release=no', 'scons -f xclient.scons unicode=yes release=yes', 'scons -f xclient.scons unicode=no release=yes'] if __name__ == '__main__': for...
[ "stoneyrh@163.com" ]
stoneyrh@163.com
537981f5f8ae26ec5e8ef25268157569c2eef36e
f45851b43325ab6cb76035f4cb6156f3e95d0ca2
/programming101/small.py
82609fad1e3a4071b7c9f039c6f06cb9a34171fe
[]
no_license
csreyno/Digital-Crafts-Classes
8a6ba104a1921694521a199c075040afe429aaf4
216fd7744fee9dd127d2ff36192cad057dc08f2f
refs/heads/master
2023-01-21T06:45:52.727514
2020-11-24T21:36:30
2020-11-24T21:36:30
303,484,128
0
0
null
null
null
null
UTF-8
Python
false
false
2,066
py
# #exercise 1 # name = input("what's your name?\n") # print(f"Hello, {name}!") # #exercise 2 - convert all lowercase to uppercase, letters already uppercase remain uppercase # name = input("WHAT'S YOUR NAME?\n") # print(f"HELLO, {name.upper()}!") # print(f"YOUR NAME HAS {len(name)} LETTERS IN IT! AWESOME!") # #exerci...
[ "chad.s.reynolds@gmail.com" ]
chad.s.reynolds@gmail.com
150eb61a972bb02a429f3eb79cb6df50bb234b19
a01feaa3f62764bd73bdc4c57b32f6fd4019e3e9
/dat/week3.py
bfb2032451c440af7a63dd7415325654439700bc
[]
no_license
jonathanfspencer/data-analyst
dcbc085902ace68df18f1fe38630002da4e6f4ce
8938b0e3dd24420371fd1a505f2dd1d6d5a13b63
refs/heads/master
2023-04-10T09:21:07.591711
2021-04-20T18:52:00
2021-04-20T18:52:00
335,087,934
0
0
null
null
null
null
UTF-8
Python
false
false
4,220
py
# -*- coding: utf-8 -*- """ Jonathan Spencer Week 3 Assignment """ import pandas import numpy import seaborn import scipy import matplotlib.pyplot as plt #Set PANDAS to show all columns in DataFrame pandas.set_option('display.max_columns', None) #Set PANDAS to show all rows in DataFrame pandas.set_option('display.max...
[ "jonathanfspencer@gmail.com" ]
jonathanfspencer@gmail.com
6186282c3446f83d419a1ac0c4b554890f932503
b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1
/tensorflow/python/framework/dtypes.py
f1c6251c483d69a34f5710f9b346fb9ccd2b713e
[ "Apache-2.0" ]
permissive
uve/tensorflow
e48cb29f39ed24ee27e81afd1687960682e1fbef
e08079463bf43e5963acc41da1f57e95603f8080
refs/heads/master
2020-11-29T11:30:40.391232
2020-01-11T13:43:10
2020-01-11T13:43:10
230,088,347
0
0
Apache-2.0
2019-12-25T10:49:15
2019-12-25T10:49:14
null
UTF-8
Python
false
false
24,187
py
# Copyright 2015 The TensorFlow 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...
[ "v-grniki@microsoft.com" ]
v-grniki@microsoft.com
6b27894d6781b7a1a591111f28f575c8857b9a50
fb3061b2e8752e59e59d0f54f8a9637c25bcc8f4
/Tristan/randomnumber.py
0dd78cf9ab6872d179441ebf8ea0bba5d6a197ba
[]
no_license
idcrypt3/camp_2019_07_14
25383c67dbd2d44ad9e5966b2666d545688a4d36
708cccb313181fc15dc7aa45699024b9b44ba275
refs/heads/master
2020-06-20T06:21:37.907263
2019-07-19T18:53:17
2019-07-19T18:53:17
197,023,869
0
0
null
null
null
null
UTF-8
Python
false
false
42
py
import random print(random.randint(1, 20))
[ "idcrypt3@gmail.com" ]
idcrypt3@gmail.com
f94dc3e35df3d080642dc8f8fd2a3ffb9b4675a5
0d2c2ffe431b159a87bcd78c97147422dce8d778
/GUI学习/01PyQt5快速开发与实战/ch05高级界面控件/11timer2.py
c00045f390bd96d04ec0f63ccf8a09b77033800c
[]
no_license
YuanXianguo/Python-Project-ITC
9e297fc1e1e8ec2b136e6e8b1db0afaaba81c16c
afd14cbe501147ec66b4aa0c1c7907b3ae41d148
refs/heads/master
2020-04-16T13:54:33.727825
2019-12-20T02:16:52
2019-12-20T02:16:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
508
py
import sys from PyQt5.QtWidgets import QApplication, QLabel from PyQt5.QtCore import Qt, QTimer def test(): print(1) if __name__ == '__main__': app = QApplication(sys.argv) label = QLabel('<font color=red size=128><b>' 'Hello PyQt,窗口会在3秒后消失!</b></font>') # 无边框窗口 label.setWindowFla...
[ "736913978@qq.com" ]
736913978@qq.com
6f08a86ea414a778c093cdd193e66adf1fa27fb9
6219e6536774e8eeb4cadc4a84f6f2bea376c1b0
/scraper/storage_spiders/kuchevn.py
a9cc915cd7f15c2358aed743c2373312c26e7f93
[ "MIT" ]
permissive
nguyenminhthai/choinho
109d354b410b92784a9737f020894d073bea1534
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
refs/heads/master
2023-05-07T16:51:46.667755
2019-10-22T07:53:41
2019-10-22T07:53:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,034
py
# Auto generated by generator.py. Delete this line if you make modification. from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor XPATH = { 'name' : "//div[@class='page_title']/h1", 'price' : "//meta[@property='og:price:amount']/@content", 'category' : "", 'description' : "//...
[ "nguyenchungthuy.hust@gmail.com" ]
nguyenchungthuy.hust@gmail.com
d4cef37cd7a9b3cca60e775fd7bc904a27ceeef8
e30cb969dde7e4267519f1c6921d4ab724fff2ea
/order/queueMessaging/connector.py
48a866cbb9b599d8821e4b2b2875ad3c73de257c
[]
no_license
Platonov2/nepomoika
8e13a11b8fd0137e959867a0e9a922fabf150aa0
e5d4503c436aaf7131e0c1fe9d5a8cd7764f29e2
refs/heads/master
2023-03-26T03:05:25.099971
2021-03-30T05:41:43
2021-03-30T05:41:43
340,888,187
0
0
null
null
null
null
UTF-8
Python
false
false
751
py
import pika import os class Connector: def __init__(self): self.credentials = pika.PlainCredentials(os.environ['RABBITMQ_DEFAULT_USER'], os.environ['RABBITMQ_DEFAULT_PASS']) self.connection = "" self.channel = "" def connect(self): self.connection = pika.BlockingConnection(pik...
[ "uytera12@yandex.ru" ]
uytera12@yandex.ru
d5574e4e9fc5e91915817a374d447d7d44106be0
ca08a9b9c05d95aa7532098231dd9ef17ad3247c
/models/model_SR.py
5908a801a21f2f7816f5318f3bcefd3529e06dd5
[]
no_license
Mbamin/successor-features-A2C
ae8aa3e107e730843e4ad04d16c76dba660ae29f
cc0875d4fa8e6f9550475d6073a1de8e219a9c38
refs/heads/master
2022-12-26T21:22:50.527379
2020-10-01T19:59:14
2020-10-01T19:59:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,739
py
import torch import torch.nn as nn import torch.nn.functional as F from torch.distributions.categorical import Categorical import torch_ac #import torch_rbf as rbf import numpy as np #from utils.ssps import * from gym.spaces import Discrete, Box # Function from https://github.com/ikostrikov/pytorch-a2c-ppo-acktr/blob/...
[ "nicole.s.dumont@gmail.com" ]
nicole.s.dumont@gmail.com
23fb0fe5d6efc75907bc0f232f107ae59b59db7e
85f09715fec929f094b8b0144624731f0d7ad44f
/tests/test_factories.py
edea1e00945c3718f8bf03528abb51cee47dab48
[]
no_license
Bernardstanislas/api-particulier-portail
76c87183c03917ade91e1d935cafff573f87815a
237d02527ee948cd4ec9f702736b4127966d2f9a
refs/heads/master
2022-10-22T01:58:15.675400
2020-06-15T14:29:46
2020-06-15T14:31:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
from app.db import Api from security.hasher import hash_api_key from gateway.models import ApiKey def test_fixtures_loading(): assert len(Api.query.all()) > 0 assert len(ApiKey.query.all()) > 0 def test_api_key_generation(test_api_key): assert test_api_key def test_api_key_hash(test_api_key, test_api_...
[ "bernardstanislas@gmail.com" ]
bernardstanislas@gmail.com
a5b65d3bad29412dc9af65b993d04e460edb0739
ec6079855db9e3e873cc9ada966da2e0f7be2632
/Competitive Programming/CodeChefContestApr21/WordsFrSameBaseAlphabet.py
2816e461422a6b7c542b1b483321f4101d20091d
[]
no_license
tylerprehl/Computer-Science-Club
92e5856a16c07728a076e0c8443458355ad86e20
2ce670ead87cf42c5087675e1a8b026d64d70311
refs/heads/master
2023-05-22T20:52:31.150087
2021-06-09T20:06:45
2021-06-09T20:06:45
344,685,573
0
0
null
null
null
null
UTF-8
Python
false
false
1,181
py
''' Specification In this problem you are asked to write a program to determine if two words come from the same base alphabet. When one word is a rearrangement of letters of the other, the two words are called “anagrams”, like “rose” and “sore”. But this problem asks you to determine if two words use the same lette...
[ "tyler@prehl.us" ]
tyler@prehl.us
f2bc688ca9d8b92a0e9c371c827cc04b050a745e
63cf26ee97b2c2d97aa951c319b75c340cd839ec
/catalog/migrations/0006_auto_20181105_0804.py
9b94939975ccba435e6ac58660e687de5e57e0c1
[]
no_license
Junlli/django_local_library
4a7a2a155380251e8eff42347cc5a195a30e6adf
c54541bf922d0bb180228263038f505e4f54bab6
refs/heads/master
2020-03-27T22:21:59.610300
2018-11-28T16:06:18
2018-11-28T16:06:18
147,224,496
0
0
null
null
null
null
UTF-8
Python
false
false
545
py
# Generated by Django 2.0.7 on 2018-11-05 08:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('catalog', '0005_auto_20180829_1126'), ] operations = [ migrations.AlterModelOptions( name='author', options={'orderi...
[ "279110089@qq.com" ]
279110089@qq.com
a11c216ccd83de27c2498fc31e7adcb24de5c462
69f83bcff8a2bd9c8ef082a2141a39a5322c4b2a
/pyenv/env/lib/python2.7/site-packages/transport/tester.py
a0c92e0c385d219b834498f737ba0f7ed0dcd5a7
[]
no_license
md848-cornell/NRF-ROKIX-sensor-mesh
ab12f6572a992ed5c468eb08b8c4586b52b411b2
b244207af0fb0fce6e2722c384d3c6c25d5ac025
refs/heads/master
2020-05-21T10:56:15.013174
2019-05-16T16:12:11
2019-05-16T16:12:11
186,021,295
0
1
null
2020-03-07T21:39:41
2019-05-10T16:35:25
C
UTF-8
Python
false
false
679
py
""" Copyright (c) 2017 Nordic Semiconductor ASA CoAP transport class for tests. """ from transport.base import TransportBase from ipaddress import ip_address class TesterTransport(TransportBase): def __init__(self, port=None): TransportBase.__init__(self, port) self.tester_opened = ...
[ "Mike DiDomenico" ]
Mike DiDomenico
4808cbaedeec5b5afd0caf7172bca3b9c3bb2900
557ca4eae50206ecb8b19639cab249cb2d376f30
/Chapter04/spiral.py
b642ee9c1d01400018b8cff8264cad308b034929
[]
no_license
philipdongfei/Think-python-2nd
781846f455155245e7e82900ea002f1cf490c43f
56e2355b8d5b34ffcee61b38fbfd200fd6d4ffaf
refs/heads/master
2021-01-09T19:57:49.658680
2020-03-13T06:32:11
2020-03-13T06:32:11
242,441,512
0
0
null
null
null
null
UTF-8
Python
false
false
340
py
import turtle def draw_spiral(t, n, length=3, a=0.1, b=0.0002): theta = 0.0 for i in range(n): t.fd(length) dtheta = 1 / (a + b * theta) t.lt(dtheta) theta += dtheta def main(): bob = turtle.Turtle() draw_spiral(bob, n=1000) turtle.mainloop() if __name__ == "__m...
[ "philip.dongfei@gmail.com" ]
philip.dongfei@gmail.com
342a379d6b9f105f42149eb9a3a20f5b3dffb719
8371e46c6e96aea5da8bed8b0dcd34a57b144fb1
/Django/mainsite/todo/views.py
cf81e056b0c40c78932c6a31992dbaa118bf1fef
[]
no_license
PDXChloe/PDXcodeguild
4bfcd31072bfd17cb7959f71adfd867ff9e5d9ac
23ca3dc245bf51be932790d03e3333d89c462180
refs/heads/master
2021-08-24T08:13:36.027155
2017-12-08T20:30:14
2017-12-08T20:30:14
105,682,066
0
0
null
null
null
null
UTF-8
Python
false
false
1,229
py
from django.http import HttpResponse, HttpResponseRedirect from .models import TodoItem from django.shortcuts import render from django.urls import reverse # Create your views here. def index(request): # print(request.method) # print(request.body) # print(request.GET) # name # # output = '<h...
[ "chloe_elliott@me.com" ]
chloe_elliott@me.com
9a5aafa5fcb58b756ab4bcfb7ed48e4dac8cf7e7
c0bd54ef52021c47a9112e27fa4104f7f9ae571f
/trainer/tests.py
6e2e4649c58ed45fd30c8a10130b41948d4c3667
[]
no_license
coolshan008/rpserver
00582e858e80c97a78b4fd1748e00f8fe92fef67
f2587f5cb85a53c0c368b5f901fc21ad77e04068
refs/heads/master
2020-12-24T20:42:46.465265
2016-12-04T15:58:32
2016-12-04T15:58:32
56,149,095
0
0
null
null
null
null
UTF-8
Python
false
false
1,762
py
from models import TUPLE from models import CLASSROOM from math import * import pickle import pdb import gl from django.http import HttpResponse output_file = open('test/output', 'a') def flash(): global output_file output_file = open('test/output', 'a') output_file.write('\n\n') def test(request): ...
[ "coolshan008@gmail.com" ]
coolshan008@gmail.com
84c6051cd1c083c73006b2058485e017d4f6a001
4d259f441632f5c45b94e8d816fc31a4f022af3c
/eventlet/prod_worker.py
51d9d239ff441f414a29933caf1e28379ec9f8d3
[]
no_license
xiaoruiguo/lab
c37224fd4eb604aa2b39fe18ba64e93b7159a1eb
ec99f51b498244c414b025d7dae91fdad2f8ef46
refs/heads/master
2020-05-25T01:37:42.070770
2016-05-16T23:24:26
2016-05-16T23:24:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
429
py
from eventlet.queue import Queue import eventlet q = Queue() def worker(): while True: q.get() a = 0 for i in xrange(1000000): a = a + 1 print 'get' def producer(): while True: a = 0 for i in xrange(1000000): a = a + 1 q.put('lol'...
[ "junmein@junmeinde-macbook-pro-3.local" ]
junmein@junmeinde-macbook-pro-3.local
c9851d71ff6de782f266a5a05d35eb235639a7e9
7c2959d41ab8814cf7cdc56ea067ec0bfe558438
/easy/one.py
b695db11ed3dcd14df1731de587f6208f28e425f
[]
no_license
AtiqulHaque/HackerRank
306f515c24e54708461967011c2fddfc6057fed3
d2c1189dfce913a8c204351470866a446fd0d88c
refs/heads/master
2020-03-30T12:06:44.295949
2018-10-04T13:42:20
2018-10-04T13:42:20
151,208,575
0
0
null
null
null
null
UTF-8
Python
false
false
232
py
# file one.py def func(): print("func() in one.py") print("top-level in one.py") if __name__ == "__main__": def anotherFun(): print ("Another funtion") print("one.py is being run directly") anotherFun()
[ "md_atiqulhaque@yahoo.com" ]
md_atiqulhaque@yahoo.com
25bd19ebec3d335bb1ab4630ad5ef6a7c9856ce5
fde8c89b352076f95cc16e589b1baf18f7befb51
/dulwich/pack.py
878162b964ef50a9c5bcebdcb0a02cf5529b4243
[]
no_license
571451370/devstack_mitaka
b11145256deab817bcdf60a01a67bb6b2f9ddb52
1bdd3f2598f91c1446b85c5b6def7784a2f6ab02
refs/heads/master
2020-08-26T12:53:07.482514
2017-04-12T01:32:55
2017-04-12T01:32:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
66,284
py
# pack.py -- For dealing with packed git objects. # Copyright (C) 2007 James Westby <jw+debian@jameswestby.net> # Copyright (C) 2008-2013 Jelmer Vernooij <jelmer@samba.org> # # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; ...
[ "tony.pig@gmail.com" ]
tony.pig@gmail.com
c806d03688663a7c63addca02154f9c4fd0d7d4f
8103c04c3478910903189e4a99d528159e1ae661
/Versoes.py
705419c7cf369350832204aca9ff5a1154d9127a
[]
no_license
franciscopereira32/Cadastro.py-1.0
31c7d57eac6eff8c4b235e5f8e7ed51b9042b93e
86fdf04f21e373d5fbbb5981a77a7df6de976ab2
refs/heads/main
2023-03-15T04:27:33.615602
2021-03-16T19:01:03
2021-03-16T19:01:03
348,455,661
2
0
null
null
null
null
UTF-8
Python
false
false
2,194
py
from Banco import Banco class Versoes(object): def __init__(self, swversao = "", produto = "", hw = "", nb = "", fornecedor = ""): self.info = {} self.swversao = swversao self.produto= produto self.hw = hw self.nb = nb self.fornecedor = fornecedor def inserirVersoes(...
[ "noreply@github.com" ]
franciscopereira32.noreply@github.com
c0fc94a656f1cee1a7c8ee20e88f8085721c9112
c67f449dc7187f154df7093a95ddcc14a3f0a18f
/youngseokcoin/test/functional/net.py
a4a15da130025b87c9678b54942f92c910989ea7
[ "MIT" ]
permissive
youngseokaaa-presentation/A_system_to_ensure_the_integrity_of_Internet_of_things_by_using_Blockchain
cee9ba19e9d029759fc2fe4a43235c56fd9abe43
b2a47bc63386b5a115fc3ce62997034ebd8d4a1e
refs/heads/master
2023-02-17T07:58:43.043470
2021-01-11T05:40:28
2021-01-11T05:40:28
295,317,246
0
0
null
null
null
null
UTF-8
Python
false
false
4,225
py
#!/usr/bin/env python3 # Copyright (c) 2017 The Youngseokcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test RPC calls related to net. Tests correspond to code in rpc/net.cpp. """ import time from test_f...
[ "youngseokaaa@gmail.com" ]
youngseokaaa@gmail.com
7ffbc5519c0ad6ddc3bad591dcb77a78f27c5333
3ef2b760c607b80e82f4941358e6c8cc67659d3b
/lib/utils.py
7f4c4d61999620f3ee10ab50df5b07eccd97081b
[]
no_license
LAYTAT/Senti-Attend
a4e2494fea22fc0861513c5637a1af91233fd2a5
bf076fdb1831d27a4452e12943cb04477c8adaa3
refs/heads/master
2020-07-06T17:20:23.386645
2019-08-09T01:53:09
2019-08-09T01:53:09
203,089,460
1
0
null
2019-08-19T03:09:37
2019-08-19T03:09:35
null
UTF-8
Python
false
false
4,859
py
import numpy as np import cPickle as pickle import hickle import time import os def load_coco_data(data_path='./data', split='train'): start_t = time.time() data = {} if split == "debug": split = 'val' with open(os.path.join(os.path.join(data_path, 'train'), 'word_to_idx.pkl'), 'rb') as ...
[ "odnzmi@gmail.com" ]
odnzmi@gmail.com
1148775b89c0a6ca12c5770758ed5ae05744f99e
5e31e137bfda29c946024f01dd43e18e24e4e6df
/ProjetoDjango/Ouvidoria/admin.py
6277653ad0e856e4e57a1ef19da9ea702b2f0999
[]
no_license
osvaldoj12/ProjetoDjango
0584a5702a7f096590591a0b32a949c7cb5e4e61
12ee83c1d07a1fc0d91719d10c7ddc9f8e6ab239
refs/heads/master
2020-09-27T12:57:58.539685
2019-12-07T14:50:37
2019-12-07T14:50:37
226,521,894
1
0
null
null
null
null
UTF-8
Python
false
false
304
py
from django.contrib import admin from Ouvidoria.models import Sugestoes, Elogios, Reclamacoes, Denuncias, Funcionario # Register your models here. admin.site.register(Sugestoes) admin.site.register(Elogios) admin.site.register(Reclamacoes) admin.site.register(Denuncias) admin.site.register(Funcionario)
[ "osvaldojuniorlima@hotmail.com" ]
osvaldojuniorlima@hotmail.com
fcf6ea3c41543c2039b67ee2278d7ee410816469
d27a77f8dfec5f510aed31dabf2fddd30c0dae5f
/brosys/urls.py
a8a4ef1d346daade000689680f91b68f455c151a
[]
no_license
MixBars/brosys
3ec1e82927ab45cad7993d5e8d557845c8ca10d3
40fef7a33294b9c087d7094eac9c27cf8e00be19
refs/heads/master
2023-09-06T09:43:14.677035
2021-11-02T22:53:02
2021-11-02T22:53:02
424,001,266
0
0
null
null
null
null
UTF-8
Python
false
false
1,064
py
"""brosys URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
[ "portalmixbars@gmail.com" ]
portalmixbars@gmail.com
b80973b7ecf39e1f551d773d6bf72d6bdd294317
ea6ffbcf929941513d171f9ebf959ec42d633612
/TradingNews/wsgi.py
e8869caa62e0b989d57df9c7820c1c9c82106312
[]
no_license
Souce01/TradingNews
43c82496d6da3cf773e993da9cf8ca1f5a1a78ff
392497419c44fe170ba425e86db40afce29b1857
refs/heads/master
2023-07-24T05:28:42.955035
2021-08-27T02:57:45
2021-08-27T02:57:45
287,260,739
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
""" WSGI config for TradingNews 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.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_S...
[ "alexandresoucy7@gmail.com" ]
alexandresoucy7@gmail.com
29ff7530a12d24ef2ff8f6e0744b6cf91faba8cf
a5b09349bb10685621788f815acfcef23e93b540
/tests/test_set_item.py
6e7fa7390740d64e413f0be77568016de3a82fe9
[]
no_license
yishuihanhan/slimurl
05d95edf3b83a118bc22a4fda4f0e8ca9d4662f7
d6ee69b0c825dcc4129bb265bd97e61218b73ccc
refs/heads/master
2020-04-02T08:34:55.228207
2017-01-10T10:09:50
2017-01-10T10:09:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
639
py
#!/usr/bin/env python # encoding: utf-8 from slimurl import URL def check_set(url, args, result): key, value = args url[key] = value assert url == result def test_set(): cases = [ ["http://example.net/", ('foo', 'bar'), "http://example.net/?foo=bar"], ["http://example.net/", ('foo'...
[ "me@mosquito.su" ]
me@mosquito.su
75dbe56cf58aa518de51464a64dfaa8d7f95feea
9e929843f73b099456bab9df1b08971288e3b839
/tests/integration_tests/vectors_tests/test_lower_than_or_equals.py
bedb21d4a788496d3c2bbb9138f82d33ab29733b
[ "MIT" ]
permissive
lycantropos/cppstd
fd20a37c46bd730d15b6e5c34e795f39907fad75
2a44dad540a8cc36e7fac8805cf2f5402be34aee
refs/heads/master
2023-01-11T01:13:25.821513
2020-11-12T23:19:40
2020-11-12T23:19:40
302,339,499
0
0
null
null
null
null
UTF-8
Python
false
false
511
py
from hypothesis import given from tests.utils import (BoundPortedVectorsPair, equivalence) from . import strategies @given(strategies.vectors_pairs, strategies.vectors_pairs) def test_basic(first_pair: BoundPortedVectorsPair, second_pair: BoundPortedVectorsPair) -> None: f...
[ "azatibrakov@gmail.com" ]
azatibrakov@gmail.com
d6bc7164d5e3d4930bcdbb6d3a9ddfdd071805e2
98b3ba54c5c078f5b6973b633ced5ae5fdce39b1
/A基础知识/错误调试和测试/错误处理.py
2654ede49800b1b81d1dc4ecb350879119285d32
[]
no_license
FutaoSmile/pythonLearn
97766292aad100b210dfa04e7bbfc0757418f915
0cbafc47826ebad95b534020e81ce995a4d472bd
refs/heads/master
2021-07-21T19:35:20.337829
2021-07-15T02:51:41
2021-07-15T02:51:41
202,057,691
1
0
null
null
null
null
UTF-8
Python
false
false
893
py
import logging logging.basicConfig(level=logging.INFO) try: a = 0 / int(input('请输入一个数字')) # 可同时捕获多种类型的异常 except ZeroDivisionError as ze: print('发生除零异常', ze) logging.exception(ze, '发生除零异常') # 可同时捕获多种类型的异常 except ValueError as ve: print('发生整型转换异常', ve) logging.exception(ve, '发生整型转换异常') # 没有发生异常 else...
[ "1185172056@qq.com" ]
1185172056@qq.com
52a625ea02f8c1c83dee9dfc16faba640999ba8c
5ed2a2f1f5915786f0ee1d084582dd251a5c8fff
/honour roll calc.py
1dee679d3cd59db698ffe0f2f353956e7c63d98d
[]
no_license
khematil/Python-Averag-Calc
aaae00f023bea9f0f1858f54e8de34e981e723ec
f0397671dbc84d03ce10ee796a5a231b312e74ee
refs/heads/master
2020-04-23T16:55:48.589983
2019-02-18T16:11:38
2019-02-18T16:11:38
171,314,813
0
0
null
null
null
null
UTF-8
Python
false
false
1,653
py
#Honour Roll Calculator sum = 0 #counter while True: try: coursenumbers = int(raw_input("How many courses were there? (1-8)")) #asks user for course amnt while coursenumbers >=9 or coursenumbers <=0: #while loop so you cant enter anything more than 9 or less than 0 print "Sto...
[ "noreply@github.com" ]
khematil.noreply@github.com
b9464a20171c79cf512a724b383ba1aa947fb884
324aad96376dce516263e795599bdf3d40978154
/alien_invasion.py
bd5a0b04865a0759aba88251c4b906610b717dd6
[]
no_license
andrewsanc/ALIENS
6dd983614028052eb2abb0338f075e39b3ad04fb
3e6bf3789576214d87c68bdbf4aef731d3f32418
refs/heads/master
2020-03-18T22:30:40.616197
2018-05-29T20:37:55
2018-05-29T20:37:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
438
py
import sys import pygame def run_game(): # Initialize game and create a screen object pygame.init() screen = pygame.display.set_mode((1200, 800)) pygame.display.set_caption("Alien Invasion") # Start the main loop for the game while True: # Watch for keyboard and mouse events for even in pygam...
[ "druu831@gmail.com" ]
druu831@gmail.com
1c1917ab1339c7cbb623080afbb9a8125b03933c
7c25e479b21b1e3e69a6be140f6511a892901182
/python_practice/middle_linked_list.py
5379e1fe8bdae8d8f5d08bb398c0fd1504ec458c
[]
no_license
ahrav/Python-Django
6be3e3b5a39a6eabcf2b97b071232f8b85de64d3
8a2a3f706aab557b872f27e780bd7e4ebd274f72
refs/heads/master
2022-09-09T01:29:31.391833
2019-05-23T03:34:15
2019-05-23T03:34:15
181,137,783
0
0
null
2022-08-23T00:22:08
2019-04-13T07:40:44
Python
UTF-8
Python
false
false
670
py
class Node: def __init__(self, data): self.data = data self.next = None class LinkedList: def __init__(self): self.head = None def push(self, new_data): new_node = Node(new_data) new_node.next = self.head self.head = new...
[ "ahravdutta02@gmail.com" ]
ahravdutta02@gmail.com
8ffd41f7dfd8ec01e5a83eabf84d1c32b0c453f6
85bf023f561caa580703347798cdbbbc4afc0c5f
/leetcode/53.Maximum Subarray/maximum_subarray_greed.py
0d16e1a32a34041804dbe297c065f776c3158318
[]
no_license
Math312/Algorithm-python
f346b74ec0b6ee8cce9cbf820c39a9a63c4db35f
f047150ffa71d4c0c4bcfc9ce6d1ea155e361655
refs/heads/master
2020-11-24T23:29:38.582202
2020-03-03T10:49:55
2020-03-03T10:49:55
228,387,394
0
0
null
null
null
null
UTF-8
Python
false
false
348
py
class Solution(object): def maxSubArray(self, nums): """ :type nums: List[int] :rtype: int """ sum_num = 0 max_num = nums[0] for i in nums: sum_num += i max_num = max(sum_num, max_num) if sum_num < 0: sum_num...
[ "894688078@qq.com" ]
894688078@qq.com
4b30d61e07bfa3a4839fcb6fe9d0d2e52479a80d
401f783a202949adbf144b5780bcd87a6daf2299
/code/python/Day-69/SnakeGame.py
c61b7e9c28275ea314027b26a33f30786ac67215
[]
no_license
TalatWaheed/100-days-code
1934c8113e6e7be86ca86ea66c518d2f2cedf82a
b8fd92d4ddb6adc4089d38ac7ccd2184f9c47919
refs/heads/master
2021-07-04T14:28:45.363798
2019-03-05T13:49:55
2019-03-05T13:49:55
140,101,486
0
1
null
null
null
null
UTF-8
Python
false
false
2,380
py
# SNAKES GAME # Use ARROW KEYS to play, SPACE BAR for pausing/resuming and Esc Key for exiting import curses from curses import KEY_RIGHT, KEY_LEFT, KEY_UP, KEY_DOWN from random import randint curses.initscr() win = curses.newwin(20, 60, 0, 0) win.keypad(1) curses.noecho() curses.curs_set(0) win.border(0) win.nodela...
[ "noreply@github.com" ]
TalatWaheed.noreply@github.com
505790ad49da2ead0214eb1ec70ebbceb9c7d4d8
7aa98923157b2709cb29e13864deec811286d0d5
/10.9.2.py
7eadeb9b0080ec1037c726d08ae8f57ef6631f02
[]
no_license
htdhret/D1047291
83a638d5995b649ea8622c400edf251455f9a696
aaae5df5b633d31da5aa50d030d98563ff8c7a23
refs/heads/main
2023-08-02T13:56:46.822167
2021-10-09T12:13:13
2021-10-09T12:13:13
415,295,997
0
0
null
null
null
null
UTF-8
Python
false
false
333
py
x= int(input("输入一个年份:")) if (x % 4) == 0: if (x % 100) == 0: if (x % 400) == 0: print("{0} 是闰年".format(x)) else: print("{0} 平年".format(x)) print(x%400+x) else: print("{0} 是闰年".format(x)) else: print("{0} 平年".format(x))
[ "noreply@github.com" ]
htdhret.noreply@github.com
5227e683eeda405361ef120fe342105988983379
cc93d8c24a3b6082823b12edb9d4328fa4616e04
/run_inference.py
f04b99f080c56da4623ff2e2538b2fe0c4319fb7
[]
no_license
C2H5OHlife/UnsupDepth
31c1e615e5361a8ff657555e8cb7b8c34566feb3
710160e88e3817382d88851328bbbf0e46f53ec8
refs/heads/master
2020-04-11T10:51:17.839474
2018-12-17T01:45:35
2018-12-17T01:45:35
161,726,934
0
0
null
null
null
null
UTF-8
Python
false
false
3,653
py
import torch from imageio import imread, imsave from scipy.misc import imresize import numpy as np from path import Path import argparse from tqdm import tqdm from models import DispNetS, DispResNet from utils import tensor2array parser = argparse.ArgumentParser(description='Inference script for DispNet learned with...
[ "zhoulingtao7658@Hotmail.com" ]
zhoulingtao7658@Hotmail.com
ca7ca9fadb6b8350641f806e917ff8ca39079686
ecf0f11c093ae4e134683afe13701df7ed7985e5
/testpackage/pytestargsusing.py
9d7ea480a1625925d1b299e65f791e000b53d13b
[]
no_license
yeazhang/myhomework
9bd88208ce3927084f0e3eddc050afc6263901ec
7f50fb1c9d1cc48d09f9313033631c5aae8b3f89
refs/heads/main
2023-03-01T14:11:35.881451
2021-02-06T15:05:33
2021-02-06T15:05:33
331,968,425
0
0
null
null
null
null
UTF-8
Python
false
false
113
py
#参数化的变量argsnames(String逗号分隔),list,tuple # argvalues参数化的值list,list[tuple]
[ "2818645781@qq.com" ]
2818645781@qq.com
f84891006c72890c8a4c8b22fee0ceb75c90f1c3
d436742b111df6d31ace5a274d18037ff34c9f7d
/penv/price_generators.py
5d4cabf44e8f6d6845b2e0bc20bde60e1ab1c6d8
[ "MIT" ]
permissive
maxclchen/penv
ca21a12f25ca35804b452241b912ca8f83c0ccaa
e9745e5ca7025ee575fe30da6a849b17c14dee9a
refs/heads/main
2023-08-22T04:44:16.281487
2021-04-12T19:01:10
2021-04-12T19:01:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,659
py
import numpy as np import pandas as pd from scipy.stats import truncnorm from tensortrade.feed import Stream class MultiGBM(Stream[np.array]): def __init__(self, s0: np.array, drift: np.array, volatility: np.array, rho: np.array, n: int): super().__init__() self.n = n self.m = len(s0) ...
[ "mwbrulhardt@gmail.com" ]
mwbrulhardt@gmail.com
1a862f916178e0640ace21aa06f612164fe5255b
ffec472086272974ffb7fc2e2c59848223b38c96
/hackerRank-solutions/Compare the Triplets.py
15cae3d18e34d0a9cc768b209e7a7a4e724d2fa9
[]
no_license
senatn/learning-python
24b5b360cb4c8ef8cebd8b34f983fd81c956a747
f35d690d130bc68252386f01a9b399c5453ca6f6
refs/heads/master
2023-01-12T03:50:08.211506
2023-01-03T00:46:38
2023-01-03T00:46:38
179,149,508
2
0
null
null
null
null
UTF-8
Python
false
false
365
py
def compareTriplets(a, b): score = [0,0] for i in range(3): if a[i] > b[i]: score[0] += 1 if a[i] < b[i]: score[1] += 1 return score if __name__ == '__main__': a = list(map(int, input().rstrip().split())) b = list(map(int, input().rstrip().split())) res...
[ "noreply@github.com" ]
senatn.noreply@github.com
0085d294a98c3bbe2a203b31818b30a734454fc5
d20137e064ff0a935c93902a9f2499b8d3ace063
/tensorflow/Linear_Regression/2_tensorflow_tutrial.py
778124c72c1efdcc8989ddaea5fcb27e3f0b3814
[]
no_license
futo0713/Tensorflow_validation
99a948a67cd6a6bd9f35275cb849b6ada202b72d
769f8e10aeb0837c35b19e77c326683cea83afa4
refs/heads/master
2020-06-13T20:09:13.177525
2019-07-06T04:20:03
2019-07-06T04:20:03
194,775,083
0
0
null
null
null
null
UTF-8
Python
false
false
1,292
py
import time s = time.time() #to turn off the warning #---------------------------------------------------------- import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' #---------------------------------------------------------- #inatall dataset #========================================================== impor...
[ "noreply@github.com" ]
futo0713.noreply@github.com
d8968b27ed11019d2fdbaca25eff49da686fa2bf
69d138e53b2cac30b9fa12fc125f8ac57783358a
/employee/migrations/0020_auto_20190314_0954.py
48b046f3a233f9d08ec2c3532279306f599269e3
[]
no_license
PallaGangadhar/employee
32544da737417b4f90fdcb5f28deb111892c8ffe
af40c851b77bc7c466054d961ee5ab30bfbe1d53
refs/heads/master
2020-04-27T17:38:24.583249
2019-03-22T04:54:20
2019-03-22T04:54:20
174,495,537
0
0
null
null
null
null
UTF-8
Python
false
false
447
py
# Generated by Django 2.1.5 on 2019-03-14 09:54 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('employee', '0019_auto_20190314_0933'), ] operations = [ migrations.AlterField( model_name='leave', n...
[ "c100-120@C100-120s-iMac.local" ]
c100-120@C100-120s-iMac.local
04cbebd041955bd31731244dfbe22af47d532a32
1744cf93475d0d62913cc95225ac144351dbd576
/mafia_bot/bot.py
f524de545876de6bf3a2dd49402b953b66d01cc1
[]
no_license
hilleri123/mafia_bot
7fc8e58d04a3568accf4b1ebaa297f917811f0ec
acd22fd45053cb20de86e7b0d89c5878696670f9
refs/heads/master
2022-12-27T02:37:55.941779
2020-10-11T16:36:15
2020-10-11T16:36:15
303,147,211
0
0
null
null
null
null
UTF-8
Python
false
false
1,704
py
import discord from discord.ext import commands from config import settings import random bot = commands.Bot(command_prefix = settings['prefix']) @bot.command() async def stupid_help(ctx): await ctx.send( 'help - для хелпы, очевидно.\n'+ 'check [civ, maf, com=1, don=1] - чтоб разослат...
[ "shurik@skotch.nirvana" ]
shurik@skotch.nirvana
544fa44c5473f9a479f1b85eb8a92d0430190313
5a69e7f47d6f30e434bff6a4742c61bb4a0b07b6
/pythonWeb1/zHomeWork1.py
de52cb50eca6f1969c92b29255b9b3268a31a45c
[]
no_license
Islotus/LearnPythonWeb
eb85cff9a53ed241992b4f982597825be6507fba
c601d7d55954e0160ff4c5167508ff16461b830f
refs/heads/master
2022-12-30T06:04:50.188180
2018-01-21T12:44:50
2018-01-21T12:44:50
118,332,090
0
1
null
2022-12-15T14:38:12
2018-01-21T12:18:56
Python
UTF-8
Python
false
false
2,332
py
#coding: utf-8 import socket """ 2017/02/16 作业 1 资料: 在 Python3 中,bytes 和 str 的互相转换方式是 str.encode('utf-8') bytes.decode('utf-8') send 函数的参数和 recv 函数的返回值都是 bytes 类型 其他请参考上课内容, 不懂在群里发问, 不要憋着 """ # 1 # 补全函数 def protocol_of_url(url): ''' url 是字符串, 可能的值如下 'g.cn' 'g.cn/' 'g.cn:3000' 'g.cn:3000/s...
[ "2791201278@qq.com" ]
2791201278@qq.com
61f629b40dc83c829a630b41609a344feeee182d
55e03c505043914590fce17c3626a8197a66d22e
/singleton.py
a5e9c6946feb230885b724a7f86b813bd400773c
[ "MIT" ]
permissive
dcesarz/-MIRROR-design_patterns_factories
17c575a96d29cec9af09604554752eff1d787b73
e276e25586dc631309febb0fe9eb5f1454627107
refs/heads/main
2023-04-05T23:06:32.393099
2021-04-30T09:45:58
2021-04-30T09:45:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
377
py
# https://stackoverflow.com/questions/6760685/creating-a-singleton-in-python # metaclass used for singleton implementation class Singleton(type): _instances = {} def __call__(cls, *args, **kwargs): if cls not in cls._instances: cls._instances[cls] = super(Singleton, cls).__call...
[ "noreply@github.com" ]
dcesarz.noreply@github.com
4edb5b20ad57964ba3c34820c435749c0c57a3c6
6863b1dd96103bb17e4f91d38763f7226184811c
/migrations/0001_initial.py
e1cdb55428e94f9bd24c275de17aad8b6a544af7
[]
no_license
gkrnours/django-foreignkey-example
d0fc00a847fdf11b28fe35d024be09f16e103d46
305562db83b7b1b7271ab7c58673340622062d30
refs/heads/master
2021-01-16T23:17:43.524009
2017-02-22T16:33:28
2017-02-22T16:33:28
82,827,066
1
0
null
null
null
null
UTF-8
Python
false
false
998
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2017-02-22 11:09 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Crea...
[ "gkr@jellycopter.net" ]
gkr@jellycopter.net
7c729a0fc6594a57b9d3c905a92694febaab14da
edcd3847115ae76b68195bdda54e04ed06a04318
/bulbs/content/south_migrations/0004_add_groups.py
85024af72caab5aaadc7f311d651cd4656d9300a
[ "MIT" ]
permissive
NeuralNoise/django-bulbs
b146725fdcb3bfb4158aec90d5fc0b7830d8fcbe
0c0e6e3127a7dc487b96677fab95cacd2b3806da
refs/heads/master
2021-06-07T08:11:31.996448
2016-09-21T19:35:32
2016-09-21T19:35:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,829
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import DataMigration from django.db import models class Migration(DataMigration): def forwards(self, orm): "Write your forwards methods here." PERM_CONF = { "publish_content": "Can publish content", ...
[ "v.forgione@gmail.com" ]
v.forgione@gmail.com
66058275ffb49f9d792cd59de52a36ef53c76667
af88433af66ed8234f1aa4373c44d5d41721f98f
/4pairs_joiner.py
9a99a90bad393e6f5b46881476b00b0ddf27dabb
[]
no_license
chohlasa/citibike_routes
e2f16fbb6c8412d1193ed008f31acf5fe2455ce8
de92224b29b1986914d5cad35bf0f614c75147e9
refs/heads/master
2016-09-05T22:14:22.809021
2014-04-20T18:43:03
2014-04-20T18:43:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,233
py
# This script takes the parsed bikeroutes (which are simply pairs of # lat/long points) and first filters out all the duplicates. This # includes lines with two identical endpoints (adds the ridecount), # and lines in opposite directions but two identical endpoints (adds # the ridecount). # Input file: 'processed_data...
[ "chohlasa@gmail.com" ]
chohlasa@gmail.com
a9fbb50669b46c5cb2fc455b2c7aa5aba75b5d1d
438abf2253e8015492ea1a5c6441c707a14909bc
/homework01/ceasar.py
672617ac5d7849eff2cd8489d617ebd3fedc1ee2
[]
no_license
emina13/cs102
508f2d5883fd8a97879b8508d60ab6684a653752
05ce638aa62d3ec8f9c5225c4953d3febd7b86be
refs/heads/master
2020-08-06T02:26:25.536254
2020-06-28T18:07:21
2020-06-28T18:07:21
212,799,968
0
1
null
null
null
null
UTF-8
Python
false
false
1,169
py
# -*- coding: utf-8 -*- def encrypt_caesar(plaintext): """ >>> encrypt_caesar("PYTHON") 'SBWKRQ' >>> encrypt_caesar("python") 'sbwkrq' >>> encrypt_caesar("Python3.6") 'Sbwkrq3.6' >>> encrypt_caesar("") '' """ new_data = [] for char in plaintext: if 'a' <= char <= ...
[ "noreply@github.com" ]
emina13.noreply@github.com
9ecfc23fc63a0e911bb99ee9a2c99df53c0a1829
44531cd3494bea5d3278c058f7adea6246bce676
/Invisible-Clock/background.py
b6329c454428cdbeb575ac871df3cd9142e18041
[]
no_license
Kowsihan-sk/Machine-Learning-Projects
9521de7645cc77524ed94cb10898af0eb0301c0a
a547336ec0a32cf42a439aaf56107b101337e9c8
refs/heads/master
2022-12-02T10:15:23.608311
2020-07-28T02:01:27
2020-07-28T02:01:27
283,067,295
0
0
null
null
null
null
UTF-8
Python
false
false
426
py
import cv2 cap = cv2.VideoCapture(0) # webcam while cap.isOpened(): ret, back = cap.read() # reading from webcam if ret: # ret is if op is successful or not # back is what the camera is reading cv2.imshow("image", back) if cv2.waitKey(5) == ord('q'): # save the im...
[ "kowsihan2sk@gmail.com" ]
kowsihan2sk@gmail.com
50d5f6ee92ac6e4055b601e0cb08de38b79a0d78
17381e0cc68b141a487338e25a4f348b9362faf5
/plugins/check_nrpe_CN.py
e615f03095b1f683c2f6a1ad88a02db4a6b9dcda
[]
no_license
amgaa/ClusterNap
9c662772db5e9b833c46af55130e9df5ffb79bd7
725427631de874aa0b70aad7f1879df0e86acb6f
refs/heads/master
2021-07-11T11:01:56.980416
2016-11-28T09:23:31
2016-11-28T09:23:31
10,011,357
0
0
null
null
null
null
UTF-8
Python
false
false
1,596
py
#!/usr/bin/env python # A ClusterNap compatible check_nrpe plugin import sys import os import subprocess import socket clusternap_dir = os.path.dirname(os.path.abspath(__file__)) + "/../state/nodes/" nodes = os.listdir(clusternap_dir) plugin_dir = "/usr/lib/nagios/plugins/" orig_plugin = plugin_dir +...
[ "amgaa.hpc@gmail.com" ]
amgaa.hpc@gmail.com
3e119cfa6d182283fd4105948f57cc3949392715
f6cadae90eb8fa3766acbb00a6c65fd2dfb3cb8d
/source/aiocomments/views/user_requests.py
5a2aab955d11fec38b9d07f0c05db87df8cf20f5
[]
no_license
RTyy/aiocomments
e6d3883777116a81653f12f498473883cebecbc4
2cb470462dbc1eaafbad1453f8f9050dc33d2412
refs/heads/master
2020-05-27T21:26:26.497154
2017-07-10T09:02:01
2017-07-10T09:02:01
94,754,607
0
0
null
null
null
null
UTF-8
Python
false
false
7,798
py
"""User Requests Controller.""" import aiofiles import trafaret as t from aiohttp.web import StreamResponse, FileResponse from datetime import datetime from core.exceptions import CoreException from core.db import acquire_connection from ..consumers import DlResponseConsumer from ..models import UserDlRequest, DlRe...
[ "a@itd.su" ]
a@itd.su
0b62db421f1b592394ee367b6221c3e0068a2a38
8477ff7ec00bc8307c51d7b5d0af7c35e0fa4758
/elecciones/admin.py
00a0af34cd8cdf926d224b134d34c7ff55482b93
[]
no_license
ciudadanointeligente/votainteligente-primarias
afc512fb47075cbc31419361a51b9857d9c8a064
11b91990d99b41541b899bfc68d2cbc8fb64a4e1
refs/heads/master
2021-01-10T19:26:04.374281
2013-09-10T20:43:19
2013-09-10T20:43:19
10,316,015
0
0
null
2013-09-10T20:43:20
2013-05-27T14:06:21
JavaScript
UTF-8
Python
false
false
1,770
py
# -*- coding: utf-8 -*- from django.contrib import admin from models import * class ColectivoAdmin(admin.ModelAdmin): model = Colectivo admin.site.register(Colectivo,ColectivoAdmin) class IndiceInline(admin.TabularInline): model = Indice class CandidatoInline(admin.TabularInline): model = Candidato ext...
[ "falvarez@votainteligente.cl" ]
falvarez@votainteligente.cl
ef6fafef4b74a8b781be2dd4dc742f5cb6dea588
1b9badf4c5dddc6a9e850ef99ad9f8a9ea449283
/data_structure/string/reverse_words.py
1be9b33c8aca44acc473bd5b3f9a4ff93203a77f
[]
no_license
contactshadab/data-structure-algo-python
e066a9f75f7063bb7317b22e9198f439f4a8001f
57cf2d4c28e26a94259a4eb03703f97f3ab5f351
refs/heads/main
2023-02-24T01:41:01.142659
2021-01-07T17:38:05
2021-01-07T17:38:05
305,084,168
1
0
null
null
null
null
UTF-8
Python
false
false
405
py
# Run time complexity: O(d) def reverse(text): if str is None: raise Exception('Illegal argument') result = [] words = text.split(' ') for i in range(len(words)-1, -1, -1): result.append(words[i]) return ' '.join(result) if __name__ == "__main__": print(reverse("Reverse me")...
[ "58193713+contactshadab@users.noreply.github.com" ]
58193713+contactshadab@users.noreply.github.com
840d64cf18e623fd8f1c7d4f4111377ff7fe60b7
2e62b9e4c92e054c80000b3d7084f74168262b68
/Ch03/destination_miles.py
370be7aac203394ab7fb676c1d874d8ba92174ea
[]
no_license
SegoviaJ/MyPythonCourse
e429de06c87920bc6667c17d24080270f5da5d6e
5d6f980b1e7dee1de3e257c5feb97b1dbbf15d32
refs/heads/master
2020-07-31T01:08:22.513060
2019-09-27T21:58:21
2019-09-27T21:58:21
210,427,871
0
0
null
null
null
null
UTF-8
Python
false
false
191
py
total_distance = int(input("How far from origin to destination? ")) travelled = int(input("How far have you gone? ")) remaining = total_distance-travelled print(abs(remaining),'miles to go')
[ "james.segovia@hotmail.com" ]
james.segovia@hotmail.com
6f22947c146cdb3d4b4e9218a0d8cdabc51ca34a
a211aafcd8ae2369cd3289fca6ced287ee09cc26
/algos_2/sprint_6_hashes/task_e.py
881eb70ff3dc32e6e169dd04b5e31c413aba9309
[]
no_license
vitt0ri0/yalgorithms
562d27449bbc0907c37d632b6eff4d5dbf9da208
1ff6bdc92b61baf03463f299e62c6199d05be040
refs/heads/master
2023-03-21T21:07:02.339838
2021-03-21T13:00:43
2021-03-21T13:00:43
287,198,070
1
0
null
null
null
null
UTF-8
Python
false
false
932
py
def task_e(arr): if len(arr) < 2: return 0 prev1 = arr[0] prev2 = None counter = 0 i = 1 mmax = 0 while i < len(arr): el = arr[i] el2 = arr[i-1] if counter: a = (el, el2) == (prev2, prev1) b = (el, el2) == (prev1, prev2) if ...
[ "vitt0ri0.progr@gmail.com" ]
vitt0ri0.progr@gmail.com
d1e21770e28bf318bb9670ca416bde39191d4f7d
6e0108c11132e63c81adbfab4309011b1f9f6dda
/tests/python/extra/clear_leaves.py
4d2f1e3a58a3fcb2fd07655efd2646b28d0a5f5f
[ "Apache-2.0" ]
permissive
scottdonaldau/ledger-qrl
c28a614ae52c44e53947e444abf078ec27041815
7a3b933b84065b9db2b775d50205efcdbed2399e
refs/heads/master
2020-04-12T07:12:25.687015
2018-12-19T02:55:43
2018-12-19T02:55:43
162,360,262
0
0
Apache-2.0
2018-12-19T00:15:27
2018-12-19T00:15:27
null
UTF-8
Python
false
false
269
py
from pyledgerqrl.ledgerqrl import * dev = LedgerQRL() start = time.time() for i in range(256): data = bytearray([i]) + bytearray.fromhex("00" * 32) answer = dev.send(INS_TEST_WRITE_LEAF, data) assert len(answer) == 0 answer = dev.send(INS_TEST_PK_GEN_1)
[ "lenijuan@gmail.com" ]
lenijuan@gmail.com
416b6e3bfd65de33b7549956af8ebdb24642ebc6
6cfcf1b6ef7afe49eebe4edbd21184fc914c7755
/Exercicios/ex024.py
a340c88d759c0fc679b1a895d2a9b21fbe5500a7
[]
no_license
mmagalha/Python
254df310a2a4f79258638321094296860bf4097a
95cbcc57c6f26d37954bc8835da885d32b4e607e
refs/heads/master
2021-05-02T07:42:56.872807
2018-02-12T01:05:02
2018-02-12T01:05:02
118,944,792
0
0
null
null
null
null
UTF-8
Python
false
false
208
py
#Exercício Python 024: Crie um programa que leia o nome de uma cidade diga se ela começa ou não com o nome "SANTO". cidade = str(input("Digite o nome da sua cidade: ")).upper() print(cidade[:5] == "SANTO")
[ "mmagalha@gmail.com" ]
mmagalha@gmail.com
a41d7737fdb64767088b4153d8994a0422a6044c
ca2dbcfeac6ab571a19bd7d91b7234fd461d09e3
/contact/settings.py
f6b23ebea5443fb592009997c1e7ce9e73093d67
[]
no_license
RahulSinghDhek/test-contact
51ebcc85e32a3d4fc86cb978824337b444f077be
ff14bb369e4caae6cd4db95388f7c87bf65c3227
refs/heads/master
2020-04-20T02:18:27.516767
2019-01-31T17:44:41
2019-01-31T17:44:41
168,568,336
0
0
null
null
null
null
UTF-8
Python
false
false
4,655
py
""" Django settings for contact project. Generated by 'django-admin startproject' using Django 2.1.4. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os #...
[ "rdhek@qti.qualcomm.com" ]
rdhek@qti.qualcomm.com
e4f2ffff2bf16986aa3131d71811dfb973f65ef7
9d126bd1569104d953f59005cae73197678c1566
/n-apekatter.py
35d7c584585e02c3aa2ee4b038a0ad99058296a4
[]
no_license
supermons/n-apekatter
75e84a9b5b9b3833e06b8a8bbdd00cb8716a4737
db78878e3e8913117e9b3a04e36ad67b686e9844
refs/heads/master
2020-04-01T07:54:38.056944
2018-10-14T19:35:57
2018-10-14T19:35:57
153,009,295
1
0
null
null
null
null
UTF-8
Python
false
false
496
py
n = 5 while n != 0: if n == 1: print("En liten apekatt sitter i ett tre") print("Den erter krokodillen: 'Du kan ikke ta meg ned'") else: print(str(n) + " små apekatter sitter i ett tre") print("De erter krokodillen: 'Du kan ikke ta oss ned'") print("Sa kom krokodillen, så diger og så s...
[ "noreply@github.com" ]
supermons.noreply@github.com
222b65cae3e331d1bb9d612840a859b2b8569ee0
238eef9423ef2a909d4531bb70b02afda7b25a38
/sutils/logger.py
33e816e792fd1f10ed271bc0cadfd1b99d080cd0
[]
no_license
sunqiang85/spytorch_v2
7f8f2209e5c6bc266484a6eebc5992d7accc3616
635c18cf2dd56bd92079fe761c70e73743a7890a
refs/heads/master
2021-05-21T14:51:52.986344
2020-04-03T11:13:57
2020-04-03T11:13:57
252,686,933
0
0
null
null
null
null
UTF-8
Python
false
false
511
py
from torch.utils.tensorboard import SummaryWriter import logging class Logger(): def __init__(self, __C): self.__C = __C self.tensorboard = SummaryWriter(__C.tensorboard_path) self.filelogger = logging.getLogger(__name__) logging.basicConfig(level=logging.INFO) fh = logging.F...
[ "sunqiang85@163.com" ]
sunqiang85@163.com
1b0b318977f920b37ea3424f58bc5c6b179df0c8
1eaf99e876b5fc5b05de1b41014dca6efc6601f1
/cupcake.py
23923a460a24f77dd8a4d3e9eda0372799595992
[]
no_license
puspita-sahoo/codechef_program
5466dfc675e11b276a76d30fd8a3787fa106590a
1fae1e9b89ebedb963216e5e79a673716e8b5cc9
refs/heads/master
2023-08-21T15:01:42.804814
2021-09-10T17:47:26
2021-09-10T17:47:26
405,164,524
0
0
null
null
null
null
UTF-8
Python
false
false
94
py
T = int(input()) for i in range(T): N = int(input()) ap = (N//2) + 1 print(ap)
[ "puspita.private@gmail.com" ]
puspita.private@gmail.com