hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
โŒ€
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
โŒ€
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
โŒ€
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
โŒ€
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
โŒ€
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
โŒ€
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
โŒ€
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
โŒ€
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
โŒ€
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
bffadd5ef9ed55259f862e153a071bf79963137d
5,742
py
Python
lib/pyfrc/sim/robot_controller.py
prensing/pyfrc
3b84a9a66ed97ee6531489baee26ce6c8478865b
[ "MIT" ]
null
null
null
lib/pyfrc/sim/robot_controller.py
prensing/pyfrc
3b84a9a66ed97ee6531489baee26ce6c8478865b
[ "MIT" ]
null
null
null
lib/pyfrc/sim/robot_controller.py
prensing/pyfrc
3b84a9a66ed97ee6531489baee26ce6c8478865b
[ "MIT" ]
null
null
null
from hal_impl import mode_helpers from hal_impl.data import hal_data import threading import time import wpilib from ..physics.core import PhysicsInterface from .sim_manager import SimManager class RobotController: ''' This manages the active state of the robot ''' mode_map = { Sim...
32.258427
112
0.590038
5,544
0.965517
0
0
0
0
0
0
1,607
0.279868
bffb4ca3bb22fbd938fe7554fd918c6bfaaf6614
1,053
py
Python
tests/core/engine/test_hybrid.py
halk/recowise
3fd7c33182a79b3f7bea2d7ff1f3fd734764f04d
[ "MIT-0" ]
1
2015-08-24T11:25:01.000Z
2015-08-24T11:25:01.000Z
tests/core/engine/test_hybrid.py
halk/recowise
3fd7c33182a79b3f7bea2d7ff1f3fd734764f04d
[ "MIT-0" ]
null
null
null
tests/core/engine/test_hybrid.py
halk/recowise
3fd7c33182a79b3f7bea2d7ff1f3fd734764f04d
[ "MIT-0" ]
null
null
null
import unittest from core.engine.hybrid import HybridEngine from core.engine.simple import Engine from core.taxonomy import Taxonomy class HybridTestCase(unittest.TestCase): def setUp(self): taxonomy = Taxonomy('base', {'key': 'value', 'key2': 'value2'}) component1 = Engine('recommender1', taxonomy...
39
76
0.661918
918
0.871795
0
0
0
0
0
0
214
0.203229
bfff911df94e2189787b5ca569a10579a5dcb4c2
11,611
py
Python
DeepLearning/DeepLearning/02_Deep_ChoTH/deep_learning_7.py
ghost9023/DeepLearningPythonStudy
4d319c8729472cc5f490935854441a2d4b4e8818
[ "MIT" ]
1
2019-06-27T04:05:59.000Z
2019-06-27T04:05:59.000Z
DeepLearning/DeepLearning/02_Deep_ChoTH/deep_learning_7.py
ghost9023/DeepLearningPythonStudy
4d319c8729472cc5f490935854441a2d4b4e8818
[ "MIT" ]
null
null
null
DeepLearning/DeepLearning/02_Deep_ChoTH/deep_learning_7.py
ghost9023/DeepLearningPythonStudy
4d319c8729472cc5f490935854441a2d4b4e8818
[ "MIT" ]
null
null
null
# CHAPTER 7 ํ•ฉ์„ฑ๊ณฑ ์‹ ๊ฒฝ๋ง(CNN) # ์ „์ฒด๊ตฌ์กฐ # ํ•ฉ์„ฑ๊ณฑ๊ณ„์ธต๊ณผ ํ’€๋ง๊ณ„์ธต์ด ์ถ”๊ฐ€๋œ๋‹ค. # ์ง€๊ธˆ๊นŒ์ง€ ๋ณธ ์‹ ๊ฒฝ๋ง์€ ์ธ์ ‘ํ•˜๋Š” ๊ณ„์ธต์˜ ๋ชจ๋“  ๋‰ด๋Ÿฐ๊ณผ ๊ฒฐํ•ฉ๋˜์–ด ์žˆ๋‹ค. ์ด๋ฅผ ์™„์ „์—ฐ๊ฒฐ์ด๋ผ๊ณ  ํ•˜๋ฉฐ, ์™„์ „ํžˆ ์—ฐ๊ฒฐ๋œ ๊ณ„์ธต์„ Affine๊ณ„์ธต์ด๋ผ๋Š” ์ด๋ฆ„์œผ๋กœ ๊ตฌํ˜„ํ–ˆ๋‹ค. ########################################## # 2์ฐจ์› ๋ฐฐ์—ด ํ•ฉ์„ฑ๊ณฑ #@#!@#!$!$!@#@!$%!@#!@# ########################################## import numpy as np data = np.array(range(0,81)).reshape...
35.39939
113
0.551977
1,439
0.09122
0
0
0
0
0
0
8,887
0.56336
8701baa38dbace3db22665ae3165e5ae00163f86
1,303
py
Python
handlers/userProvider.py
saraheisa/RishaCar
5e74b4996f956944fdf6733fc13efa0cc37cd7e1
[ "MIT" ]
1
2020-01-02T09:39:55.000Z
2020-01-02T09:39:55.000Z
handlers/userProvider.py
prosarahgamal/RishaCar
5e74b4996f956944fdf6733fc13efa0cc37cd7e1
[ "MIT" ]
3
2021-02-08T20:53:43.000Z
2021-06-02T00:13:47.000Z
handlers/userProvider.py
prosarahgamal/RishaCar
5e74b4996f956944fdf6733fc13efa0cc37cd7e1
[ "MIT" ]
null
null
null
import json import logging from bson import json_util from handlers.base import BaseHandler from lib.DBConnection import DriveFunctions from lib.DBConnection import UserFunctions logger = logging.getLogger('rishacar.' + __name__) class UserProviderHandler(BaseHandler): async def post(self): if self.request.bod...
28.326087
63
0.606293
1,069
0.820414
0
0
0
0
1,014
0.778204
142
0.108979
8701d9777abb9867105564e069f85e55ea2668a5
806
py
Python
project/settings/general/databases.py
danielbraga/hcap
a3ca0d6963cff19ed6ec0436cce84e2b41615454
[ "MIT" ]
null
null
null
project/settings/general/databases.py
danielbraga/hcap
a3ca0d6963cff19ed6ec0436cce84e2b41615454
[ "MIT" ]
null
null
null
project/settings/general/databases.py
danielbraga/hcap
a3ca0d6963cff19ed6ec0436cce84e2b41615454
[ "MIT" ]
null
null
null
""" django: https://docs.djangoproject.com/en/3.0/ref/settings/#databases """ from ..env import env from .paths import SQLITE_PATH DATABASE_TYPE = env("HCAP__DATABASE_TYPE", default="sqlite") if DATABASE_TYPE == "sqlite": DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": str(SQLITE_PA...
32.24
95
0.626551
0
0
0
0
0
0
0
0
404
0.501241
8703dc62fa5bebbb67aa2d61d8d7ec816c00964c
16,217
py
Python
wbia_cnn/netrun.py
WildMeOrg/wbia-plugin-cnn
c31ff09e77b731be4dffc348a1c40303e8c05994
[ "Apache-2.0" ]
null
null
null
wbia_cnn/netrun.py
WildMeOrg/wbia-plugin-cnn
c31ff09e77b731be4dffc348a1c40303e8c05994
[ "Apache-2.0" ]
null
null
null
wbia_cnn/netrun.py
WildMeOrg/wbia-plugin-cnn
c31ff09e77b731be4dffc348a1c40303e8c05994
[ "Apache-2.0" ]
1
2021-05-27T15:33:26.000Z
2021-05-27T15:33:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- r""" FIXME: sometimes you have to chown -R user:user ~/.theano or run with sudo the first time after roboot, otherwise you get errors CommandLineHelp: python -m wbia_cnn --tf netrun <networkmodel> --dataset, --ds = <dstag>:<subtag> dstag is the main da...
40.441397
194
0.635444
0
0
0
0
0
0
0
0
9,249
0.570327
8703e2d3131fbbf507719f582a432f8703d7572d
537
py
Python
exerciciosPython/Mundo1GB/ex035.py
gutembergdomingos13/ExerciciosPhyton
67e046d3ed91d1c10d8227bc5a89735ed6a0abff
[ "MIT" ]
null
null
null
exerciciosPython/Mundo1GB/ex035.py
gutembergdomingos13/ExerciciosPhyton
67e046d3ed91d1c10d8227bc5a89735ed6a0abff
[ "MIT" ]
null
null
null
exerciciosPython/Mundo1GB/ex035.py
gutembergdomingos13/ExerciciosPhyton
67e046d3ed91d1c10d8227bc5a89735ed6a0abff
[ "MIT" ]
null
null
null
# Desenvolva um programa que leia o comprimento de trรชs retas # e diga ao usuรกrio se elas podem ou nรฃo formar um triรขngulo. print("-=-" * 15) print("Vamos analisar um triรขngulo...") print('-=-' * 15) r1 = float(input('Informe o primeiro segmento: ')) r2 = float(input('Informe o segundo seguimento: ')) r3 = float(inpu...
33.5625
61
0.687151
0
0
0
0
0
0
0
0
363
0.668508
870471c2d2cfa3694cd35571e655bc89ffdfcb61
1,032
py
Python
python/test/test_super_multiple_order_api.py
ashwinkp/ksapi
c348765cefb4d51fd90febcbfa9ff890b67bdc7d
[ "Apache-2.0" ]
7
2022-02-05T16:20:37.000Z
2022-02-27T16:48:28.000Z
python/test/test_super_multiple_order_api.py
ashwinkp/ksapi
c348765cefb4d51fd90febcbfa9ff890b67bdc7d
[ "Apache-2.0" ]
19
2022-02-03T12:40:08.000Z
2022-03-30T09:12:46.000Z
python/test/test_super_multiple_order_api.py
ashwinkp/ksapi
c348765cefb4d51fd90febcbfa9ff890b67bdc7d
[ "Apache-2.0" ]
12
2021-12-23T06:14:21.000Z
2022-03-28T07:47:19.000Z
# coding: utf-8 from __future__ import absolute_import import unittest import ks_api_client from ks_api_client.api.super_multiple_order_api import SuperMultipleOrderApi # noqa: E501 from ks_api_client.rest import ApiException class TestSuperMultipleOrderApi(unittest.TestCase): """SuperMultipleOrderApi unit...
21.5
99
0.679264
747
0.723837
0
0
0
0
0
0
400
0.387597
8705be63c63c4c6cc5d6f7cc5c1159e4435dd4ec
956
py
Python
examples/img-classifier/main.py
robianmcd/keras-mri
dd8619ca848cb64555fbd7aca5b7aa1941cdc08b
[ "MIT" ]
12
2019-04-18T13:32:48.000Z
2020-06-19T13:45:34.000Z
examples/img-classifier/main.py
robianmcd/keras-mri
dd8619ca848cb64555fbd7aca5b7aa1941cdc08b
[ "MIT" ]
1
2019-06-20T03:44:07.000Z
2019-06-21T14:35:44.000Z
examples/img-classifier/main.py
robianmcd/keras-mri
dd8619ca848cb64555fbd7aca5b7aa1941cdc08b
[ "MIT" ]
3
2019-04-18T19:36:52.000Z
2020-01-30T22:51:02.000Z
import numpy as np import os import os.path as path from keras.applications import vgg16, inception_v3, resnet50, mobilenet from keras.preprocessing.image import load_img from keras.preprocessing.image import img_to_array import kmri base_path = path.dirname(path.realpath(__file__)) img_path = path.join(base_path, 'i...
26.555556
80
0.761506
0
0
0
0
0
0
0
0
229
0.23954
8707f87d551c2ced2234e8a164a65f88799aa23a
1,483
py
Python
tests/test_voting_phase.py
SeanAmmirati/secrethitlergame
a7266593a3d0df36dbca4f4b476ab8604e780382
[ "MIT" ]
null
null
null
tests/test_voting_phase.py
SeanAmmirati/secrethitlergame
a7266593a3d0df36dbca4f4b476ab8604e780382
[ "MIT" ]
null
null
null
tests/test_voting_phase.py
SeanAmmirati/secrethitlergame
a7266593a3d0df36dbca4f4b476ab8604e780382
[ "MIT" ]
null
null
null
import pytest from secrethitlergame.phase import Phase from unittest import mock from secrethitlergame.voting_phase import VotingPhase def test_initialization(): vp = VotingPhase() assert isinstance(vp, Phase) assert vp.chancelor is None assert vp.president is None def test_get_previous_government()...
23.919355
53
0.691841
0
0
0
0
0
0
0
0
10
0.006743
870a18d23ecfa11d93e662286c89a4d7d8fe6f2e
328
py
Python
python_handler.py
toddcooke/aws-lambda-function-cold-start-time
a5abced3718aaa73c0cc42f827647549a72fda71
[ "MIT" ]
null
null
null
python_handler.py
toddcooke/aws-lambda-function-cold-start-time
a5abced3718aaa73c0cc42f827647549a72fda71
[ "MIT" ]
null
null
null
python_handler.py
toddcooke/aws-lambda-function-cold-start-time
a5abced3718aaa73c0cc42f827647549a72fda71
[ "MIT" ]
null
null
null
# import datetime # import logging # logger = logging.getLogger(__name__) # logger.setLevel(logging.INFO) def run(event, context): # current_time = datetime.datetime.now().time() # name = context.function_name # logger.info("Your cron function " + name + " ran at " + str(current_time)) return "hello ...
25.230769
80
0.685976
0
0
0
0
0
0
0
0
269
0.820122
870a1fd5ff0795c011afc5632b304b463b0623e3
131
py
Python
testapp2/admin.py
gabrielbiasi/django-improved-permissions
9cf6d0ddb8a4dcfa2e58d3adbf1357e56a64ce71
[ "MIT" ]
12
2018-03-22T00:30:32.000Z
2021-04-24T16:26:08.000Z
testapp2/admin.py
s-sys/django-improved-permissions
9cf6d0ddb8a4dcfa2e58d3adbf1357e56a64ce71
[ "MIT" ]
27
2018-03-18T00:43:37.000Z
2020-06-05T18:09:18.000Z
testapp2/admin.py
gabrielbiasi/django-improved-permissions
9cf6d0ddb8a4dcfa2e58d3adbf1357e56a64ce71
[ "MIT" ]
2
2018-03-28T17:54:43.000Z
2021-01-11T21:17:08.000Z
""" testapp2 admin configs """ from django.contrib import admin from testapp2.models import Library admin.site.register(Library)
18.714286
35
0.78626
0
0
0
0
0
0
0
0
30
0.229008
870a8d637ee605f55604fde4b7ffc2547f1122a2
958
py
Python
tests/unitary/ERC20CRV/test_setters.py
AqualisDAO/curve-dao-contracts
beec73a068da8ed01c0f710939dc5adb776d565b
[ "MIT" ]
217
2020-06-24T14:01:21.000Z
2022-03-29T08:35:24.000Z
tests/unitary/ERC20CRV/test_setters.py
AqualisDAO/curve-dao-contracts
beec73a068da8ed01c0f710939dc5adb776d565b
[ "MIT" ]
25
2020-06-24T09:39:02.000Z
2022-03-22T17:03:00.000Z
tests/unitary/ERC20CRV/test_setters.py
AqualisDAO/curve-dao-contracts
beec73a068da8ed01c0f710939dc5adb776d565b
[ "MIT" ]
110
2020-07-10T22:45:49.000Z
2022-03-29T02:51:08.000Z
import brownie def test_set_minter_admin_only(accounts, token): with brownie.reverts("dev: admin only"): token.set_minter(accounts[2], {"from": accounts[1]}) def test_set_admin_admin_only(accounts, token): with brownie.reverts("dev: admin only"): token.set_admin(accounts[2], {"from": account...
26.611111
65
0.676409
0
0
0
0
0
0
0
0
156
0.162839
870aa75776aa600e03d1f7176f47f56559bbbd5d
1,235
py
Python
data/data_analysis.py
poch4319/Method-Exploration-Relation-Extraction-Using-BERT
81ffbae2508f641b9028baba4983f673edecb424
[ "Apache-2.0" ]
null
null
null
data/data_analysis.py
poch4319/Method-Exploration-Relation-Extraction-Using-BERT
81ffbae2508f641b9028baba4983f673edecb424
[ "Apache-2.0" ]
null
null
null
data/data_analysis.py
poch4319/Method-Exploration-Relation-Extraction-Using-BERT
81ffbae2508f641b9028baba4983f673edecb424
[ "Apache-2.0" ]
null
null
null
import numpy as np import json from collections import Counter import matplotlib.pyplot as plt DATASET_DIR = './dataset/tacred/train_mod.json' with open(DATASET_DIR) as f: examples = json.load(f) def plot_counts(data): counts = Counter(data) del counts["no_relation"] labels, values = zip(*counts.it...
25.204082
80
0.706883
0
0
0
0
0
0
0
0
219
0.177328
870ba9ec72cbb4826cda872685bfc48f3a36eeaf
1,776
py
Python
Lab_4/4.3_rsa_cracking.py
Saif-M-Dhrubo/Crypto-Lab
2807320d7ca389adee86f69f704b9f91f9cd8054
[ "MIT" ]
2
2019-04-28T16:34:15.000Z
2019-04-28T17:54:06.000Z
Lab_4/4.3_rsa_cracking.py
saif-mahmud/Crypto-Lab
2807320d7ca389adee86f69f704b9f91f9cd8054
[ "MIT" ]
null
null
null
Lab_4/4.3_rsa_cracking.py
saif-mahmud/Crypto-Lab
2807320d7ca389adee86f69f704b9f91f9cd8054
[ "MIT" ]
1
2020-01-08T06:48:08.000Z
2020-01-08T06:48:08.000Z
import sys from fractions import Fraction as frac from math import gcd, floor from isqrt import isqrt sys.setrecursionlimit(10**4) # text=int(open("4.3_ciphertext.hex").read()) e=int(open("4.4_public_key.hex").read(),0) n=int((open("4.5_modulo.hex").read()),0) p = 0 q = 0 # print(text,"\n",e,"\n",n) def ...
24
58
0.472973
0
0
0
0
0
0
0
0
186
0.10473
870c5accc8a181d69392e0b19859b15d5dbaf7c7
2,161
py
Python
MachineLearning/Ensemble/GradientBoostingTree.py
percycat/Tutorial
d01fbb974c3a85436ea68ec277ca55cd553dd61f
[ "MIT" ]
null
null
null
MachineLearning/Ensemble/GradientBoostingTree.py
percycat/Tutorial
d01fbb974c3a85436ea68ec277ca55cd553dd61f
[ "MIT" ]
null
null
null
MachineLearning/Ensemble/GradientBoostingTree.py
percycat/Tutorial
d01fbb974c3a85436ea68ec277ca55cd553dd61f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Dec 19 06:10:55 2018 @author: PC Lee Demo of gradient boosting tree A very nice reference for gradient boosting http://homes.cs.washington.edu/~tqchen/pdf/BoostedTree.pdf LightGBM https://github.com/Microsoft/LightGBM/tree/master/examples/python-guide Catboost https://gith...
28.813333
90
0.710782
0
0
0
0
0
0
0
0
761
0.352152
870cea4c86e4cc9024721aa610576f983d0f1449
215
py
Python
rurouni/exceptions.py
PinkDiamond1/Kenshin
bb5dfa05f5d10b4bdd1e0403c9e7d3c7e4399fcb
[ "Apache-2.0" ]
219
2016-04-24T10:09:25.000Z
2022-02-02T22:12:17.000Z
rurouni/exceptions.py
PinkDiamond1/Kenshin
bb5dfa05f5d10b4bdd1e0403c9e7d3c7e4399fcb
[ "Apache-2.0" ]
16
2016-04-22T07:45:26.000Z
2018-01-11T03:16:30.000Z
rurouni/exceptions.py
PinkDiamond1/Kenshin
bb5dfa05f5d10b4bdd1e0403c9e7d3c7e4399fcb
[ "Apache-2.0" ]
29
2016-05-12T05:47:34.000Z
2021-11-05T19:19:12.000Z
# coding: utf-8 class RurouniException(Exception): pass class ConfigException(RurouniException): pass class TokenBucketFull(RurouniException): pass class UnexpectedMetric(RurouniException): pass
15.357143
41
0.767442
191
0.888372
0
0
0
0
0
0
15
0.069767
870cf724477b120338bce4e51453e770e70b63e5
1,756
py
Python
aydin/it/transforms/test/test_fixed_pattern.py
royerloic/aydin
f9c61a24030891d008c318b250da5faec69fcd7d
[ "BSD-3-Clause" ]
78
2021-11-08T16:11:23.000Z
2022-03-27T17:51:04.000Z
aydin/it/transforms/test/test_fixed_pattern.py
royerloic/aydin
f9c61a24030891d008c318b250da5faec69fcd7d
[ "BSD-3-Clause" ]
19
2021-11-08T17:15:40.000Z
2022-03-30T17:46:55.000Z
aydin/it/transforms/test/test_fixed_pattern.py
royerloic/aydin
f9c61a24030891d008c318b250da5faec69fcd7d
[ "BSD-3-Clause" ]
7
2021-11-09T17:42:32.000Z
2022-03-09T00:37:57.000Z
import numpy from scipy.ndimage import gaussian_filter from skimage.data import binary_blobs from skimage.util import random_noise from aydin.it.transforms.fixedpattern import FixedPatternTransform def add_patterned_noise(image, n): image = image.copy() image *= 1 + 0.1 * (numpy.random.rand(n, n) - 0.5) ...
33.132075
81
0.678246
0
0
0
0
0
0
0
0
527
0.300114
870dbc44ca3ddd2e95df266b346d82599c7bb3ea
1,069
py
Python
lib/geovista/__init__.py
trexfeathers/geovista
f11a7a54ef11d8542be632c29f9fe6653572879e
[ "BSD-3-Clause" ]
11
2021-05-12T08:45:51.000Z
2022-03-15T11:45:22.000Z
lib/geovista/__init__.py
trexfeathers/geovista
f11a7a54ef11d8542be632c29f9fe6653572879e
[ "BSD-3-Clause" ]
13
2021-11-22T17:10:20.000Z
2022-03-29T08:10:51.000Z
lib/geovista/__init__.py
trexfeathers/geovista
f11a7a54ef11d8542be632c29f9fe6653572879e
[ "BSD-3-Clause" ]
5
2021-05-14T13:36:00.000Z
2022-03-08T11:49:20.000Z
from os import environ from pathlib import Path from appdirs import user_cache_dir from ._version import version as __version__ # noqa: F401 from .bridge import Transform # noqa: F401 from .core import combine # noqa: F401 from .geodesic import BBox, line, panel, wedge # noqa: F401 from .geometry import get_coast...
26.725
87
0.781104
0
0
0
0
0
0
0
0
236
0.220767
870dfc6d56b7b14caa775a8da4e5a06fd9e0533c
421
py
Python
app.py
Nohossat/Smart-tic-tac-toe
204b97bf4874e0ee604abdb9b215e5b8ddcef497
[ "MIT" ]
null
null
null
app.py
Nohossat/Smart-tic-tac-toe
204b97bf4874e0ee604abdb9b215e5b8ddcef497
[ "MIT" ]
null
null
null
app.py
Nohossat/Smart-tic-tac-toe
204b97bf4874e0ee604abdb9b215e5b8ddcef497
[ "MIT" ]
null
null
null
from morpion import Morpion import argparse if __name__=='__main__': parser = argparse.ArgumentParser(description="Play Tic-Tac-Toe\n") parser.add_argument('-mode', '--mode', help='play against Human', default=False) args = parser.parse_args() mode = False if args.mode in ["h", "human", "humain",...
28.066667
84
0.674584
0
0
0
0
0
0
0
0
91
0.216152
870f4a06886086706c0904777ac053129591b6cd
715
py
Python
src/dcos_e2e_cli/dcos_docker/commands/_cgroup_mount_option.py
jongiddy/dcos-e2e
b52ef9a1097a8fb328902064345cc6c8b0bf5779
[ "Apache-2.0" ]
63
2018-05-17T21:02:14.000Z
2021-11-15T19:18:03.000Z
src/dcos_e2e_cli/dcos_docker/commands/_cgroup_mount_option.py
jongiddy/dcos-e2e
b52ef9a1097a8fb328902064345cc6c8b0bf5779
[ "Apache-2.0" ]
225
2017-09-08T02:24:58.000Z
2018-05-16T12:18:58.000Z
src/dcos_e2e_cli/dcos_docker/commands/_cgroup_mount_option.py
jongiddy/dcos-e2e
b52ef9a1097a8fb328902064345cc6c8b0bf5779
[ "Apache-2.0" ]
21
2018-06-14T21:58:24.000Z
2021-11-15T19:18:06.000Z
""" Mount /sys/fs/cgroup Option """ from typing import Callable import click def cgroup_mount_option(command: Callable[..., None]) -> Callable[..., None]: """ Option for choosing to mount `/sys/fs/cgroup` into the container. """ function = click.option( '--mount-sys-fs-cgroup/--no-mount-sys-...
27.5
79
0.587413
0
0
0
0
0
0
0
0
383
0.535664
870fcfd9e03efc22e487caad092766b6eab4008d
5,676
py
Python
soapfish/soap.py
jocassid/soapfish
7926335089ec286d3f4f491f72d84ec7096c79c9
[ "BSD-3-Clause" ]
null
null
null
soapfish/soap.py
jocassid/soapfish
7926335089ec286d3f4f491f72d84ec7096c79c9
[ "BSD-3-Clause" ]
1
2018-02-19T22:40:44.000Z
2018-02-19T22:40:44.000Z
soapfish/soap.py
jocassid/soapfish
7926335089ec286d3f4f491f72d84ec7096c79c9
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ''' SOAP protocol implementation, dispatchers and client stub. ''' from __future__ import absolute_import import logging import string import requests import six from . import core, namespaces as ns, soap11, soap12, wsa from .utils import uncapitalize SOAP_HTTP_Transport = ns.wsdl_soap_http...
33.585799
101
0.650106
5,305
0.934637
0
0
818
0.144116
0
0
893
0.157329
8710f101398ef0acb5a1b6361f52aad333d1ef26
2,505
py
Python
performance/build/testsuite.py
marksantos/thrust
67bbec34a7fdb9186aea6c269870b517e42e4388
[ "Apache-2.0" ]
28
2017-10-04T03:41:56.000Z
2021-07-18T14:53:36.000Z
performance/build/testsuite.py
marksantos/thrust
67bbec34a7fdb9186aea6c269870b517e42e4388
[ "Apache-2.0" ]
13
2017-09-06T10:49:44.000Z
2019-09-07T13:53:24.000Z
performance/build/testsuite.py
marksantos/thrust
67bbec34a7fdb9186aea6c269870b517e42e4388
[ "Apache-2.0" ]
15
2018-02-13T00:08:55.000Z
2022-02-14T05:46:43.000Z
"""functions that generate reports and figures using the .xml output from the performance tests""" __all__ = ['TestSuite', 'parse_testsuite_xml'] class TestSuite: def __init__(self, name, platform, tests): self.name = name self.platform = platform self.tests = tests def __repr__(self)...
29.821429
106
0.668663
532
0.212375
0
0
0
0
0
0
430
0.171657
8711dd388b808ba1f43903d57986edc525c23668
2,538
py
Python
snippets_dataset.py
AAlben/kaggle_SETI_search_ET
9194db0372d0d49ab914f29f1bf221ea8a32474a
[ "MIT" ]
null
null
null
snippets_dataset.py
AAlben/kaggle_SETI_search_ET
9194db0372d0d49ab914f29f1bf221ea8a32474a
[ "MIT" ]
null
null
null
snippets_dataset.py
AAlben/kaggle_SETI_search_ET
9194db0372d0d49ab914f29f1bf221ea8a32474a
[ "MIT" ]
null
null
null
import os import pdb import torch import random import numpy as np import pandas as pd from torch.utils.data import Dataset class SnippetsDataset(Dataset): def __init__(self, data_path, labels_csv_file, mode, transform=None, train_valid_rate=0.8, seed=123): random.seed(seed) self.seed = seed ...
33.84
105
0.618597
2,408
0.948779
0
0
0
0
0
0
91
0.035855
87122655263199d9b374ca6048b68654898e3165
2,809
py
Python
tf_agents/keras_layers/bias_layer.py
FlorisHoogenboom/agents
2cd5a61e1838b52012271f1fb8617c29a55279a9
[ "Apache-2.0" ]
2
2021-10-30T16:57:37.000Z
2021-11-17T10:21:17.000Z
tf_agents/keras_layers/bias_layer.py
FlorisHoogenboom/agents
2cd5a61e1838b52012271f1fb8617c29a55279a9
[ "Apache-2.0" ]
null
null
null
tf_agents/keras_layers/bias_layer.py
FlorisHoogenboom/agents
2cd5a61e1838b52012271f1fb8617c29a55279a9
[ "Apache-2.0" ]
2
2020-06-05T18:38:16.000Z
2020-07-08T14:41:42.000Z
# coding=utf-8 # Copyright 2018 The TF-Agents Authors. # # 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...
33.843373
80
0.698825
1,958
0.697045
0
0
0
0
0
0
1,397
0.49733
8712aff8958c54d885bd36104125e3e7046bb22c
29,060
py
Python
ScriptsForDiffPlatforms/SteamOrderPricesCSmoney.py
dr11m/steamSkins
74202ec23c2b096ef18bad0a408ca7f6cccd187f
[ "MIT" ]
null
null
null
ScriptsForDiffPlatforms/SteamOrderPricesCSmoney.py
dr11m/steamSkins
74202ec23c2b096ef18bad0a408ca7f6cccd187f
[ "MIT" ]
null
null
null
ScriptsForDiffPlatforms/SteamOrderPricesCSmoney.py
dr11m/steamSkins
74202ec23c2b096ef18bad0a408ca7f6cccd187f
[ "MIT" ]
1
2022-02-20T21:01:16.000Z
2022-02-20T21:01:16.000Z
import os from selenium import webdriver import random import time from selenium.webdriver.chrome.options import Options from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.webdriver.common.act...
43.699248
1,098
0.618582
0
0
0
0
0
0
0
0
15,813
0.511946
871306cf01b343214f8b57e9282bd4078015ff09
308
py
Python
Example/Algo/LinearRegressionTest.py
m-payal/AlgorithmsAndDataStructure
db53da00cefa3b681b4fcebfc0d22ee91cd489f9
[ "MIT" ]
4
2021-04-12T06:18:57.000Z
2021-12-03T15:18:09.000Z
Example/Algo/LinearRegressionTest.py
m-payal/AlgorithmsAndDataStructure
db53da00cefa3b681b4fcebfc0d22ee91cd489f9
[ "MIT" ]
1
2021-07-14T16:40:21.000Z
2021-07-14T16:40:21.000Z
Example/Algo/LinearRegressionTest.py
m-payal/AlgorithmsAndDataStructure
db53da00cefa3b681b4fcebfc0d22ee91cd489f9
[ "MIT" ]
2
2020-12-04T17:49:11.000Z
2021-01-04T15:25:33.000Z
# __Date__ : 1/5/2020. # __Author__ : CodePerfectPlus # __Package__ : Python 3 # __GitHub__ : https://www.github.com/codeperfectplus # from Algorithms import LinearRegression X = [12, 24, 36] y = [25, 49, 73] lr = LinearRegression() lr.fit(X, y) y_predict = lr.predict(12) print(y_predict)
19.25
56
0.675325
0
0
0
0
0
0
0
0
145
0.470779
871332137eb3d17fcc5d980cab9a1e1de4de3d41
1,657
py
Python
release/stubs.min/System/Windows/Forms/__init___parts/ControlStyles.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
182
2017-06-27T02:26:15.000Z
2022-03-30T18:53:43.000Z
release/stubs.min/System/Windows/Forms/__init___parts/ControlStyles.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
28
2017-06-27T13:38:23.000Z
2022-03-15T11:19:44.000Z
release/stubs.min/System/Windows/Forms/__init___parts/ControlStyles.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
67
2017-06-28T09:43:59.000Z
2022-03-20T21:17:10.000Z
class ControlStyles(Enum,IComparable,IFormattable,IConvertible): """ Specifies the style and behavior of a control. enum (flags) ControlStyles,values: AllPaintingInWmPaint (8192),CacheText (16384),ContainerControl (1),DoubleBuffer (65536),EnableNotifyMessage (32768),FixedHeight (64),FixedWidth (32),Opaque ...
32.490196
409
0.731442
1,653
0.997586
0
0
0
0
0
0
822
0.496077
871339da3c5ad19f363b1ca88a51d6c2fea28c59
3,858
py
Python
scripts/venv/lib/python2.7/site-packages/cogent/align/progressive.py
sauloal/cnidaria
fe6f8c8dfed86d39c80f2804a753c05bb2e485b4
[ "MIT" ]
3
2015-11-20T08:44:42.000Z
2016-12-14T01:40:03.000Z
scripts/venv/lib/python2.7/site-packages/cogent/align/progressive.py
sauloal/cnidaria
fe6f8c8dfed86d39c80f2804a753c05bb2e485b4
[ "MIT" ]
1
2017-09-04T14:04:32.000Z
2020-05-26T19:04:00.000Z
scripts/venv/lib/python2.7/site-packages/cogent/align/progressive.py
sauloal/cnidaria
fe6f8c8dfed86d39c80f2804a753c05bb2e485b4
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import with_statement from cogent import LoadTree from cogent.phylo import nj as NJ from cogent.phylo.distance import EstimateDistances from cogent.core.info import Info from cogent.util import progress_display as UI __author__ = "Peter Maxwell" __copyright__ = "Copyright 2007-20...
38.58
89
0.664593
0
0
0
0
3,331
0.863401
0
0
1,313
0.340332
8713e249df8ab7b42369aeb0097bb65f5da669b5
992
py
Python
di_scoring/admin.py
tboz203/django-scoring
9766ce861022e2f42d42ced156966099f18c2397
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
di_scoring/admin.py
tboz203/django-scoring
9766ce861022e2f42d42ced156966099f18c2397
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
di_scoring/admin.py
tboz203/django-scoring
9766ce861022e2f42d42ced156966099f18c2397
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from django.contrib import admin from di_scoring import models # copypastad with love from : # `http://stackoverflow.com/questions/10543032/how-to-show-all-fields-of-model-in-admin-page` # subclassed modeladmins' list_displays will contain all model fields except # for id class CustomModelAdminMixin(object): def _...
30.060606
93
0.681452
348
0.350806
0
0
439
0.44254
0
0
210
0.211694
8713f50880ce1a36e5b15f90eca7dd6b247d359c
4,654
py
Python
Day Pogress - 18~100/Day 17/constructor.py
Abbhiishek/Python
3ad5310ca29469f353f9afa99531f01273eec6bd
[ "MIT" ]
1
2022-02-04T07:04:34.000Z
2022-02-04T07:04:34.000Z
Day Pogress - 18~100/Day 17/constructor.py
Abbhiishek/Python
3ad5310ca29469f353f9afa99531f01273eec6bd
[ "MIT" ]
12
2022-02-13T12:10:32.000Z
2022-02-17T09:36:49.000Z
Day Pogress - 18~100/Day 17/constructor.py
Abbhiishek/Python
3ad5310ca29469f353f9afa99531f01273eec6bd
[ "MIT" ]
null
null
null
""" how to create a class a class is constructed through constructor => a class can be constructed through specific function called "__init__(self)" """ # let's create a Class class Person: """ A class to create a person with the following attributes: age, marks, phone, user_id, profession, goal ...
26.747126
89
0.595617
3,690
0.792866
0
0
0
0
0
0
2,970
0.638161
8714cfb5d5d59c4388d610853c7edfc7de4282a8
9,309
py
Python
src/compas_rhino/artists/networkartist.py
duchaoyu/compas
d484500d68d44fd6e227c3bbee20a2edde6e6c96
[ "MIT" ]
null
null
null
src/compas_rhino/artists/networkartist.py
duchaoyu/compas
d484500d68d44fd6e227c3bbee20a2edde6e6c96
[ "MIT" ]
null
null
null
src/compas_rhino/artists/networkartist.py
duchaoyu/compas
d484500d68d44fd6e227c3bbee20a2edde6e6c96
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import absolute_import from __future__ import division from functools import partial import compas_rhino from compas.geometry import centroid_points from compas.utilities import color_to_colordict from compas.artists import NetworkArtist from .artist import Rhino...
37.236
98
0.5615
8,902
0.956279
0
0
0
0
0
0
4,512
0.484692
8714de68982283bcaeff5e6a0b71251d452dbab8
1,873
py
Python
tests/x7/lib/test_shell_tools.py
gribbg/x7-lib
1ec5807d2c85d522a9f678f995d0f2fe42735d18
[ "BSD-2-Clause" ]
null
null
null
tests/x7/lib/test_shell_tools.py
gribbg/x7-lib
1ec5807d2c85d522a9f678f995d0f2fe42735d18
[ "BSD-2-Clause" ]
null
null
null
tests/x7/lib/test_shell_tools.py
gribbg/x7-lib
1ec5807d2c85d522a9f678f995d0f2fe42735d18
[ "BSD-2-Clause" ]
null
null
null
# Originally auto-generated on 2021-02-15-12:14:36 -0500 EST # By '--verbose --verbose x7.lib.shell_tools' from unittest import TestCase from x7.lib.annotations import tests from x7.testing.support import Capture from x7.lib import shell_tools from x7.lib.shell_tools_load import ShellTool @tests(shell_tools) class T...
36.019231
74
0.662573
1,559
0.832355
0
0
1,579
0.843033
0
0
288
0.153764
8716b23b59dc13aa5f3ac5d9e7d97c51ba82770e
754
py
Python
HmacCalculation/Hmac256Calculation.py
likloadm/cross_platform_crypto
e828c9c9504c022d3882d174f7a8fd424aa19991
[ "Unlicense" ]
15
2020-11-14T09:50:50.000Z
2022-03-13T16:39:19.000Z
HmacCalculation/Hmac256Calculation.py
likloadm/cross_platform_crypto
e828c9c9504c022d3882d174f7a8fd424aa19991
[ "Unlicense" ]
1
2021-04-26T07:42:27.000Z
2021-07-06T07:39:17.000Z
HmacCalculation/Hmac256Calculation.py
likloadm/cross_platform_crypto
e828c9c9504c022d3882d174f7a8fd424aa19991
[ "Unlicense" ]
6
2021-11-03T11:28:36.000Z
2022-03-16T13:03:20.000Z
from Crypto.Hash import HMAC, SHA256 import base64 def hmac256Calculation(keyHmac, data): h = HMAC.new(keyHmac.encode("ascii"), digestmod=SHA256) h.update(data.encode("ascii")) return h.digest() def base64Encoding(input): dataBase64 = base64.b64encode(input) dataBase64P = dataBase64.decode("UTF-8"...
32.782609
94
0.733422
0
0
0
0
0
0
0
0
176
0.233422
8716b6c023660b91d85d95f0d7e719aaefef6ec6
408
py
Python
elvaapp/elvaapp/doctype/vache/vache_dashboard.py
ovresko/elvadesk
10090244ce5bd379cf16763e216e6011870de937
[ "MIT" ]
1
2020-12-28T16:35:41.000Z
2020-12-28T16:35:41.000Z
elvaapp/troupeau/doctype/vache/vache_dashboard.py
ovresko/elvadesk
10090244ce5bd379cf16763e216e6011870de937
[ "MIT" ]
null
null
null
elvaapp/troupeau/doctype/vache/vache_dashboard.py
ovresko/elvadesk
10090244ce5bd379cf16763e216e6011870de937
[ "MIT" ]
null
null
null
from frappe import _ def get_data(): return { 'fieldname': 'vache', 'non_standard_fieldnames': { 'Insemination': 'vache' }, 'transactions': [ { 'label': _('Reproduction'), 'items': ['Insemination','Velage','Diagnostique'] }, { 'label': _('Production'), 'items': ['Lactation item'] ...
17
53
0.544118
0
0
0
0
0
0
0
0
229
0.561275
8716deba2bfaed14d7a9b60985573ae32efd9715
1,447
py
Python
setup.py
patlegu/python-SNS-API
5eafe0309bdceacc8a5b617067d01f5a21814b14
[ "Apache-2.0" ]
9
2019-02-22T10:18:12.000Z
2022-03-25T11:23:32.000Z
setup.py
patlegu/python-SNS-API
5eafe0309bdceacc8a5b617067d01f5a21814b14
[ "Apache-2.0" ]
4
2019-10-10T10:48:40.000Z
2021-12-21T14:23:23.000Z
setup.py
patlegu/python-SNS-API
5eafe0309bdceacc8a5b617067d01f5a21814b14
[ "Apache-2.0" ]
5
2020-01-23T19:23:04.000Z
2022-03-22T16:44:38.000Z
#!/usr/bin/python import setuptools import os version = {} with open(os.path.join('stormshield', 'sns', 'sslclient', '__version__.py'), 'r') as fh: exec(fh.read(), version) with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="stormshield.sns.sslclient", version=ver...
30.145833
88
0.641327
0
0
0
0
0
0
0
0
740
0.511403
8719077594c4ee561b05b1f90d93c6bca7fc1d70
23
py
Python
vpc_hyp2/ansible/roles/vm_create/files/variables.py
dhanraj-vedanth/IaaS_VPC_CDN
262dbc7db63d5e76398dadc8015256fb37986e36
[ "MIT" ]
null
null
null
vpc_hyp2/ansible/roles/vm_create/files/variables.py
dhanraj-vedanth/IaaS_VPC_CDN
262dbc7db63d5e76398dadc8015256fb37986e36
[ "MIT" ]
null
null
null
vpc_hyp2/ansible/roles/vm_create/files/variables.py
dhanraj-vedanth/IaaS_VPC_CDN
262dbc7db63d5e76398dadc8015256fb37986e36
[ "MIT" ]
null
null
null
dom_list = ['an_h1']
5.75
20
0.565217
0
0
0
0
0
0
0
0
7
0.304348
871a4c4bcd5ba8f6c98873acee5df7de49d7bdba
50,713
py
Python
Examples/ApiExamples/ex_structured_document_tag.py
alex-dudin/Aspose.Words-for-Python-via-.NET
02b257df8da9892fcce671c473c2ef27b68b5087
[ "MIT" ]
3
2021-12-04T22:17:28.000Z
2022-02-22T03:30:01.000Z
Examples/ApiExamples/ex_structured_document_tag.py
alex-dudin/Aspose.Words-for-Python-via-.NET
02b257df8da9892fcce671c473c2ef27b68b5087
[ "MIT" ]
4
2021-11-26T10:01:06.000Z
2021-12-14T15:01:11.000Z
Examples/ApiExamples/ex_structured_document_tag.py
alex-dudin/Aspose.Words-for-Python-via-.NET
02b257df8da9892fcce671c473c2ef27b68b5087
[ "MIT" ]
2
2021-10-20T18:06:22.000Z
2021-10-29T20:59:18.000Z
# Copyright (c) 2001-2022 Aspose Pty Ltd. All Rights Reserved. # # This file is part of Aspose.Words. The source code in this file # is only intended as a supplement to the documentation, and is provided # "as is", without warranty of any kind, either expressed or implied. import uuid from datetime import datetime im...
48.809432
179
0.692643
50,210
0.990081
0
0
0
0
0
0
22,862
0.450811
871afb26bdc862a0ddb469ca8e427353406c19fc
690
py
Python
tests/emulator/kernel/test_kernel.py
FKD13/RCPU
1f27246494f60eaa2432470b2d218bb3f63578c7
[ "MIT" ]
17
2017-07-26T13:08:34.000Z
2022-02-19T20:44:02.000Z
tests/emulator/kernel/test_kernel.py
FKD13/RCPU
1f27246494f60eaa2432470b2d218bb3f63578c7
[ "MIT" ]
4
2017-10-12T20:56:39.000Z
2020-05-04T09:19:44.000Z
tests/emulator/kernel/test_kernel.py
FKD13/RCPU
1f27246494f60eaa2432470b2d218bb3f63578c7
[ "MIT" ]
4
2017-10-16T16:24:16.000Z
2022-03-21T19:07:06.000Z
from .utils import init_kernel def test_read_string(): k = init_kernel() k.RAM.load([ord(char) for char in "ABCDE"] + [0]) assert k.read_string(0) == "ABCDE" k.RAM.load([ord(char) for char in "PYTHON"] + [0], base_address=40) assert k.read_string(40) == "PYTHON" def test_write_string(): k = ...
24.642857
71
0.614493
0
0
0
0
0
0
0
0
85
0.123188
871c1782c66580c2fb34c35862df10f3a69db67c
10,183
py
Python
tensorflow_graphics/rendering/barycentrics.py
Tensorflow-Devs/graphics
e03fb62b8ee15a026bde7e27e4f3aa5ebc9413a1
[ "Apache-2.0" ]
null
null
null
tensorflow_graphics/rendering/barycentrics.py
Tensorflow-Devs/graphics
e03fb62b8ee15a026bde7e27e4f3aa5ebc9413a1
[ "Apache-2.0" ]
null
null
null
tensorflow_graphics/rendering/barycentrics.py
Tensorflow-Devs/graphics
e03fb62b8ee15a026bde7e27e4f3aa5ebc9413a1
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The TensorFlow Authors # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
44.859031
80
0.7104
0
0
0
0
0
0
0
0
5,063
0.497201
871cf554500d1f5fcf075f0dd9341f26889da829
1,780
py
Python
to_remove/Crawler/measurement_loc_crawler.py
jsdelivrbot/SeoulWind
be4ee24981df651104c178f04fe59c5be9cd946c
[ "MIT" ]
null
null
null
to_remove/Crawler/measurement_loc_crawler.py
jsdelivrbot/SeoulWind
be4ee24981df651104c178f04fe59c5be9cd946c
[ "MIT" ]
null
null
null
to_remove/Crawler/measurement_loc_crawler.py
jsdelivrbot/SeoulWind
be4ee24981df651104c178f04fe59c5be9cd946c
[ "MIT" ]
2
2018-06-22T01:16:55.000Z
2018-12-09T03:37:55.000Z
from parameters import Parameters from bs4 import BeautifulSoup import requests import json def addr2latlng(addr): params = Parameters('parameters.txt').load() payload = {'clientID': params['apikey_naver_id'], 'query': addr} headers = { 'Host': 'openapi.naver.com', 'User-A...
32.363636
113
0.600562
0
0
0
0
0
0
0
0
611
0.338692
871edef7298e1f6e8174cf24afd5721a5373f0fa
3,297
py
Python
google_analytics/predictor.py
hadisotudeh/jads_kaggle
384928f8504053692ee4569f9692dd8ecebe1df3
[ "MIT" ]
11
2018-01-20T08:17:34.000Z
2019-12-04T08:40:11.000Z
google_analytics/predictor.py
hadisotudeh/jads_kaggle
384928f8504053692ee4569f9692dd8ecebe1df3
[ "MIT" ]
55
2018-01-19T15:23:45.000Z
2019-11-01T09:51:21.000Z
google_analytics/predictor.py
hadisotudeh/jads_kaggle
384928f8504053692ee4569f9692dd8ecebe1df3
[ "MIT" ]
28
2018-01-17T16:18:23.000Z
2020-05-25T14:14:49.000Z
import numpy as np from sklearn.metrics import mean_squared_error, make_scorer from sklearn.model_selection import train_test_split, cross_val_score from sklearn.base import BaseEstimator from utils import timing # noqa TUNING_OUTPUT_DEFAULT = 'tuning.txt' RANDOM_STATE = 42 # Used for reproducible results class Pre...
40.703704
142
0.670003
2,985
0.905369
0
0
1,495
0.453443
0
0
1,980
0.600546
871f5dc52afe55d8105df47c84018b6b4a55294d
3,544
py
Python
py/fft.py
bradowen2011/lightshowpi
15713bdd64dd4e7be52abee3b1aac9286eebaf9a
[ "BSD-2-Clause" ]
3
2016-10-13T20:47:13.000Z
2018-11-30T00:53:26.000Z
py/fft.py
bradowen2011/lightshowpi
15713bdd64dd4e7be52abee3b1aac9286eebaf9a
[ "BSD-2-Clause" ]
null
null
null
py/fft.py
bradowen2011/lightshowpi
15713bdd64dd4e7be52abee3b1aac9286eebaf9a
[ "BSD-2-Clause" ]
8
2015-10-10T05:08:59.000Z
2021-01-31T15:57:27.000Z
# # Licensed under the BSD license. See full license in LICENSE file. # http://www.lightshowpi.com/ # # Author: Todd Giles (todd@lightshowpi.com) """FFT methods for computing / analyzing frequency response of audio. This is simply a wrapper around FFT support in numpy. Initial FFT code inspired from the code posted...
34.407767
98
0.683126
0
0
0
0
0
0
0
0
2,307
0.650959
871f9d647a8ce835e1b9294a55164bca63acffe5
2,625
py
Python
benchmark/test.py
franklx/misaka
616d360bee576e4b1dfb36c58bd05a5166f59a38
[ "MIT" ]
1
2017-09-04T05:32:10.000Z
2017-09-04T05:32:10.000Z
benchmark/test.py
franklx/misaka
616d360bee576e4b1dfb36c58bd05a5166f59a38
[ "MIT" ]
null
null
null
benchmark/test.py
franklx/misaka
616d360bee576e4b1dfb36c58bd05a5166f59a38
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from misaka import Markdown, BaseRenderer, HtmlRenderer, \ SmartyPants, \ EXT_FENCED_CODE, EXT_TABLES, EXT_AUTOLINK, EXT_STRIKETHROUGH, \ EXT_SUPERSCRIPT, HTML_USE_XHTML, \ TABLE_ALIGN_L, TABLE_ALIGN_R, TABLE_ALIGN_C, \ TABLE_ALIGNMASK, TABLE_HEADER class BleepRenderer(Htm...
25.240385
78
0.552762
2,039
0.776762
0
0
0
0
0
0
687
0.261714
87214198b671c3bd959654596c5df39383991bf6
3,663
py
Python
sample_project/batchimport/batchimport_settings.py
gitdaniel228/realtor
4366d57b064be87b31c8a036b3ed7a99b2036461
[ "BSD-3-Clause" ]
null
null
null
sample_project/batchimport/batchimport_settings.py
gitdaniel228/realtor
4366d57b064be87b31c8a036b3ed7a99b2036461
[ "BSD-3-Clause" ]
null
null
null
sample_project/batchimport/batchimport_settings.py
gitdaniel228/realtor
4366d57b064be87b31c8a036b3ed7a99b2036461
[ "BSD-3-Clause" ]
null
null
null
""" The batchimport_settings.py module initializes itself with defaults but allows for the values to be overridden via the django project's settings file. NOTE: These values should be considered CONSTANTS even though I'm kind of cheating and using them as variables to initialize them here. """ import settings def ...
43.094118
107
0.803986
0
0
0
0
0
0
0
0
2,651
0.723724
8722f6f5404b5e8a02c1795e4a9cd19c750cfc01
10,119
py
Python
tests/test_xunit_plugin.py
omergertel/slash
7dd5710a05822bbbaadc6c6517cefcbaa6397eab
[ "BSD-3-Clause" ]
null
null
null
tests/test_xunit_plugin.py
omergertel/slash
7dd5710a05822bbbaadc6c6517cefcbaa6397eab
[ "BSD-3-Clause" ]
null
null
null
tests/test_xunit_plugin.py
omergertel/slash
7dd5710a05822bbbaadc6c6517cefcbaa6397eab
[ "BSD-3-Clause" ]
null
null
null
import os import pytest import slash from lxml import etree def test_xunit_plugin(results, xunit_filename): assert os.path.exists(xunit_filename), 'xunit file not created' schema_root = etree.XML(_XUNIT_XSD) schema = etree.XMLSchema(schema_root) parser = etree.XMLParser(schema=schema) with open...
45.376682
303
0.608657
0
0
0
0
494
0.048819
0
0
9,294
0.91847
87234ddbc75c00fe76141a6b66832d15ac92c6f3
2,495
py
Python
slides/figs/draw.py
hiyouga/AMP-Poster-Slides-LaTeX
c1fd40aa5ef3216f17b4d27dc6e6092e3cc52e40
[ "MIT" ]
8
2021-05-25T11:56:48.000Z
2021-12-20T07:12:01.000Z
slides/figs/draw.py
hiyouga/AMP-Poster-Slides-LaTeX
c1fd40aa5ef3216f17b4d27dc6e6092e3cc52e40
[ "MIT" ]
1
2021-05-28T15:25:37.000Z
2021-05-30T05:01:24.000Z
slides/figs/draw.py
hiyouga/AMP-Poster-Slides-LaTeX
c1fd40aa5ef3216f17b4d27dc6e6092e3cc52e40
[ "MIT" ]
2
2021-05-26T01:39:53.000Z
2021-12-20T06:36:04.000Z
import matplotlib import numpy as np import matplotlib.pyplot as plt default_params = { 'text.usetex': False, 'font.family': 'Times New Roman', 'font.serif': 'Times New Roman' } if __name__ == '__main__': plt.rcParams.update(default_params) myfont1 = matplotlib.font_manager.FontProperties(fname='C...
43.77193
122
0.600802
0
0
0
0
0
0
0
0
438
0.175551
8723d146de1810223e1e03f81066a7c04d4f199d
144
py
Python
tests/unit/test_u_wsgi.py
p15r/HYOK-Wrapper
257f29150f2f035e12aa2247d95aac4263e1694b
[ "MIT" ]
2
2020-10-02T13:10:26.000Z
2020-10-12T07:21:55.000Z
tests/unit/test_u_wsgi.py
p15r/HYOK-Wrapper
257f29150f2f035e12aa2247d95aac4263e1694b
[ "MIT" ]
12
2020-10-03T13:59:50.000Z
2020-10-26T20:10:32.000Z
tests/unit/test_u_wsgi.py
p15r/HYOK-Wrapper
257f29150f2f035e12aa2247d95aac4263e1694b
[ "MIT" ]
null
null
null
import wsgi # noqa: F401 def test_connect_to_app(http_client): response = http_client.get('/') assert response.status_code == 404
20.571429
38
0.701389
0
0
0
0
0
0
0
0
15
0.104167
87244a8e220cfb272e1a810228a8534c5aa83e79
884
py
Python
ceefax/pages/index.py
mscroggs/CEEFAX
8e7a075de1809064b77360da24ebbbaa409c3bf2
[ "MIT" ]
1
2020-03-28T15:53:22.000Z
2020-03-28T15:53:22.000Z
ceefax/pages/index.py
mscroggs/CEEFAX
8e7a075de1809064b77360da24ebbbaa409c3bf2
[ "MIT" ]
1
2021-02-05T13:43:52.000Z
2021-02-05T13:43:52.000Z
ceefax/pages/index.py
mscroggs/CEEFAX
8e7a075de1809064b77360da24ebbbaa409c3bf2
[ "MIT" ]
null
null
null
from ceefax.page import Page from ceefax import config from ceefax import Ceefax class IndexPage(Page): def __init__(self, n): super(IndexPage, self).__init__(n) self.importance = 5 self.title = "Index" def generate_content(self): self.print_image(config.title, 1) self...
26.787879
70
0.554299
775
0.876697
0
0
0
0
0
0
45
0.050905
872538f9e004a1966a45af99b31962b33d5a2ea0
372
py
Python
bin/award_ebadge_declare.py
ervikey/SA-ctf_scoreboard
00b631e9ed2c075f96f660583656ae68eb4b17e0
[ "CC0-1.0" ]
106
2018-03-09T13:03:05.000Z
2022-03-10T11:01:48.000Z
bin/award_ebadge_declare.py
ervikey/SA-ctf_scoreboard
00b631e9ed2c075f96f660583656ae68eb4b17e0
[ "CC0-1.0" ]
17
2018-05-11T00:53:47.000Z
2020-05-07T10:14:40.000Z
bin/award_ebadge_declare.py
ervikey/SA-ctf_scoreboard
00b631e9ed2c075f96f660583656ae68eb4b17e0
[ "CC0-1.0" ]
33
2018-04-23T20:18:11.000Z
2022-03-27T16:41:03.000Z
# encode = utf-8 import os import sys import re ta_name = 'SA-ctf_scoreboard' ta_lib_name = 'sa_ctf_scoreboard' pattern = re.compile(r"[\\/]etc[\\/]apps[\\/][^\\/]+[\\/]bin[\\/]?$") new_paths = [path for path in sys.path if not pattern.search(path) or ta_name in path] new_paths.insert(0, os.path.sep.join([os.path.dir...
28.615385
86
0.688172
0
0
0
0
0
0
0
0
101
0.271505
87259cd2c6b021df4f9006bba7f609c83a89593f
503
py
Python
books/migrations/0009_library_waitlist_items.py
rodbv/kamu
f390d91f7d7755b49176cf5d504648e3fe572237
[ "MIT" ]
70
2018-05-23T16:44:44.000Z
2021-12-05T21:48:10.000Z
books/migrations/0009_library_waitlist_items.py
rodbv/kamu
f390d91f7d7755b49176cf5d504648e3fe572237
[ "MIT" ]
122
2018-10-06T21:31:24.000Z
2020-11-09T15:04:56.000Z
books/migrations/0009_library_waitlist_items.py
rodbv/kamu
f390d91f7d7755b49176cf5d504648e3fe572237
[ "MIT" ]
50
2018-05-23T05:49:10.000Z
2021-11-22T07:53:42.000Z
# Generated by Django 2.0.1 on 2019-01-07 14:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('waitlist', '0001_initial'), ('books', '0008_bookcopy_borrow_date'), ] operations = [ migrations.AddField( model_name='li...
25.15
122
0.628231
410
0.815109
0
0
0
0
0
0
181
0.359841
8725efc65cc7a34903579071ce0f80f5535bdbf6
3,671
py
Python
main.py
drdoof2019/Twitter-Sentiment-Analysis
b0fd17b2384c6540a08b63e1660c1c241f7645da
[ "MIT" ]
null
null
null
main.py
drdoof2019/Twitter-Sentiment-Analysis
b0fd17b2384c6540a08b63e1660c1c241f7645da
[ "MIT" ]
null
null
null
main.py
drdoof2019/Twitter-Sentiment-Analysis
b0fd17b2384c6540a08b63e1660c1c241f7645da
[ "MIT" ]
null
null
null
import re import tweepy from tweepy import OAuthHandler from textblob import TextBlob # pip install tweepy # pip install textblob # developer.twitter.com/en/portal/dashboard def istenmeyen_karakter_temizle(text): istenmeyen_karakterler = [':',';','!','*','$','ยฝ','&'] for karakter in istenmeyen_...
36.346535
140
0.651321
0
0
0
0
0
0
0
0
1,281
0.345656
8726ffb07f7ca1189ea73517ad7af10fd540bf6c
58
py
Python
todo/__init__.py
maxios/gtd.py
afe91405c8f5ba7fc6cdd46e1818559b2a6079d3
[ "BSD-3-Clause" ]
null
null
null
todo/__init__.py
maxios/gtd.py
afe91405c8f5ba7fc6cdd46e1818559b2a6079d3
[ "BSD-3-Clause" ]
null
null
null
todo/__init__.py
maxios/gtd.py
afe91405c8f5ba7fc6cdd46e1818559b2a6079d3
[ "BSD-3-Clause" ]
null
null
null
'''gtd.py''' __version__ = '0.7.0' __author__ = 'delucks'
14.5
22
0.62069
0
0
0
0
0
0
0
0
28
0.482759
872757654f8085ced49101ead759a3fbe2d7c7bc
7,695
py
Python
SubredditScraper/scrape.py
tomhennessey/Subreddit-Scrape
224c76fb179b6171634e7dd7739f73015c206d62
[ "MIT" ]
null
null
null
SubredditScraper/scrape.py
tomhennessey/Subreddit-Scrape
224c76fb179b6171634e7dd7739f73015c206d62
[ "MIT" ]
null
null
null
SubredditScraper/scrape.py
tomhennessey/Subreddit-Scrape
224c76fb179b6171634e7dd7739f73015c206d62
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ A simple subreddit scraper """ import datetime as dt import logging import time import os import sys import getopt import praw from psaw import PushshiftAPI if __package__ == None: import db else: from . import db def init_log(): """ Initiates a logger for psaw to be used ...
24.046875
86
0.591813
660
0.08577
0
0
0
0
0
0
3,032
0.394022
872a7c2cdb92c261fe174b94da5759ed7dfbd97f
40
py
Python
expressive_regex/exceptions.py
fsadannn/expressive_regex
3bf113e8288a0f7d756f24cf882be8709630d4d3
[ "MIT" ]
2
2020-07-31T13:49:17.000Z
2020-09-16T14:47:23.000Z
expressive_regex/exceptions.py
fsadannn/expressive_regex
3bf113e8288a0f7d756f24cf882be8709630d4d3
[ "MIT" ]
null
null
null
expressive_regex/exceptions.py
fsadannn/expressive_regex
3bf113e8288a0f7d756f24cf882be8709630d4d3
[ "MIT" ]
null
null
null
class BadStatement(Exception): pass
13.333333
30
0.75
39
0.975
0
0
0
0
0
0
0
0
872b15d4a269e14f5342a8109b8993012c978013
1,222
py
Python
trieste/models/gpflow/__init__.py
henrymoss/trieste
4c8d14ead793fb49cdbb883789b799310873db70
[ "Apache-2.0" ]
1
2021-10-02T19:53:48.000Z
2021-10-02T19:53:48.000Z
trieste/models/gpflow/__init__.py
TsingQAQ/trieste
6b2bb0e73649debaac81157f0f9fdb8d3fdfef5b
[ "Apache-2.0" ]
null
null
null
trieste/models/gpflow/__init__.py
TsingQAQ/trieste
6b2bb0e73649debaac81157f0f9fdb8d3fdfef5b
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Trieste Contributors # # 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 agreed to...
34.914286
92
0.787234
0
0
0
0
0
0
0
0
756
0.618658
872daf06ad41c681b338cb82204799f97cdb8c02
829
py
Python
expenses_tracker/expenses_tracker/web/vaidators.py
LBistrev/python-web-basic
e798d5eb22657a014d3dd0f98e4c3c585336c4fc
[ "MIT" ]
null
null
null
expenses_tracker/expenses_tracker/web/vaidators.py
LBistrev/python-web-basic
e798d5eb22657a014d3dd0f98e4c3c585336c4fc
[ "MIT" ]
null
null
null
expenses_tracker/expenses_tracker/web/vaidators.py
LBistrev/python-web-basic
e798d5eb22657a014d3dd0f98e4c3c585336c4fc
[ "MIT" ]
null
null
null
from django.core.exceptions import ValidationError from django.utils.deconstruct import deconstructible VALIDATE_ONLY_LETTERS_EXCEPTION_MESSAGE = 'Ensure this value contains only letters.' def validate_only_letters(value): if not value.isalpha(): raise ValidationError(VALIDATE_ONLY_LETTERS_EXCEPTION_MESS...
29.607143
84
0.74427
484
0.583836
0
0
501
0.604343
0
0
83
0.100121
872deb99006e5413d89c06dfa856df9a1719736e
2,347
py
Python
seleniumwire/thirdparty/mitmproxy/net/http/multipart.py
KozminMoci/selenium-wire
063c44ab42ac5e53e28c8a8c49c9ae7036bd878b
[ "MIT" ]
975
2018-06-23T10:50:42.000Z
2022-03-31T00:56:03.000Z
seleniumwire/thirdparty/mitmproxy/net/http/multipart.py
KozminMoci/selenium-wire
063c44ab42ac5e53e28c8a8c49c9ae7036bd878b
[ "MIT" ]
492
2018-07-30T12:49:51.000Z
2022-03-31T12:46:56.000Z
seleniumwire/thirdparty/mitmproxy/net/http/multipart.py
KozminMoci/selenium-wire
063c44ab42ac5e53e28c8a8c49c9ae7036bd878b
[ "MIT" ]
149
2018-08-29T06:53:12.000Z
2022-03-31T09:23:56.000Z
import mimetypes import re from urllib.parse import quote from seleniumwire.thirdparty.mitmproxy.net.http import headers def encode(head, l): k = head.get("content-type") if k: k = headers.parse_content_type(k) if k is not None: try: boundary = k[2]["boundary"].en...
34.014493
92
0.484448
0
0
0
0
0
0
0
0
457
0.194717
872e1c57fa4968272b0db8d13d59197b314f92ad
566
py
Python
pretalx_mattermost/apps.py
toshywoshy/pretalx-mattermost
69499093750f613f74ab47c9798f5f90431372ba
[ "Apache-2.0" ]
null
null
null
pretalx_mattermost/apps.py
toshywoshy/pretalx-mattermost
69499093750f613f74ab47c9798f5f90431372ba
[ "Apache-2.0" ]
null
null
null
pretalx_mattermost/apps.py
toshywoshy/pretalx-mattermost
69499093750f613f74ab47c9798f5f90431372ba
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import gettext_lazy class PluginApp(AppConfig): name = 'pretalx_mattermost' verbose_name = 'MatterMost integration for pretalx' class PretalxPluginMeta: name = gettext_lazy('MatterMost integration for pretalx') author = 'Tosh...
28.3
76
0.674912
479
0.84629
0
0
0
0
0
0
187
0.330389
872e646505f83dcab385fa79942ad96da9c731d8
1,156
py
Python
flexselect/views.py
twerp/django-admin-flexselect-py3
38563b98cb333e6edd5351f7e88d6156e7a71a34
[ "CC0-1.0" ]
null
null
null
flexselect/views.py
twerp/django-admin-flexselect-py3
38563b98cb333e6edd5351f7e88d6156e7a71a34
[ "CC0-1.0" ]
null
null
null
flexselect/views.py
twerp/django-admin-flexselect-py3
38563b98cb333e6edd5351f7e88d6156e7a71a34
[ "CC0-1.0" ]
null
null
null
import json from django.http import HttpResponse from django.forms.widgets import Select from django.contrib.auth.decorators import login_required from flexselect import (FlexSelectWidget, choices_from_instance, details_from_instance, instance_from_request) @login_required def field_changed(...
36.125
77
0.719723
0
0
0
0
869
0.75173
0
0
228
0.197232
872f00ae4d30467f373664e873bfd51982763b06
20,371
py
Python
mscreen/autodocktools_prepare_py3k/AutoDockTools/VisionInterface/Adt/Macro/AutodockVS.py
e-mayo/mscreen
a50f0b2f7104007c730baa51b4ec65c891008c47
[ "MIT" ]
9
2021-03-06T04:24:28.000Z
2022-01-03T09:53:07.000Z
AutoDockTools/VisionInterface/Adt/Macro/AutodockVS.py
e-mayo/autodocktools-prepare-py3k
2dd2316837bcb7c19384294443b2855e5ccd3e01
[ "BSD-3-Clause" ]
3
2021-03-07T05:37:16.000Z
2021-09-19T15:06:54.000Z
AutoDockTools/VisionInterface/Adt/Macro/AutodockVS.py
e-mayo/autodocktools-prepare-py3k
2dd2316837bcb7c19384294443b2855e5ccd3e01
[ "BSD-3-Clause" ]
4
2019-08-28T23:11:39.000Z
2021-11-27T08:43:36.000Z
######################################################################## # # Vision Macro - Python source code - file generated by vision # Thursday 01 July 2010 13:22:44 # # The Scripps Research Institute (TSRI) # Molecular Graphics Lab # La Jolla, CA 92037, USA # # Copyright: Daniel Stoff...
64.059748
852
0.676206
19,664
0.965294
0
0
0
0
0
0
7,617
0.373914
872f9d630a0a1249e1763f2b416aea3945ab0e26
4,821
py
Python
taotao-cloud-python/taotao-cloud-oldboy/day70-EdmureBlog/EdmureBlog/backend/views/trouble.py
shuigedeng/taotao-cloud-paren
3d281b919490f7cbee4520211e2eee5da7387564
[ "Apache-2.0" ]
47
2021-04-13T10:32:13.000Z
2022-03-31T10:30:30.000Z
taotao-cloud-python/taotao-cloud-oldboy/day70-EdmureBlog/EdmureBlog/backend/views/trouble.py
shuigedeng/taotao-cloud-paren
3d281b919490f7cbee4520211e2eee5da7387564
[ "Apache-2.0" ]
1
2021-11-01T07:41:04.000Z
2021-11-01T07:41:10.000Z
taotao-cloud-python/taotao-cloud-oldboy/day70-EdmureBlog/EdmureBlog/backend/views/trouble.py
shuigedeng/taotao-cloud-paren
3d281b919490f7cbee4520211e2eee5da7387564
[ "Apache-2.0" ]
21
2021-04-13T10:32:17.000Z
2022-03-26T07:43:22.000Z
from django.shortcuts import render,redirect,HttpResponse from repository import models def trouble_list(request): # user_info = request.session.get('user_info') # {id:'',} current_user_id = 1 result = models.Trouble.objects.filter(user_id=current_user_id).order_by('status').\ only('title','status',...
34.435714
194
0.630367
408
0.082641
0
0
0
0
0
0
1,132
0.229289
87304ebf26d53abe5381b3ecce55748ffeed5bfe
442
py
Python
examples/single_camera.py
Hikki12/camio
c183234083c0382b91ecda8952cda6640e78d974
[ "MIT" ]
null
null
null
examples/single_camera.py
Hikki12/camio
c183234083c0382b91ecda8952cda6640e78d974
[ "MIT" ]
null
null
null
examples/single_camera.py
Hikki12/camio
c183234083c0382b91ecda8952cda6640e78d974
[ "MIT" ]
null
null
null
import cv2 from camio import Camera camera = Camera( src=0, fps=30, size=None, emitterIsEnabled=False, queueModeEnabled=False, backgroundIsEnabled=True, ) camera.start() while True: image = camera.read() if image is not None: c...
16.37037
41
0.565611
0
0
0
0
0
0
0
0
10
0.022624
873062623f7ba6c782e2eb75ee0d4275cd9a9460
876
py
Python
setup.py
Seojiyoon/pydata_jy
3166b34ea8cf078bf934a8b3b12b395cf01e14fa
[ "MIT" ]
null
null
null
setup.py
Seojiyoon/pydata_jy
3166b34ea8cf078bf934a8b3b12b395cf01e14fa
[ "MIT" ]
null
null
null
setup.py
Seojiyoon/pydata_jy
3166b34ea8cf078bf934a8b3b12b395cf01e14fa
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='pydata_jy', version='1.0.0', description='PyData Location List',...
27.375
63
0.642694
0
0
0
0
0
0
0
0
329
0.375571
87317b99687d8331d065138ebb8a07bd2daca0b3
4,759
py
Python
src/modules/bot_info.py
490720818/jx3_bot
e73822914c21d399cd5f51f103efb30fb7d3b534
[ "MIT" ]
22
2021-09-05T23:29:34.000Z
2022-02-18T14:45:31.000Z
src/modules/bot_info.py
490720818/jx3_bot
e73822914c21d399cd5f51f103efb30fb7d3b534
[ "MIT" ]
10
2021-09-23T07:43:47.000Z
2021-12-20T04:26:47.000Z
src/modules/bot_info.py
490720818/jx3_bot
e73822914c21d399cd5f51f103efb30fb7d3b534
[ "MIT" ]
8
2021-09-09T00:41:54.000Z
2022-01-17T07:01:11.000Z
from datetime import datetime from typing import Optional from src.utils.config import config from tortoise import fields from tortoise.models import Model defaule_nickname: str = config.get('default').get('nickname') class BotInfo(Model): '''QQๆœบๅ™จไบบ่กจ''' bot_id = fields.IntField(pk=True) '''ๆœบๅ™จไบบQQๅท''' ...
23.795
114
0.536037
5,038
0.957613
0
0
4,361
0.82893
4,174
0.793385
1,970
0.374454
87340f549a9504189615f389775f3fa776205530
5,816
py
Python
ckan/tests/legacy/functional/test_admin.py
ogdch/ckan
dd5d6a46971bcd167450d58eb2613b2fe0c40f38
[ "Apache-2.0" ]
null
null
null
ckan/tests/legacy/functional/test_admin.py
ogdch/ckan
dd5d6a46971bcd167450d58eb2613b2fe0c40f38
[ "Apache-2.0" ]
1
2016-09-20T16:46:29.000Z
2016-09-20T16:46:29.000Z
ckan/tests/legacy/functional/test_admin.py
ogdch/ckan
dd5d6a46971bcd167450d58eb2613b2fe0c40f38
[ "Apache-2.0" ]
3
2017-03-09T15:07:14.000Z
2019-11-17T18:32:19.000Z
import ckan.model as model from ckan.tests.legacy import url_for, CreateTestData, WsgiAppCase class TestAdminController(WsgiAppCase): @classmethod def setup_class(cls): # setup test data including testsysadmin user CreateTestData.create() @classmethod def teardown_class(self): ...
38.263158
98
0.617779
5,689
0.978164
0
0
427
0.073418
0
0
1,847
0.317572
87375bd58b68763ac46aa57f63b861f0eab7f1f4
943
py
Python
main/PublicEmotionDatasets/Adobe/process/train_glove.py
cvlab-stonybrook/Emotion-Prediction
fb45f943208467ef91d8e43874599263f669166d
[ "MIT" ]
10
2019-12-19T21:17:46.000Z
2022-02-22T15:47:29.000Z
main/PublicEmotionDatasets/Adobe/process/train_glove.py
cvlab-stonybrook/Emotion-Prediction
fb45f943208467ef91d8e43874599263f669166d
[ "MIT" ]
2
2020-06-05T03:14:15.000Z
2020-06-14T09:14:54.000Z
main/PublicEmotionDatasets/Adobe/process/train_glove.py
cvlab-stonybrook/Emotion-Prediction
fb45f943208467ef91d8e43874599263f669166d
[ "MIT" ]
2
2020-01-08T14:49:46.000Z
2021-06-06T03:36:04.000Z
""" Copyright (c) 2019 Yevheniia Soroka Licensed under the MIT License Author: Yevheniia Soroka Email: ysoroka@cs.stonybrook.edu Last modified: 18/12/2019 Usage: Run this script to train GloVe model on Adobe tags. """ import os import gluonnlp as nlp import numpy as np import matplotlib.pyplot as plt import seaborn a...
25.486486
79
0.795334
0
0
0
0
0
0
0
0
437
0.463415
87384dc72f9e3199e13ece29c53d8947b043dfd8
3,592
py
Python
src/py/fi3201/vis-anim/plot-sine-wave.py
butiran/butiran.github.io
bf99f55819a140190e5bda8f9675109ef607eb9d
[ "MIT" ]
null
null
null
src/py/fi3201/vis-anim/plot-sine-wave.py
butiran/butiran.github.io
bf99f55819a140190e5bda8f9675109ef607eb9d
[ "MIT" ]
2
2020-08-08T13:57:20.000Z
2020-08-08T14:18:05.000Z
src/py/fi3201/vis-anim/plot-sine-wave.py
butiran/butiran.github.io
bf99f55819a140190e5bda8f9675109ef607eb9d
[ "MIT" ]
1
2020-08-08T13:54:23.000Z
2020-08-08T13:54:23.000Z
# # plot-sine-wave.py # Produce a PNG file of a sine wave plot # # Sparisoma Viridi | https://butiran.github.io # # Execute: py plot-sine-wave.py # Output: sine-t-<time>.png # # 20210212 # 1901 Create this by modifying moving-sine-wave.py from [1]. # 1902 Remove FuncAnimation from matplotlib.animation. # 1904 Can s...
32.954128
197
0.707684
0
0
0
0
0
0
0
0
2,706
0.752503
873cd9aa4ca69fb8db27282cbf6f46eaf38835b5
433
py
Python
app/grandchallenge/emails/urls.py
comic/comic-django
4f534fae2c7d2102e94991667398aef12394e32e
[ "Apache-2.0" ]
7
2016-11-05T07:16:30.000Z
2017-11-23T03:38:03.000Z
app/grandchallenge/emails/urls.py
comic/comic-django
4f534fae2c7d2102e94991667398aef12394e32e
[ "Apache-2.0" ]
113
2015-05-26T09:27:59.000Z
2018-03-21T10:45:56.000Z
app/grandchallenge/emails/urls.py
comic/comic-django
4f534fae2c7d2102e94991667398aef12394e32e
[ "Apache-2.0" ]
7
2015-07-16T20:11:22.000Z
2017-06-06T02:41:24.000Z
from django.urls import path from grandchallenge.emails.views import ( EmailCreate, EmailDetail, EmailList, EmailUpdate, ) app_name = "emails" urlpatterns = [ path("", EmailList.as_view(), name="list"), path("create/", EmailCreate.as_view(), name="create"), path("<int:pk>/",...
24.055556
68
0.628176
0
0
0
0
0
0
0
0
78
0.180139
873d8b0d8fb5d84af7dbc0818d054644154458aa
2,212
py
Python
sdk/python/pulumi_azure_native/security/v20170801preview/_enums.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_native/security/v20170801preview/_enums.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_native/security/v20170801preview/_enums.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from enum import Enum __all__ = [ 'AlertNotifications', 'AlertsToAdmins', 'DataSource', 'ExportData', 'RecommendationConfigStatus'...
28.358974
90
0.735986
1,811
0.818716
0
0
0
0
0
0
1,141
0.515823
873dcab1696da898509ad657f23420a697da102c
437
py
Python
Python-For-Everyone-Horstmann/Chapter4-Loops/P4.12.py
islayy/Books-solutions
5fe05deb4e9f65875284d8af43bd383bf9ae145b
[ "MIT" ]
null
null
null
Python-For-Everyone-Horstmann/Chapter4-Loops/P4.12.py
islayy/Books-solutions
5fe05deb4e9f65875284d8af43bd383bf9ae145b
[ "MIT" ]
null
null
null
Python-For-Everyone-Horstmann/Chapter4-Loops/P4.12.py
islayy/Books-solutions
5fe05deb4e9f65875284d8af43bd383bf9ae145b
[ "MIT" ]
1
2021-01-30T22:19:07.000Z
2021-01-30T22:19:07.000Z
# Write a program that reads a word and prints all substrings, sorted by length. For # example, if the user provides the input "rum" , the program prints # r # u # m # ru # um # rum word = str(input("Enter a word: ")) wordLen = len(word) subLen = 1 start = 0 for i in range(wordLen): star...
20.809524
84
0.597254
0
0
0
0
0
0
0
0
215
0.491991
873f6c355000a9b2cfae9ab9f448789e549f97f0
5,462
py
Python
openprocurement/auction/esco/utils.py
ProzorroUKR/openprocurement.auction.esco
16a127ac7fc47cacaaf5f2eb708ea8b273e57e56
[ "Apache-2.0" ]
null
null
null
openprocurement/auction/esco/utils.py
ProzorroUKR/openprocurement.auction.esco
16a127ac7fc47cacaaf5f2eb708ea8b273e57e56
[ "Apache-2.0" ]
3
2017-10-26T12:42:01.000Z
2017-11-06T10:41:49.000Z
openprocurement/auction/esco/utils.py
ProzorroUKR/openprocurement.auction.esco
16a127ac7fc47cacaaf5f2eb708ea8b273e57e56
[ "Apache-2.0" ]
4
2017-07-10T12:03:38.000Z
2017-09-08T10:19:46.000Z
# -*- coding: utf-8 -*- import json from functools import partial from fractions import Fraction from barbecue import chef from decimal import Decimal def prepare_initial_bid_stage(bidder_name="", bidder_id="", time="", amount_f...
41.694656
143
0.623398
512
0.09277
0
0
0
0
0
0
1,326
0.240261
87401eff4431709b68990d11ae10ed30cfb15a48
5,446
py
Python
src/octopus/dispatcher/model/pool.py
smaragden/OpenRenderManagement
cf3ab356f96969d7952b60417b48e941955e435c
[ "BSD-3-Clause" ]
35
2015-02-23T23:13:13.000Z
2021-01-03T05:56:39.000Z
src/octopus/dispatcher/model/pool.py
smaragden/OpenRenderManagement
cf3ab356f96969d7952b60417b48e941955e435c
[ "BSD-3-Clause" ]
15
2015-01-12T12:58:29.000Z
2016-03-30T13:10:19.000Z
src/octopus/dispatcher/model/pool.py
mikrosimage/OpenRenderManagement
6f9237a86cb8e4b206313f9c22424c8002fd5e4d
[ "BSD-3-Clause" ]
20
2015-03-18T06:57:13.000Z
2020-07-01T15:09:36.000Z
#################################################################################################### # @file pool.py # @package # @author # @date 2008/10/29 # @version 0.1 # # @mainpage # #################################################################################################### from weakref import...
37.047619
180
0.615498
4,971
0.91278
0
0
0
0
0
0
2,193
0.402681
87410a5465e9de55d3305d33ab36376d56b46d98
13,287
py
Python
optimiser.py
FJFranklin/DomeBuilder
b286486dd4ff99eacf5754653a0e318f57884c21
[ "MIT" ]
null
null
null
optimiser.py
FJFranklin/DomeBuilder
b286486dd4ff99eacf5754653a0e318f57884c21
[ "MIT" ]
null
null
null
optimiser.py
FJFranklin/DomeBuilder
b286486dd4ff99eacf5754653a0e318f57884c21
[ "MIT" ]
null
null
null
import argparse import csv import sys import numpy as np from BeesEtAl.BA_Garden import BA_Garden from BeesEtAl.F3_Garden import F3_Garden from BeesEtAl.Base_Coster import Base_Coster from DomeBuilder.MaterialLib import MaterialLib from DomeBuilder.Frame import Frame # Defaults bF3 ...
38.181034
158
0.567246
7,513
0.56544
0
0
701
0.052758
0
0
2,847
0.21427
87444113cdb71868cffb7577fdd08b827329e23a
333
py
Python
File_Counts.py
juliaviolet/Google_IT_Python_Crash_Course
e48f37f41000bb7fa6cfca197a964b792125067f
[ "MIT" ]
null
null
null
File_Counts.py
juliaviolet/Google_IT_Python_Crash_Course
e48f37f41000bb7fa6cfca197a964b792125067f
[ "MIT" ]
null
null
null
File_Counts.py
juliaviolet/Google_IT_Python_Crash_Course
e48f37f41000bb7fa6cfca197a964b792125067f
[ "MIT" ]
null
null
null
file_counts = {"jpg":10, "txt":14, "csv":2, "py":23} print(file_counts) file_counts["txt"] 14 "jpg" in file_counts True "html" in file_counts False file_counts["cfg"] = 8 print file_counts {"jpg":10, "txt":14, "csv":2, "py":23, "cfg" = 8 } file_counts["csv"]= 17 print file_counts {"jpg":10, "txt":14, "csv":17, "py":23,...
22.2
52
0.633634
0
0
0
0
0
0
0
0
93
0.279279
8744e9e584ee597102545132a7add5ffd86f0a43
3,632
py
Python
monolithic/order_transaction.py
liks79/sample-saga-with-step-functions
d515317f93cdb7b294de06de8f2b571c5bf9edb9
[ "BSD-3-Clause" ]
3
2020-03-17T08:08:15.000Z
2020-04-17T07:16:05.000Z
monolithic/order_transaction.py
liks79/sample-saga-with-step-functions
d515317f93cdb7b294de06de8f2b571c5bf9edb9
[ "BSD-3-Clause" ]
3
2020-03-20T05:51:28.000Z
2020-03-20T15:18:30.000Z
monolithic/order_transaction.py
liks79/sample-saga-with-aws-step-functions
d515317f93cdb7b294de06de8f2b571c5bf9edb9
[ "BSD-3-Clause" ]
null
null
null
""" Database model for Monolithic application ~~~~~~~~~~~~~~~~~~~~~~~ :created date: Thursday, March 12, 2020 :description: Monolithic application implementation of simple order transaction scenario :copyright: ยฉ 2020 written by sungshik (liks79@gmail.com) :license: BSD 3-Clause License, see LI...
33.62963
92
0.647577
0
0
0
0
0
0
0
0
1,222
0.336361
8745e6b7c33659f03c672584cd00f2afaf7bb97a
662
py
Python
build.py
FrederichRiver/neutrino3
c16c6ea824999c012252d0e281473a6ab13fd38e
[ "BSD-3-Clause" ]
1
2021-07-12T11:20:58.000Z
2021-07-12T11:20:58.000Z
build.py
FrederichRiver/neutrino3
c16c6ea824999c012252d0e281473a6ab13fd38e
[ "BSD-3-Clause" ]
null
null
null
build.py
FrederichRiver/neutrino3
c16c6ea824999c012252d0e281473a6ab13fd38e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 import os PROJ_PATH = os.getenv('NEU_PATH') # Test lib_list = [ 'dev_global','libutils', 'libmysql_utils', 'libbasemodel', 'libspider', 'libnlp', 'libcontext', 'service_api', 'libstrategy', 'libtask'] # lib_list = ['libstrategy',] for lib in lib_list: print(f"[Building {lib}]") #...
28.782609
58
0.637462
0
0
0
0
0
0
0
0
454
0.685801
8747368931826c6a70cd078a736cf5cc4deabb4f
175
py
Python
problem0116.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
problem0116.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
problem0116.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
########################### # # #116 Red, green or blue tiles - Project Euler # https://projecteuler.net/problem=116 # # Code by Kevin Marciniak # ###########################
19.444444
47
0.48
0
0
0
0
0
0
0
0
167
0.954286
8749210b10b6c1b7dc00fe6d7d2356679b07cd0f
7,569
py
Python
src_adsabs/ads_dataviz.py
mlares/iate_audit
3ae8aff2b3de853d43619c592ac8cedf0ff35591
[ "MIT" ]
null
null
null
src_adsabs/ads_dataviz.py
mlares/iate_audit
3ae8aff2b3de853d43619c592ac8cedf0ff35591
[ "MIT" ]
null
null
null
src_adsabs/ads_dataviz.py
mlares/iate_audit
3ae8aff2b3de853d43619c592ac8cedf0ff35591
[ "MIT" ]
null
null
null
import numpy as np import pickle import pandas as pd import random from matplotlib import pyplot as plt from plot_styles import * # ################################################################# # Load data # ################################################################# df_papers_auth = pickle.load(open('../...
24.105096
77
0.631788
0
0
0
0
0
0
0
0
2,461
0.315432
8749319477407cbd8ae7a058e2b902a1251b535a
58,443
py
Python
p2p/__init__.py
jperezlatimes/p2p-python
193050303c762b4e46bd1f7637795e19178fd025
[ "MIT" ]
2
2017-08-05T12:25:17.000Z
2017-11-21T05:00:19.000Z
p2p/__init__.py
jperezlatimes/p2p-python
193050303c762b4e46bd1f7637795e19178fd025
[ "MIT" ]
28
2015-10-16T19:09:58.000Z
2019-02-28T21:09:54.000Z
p2p/__init__.py
jperezlatimes/p2p-python
193050303c762b4e46bd1f7637795e19178fd025
[ "MIT" ]
5
2015-10-15T22:56:10.000Z
2018-11-13T20:44:39.000Z
from builtins import str from builtins import range from builtins import object import os import re import json import math import logging import requests import warnings from time import mktime from copy import deepcopy from datetime import datetime from datetime import date from p2p import utils from p2p.cache import...
35.898649
121
0.577092
55,055
0.942029
0
0
3,998
0.068409
0
0
21,221
0.363106
874a9dec1f0fc82823381398bf087a0f194d84c8
707
py
Python
plots/ttest.py
Denbergvanthijs/imbDRLAppendix
2bc810366b5793abdb47fbe110caf0936c0c9f28
[ "Apache-2.0" ]
null
null
null
plots/ttest.py
Denbergvanthijs/imbDRLAppendix
2bc810366b5793abdb47fbe110caf0936c0c9f28
[ "Apache-2.0" ]
null
null
null
plots/ttest.py
Denbergvanthijs/imbDRLAppendix
2bc810366b5793abdb47fbe110caf0936c0c9f28
[ "Apache-2.0" ]
3
2021-01-22T14:53:55.000Z
2021-10-08T16:44:11.000Z
import pandas as pd from scipy.stats import ttest_ind experiments = ("creditcardfraud", "histology", "aki") usecols = ("F1", ) # "Precision", "Recall" alpha = 0.05 for experiment in experiments: df_nn = pd.read_csv(f"./results/{experiment}/nn.csv", usecols=usecols) df_dqn = pd.read_csv(f"./results/{experimen...
33.666667
89
0.623762
0
0
0
0
0
0
0
0
264
0.372355
874c9017ad17aa813ad7a4b4bd54385bf7e3cba6
91
py
Python
build/lib/acousondePy/__init__.py
SvenGastauer/acousondePy
94a99dc9de35d644a35cbfa3078110a67a35212e
[ "MIT" ]
null
null
null
build/lib/acousondePy/__init__.py
SvenGastauer/acousondePy
94a99dc9de35d644a35cbfa3078110a67a35212e
[ "MIT" ]
null
null
null
build/lib/acousondePy/__init__.py
SvenGastauer/acousondePy
94a99dc9de35d644a35cbfa3078110a67a35212e
[ "MIT" ]
null
null
null
from .MTRead import MTread,spec_plot,read_multiple_MT from .main import MTreadgui,acousonde
45.5
53
0.868132
0
0
0
0
0
0
0
0
0
0
874d8921f97e42c910fe28fa0b4fc2ea91322a92
5,739
py
Python
references/encase/code/resNet_3.py
wenh06/cinc2020
b3757f54df86c8470e8f22f3399b4aecd64dd5d1
[ "BSD-2-Clause" ]
4
2020-10-31T07:02:37.000Z
2021-05-24T08:11:35.000Z
references/encase/code/resNet_3.py
DeepPSP/cinc2020
38105ed9dac6554e2dd51b94e5553fb8ba22dbe6
[ "BSD-2-Clause" ]
null
null
null
references/encase/code/resNet_3.py
DeepPSP/cinc2020
38105ed9dac6554e2dd51b94e5553fb8ba22dbe6
[ "BSD-2-Clause" ]
1
2021-05-25T14:54:31.000Z
2021-05-25T14:54:31.000Z
# -*- coding: utf-8 -*- ''' split long seq into small sub_seq, feed sub_seq to lstm ''' from __future__ import division, print_function, absolute_import import tflearn import tflearn.data_utils as du import numpy as np import ReadData import tensorflow as tf from tensorflow.contrib import learn from tensorflow.con...
40.415493
133
0.723471
0
0
0
0
0
0
0
0
2,246
0.391357
874d8fc54269b9f8feb9d8bfe93b5d4acc6447c0
3,277
py
Python
experiments/data_manager.py
bekirufuk/longformer
75a07d57a46b6db298abf316e21b0d9f8763e26e
[ "Apache-2.0" ]
null
null
null
experiments/data_manager.py
bekirufuk/longformer
75a07d57a46b6db298abf316e21b0d9f8763e26e
[ "Apache-2.0" ]
null
null
null
experiments/data_manager.py
bekirufuk/longformer
75a07d57a46b6db298abf316e21b0d9f8763e26e
[ "Apache-2.0" ]
null
null
null
import os import json import config import pandas as pd def create_data_files(patents, ipcr): chunk_count = 0 patent_count = 0 for chunk in patents: # Combine patent with respective section info. data = chunk.merge(ipcr, how='left', on='patent_id') # Replace the letters with integ...
36.411111
132
0.604821
0
0
0
0
0
0
0
0
1,326
0.404638
874e44d7d7e00de1617e441b5379a89885ecea65
3,291
py
Python
batch.py
jazevedo620/RepoMigrator
f358c91447e7fbb37b13c829aa16ce4ca36b213a
[ "MIT" ]
null
null
null
batch.py
jazevedo620/RepoMigrator
f358c91447e7fbb37b13c829aa16ce4ca36b213a
[ "MIT" ]
null
null
null
batch.py
jazevedo620/RepoMigrator
f358c91447e7fbb37b13c829aa16ce4ca36b213a
[ "MIT" ]
null
null
null
import migrate import argparse import shutil __author__ = "Joseph Azevedo" __version__ = "1.0" DESCRIPTION = "Migrates multiple repositories at once" HTTPS_START = "https://" REPO_FORMAT = "{}/{}/{}.git" def main(source_site, dest_site, repos, dest_user=None, dest_token=None, source_user=None, source_token=None, ...
44.472973
120
0.666971
0
0
0
0
0
0
0
0
895
0.271954
874e9462e77f3d3d5e37bd23d18ef1dc06f8cc9d
2,704
py
Python
libs/logo.py
Ethical-Hacking-Tools/InstaReport
051bde7b4b24283096c3a050ec7f70019c36994e
[ "MIT" ]
null
null
null
libs/logo.py
Ethical-Hacking-Tools/InstaReport
051bde7b4b24283096c3a050ec7f70019c36994e
[ "MIT" ]
null
null
null
libs/logo.py
Ethical-Hacking-Tools/InstaReport
051bde7b4b24283096c3a050ec7f70019c36994e
[ "MIT" ]
null
null
null
# coding=utf-8 #!/usr/bin/env python3 from libs.animation import colorText logo = ''' [[black-bright-background]][[red]] โ–ˆโ–ˆโ–“ [[green]]โ–ˆโ–ˆโ–ˆโ–„ โ–ˆ [[blue]] โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ [[magenta]]โ–„โ–„โ–„โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–“ [[cyan]]โ–„โ–„โ–„ [[red]] โ–ˆโ–ˆโ–€โ–ˆโ–ˆโ–ˆ [[green]]โ–“โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ [[blue]] โ–ˆโ–ˆโ–“โ–ˆโ–ˆโ–ˆ [[magenta]]โ–’โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ [[cyan]]โ–ˆโ–ˆโ–€โ–ˆโ–ˆโ–ˆ [[yellow]]โ–„โ–„โ–„โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–“[[r...
100.148148
231
0.339867
0
0
0
0
0
0
0
0
3,550
0.972603
874e95d0535471b1e17d17092df7f1e9c60c6cb5
1,228
py
Python
coherence/upnp/services/servers/switch_power_server.py
palfrey/Cohen3
d5779b4cbcf736e12d0ccfd162238ac5c376bb0b
[ "MIT" ]
60
2018-09-14T18:57:38.000Z
2022-02-19T18:16:24.000Z
coherence/upnp/services/servers/switch_power_server.py
palfrey/Cohen3
d5779b4cbcf736e12d0ccfd162238ac5c376bb0b
[ "MIT" ]
37
2018-09-04T08:51:11.000Z
2022-02-21T01:36:21.000Z
coherence/upnp/services/servers/switch_power_server.py
palfrey/Cohen3
d5779b4cbcf736e12d0ccfd162238ac5c376bb0b
[ "MIT" ]
16
2019-02-19T18:34:58.000Z
2022-02-05T15:36:33.000Z
# -*- coding: utf-8 -*- # Licensed under the MIT license # http://opensource.org/licenses/mit-license.php # Copyright 2008, Frank Scholz <coherence@beebits.net> ''' Switch Power service ==================== ''' from twisted.web import resource from coherence.upnp.core import service from coherence.upnp.core.soap_s...
29.238095
73
0.697068
874
0.711726
0
0
0
0
0
0
240
0.19544
874f63a84b2700710fd965dced8d15b1927c1840
503
py
Python
enumerate_and_map_and_reduce.py
aslange/Python_Basics
53856d53b970026da7aa26b8bc468c03352d97b7
[ "Apache-2.0" ]
null
null
null
enumerate_and_map_and_reduce.py
aslange/Python_Basics
53856d53b970026da7aa26b8bc468c03352d97b7
[ "Apache-2.0" ]
null
null
null
enumerate_and_map_and_reduce.py
aslange/Python_Basics
53856d53b970026da7aa26b8bc468c03352d97b7
[ "Apache-2.0" ]
null
null
null
# funรงรฃo enumerate lista = ['abacate', 'bola', 'cachorro'] # lista for i in range(len(lista)): print(i, lista[i]) for i, nome in enumerate(lista): print(i, nome) # funรงรฃo map def dobro(x): return x * 2 valor = [1, 2, 3, 4, 5] print(dobro(valor)) valor_dobrado = map(dobro, valor) valor_dobrado = list...
14.371429
47
0.648111
0
0
0
0
0
0
0
0
83
0.163065
87514738fd99c215e3ff8b572b9ce3a7d7ef4ffb
30,068
py
Python
VKActivityAnalisys/ActivityAnalysis.py
Rig0ur/VKAnalysis
23bfedc490c99d488078039b9aab1c7cd3defce9
[ "Apache-2.0" ]
54
2018-03-04T10:18:59.000Z
2022-03-24T20:47:13.000Z
VKActivityAnalisys/ActivityAnalysis.py
Lukmora/VKAnalysis
23bfedc490c99d488078039b9aab1c7cd3defce9
[ "Apache-2.0" ]
7
2020-09-30T10:17:20.000Z
2021-12-27T01:53:52.000Z
VKActivityAnalisys/ActivityAnalysis.py
Lukmora/VKAnalysis
23bfedc490c99d488078039b9aab1c7cd3defce9
[ "Apache-2.0" ]
12
2019-11-29T15:54:39.000Z
2021-12-13T22:33:20.000Z
import datetime import json import logging import operator import os from collections import defaultdict from datetime import date import vk_api import vk_api.exceptions from vk_api import execute #from .TimeActivityAnalysis import VKOnlineGraph from .VKFilesUtils import check_and_create_path, DIR_PREFIX class VKAc...
48.1088
249
0.511906
33,090
0.990659
20,922
0.62637
0
0
0
0
14,039
0.420304
87567263e4472013f3e9c6f40f7e91f2cff4f5d5
40
py
Python
tipos de datos/integer1.py
gabys12/portafolio-fundamento-de-programacion
c9b47f32e885ed6ae80b14133a609798ea034e19
[ "CNRI-Python" ]
null
null
null
tipos de datos/integer1.py
gabys12/portafolio-fundamento-de-programacion
c9b47f32e885ed6ae80b14133a609798ea034e19
[ "CNRI-Python" ]
null
null
null
tipos de datos/integer1.py
gabys12/portafolio-fundamento-de-programacion
c9b47f32e885ed6ae80b14133a609798ea034e19
[ "CNRI-Python" ]
null
null
null
x = 100 y = 50 print('x=', x, 'y=', y)
8
23
0.4
0
0
0
0
0
0
0
0
8
0.2
8757b04fd4b2fb6a8af17658469898c40069ccbc
4,776
py
Python
tests/package/aeronpy/archive_test.py
welly87/aeron-python
300a4344dd7f1526aeafb3a23fe5c85fb3313ad1
[ "Apache-2.0" ]
9
2018-11-16T03:06:22.000Z
2022-03-13T19:14:15.000Z
tests/package/aeronpy/archive_test.py
welly87/aeron-python
300a4344dd7f1526aeafb3a23fe5c85fb3313ad1
[ "Apache-2.0" ]
1
2021-11-10T12:43:09.000Z
2021-11-10T12:43:09.000Z
tests/package/aeronpy/archive_test.py
welly87/aeron-python
300a4344dd7f1526aeafb3a23fe5c85fb3313ad1
[ "Apache-2.0" ]
7
2019-01-21T13:52:03.000Z
2022-03-08T21:09:06.000Z
import os from hamcrest import * from pytest import fixture from tempfile import _get_candidate_names as temp_dir_candidates, tempdir from time import sleep from aeronpy import Archive from aeronpy.driver import archiving_media_driver @fixture() def aeron_directory(): temp_dirs = temp_dir_candidates() where ...
33.398601
105
0.751884
0
0
297
0.062186
427
0.089405
0
0
284
0.059464
8757f1428a8a127f5ffc412dd30fac1f77be1d47
106
py
Python
app/script.py
tallywiesenberg/spotter-blocker
1fffd3c62a4b3d5c7964694455e4beb08e6bc8cc
[ "MIT" ]
null
null
null
app/script.py
tallywiesenberg/spotter-blocker
1fffd3c62a4b3d5c7964694455e4beb08e6bc8cc
[ "MIT" ]
null
null
null
app/script.py
tallywiesenberg/spotter-blocker
1fffd3c62a4b3d5c7964694455e4beb08e6bc8cc
[ "MIT" ]
null
null
null
import edits from edits import PageEditor pe = PageEditor(keyword='spider', orientation='block') pe.edit()
26.5
54
0.783019
0
0
0
0
0
0
0
0
15
0.141509
87599bd37b5c1ce4791f85dbb86aca71c590ae91
6,095
py
Python
src/cascade_at/settings/base_case.py
ihmeuw/cascade-at
a5b1b5da1698163fd3bbafc6288968dd9c398096
[ "MIT" ]
1
2019-10-14T23:18:04.000Z
2019-10-14T23:18:04.000Z
src/cascade_at/settings/base_case.py
ihmeuw/cascade
a5b1b5da1698163fd3bbafc6288968dd9c398096
[ "MIT" ]
35
2018-07-17T18:37:33.000Z
2020-03-06T13:31:35.000Z
src/cascade_at/settings/base_case.py
ihmeuw/cascade
a5b1b5da1698163fd3bbafc6288968dd9c398096
[ "MIT" ]
4
2018-07-13T00:01:35.000Z
2019-09-02T23:56:11.000Z
BASE_CASE = { "model": { "random_seed": 495279142, "default_age_grid": "0 0.01917808 0.07671233 1 5 10 20 30 40 50 60 70 80 90 100", "default_time_grid": "1990 1995 2000 2005 2010 2015 2016", "add_calc_emr": "from_both", "birth_prev": 0, "ode_step_size": 5, "m...
27.331839
89
0.31534
0
0
0
0
0
0
0
0
2,174
0.356686
875a2fb1710235abb404827fb32a14c9aebf6c27
14,778
py
Python
navrep/scripts/train_rnn.py
ReykCS/navrep
22ee4727268188414a8121f069e45c2ab798ca19
[ "MIT" ]
48
2020-11-26T10:16:08.000Z
2022-03-24T15:22:08.000Z
navrep/scripts/train_rnn.py
ReykCS/navrep
22ee4727268188414a8121f069e45c2ab798ca19
[ "MIT" ]
1
2021-12-14T02:08:18.000Z
2022-03-14T09:17:25.000Z
navrep/scripts/train_rnn.py
ReykCS/navrep
22ee4727268188414a8121f069e45c2ab798ca19
[ "MIT" ]
18
2020-12-09T08:37:43.000Z
2022-03-30T06:56:38.000Z
from __future__ import print_function import numpy as np import os from datetime import datetime import random import time import pickle from pyniel.python_tools.path_tools import make_dir_if_not_exists import pandas as pd from navrep.models.vae2d import ConvVAE from navrep.models.vae1d import Conv1DVAE from navrep.mo...
47.517685
110
0.60563
0
0
0
0
0
0
0
0
2,751
0.186155
875bf153c38837563607848c2a4373f619fc49b1
893
py
Python
Programming I Python/Chapter 5/b project 5a/Eric Blanco Problem 13.py
eebr99/Python-Projects
016f72b3f13793cb73c333c6eaab313eddfae9e7
[ "MIT" ]
null
null
null
Programming I Python/Chapter 5/b project 5a/Eric Blanco Problem 13.py
eebr99/Python-Projects
016f72b3f13793cb73c333c6eaab313eddfae9e7
[ "MIT" ]
null
null
null
Programming I Python/Chapter 5/b project 5a/Eric Blanco Problem 13.py
eebr99/Python-Projects
016f72b3f13793cb73c333c6eaab313eddfae9e7
[ "MIT" ]
null
null
null
#Write a function named "falling_distance" that accepts an object's falling time #(in seconds) as an argument. The function should return the distance, in meters #, that the object has fallen during the time interval.Write a program that #calls the function in a loop that passes the values 1 through 10 as arguments ...
35.72
81
0.646137
0
0
0
0
0
0
0
0
567
0.634938
875d850a61502a05ae1607c589db3488582a51b9
3,140
py
Python
prepare_data.py
aascode/OMGEmotionChallenge
0f29ba2d4e9472c889f3aa72545fb835c80dcf0f
[ "Apache-2.0" ]
null
null
null
prepare_data.py
aascode/OMGEmotionChallenge
0f29ba2d4e9472c889f3aa72545fb835c80dcf0f
[ "Apache-2.0" ]
null
null
null
prepare_data.py
aascode/OMGEmotionChallenge
0f29ba2d4e9472c889f3aa72545fb835c80dcf0f
[ "Apache-2.0" ]
1
2021-01-07T05:42:54.000Z
2021-01-07T05:42:54.000Z
from __future__ import print_function import argparse import os import sys import subprocess import datetime def get_formatted_time(seconds): return str(datetime.timedelta(seconds=seconds)) # microsecond = int((seconds - int(seconds)) * 1000 * 1000) # int_seconds = int(seconds) # hour = int_seconds // 3...
35.681818
91
0.486306
0
0
0
0
0
0
0
0
744
0.236943
875e13669b90d566535e678aeb9626f67f4c6d30
3,101
py
Python
PyBlokusTools/pyblokustools/testserver/Message.py
HenrikThoroe/SWC-2021
8e7eee25e3a6fda7e863591b05fa161d8a2ebc78
[ "BSD-2-Clause", "MIT" ]
null
null
null
PyBlokusTools/pyblokustools/testserver/Message.py
HenrikThoroe/SWC-2021
8e7eee25e3a6fda7e863591b05fa161d8a2ebc78
[ "BSD-2-Clause", "MIT" ]
null
null
null
PyBlokusTools/pyblokustools/testserver/Message.py
HenrikThoroe/SWC-2021
8e7eee25e3a6fda7e863591b05fa161d8a2ebc78
[ "BSD-2-Clause", "MIT" ]
null
null
null
from typing import Any, Final, Tuple, List from enum import IntEnum from .MsgType import MsgType class Message(): """Base Message Arguments: type {MsgType} -- Type of message payload {Any} -- Payload used for later handling """ def __init__(self, type: MsgType, payload: Any) ->...
29.817308
131
0.58207
2,991
0.964528
0
0
0
0
0
0
1,608
0.518542
875f3dc2268c5b69947a406b55babc4f4af29f54
2,984
py
Python
celo_sdk/tests/stable_token_tests.py
rcroessmann/celo-sdk-py
8826adaa6bbcb53374e7c26f0638a7fc973a9dd9
[ "Apache-2.0" ]
7
2021-02-09T20:44:41.000Z
2022-03-30T10:56:06.000Z
celo_sdk/tests/stable_token_tests.py
rcroessmann/celo-sdk-py
8826adaa6bbcb53374e7c26f0638a7fc973a9dd9
[ "Apache-2.0" ]
4
2020-11-04T07:39:10.000Z
2022-02-19T00:06:46.000Z
celo_sdk/tests/stable_token_tests.py
rcroessmann/celo-sdk-py
8826adaa6bbcb53374e7c26f0638a7fc973a9dd9
[ "Apache-2.0" ]
8
2020-11-03T14:45:26.000Z
2022-02-23T12:41:05.000Z
import time import unittest from web3 import Web3 from celo_sdk.kit import Kit from celo_sdk.tests import test_data class TestStableTokenWrapper(unittest.TestCase): @classmethod def setUpClass(self): self.kit = Kit('http://localhost:8544') self.stable_token_wrapper = self.kit.base_wrapper.c...
33.909091
124
0.678284
2,863
0.95945
0
0
522
0.174933
0
0
124
0.041555
876278e2ecaa859862d1b4df367b7a0946313f4c
3,450
py
Python
compipe/utils/parameters.py
ImagineersHub/pyspinner
272c000af3bfaef866bf4ae6a4694e5449ceca68
[ "MIT" ]
null
null
null
compipe/utils/parameters.py
ImagineersHub/pyspinner
272c000af3bfaef866bf4ae6a4694e5449ceca68
[ "MIT" ]
null
null
null
compipe/utils/parameters.py
ImagineersHub/pyspinner
272c000af3bfaef866bf4ae6a4694e5449ceca68
[ "MIT" ]
null
null
null
"""Represent the command parameter strings.""" ARG_COMMAND = 'command' ARG_ARGUMENT = 'argument' ARG_COUNT = 'count' ARG_CHANNEL = 'channel' ARG_CLIENT = 'client' ARG_GUID = 'guid' ARG_CHANGELIST = 'cl' ARG_DEV_CHANNEL = 'dev_channel' ARG_QUEUE_WORKER_NUMBER = 'worker_number' ARG_CALLBACK = 'callback' ARG_PAYLOAD = 'pa...
23
58
0.73971
0
0
0
0
0
0
0
0
1,342
0.388986
87639751a19ec144d88f1bcfcf5fc14664d50b35
3,412
py
Python
python/avi/migrationtools/f5_converter/test/excel_reader.py
thisisshi/sdk
99c52caffeebbfd41f43931fea2b5b1323841892
[ "Apache-2.0" ]
37
2016-03-14T22:27:17.000Z
2022-03-03T05:18:39.000Z
python/avi/migrationtools/f5_converter/test/excel_reader.py
thisisshi/sdk
99c52caffeebbfd41f43931fea2b5b1323841892
[ "Apache-2.0" ]
195
2016-03-14T23:47:55.000Z
2021-05-12T11:28:56.000Z
python/avi/migrationtools/f5_converter/test/excel_reader.py
thisisshi/sdk
99c52caffeebbfd41f43931fea2b5b1323841892
[ "Apache-2.0" ]
50
2016-03-14T05:52:14.000Z
2022-01-06T06:12:00.000Z
import json import pandas def output_sanitization(path_to_excel, path_to_out_json=None): ''' Find the Success percentage of each output report ''' path = path_to_excel out_obj = [] excel_obj = [] # Output Sanitization wb = pandas.read_excel(path, engine='openpyxl') cols = 0 for s in ...
35.541667
85
0.517878
0
0
0
0
0
0
0
0
527
0.154455