repo_name
stringlengths
7
111
__id__
int64
16.6k
19,705B
blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
151
content_id
stringlengths
40
40
detected_licenses
list
license_type
stringclasses
2 values
repo_url
stringlengths
26
130
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
42
visit_date
timestamp[ns]
revision_date
timestamp[ns]
committer_date
timestamp[ns]
github_id
int64
14.6k
687M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
12 values
gha_fork
bool
2 classes
gha_event_created_at
timestamp[ns]
gha_created_at
timestamp[ns]
gha_updated_at
timestamp[ns]
gha_pushed_at
timestamp[ns]
gha_size
int64
0
10.2M
gha_stargazers_count
int32
0
178k
gha_forks_count
int32
0
88.9k
gha_open_issues_count
int32
0
2.72k
gha_language
stringlengths
1
16
gha_archived
bool
1 class
gha_disabled
bool
1 class
content
stringlengths
10
2.95M
src_encoding
stringclasses
5 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
10
2.95M
extension
stringclasses
19 values
num_repo_files
int64
1
202k
filename
stringlengths
4
112
num_lang_files
int64
1
202k
alphanum_fraction
float64
0.26
0.89
alpha_fraction
float64
0.2
0.89
hex_fraction
float64
0
0.09
num_lines
int32
1
93.6k
avg_line_length
float64
4.57
103
max_line_length
int64
7
931
williamratcliff/tripleaxisproject
4,990,752,025,398
717753383165d28d28fc347cc4c8c9040d9b32cc
450448e0ddb786fd13cfe9f6df5aa47573769fdc
/tripleaxisproject/eclipse/src/vice/gridpanel.py
7f02cd988dfc1a8fe892f60f2c9b3996a5b6c3fa
[]
no_license
https://github.com/williamratcliff/tripleaxisproject
70bbd9ab5f7f1d2f30ced18b0887e51a1e3551e8
8649730ccc03e7d172ad41db776e2df9b463f3d6
refs/heads/master
2021-01-19T20:18:25.875294
2018-09-12T20:43:46
2018-09-12T20:43:46
32,125,247
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import wx import wx.grid as gridlib import sys,os from polarization import classify_files2 as classify_files from utilities import readncnr3 as readncnr import numpy as N import wx.aui import demjson keyMap = { wx.WXK_BACK : "WXK_BACK", wx.WXK_TAB : "WXK_TAB", wx.WXK_RETURN : "WXK_RETURN...
UTF-8
Python
false
false
15,822
py
365
gridpanel.py
165
0.551321
0.537037
0
425
35.218824
94
mouhcineToumi/pymaps
7,550,552,513,633
b2390f8a8895721018e0dfcc5cd7b42442e1e3c7
49e96a1b663a061b035935b5ca0ba926d049e823
/main.py
cde998d7a680853868a6a81db149bd545e7cd42a
[]
no_license
https://github.com/mouhcineToumi/pymaps
102ffbc6b1f5998322abaf8cc2a37d305389c679
6e455d17009cc2c016c27183578164d2e35eb978
refs/heads/master
2020-12-10T01:33:57.125167
2020-01-12T23:04:40
2020-01-12T23:04:40
233,471,728
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding: utf-8 from flask import Flask, render_template, request from flask_googlemaps import GoogleMaps from flask_googlemaps import Map, icons app = Flask(__name__, template_folder="templates") API_KEY = "AIzaSyAeWu0zu9VchrXlJzumD3B2CPN2vLYyiPM" # you can set key as config app.config['GOOGLEMAPS_KEY']...
UTF-8
Python
false
false
1,625
py
1
main.py
1
0.461538
0.419077
0
65
23
76
Daumis102/RangoAdvisor
13,065,290,521,385
2068058c8dbdac42df9b9cead3f9cb5fb72835c7
a9ee675b43d1c9b322f9de7547da56e8a6458606
/django_advisor/advisor/tests.py
1c13ff3a97d9b2eed0d3f513d5a68e434c149a69
[]
no_license
https://github.com/Daumis102/RangoAdvisor
9b18eb68cf58d3aaddfa0ccc3a2f7b10014d3351
8028761362cca9de5e0b650d809b20275b91170e
refs/heads/master
2021-04-29T14:00:10.395256
2018-03-28T15:50:36
2018-03-28T15:50:36
121,764,515
1
1
null
false
2018-03-13T17:43:00
2018-02-16T15:10:51
2018-02-23T09:15:44
2018-03-13T17:43:00
7,184
1
0
0
Python
false
null
from datetime import date from django.test import TestCase, Client, RequestFactory from django.contrib.auth import SESSION_KEY from advisor.views import * from .models import * # helper methods for the setUp functions to reduce the same boilerplate def get_init_dir(): return os.path.normpath( os.path.join...
UTF-8
Python
false
false
14,145
py
29
tests.py
12
0.611453
0.602192
0
311
44.482315
145
biomaks/telegram-wpg-transit-bot
8,881,992,377,335
5635e553345f7553a19558683d6364aa85335e42
a512a8146a0d1b2d6a974a937faf436f81ed0166
/app/sqs_launcher.py
97a159b32f8501ba473dfefe67f7c0fe973ed0a8
[]
no_license
https://github.com/biomaks/telegram-wpg-transit-bot
5e222fd3eb45e3a76da765893aebe6aab39dc539
6d09d162b2ad7ae0c2892f24802cbb36023615cc
refs/heads/master
2020-06-04T03:51:18.251669
2019-08-04T01:43:27
2019-08-04T01:43:27
191,862,848
0
0
null
false
2019-06-16T17:26:03
2019-06-14T02:25:21
2019-06-16T02:30:50
2019-06-16T17:26:03
21
0
0
0
Python
false
false
from sqs_launcher import SqsLauncher from .config import aws_sqs_queue launcher = SqsLauncher(aws_sqs_queue)
UTF-8
Python
false
false
111
py
24
sqs_launcher.py
15
0.801802
0.801802
0
5
21.2
37
UchihaPan/BlogAppDjango
12,592,844,138,251
c36a8e933fef6971f2d443b182c650fe3752c565
1f869947c95985f53ce018c2e7c4d9d233d21f79
/blog_app/models.py
6964ad7c8c40f4f61bf5aa779611f92838cb74e7
[]
no_license
https://github.com/UchihaPan/BlogAppDjango
a01512b9990c7a19ee6186e38e8aac935e883997
25bb341f823a6d34d40cbd0f2f15af88362f60d9
refs/heads/main
2023-07-07T07:18:00.315753
2021-08-06T10:21:52
2021-08-06T10:21:52
392,680,166
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models from django.contrib.auth.models import User from django.utils import timezone from PIL import Image from django.shortcuts import reverse class Post(models.Model): author = models.ForeignKey(User, on_delete=models.CASCADE) title = models.CharField(max_length=255) content = model...
UTF-8
Python
false
false
1,119
py
4
models.py
3
0.672029
0.655049
0
34
31.911765
80
caracaljump/pythonExercize
3,564,822,884,349
6e41b82ad8b912081c79f6f02857143beeb248c5
20c6e5ca74cd105a8b7108f437583463722197c3
/Challenge3.py
bffd5838df348e49e8ef56c38594617690e49801
[]
no_license
https://github.com/caracaljump/pythonExercize
56676a9e60590eeb86d8b923647b3f1a98a35648
ca4802fd3557cbbc8944ef4d8145fc90e96a555b
refs/heads/main
2023-04-24T04:36:15.992567
2021-05-11T03:30:31
2021-05-11T03:30:31
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# 1 a = 1 b = 2 c = 3 print(a, b, c) # 2 x = 9 if x < 10: print ("This number is less than 10") elif x >= 10: print ("This number is or more than 10") # 3 y = 13 if y <= 10: print ("message1") elif y > 10 and y <= 25: print ("message2") else: print ("message3") # 4 d = 45 e = 8 d % e # 5...
UTF-8
Python
false
false
395
py
15
Challenge3.py
14
0.501266
0.410127
0
45
7.755556
44
1571min/introducing-python-study
11,793,980,241,464
32f01e28c8119faabd4e5f1c50bec51e35fff441
f2453ee9850a9152027b66a3c7977fbe49153919
/chapter1/python61.py
9bc62b98e956370668b175db62d13790154c470a
[]
no_license
https://github.com/1571min/introducing-python-study
5fe8570e64151cc6229cc4f42ce9c91943189f21
cbbc66d66a5d4b4bd2a10077d47b37be0842bb88
refs/heads/master
2020-07-09T11:53:43.126994
2019-08-23T09:45:43
2019-08-23T09:45:43
203,962,613
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
year_list=[19940420] for i in range(0,4): year_list.append(year_list[i]+10000) print(year_list) thigs=["mozzarella",'cinderella','samonella'] thigs[0]=thigs[0].upper() thigs[2]=thigs[2][::-1].capitalize() print(thigs) e2f={'dog':'chien','cat':'char','walrus':'morse'} print(e2f['walrus']) f2e={} for name,value in ...
UTF-8
Python
false
false
557
py
15
python61.py
15
0.640934
0.590664
0
22
24.181818
85
divbasson/web-dev-course-2014
18,236,431,150,174
f3029c0664750db49c4b9c647f2b835f08615a10
c9f1b54035e25451fc7433266e2e50c1f0c165bf
/code/web_server/web_server_2_1.py
208219f29a5478b1dee8a6ede98368af1d9c7dce
[]
no_license
https://github.com/divbasson/web-dev-course-2014
42a3fcb0779135b902e99cb0c9833b4e7ea83b23
f8ead7584d210d17dec0b19375027d2d036d9170
HEAD
2018-08-29T05:55:49.665521
2014-10-03T16:12:05
2014-10-03T16:12:05
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Flask app = Flask(__name__) @app.route('/') def index(): return app.send_static_file("hello_world.html") app.debug = True app.run()
UTF-8
Python
false
false
157
py
60
web_server_2_1.py
32
0.656051
0.656051
0
10
14.7
51
BinSyed/Python_Basics
2,370,821,971,924
46d3f4826a90b8312264deabcc1905b5788206ac
ae449abf457c8874fff0e176c59727e42f711598
/Add Two Numbers.py
e5ef379880eee7ad3357ba5664e4dfc3fae101a1
[]
no_license
https://github.com/BinSyed/Python_Basics
6b6ecfae6879a631d03ef653114be1313b1c72bb
e0bf1728c18b980a36f0ae2187ef72d0b8113b27
refs/heads/master
2023-04-08T16:24:28.282125
2021-04-20T06:58:47
2021-04-20T06:58:47
292,492,039
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Example 1: Add Two Numbers # This program adds two numbers num1 = 1.5 num2 = 6.3 # Add two numbers sum = num1 + num2 # Display the sum print('The sum of {0} and {1} is {2}'.format(num1, num2, sum)) #Output The sum of 1.5 and 6.3 is 7.8 #The program below calculates the sum of two numbers entered by the user.. ...
UTF-8
Python
false
false
684
py
4
Add Two Numbers.py
3
0.681287
0.622807
0
35
18.542857
74
RLBot/RLBotPack
8,418,135,913,666
0902913385d42a2c3e8e3f0fa4355424b80dcdf1
3cf1535bd23bfbfe078464eb6ba9043e30b2d67d
/RLBotPack/DisasterBot/skeleton/skeleton_agent.py
d3c8c91161e8c1d20e8150a22b6553b7aa65bee4
[ "MIT" ]
permissive
https://github.com/RLBot/RLBotPack
11bab3be9dea24521853a5ba3f0ba5716c9922d2
d4756871449a6e587186e4f5d8830fc73a85c33a
refs/heads/master
2023-07-09T08:37:05.350458
2023-05-17T21:51:07
2023-05-17T21:51:07
188,609,141
27
132
MIT
false
2023-09-12T00:02:43
2019-05-25T20:24:44
2023-09-10T12:11:26
2023-09-12T00:02:43
214,439
24
45
7
Python
false
false
import time from rlbot.agents.base_agent import BaseAgent, SimpleControllerState from rlbot.utils.structures.game_data_struct import GameTickPacket from skeleton.util.structure.game_data import GameData class SkeletonAgent(BaseAgent): """Base class inheriting from BaseAgent that manages data provided by the rlbo...
UTF-8
Python
false
false
2,110
py
605
skeleton_agent.py
446
0.683412
0.677251
0
56
36.678571
112
zeel-dev/zebuker-cookiecutter
17,892,833,775,450
ae2f59443911ac77e8f1d8f2f2451323f32cf8ab
bac3b9e7289a391f19bf83926f1f17e775cb0eb5
/{{cookiecutter.service_name}}/{{cookiecutter.service_slug}}/schemas.py
497b14452dfa29906a0b0faa661efbca15094cbc
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
https://github.com/zeel-dev/zebuker-cookiecutter
ae1ef8b9e8aa30f3e5792b3a3c2a83adf316fbb4
31d25321b6dca8e3207f60da907e5a7996860308
refs/heads/master
2020-05-24T03:02:06.995187
2019-06-06T20:34:13
2019-06-06T20:34:13
187,064,132
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""Schemas linked to the database models""" import re from marshmallow import post_dump from marshmallow_sqlalchemy import ModelSchema class BaseSchema(ModelSchema): """ Custom base schema class that serializes datetime strings without the timezone offset. """ def __init__(self, strict=True, **kw...
UTF-8
Python
false
false
859
py
19
schemas.py
10
0.559953
0.547148
0
28
29.714286
79
nicolacavallini/explore-garmin-data
6,700,148,984,640
ac5751e2265b6ee6242d71b9c704880be415aa57
3693ffd6458b2035cd136b0801782f3997300a90
/tools.py
e996ce82e698982e489e063825827ad535fb6278
[]
no_license
https://github.com/nicolacavallini/explore-garmin-data
dd1f8c4fe779362284bbc4763916f457949b9351
fc93440f76b51bb737e3405677c5b27e5f9ec639
refs/heads/master
2021-06-20T09:57:44.562525
2019-08-09T12:55:27
2019-08-09T12:55:27
114,737,944
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os from fitparse import FitFile import numpy as np from scipy.special import binom as binomial import scipy.sparse as spr def non_negative(v): ids = np.where(v<0) v[ids] = 0 return v def forward_convolution(data,conv_amplitude,conv_function): assert data.ndim==1, "data should be one dimensio...
UTF-8
Python
false
false
2,663
py
9
tools.py
8
0.600451
0.588434
0
109
23.431193
82
KonstantinRupasov/SysAdminLib_01
17,248,588,671,734
10bbd68fd2a648d55e6b0fc999a8fc198e108bf0
71dd60034fe3dd6b946e8aedb86eb17d7422e611
/src/lib/common/bootstrap.py
db1e75f4e1c3d4c0f6960c045b8d2cb99293c5be
[]
no_license
https://github.com/KonstantinRupasov/SysAdminLib_01
9ddeb65818caa79d276a53819f5bbb9194ebaaf2
3004ba129e99ddbffe1f7c820b824e2efbad6e90
refs/heads/master
2023-08-08T05:02:27.590154
2017-12-08T21:42:02
2017-12-08T21:42:02
111,958,896
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding: utf-8 import re from .logger import * # Compare current version of Python interpreter against minimal required if sys.version_info < (3, 4, 3): raise Exception( "Incompatible version of Python interpreter. " "Minimum required version: 3.4.3" ) import threading import datetime impor...
UTF-8
Python
false
false
8,942
py
61
bootstrap.py
46
0.560725
0.555692
0
252
34.484127
80
catatonicChimp/smscWeb
7,988,639,193,970
2ba2f1720b75a807baa88d27972b418c3503bd0d
492238843e63d8612f2653b5066d894cbba12693
/src/club/migrations/0003_clubmember.py
6f98de198cebba3c4a3a604b4c9742627d817194
[]
no_license
https://github.com/catatonicChimp/smscWeb
f442c6fc3e9e306e43a7711bfcc0fa17fffdd2c4
fcd07652d16975a5189fb3511894b976665a990c
refs/heads/master
2016-09-13T21:23:42.487861
2016-05-09T08:38:00
2016-05-09T08:41:35
58,194,410
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-04-29 10:23 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): dependencies = [ ('auth', '0007_al...
UTF-8
Python
false
false
1,578
py
34
0003_clubmember.py
19
0.631179
0.611534
0
33
46.818182
156
genetica/pylator
16,767,552,364,762
dd4dc1a818166760a12ecdc94cd19552f4f71357
033f47af4edf835f77ca49d1baa6661b7ebfc202
/testScripts/multi5.py
7e2616829f72b25a123abed85c2340001f635aa3
[]
no_license
https://github.com/genetica/pylator
889434e903c55e32676b0b843f9ebd7a7f36b78a
4ce3ed895186400107d1e49e9a8c9928dd0c457a
refs/heads/master
2021-01-02T22:32:36.998021
2017-11-30T08:35:49
2017-11-30T08:35:49
99,333,451
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import ctypes import logging import multiprocessing as mp import time from contextlib import closing import numpy as np t1 = time.time() info = mp.get_logger().info crit = mp.get_logger().critical #logging.basicConfig(format='%(asctime)s %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p') #logging.basicConfig(format='%(...
UTF-8
Python
false
false
4,508
py
53
multi5.py
43
0.498447
0.4685
0
216
19.875
90
ushakovao/Py
4,458,176,055,592
5c9f2ee1d4afbf61f4d31cbb3f134cbbba6e2c78
66308035c754d1b7e29eec08b716995c17f21566
/Signals/tp8/C_zone.py
a2b91a66ef94eb1307b057e91c3f1c137b6fe62d
[]
no_license
https://github.com/ushakovao/Py
5d603dd3a1ebff31c44a154c65c22961e75c7d60
bdb06deff3ddbb5e1d5833178a14be87a3241e40
refs/heads/master
2020-05-27T03:42:45.340168
2019-05-24T18:34:34
2019-05-24T18:34:34
188,469,509
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import imageio from PIL import Image from pylab import * import matplotlib.pyplot as plt """ Un algorithme de détection de composante connexe dans une image. Comprenez-le. Faites le tourner pas à pas, sur un papier, avec un dessin. """ def add_neighbours_in_stack(image:np.ndarray, threshold:int...
UTF-8
Python
false
false
2,359
py
60
C_zone.py
56
0.662955
0.647966
0
75
30.12
117
Dwtexe/Python-Docs
3,075,196,594,696
53a53985477a79fd4319c77b8057efc7aa8b7271
31fbaba0f6865538d76bc31b63bee65cfc27be1f
/Hello world/python_egitimi/combinations.py
f4c92b21d5c0ad73da9b60b36236a18a99ef3191
[]
no_license
https://github.com/Dwtexe/Python-Docs
3b59071978136170fb2db1a3785b15e859fd0d8d
e76fd5b0121836278ae8a039445f1047f027c33d
refs/heads/master
2021-05-21T17:19:48.969151
2020-10-18T09:00:16
2020-10-18T09:00:16
252,732,861
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import itertools import operator # COMBINATIONS FONKSİYONU meyve = ["elma", "armut", "karpuz", "portakal"] kombin = itertools.combinations(meyve, 2) # kombin = itertools.combinations_with_replacement(meyve,2) for i in kombin: print(i)
UTF-8
Python
false
false
246
py
105
combinations.py
102
0.726531
0.718367
0
13
17.769231
59
Jeff654/my_machine_learning
3,058,016,761,002
9362c2e85b76124efaa3dc5b3ea83e97de611069
cd3391d7009ce1975541b6377f3e7dca5c4a8c6c
/NLP_exercise/基础算法/base_algorithm/sklearn/SGD/plot_iris.py
f4947bf2033249367231682731c3ce53e9598bf6
[]
no_license
https://github.com/Jeff654/my_machine_learning
ee7399fb514e36859a406330820dac9b15a3e348
cfca78f2d351caa58092ce5e6b955347aba6637e
refs/heads/master
2022-11-29T21:50:05.018262
2019-11-26T12:04:34
2019-11-26T12:04:34
224,181,536
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt from sklearn.datasets import load_iris from sklearn.tree import DecisionTreeClassifier n_classes = 3 plot_colors = 'bry' plot_step = 0.02 iris = load_iris() for pairidx, pair in enumerate([[0, 1], [0, 2], [0, 3], [1, 2], [1, 3], [2, 3]]): #...
UTF-8
Python
false
false
1,414
py
145
plot_iris.py
131
0.628713
0.602546
0
54
25.148148
98
amiller/glxcontext
13,434,657,725,534
0dd5dd0ca7935a3ffa3571ff3d046b70a9751ab5
d9f11335a07f294fe0878debb7a5fc180bc3bd46
/setup.py
110862f3690928a300ae839e7f28e9906af4a548
[]
no_license
https://github.com/amiller/glxcontext
acfd90968218d8532b5617037fec9c398e37e8bb
9a51f59b34ecb8c11e4ddd810c1bc7d43afd4235
refs/heads/master
2020-06-02T15:18:47.772333
2011-07-12T03:57:14
2011-07-12T03:57:14
2,034,003
4
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext ext_modules=[Extension("glxcontext", ["glxcontext/_glxcontext.c", "glxcontext/glxcontext.pyx"], libraries=['X11','GL'])] setup(name='gl...
UTF-8
Python
false
false
456
py
5
setup.py
3
0.605263
0.594298
0
14
31.571429
52
ola-ct/projecteuler
18,700,287,611,289
f7eaad66e5fed90f595c12179c3952d6e5b66d38
9f2a53f049f08af5bf598e5a77de104568b2ac2b
/3/3a.py
436e69f65b2736516dd6975f695d5a5c04e65b7e
[]
no_license
https://github.com/ola-ct/projecteuler
a99423c4e40792211aa4db26c5f06c636b31daf3
0698da44952cd5fe88498cbabc705ab06cc09747
refs/heads/master
2022-08-14T06:55:30.843277
2020-05-21T08:00:55
2020-05-21T08:00:55
265,789,155
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # http://projecteuler.net/index.php?section=problems&id=3 # Copyright (c) 2010 Oliver Lau <oliver@ersatzworld.net> from math import sqrt def primes(n): sieve = range(++n) sieve[:2] = [0, 0] for i in xrange(2, int(sqrt(n))+1): if sieve[i]: f...
UTF-8
Python
false
false
523
py
24
3a.py
23
0.571702
0.521989
0
23
21.73913
57
cgregurich/PythonFoodApp2
10,161,892,645,017
7a37de18f20c34841aeb3936b5149879259227fc
8f970d551fb64f5c882c2830dedce8b1374cd34f
/fooditemdao.py
7c3232cab5ca1ddcab40d0cba5b3dacfc52bb9ef
[]
no_license
https://github.com/cgregurich/PythonFoodApp2
8977c4dac29478220058431a10601356662111b6
be75a67eef4e633d98a06eb8ea3d93738d14a1f0
refs/heads/master
2023-05-06T08:33:17.936894
2021-05-26T02:11:34
2021-05-26T02:11:34
274,915,567
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from fooditem import FoodItem import sqlite3 class FoodItemDAO: def __init__(self, db_name='fooditem.db'): """Creates the database of param db_name (if no name is supplied, defaults to fooditem.db). Creates table fooditems if it doesn't yet exist""" self.conn = sqlite3.connect(db_name) ...
UTF-8
Python
false
false
4,527
py
32
fooditemdao.py
28
0.584714
0.583609
0
109
40.541284
109
AnVales/Pandas
6,536,940,249,414
c53f561d70d4b90077006977442d82a8c34d6445
fbeb32b84ee5b117b296ad490bf0db9aeeb47780
/pandas_df.py
e3ae847cde37cb9674fa56cd31ede10bf015b61d
[]
no_license
https://github.com/AnVales/Pandas
2938b5128bd68cd84546532168c2fe3f58aff31a
28d18cc1cca19fbd9563f3168ccf7b1bc45d9eff
refs/heads/main
2023-03-25T07:39:06.835422
2021-03-20T17:58:22
2021-03-20T17:58:22
348,117,622
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# PANDAS: DATAFRAME # # INFO: https://www.geeksforgeeks.org/python-pandas-dataframe/ # import pandas as pd import numpy as np # HASH TO DATAFRAME # # All the narray must be of the same length hash_1 = {'col1': [1, 2], 'col2': [3, 4]} df_1 = pd.DataFrame(data=hash_1) # LIST TO DATAFRAME # lst_2 = ['I', 'am'...
UTF-8
Python
false
false
1,928
py
2
pandas_df.py
1
0.593361
0.550311
0
74
24.081081
64
ivanmrosa/frangoFramework
9,517,647,542,161
5656ff2c5683047dce680069656536343e318dfb
32a265c0c3970d17a04443fa0674e04183267b6f
/frango.py
2db1cb10d7ed37212d9f553a3a25c38a3b0a4c6c
[]
no_license
https://github.com/ivanmrosa/frangoFramework
d73f6e324749684fd8fc84ab7964e258f9ee330f
37c09388f48569a67fa8e56a87f6e0bb1832328b
refs/heads/master
2022-07-25T17:43:28.075318
2022-06-30T22:23:35
2022-06-30T22:23:35
119,444,458
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 #coding utf-8 import os import sys import threading from http.server import BaseHTTPRequestHandler, HTTPServer, SimpleHTTPRequestHandler import json from time import mktime import time from datetime import datetime import shutil import re from selenium import webdriver from selenium.webdriver.com...
UTF-8
Python
false
false
25,026
py
12
frango.py
6
0.584552
0.580197
0
725
33.518621
119
rubenvermaas/Workflow
14,181,982,035,768
ffcf1bdb526166f7785a15784b419e77833c7276
7bdd88bb4fcf57fd1ba83b9954aeed8073454bec
/GCperc.py
a57e446c7d4e8ca5d5c9320f2347096ab9dec5fa
[]
no_license
https://github.com/rubenvermaas/Workflow
9fbbdd45cab6e880069b5f7a16076dcbeeecf85b
857ec06bcb374c00749ae9fef2568b6455bbefb6
refs/heads/master
2021-10-10T13:11:02.710727
2019-01-11T10:24:58
2019-01-11T10:24:58
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from Bio import SeqUtils as SQ seq = open(snakemake.input[0]) output = open(snakemake.output[0], "w") header = "" strSeq = "" for line in seq: if ">" in line: header = line output.write(line + "\n") if line == "\n" and strSeq != "": GCperc = SQ.GC(strSeq) output.write(str(GCpe...
UTF-8
Python
false
false
401
py
26
GCperc.py
19
0.526185
0.521197
0
18
20.777778
39
mansur007/bookassistant
10,642,928,991,563
02ef0ede125d55f72dcf9e4531a47d65f3bd7ab0
7d39be409f732d296aabcd75430130bc624bdf9f
/gui.py
115720e8797bf6e77cdea986ad564541cc69821e
[]
no_license
https://github.com/mansur007/bookassistant
1c089b66b3e8f2507337e4fe7302cdfde02bf02b
2ad1c10e2eb09a6568a1bb93904c4ccaa852776b
refs/heads/master
2022-03-10T18:34:34.412252
2019-07-15T11:48:24
2019-07-15T11:48:24
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os, string from tkinter import * import threading import text_processor import text2speech class GUI(threading.Thread): def __init__(self, PL, T, D, TranscriptDuration): super().__init__() self.PL = PL # playlist self.T = T # transcriber self.D = D # dictionary s...
UTF-8
Python
false
false
10,177
py
13
gui.py
8
0.621008
0.60735
0
221
45.054299
116
tomd/act-workers
9,620,726,749,086
390bc99b5f4de635c4ba3c434d1521569737abdb
58dcd5c1de611954ad5328c1038a5177619c982c
/act/workers/libs/worker.py
4e63ab053011f4ab0c7299dedd5ea3410d792e55
[ "ISC" ]
permissive
https://github.com/tomd/act-workers
cac9edf4c840cfb0206244db143bccf093ad844b
ef42eaf26b14197a6bd1ac9ae12c4d39acc740c1
refs/heads/master
2020-05-25T04:04:55.844858
2020-03-11T12:54:44
2020-03-11T12:54:44
187,619,947
0
0
ISC
true
2019-05-20T10:33:15
2019-05-20T10:33:15
2019-05-20T08:51:31
2019-05-20T08:51:29
980
0
0
0
null
false
false
"""Common worker library""" import argparse import inspect import os import smtplib import socket import sys from email.mime.text import MIMEText from logging import error, warning from typing import Any, Optional, Text, Dict import caep import requests import urllib3 import act.api CONFIG_ID = "actworkers" CONFIG...
UTF-8
Python
false
false
6,985
py
17
worker.py
13
0.64209
0.637795
0
198
34.277778
137
fukenist/learn_hard_way
12,068,858,111,831
edca980c34a422c4df70e49c6d92749a9f126d11
49c964e7691b9ec37f4067e13be5e643a5782ca9
/test9.py
e6d28d8b8329d5aa9faae73f7a809bf7ca25593a
[]
no_license
https://github.com/fukenist/learn_hard_way
0ed09d4bf43f6460561bfd92cabd2359f5a67a07
548037277cf2bc77fd8fd9b177bf60234073c90f
refs/heads/master
2023-03-02T01:04:06.200549
2021-02-09T20:26:52
2021-02-09T20:26:52
332,833,155
0
0
null
false
2021-01-25T19:11:04
2021-01-25T17:49:05
2021-01-25T17:52:53
2021-01-25T19:11:03
3
0
0
0
Python
false
false
from sys import exit def gold_room(): print("This room is full of shit. How long could you be there?") choice = input('> ') if choice.isnumeric(): how_long = int(choice) else: dead("Man, write a number") if how_long < 50: print("Do you understand how stinky you will be after?") exit(0) else: de...
UTF-8
Python
false
false
1,639
py
12
test9.py
11
0.649176
0.646736
0
82
18.97561
65
simmoncn/ml-class-python
16,982,300,694,450
a54d976b1f607f94b00c855fbd656b4699f2228f
6af5cf28013378bc08ec2566a0657e0929be3056
/solutions/ex2/ex2_sklearn.py
8b0aee18c3d272f29b9f1633b6f5a2979f25b615
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/simmoncn/ml-class-python
854b4ad1d4645235237803c65f089dba5a63b42b
a2ed01668196c5eef2e40edd0ede89e87fedf9cb
refs/heads/master
2020-12-28T23:46:22.034025
2016-03-05T04:55:05
2016-03-05T04:55:05
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import matplotlib.pyplot as plt from sklearn import linear_model from ex2 import * ## Machine Learning Online Class - Exercise 2: Logistic Regression with sci-kit learn # Instructions # ------------ # # This file contains code that helps you get started on the # linear exercise. You will need ...
UTF-8
Python
false
false
2,425
py
30
ex2_sklearn.py
28
0.612371
0.595052
0
69
34.144928
126
ohannes/pythonScripts
12,403,865,554,169
f0b47fc6cae52eedf1be154bacb83141c98d1de0
8c7a187ebfe858ff3f840602585d166b29fce576
/movie.py
8a8e6adaa7c6ddc6a226ff7d3c25334dc74f6d9c
[]
no_license
https://github.com/ohannes/pythonScripts
b756faa2e6d5314cb04c7afc0ca07f69027f59b2
5249b2735d8b2a9a2c6ad8a1ae625cb47f50d0b5
refs/heads/master
2020-04-06T04:20:29.565042
2015-07-19T17:40:39
2015-07-19T17:40:39
34,119,366
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time, os SLEEP_PER_LOOP = 10 * 60 while True: time.sleep(SLEEP_PER_LOOP) os.system("c:\Python27\python.exe")
UTF-8
Python
false
false
133
py
91
movie.py
79
0.631579
0.586466
0
7
17
39
eklyagina/RussianCorpusExtractor
16,896,401,382,665
6c612edc164c80a7caf9be81e038167b0f1324e8
6d98058e58be5945877b7c38d0f86c04100f66b8
/RussianCorpusExtractor.py
f0a8326a92fc1d6d527d77d43369be0ea4714b35
[]
no_license
https://github.com/eklyagina/RussianCorpusExtractor
d683ac23d0e0b9429c5bcb8085047250d5797720
101b9a14df0441cb34b5e52be8977dc7e93264b0
refs/heads/main
2023-06-04T22:56:52.126648
2021-06-18T21:24:42
2021-06-18T21:24:42
378,105,080
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # coding: utf-8 # RussianCorpusExtractor # # This is a program that extracts all the examples (from all the search pages) from a National Russian Corpus fitting an inquiry. # As an input give the link to the FIRST page (it won't work if you use the other page), the number of pages and the n...
UTF-8
Python
false
false
3,236
py
2
RussianCorpusExtractor.py
1
0.579535
0.571783
0
86
36.488372
246
mrez0/mzAlarmy
9,259,949,506,650
b8095d293af36ffe74d499188df4739ba1a2f55d
4240cf1d855ae8960e1f06ad672c452cc82729e9
/helpers.py
9ef8f2355e281c33560ab55bc41821261199ef5c
[]
no_license
https://github.com/mrez0/mzAlarmy
8cf799187dc1d7b6dda81ec40c516c985642f954
72c7d26d02bb61ce4dec2707aa52616ddc497544
refs/heads/master
2021-04-15T10:34:07.607948
2018-03-23T15:39:29
2018-03-23T15:39:29
126,156,395
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def get_seconds_to_alarm(alarm_str): from datetime import datetime # Getting hour & min alarm_hr, alarm_mt = alarm_str.split(':') now = datetime.now() alarm = datetime.now() alarm = alarm.replace(hour=int(alarm_hr), minute=int(alarm_mt), second=0) now_timestamp = now.timestamp() alar...
UTF-8
Python
false
false
644
py
13
helpers.py
10
0.661491
0.638199
0
20
31.2
104
Marco2018/leetcode
11,252,814,362,921
00ca833878e4b20c193ccdf244b700690cc0b00a
036c69a0c27cfdc0b0d9d6169caf027635b66325
/dp/leetcode650.py
90851539e9536b66fa544839ffec92730786f328
[]
no_license
https://github.com/Marco2018/leetcode
19b6b2c19452babf0198f8705e0dd1f31c321017
c7dc709a7a9b83ef85fbc2d0aad7a8829f1035d1
refs/heads/master
2020-03-23T17:34:09.637831
2020-01-18T11:00:36
2020-01-18T11:00:36
141,865,308
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import math class Solution: def minSteps(self, n): if n==1: return 0 factor=2 while n%factor!=0: factor+=1 if factor==n: return n else: return int(self.minSteps(int(n/factor))+factor) solution=Solution() num=18 p...
UTF-8
Python
false
false
350
py
553
leetcode650.py
541
0.511429
0.491429
0
16
19.875
59
MrHamdulay/csc3-capstone
7,361,573,973,699
b72f740136f53a54e9e5894f264c9e68ac6b1a53
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_2/srxluc001/question3.py
64a2189e9954adf679bdd50140244aea10eaaf4a
[]
no_license
https://github.com/MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#program to calculate the are of a circle #SRXLUC001 #Lucy Sure #Assignment 2 question 3 import math print("Approximation of pi:",round(math.pi,3)) import math x=eval(input("Enter the radius:\n")) Area=float(math.pi)*x*x print("Area:",round(Area,3))
UTF-8
Python
false
false
274
py
12,294
question3.py
12,244
0.675182
0.649635
0
13
18.461538
46
gabsw/campus-monitoring
18,330,920,437,048
46da6585e680252085c78d271cd8146332778c66
1e28d53f9cf8d2872effed59c9659a0d79eecc61
/docker/simulated_collector/simulate_data.py
fb3bc4e7a578e208b0e2fc9860dd9be6701b71cc
[]
no_license
https://github.com/gabsw/campus-monitoring
57cc39a16c04b9ef264e9aeb5e826ac5ee486908
b4f33c9d182a4212a55a9c1ac4a47f7ec3a7a63d
refs/heads/master
2020-09-05T19:51:29.152783
2019-12-19T20:30:18
2019-12-19T20:30:18
220,197,805
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import os import time import json from datetime import datetime import random import pika def random_jitter(value, minimum, maximum, step=0.1): jitter = random.random() * step * 2 - step # the jitter is in [-step, +step] new_value = value + jitter if new_value < minimu...
UTF-8
Python
false
false
2,826
py
74
simulate_data.py
54
0.618896
0.601557
0
86
30.860465
121
atultw/AdobeRPC
13,872,744,396,606
259676f79360233b92954bacb178a0079e707258
46637d84ec06a1a433651eb7303e90b4c1d801a7
/client.py
01383cb3d5152dbe52aa9cb3e0e554269b6d4711
[]
no_license
https://github.com/atultw/AdobeRPC
0746e078cf5e8bff1a963736a1675334b679b786
6b0fd48edff81280e3299d150ba68e7d5309bd47
refs/heads/master
2023-05-18T20:03:04.996509
2021-06-10T18:54:10
2021-06-10T18:54:10
337,300,790
5
1
null
null
null
null
null
null
null
null
null
null
null
null
null
rpclient = None timer = dict({ 'app': None, 'start': 0 }) active_presence = None notified = bool(False) class client: pass
UTF-8
Python
false
false
140
py
8
client.py
4
0.6
0.592857
0
14
9
22
lauramoon/ProjectEuler
266,287,980,506
e09407879ee7a293cd16df796b646ffceba9a754
18d46606858f406814db2caf16ae3d7d36d3f2fd
/prob0017.py
9758cc3cb7314b4fba07eda25d88ae82a9bc46c5
[]
no_license
https://github.com/lauramoon/ProjectEuler
9336b3785d13af2600d6c3079675443c35aaf028
8010aa9fa5b66029b5551c10030e39dcc1436308
refs/heads/master
2023-02-20T06:48:53.958299
2021-01-06T03:02:10
2021-01-06T03:02:10
287,099,123
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Project Euler Problem 17. https://projecteuler.net/problem=17""" # 1-9 90 times as final digit # 1-9 100 times before "hundred" # 10 to 19 10 times # 20, 30 ... 90 10 * 10 times # "and" 9*99 times # "hundred" 900 times # "one thousand" once one_to_nine = 3 + 3 + 5 + ...
UTF-8
Python
false
false
849
py
36
prob0017.py
35
0.558304
0.451119
0
23
34.913043
112
nagyist/sentry
781,684,075,522
1030588372b0429cf2fee026be3956dc42eba5c1
35dbd536a17d7127a1dd1c70a2903ea0a94a84c2
/tests/sentry/api/endpoints/test_group_hashes_split.py
ff88d297ebc931e1b057ac0c745464f8a1f72819
[ "Apache-2.0", "BUSL-1.1" ]
permissive
https://github.com/nagyist/sentry
efb3ef642bd0431990ca08c8296217dabf86a3bf
d9dd4f382f96b5c4576b64cbf015db651556c18b
refs/heads/master
2023-09-04T02:55:37.223029
2023-01-09T15:09:44
2023-01-09T15:09:44
48,165,782
0
0
BSD-3-Clause
true
2022-12-16T19:13:54
2015-12-17T09:42:42
2015-12-17T09:42:48
2015-12-17T00:25:38
46,690
0
0
1
Python
false
false
import pytest from sentry.models import GroupHash from sentry.testutils.helpers import Feature pytestmark = pytest.mark.skip(reason="too flaky") @pytest.fixture(autouse=True) def hierarchical_grouping_features(): with Feature({"organizations:grouping-tree-ui": True}): yield @pytest.fixture(autouse=Tru...
UTF-8
Python
false
false
9,047
py
6,211
test_group_hashes_split.py
2,725
0.597657
0.52382
0
265
33.139623
93
sevas/csxj-crawler
3,238,405,376,947
083f017f93b8f50716c819575f458d2ce51864a1
5e9e705cc78fb53e57af72b44ab0f064176a56b6
/tests/datasources/csxj_test_tools.py
219b9415e7a991243c76f60730444ab0a09c2685
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/sevas/csxj-crawler
14e0791e7c6263c77c6584eeb42576105ef290a1
339fbe4b308f7dfbfca7869ec1da2bb0cfa791ca
refs/heads/master
2021-01-18T20:28:47.797531
2013-12-07T09:06:52
2013-12-07T09:06:52
1,657,167
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding=utf-8 from nose.tools import eq_, ok_, nottest import itertools as it from csxj.common.tagging import TaggedURL @nottest def to_frozensets(taggedURLs): return set([(url, title, frozenset(tags)) for url, title, tags in taggedURLs]) @nottest def format_as_two_columns(expected, extracted): expected, ...
UTF-8
Python
false
false
2,366
py
145
csxj_test_tools.py
68
0.667794
0.634404
0
52
44.5
190
hamidzr/fog-alert
13,958,643,715,547
dfb54d71f559fbfec0ab9640a5a61f7475149e57
4619fbca79da41ca70208aa457eebd1e7e4a0b44
/server/webServer.py
8306b50a5263b6c2ad3a5101e9ceb1ef14b3d5e4
[]
no_license
https://github.com/hamidzr/fog-alert
9dfb564b2d78b25bddc16a95bece792bb8bea2fb
e0c4d3c95bc1e1fcc7150d5caafaa63b9fcdaaec
refs/heads/master
2020-04-07T22:20:27.291183
2018-12-13T21:54:20
2018-12-13T21:54:20
158,765,952
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import request, Flask from detectors.colorMaskDetector import has_intruder from communicate import trigger_response import configparser import os # load configuration in config = configparser.ConfigParser() config.sections() config.read('config.ini') UPLOAD_DIR='./uploads' def sanitize_name(uploaded_file)...
UTF-8
Python
false
false
1,223
py
20
webServer.py
10
0.690924
0.684383
0
49
23.959184
59
tkkuehn/aoc2018
11,836,929,872,224
93c01d2bd87342365e079bba9e226787bed22bfb
df2a50fd87c2b127f3a2a30ee2aeab94a64bdb6c
/day18/day18_2.py
21544d2ba5d0f6600896420cf43a5f547f6f6db4
[]
no_license
https://github.com/tkkuehn/aoc2018
bd460f1557e998b04fb13bc95709b9cc4523d020
022ccc443e3f230bb32bbae62a996f22e7d87d67
refs/heads/master
2020-04-09T09:10:29.440999
2019-07-30T17:58:13
2019-07-30T17:58:13
160,223,286
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 x_len = 50 y_len = 50 contents = [] with open('./resources/input.txt', 'r') as f: contents = f.read().splitlines() lumber_area = {} for y in range(y_len): for x in range(x_len): lumber_area[(x, y)] = contents[y][x] def read_area(area_tuple): lumber_area = {} for y in rang...
UTF-8
Python
false
false
3,525
py
37
day18_2.py
35
0.489645
0.470638
0
127
26.755906
65
blaisep/ol-data-pipelines
12,515,534,703,258
9fdf6d9b6dc9e5823ecfd052df105b2f5e3edf94
a25638b09d633399031710e1690eeb5d1a3aa9cd
/src/ol_data_pipelines/lib/dagster_types.py
aa60f48186b5c69c6e9f7e71d7326ba74817ea95
[ "BSD-3-Clause" ]
permissive
https://github.com/blaisep/ol-data-pipelines
e3648a076ae4b634270d65edb8d2a29bb72c9040
26766947d39c38f3eaf5dc3ad7a3a67295bdcda5
refs/heads/main
2023-09-02T09:35:31.137252
2021-07-14T15:23:04
2021-07-14T15:24:45
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from pathlib import PosixPath from dagster import PythonObjectDagsterType, usable_as_dagster_type from google.cloud.bigquery.dataset import DatasetListItem @usable_as_dagster_type class DagsterPath(PosixPath): pass # noqa: WPS420, WPS604 DatasetDagsterType = PythonObjectDagsterType(DatasetListItem, name="Data...
UTF-8
Python
false
false
337
py
42
dagster_types.py
30
0.824926
0.807122
0
12
27.083333
88
josealbm/PracticasPython
8,839,042,716,145
55db9f6c2266bf7f877edb5a7f5bf7a6816c0ebe
fe78b00e01003800b8ec4ad864e7dde75da40a08
/Práctica 7/P7E3.py
843177b8311209255bd4c6f5c9a5451853ff6536
[]
no_license
https://github.com/josealbm/PracticasPython
c327a72067f7dcb1f07f8ddbf4cb5d320d90a984
80cf92b84133953ea558b9c39897d1c466cf2f45
refs/heads/master
2020-04-27T13:53:54.758631
2019-03-07T17:13:52
2019-03-07T17:13:52
174,388,096
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Práctica 7 -Ej 3 - José Alberto Martín Marí #Escribe un programa que lea una frase, y la pase como #parámetro a un procedimiento, y éste #debe mostrar la frase con un carácter en cada línea def partir(p): for i in p: print (i+"") frase=input("Escribe una frase: ") partir(frase)
UTF-8
Python
false
false
319
py
60
P7E3.py
60
0.662379
0.655949
0
12
24.916667
64
drbjim/target-bigquery
8,409,545,987,741
f40b6fab47203167d83f212053a7f14ab2a28f17
3883f1f25f637655b3942d916ce6c69c4afde10e
/tests/unittestcore.py
59d70e9aa3d3fd60cb071b6a636588f9f26f0d66
[ "BSD-3-Clause" ]
permissive
https://github.com/drbjim/target-bigquery
2037bf6ca420233dc707b2011802bf722ccbcd32
ef621c6101996d8cb48d83b5fed1b2e7bfb0d11c
refs/heads/master
2023-07-15T02:45:32.641692
2021-08-05T00:09:19
2021-08-05T00:09:19
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json import os import sys import unittest from google.cloud import bigquery class BaseUnitTest(unittest.TestCase): def setUp(self): os.environ["TARGET_BIGQUERY_STATE_FILE"] = "state.json.tmp" self.delete_temp_state() os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = os.path.normpath...
UTF-8
Python
false
false
3,116
py
15
unittestcore.py
9
0.568999
0.568678
0
91
33.241758
127
danielgunn/0478
3,341,484,589,550
c10e4a8fc8ee3d366e963563673b699bd99e942d
fd0e1d55489ee4cb5d506fdc431b6f74072faa7e
/Sample_Games/circleSquareTriangle.py
3785590959c85554d2b417b959061c7706473809
[]
no_license
https://github.com/danielgunn/0478
27ef14155e2d3e3761c814fb5b55757113111a59
9666ab21219888fcb534a4c6c2f916a744e5b8a0
refs/heads/master
2020-05-24T05:33:08.837536
2020-03-25T03:16:30
2020-03-25T03:16:30
187,118,451
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" This is a sample game to demonstrate pygame to my students. It isn't a fun game, but demonstrates some key functions of pygame library There are three shapes on the screen with three different motion dynamics author: Daniel Gunn background image from https://opengameart.org/content/background-5 completion sound f...
UTF-8
Python
false
false
3,555
py
6
circleSquareTriangle.py
3
0.667229
0.628692
0
107
32.233645
100
philipphock/BA_socketjs_proxy
18,846,316,513,096
a23566789bc544391b1967ff5b815ee47de44be5
c679b53e3f39e84b85c1aa6bb949c8cbdc00f6c9
/WebSocketProxy/src/lib/SockServer/SockServer.py
79addc7fea6c7b081adefeceaa7befab229d2b70
[]
no_license
https://github.com/philipphock/BA_socketjs_proxy
81138f4faafce5747ab9101445fc04d45a9bed4d
9b698ca1010088a9525006516b3295a0e2c165c8
refs/heads/master
2020-04-28T03:57:28.816205
2012-04-17T11:34:46
2012-04-17T11:34:46
3,597,233
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Created on Aug 7, 2011 @author: phil ''' import select from SockServer.utils.basic.BasicSockServer import BasicSockServer from SockServer.utils.basic.BasicTaskManager import BasicTaskManager import socket as socket_p import socket class SockServer(BasicSockServer): ''' A non threaded SocketServer derived...
UTF-8
Python
false
false
3,663
py
30
SockServer.py
29
0.537811
0.533989
0
124
28.25
102
eregnier/semver-git-hook
10,290,741,645,638
93e5a00bbcf929704de070a511257e5734d35c19
b7554fb15a4cad86502344f575d069b3c610717c
/semver_git_hook/__init__.py
d1d5de8339c53c6dc269d384b10c3cd387cf8e40
[ "MIT" ]
permissive
https://github.com/eregnier/semver-git-hook
e7f6a495e37a2a19a8db26e23effca8fd5e5aa81
364e110e389a7ddc797be104e0e67f5706b626a6
refs/heads/master
2022-12-10T12:25:22.210948
2021-04-15T08:00:59
2021-04-15T08:00:59
192,092,785
3
0
MIT
false
2022-12-08T07:45:06
2019-06-15T15:15:01
2021-04-15T08:01:03
2022-12-08T07:45:05
66
3
0
2
Python
false
false
import os import stat import sys import subprocess from pick import pick from termcolor import colored def main(): if "--init" in sys.argv: init() elif "--update" in sys.argv: hook() else: print( f""" This tool helps managing project versionning by handling semver updat...
UTF-8
Python
false
false
2,353
py
5
__init__.py
2
0.544099
0.539412
0
76
29.881579
94
ardentTech/ardent_api
2,156,073,597,199
c9f034c7d0e78f5544dbb603f70a68508845e973
fb883bccd0885b49fd62d9492386a66978e45cf8
/api/contact/signals.py
28ab2856ec0135dad9bf38d3faf505a732a9c1bf
[]
no_license
https://github.com/ardentTech/ardent_api
29573baf741fa7397715751148b0930c3a4115f6
3b6de18ce419b719de32b1abb61957d93e313f5c
refs/heads/master
2020-03-22T23:03:16.548914
2018-08-29T21:57:10
2018-08-29T21:57:10
64,079,771
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.core.mail import mail_admins from django.db.models.signals import post_save from django.dispatch import receiver @receiver(post_save, sender="contact.ContactMessage") def send_contactmessage_email(sender, instance, created, **kwargs): if created: body = """ Name: {} Ema...
UTF-8
Python
false
false
487
py
34
signals.py
32
0.652977
0.652977
0
14
33.785714
69
showerhhh/leetcode_python
9,062,381,027,750
9034e5edab07e4a450410ba81541c97f14ac5ee2
b71200b4693a709b79d15ee5659a246173bef02d
/t557.py
525e73a8bd5fa4bbfc0ed3243a5bc2d4bd6ee93d
[ "MIT" ]
permissive
https://github.com/showerhhh/leetcode_python
658e9f951867780ad0cb41976ac1bf6464a9044a
ea26e756dd10befbc22d99c258acd8198b215630
refs/heads/master
2023-04-09T05:16:23.707274
2021-04-13T03:22:30
2021-04-13T03:22:30
357,031,850
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution: def reverseWords(self, s: str) -> str: def reverse(s): n = len(s) for i in range(int(n / 2)): temp = s[i] s[i] = s[n - i - 1] s[n - i - 1] = temp words = s.split(' ') for i in range(len(words)): ...
UTF-8
Python
false
false
500
py
99
t557.py
98
0.446
0.438
0
18
26.777778
63
JiangWeixian/OpencvLearning
7,791,070,676,901
3bb415e7130a728864ea00ec2441760794aba6e9
76e2da503cee9266bb8d02f9c89cb28b00213c8e
/test_glob.py
e074a49b66437fbceb895a63ed753009f1c39a04
[]
no_license
https://github.com/JiangWeixian/OpencvLearning
6bfd7397545c9a179e0a92c0279bbbbabd1616f9
6f98fa51f2169618168f786e182462b9efd81386
refs/heads/master
2020-03-03T23:37:38.711107
2017-09-27T08:24:20
2017-09-27T08:24:20
95,267,587
0
1
null
false
2017-07-21T02:05:58
2017-06-24T01:15:44
2017-07-19T07:12:43
2017-07-21T02:05:58
4,249
0
1
0
Python
null
null
import glob.glob as glob glob
UTF-8
Python
false
false
30
py
33
test_glob.py
30
0.8
0.8
0
3
9.333333
24
GustavoHennig/python-hpOneView
7,258,494,751,359
826457415256c60eb9aeb203962779ff558e660c
0d328b00d48924cae0b5552d573b27c9cdc96507
/examples/scripts/add-enclosure.py
006b9c76c512bf6eff4e12d290604d03d8655f06
[ "MIT" ]
permissive
https://github.com/GustavoHennig/python-hpOneView
28d485bec924d6d1a2e98f79aa94b65d7446a2fc
6a6039416e7f4f05f55f5c515a609e8fa3b3ee96
refs/heads/master
2021-01-18T04:55:37.245443
2017-02-20T13:22:40
2017-02-20T13:22:40
57,912,480
1
0
null
true
2016-05-19T14:50:17
2016-05-02T18:45:10
2016-05-09T20:46:01
2016-05-19T14:50:16
1,144
1
0
1
Python
null
null
#!/usr/bin/env python ### # (C) Copyright (2012-2017) Hewlett Packard Enterprise Development LP # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limita...
UTF-8
Python
false
false
8,713
py
41
add-enclosure.py
37
0.568576
0.561689
0
217
39.152074
105
Caocoporation/rt_chat_app
2,465,311,269,006
06530f0d8080f41839a7e7fe178ca8ef0597cf5d
89946e1167ce74a2fc04ad889eb416c4aa270d2e
/chat_app/rt_chat_app/custom_auth.py
a338dd5a04c930ec71400ba1470c27160791f65d
[]
no_license
https://github.com/Caocoporation/rt_chat_app
bca03f20fe355ada3d3f43702a6b8bfc7a55a866
9e8d0bbe18ff7ca989e50a6fcbccb3e4f877ffdb
refs/heads/main
2023-06-02T17:13:20.988594
2021-06-25T15:28:53
2021-06-25T15:28:53
362,325,601
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import asyncio from channels.db import database_sync_to_async from django.contrib.auth import get_user_model User = get_user_model() @database_sync_to_async def get_user (user_id): try: return User.objects.get(id=user_id) except User.DoesNotExist: return None class QueryAuthMiddleware: ""...
UTF-8
Python
false
false
1,307
py
88
custom_auth.py
82
0.649579
0.649579
0
47
26.829787
94
allenai/allennlp
12,463,995,099,890
9f6294cd4508f76d3feb6e3d55ecc32ecddb0df0
234c46d1249c9209f268417a19018afc12e378b4
/allennlp/modules/seq2seq_encoders/pytorch_seq2seq_wrapper.py
d904cdbd85860dbac2dd7d6a389dfdd9598c12f1
[ "Apache-2.0" ]
permissive
https://github.com/allenai/allennlp
1f4bcddcb6f5ce60c7ef03a9a3cd6a38bdb987cf
80fb6061e568cb9d6ab5d45b661e86eb61b92c82
refs/heads/main
2023-07-07T11:43:33.781690
2022-11-22T00:42:46
2022-11-22T00:42:46
91,356,408
12,257
2,712
Apache-2.0
false
2022-11-22T00:42:47
2017-05-15T15:52:41
2022-11-21T21:47:06
2022-11-22T00:42:46
74,742
11,300
2,231
96
Python
false
false
import torch from torch.nn.utils.rnn import pad_packed_sequence from allennlp.common.checks import ConfigurationError from allennlp.modules.augmented_lstm import AugmentedLstm from allennlp.modules.seq2seq_encoders.seq2seq_encoder import Seq2SeqEncoder from allennlp.modules.stacked_alternating_lstm import StackedAlter...
UTF-8
Python
false
false
10,542
py
611
pytorch_seq2seq_wrapper.py
550
0.624739
0.619237
0
289
35.477509
99
AmitMozitronics/IPPT_WebApp
4,140,348,509,272
27267fd12f9f722e9a0a5424ebcd38d74114930f
7a5a6376b006fe66dd901f9ca420d71c9b3bee45
/frontend/summaryview_v2/size_wise_output_v2.py
7e0f60077f01b71000555a71b06a4d7c1fc1f51b
[]
no_license
https://github.com/AmitMozitronics/IPPT_WebApp
d40272f5ae66917e67e18088e10bd164a59a51a6
7f53fe14b78a4a0f2b8d5e1bf40553d17c118e48
refs/heads/main
2023-07-10T08:43:15.656318
2021-08-06T09:53:16
2021-08-06T09:53:16
393,331,796
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.decorators import login_required from django.contrib.auth import authenticate, login, logout from django.shortcuts import redirect from django.views.decorators.csrf import csrf_protect import datetim...
UTF-8
Python
false
false
3,493
py
77
size_wise_output_v2.py
55
0.704838
0.692814
0
68
50.367647
422
Ayushshah2023/Ayushshah2023
6,562,710,062,679
a2b442d9a3955af778d385a98c74d4f669ff90e1
0bc3619bf436f0bfa9ab656f4c748652cc80fa3b
/script1.py
7fa9c3be5023785c5296a011c57b21aa563b5c5f
[]
no_license
https://github.com/Ayushshah2023/Ayushshah2023
02e6b5ea47ec650074162e248464b029fe05d498
afe9c3b869be76ac8360840936c4782239897e21
refs/heads/master
2021-05-22T13:11:32.002149
2020-04-04T07:59:48
2020-04-04T07:59:48
252,941,447
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" A program that stors this book information title,Author,Year,ISBn<Price,Ratings,Publications,Genre User can view all records Search any entry Add any entry Update an entry Delete CLose add a rating to any book Scroll bar """ import data_py from tkinter import * from PIL import ImageTk,Image #w...
UTF-8
Python
false
false
5,237
py
3
script1.py
2
0.679969
0.632041
0
169
28.988166
174
johnhsq/thequants
11,209,864,643,842
c9bee51dcd7ae88c9c5a06a84e653060c8be2fef
e9eaeda8ed7699d97e8b17411a03444346299567
/03.calculate.returns/calculate.returns.py
f044a2a950205e7f9d3b8155c1c300a1df5bb699
[]
no_license
https://github.com/johnhsq/thequants
8097da41ba435d5c9a12f71c56455152857c61b8
1e45cf94183c16abb56203ec4f508f470c3aa612
refs/heads/master
2021-06-23T17:59:42.565388
2021-04-23T16:32:25
2021-04-23T16:32:25
225,282,437
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd close = pd.DataFrame( { 'ABC': [1, 5, 3, 6, 2], 'EFG': [12, 51, 43, 56, 22], 'XYZ': [35, 36, 36, 36, 37],}, pd.date_range('10/01/2018', periods=5, freq='D')) print(close) daily_ret=(close-close.shift(1))/close.shift(1) print(daily_ret)
UTF-8
Python
false
false
288
py
23
calculate.returns.py
20
0.541667
0.416667
0
11
25.272727
53
AyoubBelhadji/CSSPy
2,164,663,554,771
47bd20c43a16e51c09d5057e9cb2c78a75fcc683
624f6d4cbed3aa7b3af789d7d44643a092b38818
/CSSPy/projection_dpp_sampler.py
b92e8c2192ec59c7911a85d3b93b43c1bd03c628
[ "MIT" ]
permissive
https://github.com/AyoubBelhadji/CSSPy
8b0f2b0794e22b23d16585696ff56de4cd8836cc
df66e48c7b39f4cc193b9793aa1813000b2c8b80
refs/heads/master
2021-06-23T12:22:11.433469
2019-08-20T09:29:28
2019-08-20T09:29:28
148,138,792
4
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import scipy.io import numpy as np import pandas as pd from matplotlib import pyplot as plt from copy import deepcopy import scipy.io import numpy as np import pandas as pd import seaborn as sns from scipy import random, linalg, dot, diag, all, allclose import timeit from scipy.sparse.linalg import svds class projec...
UTF-8
Python
false
false
2,643
py
43
projection_dpp_sampler.py
26
0.614832
0.611048
0
68
37.838235
140
JorgitoR/Boletin-de-Notas-Django---Python
6,090,263,636,960
a06754d6a9917f051d0c9d1acbbfacbfbae16db6
d531f4be5fd023b3bda0983bfd206ce2527f4153
/Dashboard/migrations/0004_usuario_activo.py
1c595eb7fedf0cd94275314ac0b74ecc3d936ca6
[]
no_license
https://github.com/JorgitoR/Boletin-de-Notas-Django---Python
6a98a183e551aa0d6f66e3821b787d9ae8bba0fe
e192c9c293a2a55f1f92cf68329de691d389905b
refs/heads/main
2023-05-03T16:34:09.863682
2021-05-25T17:26:54
2021-05-25T17:26:54
366,082,026
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.2.2 on 2021-05-13 14:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Dashboard', '0003_auto_20210513_0748'), ] operations = [ migrations.AddField( model_name='usuario', name='activo', ...
UTF-8
Python
false
false
389
py
29
0004_usuario_activo.py
15
0.59126
0.511568
0
18
20.611111
52
iniyannatarajan/pyimager-olegs-mods
15,126,874,854,454
39a439a47cc2f84b6c7df681b25b93fc73d3c7f4
ead9b4e788bab8542a39215358e32c0df8a9533c
/LCU/checkhardware/lib/test_lib.py
3e8fd47d0627ee2306bcebfa61a396e3f040066f
[]
no_license
https://github.com/iniyannatarajan/pyimager-olegs-mods
34968740d47d8e38d65ff4005d215e6f87ea2a80
6218fdbed57c8c442238372cda408a69e91b2bb7
refs/heads/master
2022-11-12T21:50:18.539394
2015-08-18T09:30:25
2015-08-18T09:30:25
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # test lib from general_lib import * from lofar_lib import * from search_lib import * import os import numpy as np import logging test_version = '1013e' logger = None def init_test_lib(): global logger logger = logging.getLogger() logger.debug("init logger test_lib") #HBASubband = dic...
UTF-8
Python
false
false
52,397
py
2,052
test_lib.py
1,505
0.506155
0.491421
0
1,259
40.597299
160
jonasht/cursoIntesivoDePython
2,731,599,221,141
3e78b3f4c3f51ce1c29441f9696c32c39a25b3c6
0930b6c994225d44818887716ce4e8771af86b81
/exercisesDosCapitulos/07-entradaDeUsuario-E-lacosWhile/7.7-infinito.py
5b90b62f9ffe2aef16c94dbb5734315bf2893b4e
[]
no_license
https://github.com/jonasht/cursoIntesivoDePython
44d81b08f1652c4fa7a6d14a0e3f62ee8e06944c
fb5f5c9884fb1a6062a7c4e7676e5cc3b13c0ebb
refs/heads/master
2023-05-23T20:44:34.372825
2021-06-19T12:13:46
2021-06-19T12:13:46
293,325,804
4
2
null
null
null
null
null
null
null
null
null
null
null
null
null
print('atençao, este codigo está em loop infinite') print('precione ctrl + c para parar') n = 1 while 1: n = n + n print(n) if len(str(n)) >= 1000: break # apagar isso para ser infinito
UTF-8
Python
false
false
202
py
243
7.7-infinito.py
232
0.635
0.605
0
8
23.875
65
sathappan1989/Pythonlearning
8,632,884,294,463
a11613b286204790aadb4e66f4b29ef755d718bf
50995b2d2d8528684079088e75faf55300494d6b
/Ordered.py
2ba51c03dc5e31b8606e324a66bb11d7a9f3aee8
[]
no_license
https://github.com/sathappan1989/Pythonlearning
f3c2c9f8e864cda1d69d47b220d23325fd915320
0e6fdaf39fcd3046139702547f594e5a9854cc9b
refs/heads/master
2020-11-26T17:04:28.645106
2019-12-19T23:07:41
2019-12-19T23:07:41
229,149,812
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Ordered Working List #Print the list in alphabetical order. #Print the list in its original order. #Print the list in reverse alphabetical order. #Print the list in its original order. #Print the list in the reverse order from what it started. #Print the list in its original order #Start with the list you created ...
UTF-8
Python
false
false
1,176
py
46
Ordered.py
44
0.735544
0.730442
0
44
25.75
80
jerryeml/func_app
2,070,174,261,097
7c56d8fd6871dd89f987549e1fbe6aaaadfa46f3
dddd607f859d72ec97936dd6e3b8398a070d7844
/func_testing_azure_cli/__init__.py
19934765818f8af0540b490652a1d2f65bf01833
[]
no_license
https://github.com/jerryeml/func_app
c30e3fb2324fff642959b333facf151c0d2b1ebb
0746119bc46f9301ca07574213ca7d8974179239
refs/heads/master
2023-06-03T14:33:32.061386
2021-06-29T08:23:30
2021-06-29T08:23:30
352,038,798
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import logging import azure.functions as func from azure.cli.core import get_default_cli def az_cli(args): cli = get_default_cli() cli.invoke(args) if cli.result.result: return cli.result.result elif cli.result.error: raise cli.result.error return True def main(req: func....
UTF-8
Python
false
false
1,591
py
2
__init__.py
2
0.591452
0.57951
0
53
29.018868
151
sipims/collective.xmpp.core
10,986,526,356,073
8e460ffd986162878947b8f832d0bbdf090b73e1
9f0731c88a227a9101ee77eaae0a973b9a47e579
/collective/xmpp/core/browser/userinfo.py
35116d588d31b2d91a732ae8738342f266724d5f
[]
no_license
https://github.com/sipims/collective.xmpp.core
4d709fafb5a14985c804b0c166f408cdd1a54b23
43a9213c422f2bed35184d17407d56a210e1a649
refs/heads/master
2020-12-25T05:02:23.610208
2014-04-29T14:57:23
2014-04-29T14:57:23
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json from twisted.words.protocols.jabber.jid import JID from AccessControl import Unauthorized from Products.Five.browser import BrowserView from Products.CMFCore.utils import getToolByName from collective.xmpp.core.utils.users import unescapeNode class XMPPUserInfo(BrowserView): def __call__(self, user_id...
UTF-8
Python
false
false
1,950
py
38
userinfo.py
21
0.623077
0.623077
0
55
34.454545
89
Gustavo-RC/Predictive_Analytics
13,434,657,719,017
4136937f4549628574cfa29d99071fec1ec63856
1e097a92c9537af1a5a572579798e7f13f78023c
/Induction.py
6e91bd4f336c54722bff7fe64f7cb30780635fae
[]
no_license
https://github.com/Gustavo-RC/Predictive_Analytics
22e598c29baa6a8075eac9de5dc3c411d1ba14aa
c68d4cba9bf59c4ec50e41f7155cf9f888a1df47
refs/heads/master
2020-09-16T18:24:56.833557
2019-11-26T03:46:47
2019-11-26T03:46:47
223,852,270
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Bibliotecas necessarias para ler o conjunto de dados de treinamento #Realizar calculos numericos em array import numpy as np #Analise de dados import pandas as pd #Efetuar a regressão logistica from sklearn.externals import joblib from sklearn.linear_model import LogisticRegression #Gerar a matriz de confusao e o rel...
UTF-8
Python
false
false
4,915
py
4
Induction.py
2
0.696414
0.690098
0
156
30.467949
109
esrefeska/senecawoodworking
17,119,739,666,188
383ff81666f176f8a26376a099dac106438f1f79
efac4a1fa863ec72489a0c027adc6ac66f85404b
/shopify_ept/models/common_log_book_ept.py
4b011959b538f7c4ad205f448fb1f454f52755a1
[]
no_license
https://github.com/esrefeska/senecawoodworking
8cc7e45ca96f3a8569b4bcbccafbc0b21cc964a8
b14bb7275067e304ad497afc88cd9af877ccbd9a
refs/heads/main
2023-07-16T08:20:13.679791
2021-08-27T21:22:07
2021-08-27T21:22:07
379,676,039
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # See LICENSE file for full copyright and licensing details. import logging from datetime import datetime, timedelta from odoo import models, fields _logger = logging.getLogger(__name__) class CommonLogBookEpt(models.Model): """Inherit the common log book here to handel the log book in ...
UTF-8
Python
false
false
7,570
py
1
common_log_book_ept.py
1
0.572523
0.562616
0
155
47.83871
119
crki76/Nessus-automation-scan
240,518,176,843
9755d9ea1af4f57b3c7370cd49fa4fefbf8c15eb
17f296850af4c07d59696970ce92c80be644a6dc
/nessus_scan.py
21a90655fcae8a922f6e2f2cc7526768b101a4f0
[]
no_license
https://github.com/crki76/Nessus-automation-scan
0f5713daee8683cd74ce70a4e4ccef2962490230
a796734140ba96ecd21e0d86115aeb9dc42b791d
refs/heads/master
2020-12-31T07:33:21.169392
2016-05-12T11:49:25
2016-05-12T11:49:25
58,630,276
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import requests import json import time import csv import socket requests.packages.urllib3.disable_warnings() def get_list_templates_url(url): templ_url = 'https://%s/editor/policy/templates' % (url) return templ_url def login_url(url): log_url = 'https://%s/session' % (url) return log_u...
UTF-8
Python
false
false
10,619
py
3
nessus_scan.py
2
0.558339
0.556832
0
316
32.601266
133
MahmoudHeshamBackup/videofiles
6,871,947,693,203
7149120818a4ee38ec5f4ec2b1aeb6c42460fd46
fe5cf20bd47b2c9763ed7dda1c641e6ca4155ce7
/rendering/pytracer/core/test/PtPluginTest.py
44628c41475ddaccde34767b5eb16290a9e7a8d8
[]
no_license
https://github.com/MahmoudHeshamBackup/videofiles
aba5b8d2f9ac9786f9f1933f73ac8eda09ffc952
89aac3203cc4c08cbff4d085bcc11d1cf86b186d
refs/heads/master
2021-05-26T13:07:43.587928
2012-11-16T17:45:20
2012-11-16T17:45:20
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import unittest from pytracer.core.PtPlugin import PtPlugin from pytracer.core import PtParam class PtPluginTest(unittest.TestCase): def test_addPtParam1(self): val = 5.0 param = PtParam.PtParamFloat(value=val) node = PtPlugin() node.addParam(param) self.assert...
UTF-8
Python
false
false
758
py
40
PtPluginTest.py
33
0.631926
0.617414
0
28
26.071429
54
galenguyer/infod
14,955,076,130,884
c1e0847734dd0c76d8f59ca30ffc77f8db2c57ca
7a26e35e820ff5c0fe5802422a772a72663ced9d
/api/app.py
e2b1bd3eccbfd781ce58151d925a18b57436205f
[ "MIT" ]
permissive
https://github.com/galenguyer/infod
12f46c734253323505147a2db071918cd6afa3ed
ea533d6dc909d7781d561e8b285d4c08915d5f54
refs/heads/main
2023-06-01T14:42:30.012605
2021-06-15T17:17:00
2021-06-15T17:17:00
376,989,265
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from infod import app
UTF-8
Python
false
false
22
py
6
app.py
3
0.818182
0.818182
0
1
21
21
overuns/codejam_practice
4,655,744,595,845
8f6ed2d6c2aeb33a23ed96e05009ae5d13def4b1
9fadf5644539acd53fc26cb74e5851e6d39de7a5
/round_a_apac_test_2016/C.py
977a92b1104c15c4960392425995a385cab1d500
[]
no_license
https://github.com/overuns/codejam_practice
8810d4194e4624244c2fca715056180da59e0552
f238917584a3b9743aeb55ea7f0a558676d26e03
refs/heads/master
2018-01-10T15:49:18.584537
2016-04-10T11:30:35
2016-04-10T11:30:35
54,823,390
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- def main(): t = int(input()) for case in range(1, t + 1): k = int(input()) print('Case #{}: {}'.format(case, k)) if __name__ == "__main__": main()
UTF-8
Python
false
false
203
py
6
C.py
6
0.423645
0.408867
0
12
15.916667
45
laxte/coursework
8,443,905,714,037
220d88717bc53dd9adfafc15ac1045e51b1167b9
4c459d5ebe66eb6fd0609a6081de60c5f7571396
/sdn/ex3/module3-assignment1/CustomTopo.py
b706834e4168cabdd0bcc5872768ae278c126767
[]
no_license
https://github.com/laxte/coursework
d95b39d438dd11678cffed5e9f51daf09842c9c3
564f02f14a5c83c3fefc00bfc65931cff77d2c80
refs/heads/master
2021-01-10T09:18:45.394047
2016-12-26T19:03:57
2016-12-26T19:03:57
48,134,750
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python ''' Coursera: - Software Defined Networking (SDN) course -- Module 3 Programming Assignment Professor: Nick Feamster Teaching Assistant: Muhammad Shahbaz ''' from mininet.topo import Topo from mininet.net import Mininet from mininet.link import TCLink from mininet.log import setLogLevel from mininet...
UTF-8
Python
false
false
2,254
py
17
CustomTopo.py
15
0.605146
0.581633
0
71
30.746479
89
quantumInfection/blinkist
7,516,192,778,751
210f83a8cc379100aa4b6008e5d63a8d5838a3ab
424479451509a9f833b0c1e8942e9041e6950453
/recommendation/__init__.py
9f7453a474f855aa51444ed3ee5929081de954ac
[]
no_license
https://github.com/quantumInfection/blinkist
1117804ad00106f0d0e192d2b048caa9e71c4c94
2c6270c030e619d14d9ab1df9152f4d07ff9b205
refs/heads/master
2023-05-11T19:08:53.172894
2019-06-10T17:28:14
2019-06-10T17:28:14
190,996,388
0
0
null
false
2023-05-01T20:57:47
2019-06-09T11:08:43
2019-06-10T17:28:20
2023-05-01T20:57:46
8
0
0
1
Python
false
false
"""This package contains all the rest api code for recommendations""" from recommendation.api import rec_app
UTF-8
Python
false
false
110
py
7
__init__.py
6
0.790909
0.790909
0
3
35.666667
69
ryys1122/pbs_accounting
12,987,981,135,353
4428c683ec35b7211afa014622f9eddd19a75136
1a27450146f1a6fa8634e5ead6919684cd419133
/other-scripts/totalcoredays.py
8a9dc91d1b20d4a02748db469218b0fc3092de69
[ "MIT" ]
permissive
https://github.com/ryys1122/pbs_accounting
c063500704ab38f526d291cbdd5317217a10bffb
5dd01223b5c5beb870127bf04d17325d613c2284
refs/heads/master
2021-01-22T07:13:40.541851
2015-06-02T16:52:18
2015-06-02T16:52:18
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/software/tools/python-2.6.7/bin/python import jobstats import sys import numpy as np def main(): """ Main routine: Process total core days used by all jobs """ if len(sys.argv) < 2: sys.exit('Usage: ' + sys.argv[0] \ + ' [Accounting files]') else: joblist = sys...
UTF-8
Python
false
false
580
py
19
totalcoredays.py
18
0.539655
0.510345
0
29
18.344828
58
GuilhermeAureliano/programacao-1
5,892,695,155,615
d37ca9066718280d9dd9d8843bcd4a4881c4e92b
5dd815624418911e33d75b05400cd10af349a3d2
/unidade1-2/nota_final.py
1d882dd220e0ba60d85ef928218d418e5dfb64f3
[]
no_license
https://github.com/GuilhermeAureliano/programacao-1
e970275d58c024bab83022abb45caadd8578d1da
c9f2255956b0ab03afc38cd3efb0de531864cd3e
refs/heads/master
2020-07-28T10:21:59.988617
2019-11-20T22:07:33
2019-11-20T22:07:33
209,392,092
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Universidade Federal de Campina Grande - UFCG # Programação - 1 # Guilherme Aureliano # Nota na Final print('== Estágio 1 ==') peso1 = float(input('Peso? ')) nota1 = float(input('Nota? ')) print('== Estágio 2 ==') peso2 = float(input('Peso? ')) nota2 = float(input('Nota? ')) print('== Estágio 3 ==') peso3 = float(...
UTF-8
Python
false
false
798
py
161
nota_final.py
159
0.596203
0.54557
0
25
29.32
89
mgarcoder8z/oh-so-gitty
11,055,245,847,318
27448d3204f5507a38ee4f60b3adf7117855dbf2
fe5c72c7ea7b90a6fb4b77a9b679167c078f92d6
/Python/grade2.py
a7fba086c37227348bd306395071f45eaf08bf9b
[]
no_license
https://github.com/mgarcoder8z/oh-so-gitty
f50b224e77bfd4ff1a003f7586409917701817d8
8227f7cc865f497b71fdc824fe8b0485d51e71b9
refs/heads/master
2021-05-24T04:05:19.036919
2020-11-02T19:32:09
2020-11-02T19:32:09
59,146,144
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
score=0 for i in xrange(1,11): score=int(raw_input("Enter a score between 0 and 100: ")) if score >= 90 and score <= 100: print(str(score) + "," + "Your grade is an A") elif score >= 80 and score <= 89: print(str(score) + "," + "Your grade is an B") elif score >= 70 and score <= 79: print(str(score) + "," +...
UTF-8
Python
false
false
513
py
192
grade2.py
74
0.586745
0.530214
0
14
35.642857
58
ITSupportClamC/security_data
13,176,959,698,625
2134a90751f7b58fee81bb1e5f09134571bfb216
8767ca26c4d46505c6e9f114c397e02280e7fdae
/services/security_attribute_services.py
9b69c737efa6c48a9b4f3582ba5225d26aa5708d
[]
no_license
https://github.com/ITSupportClamC/security_data
aa20cfde4ef62c4b1264819b83f37e3dbd1e4ffc
8d1b69509a3b8bd037f9390929ea0f1b5d93fc12
refs/heads/master
2023-05-05T14:38:24.096099
2021-05-28T09:29:35
2021-05-28T09:29:35
363,796,223
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding=utf-8 # import logging from security_data.models.security_attribute import SecurityAttribute from sqlalchemy.orm import sessionmaker from security_data.utils.error_handling import (SecurityAttributeAlreadyExistError, SecurityAttributeNotExistError) class SecurityAttributeServices: def ...
UTF-8
Python
false
false
7,110
py
24
security_attribute_services.py
19
0.706751
0.703938
0
148
46.054054
102
ebennequin/meta-domain-shift
4,509,715,664,198
0adec9170e6d68bb5bbc7e7b14cb215814bffb5c
e3b3747e3ccc7029c8fd99d9ae884482e6531ed2
/configs/model_config.py
e8ec5f050849c9e02be43b67836736355eadcced
[]
no_license
https://github.com/ebennequin/meta-domain-shift
87acef3f1c46dacf205044db1e5a987b8b93e8f7
4c7ca01afcb6df9113aaa255fa60c75ce3ccd507
refs/heads/master
2023-07-01T13:32:02.036322
2021-08-05T12:59:11
2021-08-05T12:59:11
320,583,661
11
1
null
false
2021-08-05T08:01:39
2020-12-11T13:36:08
2021-08-04T13:59:28
2021-08-05T08:01:38
6,302
3
0
1
Python
false
false
from functools import partial from src.modules.batch_norm import * BATCHNORM = ConventionalBatchNorm from src.modules.backbones import * from src.modules import * from src.methods import * # Parameters of the model (method and feature extractor) BACKBONE = Conv4 TRANSPORTATION_MODULE = OptimalTransport( regul...
UTF-8
Python
false
false
494
py
64
model_config.py
47
0.757085
0.736842
0
25
18.76
56
emmettcowan/EC_Final_Year_Proejct
14,886,356,668,204
e5126f8d5031c5497550185a524cf52c6db0d074
215b867a43fe162580ad754f86f5833648dd27ae
/urlDetection.py
1511b264236cfcc2a0a6cf84efc0ec635e0c79e0
[]
no_license
https://github.com/emmettcowan/EC_Final_Year_Proejct
7d73e8bb60c59f19405dcb324a115a585a1d518a
e32ba9b6c75a3817e9595768eeb056da9d67305a
refs/heads/master
2023-04-22T02:03:27.724262
2021-05-17T14:32:25
2021-05-17T14:32:25
299,883,549
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
######################################################### # --- ***MONITOR*** --- # # * * # # --- *** --- By Emmett Cowan --- *** --- # # * * # # --- V 1 ...
UTF-8
Python
false
false
1,176
py
34
urlDetection.py
5
0.410714
0.39966
0
30
38.166667
143
abhardwaj1998/Faculty-Webpage-Generator
4,483,945,867,798
56610724c8a33331f97e6dbc83bb5a48004bc416
5cd7632cc442fae1870dc3d250a00da153c8b241
/userprofile/admin.py
1f1a385408eb9799be24a240041b011106f3da64
[]
no_license
https://github.com/abhardwaj1998/Faculty-Webpage-Generator
9da497ab810b21071609512fc7f352853798ebe3
4a7500ccfa6152ae4aac2301d8cc2d18c6fc4d40
refs/heads/master
2020-03-23T21:31:59.876836
2018-01-28T04:36:56
2018-01-28T04:36:56
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin # Register your models here. from .models import * admin.site.register(About_us) admin.site.register(Teaching) admin.site.register(Education) admin.site.register(Experience) admin.site.register(Publications) admin.site.register(Projecting) admin.site.register(Awards)
UTF-8
Python
false
false
302
py
35
admin.py
18
0.817881
0.817881
0
12
24.25
33
INFORMSJoC/2021.0326
15,023,795,618,290
867b67d69d9b8ea7196b712ee1acb91d9f612987
21429319fcea4e6590374c22daf748528234dce9
/src/modelGoogleCP.py
33799811cefa885c1a8894cbb76d78eab9d429c4
[ "MIT" ]
permissive
https://github.com/INFORMSJoC/2021.0326
d5bf6493f4467fa1112e1507d6b2c29dc8221df2
15b70e43d230fc7581bdaa1cb37139b5adaf842b
refs/heads/master
2023-04-17T04:55:20.228845
2023-03-23T12:38:55
2023-03-23T12:38:55
568,541,984
6
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from ortools.sat.python import cp_model import collections # https://developers.google.com/optimization/reference/python/sat/python/cp_model#bestobjectivebound #https://developers.google.com/optimization/reference/python/linear_solver/pywraplp#bestbound ###### main ######## def CPmodel_generation(instance,mdl,problemT...
UTF-8
Python
false
false
11,241
py
4,712
modelGoogleCP.py
10
0.603772
0.597901
0
271
40.479705
162
vdikan/aiida_siesta_plugin
18,227,841,216,940
00b7d693c7e8d106202fe8f10c08bad460c13c61
bbcb4e757466f04abde79e4e1e0e981b630fc9f9
/aiida_siesta/utils/generator_absclass.py
23d717baa43066c59ba8be4b7b67e6b9f658af78
[ "MIT" ]
permissive
https://github.com/vdikan/aiida_siesta_plugin
1e9366ee94f5ad93fb8828da25582364b36b8f8e
932192d7a2242112523a645d1dbe37d65df05ac6
refs/heads/master
2022-09-11T06:52:35.083362
2022-03-08T08:14:59
2022-03-08T08:14:59
92,830,999
0
0
NOASSERTION
true
2019-05-13T11:46:16
2017-05-30T12:33:48
2019-03-25T17:47:42
2019-05-13T11:45:27
745
0
0
0
Python
false
false
import warnings from aiida_siesta.utils.warn import AiidaSiestaDeprecationWarning from .protocols_system.generator_absclass import InputGenerator message = ( #pylint: disable=invalid-name 'This module has been deprecated and will be removed in `v2.0.0`. `InputsGenerator` is now `InputGenerator` ' + 'in `aiida...
UTF-8
Python
false
false
618
py
143
generator_absclass.py
84
0.771845
0.76699
0
16
37.625
115
ericye16/WEC-programming
7,232,724,933,750
480d5078d832dcb1def496164cb8725b683d1300
b9b1b26d1922f95e3129994985de7e578c427375
/elastic.py
e20d76675958b4e226ae92f9138b719873e9c51c
[]
no_license
https://github.com/ericye16/WEC-programming
1ed24b765d43a556fb2a401c24c4b1d48bdc4ca6
b00375628d4a4ce2983cf4e43d68cac5e57872f3
refs/heads/master
2021-01-01T05:22:11.855770
2014-11-08T03:26:41
2014-11-08T03:26:41
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from file_read import read_map transitions = ( (0, 1), (0, -1), (1, 0), (-1, 0) ) def between(x, min, max): return x >= min and x < max def is_street(ch): return ch == 'H' or ch == ' ' def make_transition(y, x, transition): return y + transition[0], x + transition[1] # def construct...
UTF-8
Python
false
false
2,889
py
1
elastic.py
1
0.498789
0.476982
0
103
27.048544
79
bartlomiejurczyk/python_training
5,643,587,050,553
f889420fcc3bf15072263606641fdbdadd6b0c1a
1b30049304a5537665121b4eac270a111a9f7de8
/test/test_phones.py
716f0e285781b4274ba3a0f8a47a6c56058591d4
[ "Apache-2.0" ]
permissive
https://github.com/bartlomiejurczyk/python_training
fd5341f39d6b7f1b6c0c39deee8091c81ca406d8
e1d6396d25058c1acaa81508e82394606b795f24
refs/heads/master
2021-05-18T04:12:29.888309
2020-05-13T19:09:35
2020-05-13T19:09:35
251,100,968
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import re def test_phones_on_home_page(app): contact_from_home_page = app.contact.get_contact_list()[0] contact_from_edit_page = app.contact.get_contact_info_from_edit_page(0) assert contact_from_home_page.all_phones_from_home_page == merge_phones_like_on_homepage(contact_from_edit_page) def test_phones...
UTF-8
Python
false
false
1,205
py
15
test_phones.py
13
0.706224
0.702905
0
27
43.62963
153
WUVsUQkP/data-structures-and-algorithms-in-python-solutions
11,201,274,714,694
2ba07bd480ef37ad489b4c5f7947b78e5650ef18
34533cf7a8e9084907a86ba87a13bedf9cd7dd58
/solutions/exercises/P/ch1/ex36/word_count
8c5666d9166570ee7379c29396396fa17bd012c8
[ "MIT" ]
permissive
https://github.com/WUVsUQkP/data-structures-and-algorithms-in-python-solutions
5efba44d6e49503351a3b1a90cb73f578a908168
dc0364159f2ad4e51f3f7434e6de9a1742ccb9dc
refs/heads/master
2022-01-26T10:11:55.072287
2018-09-18T03:34:34
2018-09-18T03:34:34
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # ch1_ex36_sc1 import re def word_count(whitespace_deliminated_list): counts = {} words = map(lambda x: x.lower(), filter(lambda x: len(x) > 0, re.split(r"\s+", whitespace_deliminated_list))) for word in words: counts[word] = counts.get(word, 0) + 1 return counts if __...
UTF-8
Python
false
false
429
87
word_count
63
0.638695
0.620047
0
15
27.6
113
beauvilerobed/data-structure-algorithm-practice
7,224,135,012,756
5f685783fe5cbbee9abb7291d17e28531f7e4c51
0698b9339855ceb6f43223ec559c089b8f4efb45
/merge_arrays/tests.py
2d725afb2eb1f332cbf464737251403bce468688
[]
no_license
https://github.com/beauvilerobed/data-structure-algorithm-practice
a90041eed6a5cadc28fbadc5b082db158d884fd3
ecaa600782419297090f7878f2a70b28a0338a12
refs/heads/main
2023-01-20T12:41:20.849994
2022-01-26T04:51:17
2022-01-26T04:51:17
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import unittest import random from merge_array import merge_array, merge_array_naive class MergeArray(unittest.TestCase): def test_small(self): test_cases = [ ([1], [2], [1, 2]), ([1], [1], [1, 1]), ([1, 2, 3, 4], [5, 6, 7], [1, 2, 3, 4, 5, 6, 7]), ([1, 2, 7...
UTF-8
Python
false
false
1,369
py
197
tests.py
181
0.477721
0.401753
0
43
30.837209
68
bengxy/FastNeuralStyle
5,583,457,512,003
248642a5e4ff205f151ae77c75bf44228b4f1f32
21f2ad563c2cb6e5f878601ec35a5ddaa3ff8423
/net.py
c2bd47464db2c5160f106f1f60ecaac3822c3794
[ "MIT" ]
permissive
https://github.com/bengxy/FastNeuralStyle
3fa852486432cc9dccd626436a37b2d91cea1e93
6d973e63a5e2ef249c716c688175c1d1365e2e0d
refs/heads/master
2022-02-07T14:08:21.032419
2022-01-24T04:39:40
2022-01-24T04:39:40
82,258,763
94
19
null
null
null
null
null
null
null
null
null
null
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F class ResBlock(nn.Module): def __init__(self, channel): super(ResBlock, self).__init__() self.conv1 = nn.Conv2d(channel, channel, kernel_size=3, stride=1, padding=1) self.bn1 = nn.BatchNorm2d(channel) self.conv2 = nn...
UTF-8
Python
false
false
3,753
py
5
net.py
4
0.576339
0.488942
0
94
38.93617
86
aokitashipro/newbook_django
7,928,509,655,696
680af914bf59fe769739636dcb9d4116ceb2a520
44d089a98ee628fda2826a75127a4370bae4f641
/newbook/models/Plan.py
9c564ddc2db7aa9b5f5eb033918caa4fafd8d1a6
[]
no_license
https://github.com/aokitashipro/newbook_django
d8684d96ce055ee0852563e79e958347194f97d2
1d36592c4a909caee616bc3bab6530b26cdee8f6
refs/heads/master
2020-04-01T23:31:10.787990
2018-10-25T03:51:24
2018-10-25T03:51:24
153,761,637
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import uuid from django.db import models from django.utils import timezone from newbook.models import Hotel, Room class Plan(models.Model): class Meta: db_table = 'plan' unique_together = (('hotel_id', 'plan_id')) id = models.UUIDField(primary_key=True, default=uuid.uuid4, unique=True, edita...
UTF-8
Python
false
false
545
py
27
Plan.py
21
0.684404
0.675229
0
19
27.684211
92
SevenJiao/GetMoreQrCode
10,033,043,649,028
050803ae6e6dd33d1dafd87b520542e090e9c8ec
25984457a81329041579241074bc6d70337869da
/run.py
175944486268c321c58804dd9877aadce97be93b
[]
no_license
https://github.com/SevenJiao/GetMoreQrCode
5e7c190312e25f39be9716076df7d1f6aa30cb90
6c7278e12cf5684a6072956e44ad8d48b7e1b286
refs/heads/master
2020-09-12T06:13:54.571063
2019-11-26T03:35:32
2019-11-26T03:35:32
222,337,596
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import sys import tkinter as tk from tkinter import filedialog import numpy as np import pandas as pd import qrcode ''' 批量生成二维码 ''' qr = qrcode.QRCode( error_correction=qrcode.constants.ERROR_CORRECT_H, box_size=10, border=4 ) class run: def __init__(self, window): self.window = w...
UTF-8
Python
false
false
4,377
py
2
run.py
1
0.511661
0.483157
0
121
34.082645
85
MaoXianXin/codeLab
16,166,256,910,394
7104ccea05ce30f83caeeb2f559e0ae1feda09f8
f871abc2349feea99ae4a25d267cb01989485287
/cifar100.py
5ab135081d00f7df2a3f42a733a2d9d37af9fe43
[]
no_license
https://github.com/MaoXianXin/codeLab
02e089ac5142585832fc819b8f65d94ce3817d2a
d1402bbf145b2c28ebac0681308362cb9bd89402
refs/heads/master
2020-06-07T17:50:14.029513
2019-06-21T09:20:17
2019-06-21T09:20:17
193,066,777
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# USAGE # python train_auto_keras.py # import the necessary packages from sklearn.metrics import classification_report from tensorflow.keras.datasets import cifar100 import autokeras as ak import os def main(): # initialize the output directory OUTPUT_PATH = "output" # initialize the list of trianing times that w...
UTF-8
Python
false
false
2,916
py
3
cifar100.py
3
0.65192
0.631344
0
80
35.4625
78
Gladysgong/scrapySet
10,213,432,242,960
a60a0bcf7e378098c92941f8bf041aa54cbea112
595b44fe0aa172bcee13cd0d88f1eb80c3e0d96d
/fao/fao/spiders/fao_countries_spider.py
d9f0f9396ebdfcfcafb496e0ebea2602a1806cdf
[]
no_license
https://github.com/Gladysgong/scrapySet
b19d45d325ec81f23e3646c0aed5cadf7b79943c
b676fa539ea1fa9c38ba309e2f96bf7321000b1e
refs/heads/master
2021-05-26T08:01:47.645139
2019-12-26T12:21:59
2019-12-26T12:21:59
127,993,429
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding:utf-8 -*- import scrapy from bs4 import BeautifulSoup from ..items import FaoCountriesItem import time class FaoCountriesSpier(scrapy.Spider): name = "faocountries" start_urls = ["http://www.fao.org/countryprofiles/geographic-and-economic-groups/en/"] # def start_requests(self): # yi...
UTF-8
Python
false
false
2,861
py
16
fao_countries_spider.py
13
0.427237
0.423284
0
68
39.941176
94
Richard-Cod/atelieriia
16,363,825,415,274
afda4cad86fdbd57ef14c612d5a00a6a37b83750
34071b177568de0c0979f13777473f19fb7609fd
/atelieriia/urls.py
077d5e50eddc8a31dd80b4a969feef4aa987f44c
[]
no_license
https://github.com/Richard-Cod/atelieriia
0e1630fac3686c26f9fb5efef81ecf5af329877f
5686cb8c1a1c09bf62950dd222c8bcd0ae0947bd
refs/heads/master
2020-07-22T05:16:25.871998
2019-11-23T10:32:24
2019-11-23T10:32:24
207,084,292
0
0
null
false
2019-12-05T00:20:35
2019-09-08T08:36:55
2019-11-23T11:10:37
2019-12-05T00:20:34
10,614
0
0
2
Python
false
false
"""atelieriia URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/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-ba...
UTF-8
Python
false
false
1,940
py
49
urls.py
20
0.678351
0.674227
0
71
26.323944
100
VRDate/nao-recorder
17,918,603,571,538
853c7d2bbf1618c728314d0fecdb04ded6d88605
b04b911600f7c8c317a5a045988013071bc068b4
/src/main/python/recorder/main.py
5cccc3c1f4dbba2ea4dd657dd15c07774aed4dda
[]
no_license
https://github.com/VRDate/nao-recorder
fdc9160796167850da8c32c7d906470446e7c58d
c7fafd2e9720537862c4b29fa65fafec94533534
refs/heads/master
2021-01-17T04:57:37.444961
2013-07-27T09:50:53
2013-07-27T09:50:53
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Created on 7 Jul 2013 @author: davesnowdon ''' import kivy kivy.require('1.7.1') from kivy.app import App from kivy.extras.highlight import KivyLexer from kivy.uix.widget import Widget from kivy.uix.button import Button from kivy.uix.spinner import Spinner, SpinnerOption from kivy.uix.boxlayout import BoxLayout ...
UTF-8
Python
false
false
7,409
py
8
main.py
6
0.599001
0.593602
0
252
28.400794
112
zyong/GameServer
12,240,656,806,410
a99db4c080aece824f94efc3a3401d5404d7672d
1c2711d8cfaf5da9340ce53bb0dd8348cf60f1a8
/logic/perform/npcs/pf5127.py
c39b1c3005e89e3232c09649fd1e27fc06474d27
[]
no_license
https://github.com/zyong/GameServer
2bf362162f1988dcc95f52539f90a3a77dea1e41
9f47473b4467db37d970fdff40b4a860ccf57887
refs/heads/master
2017-12-22T01:02:19.852477
2016-11-26T04:07:43
2016-11-26T04:07:43
76,151,313
1
0
null
true
2016-12-11T03:13:19
2016-12-11T03:13:19
2016-11-26T03:31:02
2016-11-26T04:08:46
5,958
0
0
0
null
null
null
# -*- coding: utf-8 -*- from perform.defines import * from perform.object import Perform as CustomPerform #导表开始 class Perform(CustomPerform): id = 5127 name = "唤灵" configInfo = { "符能":15, } #导表结束 #非第一回合进入战场时,回复主人15点的符能 def onSetup(self, w): self.addFunc(w, "onSummoned", self.onSummoned) def onS...
UTF-8
Python
false
false
496
py
1,580
pf5127.py
1,295
0.669767
0.648837
0
20
19.75
57
522408323/pythondemo
11,673,721,156,190
06ca6a47270b81b5da751afa1481b2942d749f0a
1f1e6ba44e998d0766405ffb23fa1729ef1a3a15
/Test.py
44111f3c31676208cedb857651a1d83e6b29d5e6
[]
no_license
https://github.com/522408323/pythondemo
a209f0218aa765269adf829a4c4fb6a197cdd682
6c7df1d7eed67f183f809ba8163a9b0dddb092a7
refs/heads/main
2023-05-06T09:06:47.766310
2021-06-02T10:00:16
2021-06-02T10:00:16
352,954,849
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
if __name__ == '__main__': # print("111111") # print(5+10) # print("hello" + " world") # print("love" * 3) # print("love\n" * 3) # 单行注释: # ,多行注释: ctrl + / 或者 3个单引号 或者 3个双引号 ,多行注释貌似需要先空tab行,不然后面代码报错 ''' temp ========= ''' # 使用变量前需要先赋值 #print(a) # 变量名:可以是字符,数字,下划线,不能以数字开头 # 变量名区分大小写 # 转义字符...
UTF-8
Python
false
false
1,510
py
15
Test.py
14
0.478456
0.455117
0
74
14.054054
69
jesuszarate/CTCI
2,121,713,857,937
39025130e2ed656ec363d200a46dda00d6fd971e
4d439fac4eeb1a3bd21f1a2d8c95edc736a0a5a5
/LeetCode/copy_list_with_random_pointer_138.py
e519b7acd6f2ec609325c71045cd61c46432e890
[]
no_license
https://github.com/jesuszarate/CTCI
4962d6a5025343a01c26f5c5e64a4ce42cb541f8
8d1c11cc64570a2374798bd41818ad590bc6d661
refs/heads/master
2020-05-05T09:11:52.290405
2019-11-17T05:06:10
2019-11-17T05:06:10
179,894,197
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a deep copy of the list. Example 1: 1 . \ 2 . 2 Input: {"$id":"1","next":{"$id":"2","next":null,"random":{"$ref":"2"},"val":2},"random":{"$ref":"2"},"val":1} E...
UTF-8
Python
false
false
1,365
py
50
copy_list_with_random_pointer_138.py
49
0.600733
0.589744
0
59
22.084746
131
BiagioDipalma/NAOSoftware
7,069,516,171,910
85df72da05dc860e1df5c79861e3a30923b106ae
9e4dc53577c5319668fda425dfac0994d179e9f2
/ServerSide/vision_faceDetection.py
8a5eaf0a1d417c0213fa19f9e08e6e29f28d0129
[]
no_license
https://github.com/BiagioDipalma/NAOSoftware
b1fff791c03a6b1029ff238f8b67de7d66d02972
0cd84455e2bd668122f72a03ef78bff5d1729531
refs/heads/master
2020-03-23T20:10:16.788570
2018-07-23T14:33:07
2018-07-23T14:33:07
142,025,868
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os.path import sys import json import random import string import webbrowser import socket import speech_recognition as sr import playsound import time import time from naoqi import ALProxy IP = "192.168.1.102" # Replace here with your NaoQi's IP address. PORT = 9559 #access token for dialogflow CLIENT_ACC...
UTF-8
Python
false
false
8,129
py
4
vision_faceDetection.py
3
0.611022
0.599582
0
284
27.623239
146
pasandrei/MIRPR-pedestrian-and-vehicle-detection-SSDLite
10,333,691,315,856
0021a327ebac0a9d42ed9bdb994330462c599cb3
3f768dac808469f4df5474dfeb2a3d8803957769
/train/optimizer_handler.py
5079fe72895e2dedb1eefaf998a635942e2eb1de
[ "MIT" ]
permissive
https://github.com/pasandrei/MIRPR-pedestrian-and-vehicle-detection-SSDLite
4c7c466c2991d371b6f9d02a6e8127525cf74ad8
1e4f248426bfdb6cf8e2da9411438292752f1729
refs/heads/master
2021-08-18T20:30:59.306719
2020-08-22T18:17:31
2020-08-22T18:17:31
216,416,388
1
0
MIT
false
2020-05-18T20:17:42
2019-10-20T19:33:48
2020-05-18T14:06:14
2020-05-18T14:06:12
367,253
1
1
1
Python
false
false
import torch.optim as optim """ Various optimizer setups """ def layer_specific_adam(model, params): print("AMS grad is false") return optim.Adam([ {'params': model.backbone.parameters(), 'lr': params.learning_rate * params.decay_rate}, {'params': model.loc.parameters()}, {'params': m...
UTF-8
Python
false
false
1,171
py
46
optimizer_handler.py
34
0.667805
0.664389
0
33
34.484848
100
kimrla/Testcode
1,005,022,388,042
0d647bc83c153e849c3d1d1113c0a91fbaa12945
4306a8943d6ac0da40726a0f3c394f4ab2688bdf
/py.day1/date.py
3e9fdf7e98eccbeaaad862e9765e339798710862
[]
no_license
https://github.com/kimrla/Testcode
011d3fc1e64c4488bb6fafcda81c261fec345a74
7a18e64eadef8c7ecbe669513034cfd2ab608774
refs/heads/master
2020-04-29T11:56:06.445938
2019-03-31T10:08:18
2019-03-31T10:08:18
176,118,931
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
print("请输入年月日并用空格隔开(如2019 3 26)") year, month, day = map(int, input().split()) status = 0 # 用来判断闰年的参数,0代表当前年份是平,1代表当前年份为闰年 date = 0 if year % 100 == 0: if year % 400 == 0: status = 1 else: if year % 4 == 0: status = 1 a = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] if status == 1: a...
UTF-8
Python
false
false
760
py
8
date.py
8
0.552013
0.45302
0
23
24.913043
56
ljwzz/PythonExercise
4,406,636,447,134
40f7d16ebb52dc869ef05e296bbc0037cef8f1e8
1419437f67f12644abaf019e71744d299880fbb7
/LeetCode/283.moveZero.py
51661fa54691f5ba2818d7c92d857de2ae436b1d
[ "MIT" ]
permissive
https://github.com/ljwzz/PythonExercise
35a68994d0e8a7454fc58c71c8527e6d32a599e2
431a76704eec269bd7362673788d0802975cf22a
refs/heads/master
2019-07-13T08:22:16.967373
2018-04-09T01:31:09
2018-04-09T01:31:09
124,198,322
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def removeElement(nums, val): """ :type nums: List[int] :type val: int :rtype: int """ counts = 0 while counts < len(nums): if nums[counts] == val: del (nums[counts]) else: counts += 1 if len(nums) == 0: break return len(nums) ...
UTF-8
Python
false
false
363
py
85
283.moveZero.py
79
0.473829
0.460055
0
21
16.285714
31
mikeage/get_sidequest_urls
3,161,095,949,266
7b0cba1b1a6c7751ebeb682b2cb0b4936a0972f1
ddade3c171cd1f072e13d76b74fa4af6d0623dc4
/get_sidequest_url.py
2c5c0f49c21a6a97f9c0e69f77768b299b6d2a02
[]
no_license
https://github.com/mikeage/get_sidequest_urls
633def2962ab2daa17c26382b7e2f66fa1e21bf5
3381656d773f01ae28dd9c3c79d2805412feae2e
refs/heads/main
2023-02-08T19:00:02.108127
2021-01-04T12:23:21
2021-01-04T12:28:55
326,675,179
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import argparse import requests SIDEQUEST_API_URL = "https://api.sidequestvr.com" def get_app_id(app): if app.isdigit(): return app app_id = app.split("/")[4] assert app_id.isdigit() return app_id def get_token(app_id): url = "%s/generate-install" % SIDEQUEST_API_URL payload = {"ms...
UTF-8
Python
false
false
1,565
py
2
get_sidequest_url.py
1
0.563578
0.5623
0
59
25.525424
69
wellcomecollection/data-science
13,632,226,221,581
b22f8ceb30ef27f4b74782e55b0c8fdf2dfe8527
fc536757e799e4e63a618f54be00c814bf0f6c8d
/apis/devise_search/app/api.py
e8a53c1b097e15cf6db4f4fcc1ede5a377dbda82
[ "MIT" ]
permissive
https://github.com/wellcomecollection/data-science
94384593827bbeca3e6a6fb6cdd92a1f256ad256
f5d158de6d4d652e7264093c64420288ecb6a85b
refs/heads/main
2023-08-28T11:46:36.724074
2023-08-21T15:12:59
2023-08-21T15:12:59
217,507,441
7
1
MIT
false
2023-09-14T08:57:58
2019-10-25T10:11:57
2023-08-25T07:10:59
2023-09-14T08:57:57
2,749
5
1
1
Jupyter Notebook
false
false
import os import pickle import nmslib import numpy as np from fastapi import FastAPI from .utils import embed, id_to_url from .aws import get_object_from_s3, download_object_from_s3 # Load model data (don't fetch from s3 if developing locally) if 'DEVELOPMENT' in os.environ: base_path = os.path.expanduser('~/dat...
UTF-8
Python
false
false
1,853
py
404
api.py
154
0.692391
0.686454
0
55
32.690909
260
Mondanzo/pythongameservermanager
4,982,162,082,768
602603a1eadf6d432e87afd70f72d22f0d49f3f9
13b40df2624f4fb163ba91815cf3abd357f46826
/src/webmanagerapi.py
0520dce83afe0aa8d00ad5ac2fdb5acb241f0db9
[]
no_license
https://github.com/Mondanzo/pythongameservermanager
02c565571f7c696adfa9e85d16776653d72037b3
c63c3e88e6383bc3d13467dd6919baf6b19fe55c
refs/heads/master
2023-03-14T15:43:50.783560
2021-03-06T02:09:30
2021-03-06T02:09:30
344,984,331
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from typing import Optional import libtmux as tmux from uuid import uuid4, UUID from server.Wrappers import BaseGameServer from typing import Dict class GameServerManager: def __init__(self) -> None: self.tmux = tmux.Server() self.servers = Dict[UUID, BaseGameServer] def create_game_server(self, gsw: BaseGam...
UTF-8
Python
false
false
933
py
7
webmanagerapi.py
5
0.733119
0.732047
0
34
26.441176
86