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
0829534c63fae0dfb66814593c9605ce70347325
28,509
py
Python
biosteam/_system.py
tylerhuntington222/biosteam
234959180a3210d95e39a012454f455723c92686
[ "MIT" ]
null
null
null
biosteam/_system.py
tylerhuntington222/biosteam
234959180a3210d95e39a012454f455723c92686
[ "MIT" ]
null
null
null
biosteam/_system.py
tylerhuntington222/biosteam
234959180a3210d95e39a012454f455723c92686
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # BioSTEAM: The Biorefinery Simulation and Techno-Economic Analysis Modules # Copyright (C) 2020, Yoel Cortes-Pena <yoelcortes@gmail.com> # # This module is under the UIUC open-source license. See # github.com/BioSTEAMDevelopmentGroup/biosteam/blob/master/LICENSE.txt # for license details. """...
35.725564
128
0.582377
23,928
0.839314
0
0
22,858
0.801782
0
0
8,232
0.288751
082bb5b00799a75a854f5404ce105bcaeac6c3e7
1,005
py
Python
modules/AI/research/findContour.py
killax-d/Counter-Coins-API
97acede70e26b23f96883bb14e2bf6ace3759174
[ "MIT" ]
null
null
null
modules/AI/research/findContour.py
killax-d/Counter-Coins-API
97acede70e26b23f96883bb14e2bf6ace3759174
[ "MIT" ]
null
null
null
modules/AI/research/findContour.py
killax-d/Counter-Coins-API
97acede70e26b23f96883bb14e2bf6ace3759174
[ "MIT" ]
null
null
null
import cv2 import numpy as np image = cv2.imread('original.png') gray = cv2.cvtColor(image.copy(), cv2.COLOR_BGR2GRAY) gray = cv2.equalizeHist(gray) blur = cv2.GaussianBlur(gray, (19, 19), 0) # Application d'un seuil pour obtenir une image binaire thresh = cv2.adaptiveThreshold(blur, 255, cv2.ADAPTIVE_THRESH_GAUSSIAN...
30.454545
103
0.711443
0
0
0
0
0
0
0
0
188
0.186693
083461c10e66e08e6e0c8ad2d8f84b46b0b09e65
8,413
py
Python
python/src/ties/cli/test/ties_convert_tests.py
Noblis/ties-lib
e7c6165ebcd80e11b792fd4bcddf6ce634da0c60
[ "ECL-2.0", "Apache-2.0" ]
1
2020-04-10T19:02:27.000Z
2020-04-10T19:02:27.000Z
python/src/ties/cli/test/ties_convert_tests.py
Noblis/ties-lib
e7c6165ebcd80e11b792fd4bcddf6ce634da0c60
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
python/src/ties/cli/test/ties_convert_tests.py
Noblis/ties-lib
e7c6165ebcd80e11b792fd4bcddf6ce634da0c60
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
################################################################################ # Copyright 2019 Noblis, Inc # # # # Licensed under the Apache License, Version 2.0 (the "License"); ...
36.578261
111
0.562463
5,221
0.620587
0
0
0
0
0
0
3,444
0.409366
0834a96e609f196a4e397fc0d0398ea157ccd7e5
2,316
py
Python
Edge Detection.py
paulmtree/Lung-Segmentation-Project
2cffe09ce6a4818200d88b9e4e87155feb594366
[ "MIT" ]
14
2020-11-10T16:47:54.000Z
2022-03-15T12:17:29.000Z
Edge Detection.py
paulmtree/Lung-Segmentation-Project
2cffe09ce6a4818200d88b9e4e87155feb594366
[ "MIT" ]
3
2020-11-21T09:49:15.000Z
2021-05-30T23:58:30.000Z
Edge Detection.py
paulmtree/Lung-Segmentation-Project
2cffe09ce6a4818200d88b9e4e87155feb594366
[ "MIT" ]
3
2021-11-04T18:08:53.000Z
2022-01-13T03:22:26.000Z
from PIL import Image, ImageFilter import numpy as np import glob from numpy import array import matplotlib.pyplot as plt from skimage import morphology import scipy.ndimage def sample_stack(stack, rows=2, cols=2, start_with=0, show_every=1, display1 = True): if (display1): new_list = [] new_list.a...
35.090909
128
0.658895
0
0
0
0
0
0
0
0
976
0.421416
08354cb83dbefe75aa87b426bfa4c3e544572c47
2,191
py
Python
benchmark.py
Umass-ITS/Open3D-PointNet2-Semantic3D
0254926f62cbca695aa1e76a18fec0863be5e455
[ "MIT" ]
330
2019-04-10T21:31:24.000Z
2021-07-26T06:16:17.000Z
benchmark.py
largeword/Open3D-PointNet2-Semantic3D
3a9751dc724877933fc883320100796cef23489d
[ "MIT" ]
44
2019-04-10T15:28:36.000Z
2021-06-22T17:39:05.000Z
benchmark.py
largeword/Open3D-PointNet2-Semantic3D
3a9751dc724877933fc883320100796cef23489d
[ "MIT" ]
78
2019-04-08T09:39:29.000Z
2021-06-08T02:39:14.000Z
import json import numpy as np import tensorflow as tf import time from predict import Predictor if __name__ == "__main__": checkpoint = "logs/semantic_backup_full_submit_dec_10/best_model_epoch_275.ckpt" hyper_params = json.loads(open("semantic.json").read()) predictor = Predictor( checkpoint_pa...
30.013699
86
0.652214
0
0
0
0
0
0
0
0
452
0.206298
0836babd9f72c506519d713c961b9257fd759c19
447
py
Python
tests/my_select_group.py
oldjun/PyMyORM
ac49910f21d3f3d3d4b3d75a0f998526963f0a2a
[ "MIT" ]
1
2021-12-01T23:47:24.000Z
2021-12-01T23:47:24.000Z
tests/my_select_group.py
oldjun/PyMyORM
ac49910f21d3f3d3d4b3d75a0f998526963f0a2a
[ "MIT" ]
null
null
null
tests/my_select_group.py
oldjun/PyMyORM
ac49910f21d3f3d3d4b3d75a0f998526963f0a2a
[ "MIT" ]
2
2022-01-03T15:03:37.000Z
2022-02-16T09:00:58.000Z
from pymyorm.database import Database from config import db from models.user import User if __name__ == '__main__': Database.connect(**db) # # case 1 # all = User.find().select('count(*) as count', 'money').group('money').order('count asc').all() # for one in all: # print(one) all = User....
27.9375
102
0.615213
0
0
0
0
0
0
0
0
203
0.454139
083725212ef9f198c79212406fcc54599eb1abb4
2,783
py
Python
framework/codejam/extract/cyclomatic_complexity.py
neizod/coding-analysis
cc086bcf204e570032d11b12a46ac819cfe93f2b
[ "MIT" ]
1
2015-05-22T05:01:53.000Z
2015-05-22T05:01:53.000Z
framework/codejam/extract/cyclomatic_complexity.py
neizod/coding-analysis
cc086bcf204e570032d11b12a46ac819cfe93f2b
[ "MIT" ]
null
null
null
framework/codejam/extract/cyclomatic_complexity.py
neizod/coding-analysis
cc086bcf204e570032d11b12a46ac819cfe93f2b
[ "MIT" ]
null
null
null
import os import json import logging from framework._utils import FunctionHook class CodeJamExtractCyclomaticComplexity(FunctionHook): ''' This method will extract cyclomatic complexity from submitted code. Need to run `extract language` first, since not every language has implement with the extr...
42.815385
75
0.606899
2,700
0.970176
1,109
0.398491
1,145
0.411427
0
0
734
0.263744
08384f79281339a1e0387a70c9f20061ae7f5d42
64
py
Python
tests/basic/numeric.py
MoonStarCZW/py2rb
89b247717d33d780fbf143e1583bfe9252984da4
[ "MIT" ]
null
null
null
tests/basic/numeric.py
MoonStarCZW/py2rb
89b247717d33d780fbf143e1583bfe9252984da4
[ "MIT" ]
null
null
null
tests/basic/numeric.py
MoonStarCZW/py2rb
89b247717d33d780fbf143e1583bfe9252984da4
[ "MIT" ]
null
null
null
print(int(2.0)) print(float(2)) print(abs(-2.0)) print(abs(-2))
12.8
16
0.625
0
0
0
0
0
0
0
0
0
0
083ac0bbfaedec44e83a000de5fcb0cfa49ed48e
310
py
Python
tests/symmetry/test_point_group.py
kijanac/Materia
b49af518c8eff7d3a8c6caff39783e3daf80a7a0
[ "MIT" ]
null
null
null
tests/symmetry/test_point_group.py
kijanac/Materia
b49af518c8eff7d3a8c6caff39783e3daf80a7a0
[ "MIT" ]
null
null
null
tests/symmetry/test_point_group.py
kijanac/Materia
b49af518c8eff7d3a8c6caff39783e3daf80a7a0
[ "MIT" ]
null
null
null
# import materia as mtr # import numpy as np # def test_point_group_C1(): # ctable = mtr.symmetry.C1().cayley_table() # assert (ctable == np.array([[0]])).all() # def test_point_group_Ci(): # ctable = mtr.symmetry.Ci().cayley_table() # assert (ctable == np.array([[0, 1], [1, 0]])).all()
20.666667
57
0.606452
0
0
0
0
0
0
0
0
296
0.954839
083e03b527a87a9ebea41c58c4a9944e76e7007f
1,948
py
Python
extrator/test/test_pipeline.py
MinisterioPublicoRJ/robotj
946e9547eea6f548609f7ccfaf1c6a13fffece65
[ "MIT" ]
3
2018-03-13T12:17:13.000Z
2021-04-18T19:55:04.000Z
extrator/test/test_pipeline.py
MinisterioPublicoRJ/robotj
946e9547eea6f548609f7ccfaf1c6a13fffece65
[ "MIT" ]
1
2018-06-19T13:09:10.000Z
2018-06-19T13:09:10.000Z
extrator/test/test_pipeline.py
MinisterioPublicoRJ/robotj
946e9547eea6f548609f7ccfaf1c6a13fffece65
[ "MIT" ]
1
2021-04-18T19:55:09.000Z
2021-04-18T19:55:09.000Z
from unittest.mock import patch, MagicMock from unittest import TestCase from ..crawler.pipeliner import pipeline from ..settings import URL_PROCESSO class Pipeline(TestCase): @patch('robotj.extrator.crawler.pipeliner.parse_itens', return_value={'d': 4}) @patch('robotj.extrator.crawler.pipeliner.pa...
38.96
76
0.661704
1,795
0.921458
0
0
1,765
0.906057
0
0
504
0.258727
083f30db4f011f2e287409fe5ae43ef0e966b47a
3,943
py
Python
tests/test_step.py
arup-group/mc
50b8faa8b9d40dece88e0a27f911edd427ebc064
[ "MIT" ]
null
null
null
tests/test_step.py
arup-group/mc
50b8faa8b9d40dece88e0a27f911edd427ebc064
[ "MIT" ]
12
2021-12-14T15:10:43.000Z
2022-03-31T13:39:25.000Z
tests/test_step.py
arup-group/mc
50b8faa8b9d40dece88e0a27f911edd427ebc064
[ "MIT" ]
null
null
null
from pathlib import Path import pytest from copy import deepcopy import os from mc.base import BaseConfig from mc import step @pytest.fixture() def config(): in_file = Path("tests/test_data/test_config.xml") return BaseConfig(in_file) def test_set_write_path(config): step.set_write_path(config, {'outpu...
39.43
103
0.672331
0
0
0
0
116
0.029419
0
0
1,913
0.485164
0840e1f2cca91c8f40fea1035d91f9ed0ea2c8f1
15,552
py
Python
lambda_functions.py
intirix/serverless-secrets-manager
2c89b2c497f7078c38885125dfa79db944a214db
[ "Apache-2.0" ]
2
2018-05-23T06:04:13.000Z
2020-11-04T23:16:09.000Z
lambda_functions.py
intirix/serverless-secrets-manager
2c89b2c497f7078c38885125dfa79db944a214db
[ "Apache-2.0" ]
null
null
null
lambda_functions.py
intirix/serverless-secrets-manager
2c89b2c497f7078c38885125dfa79db944a214db
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import system import db import client import server import logging import json import base64 import os from aws_xray_sdk.core import patch_all if "AWS_REGION" in os.environ: patch_all() class LambdaCommon: def __init__(self, ddb_client=None): self.log = logging.getLogger("Lambda")...
29.622857
84
0.600244
1,598
0.102752
0
0
0
0
0
0
3,011
0.193609
08418a8370fcf775a2fd7e29466ecc715efe0e4f
2,575
py
Python
tests/utils_test.py
asrashley/dash-live
1ffbc57896e4e46855a42af6ef79a1865ebfce55
[ "Apache-2.0" ]
2
2019-11-02T06:26:29.000Z
2020-05-15T16:54:20.000Z
tests/utils_test.py
asrashley/dash-live
1ffbc57896e4e46855a42af6ef79a1865ebfce55
[ "Apache-2.0" ]
1
2020-01-20T17:20:54.000Z
2020-01-21T08:38:30.000Z
tests/utils_test.py
asrashley/dash-live
1ffbc57896e4e46855a42af6ef79a1865ebfce55
[ "Apache-2.0" ]
null
null
null
try: import cStringIO as StringIO except ImportError: import StringIO import datetime import os import sys import unittest _src = os.path.join(os.path.dirname(__file__),"..", "src") if not _src in sys.path: sys.path.append(_src) import utils class DateTimeTests(unittest.TestCase): def test_isoforma...
35.763889
97
0.597282
2,256
0.876117
0
0
0
0
0
0
320
0.124272
08432f03ae4911f91726c50919d96811876b71c7
9,364
py
Python
midv500/download_dataset.py
fcakyon/midv500-to-coco
2f1cd74e0bb8da2301a96e3fb0cd9f17005ed08c
[ "MIT" ]
39
2020-05-15T17:34:32.000Z
2022-03-25T08:22:47.000Z
midv500/download_dataset.py
fcakyon/midv500-to-coco
2f1cd74e0bb8da2301a96e3fb0cd9f17005ed08c
[ "MIT" ]
1
2020-08-04T09:04:06.000Z
2020-08-19T12:50:15.000Z
midv500/download_dataset.py
fcakyon/midv500-to-coco
2f1cd74e0bb8da2301a96e3fb0cd9f17005ed08c
[ "MIT" ]
6
2020-04-23T19:40:16.000Z
2021-12-19T17:52:42.000Z
import os import argparse from midv500.utils import download, unzip midv500_links = [ "ftp://smartengines.com/midv-500/dataset/01_alb_id.zip", "ftp://smartengines.com/midv-500/dataset/02_aut_drvlic_new.zip", "ftp://smartengines.com/midv-500/dataset/03_aut_id_old.zip", "ftp://smartengines.com/midv-500/d...
54.127168
90
0.705788
0
0
0
0
0
0
0
0
7,533
0.804464
0845053b64f5370f1498b8e4729e90a827f0c839
6,329
py
Python
erpnext_taxjar/api.py
DigiThinkIT/erpnext_taxjar
5313dbdd931745e9655d3f5fd53c830abb0d7ee7
[ "MIT" ]
null
null
null
erpnext_taxjar/api.py
DigiThinkIT/erpnext_taxjar
5313dbdd931745e9655d3f5fd53c830abb0d7ee7
[ "MIT" ]
8
2017-07-01T11:13:14.000Z
2020-11-19T13:26:29.000Z
erpnext_taxjar/api.py
DigiThinkIT/erpnext_taxjar
5313dbdd931745e9655d3f5fd53c830abb0d7ee7
[ "MIT" ]
13
2017-06-30T15:47:00.000Z
2022-02-22T16:24:41.000Z
import traceback import pycountry import taxjar import frappe from erpnext import get_default_company from frappe import _ from frappe.contacts.doctype.address.address import get_company_address TAX_ACCOUNT_HEAD = frappe.db.get_single_value("TaxJar Settings", "tax_account_head") SHIP_ACCOUNT_HEAD = frappe.db.get_sin...
26.931915
133
0.746721
0
0
0
0
0
0
0
0
1,690
0.267025
08453ede8c646dbf40688a3665092cf3d4f4e359
3,543
py
Python
tests/lib_test.py
grundrauschen/center-points
5a12f68ac012a0a2bf52d8a8381d0272e309ac18
[ "MIT" ]
null
null
null
tests/lib_test.py
grundrauschen/center-points
5a12f68ac012a0a2bf52d8a8381d0272e309ac18
[ "MIT" ]
2
2015-06-03T10:57:13.000Z
2015-09-15T12:43:22.000Z
tests/lib_test.py
fu-berlin-swp-2014/center-points
0fa523314a3168d4d229b6f61d0d05d314a8b35a
[ "MIT" ]
null
null
null
import unittest import numpy as np import numpy.testing as nptest import centerpoints.lib as lib class TestLibrary(unittest.TestCase): def setUp(self): # { dimension -> points } self.d_plus_2_points = {} for d in [3, 5, 10, 100]: # we need d+2 points, first take all bases ...
36.90625
76
0.519616
3,441
0.971211
0
0
0
0
0
0
215
0.060683
084547589496d6e3bddafc72879279f994ed30e1
711
py
Python
genome-experimentation/cleaning-genome-data.py
shivamsyal/summer21
68cdcae1524e720066e57baa190f15477b69515a
[ "MIT" ]
null
null
null
genome-experimentation/cleaning-genome-data.py
shivamsyal/summer21
68cdcae1524e720066e57baa190f15477b69515a
[ "MIT" ]
null
null
null
genome-experimentation/cleaning-genome-data.py
shivamsyal/summer21
68cdcae1524e720066e57baa190f15477b69515a
[ "MIT" ]
2
2022-01-10T18:16:18.000Z
2022-03-20T01:17:28.000Z
# test comment import os filename = input("File to format: ") os.system("gunzip "+filename) n = int(input("What number genome is this? ")) os.system("mv "+filename[:-3]+" genome"+str(n)+".fna") original = "genome"+str(n)+".fna" copy = "genome"+str(n)+"_copy.fna" filtered = "genome"+str(n)+"_filtered.fna" rem = ['>'] wi...
30.913043
54
0.624473
0
0
0
0
0
0
0
0
165
0.232068
084592c05031adcf4e22889393a72a2880d58eb8
758
py
Python
villas/controller/components/managers/generic.py
VILLASframework/VILLAScontroller
e672439797f209afdd5bc62078f7d49c60269aa4
[ "Apache-2.0" ]
null
null
null
villas/controller/components/managers/generic.py
VILLASframework/VILLAScontroller
e672439797f209afdd5bc62078f7d49c60269aa4
[ "Apache-2.0" ]
null
null
null
villas/controller/components/managers/generic.py
VILLASframework/VILLAScontroller
e672439797f209afdd5bc62078f7d49c60269aa4
[ "Apache-2.0" ]
null
null
null
from villas.controller.components.manager import Manager from villas.controller.component import Component class GenericManager(Manager): def create(self, payload): component = Component.from_dict(payload.get('parameters')) try: self.add_component(component) except KeyError: ...
28.074074
76
0.62533
648
0.854881
0
0
0
0
0
0
113
0.149077
0845d2588d5c55abf24f9ab405009bd284d758d8
833
py
Python
tests/test_composition.py
gregorynicholas/proto-pigeon
65a5d961e7a8506f3a968b21aaf68f625fd13190
[ "Apache-2.0" ]
null
null
null
tests/test_composition.py
gregorynicholas/proto-pigeon
65a5d961e7a8506f3a968b21aaf68f625fd13190
[ "Apache-2.0" ]
null
null
null
tests/test_composition.py
gregorynicholas/proto-pigeon
65a5d961e7a8506f3a968b21aaf68f625fd13190
[ "Apache-2.0" ]
null
null
null
from protorpc.messages import Message, IntegerField, StringField import protopigeon class MessageOne(Message): one = IntegerField(1) two = IntegerField(2) class MessageTwo(Message): three = StringField(1) four = StringField(2) def test(): ComposedMessage = protopigeon.compose(MessageOne, Messa...
23.138889
65
0.686675
157
0.188475
0
0
0
0
0
0
77
0.092437
0846011f39bb03a7af3bf569426365af42543fe1
1,503
py
Python
udacity-program_self_driving_car_engineer_v2.0/module02-computer vision/exercise02-data acquisiton and visualization/visualization.py
linksdl/futuretec-project-self_driving_cars_projects
38e8f14543132ec86a8bada8d708eefaef23fee8
[ "MIT" ]
null
null
null
udacity-program_self_driving_car_engineer_v2.0/module02-computer vision/exercise02-data acquisiton and visualization/visualization.py
linksdl/futuretec-project-self_driving_cars_projects
38e8f14543132ec86a8bada8d708eefaef23fee8
[ "MIT" ]
null
null
null
udacity-program_self_driving_car_engineer_v2.0/module02-computer vision/exercise02-data acquisiton and visualization/visualization.py
linksdl/futuretec-project-self_driving_cars_projects
38e8f14543132ec86a8bada8d708eefaef23fee8
[ "MIT" ]
null
null
null
""" # !/usr/bin/env python # -*- coding: utf-8 -*- @Time : 2022/2/23 19:35 @Author : shengdl999links@gmail.com @ProjectName : udacity-program_self_driving_car_engineer_v1.0_source.0 @File : visualization.py """ import glob import os.path import matplotlib.pyplot as plt from matplotlib.patches import ...
25.05
98
0.594145
0
0
0
0
0
0
0
0
514
0.341983
084746dfc5f458e9131b1743d5567db36da8ab9c
898
py
Python
setup.py
georgenicolaou/python-fakeports
24eecf879e0d2d2a100be06952fb3677019457e2
[ "MIT" ]
3
2020-02-03T08:25:10.000Z
2021-09-29T15:59:01.000Z
setup.py
georgenicolaou/python-fakeports
24eecf879e0d2d2a100be06952fb3677019457e2
[ "MIT" ]
2
2021-01-18T19:27:44.000Z
2021-01-18T19:27:44.000Z
setup.py
georgenicolaou/python-fakeports
24eecf879e0d2d2a100be06952fb3677019457e2
[ "MIT" ]
null
null
null
from setuptools import setup long_description = 'TODO' # with open("README.md", "r") as rfd: # long_description = rfd.read() REQUIREMENTS = [r.strip() for r in open("requirements.txt").readlines()] setup( name='python-fakeports', version="0.1", packages=['python_fakeports'], url='', license='G...
28.967742
72
0.644766
0
0
0
0
0
0
0
0
456
0.507795
08483d8175b8bd82d7534d3c981f5d1467884db2
195
py
Python
darzalib/Incoming/__init__.py
swrlly/Midnight
b4375002761a13a09a6c3085e9b34384b28227ba
[ "MIT" ]
2
2021-11-18T13:38:52.000Z
2021-11-19T04:15:24.000Z
darzalib/Incoming/__init__.py
swrlly/Midnight
b4375002761a13a09a6c3085e9b34384b28227ba
[ "MIT" ]
null
null
null
darzalib/Incoming/__init__.py
swrlly/Midnight
b4375002761a13a09a6c3085e9b34384b28227ba
[ "MIT" ]
null
null
null
from .BiomeDisplay import BiomeDisplay from .Chats import Chats from .PlayEffect import PlayEffect from .Reconnect import Reconnect from .SwapAck import SwapAck from .UseItemAck import UseItemAck
32.5
38
0.851282
0
0
0
0
0
0
0
0
0
0
08486cbf36ba6ba189128910a8b98a815a664466
938
py
Python
python/17_letter_combinations_of_a_phone_number.py
dchapp/blind75
aaa409cf2db4ef6d0f86177f4217eceeb391caa8
[ "MIT" ]
null
null
null
python/17_letter_combinations_of_a_phone_number.py
dchapp/blind75
aaa409cf2db4ef6d0f86177f4217eceeb391caa8
[ "MIT" ]
null
null
null
python/17_letter_combinations_of_a_phone_number.py
dchapp/blind75
aaa409cf2db4ef6d0f86177f4217eceeb391caa8
[ "MIT" ]
null
null
null
num_to_letters = { '2': ['a', 'b', 'c'], '3': ['d', 'e', 'f'], '4': ['g', 'h', 'i'], '5': ['j', 'k', 'l'], '6': ['m', 'n', 'o'], '7': ['p', 'q', 'r', 's'], '8': ['t', 'u', 'v'], '9': ['w', 'x', 'y', 'z'], } class Solution: def letterCombinations(self,...
28.424242
65
0.410448
657
0.700426
0
0
0
0
0
0
104
0.110874
084d1fd01b6f648a85848dd0310b96b0d8966a0e
651
py
Python
yotta/options/registry.py
microbit-foundation/yotta
82d854b43d391abb5a006b05e7beffe7d0d6ffbf
[ "Apache-2.0" ]
176
2015-01-02T07:31:59.000Z
2022-03-21T12:40:02.000Z
yotta/options/registry.py
microbit-foundation/yotta
82d854b43d391abb5a006b05e7beffe7d0d6ffbf
[ "Apache-2.0" ]
549
2015-01-05T16:19:54.000Z
2021-01-15T13:46:42.000Z
yotta/options/registry.py
microbit-foundation/yotta
82d854b43d391abb5a006b05e7beffe7d0d6ffbf
[ "Apache-2.0" ]
84
2015-01-10T21:01:00.000Z
2022-03-24T16:04:42.000Z
# Copyright 2014-2015 ARM Limited # # Licensed under the Apache License, Version 2.0 # See LICENSE file for details. # standard library options from argparse import Action, SUPPRESS class RegistryAction(Action): def __init__(self, *args, **kwargs): kwargs['nargs'] = 1 self.dest = kwargs['dest'] ...
27.125
70
0.680492
316
0.485407
0
0
0
0
0
0
174
0.267281
084edafd90972abf12ce9cf828ac494b0afdd467
4,453
py
Python
src/pybraingym/environment.py
anetczuk/pybraingym
4f930021d7802e88c75a1a0aed135dd4de66cc1b
[ "MIT" ]
null
null
null
src/pybraingym/environment.py
anetczuk/pybraingym
4f930021d7802e88c75a1a0aed135dd4de66cc1b
[ "MIT" ]
null
null
null
src/pybraingym/environment.py
anetczuk/pybraingym
4f930021d7802e88c75a1a0aed135dd4de66cc1b
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2019 Arkadiusz Netczuk <dev.arnet@gmail.com> # # 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 limitation the rights # t...
32.50365
104
0.651246
3,207
0.720189
0
0
120
0.026948
0
0
1,640
0.368291
084eddbd29309d0a8c29e8b0baeae41ed4f83c9f
7,420
py
Python
logicscen.py
exposit/pythia-oracle
60e4e806c9ed1627f2649822ab1901d28933daac
[ "MIT" ]
32
2016-08-27T01:31:42.000Z
2022-03-21T08:59:28.000Z
logicscen.py
exposit/pythia-oracle
60e4e806c9ed1627f2649822ab1901d28933daac
[ "MIT" ]
3
2016-08-27T00:51:47.000Z
2019-08-26T13:23:04.000Z
logicscen.py
exposit/pythia-oracle
60e4e806c9ed1627f2649822ab1901d28933daac
[ "MIT" ]
10
2016-08-28T14:14:41.000Z
2021-03-18T03:24:22.000Z
#!/usr/bin/env python #-*- coding: utf-8 -*- #--------------------------------------------------------------------------------------------------- # --> Logic to handle scenarios #--------------------------------------------------------------------------------------------------- import imports from imports import * imp...
27.279412
119
0.508491
0
0
0
0
0
0
0
0
1,118
0.150674
0850f9781ec228546bf41eccc932a22fd036e4a8
7,980
py
Python
datyy/views/projects.py
VladimirSiv/datyy
4f3b54557850212ca3ce4c0d16cd56eb9989d7c4
[ "MIT" ]
null
null
null
datyy/views/projects.py
VladimirSiv/datyy
4f3b54557850212ca3ce4c0d16cd56eb9989d7c4
[ "MIT" ]
null
null
null
datyy/views/projects.py
VladimirSiv/datyy
4f3b54557850212ca3ce4c0d16cd56eb9989d7c4
[ "MIT" ]
null
null
null
import dash import dash_html_components as html import dash_bootstrap_components as dbc import numpy as np from server import app from dash.dependencies import Input, Output, State from dash.exceptions import PreventUpdate from components.cards import simple_info_card from components.dropdowns import dropdown_single fr...
28.098592
90
0.52193
0
0
0
0
4,253
0.532957
0
0
2,832
0.354887
08540bf2ac8cadc1cf3900bd14a8f79f2ba8831e
146
py
Python
week-02/appendA.py
norbertbodo91/pythonExercises
9cd773c5d6ce3280d19a84ef12b8fd478ff09613
[ "MIT" ]
null
null
null
week-02/appendA.py
norbertbodo91/pythonExercises
9cd773c5d6ce3280d19a84ef12b8fd478ff09613
[ "MIT" ]
null
null
null
week-02/appendA.py
norbertbodo91/pythonExercises
9cd773c5d6ce3280d19a84ef12b8fd478ff09613
[ "MIT" ]
null
null
null
def appendA(toAppend): newWord = toAppend + 'a' return newWord print(appendA(toAppend = raw_input("Enter a word to add an A letter: ")))
24.333333
73
0.684932
0
0
0
0
0
0
0
0
38
0.260274
085550c02672da4291f033dfdf10337c089c2aa8
16,119
py
Python
multiacctcf.py
DonMills/multiacct-CF-orchestrate
4acce3c984c1801ff66cf9d210e3a0d1a6f9246b
[ "MIT" ]
11
2017-07-19T07:05:44.000Z
2022-02-07T19:35:51.000Z
multiacctcf.py
DonMills/multiacct-CF-orchestrate
4acce3c984c1801ff66cf9d210e3a0d1a6f9246b
[ "MIT" ]
null
null
null
multiacctcf.py
DonMills/multiacct-CF-orchestrate
4acce3c984c1801ff66cf9d210e3a0d1a6f9246b
[ "MIT" ]
2
2017-07-19T15:01:52.000Z
2022-02-07T19:35:53.000Z
#!/usr/bin/python from __future__ import print_function import threading import boto3 import botocore import argparse from time import ctime ############### # Some Global Vars ############## lock = threading.Lock() awsaccts = [{'acct': 'acct1ID', 'name': 'master', 'cffile': 'location of clou...
39.70197
179
0.470749
0
0
0
0
0
0
0
0
5,673
0.351945
085769a397608c592ac48390d3b4d6b67aae08eb
882
py
Python
NIM/tests/woa_test.py
buctlab/source-seeking-multi-robot-team-simulator
a68c214b9bd19006a94c0adc832681bbaf0d6dc8
[ "Apache-2.0" ]
null
null
null
NIM/tests/woa_test.py
buctlab/source-seeking-multi-robot-team-simulator
a68c214b9bd19006a94c0adc832681bbaf0d6dc8
[ "Apache-2.0" ]
null
null
null
NIM/tests/woa_test.py
buctlab/source-seeking-multi-robot-team-simulator
a68c214b9bd19006a94c0adc832681bbaf0d6dc8
[ "Apache-2.0" ]
null
null
null
import os from Config import Config from NIM.algorithms import WhaleOptimizationAlgorithm from NIM.algorithms.algorithm import logger if __name__ == '__main__': with open(Config.default_saved_scene_path, 'r') as f: data = f.read() m2d = eval(data) seed = 5 woa = WhaleOptimizationAlgorithm(m2...
36.75
119
0.675737
0
0
0
0
0
0
0
0
91
0.103175
085893c679735b22d323d01a1e71583ba759cc3a
6,242
py
Python
src/COVIDZejunDatagraphs.py
luisflores0330/ista131final
168ac6afe666e945ae717387b50420804b33c4f3
[ "Apache-2.0" ]
null
null
null
src/COVIDZejunDatagraphs.py
luisflores0330/ista131final
168ac6afe666e945ae717387b50420804b33c4f3
[ "Apache-2.0" ]
null
null
null
src/COVIDZejunDatagraphs.py
luisflores0330/ista131final
168ac6afe666e945ae717387b50420804b33c4f3
[ "Apache-2.0" ]
4
2021-12-07T21:44:31.000Z
2021-12-07T23:20:04.000Z
''' File: COVIDZejunDatagraphs.py Author: Zejun Li Purpose: This file contains 12 different functions to make 5 different graphs about the COVID 19 in Idaho ''' import pandas as pd, numpy as np, matplotlib.pyplot as plt import matplotlib.dates as mdates import datetime import datetime as dt def get_df(): ...
33.026455
187
0.603172
0
0
0
0
0
0
0
0
2,634
0.42198
0858b5bc59305248e9f97a28c217e52f4157d9b4
1,118
py
Python
tests/test_pipeline_disk_deduplication.py
kingking888/skyscraper
d710202f9581c3791d2cf7ee3ae33e950e46c0b7
[ "MIT" ]
1
2021-03-21T07:25:43.000Z
2021-03-21T07:25:43.000Z
tests/test_pipeline_disk_deduplication.py
kingking888/skyscraper
d710202f9581c3791d2cf7ee3ae33e950e46c0b7
[ "MIT" ]
null
null
null
tests/test_pipeline_disk_deduplication.py
kingking888/skyscraper
d710202f9581c3791d2cf7ee3ae33e950e46c0b7
[ "MIT" ]
1
2021-04-24T11:38:18.000Z
2021-04-24T11:38:18.000Z
import pytest import json import datetime from scrapy.spiders import Spider import scrapy.exceptions from skyscraper.items import BasicItem from scrapy.exceptions import DropItem from skyscraper.pipelines.filesystem import DiskDeduplicationPipeline class MockDeduplication(): def __init__(self): self.s =...
24.304348
74
0.686047
190
0.169946
0
0
0
0
0
0
239
0.213775
08597f4873dfad388e0eb75f921c519b7373d12a
180
py
Python
windscribe/__init__.py
Dayzpd/Python-Windscribe
eaaca7b39286434ec8588c967076f0b5b9961d91
[ "MIT" ]
9
2020-09-17T19:42:18.000Z
2022-01-04T07:14:37.000Z
windscribe/__init__.py
Dayzpd/Python-Windscribe
eaaca7b39286434ec8588c967076f0b5b9961d91
[ "MIT" ]
4
2020-10-28T16:22:54.000Z
2022-01-04T07:13:18.000Z
windscribe/__init__.py
Dayzpd/Python-Windscribe
eaaca7b39286434ec8588c967076f0b5b9961d91
[ "MIT" ]
4
2020-12-11T11:13:27.000Z
2022-01-16T02:40:55.000Z
__all__ = [ 'account', 'connect', 'locations', 'login', 'logout', ] from .windscribe import ( account, connect, locations, login, logout, )
12
25
0.527778
0
0
0
0
0
0
0
0
44
0.244444
085a588c3443a2133c8229f5612a92a5ee522cad
335
py
Python
src/videos/migrations/0009_rename_updated_timestamp_video_updated.py
imsubhamsingh/vibeon
5ea67bb8dae0a0c28d36f81374eb4f046d842cf5
[ "Apache-2.0" ]
null
null
null
src/videos/migrations/0009_rename_updated_timestamp_video_updated.py
imsubhamsingh/vibeon
5ea67bb8dae0a0c28d36f81374eb4f046d842cf5
[ "Apache-2.0" ]
2
2021-07-19T18:41:46.000Z
2022-02-10T11:43:07.000Z
src/videos/migrations/0009_rename_updated_timestamp_video_updated.py
imsubhamsingh/vibeon
5ea67bb8dae0a0c28d36f81374eb4f046d842cf5
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2 on 2021-04-20 19:34 from django.db import migrations class Migration(migrations.Migration): dependencies = [("videos", "0008_video_updated_timestamp")] operations = [ migrations.RenameField( model_name="video", old_name="updated_timestamp", new_name="updated" ...
22.333333
80
0.674627
252
0.752239
0
0
0
0
0
0
118
0.352239
085b597e5e9aaf7c138a4db4c8f8739331aa2a66
2,342
py
Python
SVM/SVM_Regression/Sklearn_SVM_Regression.py
Jojoxiao/Machine-Learning-for-Beginner-by-Python3
71b91c9cba5803bd78d4d31be6dabb1d3989e968
[ "MIT" ]
397
2018-05-28T02:07:32.000Z
2022-03-30T09:53:37.000Z
SVM/SVM_Regression/Sklearn_SVM_Regression.py
976634681/Machine-Learning-for-Beginner-by-Python3
d9effcbb1b390dc608a0f4c0a28f0ad03892047a
[ "MIT" ]
4
2019-01-14T16:41:02.000Z
2021-03-11T13:23:06.000Z
SVM/SVM_Regression/Sklearn_SVM_Regression.py
976634681/Machine-Learning-for-Beginner-by-Python3
d9effcbb1b390dc608a0f4c0a28f0ad03892047a
[ "MIT" ]
235
2018-06-28T05:31:40.000Z
2022-03-11T03:20:07.000Z
# -*- coding:utf-8 -*- # &Author AnFany # 利用Sklearn包实现支持核函数回归 """ 第一部分:引入库 """ # 引入部分的北京PM2.5数据 import SVM_Regression_Data as rdata # 引入库包 from sklearn import svm import numpy as np import matplotlib.pyplot as plt from pylab import mpl mpl.rcParams['font.sans-serif'] = ['FangSong'] # 中文字体名称 mpl...
22.519231
101
0.557643
0
0
0
0
0
0
0
0
916
0.333576
085b8a0758f970cf513eb9555d20e921de2dbc2f
1,655
py
Python
tests/test_history.py
dfroger/conda
c0f99ff46b217d081501e66f4dcd7bcdb5d9c6aa
[ "BSD-3-Clause" ]
null
null
null
tests/test_history.py
dfroger/conda
c0f99ff46b217d081501e66f4dcd7bcdb5d9c6aa
[ "BSD-3-Clause" ]
null
null
null
tests/test_history.py
dfroger/conda
c0f99ff46b217d081501e66f4dcd7bcdb5d9c6aa
[ "BSD-3-Clause" ]
null
null
null
from os.path import dirname import unittest from .decorators import skip_if_no_mock from .helpers import mock from conda import history class HistoryTestCase(unittest.TestCase): def test_works_as_context_manager(self): h = history.History("/path/to/prefix") self.assertTrue(getattr(h, '__enter__'...
31.826923
73
0.590937
1,511
0.912991
0
0
547
0.330514
0
0
254
0.153474
085dd2a204aa1776b398919049eef21372b1d7e4
107
py
Python
src/zojax/catalog/tests/__init__.py
Zojax/zojax.catalog
1be9ef2cd4516d6c1dcfe7da52c4d438852e7ea6
[ "ZPL-2.1" ]
null
null
null
src/zojax/catalog/tests/__init__.py
Zojax/zojax.catalog
1be9ef2cd4516d6c1dcfe7da52c4d438852e7ea6
[ "ZPL-2.1" ]
null
null
null
src/zojax/catalog/tests/__init__.py
Zojax/zojax.catalog
1be9ef2cd4516d6c1dcfe7da52c4d438852e7ea6
[ "ZPL-2.1" ]
null
null
null
# This file is necessary to make this directory a package. from zojax.catalog.catalog import queryCatalog
26.75
58
0.813084
0
0
0
0
0
0
0
0
58
0.542056
085e0152d8a979274c20816965dae9f9c36f8c65
6,066
py
Python
src/bpp/views/raporty/ranking_autorow.py
iplweb/django-bpp
85f183a99d8d5027ae4772efac1e4a9f21675849
[ "BSD-3-Clause" ]
1
2017-04-27T19:50:02.000Z
2017-04-27T19:50:02.000Z
src/bpp/views/raporty/ranking_autorow.py
mpasternak/django-bpp
434338821d5ad1aaee598f6327151aba0af66f5e
[ "BSD-3-Clause" ]
41
2019-11-07T00:07:02.000Z
2022-02-27T22:09:39.000Z
src/bpp/views/raporty/ranking_autorow.py
iplweb/bpp
f027415cc3faf1ca79082bf7bacd4be35b1a6fdf
[ "BSD-3-Clause" ]
null
null
null
# -*- encoding: utf-8 -*- import itertools try: from django.core.urlresolvers import reverse except ImportError: from django.urls import reverse from django.db.models.aggregates import Sum from django.template.defaultfilters import safe from django.utils.functional import cached_property from django_tables2 im...
32.612903
88
0.616716
5,476
0.90229
0
0
250
0.041193
0
0
1,024
0.168726
f22aabe1afa4a1593594ef47c8110872cb757c3c
16,701
py
Python
client-lib/pypi/nsrr/nsrr.py
nsrr/nsrr-cloud
a1e33bc3ba3220600e8b1973882d2ed76a7277c6
[ "MIT" ]
null
null
null
client-lib/pypi/nsrr/nsrr.py
nsrr/nsrr-cloud
a1e33bc3ba3220600e8b1973882d2ed76a7277c6
[ "MIT" ]
null
null
null
client-lib/pypi/nsrr/nsrr.py
nsrr/nsrr-cloud
a1e33bc3ba3220600e8b1973882d2ed76a7277c6
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import requests from requests.structures import CaseInsensitiveDict import json import getpass from pathlib import Path import hashlib import pandas as pd import gzip from multiprocessing import Process # Global variables #API_SERVER='https://dev-cloud.sleepdata.org/api/v1' API_SERVER='https://clo...
42.496183
163
0.598946
0
0
0
0
0
0
0
0
3,482
0.208491
f22b087ab319568e891a7406ef151ad2f4d6b818
509
py
Python
assignment2.py
talsperre/random-walk
5c810f571c9de28926850e1ad70ff4c29df9c0f4
[ "MIT" ]
null
null
null
assignment2.py
talsperre/random-walk
5c810f571c9de28926850e1ad70ff4c29df9c0f4
[ "MIT" ]
null
null
null
assignment2.py
talsperre/random-walk
5c810f571c9de28926850e1ad70ff4c29df9c0f4
[ "MIT" ]
null
null
null
import numpy as np N = 100 R = 10000 R_range = range(R) size = (N, 3) C = np.zeros((N, 3)) k = 1 print ("100") print ("STEP: ", k) for i in range(N): print ("He ", C[i, 0], " ", C[i, 1], " ", C[i, 2]) k += 1 for j in range(R): A = np.random.uniform(-1, 1, size) B = np.sum(np.multiply(A, A), axis=1) B = np.sqrt(B)...
18.851852
53
0.489194
0
0
0
0
0
0
0
0
48
0.094303
f22fac0a3ced91e4e4e5768a9d363783d0f24bd3
1,462
py
Python
parallel/images_common.py
minrk/ipython-cse17
16a9059c7054a8bd4977a3cb8b09c100ea779069
[ "BSD-3-Clause" ]
3
2017-03-02T07:11:37.000Z
2017-03-03T06:13:32.000Z
parallel/images_common.py
minrk/ipython-cse17
16a9059c7054a8bd4977a3cb8b09c100ea779069
[ "BSD-3-Clause" ]
null
null
null
parallel/images_common.py
minrk/ipython-cse17
16a9059c7054a8bd4977a3cb8b09c100ea779069
[ "BSD-3-Clause" ]
null
null
null
import os import matplotlib.pyplot as plt from skimage.io import imread def plot_corners(img, corners, show=True): """Display the image and plot all contours found""" plt.imshow(img, cmap='gray') plt.plot(corners[:,1], corners[:,0], 'r+', markeredgewidth=1.5, markersize=8) # Plot corners plt.axis('ima...
29.24
96
0.666211
0
0
0
0
0
0
0
0
365
0.249658
f23153ff9da39e77238d222d2874c0c47b3effe7
1,765
py
Python
tests/test_copies.py
mschmidtkorth/shallow-backup
6629fed7d5a3a13eb068c7ef0168cfa8ffbd3bbf
[ "MIT" ]
1
2021-07-25T19:26:47.000Z
2021-07-25T19:26:47.000Z
tests/test_copies.py
mschmidtkorth/shallow-backup
6629fed7d5a3a13eb068c7ef0168cfa8ffbd3bbf
[ "MIT" ]
null
null
null
tests/test_copies.py
mschmidtkorth/shallow-backup
6629fed7d5a3a13eb068c7ef0168cfa8ffbd3bbf
[ "MIT" ]
null
null
null
import os import sys import pytest import shutil from .test_utils import setup_env_vars, unset_env_vars, BACKUP_DEST_DIR, FAKE_HOME_DIR, DIRS sys.path.insert(0, "../shallow_backup") from shallow_backup.utils import copy_dir_if_valid TEST_TEXT_FILE = os.path.join(FAKE_HOME_DIR, 'test-file.txt') class TestCopyMethods:...
32.090909
94
0.65779
1,466
0.830595
0
0
814
0.46119
0
0
371
0.210198
f2320f768e412bebfaa5c2e31eeb4a3c480eacaf
1,395
py
Python
loan/killeragent.py
Casper-Smet/LOAN
3aabf80cf4314bcba33779329fc6e4971b85e742
[ "MIT" ]
null
null
null
loan/killeragent.py
Casper-Smet/LOAN
3aabf80cf4314bcba33779329fc6e4971b85e742
[ "MIT" ]
null
null
null
loan/killeragent.py
Casper-Smet/LOAN
3aabf80cf4314bcba33779329fc6e4971b85e742
[ "MIT" ]
null
null
null
from collections import namedtuple import networkx as nx from mesa import Agent, Model class KillerAgent(Agent): def __init__(self, unique_id: int, model: Model, creator, pos: int, target_location: int, target_disease: str) -> None: super().__init__(unique_id, model) self.creator = creator ...
34.875
128
0.658065
1,308
0.935622
0
0
0
0
0
0
86
0.061516
f23235dddab2a9fffc993f7fe1be533663c51d2b
290
py
Python
src/calc.py
ceIery/epic7-speed-calculator
2f91e57117e2b6873772e6a703e47241570ab75f
[ "MIT" ]
null
null
null
src/calc.py
ceIery/epic7-speed-calculator
2f91e57117e2b6873772e6a703e47241570ab75f
[ "MIT" ]
null
null
null
src/calc.py
ceIery/epic7-speed-calculator
2f91e57117e2b6873772e6a703e47241570ab75f
[ "MIT" ]
null
null
null
""" Given a base speed value and a list of percentages, calculates the speed value for each percentage """ def get_speeds(percents, base): speeds = [] for percent in percents: speeds.append(round(((int)(base) * ((int)(percent) / 100)))) print(speeds) return speeds
24.166667
78
0.662069
0
0
0
0
0
0
0
0
106
0.365517
f2330e7134a6c2ae1cacee5b851dbdfec9f5f1d4
11,762
py
Python
src/magi/actions/base.py
personalrobotics/magipy
6f86d6938168f580f667cfc093cf7e9f218e2853
[ "BSD-3-Clause" ]
null
null
null
src/magi/actions/base.py
personalrobotics/magipy
6f86d6938168f580f667cfc093cf7e9f218e2853
[ "BSD-3-Clause" ]
1
2018-01-06T00:24:06.000Z
2018-01-06T00:24:06.000Z
src/magi/actions/base.py
personalrobotics/magipy
6f86d6938168f580f667cfc093cf7e9f218e2853
[ "BSD-3-Clause" ]
null
null
null
"""Base classes, context managers, and exceptions for MAGI actions.""" from abc import ABCMeta, abstractmethod import logging from openravepy import KinBody, Robot LOGGER = logging.getLogger(__name__) LOGGER.setLevel(logging.INFO) class SaveAndJump(object): """ Save the state of the environment and jump th...
32.672222
85
0.655841
9,845
0.837018
0
0
3,017
0.256504
0
0
6,659
0.566145
f233b62fa43bf27f7df361b2d0940e083df21551
6,471
py
Python
src/core/python/core/io/od.py
railtoolkit/OpenLinTim
27eba8b6038946ce162e9f7bbc0bd23045029d51
[ "MIT" ]
null
null
null
src/core/python/core/io/od.py
railtoolkit/OpenLinTim
27eba8b6038946ce162e9f7bbc0bd23045029d51
[ "MIT" ]
null
null
null
src/core/python/core/io/od.py
railtoolkit/OpenLinTim
27eba8b6038946ce162e9f7bbc0bd23045029d51
[ "MIT" ]
null
null
null
from typing import List from core.exceptions.input_exceptions import (InputFormatException, InputTypeInconsistencyException) from core.model.graph import Graph from core.model.impl.fullOD import FullOD from core.model.impl.mapOD import MapOD from core.model.infrastructure ...
44.020408
126
0.626642
5,947
0.919023
0
0
3,936
0.608252
0
0
3,099
0.478906
f23575bb8b4e289c914a5be32dd736b94767c391
4,395
py
Python
kriging/_kriging.py
ERSSLE/ordinary_kriging
f983081e4f12b0bae03bd042a6f451c65dcb2759
[ "MIT" ]
3
2020-09-08T16:55:44.000Z
2021-12-04T15:35:07.000Z
kriging/_kriging.py
ERSSLE/ordinary_kriging
f983081e4f12b0bae03bd042a6f451c65dcb2759
[ "MIT" ]
null
null
null
kriging/_kriging.py
ERSSLE/ordinary_kriging
f983081e4f12b0bae03bd042a6f451c65dcb2759
[ "MIT" ]
2
2021-08-25T09:35:50.000Z
2021-12-07T08:19:11.000Z
# encoding: utf-8 """ Ordinary Kriging interpolation is a linear estimation of regionalized variables. It assumes that the data change into a normal distribution, and considers that the expected value of regionalized variable Z is unknown. The interpolation process is similar to the weighted sliding average, an...
35.731707
100
0.597952
1,504
0.342207
0
0
0
0
0
0
1,467
0.333788
f236ea30d7814e6e5f7e36351bc7667f7fad4f04
125
py
Python
steam/utils/__init__.py
ivicel/steamkit-python
0a3f250e432cf890965db5e7245841aa512bca22
[ "Apache-2.0" ]
5
2018-11-16T08:59:41.000Z
2021-04-03T05:32:18.000Z
steam/utils/__init__.py
ivicel/steamkit-python
0a3f250e432cf890965db5e7245841aa512bca22
[ "Apache-2.0" ]
null
null
null
steam/utils/__init__.py
ivicel/steamkit-python
0a3f250e432cf890965db5e7245841aa512bca22
[ "Apache-2.0" ]
null
null
null
from .util import clear_proto_mask, is_proto_msg, add_proto_mask __all__ = [clear_proto_mask, is_proto_msg, add_proto_mask]
31.25
64
0.84
0
0
0
0
0
0
0
0
0
0
f2377bda1f457053d6b4f86097a8d1ba0041422b
260
py
Python
src/arm/src/iksolverservicetester.py
Busboombot/ros_idx6dof
63b3a49393ab2c619b6b56c634cd440ab9b464ef
[ "MIT" ]
1
2020-03-15T15:30:43.000Z
2020-03-15T15:30:43.000Z
src/arm/src/iksolverservicetester.py
Busboombot/ros_idx6dof
63b3a49393ab2c619b6b56c634cd440ab9b464ef
[ "MIT" ]
null
null
null
src/arm/src/iksolverservicetester.py
Busboombot/ros_idx6dof
63b3a49393ab2c619b6b56c634cd440ab9b464ef
[ "MIT" ]
null
null
null
#!/usr/bin/python import rospy from arm.srv import IKService, IKServiceResponse rospy.init_node("asdf", anonymous=True) rospy.wait_for_service('IKService') srv = rospy.ServiceProxy('IKService', IKService) resp = srv([5, 16, 8, 0, 0, 0], None) print resp
17.333333
48
0.734615
0
0
0
0
0
0
0
0
45
0.173077
f23806bdb5c4b2e6ddeae98b2f41f0141fe5c5b9
1,410
py
Python
crypto-scrapers/scrapers/spiders/coin_market_cap.py
chnsh/crypto-index-fund
6c4122b868372ba99aba4f703e85d8ee12af07de
[ "MIT" ]
14
2018-05-27T19:34:59.000Z
2022-02-09T12:02:38.000Z
crypto-scrapers/scrapers/spiders/coin_market_cap.py
chnsh/crypto-index-fund
6c4122b868372ba99aba4f703e85d8ee12af07de
[ "MIT" ]
4
2018-05-28T02:44:07.000Z
2022-03-02T14:55:20.000Z
crypto-scrapers/scrapers/spiders/coin_market_cap.py
chnsh/crypto-index-fund
6c4122b868372ba99aba4f703e85d8ee12af07de
[ "MIT" ]
1
2022-03-07T05:26:47.000Z
2022-03-07T05:26:47.000Z
from datetime import datetime from locale import * import scrapy from injector import Injector from scrapers.items import CoinMarketCapItem from scrapers.utils import UrlListGenerator setlocale(LC_NUMERIC, '') class CoinMarketCapSpider(scrapy.Spider): name = "cmc" custom_settings = { 'ITEM_PIPELINE...
33.571429
76
0.565248
1,194
0.846809
1,005
0.712766
0
0
0
0
147
0.104255
f23af2303a08de830f84db88bf6e00cef4e25589
4,361
py
Python
crawler/cli.py
NicolasLM/crawler
15ed6441fef3b68bfadc970f597271191fe66cf8
[ "MIT" ]
null
null
null
crawler/cli.py
NicolasLM/crawler
15ed6441fef3b68bfadc970f597271191fe66cf8
[ "MIT" ]
null
null
null
crawler/cli.py
NicolasLM/crawler
15ed6441fef3b68bfadc970f597271191fe66cf8
[ "MIT" ]
null
null
null
from collections import OrderedDict from urllib.parse import urlparse import click import rethinkdb as r import redis import crawler.conf as conf # cli does not need to be thread-safe conn = r.connect(host=conf.RethinkDBConf.HOST, db=conf.RethinkDBConf.DB) domains = r.table('domains') @click.group...
33.806202
79
0.64022
0
0
0
0
3,670
0.84155
0
0
1,211
0.277689
f23b010b735f63cc59ac899de4d7a1e041082294
9,667
py
Python
run.py
keyunluo/Pytorch-DDP
ff91affdd2c4cebe1719e9a46f118405c308fd1f
[ "Apache-2.0" ]
null
null
null
run.py
keyunluo/Pytorch-DDP
ff91affdd2c4cebe1719e9a46f118405c308fd1f
[ "Apache-2.0" ]
null
null
null
run.py
keyunluo/Pytorch-DDP
ff91affdd2c4cebe1719e9a46f118405c308fd1f
[ "Apache-2.0" ]
null
null
null
# -8*- coding: utf-8 -*- import torch import torch.nn as nn import torch.optim as optim import torch.multiprocessing as mp import torch.backends.cudnn as cudnn from torch.utils.data import DataLoader, Dataset from torch.nn.parallel import DistributedDataParallel from torch.utils.data.distributed import DistributedSamp...
39.618852
150
0.602359
4,058
0.419779
0
0
0
0
0
0
493
0.050998
f23c95d3f1d786e4a9f7ff9ea7ec7de8d8f85605
373
py
Python
newsletter/urls.py
vallka/djellifique
fb84fba6be413f9d38276d89ae84aeaff761218f
[ "MIT" ]
null
null
null
newsletter/urls.py
vallka/djellifique
fb84fba6be413f9d38276d89ae84aeaff761218f
[ "MIT" ]
null
null
null
newsletter/urls.py
vallka/djellifique
fb84fba6be413f9d38276d89ae84aeaff761218f
[ "MIT" ]
null
null
null
from django.urls import path from .views import * app_name = 'newsletter' urlpatterns = [ path('pixel/', my_image, name='pixel'), path('click/<str:uuid>/', click_redirect, name='click'), path('notification/', notification, name='notification'), path('sendtest/<str:slug>', sendtest, name='sendtest'), ...
26.642857
61
0.659517
0
0
0
0
0
0
0
0
138
0.369973
f23e9e3046350977154c8ce79c350de302fd2dce
197
py
Python
04_While/Step03/gamjapark.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
null
null
null
04_While/Step03/gamjapark.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
3
2020-11-04T05:38:53.000Z
2021-03-02T02:15:19.000Z
04_While/Step03/gamjapark.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
null
null
null
n = int(input()) temp_n = n k=0 while True: a = int(temp_n / 10) b = temp_n % 10 c = (a + b) % 10 new = b*10 + c k += 1 if new == n: break temp_n = new print(k)
14.071429
24
0.446701
0
0
0
0
0
0
0
0
0
0
f23ec17cf55792ab6ef9150b36b5c3e6f5471fbb
6,491
py
Python
vesc_driver/src/mathdir/cubic_spline_planner.py
Taek-16/vesc_study
c4f8e56a2530b17622ca73e9eba57830a1b51ad9
[ "Apache-2.0" ]
1
2021-02-13T10:48:13.000Z
2021-02-13T10:48:13.000Z
vesc_driver/src/mathdir/cubic_spline_planner.py
Taek-16/vesc_study
c4f8e56a2530b17622ca73e9eba57830a1b51ad9
[ "Apache-2.0" ]
null
null
null
vesc_driver/src/mathdir/cubic_spline_planner.py
Taek-16/vesc_study
c4f8e56a2530b17622ca73e9eba57830a1b51ad9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ cubic spline planner Author: Atsushi Sakai """ import math import numpy as np import bisect from scipy.spatial import distance class Spline: """ Cubic Spline class """ def __init__(self, x, y): self.b, self.c, self.d, self.w = [], [], [], [] self.x = x ...
24.130112
131
0.475582
4,687
0.722077
0
0
0
0
0
0
1,121
0.172701
f23ec9a0fbd46e6d9b5f8659349c47ab52aec354
333
py
Python
bbtest/steps/appliance_steps.py
jancajthaml-openbank/e2e
a2ef84b6564022e95de76438fc795e2ef927aa2b
[ "Apache-2.0" ]
null
null
null
bbtest/steps/appliance_steps.py
jancajthaml-openbank/e2e
a2ef84b6564022e95de76438fc795e2ef927aa2b
[ "Apache-2.0" ]
30
2018-03-18T05:58:32.000Z
2022-01-19T23:21:31.000Z
bbtest/steps/appliance_steps.py
jancajthaml-openbank/e2e
a2ef84b6564022e95de76438fc795e2ef927aa2b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from behave import * from helpers.eventually import eventually @given('appliance is running') def appliance_running(context): @eventually(5) def wait_for_appliance_up(): assert context.appliance.running(), 'appliance did not start within 5 seconds' wait_for_ap...
23.785714
82
0.744745
0
0
0
0
219
0.657658
0
0
109
0.327327
f23fb929e898694417f38446747b98726264f0e7
1,211
py
Python
irkshop/urls.py
Beomi/irkshop
c109a62216cb6550add64fbf402883debc5011d1
[ "Apache-2.0" ]
19
2016-11-06T10:28:14.000Z
2020-11-01T02:04:51.000Z
irkshop/urls.py
Beomi/irkshop
c109a62216cb6550add64fbf402883debc5011d1
[ "Apache-2.0" ]
17
2016-10-19T11:58:48.000Z
2022-01-13T00:32:34.000Z
irkshop/urls.py
Beomi/irkshop
c109a62216cb6550add64fbf402883debc5011d1
[ "Apache-2.0" ]
4
2016-11-06T10:54:26.000Z
2019-08-31T16:08:56.000Z
from django.conf.urls import url, include from django.contrib import admin from django.contrib.auth.views import login, logout from django.conf import settings from django.views.static import serve from django.views.generic import TemplateView urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^accounts/l...
41.758621
101
0.663088
0
0
0
0
0
0
0
0
371
0.300892
f240eb401196f0b66c32fe422e4a7253f5e5528f
1,469
py
Python
mojave_setup/fonts.py
RuchirChawdhry/macOS-Mojave-Setup
5e61fe8c20abc42e63fcbd1c7e310aab8cc02a1c
[ "MIT" ]
null
null
null
mojave_setup/fonts.py
RuchirChawdhry/macOS-Mojave-Setup
5e61fe8c20abc42e63fcbd1c7e310aab8cc02a1c
[ "MIT" ]
null
null
null
mojave_setup/fonts.py
RuchirChawdhry/macOS-Mojave-Setup
5e61fe8c20abc42e63fcbd1c7e310aab8cc02a1c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import subprocess as sp class Fonts: FONTS = [ "source-code-pro", "source-sans-pro", "source-serif-pro", "roboto", "roboto-mono", "roboto-slab", "open-sans", "open-sans-condensed", "lato", ...
22.953125
80
0.479238
1,394
0.948945
0
0
0
0
0
0
679
0.462219
f2414f0188cf0460b22148b0732eea50d4b58390
5,142
py
Python
plag/urls.py
neetu6860/plagiarism-detection-software
7f05210aafdccf33a2bc732a40348eff43f46fba
[ "MIT" ]
19
2018-09-03T09:10:20.000Z
2021-12-24T13:52:18.000Z
plag/urls.py
neetu6860/plagiarism-detection-software
7f05210aafdccf33a2bc732a40348eff43f46fba
[ "MIT" ]
3
2019-10-31T18:42:38.000Z
2021-06-10T21:37:23.000Z
plag/urls.py
neetu6860/plagiarism-detection-software
7f05210aafdccf33a2bc732a40348eff43f46fba
[ "MIT" ]
16
2018-06-06T15:04:59.000Z
2022-03-29T04:53:07.000Z
from django.conf.urls import patterns, url from django.contrib import admin from django.contrib.auth.decorators import login_required from django.views.generic import TemplateView admin.autodiscover() from plag import views, const urlpatterns = patterns('', url(r'^$', views.IndexView.as_view(...
57.775281
119
0.532283
0
0
0
0
0
0
0
0
1,877
0.365033
f242795159bdd7a9675c51d4615c5d8382e738be
2,419
py
Python
coinut.py
DanHenry4/AutoCoinut
f7c79f19a9193bc7c1193712088ca836b030f523
[ "MIT" ]
4
2016-05-08T02:15:50.000Z
2020-07-01T08:16:45.000Z
coinut.py
DanHenry4/AutoCoinut
f7c79f19a9193bc7c1193712088ca836b030f523
[ "MIT" ]
null
null
null
coinut.py
DanHenry4/AutoCoinut
f7c79f19a9193bc7c1193712088ca836b030f523
[ "MIT" ]
null
null
null
import hmac import hashlib import json import uuid import httplib2 COINUT_URL = 'https://coinut.com/api/' class Coinut(): def __init__(self, user = None, api_key = None): self.user = user self.api_key = api_key self.http = httplib2.Http() def request(self, api, content = {}): ...
27.488636
76
0.574618
2,309
0.954527
0
0
0
0
0
0
351
0.145101
f2430c615c25842a6a15c7289e5e98e1e77f49ce
1,817
py
Python
src/neighborly/core/residence.py
ShiJbey/neighborly
5af1e3211f1ef0e25803790850e7cd3d3a49be69
[ "MIT" ]
null
null
null
src/neighborly/core/residence.py
ShiJbey/neighborly
5af1e3211f1ef0e25803790850e7cd3d3a49be69
[ "MIT" ]
null
null
null
src/neighborly/core/residence.py
ShiJbey/neighborly
5af1e3211f1ef0e25803790850e7cd3d3a49be69
[ "MIT" ]
null
null
null
from typing import Any, Dict from ordered_set import OrderedSet from neighborly.core.ecs import Component from neighborly.core.engine import AbstractFactory, ComponentDefinition class Residence(Component): __slots__ = "owners", "former_owners", "residents", "former_residents", "_vacant" def __init__(self) ...
32.446429
85
0.63071
1,631
0.897633
0
0
0
0
0
0
208
0.114474
f2439cb603c2e5bb9b0700a3b097f6415267d55a
15,518
py
Python
tests/SBHRun_Environment.py
SD2E/synbiohub_adapter
492f9ef1054b17d790654310b895bb7ad155808e
[ "MIT" ]
1
2019-10-08T20:31:16.000Z
2019-10-08T20:31:16.000Z
tests/SBHRun_Environment.py
SD2E/synbiohub_adapter
492f9ef1054b17d790654310b895bb7ad155808e
[ "MIT" ]
84
2018-03-06T16:02:30.000Z
2020-09-01T18:17:54.000Z
tests/SBHRun_Environment.py
SD2E/synbiohub_adapter
492f9ef1054b17d790654310b895bb7ad155808e
[ "MIT" ]
1
2019-02-06T17:17:54.000Z
2019-02-06T17:17:54.000Z
import threading import time import pandas as pd import numpy as np import matplotlib.cm as cm import matplotlib.pyplot as plt import os import fnmatch import random import re import getpass import sys from rdflib import Graph from synbiohub_adapter.SynBioHubUtil import * from sbol import * """ This class will...
33.661605
110
0.660974
3,251
0.209499
0
0
0
0
0
0
4,996
0.321949
f245528c941762eda827c561627c5aa634c97c9f
2,842
py
Python
setup.py
Unidata/drilsdown
55aca7168fb390f31c36729605401564e9b82c56
[ "MIT" ]
3
2018-05-25T00:19:12.000Z
2021-01-08T15:54:36.000Z
setup.py
suvarchal/drilsdown
e82f58396f640fef847353caf1bd4b2bf016c7a6
[ "MIT" ]
11
2017-10-31T20:15:24.000Z
2019-12-16T21:01:55.000Z
setup.py
suvarchal/drilsdown
e82f58396f640fef847353caf1bd4b2bf016c7a6
[ "MIT" ]
10
2018-02-08T22:23:28.000Z
2019-09-29T23:25:19.000Z
import os from six import iteritems from setuptools import setup from setuptools.command.develop import develop from setuptools.command.install import install import subprocess PACKAGE_NAME = 'drilsdown' SOURCES = { 'ipython_IDV': 'projects/ipython_IDV', 'idv_teleport': 'projects/IDV_teleport', 'ramadda_publi...
32.295455
105
0.60943
365
0.128431
0
0
0
0
0
0
1,277
0.449331
f24567e433386b2908e8d4a58f10fb0b2a6b3b98
2,129
py
Python
ejercicios/Ejercicio6.py
Xavitheforce/Ejercicios_Iteracion
e840439e1277b5946592128d5c771d895c2fac2c
[ "Apache-2.0" ]
null
null
null
ejercicios/Ejercicio6.py
Xavitheforce/Ejercicios_Iteracion
e840439e1277b5946592128d5c771d895c2fac2c
[ "Apache-2.0" ]
null
null
null
ejercicios/Ejercicio6.py
Xavitheforce/Ejercicios_Iteracion
e840439e1277b5946592128d5c771d895c2fac2c
[ "Apache-2.0" ]
null
null
null
from datetime import datetime class Banco(): def __init__(self): self.cuentas = { '1':{ 'nombre': 'Marcos Martinez', 'balance': 173735, 'tipo': 1, 'movimientos': [] },'2':{ 'nombre': 'Alejandro Sanchez', 'balance': 1342, 'tipo': 0, 'movi...
39.425926
184
0.622828
2,106
0.985494
0
0
0
0
0
0
730
0.3416
f2470b57f1baf4a7e69d418b396753a2d81c5b04
752
py
Python
authentik/sources/saml/migrations/0011_auto_20210324_0736.py
BeryJu/passbook
350f0d836580f4411524614f361a76c4f27b8a2d
[ "MIT" ]
15
2020-01-05T09:09:57.000Z
2020-11-28T05:27:39.000Z
authentik/sources/saml/migrations/0011_auto_20210324_0736.py
BeryJu/passbook
350f0d836580f4411524614f361a76c4f27b8a2d
[ "MIT" ]
302
2020-01-21T08:03:59.000Z
2020-12-04T05:04:57.000Z
authentik/sources/saml/migrations/0011_auto_20210324_0736.py
BeryJu/passbook
350f0d836580f4411524614f361a76c4f27b8a2d
[ "MIT" ]
3
2020-03-04T08:21:59.000Z
2020-08-01T20:37:18.000Z
# Generated by Django 3.1.7 on 2021-03-24 07:36 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("authentik_flows", "0016_auto_20201202_1307"), ("authentik_sources_saml", "0010_samlsource_pre_authentication_flow"),...
28.923077
78
0.62633
626
0.832447
0
0
0
0
0
0
274
0.364362
f248957a375715c7681a4295ca66a47a10ee7ea3
6,891
py
Python
tempest/tests/common/test_service_clients.py
xavpaice/tempest
958bd694df27511e0346d799876fe49331b8145c
[ "Apache-2.0" ]
null
null
null
tempest/tests/common/test_service_clients.py
xavpaice/tempest
958bd694df27511e0346d799876fe49331b8145c
[ "Apache-2.0" ]
null
null
null
tempest/tests/common/test_service_clients.py
xavpaice/tempest
958bd694df27511e0346d799876fe49331b8145c
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 NEC Corporation. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
47.524138
79
0.753882
3,014
0.437382
0
0
2,969
0.430852
0
0
810
0.117545
f2490fc27568d943c3ececc3e75fce355b5da3ff
3,497
py
Python
advent/days/day17/day.py
RuedigerLudwig/advent2021
ce069d485bb34b4752ec4e89f195f7cc8cf084cc
[ "Unlicense" ]
null
null
null
advent/days/day17/day.py
RuedigerLudwig/advent2021
ce069d485bb34b4752ec4e89f195f7cc8cf084cc
[ "Unlicense" ]
null
null
null
advent/days/day17/day.py
RuedigerLudwig/advent2021
ce069d485bb34b4752ec4e89f195f7cc8cf084cc
[ "Unlicense" ]
null
null
null
from __future__ import annotations from itertools import product from typing import Iterator day_num = 17 def part1(lines: Iterator[str]) -> int: probe = Target.from_str(next(lines)) mx = max(y for _, y in probe.get_possible()) return mx * (mx + 1) >> 1 def part2(lines: Iterator[str]) -> int: prob...
31.223214
82
0.501859
2,994
0.856162
1,968
0.562768
573
0.163855
0
0
13
0.003717
f249ee34b1745d4a243c396362c75f872d9af531
687
py
Python
Software_Carpentry/Conway/test_conway.py
dgasmith/SICM2-Software-Summer-School-2014
af97770cbade3bf4a246f21e607e8be66c9df7da
[ "MIT" ]
2
2015-07-16T14:00:27.000Z
2016-01-10T20:21:48.000Z
Software_Carpentry/Conway/test_conway.py
dgasmith/SICM2-Software-Summer-School-2014
af97770cbade3bf4a246f21e607e8be66c9df7da
[ "MIT" ]
null
null
null
Software_Carpentry/Conway/test_conway.py
dgasmith/SICM2-Software-Summer-School-2014
af97770cbade3bf4a246f21e607e8be66c9df7da
[ "MIT" ]
null
null
null
from conway import * def test_neighbors_at_origin(): result = [(1,1), (-1,-1), (0,1), (1,0), (-1,1), (1,-1), (-1,0), (0,-1)] nb = neighbors((0,0)) assert( set(result) == set(nb) ) def test_neighbors_at_negative_quadrant(): result = [(0, -1), (-2, -1), (-1, 0), (-1, -2), (0, 0), (0, -2), (-2, 0), (...
28.625
87
0.513828
0
0
0
0
0
0
0
0
0
0
f24a5dc578f63a0c2e113a798ce9969cd7ed080c
5,426
py
Python
app_backend/__init__.py
zhanghe06/bearing_project
78a20fc321f72d3ae05c7ab7e52e01d02904e3fc
[ "MIT" ]
1
2020-06-21T04:08:26.000Z
2020-06-21T04:08:26.000Z
app_backend/__init__.py
zhanghe06/bearing_project
78a20fc321f72d3ae05c7ab7e52e01d02904e3fc
[ "MIT" ]
13
2019-10-18T17:19:32.000Z
2022-01-13T00:44:43.000Z
app_backend/__init__.py
zhanghe06/bearing_project
78a20fc321f72d3ae05c7ab7e52e01d02904e3fc
[ "MIT" ]
5
2019-02-07T03:15:16.000Z
2021-09-04T14:06:28.000Z
#!/usr/bin/env python # encoding: utf-8 """ @author: zhanghe @software: PyCharm @file: __init__.py @time: 2018-03-06 00:00 """ from __future__ import unicode_literals import eventlet eventlet.monkey_patch() from logging.config import dictConfig from config import current_config from flask import Flask from flask_...
30.483146
86
0.838555
0
0
0
0
0
0
0
0
1,397
0.240282
f24ac29d015f11200dad8879234dd7ab9c174313
2,003
py
Python
N50.py
kstatebioinfo/stanford_swc
daa3f37bcbbe4a8a3cbe59a48b380603b9794634
[ "CC0-1.0" ]
null
null
null
N50.py
kstatebioinfo/stanford_swc
daa3f37bcbbe4a8a3cbe59a48b380603b9794634
[ "CC0-1.0" ]
null
null
null
N50.py
kstatebioinfo/stanford_swc
daa3f37bcbbe4a8a3cbe59a48b380603b9794634
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 ########################################################################## # USAGE: import N50 # help(N50) # N50.main(~/stanford_swc/fasta-o-matic/fasta/normal.fa) # DESCRIPTION: Function that calculates N50 for a FASTA file # Created by Jennifer M Shelton ################################...
34.534483
74
0.495756
0
0
0
0
0
0
0
0
1,074
0.536196
f24b0ee4bbb24e050ab403a0d1e6bf087f8143ee
34,017
py
Python
ColDoc/latex.py
mennucc/ColDoc_project
947a79592b689f57e59652b37868cc22e520f724
[ "BSD-3-Clause" ]
null
null
null
ColDoc/latex.py
mennucc/ColDoc_project
947a79592b689f57e59652b37868cc22e520f724
[ "BSD-3-Clause" ]
null
null
null
ColDoc/latex.py
mennucc/ColDoc_project
947a79592b689f57e59652b37868cc22e520f724
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 __all__ = ('main_by_args','latex_main','latex_uuid','latex_tree') cmd_help=""" Command help: blob compile the blob(s) with --uuid=UUID, tree compile all the blobs starting from --uuid=UUID main_public compile the whole document, for the general public ...
39.010321
135
0.587559
0
0
0
0
0
0
0
0
8,370
0.246053
f24b88cb32a898b91b261cd705b2ad3fcd5d1287
2,950
py
Python
extension/visualizer/generate_visualizer_header.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
2,816
2018-06-26T18:52:52.000Z
2021-04-06T10:39:15.000Z
extension/visualizer/generate_visualizer_header.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
1,310
2021-04-06T16:04:52.000Z
2022-03-31T13:52:53.000Z
extension/visualizer/generate_visualizer_header.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
270
2021-04-09T06:18:28.000Z
2022-03-31T11:55:37.000Z
# this script generates visualizer header import os visualizer_dir = 'extension/visualizer' visualizer_css = os.path.join(visualizer_dir, 'visualizer.css') visualizer_d3 = os.path.join(visualizer_dir, 'd3.js') visualizer_script = os.path.join(visualizer_dir, 'script.js') visualizer_header = os.path.join(visualizer_dir...
36.419753
92
0.737627
0
0
0
0
0
0
0
0
1,788
0.606102
f24c7bebfc50062402e4f3d020937fffe8042def
1,945
py
Python
kivyx/uix/aspectratio.py
gottadiveintopython/kivyx.uix.aspectratio
e8b049fe76c9350b8c167ff1fb32299b8feceba7
[ "MIT" ]
null
null
null
kivyx/uix/aspectratio.py
gottadiveintopython/kivyx.uix.aspectratio
e8b049fe76c9350b8c167ff1fb32299b8feceba7
[ "MIT" ]
null
null
null
kivyx/uix/aspectratio.py
gottadiveintopython/kivyx.uix.aspectratio
e8b049fe76c9350b8c167ff1fb32299b8feceba7
[ "MIT" ]
null
null
null
__all__ = ('KXAspectRatio', ) from kivy.uix.layout import Layout from kivy.properties import BoundedNumericProperty, OptionProperty HALIGN_TO_ATTR = { 'center': 'center_x', 'middle': 'center_x', 'left': 'x', 'right': 'right', } VALIGN_TO_ATTR = { 'center': 'center_y', 'middle': 'center_y', ...
29.469697
68
0.5491
1,585
0.81491
0
0
0
0
0
0
244
0.12545
f24e4b499348b1e6839320b71759fce8e46d5cc8
4,006
py
Python
src/analyze_img.py
IW276/IW276SS21-P13
851e220c34d55caa91f0967e02dc86c34deee2fa
[ "MIT" ]
null
null
null
src/analyze_img.py
IW276/IW276SS21-P13
851e220c34d55caa91f0967e02dc86c34deee2fa
[ "MIT" ]
null
null
null
src/analyze_img.py
IW276/IW276SS21-P13
851e220c34d55caa91f0967e02dc86c34deee2fa
[ "MIT" ]
null
null
null
import cv2 import numpy as np from matplotlib import pyplot as plt brightness = {"DARK": 0, "NORMAL": 1, "LIGHT": 2} contrast = {"HIGH": 2, "NORMAL": 1, "LOW": 0} class ImageSetup: def __init__(self): self.brightness = None self.contrast = None...
30.120301
92
0.595856
2,784
0.694958
0
0
0
0
0
0
399
0.099601
f2503cce75279fee15a3fc46cd4a46df58314fef
3,799
py
Python
models/game/bots/RandoMaxBot.py
zachdj/ultimate-tic-tac-toe
b8e6128d9d19628f6f889a3958d30854527a8645
[ "MIT" ]
null
null
null
models/game/bots/RandoMaxBot.py
zachdj/ultimate-tic-tac-toe
b8e6128d9d19628f6f889a3958d30854527a8645
[ "MIT" ]
null
null
null
models/game/bots/RandoMaxBot.py
zachdj/ultimate-tic-tac-toe
b8e6128d9d19628f6f889a3958d30854527a8645
[ "MIT" ]
null
null
null
import random from models.game.bots.Bot import Bot from models.game.Board import Board class RandoMaxBot(Bot): """ Semi-random bot This is a minimax bot that scores moves randomly unless the end of the game is seen within a 2-ply lookahead """ def __init__(self, number, name=None): if name is...
36.528846
120
0.589102
3,709
0.97631
0
0
0
0
0
0
982
0.258489
f251f3a1ac391e245be08c921c85c8b349b00732
1,924
py
Python
fineDinner.py
SMartQi/whose-treat
85f1d27dfb2b728a33cf8b6fcd73213ca24edb0b
[ "MIT" ]
1
2020-01-30T11:09:31.000Z
2020-01-30T11:09:31.000Z
fineDinner.py
SMartQi/whose-treat
85f1d27dfb2b728a33cf8b6fcd73213ca24edb0b
[ "MIT" ]
null
null
null
fineDinner.py
SMartQi/whose-treat
85f1d27dfb2b728a33cf8b6fcd73213ca24edb0b
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-*- encoding:UTF-8 -*- """ Background: JJ and MM want to have a fine dinner, celebrating their annual bonuses. They make this rule: This dinner is on the person who gets more annual bonus. And the cost of the dinner is the diff of money they make mod 300, per capita. Requirement: Decide the mo...
29.6
135
0.670478
0
0
0
0
0
0
0
0
1,081
0.56185
f25714dd2e5fb95e7b87e1b330afecfe7458cf18
49
py
Python
libs/pytvmaze/__init__.py
Sparklingx/nzbhydra
e2433e1155255ba37341cc79750b104e7dd8889a
[ "Apache-2.0" ]
674
2015-11-06T04:22:47.000Z
2022-02-26T17:31:43.000Z
libs/pytvmaze/__init__.py
Sparklingx/nzbhydra
e2433e1155255ba37341cc79750b104e7dd8889a
[ "Apache-2.0" ]
713
2015-11-06T10:48:58.000Z
2018-11-27T16:32:18.000Z
libs/pytvmaze/__init__.py
Sparklingx/nzbhydra
e2433e1155255ba37341cc79750b104e7dd8889a
[ "Apache-2.0" ]
106
2015-12-07T11:21:06.000Z
2022-03-11T10:58:41.000Z
#!/usr/bin/python from pytvmaze.tvmaze import *
12.25
29
0.734694
0
0
0
0
0
0
0
0
17
0.346939
f25ce39acdbb3d945528b6cb2be68ac5895f77bb
1,241
py
Python
backend/server.py
mugeshk97/billing-api
3bf6899f62bee6db7870c3b6008a10c887eb3aa3
[ "MIT" ]
null
null
null
backend/server.py
mugeshk97/billing-api
3bf6899f62bee6db7870c3b6008a10c887eb3aa3
[ "MIT" ]
null
null
null
backend/server.py
mugeshk97/billing-api
3bf6899f62bee6db7870c3b6008a10c887eb3aa3
[ "MIT" ]
null
null
null
from flask import Flask, request, jsonify from connection import get_sql_connection from product import get_all_products, insert_product, delete_product import json from flask_cors import CORS app = Flask(__name__) CORS(app) cnx = get_sql_connection() @app.route('/getProducts', methods=['GET']) def get_products(): ...
29.547619
68
0.709106
0
0
0
0
900
0.725222
0
0
232
0.186946
f25fca280607b95bdb378b87fdab5966ef3e46d2
555
py
Python
api/restaurant_helper_functions.py
daniellespencer/stfu-and-eat
cb82b364ba226dd61f11547720a20a132c1562f6
[ "MIT" ]
1
2020-05-15T01:36:59.000Z
2020-05-15T01:36:59.000Z
api/restaurant_helper_functions.py
daniellespencer/stfu-and-eat
cb82b364ba226dd61f11547720a20a132c1562f6
[ "MIT" ]
null
null
null
api/restaurant_helper_functions.py
daniellespencer/stfu-and-eat
cb82b364ba226dd61f11547720a20a132c1562f6
[ "MIT" ]
2
2020-05-15T01:31:37.000Z
2020-05-20T00:04:41.000Z
import random from api.config import restaurant_collection as restaurants def organize_restaurant_output(): output = [] for q in restaurants.find(): output.append({ "id" : str(q['_id']), 'name' : q['name'], 'neighborhood' : q['neighborhood'], 'cuisine' :...
26.428571
59
0.567568
0
0
0
0
0
0
0
0
103
0.185586
f26261a417ed0c023adbf8199f1af50c5d35454f
351
py
Python
source/exceptions.py
corradiniste/Paneka-discord-bot
43672b2720c88635266e0962f446bd36bd7ced7d
[ "MIT" ]
12
2020-08-03T05:47:20.000Z
2021-10-06T06:20:19.000Z
source/exceptions.py
Shivanirudh/Paneka-discord-bot
0ec257e92e40baf23233711c9cf9889e8c56ab53
[ "MIT" ]
5
2020-10-03T08:27:35.000Z
2021-06-02T04:45:57.000Z
source/exceptions.py
Shivanirudh/Paneka-discord-bot
0ec257e92e40baf23233711c9cf9889e8c56ab53
[ "MIT" ]
6
2020-08-06T10:41:49.000Z
2022-02-14T17:26:07.000Z
class InvalidLimitException(Exception): """ Invalid number of matches requested """ pass class InvalidLeagueCodeException(Exception): """ The League code requested is either invalid or not supported """ pass class InvalidTeamCodeException(Exception): """ The Team Code requested...
17.55
64
0.672365
344
0.980057
0
0
0
0
0
0
177
0.504274
f26337b1b3af5eb32cdd87718a2212d8a63d5996
6,187
py
Python
nz_snow_tools/eval/brewster_calibration_TF.py
jonoconway/nz_snow_tools
7002fb401fb48225260fada6fd5b5b7ca5ad1184
[ "MIT" ]
3
2020-09-01T07:53:05.000Z
2021-02-02T20:28:37.000Z
nz_snow_tools/eval/brewster_calibration_TF.py
jonoconway/nz_snow_tools
7002fb401fb48225260fada6fd5b5b7ca5ad1184
[ "MIT" ]
null
null
null
nz_snow_tools/eval/brewster_calibration_TF.py
jonoconway/nz_snow_tools
7002fb401fb48225260fada6fd5b5b7ca5ad1184
[ "MIT" ]
null
null
null
""" code to call the snow model for a simple test case using brewster glacier data """ from __future__ import division import numpy as np import matplotlib.pylab as plt import datetime as dt from nz_snow_tools.util.utils import resample_to_fsca, nash_sut, mean_bias, rmsd, mean_absolute_error, coef_determ seb_dat = np...
38.66875
216
0.725715
0
0
0
0
0
0
0
0
1,843
0.297883
f263d10e4b0315d66a52d4a47d9ce8cba72ce9a2
336
py
Python
Task1F.py
momopmoXZ/1a-flood-coding
13d2f6387e136f046b07a045eadfe654e9c2c27f
[ "MIT" ]
null
null
null
Task1F.py
momopmoXZ/1a-flood-coding
13d2f6387e136f046b07a045eadfe654e9c2c27f
[ "MIT" ]
null
null
null
Task1F.py
momopmoXZ/1a-flood-coding
13d2f6387e136f046b07a045eadfe654e9c2c27f
[ "MIT" ]
1
2022-02-07T17:04:41.000Z
2022-02-07T17:04:41.000Z
from floodsystem.stationdata import build_station_list from floodsystem.station import inconsistent_typical_range_stations stations = build_station_list() incon_station=inconsistent_typical_range_stations(stations) incon_names=[] for station in incon_station: incon_names.append(station.name) incon_names.sort() prin...
33.6
67
0.863095
0
0
0
0
0
0
0
0
0
0
f263dc6e6df0ca9888bd8e9bcfdb5d8ed564b445
507
py
Python
yaga_ga/evolutionary_algorithm/operators/base.py
alessandrolenzi/yaga
872503ad04a2831135143750bc309188e5685284
[ "MIT" ]
null
null
null
yaga_ga/evolutionary_algorithm/operators/base.py
alessandrolenzi/yaga
872503ad04a2831135143750bc309188e5685284
[ "MIT" ]
null
null
null
yaga_ga/evolutionary_algorithm/operators/base.py
alessandrolenzi/yaga
872503ad04a2831135143750bc309188e5685284
[ "MIT" ]
null
null
null
from typing import Generic, TypeVar from typing_extensions import Final from yaga_ga.evolutionary_algorithm.individuals import IndividualStructure class InvalidOperatorError(ValueError): pass IndividualType = TypeVar("IndividualType") GeneType = TypeVar("GeneType") class GeneticOperator(Generic[IndividualTy...
24.142857
81
0.792899
276
0.544379
0
0
0
0
0
0
26
0.051282
f2647ec6e2d3b985a5cc52948c24f37ae5751457
3,973
py
Python
stimuli.py
lieke2020/workmate_match
803f4e3b1fa62280cc0d6a7cd61eb80929dae918
[ "MIT" ]
null
null
null
stimuli.py
lieke2020/workmate_match
803f4e3b1fa62280cc0d6a7cd61eb80929dae918
[ "MIT" ]
null
null
null
stimuli.py
lieke2020/workmate_match
803f4e3b1fa62280cc0d6a7cd61eb80929dae918
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Dec 1 13:21:44 2021 This file holds the stimuli that are used in the world to represent cues. obs_time --> Stimulus representing time match_cifar --> Natural scenes for phase 1 learning obs_cifar --> Natural scenes for phase 2 learning match_alp...
37.838095
100
0.683614
0
0
0
0
0
0
0
0
2,280
0.573874
f2661fcc769c20d3c2e052ada4cb40f950039d1a
675
py
Python
tallerestructurasselectivas/14.py
juandab07/Algoritmos-y-programacion
f3c10f5c4620b15432ecfe2b9f5831437a49ace9
[ "MIT" ]
null
null
null
tallerestructurasselectivas/14.py
juandab07/Algoritmos-y-programacion
f3c10f5c4620b15432ecfe2b9f5831437a49ace9
[ "MIT" ]
null
null
null
tallerestructurasselectivas/14.py
juandab07/Algoritmos-y-programacion
f3c10f5c4620b15432ecfe2b9f5831437a49ace9
[ "MIT" ]
null
null
null
print('ingrese el monto a pagar en aseo urbano') aseo=float(input()) print('ingrese el valor de lectura del mes anterior') ant=float(input()) print('ingrese el valor de lectura del mes actual') act=float(input()) cons=act-ant if 0<cons<=100: pago=cons*4600 print('debera pagar $',pago,'en luz electrica y',aseo,'...
35.526316
75
0.694815
0
0
0
0
0
0
0
0
339
0.502222
f2684fd08fdc8ebf74875458af9886f1554c5e7c
1,040
py
Python
meilisearch/tests/test_synonyms_meilisearch.py
jtmiclat/meilisearch-python
b6a48a62bb64ae58181550a0ddc793dcdc0a2b06
[ "MIT" ]
null
null
null
meilisearch/tests/test_synonyms_meilisearch.py
jtmiclat/meilisearch-python
b6a48a62bb64ae58181550a0ddc793dcdc0a2b06
[ "MIT" ]
null
null
null
meilisearch/tests/test_synonyms_meilisearch.py
jtmiclat/meilisearch-python
b6a48a62bb64ae58181550a0ddc793dcdc0a2b06
[ "MIT" ]
null
null
null
import time import meilisearch from meilisearch.tests import BASE_URL, MASTER_KEY class TestSynonyms: client = meilisearch.Client(BASE_URL, MASTER_KEY) index = None new_synonyms = { 'hp': ['harry potter'] } default_synonyms = {} def setup_class(self): self.index = self.client.c...
28.888889
64
0.674038
956
0.919231
0
0
0
0
0
0
48
0.046154
f2689ab69abc970864477a6211da1d0af11f1927
168
py
Python
main.py
dansoliveira/pasc-compiler
642f2745395dcc5b4ebbdd1fa83169362f863e61
[ "MIT" ]
null
null
null
main.py
dansoliveira/pasc-compiler
642f2745395dcc5b4ebbdd1fa83169362f863e61
[ "MIT" ]
1
2018-05-10T13:03:04.000Z
2018-05-10T13:03:04.000Z
main.py
dansoliveira/pasc-compiler
642f2745395dcc5b4ebbdd1fa83169362f863e61
[ "MIT" ]
null
null
null
from lexer import Lexer from parser import Parser if __name__ == "__main__": lexer = Lexer("exemplos/teste2.pasc") parser = Parser(lexer) parser.executa()
21
41
0.702381
0
0
0
0
0
0
0
0
32
0.190476
f26a5c6b870f2f9eb67aa2735878c21021be7143
324
py
Python
leetcode/easy/plus-one.py
vtemian/interviews-prep
ddef96b5ecc699a590376a892a804c143fe18034
[ "Apache-2.0" ]
8
2019-05-14T12:50:29.000Z
2022-03-01T09:08:27.000Z
leetcode/easy/plus-one.py
vtemian/interviews-prep
ddef96b5ecc699a590376a892a804c143fe18034
[ "Apache-2.0" ]
46
2019-03-24T20:59:29.000Z
2019-04-09T16:28:43.000Z
leetcode/easy/plus-one.py
vtemian/interviews-prep
ddef96b5ecc699a590376a892a804c143fe18034
[ "Apache-2.0" ]
1
2022-01-28T12:46:29.000Z
2022-01-28T12:46:29.000Z
class Solution: def plusOne(self, digits: List[int]) -> List[int]: carry = 1 result = [] for digit in digits[::-1]: digit += carry result.append(digit % 10) carry = digit // 10 if carry: result.append(carry) return result[::...
20.25
54
0.475309
323
0.996914
0
0
0
0
0
0
0
0
f26a6e2aee87a0b97e130dc33aaab4654d6c6049
69
py
Python
microdevices/connector/__init__.py
lmokto/microdevices
75a129d1c32f64afe9027338c4be304322ded857
[ "MIT" ]
null
null
null
microdevices/connector/__init__.py
lmokto/microdevices
75a129d1c32f64afe9027338c4be304322ded857
[ "MIT" ]
1
2021-06-02T00:01:14.000Z
2021-06-02T00:01:14.000Z
microdevices/connector/__init__.py
lmokto/microdevices
75a129d1c32f64afe9027338c4be304322ded857
[ "MIT" ]
null
null
null
from .mqtt import MQTTClient from .sql import * from .redis import *
17.25
28
0.753623
0
0
0
0
0
0
0
0
0
0
f26a8afeac7319e72d66512791f4976ac936a01f
1,275
py
Python
examples/1-marshmallow/server/resources/user/schema.py
FlyingBird95/openapi_generator
df4649b9723eb89fa370b02220356b7596794069
[ "MIT" ]
3
2022-01-10T12:43:36.000Z
2022-01-13T18:08:15.000Z
examples/1-marshmallow/server/resources/user/schema.py
FlyingBird95/openapi_generator
df4649b9723eb89fa370b02220356b7596794069
[ "MIT" ]
6
2022-02-06T19:00:05.000Z
2022-03-22T14:22:21.000Z
examples/1-marshmallow/server/resources/user/schema.py
FlyingBird95/openapi-builder
df4649b9723eb89fa370b02220356b7596794069
[ "MIT" ]
2
2021-12-17T17:26:06.000Z
2021-12-17T17:39:00.000Z
from marshmallow import Schema, fields class RegisterUser(Schema): """Deserialize register user schema.""" email = fields.Email(required=True) """Email.""" first_name = fields.String(required=True) """First name.""" last_name = fields.String(required=True) """Last name.""" password...
19.615385
71
0.620392
1,221
0.957647
0
0
77
0.060392
0
0
414
0.324706
f26cee0b9842c7bd2fa3f00e76d7e1a08850c951
450
py
Python
coloredterm/__init__.py
hostedposted/coloredterm
72d07a0bd12eb797e4b2772dfe45aca5234d27b6
[ "MIT" ]
1
2021-02-12T01:21:44.000Z
2021-02-12T01:21:44.000Z
coloredterm/__init__.py
hostedposted/coloredterm
72d07a0bd12eb797e4b2772dfe45aca5234d27b6
[ "MIT" ]
4
2021-07-07T04:09:58.000Z
2022-02-03T04:05:30.000Z
coloredterm/__init__.py
hostedposted/coloredterm
72d07a0bd12eb797e4b2772dfe45aca5234d27b6
[ "MIT" ]
1
2021-02-20T22:58:31.000Z
2021-02-20T22:58:31.000Z
"""Collection of tools for changing the text of your terminal.""" from coloredterm.coloredterm import ( Back, bg, colored, colors, cprint, fg, Fore, names, pattern_input, pattern_print, rand, Style ) __version__ = "0.1.9" __all__ = [ 'Back', 'bg', 'colored', ...
14.516129
65
0.542222
0
0
0
0
0
0
0
0
167
0.371111
f26e13939dbd7efae31817537aae9cd55a260550
1,706
py
Python
src/export_as_csv.py
mustilica/tt-history
1bb60cb81e97ef1abecf657cfa078798bb29cace
[ "MIT" ]
26
2015-02-12T20:33:01.000Z
2018-04-25T05:29:52.000Z
src/export_as_csv.py
mustilica/tt-history
1bb60cb81e97ef1abecf657cfa078798bb29cace
[ "MIT" ]
3
2019-11-27T18:19:23.000Z
2020-11-26T08:53:13.000Z
src/export_as_csv.py
mustilica/tt-history
1bb60cb81e97ef1abecf657cfa078798bb29cace
[ "MIT" ]
8
2015-01-11T00:12:40.000Z
2018-04-01T22:34:45.000Z
# Run from GAE remote API: # {GAE Path}\remote_api_shell.py -s {YourAPPName}.appspot.com # import export_as_csv import csv from google.appengine.ext import db from google.appengine.ext.db import GqlQuery def exportToCsv(query, csvFileName, delimiter): with open(csvFileName, 'wb') as csvFile: csvWriter ...
28.433333
74
0.622509
155
0.090856
0
0
0
0
0
0
361
0.211606
f26f15c108eabe8ae9328cc4ea34ff13c08d0947
950
py
Python
main.py
AbhigyanRanjan0505/dvigyuoixfhybiocthgnkfi
db1b5198f1a0902aff21c74c58578dcb1feda39d
[ "MIT" ]
null
null
null
main.py
AbhigyanRanjan0505/dvigyuoixfhybiocthgnkfi
db1b5198f1a0902aff21c74c58578dcb1feda39d
[ "MIT" ]
null
null
null
main.py
AbhigyanRanjan0505/dvigyuoixfhybiocthgnkfi
db1b5198f1a0902aff21c74c58578dcb1feda39d
[ "MIT" ]
null
null
null
import plotly.figure_factory as figure_factory import statistics import random import pandas df = pandas.read_csv("data.csv") data = df["reading_time"].tolist() population_mean = statistics.mean(data) print("Population mean :", population_mean) def show_fig(mean_list): df = mean_list fig = fig...
22.093023
52
0.648421
0
0
0
0
0
0
0
0
74
0.077895
f26f70f686db6ff49ef92baf12b70818b5613277
209
py
Python
ddtrace/contrib/sqlite3/connection.py
sharov/dd-trace-py
d0995b49cf7147ab463d0a67a38779fad3f539b4
[ "BSD-3-Clause" ]
1
2019-11-24T23:09:29.000Z
2019-11-24T23:09:29.000Z
ddtrace/contrib/sqlite3/connection.py
sharov/dd-trace-py
d0995b49cf7147ab463d0a67a38779fad3f539b4
[ "BSD-3-Clause" ]
null
null
null
ddtrace/contrib/sqlite3/connection.py
sharov/dd-trace-py
d0995b49cf7147ab463d0a67a38779fad3f539b4
[ "BSD-3-Clause" ]
2
2017-05-27T05:58:36.000Z
2019-02-07T13:38:53.000Z
from sqlite3 import Connection from ddtrace.util import deprecated @deprecated(message='Use patching instead (see the docs).', version='0.6.0') def connection_factory(*args, **kwargs): return Connection
26.125
76
0.76555
0
0
0
0
139
0.665072
0
0
45
0.215311
f27341117d08bd618bf3ac5014feb6d7ff7d069e
801
py
Python
kafka_client_decorators/util/logging_helper.py
cdsedson/kafka-decorator
f2c958df88c5698148aae4c5314dd39e31e995c3
[ "MIT" ]
null
null
null
kafka_client_decorators/util/logging_helper.py
cdsedson/kafka-decorator
f2c958df88c5698148aae4c5314dd39e31e995c3
[ "MIT" ]
null
null
null
kafka_client_decorators/util/logging_helper.py
cdsedson/kafka-decorator
f2c958df88c5698148aae4c5314dd39e31e995c3
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- """Define function used on logging.""" import logging __KAFKA_DECORATOR_DEBUG__ = None def set_debug_level(level): """Set the level of log. Set logging level for all loggers create by get_logger function Parameters ---------- level: log level def...
19.536585
67
0.636704
0
0
0
0
0
0
0
0
456
0.569288
f2738d7e2edb6f5a98849ea7773345dc1a404833
1,409
py
Python
hseling_lib_diachrony_webvectors/hseling_lib_diachrony_webvectors/strings_reader.py
wadimiusz/hseling-repo-diachrony-webvectors
5488d74141df360a6a721637ae7c7577136172d7
[ "MIT" ]
null
null
null
hseling_lib_diachrony_webvectors/hseling_lib_diachrony_webvectors/strings_reader.py
wadimiusz/hseling-repo-diachrony-webvectors
5488d74141df360a6a721637ae7c7577136172d7
[ "MIT" ]
null
null
null
hseling_lib_diachrony_webvectors/hseling_lib_diachrony_webvectors/strings_reader.py
wadimiusz/hseling-repo-diachrony-webvectors
5488d74141df360a6a721637ae7c7577136172d7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding:utf8 """ this module reads strings.csv, which contains all the strings, and lets the main app use it """ import sys import csv import os from flask import Markup import configparser config = configparser.RawConfigParser() path = '../hseling_api_diachrony_webvectors/hseling_api_diachron...
32.022727
104
0.721079
0
0
0
0
0
0
0
0
613
0.43506
f274273a939d4c8377fbaeb7efafd00e9604432e
1,077
py
Python
day 5&6/linked list.py
yogeshkhola/100daysofDSA
93f0d30d718795e4e3eb5d8e677b87baebd0df7c
[ "MIT" ]
3
2021-03-01T17:04:33.000Z
2021-03-01T17:44:23.000Z
day 5&6/linked list.py
yogeshkhola/100daysofDSA
93f0d30d718795e4e3eb5d8e677b87baebd0df7c
[ "MIT" ]
null
null
null
day 5&6/linked list.py
yogeshkhola/100daysofDSA
93f0d30d718795e4e3eb5d8e677b87baebd0df7c
[ "MIT" ]
null
null
null
class node: def __init__(self,data): self.data=data self.next=None class LinkedList: def __init__(self): self.start=None #(self/head) def viewList(self):#this function print the whole list if self.start==None: print("list is empty") else: temp...
21.54
58
0.571959
876
0.81337
0
0
0
0
0
0
104
0.096565
f2765c1d1962f66a204431e4dc547e6e1d4a52be
40,603
py
Python
detex/getdata.py
d-chambers/Detex
46602eb8e05e080a23111c8f2716065a016613c2
[ "BSD-3-Clause" ]
39
2015-08-15T20:10:14.000Z
2022-03-17T00:41:57.000Z
detex/getdata.py
d-chambers/Detex
46602eb8e05e080a23111c8f2716065a016613c2
[ "BSD-3-Clause" ]
39
2015-09-28T23:50:59.000Z
2019-07-16T20:38:31.000Z
detex/getdata.py
d-chambers/Detex
46602eb8e05e080a23111c8f2716065a016613c2
[ "BSD-3-Clause" ]
8
2015-10-08T20:43:40.000Z
2020-08-05T22:47:45.000Z
# -*- coding: utf-8 -*- """ Created on Thu Nov 10 20:21:46 2015 @author: derrick """ from __future__ import print_function, absolute_import, unicode_literals, division import glob import itertools import json import os import random import numpy as np import obspy import pandas as pd from six import string_types im...
38.929051
102
0.582174
15,476
0.381154
9,473
0.233308
0
0
0
0
16,142
0.397557
f2766a9a2df58d6c9fe0fc41dab441157d2a7a7d
4,850
py
Python
HouseHunter/core.py
JGBMichalski/House-Hunter
7ad1e866907545b8e2302c1a775cadbd8f807ad9
[ "MIT" ]
null
null
null
HouseHunter/core.py
JGBMichalski/House-Hunter
7ad1e866907545b8e2302c1a775cadbd8f807ad9
[ "MIT" ]
null
null
null
HouseHunter/core.py
JGBMichalski/House-Hunter
7ad1e866907545b8e2302c1a775cadbd8f807ad9
[ "MIT" ]
null
null
null
from tarfile import SUPPORTED_TYPES import requests import re from bs4 import BeautifulSoup import json import HouseHunter.globals as Globals from HouseHunter.ad import * from pathlib import Path class Core(): def __init__(self, filename="ads.json"): self.filepath = Path().absolute().joinpath(filename) if...
34.15493
142
0.583711
4,652
0.959175
0
0
0
0
0
0
1,086
0.223918
f27a87d9305d94ef4ecc93fe8c501738b9c6465e
582
py
Python
recipes/Python/474122_neat/recipe-474122.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/474122_neat/recipe-474122.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/474122_neat/recipe-474122.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
# nice and clean closure notation def get_counter_neat(): def f(): f.x += 1 return f.x f.x = 0 return f # traditional, not_so_neat closure notation def get_counter_traditional(): x = [0] def f(): x[0] += 1 return x[0] return f #### EXAMPLE ######################...
20.068966
72
0.487973
0
0
0
0
0
0
0
0
197
0.338488