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
25cf68d0a4b0a8526f46a9ffc1577f822840a5b8
2,156
py
Python
website/models.py
jkariukidev/personal_website
952e9416639c8b15e12fc7671c53e6996dda9f13
[ "MIT" ]
null
null
null
website/models.py
jkariukidev/personal_website
952e9416639c8b15e12fc7671c53e6996dda9f13
[ "MIT" ]
3
2022-03-19T03:29:55.000Z
2022-03-22T18:54:24.000Z
website/models.py
jkariukidev/personal_website
952e9416639c8b15e12fc7671c53e6996dda9f13
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from django.urls import reverse from django.contrib.auth import get_user_model from ckeditor.fields import RichTextField from autoslug.fields import AutoSlugField User = get_user_model() class Post(models.Model): """Post model""" STATUS_CHOICES ...
29.135135
80
0.682746
1,893
0.878015
0
0
0
0
0
0
291
0.134972
25d004ca77753de79280c84d4b70c9b13ef42797
373
py
Python
owcli/template/yourapp/main.py
tadashi-aikawa/owcli
1c2f2ada146b671e37947ff1dfe25babaaf38094
[ "MIT" ]
1
2020-01-21T05:19:03.000Z
2020-01-21T05:19:03.000Z
owcli/template/yourapp/main.py
tadashi-aikawa/owcli
1c2f2ada146b671e37947ff1dfe25babaaf38094
[ "MIT" ]
3
2019-05-11T02:32:48.000Z
2019-06-26T23:05:52.000Z
owcli/template/yourapp/main.py
tadashi-aikawa/owcli
1c2f2ada146b671e37947ff1dfe25babaaf38094
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) sys.path.append(PROJECT_ROOT) sys.path.append(os.getcwd()) import owcli __version__ = '0.1.0' def main(): owcli.run(cli="__yourapp", version=__version__, root=os.path.dirname(os.path.realpath...
17.761905
101
0.72118
0
0
0
0
0
0
0
0
49
0.131367
25d27198f145805ad47007d54d3831652ac2959c
207
py
Python
AlgoMethod/full_search/multi_array_full_serach/01.py
Nishi05/Competitive-programming
e59a6755b706d9d5c1f359f4511d92c114e6a94e
[ "MIT" ]
null
null
null
AlgoMethod/full_search/multi_array_full_serach/01.py
Nishi05/Competitive-programming
e59a6755b706d9d5c1f359f4511d92c114e6a94e
[ "MIT" ]
null
null
null
AlgoMethod/full_search/multi_array_full_serach/01.py
Nishi05/Competitive-programming
e59a6755b706d9d5c1f359f4511d92c114e6a94e
[ "MIT" ]
null
null
null
n, m = map(int, input().split()) a_lst = list(map(int, input().split())) b_lst = list(map(int, input().split())) cnt = 0 for i in a_lst: for j in b_lst: if i > j: cnt += 1 print(cnt)
20.7
39
0.531401
0
0
0
0
0
0
0
0
0
0
25d33d8c706c5e4f22c52021b3a60cc3f03f0db1
3,191
py
Python
larch/io/save_restore.py
Bob620/xraylarch
f8d38e6122cc0e8c990b0f024db3b503a5fbf057
[ "BSD-2-Clause" ]
null
null
null
larch/io/save_restore.py
Bob620/xraylarch
f8d38e6122cc0e8c990b0f024db3b503a5fbf057
[ "BSD-2-Clause" ]
null
null
null
larch/io/save_restore.py
Bob620/xraylarch
f8d38e6122cc0e8c990b0f024db3b503a5fbf057
[ "BSD-2-Clause" ]
null
null
null
import json import time import numpy as np from collections import OrderedDict from larch import Group from ..fitting import Parameter, isParameter from ..utils.jsonutils import encode4js, decode4js from . import fix_varname def save(fname, *args, **kws): """save groups and data into a portable json file ...
27.991228
73
0.576308
0
0
0
0
0
0
0
0
927
0.290505
25d477a7e3662db314d6e4fe2a30bcaeeeeeaa6c
8,251
py
Python
text2sql/data/dataset_readers/seq2seq_spans.py
inbaroren/improving-compgen-in-semparse
06463b94f3d1b291759c08783d5a8661e2960f2e
[ "MIT" ]
15
2020-09-30T12:24:29.000Z
2021-12-24T13:45:25.000Z
text2sql/data/dataset_readers/seq2seq_spans.py
inbaroren/improving-compgen-in-semparse
06463b94f3d1b291759c08783d5a8661e2960f2e
[ "MIT" ]
2
2021-04-21T14:07:41.000Z
2021-12-28T13:26:59.000Z
text2sql/data/dataset_readers/seq2seq_spans.py
inbaroren/improving-compgen-in-semparse
06463b94f3d1b291759c08783d5a8661e2960f2e
[ "MIT" ]
2
2020-10-19T22:06:45.000Z
2021-02-05T22:08:23.000Z
from typing import Dict, List, Tuple import logging import json import glob import os import sqlite3 import random from overrides import overrides from allennlp.common.file_utils import cached_path from allennlp.common.util import START_SYMBOL, END_SYMBOL from allennlp.data.dataset_readers.dataset_reader import Datas...
47.97093
143
0.648891
6,528
0.791177
1,679
0.20349
6,569
0.796146
0
0
1,515
0.183614
25d4beca70d7a7ea9d34cbd419dd150e815027fd
909
py
Python
tests/test_main.py
Ronald-TR/dino_velocity
d3f4734c6ba0ac0b26d5cc088f53627204471cc8
[ "MIT" ]
1
2019-10-05T23:12:36.000Z
2019-10-05T23:12:36.000Z
tests/test_main.py
Ronald-TR/dino_velocity
d3f4734c6ba0ac0b26d5cc088f53627204471cc8
[ "MIT" ]
null
null
null
tests/test_main.py
Ronald-TR/dino_velocity
d3f4734c6ba0ac0b26d5cc088f53627204471cc8
[ "MIT" ]
null
null
null
import os import pytest import pandas as pd from pandas.testing import assert_frame_equal from main import ( calc_velocity, merge_datasets, filter_by, GRAV_CONST ) FIXTURES_DIR = os.path.join(os.path.dirname(__file__), 'fixtures') @pytest.fixture def dataset(): ds1 = pd.read_csv(os.path.join(FIX...
23.921053
68
0.711771
0
0
0
0
199
0.218922
0
0
89
0.09791
25d5459c687261b94c617960f25183e8dcf9884d
2,016
py
Python
WebMirror/management/rss_parser_funcs/feed_parse_extractKONDEETranslations.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
193
2016-08-02T22:04:35.000Z
2022-03-09T20:45:41.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractKONDEETranslations.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
533
2016-08-23T20:48:23.000Z
2022-03-28T15:55:13.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractKONDEETranslations.py
rrosajp/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
19
2015-08-13T18:01:08.000Z
2021-07-12T17:13:09.000Z
def extractKONDEETranslations(item): """ #'KONDEE Translations' """ vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol or frag) or 'preview' in item['title'].lower(): return None tagmap = [ ('Sakyubasu ni Tensei Shitanode Miruku o Shiborimasu', 'Sakyubasu ...
57.6
152
0.628968
0
0
0
0
0
0
0
0
1,054
0.522817
25d56132a9991c67bebd41cd2677e0355c9c0bbd
1,302
py
Python
Aula 02/Salario.py
eduardojpsena/EstruturaDeDados-Python-IESP
97c22fc1411dfdae2d1085e9a3ca0c334ee07988
[ "MIT" ]
null
null
null
Aula 02/Salario.py
eduardojpsena/EstruturaDeDados-Python-IESP
97c22fc1411dfdae2d1085e9a3ca0c334ee07988
[ "MIT" ]
null
null
null
Aula 02/Salario.py
eduardojpsena/EstruturaDeDados-Python-IESP
97c22fc1411dfdae2d1085e9a3ca0c334ee07988
[ "MIT" ]
null
null
null
print("---SALARIO---") def salarioBruto(salarioHora, horasMes): return salarioHora * horasMes def irrf(brutoMes): return brutoMes * (11/100) def inss(brutoMes): return brutoMes * (8/100) def sindicato(brutoMes): return brutoMes * (5/100) def main(): nome = str(input("Digite seu nome: ")) ma...
38.294118
98
0.629032
0
0
0
0
0
0
0
0
485
0.345688
25d5fc91d14d71852cbb46890be81d83decb9e60
245
py
Python
9_Phan_Van_Quan/bai2_5.py
lpython2006e/exercies
84343eae57d86708a7984aa02f77183a4688a508
[ "MIT" ]
null
null
null
9_Phan_Van_Quan/bai2_5.py
lpython2006e/exercies
84343eae57d86708a7984aa02f77183a4688a508
[ "MIT" ]
null
null
null
9_Phan_Van_Quan/bai2_5.py
lpython2006e/exercies
84343eae57d86708a7984aa02f77183a4688a508
[ "MIT" ]
8
2020-07-10T14:13:54.000Z
2020-08-03T08:17:50.000Z
#Write a function that computes the running total of a list. sum def sum_list(list_1): tong = 0 for num in range(len(list_1)): tong = tong + list_1[num] print(tong) list_2 = [1,2,3,4,5,2,23,2,4,32,42,324,324] sum_list(list_2)
30.625
64
0.657143
0
0
0
0
0
0
0
0
64
0.261224
25d62da64c8583675cd96ec2da27f258feaa8342
5,235
py
Python
python/stepspy-current/demo/demo_dynamic.py
changgang/steps
9b8ea474581885129d1c1a1c3ad40bc8058a7e0a
[ "MIT" ]
29
2019-10-30T07:04:10.000Z
2022-02-22T06:34:32.000Z
python/stepspy-current/demo/demo_dynamic.py
cuihantao/steps
60327bf42299cb7117ed5907a931583d7cdf590d
[ "MIT" ]
1
2021-09-25T15:29:59.000Z
2022-01-05T14:04:18.000Z
python/stepspy-current/demo/demo_dynamic.py
changgang/steps
9b8ea474581885129d1c1a1c3ad40bc8058a7e0a
[ "MIT" ]
8
2019-12-20T16:13:46.000Z
2022-03-20T14:58:23.000Z
from stepspy import STEPS, POUCH_CSV simulator = STEPS(is_default = False, log_file = 'test.log') simulator.info() simulator.set_toolkit_log_file("newtest.log", log_file_append_mode=False) simulator.set_parallel_thread_number(1) simulator.set_dynamic_model_database_capacity(10000000) max_bus = simulator.get_allowe...
40.898438
91
0.792359
0
0
0
0
0
0
0
0
1,155
0.22063
25d66f81d37952960a38fcc5a38e1217f528a355
181
py
Python
src/django_extmodels/manager.py
jbowen7/django-extmodels
734a7ce22ada8e4a374a10dfbfe60709f38a5336
[ "MIT" ]
null
null
null
src/django_extmodels/manager.py
jbowen7/django-extmodels
734a7ce22ada8e4a374a10dfbfe60709f38a5336
[ "MIT" ]
null
null
null
src/django_extmodels/manager.py
jbowen7/django-extmodels
734a7ce22ada8e4a374a10dfbfe60709f38a5336
[ "MIT" ]
null
null
null
from django.db.models import Manager from django_extmodels.query import ExtQuerySet class ExtManager(Manager.from_queryset(ExtQuerySet)): """ A subclassable Manager """ pass
16.454545
53
0.790055
93
0.513812
0
0
0
0
0
0
32
0.176796
25d6ed8f1b0d5bd4108f7c8f1345603288e8fe96
1,553
py
Python
test_tornado.py
LEvinson2504/pythonMicroframeworks
99d62ae6a027de36b82c17b0268b30321431fd7a
[ "MIT" ]
3
2016-04-06T19:44:12.000Z
2020-06-19T15:10:39.000Z
test_tornado.py
LEvinson2504/pythonMicroframeworks
99d62ae6a027de36b82c17b0268b30321431fd7a
[ "MIT" ]
2
2020-06-12T00:50:57.000Z
2020-06-20T14:24:37.000Z
test_tornado.py
LEvinson2504/pythonMicroframeworks
99d62ae6a027de36b82c17b0268b30321431fd7a
[ "MIT" ]
2
2020-06-14T06:13:58.000Z
2020-06-19T15:12:52.000Z
''' test_tornado.py @summary: Comparing (RAM usage) of different webframeworks @since: 5 Mar 2016 @author: Andreas @home github.com/drandreaskrueger/pythonMicroframeworks @license: MIT but please donate: @bitcoin: 14EyWS5z8Y5kgwq52D3qeZVor1rUsdNYJy ''' import tornado.ioloop, tornado.web...
25.883333
104
0.667096
320
0.206053
0
0
0
0
0
0
635
0.408886
25d79945f6691e6fca74bc938b9fd9bae0ad541e
4,065
py
Python
Logistic_and_Softmax_Regression/SoftmaxRegression_Regularized.py
mmitic/Machine-Learning-algorithms-Python-
2f228a88d64b7c2748dfafbe41c0984dcf8923b0
[ "MIT" ]
1
2015-08-09T21:12:51.000Z
2015-08-09T21:12:51.000Z
Logistic_and_Softmax_Regression/SoftmaxRegression_Regularized.py
mmitic/Machine-Learning-algorithms-Python-
2f228a88d64b7c2748dfafbe41c0984dcf8923b0
[ "MIT" ]
null
null
null
Logistic_and_Softmax_Regression/SoftmaxRegression_Regularized.py
mmitic/Machine-Learning-algorithms-Python-
2f228a88d64b7c2748dfafbe41c0984dcf8923b0
[ "MIT" ]
1
2015-12-29T13:11:43.000Z
2015-12-29T13:11:43.000Z
import os import numpy as np import scipy.sparse import scipy.optimize class Softmax: def __init__(self): self.path='G:\MACHINE_LEARNING_ALGORITHMS\Logistic_and_Stochastic_Regression'### insert your path here! self.C1=0.0001 #weight decay (regularization parameter) ...
32.52
152
0.527429
2,943
0.723985
0
0
0
0
0
0
699
0.171956
25d843360df31c7f2fcc1e0199a39a68f8fdf8a4
1,222
py
Python
Student-management/code.py
singhbipin2117/dsmp-pre-work
b8af229276d46c40edb7e79a1387c6e2f3a481a2
[ "MIT" ]
null
null
null
Student-management/code.py
singhbipin2117/dsmp-pre-work
b8af229276d46c40edb7e79a1387c6e2f3a481a2
[ "MIT" ]
null
null
null
Student-management/code.py
singhbipin2117/dsmp-pre-work
b8af229276d46c40edb7e79a1387c6e2f3a481a2
[ "MIT" ]
null
null
null
# -------------- # Code starts here class_1 = ['Geoffrey Hinton','Andrew Ng','Sebastian Raschka','Yoshua Bengio'] class_2 = ['Hilary Mason','Carla Gentry','Corinna Cortes'] new_class = class_1 + class_2 new_class.append('Peter Warden') for name in new_class: if name == 'Carla Gentry': new_class.remove('Car...
21.068966
83
0.663666
0
0
0
0
0
0
0
0
528
0.432079
25d94b24d93064be7c3949298961c79e802c2296
3,759
py
Python
vmad/core/node.py
VMBoehm/vmad
3aeb57a43de10e146756f074cca7f77f210e3e74
[ "BSD-2-Clause" ]
null
null
null
vmad/core/node.py
VMBoehm/vmad
3aeb57a43de10e146756f074cca7f77f210e3e74
[ "BSD-2-Clause" ]
null
null
null
vmad/core/node.py
VMBoehm/vmad
3aeb57a43de10e146756f074cca7f77f210e3e74
[ "BSD-2-Clause" ]
null
null
null
class Node: """ A node on the computing graph. The node is the first argument to apl(node, ....) and jvp / vjp functions. node[argname] gives the input symbol """ def __init__(self, primitive, _frameinfo): self.primitive = primitive self.operator = primitive.operato...
33.864865
127
0.597765
3,758
0.999734
0
0
116
0.030859
0
0
1,723
0.458367
25d9d61573cd0d40344205aeac86f2dee6d6a535
5,111
py
Python
tests/test_contributions.py
Alveo/pyalveo
1e9eec22bc031bc9a08066f9966565a546e6242e
[ "BSD-3-Clause" ]
2
2016-12-04T04:32:34.000Z
2019-04-18T09:38:33.000Z
tests/test_contributions.py
Alveo/pyalveo
1e9eec22bc031bc9a08066f9966565a546e6242e
[ "BSD-3-Clause" ]
4
2017-05-24T01:37:48.000Z
2018-04-09T02:35:25.000Z
tests/test_contributions.py
Alveo/pyalveo
1e9eec22bc031bc9a08066f9966565a546e6242e
[ "BSD-3-Clause" ]
2
2016-11-21T03:49:43.000Z
2017-10-05T04:08:58.000Z
import unittest import pyalveo import requests_mock import json CONTEXT = { "ausnc": "http://ns.ausnc.org.au/schemas/ausnc_md_model/", "corpus": "http://ns.ausnc.org.au/corpora/", "dc": "http://purl.org/dc/terms/", "dcterms": "http://purl.org/dc/terms/", "foaf": "http://...
39.015267
133
0.562121
3,123
0.611035
0
0
3,147
0.615731
0
0
2,128
0.416357
25db060c714c394d50b7346b0ada7c29a4a01a98
5,182
py
Python
ratings/migrations/0010_auto_20211023_0238.py
CommanderStorm/rallyetool-v2
721413d6df8afc9347dac7ee83deb3a0ad4c01bc
[ "MIT" ]
1
2021-10-03T17:49:53.000Z
2021-10-03T17:49:53.000Z
ratings/migrations/0010_auto_20211023_0238.py
FSTUM/rallyetool-v2
2f3e2b5cb8655abe023ed1215b7182430b75bb23
[ "MIT" ]
9
2021-11-23T10:13:43.000Z
2022-03-01T15:04:15.000Z
ratings/migrations/0010_auto_20211023_0238.py
CommanderStorm/rallyetool-v2
721413d6df8afc9347dac7ee83deb3a0ad4c01bc
[ "MIT" ]
1
2021-10-16T09:07:47.000Z
2021-10-16T09:07:47.000Z
# Generated by Django 3.2.7 on 2021-10-23 00:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("ratings", "0009_alter_group_name"), ] operations = [ migrations.AddField( model_name="station", name="contact_person...
34.092105
116
0.502316
5,089
0.982053
0
0
0
0
0
0
1,528
0.294867
25db2994b8b673dcb1d9dda65713525f566bb09a
3,375
py
Python
flat_kivy/numpad.py
Kovak/KivyNBT
a20a41d1cc7465d772840e786fd7c6791301192f
[ "MIT" ]
5
2016-05-02T22:40:16.000Z
2018-11-21T22:44:54.000Z
flat_kivy/numpad.py
Kovak/KivyNBT
a20a41d1cc7465d772840e786fd7c6791301192f
[ "MIT" ]
null
null
null
flat_kivy/numpad.py
Kovak/KivyNBT
a20a41d1cc7465d772840e786fd7c6791301192f
[ "MIT" ]
2
2017-04-12T16:13:05.000Z
2018-11-21T22:44:57.000Z
from __future__ import unicode_literals, print_function from kivy.uix.widget import Widget from kivy.properties import (StringProperty, NumericProperty, ObjectProperty) from kivy.lang import Builder from flat_kivy.utils import construct_target_file_name Builder.load_file(construct_target_file_name('numpad.kv', _...
37.921348
79
0.626667
3,039
0.900444
0
0
0
0
0
0
63
0.018667
25dcb2f396f296dfd8b14300cac137c91f58f89f
10,271
py
Python
scripts/fsqio/python3-port-utils/pants/futurize.py
jglesner/fsqio
436dd3a7667fd23f638bf96bdcd9ec83266a2319
[ "Apache-2.0" ]
252
2016-01-08T23:12:13.000Z
2022-01-17T16:31:49.000Z
scripts/fsqio/python3-port-utils/pants/futurize.py
jglesner/fsqio
436dd3a7667fd23f638bf96bdcd9ec83266a2319
[ "Apache-2.0" ]
67
2016-01-13T17:34:12.000Z
2021-08-04T18:50:24.000Z
scripts/fsqio/python3-port-utils/pants/futurize.py
jglesner/fsqio
436dd3a7667fd23f638bf96bdcd9ec83266a2319
[ "Apache-2.0" ]
59
2016-03-25T20:49:03.000Z
2021-08-04T05:36:38.000Z
#!/usr/bin/env python3 import argparse import itertools import subprocess import sys import re from glob import glob from textwrap import dedent from typing import List, NamedTuple def main() -> None: parser = create_parser() args = parser.parse_args() # preview changes needed for file if not args.file_name...
32.919872
123
0.620485
133
0.012942
0
0
0
0
0
0
3,190
0.310402
25de7f55ccc72de9bedb0a3470a95db5f08788a1
3,727
py
Python
torb/tests/update_foursight/test_update_foursight.py
4dn-dcic/torb
10aac9d48dd65c59ce4fb29cc53cd5fd85ec7cef
[ "MIT" ]
null
null
null
torb/tests/update_foursight/test_update_foursight.py
4dn-dcic/torb
10aac9d48dd65c59ce4fb29cc53cd5fd85ec7cef
[ "MIT" ]
null
null
null
torb/tests/update_foursight/test_update_foursight.py
4dn-dcic/torb
10aac9d48dd65c59ce4fb29cc53cd5fd85ec7cef
[ "MIT" ]
null
null
null
from ...update_foursight import service import pytest import mock # TODO: This import relates to tests that need to move to dcicutils. See below. # These comments will go away when the move is accomplished. -kmp 10-Apr-2020 # from dcicutils.beanstalk_utils import create_foursight_auto @pytest.fixture def bs_pro...
40.956044
111
0.722297
0
0
0
0
1,476
0.396029
0
0
2,686
0.720687
25df22dfe307df45eab4b57b48d2c6abb54bf112
274
py
Python
src/repository/CredentialsDao.py
Melakeselam/PWDVault
4aea919e48b5a41c64b03e1071d67897dc7f7091
[ "MIT" ]
null
null
null
src/repository/CredentialsDao.py
Melakeselam/PWDVault
4aea919e48b5a41c64b03e1071d67897dc7f7091
[ "MIT" ]
null
null
null
src/repository/CredentialsDao.py
Melakeselam/PWDVault
4aea919e48b5a41c64b03e1071d67897dc7f7091
[ "MIT" ]
null
null
null
from persistence.persistence import Persistence class CredentialsDao: persist = Persistence() def __init__(self) -> None: pass def find_by_host_id(self, host_id): return self.persist.find_by_field_in_table('Credentials', 'host_id', host_id)
21.076923
85
0.715328
222
0.810219
0
0
0
0
0
0
22
0.080292
25e1948389a30a6ca7680e5f23f31956636188e5
2,467
py
Python
example.py
isanich/asyncio-mongo-reflection
138f3b1373bf68562ce63c41833e68bbcc3ac0f2
[ "MIT" ]
5
2017-07-27T21:18:30.000Z
2018-01-30T13:13:35.000Z
example.py
isanich/asyncio-mongo-reflection
138f3b1373bf68562ce63c41833e68bbcc3ac0f2
[ "MIT" ]
null
null
null
example.py
isanich/asyncio-mongo-reflection
138f3b1373bf68562ce63c41833e68bbcc3ac0f2
[ "MIT" ]
null
null
null
import asyncio from motor import motor_asyncio from mongodeque import MongoDequeReflection, MongoDictReflection loop = asyncio.new_event_loop() asyncio.set_event_loop(loop) client = motor_asyncio.AsyncIOMotorClient() db = client.test_db # you should 'await' while reflection instance is created # than there is no di...
39.15873
117
0.71666
0
0
0
0
0
0
413
0.16741
1,736
0.703689
25e203a1f236d488e7a3d1ca0cd29a2ca9047db4
2,581
py
Python
asvtorch/src/frontend/frame_selector.py
ElsevierSoftwareX/SOFTX-D-20-00038
9c656dd55467f4480d4c455106c86519288723c3
[ "MIT" ]
1
2021-05-25T05:45:32.000Z
2021-05-25T05:45:32.000Z
asvtorch/src/frontend/frame_selector.py
ElsevierSoftwareX/SOFTX-D-20-00038
9c656dd55467f4480d4c455106c86519288723c3
[ "MIT" ]
null
null
null
asvtorch/src/frontend/frame_selector.py
ElsevierSoftwareX/SOFTX-D-20-00038
9c656dd55467f4480d4c455106c86519288723c3
[ "MIT" ]
1
2021-08-03T15:48:51.000Z
2021-08-03T15:48:51.000Z
# Copyright 2020 Ville Vestman # This file is licensed under the MIT license (see LICENSE.txt). import sys import numpy as np from asvtorch.src.settings.settings import Settings # This class is used to for storing and applying VAD and diarization labels. class FrameSelector: def __init__(self, boolean_selectors...
52.673469
130
0.683069
2,322
0.899651
0
0
0
0
0
0
431
0.16699
25e2b15a5cf678f9bd3a219785267c2408cc430f
302
py
Python
MoinMoin/filter/text_html.py
RealTimeWeb/wikisite
66a22c68c172f0ebb3c88a9885ccd33e2d59c3c5
[ "Apache-2.0" ]
null
null
null
MoinMoin/filter/text_html.py
RealTimeWeb/wikisite
66a22c68c172f0ebb3c88a9885ccd33e2d59c3c5
[ "Apache-2.0" ]
3
2020-06-26T21:21:32.000Z
2020-06-26T21:21:36.000Z
wiki/MoinMoin/filter/text_html.py
simtk/src
52086415ef60527e6556698c6e216e4217961d53
[ "BSD-2-Clause", "MIT" ]
2
2017-01-25T20:06:44.000Z
2021-03-25T18:39:55.000Z
# -*- coding: iso-8859-1 -*- """ MoinMoin - text/xml file Filter @copyright: 2006 MoinMoin:ThomasWaldmann @license: GNU GPL, see COPYING for details. """ from MoinMoin.filter.text_xml import execute as xmlfilter def execute(indexobj, filename): return xmlfilter(indexobj, filename)
21.571429
57
0.708609
0
0
0
0
0
0
0
0
165
0.546358
25e45e96fc969578b12ea0d393726bfc7715a3b5
974
py
Python
off_django/migrations/0003_auto_20180405_1228.py
klorophyl/openfoodfacts-django
696e701355af9911e726c5579eacca8989f4c629
[ "Apache-2.0" ]
1
2022-02-02T19:54:34.000Z
2022-02-02T19:54:34.000Z
off_django/migrations/0003_auto_20180405_1228.py
klorophyl/openfoodfacts-django
696e701355af9911e726c5579eacca8989f4c629
[ "Apache-2.0" ]
null
null
null
off_django/migrations/0003_auto_20180405_1228.py
klorophyl/openfoodfacts-django
696e701355af9911e726c5579eacca8989f4c629
[ "Apache-2.0" ]
1
2021-12-27T20:40:18.000Z
2021-12-27T20:40:18.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('off_django', '0002_offfood_serving_quantity'), ] operations = [ migrations.AddField( model_name='offfood', ...
27.828571
60
0.593429
865
0.88809
0
0
0
0
0
0
202
0.207392
25e5141b8f26a32792d80ea7539a59750998a583
3,497
py
Python
test/test_ssmbotocredentialprovider_fakemetadata.py
craighagan/ssmbotocredentialprovider
99fc6c3f9daa63073ca05a7854165e89828a8528
[ "MIT" ]
null
null
null
test/test_ssmbotocredentialprovider_fakemetadata.py
craighagan/ssmbotocredentialprovider
99fc6c3f9daa63073ca05a7854165e89828a8528
[ "MIT" ]
null
null
null
test/test_ssmbotocredentialprovider_fakemetadata.py
craighagan/ssmbotocredentialprovider
99fc6c3f9daa63073ca05a7854165e89828a8528
[ "MIT" ]
null
null
null
import datetime import pytest import mock from copy import deepcopy import os import json import shutil import tempfile import time import botocore.auth import ssmbotocredentialprovider.FakeMetadata FAKE_CRED_CONTENTS = """ [default] aws_access_key_id = fake_access_key aws_secret_access_key = fake_secret_key aws_sess...
34.284314
137
0.664856
3,065
0.876466
0
0
1,338
0.382614
0
0
645
0.184444
25e5490ec477dedc7eb148c4f563b08b5db0e429
864
py
Python
Ene-Jun-2018/Luis Carielo/Primer Parcial/GUI_Strategy.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ene-Jun-2018/Luis Carielo/Primer Parcial/GUI_Strategy.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ene-Jun-2018/Luis Carielo/Primer Parcial/GUI_Strategy.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
import types from tkinter import * su = Tk() su.geometry('300x300+200+300') Label(root, text="Label a : x=0, y=0", bg="#FFFF00", fg="negro").place(x=0, y=0) Label(root, text="Label b : x=50, y=40", bg="#3300CC", fg="blanco").place(x=40, y=30) Label(root, text="Label c : x=75, y=80", bg="#FF0099", fg="negro").place(x=8...
28.8
87
0.668981
188
0.217593
0
0
0
0
0
0
224
0.259259
25e55bfd61a02cfff3e5f2e6263b20a8f3a99a80
1,254
py
Python
core/http/http_process.py
HyokaChen/DailyNewsSpider
ea70c69fb4cf10130a45e00a148246525571c013
[ "MIT" ]
10
2020-07-30T14:46:43.000Z
2021-11-16T12:04:01.000Z
core/http/http_process.py
HyokaChen/DailyNewsSpider
ea70c69fb4cf10130a45e00a148246525571c013
[ "MIT" ]
null
null
null
core/http/http_process.py
HyokaChen/DailyNewsSpider
ea70c69fb4cf10130a45e00a148246525571c013
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @File : http_process.py @Time : 2018/12/15 0015 16:50 @Author : Empty Chan @Contact : chen19941018@gmail.com @Description: @License : (C) Copyright 2016-2017, iFuture Corporation Limited. """ from utils.color import Colored class HTTPProce...
27.26087
73
0.590909
948
0.755981
0
0
96
0.076555
0
0
370
0.295056
25e8506b404a7c43a9263b7405423e9f4f524dd8
1,220
py
Python
src/dino/assets/sprites/dinos.py
I-question-this/dino_game
c7383c2a94d2947cdc9cea6bc7cc5d07e2a18681
[ "MIT" ]
null
null
null
src/dino/assets/sprites/dinos.py
I-question-this/dino_game
c7383c2a94d2947cdc9cea6bc7cc5d07e2a18681
[ "MIT" ]
null
null
null
src/dino/assets/sprites/dinos.py
I-question-this/dino_game
c7383c2a94d2947cdc9cea6bc7cc5d07e2a18681
[ "MIT" ]
null
null
null
from functools import partial from dino.assets import DINO_DOUX, DINO_BART, DINO_MORT, DINO_VITA from dino.assets.sprites.spritesheet import SpriteSheet class DinoSpriteSheet(SpriteSheet): def __init__(self, file_name, entity_width, entity_height): super().__init__(file_name=file_name, ...
40.666667
66
0.612295
816
0.668852
0
0
0
0
0
0
94
0.077049
25e923ebbc138832145e35e8b345c5eef1d35dc1
3,710
py
Python
x86cpu/tests/info_getters.py
haiwei-li/x86cpu
3b27596f67acaa6b2498bfb63efadb6bdcc4d46f
[ "BSD-2-Clause" ]
6
2018-09-27T06:15:42.000Z
2021-09-15T18:20:44.000Z
x86cpu/tests/info_getters.py
haiwei-li/x86cpu
3b27596f67acaa6b2498bfb63efadb6bdcc4d46f
[ "BSD-2-Clause" ]
1
2018-09-27T06:17:18.000Z
2018-10-01T07:52:10.000Z
x86cpu/tests/info_getters.py
haiwei-li/x86cpu
3b27596f67acaa6b2498bfb63efadb6bdcc4d46f
[ "BSD-2-Clause" ]
4
2016-06-08T11:32:05.000Z
2021-01-19T19:53:53.000Z
""" Test helpers """ from subprocess import check_output class Missing(object): """ Class to indicate missing info """ SYSCTL_KEY_TRANSLATIONS = dict( model='model_display', family='family_display', extmodel='extended_model', extfamily='extended_family') SYSCTL_FLAG_TRANSLATIONS = { 'sse4...
28.75969
78
0.590296
65
0.01752
0
0
0
0
0
0
1,190
0.320755
25e99ffb1849d1a63c2e56b6a3030cc508c03e6e
108
py
Python
day1/src/hello.py
heron-newland/python
ba67a8134b6a70c7b7c23faebd98cf9e896b6e94
[ "MIT" ]
null
null
null
day1/src/hello.py
heron-newland/python
ba67a8134b6a70c7b7c23faebd98cf9e896b6e94
[ "MIT" ]
null
null
null
day1/src/hello.py
heron-newland/python
ba67a8134b6a70c7b7c23faebd98cf9e896b6e94
[ "MIT" ]
null
null
null
import requests target = 'http://gitbook.cn/' req = requests.get(target) print(req.text) # print(__name__)
15.428571
29
0.722222
0
0
0
0
0
0
0
0
37
0.342593
25ebcb044a317d6d6779de9daae7acf7db7d6196
5,192
py
Python
attribution_printer.py
nickwbarber/hilt-scripts
23df300d27c659da85acdf026a435dee0cb3c868
[ "MIT" ]
1
2018-06-25T17:30:57.000Z
2018-06-25T17:30:57.000Z
attribution_printer.py
nickwbarber/hilt-scripts
23df300d27c659da85acdf026a435dee0cb3c868
[ "MIT" ]
null
null
null
attribution_printer.py
nickwbarber/hilt-scripts
23df300d27c659da85acdf026a435dee0cb3c868
[ "MIT" ]
null
null
null
import os from itertools import chain import gatenlphiltlab import explanatory_style as es def get_sentence(key_annotation): if key_annotation.type.lower() == "sentence": return sentence = next( ( annotation for annotation in tree.search(key_annotation) if an...
22.872247
73
0.574345
0
0
0
0
0
0
0
0
751
0.144646
25ebdcf92c7ed3663b62b783f4225ca5d6c87fdb
555
py
Python
EgammaAnalysis/CSA07Skims/python/egammaVeryHighEtOutputModuleAODSIM_cfi.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
1
2019-08-09T08:42:11.000Z
2019-08-09T08:42:11.000Z
EgammaAnalysis/CSA07Skims/python/egammaVeryHighEtOutputModuleAODSIM_cfi.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
EgammaAnalysis/CSA07Skims/python/egammaVeryHighEtOutputModuleAODSIM_cfi.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
1
2019-04-03T19:23:27.000Z
2019-04-03T19:23:27.000Z
import FWCore.ParameterSet.Config as cms from EgammaAnalysis.CSA07Skims.EgammaSkimEventContent_cff import * from EgammaAnalysis.CSA07Skims.AODSIMEgammaSkimEventContent_cff import * egammaVeryHighEtOutputModuleAODSIM = cms.OutputModule("PoolOutputModule", AODSIMEgammaSkimEventContent, egammaVeryHighEtEventSelec...
34.6875
73
0.790991
0
0
0
0
0
0
0
0
77
0.138739
25f0a89f4a14bb7d9ceabe42f6d7834a45f7d81e
777
py
Python
07-numpy-lab/ufuncs.py
iproduct/coulse-ml
65577fd4202630d3d5cb6333ddc51cede750fb5a
[ "Apache-2.0" ]
1
2020-10-02T15:48:42.000Z
2020-10-02T15:48:42.000Z
07-numpy-lab/ufuncs.py
iproduct/coulse-ml
65577fd4202630d3d5cb6333ddc51cede750fb5a
[ "Apache-2.0" ]
null
null
null
07-numpy-lab/ufuncs.py
iproduct/coulse-ml
65577fd4202630d3d5cb6333ddc51cede750fb5a
[ "Apache-2.0" ]
null
null
null
import numpy as np if __name__ == '__main__': x = [1, 2, 3, 4] y = [5, 6, 7, 8] z = [] for i, j in zip(x, y): z.append(str(i) + str(j)) print(z) def myconcat(x, y): return int(str(x) + str(y)) uconcat = np.frompyfunc(myconcat, 2, 1) arrx = np.array(x).reshape(2, 2) a...
23.545455
49
0.504505
0
0
0
0
0
0
0
0
80
0.10296
25f0b8b673353f38381475af0f7d909f9123b249
2,632
py
Python
bootstrap.py
rockwotj/dotfiles
cb48f3b729e0b650ebc4313c8003eb872024fa92
[ "MIT" ]
null
null
null
bootstrap.py
rockwotj/dotfiles
cb48f3b729e0b650ebc4313c8003eb872024fa92
[ "MIT" ]
null
null
null
bootstrap.py
rockwotj/dotfiles
cb48f3b729e0b650ebc4313c8003eb872024fa92
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import os import subprocess PARSER = argparse.ArgumentParser(description = "Bootstrap personal config") PARSER.add_argument( "-f", "--force", action = "store_true", help = "overwrite existing config files?", dest = "force", default...
27.416667
82
0.566109
0
0
0
0
0
0
0
0
747
0.283815
25f1c405e4f3a4b85b51c9e272095b3855de010f
3,137
py
Python
leetcode_python/Array/valid-word-square.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/Array/valid-word-square.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Array/valid-word-square.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
""" LeetCode 422. Valid Word Square Given a sequence of words, check whether it forms a valid word square. A sequence of words forms a valid word square if the kth row and column read the exact same string, where 0 ≤ k < max(numRows, numColumns). Note: The number of words given is at least 1 and does not exceed 500...
22.731884
139
0.582404
1,416
0.450812
0
0
0
0
0
0
1,934
0.615727
25f41f339374660d167de55f5724857acef6f27c
1,106
py
Python
tests/compiler/test_inline_list_compilation.py
ofples/thinglang
b1391e8fb42d518fc0018400eecb608d18da915a
[ "MIT" ]
5
2017-11-07T21:32:22.000Z
2019-06-30T18:35:17.000Z
tests/compiler/test_inline_list_compilation.py
ofples/thinglang
b1391e8fb42d518fc0018400eecb608d18da915a
[ "MIT" ]
null
null
null
tests/compiler/test_inline_list_compilation.py
ofples/thinglang
b1391e8fb42d518fc0018400eecb608d18da915a
[ "MIT" ]
1
2020-03-25T18:14:08.000Z
2020-03-25T18:14:08.000Z
import pytest from tests.compiler import compile_snippet, internal_call, STATIC_START, LOCAL_START from thinglang.compiler.errors import NoMatchingOverload, InvalidReference from thinglang.compiler.opcodes import OpcodePopLocal, OpcodePushStatic def test_inline_list_compilation(): assert compile_snippet('list<n...
31.6
96
0.726944
0
0
0
0
0
0
0
0
261
0.235986
25f45c247e27f0d9f1285b78478c3c7ff114ba00
3,143
py
Python
COT/platforms/cisco_csr1000v.py
morneaup/cot
3d4dc7079a33aa0c09216ec339b44f84ab69ff4b
[ "MIT" ]
81
2015-01-18T22:31:42.000Z
2022-03-14T12:34:33.000Z
COT/platforms/cisco_csr1000v.py
morneaup/cot
3d4dc7079a33aa0c09216ec339b44f84ab69ff4b
[ "MIT" ]
67
2015-01-05T15:24:39.000Z
2021-08-16T12:44:58.000Z
COT/platforms/cisco_csr1000v.py
morneaup/cot
3d4dc7079a33aa0c09216ec339b44f84ab69ff4b
[ "MIT" ]
20
2015-07-09T14:20:25.000Z
2021-09-18T17:59:57.000Z
# September 2016, Glenn F. Matthews # Copyright (c) 2013-2017 the COT project developers. # See the COPYRIGHT.txt file at the top-level directory of this distribution # and at https://github.com/glennmatthews/cot/blob/master/COPYRIGHT.txt. # # This file is part of the Common OVF Tool (COT) project. # It is subject to t...
34.163043
78
0.652561
2,193
0.697741
0
0
0
0
0
0
1,920
0.610881
25f474ba951a586d08fc977e2491327ce7286967
2,421
py
Python
rewinder.py
CatMe0w/rewinder_rollwinder
4092c3d2b238fa838386ae0b8c68a1a0674d5332
[ "MIT" ]
null
null
null
rewinder.py
CatMe0w/rewinder_rollwinder
4092c3d2b238fa838386ae0b8c68a1a0674d5332
[ "MIT" ]
null
null
null
rewinder.py
CatMe0w/rewinder_rollwinder
4092c3d2b238fa838386ae0b8c68a1a0674d5332
[ "MIT" ]
null
null
null
import requests import logging import time import json TIEBA_NAME = '' BDUSS = '' TIEBA_FID = 0 # 从 https://tieba.baidu.com/f/commit/share/fnameShareApi?fname=(贴吧名) 复制fid字段 session = requests.Session() def rewind(tid, pid=0): cookies = { 'BDUSS': BDUSS, } headers = { 'sec-ch-ua': '" No...
29.52439
140
0.551838
0
0
0
0
0
0
0
0
894
0.366844
25facd889b29b9ae267203e862e6cd3bd007fecf
5,250
py
Python
tac/platform/shared_sim_status.py
fetchai/agents-tac
9e7de7cf6a43fff789972f6d7a3ed906858009e0
[ "Apache-2.0" ]
29
2019-07-17T08:58:19.000Z
2021-12-08T19:25:22.000Z
tac/platform/shared_sim_status.py
fetchai/agents-tac
9e7de7cf6a43fff789972f6d7a3ed906858009e0
[ "Apache-2.0" ]
90
2019-07-03T09:19:15.000Z
2022-01-20T10:37:48.000Z
tac/platform/shared_sim_status.py
fetchai/agents-tac
9e7de7cf6a43fff789972f6d7a3ed906858009e0
[ "Apache-2.0" ]
8
2019-07-12T11:06:54.000Z
2020-05-29T18:54:51.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You m...
34.090909
117
0.675619
522
0.099429
0
0
0
0
0
0
2,536
0.483048
25faff081a1e019d56f15b0c1008f23995f1bd3a
396
py
Python
tests/pipeline/test_service.py
guilhermewebdev/esteira
0bd0a3193992f9c63d36627d73d43d8b84c51779
[ "MIT" ]
null
null
null
tests/pipeline/test_service.py
guilhermewebdev/esteira
0bd0a3193992f9c63d36627d73d43d8b84c51779
[ "MIT" ]
null
null
null
tests/pipeline/test_service.py
guilhermewebdev/esteira
0bd0a3193992f9c63d36627d73d43d8b84c51779
[ "MIT" ]
null
null
null
from esteira.pipeline.service import Service def test_instance(): envs = { "POSTGRES_DB": "nice_marmot", "POSTGRES_USER": "runner", "POSTGRES_PASSWORD": "pass", "POSTGRES_HOST_AUTH_METHOD": "trust", } service = Service( 'postgres', external_envs=envs ) ...
24.75
45
0.606061
0
0
0
0
0
0
0
0
124
0.313131
25fb85613510c08883b82eb0088b2736f85368fb
25
py
Python
__init__.py
wormtooth/miner
8ba161b5db0211994799b2d84e359f3fb4c14392
[ "MIT" ]
1
2017-10-01T04:43:11.000Z
2017-10-01T04:43:11.000Z
__init__.py
wormtooth/miner
8ba161b5db0211994799b2d84e359f3fb4c14392
[ "MIT" ]
null
null
null
__init__.py
wormtooth/miner
8ba161b5db0211994799b2d84e359f3fb4c14392
[ "MIT" ]
null
null
null
from .miner import Miner
12.5
24
0.8
0
0
0
0
0
0
0
0
0
0
25fb886061f27d9e7c039a4007d5e1dff34ab864
2,360
py
Python
LAB_06/process_turtle_follow.py
vhorvat/psr_FER
18e05e127cc41a4102b3578ff5986575ab5e5540
[ "MIT" ]
null
null
null
LAB_06/process_turtle_follow.py
vhorvat/psr_FER
18e05e127cc41a4102b3578ff5986575ab5e5540
[ "MIT" ]
null
null
null
LAB_06/process_turtle_follow.py
vhorvat/psr_FER
18e05e127cc41a4102b3578ff5986575ab5e5540
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import rosbag import sys import math def getEuclidianDistanceOfTwoDots(x1, y1, x2, y2): distance=math.sqrt(math.pow(x2-x1, 2)+math.pow(y2-y1, 2)) return distance def getTotalTurtleDistance(xPoses, yPoses): overallDistance=0 for i in range(len(xPoses)-1): distance=getEuc...
32.777778
110
0.662712
0
0
0
0
0
0
0
0
440
0.186441
25fc5f6e0c01ba67a5687398c8403a5380a5ac0e
2,176
py
Python
videostreams.py
agnanp/multithreading-videostream
c3d47f2f68d4d238f0923909c5cce5de42ae35a4
[ "MIT" ]
null
null
null
videostreams.py
agnanp/multithreading-videostream
c3d47f2f68d4d238f0923909c5cce5de42ae35a4
[ "MIT" ]
null
null
null
videostreams.py
agnanp/multithreading-videostream
c3d47f2f68d4d238f0923909c5cce5de42ae35a4
[ "MIT" ]
null
null
null
from threading import Thread import datetime import cv2 class FPS: """docstring for FPS""" def __init__(self): self._start = None self._end = None self._numFrames = 0 def start(self): self._start = datetime.datetime.now() return self def stop(self): self._end = datetime.datetime.now() def update(se...
20.72381
57
0.705423
2,111
0.970129
0
0
0
0
0
0
36
0.016544
25fda1fbb8aa9a9005081e4fef7a028981b11dfd
6,592
py
Python
docker/storperf-master/tests/db_tests/job_db_test.py
hashnfv/hashnfv-storperf
9eebe429ae9ec58a593611063da5b541634f8932
[ "Apache-2.0" ]
null
null
null
docker/storperf-master/tests/db_tests/job_db_test.py
hashnfv/hashnfv-storperf
9eebe429ae9ec58a593611063da5b541634f8932
[ "Apache-2.0" ]
null
null
null
docker/storperf-master/tests/db_tests/job_db_test.py
hashnfv/hashnfv-storperf
9eebe429ae9ec58a593611063da5b541634f8932
[ "Apache-2.0" ]
null
null
null
############################################################################## # Copyright (c) 2016 EMC and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # ht...
33.125628
79
0.569023
6,019
0.913076
0
0
5,390
0.817658
0
0
1,844
0.279733
25fde68ac183e9483da5a54efc052b95382967de
16,381
py
Python
rstoolbox/utils/tools.py
sesterhe/RosettaSilentToolbox
010941b9b20974c61a86858bfb73d5913afc6849
[ "MIT" ]
14
2019-01-22T15:56:58.000Z
2022-02-07T23:49:50.000Z
rstoolbox/utils/tools.py
sesterhe/RosettaSilentToolbox
010941b9b20974c61a86858bfb73d5913afc6849
[ "MIT" ]
null
null
null
rstoolbox/utils/tools.py
sesterhe/RosettaSilentToolbox
010941b9b20974c61a86858bfb73d5913afc6849
[ "MIT" ]
2
2020-05-23T20:39:15.000Z
2022-02-07T23:49:57.000Z
# -*- coding: utf-8 -*- """ .. codeauthor:: Jaume Bonet <jaume.bonet@gmail.com> .. affiliation:: Laboratory of Protein Design and Immunoengineering <lpdi.epfl.ch> Bruno Correia <bruno.correia@epfl.ch> .. func:: format_Ipython .. func:: use_qgrid .. func:: add_column .. func:: split_values .. func:: make_roset...
38.273364
116
0.622856
0
0
0
0
0
0
0
0
10,284
0.627762
25fe1f2c8cff99110b6f98d36969565d8bab1254
330
py
Python
MS2-Advanced/masking.py
PNightOwlY/opencv-course
71f59327a9c2226144c16aaa42157d32bd392cca
[ "MIT" ]
null
null
null
MS2-Advanced/masking.py
PNightOwlY/opencv-course
71f59327a9c2226144c16aaa42157d32bd392cca
[ "MIT" ]
null
null
null
MS2-Advanced/masking.py
PNightOwlY/opencv-course
71f59327a9c2226144c16aaa42157d32bd392cca
[ "MIT" ]
null
null
null
import cv2 as cv import numpy as np url = '../Resources/Photos/cats.jpg' img = cv.imread(url) cv.imshow('Cat', img) blank = np.zeros(img.shape[:2], dtype='uint8') mask = cv.circle(blank, (img.shape[1]//2, img.shape[0]//2),100, 255, -1) masked = cv.bitwise_and(img, img, mask=mask) cv.imshow("Masked" ,masked) cv....
18.333333
63
0.663636
0
0
0
0
0
0
0
0
50
0.151515
25fe70c6716bab3b914801edf65e0cf06f5c0d9b
1,990
py
Python
essay_scoring/dataloader.py
tushar117/Transformer-Models-for-Text-Coherence-Assessment
041c6f00b606550461423ffff945f84dbfce6e3b
[ "MIT" ]
6
2022-02-27T08:24:04.000Z
2022-03-22T09:00:56.000Z
essay_scoring/dataloader.py
tushar117/Transformer-Models-for-Text-Coherence-Assessment
041c6f00b606550461423ffff945f84dbfce6e3b
[ "MIT" ]
2
2022-03-02T18:50:15.000Z
2022-03-04T06:04:19.000Z
essay_scoring/dataloader.py
tushar117/Transformer-Models-for-Text-Coherence-Assessment
041c6f00b606550461423ffff945f84dbfce6e3b
[ "MIT" ]
null
null
null
import torch import json import os, sys import linecache from torch.utils.data import DataLoader, TensorDataset, Dataset # required to access the python modules present in project directory currentdir = os.path.dirname(os.path.realpath(__file__)) parentdir = os.path.dirname(currentdir) sys.path.append(parentdir) # no...
36.851852
133
0.693467
1,311
0.658794
0
0
0
0
0
0
464
0.233166
25febbf66a03d58b0c47f5e8861e698f5ed1d6ea
51
py
Python
solascriptura/modules/__init__.py
glitchassassin/sola-scriptura
fd8b56c0f3278a254849451b72086cefe0734866
[ "MIT" ]
2
2018-09-17T21:05:02.000Z
2020-05-22T21:23:10.000Z
solascriptura/modules/__init__.py
glitchassassin/sola-scriptura
fd8b56c0f3278a254849451b72086cefe0734866
[ "MIT" ]
6
2018-01-04T21:38:58.000Z
2018-01-08T03:15:22.000Z
solascriptura/modules/__init__.py
glitchassassin/sola-scriptura
fd8b56c0f3278a254849451b72086cefe0734866
[ "MIT" ]
1
2019-11-22T17:58:47.000Z
2019-11-22T17:58:47.000Z
## Placeholder - SWORD modules go in this directory
51
51
0.784314
0
0
0
0
0
0
0
0
51
1
25feeac7b261ec353d3c3925b8c071f4b0bf6332
6,835
py
Python
scripts/imgurloader.py
lorenzhs/thinkscripts
71a80b44e3221a2007b76813c455366d28016b5a
[ "BSD-2-Clause-FreeBSD" ]
1
2016-03-29T07:23:30.000Z
2016-03-29T07:23:30.000Z
scripts/imgurloader.py
lorenzhs/thinkscripts
71a80b44e3221a2007b76813c455366d28016b5a
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
scripts/imgurloader.py
lorenzhs/thinkscripts
71a80b44e3221a2007b76813c455366d28016b5a
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ imguralbum.py - Download a whole imgur album or account in one go. MIT License Copyright Alex Gisby <alex@solution10.com>, Lorenz H-S <thinkscripts@4z2.de> """ import sys import re import urllib import os import math help_message = ''' Quickly and easily download an album ...
37.146739
201
0.598098
5,284
0.77308
0
0
0
0
0
0
2,571
0.376152
d30240c25d80ebae361eb9115fcaca91e584c3a4
5,305
py
Python
oblio.py
billvb/oblio-game
c1c95b9d7bffe4e2841a978e4338cf72c38174ac
[ "MIT" ]
2
2016-03-20T03:03:18.000Z
2021-02-15T22:23:44.000Z
oblio.py
billvb/oblio-game
c1c95b9d7bffe4e2841a978e4338cf72c38174ac
[ "MIT" ]
null
null
null
oblio.py
billvb/oblio-game
c1c95b9d7bffe4e2841a978e4338cf72c38174ac
[ "MIT" ]
null
null
null
""" oblio.py: A framework to collect and trade algorithms with your friends to play Oblio. A talented and trained human get average about 12-15 guesses before converging on the solution. What can your algorithm do? To play Oblio: - There exists a secret 4-digit number in which no two digits are the same. ...
35.13245
89
0.626202
1,945
0.366635
0
0
0
0
0
0
1,916
0.361169
d30280339f281a9b13770d8cd558ca3d4224e5b2
3,907
py
Python
data/getAverage.py
BenjaminDeJager/ai_project
02bc3e92dc0bde8267c60ee4ba1efedd421e382e
[ "MIT" ]
1
2021-05-01T05:39:21.000Z
2021-05-01T05:39:21.000Z
data/getAverage.py
BenjaminDeJager/ai_project
02bc3e92dc0bde8267c60ee4ba1efedd421e382e
[ "MIT" ]
null
null
null
data/getAverage.py
BenjaminDeJager/ai_project
02bc3e92dc0bde8267c60ee4ba1efedd421e382e
[ "MIT" ]
null
null
null
files = [] outFile = open("Out.csv",'w') numFiles = int(input("num of files: ")) samplePoints = int(input("num of sample points: ")) for i in range(numFiles): file = open("Run#"+str(i+1)+".csv",'r') files.append(file) #print(files[i].readline().strip()) i = 0 outFile.write("Ants,Larva,Foo...
30.286822
83
0.502687
0
0
0
0
0
0
0
0
1,151
0.294599
d3030e29ce0e4ec52ab9dc86357738a3510047e0
2,597
py
Python
FaceppApi.py
qzylalala/FaceScoring
2e18268e997060f1be0a4eb86aa9893823a9e2b4
[ "MIT" ]
null
null
null
FaceppApi.py
qzylalala/FaceScoring
2e18268e997060f1be0a4eb86aa9893823a9e2b4
[ "MIT" ]
null
null
null
FaceppApi.py
qzylalala/FaceScoring
2e18268e997060f1be0a4eb86aa9893823a9e2b4
[ "MIT" ]
null
null
null
# -*-coding:utf-8-*- ''' @author : qzylalala @file : FaceppApi.py @time : 2020-09-07 19:04 ''' import urllib.request import urllib.error import json import time http_url = 'https://api-cn.faceplusplus.com/facepp/v3/detect' key = "xxx" secret = "xxx" # use your own key and secret key #---------------------------...
36.577465
144
0.588756
0
0
0
0
0
0
0
0
1,309
0.504043
d30337653c964374efa52a98be6cae3742cf83f3
5,818
py
Python
project1/pacmanAgents.py
Plastix/CSC-320
4c8802d0ceeffbea77bd1ef5f21d27d4de80dbb6
[ "MIT" ]
null
null
null
project1/pacmanAgents.py
Plastix/CSC-320
4c8802d0ceeffbea77bd1ef5f21d27d4de80dbb6
[ "MIT" ]
null
null
null
project1/pacmanAgents.py
Plastix/CSC-320
4c8802d0ceeffbea77bd1ef5f21d27d4de80dbb6
[ "MIT" ]
null
null
null
# pacmanAgents.py # --------------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to # http://inst....
32.870056
116
0.636473
4,853
0.834135
0
0
0
0
0
0
1,662
0.285665
d304caea20565e073d1d1120d20a6ebff5de1e6c
8,898
py
Python
MNAC/tk.py
yunruse/MNAC
2c7a41c1c2e9b69caa80e9ae8018301ce214514c
[ "CC-BY-4.0" ]
1
2018-07-02T10:07:04.000Z
2018-07-02T10:07:04.000Z
MNAC/tk.py
yunruse/MNAC
2c7a41c1c2e9b69caa80e9ae8018301ce214514c
[ "CC-BY-4.0" ]
null
null
null
MNAC/tk.py
yunruse/MNAC
2c7a41c1c2e9b69caa80e9ae8018301ce214514c
[ "CC-BY-4.0" ]
null
null
null
''' Tkinter implementation of Meta Noughts and Crosses. Requires Python >3.6, tkinter and mnac. 1.0: release 1.1: keyboard indicators / keyboard controls are like numpad 1.2: new status menu, controls, help menu 1.3: better mouse handling 1.4: UI tweaks and touchups ''' import random import os import tkinter as tk i...
31.778571
92
0.53675
8,393
0.943246
0
0
0
0
0
0
1,908
0.21443
d3065f109a6ce326cbde2152a2c5536f9adbb3e1
16,288
py
Python
tests/test_pyros_schemas/test_schema.py
pyros-dev/pyros-schemas
a460920260ee77a1b5b6d5c0b97df52f1572ff79
[ "MIT" ]
3
2018-01-01T17:10:16.000Z
2018-11-15T15:41:46.000Z
tests/test_pyros_schemas/test_schema.py
pyros-dev/pyros-schemas
a460920260ee77a1b5b6d5c0b97df52f1572ff79
[ "MIT" ]
7
2018-02-02T10:05:55.000Z
2018-02-17T15:15:46.000Z
tests/test_pyros_schemas/test_schema.py
pyros-dev/pyros-schemas
a460920260ee77a1b5b6d5c0b97df52f1572ff79
[ "MIT" ]
2
2017-09-27T09:46:31.000Z
2018-02-02T09:37:13.000Z
from __future__ import absolute_import, print_function import pytest from pyros_schemas.ros.schemagic import create from . import six_long import hypothesis import hypothesis.strategies as st import std_msgs.msg as std_msgs import genpy from . import msg as pyros_schemas_test_msgs from .strategies.ros import st...
47.905882
174
0.786591
0
0
0
0
7,587
0.465774
0
0
5,096
0.312849
d3077603bb2759da9e55fab6315ffbbd7ba20959
1,974
py
Python
Enemy.py
AleksCoolS/DungeonProject2
c91876f9ce131cb76fde7222f949868ce844641b
[ "Unlicense" ]
null
null
null
Enemy.py
AleksCoolS/DungeonProject2
c91876f9ce131cb76fde7222f949868ce844641b
[ "Unlicense" ]
null
null
null
Enemy.py
AleksCoolS/DungeonProject2
c91876f9ce131cb76fde7222f949868ce844641b
[ "Unlicense" ]
null
null
null
from GameObjects import * from settings import * class enemy(Creature): def __init__(self, position, textureSize, textureNames, textureParams, health, end): super().__init__(position, textureSize, textureNames, textureParams, health) self.end = end self.path = [self.x, self.end] sel...
27.802817
88
0.508105
1,923
0.974164
0
0
0
0
0
0
181
0.091692
d3078d6d9c2eef3d6ce0b11fd27c70571e72b5d8
374
py
Python
app/__init__.py
4398-mg/REST_api
6cde29ed5853798802ef3cd1e89e10bd1ddf55ee
[ "Apache-2.0" ]
2
2018-01-30T01:13:02.000Z
2018-11-19T20:37:53.000Z
app/__init__.py
lawja/FlaskAppTemplate
785cc4b84566e9edd901245fa94ba892f696be05
[ "Apache-2.0" ]
2
2019-03-18T19:21:21.000Z
2019-03-29T20:15:01.000Z
app/__init__.py
lawja/FlaskAppTemplate
785cc4b84566e9edd901245fa94ba892f696be05
[ "Apache-2.0" ]
1
2019-02-28T19:39:31.000Z
2019-02-28T19:39:31.000Z
from flask import Flask from config import config import os def create_app(config_name): app = Flask(__name__) config_name = os.getenv('FLASK_CONFIGURATION', 'default') app.config.from_object(config[config_name]) config[config_name].init_app(app) from .main import main as main_blueprint app.r...
23.375
61
0.743316
0
0
0
0
0
0
0
0
30
0.080214
d3098d8f260b9bb738a94d1506194ece68a54f8c
26,353
py
Python
gamd/langevin/base_integrator.py
lillgroup/GaMD-OpenMM
4b00eb8feb327cd8db51c28c9b0b246dee12bf5a
[ "MIT" ]
null
null
null
gamd/langevin/base_integrator.py
lillgroup/GaMD-OpenMM
4b00eb8feb327cd8db51c28c9b0b246dee12bf5a
[ "MIT" ]
null
null
null
gamd/langevin/base_integrator.py
lillgroup/GaMD-OpenMM
4b00eb8feb327cd8db51c28c9b0b246dee12bf5a
[ "MIT" ]
null
null
null
""" gamd.py: Implements the GaMD integration method. Portions copyright (c) 2020 University of Kansas Authors: Matthew Copeland, Yinglong Miao Contributors: Lane Votapka """ from __future__ import absolute_import __author__ = "Matthew Copeland" __version__ = "1.0" from simtk import unit as unit from abc import ABC...
53.346154
199
0.644708
25,741
0.976777
0
0
1,390
0.052745
0
0
11,692
0.443669
d30a980368b44952326b7f77662802b2e9c11e3d
4,031
py
Python
combiner/combiner/jax/model/seq_summary.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-13T21:48:52.000Z
2022-03-13T21:48:52.000Z
combiner/combiner/jax/model/seq_summary.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
combiner/combiner/jax/model/seq_summary.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
34.161017
119
0.717688
2,338
0.580005
0
0
1,190
0.295212
0
0
1,164
0.288762
d30aa2b8ad3b8e1e64e065adc63f6c47c9d9af5b
391
py
Python
rl/tools/normalizers/__init__.py
haamoon/librl
f9fc633b79c1bec1cd1b1a275834eb5221cffff3
[ "MIT" ]
3
2019-08-11T23:25:17.000Z
2021-08-24T13:24:01.000Z
rl/tools/normalizers/__init__.py
haamoon/librl
f9fc633b79c1bec1cd1b1a275834eb5221cffff3
[ "MIT" ]
6
2020-01-28T22:45:38.000Z
2022-02-10T00:13:42.000Z
rl/tools/normalizers/__init__.py
haamoon/librl
f9fc633b79c1bec1cd1b1a275834eb5221cffff3
[ "MIT" ]
3
2019-07-03T21:18:27.000Z
2019-10-03T04:51:55.000Z
from .normalizer import OnlineNormalizer, NormalizerStd, NormalizerMax, NormalizerId from .tf_normalizer import tfNormalizer, tfNormalizerMax, tfNormalizerStd, tfNormalizerId def create_build_nor_from_str(nor_cls_str, nor_kwargs): nor_cls = globals()[nor_cls_str] def build_nor(shape): return nor_cls(...
35.545455
89
0.792839
0
0
0
0
0
0
0
0
0
0
d30ca1b7e7c2b5a920b604537cdc6d9944516edb
330
py
Python
fdk_client/platform/models/PlatformShipmentTrack.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/platform/models/PlatformShipmentTrack.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/platform/models/PlatformShipmentTrack.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
"""Platform Models.""" from marshmallow import fields, Schema from marshmallow.validate import OneOf from ..enums import * from ..models.BaseSchema import BaseSchema from .Results import Results class PlatformShipmentTrack(BaseSchema): # Order swagger.json results = fields.Nested(Results, required=Fal...
18.333333
52
0.748485
124
0.375758
0
0
0
0
0
0
42
0.127273
d30cbc4e8c45e3609e5a516620fd13593cdf577b
833
py
Python
bot/views.py
toast38coza/API.AI-FullfillmentBackend
9b5ac39fbe5b9f5ffe7126890a4aca3e9307c106
[ "MIT" ]
1
2016-12-12T08:05:05.000Z
2016-12-12T08:05:05.000Z
bot/views.py
toast38coza/API.AI-FullfillmentBackend
9b5ac39fbe5b9f5ffe7126890a4aca3e9307c106
[ "MIT" ]
null
null
null
bot/views.py
toast38coza/API.AI-FullfillmentBackend
9b5ac39fbe5b9f5ffe7126890a4aca3e9307c106
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import JsonResponse from django.views.decorators.csrf import csrf_exempt from . import actions import json router = { 'create.appointment': actions.debug } def get_payload(request): # work out how to do this: request_json = request.body.decode('utf-8') ...
28.724138
66
0.713085
0
0
0
0
194
0.232893
0
0
131
0.157263
d30dd6af77f73cd7074e5c34960a027a07ad307d
874
py
Python
tests/unit/test_trust.py
joeblackwaslike/gpgkeyring
65d595c2db2007eff400f929307fb3a036b7069c
[ "MIT" ]
null
null
null
tests/unit/test_trust.py
joeblackwaslike/gpgkeyring
65d595c2db2007eff400f929307fb3a036b7069c
[ "MIT" ]
null
null
null
tests/unit/test_trust.py
joeblackwaslike/gpgkeyring
65d595c2db2007eff400f929307fb3a036b7069c
[ "MIT" ]
null
null
null
import pytest import gpgkeyring from ..helpers import testdata TRUST_VALUE_MAP = gpgkeyring.trust._TRUST_MAP.items() class TestEnum: @pytest.fixture(params=testdata.TRUST_LEVELS) def level(self, request): yield request.param def test_trust_level_value(self, level): assert getattr(gpgk...
24.277778
78
0.685355
748
0.855835
53
0.060641
271
0.310069
0
0
25
0.028604
d30f5ec11518bb2f3f9914d1e8b20fbb8786d7a3
1,866
py
Python
src/sentry/lang/javascript/cache.py
noscripter/sentry
1c5b1b53e740ffd2747afb7f0995e026be9468d0
[ "BSD-3-Clause" ]
20
2016-10-01T04:29:24.000Z
2020-10-09T07:23:34.000Z
src/sentry/lang/javascript/cache.py
fotinakis/sentry
c5cfa5c5e47475bf5ef41e702548c2dfc7bb8a7c
[ "BSD-3-Clause" ]
null
null
null
src/sentry/lang/javascript/cache.py
fotinakis/sentry
c5cfa5c5e47475bf5ef41e702548c2dfc7bb8a7c
[ "BSD-3-Clause" ]
7
2016-10-27T05:12:45.000Z
2021-05-01T14:29:53.000Z
from __future__ import absolute_import, print_function __all__ = ['SourceCache', 'SourceMapCache'] class SourceCache(object): def __init__(self): self._cache = {} self._errors = {} self._aliases = {} def __contains__(self, url): url = self._get_canonical_url(url) retu...
26.28169
56
0.613076
1,760
0.943194
0
0
0
0
0
0
29
0.015541
d30ff44dec9fff8e6bee775fc45c618a79c2122e
5,536
py
Python
trainers.py
dmrd/dnn
ed13beeccf92eccfd7ac8fe2eee63ab3a677a245
[ "MIT" ]
3
2015-05-01T15:10:45.000Z
2019-09-29T13:53:11.000Z
trainers.py
dmrd/dnn
ed13beeccf92eccfd7ac8fe2eee63ab3a677a245
[ "MIT" ]
null
null
null
trainers.py
dmrd/dnn
ed13beeccf92eccfd7ac8fe2eee63ab3a677a245
[ "MIT" ]
null
null
null
def initialize_states(model, data): """ Initialize states for a deep boltzmann machine given data. Double weights up to account for lack of top down input """ states = [data] for i, connection in enumerate(model.connections[:-1]): states.append(model.layers[i + 1].expectation(connection....
31.276836
92
0.621749
4,442
0.802384
0
0
0
0
0
0
1,212
0.218931
d310043c938a0295df161c636147ae3eddff7fcf
569
py
Python
intera_interface/src/intera_motion_interface/__init__.py
thinclab/intera_sdk
556de67a88049687404734404e16b147943cde3c
[ "Apache-2.0" ]
38
2017-01-20T15:44:22.000Z
2022-01-28T15:15:40.000Z
intera_interface/src/intera_motion_interface/__init__.py
thinclab/intera_sdk
556de67a88049687404734404e16b147943cde3c
[ "Apache-2.0" ]
47
2016-12-16T19:41:03.000Z
2022-03-21T14:04:04.000Z
intera_interface/src/intera_motion_interface/__init__.py
thinclab/intera_sdk
556de67a88049687404734404e16b147943cde3c
[ "Apache-2.0" ]
52
2017-02-03T13:26:23.000Z
2021-03-16T14:25:51.000Z
from .motion_controller_action_client import MotionControllerActionClient from .motion_trajectory import MotionTrajectory from .motion_waypoint import MotionWaypoint from .motion_waypoint_options import MotionWaypointOptions from .interaction_options import InteractionOptions from .interaction_publisher import Interact...
33.470588
73
0.852373
0
0
0
0
0
0
0
0
0
0
d3106810ea3b19472343688d970458b005ab7d80
673
py
Python
src/examples/tutorial/ascent_intro/python/conduit_example1.py
srini009/ascent
70558059dc3fe514206781af6e48715d8934c37c
[ "BSD-3-Clause" ]
null
null
null
src/examples/tutorial/ascent_intro/python/conduit_example1.py
srini009/ascent
70558059dc3fe514206781af6e48715d8934c37c
[ "BSD-3-Clause" ]
null
null
null
src/examples/tutorial/ascent_intro/python/conduit_example1.py
srini009/ascent
70558059dc3fe514206781af6e48715d8934c37c
[ "BSD-3-Clause" ]
null
null
null
############################################################################### # Copyright (c) Lawrence Livermore National Security, LLC and other Ascent # Project developers. See top-level LICENSE AND COPYRIGHT files for dates and # other details. No copyright assignment is required to contribute to Ascent. #########...
33.65
79
0.572065
0
0
0
0
0
0
0
0
579
0.860327
d31206d9d66ed5d70b28e29ae463a9a13242487b
4,721
py
Python
shop/models/cartmodel.py
christianbertschy/django-shop
432a15b17b8d09d8a3fece23709dd91d113f37e3
[ "BSD-3-Clause" ]
1
2015-09-24T00:36:32.000Z
2015-09-24T00:36:32.000Z
shop/models/cartmodel.py
christianbertschy/django-shop
432a15b17b8d09d8a3fece23709dd91d113f37e3
[ "BSD-3-Clause" ]
null
null
null
shop/models/cartmodel.py
christianbertschy/django-shop
432a15b17b8d09d8a3fece23709dd91d113f37e3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from decimal import Decimal from django.contrib.auth.models import User from django.db import models from shop.cart.modifiers_pool import cart_modifiers_pool from shop.models.productmodel import Product class Cart(models.Model): ''' This should be a rather simple list of items. Ideally ...
41.052174
92
0.640119
4,473
0.947469
0
0
0
0
0
0
1,987
0.420885
d313b7e118a7a494f6f99c74595b300841e68193
1,200
py
Python
src/213-HouseRobberII.py
Jiezhi/myleetcode
b346e94c46da2a3033ebc8ff50e621aa179c4f62
[ "MIT" ]
1
2022-03-03T15:11:48.000Z
2022-03-03T15:11:48.000Z
src/213-HouseRobberII.py
Jiezhi/myleetcode
b346e94c46da2a3033ebc8ff50e621aa179c4f62
[ "MIT" ]
null
null
null
src/213-HouseRobberII.py
Jiezhi/myleetcode
b346e94c46da2a3033ebc8ff50e621aa179c4f62
[ "MIT" ]
2
2022-01-20T22:49:58.000Z
2022-01-20T22:53:13.000Z
#!/usr/bin/env python """ CREATED AT: 2021/9/26 Des: https://leetcode.com/problems/house-robber-ii/ GITHUB: https://github.com/Jiezhi/myleetcode Difficulty: Medium Tags: DP Also See: 198. House Robber """ from typing import List class Solution: def rob(self, nums: List[int]) -> int: """ 75 / 75...
23.529412
88
0.533333
663
0.5525
0
0
0
0
0
0
462
0.385
d31427e347045367d72029ec89d0a2520511fe05
2,456
py
Python
tests/test_transform.py
rdmolony/merge-sec-mentor-excels
430b6275e9fd142089b3a6b1cf1d7b25c2c5bb71
[ "MIT" ]
null
null
null
tests/test_transform.py
rdmolony/merge-sec-mentor-excels
430b6275e9fd142089b3a6b1cf1d7b25c2c5bb71
[ "MIT" ]
null
null
null
tests/test_transform.py
rdmolony/merge-sec-mentor-excels
430b6275e9fd142089b3a6b1cf1d7b25c2c5bb71
[ "MIT" ]
1
2020-07-31T11:51:54.000Z
2020-07-31T11:51:54.000Z
from pathlib import Path from typing import Dict, List import numpy as np import pandas as pd import pytest from pandas.testing import assert_frame_equal from tdda.referencetest.checkpandas import default_csv_loader from secs.tasks.extract import regroup_excels_by_sheet from secs.tasks.transform import ( transfor...
29.590361
86
0.653502
0
0
0
0
862
0.350977
0
0
601
0.244707
d315502f46f1aa11d87503b81761556b6b7fb4fd
4,052
py
Python
Latest/venv/Lib/site-packages/pyface/ui/wx/list_box.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
1
2022-01-09T20:04:31.000Z
2022-01-09T20:04:31.000Z
Latest/venv/Lib/site-packages/pyface/ui/wx/list_box.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
1
2022-02-15T12:01:57.000Z
2022-03-24T19:48:47.000Z
Latest/venv/Lib/site-packages/pyface/ui/wx/list_box.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
null
null
null
""" A simple list box widget with a model-view architecture. """ from __future__ import absolute_import # Major package imports. import wx # Enthought library imports. from traits.api import Event, Instance, Int # Local imports. from pyface.list_box_model import ListBoxModel from .widget import Widget class ListBo...
27.753425
79
0.48001
3,662
0.903751
0
0
0
0
0
0
1,847
0.455824
d315e1c08f3a0c36dcb3ea7a752d2f2aeb60a151
15,086
py
Python
src/mist/api/schedules/base.py
SpiralUp/mist.api
a3b5233ab4aa3f6a0a2dea6333ff1e5a260af934
[ "Apache-2.0" ]
null
null
null
src/mist/api/schedules/base.py
SpiralUp/mist.api
a3b5233ab4aa3f6a0a2dea6333ff1e5a260af934
[ "Apache-2.0" ]
null
null
null
src/mist/api/schedules/base.py
SpiralUp/mist.api
a3b5233ab4aa3f6a0a2dea6333ff1e5a260af934
[ "Apache-2.0" ]
null
null
null
"""Definition of base classes for Schedules This currently contains only BaseController. It includes basic functionality for a given schedule. Cloud specific controllers are in `mist.api.schedules.controllers`. """ import logging import datetime import mongoengine as me from mist.api.scripts.models import Script from...
41.905556
78
0.548389
14,087
0.93378
0
0
234
0.015511
0
0
4,197
0.278205
d3164d6cde62226723a47c88609917ab4203bb00
3,870
py
Python
simple_plot.py
rubind/wfirst_snfields
12038b7cc45f3847a2816a3b2d2134bab4d49b80
[ "MIT" ]
null
null
null
simple_plot.py
rubind/wfirst_snfields
12038b7cc45f3847a2816a3b2d2134bab4d49b80
[ "MIT" ]
null
null
null
simple_plot.py
rubind/wfirst_snfields
12038b7cc45f3847a2816a3b2d2134bab4d49b80
[ "MIT" ]
null
null
null
from numpy import * # Yup import matplotlib.pyplot as plt import ephem import sfdmap from astropy.io import ascii def add_point(RA, Dec, flipRA = 1, color = 'b', txtlabel = None, symb = '.', label = ""): assert abs(RA) <= 2.*pi assert abs(Dec) <= pi if RA <= pi: plotRA = RA else: plot...
31.721311
171
0.587855
0
0
0
0
0
0
0
0
365
0.094315
d31712d1a2bfe35b4c9ceb39be24ba200a10a773
16,423
py
Python
vexmpp/stanzas.py
nicfit/vexmpp
e67070d2822da8356345976fb15d365935b550a6
[ "MIT" ]
null
null
null
vexmpp/stanzas.py
nicfit/vexmpp
e67070d2822da8356345976fb15d365935b550a6
[ "MIT" ]
349
2017-02-18T22:48:17.000Z
2021-12-13T19:50:23.000Z
vexmpp/stanzas.py
nicfit/vexmpp
e67070d2822da8356345976fb15d365935b550a6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import uuid import functools from copy import deepcopy from lxml import etree from .namespaces import (XML_NS_URI, STREAM_NS_URI, CLIENT_NS_URI, SERVER_NS_URI, STANZA_ERROR_NS_URI, STREAM_ERROR_NS_URI) from .jid import Jid XML_LANG = "{%s}lang" ...
28.073504
80
0.553736
15,414
0.938562
0
0
5,993
0.364915
0
0
1,569
0.095537
d317ad165ee915f3ecb315380a7f117fb4e72a72
1,211
py
Python
capstone/game/utils/play.py
davidrobles/mlnd-capstone-code
19ca88aaa137665af147da9bbd0e510829a14cf1
[ "MIT" ]
2
2017-04-13T18:31:39.000Z
2017-05-06T05:14:12.000Z
capstone/game/utils/play.py
davidrobles/mlnd-capstone-code
19ca88aaa137665af147da9bbd0e510829a14cf1
[ "MIT" ]
null
null
null
capstone/game/utils/play.py
davidrobles/mlnd-capstone-code
19ca88aaa137665af147da9bbd0e510829a14cf1
[ "MIT" ]
null
null
null
from __future__ import print_function from ...utils import print_header def play_match(game, players, verbose=True): """Plays a match between the given players""" if verbose: print(game) while not game.is_over(): cur_player = players[game.cur_player()] move = cur_player.choose_move...
30.275
65
0.593724
0
0
0
0
0
0
0
0
238
0.196532
d317c78a79f970d8e1f1a9e23c8512e7e86dd91e
1,028
py
Python
wueevents/webfrontent/migrations/0002_auto_20200416_1805.py
suspect22/wueevents
c8fb54c76da74d1c553418d04ea38cda810913ab
[ "MIT" ]
null
null
null
wueevents/webfrontent/migrations/0002_auto_20200416_1805.py
suspect22/wueevents
c8fb54c76da74d1c553418d04ea38cda810913ab
[ "MIT" ]
null
null
null
wueevents/webfrontent/migrations/0002_auto_20200416_1805.py
suspect22/wueevents
c8fb54c76da74d1c553418d04ea38cda810913ab
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-04-16 18:05 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('webfrontent', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='crawlerrun'...
34.266667
250
0.608949
902
0.877432
0
0
0
0
0
0
339
0.329767
d318f3f837457a798e64736d055f63b0e16dbe57
69
py
Python
src/laundry/__init__.py
tomackl/laundry
935d7053e75580a459f937d2c9c1921044638c04
[ "Apache-2.0" ]
1
2021-06-16T12:36:26.000Z
2021-06-16T12:36:26.000Z
src/laundry/__init__.py
tomackl/laundry
935d7053e75580a459f937d2c9c1921044638c04
[ "Apache-2.0" ]
null
null
null
src/laundry/__init__.py
tomackl/laundry
935d7053e75580a459f937d2c9c1921044638c04
[ "Apache-2.0" ]
1
2021-12-03T04:22:07.000Z
2021-12-03T04:22:07.000Z
from laundry.laundryclass import * from laundry.laundry_cli import *
23
34
0.826087
0
0
0
0
0
0
0
0
0
0
d31c45f4f233234e4306a8d0af8c554db40cfdf6
1,701
py
Python
modules_lib/plugin_models/application.py
hephaestus9/Ironworks
37be48e37f63530dd7bf82618948ef82522699a0
[ "MIT" ]
1
2021-05-17T08:31:07.000Z
2021-05-17T08:31:07.000Z
modules_lib/plugin_models/application.py
hephaestus9/Ironworks
37be48e37f63530dd7bf82618948ef82522699a0
[ "MIT" ]
null
null
null
modules_lib/plugin_models/application.py
hephaestus9/Ironworks
37be48e37f63530dd7bf82618948ef82522699a0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys from ironworks import serverTools def highest_position(model): highest_position = 0 items = model.query.all() for item in items: if item.position > highest_position: highest_position = item.position return highest_position + 1 clas...
28.35
72
0.572604
1,385
0.814227
0
0
0
0
0
0
502
0.295121
d31caf04cb9c133ec4d3c2c4da1c9cc2f19a7a62
553
py
Python
module_functions.py
dcazabat/SYNOP_PY
7a9f1804858d72b1ec2584fed887689161036ad7
[ "MIT" ]
null
null
null
module_functions.py
dcazabat/SYNOP_PY
7a9f1804858d72b1ec2584fed887689161036ad7
[ "MIT" ]
null
null
null
module_functions.py
dcazabat/SYNOP_PY
7a9f1804858d72b1ec2584fed887689161036ad7
[ "MIT" ]
null
null
null
import platform import os def creation_date(path_to_file): if platform.system() == 'Windows': return os.path.getctime(path_to_file) else: stat = os.stat(path_to_file) try: return stat.st_birthtime except AttributeError: # We're probably on Linux. No easy ...
27.65
78
0.60217
0
0
0
0
0
0
0
0
148
0.267631
d3208f7ca007725b03f2e092235bb15cb6b677d8
3,035
py
Python
pybrowser/external/htmlrenderer.py
abranjith/pybrowser
8a4d435c7071e64e881f2c274fabd5cd7805ea34
[ "MIT" ]
22
2019-04-09T07:18:40.000Z
2021-03-05T22:49:55.000Z
pybrowser/external/htmlrenderer.py
abranjith/pybrowser
8a4d435c7071e64e881f2c274fabd5cd7805ea34
[ "MIT" ]
3
2019-04-09T05:50:21.000Z
2021-12-13T20:03:15.000Z
pybrowser/external/htmlrenderer.py
abranjith/pybrowser
8a4d435c7071e64e881f2c274fabd5cd7805ea34
[ "MIT" ]
2
2019-04-09T09:51:30.000Z
2019-04-09T20:27:21.000Z
import os import asyncio from pyppeteer import launch from ..log_adapter import get_logger from ..common_utils import get_user_home_dir, add_to_osenv from ..constants import CONSTANTS def render_html(url=None, html=None, get_text=False, script=None, reload_=False, wait_time=5, timeout=10): result, content = None, ...
38.910256
187
0.63855
0
0
0
0
0
0
1,929
0.635585
673
0.221746
d322caa7a57e23bcfd96428e42f726ba4fd8200b
8,678
py
Python
tests/integration/test_login_logout.py
RomanGrankin1/-Flask-Discord
a8828f332156a9ec626b0ddb5abc58a90697593b
[ "MIT" ]
null
null
null
tests/integration/test_login_logout.py
RomanGrankin1/-Flask-Discord
a8828f332156a9ec626b0ddb5abc58a90697593b
[ "MIT" ]
null
null
null
tests/integration/test_login_logout.py
RomanGrankin1/-Flask-Discord
a8828f332156a9ec626b0ddb5abc58a90697593b
[ "MIT" ]
null
null
null
from urllib.parse import urlparse, parse_qs import flask import jwt import pytest from flask import url_for from oauthlib.common import generate_token from werkzeug.utils import redirect from flask_discord import DiscordOAuth2Session, configs, json_bool from flask_discord.configs import DISCORD_OAUTH_DEFAULT_SCOPES ...
41.32381
117
0.652915
0
0
0
0
2,473
0.284973
0
0
1,600
0.184374
d323c510c079cd6b3286991351384c97bf206346
2,731
py
Python
Display_Analysis_Phyionet_Bio_Signals.py
Philip-M-Schmidt/Physionet_Biosignals_Display_Analysis_Automated
19d2161f110bf76bf5d6ea396f117ecd7b179d80
[ "Apache-2.0" ]
1
2021-12-19T11:19:51.000Z
2021-12-19T11:19:51.000Z
Display_Analysis_Phyionet_Bio_Signals.py
Philip-M-Schmidt/Physionet_Biosignals_Display_Analysis_Automated
19d2161f110bf76bf5d6ea396f117ecd7b179d80
[ "Apache-2.0" ]
null
null
null
Display_Analysis_Phyionet_Bio_Signals.py
Philip-M-Schmidt/Physionet_Biosignals_Display_Analysis_Automated
19d2161f110bf76bf5d6ea396f117ecd7b179d80
[ "Apache-2.0" ]
null
null
null
import tkinter.filedialog import tkinter.simpledialog from tkinter import messagebox import numpy as np import matplotlib.pyplot as plt import wfdb import peakutils from scipy import signal import pandas as pd # To display any physiological signal from physionet, a dat-File needs to have a complementary hea-...
35.934211
134
0.706335
0
0
0
0
0
0
0
0
1,134
0.415233
d326348e038e3501a204789c92627b72662aeecf
675
py
Python
distruct/share/generate.py
KIT-MBS/distruct
c8633f4c90bbac8669efae43bda765dfa8b7348a
[ "MIT" ]
2
2019-07-23T23:32:42.000Z
2021-07-19T11:08:00.000Z
distruct/share/generate.py
KIT-MBS/distruct
c8633f4c90bbac8669efae43bda765dfa8b7348a
[ "MIT" ]
1
2020-12-21T20:11:38.000Z
2021-01-18T18:28:32.000Z
distruct/share/generate.py
KIT-MBS/distruct
c8633f4c90bbac8669efae43bda765dfa8b7348a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ##################################### # # Filename : generate.py # # Projectname : diSTruct # # Author : Oskar Taubert # # Creation Date : Tue 05 Dec 2017 08:08:18 PM CET # # Last Modified : Mon 30 Jul 2018 02:36:21 PM CEST # ##################################### from distruct.tools.ffparsergmx ...
23.275862
72
0.677037
0
0
0
0
0
0
0
0
314
0.465185
d326fbe9d5ef42aba2cbf8f880edf9a8de9dfbbf
437
py
Python
automation/clean_package_artifacts.py
Raju-zap/ng2-google-recaptcha
79cbc5b25f88b51e094d1e2be465a440310c3c78
[ "MIT" ]
null
null
null
automation/clean_package_artifacts.py
Raju-zap/ng2-google-recaptcha
79cbc5b25f88b51e094d1e2be465a440310c3c78
[ "MIT" ]
null
null
null
automation/clean_package_artifacts.py
Raju-zap/ng2-google-recaptcha
79cbc5b25f88b51e094d1e2be465a440310c3c78
[ "MIT" ]
null
null
null
#!/usr/bin/python # # Deletes any artifacts generated from the package scripts # # Imports import shutil, os import fnmatch import distutils.dir_util import cli # # Main entry function # def main(): # Get the path to the distribution package root_path = cli.get_project_root() + '/release' if os.path.ex...
14.566667
58
0.686499
0
0
0
0
0
0
0
0
191
0.437071
d32729dd538314e17dc5dac6d681a1279a95cbc9
28,293
py
Python
birdCLEF_train.py
kahst/BirdCLEF2017
f485a3f9083b35bdd7a276dcd1c14da3a9568d85
[ "MIT" ]
43
2017-05-28T11:58:58.000Z
2022-03-17T19:11:04.000Z
birdCLEF_train.py
RodrigoGantier/BirdCLEF2017
f485a3f9083b35bdd7a276dcd1c14da3a9568d85
[ "MIT" ]
9
2018-02-16T14:30:34.000Z
2018-12-07T22:40:41.000Z
birdCLEF_train.py
RodrigoGantier/BirdCLEF2017
f485a3f9083b35bdd7a276dcd1c14da3a9568d85
[ "MIT" ]
18
2018-01-24T13:43:08.000Z
2021-05-26T16:16:46.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- print "HANDLING IMPORTS..." import os import time import operator import numpy as np import matplotlib.pyplot as plt import cv2 from scipy import interpolate from sklearn.utils import shuffle from sklearn.metrics import confusion_matrix import itertools import pickle ...
32.784473
185
0.614922
0
0
2,023
0.071499
0
0
0
0
7,652
0.270446
d32aaeff4e721ce2eaeeaead3646553cf2b865d3
238
py
Python
crawler/factory/redis_connection_factory.py
mihai97ionita/web_crawler
65f73466c98ca27272fcdeb2abafca44de72e312
[ "MIT" ]
null
null
null
crawler/factory/redis_connection_factory.py
mihai97ionita/web_crawler
65f73466c98ca27272fcdeb2abafca44de72e312
[ "MIT" ]
null
null
null
crawler/factory/redis_connection_factory.py
mihai97ionita/web_crawler
65f73466c98ca27272fcdeb2abafca44de72e312
[ "MIT" ]
null
null
null
import os import redis def create_redis_connection(): redis_host = os.environ['REDIS_CACHE_HOST'] redis_port = os.environ['REDIS_CACHE_PORT'] redisCache = redis.Redis(host=redis_host, port=redis_port) return redisCache
21.636364
62
0.752101
0
0
0
0
0
0
0
0
36
0.151261
d32d473a0b25c8a65ddd3bb4653d7114e10ce38b
15,635
py
Python
google_patent_scraper/main.py
TroisLiu/google_patent_scraper
3e157b0d0d357f17ffaeec66afb2e58f5fcde68d
[ "MIT" ]
null
null
null
google_patent_scraper/main.py
TroisLiu/google_patent_scraper
3e157b0d0d357f17ffaeec66afb2e58f5fcde68d
[ "MIT" ]
null
null
null
google_patent_scraper/main.py
TroisLiu/google_patent_scraper
3e157b0d0d357f17ffaeec66afb2e58f5fcde68d
[ "MIT" ]
null
null
null
# Scrape # from urllib.request import Request, urlopen import urllib.parse from urllib.error import HTTPError from bs4 import BeautifulSoup # json # import json # errors # from .errors import * # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Create scraper class # ~~~~~~~~~~~~~~~~~~~~~~~~~...
42.371274
145
0.550432
15,280
0.977295
0
0
0
0
0
0
7,668
0.490438
d32d9dc00142a808ab4884c037d719b88a753e99
176
py
Python
openiPrototype/openiPrototype/APIS/Products_and_Services/Shop/admin.py
OPENi-ict/ntua_demo
104118fbe1f54db35386ca96286317ceb64cb658
[ "Apache-2.0" ]
null
null
null
openiPrototype/openiPrototype/APIS/Products_and_Services/Shop/admin.py
OPENi-ict/ntua_demo
104118fbe1f54db35386ca96286317ceb64cb658
[ "Apache-2.0" ]
null
null
null
openiPrototype/openiPrototype/APIS/Products_and_Services/Shop/admin.py
OPENi-ict/ntua_demo
104118fbe1f54db35386ca96286317ceb64cb658
[ "Apache-2.0" ]
null
null
null
__author__ = 'mpetyx' from django.contrib import admin from .models import OpeniShop class ShopAdmin(admin.ModelAdmin): pass admin.site.register(OpeniShop, ShopAdmin)
14.666667
41
0.778409
43
0.244318
0
0
0
0
0
0
8
0.045455
d32ec0367097fa0f09e21b517c44535883c2818e
1,697
py
Python
pattersonschwartz/pattersonschwartz/spiders/homelistdetails.py
click-here/Scrapy-Talk
b9eaaca7caeeafb7a6cbc4e147ef52dab7733148
[ "MIT" ]
1
2020-09-14T17:32:39.000Z
2020-09-14T17:32:39.000Z
pattersonschwartz/pattersonschwartz/spiders/homelistdetails.py
click-here/Scrapy-Talk
b9eaaca7caeeafb7a6cbc4e147ef52dab7733148
[ "MIT" ]
null
null
null
pattersonschwartz/pattersonschwartz/spiders/homelistdetails.py
click-here/Scrapy-Talk
b9eaaca7caeeafb7a6cbc4e147ef52dab7733148
[ "MIT" ]
1
2019-09-04T09:56:26.000Z
2019-09-04T09:56:26.000Z
# -*- coding: utf-8 -*- import scrapy from pattersonschwartz.items import ListingItem class HomelistdetailsSpider(scrapy.Spider): name = 'homelistdetails' allowed_domains = ['pattersonschwartz.com'] start_urls = ['http://www.pattersonschwartz.com/forsale/Harford/priceMin_250000/priceMax_650000'] def ...
41.390244
103
0.616971
1,608
0.947555
981
0.578079
0
0
0
0
539
0.317619
d32f0bedeae16ecbd40f3a4da84f63b1b78f5fb3
369
py
Python
leet_code_array/mid_questions/subset.py
IvanFan/leetcode-python
72a12a107681cc5f09f1f88537c5b0741f0818a4
[ "MIT" ]
null
null
null
leet_code_array/mid_questions/subset.py
IvanFan/leetcode-python
72a12a107681cc5f09f1f88537c5b0741f0818a4
[ "MIT" ]
null
null
null
leet_code_array/mid_questions/subset.py
IvanFan/leetcode-python
72a12a107681cc5f09f1f88537c5b0741f0818a4
[ "MIT" ]
null
null
null
class Solution: def subsets(self, nums): """ :type nums: List[int] :rtype: List[List[int]] """ res=[] self.dfs([], 0, nums, res) return res def dfs(self, path, index, nums, res): res.append(path) for i in range(index, len(nums)): ...
26.357143
54
0.476965
369
1
0
0
0
0
0
0
77
0.208672
d330581c4ead509c0ffddb1d0dcb4f4ba775168c
3,212
py
Python
CodingInterviews/python/63_get_median.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
CodingInterviews/python/63_get_median.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
CodingInterviews/python/63_get_median.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding:utf-8 from random import randrange class Solution: def __init__(self): """ 最小值放大顶堆 最大值放小顶堆 """ self.littleValMaxHeap = [] self.bigValMinHeap = [] self.maxHeapCount = 0 self.minHeapCount = 0 def Insert(self, num):...
32.444444
77
0.505915
2,760
0.851852
0
0
0
0
0
0
372
0.114815
d33144bb76d08ef23148781e070bd332ae38e8d8
1,234
py
Python
src/utils.py
mac389/LVSI
ecfe762d03f332568ea703b3217952d71967a634
[ "Apache-2.0" ]
null
null
null
src/utils.py
mac389/LVSI
ecfe762d03f332568ea703b3217952d71967a634
[ "Apache-2.0" ]
null
null
null
src/utils.py
mac389/LVSI
ecfe762d03f332568ea703b3217952d71967a634
[ "Apache-2.0" ]
null
null
null
import json,itertools import numpy as np import pandas as pd from statsmodels.stats.inter_rater import cohens_kappa def kappa(f1,f2,pathologists,cols_to_parse,outname,ratings): contingency_tables = {} lvsi = {} for (pathologist_one, pathologist_two) in itertools.combinations(pathologists,2): KEY = '%s-%s'%(p...
39.806452
126
0.744733
0
0
0
0
0
0
0
0
111
0.089951
d3314a32508d50103f80a9ed56866ebaa49e1a0f
755
py
Python
src/solver.py
geraldzakwan/katla-helper
c4f7d655fe00dc07bf1eee656b1e64684b5eded7
[ "MIT" ]
null
null
null
src/solver.py
geraldzakwan/katla-helper
c4f7d655fe00dc07bf1eee656b1e64684b5eded7
[ "MIT" ]
null
null
null
src/solver.py
geraldzakwan/katla-helper
c4f7d655fe00dc07bf1eee656b1e64684b5eded7
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from src.utils import read_dictionary class Solver(ABC): def __init__(self, word_dict_filepath, hist_dict_filepath): self.word_dict = read_dictionary(word_dict_filepath) self.hist_dict = read_dictionary(hist_dict_filepath) def is_in_dictionary(self, word):...
22.205882
65
0.678146
678
0.898013
0
0
213
0.282119
0
0
0
0
d3319c458f622667537db3beeda90e607c800fbc
4,363
py
Python
raspberry/Car-obd/fuction tests/test_obdsim.py
dsd-m2m/vehicle-tracking
7542c5d13bf3e5a3a2fdbf9de8e7dd80a4820a51
[ "MIT" ]
2
2018-10-10T12:11:00.000Z
2018-11-18T12:14:36.000Z
raspberry/Car-obd/fuction tests/test_obdsim.py
dsd-m2m/vehicle-tracking
7542c5d13bf3e5a3a2fdbf9de8e7dd80a4820a51
[ "MIT" ]
6
2018-10-16T21:19:30.000Z
2018-12-10T15:39:49.000Z
raspberry/Car-obd/fuction tests/test_obdsim.py
dsd-m2m/vehicle-tracking
7542c5d13bf3e5a3a2fdbf9de8e7dd80a4820a51
[ "MIT" ]
4
2018-10-28T18:43:32.000Z
2018-12-09T18:41:03.000Z
import time import pytest from obd import commands, Unit # NOTE: This is purposefully tuned slightly higher than the ELM's default # message timeout of 200 milliseconds. This prevents us from # inadvertently marking the first query of an async connection as # null, since it may be the case that the ...
27.613924
76
0.66766
0
0
0
0
3,773
0.864772
0
0
814
0.186569
d334711681aa97c717a08b726e722c51a9979e9c
740
py
Python
wind.py
RyosukeDTomita/vaisaraPlot
ea0e9f95ece1ee92419b0d6c99558c655ddcc28c
[ "MIT" ]
1
2021-06-25T08:07:14.000Z
2021-06-25T08:07:14.000Z
wind.py
RyosukeDTomita/vaisaraPlot
ea0e9f95ece1ee92419b0d6c99558c655ddcc28c
[ "MIT" ]
null
null
null
wind.py
RyosukeDTomita/vaisaraPlot
ea0e9f95ece1ee92419b0d6c99558c655ddcc28c
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np # made by tomita from readcsv import readcsv fig = plt.figure(figsize = (4.5,7)) ax = fig.add_subplot(111) data = "./data/mirai_rs41_20210619_2330.txt" u,v,h = [],[],[] readcsv = readcsv(data) df = readcsv.df U = readcsv["Ecomp"] V = readcsv["Ncomp"] H = readcsv["Hei...
22.424242
44
0.589189
0
0
0
0
0
0
0
0
78
0.105405
d33489bffeda5130f23db3e3776ee3c503ebde42
2,920
py
Python
location_register/models/ratu_models.py
Iva-khar/Data_converter
9e991f479e2bf1c2ab430a9ad1be2da936ea139b
[ "MIT" ]
null
null
null
location_register/models/ratu_models.py
Iva-khar/Data_converter
9e991f479e2bf1c2ab430a9ad1be2da936ea139b
[ "MIT" ]
null
null
null
location_register/models/ratu_models.py
Iva-khar/Data_converter
9e991f479e2bf1c2ab430a9ad1be2da936ea139b
[ "MIT" ]
null
null
null
from django.db import models from data_ocean.models import DataOceanModel from location_register.models.koatuu_models import KoatuuCategory class RatuRegion(DataOceanModel): name = models.CharField('назва', max_length=30, unique=True) koatuu = models.CharField('код КОАТУУ', max_length=10, unique=True, null=T...
42.941176
94
0.681507
3,005
0.950649
0
0
0
0
0
0
557
0.17621
d3349825d7ea4049412af69f489a6488ecdb3b9e
3,020
py
Python
data_as_code/_commands.py
Mikuana/data_as_code
339f0c6bcd4e318ad925ceb4ccd6149f980d4032
[ "MIT" ]
2
2021-05-18T22:04:22.000Z
2021-07-24T19:52:49.000Z
data_as_code/_commands.py
Mikuana/data_as_code
339f0c6bcd4e318ad925ceb4ccd6149f980d4032
[ "MIT" ]
1
2021-03-12T22:56:45.000Z
2021-03-12T22:56:45.000Z
data_as_code/_commands.py
Mikuana/data_as_code
339f0c6bcd4e318ad925ceb4ccd6149f980d4032
[ "MIT" ]
null
null
null
import argparse import os import subprocess import sys import venv from pathlib import Path from typing import Union from data_as_code import __version__ def menu(args=None): args = _parse_args(args) args.func(args) def _parse_args(args: list = None): program = 'data-as-code' parser = argparse.Argu...
26.725664
79
0.611589
1,345
0.445364
0
0
0
0
0
0
529
0.175166
d338d1cde2b451ce153dc7246f3b2ecbf270831f
1,788
py
Python
delivery/views.py
wesky93/shipping_system
ac3d5d5998e20b9008c90cb972f6bdfc5d3c43b0
[ "MIT" ]
null
null
null
delivery/views.py
wesky93/shipping_system
ac3d5d5998e20b9008c90cb972f6bdfc5d3c43b0
[ "MIT" ]
null
null
null
delivery/views.py
wesky93/shipping_system
ac3d5d5998e20b9008c90cb972f6bdfc5d3c43b0
[ "MIT" ]
null
null
null
# Create your views here. from datetime import datetime from drf_yasg import openapi from drf_yasg.utils import swagger_auto_schema from rest_framework import status, viewsets from rest_framework.decorators import action from rest_framework.response import Response from delivery.serializer import TaskSerializer from ...
33.735849
91
0.690157
1,404
0.771429
0
0
1,258
0.691209
0
0
147
0.080769
d33a5e53c3e35f6d10e35e310588ea74362676d9
1,485
py
Python
giftshop/giftshop/management/serializers.py
mvbattista/django-shop-demo
3f6cdbeb627d16ca45c7f2304b32c410f16c8b4a
[ "BSD-3-Clause" ]
null
null
null
giftshop/giftshop/management/serializers.py
mvbattista/django-shop-demo
3f6cdbeb627d16ca45c7f2304b32c410f16c8b4a
[ "BSD-3-Clause" ]
null
null
null
giftshop/giftshop/management/serializers.py
mvbattista/django-shop-demo
3f6cdbeb627d16ca45c7f2304b32c410f16c8b4a
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ These serializers are used exclusively to import the file ``workdir/fixtures/products-meta.json``. They are not intended for general purpose and can be deleted thereafter. """ from __future__ import unicode_literals from filer.models.imagemodels import Image from rest_framework import serial...
39.078947
98
0.760269
907
0.610774
0
0
0
0
0
0
296
0.199327