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
9c7c5a026f89ccbfb7ccfb066f21b2da5e6310a4
03644227f51ff3ebfd0b5321d40c7d392dfcd315
/exchange_plane/venv/Scripts/easy_install-script.py
272aecf33bbda4ac76aa86b4c487a6da0a400aa8
[]
no_license
wufeipku/python
32fc26b85bafad15fe8f873d9806b6ab8d699310
1eb16a01d11aecd23097172a45caf79a4042f3bf
refs/heads/master
2020-04-29T15:11:11.065925
2019-03-18T07:28:45
2019-03-18T07:28:45
176,220,111
1
3
null
null
null
null
UTF-8
Python
false
false
453
py
#!E:\python36\Pycharmproject\exchange_plane\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?...
[ "wufei.pku@163.com" ]
wufei.pku@163.com
45b19b1cab318c1d3e4c9a7783e0ebccc5e46929
ff5d86192ad048737716528d4d59e0bc506e0bfd
/76.py
d4a3a4d3ce102fc5e8151c223ffe9deb4eddfdb7
[]
no_license
ggddessgxh/aron
4c7d0b42ee8a8ef9c8edf5e2528beb36cf5b632f
69c42a0269d46d88287bc753a4e860d3ea5311f7
refs/heads/master
2020-04-17T11:46:54.915655
2019-01-31T13:36:27
2019-01-31T13:36:27
166,555,227
2
0
null
null
null
null
UTF-8
Python
false
false
167
py
a = 809 for i in range(10, 100): b = i * a if b >= 1000 and b <= 10000 and 8 * i < 100 and 9 * i >= 100: print(i) print(i*809)
[ "1249440711@qq.com" ]
1249440711@qq.com
611e6bea09e4fc1314eb651ee69043dad69aec8d
0af76aee48453b64d2f09dfadeb79f4a4ac6fef3
/solution/practice/data-structures/multiple-choice/how-well-do-you-know-trees/solution.py
fc9723e63948c87114dd0dc2b22b2b8d0c594e5f
[ "MIT" ]
permissive
Abhishek2019/HackerRank
99ee5d437eb3abe8f041a04bea3968848605a811
d8a297e2707545957452d07ca564086e3e34a527
refs/heads/master
2021-05-03T12:06:18.488528
2019-10-30T17:19:59
2019-10-30T17:19:59
120,493,921
0
1
MIT
2019-10-30T17:20:05
2018-02-06T17:08:34
Python
UTF-8
Python
false
false
13
py
print("n-1")
[ "root@localhost.localdomain" ]
root@localhost.localdomain
64dcffc9f3b11462172adb89a4680a202824afe1
669b9fd39398de1fc55ad7da8e7f3182c3d25ade
/sonar.py
aa1179e0e5de9bb69342c6ea8306a32da0a67705
[ "Apache-2.0" ]
permissive
milos85vasic/Website-Sonar
3fa811082221f90225d174b17a8dce31c69d05f3
406fa3f1baa82d1a7279c0d50dada9b141dec506
refs/heads/master
2020-04-15T16:11:10.500880
2019-01-31T13:59:25
2019-01-31T13:59:25
164,824,149
2
0
null
null
null
null
UTF-8
Python
false
false
7,171
py
import os import sys import time import json import urllib2 import requests import logging import os.path from requests import ConnectionError from logging.handlers import RotatingFileHandler param_configuration_name = '--configuration' configuration_default_file = 'configuration.json' configuration = {} elapsed_tim...
[ "milos85vasic@gmail.com" ]
milos85vasic@gmail.com
360fbd0df75ba142aadd5589508fdb2d95ba7602
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_074/ch117_2020_04_01_19_24_01_200930.py
446a96f7337eaf516aa30fe9c7ef40edbc6f0571
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
225
py
import math def snell_descartes (n1,n2,c): o1>=o2 c=math.degrees(o1) d=math.degrees(o2) a=math.sin(c) b=math.sin(d) b=a*n1/n2 o1<=90 and o1>=0 if o1==0: o2==0 and a==b==1 return(o1)
[ "you@example.com" ]
you@example.com
dee362941322f9741b27f098fc60916cc88f260a
b5e3b4b8e2c70e06e3b19bcd86789b83028da78f
/django_project/blog/migrations/0009_auto_20190620_2016.py
fd3d4764fd5b6fae3dd1dfcc853bd20a330c5b05
[]
no_license
feridbedelov/Django_Project_Blog_Aurora
334593d2d523f38e7c472b6e8439cd19f777ec6a
130f3db455590333c45d40c042722f5908e7bb32
refs/heads/master
2020-07-31T15:47:39.431799
2019-09-24T17:41:33
2019-09-24T17:41:33
210,662,296
0
0
null
null
null
null
UTF-8
Python
false
false
388
py
# Generated by Django 2.2.1 on 2019-06-20 16:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0008_post_rating'), ] operations = [ migrations.AlterField( model_name='post', name='rating', fi...
[ "User@DESKTOP-K24KG53" ]
User@DESKTOP-K24KG53
900753b09ad104145d9f0ffbfa579ec628962275
f62cf89d4e87a053c442e24f50cef4eb0ada2263
/01-Python3基础语法.py
ed343984a27df1a3348f6ad4e7e5b2fdf7dd6e7e
[]
no_license
Yushallchao/PythonPractise
e9024a45b01658805ad39c47c86574d241b11f5e
4d5fe0a7870af9b38569d715d73f8f057ce9b37d
refs/heads/main
2023-01-31T20:54:54.449565
2020-12-10T06:10:57
2020-12-10T06:10:57
316,146,580
0
0
null
null
null
null
UTF-8
Python
false
false
1,602
py
#默认情况下,Python 3 源码文件以 UTF-8 编码,所有字符串都是 unicode 字符串。 当然你也可以为源码文件指定不同的编码: # -*- coding: utf-8 -*- #!/usr/bin/python3 # coding=utf-8 # 第一个注释 print ("Hello, Python3!") # 第二个注释 ''' 第三注释 ''' """ 第四注释 """ if True: print ("True") print("Hello, Python3! again") else: print ("False") str = 'Runoob'#python中单引...
[ "yushallchao@163.com" ]
yushallchao@163.com
5352686f4e473327fc059b46ee1eb30a3308f534
8efd2eccd36946f430f1243e13070685d4695bfe
/satfire/tests/test_utils.py
bc3d156a7a881af9851ed304324705627a97bc8a
[]
no_license
pytroll/satfire
5ca99ccb2b346692eb5fd136c917fd74e55d36d5
f8bc309ed84aa92673cc02c61eeef0cc997b662b
refs/heads/master
2020-05-05T13:36:52.702079
2020-02-04T13:29:32
2020-02-04T13:29:32
180,085,989
4
2
null
2020-02-04T13:29:33
2019-04-08T06:40:30
Python
UTF-8
Python
false
false
8,356
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2017, Panu Lahtinen / FMI # # Author(s): # # Panu Lahtinen <panu.lahtinen@fmi.fi> """Unit testing for utils """ import sys import os.path from collections import OrderedDict import numpy as np from satfire import utils from posttroll.message import...
[ "pnuu+git@iki.fi" ]
pnuu+git@iki.fi
4e6028989cc9120f76b6ac9bca31ed716230e93f
001b95da5e994198a53c21f39f0e5b2c88fcd885
/apiloaderv2.py
7ad66da9d150f4797a02b8be4897272e256e9e83
[ "Apache-2.0" ]
permissive
vunetsys/conf-analysis
43ed78a4e5859ece4b94067156825c0478a6833e
20945710646ac346caff5d2d7b45a44402721426
refs/heads/master
2022-12-05T15:11:04.506836
2020-08-28T11:06:48
2020-08-28T11:06:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,582
py
import csv import json import requests from papertracker.models import ConfPaper, ConfAuthor, Conference csvfile = open('C:/Users/Mattia/Pictures/csrankings.csv', encoding='utf-8') a = requests.get('https://dblp.org/search/publ/api/?q=conf/fast/2011$&format=json&h=1000') c = a.json() conf = Conference.objects....
[ "mtt.manzaroli@gmail.com" ]
mtt.manzaroli@gmail.com
d772e8a81b0341e954f8e91fbfad37c97cf003c4
b7fa6ec316abd8b0df7a873f2a0f82ed55e13c0e
/Datos/Operator_In-Contando_Vocales.py
dfd28a47d4377f0b3ad975603c990ad5a5576c59
[ "MIT" ]
permissive
CaosMx/Code-Exercises-in-Python-Language
5230ec32f9606563bc92d77415f11b12946803f4
0693e445a48cf8b06432affbf72c9182ce9cfb20
refs/heads/main
2023-02-01T16:03:05.763750
2020-12-14T02:41:29
2020-12-14T02:41:29
321,198,830
0
0
null
null
null
null
UTF-8
Python
false
false
949
py
# CaosMX # Dic 2020 # Ex Python Practica ''' Comprobar dada una palabra, la cantidad de vocales que contiene: Usando el operador in -> Nos dice en determinada posición de un string si el caracter existe en otro string predeterminado: Siguiendo Curso de Python de Manuel Gonzalez: https://www.youtube.com/cha...
[ "ing.manuel.arreola@gmail.com" ]
ing.manuel.arreola@gmail.com
d872427d19cab578ba3812d427c71e3f1ce07cee
efea54ec2c6b63ca8904fb3fcbee94102aa256ed
/AprilCookpff/1.py
3cad934b5a7b7e8eff188c6aa3f4ffa12dc55f2b
[]
no_license
ArefinMizan/Codechef-Solutions
427198e736da8089001818b96109ab7a2e637497
01dd0caab636c3c9d39be87ee57ba867f3ea4c87
refs/heads/master
2023-03-15T23:00:13.347656
2020-01-20T09:59:17
2020-01-20T09:59:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
154
py
def main(): for _ in range(int(input())): (n,m) = map(int, input().split()) print((n-1)*(m-1)) if __name__ == '__main__': main()
[ "dillu9878@gmail.com" ]
dillu9878@gmail.com
26464ce47e44f9c4fe06a0efc68c7c7a9c866238
f3d3ba2921e65a352e6f78fe02f04ddb8a55a8cd
/data/presets.py
3f876e79971ed19e57a852fb53b9cf01c931a3aa
[]
no_license
ejtalbot/piscripts
ac9f68abce1c2c0711cfb7187cae42fa396feee8
b5f86edaa8d748108b8316c2b21c79bc2d029071
refs/heads/main
2023-07-02T22:23:02.573466
2021-08-07T02:16:08
2021-08-07T02:16:08
341,776,852
0
0
null
null
null
null
UTF-8
Python
false
false
304
py
snake_templates = { "rainbow": ["red", "orange_red", "yellow", "electric_green", "blue", "violet"], "purple_pink": ["pink_orange", "magenta", "purple_pizzazz", "violet"], "hot": ["red", "persian_red", "orange_red", "selective_yellow"], "cool": ["aquamarine", "teal", "blue", "violet"], }
[ "erikjamestalbot@gmail.com" ]
erikjamestalbot@gmail.com
efb691981ff05fe7bcb03faa225d88b4bee1bde0
084d1b9cb341a1b943f95e98ee3cf680df502ba9
/Products/mediaPage/tests/base.py
b0e818b0d28196ee7fc5c4b6020c8236190fd002
[]
no_license
intk/Products.mediaPage
629aa7c8f98e308b536f997cafbab177ba6ae1a5
a3f4b0c900565b438593888a3009f8e7e4867792
refs/heads/master
2016-09-06T13:57:17.209247
2014-09-18T08:56:37
2014-09-18T08:56:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,990
py
"""Test setup for integration and functional tests. When we import PloneTestCase and then call setupPloneSite(), all of Plone's products are loaded, and a Plone site will be created. This happens at module level, which makes it faster to run each test, but slows down test runner startup. """ from Products.Five import...
[ "andreslb1@gmail.com" ]
andreslb1@gmail.com
16a90710f419b70d6f28a6bc8e178229f4dd5d27
aeae1f547225452774a109f2e9a5a2c55f4d866b
/tvm_cudnn/lstm.py
391ebf12c076b61203b4fde8f61cb7e7788ae2b7
[]
no_license
ybai62868/MixPrecisionTensorCore
afb73883593f5c93618d1a626eebb9837e630e2d
9466d378186adb21156b7e50636f74e5144539e4
refs/heads/main
2023-08-14T11:12:11.634726
2021-10-18T15:02:27
2021-10-18T15:02:27
401,226,540
1
0
null
null
null
null
UTF-8
Python
false
false
1,989
py
from __future__ import print_function import argparse import time import torch from torch.autograd import Variable torch.backends.cudnn.benchmark = True def update_progress(progress): print("\rProgress: [{0:50s}] {1:.1f}%".format('#' * int(progress * 50), progres...
[ "ybai62868@gmail.com" ]
ybai62868@gmail.com
2b44e8f347c687e6cfc33ec6220eb5f18acfb6ef
e287d17181ca901f52f81662dddcb6e6e34af9d0
/Fallout's Hacking Game.py
1361bf710d7eaca2e9b01500a45c519e57fff22b
[]
no_license
MarkMillerKeene/DailyProgrammer
92819771dce19e7e4671f34198f57127bed9d39e
f03b63051c84827e386c08f96b3f95df393317c3
refs/heads/master
2021-01-17T11:54:53.355033
2014-11-05T20:48:17
2014-11-05T20:48:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
22
py
__author__ = 'peiggs'
[ "mark.miller@ksc.keene.edu" ]
mark.miller@ksc.keene.edu
bbadb5f2b9ced965d16217dd49cadebc56d5713c
2a720f618609e6e28a01cba5f915c5b52285db53
/donghyeon's python/python.review(1).py
04d0623a491368075bdddff1b1625e2910522e80
[]
no_license
kai3n/fastcampus
87f923dda0712a42644f67581650ccd99a1cd2e8
9363c948b50e1789a64f58ce206d49d71d93c801
refs/heads/master
2021-01-10T09:34:56.222510
2016-02-16T11:22:02
2016-02-16T11:22:02
49,542,285
11
4
null
2016-01-13T13:45:25
2016-01-13T02:01:23
Python
UTF-8
Python
false
false
23,920
py
'''파이썬 정리 파일 1 . 파이썬에서 변수 혹은 리터럴값의 타입을 알고싶다면 type()를 사용하면된다''' #tpye() a= 7 print('----1번----') print(type(a)) print(type(58)) print(type(99.9)) print(type('abc')) """2 . 파이썬의 연산자 특징 알아보기""" #...
[ "jkoon2013@gmail.com" ]
jkoon2013@gmail.com
f92c4c2d30adeab12a1909fe55ab12ef7f60d039
0bff1f5481f5f83d2053a165839489a1f787e433
/tweets/models.py
0f0457fe9ac4c66c0ead9896570035fa931205ed
[]
no_license
tong1yi/my-django-twitter
d92b81a5f74f1251fae273ee11cb07851bd97565
c1909b7f541fe8062bed6e5add068b0e855cfec9
refs/heads/main
2023-06-06T06:03:39.629167
2021-06-24T03:14:45
2021-06-24T03:14:45
380,594,421
0
0
null
2021-06-26T20:54:36
2021-06-26T20:54:35
null
UTF-8
Python
false
false
3,888
py
from django.db import models from django.contrib.auth.models import User from utils.time_helpers import utc_now from django.contrib.contenttypes.models import ContentType from likes.models import Like from tweets.constants import TweetPhotoStatus, TWEET_PHOTO_STATUS_CHOICES # https://stackoverflow.com/questions/351296...
[ "wilburzjh@gmail.com" ]
wilburzjh@gmail.com
75b886785f83e8dc3312498f8d4259af161c02b6
337976db44254cb997c721139298328416af4086
/study/part1/dump_db_classes.py
f53647f2e7bbacd3e73ac19d7d18643ad1fcd836
[]
no_license
vzhukov85/python-study
3f5d00aa2f84a9b01432d0c0fb378a4b79f46442
28b84be1ce50247b8f0b89a8a4b285029c924cde
refs/heads/master
2020-09-25T23:12:00.044547
2020-01-15T06:46:13
2020-01-15T06:46:13
226,102,904
0
0
null
null
null
null
UTF-8
Python
false
false
180
py
import shelve db = shelve.open('class-shelve') for key in db: print(key, '=>\n', db[key].name, db[key].pay) bob = db['bob'] print(bob.lastName()) print(db['tom'].lastName())
[ "erzhukov@i-teco.ru" ]
erzhukov@i-teco.ru
7cfa51f0591a736e57700f3cb0a8d61f4217297e
f3af403b0f17ba952bdca1554d5d7bcba0b95c05
/virtual/bin/flask
4272a265fad124463ed730b2b231cdae1d819d57
[ "MIT" ]
permissive
Daniel-darnell/Pitchworld
3157256470b49a24e770718a3cc2dbe713ac475a
7b9b53a0bbf0a6c191189c5780fdcaabcf89b398
refs/heads/master
2023-01-06T02:52:44.270973
2020-11-02T09:14:31
2020-11-02T09:14:31
309,213,724
0
0
null
null
null
null
UTF-8
Python
false
false
257
#!/home/moringa/Desktop/FullStack/Projects/Pitch/virtual/bin/python # -*- coding: utf-8 -*- import re import sys from flask.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "darnelldanny1997@gmail.com" ]
darnelldanny1997@gmail.com
8ab113cf60a3a4a75b3d8b50adeeef8e0c253799
22b78677bfe20f4c548a8c6cadfaeebcc635a22e
/venv/bin/pip2
e606e424a07a9bdbdd662dc790e5b6d64708c181
[]
no_license
mr-kaveh/flasksocialapp
57778db7bab285d514502d4dd0ef43245a0f1d5c
d9fa096c53b3a202191d2d9e0373ff1b39663421
refs/heads/master
2020-04-19T02:33:34.151348
2019-02-01T05:12:25
2019-02-01T05:12:25
167,907,095
0
0
null
null
null
null
UTF-8
Python
false
false
249
#!/home/hossein/myScripts/socialApp/venv/bin/python # -*- coding: utf-8 -*- import re import sys from pip._internal import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "mr.hdavoodi@gmail.com" ]
mr.hdavoodi@gmail.com
344bf52717197625def8b9d5930b228ba011b004
27db9295cde6fe07ae4888e3a9c151864642c673
/blobs.py
f3c880b683470662d5e89f90f7171551e532be87
[]
no_license
dariodotti/tracking_traj_experiment_indoor_outdoor_dataset
2ec9d558c8276b9327505c27c9ab0b04d27bb9ad
0acd8c3f8f138844ee93c4291111dd6fa9f31666
refs/heads/master
2021-01-12T10:25:59.095397
2016-12-14T11:20:14
2016-12-14T11:20:14
76,453,081
0
0
null
null
null
null
UTF-8
Python
false
false
3,894
py
import cv2 import pickle import numpy as np from multiprocessing.dummy import Pool as ThreadPool from os import listdir from os.path import isfile, join import img_proc as my_img_proc import main as main_camera017 def my_function(k): print k temp_track = [] temp_track_append= temp_track.append map(lam...
[ "dario.dotti@maastrichtuniversity.nl" ]
dario.dotti@maastrichtuniversity.nl
ebbb121bfb497e7f272ba80d191c5af2c3a9b31d
04adc1a7ae0f9577076321a5931b7816cacc980b
/Exercicios/media-de-lista-com-input-e-1-while.py
54a19fcbeed414daebbc49a459bf230dbdd8f22b
[]
no_license
jacquesfelipe/python-learning
455db8ab474edf3e230c20667aa54d194381b7dd
668a0c6393655e18841c5ca76bfed9de54d13f32
refs/heads/main
2023-06-30T11:11:05.384635
2021-08-08T21:34:59
2021-08-08T21:34:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
278
py
"""Média de lista com input""" notas = [] x = 0 soma = 0 while x <= 3: notas.append(float(input("Digite qual nota gostaria de adicionar: "))) soma = soma + notas[x] x = x + 1 media = soma / (len(notas)) print(f"A média das notas: {[notas]} é: {media}")
[ "jacquesfelipej@gmail.com" ]
jacquesfelipej@gmail.com
6343e86e13ef3b29cc0d65db953cb6ba85f7283a
d8f9b8131cfac411bf551a20e9a5b863160ffb79
/PreProcessing.py
76985ef3acbd2cd67be4f32d2d4c04f3a3344065
[]
no_license
artificial-inteligence/AnacondaTest
dbc59b923a7de843ae3adb81b354c73da5a12e4c
eebde6a95d6f6f65593c5a1e4e50f9296a917dbc
refs/heads/master
2020-04-21T07:41:30.847875
2019-02-11T16:52:32
2019-02-11T16:52:32
169,398,594
0
0
null
null
null
null
UTF-8
Python
false
false
663
py
# openCV import cv2 import numpy as np from matplotlib import pyplot as plt from skimage.color import rgb2gray class PreProcessor: def __init__(self): pass def applybilateralfilter(self, img): # apply bilateral filter on image blur = cv2.bilateralFilter(img, 9, 75, 75) retur...
[ "stbbap@gmail.com" ]
stbbap@gmail.com
196c4f27e79af13c60f2efd7ff86c0e6b8733c45
f31391ec70caf12b5c04634c6375f768b7ddc854
/Full_Project/PyMongo/Main.py
808e97469b36fdbbec9610da01b09f07a5f9b9e7
[]
no_license
poklj/Python
8daebeff851a494b35c3ef0561bd7dfb5ac4ea94
acbf3b8705220fb7c0afe8ccb40381f9e337838d
refs/heads/master
2021-08-23T10:53:44.729608
2017-12-04T15:38:07
2017-12-04T15:38:07
112,198,401
0
0
null
null
null
null
UTF-8
Python
false
false
86
py
from PyMongo import * def Main(): pass if __name__ == "__main__": Main()
[ "compgeek223@gmail.com" ]
compgeek223@gmail.com
abf58fb31e51c78bb90abe08fcf94e44fc5f36c0
1985d1a7462d537e1f43055e3c75d91145407ff9
/Next_Permutation.py
fcc699c978f678ede7468f2b601e8c68627e87c9
[]
no_license
yeonnseok/algorithm_practice
d95425e59b7b579a70dbbd932e4fb691c57f4534
c1468f23b2c077ecadac1fa843180674b6ea3295
refs/heads/master
2020-04-28T08:51:32.728010
2019-04-05T03:20:44
2019-04-05T03:20:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
498
py
def swap(list, a, b): temp = list[b] list[b] = list[a] list[a] = temp def next_permutation(c_list, n): i = n - 1 while c_list[i - 1] >= c_list[i]: i -= 1 if i <= 0: return False j = n - 1 while c_list[j] <= c_list[i - 1]: j -= 1 swap(c_list, j, i - 1) j = n - 1 ...
[ "smr603@snu.ac.kr" ]
smr603@snu.ac.kr
d953b09cacf2af04049f33692d31022f851a9c4b
29408c953766ac1f36b1a94c683bcd81729beb05
/modin/engines/base/frame/data.py
538f7dcf997100d3cba74d153e2656a651f0f8f2
[ "Apache-2.0" ]
permissive
dineshsonachalam/modin
bd7e4081a0aafa3e5db3054a524475fb53324bb6
453024764ffdad5000047a4cfaa1e322d9941b6e
refs/heads/master
2020-07-15T13:51:01.063607
2019-08-30T05:46:50
2019-08-30T05:46:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
48,076
py
from itertools import groupby import numpy as np from operator import itemgetter import pandas from pandas.core.dtypes.cast import find_common_type from pandas.core.index import ensure_index from pandas.core.dtypes.common import is_numeric_dtype from modin.backends.pandas.query_compiler import PandasQueryCompiler from...
[ "12377941+williamma12@users.noreply.github.com" ]
12377941+williamma12@users.noreply.github.com
c2329e1d0a37e88a0fcbfb5d6a743b80e8753c28
df3853b41ed05d86f5bcd992fcc265f637c67784
/big_deal/test2/14.py
d79e788612e926b9cf62a3a53eddc0a537b10ca5
[]
no_license
KseniaMIPT/Adamasta
6ab0121519581dbbbf6ae788d1da85f545f718d1
e91c34c80834c3f4bf176bc4bf6bf790f9f72ca3
refs/heads/master
2021-01-10T16:48:31.141709
2016-11-23T21:02:25
2016-11-23T21:02:25
43,350,507
1
0
null
null
null
null
UTF-8
Python
false
false
1,143
py
def digraph_from_input(): N = int(input()) digraph = {} for i in range(N-1): line = input().split() if line[1] not in digraph: digraph[line[1]] = {line[0]} else: digraph[line[1]].add(line[0]) if line[0] not in digraph: digraph[line[0]] = se...
[ "ksenia22.11@yandex.ru" ]
ksenia22.11@yandex.ru
ed8c4e4a14c88aebc9af0bec316c78844f6d49f5
2e568d6e7f18a404d844ab22e949c685c2798c6a
/PyMaforo/run.py
077cc123ffbdcc9b451aae2db18fcb81e6145c98
[]
no_license
JoeArtisan/PyMaforo
7c4caabc535f18f7cc698da83b0c21f7c6aa072b
ecadc1aafa500dbad2905fc40a9eae9b9d706f41
refs/heads/master
2023-04-20T03:17:54.126123
2021-05-17T21:00:00
2021-05-17T21:00:00
220,867,517
0
0
null
null
null
null
UTF-8
Python
false
false
2,309
py
import serial import time import os clear = lambda: os.system('cls') serial_port = 'COM4' baudrate = 115200 go = True def _ConnectToArduino(): arduino = serial.Serial(serial_port, baudrate, timeout=.1) time.sleep(2) #give the connection two seconds to settle return arduino def _sendD...
[ "noreply@github.com" ]
JoeArtisan.noreply@github.com
9df82940e19f038b7e3d640228efb7fbca2b4f1d
e16d84730ddddd964e13b1aed9cea1df5875cd5b
/flaskProject/venv/Lib/site-packages/elementpath/xpath30/xpath30_parser.py
d29f151ac7bbc3b34148e130ce187dc1d31c20db
[]
no_license
MarkBenjamins/NHL-Stenden-RestAPI
0b98c539bb578cb832525275f36d03889b567a02
2756a2f5654cbbeab4e39c761e64329f8dd78014
refs/heads/main
2023-03-28T04:54:08.922928
2021-04-02T09:58:59
2021-04-02T09:58:59
339,778,545
1
0
null
null
null
null
UTF-8
Python
false
false
42,479
py
# # Copyright (c), 2018-2020, SISSA (International School for Advanced Studies). # All rights reserved. # This file is distributed under the terms of the MIT License. # See the file 'LICENSE' in the root directory of the present # distribution, or http://opensource.org/licenses/MIT. # # @author Davide Brunato <brunato@...
[ "55874150+MarkBenjamins@users.noreply.github.com" ]
55874150+MarkBenjamins@users.noreply.github.com
5fe73d8da91faf5bfb74762110c33cfcca7d1602
c9da70f24fc278adf5585c9d8e67163e428d1ccc
/payslip/ex_1/cli.py
12fc9129d2277fbbd2ddede785ca689b55d47f62
[]
no_license
irinaBaB/payslip_task
71f736daf8bae392aa275cf04e25788fee055f96
2ffb910d50cf1292bfbc49dad9877e9b39185643
refs/heads/main
2023-01-13T03:36:44.470235
2020-11-18T04:18:01
2020-11-18T04:18:01
301,219,808
0
1
null
null
null
null
UTF-8
Python
false
false
713
py
from pay_period import pay_period from tax_calculation import * from user_details import user_details print("Welcome to payslip generator!") user_name, surname = user_details() gross_inc, annual_sal = gross_income() my_super = super_k(gross_inc) inc_tax = income_tax(annual_sal) net_inc = net_income(gross_inc, inc_ta...
[ "irina.babicheva@myob.com" ]
irina.babicheva@myob.com
b9cd9b43fb64eb1805b8b9e3a30ddee088c9540c
76f59c245744e468577a293a0b9b078f064acf07
/3.longest-substring-without-repeating-characters.py
f5ddb791b9a978f2ed72a471cf53a960cb68a2a9
[]
no_license
satoshun-algorithm-example/leetcode
c3774f07e653cf58640a6e7239705e58c5abde82
16b39e903755dea86f9a4f16df187bb8bbf835c5
refs/heads/master
2020-07-01T10:24:05.343283
2020-01-13T03:27:27
2020-01-13T03:27:27
201,144,558
0
0
null
null
null
null
UTF-8
Python
false
false
562
py
# # @lc app=leetcode id=3 lang=python3 # # [3] Longest Substring Without Repeating Characters # class Solution: def lengthOfLongestSubstring(self, s: str) -> int: if not s: return 0 c = 0 for i, _ in enumerate(s): characters = '' for j in s[i:]: ...
[ "shun.sato1@gmail.com" ]
shun.sato1@gmail.com
a47988e12caea650f9b6dc78153c6e2a74602047
5aa0e5f32d529c3321c28d37b0a12a8cf69cfea8
/client/local_objects/ClientPlayerManager.py
8acf4ecba25471df1e138e3be612cc0741d8054f
[]
no_license
sheepsy90/survive
26495f1ff2d8247fbb9470882f8be9f5272e7f2c
0eddf637be0eacd34415761b78fc2c9d50bc1528
refs/heads/master
2021-01-09T05:55:16.546762
2017-02-03T20:15:28
2017-02-03T20:15:28
80,864,391
1
0
null
null
null
null
UTF-8
Python
false
false
974
py
# -*- coding:utf-8 -*- from client.local_objects.PlayerModel import PlayerModel class ClientPlayerManager(object): def __init__(self): self.players = {} self.me = None def add_new_player_position(self, player_id, player_name, position, is_moving, is_me): if player_id not in self.play...
[ "robert.kessler@klarna.com" ]
robert.kessler@klarna.com
0753dd9e69c7ef1f6fcaf2dd6e5751a5c5cb12b6
7465b8929289b1a435750fc825d558ae711e84a5
/client.py
2fee9c1297ef429e9a3a0e4fe8c2a24615b67df1
[]
no_license
mifcom-iv/BarcodeScanner
3030143b31bb3cc3927a23cd2d8434e8569e82eb
619d2fdac6248267486c00b5086be8f2a84d5f6c
refs/heads/master
2023-01-07T14:25:47.121139
2020-11-03T13:50:48
2020-11-03T13:50:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,123
py
import cv2 import time import os from pyzbar import pyzbar import simplejson as json import requests import threading import random cap = cv2.VideoCapture(0) font = cv2.FONT_HERSHEY_PLAIN cap.set(cv2.CAP_PROP_AUTOFOCUS, 0) cap.set(cv2.CAP_PROP_FOCUS, 100) cap.set(3, 1280) cap.set(4, 1024) def update_detection(): ...
[ "skipperro@gmail.com" ]
skipperro@gmail.com
11120973f76467afd73c838f90f5d5d2a6539f40
21fb99baaaeaed674cd99fb1a5d39ea54a1db827
/CmsHi/HiHLTAlgos/python/__init__.py
55ffe5e80af7d2e370ef2a9f4aa62afbf98ad891
[]
no_license
kurtejung/PurdueForest
e413d4bc953df386a50d01ca09d1b648d07a926c
9c7de9e7452b0837a872cfdd428244cb46b55322
refs/heads/master
2020-05-16T20:32:30.896495
2014-06-02T18:42:18
2014-06-02T18:42:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
184
py
#Automatically created by SCRAM import os __path__.append(os.path.dirname(os.path.abspath(__file__).rsplit('/CmsHi/HiHLTAlgos/',1)[0])+'/cfipython/slc5_amd64_gcc462/CmsHi/HiHLTAlgos')
[ "kurtejung@gmail.com" ]
kurtejung@gmail.com
4055c0b8d5cfcebbc7f81b1354a620ded0422057
bde76b010eebfa338b4556bbe6af85a9e093a773
/ivpk/plots.py
28af37151cb04e38e9698146717b98e62801a3c7
[ "MIT" ]
permissive
yanshouyu/human-iv-pk
81a98cae1983feef68d4c6692096e123771a5880
d4517fce11dfa407b2b125afcdeb213fcb01bed4
refs/heads/main
2023-07-15T02:03:14.255631
2021-08-19T08:59:08
2021-08-19T08:59:08
393,326,063
1
0
null
null
null
null
UTF-8
Python
false
false
2,432
py
"""Visualization module, including both data and molecule visualization. """ from rdkit import Chem from rdkit.Chem.rdchem import Mol from rdkit.Chem import Draw from rdkit.Chem.Draw import rdMolDraw2D import numpy as np from typing import Union, Tuple from matplotlib import pyplot as plt from .utils import morgan_bit_...
[ "yan.shouyu@foxmail.com" ]
yan.shouyu@foxmail.com
f7876ee7e8a2e78ce0603729c772cba69f9f259d
f61db5940e29773aba8fc342a21de00e91a5ab2e
/base/day15/note/demo2/testcases.py
d496be253d9081853b34930bf67e2d3b34b715c9
[]
no_license
liyaozr/project
c17a9dcbcda38fe9a15ec4c41a01242a13695991
0b0fc10e267ceb19f6792b490fede177035459fe
refs/heads/master
2020-11-29T18:38:03.297369
2020-03-10T01:11:00
2020-03-10T01:11:00
230,190,916
0
0
null
null
null
null
UTF-8
Python
false
false
2,518
py
""" ============================ Author:柠檬班-木森 Time:2020/2/7 21:29 E-mail:3247119728@qq.com Company:湖南零檬信息技术有限公司 ============================ """ import unittest from py26_15day.demo2.register import register from py26_15day.demo2.login import login_check from py26_15day.demo2.readexcel import ReadExcel class Regis...
[ "lyz_fordream@163.com" ]
lyz_fordream@163.com
49915c6689b5cfb63c853499fc46782cbfb4e004
02d6aa27cffce7620975cc1750b1fdc33cfb4a52
/gsf/processed/gsf_sub_routine_run_seqs/func_code.py
cf44c59a8295fee0c9b6d81b1e4b41edab648578
[]
no_license
AlgorithmicAmoeba/picklejar
d8d54216e35b8f10c814a8837b536d480e3ced63
8b44829149f39c6e7538b52ae1fae62be3270d93
refs/heads/master
2022-12-28T18:33:25.397765
2020-10-21T07:43:53
2020-10-21T07:43:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
568
py
# first line: 501 @PickleJar.pickle(path='gsf/processed') def gsf_sub_routine_run_seqs(): """Returns the run sequences for the predict, update and resample subroutines Returns ------- run_seqss : List [predict; update; resample] x [N_particles; run_seq] """ N_particles_gpu = numpy.array...
[ "29543948+darren-roos@users.noreply.github.com" ]
29543948+darren-roos@users.noreply.github.com
fa8c94040d155a351e2b5c25b1d46aa6b8dd8ab6
eefa9973b0cbafd3c05b795be8b85fc1ded9fff2
/healthapp/migrations/0006_auto_20211012_1736.py
73363350baff31c1c9912e5261841b199251de72
[]
no_license
HwToLrn/opencvhealth
ccb7de8b51a963af4fa37f74d2e00922cc3dcfcd
d693d2f9040f371fdce63abcbdbc040a9cff7390
refs/heads/main
2023-09-01T01:23:56.444194
2021-10-12T19:12:10
2021-10-12T19:12:10
416,202,434
0
0
null
null
null
null
UTF-8
Python
false
false
711
py
# Generated by Django 3.2.8 on 2021-10-12 08:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('healthapp', '0005_healthcustom'), ] operations = [ migrations.RenameField( model_name='healthcustom', old_name='repe...
[ "dayoorang@gmail.com" ]
dayoorang@gmail.com
08ad55cb546abc0b9e3e0cca87900e8499006e3e
40f93bb82fe3f911c768676f02380519f3a98fd9
/bricks.py
374bea8b66210b48ea67ea38bdf4efee9ef7d6a0
[]
no_license
aadarshraghunathan/Terminal-Game
143481e9c6f5eedd6f62dde6c00c0bc231e1a087
2c470a60ea24e5cb0b94bfa119f2f45815405d4a
refs/heads/master
2023-03-27T05:32:56.026361
2021-03-19T17:27:30
2021-03-19T17:27:30
349,503,511
0
0
null
null
null
null
UTF-8
Python
false
false
3,300
py
import time import powerups import random l1 = powerups.powerups class bricks: # (x,y) is the bottom left corner of the block and score is the number of hits the block can tolerate def __init__(self, x, y, score): self.x = x self.y = y self.height = 1 self.width = 9 self....
[ "aadu.r01@gmail.com" ]
aadu.r01@gmail.com
4e7b737ef7c0dfbd4334a02c47e6e82ee662b5e9
bec623f2fab5bafc95eb5bd95e7527e06f6eeafe
/django-shared/treemenus/migrations/0003_menuitem_caption_pt.py
7f07c34686f12f29e3581c5062d3499f2d994595
[]
no_license
riyanhax/a-demo
d714735a8b59eceeb9cd59f788a008bfb4861790
302324dccc135f55d92fb705c58314c55fed22aa
refs/heads/master
2022-01-21T07:24:56.468973
2017-10-12T13:48:55
2017-10-12T13:48:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
468
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('treemenus', '0002_menuitem_caption_pl'), ] operations = [ migrations.AddField( model_name='menuitem', ...
[ "ibalyko@ubuntu-server-16-04" ]
ibalyko@ubuntu-server-16-04
d23f0fdc9f79350dc59b7bbff909a0248f0ab93b
4e59f5fbd1e777f2488eb2a46deca34acf813979
/clients/admin.py
b19f3d0c3e98075355f6e14f4524c33f0aa4eac9
[]
no_license
BoughezalaMohamedAimen/laser
f8c051be5c85be8f09b3ac4272065ce24af26555
1ac9c97b8ead4edcfcadeaafa0ee567f3f3d3d0d
refs/heads/master
2020-08-09T19:26:21.516671
2019-10-10T10:30:54
2019-10-10T10:30:54
214,154,428
0
0
null
null
null
null
UTF-8
Python
false
false
156
py
from django.contrib import admin # Register your models here. from .models import * admin.site.register(SeanceHistorique) admin.site.register(Abonnement)
[ "mamoumou121@gmail.com" ]
mamoumou121@gmail.com
2ec8cd1a2d3ff906aa3f726721c7fdcbdf438dfc
1b4894c3660a1afb6021a95d9ce0b33e295c6dc3
/src/101-150/125.py
b690b2bb33145bccaba8d41bee548686d37401b9
[ "MIT" ]
permissive
adaggarwal/leetcode1992
dbfba8ba38efbe34a84ae2b7272c3c077faeac5b
4e0cc19ae89050770a7a6d4ba5b330dc76c8dfdc
refs/heads/master
2022-05-26T20:20:04.833871
2022-05-09T02:19:33
2022-05-09T02:19:33
137,307,149
9
5
MIT
2020-07-10T01:50:14
2018-06-14T04:45:20
Python
UTF-8
Python
false
false
742
py
''' 125. Valid Palindrome Share Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For the purpose of this problem, we define empty string as valid palindrome. Example 1: Input: "A man, a plan, a canal: Panama" Output: true Example 2: Input: "race a...
[ "aggaraditya@gmail.com" ]
aggaraditya@gmail.com
20dd3e7f584a02e5e3b09c1e309e86c08733305c
b6417cfd5fd01458f08d02b9a551faa330130463
/tests/test_authforms.py
ccfaf92e9fab132858309fecbc438d9557e26908
[]
no_license
TristanRice/Protest.me
d3cf4cd583eace3d2b9895c82d4c107e3c600d1d
1d74a3e3ebbbca62c4c0f9bf3901e8b62f002c6c
refs/heads/main
2023-03-31T13:16:23.471831
2021-04-11T16:44:19
2021-04-11T16:44:19
354,333,691
0
0
null
null
null
null
UTF-8
Python
false
false
3,677
py
import pytest from app.models import Protest, User from app import app, db import re import datetime from string import ascii_lowercase import random import time test_client = app.test_client() def create_random_username(): return "".join(random.choice(ascii_lowercase) for _ in range(10)) def create_random_email...
[ "minor_2468@hotmail.com" ]
minor_2468@hotmail.com
929b7bcac75f34355aa13b3f1e3a5faab8b98760
f3b233e5053e28fa95c549017bd75a30456eb50c
/mcl1_input/L29/29-40_wat_20Abox/set_4.py
e1cd145f4856de5364ea6cdd85c38159e2eee008
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
738
py
import os dir = '/mnt/scratch/songlin3/run/mcl1/L29/wat_20Abox/ti_one-step/29_40/' filesdir = dir + 'files/' temp_prodin = filesdir + 'temp_prod_4.in' temp_pbs = filesdir + 'temp_4.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for j in lambd...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
1d0f393d97c018895eba718afbf13b7965b7ddfb
b3ba88b0ada02029258cb9d7bbce49086050870a
/src/utils/common.py
92a3d5c4fe10d5d3c5e8365e10abe75585422f0a
[ "MIT" ]
permissive
rexlow/Tornado-Server-Boilerplate
504f7b80d694444bd246d04ff9ead0c8a697155b
a8852c46ef2688984b14ce83cd40f3263e57f04b
refs/heads/master
2021-06-12T01:24:44.407798
2019-02-26T08:38:05
2019-02-26T08:38:05
166,561,456
3
1
MIT
2021-06-01T23:18:18
2019-01-19T15:26:01
Python
UTF-8
Python
false
false
319
py
#!/usr/bin/python3 import urllib from .DotDict import DotDict def parseEncodedString(encodedString: str): return urllib.parse.unquote(urllib.parse.unquote(encodedString)) def unloadRequestParams(data): res = {} for k, v in data.items(): res[k] = data[k][0].decode(encoding="utf-8") return res
[ "qiweilow950823@gmail.com" ]
qiweilow950823@gmail.com
83db1bb88ed3a2db62f321db2e83dd80786b703b
49e9838c3d4e3ff393342c651bbecf6c4b733945
/chat/chatbox/permissions.py
f8bbce8adc467ee9873240f6236bfb806289b216
[]
no_license
jideabdqudus/pychat_be
a904287e353d7385729beb309ad082c7e0c949c9
5113abb73b27aea82320decd237c905f85c25104
refs/heads/main
2023-06-10T20:25:56.565670
2021-06-29T21:47:24
2021-06-29T21:47:24
377,649,098
0
0
null
null
null
null
UTF-8
Python
false
false
389
py
from rest_framework import permissions class UpdateOwnPost(permissions.BasePermission): """Allow users to update their own status""" def has_object_permission(self, request, view, obj): """Check the user is trying to update their own status""" if request.method in permissions.SAFE_METHODS: ...
[ "jideabdqudus@gmail.com" ]
jideabdqudus@gmail.com
d3c628ada98b13f64b53fd43795a2a7054c81546
52c3ff9435a895893fd2b917cba3d6a36fbdf8a5
/namesapi/namesapi/wsgi.py
ee2e2491803fc9abda25519a6b9ba118a4d24f6f
[]
no_license
rsgilbert/names-env
fb69466f7eb28fd34c4aee2d2489219422ba2eeb
bcb20150437d76baa93e07276ae051f052fe8d56
refs/heads/master
2022-05-03T02:47:25.137991
2019-09-06T12:48:24
2019-09-06T12:48:24
206,786,722
0
0
null
2022-04-22T22:16:19
2019-09-06T12:14:10
Python
UTF-8
Python
false
false
393
py
""" WSGI config for namesapi project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETT...
[ "gssenyonjo@gmail.com" ]
gssenyonjo@gmail.com
7666a5cf1d0b282967767d4acfacfbe8ebb452cc
9a871ca18c94f080f51fab53de90ecec6bc4ca65
/django_dzenlog/signals.py
6ed5ebfd3059816ef7ef979ad003a885901b234d
[]
no_license
IIKovalenko/django-dzenlog
dbfc302ba70d39be28176b029f91d844faa83847
45025d20e6d56322fece40f81e0ab370beed2b9c
refs/heads/master
2020-06-02T15:24:35.009989
2010-12-04T18:52:06
2010-12-04T18:52:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
86
py
from django.dispatch import Signal published = Signal(providing_args=['instance',])
[ "svetlyak.40wt@gmail.com" ]
svetlyak.40wt@gmail.com
a5349026ada15c40b557c4114bf8afbc7b1c65fa
dcb387712437c2f2542809ed2f9286a97af68485
/code_deprecated/tango_with_django_project/tango_with_django_project/settings.py
91fc6dce1d0b77f9eb121a25e0ee32e7f228859f
[]
no_license
perkalerk/TangoWithDjango
61af2c7d3376140da9f31dc35214808b8098dd6b
080953405cd26ab4f94e74ddbcc1ff42c9cc1eae
refs/heads/master
2021-01-11T02:40:00.742829
2016-10-21T21:03:23
2016-10-21T21:03:23
70,913,852
0
0
null
null
null
null
UTF-8
Python
false
false
3,720
py
""" Django settings for tango_with_django_project project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: os.path.join...
[ "Andrew@tegraanalytics.com" ]
Andrew@tegraanalytics.com
b085f75a1abf112fb5ab270b6c1ca6ab5ca9f87f
09e8d7f378fdbda66a3b730a9be1d3c2e34d570b
/ZB.py
dd2bf9b0bc3d2096745571f7697ecf5239a524b4
[]
no_license
laaciits/RTR105
bd53da410772ca5f8e54d295b2cdf4f5e23fce7c
cb3d64015104574dbecad38a740c6c14c247474c
refs/heads/master
2020-03-28T03:24:01.690515
2019-02-08T09:37:48
2019-02-08T09:37:48
147,642,366
0
0
null
null
null
null
UTF-8
Python
false
false
642
py
# -*- coding: utf-8 -*- from math import sin # S0, S1, S2, S3 -> S x = float(input("Lietotāj, lūdzu, ievadi argumentu (x): ")) y = sin(x/2) print("sin(%.2f) = %.2f"%(x,y)) a0 = (-1)**0*x**(2*0+1)/(2*0+1)*2**(2*2*0+1) S = a0 print("a0 = %.2f S0 = %.2f"%(a0,S)) a1 = (-1)**1*x**(2*1+1)/(2*1+1)*2**(2*1+1) #S1 = (a0) + a...
[ "noreply@github.com" ]
laaciits.noreply@github.com
d7309c81554e616dd3b96b608dcd9a41dbabebc1
e5a26ae20d4d44c544f9fc6b052d074114da10b1
/clean_seq_names.py
e13ad489c6c71c10f759c33e9fe1f6427bca55cd
[]
no_license
rdtarvin/sequence-manipulation
d8608f68a74419d39c3c1ea746362b879ca95c47
09630d61776195893d14dd53d9672e86e4bbd3cd
refs/heads/master
2020-05-17T07:59:43.992857
2019-02-06T21:39:33
2019-02-06T21:39:33
18,824,595
1
1
null
null
null
null
UTF-8
Python
false
false
1,295
py
# -*- coding: utf-8 -*- """ Created on Mon Apr 14 20:27:07 2014 @author: RDT """ '''This script reorganizes the rec.id and rec.description of a fasta file.''' from Bio import SeqIO import sys def clean_seqs(infile,genename,database): '''Open fasta infile and return iterator of SeqRecords with protein sequences....
[ "rdtarvin@gmail.com" ]
rdtarvin@gmail.com
63787f329717b913e1ca259593439e0fb42d7a1c
1257fadd402cb1ea3a2b8262833a00ee969fbfbe
/conduit/app.py
8f84ee89807ad26735c81d9dc19edc657a2d7bc8
[ "MIT" ]
permissive
Willis0826/flask-realworld-example-app-ci-cd
d81742c27800292eb468dc09a4b684422cf827c0
f8a9293a4f58c2312ad95520d8858b0b2a8be86b
refs/heads/master
2023-03-08T02:03:14.995918
2023-02-20T16:09:36
2023-02-20T16:09:36
233,528,197
1
0
MIT
2023-02-20T16:10:31
2020-01-13T06:38:01
Python
UTF-8
Python
false
false
2,379
py
# -*- coding: utf-8 -*- """The app module, containing the app factory function.""" from flask import Flask from conduit.extensions import bcrypt, cache, db, migrate, jwt, cors from conduit import commands, user, profile, articles from conduit.settings import ProdConfig from conduit.exceptions import InvalidUsage def...
[ "willis_chou@trendmicro.com" ]
willis_chou@trendmicro.com
1dc9c0534e24d225ec4d1804cdae435dfa7c7bf5
557df02ebb9ead0722f9979cd3412d3e5933c4f2
/labexercise_5.py
1f5b0bef3ce711b994df617f470498bb076b6faa
[]
no_license
prabalbhandari04/python_
7409969a5324510d7b6f17992fc7899c437a1d14
b84bdefb5214ad9b61c950b11986ef975cafdec0
refs/heads/master
2020-09-07T19:04:25.634560
2019-12-12T07:42:13
2019-12-12T07:42:13
220,886,011
0
0
null
null
null
null
UTF-8
Python
false
false
184
py
#Write a Python program that accepts a word from the user and reverse it. def reverse(): rev = word[::-1] print(rev) word = input("Enter a word to be reversed:") reverse()
[ "noreply@github.com" ]
prabalbhandari04.noreply@github.com
4b964397df7ef88fabea054402bb1db1ad59d9b4
7f43264f32a57599d87fe8be8e0d748d89abecab
/api_v0/ElasticsearchURL.py
46da6ee9e31f2e2d8f574166965a86e3a980e86c
[]
no_license
chair300/rsss_api
e13215439be1bfaa536ea7be5bfe4cc657bb0663
03866b0f5052dc81b61cab3b1c2a451d8e2ec449
refs/heads/master
2023-03-19T02:38:09.963553
2018-01-17T00:41:18
2018-01-17T00:41:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,498
py
from rest_framework.response import Response from api_v0.serializers import ScoresRowSerializer from django.conf import settings import requests import random import json #make all the stuff in views.py use this class. #NOTE: if it turns out that making a query to check if a server is response is #This is the way to ...
[ "rebeccakathrynhudson@gmail.com" ]
rebeccakathrynhudson@gmail.com
7058046baa3c952775c38a273ce86611b6ff8399
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_117/516.py
2f37f445e68945c2132f222f58ca3bd97747e8c4
[]
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,241
py
lines = open('data.txt').read() output = open('output.txt', 'w') lines = lines.splitlines() cases_num = int(lines[0]) lines = lines[1:] cur_index = 0 for i in range(cases_num): case_num = i + 1 m, n = lines[cur_index].split() n = int(n) m = int(m) cur_index += 1 matrix = [] for row_ind in r...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
9b23535eb76065e7d3f1fe2b65e825724333a94e
cd0ffaf0160799e014d20569e99542ab5b3cc6c0
/testPanedWindow.py
06cb857a919cf9aee773411c6428a7278aacc360
[]
no_license
Anm-pinellia/PythonStudy
0ea92bff9d25bff0726029891c2442e853c22629
0810442ae291d5fcb770b380425a7ccdbad9d447
refs/heads/master
2022-12-03T18:29:10.670170
2020-08-18T06:34:23
2020-08-18T06:34:23
279,058,280
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
from tkinter import * root = Tk() m = PanedWindow(showhandle = True, sashrelief=SUNKEN) m.pack(fill=BOTH, expand=1) left = Label(m, text='左窗格') m.add(left) m2 = PanedWindow(orient=VERTICAL, showhandle = True, sashrelief=SUNKEN) m.add(m2) right1 = Label(m2, text='右窗格1') m2.add(right1) right2 = Label(m2, text='右窗格...
[ "1752066346@qq.com" ]
1752066346@qq.com
48f45b897c9bf17861962bc4ebf47143512923ef
7b290aa7d2fe64c2ee7adb31ed0212dea6d22189
/IO_multi/s2/s1.py
3affac98cd11eab3259b0b96b943bf75cb1916df
[]
no_license
ginkgodia/PYcode
97866c1a74d896368e6f6a9cc6450a6665c4d1b0
cbac336cd7be46fea442b2b112d29184361f0db3
refs/heads/master
2021-09-05T13:29:05.201458
2018-01-28T06:55:34
2018-01-28T06:55:34
115,179,258
0
0
null
null
null
null
UTF-8
Python
false
false
1,056
py
#!/usr/bin/env python # -*- coding=utf8 -*- # @Author:Ginkgo # @File: s1 # @Time: 2018/1/25 22:00 import socket import select s1 = socket.socket() s1.bind(("127.0.0.1", 8001)) s1.listen() inputs = [s1, ] outputs = [] message_dict = {} while True: r_list, w_list, x_list = select.select(inputs, outputs, [], 1) ...
[ "907632998@qq.com" ]
907632998@qq.com
8c752f8f75dae42db01ac5d7a7ce833f5757c8e3
59b4a26e405cdc256b370e9ad141bf930965c609
/emailValidation_app/controllers/emailValidations.py
4a0c2db44d76678aba90b212c186a25b12cd48f0
[]
no_license
cbakcoleman/CD_FlSql_emailValidation
13c5e69e1bd629c46b2d669bb0ba86cc1a8f585a
6c62dca69685397fdd10eb0295c93af313bfd7ad
refs/heads/master
2023-08-12T06:53:40.223422
2021-09-14T23:00:59
2021-09-14T23:00:59
406,139,441
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
from emailValidation_app import app from flask import render_template, redirect, request from emailValidation_app.model.emailValidation import Email from flask import flash @app.route("/") def home(): return render_template("index.html") @app.route("/register", methods=["POST"]) def register(): print(request...
[ "88118758+cbakcoleman@users.noreply.github.com" ]
88118758+cbakcoleman@users.noreply.github.com
e2148f0f764a79bfe448ff604bbf47c7b66721f4
ca50e6b61a5b168607beaf960a585a18b67776cb
/acolyte/testing/core/context.py
f96716410fd05d98f4d764ed72fb6fb0f2742f42
[]
no_license
chihongze/acolyte
07fdcba2afc89d5c8c4c2d6c924b678b10a5a54c
57693989261d36511620b19baed801df7b4238e5
refs/heads/master
2020-12-30T20:58:27.580788
2016-09-18T03:58:47
2016-09-18T03:58:47
67,601,167
3
0
null
null
null
null
UTF-8
Python
false
false
746
py
from acolyte.core.context import MySQLContext from acolyte.testing import EasemobFlowTestCase class MySQLContextTestCase(EasemobFlowTestCase): def setUp(self): self._flow_ctx = MySQLContext( self._("FlowExecutorService"), self._("db"), 100086) def testCommonOperation(self): """测试...
[ "hongze.chi@shicaigj.com" ]
hongze.chi@shicaigj.com
a23254d0dc4694c1e4b422d7c01a592c9f3ab7ad
03c4bff614702639d0ba2da99e23b55a96863066
/main/src/independent/__init__.py
e110ea902d582774e9f789bff738ce793226fd7a
[]
no_license
wangwuli/XLauto
dcaa9320c62ea78cbddad46bd65dab04ee87ba61
88705807df697dc86a5ed8a648505b3fb895872b
refs/heads/master
2023-01-10T04:40:32.976245
2021-02-23T16:50:34
2021-02-23T16:50:34
223,140,055
1
0
null
2022-12-12T03:55:39
2019-11-21T09:43:56
Python
UTF-8
Python
false
false
186
py
# from .logio import login # def init_app(app): # login.init_app(app) from flask import Blueprint independent = Blueprint('independent', __name__) from src.independent import nmap
[ "liww@cenboomh.com" ]
liww@cenboomh.com
aa7848567de21cc1e2bbf18f411bcce6258b36e8
a3aab8e80ec5d660aa70cec28a48bff19800dc30
/TaskDo/tasktracker_team/apps.py
1f21df54c85f7413c6cbe3df650663bf4ccaf741
[]
no_license
zubarenik/TaskDo
be95ba5a9344264a0466318614b876fc12a246c0
c4bb89e0c511abc26895bd0dfc3c24c2cab637d2
refs/heads/master
2022-12-22T11:02:27.743929
2020-09-22T14:33:48
2020-09-22T14:33:48
297,669,838
0
0
null
null
null
null
UTF-8
Python
false
false
106
py
from django.apps import AppConfig class TasktrackerTeamConfig(AppConfig): name = 'tasktracker_team'
[ "zubarenik@gmail.com" ]
zubarenik@gmail.com
96a81eea6f894c02e7acccdf364b4b8bbc19a7c3
a010b36f7de8b1f056f8935db717639a145e75f9
/cell_field.py
23ca1840a2f22de1fe5dbd4846939a7447c35186
[]
no_license
victormorozov1/pygame_field
04a2a2329648a2d3b5985945b0f76e783b1ee7db
3f35ecfd7e904d193802a586e553fe7b2ab3d4e3
refs/heads/master
2020-09-29T23:56:23.672975
2019-12-26T10:30:32
2019-12-26T10:30:32
227,151,801
0
0
null
null
null
null
UTF-8
Python
false
false
1,134
py
import pygame from field import Field from random import randrange as rd from functions import * class CellField(Field): def __init__(self, szx, szy, field_arr, field_dict, cell_sz=64, bg=(255, 255, 255)): super().__init__(szx, szy, bg=bg) self.field_arr = field_arr self.field_dict = field...
[ "vismo@bk.ru" ]
vismo@bk.ru
c2863e4dc147572401933bd01d965ba2f78229d3
b0067a719fcfe1e64bd6dcf20ccf5fae93410d7d
/algo.py
1d205d71922ada986ec916a7791ac0c404066748
[]
no_license
sravanthi-ch/Friend-Suggestion-Algo
9c83cdeeb5da92afd0917860a6384dda355c5da9
2a73b0b50b61b6d709432a05404fc2a10341b83c
refs/heads/master
2020-04-18T03:55:23.158488
2019-01-23T17:06:17
2019-01-23T17:06:17
167,218,938
0
0
null
null
null
null
UTF-8
Python
false
false
2,719
py
# List of friends of friends... ff_list = { 1 : [2, 4, 5],#[2,4,5,3] 2 : [1, 4, 6], 3 : [4, 5],#[4,5,1] 4 : [1, 2, 3, 6], 5 : [1, 3, 6], 6 : [2, 4, 5] } # schoolfriend=1, neighbour =2, college mate=3, collegue =4, relative =5, teacher/ student=6, employee/employer=7 hr_list = { 1 : [4,2,3],...
[ "noreply@github.com" ]
sravanthi-ch.noreply@github.com
9fee9927053a85fe0988554aa2c1cf7fc746326b
8a7950440a4a8015523a1e1474a3bfc3aaa95782
/email_smtplib/basic/email_send2.py
d3b046d99e4e22a27c9ecef541a328042c1dbfab
[]
no_license
SatishNitk/Python_Web_Scrapper
bddb320b86a8942b6b3c346eb09f09b933be5b37
f257ad2e6d2053f0f86443905de87ccf81df0c62
refs/heads/master
2020-05-07T19:51:51.816353
2019-07-07T13:31:27
2019-07-07T13:31:27
180,826,120
0
0
null
null
null
null
UTF-8
Python
false
false
1,037
py
from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from smtplib import SMTP, SMTPException,SMTPAuthenticationError host = "smtp.gmail.com" port = 587 email = "hungrygupta@gmail.com" password = "" from1 = "hungrygupta@gmail.com" to_list = ["hungrygupta@gmail.com"] try: email_obj = SM...
[ "satishkrgu95@gmail.com" ]
satishkrgu95@gmail.com
50fb214882899ea973df69630262b57e20b57534
62e58c051128baef9452e7e0eb0b5a83367add26
/edifact/D94B/CONQVAD94BUN.py
8785753a062814ca0ea352440adb08d86535cd20
[]
no_license
dougvanhorn/bots-grammars
2eb6c0a6b5231c14a6faf194b932aa614809076c
09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d
refs/heads/master
2021-05-16T12:55:58.022904
2019-05-17T15:22:23
2019-05-17T15:22:23
105,274,633
0
0
null
2017-09-29T13:21:21
2017-09-29T13:21:21
null
UTF-8
Python
false
false
1,437
py
#Generated by bots open source edi translator from UN-docs. from bots.botsconfig import * from edifact import syntax from recordsD94BUN import recorddefs structure = [ {ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [ {ID: 'BGM', MIN: 1, MAX: 1}, {ID: 'DTM', MIN: 1, MAX: 9}, {ID: 'AUT', MIN: 0, MAX: 2}, {ID: 'FTX'...
[ "jason.capriotti@gmail.com" ]
jason.capriotti@gmail.com
d402c0437514136df6d09b410b5a1e2423715000
712022621249b210fd384158f08a05e02f567bb4
/model/project.py
23ff065f4e347215fc9bda91989b1b36739bb796
[]
no_license
Ka3a4ook/python-Mantis_BT
b35a92b78322b419c256bc90ae58c22a0e8058a4
0f38f08fde12f7d817211611c3b0842a32235b58
refs/heads/main
2023-02-05T17:24:03.189228
2020-12-27T21:47:48
2020-12-27T21:47:48
322,549,131
1
0
null
null
null
null
UTF-8
Python
false
false
737
py
from sys import maxsize class Project: def __init__(self, name=None, status=None, inherit_global=True, view_state=None, description=None, id=None): self.name = name self.status = status self.inherit_global = inherit_global self.view_state = view_state self.description = de...
[ "89052585288@mail.ru" ]
89052585288@mail.ru
ba6005b0ace1cfc2e6631857d634ff0646876303
0d566dee40a0fa22b4d9afdc345e57a518c52b71
/credentials.py
12aebcbaf7ac04437441ecb26e6259c9f368541c
[]
no_license
AstroCB/waitlistBot
4f16beca6f630c292ffe98d86d0ea3d22917f264
e137ccb87c0f84c8969c979fc271e6f043087ffd
refs/heads/master
2021-01-01T20:42:43.006343
2017-07-31T19:10:56
2017-07-31T19:10:56
98,914,726
0
0
null
2017-07-31T17:55:09
2017-07-31T17:55:09
null
UTF-8
Python
false
false
150
py
Account_SID = "Your SID here" Auth_TOKEN = "Your Auth token here" myTwilioNumber = "copy paste your number" myNumber = "use this format +15556665555"
[ "cambernhardt@me.com" ]
cambernhardt@me.com
77d2829d54da095fddd7e59397ee677f5e65d3d6
7c26f08f666273f0717382382482d92a83d07fbb
/django/tutorial/crud0412/BT/urls.py
9e58c1dbbc3f12ff2498d0795c4bc46b4fddac4c
[]
no_license
kimyounghoon93/TIL-c9
f0d7cd574a63ab87545a197ff3d659979c80ed50
07301b51cb757e101d44257d71afa61639147378
refs/heads/master
2020-04-17T17:17:56.494719
2019-05-02T03:09:59
2019-05-02T03:09:59
166,777,131
0
0
null
null
null
null
UTF-8
Python
false
false
133
py
from django.urls import path from . import views app_name = 'BT' urlpatterns = [ path('create/', views.create, name='create'), ]
[ "busanteam_business@naver.com" ]
busanteam_business@naver.com
098c3ccd7b91207c10bdec75c4ec1098cdd7ee8c
4572c7a30af256f47eb2742b6beb1c820eaf475b
/main.py
34b7da4cbca6501ef46e81c6fe177cb66aed0029
[]
no_license
stanislavstarkov/pi-pico
afa1a30655f2b7aff9ec3718f5b56f34a01cca7b
18c74ac2f8bea81a852f140285bb874f95f9a9ae
refs/heads/master
2023-04-01T19:53:59.832637
2021-03-31T18:10:11
2021-03-31T18:10:11
348,808,585
0
0
null
null
null
null
UTF-8
Python
false
false
482
py
from machine import Pin,ADC import utime adc = ADC(26) TEMPERATURE_SENSOR = ADC(4) CONVERSION_FACTOR = 3.3 / (65535) RED_LED = Pin(21, Pin.OUT) GREEN_LED = Pin(20, Pin.OUT) BLUE_LED = Pin(19, Pin.OUT) LEDS = [RED_LED, GREEN_LED, BLUE_LED] for led in LEDS: led.off() while True: val = adc.read_u16() * CONVERSION_FAC...
[ "stanislav.starkov@gmail.com" ]
stanislav.starkov@gmail.com
c0ccca0a0a3c420e12571083f2fb21357e046b62
8a6b1a90dd7ab92bb8e5880efcf0a587f59bc77f
/Modules/data_methods.py
7807843659a4e5c9c6c1a30ac1368cb5067846e6
[]
no_license
osuranboa/music-learning
b79756fa45859d1cf7c7d229d7f6d7259a35360a
7e80230ed45055f6fbef16e857d0c01c0142e528
refs/heads/master
2020-12-22T07:31:50.984227
2019-11-12T02:09:53
2019-11-12T02:09:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,364
py
from sklearn import decomposition from sklearn import preprocessing from sklearn import cluster import pandas as pd import numpy as np import plotly.plotly as py import sys from plotly.graph_objs import * import pdb def transformPCA(X, n): pca = decomposition.PCA(n_components = n) X = pca.fit_transform(X) ...
[ "jonathan.kroening@ipsos.com" ]
jonathan.kroening@ipsos.com
a9ac46049f6f7f1229187b3476228f9528f6a9e4
53e8762caede13acfdc2071a2b8def57128dd3e4
/Arshia_phase_2/hyperstar_for_skipgram_cbow_w2v/evaluate1.py
397428a9e2ac03a2934f0a6d629db6bbb2b12980
[]
no_license
manikyaswathi/SemEval2018HypernymDiscovery
8c17cf4d16fa48b2719381752b18386acde6c4ee
03ee054bf0266fed5337b2a8bba14e8d7fec31aa
refs/heads/master
2020-03-10T14:52:28.582128
2017-12-15T20:40:32
2017-12-15T20:40:32
129,437,112
4
1
null
null
null
null
UTF-8
Python
false
false
6,108
py
#!/usr/bin/env python from batch_sim.nn_vec import nn_vec import argparse import csv import glob import os import pickle import re import sys import gensim from collections import defaultdict import numpy as np from projlearn import MODELS from multiprocessing import cpu_count parser = argparse.ArgumentParser(descript...
[ "noreply-github@umn.edu" ]
noreply-github@umn.edu
a1c37246801a248634486d255bc85009de21e17f
b42e2016972825d28b2abcfe001d879bfd56b453
/sitka_highs.py
c3278286424cdd79abf125b152a39a24a2d95260
[]
no_license
pk-tec/DataVisualization
28b87cfcbeb419621df3f4915a6be0f944406bd9
79d46a95143e35f5f8eb2152821e5997afbe8646
refs/heads/main
2023-03-28T00:50:51.931945
2021-03-30T01:08:45
2021-03-30T01:08:45
352,829,571
0
0
null
null
null
null
UTF-8
Python
false
false
1,218
py
import csv from datetime import datetime import matplotlib.pyplot as plt filename = 'data/death_valley_2018_simple.csv' with open(filename) as f: reader = csv.reader(f) header_row = next(reader) # Get dates, and high and low temperature from this file. dates, highs, lows = [], [], [] for row in rea...
[ "Pritam8987@gmail.com" ]
Pritam8987@gmail.com
50d6287652848e060f1283ac01817eee828aae5e
515107fc56b44742d2938f7f702b36f161214a75
/python/design_patterns/strategy_pattern/duck.py
6ff6a164e7dab2df39b6ac347c8effd522095d04
[ "MIT" ]
permissive
lmregus/Portfolio
e621f50ee943b27a6a6b7c18d1090bd7c56da8c8
9a751443edbfe5ff2b47cdeacca86761ed03e81f
refs/heads/master
2023-09-02T01:56:14.928021
2019-06-02T23:01:03
2019-06-02T23:01:03
34,394,101
0
0
MIT
2022-12-27T15:00:08
2015-04-22T14:09:12
Java
UTF-8
Python
false
false
830
py
from abc import ABC from abc import abstractmethod from behavior.fly_behavior import FlyBehavior from behavior.quack_behavior import QuackBehavior class Duck(ABC): def __init__(self, fly_behavior, quack_behavior): self._fly_behavior = fly_behavior self._quack_behavior = quack_behavior @abstr...
[ "lmregus27@gmail.com" ]
lmregus27@gmail.com
27c47b4018832a5889811707121620980fba947d
7b8c3ef7ad0e997df37ceaa09a661089280e418c
/libs/selenium/webdriver/common/devtools/v107/runtime.py
90dc81fb0ce20ecbb547a2298f62dd0cff2f5bf1
[ "MIT" ]
permissive
rocketbot-cl/webpro
47053a7c63e9c3526b506f44d970a699bc65d378
5927575bf15fc6dd8d40a287ce32de52cd6ba5c8
refs/heads/master
2023-08-18T02:47:24.107652
2023-08-14T15:07:41
2023-08-14T15:07:41
218,623,703
5
4
null
2023-08-14T15:07:42
2019-10-30T20:51:02
Python
UTF-8
Python
false
false
57,994
py
# DO NOT EDIT THIS FILE! # # This file is generated from the CDP specification. If you need to make # changes, edit the generator and regenerate all of the modules. # # CDP domain: Runtime from __future__ import annotations from .util import event_class, T_JSON_DICT from dataclasses import dataclass import enum import ...
[ "nicolas.garcia@rocketbot.com" ]
nicolas.garcia@rocketbot.com
70bc0c7fd60448ce2c089fc9d82d3e94cd8b2e1a
b7d6b87961fc0b641f8d0239a0f56a3c8027f0d6
/main.py
a716ab90fcf1daeff352423e92716a580e51b3dc
[]
no_license
dcolthar/napalm_tools
ab8e257911710ceacfaee90d1325091dad378ffc
a4b0eb493da173c6da3c9640c31ed723517b4183
refs/heads/master
2023-03-02T18:17:04.546009
2021-02-11T17:28:04
2021-02-11T17:28:04
285,040,446
1
0
null
2020-08-04T20:21:17
2020-08-04T16:42:07
Python
UTF-8
Python
false
false
12,857
py
import napalm_common_operations from getpass import getpass import threading from queue import Queue import pandas as pd import argparse import os class Main(): def __init__(self): args = argparse.ArgumentParser() args.add_argument('--get_config', help='will copy the full config to...
[ "dcolthar090406@gmail.com" ]
dcolthar090406@gmail.com
f0650ee2992ba411453b76ca97c75777d3496945
d20c77dccaeaf9bda4527e15d8d800a5772852ac
/13-exec/04-selenium/v08-douyu.py
a466f0143d9eb36da799e8c1fd07640bb369e07f
[]
no_license
xrr314/python
e940d5694731584f71792cc3bcf57bf360ddda65
125afc91863e44868812ad16dbe03e2e4ede4038
refs/heads/master
2020-03-31T04:20:16.933090
2019-06-03T12:07:52
2019-06-03T12:07:52
151,901,253
0
0
null
null
null
null
UTF-8
Python
false
false
752
py
''' 爬取斗鱼直播页内容 ''' from selenium import webdriver import time from lxml import etree driver = webdriver.PhantomJS() def get_page(): driver.get('https://www.douyu.com/directory/all') time.sleep(5) html = driver.page_source return html def parse(html): html = etree.HTML(html) lis = html.xpath('...
[ "xrr940314" ]
xrr940314
21a5c03abea2d99977cafd2ece99b4a6c52a04ad
e519c645017782661e00c97a6124d16dc4d7a905
/inception/inception_rap_model.py
3fbfbf5c50a7943f4dc39def11c273a0a16c6e09
[]
no_license
tinhtn1508/GRLModel
b7e68b4d7d91faa715c4ce294717666caec251d9
21495dac0df20388def0f7deaebc17b74538524a
refs/heads/master
2022-01-17T13:33:29.372278
2019-05-21T12:42:09
2019-05-21T12:42:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
19,440
py
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
[ "slf12thuss@163.com" ]
slf12thuss@163.com
d11d940582b0e8fbde9f48ff33c8715cee9d1f05
4ea0cb75847744ed58b188d4277d69370f31a0c7
/app.py
e1e3f7b4bf38751be3cba21d3d5089c2f469e4cd
[ "MIT" ]
permissive
justinhaef/audit_endpoints
d1c33ada7c8a2e790c3421435fb917a37c4ff083
74a77c26c3d7f2a12773961a39220139e3e36537
refs/heads/master
2023-04-24T00:37:48.177314
2021-05-10T19:21:07
2021-05-10T19:21:07
364,438,280
0
0
MIT
2021-05-10T16:52:03
2021-05-05T02:11:48
Python
UTF-8
Python
false
false
3,891
py
import json import argparse import logging from datetime import datetime from tqdm import tqdm from pathlib import Path from parser import Parser from cleaner import Cleaner # pip install deepdiff from deepdiff import DeepDiff logging.basicConfig( filename=Path('app.log'), level=logging.INFO, format="%(as...
[ "justin.haefner@gmail.com" ]
justin.haefner@gmail.com
d35f6b4783bc805b8733a5dde7649cb3452f1da9
f42f0dd339093895a971a5e64d5e01382c4cbeea
/arts/arts/settings.py
07b3a98297844a55a0ad8c57abcf4d6a743476d6
[]
no_license
rusbal/artuus
e379e3a0ef9c72fdcdeb83d2cf96c1744265a403
9d3d4736c0435dff572bb2e3f1aaab43d1a76db2
refs/heads/master
2020-05-09T20:40:58.532398
2015-04-16T17:13:00
2015-04-16T17:13:00
34,054,504
0
0
null
null
null
null
UTF-8
Python
false
false
2,936
py
""" Django settings for arts project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) impor...
[ "raymond@philippinedev.com" ]
raymond@philippinedev.com
a7e3300d975a841171e8c857c965142b30239106
23631af0987b3f1d30b0bf8bfcea1bd63159eeba
/gate_api/api/__init__.py
56f948e75c0f565a6647dec42431e9458c3446f2
[]
no_license
xuvw/gateapi-python
08c3c72ff0e2c4713bf3a2ffe0b15d05e57491ca
1a3f3551cba4a756f76f17b070c3e0c5ff2e88ea
refs/heads/master
2020-05-25T14:33:35.592775
2019-04-02T08:50:25
2019-04-02T08:50:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
223
py
from __future__ import absolute_import # flake8: noqa # import apis into api package from gate_api.api.futures_api import FuturesApi from gate_api.api.margin_api import MarginApi from gate_api.api.spot_api import SpotApi
[ "revilwang@gmail.com" ]
revilwang@gmail.com
d7cbffddf5802e40d531f1b6a26d5a2c7299f3be
4c1bb75e7267311238fa40761db326bba2a24168
/application2/testing/test_mock.py
221ddfd0be3c8b7269ab1786ae7d2e63aa95bf6a
[]
no_license
mobamba1/DockerTask
b6fa45f61b90ddee78b41af055d83f1f90be873f
9b975f5a93096d3569ef93c08d963f782c08b1aa
refs/heads/master
2022-12-01T17:49:43.329507
2020-08-19T15:18:29
2020-08-19T15:18:29
288,765,831
0
0
null
null
null
null
UTF-8
Python
false
false
510
py
from unittest.mock import patch from flask import url_for from flask_testing import TestCase from application2.app import animals, animalsnoises from application2 import app class TestBase(TestCase): def create_app(self): return app class TestResponse(TestBase): def test_football(self): wit...
[ "kenneth1521412@gmail.com" ]
kenneth1521412@gmail.com
7d7e94d1be2aa238c20dd4c88421ec965f026d95
11025e06cbb0d4964adebe76e0a59b4f5d2fe892
/eichhoernchen/views.py
466797b9fb56e1736b25413eb21cb321e7390bd5
[]
no_license
cod3monk/eichhoernchen
02b3f940008691cd60c541b7cc0e2b88a256c3aa
27f735f411500719acff554017ad1796d8a0379b
refs/heads/master
2021-01-01T18:23:31.327480
2013-05-22T09:58:32
2013-05-22T09:58:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,220
py
#!/usr/bin/env python # encoding: utf-8 from eichhoernchen import app, api import model from flask import render_template from flask import Flask, request from flask.ext import restful import flask import json import random import querier def match_ip_or_403(allowed_ips): def decorator(fnct): def wrappe...
[ "codemonk@u-sys.org" ]
codemonk@u-sys.org
d5e5e491086979335728a5ce09637227e79fbd84
551b75f52d28c0b5c8944d808a361470e2602654
/huaweicloud-sdk-rabbitmq/huaweicloudsdkrabbitmq/v2/model/show_background_task_request.py
15f666a3a90534bc5325dbb4cc52bae5849ca114
[ "Apache-2.0" ]
permissive
wuchen-huawei/huaweicloud-sdk-python-v3
9d6597ce8ab666a9a297b3d936aeb85c55cf5877
3683d703f4320edb2b8516f36f16d485cff08fc2
refs/heads/master
2023-05-08T21:32:31.920300
2021-05-26T08:54:18
2021-05-26T08:54:18
370,898,764
0
0
NOASSERTION
2021-05-26T03:50:07
2021-05-26T03:50:07
null
UTF-8
Python
false
false
3,478
py
# coding: utf-8 import pprint import re import six class ShowBackgroundTaskRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and th...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
9f312a1302c6fccc481de9229fb5f60c5f35095e
439a1a4a95ea2a915c20b12aa49d083d28be5e72
/miscellaneous_scripts/change_fasta_headers.py
055ffd86c7db8428591a0b8ae36efcd934725214
[]
no_license
davidgllund/ARG_analysis_scripts
611b4b1efa8976a4b5ef37b7b8d67a1c4dbacb63
7f1388ab8fa48951534813c850ae62222deebd5a
refs/heads/master
2023-05-26T23:36:37.365107
2021-06-01T12:48:36
2021-06-01T12:48:36
337,497,994
0
1
null
null
null
null
UTF-8
Python
false
false
1,059
py
#!/usr/bin/env python #-------------------------------------------------------------------------------------------------------------------- # Script that, given a list of fasta-file headers, a fasta-file, and the name of the output file produced, # changes the headers of the original fasta to the new headers provided,...
[ "dlund@athena.math.chalmers.se" ]
dlund@athena.math.chalmers.se
b548d643ad30ee98db0062765d29564780e59505
c9fd02550474644c4e35ffdfd81243f0066bcfbf
/Django/Random_Word/main/apps/random_word/views.py
98cff6c9a6a3f17d6fcd642393dc2bceafcb1f12
[]
no_license
Evermark/Python_Assignments
7f5dfd82ddbd4171b821dabc1af82d6471cd79da
a93f7308b6ffd827350f9e3467df04026141074c
refs/heads/master
2021-04-30T05:52:33.022302
2018-03-26T05:27:59
2018-03-26T05:27:59
116,930,734
0
1
null
2018-01-20T21:19:35
2018-01-10T08:34:33
Python
UTF-8
Python
false
false
530
py
from django.shortcuts import render, HttpResponse, redirect from django.utils.crypto import get_random_string def index(request): if 'attempt' not in request.session: request.session['attempt'] = 1 else: request.session['attempt'] += 1 random = {'word' : get_random_string(length=12)} re...
[ "mmathisen@gmail.com" ]
mmathisen@gmail.com
81753007576d20c13b025493673bf3b5a2da906c
9cca8e13ea7ff9142ea8b1ebb46ed5a3f7dc118f
/exam1.py
5d62ffddfab2665bbd50ea9017395816d9de491c
[ "MIT" ]
permissive
elijahanderson/Python-Practice
594924b6760413837aed405b4db51f97171a26ae
881f3dad9d6050d4f3c268172187e6a17ed39426
refs/heads/master
2021-01-21T21:57:20.594099
2018-02-06T16:11:40
2018-02-06T16:11:40
95,133,793
0
0
null
null
null
null
UTF-8
Python
false
false
2,280
py
# exam.py - A program to test your programming for exam #1. # This program is basically a set of functions that do various # separate things, not one big program. # The comments with TODO in them below are problems you need to # finish. # You might want to go to the bottom to look at the program code # to see what th...
[ "elijahanderson_2019@depauw.edu" ]
elijahanderson_2019@depauw.edu
246e17ff0c48c787a0a932071216fd5a5e87c321
770e3f4fcb3d2f96ea8cc36bfa47625778c40c71
/unit_tests/test_provides.py
154f566f2b1cbe63d5f075866c676d2654f56ed0
[]
no_license
openstack-charmers/charm-interface-pacemaker-remote
8d12a0594bc580f74c9a591b44429320912c8cbf
f1297f72a5c6f8dc4f89461850a7d8ebaa01cf04
refs/heads/master
2020-04-30T03:33:29.086571
2019-03-20T07:31:55
2019-03-20T07:31:55
176,589,246
0
0
null
null
null
null
UTF-8
Python
false
false
4,454
py
import unittest import mock with mock.patch('charmhelpers.core.hookenv.metadata') as _meta: _meta.return_Value = 'ss' import provides _hook_args = {} TO_PATCH = [ ] def mock_hook(*args, **kwargs): def inner(f): # remember what we were passed. Note that we can't actually determine # ...
[ "liam.young@canonical.com" ]
liam.young@canonical.com
76fc4694ede4b1df5bb7c95f6c8fc6bbfd897ea6
053c1ae06f1f5cbbdbc72cce94d4af2e1e1391e3
/study_sklearn/groupKFold_test.py
22fad60a299118b456099b6580e069665a64146c
[]
no_license
QilongPan/machine_learning
2995ea34d759ad8e710b397ae1dead4962a8013e
0b3566010ce8b5a229592231accc3921f55b0ed4
refs/heads/master
2020-04-07T04:26:13.982019
2019-08-05T09:21:40
2019-08-05T09:21:40
158,055,755
0
0
null
null
null
null
UTF-8
Python
false
false
578
py
# -*- coding: utf-8 -*- # @Date : 2019-05-17 14:23:30 # @Author : QilongPan # @Email : 3102377627@qq.com # 相同的组不会出现在两个不同的折叠中(不同组的数量必须至少等于折叠的数量) # group定义了每天数据的分组id from sklearn.model_selection import GroupKFold import numpy as np X = np.array([[1, 2], [3, 4], [5, 6], [7, 8]]) y = np.array([1, 2, 3, 4]) groups...
[ "3102377627@qq.com" ]
3102377627@qq.com
f41f0f5811f7145e058831e8ebfffdbe5fba97f0
37951ec6d5ffa26c26023a832c7d4ccb304d476f
/docs/source/conf.py
1873daa9ef8998384a81e93f6813747710767133
[]
no_license
abg/misc
f380699ce7f402c8d12bf0137f1d2213d018049b
db4544d7ab60d0934fbf1c60fa95059885676144
refs/heads/master
2020-12-24T17:17:35.882153
2011-01-22T08:26:17
2011-01-22T08:26:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,100
py
# -*- coding: utf-8 -*- # # config4py documentation build configuration file, created by # sphinx-quickstart on Wed Jan 19 10:06:36 2011. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # A...
[ "muzazzi@gmail.com" ]
muzazzi@gmail.com
5bfee7606764826ff036404a7b07620623e24a96
88745dafec989d39726ca2e4d7f6cfb20bb60f5d
/tests/unit_tests/modules/s3/s3gis/BingLayer.py
c25ecc6c14edf56ab2f86ebbe914dc43f8fc5a3b
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
sungkomp/SAMBRO
f1ced7c9d198ccfe30aaa1bf883c2f8a7478fffb
4618d785d03424d122206d88d9ebfb6971486e2c
refs/heads/master
2020-05-30T08:41:26.855362
2019-10-15T02:48:47
2019-10-15T02:48:47
69,448,194
1
0
NOASSERTION
2019-10-15T04:25:13
2016-09-28T09:31:35
Python
UTF-8
Python
false
false
784
py
s3gis_tests = load_module("tests.unit_tests.modules.s3.s3gis") def test_BingLayer(): s3gis_tests.layer_test( db, db.gis_layer_bing, dict( name = "Test Bing Layer", description = "Test Bing layer", enabled = True, created_on = datetime.datetim...
[ "fran@aidiq.com" ]
fran@aidiq.com
665b261c26c914af9be8d0cc6ca2991861d06d4a
1d164438ac1ba7c88aeabb7c9ea39b58680ba79c
/django_postgres_matviews/management/commands/drop_matviews.py
da51ebd3f07c9398a3e198e8445d967b5dc87d2b
[ "Unlicense" ]
permissive
andrewp-as-is/django-postgres-matviews.py
fac3288f199f013a0421ae23f634ea7082020181
ff7d76f885318e208b81be7f5dcaa71ff7fc4fb3
refs/heads/master
2023-01-20T18:38:58.232754
2020-12-03T20:46:40
2020-12-03T20:46:40
285,872,756
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
from django.core.management.base import BaseCommand from django.db import connection from django_postgres_matviews.utils import drop_matviews class Command(BaseCommand): def handle(self, *args, **options): drop_matviews()
[ "russianidiot.github@gmail.com" ]
russianidiot.github@gmail.com
5326eeda4f0270ef381bd89bf8bfdc44a76caab8
0baf7c1d3860c8f39fdde49eafb4f5033cd34b2f
/06/hw0601.py
1fc54f39a8c3a794bc95c2b7fbf231cf2ecc2467
[]
no_license
dchmerenko/courseraPy
08290a1e1cef573be9a6ca2c2929cac34e493e43
6be764eb40076c386370cf19d09d5a306d4f161c
refs/heads/master
2021-01-01T20:43:56.793375
2017-08-03T16:15:17
2017-08-03T16:15:17
98,897,966
0
0
null
null
null
null
UTF-8
Python
false
false
524
py
# list merging def merge(a, b): c = list() i = j = 0 while i < len(a) and j < len(b): if a[i] < b[j]: c.append(a[i]) i += 1 else: c.append(b[j]) j += 1 if i < len(a): while i < len(a): c.append(a[i]) i +=...
[ "dchmerenko@gmail.com" ]
dchmerenko@gmail.com
f9c7bea1d2f71bd02daaa0048f7368e29612f381
41a0045f0cff201153bc352102f654978d497925
/trotro.py
726b5090645f072b3e0af2ce5b52af08c1397833
[]
no_license
Tejas-Naik/mobile-responsive
a8a3fde3b426130abef2cb30bfb33584a49246f0
c10b2521c1e80e0258148b54d1cea4bcb4508983
refs/heads/master
2023-05-06T05:35:35.113264
2021-06-02T06:36:09
2021-06-02T06:36:09
373,177,748
0
0
null
null
null
null
UTF-8
Python
false
false
21
py
from app import app
[ "RNTejas2005@gmail.com" ]
RNTejas2005@gmail.com
127e521fc174bcb018737f195d7d9d13e672b726
9b4fe9c2693abc6ecc614088665cbf855971deaf
/78.subsets.py
e02e0a2c09554ecf70645818837f819efcf53e44
[ "MIT" ]
permissive
windard/leeeeee
e795be2b9dcabfc9f32fe25794878e591a6fb2c8
0dd67edca4e0b0323cb5a7239f02ea46383cd15a
refs/heads/master
2022-08-12T19:51:26.748317
2022-08-07T16:01:30
2022-08-07T16:01:30
222,122,359
0
0
null
null
null
null
UTF-8
Python
false
false
3,215
py
# coding=utf-8 # # @lc app=leetcode id=78 lang=python # # [78] Subsets # # https://leetcode.com/problems/subsets/description/ # # algorithms # Medium (51.03%) # Likes: 2192 # Dislikes: 54 # Total Accepted: 396.6K # Total Submissions: 731K # Testcase Example: '[1,2,3]' # # Given a set of distinct integers, nums, ...
[ "windard@qq.com" ]
windard@qq.com
2acecc2df69505f7e1212e4a55334a54cc1983bf
24ff9c836944e2d1592a36a7962b36978d2fb16d
/gkn/models.py
1cab2c99373066bffd0b8f74203b3ad80e0d7a1d
[]
no_license
VitalySvyatyuk/gkn
d2d67d4ba02849a64a5d45b4affd2a8ab5004d57
f184de1578e8d0f25bc0c27530d7e013376fa898
refs/heads/master
2021-04-15T13:48:52.317866
2016-08-19T09:23:26
2016-08-19T09:23:26
65,666,567
0
0
null
null
null
null
UTF-8
Python
false
false
222
py
from django.db import models class Order(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=30) total = models.FloatField() email = models.CharField(max_length=30)
[ "goodgame1945@gmail.com" ]
goodgame1945@gmail.com
4faf6fbf0104e8ad8a9246bb96f76397be73fdd3
e3e2f29401d9703c7dc8fd87fb04913351135d54
/codes/delete_repeat_classlayout.py
7abfbe317472f11dfe4d8ec1dfa3a4d94c468870
[]
no_license
cooplus-vscape/vscape_analyzer
2d934442c9596dd8fd93b22fa305a52cae25db5c
c4632577d32b3b73d38db4a7f2056dc1c66cd259
refs/heads/main
2023-02-23T19:55:26.460592
2021-02-03T09:31:53
2021-02-03T09:31:53
325,956,722
0
0
null
null
null
null
UTF-8
Python
false
false
1,431
py
#coding:utf-8 from globalconfig import * from DBatom import * from threading import Thread import threading import time def processitems(content, rangenum, rangenumend, tid): for cc in range(rangenum, rangenumend): try: try: print content[cc] except: ...
[ "vcakesxyz@outlook.com" ]
vcakesxyz@outlook.com
cc73f71771bfafd0ba5c10ac52a206b706afb2f9
8698ba18025a29a1bc491769b7c0299497c9cc7f
/scrapy_templates/19-design/gooddesignaward/gooddesignaward/middlewares.py
086971947280f42d53f7ef1c32a65740184ecbbc
[]
no_license
QuincyLi/happy-spiders
33ea11d3ac570f1c3723de0fb4f58ef6e6fe5b9a
df30bc43f2b99ff70c380bbadeec4bcc285d481b
refs/heads/master
2020-04-27T11:12:46.608104
2019-01-02T09:39:21
2019-01-02T09:39:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,615
py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # https://doc.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals class GooddesignawardSpiderMiddleware(object): # Not all methods need to be defined. If a method is not defined, #...
[ "caiconghuai@gmail.com" ]
caiconghuai@gmail.com
fca72c404fcf1bdb72672e53cdb4cff8efe5a4ff
63b4b47117e42ac3e2548a5ce25f27b63bd348c9
/scripts/bootstrap.py
8cf7c9b7975c8bffa579fec903e8498688c402bb
[]
no_license
jgraettinger/sentiment
0b11cd92e7d1ea4fbe70e4a1352a95a85df50b01
765a2fbaefa4d9a0a3a1d27d40b3623124dccc53
refs/heads/master
2021-01-18T01:44:00.155862
2010-09-23T09:05:37
2010-09-23T09:05:37
615,658
0
0
null
null
null
null
UTF-8
Python
false
false
1,385
py
import getty import vinz import vinz.featurization.basic_featurize import vinz.normalization.basic_normalize import vinz.normalization.twitter_normalize import vinz.estimation import vinz.feature_transform def bootstrap(): inj = getty.Injector() inj.bind(vinz.featurization.InternTable, to = vinz.fe...
[ "johnny531@gmail.com" ]
johnny531@gmail.com
3050537d9919a0962079d4d4af28cf9ef9a613a5
e4beaea96286efe42dc53c34a1521950c8f3b14c
/ordersapp/migrations/0001_initial.py
9286cccef052165142e18b1ef514ffb88432f7ff
[]
no_license
MrWindmark/mercuryShop
7f71d430d4dc148e4530723265b265c44abde457
6de5230bd872279c7cacfa6920a8e06a1e4189c1
refs/heads/master
2023-04-12T23:16:11.752814
2021-04-14T18:59:25
2021-04-14T18:59:25
340,908,915
0
0
null
2021-05-14T12:08:01
2021-02-21T13:32:39
CSS
UTF-8
Python
false
false
2,148
py
# Generated by Django 2.2.18 on 2021-04-12 20:19 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('mai...
[ "agentstorm@ya.ru" ]
agentstorm@ya.ru
51590b835aa43662e38c926541bf933823e59792
c664cbe6cd433ec5f63272b1ebecb9ae81dfe10a
/python/union-find/percolation.py
1ed429f3c47c7193189a351d13777a6910cbd3c7
[]
no_license
paramsingh/algs4
9c0e84375d0e87f0b6e92aee9a000b9e4fcd33bb
2e2db8f9b431bb52023a1065c4fdcef9ffdc7b2a
refs/heads/master
2021-01-16T21:37:57.951848
2015-07-24T14:05:25
2015-07-24T14:09:30
37,737,568
0
0
null
null
null
null
UTF-8
Python
false
false
4,132
py
from weightedQuickUnionUF import WeightedQuickUnionUF class Percolation: def __init__(self, n): if n <= 0: raise ValueError("n should be greater than 0") self._grid = [[False for _ in range(n)] for _ in range(n)] self._size = n # a quick find data structure containing ...
[ "paramsingh258@gmail.com" ]
paramsingh258@gmail.com