hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
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
254
2,156
5.653543
0.385827
0.050139
0.075209
0.100279
0.16156
0.107242
0.107242
0.107242
0.107242
0.107242
0
0.011027
0.200835
2,156
73
81
29.534247
0.822403
0.033395
0
0.156863
0
0
0.070658
0.010795
0
0
0
0
0
1
0.058824
false
0
0.117647
0.039216
0.764706
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
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
56
373
4.303571
0.464286
0.124481
0.161826
0.186722
0.344398
0.344398
0.257261
0
0
0
0
0.009063
0.112601
373
20
102
18.65
0.719033
0.053619
0
0
0
0
0.0625
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.363636
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
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
39
207
2.717949
0.487179
0.169811
0.311321
0.45283
0.433962
0.433962
0
0
0
0
0
0.013245
0.270531
207
9
40
23
0.688742
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.111111
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
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
401
3,191
4.486284
0.369077
0.026681
0.028905
0.027793
0.046693
0.046693
0
0
0
0
0
0.011241
0.275149
3,191
113
74
28.238938
0.766537
0.158571
0
0
0
0
0.103117
0
0
0
0
0
0
1
0.028986
false
0.014493
0.115942
0
0.15942
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
976
8,251
5.16291
0.22541
0.014289
0.022227
0.018853
0.151816
0.107759
0.0385
0.02183
0.02183
0.02183
0
0.004887
0.280814
8,251
171
144
48.251462
0.844287
0.122167
0
0.055118
0
0.007874
0.046868
0.020549
0
0
0
0
0
1
0.031496
false
0
0.15748
0
0.220472
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
132
909
4.651515
0.401515
0.058632
0.081433
0.117264
0.237785
0.237785
0.237785
0.172638
0
0
0
0.039474
0.163916
909
37
69
24.567568
0.768421
0
0
0
0
0
0.080308
0
0
0
0
0
0.148148
1
0.148148
false
0
0.185185
0
0.37037
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
237
2,016
5.324895
0.232068
0.044374
0.107765
0.110935
0.714739
0.623613
0.623613
0.623613
0.623613
0.572108
0
0
0.27381
2,016
35
153
57.6
0.862022
0.010913
0
0.083333
0
0
0.48262
0
0
0
0
0
0
1
0.041667
false
0
0
0
0.208333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
135
1,302
6.422222
0.4
0.020761
0.041522
0.087659
0.143022
0.143022
0
0
0
0
0
0.01784
0.182028
1,302
33
99
39.454545
0.751174
0
0
0
0
0.037037
0.274962
0.040707
0
0
0
0
0
1
0.185185
false
0
0
0.148148
0.333333
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
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
52
245
2.961538
0.557692
0.097403
0.142857
0
0
0
0
0
0
0
0
0.133333
0.204082
245
8
65
30.625
0.65641
0.257143
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.142857
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
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
742
5,235
5.262803
0.234501
0.095262
0.072983
0.086044
0.423816
0.404097
0.245583
0.15621
0.063508
0.037388
0
0.015756
0.090735
5,235
128
92
40.898438
0.804622
0
0
0.04
0
0
0.185829
0
0
0
0
0
0
1
0
false
0
0.01
0
0.01
0.17
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
22
181
6.409091
0.681818
0.141844
0
0
0
0
0
0
0
0
0
0
0.127072
181
10
54
18.1
0.892405
0.121547
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.25
0.5
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
5
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
199
1,553
5.110553
0.522613
0.031465
0.035398
0.025565
0.104228
0.066863
0
0
0
0
0
0.026016
0.207985
1,553
60
105
25.883333
0.800813
0.153896
0
0.142857
0
0
0.083089
0
0
0
0
0
0
0
null
null
0
0.142857
null
null
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
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
499
4,065
4.214429
0.288577
0.038041
0.041845
0.060865
0.263433
0.263433
0.230147
0.230147
0.203519
0.174037
0
0.024657
0.301599
4,065
125
153
32.52
0.716097
0.071587
0
0.157895
0
0
0.056358
0.043032
0
0
0
0
0
0
null
null
0
0.052632
null
null
0.013158
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
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
162
1,222
4.876543
0.432099
0.050633
0.070886
0.040506
0.065823
0.065823
0
0
0
0
0
0.033074
0.158756
1,222
57
84
21.438596
0.735409
0.165303
0
0
0
0
0.260956
0
0
0
0
0
0
1
0
false
0
0
0
0
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
469
3,759
4.720682
0.324094
0.0271
0.02168
0.0271
0.193767
0.176603
0.133695
0.093044
0.057814
0.057814
0
0.002726
0.31684
3,759
110
128
34.172727
0.859424
0.361266
0
0.134615
0
0
0.051318
0
0
0
0
0
0.096154
1
0.173077
false
0
0.057692
0.057692
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
541
5,111
5.181146
0.266174
0.027827
0.044952
0.035676
0.418123
0.350339
0.34249
0.34249
0.314663
0.314663
0
0.01703
0.299159
5,111
130
134
39.315385
0.765494
0.057132
0
0.293478
0
0.021739
0.333125
0.013958
0
0
0
0
0.152174
1
0.032609
false
0
0.043478
0
0.086957
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
466
5,182
5.429185
0.167382
0.078261
0.094862
0.118577
0.881818
0.881818
0.866798
0.84664
0.826877
0.80751
0
0.010567
0.397337
5,182
151
117
34.317881
0.799552
0.008684
0
0.827586
1
0
0.259202
0.037001
0
0
0
0
0
1
0
false
0
0.006897
0
0.027586
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
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
402
3,375
4.982587
0.169154
0.164753
0.142287
0.03994
0.682976
0.635047
0.621568
0.621568
0.607089
0.607089
0
0.006623
0.284148
3,375
88
80
38.352273
0.822434
0
0
0.592105
0
0
0.009185
0
0
0
0
0
0
1
0.078947
false
0
0.065789
0
0.328947
0.013158
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
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
1,301
10,271
4.641045
0.183705
0.045545
0.039748
0.015734
0.287844
0.200066
0.134316
0.107155
0.066081
0.054488
0
0.00309
0.1808
10,271
311
124
33.025723
0.714286
0.101256
0
0.198198
0
0
0.205933
0.077701
0
0
0
0
0
1
0.09009
false
0.004505
0.04955
0.027027
0.243243
0.013514
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
501
3,727
5
0.237525
0.08982
0.100998
0.097006
0.590419
0.536128
0.519361
0.497006
0.437525
0.437525
0
0.00769
0.162597
3,727
90
112
41.411111
0.794938
0.561846
0
0.166667
0
0
0.314663
0.198238
0
0
0
0.011111
0.111111
1
0.111111
false
0
0.083333
0.055556
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
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
35
274
5.2
0.571429
0.131868
0
0
0
0
0
0
0
0
0
0
0.19708
274
12
86
22.833333
0.827273
0
0
0
0
0
0.065934
0
0
0
0
0
0
1
0.285714
false
0.142857
0.142857
0.142857
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
4
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
338
2,467
5.118343
0.452663
0.069364
0.005202
0.006936
0.132948
0.091329
0.091329
0.040462
0
0
0
0.020408
0.185651
2,467
63
118
39.15873
0.840717
0.340495
0
0
0
0
0.055838
0
0
0
0
0
0
1
0
false
0
0.176471
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
328
2,581
5.109756
0.314024
0.171838
0.064439
0.050716
0.310263
0.247017
0.202864
0.202864
0.162291
0.112172
0
0.005435
0.215808
2,581
49
131
52.673469
0.822628
0.064316
0
0.102564
0
0
0.103234
0
0
0
0
0
0
1
0.102564
false
0
0.076923
0
0.25641
0.051282
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
37
302
5.756757
0.756757
0.065728
0
0
0
0
0
0
0
0
0
0.03629
0.178808
302
13
58
23.230769
0.822581
0.480132
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
4
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
92
974
6.032609
0.380435
0.12973
0.165766
0.194595
0.702703
0.702703
0.702703
0.702703
0.50991
0.50991
0
0.007278
0.294661
974
34
61
28.647059
0.800582
0.021561
0
0.571429
0
0
0.167192
0.107256
0
0
0
0
0
1
0
false
0
0.071429
0
0.178571
0
0
0
0
null
0
0
1
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
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
382
3,497
5.814136
0.293194
0.032418
0.048627
0.030617
0.307519
0.278703
0.278703
0.232778
0.232778
0.194957
0
0.01994
0.23992
3,497
101
138
34.623762
0.815651
0
0
0.111111
0
0
0.160995
0.021161
0
0
0
0
0.123457
1
0.111111
false
0
0.135802
0
0.259259
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
142
864
3.957746
0.415493
0.064057
0.092527
0.128114
0
0
0
0
0
0
0
0.086022
0.138889
864
30
88
28.8
0.669355
0
0
0
0
0
0.219653
0
0
0
0
0
0
0
null
null
0
0.083333
null
null
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
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
130
1,254
5.369231
0.523077
0.116046
0.093123
0.114613
0.19341
0
0
0
0
0
0
0.042286
0.302233
1,254
45
74
27.866667
0.755429
0.200957
0
0
0
0
0.090172
0
0
0
0
0
0
1
0.192308
false
0
0.038462
0.153846
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
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
142
1,220
4.929577
0.380282
0.074286
0.16
0.182857
0
0
0
0
0
0
0
0.018094
0.320492
1,220
29
67
42.068966
0.826297
0.07377
0
0
0
0
0
0
0
0
0
0
0
1
0.086957
false
0
0.130435
0
0.26087
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
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
449
3,710
4.739421
0.35412
0.033835
0.023966
0.018327
0.225094
0.207237
0.129699
0.095865
0.095865
0.095865
0
0.019514
0.267925
3,710
128
79
28.984375
0.763991
0.122372
0
0.353535
0
0
0.170656
0.006528
0
0
0
0
0
1
0.030303
false
0.030303
0.020202
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
15
108
4.933333
0.733333
0
0
0
0
0
0
0
0
0
0
0
0.111111
108
7
30
15.428571
0.770833
0.138889
0
0
0
0
0.195652
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
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
483
5,192
6.031056
0.304348
0.044628
0.058702
0.057673
0.296945
0.228974
0.162376
0.162376
0.097837
0
0
0.002547
0.319337
5,192
226
74
22.973451
0.821732
0
0
0.213592
0
0
0.113829
0.006356
0
0
0
0
0
1
0.009709
false
0
0.019417
0
0.043689
0.092233
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
44
555
9.931818
0.590909
0.10984
0.12357
0.183066
0
0
0
0
0
0
0
0.008247
0.126126
555
15
74
37
0.892784
0
0
0
0
0
0.124774
0.088608
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
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
133
777
2.887218
0.345865
0.109375
0.023438
0.03125
0.130208
0.03125
0
0
0
0
0
0.055456
0.280566
777
33
49
23.545455
0.631485
0.046332
0
0.148148
0
0
0.041949
0
0
0
0
0
0
1
0.037037
false
0
0.037037
0.037037
0.111111
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
294
2,632
5
0.363946
0.07483
0.057823
0.028571
0.055782
0.055782
0.055782
0.055782
0
0
0
0.000511
0.256839
2,632
95
83
27.705263
0.751022
0.021277
0
0.128205
0
0
0.238151
0.051671
0
0
0
0
0
1
0.102564
false
0
0.038462
0
0.153846
0.064103
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
471
3,137
3.883227
0.271762
0.049207
0.082012
0.061236
0.505194
0.505194
0.505194
0.505194
0.398032
0.398032
0
0.016189
0.310807
3,137
138
140
22.731884
0.828862
0.583679
0
0.378378
0
0
0
0
0
0
0
0.007246
0
1
0.081081
false
0
0
0
0.405405
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
121
1,106
6.38843
0.363636
0.07762
0.082794
0.065977
0.146184
0.146184
0.098318
0
0
0
0
0.008734
0.17179
1,106
34
97
32.529412
0.835153
0.048825
0
0.142857
0
0
0.180688
0
0
0
0
0
0.142857
1
0.142857
true
0
0.190476
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
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
394
3,143
5.104061
0.446701
0.024863
0.004475
0.019891
0.101442
0.082546
0.082546
0.082546
0.082546
0.082546
0
0.043367
0.25167
3,143
91
79
34.538462
0.81165
0.491887
0
0
0
0
0.084311
0
0
0
0
0
0
1
0.096774
false
0
0.096774
0
0.516129
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
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
284
2,421
4.626761
0.528169
0.018265
0.015982
0.027397
0.045662
0.045662
0.045662
0
0
0
0
0.033898
0.293267
2,421
81
141
29.888889
0.734074
0.030566
0
0.059701
0
0.029851
0.307889
0.014499
0
0
0
0
0
1
0.029851
false
0
0.059701
0
0.089552
0.029851
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
734
5,250
4.618529
0.294278
0.042478
0.046018
0.024779
0.314454
0.172861
0.144543
0.126844
0.113274
0.113274
0
0.003338
0.201143
5,250
153
118
34.313725
0.804959
0.38419
0
0.232877
0
0
0.115568
0
0
0
0
0
0
1
0.191781
false
0
0.054795
0
0.520548
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
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
40
396
5.75
0.675
0
0
0
0
0
0
0
0
0
0
0
0.262626
396
16
46
24.75
0.787671
0
0
0
0
0
0.261965
0.062972
0
0
0
0
0
1
0.066667
false
0.066667
0.066667
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
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
4
25
5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.16
25
1
25
25
0.952381
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
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
281
2,360
5.451957
0.359431
0.052219
0.037859
0.031332
0.032637
0.032637
0.032637
0
0
0
0
0.022246
0.219068
2,360
72
111
32.777778
0.809007
0.008898
0
0.036364
0
0
0.16289
0.017529
0
0
0
0
0
1
0.090909
false
0
0.054545
0
0.236364
0.163636
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
319
2,176
4.642633
0.247649
0.087779
0.06077
0.057394
0.273464
0.239703
0.177583
0.131668
0.131668
0.083052
0
0.009341
0.163603
2,176
104
58
20.923077
0.804396
0.007813
0
0.16
0
0
0.005109
0
0
0
0
0
0
1
0.28
false
0
0.04
0.12
0.546667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
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
810
6,592
4.469136
0.150617
0.04558
0.053039
0.066298
0.759116
0.757735
0.720442
0.706906
0.69558
0.658011
0
0.02653
0.290959
6,592
198
80
33.292929
0.747967
0.051881
0
0.676471
0
0
0.113225
0
0
0
0
0
0.161765
1
0.066176
false
0.014706
0.044118
0
0.117647
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
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
2,082
16,381
4.804035
0.243996
0.006999
0.019996
0.016097
0.141072
0.116677
0.093081
0.070686
0.05139
0.031394
0
0.009029
0.249496
16,381
427
117
38.362998
0.804539
0.512057
0
0.143678
0
0
0.149402
0.011419
0
0
0
0
0
1
0.074713
false
0
0.086207
0
0.264368
0.011494
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
59
330
3.694915
0.525424
0.110092
0
0
0
0
0
0
0
0
0
0.052083
0.127273
330
18
64
18.333333
0.704861
0
0
0
0
0
0.126888
0.084592
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
272
1,990
4.764706
0.345588
0.054012
0.04321
0.055556
0.040123
0.040123
0
0
0
0
0
0.001283
0.216583
1,990
53
134
37.54717
0.830019
0.122111
0
0
0
0
0.103963
0
0
0
0
0
0
1
0.162162
false
0
0.162162
0.027027
0.459459
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
7
51
5.714286
1
0
0
0
0
0
0
0
0
0
0
0
0.156863
51
1
51
51
0.930233
0.941176
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
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
895
6,835
4.481564
0.250279
0.055846
0.040389
0.010471
0.268262
0.241087
0.236101
0.165046
0.1456
0.133134
0
0.012622
0.281346
6,835
183
202
37.349727
0.80395
0.062619
0
0.243478
0
0.034783
0.237995
0.05277
0
0
0
0
0
0
null
null
0
0.043478
null
null
0.121739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
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
760
5,305
4.265789
0.296053
0.01388
0.012338
0.014806
0.119062
0.037014
0.037014
0.037014
0.019741
0.019741
0
0.034161
0.271631
5,305
150
90
35.366667
0.804865
0.316494
0
0.060976
0
0
0.049695
0
0
0
0
0
0.073171
1
0.04878
false
0
0.134146
0
0.231707
0.085366
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
508
3,907
3.866142
0.167323
0.046334
0.039715
0.033605
0.707739
0.678208
0.678208
0.629328
0.595723
0.508147
0
0.057627
0.32045
3,907
128
84
30.523438
0.682109
0.178398
0
0.757895
0
0.042105
0.10493
0.059418
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
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
342
2,597
4.421053
0.423977
0.112434
0.043651
0.062831
0.203042
0.203042
0.203042
0.203042
0.175926
0.175926
0
0.026528
0.187139
2,597
71
145
36.577465
0.689721
0.203697
0
0.106383
0
0.021277
0.330732
0.065366
0
0
0
0
0
1
0.021277
false
0
0.085106
0
0.106383
0.106383
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
687
5,818
5.340611
0.292576
0.028618
0.031889
0.027255
0.299264
0.193241
0.139548
0.12592
0.12592
0.101935
0
0.005998
0.283603
5,818
176
117
33.056818
0.87428
0.271227
0
0.349057
0
0
0.012821
0
0
0
0
0
0
1
0.075472
false
0
0.028302
0
0.358491
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
1,103
8,898
4.271985
0.274705
0.033956
0.023769
0.007216
0.059635
0.009762
0.009762
0
0
0
0
0.018957
0.336031
8,898
279
93
31.892473
0.778605
0.066757
0
0.172414
0
0
0.136314
0
0
0
0
0
0
1
0.083744
false
0
0.029557
0.009852
0.147783
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
2,525
16,288
4.571485
0.063366
0.12735
0.079009
0.075717
0.900373
0.868752
0.839556
0.832019
0.781686
0.781686
0
0.020865
0.114317
16,288
339
175
48.047198
0.779287
0.06735
0
0.341463
0
0
0.237113
0.110943
0
0
0
0.00295
0.01626
1
0.142276
false
0
0.04065
0.113821
0.373984
0.004065
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
7
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
239
1,974
4.142259
0.251046
0.060606
0.054545
0.068687
0.408081
0.187879
0.151515
0.09697
0.09697
0.09697
0
0.014694
0.379433
1,974
70
89
28.2
0.793469
0.069909
0
0.277778
0
0
0.013661
0
0
0
0
0
0
1
0.092593
false
0
0.037037
0
0.148148
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
52
374
5.057692
0.365385
0.152091
0.121673
0
0
0
0
0
0
0
0
0
0.176471
374
15
62
24.933333
0.853896
0
0
0
0
0
0.069519
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.545455
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
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
2,942
26,353
5.467029
0.145479
0.057075
0.092328
0.114586
0.666501
0.62814
0.573116
0.511067
0.461452
0.391134
0
0.013026
0.260046
26,353
493
200
53.454361
0.811795
0.239479
0
0.296943
0
0.017467
0.146123
0.041863
0
0
0
0
0
1
0.126638
false
0
0.026201
0
0.179039
0.004367
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
553
4,031
5.039783
0.296564
0.068174
0.040187
0.028705
0.393972
0.358091
0.358091
0.339074
0.271618
0.253319
0
0.010253
0.177375
4,031
117
120
34.452991
0.830217
0.245597
0
0.328571
0
0
0.025321
0
0
0
0
0
0.014286
1
0.1
false
0
0.1
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
49
391
6.020408
0.510204
0.081356
0.061017
0
0
0
0
0
0
0
0
0
0.132992
391
10
90
39.1
0.870206
0
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.285714
0.142857
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
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
36
330
6.861111
0.555556
0.121457
0
0
0
0
0
0
0
0
0
0
0.169697
330
17
53
19.411765
0.90146
0.109091
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.714286
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
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
105
833
5.580952
0.428571
0.068259
0.05802
0.064846
0
0
0
0
0
0
0
0.001422
0.156062
833
28
67
29.75
0.832148
0.028812
0
0
0
0
0.107807
0
0
0
0
0
0
1
0.130435
false
0
0.217391
0
0.478261
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
110
874
5.2
0.327273
0.061189
0.083916
0.118881
0
0
0
0
0
0
0
0
0.203661
874
35
79
24.971429
0.821839
0
0
0
0
0
0.024027
0
0
0
0
0
0.227273
1
0.272727
false
0
0.136364
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
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
232
1,866
4.573276
0.172414
0.079171
0.084826
0.089538
0.403393
0.290292
0.290292
0.114986
0.114986
0.079171
0
0.007479
0.283494
1,866
70
57
26.657143
0.786088
0
0
0.173077
0
0
0.013398
0
0
0
0
0
0
1
0.269231
false
0
0.019231
0.038462
0.5
0.019231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
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
736
5,536
4.540761
0.213315
0.044883
0.02304
0.02693
0.437762
0.399162
0.36924
0.33094
0.28067
0.204668
0
0.014539
0.26698
5,536
176
93
31.454545
0.809019
0.180275
0
0.35
0
0
0.015643
0
0
0
0
0
0.02
1
0.22
false
0.02
0
0.04
0.43
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
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
63
569
7.301587
0.68254
0.086957
0.078261
0
0
0
0
0
0
0
0
0.003992
0.119508
569
16
74
35.5625
0.914172
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
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
82
673
4.682927
0.682927
0.0625
0.0625
0
0
0
0
0
0
0
0
0
0.136701
673
19
80
35.421053
0.660929
0.591382
0
0
0
0
0.075472
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
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
635
4,721
4.63937
0.308661
0.021724
0.028853
0.027155
0.241344
0.189409
0.171758
0.154107
0.154107
0.067889
0
0.004133
0.282567
4,721
115
93
41.052174
0.865663
0.371955
0
0.327273
0
0
0.010076
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.381818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
178
1,200
3.550562
0.455056
0.110759
0.134494
0.166139
0.155063
0.155063
0.155063
0.079114
0
0
0
0.067776
0.299167
1,200
50
89
24
0.68371
0.316667
0
0
0
0
0.010695
0
0
0
0
0
0.25
1
0.15
false
0
0.05
0
0.4
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
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
314
2,456
4.808917
0.350318
0.055629
0.043046
0.037748
0.162252
0.139735
0.119205
0.070199
0.021192
0.021192
0
0.026398
0.213355
2,456
82
87
29.95122
0.755176
0.017915
0
0.031746
0
0
0.196266
0.052282
0
0
0
0
0.047619
1
0.063492
false
0
0.142857
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
378
4,052
4.97619
0.296296
0.029771
0.015949
0.030303
0.255183
0.255183
0.220096
0.220096
0.180755
0.180755
0
0.000984
0.247285
4,052
145
80
27.944828
0.615738
0.229516
0
0.245283
0
0
0.010748
0
0
0
0
0
0
1
0.169811
false
0
0.09434
0
0.528302
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
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
1,532
15,086
5.287859
0.189295
0.056289
0.017652
0.018146
0.289841
0.189112
0.156894
0.151339
0.12517
0.12517
0
0.004679
0.362455
15,086
359
79
42.022284
0.837596
0.117394
0
0.185328
0
0
0.144961
0
0
0
0
0
0.003861
1
0.023166
false
0.003861
0.065637
0
0.104247
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
598
3,870
3.719064
0.272575
0.040468
0.043165
0.026978
0.368255
0.299011
0.244604
0.244604
0.21313
0.21313
0
0.057757
0.230491
3,870
121
172
31.983471
0.689053
0.016537
0
0.164706
0
0
0.05788
0.013154
0
0
0
0
0.023529
0
null
null
0
0.058824
null
null
0.035294
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
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
2,040
16,423
4.318627
0.108333
0.03496
0.024972
0.023156
0.321453
0.273553
0.233825
0.194325
0.147673
0.123383
0
0.002262
0.327041
16,423
584
81
28.121575
0.794879
0.020337
0
0.24197
0
0
0.060821
0.001741
0
0
0
0
0.03212
1
0.1606
false
0
0.021413
0.047109
0.396146
0.006424
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
158
1,211
4.386076
0.341772
0.077922
0.121212
0.049062
0.103896
0.103896
0.103896
0
0
0
0
0.011377
0.274154
1,211
39
66
31.051282
0.777019
0.11313
0
0.275862
0
0
0.055291
0
0
0
0
0
0
1
0.068966
false
0
0.068966
0
0.172414
0.344828
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
102
1,028
6.039216
0.617647
0.038961
0.045455
0.071429
0
0
0
0
0
0
0
0.028241
0.242218
1,028
29
251
35.448276
0.762516
0.043774
0
0.217391
1
0
0.248726
0.074414
0
0
0
0
0
1
0
false
0
0.086957
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
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
9
69
6.222222
0.555556
0.392857
0
0
0
0
0
0
0
0
0
0
0.115942
69
2
35
34.5
0.918033
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
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
165
1,701
5.842424
0.393939
0.093361
0.049793
0.041494
0.06639
0
0
0
0
0
0
0.002455
0.281599
1,701
60
73
28.35
0.786416
0.044092
0
0
0
0
0.146703
0
0
0
0
0
0
1
0.131579
false
0
0.078947
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
76
553
4.263158
0.618421
0.055556
0.092593
0
0
0
0
0
0
0
0
0
0.305606
553
20
79
27.65
0.84375
0.216998
0
0.125
0
0
0.039443
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
384
3,035
4.893229
0.302083
0.071847
0.027674
0.033528
0.455029
0.455029
0.416711
0.405003
0.373071
0.287387
0
0.012543
0.238221
3,035
77
188
39.415584
0.800173
0.10313
0
0.415385
0
0.015385
0.115654
0.033149
0
0
0
0.012987
0
1
0.030769
false
0.015385
0.092308
0
0.153846
0.015385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
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
1,043
8,678
5.134228
0.119847
0.064986
0.073016
0.020915
0.678431
0.64874
0.642951
0.635294
0.612885
0.603735
0
0.016447
0.222286
8,678
209
118
41.521531
0.777004
0
0
0.5
1
0
0.157064
0.023047
0
0
0
0
0.217949
1
0.121795
false
0.00641
0.057692
0.057692
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
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
409
2,731
4.581907
0.415648
0.024013
0.022412
0.01174
0.103522
0.078975
0.054429
0
0
0
0
0.023799
0.184548
2,731
76
135
35.934211
0.817692
0.28561
0
0.152174
0
0.021739
0.152104
0
0
0
0
0
0
1
0
false
0
0.195652
0
0.195652
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
83
675
5.409639
0.674699
0.053452
0.093541
0.142539
0.155902
0
0
0
0
0
0
0.045685
0.124444
675
28
73
24.107143
0.714044
0.277037
0
0
1
0
0.09204
0.057214
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
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
59
437
4.847458
0.610169
0.083916
0
0
0
0
0
0
0
0
0
0
0.212815
437
29
59
15.068966
0.831395
0.363844
0
0
1
0
0.06015
0
0
0
0
0
0
1
0.1
false
0
0.4
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
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
3,801
28,293
4.45488
0.170218
0.004488
0.007677
0.01004
0.231383
0.181008
0.160102
0.146519
0.119294
0.104707
0
0.022888
0.251052
28,293
862
186
32.822506
0.776215
0.194253
0
0.156504
0
0
0.052703
0.001087
0
0
0
0.00116
0
0
null
null
0.002033
0.04878
null
null
0.069106
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
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
33
238
5.121212
0.363636
0.159763
0.16568
0.224852
0
0
0
0
0
0
0
0
0.155462
238
10
63
23.8
0.840796
0
0
0
0
0
0.134454
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
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
1,680
15,635
4.886905
0.153571
0.014495
0.020585
0.020706
0.31754
0.242875
0.163703
0.090743
0.048843
0.035201
0
0.01447
0.337
15,635
368
146
42.486413
0.777542
0.368724
0
0.203297
0
0
0.105934
0.024368
0
0
0
0
0
1
0.049451
false
0.016484
0.032967
0
0.087912
0.016484
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
21
176
6.333333
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.142045
176
11
42
16
0.880795
0
0
0
0
0
0.034091
0
0
0
0
0
0
1
0
false
0.166667
0.333333
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
3
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
195
1,697
5.282051
0.446154
0.029126
0.027184
0.027184
0.052427
0.052427
0.052427
0.052427
0
0
0
0.011202
0.210961
1,697
40
104
42.425
0.758028
0.012375
0
0
0
0
0.27957
0.12963
0
0
0
0
0
1
0.096774
false
0
0.064516
0
0.322581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
48
369
3.666667
0.479167
0.119318
0
0
0
0
0
0
0
0
0
0.008475
0.360434
369
14
54
26.357143
0.737288
0.121951
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
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
315
3,212
5.120635
0.244444
0.123993
0.065096
0.046497
0.225666
0.140112
0
0
0
0
0
0.022335
0.386675
3,212
98
78
32.77551
0.796447
0.04203
0
0.2125
0
0
0.051611
0
0
0
0
0
0
1
0.0875
false
0
0.0125
0.025
0.175
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
204
1,234
4.294118
0.372549
0.063927
0.013699
0.09589
0.315068
0.315068
0.246575
0.246575
0.086758
0.086758
0
0.016698
0.126418
1,234
30
127
41.133333
0.795918
0.060778
0
0
0
0
0.023316
0
0
0
0
0
0
1
0.05
false
0
0.2
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
94
755
5.138298
0.361702
0.082816
0.074534
0.057971
0.186335
0.082816
0
0
0
0
0
0
0.263576
755
33
66
22.878788
0.868705
0
0
0.434783
0
0
0
0
0
0
0
0
0
1
0.26087
false
0.130435
0.130435
0
0.608696
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
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
570
4,363
4.998246
0.189474
0.050193
0.060021
0.046683
0.643033
0.618112
0.541594
0.50509
0.474201
0.436995
0
0.004338
0.207426
4,363
157
77
27.789809
0.819549
0.116892
0
0.574257
0
0
0.064718
0
0
0
0
0
0.188119
1
0.09901
false
0
0.049505
0.009901
0.178218
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
112
740
3.839286
0.544643
0.009302
0.055814
0
0
0
0
0
0
0
0
0.047273
0.256757
740
32
45
23.125
0.734545
0.018919
0
0
0
0
0.074586
0.048343
0
0
0
0
0
1
0
false
0
0.107143
0
0.107143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
326
2,920
5.966258
0.168712
0.096144
0.086375
0.129563
0.83599
0.827249
0.810283
0.791774
0.749614
0.749614
0
0.014815
0.214041
2,920
67
95
43.58209
0.83268
0
0
0.666667
0
0
0.087671
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.745098
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
7
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
383
3,020
4.634465
0.331593
0.031549
0.016901
0.030423
0.074366
0.074366
0
0
0
0
0
0.000899
0.263576
3,020
113
79
26.725664
0.797212
0.015563
0
0.067416
0
0
0.136991
0
0
0
0
0
0
1
0.134831
false
0
0.089888
0.011236
0.258427
0.011236
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
221
1,788
5.384615
0.357466
0.058824
0.057143
0.087395
0.442857
0.372269
0.321849
0.321849
0.284034
0.284034
0
0.010556
0.205257
1,788
52
92
34.384615
0.826882
0.012864
0
0.348837
0
0
0.039705
0
0
0
0
0
0
1
0.093023
false
0
0.186047
0.023256
0.44186
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
153
1,485
7.24183
0.575163
0.028881
0.041516
0.045126
0
0
0
0
0
0
0
0.000796
0.154209
1,485
37
99
40.135135
0.881369
0.13064
0
0
0
0
0.060795
0
0
0
0
0
0
1
0.04
false
0
0.24
0
0.72
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1