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
5be50f9d777ded17c518467854d968e5956e5137
11,453
py
Python
rl_environments/RLBanditEnv.py
joedaws/lde2021
ece9857667bab8691cf617ed56af561676945b60
[ "MIT" ]
null
null
null
rl_environments/RLBanditEnv.py
joedaws/lde2021
ece9857667bab8691cf617ed56af561676945b60
[ "MIT" ]
null
null
null
rl_environments/RLBanditEnv.py
joedaws/lde2021
ece9857667bab8691cf617ed56af561676945b60
[ "MIT" ]
null
null
null
import gym import numpy as np import torch import stable_baselines3 as sb3 from stable_baselines3.common.evaluation import evaluate_policy from stable_baselines3.common.env_util import make_vec_env import pybullet_envs import pandas as pd import pickle import os import matplotlib.pyplot as plt import seaborn as sns s...
42.735075
97
0.611805
1,464
11,453
4.614754
0.199454
0.03212
0.014654
0.019982
0.26717
0.223061
0.210036
0.181616
0.171551
0.130551
0
0.011357
0.269624
11,453
267
98
42.895131
0.796294
0.089671
0
0.24186
0
0
0.071616
0.00962
0
0
0
0
0
1
0.102326
false
0
0.055814
0
0.209302
0.051163
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
5be520c176df8c9950327e78b398e3917a490a73
572
py
Python
mmaction/models/losses/arc_softmax.py
dqawami/mmaction2
17cf1888cef7e9e178690ef207dc92ba6dbfe715
[ "Apache-2.0" ]
2
2021-03-11T12:25:28.000Z
2021-03-13T13:35:59.000Z
mmaction/models/losses/arc_softmax.py
dqawami/mmaction2
17cf1888cef7e9e178690ef207dc92ba6dbfe715
[ "Apache-2.0" ]
2
2021-04-05T09:42:10.000Z
2021-09-01T17:34:20.000Z
mmaction/models/losses/arc_softmax.py
dqawami/mmaction2
17cf1888cef7e9e178690ef207dc92ba6dbfe715
[ "Apache-2.0" ]
3
2020-10-30T11:11:28.000Z
2021-03-21T00:17:32.000Z
import torch import torch.nn.functional as F from ..registry import LOSSES from .metric_learning_base import BaseMetricLearningLoss @LOSSES.register_module() class ArcLoss(BaseMetricLearningLoss): """Computes the Arc loss: https://arxiv.org/pdf/1904.13148.pdf """ def __init__(self, **kwargs): su...
27.238095
95
0.708042
72
572
5.388889
0.652778
0.056701
0
0
0
0
0
0
0
0
0
0.021142
0.173077
572
20
96
28.6
0.799154
0.103147
0
0
0
0
0.007968
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
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
5be64c3df5a23af2df35e9b3ccd2de6766d07112
576
py
Python
proxy_server/helpers.py
lmanzurv/django_proxy_server
20304829ef1ddcbb281e1373d308e5fa826fcd39
[ "Apache-2.0" ]
11
2015-07-18T02:23:43.000Z
2021-11-15T11:43:21.000Z
proxy_server/helpers.py
lmanzurv/django_proxy_server
20304829ef1ddcbb281e1373d308e5fa826fcd39
[ "Apache-2.0" ]
null
null
null
proxy_server/helpers.py
lmanzurv/django_proxy_server
20304829ef1ddcbb281e1373d308e5fa826fcd39
[ "Apache-2.0" ]
5
2015-02-24T15:37:36.000Z
2021-10-10T16:42:22.000Z
import base64 def generate_service_url(function_path, params=None, encrypted=False): if not params: return function_path else: path_end = str() for key, value in params.iteritems(): if encrypted: value = base64.urlsafe_b64encode(str(value)).replace('=', '') ...
30.315789
77
0.534722
65
576
4.569231
0.446154
0.117845
0.121212
0.060606
0.154882
0.154882
0.154882
0
0
0
0
0.026596
0.347222
576
18
78
32
0.763298
0
0
0.1875
1
0
0.029514
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5be7a876f3c5105b6d3efdc5c28655fc0ede865f
84
py
Python
appendices/packaging/some_module_proj/setup.py
jashburn8020/python-testing-with-pytest
eca162766f3eb25c79778d64f993e3162c359674
[ "Apache-2.0" ]
11
2021-05-06T12:39:39.000Z
2022-03-14T11:58:44.000Z
appendices/packaging/some_module_proj/setup.py
jashburn8020/python-testing-with-pytest
eca162766f3eb25c79778d64f993e3162c359674
[ "Apache-2.0" ]
null
null
null
appendices/packaging/some_module_proj/setup.py
jashburn8020/python-testing-with-pytest
eca162766f3eb25c79778d64f993e3162c359674
[ "Apache-2.0" ]
11
2021-06-10T21:19:42.000Z
2022-02-21T04:03:06.000Z
from setuptools import setup setup(name="some_module", py_modules=["some_module"])
21
53
0.785714
12
84
5.25
0.75
0.31746
0
0
0
0
0
0
0
0
0
0
0.083333
84
3
54
28
0.818182
0
0
0
0
0
0.261905
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
5be96b53f19ce400d2e6a873c5503c0517f91811
93
py
Python
fooqt/_version_save.py
paulmueller/travisCI-macOSx-PyQt-pyinstaller
32b6acd8d8ced8855db23387f2c0069e734a53cb
[ "MIT" ]
3
2018-10-17T13:03:32.000Z
2020-11-11T10:51:21.000Z
fooqt/_version_save.py
paulmueller/travisCI-macOSx-PyQt-pyinstaller
32b6acd8d8ced8855db23387f2c0069e734a53cb
[ "MIT" ]
null
null
null
fooqt/_version_save.py
paulmueller/travisCI-macOSx-PyQt-pyinstaller
32b6acd8d8ced8855db23387f2c0069e734a53cb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # This file was created automatically longversion = '0.2.2-1-g9c91991'
23.25
37
0.741935
15
93
4.6
0.933333
0
0
0
0
0
0
0
0
0
0
0.121951
0.11828
93
3
38
31
0.719512
0.602151
0
0
0
0
0.457143
0
0
0
0
0
0
1
0
false
0
0
0
0
0
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
5bebef964e9e8885b1a9cb0a5ad817b18a2a5dc4
787
py
Python
back/lollangCompiler/variable.py
wonjinYi/lollang-playground
2df07ccc2518e6dc9f9aa00b2f38ad8d62cdb507
[ "MIT" ]
11
2022-03-12T06:41:29.000Z
2022-03-15T06:15:52.000Z
back/lollangCompiler/variable.py
wonjinYi/lollang-playground
2df07ccc2518e6dc9f9aa00b2f38ad8d62cdb507
[ "MIT" ]
4
2022-03-14T12:01:09.000Z
2022-03-26T20:19:52.000Z
back/lollangCompiler/variable.py
wonjinYi/lollang-playground
2df07ccc2518e6dc9f9aa00b2f38ad8d62cdb507
[ "MIT" ]
2
2022-03-12T03:49:20.000Z
2022-03-15T05:41:41.000Z
from enum import Enum, auto class TYPE(Enum): # 자료형 INT = auto() STR = auto() class Variable: def __init__(self): self.var = dict() def insert(self, name): try: self.var[name] except KeyError: self.var[name] = [f"var_{len(self.var)}", TYPE.INT] ...
22.485714
63
0.533672
97
787
4.185567
0.350515
0.172414
0.189655
0.093596
0.403941
0.403941
0.152709
0.152709
0
0
0
0.005714
0.33291
787
35
64
22.485714
0.767619
0.003812
0
0.37037
0
0
0.048531
0
0
0
0
0
0
1
0.259259
false
0
0.037037
0.074074
0.555556
0
0
0
0
null
0
1
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
1
0
0
3
5bedc842eb7b3b97c410dd8ff5e9293a731be138
12,016
py
Python
natural_selection/genetic_programs/__init__.py
Zipfian-Science/natural-selection
5bf04142a73f39a83e86ad0eb53ba0fecb365864
[ "Apache-2.0" ]
null
null
null
natural_selection/genetic_programs/__init__.py
Zipfian-Science/natural-selection
5bf04142a73f39a83e86ad0eb53ba0fecb365864
[ "Apache-2.0" ]
1
2021-02-26T10:10:43.000Z
2021-02-26T10:10:43.000Z
natural_selection/genetic_programs/__init__.py
Zipfian-Science/natural-selection
5bf04142a73f39a83e86ad0eb53ba0fecb365864
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Basic classes for running Genetic Algorithms. """ __author__ = "Justin Hocking" __copyright__ = "Copyright 2021, Zipfian Science" __credits__ = [] __license__ = "" __version__ = "0.0.1" __maintainer__ = "Justin Hocking" __email__ = "justin.hocking@zipfian.science" __status__ = "Development" ...
35.134503
135
0.604194
1,428
12,016
4.935574
0.191877
0.032633
0.031356
0.037457
0.29441
0.26206
0.240778
0.229994
0.229994
0.229994
0
0.002769
0.308755
12,016
342
136
35.134503
0.845774
0.321072
0
0.368687
0
0
0.071925
0.010763
0
0
0
0
0.020202
1
0.131313
false
0
0.020202
0.015152
0.318182
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
5bef9dd75f6bd3b7b7d6aa908b20235fbd72a39c
615
py
Python
tests/fixtures/uploads.py
ReeceHoffmann/virtool
f9befad060fe16fa29fb80124e674ac5a9c4f538
[ "MIT" ]
39
2016-10-31T23:28:59.000Z
2022-01-15T00:00:42.000Z
tests/fixtures/uploads.py
ReeceHoffmann/virtool
f9befad060fe16fa29fb80124e674ac5a9c4f538
[ "MIT" ]
1,690
2017-02-07T23:39:48.000Z
2022-03-31T22:30:44.000Z
tests/fixtures/uploads.py
ReeceHoffmann/virtool
f9befad060fe16fa29fb80124e674ac5a9c4f538
[ "MIT" ]
25
2017-02-08T18:25:31.000Z
2021-09-20T22:55:25.000Z
import pytest from sqlalchemy.ext.asyncio import AsyncSession from virtool.uploads.models import Upload @pytest.fixture async def test_uploads(pg, fake, static_time): user_1 = await fake.users.insert() user_2 = await fake.users.insert() upload_1 = Upload(id=1, name="test.fq.gz", type="reads", user=user_1...
30.75
84
0.695935
97
615
4.237113
0.402062
0.036496
0.072993
0.087591
0.160584
0
0
0
0
0
0
0.027027
0.157724
615
19
85
32.368421
0.766409
0
0
0
0
0
0.086179
0
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
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
5bf071101faa3aefed0673b302d38405eb0bab30
3,029
py
Python
cuppa/methods/compile.py
chriskohlhoff/cuppa
c777adb5cd91e52ac06c87688e1a635a61f609d1
[ "BSL-1.0" ]
1
2021-08-31T22:05:15.000Z
2021-08-31T22:05:15.000Z
cuppa/methods/compile.py
chriskohlhoff/cuppa
c777adb5cd91e52ac06c87688e1a635a61f609d1
[ "BSL-1.0" ]
null
null
null
cuppa/methods/compile.py
chriskohlhoff/cuppa
c777adb5cd91e52ac06c87688e1a635a61f609d1
[ "BSL-1.0" ]
null
null
null
# Copyright Jamie Allsop 2013-2018 # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) #------------------------------------------------------------------------------- # CompileMethod #---------...
36.493976
116
0.526576
321
3,029
4.806854
0.320872
0.038885
0.02722
0.029164
0.132858
0.132858
0
0
0
0
0
0.008604
0.309343
3,029
82
117
36.939024
0.728968
0.120502
0
0.074074
0
0
0.080529
0
0
0
0
0
0
1
0.055556
false
0
0.111111
0
0.203704
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
5bf4bd9bfb15b22cd17a71e718232ade00af3a48
593
py
Python
format_turning.py
xiao-gy/daily_bz
6a79c19d559039f2e015720079baea3a8d9ffd37
[ "MIT" ]
3
2021-04-13T00:18:20.000Z
2021-07-15T08:25:22.000Z
format_turning.py
xiao-gy/daily_bz
6a79c19d559039f2e015720079baea3a8d9ffd37
[ "MIT" ]
null
null
null
format_turning.py
xiao-gy/daily_bz
6a79c19d559039f2e015720079baea3a8d9ffd37
[ "MIT" ]
5
2021-05-05T12:58:19.000Z
2021-09-12T10:28:33.000Z
import json import os try: os.rename(os.path.join(os.getcwd(),'config','like.json'),os.path.join(os.getcwd(),'config','like_copy.json')) except: print("无法进行重命名") f = open(os.path.join(os.getcwd(),'config','like_copy.json'),mode='r',encoding='utf8') likes = json.loads(f.read()) list = {"likes":[{"name":"默认收藏夹...
31.210526
113
0.639123
95
593
3.957895
0.431579
0.06383
0.106383
0.12766
0.388298
0.388298
0.388298
0.388298
0.292553
0
0
0.005455
0.072513
593
19
114
31.210526
0.678182
0
0
0
0
0
0.249158
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.071429
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
5bf81eaf34d29539cf6fc4ab7d86334be33a32aa
8,440
py
Python
Project/models/homography.py
iust-projects/Computer-Vision-IUST
732c8f1eaf1df032f1b7ec0518756017117038af
[ "Apache-2.0" ]
null
null
null
Project/models/homography.py
iust-projects/Computer-Vision-IUST
732c8f1eaf1df032f1b7ec0518756017117038af
[ "Apache-2.0" ]
1
2020-12-22T09:02:20.000Z
2020-12-22T09:02:20.000Z
Project/models/homography.py
iust-projects/Computer-Vision-IUST
732c8f1eaf1df032f1b7ec0518756017117038af
[ "Apache-2.0" ]
null
null
null
# %% import libraries import numpy as np import random import cv2 import PIL import matplotlib.pyplot as plt from copy import deepcopy # %% 1 Extract Harris interest points def get_points(img, threshold=0.1, coordinate=False): """ Extract harris points of given image :param img: An image of type open c...
36.223176
113
0.638981
1,222
8,440
4.235679
0.195581
0.044436
0.027821
0.00966
0.249227
0.194552
0.126159
0.084042
0.059699
0.034003
0
0.056197
0.240995
8,440
232
114
36.37931
0.751795
0.244668
0
0.084615
0
0
0.013391
0.008067
0
0
0
0
0.015385
1
0.053846
false
0
0.046154
0
0.161538
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
0
0
0
0
0
0
0
0
0
0
1
0
5bfc12035df037a7d9db7f30808756998f54bdee
6,592
py
Python
dataset/data.py
mondrasovic/reid_baseline_syncbn
3d21a786fb1a0519caaa0572c649f750036689b5
[ "MIT" ]
1
2022-01-05T15:42:44.000Z
2022-01-05T15:42:44.000Z
dataset/data.py
mondrasovic/reid_baseline_syncbn
3d21a786fb1a0519caaa0572c649f750036689b5
[ "MIT" ]
null
null
null
dataset/data.py
mondrasovic/reid_baseline_syncbn
3d21a786fb1a0519caaa0572c649f750036689b5
[ "MIT" ]
null
null
null
import torch import os.path as osp from PIL import Image from torch.utils.data import Dataset import numpy as np from torchvision import transforms as T import glob import re from PIL import ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True def read_image(img_path): """Keep reading image until succe...
33.979381
103
0.556887
776
6,592
4.501289
0.21134
0.026052
0.032064
0.034354
0.271686
0.256227
0.214143
0.15574
0.105354
0.04008
0
0.003404
0.331614
6,592
193
104
34.15544
0.789378
0.106493
0
0.086667
0
0
0.092898
0.021521
0
0
0
0
0
1
0.066667
false
0.006667
0.06
0.006667
0.18
0.08
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
5bfc9c9dc6bfe8a46625975c2ef7e96d083e2b69
407
py
Python
StarletteServer/functions.py
Amatobahn/starlette-boilerplate
92e91bd30e918df45d3e2a09602833fd07f698f2
[ "MIT" ]
1
2021-11-30T20:08:17.000Z
2021-11-30T20:08:17.000Z
StarletteServer/functions.py
Amatobahn/starlette-boilerplate
92e91bd30e918df45d3e2a09602833fd07f698f2
[ "MIT" ]
null
null
null
StarletteServer/functions.py
Amatobahn/starlette-boilerplate
92e91bd30e918df45d3e2a09602833fd07f698f2
[ "MIT" ]
2
2019-07-13T11:27:21.000Z
2020-01-27T07:13:09.000Z
from starlette.requests import Request from starlette.responses import JSONResponse, Response def hello_world(scope): return Response("Hello World!") def hello_world_form_data(scope): async def parse(receive, send): request = Request(scope, receive) data = await request.form() respon...
25.4375
54
0.70516
48
407
5.895833
0.416667
0.106007
0.091873
0
0
0
0
0
0
0
0
0
0.206388
407
15
55
27.133333
0.876161
0
0
0
0
0
0.039312
0
0
0
0
0
0
1
0.181818
false
0
0.181818
0.090909
0.545455
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
5bfebd468f13a1c5d7579d8f57fd8f03fb649c4e
1,726
py
Python
gpg.py
counsyl/glacier-cli
1b99931a31690841f9d33a576c638f8b1cccecf8
[ "MIT" ]
null
null
null
gpg.py
counsyl/glacier-cli
1b99931a31690841f9d33a576c638f8b1cccecf8
[ "MIT" ]
null
null
null
gpg.py
counsyl/glacier-cli
1b99931a31690841f9d33a576c638f8b1cccecf8
[ "MIT" ]
null
null
null
import gnupg import os GNUPG_KEY_TYPE = "RSA" GNUPG_KEY_LENGTH = 2048 class Encryptor(object): def __init__(self): self.gpg = gnupg.GPG() self.gpg.encoding = "utf-8" if self.gpg.list_keys() == []: self.generate_keypair() def generate_keypair(self): """Generate th...
31.962963
77
0.6292
214
1,726
4.82243
0.242991
0.081395
0.02907
0.02907
0.358527
0.323643
0.160853
0.160853
0.077519
0.077519
0
0.004713
0.262457
1,726
53
78
32.566038
0.80597
0.15759
0
0.060606
0
0
0.014758
0
0
0
0
0
0
1
0.242424
false
0
0.060606
0
0.484848
0.121212
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
5bff6a5a233a953254c76067336649d556192ab7
4,966
py
Python
project/settings.py
panubo/panubo-dns
fce7cf8b26f06da749c659f24e7f6339997c4102
[ "MIT" ]
null
null
null
project/settings.py
panubo/panubo-dns
fce7cf8b26f06da749c659f24e7f6339997c4102
[ "MIT" ]
1
2015-08-19T05:24:09.000Z
2019-07-01T01:47:12.000Z
project/settings.py
panubo/panubo-dns
fce7cf8b26f06da749c659f24e7f6339997c4102
[ "MIT" ]
2
2016-06-06T09:48:24.000Z
2021-04-19T15:33:50.000Z
""" Django settings for project. """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) import os BASE_DIR = os.path.dirname(os.path.dirname(__file__)) PROJECT_PATH = os.path.abspath(os.path.split(__file__)[0]) ALLOWED_HOSTS = ['*'] # Application definition INSTALLED_APPS = ( 'django.contri...
30.654321
118
0.681232
563
4,966
5.79929
0.35524
0.044104
0.029403
0.047473
0.106585
0.032466
0.032466
0
0
0
0
0.008778
0.174184
4,966
162
119
30.654321
0.787369
0.0882
0
0.034188
0
0
0.45765
0.302439
0
0
0
0
0
1
0
false
0.008547
0.025641
0
0.025641
0.008547
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
7504ff9da64147dd9f11150a10c7e67cc0d2ab82
895
py
Python
075.err.py
liuyang1/euler
ba6c79b3f809711eec07a7843ec60c86990564d1
[ "MIT" ]
null
null
null
075.err.py
liuyang1/euler
ba6c79b3f809711eec07a7843ec60c86990564d1
[ "MIT" ]
null
null
null
075.err.py
liuyang1/euler
ba6c79b3f809711eec07a7843ec60c86990564d1
[ "MIT" ]
null
null
null
from itertools import count from common import mymath def GouGu(): for m in count(1): for n in xrange(1, m): if mymath.gcd(m, n) == 1 and (m % 2 == 0 or n % 2 == 0): mm = m * m nn = n * n mn = 2 * m * n pp = mm * 2 + mn ...
21.309524
68
0.46257
134
895
3.089552
0.343284
0.038647
0.024155
0.038647
0.048309
0
0
0
0
0
0
0.039139
0.42905
895
41
69
21.829268
0.771037
0.053631
0
0.057143
0
0
0
0
0
0
0
0
0
0
null
null
0
0.085714
null
null
0.114286
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
7505d44db8a60afab4853b6715130e001e8c0b30
587
py
Python
src/extract/test.py
AutoKnowledge/AutoKnowledge
1a9fce1449d9605dc0289ab13736d073453ed102
[ "Apache-2.0" ]
1
2021-02-24T10:22:19.000Z
2021-02-24T10:22:19.000Z
src/extract/test.py
AutoKnowledge/AutoKnowledge
1a9fce1449d9605dc0289ab13736d073453ed102
[ "Apache-2.0" ]
null
null
null
src/extract/test.py
AutoKnowledge/AutoKnowledge
1a9fce1449d9605dc0289ab13736d073453ed102
[ "Apache-2.0" ]
null
null
null
''' import analyze any = analyze.Analyze() # 吻别是由张学友演唱的一首歌曲。 #text = '《盗墓笔记》是2014年欢瑞世纪影视传媒股份有限公司出品的一部网络季播剧,改编自南派三叔所著的同名小说,由郑保瑞和罗永昌联合导演,李易峰、杨洋、唐嫣、刘天佐、张智尧、魏巍等主演。' #text = '姚明1980年9月12日出生于上海市徐汇区,祖籍江苏省苏州市吴江区震泽镇,前中国职业篮球运动员,司职中锋,现任中职联公司董事长兼总经理。' knowledge = any.knowledge(text) print(knowledge) ''' from medext import getTripl...
39.133333
156
0.810903
62
587
7.677419
0.774194
0.037815
0
0
0
0
0
0
0
0
0
0.025362
0.059625
587
14
157
41.928571
0.836957
0.749574
0
0
0
0
0.410072
0.280576
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
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
75075401a18228befc57b214cb804403c7d028e7
4,460
py
Python
alfred-workflow-py3/tests/test_workflow_xml.py
kw-lee/alfdaumdict
fde5c54fb5e8eb30bd6308c4a6086e46b60f101b
[ "MIT" ]
1
2022-03-19T10:27:12.000Z
2022-03-19T10:27:12.000Z
alfred-workflow-py3/tests/test_workflow_xml.py
kw-lee/alfdaumdict
fde5c54fb5e8eb30bd6308c4a6086e46b60f101b
[ "MIT" ]
null
null
null
alfred-workflow-py3/tests/test_workflow_xml.py
kw-lee/alfdaumdict
fde5c54fb5e8eb30bd6308c4a6086e46b60f101b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2017 Dean Jackson <deanishe@deanishe.net> # # MIT Licence. See http://opensource.org/licenses/MIT # # Created on 2017-05-06 # """Unit tests for Workflow's XML feedback generation.""" import sys from contextlib import contextmanager from xml.etree import Eleme...
26.081871
87
0.609865
547
4,460
4.888483
0.224863
0.037397
0.053852
0.028422
0.456245
0.439791
0.415856
0.415856
0.415856
0.415856
0
0.004709
0.238117
4,460
170
88
26.235294
0.782225
0.085874
0
0.504
0
0
0.144662
0
0
0
0
0
0.4
1
0.04
false
0
0.048
0
0.088
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
7507a6580b66db203bf852283bb2de39d367b47f
2,323
py
Python
tests/test_api_calls.py
mindheist/coc-client
7d249211a850538cfc1b5b286dff1d83df443db7
[ "MIT" ]
10
2016-02-14T05:59:27.000Z
2019-12-08T11:54:17.000Z
tests/test_api_calls.py
mindheist/coc-client
7d249211a850538cfc1b5b286dff1d83df443db7
[ "MIT" ]
2
2018-01-15T15:41:40.000Z
2018-01-23T00:47:42.000Z
tests/test_api_calls.py
mindheist/coc-client
7d249211a850538cfc1b5b286dff1d83df443db7
[ "MIT" ]
8
2016-10-06T14:07:58.000Z
2019-01-11T19:44:20.000Z
from coc.api import ClashOfClans from os import environ import pytest @pytest.fixture def api_key(): return environ['COC_API_KEY'] slow_test = pytest.mark.skipif( not pytest.config.getoption("--runslow"), reason="need --runslow option to run" ) @slow_test @pytest.mark.api_call def test_locations_apicall...
27.654762
61
0.716315
341
2,323
4.639296
0.190616
0.072061
0.079646
0.102402
0.788875
0.788875
0.788875
0.788875
0.768647
0.71555
0
0.03459
0.166164
2,323
84
62
27.654762
0.782137
0
0
0.597222
0
0
0.046472
0
0
0
0
0
0.277778
1
0.125
false
0
0.041667
0.013889
0.180556
0
0
0
0
null
0
0
0
0
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
0
0
0
5
750808c8295fb8a3000d23694263942f06120b62
4,618
py
Python
executables/adjusted_ranking_experiments.py
mberr/rank-based-evaluation
76a0847eecf4350d92783e9773d6fc6b6c69ca51
[ "MIT" ]
5
2021-02-16T01:04:39.000Z
2021-09-01T01:36:02.000Z
executables/adjusted_ranking_experiments.py
mberr/rank-based-evaluation
76a0847eecf4350d92783e9773d6fc6b6c69ca51
[ "MIT" ]
null
null
null
executables/adjusted_ranking_experiments.py
mberr/rank-based-evaluation
76a0847eecf4350d92783e9773d6fc6b6c69ca51
[ "MIT" ]
null
null
null
# coding=utf-8 """Evaluation of different training and test sizes.""" import argparse import logging import random import mlflow import numpy import torch import tqdm from kgm.data import get_dataset_by_name from kgm.eval.matching import evaluate_matching_model from kgm.models import GCNAlign from kgm.modules import ...
31.848276
87
0.561498
484
4,618
5.136364
0.340909
0.016895
0.04103
0.012872
0.055511
0
0
0
0
0
0
0.0247
0.351234
4,618
144
88
32.069444
0.805073
0.083369
0
0.064815
0
0
0.052244
0.006649
0
0
0
0
0.009259
1
0.009259
false
0
0.12037
0
0.12963
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
7508d691984e7e548e24d4c98d154e16ac09c939
212
py
Python
tests/test___init__.py
ikonst/pytest-mypy-testing
fa23aa769a5f11afebcec23af43aa6b5e32a3b11
[ "Apache-2.0", "MIT" ]
17
2020-01-15T12:14:25.000Z
2022-01-21T10:16:55.000Z
tests/test___init__.py
ikonst/pytest-mypy-testing
fa23aa769a5f11afebcec23af43aa6b5e32a3b11
[ "Apache-2.0", "MIT" ]
10
2020-01-15T12:21:04.000Z
2021-12-25T18:19:09.000Z
tests/test___init__.py
ikonst/pytest-mypy-testing
fa23aa769a5f11afebcec23af43aa6b5e32a3b11
[ "Apache-2.0", "MIT" ]
3
2020-04-10T08:49:39.000Z
2021-08-15T01:54:16.000Z
# SPDX-FileCopyrightText: David Fritzsche # SPDX-License-Identifier: CC0-1.0 import re from pytest_mypy_testing import __version__ def test_version(): assert re.match("^[0-9]*([.][0-9]*)*$", __version__)
19.272727
56
0.716981
29
212
4.862069
0.724138
0.028369
0
0
0
0
0
0
0
0
0
0.037634
0.122642
212
10
57
21.2
0.72043
0.339623
0
0
0
0
0.145985
0
0
0
0
0
0.25
1
0.25
true
0
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
1
1
0
1
0
1
0
0
5
750a34fed3230d5f5f9e5491dc14d2f490974ee6
5,204
py
Python
microsoft/gestures/gesture_container.py
dany74q/python-microsoft-project-prague-sdk
abfea98d75e16c2d8862973e61970d99122f9cec
[ "MIT" ]
1
2017-07-30T10:17:38.000Z
2017-07-30T10:17:38.000Z
microsoft/gestures/gesture_container.py
dany74q/python-microsoft-project-prague-sdk
abfea98d75e16c2d8862973e61970d99122f9cec
[ "MIT" ]
null
null
null
microsoft/gestures/gesture_container.py
dany74q/python-microsoft-project-prague-sdk
abfea98d75e16c2d8862973e61970d99122f9cec
[ "MIT" ]
null
null
null
from microsoft.gestures.fingertip_placement_relation import FingertipPlacementRelation from microsoft.gestures.fingertip_distance_relation import FingertipDistanceRelation from xml.etree.ElementTree import Element, SubElement, Comment, tostring from microsoft.gestures.relative_placement import RelativePlacement from mi...
57.186813
166
0.683128
555
5,204
6.099099
0.225225
0.041359
0.08065
0.047858
0.274446
0.258789
0.218316
0.161595
0.14712
0.14712
0
0.002952
0.21887
5,204
91
167
57.186813
0.829766
0
0
0.073171
0
0
0.072046
0.005187
0
0
0
0
0
1
0.060976
false
0
0.182927
0.012195
0.304878
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
750c2cbca31d1cd5b27e82c3d58caffc08d7d742
1,650
py
Python
trojsten/submit/migrations/0005_auto_20180915_2002.py
MvonK/web
b701a6ea8fb6f0bdfb720e66d0a430db13db8bff
[ "MIT" ]
5
2018-04-22T22:44:02.000Z
2021-04-26T20:44:44.000Z
trojsten/submit/migrations/0005_auto_20180915_2002.py
MvonK/web
b701a6ea8fb6f0bdfb720e66d0a430db13db8bff
[ "MIT" ]
250
2018-04-24T12:04:11.000Z
2022-03-09T06:56:47.000Z
trojsten/submit/migrations/0005_auto_20180915_2002.py
MvonK/web
b701a6ea8fb6f0bdfb720e66d0a430db13db8bff
[ "MIT" ]
8
2019-04-28T11:33:03.000Z
2022-02-26T13:30:36.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.12 on 2018-09-15 20:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("old_submit", "0004_submit_protocol")] operations = [ migrations.AlterField( model_name="submit", name="p...
31.730769
98
0.485455
145
1,650
5.37931
0.572414
0.064103
0.128205
0.148718
0.370513
0.2
0
0
0
0
0
0.033764
0.389697
1,650
51
99
32.352941
0.740814
0.041818
0
0.466667
1
0
0.202788
0
0
0
0
0
0
1
0
false
0
0.022222
0
0.088889
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
750d6d782ee25a5fe5c2ee7163c23181ca5c4289
281
py
Python
src/todos/serializers.py
vishaltanwar96/iTrack
1d57e2d57a61a309632673b7bde8fc559eea09c0
[ "MIT" ]
3
2020-11-20T15:44:14.000Z
2020-11-21T12:18:15.000Z
src/todos/serializers.py
vishaltanwar96/iTrack
1d57e2d57a61a309632673b7bde8fc559eea09c0
[ "MIT" ]
null
null
null
src/todos/serializers.py
vishaltanwar96/iTrack
1d57e2d57a61a309632673b7bde8fc559eea09c0
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Todo class TodoSerializer(serializers.ModelSerializer): """.""" class Meta: model = Todo fields = "__all__" read_only_fields = ("belongs_to", "is_complete", "created_at", "updated_at")
20.071429
84
0.669039
30
281
5.9
0.766667
0
0
0
0
0
0
0
0
0
0
0
0.220641
281
13
85
21.615385
0.808219
0.003559
0
0
0
0
0.175182
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.571429
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
750d8e497e21c46d3ed340b4abc7623e18ad44e4
7,027
py
Python
pygraph/domination.py
jysh1214/pygraph
fba581ce5e259854a4b86163c4fb61030e663a81
[ "MIT" ]
null
null
null
pygraph/domination.py
jysh1214/pygraph
fba581ce5e259854a4b86163c4fb61030e663a81
[ "MIT" ]
null
null
null
pygraph/domination.py
jysh1214/pygraph
fba581ce5e259854a4b86163c4fb61030e663a81
[ "MIT" ]
null
null
null
from .get_imformation import GI class DM: def __init__(self, adj_matrix, ins_matrix): self.Adjacency_Matrix = adj_matrix self.Insidence_Matrix = ins_matrix self.N = len(self.Adjacency_Matrix) ### Packing: Find Maximal ### def clique(self): """ Returns: ...
27.342412
81
0.477871
820
7,027
3.931707
0.134146
0.045596
0.020471
0.034119
0.505583
0.462779
0.405707
0.343052
0.322891
0.322891
0
0.006401
0.421944
7,027
256
82
27.449219
0.787297
0.120677
0
0.369565
0
0
0
0
0
0
0
0
0
1
0.072464
false
0
0.007246
0
0.144928
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
750db8dedf746751bad013c1015bec9f1774f4f4
680
py
Python
game/combat/effects/moveeffect/cure.py
Sipondo/ulix-dexflow
de46482fe08e3d600dd5da581f0524b55e5df961
[ "MIT" ]
5
2021-06-25T16:44:38.000Z
2021-12-31T01:29:00.000Z
game/combat/effects/moveeffect/cure.py
Sipondo/ulix-dexflow
de46482fe08e3d600dd5da581f0524b55e5df961
[ "MIT" ]
null
null
null
game/combat/effects/moveeffect/cure.py
Sipondo/ulix-dexflow
de46482fe08e3d600dd5da581f0524b55e5df961
[ "MIT" ]
1
2021-06-25T20:33:47.000Z
2021-06-25T20:33:47.000Z
from .basemoveeffect import BaseMoveEffect from game.combat.effects.genericeffect import GenericEffect class Cure(BaseMoveEffect): def after_action(self): if self.scene.board.random_roll(self.move.chance): target_effects = self.scene.get_effects_on_target(self.move.target) for stat...
37.777778
84
0.616176
79
680
5.177215
0.518987
0.132029
0.06846
0
0
0
0
0
0
0
0
0
0.294118
680
17
85
40
0.852083
0
0
0
0
0
0.104412
0.072059
0
0
0
0
0
1
0.066667
false
0
0.133333
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
0
0
0
0
0
0
1
0
750e4085fb2729c790fdc37560668ec0186b9389
2,945
py
Python
mlserve/utils.py
jettify/mlserve
571152e4475738e0b01fcbde166d95a3636b3c5f
[ "Apache-2.0" ]
17
2018-08-06T09:38:17.000Z
2018-08-14T10:55:58.000Z
mlserve/utils.py
ml-libs/mlserve
571152e4475738e0b01fcbde166d95a3636b3c5f
[ "Apache-2.0" ]
63
2018-09-07T21:40:16.000Z
2022-02-10T17:11:13.000Z
mlserve/utils.py
jettify/mlserve
571152e4475738e0b01fcbde166d95a3636b3c5f
[ "Apache-2.0" ]
1
2019-05-06T10:18:59.000Z
2019-05-06T10:18:59.000Z
import json import os import trafaret as t import yaml from dataclasses import dataclass, asdict from pathlib import Path from typing import Any, List, Dict ModelMeta = t.Dict( { t.Key('name'): t.String, t.Key('description'): t.String, t.Key('model_path'): t.String, t.Key('data_s...
27.018349
79
0.609168
396
2,945
4.419192
0.239899
0.029714
0.036571
0.044
0.139429
0.101714
0.101714
0.101714
0.101714
0.101714
0
0.018717
0.238031
2,945
108
80
27.268519
0.761141
0.012903
0
0.094118
0
0
0.105336
0
0
0
0
0.009259
0
1
0.047059
false
0
0.082353
0.011765
0.352941
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
750f07c7e86e349dd91bdbbb50528afd0a003a01
2,844
py
Python
crawlergooglescholar/get_picts.py
vignif/Crawler-google-scholar
5e95114d253ef5d160148422af240f034a3e5623
[ "MIT" ]
null
null
null
crawlergooglescholar/get_picts.py
vignif/Crawler-google-scholar
5e95114d253ef5d160148422af240f034a3e5623
[ "MIT" ]
null
null
null
crawlergooglescholar/get_picts.py
vignif/Crawler-google-scholar
5e95114d253ef5d160148422af240f034a3e5623
[ "MIT" ]
null
null
null
"""this script crawls for the profile pictures of researchers in google scholar and saves them in a folder called [figures] the crawler exploit the informations via the description of the tags in the html of google scholar be aware that too many requests to a server might interrupt your script, please ...
30.913043
102
0.621308
386
2,844
4.466321
0.440415
0.076566
0.030162
0.031323
0.074246
0.074246
0
0
0
0
0
0.005332
0.274613
2,844
91
103
31.252747
0.830344
0.257384
0
0.036364
0
0
0.125181
0
0
0
0
0
0
1
0.072727
false
0
0.109091
0
0.218182
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
0
0
0
0
1
0
750f1f7f1d0eb84c9cf6a66afb31539b4f352e2a
2,246
py
Python
root/os/DSAA/DataStructuresAndAlgorithms/python/chutils/chutils/chdb/redisClient.py
chyidl/chyidlTutorial
a033e0a57abf84fdbb61e57736822f9126db6ff7
[ "MIT" ]
5
2018-10-17T05:57:39.000Z
2021-07-05T15:38:24.000Z
root/os/DSAA/DataStructuresAndAlgorithms/python/chutils/chutils/chdb/redisClient.py
chyidl/chyidlTutorial
a033e0a57abf84fdbb61e57736822f9126db6ff7
[ "MIT" ]
2
2021-04-14T00:48:43.000Z
2021-04-14T02:20:50.000Z
root/os/DSAA/DataStructuresAndAlgorithms/python/chutils/chutils/chdb/redisClient.py
chyidl/chyidlTutorial
a033e0a57abf84fdbb61e57736822f9126db6ff7
[ "MIT" ]
3
2019-03-02T14:36:19.000Z
2022-03-18T10:12:09.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # # redisClient.py # chdb # # 🎂"Here's to the crazy ones. The misfits. The rebels. # The troublemakers. The round pegs in the square holes. # The ones who see things differently. They're not found # of rules. And they have no respect for the status quo. # You can quote t...
31.194444
86
0.675868
314
2,246
4.687898
0.480892
0.040761
0.050951
0.036685
0.109375
0
0
0
0
0
0
0.013613
0.215049
2,246
71
87
31.633803
0.820193
0.412734
0
0
0
0
0.076104
0.015982
0
0
0
0
0
1
0.121212
false
0.151515
0.060606
0
0.333333
0.060606
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
7510b10f0b56bd6f23e065d973fded7927aa8141
3,438
py
Python
kelas_2c/nurul.py
idamfadilah/belajarpython
72c5108a7f44d8b8f33dc5d5b1bd4f8a83f8b811
[ "MIT" ]
1
2020-01-13T15:21:11.000Z
2020-01-13T15:21:11.000Z
kelas_2c/nurul.py
idamfadilah/belajarpython
72c5108a7f44d8b8f33dc5d5b1bd4f8a83f8b811
[ "MIT" ]
32
2019-11-21T08:46:48.000Z
2020-01-12T07:53:02.000Z
kelas_2c/nurul.py
idamfadilah/belajarpython
72c5108a7f44d8b8f33dc5d5b1bd4f8a83f8b811
[ "MIT" ]
437
2019-11-21T06:11:13.000Z
2021-04-22T22:11:23.000Z
import csv import matplotlib.pyplot as plt import requests class nurul: def ganjilgenap(self): with open('kelas_2c/nurul.csv') as files: reader=csv.reader(files, delimiter=',') for row in reader: if int(row[0])%2 == 1: print(row[0],"merupakan Bi...
29.135593
219
0.538685
457
3,438
4.021882
0.420131
0.016322
0.021763
0.026115
0.296518
0.226333
0.22198
0.194777
0.194777
0.194777
0
0.108878
0.30541
3,438
118
220
29.135593
0.660804
0.072717
0
0.238095
0
0
0.17856
0.045269
0
0
0
0
0
1
0.130952
false
0
0.035714
0
0.178571
0.130952
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
75110cf2b69cd80e1422da4c443d622bdec91b65
1,227
py
Python
yandex_algorithm2/home1b.py
erjan/coding_exercises
53ba035be85f1e7a12b4d4dbf546863324740467
[ "Apache-2.0" ]
null
null
null
yandex_algorithm2/home1b.py
erjan/coding_exercises
53ba035be85f1e7a12b4d4dbf546863324740467
[ "Apache-2.0" ]
null
null
null
yandex_algorithm2/home1b.py
erjan/coding_exercises
53ba035be85f1e7a12b4d4dbf546863324740467
[ "Apache-2.0" ]
null
null
null
''' Витя работает недалеко от одной из станций кольцевой линии Московского метро, а живет рядом с другой станцией той же линии. Требуется выяснить, мимо какого наименьшего количества промежуточных станций необходимо проехать Вите по кольцу, чтобы добраться с работы домой. Формат ввода Станции пронумерованы подряд нату...
35.057143
268
0.712306
187
1,227
4.620321
0.572193
0.045139
0.048611
0.032407
0.034722
0
0
0
0
0
0
0.014257
0.199674
1,227
34
269
36.088235
0.85947
0.703341
0
0
0
0
0.022535
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.153846
0.076923
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
7513ff5add6b73fcd1384d95d2b1837bb279a0e4
236
py
Python
medica_api/core/urls.py
aseem-hegshetye/Django_Rest_Api
663693b4003d012029fc3365f01b171824229344
[ "MIT" ]
null
null
null
medica_api/core/urls.py
aseem-hegshetye/Django_Rest_Api
663693b4003d012029fc3365f01b171824229344
[ "MIT" ]
15
2020-06-06T00:44:36.000Z
2022-03-12T00:18:42.000Z
medica_api/core/urls.py
aseem-hegshetye/Django_Rest_Api
663693b4003d012029fc3365f01b171824229344
[ "MIT" ]
null
null
null
from rest_framework.routers import DefaultRouter from django.urls import path, include from .views import * router = DefaultRouter() router.register('user', User, basename='user') urlpatterns = [ path('', include(router.urls)) ]
19.666667
48
0.741525
28
236
6.214286
0.571429
0.126437
0
0
0
0
0
0
0
0
0
0
0.135593
236
11
49
21.454545
0.852941
0
0
0
0
0
0.033898
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
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
0
1
0
0
0
0
2
7515c9edf4c6cfe592909aca896e0ddefbb578de
7,110
py
Python
Udemy_Py_DataScience_ML/Sec15_LinearReg.py
gonzalosc2/LearningPython
0210d4cbbb5e154f12007b8e8f825fd3d0022be0
[ "MIT" ]
null
null
null
Udemy_Py_DataScience_ML/Sec15_LinearReg.py
gonzalosc2/LearningPython
0210d4cbbb5e154f12007b8e8f825fd3d0022be0
[ "MIT" ]
null
null
null
Udemy_Py_DataScience_ML/Sec15_LinearReg.py
gonzalosc2/LearningPython
0210d4cbbb5e154f12007b8e8f825fd3d0022be0
[ "MIT" ]
null
null
null
#################################### # author: Gonzalo Salazar # course: Python for Data Science and Machine Learning Bootcamp # purpose: lecture notes # description: Section 15 - Linear Regression # other: N/A #################################### #%% import os from numpy.lib.function_base import corrcoef import panda...
38.852459
97
0.715752
1,063
7,110
4.709313
0.347131
0.014982
0.019776
0.019177
0.195565
0.173592
0.166001
0.137435
0.10867
0.093088
0
0.00859
0.181294
7,110
183
98
38.852459
0.8514
0.621378
0
0.275862
0
0
0.134181
0.033238
0
0
0
0
0
1
0
false
0
0.155172
0
0.155172
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
75160826b98614b47f394cd26909f4c19c70ebbb
1,994
py
Python
src/lib_example/hypot.py
atpage/cuda_intro
01dcebdadb961ada4f3532b847f259ac4ea4e615
[ "MIT" ]
null
null
null
src/lib_example/hypot.py
atpage/cuda_intro
01dcebdadb961ada4f3532b847f259ac4ea4e615
[ "MIT" ]
2
2016-02-09T17:39:02.000Z
2016-05-09T14:44:26.000Z
src/lib_example/hypot.py
atpage/cuda_intro
01dcebdadb961ada4f3532b847f259ac4ea4e615
[ "MIT" ]
null
null
null
#!/usr/bin/env python import numpy as np import argparse from ctypes import * import sys ################################ Load library: ################################ lib_name = 'libhypot.so' try: # try to use the one the OS finds (e.g. in /usr/local/lib) libhypot = CDLL(lib_name) except OSError: # lib...
32.688525
91
0.474925
224
1,994
4.142857
0.491071
0.022629
0.054957
0.061422
0.117457
0.080819
0
0
0
0
0
0.004808
0.165496
1,994
60
92
33.233333
0.552885
0.140923
0
0
0
0
0.23946
0
0
0
0
0
0.034483
1
0
false
0
0.137931
0
0.137931
0.034483
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
7517b754bad63bbf7e6aee8bffbb95a5574b2ca6
3,066
py
Python
pjon_python/utils/RedisConn.py
Girgitt/PJON-python
a2653d46eefa6ce8339eb780074f10f20c4db49c
[ "Apache-2.0" ]
21
2016-08-25T10:26:44.000Z
2022-03-23T00:43:19.000Z
pjon_python/utils/RedisConn.py
Girgitt/PJON-python
a2653d46eefa6ce8339eb780074f10f20c4db49c
[ "Apache-2.0" ]
9
2016-08-30T23:49:51.000Z
2020-12-22T09:05:58.000Z
pjon_python/utils/RedisConn.py
Girgitt/PJON-python
a2653d46eefa6ce8339eb780074f10f20c4db49c
[ "Apache-2.0" ]
7
2017-05-21T17:39:31.000Z
2020-07-04T12:37:30.000Z
import time import json from redis import ConnectionError import logging import jsonpickle from retrying import retry log = logging.getLogger("redis-conn") def retry_if_connection_error(exception): return isinstance(exception, ConnectionError) class RedisConn(object): def __init__(self, redis_conn, sub_cha...
33.326087
94
0.639596
382
3,066
4.874346
0.230366
0.085929
0.083781
0.087003
0.409237
0.382385
0.382385
0.240602
0.240602
0.240602
0
0.02124
0.247554
3,066
91
95
33.692308
0.785869
0
0
0.169014
0
0
0.045988
0
0
0
0
0
0
1
0.183099
false
0.014085
0.084507
0.126761
0.450704
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
751835fbbe2d4d0b3a1f8607d3b130e6bcbf8669
560
py
Python
tests/conftest.py
Frederik-Baetens/pytest-inmanta
5cebff7b2bb9ad9005a3d68a25df87ee1fc0512c
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
Frederik-Baetens/pytest-inmanta
5cebff7b2bb9ad9005a3d68a25df87ee1fc0512c
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
Frederik-Baetens/pytest-inmanta
5cebff7b2bb9ad9005a3d68a25df87ee1fc0512c
[ "Apache-2.0" ]
null
null
null
import pytest import pytest_inmanta.plugin import os import sys import pkg_resources pytest_plugins = ["pytester"] @pytest.fixture(autouse=True) def set_cwd(testdir): pytest_inmanta.plugin.CURDIR = os.getcwd() @pytest.fixture(scope="function", autouse=True) def deactive_venv(): old_os_path = os.environ.ge...
20.740741
72
0.728571
78
560
4.987179
0.423077
0.092545
0.097686
0
0
0
0
0
0
0
0
0
0.160714
560
26
73
21.538462
0.82766
0
0
0
0
0
0.042857
0
0
0
0
0
0
1
0.105263
false
0
0.263158
0
0.368421
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
7518af78dd738d705f4d7fb31902451a4006b080
41
py
Python
weheartit/__init__.py
aswinnnn/weheartit
97c71e8818ec11f55341dd0694de43c24781ab23
[ "MIT" ]
1
2021-03-23T13:46:09.000Z
2021-03-23T13:46:09.000Z
weheartit/__init__.py
aswinnnn/weheartit
97c71e8818ec11f55341dd0694de43c24781ab23
[ "MIT" ]
1
2021-10-09T08:37:55.000Z
2021-10-09T08:37:55.000Z
weheartit/__init__.py
aswinnnn/weheartit
97c71e8818ec11f55341dd0694de43c24781ab23
[ "MIT" ]
null
null
null
# __init__.py from .weheartit import whi
13.666667
26
0.780488
6
41
4.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.146341
41
3
26
13.666667
0.8
0.268293
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
75195768b9bfe7c08dd3ea0eaa74f62fb37dc728
1,546
py
Python
tests/test_vaccination.py
covid-19-impact-lab/sid
d867f55d4d005b01c672bd2edd0e1dc974cb182b
[ "MIT" ]
18
2020-04-18T09:18:52.000Z
2021-10-19T02:42:39.000Z
tests/test_vaccination.py
covid-19-impact-lab/sid
d867f55d4d005b01c672bd2edd0e1dc974cb182b
[ "MIT" ]
143
2020-04-18T16:58:20.000Z
2022-03-07T22:16:03.000Z
tests/test_vaccination.py
covid-19-impact-lab/sid
d867f55d4d005b01c672bd2edd0e1dc974cb182b
[ "MIT" ]
1
2021-01-07T07:38:53.000Z
2021-01-07T07:38:53.000Z
import itertools from contextlib import ExitStack as does_not_raise # noqa: N813 import pandas as pd import pytest from sid.vaccination import vaccinate_individuals @pytest.mark.integration @pytest.mark.parametrize( "vaccination_models, expectation, expected", [ ({}, does_not_raise(), pd.Series([Fal...
29.169811
88
0.513583
139
1,546
5.582734
0.42446
0.070876
0.096649
0.109536
0.39433
0.25
0.25
0.25
0.25
0.118557
0
0.048554
0.373868
1,546
52
89
29.730769
0.753099
0.006468
0
0.1875
0
0
0.111473
0
0
0
0
0
0.020833
1
0.020833
false
0
0.104167
0
0.125
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
751abaf1ab249f31eecee3f3846c229b7dc366a5
12,216
py
Python
main.py
dumpmemory/W2NER
fb1b6eb1111eb001b1c965097d995244b840bdda
[ "MIT" ]
128
2021-12-21T04:20:17.000Z
2022-03-31T03:05:53.000Z
main.py
dumpmemory/W2NER
fb1b6eb1111eb001b1c965097d995244b840bdda
[ "MIT" ]
15
2022-01-07T02:39:58.000Z
2022-03-30T14:12:30.000Z
main.py
dumpmemory/W2NER
fb1b6eb1111eb001b1c965097d995244b840bdda
[ "MIT" ]
24
2021-12-21T05:06:08.000Z
2022-03-31T13:42:13.000Z
import argparse import json import numpy as np import prettytable as pt import torch import torch.autograd import torch.nn as nn import transformers from sklearn.metrics import precision_recall_fscore_support, f1_score from torch.utils.data import DataLoader import config import data_loader import utils ...
39.406452
126
0.564014
1,454
12,216
4.483494
0.147868
0.034515
0.065194
0.022089
0.544562
0.512655
0.47538
0.408958
0.398527
0.398527
0
0.014328
0.314424
12,216
309
127
39.533981
0.76406
0.016372
0
0.399123
0
0
0.070855
0.003846
0
0
0
0
0
1
0.026316
false
0
0.061404
0
0.105263
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
751af216f0939b9c18826cc307ee3065d3b19f72
764
py
Python
PDSA/Week 1/Graded/3.py
tanav2202/IITM-Assignments
6596daf7a39a254f85ccfadc80cb33b01d7b1910
[ "MIT" ]
null
null
null
PDSA/Week 1/Graded/3.py
tanav2202/IITM-Assignments
6596daf7a39a254f85ccfadc80cb33b01d7b1910
[ "MIT" ]
null
null
null
PDSA/Week 1/Graded/3.py
tanav2202/IITM-Assignments
6596daf7a39a254f85ccfadc80cb33b01d7b1910
[ "MIT" ]
null
null
null
def odd_one(L): d={} for i in L: try: if(type(i) == str): d['str']+=1 if(type(i) == bool): d['bool']+=1 if(type(i) == int): d['int']+=1 if(type(i) == float): d['float']+=1 ...
23.875
37
0.332461
94
764
2.680851
0.319149
0.190476
0.222222
0.190476
0.52381
0.52381
0.52381
0.52381
0.52381
0.52381
0
0.030227
0.480366
764
32
37
23.875
0.604534
0
0
0.285714
0
0
0.039216
0
0
0
0
0
0
1
0.035714
false
0
0
0
0.107143
0.035714
0
0
0
null
0
1
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
2
7520daaefeeb0c9c5796df3c4843be9297dde1df
30,800
py
Python
etl/parsers/etw/Microsoft_AppV_SharedPerformance.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
104
2020-03-04T14:31:31.000Z
2022-03-28T02:59:36.000Z
etl/parsers/etw/Microsoft_AppV_SharedPerformance.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
7
2020-04-20T09:18:39.000Z
2022-03-19T17:06:19.000Z
etl/parsers/etw/Microsoft_AppV_SharedPerformance.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
16
2020-03-05T18:55:59.000Z
2022-03-01T10:19:28.000Z
# -*- coding: utf-8 -*- """ Microsoft-AppV-SharedPerformance GUID : fb4a19ee-eb5a-47a4-bc52-e71aac6d0859 """ from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct from etl.utils import WString, CString, SystemTime, Guid from etl.dtyp import Sid from ...
28.025478
123
0.717305
3,765
30,800
5.663479
0.056574
0.063781
0.218074
0.145383
0.925198
0.925198
0.610655
0.610655
0.610655
0.610655
0
0.168409
0.155
30,800
1,098
124
28.051002
0.650888
0.003214
0
0.405612
0
0
0.21504
0.180633
0
0
0
0
0
1
0
false
0
0.005102
0
0.397959
0
0
0
0
null
0
1
0
1
1
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
4
75236691d5db825780da5c44e8b2462836a5e0a4
147
py
Python
bugsnag/wsgi/__init__.py
ForroKulcs/bugsnag-python
107c1add31a2202cc08ef944aa00ab96996b247a
[ "MIT" ]
76
2015-03-01T11:46:57.000Z
2022-02-18T10:57:44.000Z
bugsnag/wsgi/__init__.py
ForroKulcs/bugsnag-python
107c1add31a2202cc08ef944aa00ab96996b247a
[ "MIT" ]
119
2015-01-14T11:53:08.000Z
2022-03-30T08:22:50.000Z
bugsnag/wsgi/__init__.py
ForroKulcs/bugsnag-python
107c1add31a2202cc08ef944aa00ab96996b247a
[ "MIT" ]
46
2015-02-09T23:50:57.000Z
2022-01-06T16:04:40.000Z
from typing import Dict from urllib.parse import quote def request_path(env: Dict): return quote('/' + env.get('PATH_INFO', '').lstrip('/'))
21
60
0.680272
21
147
4.666667
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.14966
147
6
61
24.5
0.784
0
0
0
0
0
0.07483
0
0
0
0
0
0
1
0.25
false
0
0.5
0.25
1
0
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
1
0
0
1
1
1
0
0
6
752440db344a6e89f896a64ed24d2a9cb97df493
522
py
Python
repos_module/utils.py
irongomme/heyvector
eb2d3c08a1cb6ed8d4e31d935ab6d54e857d446f
[ "MIT" ]
1
2019-03-11T15:10:16.000Z
2019-03-11T15:10:16.000Z
repos_module/utils.py
irongomme/heyvector
eb2d3c08a1cb6ed8d4e31d935ab6d54e857d446f
[ "MIT" ]
null
null
null
repos_module/utils.py
irongomme/heyvector
eb2d3c08a1cb6ed8d4e31d935ab6d54e857d446f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from heyvector import cache, github @cache.memoize(50) def list_user_repositories(user, **kwargs): return github.get('/users/%s/repos' % user, params = { 'visibility': 'public', 'affiliation': 'owner', 'sort': 'created', **kwargs}) @...
24.857143
58
0.559387
55
522
5.236364
0.563636
0.145833
0.097222
0.118056
0
0
0
0
0
0
0
0.013193
0.273946
522
20
59
26.1
0.746702
0.04023
0
0.266667
0
0
0.18
0
0
0
0
0
0
1
0.133333
false
0
0.066667
0.133333
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
0
0
0
1
0
0
0
1
7528a707d7cd810fb6f1250d9781c45b722c4ed4
3,965
py
Python
tools/pylib/uvmap.py
maxymilianz/demoscene
7d912e77f160a3ad695f567b381a78215fd8be5d
[ "Artistic-2.0" ]
null
null
null
tools/pylib/uvmap.py
maxymilianz/demoscene
7d912e77f160a3ad695f567b381a78215fd8be5d
[ "Artistic-2.0" ]
null
null
null
tools/pylib/uvmap.py
maxymilianz/demoscene
7d912e77f160a3ad695f567b381a78215fd8be5d
[ "Artistic-2.0" ]
null
null
null
from __future__ import print_function from math import atan2, cos, sin, pi, sqrt, tan from utils import dist, lerp, frpart from array import array from PIL import Image def FancyEye(x, y): a = atan2(x, y) r = dist(x, y, 0.0, 0.0) if r == 0: return (0, 0) u = 0.04 * y + 0.06 * cos(a * 3.0) /...
26.433333
74
0.473644
656
3,965
2.829268
0.179878
0.022629
0.016164
0.03556
0.277478
0.264547
0.210668
0.210668
0.196121
0.16056
0
0.052262
0.353342
3,965
149
75
26.610738
0.671607
0
0
0.247788
0
0
0.027491
0
0
0
0.001513
0
0
1
0.115044
false
0.00885
0.044248
0
0.265487
0.035398
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
752b31bd8d886628893665de61a27a8654c3bbbd
79,991
py
Python
tests/parse_infobox.py
matthewgehring/wptools
788cdc2078696dacb14652d5f2ad098a585e4763
[ "MIT" ]
482
2015-04-13T23:43:42.000Z
2022-03-31T14:44:50.000Z
tests/parse_infobox.py
matthewgehring/wptools
788cdc2078696dacb14652d5f2ad098a585e4763
[ "MIT" ]
168
2016-01-06T14:30:05.000Z
2022-02-17T22:14:36.000Z
tests/parse_infobox.py
matthewgehring/wptools
788cdc2078696dacb14652d5f2ad098a585e4763
[ "MIT" ]
80
2015-05-03T18:10:58.000Z
2022-02-17T22:54:25.000Z
# -*- coding:utf-8 -*- query = 'https://en.wikipedia.org/w/api.php?action=parse&formatversion=2&contentmodel=text&disableeditsection=&disablelimitreport=&disabletoc=&prop=text|iwlinks|parsetree|wikitext|displaytitle|properties&redirects&page=Blue%20Train%20%28album%29' response = r""" { "parse": { "title"...
3,076.576923
56,407
0.69184
13,137
79,991
4.156657
0.068889
0.023715
0.039556
0.022891
0.793173
0.734278
0.684742
0.649562
0.628099
0.587445
0
0.032822
0.06987
79,991
25
56,408
3,199.64
0.700868
0.00025
0
0.095238
0
0.190476
0.998962
0.604284
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
752cb11b33632675f903629216e71f86426bc4b6
1,687
py
Python
stabilizer/llrd.py
VigneshBaskar/stabilizer
970a55a6da4e57596cbc953830160057138719e8
[ "Apache-2.0" ]
22
2021-09-17T09:51:07.000Z
2022-03-24T04:19:26.000Z
stabilizer/llrd.py
VigneshBaskar/stabilizer
970a55a6da4e57596cbc953830160057138719e8
[ "Apache-2.0" ]
4
2021-09-18T07:57:27.000Z
2021-09-27T19:54:54.000Z
stabilizer/llrd.py
VigneshBaskar/stabilizer
970a55a6da4e57596cbc953830160057138719e8
[ "Apache-2.0" ]
5
2021-09-17T12:21:12.000Z
2022-03-28T04:57:58.000Z
def get_optimizer_parameters_with_llrd(model, peak_lr, multiplicative_factor): num_encoder_layers = len(model.transformer.encoder.layer) # Task specific layer gets the peak_lr tsl_parameters = [ { "params": [param for name, param in model.task_specific_layer.named_parameters()], ...
46.861111
101
0.662122
196
1,687
5.433673
0.234694
0.033803
0.123944
0.078873
0.517371
0.49108
0.483568
0.406573
0.367136
0.309859
0
0.000782
0.241849
1,687
35
102
48.2
0.8319
0.189093
0
0
0
0
0.104993
0.043319
0
0
0
0
0
1
0.035714
false
0
0
0
0.071429
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
752d121311dd12e755c6822eb5eb0468f439d38f
4,812
py
Python
python_parser/parser/glasMeasure.py
marcelscode/glasnost
e54ce9ece91433df8ac73229d01e06c012a7b8d8
[ "BSD-3-Clause" ]
58
2015-04-25T10:47:27.000Z
2022-03-31T15:37:58.000Z
python_parser/parser/glasMeasure.py
marcelscode/glasnost
e54ce9ece91433df8ac73229d01e06c012a7b8d8
[ "BSD-3-Clause" ]
1
2017-03-29T11:33:33.000Z
2018-01-02T20:19:28.000Z
python_parser/parser/glasMeasure.py
marcelscode/glasnost
e54ce9ece91433df8ac73229d01e06c012a7b8d8
[ "BSD-3-Clause" ]
18
2016-02-11T14:06:58.000Z
2022-03-15T11:13:39.000Z
# Glasnost Parser v2. # Developed 2011/2012 by Hadi Asghari (http://deeppacket.info) # # Statistics about test streams class GlasMeasurement: """" Class to hold statistics about one test stream """ def __init__(self, direction, port_typ, flow_typ, tcp_port): assert direction in ['u','d'] ...
39.442623
152
0.568786
724
4,812
3.595304
0.223757
0.064541
0.033807
0.021514
0.286208
0.217441
0.075298
0.075298
0.075298
0.075298
0
0.022867
0.291147
4,812
121
153
39.768595
0.740252
0.128845
0
0.141176
0
0.011765
0.044376
0
0
0
0
0
0.070588
1
0.188235
false
0
0
0.023529
0.329412
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
752daa07c16402e3055f39a32f880e876f78b385
2,563
py
Python
GPy_ABCD/Kernels/linearOffsetKernel.py
juanluislm/GPy-ABCD
63aa3a8a83148e0aaf8691ac3f69bced6fbaf600
[ "BSD-3-Clause" ]
null
null
null
GPy_ABCD/Kernels/linearOffsetKernel.py
juanluislm/GPy-ABCD
63aa3a8a83148e0aaf8691ac3f69bced6fbaf600
[ "BSD-3-Clause" ]
null
null
null
GPy_ABCD/Kernels/linearOffsetKernel.py
juanluislm/GPy-ABCD
63aa3a8a83148e0aaf8691ac3f69bced6fbaf600
[ "BSD-3-Clause" ]
1
2021-01-21T12:52:37.000Z
2021-01-21T12:52:37.000Z
import numpy as np from GPy.kern.src.kern import Kern from GPy.core.parameterization import Param from paramz.transformations import Logexp from paramz.caching import Cache_this class LinearWithOffset(Kern): """ Linear kernel with horizontal offset .. math:: k(x,y) = \sigma^2 (x - o)(y - o) ...
34.173333
148
0.65002
358
2,563
4.519553
0.298883
0.061805
0.020396
0.024104
0.163782
0.163782
0.140297
0.091471
0.091471
0.066749
0
0.009307
0.245416
2,563
74
149
34.635135
0.827301
0.273508
0
0.052632
0
0
0.040782
0
0
0
0
0
0.026316
1
0.157895
false
0
0.131579
0.026316
0.421053
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
752e21ffea89f00b97756d8ff46ca51435646c62
12,829
py
Python
OCT_reader_demo.py
kai-neuhaus/OCT_file_tools
1272b4d68822dc8ac9b0d7031c9b1b95b5b4a79a
[ "MIT" ]
null
null
null
OCT_reader_demo.py
kai-neuhaus/OCT_file_tools
1272b4d68822dc8ac9b0d7031c9b1b95b5b4a79a
[ "MIT" ]
null
null
null
OCT_reader_demo.py
kai-neuhaus/OCT_file_tools
1272b4d68822dc8ac9b0d7031c9b1b95b5b4a79a
[ "MIT" ]
null
null
null
# This file shows some example usage of Python functions to read an OCT file. # To use exectute this test reader, scroll to the bottom and pass an OCT file to the function unzip_OCTFile. # Find the comment #Example usage. # # Additional modules to be installed should be 'xmltodict', 'shutil', and 'gdown'. # Tested in P...
44.391003
140
0.706057
1,769
12,829
4.982476
0.219333
0.019061
0.023712
0.036646
0.447243
0.402201
0.387679
0.372589
0.321761
0.272975
0
0.010271
0.157612
12,829
288
141
44.545139
0.805311
0.280926
0
0.296296
0
0.006173
0.198729
0.023963
0
0
0
0
0.006173
1
0.055556
false
0
0.074074
0
0.179012
0.123457
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
752e54d82b6baced0d7e1660f4b291e11de5b92b
1,095
py
Python
datasets/Part 1 - Data Preprocessing/Section 2 -------------------- Part 1 - Data Preprocessing --------------------/categorical_data.py
nazareno56/machinelearning-az
12fc471ac8d08b511a22558b7fb1ff2b57bab6de
[ "MIT" ]
null
null
null
datasets/Part 1 - Data Preprocessing/Section 2 -------------------- Part 1 - Data Preprocessing --------------------/categorical_data.py
nazareno56/machinelearning-az
12fc471ac8d08b511a22558b7fb1ff2b57bab6de
[ "MIT" ]
null
null
null
datasets/Part 1 - Data Preprocessing/Section 2 -------------------- Part 1 - Data Preprocessing --------------------/categorical_data.py
nazareno56/machinelearning-az
12fc471ac8d08b511a22558b7fb1ff2b57bab6de
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Feb 28 13:19:06 2019 @author: juangabriel """ # Plantilla de Pre Procesado - Datos Categóricos # Cómo importar las librerías import numpy as np import matplotlib.pyplot as plt import pandas as pd # Importar el data set dataset = pd.read_csv('Data.csv...
31.285714
137
0.722374
152
1,095
5.125
0.618421
0.050064
0.053915
0.066752
0
0
0
0
0
0
0
0.029801
0.172603
1,095
35
138
31.285714
0.830022
0.407306
0
0
0
0
0.041074
0
0
0
0
0
0
1
0
false
0.066667
0.333333
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
0
1
1
0
0
0
0
2
752e72698ce6c406e4123fed3e680fc56ab5c8db
7,281
py
Python
varsome_api/vcf.py
definitelysean/varsome-api-client-python
43ebeb65baf94e745a2f0e8ec326ed09f681bf24
[ "Apache-2.0" ]
23
2018-01-12T20:09:19.000Z
2022-02-26T13:39:36.000Z
varsome_api/vcf.py
definitelysean/varsome-api-client-python
43ebeb65baf94e745a2f0e8ec326ed09f681bf24
[ "Apache-2.0" ]
3
2018-01-15T11:10:40.000Z
2019-05-20T07:37:20.000Z
varsome_api/vcf.py
definitelysean/varsome-api-client-python
43ebeb65baf94e745a2f0e8ec326ed09f681bf24
[ "Apache-2.0" ]
11
2018-01-12T11:07:56.000Z
2021-09-29T18:02:27.000Z
# Copyright 2018 Saphetor S.A. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
49.195946
119
0.631232
897
7,281
4.915273
0.265329
0.030166
0.027217
0.024949
0.09526
0.034021
0.020413
0
0
0
0
0.006952
0.288834
7,281
147
120
49.530612
0.844535
0.226617
0
0.104167
0
0
0.11537
0
0
0
0
0
0
1
0.052083
false
0.010417
0.072917
0
0.145833
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
752ee5b4eeb5208d629fa9b4144505411d1f467e
77,806
py
Python
bin/ADFRsuite/CCSBpckgs/DejaVu2/ColormapGui.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/CCSBpckgs/DejaVu2/ColormapGui.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/CCSBpckgs/DejaVu2/ColormapGui.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
1
2021-11-04T21:48:14.000Z
2021-11-04T21:48:14.000Z
################################################################################ ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your op...
37.623791
102
0.527029
8,144
77,806
5.010928
0.112598
0.008233
0.009263
0.005121
0.388223
0.318288
0.270774
0.225024
0.208091
0.191428
0
0.012273
0.36537
77,806
2,067
103
37.641993
0.814189
0.23727
0
0.427344
0
0
0.022413
0
0
0
0
0
0.003125
1
0.055469
false
0.002344
0.014063
0
0.096875
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
753028e8ebdf1300490ed13c919d16e0ca4beb04
7,068
py
Python
tests/test_dataset.py
ttecles/aidl-lyrics-recognition
33a7cf449a0a5e45d0575493b8b92b64787c8b8e
[ "CC0-1.0" ]
8
2021-06-07T09:16:56.000Z
2022-03-30T13:30:31.000Z
tests/test_dataset.py
ttecles/aidl-lyrics-recognition
33a7cf449a0a5e45d0575493b8b92b64787c8b8e
[ "CC0-1.0" ]
1
2021-06-27T13:56:29.000Z
2021-06-30T20:52:08.000Z
tests/test_dataset.py
ttecles/aidl-lyrics-recognition
33a7cf449a0a5e45d0575493b8b92b64787c8b8e
[ "CC0-1.0" ]
2
2021-12-05T06:58:27.000Z
2022-02-09T15:18:02.000Z
import pathlib from unittest import TestCase from unittest.mock import patch from DALI import Annotations from lyre.data import DaliDataset, Chunk from lyre.utils import sample2time class TestDaliDataset(TestCase): def test_creation_of_dataset(self): self.maxDiff = None with patch("lyre.data.da...
47.436242
119
0.535088
787
7,068
4.637865
0.13723
0.102466
0.036164
0.030685
0.816712
0.813151
0.791507
0.791507
0.781644
0.766575
0
0.081143
0.316497
7,068
148
120
47.756757
0.674395
0.037917
0
0.705882
0
0
0.099102
0
0
0
0
0
0.084034
1
0.033613
false
0
0.05042
0
0.092437
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
7531279b17d08fe57f535c79acfe22fd680a12a8
434
py
Python
JSON2OWL/grass/test.py
houzw/knowledge-base-data
60771e8bf300227e1a26c9e77f56b09d23acd64a
[ "MIT" ]
null
null
null
JSON2OWL/grass/test.py
houzw/knowledge-base-data
60771e8bf300227e1a26c9e77f56b09d23acd64a
[ "MIT" ]
null
null
null
JSON2OWL/grass/test.py
houzw/knowledge-base-data
60771e8bf300227e1a26c9e77f56b09d23acd64a
[ "MIT" ]
1
2018-12-17T06:40:53.000Z
2018-12-17T06:40:53.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # author: houzhiwei # time: 2019/7/13 19:12 import json import os import re from JSON2OWL.OwlConvert.OwlUtils import OWLUtils module_path = os.path.dirname(__file__) with open(module_path + '/grass.json', 'r') as f: jdata = json.load(f) # list for i,d in enumerate(jdat...
21.7
49
0.705069
70
434
4.257143
0.7
0.067114
0
0
0
0
0
0
0
0
0
0.037736
0.145161
434
19
50
22.842105
0.765499
0.232719
0
0
0
0
0.04893
0
0
0
0
0
0
1
0
false
0
0.363636
0
0.363636
0.090909
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
7531c0f4b4056b7e460c08361366e9674000dff4
1,861
py
Python
migration/rack/commits/commit90f2d4f55668786ffa01bba2a646c7468849c97d.py
tuxji/RACK
74b59b9a89b48cf2da91d7d9ac23ab3408e32bcf
[ "BSD-3-Clause" ]
4
2021-07-02T08:58:05.000Z
2022-02-02T03:02:32.000Z
migration/rack/commits/commit90f2d4f55668786ffa01bba2a646c7468849c97d.py
tuxji/RACK
74b59b9a89b48cf2da91d7d9ac23ab3408e32bcf
[ "BSD-3-Clause" ]
309
2020-11-02T19:46:14.000Z
2022-03-24T21:35:28.000Z
migration/rack/commits/commit90f2d4f55668786ffa01bba2a646c7468849c97d.py
tuxji/RACK
74b59b9a89b48cf2da91d7d9ac23ab3408e32bcf
[ "BSD-3-Clause" ]
7
2020-11-30T22:22:06.000Z
2022-02-02T03:09:12.000Z
# Copyright (c) 2021, Galois, Inc. # # All Rights Reserved # # This material is based upon work supported by the Defense Advanced Research # Projects Agency (DARPA) under Contract No. FA8750-20-C-0203. # # Any opinions, findings and conclusions or recommendations expressed in this # material are those of the author(s) ...
29.078125
78
0.631381
183
1,861
6.196721
0.453552
0.071429
0.089947
0.077601
0.300705
0.300705
0.300705
0.206349
0.206349
0.121693
0
0.03165
0.286943
1,861
63
79
29.539683
0.822909
0.222461
0
0.367347
0
0
0.15122
0.027875
0
0
0
0
0
1
0
false
0
0.040816
0
0.040816
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
7531c29be32f4d71954813624b8633e9ae001662
1,215
py
Python
part5/operations_overloading_3_2.py
MADTeacher/python_basics
06ae43d8063c1c8426a4fbb53443b6d1ee727951
[ "MIT" ]
null
null
null
part5/operations_overloading_3_2.py
MADTeacher/python_basics
06ae43d8063c1c8426a4fbb53443b6d1ee727951
[ "MIT" ]
null
null
null
part5/operations_overloading_3_2.py
MADTeacher/python_basics
06ae43d8063c1c8426a4fbb53443b6d1ee727951
[ "MIT" ]
4
2020-10-04T12:24:14.000Z
2022-01-16T17:01:59.000Z
class MyRange: def __init__(self, start, stop, step=1): self.start = start self.stop = stop self.step = step def __iter__(self): return MyRangeIterator(self) class MyRangeIterator: def __init__(self, myrange_object): self.my_range = myrange_object self.coun...
27.613636
69
0.609877
166
1,215
4.114458
0.216867
0.071742
0.080527
0.10981
0.250366
0.250366
0.194729
0.10981
0.10981
0.10981
0
0.010204
0.274074
1,215
44
70
27.613636
0.764172
0.106173
0
0.129032
0
0
0.1
0.019444
0
0
0
0
0
1
0.129032
false
0
0
0.032258
0.258065
0.225806
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
7534ae5cc5b96433aa0f386fbb142a34d3826eed
932
py
Python
api/tests/postTest.py
zhininghjl/Communiti-404F21
68bd67b6e6a8cdf70201fce8b15b96ef9195b394
[ "MIT" ]
2
2021-09-27T01:17:01.000Z
2021-10-17T01:44:37.000Z
api/tests/postTest.py
zhininghjl/Communiti-404F21
68bd67b6e6a8cdf70201fce8b15b96ef9195b394
[ "MIT" ]
17
2021-10-21T04:22:12.000Z
2021-12-07T00:39:43.000Z
api/tests/postTest.py
zhininghjl/Communiti-404F21
68bd67b6e6a8cdf70201fce8b15b96ef9195b394
[ "MIT" ]
2
2021-10-21T03:38:45.000Z
2021-12-21T23:38:49.000Z
from rest_framework.test import APITestCase, APIClient from django.urls import include, path, reverse from ..views import posts from ..utils import methods, generate_id # https://www.django-rest-framework.org/api-guide/testing/ class TestPost(APITestCase): urlpatterns = [ path("author/<str:authorID>/post...
44.380952
176
0.714592
120
932
5.316667
0.45
0.068966
0.079937
0.103448
0.191223
0.109718
0.109718
0
0
0
0
0.003788
0.150215
932
21
177
44.380952
0.801768
0.060086
0
0
1
0
0.267429
0.168
0
0
0
0
0.0625
1
0.0625
false
0
0.25
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7535ce0082f77b6c6e4fb97656d034c5dc25e071
11,399
py
Python
nusmodsplanner/mod_utils.py
raynoldng/nusmods-planner
5657c52cdefe35b7d272c3762d85185ca2a442c9
[ "MIT" ]
7
2017-07-19T07:06:43.000Z
2022-01-04T01:47:27.000Z
nusmodsplanner/mod_utils.py
raynoldng/nusmods-planner
5657c52cdefe35b7d272c3762d85185ca2a442c9
[ "MIT" ]
null
null
null
nusmodsplanner/mod_utils.py
raynoldng/nusmods-planner
5657c52cdefe35b7d272c3762d85185ca2a442c9
[ "MIT" ]
1
2018-09-08T06:35:26.000Z
2018-09-08T06:35:26.000Z
# helper functions for testing properties of candidate schedules import requests from sets import Set import json import calendar import itertools import os from collections import OrderedDict import random from definitions import ROOT_DIR, lessonTypeCodes, LOCAL_API_DIR from z3 import * LUNCH_HOURS = [11, 12, 13] def...
38.904437
136
0.59821
1,418
11,399
4.771509
0.217207
0.010641
0.015075
0.01138
0.339492
0.303725
0.287171
0.281555
0.247561
0.247561
0
0.023637
0.283709
11,399
292
137
39.037671
0.805021
0.132029
0
0.188172
0
0
0.060162
0
0
0
0
0
0
0
null
null
0
0.053763
null
null
0.010753
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
7538ab8f5f22694310200299efb04d802b7c2277
42
py
Python
tapis_cli/commands/registry/__init__.py
bpachev/tapis-cli
c3128fb5b63ef74e06b737bbd95ef28fb24f0d32
[ "BSD-3-Clause" ]
8
2020-10-18T22:48:23.000Z
2022-01-10T09:16:14.000Z
tapis_cli/commands/registry/__init__.py
bpachev/tapis-cli
c3128fb5b63ef74e06b737bbd95ef28fb24f0d32
[ "BSD-3-Clause" ]
238
2019-09-04T14:37:54.000Z
2020-04-15T16:24:24.000Z
tapis_cli/commands/registry/__init__.py
bpachev/tapis-cli
c3128fb5b63ef74e06b737bbd95ef28fb24f0d32
[ "BSD-3-Clause" ]
5
2019-09-20T04:23:49.000Z
2020-01-16T17:45:14.000Z
"""Docker container registry commands """
14
37
0.738095
4
42
7.75
1
0
0
0
0
0
0
0
0
0
0
0
0.119048
42
2
38
21
0.837838
0.809524
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
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
5
753a71640be1f2fee9267c9fd8f2b67b64a0df78
2,484
py
Python
Chapter3/Cantonese/Onset-only/functional_load_onset_can.py
AndreaCeolin/Functionalism_Contrast_Change
1557a4c76c253c7db292e503d6bd5cff5cea2d93
[ "MIT" ]
null
null
null
Chapter3/Cantonese/Onset-only/functional_load_onset_can.py
AndreaCeolin/Functionalism_Contrast_Change
1557a4c76c253c7db292e503d6bd5cff5cea2d93
[ "MIT" ]
null
null
null
Chapter3/Cantonese/Onset-only/functional_load_onset_can.py
AndreaCeolin/Functionalism_Contrast_Change
1557a4c76c253c7db292e503d6bd5cff5cea2d93
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' This script has been used perform functional load calculations on CANCORP. author: Andrea Ceolin date: February 2021 ''' from collections import Counter import math ''' Get the token frequencies of the corpus ''' words_tokens = Counter() for line in open('cantonese...
29.571429
109
0.67351
348
2,484
4.678161
0.405172
0.067568
0.081695
0.103194
0.19656
0.19656
0.08231
0.08231
0.08231
0.08231
0
0.01286
0.217391
2,484
84
110
29.571429
0.824588
0.276167
0
0.055556
0
0
0.023876
0
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.138889
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
0
0
0
0
0
0
0
0
1
0
753d0a15ee14b8c547bc4f3f4bb5ef8f44343ac6
15,401
py
Python
src/agents.py
YounesZ/RL_trading
69f1bfad4cdfac7a53ac64e3c8404477cbafeb74
[ "MIT" ]
1
2018-10-20T07:53:21.000Z
2018-10-20T07:53:21.000Z
src/agents.py
YounesZ/RL_trading
69f1bfad4cdfac7a53ac64e3c8404477cbafeb74
[ "MIT" ]
null
null
null
src/agents.py
YounesZ/RL_trading
69f1bfad4cdfac7a53ac64e3c8404477cbafeb74
[ "MIT" ]
null
null
null
import random import matplotlib.pyplot as plt import tensorflow as tf import keras as K from os import path from src.lib import * #from src.logging import * from copy import deepcopy from datetime import datetime class Agent: def __init__(self, model, batch_size=12, discount_factor=0.95, buffer_size=200, pre...
31.62423
129
0.703006
2,366
15,401
4.396872
0.148774
0.034894
0.021244
0.031049
0.46304
0.430261
0.385946
0.364414
0.29876
0.26377
0
0.013108
0.147977
15,401
487
130
31.62423
0.779683
0.105383
0
0.24911
0
0
0.033439
0
0
0
0
0
0
1
0.131673
false
0.007117
0.032028
0.003559
0.238434
0.007117
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
753d88404d166a84eabbbafeb2f4b21a47e63a44
3,036
py
Python
day03.py
alberto-re/adventoofcode2021
0cb32368ec2d0418d5b36fd566aaee3ed979017e
[ "MIT" ]
null
null
null
day03.py
alberto-re/adventoofcode2021
0cb32368ec2d0418d5b36fd566aaee3ed979017e
[ "MIT" ]
null
null
null
day03.py
alberto-re/adventoofcode2021
0cb32368ec2d0418d5b36fd566aaee3ed979017e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # --- Day 3: Binary Diagnostic --- from typing import Dict, List, Tuple from copy import deepcopy MOST_COMMON = 1 LEAST_COMMON = 0 EXAMPLE = """\ 00100 11110 10110 10111 10101 01111 00111 11100 10000 11001 00010 01010\ """ def lines_to_matrix(lines: List[str]) -> List[List[str]]: matrix...
25.3
88
0.65975
425
3,036
4.505882
0.258824
0.075196
0.023499
0.039687
0.402611
0.355614
0.345692
0.244386
0.244386
0.22141
0
0.055072
0.204545
3,036
119
89
25.512605
0.737888
0.017787
0
0.181818
0
0
0.067785
0.007047
0
0
0
0
0.113636
1
0.045455
false
0
0.022727
0
0.113636
0.022727
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
753db29f7ca0b3d57786f6d579849804ab41f79a
665
py
Python
apps/blog/mixins.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
2
2021-08-17T13:29:21.000Z
2021-09-04T05:00:01.000Z
apps/blog/mixins.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
1
2020-07-16T11:22:32.000Z
2020-07-16T11:22:32.000Z
apps/blog/mixins.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
1
2020-09-18T10:41:59.000Z
2020-09-18T10:41:59.000Z
# -*- coding:utf-8 -*- __author__ = 'Ren Kang' __date__ = '2018/3/27 19:05' from django.http import JsonResponse class JSONResponseMixin: """ a mixin that can be used to render a JSON response """ def render_to_response(self, context, **response_kwargs): """ :param cont...
24.62963
75
0.574436
74
665
4.959459
0.608108
0.114441
0.114441
0
0
0
0
0
0
0
0
0.026549
0.320301
665
27
76
24.62963
0.785398
0.320301
0
0
0
0
0.069277
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.75
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
1
0
0
2
753f674ed26d4491ca57d504a35abe01191fc849
1,760
py
Python
3_1.py
Nutella-duck/nutella_agent
f9b28dcf4a97ad316732f6ce891037f4391da18d
[ "MIT" ]
null
null
null
3_1.py
Nutella-duck/nutella_agent
f9b28dcf4a97ad316732f6ce891037f4391da18d
[ "MIT" ]
null
null
null
3_1.py
Nutella-duck/nutella_agent
f9b28dcf4a97ad316732f6ce891037f4391da18d
[ "MIT" ]
null
null
null
# 데이터 다운로드 from keras.datasets import imdb (train_data, train_labels), (test_data, test_labels) = imdb.load_data(num_words=10000) # 데이터 변환 import numpy as np def vectorize_sequences(sequences, dimension=10000): results = np.zeros((len(sequences), dimension)) for i, sequence in enumerate(sequences): r...
27.936508
89
0.684659
234
1,760
4.948718
0.376068
0.025907
0.060449
0.049223
0.159758
0.159758
0.159758
0.159758
0.159758
0.091537
0
0.028812
0.191477
1,760
62
90
28.387097
0.784961
0.020455
0
0.05
0
0
0.064065
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
7541d9a58c21b2c720ff96f890ac21f3d9664e8d
2,268
py
Python
myuw/views/api/profile.py
uw-it-aca/myuw
3fa1fabeb3c09d81a049f7c1a8c94092d612438a
[ "Apache-2.0" ]
18
2015-02-04T01:09:11.000Z
2021-11-25T03:10:39.000Z
myuw/views/api/profile.py
uw-it-aca/myuw
3fa1fabeb3c09d81a049f7c1a8c94092d612438a
[ "Apache-2.0" ]
2,323
2015-01-15T19:45:10.000Z
2022-03-21T19:57:06.000Z
myuw/views/api/profile.py
uw-it-aca/myuw
3fa1fabeb3c09d81a049f7c1a8c94092d612438a
[ "Apache-2.0" ]
9
2015-01-15T19:29:26.000Z
2022-02-11T04:51:23.000Z
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 import logging import traceback from myuw.dao import get_netid_of_current_user from myuw.dao.gws import is_student, is_applicant from myuw.dao.pws import get_display_name_of_current_user from myuw.dao.password import get_pw_json fro...
36
79
0.636243
253
2,268
5.454545
0.363636
0.057971
0.039855
0.024638
0.085507
0.064493
0
0
0
0
0
0.006875
0.294533
2,268
62
80
36.580645
0.855625
0.089506
0
0.045455
0
0
0.048587
0
0
0
0
0
0
1
0.022727
false
0.090909
0.295455
0
0.386364
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
7541f092207ba8986a0abfbf2b75ae22a3e43dd1
666
py
Python
6. ZigZag Conversion/solution.py
alexwhyy/leetcode
41664aa48137677d2f98817b9c512d76f13c525f
[ "MIT" ]
null
null
null
6. ZigZag Conversion/solution.py
alexwhyy/leetcode
41664aa48137677d2f98817b9c512d76f13c525f
[ "MIT" ]
null
null
null
6. ZigZag Conversion/solution.py
alexwhyy/leetcode
41664aa48137677d2f98817b9c512d76f13c525f
[ "MIT" ]
null
null
null
class Solution: def convert(self, s: str, numRows: int) -> str: strings = {i: [] for i in range(0, numRows)} increasing = True row = 0 for i in s: strings[row].append(i) if numRows == 1: continue if increasing: row +...
28.956522
52
0.388889
68
666
3.808824
0.441176
0.046332
0.069498
0
0
0
0
0
0
0
0
0.024845
0.516517
666
23
53
28.956522
0.779503
0
0
0.173913
0
0
0
0
0
0
0
0
0
1
0.043478
false
0
0
0
0.130435
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
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
7543dea3c9674d80aef0a63052820d06eac3ab3f
79
py
Python
src/bp/apps.py
elifesciences/bioprotocol-service
18db037852b9ae3520b29b4430f92e870f65fd89
[ "MIT" ]
1
2021-09-15T04:48:14.000Z
2021-09-15T04:48:14.000Z
src/bp/apps.py
elifesciences/bioprotocol-service
18db037852b9ae3520b29b4430f92e870f65fd89
[ "MIT" ]
6
2019-08-06T15:34:28.000Z
2021-10-12T01:08:23.000Z
src/bp/apps.py
elifesciences/bioprotocol-service
18db037852b9ae3520b29b4430f92e870f65fd89
[ "MIT" ]
null
null
null
from django.apps import AppConfig class BpConfig(AppConfig): name = "bp"
13.166667
33
0.721519
10
79
5.7
0.9
0
0
0
0
0
0
0
0
0
0
0
0.189873
79
5
34
15.8
0.890625
0
0
0
0
0
0.025316
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
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
1
0
1
0
0
4
75447c4c912f2a5090056786cfa6c9e6c3619652
413
py
Python
configs/video/camvid/memory_r50-d8_640x640_80k_camvid_video.py
Xlinford/video_mmseg
28c905b38b10f857301a584ce95949ecf1ec7e0d
[ "Apache-2.0" ]
null
null
null
configs/video/camvid/memory_r50-d8_640x640_80k_camvid_video.py
Xlinford/video_mmseg
28c905b38b10f857301a584ce95949ecf1ec7e0d
[ "Apache-2.0" ]
null
null
null
configs/video/camvid/memory_r50-d8_640x640_80k_camvid_video.py
Xlinford/video_mmseg
28c905b38b10f857301a584ce95949ecf1ec7e0d
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../../_base_/models/memory_r50-d8.py', '../../_base_/datasets/camvid_video.py', '../../_base_/default_runtime.py', '../../_base_/schedules/schedule_80k.py' ] optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0005) model = dict( decode_head=dict(num_classes=12), auxiliary_head=di...
37.545455
84
0.677966
61
413
4.245902
0.688525
0.069498
0.084942
0.138996
0.15444
0
0
0
0
0
0
0.08311
0.096852
413
10
85
41.3
0.61126
0
0
0
0
0
0.364078
0.34466
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
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
754549096ab2413b6e0b65054d236c8339afe626
5,721
py
Python
datasets/wikisql/wikisql_dbengine.py
IBM/row-column-intersection
fbc4214d7f92f9602a1b219b4336a940de3d6ee4
[ "Apache-2.0" ]
29
2021-04-20T07:15:41.000Z
2022-03-01T06:32:40.000Z
datasets/wikisql/wikisql_dbengine.py
IBM/row-column-intersection
fbc4214d7f92f9602a1b219b4336a940de3d6ee4
[ "Apache-2.0" ]
4
2021-04-25T06:49:13.000Z
2021-10-07T11:00:14.000Z
datasets/wikisql/wikisql_dbengine.py
IBM/row-column-intersection
fbc4214d7f92f9602a1b219b4336a940de3d6ee4
[ "Apache-2.0" ]
5
2021-04-28T21:52:41.000Z
2022-02-21T07:16:35.000Z
""" Modified from WikiSQL/lib/dbengine.py BSD 3-Clause License Copyright (c) 2017, Salesforce Research All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the ...
45.768
123
0.646565
766
5,721
4.697128
0.281984
0.036965
0.020011
0.028349
0.55781
0.544469
0.544469
0.544469
0.544469
0.520567
0
0.003444
0.238595
5,721
124
124
46.137097
0.822544
0.325118
0
0.736842
0
0
0.088358
0
0.026316
0
0
0
0
1
0.065789
false
0
0.052632
0.026316
0.184211
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
75494ce77726f66356676a03e189e192a5e91884
72
py
Python
tests/roots/test-extensions/write_serial.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
4,973
2015-01-03T15:44:00.000Z
2022-03-31T03:11:51.000Z
tests/roots/test-extensions/write_serial.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
7,850
2015-01-02T08:09:25.000Z
2022-03-31T18:57:40.000Z
tests/roots/test-extensions/write_serial.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
2,179
2015-01-03T15:26:53.000Z
2022-03-31T12:22:44.000Z
def setup(app): return { 'parallel_write_safe': False }
14.4
36
0.569444
8
72
4.875
1
0
0
0
0
0
0
0
0
0
0
0
0.319444
72
4
37
18
0.795918
0
0
0
0
0
0.263889
0
0
0
0
0
0
1
0.25
false
0
0
0.25
0.5
0
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
1
0
0
0
1
0
0
0
4
754964acc6a0fdb092682d40acbf5109a1947819
59
py
Python
demo.py
dimitrov-dimitar/competitive-programming
f2b022377baf6d4beff213fc513907b774c12352
[ "MIT" ]
null
null
null
demo.py
dimitrov-dimitar/competitive-programming
f2b022377baf6d4beff213fc513907b774c12352
[ "MIT" ]
null
null
null
demo.py
dimitrov-dimitar/competitive-programming
f2b022377baf6d4beff213fc513907b774c12352
[ "MIT" ]
null
null
null
print('demo') for x in range(1000): print(x, end=' ')
11.8
21
0.559322
10
59
3.3
0.8
0
0
0
0
0
0
0
0
0
0
0.086957
0.220339
59
4
22
14.75
0.630435
0
0
0
0
0
0.084746
0
0
0
0
0
0
1
0
false
0
0
0
0
0.666667
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
1
0
3
754ca8a8829402ac4848e0cd1a56270189f5a5eb
2,195
py
Python
mamprefs/__init__.py
arubertoson/maya-mamprefs
0bf972322416499c51b67ad083600d3cbaa5d0e7
[ "MIT" ]
null
null
null
mamprefs/__init__.py
arubertoson/maya-mamprefs
0bf972322416499c51b67ad083600d3cbaa5d0e7
[ "MIT" ]
7
2016-01-10T09:48:48.000Z
2016-07-28T20:40:55.000Z
mamprefs/__init__.py
arubertoson/maya-mamprefs
0bf972322416499c51b67ad083600d3cbaa5d0e7
[ "MIT" ]
null
null
null
""" """ import os import json import logging from maya import cmds __title__ = 'mayaprefs' __version__ = '0.1.6' __author__ = 'Marcus Albertsson <marcus.arubertoson@gmail.com>' __url__ = 'http://github.com/arubertoson/maya-mayaprefs' __license__ = 'MIT' __copyright__ = 'Copyright 2016 Marcus Albertsson' ...
23.351064
68
0.627335
273
2,195
4.714286
0.417582
0.037296
0.03108
0.040404
0.09324
0.037296
0
0
0
0
0
0.00492
0.259226
2,195
93
69
23.602151
0.786593
0.133485
0
0
0
0
0.127794
0.038395
0
0
0
0
0
1
0.117647
false
0.019608
0.098039
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
754e46227a36ce0c61ab7d1430c85a2c94c9f76f
1,567
py
Python
sonos.py
Einstein42/sonos-polyglot
9f141b0f53ee036684d49bd62af590fc9b67b8a9
[ "MIT" ]
8
2016-04-01T02:22:03.000Z
2019-01-03T01:42:37.000Z
sonos.py
Einstein42/sonos-polyglot
9f141b0f53ee036684d49bd62af590fc9b67b8a9
[ "MIT" ]
2
2020-09-19T20:04:10.000Z
2020-09-23T07:21:39.000Z
sonos.py
Einstein42/sonos-polyglot
9f141b0f53ee036684d49bd62af590fc9b67b8a9
[ "MIT" ]
3
2016-03-31T00:15:08.000Z
2019-06-13T09:45:39.000Z
#!/usr/bin/python """ Sonos Node Server for Polyglot by Einstein.42(James Milne) milne.james@gmail.com""" from polyglot.nodeserver_api import SimpleNodeServer, PolyglotConnector from sonos_types import SonosSpeaker, SonosControl VERSION = "0.2.1" class SonosNodeServer(SimpleNodeServer): """ Sonos N...
29.018519
91
0.631142
179
1,567
5.424581
0.469274
0.049434
0.043254
0.026777
0.084449
0.084449
0.084449
0.084449
0.084449
0.084449
0
0.011149
0.255903
1,567
53
92
29.566038
0.821612
0.159541
0
0.171429
0
0
0.11413
0
0
0
0
0
0
1
0.142857
false
0.057143
0.057143
0
0.285714
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
754e707729e5a852fcfee89bbfbf837d1fd7207c
2,973
py
Python
pysph/examples/rigid_body/bouncing_cube.py
nauaneed/pysph
9cb9a859934939307c65a25cbf73e4ecc83fea4a
[ "BSD-3-Clause" ]
293
2017-05-26T14:41:15.000Z
2022-03-28T09:56:16.000Z
pysph/examples/rigid_body/bouncing_cube.py
nauaneed/pysph
9cb9a859934939307c65a25cbf73e4ecc83fea4a
[ "BSD-3-Clause" ]
217
2017-05-29T15:48:14.000Z
2022-03-24T16:16:55.000Z
pysph/examples/rigid_body/bouncing_cube.py
nauaneed/pysph
9cb9a859934939307c65a25cbf73e4ecc83fea4a
[ "BSD-3-Clause" ]
126
2017-05-25T19:17:32.000Z
2022-03-25T11:23:24.000Z
"""A cube bouncing inside a box. (5 seconds) This is used to test the rigid body equations. """ import numpy as np from pysph.base.kernels import CubicSpline from pysph.base.utils import get_particle_array_rigid_body from pysph.sph.equation import Group from pysph.sph.integrator import EPECIntegrator from pysph.so...
30.649485
79
0.539522
418
2,973
3.739234
0.287081
0.040307
0.038388
0.042226
0.227127
0.180422
0.143314
0.143314
0.143314
0.143314
0
0.041185
0.330306
2,973
96
80
30.96875
0.743847
0.064918
0
0.142857
0
0
0.012992
0
0
0
0
0
0
1
0.042857
false
0
0.114286
0
0.214286
0.014286
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
7550b302b143fc382ccf3fdfe9024a6e71f17aa5
4,986
py
Python
jarvis_cli/admin.py
clb6/jarvis-cli
44dfe0a94243e444eaddc72496efd677be9272e7
[ "Apache-2.0" ]
null
null
null
jarvis_cli/admin.py
clb6/jarvis-cli
44dfe0a94243e444eaddc72496efd677be9272e7
[ "Apache-2.0" ]
3
2016-09-08T03:20:33.000Z
2016-12-08T05:19:57.000Z
jarvis_cli/admin.py
clb6/jarvis-cli
44dfe0a94243e444eaddc72496efd677be9272e7
[ "Apache-2.0" ]
null
null
null
import subprocess, os, time, shutil from datetime import datetime import jarvis_cli as jc from jarvis_cli import config, client from jarvis_cli.client import log_entry as cle def create_snapshot(environment, config_map): snapshot_filepath = "jarvis_snapshot_{0}_{1}.tar.gz".format(environment, datetime...
33.918367
86
0.648416
641
4,986
4.786271
0.294852
0.049544
0.023468
0.024446
0.191656
0.180574
0.133638
0.133638
0.110169
0.110169
0
0.005392
0.256117
4,986
146
87
34.150685
0.821785
0.124148
0
0.126316
0
0
0.077773
0.006903
0
0
0
0.006849
0
1
0.147368
false
0.010526
0.052632
0.031579
0.305263
0.052632
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
7551478291616d2c374c6237ba8190235b7df550
4,609
py
Python
examples/quickstart_mxnet/client.py
Chris-george-anil/flower
98fb2fcde273c1226cc1f2e1638c1e4d8f35815c
[ "Apache-2.0" ]
895
2020-03-22T20:34:16.000Z
2022-03-31T15:20:42.000Z
examples/quickstart_mxnet/client.py
Chris-george-anil/flower
98fb2fcde273c1226cc1f2e1638c1e4d8f35815c
[ "Apache-2.0" ]
322
2020-02-19T10:16:33.000Z
2022-03-31T09:49:08.000Z
examples/quickstart_mxnet/client.py
Chris-george-anil/flower
98fb2fcde273c1226cc1f2e1638c1e4d8f35815c
[ "Apache-2.0" ]
234
2020-03-31T10:52:16.000Z
2022-03-31T14:04:42.000Z
"""Flower client example using MXNet for MNIST classification. The code is generally adapted from: https://mxnet.apache.org/api/python/docs/tutorials/packages/gluon/image/mnist.html """ import flwr as fl import numpy as np import mxnet as mx from mxnet import nd from mxnet import gluon from mxnet.gluon import nn fro...
33.642336
87
0.62378
586
4,609
4.737201
0.274744
0.039625
0.020173
0.025937
0.349424
0.332133
0.31268
0.31268
0.290346
0.256484
0
0.012899
0.259926
4,609
136
88
33.889706
0.800938
0.057713
0
0.235849
0
0
0.044542
0
0
0
0
0
0
1
0.084906
false
0
0.075472
0
0.235849
0.028302
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
755336617545c70fccce90a28a65b00fb6da7a58
2,116
py
Python
driver/eater.py
riastrad/newSeer
0f9841c7e7bb555c27c1ed2fc1ea7623f8e30f13
[ "MIT" ]
null
null
null
driver/eater.py
riastrad/newSeer
0f9841c7e7bb555c27c1ed2fc1ea7623f8e30f13
[ "MIT" ]
5
2017-03-27T17:22:16.000Z
2017-04-25T03:14:56.000Z
driver/eater.py
riastrad/newSeer
0f9841c7e7bb555c27c1ed2fc1ea7623f8e30f13
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # @Author: Josh Erb <josh.erb> # @Date: 27-Feb-2017 11:02 # @Email: josh.erb@excella.com # @Last modified by: josh.erb # @Last modified time: 27-Feb-2017 11:02 """ Main driver script for ingesting RSS data. Uses the ArticleFeed() object from the feeder.py script and a dictionary of public...
29.802817
92
0.577977
255
2,116
4.737255
0.513725
0.023179
0.014901
0.018212
0.021523
0
0
0
0
0
0
0.014731
0.165879
2,116
70
93
30.228571
0.669688
0.409263
0
0.086957
0
0
0.400227
0
0
0
0
0
0
1
0.086957
false
0
0.130435
0
0.304348
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
7553e2b1473100abeaecabefbde8805eee7ba8aa
10,033
py
Python
utils/adscrawl.py
nmiles2718/PACMan_dist
62f495f8d506919146a16750072a523aaafb3c53
[ "MIT" ]
null
null
null
utils/adscrawl.py
nmiles2718/PACMan_dist
62f495f8d506919146a16750072a523aaafb3c53
[ "MIT" ]
null
null
null
utils/adscrawl.py
nmiles2718/PACMan_dist
62f495f8d506919146a16750072a523aaafb3c53
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os,sys,pdb,scipy,glob from pylab import * import urllib, urllib2 import xml.dom.minidom import datetime def ADS(): thisMirror = 'http://adsabs.harvard.edu/' print 'Retrieving from ',thisMirror baseUrl = thisMirror + 'cgi-bin/nph-abs_connect?' return baseUrl def get_text(...
41.118852
128
0.549686
1,125
10,033
4.741333
0.2
0.056243
0.04312
0.090739
0.634608
0.631046
0.616985
0.610236
0.588301
0.573678
0
0.010405
0.272002
10,033
243
129
41.288066
0.71988
0.080136
0
0.580111
0
0
0.126537
0.002611
0
0
0
0
0
0
null
null
0
0.027624
null
null
0.049724
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
755568c409e234d158d2eba42024254a2b722778
919
py
Python
app/main.py
DanNduati/fastapi
f575d3f51e91aaf2d342e43c613795c01bd9229c
[ "MIT" ]
1
2021-12-21T16:27:16.000Z
2021-12-21T16:27:16.000Z
app/main.py
DanNduati/FastAPI-social-API
c4270a035b263e434ab49de98c183060e81e0181
[ "MIT" ]
1
2021-12-18T14:54:16.000Z
2021-12-19T13:56:11.000Z
app/main.py
DanNduati/fastapi
f575d3f51e91aaf2d342e43c613795c01bd9229c
[ "MIT" ]
null
null
null
from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware from app.routers import auth from . import models from .database import engine from .routers import posts, users, auth, votes #create our posts table if its not present models.Base.metadata.create_all(bind=engine) # aplication instance app...
23.564103
50
0.710555
114
919
5.631579
0.54386
0.062305
0.099688
0.102804
0
0
0
0
0
0
0
0.003942
0.171926
919
39
51
23.564103
0.839685
0.115343
0
0
0
0
0.134568
0
0
0
0
0
0
1
0
false
0
0.193548
0
0.193548
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
7558bfa8001faf2bdbf433c4fb30d2420e02470d
1,068
py
Python
callbacks/visdom_callback.py
AIS-Bonn/temporal_latticenet
02b60a69c82da909417f32fdd184321945a604d1
[ "MIT" ]
null
null
null
callbacks/visdom_callback.py
AIS-Bonn/temporal_latticenet
02b60a69c82da909417f32fdd184321945a604d1
[ "MIT" ]
null
null
null
callbacks/visdom_callback.py
AIS-Bonn/temporal_latticenet
02b60a69c82da909417f32fdd184321945a604d1
[ "MIT" ]
null
null
null
from callbacks.callback import * from callbacks.vis import * class VisdomCallback(Callback): def __init__(self, experiment_name): self.vis=Vis("lnn", 8097) # self.iter_nr=0 self.experiment_name=experiment_name def after_forward_pass(self, phase, loss, loss_dice, lr, pred_softmax, targ...
53.4
162
0.700375
157
1,068
4.464968
0.318471
0.1398
0.154066
0.085592
0.46505
0.46505
0.435093
0.363766
0.363766
0.350927
0
0.01768
0.152622
1,068
20
163
53.4
0.756906
0.400749
0
0
0
0
0.022047
0
0
0
0
0
0
1
0.3
false
0.1
0.2
0
0.6
0.1
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
0
0
0
2
755b8168748f1f7d664c1eb56c8d4b37b99d430f
1,451
py
Python
src/mnist_backbone.py
StevenHuang2020/PyTorch_Learning
292508f6794cfb23e0767139c1c703b9525cdb35
[ "MIT" ]
null
null
null
src/mnist_backbone.py
StevenHuang2020/PyTorch_Learning
292508f6794cfb23e0767139c1c703b9525cdb35
[ "MIT" ]
null
null
null
src/mnist_backbone.py
StevenHuang2020/PyTorch_Learning
292508f6794cfb23e0767139c1c703b9525cdb35
[ "MIT" ]
null
null
null
#python3 Steven 12/05/20,Auckland,NZ #pytorch backbone models import torch from commonTorch import ClassifierCNN_NetBB from summaryModel import summaryNet from backbones import* def main(): nClass = 10 net = ClassifierCNN_NetBB(nClass, backbone=alexnet) summaryNet(net, (3,512,512)) #net = Class...
29.612245
64
0.674707
168
1,451
5.684524
0.27381
0.245026
0.263874
0.339267
0.691099
0.633508
0.633508
0.633508
0.633508
0.633508
0
0.08982
0.194349
1,451
49
65
29.612245
0.727117
0.660924
0
0
0
0
0.017279
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.545455
0
0
0
0
null
1
1
1
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
1
0
1
0
0
6
755d1072e648dc7b70b3ca63fee0d190c94c9d5d
953
py
Python
user_app/model/foot_models.py
syz247179876/e_mall
f94e39e091e098242342f532ae371b8ff127542f
[ "Apache-2.0" ]
7
2021-04-10T13:20:56.000Z
2022-03-29T15:00:29.000Z
user_app/model/foot_models.py
syz247179876/E_mall
f94e39e091e098242342f532ae371b8ff127542f
[ "Apache-2.0" ]
9
2021-05-11T03:53:31.000Z
2022-03-12T00:58:03.000Z
user_app/model/foot_models.py
syz247179876/E_mall
f94e39e091e098242342f532ae371b8ff127542f
[ "Apache-2.0" ]
2
2020-11-24T08:59:22.000Z
2020-11-24T14:10:59.000Z
# -*- coding: utf-8 -*- # @Time : 2021/2/19 下午4:22 # @Author : 司云中 # @File : foot_models.py # @Software: Pycharm from django.contrib.auth import get_user_model from django.db import models from django.db.models import Manager from django.utils.translation import gettext_lazy as _ from shop_app.models.commodity_models ...
27.228571
94
0.679958
121
953
5.107438
0.545455
0.088997
0.038835
0
0
0
0
0
0
0
0
0.015504
0.187828
953
34
95
28.029412
0.782946
0.126967
0
0
0
0
0.056166
0
0
0
0
0
0
1
0.055556
false
0
0.277778
0.055556
0.722222
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
755e3ccae90e818b543931a7a80b80c4d6d28e00
1,569
py
Python
src/fftIfftTests.py
vberthiaume/vblandr
dbd139e7b6172b9dbc97707ff4874bc398de7aaa
[ "Apache-2.0" ]
null
null
null
src/fftIfftTests.py
vberthiaume/vblandr
dbd139e7b6172b9dbc97707ff4874bc398de7aaa
[ "Apache-2.0" ]
10
2016-08-29T20:06:05.000Z
2016-10-27T20:40:58.000Z
src/fftIfftTests.py
vberthiaume/vblandr
dbd139e7b6172b9dbc97707ff4874bc398de7aaa
[ "Apache-2.0" ]
null
null
null
import subprocess as sp import scikits.audiolab import numpy as np from scipy.fftpack import fft, ifft from scipy.io import wavfile #--CONVERT MP3 TO WAV------------------------------------------ song_path = '/home/gris/Music/vblandr/test_small/punk/07 Alkaline Trio - Only Love.mp3' command = [ 'ffmpeg', '-i'...
35.659091
124
0.615679
213
1,569
4.42723
0.497653
0.084836
0.041357
0.063627
0.065748
0.065748
0
0
0
0
0
0.032184
0.16826
1,569
43
125
36.488372
0.690421
0.463352
0
0
0
0.045455
0.20919
0.096735
0
0
0
0
0
1
0
false
0
0.227273
0
0.227273
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
7560a82fac322ef2d8c50e83c01dd45192035ed7
372
py
Python
MIC/LCD12864/urls.py
blacksea3/MainMIC
02f226bce63c6b85f6922420fff4da885e6c24a3
[ "Apache-2.0" ]
null
null
null
MIC/LCD12864/urls.py
blacksea3/MainMIC
02f226bce63c6b85f6922420fff4da885e6c24a3
[ "Apache-2.0" ]
null
null
null
MIC/LCD12864/urls.py
blacksea3/MainMIC
02f226bce63c6b85f6922420fff4da885e6c24a3
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import patterns, include, url from django.http import HttpResponseRedirect from LCD12864.views import * def auto_redirect(request): return HttpResponseRedirect('/MIC/index/') urlpatterns = patterns('', url(r'index/$', index), url(r'search/$', search), url(r'update_database/...
24.8
51
0.704301
45
372
5.733333
0.533333
0.062016
0
0
0
0
0
0
0
0
0
0.015823
0.150538
372
15
52
24.8
0.800633
0
0
0
0
0
0.117962
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0.090909
0.454545
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
75621ce86b3dd347f7fcc091107874d8c219b771
3,243
py
Python
src/schema.py
DanielCollins/pgtq
a8b0931a8a2538da8da01a8f4fd17e57ea772715
[ "0BSD" ]
12
2017-10-11T07:41:04.000Z
2021-02-19T06:19:29.000Z
src/schema.py
DanielCollins/pgtq
a8b0931a8a2538da8da01a8f4fd17e57ea772715
[ "0BSD" ]
33
2017-10-29T04:23:23.000Z
2019-01-30T05:20:57.000Z
src/schema.py
DanielCollins/pgtq
a8b0931a8a2538da8da01a8f4fd17e57ea772715
[ "0BSD" ]
null
null
null
"""SQL for storing and working on tasks.""" SQL_TEMPLATE = """ CREATE TABLE IF NOT EXISTS pgtq_{0}_scheduled ( key INTEGER PRIMARY KEY, not_before TIMESTAMP WITHOUT TIME ZONE NOT NULL, task JSON NOT NULL, attempts INTEGER NOT NULL, max_retries INTEGER ); CREATE INDEX IF NOT EXISTS ix_pgtq_{0}_scheduled_no...
29.216216
72
0.668208
450
3,243
4.597778
0.2
0.072499
0.054132
0.043499
0.475592
0.326728
0.302562
0.20783
0.162397
0.162397
0
0.014481
0.254702
3,243
110
73
29.481818
0.841539
0.011409
0
0.395833
0
0
0.9925
0.084063
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
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7562fcbbdac668092cdb6d5710b89f8c5f901a32
6,259
py
Python
visgraph/tests/test_graphcore.py
vEpiphyte/vivisect
14947a53c6781175f0aa83d49cc16c524a2e23a3
[ "ECL-2.0", "Apache-2.0" ]
1
2020-12-23T19:23:17.000Z
2020-12-23T19:23:17.000Z
visgraph/tests/test_graphcore.py
vEpiphyte/vivisect
14947a53c6781175f0aa83d49cc16c524a2e23a3
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
visgraph/tests/test_graphcore.py
vEpiphyte/vivisect
14947a53c6781175f0aa83d49cc16c524a2e23a3
[ "ECL-2.0", "Apache-2.0" ]
1
2020-12-23T19:23:58.000Z
2020-12-23T19:23:58.000Z
import unittest import visgraph.graphcore as v_graphcore s1paths = [ ('a','c','f'), ('a','b','d','f'), ('a','b','e','f'), ] s2paths = [ ('a','b'), ('a','b','c'), ] class GraphCoreTest(unittest.TestCase): def getSampleGraph1(self): # simple branching/merging graph g = v_graphc...
28.321267
95
0.537466
751
6,259
4.447403
0.147803
0.075449
0.026946
0.046707
0.544012
0.474252
0.46497
0.337425
0.287725
0.249701
0
0.013252
0.288704
6,259
220
96
28.45
0.736972
0.010705
0
0.320513
0
0
0.041478
0
0
0
0
0
0.307692
1
0.096154
false
0
0.012821
0
0.134615
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
f3287946bcd7a026ba36e730bf9b3548a5dd79b1
4,029
py
Python
chatty_goose/agents/chat.py
saileshnankani/chatty-goose
ef3a27119d6825a96ae85d1453d6b4eac4ed22b7
[ "Apache-2.0" ]
24
2021-03-08T09:53:59.000Z
2022-03-17T06:47:06.000Z
chatty_goose/agents/chat.py
saileshnankani/chatty-goose
ef3a27119d6825a96ae85d1453d6b4eac4ed22b7
[ "Apache-2.0" ]
10
2021-03-08T13:35:54.000Z
2021-11-15T03:32:37.000Z
chatty_goose/agents/chat.py
saileshnankani/chatty-goose
ef3a27119d6825a96ae85d1453d6b4eac4ed22b7
[ "Apache-2.0" ]
8
2021-03-03T00:37:18.000Z
2021-08-01T00:50:47.000Z
import logging from chatty_goose.cqr import Hqe, Ntr from chatty_goose.pipeline import RetrievalPipeline from chatty_goose.settings import HqeSettings, NtrSettings from chatty_goose.types import CqrType, PosFilter from parlai.core.agents import Agent, register_agent from pyserini.search import SimpleSearcher @regist...
44.274725
131
0.641598
498
4,029
5.044177
0.303213
0.050159
0.094745
0.035828
0.155653
0.10629
0.085589
0.085589
0.068471
0.068471
0
0.015098
0.227352
4,029
90
132
44.766667
0.791841
0.029784
0
0
0
0
0.219944
0.006152
0
0
0
0
0
1
0.059701
false
0
0.119403
0
0.238806
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
f32993767d59acc690a30337b62cd5533087e465
5,639
py
Python
analysis/utils.py
VUB-HYDR/2022_Vanderkelen_etal_GMD
eceb5507a00c96d559b9611125935577ab84991b
[ "MIT" ]
null
null
null
analysis/utils.py
VUB-HYDR/2022_Vanderkelen_etal_GMD
eceb5507a00c96d559b9611125935577ab84991b
[ "MIT" ]
null
null
null
analysis/utils.py
VUB-HYDR/2022_Vanderkelen_etal_GMD
eceb5507a00c96d559b9611125935577ab84991b
[ "MIT" ]
null
null
null
""" Utils and functions to for MizuRoute postprocessing on Cheyenne Inne Vanderkelen - March 2021 """ import numpy as np def set_plot_param(): """Set my own customized plotting parameters""" import matplotlib as mpl mpl.rc('xtick',labelsize=12) mpl.rc('ytick',labelsize=12) mpl.rc('axes',tit...
34.384146
124
0.609328
699
5,639
4.793991
0.320458
0.016413
0.010743
0.014324
0.163533
0.078186
0.043569
0.022083
0.022083
0.022083
0
0.01658
0.283384
5,639
164
125
34.384146
0.81267
0.316368
0
0.171053
0
0
0.092345
0
0
0
0
0
0
1
0.105263
false
0
0.039474
0
0.236842
0.039474
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
f32a75ee5c791e6098d35828898f7b16caa86fd3
210
py
Python
django/web/admin.py
priyankcommits/priyank.co.uk
9ca022ef102c156d1bfe943809d97b1cc447e464
[ "MIT" ]
null
null
null
django/web/admin.py
priyankcommits/priyank.co.uk
9ca022ef102c156d1bfe943809d97b1cc447e464
[ "MIT" ]
4
2021-03-09T09:57:40.000Z
2022-02-12T13:42:46.000Z
django/web/admin.py
priyankcommits/priyank.co.uk
9ca022ef102c156d1bfe943809d97b1cc447e464
[ "MIT" ]
null
null
null
from django.contrib import admin from web.models import Subscribers, Article, Post, Profile admin.site.register(Subscribers) admin.site.register(Article) admin.site.register(Post) admin.site.register(Profile)
26.25
58
0.82381
29
210
5.965517
0.448276
0.208092
0.393064
0
0
0
0
0
0
0
0
0
0.07619
210
7
59
30
0.891753
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
1
1
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
6
f32b83762755b987c17ac30aaedffee878d37ce9
875
py
Python
django_safe_project/safe_settings.py
Ketibansapi/sensitivity-djtest
b4a5b52fb07f25b9a5c62cf86d4ab19fc5609959
[ "MIT" ]
null
null
null
django_safe_project/safe_settings.py
Ketibansapi/sensitivity-djtest
b4a5b52fb07f25b9a5c62cf86d4ab19fc5609959
[ "MIT" ]
null
null
null
django_safe_project/safe_settings.py
Ketibansapi/sensitivity-djtest
b4a5b52fb07f25b9a5c62cf86d4ab19fc5609959
[ "MIT" ]
null
null
null
"""This module defines the settings to be altered and how to handle them. Each setting should contain a dict with the following keys: 'value': The content to be placed in `local_settings.py` 'default': The content will be set as the default value in `settings.py` `<SETTING_NAME> = getattr(local_setting...
43.75
80
0.691429
128
875
4.625
0.507813
0.087838
0.050676
0.057432
0.10473
0
0
0
0
0
0
0
0.193143
875
19
81
46.052632
0.838527
0.826286
0
0
0
0
0.337931
0
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f32c7c7a86c83603395a612781c31e2718a2e153
14,611
py
Python
fhirstore/fhirstore.py
arkhn/pyfhirstore
dd43b6d7db600f95d81dc83ae0a6e6de78ff02c6
[ "Apache-2.0" ]
15
2019-10-04T14:29:42.000Z
2021-12-27T09:15:07.000Z
fhirstore/fhirstore.py
arkhn/pyfhirstore
dd43b6d7db600f95d81dc83ae0a6e6de78ff02c6
[ "Apache-2.0" ]
34
2019-10-08T16:37:26.000Z
2020-11-30T17:51:59.000Z
fhirstore/fhirstore.py
arkhn/pyfhirstore
dd43b6d7db600f95d81dc83ae0a6e6de78ff02c6
[ "Apache-2.0" ]
1
2020-12-14T06:13:19.000Z
2020-12-14T06:13:19.000Z
import sys import logging from typing import Union, Dict, Optional import json from elasticsearch import Elasticsearch from elasticsearch.exceptions import ( NotFoundError as ESNotFoundError, RequestError as ESRequestError, AuthenticationException as ESAuthenticationException, ) import pydantic from pymong...
39.596206
100
0.605024
1,566
14,611
5.53576
0.17433
0.063675
0.013496
0.016611
0.409044
0.359557
0.321952
0.312493
0.312493
0.306264
0
0.000787
0.304497
14,611
368
101
39.703804
0.852293
0.202519
0
0.287554
0
0
0.147434
0.014752
0
0
0
0
0
1
0.051502
false
0
0.081545
0.004292
0.291845
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
f32db992fe4b60b3413127ecc2439e2e3dfbd02f
1,276
py
Python
model/base/vgg_base.py
lizhaoliu-Lec/ImageAestheticAssessmentPyTorch
3ddb8408d978543b9609bdb4976b8e944057d449
[ "Apache-2.0" ]
7
2021-04-17T06:57:50.000Z
2022-03-15T08:12:11.000Z
model/base/vgg_base.py
lizhaoliu-Lec/ImageAestheticAssessmentPyTorch
3ddb8408d978543b9609bdb4976b8e944057d449
[ "Apache-2.0" ]
null
null
null
model/base/vgg_base.py
lizhaoliu-Lec/ImageAestheticAssessmentPyTorch
3ddb8408d978543b9609bdb4976b8e944057d449
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn from torchvision.models import vgg11 from torchvision.models import vgg13 from torchvision.models import vgg16 from torchvision.models import vgg19 from torchvision.models import vgg11_bn from torchvision.models import vgg13_bn from torchvision.models import vgg16_bn from torchvision...
26.040816
91
0.668495
178
1,276
4.522472
0.325843
0.149068
0.208696
0.268323
0.362733
0
0
0
0
0
0
0.050968
0.231191
1,276
48
92
26.583333
0.769623
0
0
0
0
0
0.047022
0
0
0
0
0
0
1
0.085714
false
0
0.342857
0
0.514286
0.028571
0
0
0
null
0
1
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
1
0
1
0
0
4
f330826045b7dfd8da77b8e1ad7b89465919a84a
3,684
py
Python
Binary Tree/7.1-binary_tree.py
neeveermoree/data_structures_and_algorithms
8aa37cade53539909383fb9d4952b13ca19c931a
[ "MIT" ]
null
null
null
Binary Tree/7.1-binary_tree.py
neeveermoree/data_structures_and_algorithms
8aa37cade53539909383fb9d4952b13ca19c931a
[ "MIT" ]
null
null
null
Binary Tree/7.1-binary_tree.py
neeveermoree/data_structures_and_algorithms
8aa37cade53539909383fb9d4952b13ca19c931a
[ "MIT" ]
null
null
null
from utils_queue import Queue class _Node: __slots__ = '_val', '_left', '_right' def __init__(self, val, left=None, right=None): self._val = val self._left = left self._right = right class BinaryTree: __slots__ = '_root' def __init__(self, root=None): self._root = roo...
24.891892
57
0.580347
439
3,684
4.548975
0.15262
0.088132
0.055083
0.08012
0.429644
0.370556
0.305458
0.305458
0.305458
0.305458
0
0.020784
0.307818
3,684
147
58
25.061224
0.762353
0
0
0.221154
0
0
0.085544
0
0
0
0
0
0
1
0.096154
false
0
0.009615
0.009615
0.192308
0.221154
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
f3319761fd1182fd6665e156c585de85bd502534
35,625
py
Python
simpleserver.py
pixelheartz/SimpleServer
8fe21248b3a797aa5725d9e032752b94afa8180d
[ "MIT" ]
null
null
null
simpleserver.py
pixelheartz/SimpleServer
8fe21248b3a797aa5725d9e032752b94afa8180d
[ "MIT" ]
null
null
null
simpleserver.py
pixelheartz/SimpleServer
8fe21248b3a797aa5725d9e032752b94afa8180d
[ "MIT" ]
1
2020-05-08T19:34:56.000Z
2020-05-08T19:34:56.000Z
NAMAFILE = 'Telkomsel Opok v1' REQ = '' LHOST = '127.0.0.1' LPORT = 8080 FQUERY = ('dGVsa29tLnR1eXVsY3J5cHRvcy5jb20vaXBrLWJpbi9pcGsucG5nL25wYXpvbmUvMDAvaHR0cC8=').decode('base64') MQUERY = '' BQUERY = '' RQUERY = ('di53aGF0c2FwcC5jb20uYmVyYmFnaW1hbmZhYXQuY28uaWQ=').decode('base64') CQUERY = '' IQUERY = '' IMETHOD = 0 I...
34.688413
175
0.510428
4,028
35,625
4.392999
0.114449
0.044758
0.038768
0.040689
0.385363
0.341113
0.318056
0.280588
0.261825
0.24182
0
0.02057
0.358625
35,625
1,026
176
34.722222
0.753862
0
0
0.396476
0
0.001101
0.093923
0.005361
0
0
0.000702
0
0
0
null
null
0.023128
0.002203
null
null
0.002203
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
f33285e15ede8369b4a0525755bb9a17e11b734e
472
py
Python
wishlist/domain/product/test/test_create_product.py
guiyllw/wishlist-luizalabs
0bc9f594cd7973fcb39e839e5540232cf1f718f9
[ "Apache-2.0" ]
null
null
null
wishlist/domain/product/test/test_create_product.py
guiyllw/wishlist-luizalabs
0bc9f594cd7973fcb39e839e5540232cf1f718f9
[ "Apache-2.0" ]
null
null
null
wishlist/domain/product/test/test_create_product.py
guiyllw/wishlist-luizalabs
0bc9f594cd7973fcb39e839e5540232cf1f718f9
[ "Apache-2.0" ]
null
null
null
from wishlist.domain.product.ports import CreateProduct from wishlist.test.helpers import AsyncMock class TestCreateProduct: async def test_create_product_with_success( self, create_product_request, product_response ): create_product = CreateProduct( AsyncMock(retu...
24.842105
69
0.716102
48
472
6.75
0.5
0.200617
0.123457
0
0
0
0
0
0
0
0
0
0.235169
472
18
70
26.222222
0.897507
0
0
0
0
0
0
0
0
0
0
0
0.076923
1
0
false
0
0.153846
0
0.230769
0
0
0
0
null
1
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
0
1
f332e5b3dab0d4a4b710e2086f5d14ccd27126f6
41
py
Python
pbconcept/__init__.py
ScarletPan/probase-concept
57f91998876f0085dd0acf34112fb2389563d0c2
[ "MIT" ]
18
2019-10-28T06:39:50.000Z
2022-02-28T12:54:08.000Z
pbconcept/__init__.py
ScarletPan/probase-concept
57f91998876f0085dd0acf34112fb2389563d0c2
[ "MIT" ]
null
null
null
pbconcept/__init__.py
ScarletPan/probase-concept
57f91998876f0085dd0acf34112fb2389563d0c2
[ "MIT" ]
null
null
null
from .conceptualize import ProbaseConcept
41
41
0.902439
4
41
9.25
1
0
0
0
0
0
0
0
0
0
0
0
0.073171
41
1
41
41
0.973684
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
f3334adaaf08994c3d3ed59dde038655efaef8ef
3,798
py
Python
src/MATGenerator.py
yumataesu/TouchDesigner-ShaderBuilder
5f9e8300603afc91cd60bf0c91061d11401520d1
[ "MIT" ]
1
2022-02-13T13:19:56.000Z
2022-02-13T13:19:56.000Z
src/MATGenerator.py
yumataesu/TouchDesigner-ShaderBuilder
5f9e8300603afc91cd60bf0c91061d11401520d1
[ "MIT" ]
null
null
null
src/MATGenerator.py
yumataesu/TouchDesigner-ShaderBuilder
5f9e8300603afc91cd60bf0c91061d11401520d1
[ "MIT" ]
null
null
null
import platform class MATGenerator: def __init__(self, ownerComp): self.ownerComp = ownerComp self.OUT_glsl_struct = '' self.OUT_pixel = '' self.OUT_vertex = '' self.use_alpha_hashed = False self.Update(self.ownerComp.op('in1')) def eval_template(self, tmpl_dat_name, ctx): t = op.ShaderB...
26.013699
112
0.614007
534
3,798
4.264045
0.219101
0.049188
0.02108
0.043917
0.288538
0.234958
0.21827
0.207729
0.184014
0.153711
0
0.007177
0.229595
3,798
145
113
26.193103
0.771018
0.009742
0
0.314815
0
0
0.175166
0
0
0
0
0
0
1
0.037037
false
0
0.009259
0
0.074074
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
f333fbce56cacfc6b06521c303bbc2eacd4a8772
7,707
py
Python
tests/test_modifiers_mujoco.py
MoritzTaylor/simmod
76b2186c39940ce2d08aa36f3d06bfe3640d6c00
[ "MIT" ]
2
2021-07-05T14:08:09.000Z
2021-10-01T09:48:37.000Z
tests/test_modifiers_mujoco.py
MoritzTaylor/simmod
76b2186c39940ce2d08aa36f3d06bfe3640d6c00
[ "MIT" ]
null
null
null
tests/test_modifiers_mujoco.py
MoritzTaylor/simmod
76b2186c39940ce2d08aa36f3d06bfe3640d6c00
[ "MIT" ]
null
null
null
import pytest import xml.etree.ElementTree as ET import numpy as np from mujoco_py import load_model_from_xml, MjSim, load_model_from_path from simmod.modification.mujoco import MujocoBodyModifier from simmod.modification.mujoco import MujocoJointModifier TEST_MODEL_FURUTA_PATH = 'assets/test_mujoco_furuta.xml' TEST...
36.014019
102
0.682367
1,113
7,707
4.486074
0.130279
0.028039
0.039055
0.046866
0.752253
0.733227
0.72842
0.724014
0.719607
0.708792
0
0.016732
0.201246
7,707
213
103
36.183099
0.794347
0.121708
0
0.566265
0
0
0.057632
0.009005
0
0
0
0
0.048193
1
0.042169
false
0
0.042169
0
0.10241
0
0
0
0
null
0
0
0
0
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
0
0
0
5
f334941419dcf2217c67d295f355f106aacc212c
1,265
py
Python
typelike/tests/core/test_list.py
LockhartLab/typelike
bc959a5348133f24e5f5df3f4f7976fc062b2e05
[ "MIT" ]
null
null
null
typelike/tests/core/test_list.py
LockhartLab/typelike
bc959a5348133f24e5f5df3f4f7976fc062b2e05
[ "MIT" ]
null
null
null
typelike/tests/core/test_list.py
LockhartLab/typelike
bc959a5348133f24e5f5df3f4f7976fc062b2e05
[ "MIT" ]
null
null
null
""" test_list.py written in Python3 author: C. Lockhart """ from typelike.core import ListLike from hypothesis import given import hypothesis.strategies as st import numpy as np import pandas as pd import unittest # Contents __all__ = [ 'TestList' ] # Test typelike/core/list.py class TestList(unittest.TestCas...
28.111111
94
0.680632
173
1,265
4.884393
0.312139
0.04142
0.142012
0.16568
0.570414
0.570414
0.523077
0.523077
0.523077
0.392899
0
0.001903
0.16917
1,265
45
95
28.111111
0.802093
0.094071
0
0.296296
0
0
0.007036
0
0
0
0
0.022222
0.185185
1
0.185185
false
0
0.222222
0
0.444444
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
1
0
0
0
0
0
0
0
0
0
0
2
f334c373215cba10b03d648d2ce22cbe3103246a
484
py
Python
create_db.py
jmprkables/webapp
72cdb4b0a8c2d4822e36280421776ca706f724ab
[ "MIT" ]
null
null
null
create_db.py
jmprkables/webapp
72cdb4b0a8c2d4822e36280421776ca706f724ab
[ "MIT" ]
null
null
null
create_db.py
jmprkables/webapp
72cdb4b0a8c2d4822e36280421776ca706f724ab
[ "MIT" ]
null
null
null
import rethinkdb as r conn = r.connect("192.168.6.26", 28015) try: r.db_drop("hackiiitd").run(conn) print("deleted old db") except: print("inital creation") r.db_create("hackiiitd").run(conn) r.db("hackiiitd").table_create("fall").run(conn) print("."), r.db("hackiiitd").table_create("medicine").run(conn) print("....
23.047619
71
0.683884
75
484
4.306667
0.426667
0.055728
0.185759
0.210526
0.396285
0.325077
0.325077
0.325077
0
0
0
0.031042
0.068182
484
20
72
24.2
0.685144
0
0
0.235294
0
0
0.270661
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.058824
0.411765
0
0
0
null
0
1
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
1
0
3