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
17e079ecbd59edaf59e9c79e4ab11e39a61984df
734
py
Python
test/conftest.py
caulagi/py-ras
ff73fe2a109ca45ff1440ff3fe427ef7b54a5d15
[ "MIT" ]
null
null
null
test/conftest.py
caulagi/py-ras
ff73fe2a109ca45ff1440ff3fe427ef7b54a5d15
[ "MIT" ]
2
2018-04-27T07:55:08.000Z
2021-04-20T17:09:14.000Z
test/conftest.py
caulagi/py-ras
ff73fe2a109ca45ff1440ff3fe427ef7b54a5d15
[ "MIT" ]
null
null
null
import asyncio import os import asyncpg def pytest_configure(): # environment should be set before importing os.environ['PG_DATABASE'] = 'slogan_test' from server.client_manager import ClientManager from server.const import PG_USERNAME, PG_PASSWORD from server.slogan_manager import SloganManager...
29.36
84
0.717984
93
734
5.483871
0.505376
0.058824
0.043137
0.07451
0
0
0
0
0
0
0
0
0.19346
734
24
85
30.583333
0.861486
0.057221
0
0
0
0
0.124638
0
0
0
0
0
0
1
0.058824
false
0.117647
0.352941
0
0.411765
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
17e3c562c9dfed3b27bea0a39bae0cc1eb9735ff
578
py
Python
demos/tweaks14.py
ktanidis2/Modified_CosmoSIS_for_galaxy_number_count_angular_power_spectra
07e5d308c6a8641a369a3e0b8d13c4104988cd2b
[ "BSD-2-Clause" ]
1
2021-09-15T10:10:26.000Z
2021-09-15T10:10:26.000Z
demos/tweaks14.py
ktanidis2/Modified_CosmoSIS_for_galaxy_number_count_angular_power_spectra
07e5d308c6a8641a369a3e0b8d13c4104988cd2b
[ "BSD-2-Clause" ]
null
null
null
demos/tweaks14.py
ktanidis2/Modified_CosmoSIS_for_galaxy_number_count_angular_power_spectra
07e5d308c6a8641a369a3e0b8d13c4104988cd2b
[ "BSD-2-Clause" ]
1
2021-06-11T15:29:43.000Z
2021-06-11T15:29:43.000Z
from builtins import range from cosmosis.postprocessing.plots import Tweaks import pylab class ThinLabels(Tweaks): #The file to which this applies filename=["2D_cosmological_parameters--omega_b_cosmological_parameters--hubble", "2D_cosmological_parameters--yhe_cosmological_parameters--omega_b", ...
30.421053
84
0.707612
70
578
5.614286
0.6
0.335878
0.183206
0.142494
0.249364
0.249364
0
0
0
0
0
0.010707
0.192042
578
18
85
32.111111
0.830835
0.051903
0
0
0
0
0.354662
0.354662
0
0
0
0
0
1
0.076923
false
0
0.230769
0
0.461538
0
0
0
0
null
1
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
0
0
0
0
0
0
0
0
2
17e4707e5d811f3f6633676cadd708f471b1ac48
3,876
py
Python
src/adversarial.py
Thytu/Adversarial-attacks
f23ceb730ac788e6472482da572453e96780fd81
[ "MIT" ]
10
2022-01-02T19:43:24.000Z
2022-02-23T21:30:00.000Z
src/adversarial.py
Thytu/OpenAdv
f23ceb730ac788e6472482da572453e96780fd81
[ "MIT" ]
null
null
null
src/adversarial.py
Thytu/OpenAdv
f23ceb730ac788e6472482da572453e96780fd81
[ "MIT" ]
null
null
null
""" TODO """ import torch import torch.nn.functional as F def fgsm_attack(model: torch.nn.Module, image: torch.tensor, label: torch.tensor, epsilon: float, **kwargs) -> torch.tensor: """ Fast Gradient Sign Method Attack, no target class """ model.eval() image.grad = None image.requires_grad ...
27.295775
185
0.652219
515
3,876
4.798058
0.205825
0.124646
0.068798
0.065561
0.75516
0.738163
0.671793
0.641845
0.641845
0.580332
0
0.00589
0.211558
3,876
142
186
27.295775
0.802683
0.127967
0
0.5
0
0
0.011132
0
0
0
0
0.007042
0
1
0.16129
false
0.080645
0.032258
0.016129
0.274194
0
0
0
0
null
0
0
0
0
1
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
2
17e70ddbab8f46e7e09818f0fe09ce318d1a1d99
224
py
Python
examples/multiworker/automatic_conf.py
ccall48/flask-discord-interactions
37bc73fdfea038051eb934590ef3b53660ce0517
[ "MIT" ]
null
null
null
examples/multiworker/automatic_conf.py
ccall48/flask-discord-interactions
37bc73fdfea038051eb934590ef3b53660ce0517
[ "MIT" ]
null
null
null
examples/multiworker/automatic_conf.py
ccall48/flask-discord-interactions
37bc73fdfea038051eb934590ef3b53660ce0517
[ "MIT" ]
null
null
null
import os import sys sys.path.insert(1, "examples/multiworker") from automatic import discord def on_starting(server): print("registering commands!") discord.update_commands(guild_id=os.environ["TESTING_GUILD"])
18.666667
65
0.767857
30
224
5.6
0.766667
0
0
0
0
0
0
0
0
0
0
0.005076
0.120536
224
11
66
20.363636
0.847716
0
0
0
0
0
0.241071
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0
0.571429
0.142857
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
17f361a1bc865f4150e4f99ad6993154fa10a6a8
1,313
py
Python
teraserver/python/modules/UserManagerModule/UserRegistry.py
introlab/opentera
bfc4de672c9de40b7c9a659be2138731e7ee4e94
[ "Apache-2.0" ]
10
2020-03-16T14:46:06.000Z
2022-02-11T16:07:38.000Z
teraserver/python/modules/UserManagerModule/UserRegistry.py
introlab/opentera
bfc4de672c9de40b7c9a659be2138731e7ee4e94
[ "Apache-2.0" ]
114
2019-09-16T13:02:50.000Z
2022-03-22T19:17:36.000Z
teraserver/python/modules/UserManagerModule/UserRegistry.py
introlab/opentera
bfc4de672c9de40b7c9a659be2138731e7ee4e94
[ "Apache-2.0" ]
null
null
null
class UserRegistry: def __init__(self): self.user_list = list() self.user_sessions = dict() def user_online(self, uuid): print('user_online: ', uuid) if not self.user_list.__contains__(uuid): self.user_list.append(uuid) def user_offline(self, uuid): pr...
33.666667
103
0.610053
170
1,313
4.458824
0.247059
0.168865
0.211082
0.131926
0.530343
0.379947
0.17942
0.094987
0
0
0
0
0.288652
1,313
38
104
34.552632
0.811563
0.191927
0
0
0
0
0.05793
0
0
0
0
0
0
1
0.28
false
0
0
0.08
0.4
0.12
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
0
0
0
2
17f3be1fd7c220e35261933fdb86206e67818744
169
py
Python
PhiSpyModules/version.py
pdec/PhiSpy_deprekate
f3d686f995d4422cc214d3173f7f84522c746357
[ "MIT" ]
36
2018-02-21T03:05:22.000Z
2022-02-10T11:50:15.000Z
PhiSpyModules/version.py
pdec/PhiSpy_deprekate
f3d686f995d4422cc214d3173f7f84522c746357
[ "MIT" ]
45
2016-07-08T19:28:01.000Z
2022-03-28T13:33:57.000Z
PhiSpyModules/version.py
pdec/PhiSpy_deprekate
f3d686f995d4422cc214d3173f7f84522c746357
[ "MIT" ]
23
2017-01-08T21:35:10.000Z
2022-01-27T07:09:45.000Z
import pkg_resources # this comes from setuptools try: __version__ = pkg_resources.get_distribution('PhiSpy').version except Exception: __version__ = 'unknown'
21.125
66
0.775148
19
169
6.315789
0.789474
0.2
0
0
0
0
0
0
0
0
0
0
0.147929
169
7
67
24.142857
0.833333
0.153846
0
0
0
0
0.092199
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
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
17f6b9d27e1f0c99af44614fdcfccb11aa4801b7
1,475
py
Python
tark/translation/views.py
nerdstrike/tark
8b2e4d085abbff7863409e8b4f52c8d203a5c5b6
[ "Apache-2.0" ]
5
2019-06-21T22:11:46.000Z
2022-01-17T06:58:56.000Z
tark/translation/views.py
nerdstrike/tark
8b2e4d085abbff7863409e8b4f52c8d203a5c5b6
[ "Apache-2.0" ]
12
2020-07-28T09:26:09.000Z
2022-03-25T18:08:11.000Z
tark/translation/views.py
nerdstrike/tark
8b2e4d085abbff7863409e8b4f52c8d203a5c5b6
[ "Apache-2.0" ]
6
2020-01-08T11:09:59.000Z
2021-07-27T04:14:32.000Z
''' Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute Copyright [2016-2019] EMBL-European Bioinformatics Institute 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...
36.875
100
0.804746
183
1,475
6.398907
0.595628
0.051238
0.06661
0.059778
0.111016
0.111016
0.111016
0
0
0
0
0.01576
0.139661
1,475
39
101
37.820513
0.907013
0.465763
0
0.235294
0
0
0.002564
0
0
0
0
0
0
1
0.058824
false
0
0.352941
0
0.882353
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
17fd565fd3b1c8fb1ae74b8f1e8c168cd51494da
227
py
Python
awstriggers/exceptions.py
JevyanJ/awstriggers
dd7472fa905b3910b01bfd062e03f418e60909f7
[ "MIT" ]
null
null
null
awstriggers/exceptions.py
JevyanJ/awstriggers
dd7472fa905b3910b01bfd062e03f418e60909f7
[ "MIT" ]
null
null
null
awstriggers/exceptions.py
JevyanJ/awstriggers
dd7472fa905b3910b01bfd062e03f418e60909f7
[ "MIT" ]
null
null
null
class WrongInputException(Exception): msg = 'Wrong trigger. This is not a {}.' def __init__(self, trigger_type): super(WrongInputException, self).__init__( self.msg.format(trigger_type) )
22.7
50
0.643172
24
227
5.666667
0.666667
0.117647
0
0
0
0
0
0
0
0
0
0
0.251101
227
9
51
25.222222
0.8
0
0
0
0
0
0.142222
0
0
0
0
0
0
1
0.166667
false
0
0
0
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
0
0
0
0
0
0
0
0
2
aa0112abd3623d59b95270b5dbc850092d2947d8
101
py
Python
python_lessons/python_test/second_python.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/python_test/second_python.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/python_test/second_python.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
# second python test # write via GNU nano MacBook Pro MMartin n = 10 for i in range(n): print(i)
12.625
40
0.683168
19
101
3.631579
0.894737
0
0
0
0
0
0
0
0
0
0
0.025974
0.237624
101
7
41
14.428571
0.87013
0.574257
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
aa0cd409a8c3649bd74930350e9ee2343182d3b8
10,635
py
Python
dnanexus/idr2/src/idr2.py
strattan/test-merge2
2bc5a7c94fb06cff163ab3674dbb319e45976d17
[ "MIT" ]
108
2015-06-30T19:38:12.000Z
2022-03-09T06:50:59.000Z
dnanexus/idr2/src/idr2.py
strattan/test-merge2
2bc5a7c94fb06cff163ab3674dbb319e45976d17
[ "MIT" ]
7
2017-06-28T06:43:41.000Z
2021-09-07T05:33:04.000Z
dnanexus/idr2/src/idr2.py
strattan/test-merge2
2bc5a7c94fb06cff163ab3674dbb319e45976d17
[ "MIT" ]
59
2015-08-29T10:26:24.000Z
2021-06-25T02:27:20.000Z
#!/usr/bin/env python # idr2 0.0.1 # Generated by dx-app-wizard. # # Basic execution pattern: Your app will run on a single machine from # beginning to end. # # See https://wiki.dnanexus.com/Developer-Portal for documentation and # tutorials on how to modify this file. # # DNAnexus Python Bindings (dxpy) documentation:...
43.05668
137
0.655007
1,454
10,635
4.568776
0.215268
0.086106
0.05058
0.035225
0.426163
0.360981
0.275478
0.2395
0.207587
0.148126
0
0.019601
0.218054
10,635
246
138
43.231707
0.779221
0.18016
0
0.127907
1
0.023256
0.133021
0.023109
0
0
0
0.004065
0
0
null
null
0.023256
0.017442
null
null
0.151163
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
1
0
0
0
0
0
0
0
0
2
aa155b77ea65583bb74da6911e18573759d7b238
588
py
Python
fakedetection/src/main/docker/extraction/extract/module/common_landmark_detection_alt.py
LafLaurine/imac2-projetTUT
9a57c1bd1ea841fecda894575a8e3a65057addef
[ "MIT" ]
3
2020-02-19T19:16:15.000Z
2021-01-24T13:46:28.000Z
fakedetection/src/main/docker/extraction/extract/module/common_landmark_detection_alt.py
LafLaurine/imac2-projetTUT
9a57c1bd1ea841fecda894575a8e3a65057addef
[ "MIT" ]
5
2022-02-14T17:46:40.000Z
2022-02-27T20:21:36.000Z
fakedetection/src/main/docker/extraction/extract/module/common_landmark_detection_alt.py
LafLaurine/imac2-projetTUT
9a57c1bd1ea841fecda894575a8e3a65057addef
[ "MIT" ]
null
null
null
import numpy as np import dlib import imutils.face_utils as face_utils def compute_landmarks_person(person, net): for face in person: compute_landmarks_face(face, net) def compute_landmarks_face(face, net): # run the network on the bounding box of the face dlib_box = dlib.rectangle(*face.box()...
25.565217
62
0.743197
88
588
4.738636
0.465909
0.064748
0.091127
0.115108
0.129496
0
0
0
0
0
0
0
0.173469
588
22
63
26.727273
0.858025
0.127551
0
0
0
0
0
0
0
0
0
0
0
1
0.230769
false
0
0.230769
0
0.538462
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
aa1d803c50c347310f260f866358c31e452ded07
555
py
Python
src/data/utils.py
titus-chin/telco-customer-churn-prediction
d7c8d4089cad6aa22f6aa8bb1b87a203a493a00d
[ "MIT" ]
null
null
null
src/data/utils.py
titus-chin/telco-customer-churn-prediction
d7c8d4089cad6aa22f6aa8bb1b87a203a493a00d
[ "MIT" ]
null
null
null
src/data/utils.py
titus-chin/telco-customer-churn-prediction
d7c8d4089cad6aa22f6aa8bb1b87a203a493a00d
[ "MIT" ]
null
null
null
from pathlib import Path import yaml def get_project_root(): """Get the path of the project root directory. Returns ------- pathlib.PosixPath """ return Path(__file__).parents[2] def load_config(*args): """Load the contents of a configuration file to a dictionary. Parameters --...
18.5
65
0.61982
66
555
5.060606
0.560606
0.098802
0.083832
0
0
0
0
0
0
0
0
0.002433
0.259459
555
29
66
19.137931
0.810219
0.437838
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
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
aa293795336e1733f07e56c3faa8c985e7a7dfa2
1,111
py
Python
src/python3_learn_video/BIF_closure.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/python3_learn_video/BIF_closure.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/python3_learn_video/BIF_closure.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
# global 关键字 print('-----------------------------------') count = 5 def MyFun(): count = 10 print(count) MyFun() print(count) print('-----------------------------------') def MyFun(): global count count = 10 print(count) MyFun() print(count) print('-----------------------------------') de...
13.070588
44
0.338434
104
1,111
3.615385
0.211538
0.132979
0.095745
0.090426
0.43883
0.324468
0.324468
0.212766
0.212766
0
0
0.033294
0.243024
1,111
84
45
13.22619
0.413793
0.009001
0
0.529412
0
0
0.313012
0.286624
0
0
0
0
0
1
0.196078
false
0
0
0.019608
0.313725
0.411765
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
aa3fe9ac58ad20a809bb78abc6814afa23c3ec81
173
py
Python
code/exercises/06_FunctionAndModule/ex_06_03_func_pass.py
chiachang100/LearnToCodeWithPython
fe16115cb3be612d5abd8ffdbd6a14a37d6b4d52
[ "Apache-2.0" ]
null
null
null
code/exercises/06_FunctionAndModule/ex_06_03_func_pass.py
chiachang100/LearnToCodeWithPython
fe16115cb3be612d5abd8ffdbd6a14a37d6b4d52
[ "Apache-2.0" ]
null
null
null
code/exercises/06_FunctionAndModule/ex_06_03_func_pass.py
chiachang100/LearnToCodeWithPython
fe16115cb3be612d5abd8ffdbd6a14a37d6b4d52
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Filename: ex_func_pass.py def maximum(x, y): if x > y: return x else: pass if __name__ == "__main__": print(maximum(2, 3))
14.416667
27
0.560694
26
173
3.346154
0.769231
0.045977
0
0
0
0
0
0
0
0
0
0.016393
0.294798
173
11
28
15.727273
0.696721
0.242775
0
0
0
0
0.062016
0
0
0
0
0
0
1
0.142857
false
0.142857
0
0
0.285714
0.142857
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
a4ac7378c3761f4ccefb6cc6d8fb3b7ba5ac0065
75
py
Python
config/gunicorn/conf.py
LeoLeiva/todo-challenge
f6f24f53758eb4e425c91516bcab7af8cad66814
[ "MIT" ]
null
null
null
config/gunicorn/conf.py
LeoLeiva/todo-challenge
f6f24f53758eb4e425c91516bcab7af8cad66814
[ "MIT" ]
null
null
null
config/gunicorn/conf.py
LeoLeiva/todo-challenge
f6f24f53758eb4e425c91516bcab7af8cad66814
[ "MIT" ]
1
2021-01-10T20:19:42.000Z
2021-01-10T20:19:42.000Z
name = 'invera' loglevel = 'info' errorlog = '-' acceslog = '-' workers = 2
15
17
0.613333
8
75
5.75
1
0
0
0
0
0
0
0
0
0
0
0.016393
0.186667
75
5
18
15
0.737705
0
0
0
0
0
0.157895
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
a4ac876d9eb51260d90c0c05c6ee388fc292654f
352
py
Python
survol/sources_types/rabbitmq/user/__init__.py
AugustinMascarelli/survol
7a822900e82d1e6f016dba014af5741558b78f15
[ "BSD-3-Clause" ]
null
null
null
survol/sources_types/rabbitmq/user/__init__.py
AugustinMascarelli/survol
7a822900e82d1e6f016dba014af5741558b78f15
[ "BSD-3-Clause" ]
null
null
null
survol/sources_types/rabbitmq/user/__init__.py
AugustinMascarelli/survol
7a822900e82d1e6f016dba014af5741558b78f15
[ "BSD-3-Clause" ]
null
null
null
""" RabbitMQ user """ import lib_common def Graphic_colorbg(): return "#CC3366" def EntityOntology(): return ( ["Url","User"], ) def MakeUri(urlName,userName): return lib_common.gUriGen.UriMakeFromDict("rabbitmq/user", { "Url" : urlName, "User" : userName } ) def EntityName(entity_ids_arr): return entity_ids_a...
19.555556
100
0.704545
44
352
5.431818
0.522727
0.112971
0.150628
0
0
0
0
0
0
0
0
0.019608
0.130682
352
17
101
20.705882
0.761438
0.036932
0
0
0
0
0.10574
0
0
0
0
0
0
1
0.444444
false
0
0.111111
0.444444
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
a4b9c04f4ee5bd44524e0f3baefc1c59fb94a034
904
py
Python
venv/lib/python3.8/site-packages/ansible_test/_internal/cli/completers.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/ansible_test/_internal/cli/completers.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/ansible_test/_internal/cli/completers.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
"""Completers for use with argcomplete.""" from __future__ import annotations import argparse import typing as t from ..target import ( find_target_completion, ) from .argparsing.argcompletion import ( OptionCompletionFinder, ) def complete_target(completer, prefix, parsed_args, **_): # type: (OptionCompl...
33.481481
136
0.738938
108
904
6.009259
0.472222
0.023112
0.03698
0.046225
0.077042
0
0
0
0
0
0
0.001305
0.152655
904
26
137
34.769231
0.845953
0.310841
0
0.125
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.3125
0
0.5625
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
a4c0c28e452a4034d166c449edeb6ec8735ace1d
3,413
py
Python
python/opentrons_ot3_firmware/messages/payloads.py
Opentrons/ot3-firmware
3047fbf54ed2bf9350a9fe02c0c0fb246ac0285a
[ "Apache-2.0" ]
3
2021-09-21T13:20:27.000Z
2021-12-02T13:12:32.000Z
python/opentrons_ot3_firmware/messages/payloads.py
Opentrons/ot3-firmware
3047fbf54ed2bf9350a9fe02c0c0fb246ac0285a
[ "Apache-2.0" ]
36
2021-08-10T15:18:09.000Z
2022-03-30T19:08:13.000Z
python/opentrons_ot3_firmware/messages/payloads.py
Opentrons/ot3-firmware
3047fbf54ed2bf9350a9fe02c0c0fb246ac0285a
[ "Apache-2.0" ]
null
null
null
"""Payloads of can bus messages.""" from dataclasses import dataclass from .. import utils @dataclass class EmptyPayload(utils.BinarySerializable): """An empty payload.""" pass @dataclass class DeviceInfoResponsePayload(utils.BinarySerializable): """Device info response.""" version: utils.UInt32F...
22.453947
74
0.762965
331
3,413
7.803625
0.317221
0.102981
0.077429
0.092915
0.269067
0.14789
0.080527
0.042586
0.042586
0.042586
0
0.016908
0.150894
3,413
151
75
22.602649
0.874396
0.212716
0
0.416667
0
0
0
0
0
0
0
0
0
1
0
true
0.013889
0.027778
0
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
1
0
0
0
1
0
0
2
a4d1258cffda0efdf760a684196d4c00793d7759
1,240
py
Python
deepgmap/post_train_tools/compare_narrowPeak_scores.py
koonimaru/DeepGMAP
7daac354229fc25fba81649b741921345dc5db05
[ "Apache-2.0" ]
11
2018-06-27T11:45:47.000Z
2021-07-01T15:32:56.000Z
deepgmap/post_train_tools/compare_narrowPeak_scores.py
koonimaru/DeepGMAP
7daac354229fc25fba81649b741921345dc5db05
[ "Apache-2.0" ]
3
2020-01-28T21:45:15.000Z
2020-04-20T02:40:48.000Z
deepgmap/post_train_tools/compare_narrowPeak_scores.py
koonimaru/DeepGMAP
7daac354229fc25fba81649b741921345dc5db05
[ "Apache-2.0" ]
1
2018-10-19T19:43:27.000Z
2018-10-19T19:43:27.000Z
import math """ chr1 0 1000 . 3.64092565 . 0.00364093 -1 -1 -1 chr1 500 1500 . 3.64092565 . 0.00364093 -1 -1 -1 chr1 1000 2000 . 3.64092565 . 0.00364093 -1 -1 -1 chr1 1500 2500 . 3.64092565 . 0.00364093 -1 ...
37.575758
151
0.608871
182
1,240
3.912088
0.318681
0.022472
0.077247
0.101124
0.779494
0.738764
0.738764
0.523876
0.418539
0.418539
0
0.184498
0.26129
1,240
33
152
37.575758
0.592795
0
0
0.2
0
0.05
0.288503
0.277657
0
0
0
0
0
1
0
false
0
0.05
0
0.05
0
0
0
0
null
0
0
0
0
1
1
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
a4d1fae0eca5973d81c900c3be13f7e31ecf4d6c
1,131
py
Python
python_learning/decorator_fabric.py
KonstantinKlepikov/all-python-ml-learning
a8a41347b548828bb8531ccdab89c622a0be20e1
[ "MIT" ]
null
null
null
python_learning/decorator_fabric.py
KonstantinKlepikov/all-python-ml-learning
a8a41347b548828bb8531ccdab89c622a0be20e1
[ "MIT" ]
null
null
null
python_learning/decorator_fabric.py
KonstantinKlepikov/all-python-ml-learning
a8a41347b548828bb8531ccdab89c622a0be20e1
[ "MIT" ]
1
2020-12-23T19:32:51.000Z
2020-12-23T19:32:51.000Z
# fabric method for decorators (isnt best idea) from abc import ABC, abstractmethod class Fabricator(ABC): @classmethod @abstractmethod def is_check_for(cls, check): pass @abstractmethod def do_something(self): pass class Product1(Fabricator): @classmethod def is_chec...
17.4
48
0.605659
138
1,131
4.681159
0.34058
0.043344
0.06192
0.060372
0.289474
0.289474
0.256966
0.256966
0.164087
0.164087
0
0.012407
0.287356
1,131
64
49
17.671875
0.789082
0.085765
0
0.361111
0
0
0.050831
0
0
0
0
0
0
1
0.25
false
0.055556
0.027778
0.055556
0.444444
0.111111
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
a4e66404703914d218aafdaad57937fbdb3e93f4
923
py
Python
patterns/creational_pattern_factory_method.py
sebastianczech/Design-Patterns-In-Python
c64734eeb3f0362ab8108923cc690a8cba24c772
[ "Apache-2.0" ]
null
null
null
patterns/creational_pattern_factory_method.py
sebastianczech/Design-Patterns-In-Python
c64734eeb3f0362ab8108923cc690a8cba24c772
[ "Apache-2.0" ]
null
null
null
patterns/creational_pattern_factory_method.py
sebastianczech/Design-Patterns-In-Python
c64734eeb3f0362ab8108923cc690a8cba24c772
[ "Apache-2.0" ]
null
null
null
import abc class RoutingProtocol(metaclass=abc.ABCMeta): def __init__(self): self.name = None def protocol_name(self): return self.name class BgpRoutingProtocol(RoutingProtocol): def __init__(self): super().__init__() self.name = "BGP" class OspfRoutingProtocol(Routing...
18.46
54
0.668472
95
923
6.031579
0.305263
0.08377
0.076789
0.104712
0.380454
0.380454
0.268761
0.150087
0
0
0
0
0.226436
923
49
55
18.836735
0.802521
0
0
0.290323
0
0
0.016251
0
0
0
0
0
0
1
0.290323
false
0.032258
0.032258
0.096774
0.612903
0.032258
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
a4e6ebc76b242affc6b2ee47e5c5b02a8b1f7120
207
py
Python
examples/api/profile/get_profile_info.py
javad94/instauto
8d4d068863176b0a1df13e5be3d5e32388036921
[ "MIT" ]
79
2020-08-24T23:32:57.000Z
2022-02-20T19:03:17.000Z
examples/api/profile/get_profile_info.py
klaytonpaiva/instauto
7f8c26b22f84d3d966625c7fa656e91cc623bb2e
[ "MIT" ]
146
2020-07-25T16:27:48.000Z
2021-10-02T09:03:50.000Z
examples/api/profile/get_profile_info.py
klaytonpaiva/instauto
7f8c26b22f84d3d966625c7fa656e91cc623bb2e
[ "MIT" ]
41
2020-09-07T14:19:04.000Z
2022-02-07T23:08:10.000Z
from instauto.api.client import ApiClient import instauto.api.actions.structs.profile as pr client = ApiClient.initiate_from_file(".instauto.save") obj = pr.Info("user_id") info = client.profile_info(obj)
25.875
55
0.792271
31
207
5.16129
0.580645
0.1375
0
0
0
0
0
0
0
0
0
0
0.091787
207
7
56
29.571429
0.851064
0
0
0
0
0
0.101942
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
a4ea215c9842628dadacff6ba080fd978a27621d
123
py
Python
atm_s_ru/main/apps.py
Meduzjam/atm_s_ru_project
a4710f2f28e6d5357b8375a01f48ef099a418800
[ "MIT" ]
null
null
null
atm_s_ru/main/apps.py
Meduzjam/atm_s_ru_project
a4710f2f28e6d5357b8375a01f48ef099a418800
[ "MIT" ]
null
null
null
atm_s_ru/main/apps.py
Meduzjam/atm_s_ru_project
a4710f2f28e6d5357b8375a01f48ef099a418800
[ "MIT" ]
null
null
null
from django.apps import AppConfig class MainConfig(AppConfig): name = 'atm_s_ru.main' verbose_name = "Управление"
20.5
33
0.739837
16
123
5.5
0.875
0
0
0
0
0
0
0
0
0
0
0
0.170732
123
5
34
24.6
0.862745
0
0
0
0
0
0.186992
0
0
0
0
0
0
1
0
false
0
0.25
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
0
0
0
0
0
2
a4f39c917242b0c73ccfe79c238cc4f7f4b15226
662
py
Python
src/openprocurement/tender/competitivedialogue/views/stage2/qualification.py
pontostroy/api
5afdd3a62a8e562cf77e2d963d88f1a26613d16a
[ "Apache-2.0" ]
10
2020-02-18T01:56:21.000Z
2022-03-28T00:32:57.000Z
src/openprocurement/tender/competitivedialogue/views/stage2/qualification.py
pontostroy/api
5afdd3a62a8e562cf77e2d963d88f1a26613d16a
[ "Apache-2.0" ]
26
2018-07-16T09:30:44.000Z
2021-02-02T17:51:30.000Z
src/openprocurement/tender/competitivedialogue/views/stage2/qualification.py
scrubele/prozorro-testing
42b93ea2f25d8cc40e66c596f582c7c05e2a9d76
[ "Apache-2.0" ]
15
2019-08-08T10:50:47.000Z
2022-02-05T14:13:36.000Z
# -*- coding: utf-8 -*- from openprocurement.tender.openeu.utils import qualifications_resource from openprocurement.tender.openeu.views.qualification import TenderQualificationResource from openprocurement.tender.competitivedialogue.constants import STAGE_2_EU_TYPE @qualifications_resource( name="{}:Tender Quali...
41.375
89
0.817221
68
662
7.735294
0.485294
0.045627
0.060837
0.068441
0.125475
0
0
0
0
0
0
0.00995
0.089124
662
15
90
44.133333
0.862355
0.031722
0
0
0
0
0.245696
0.13928
0
0
0
0
0
1
0
true
0.083333
0.25
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
2
35008ccf661e45a4196410167ddfc5758c08b898
2,536
py
Python
python/nano/src/bigdl/nano/deps/neural_compressor/onnx/pytorch/quantization.py
Forest216/BigDL
840da9a2eaf395978dd83730b02aa5e5dfbd7989
[ "Apache-2.0" ]
null
null
null
python/nano/src/bigdl/nano/deps/neural_compressor/onnx/pytorch/quantization.py
Forest216/BigDL
840da9a2eaf395978dd83730b02aa5e5dfbd7989
[ "Apache-2.0" ]
null
null
null
python/nano/src/bigdl/nano/deps/neural_compressor/onnx/pytorch/quantization.py
Forest216/BigDL
840da9a2eaf395978dd83730b02aa5e5dfbd7989
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
39.015385
97
0.698738
296
2,536
5.820946
0.456081
0.06094
0.01509
0.018572
0
0
0
0
0
0
0
0.004132
0.236593
2,536
64
98
39.625
0.885847
0.300473
0
0
0
0
0.017878
0
0
0
0
0.015625
0
1
0.176471
false
0
0.235294
0
0.617647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
2
35165dbb3ae1191687af387abe2cb74efb6b7a88
188
py
Python
chat_system/client/STATICS.py
hollowcodes/chat-system
3582a02e1ff9614a3cd767fce20bc04646fd4da4
[ "Apache-2.0" ]
2
2019-02-05T20:34:30.000Z
2019-02-05T20:34:44.000Z
chat_system/client/STATICS.py
hollowcodes/chat-system-in-python
3582a02e1ff9614a3cd767fce20bc04646fd4da4
[ "Apache-2.0" ]
null
null
null
chat_system/client/STATICS.py
hollowcodes/chat-system-in-python
3582a02e1ff9614a3cd767fce20bc04646fd4da4
[ "Apache-2.0" ]
null
null
null
""" author: Theodor Peifer, 2018""" VERSION = "1.0.0" GITHUB = "https://github.com/hollowcodes/" HOST = "hollocodes" SERVER_IP = "127.0.0.1" CLIENT_IP = "127.0.0.1" PORT = 6000
18.8
43
0.617021
29
188
3.931034
0.655172
0.052632
0.105263
0.122807
0.140351
0
0
0
0
0
0
0.149351
0.180851
188
9
44
20.888889
0.590909
0.148936
0
0
0
0
0.444444
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
35235f326dd98b5066e859dbf88c74feb8204b32
492
py
Python
typhoon/contrib/transformations/templates.py
typhoon-data-org/typhoon-orchestrator
f24c4807b0e1ee38713ba1468db761119724dcf2
[ "Apache-2.0" ]
21
2021-04-10T20:57:49.000Z
2022-03-24T06:45:30.000Z
typhoon/contrib/transformations/templates.py
biellls/typhoon-orchestrator
f8e40c905fda8143562fc286359233f29d30c6bb
[ "Apache-2.0" ]
7
2021-11-06T16:10:41.000Z
2021-12-12T11:41:32.000Z
typhoon/contrib/transformations/templates.py
biellls/typhoon-orchestrator
f8e40c905fda8143562fc286359233f29d30c6bb
[ "Apache-2.0" ]
1
2022-03-08T21:22:33.000Z
2022-03-08T21:22:33.000Z
import jinja2 from typing import Union def render(template: Union[str, jinja2.Template], **context) -> str: """ Renders the given string as a jinja template with the keyword arguments as context. :param template: String to be used as jinja template :param context: keyword arguments used as context for...
32.8
87
0.71748
64
492
5.515625
0.453125
0.110482
0
0
0
0
0
0
0
0
0
0.007692
0.207317
492
14
88
35.142857
0.897436
0.47561
0
0
0
0
0
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
35328cc8555515bdfa15967ba642b4eacc58eff9
415
py
Python
dimred/models/model.py
SasCezar/DimensionalityReduction
4d0aac301c3ad946a6439d23643e61aae3e1b0d6
[ "MIT" ]
null
null
null
dimred/models/model.py
SasCezar/DimensionalityReduction
4d0aac301c3ad946a6439d23643e61aae3e1b0d6
[ "MIT" ]
null
null
null
dimred/models/model.py
SasCezar/DimensionalityReduction
4d0aac301c3ad946a6439d23643e61aae3e1b0d6
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod class AbstractModel(ABC): def __init__(self): pass @abstractmethod def fit(self, X, y, *args, **kwargs): raise NotImplementedError @abstractmethod def transform(self, X): raise NotImplementedError def fit_trasform(self, X, y): ...
19.761905
41
0.631325
50
415
5.06
0.44
0.059289
0.047431
0
0
0
0
0
0
0
0
0
0.279518
415
20
42
20.75
0.846154
0
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.285714
false
0.071429
0.071429
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
3540ac7148a2a6c522dca2b9246f03948ab5096c
5,015
py
Python
yt_fields.py
Cadair/scipy2014plotting
374c352d063ba7dc6ddf27fd3859cbd5152f7f40
[ "BSD-2-Clause" ]
1
2021-11-10T18:01:19.000Z
2021-11-10T18:01:19.000Z
yt_fields.py
Cadair/scipy2014plotting
374c352d063ba7dc6ddf27fd3859cbd5152f7f40
[ "BSD-2-Clause" ]
null
null
null
yt_fields.py
Cadair/scipy2014plotting
374c352d063ba7dc6ddf27fd3859cbd5152f7f40
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import yt.mods as yt import numpy as np mu0 = 1.25663706e-6 gamma = 1.6666 @yt.derived_field(take_log=False, units=r'kg m^{-3}') def density(field, data): return data['density_pert'] + data['density_bg'] @yt.derived_field(take_log=False, units=r'T') def mag_field_x(field, data): retur...
41.791667
119
0.57667
842
5,015
3.238717
0.153207
0.10451
0.055739
0.069674
0.606894
0.485515
0.444811
0.418042
0.391272
0.384305
0
0.035162
0.200399
5,015
120
120
41.791667
0.644888
0.511466
0
0.234043
0
0
0.203603
0
0
0
0
0
0
1
0.276596
false
0
0.042553
0.255319
0.595745
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
354707b01e2292b4a64c3e7040410512e0ab1500
692
py
Python
1/reduction.py
ys19931127/TensorFlow
814ae734db5c252ff8dc5a503523b23ea0661ee3
[ "MIT" ]
270
2016-11-21T13:54:44.000Z
2022-02-18T01:50:49.000Z
1/reduction.py
ys19931127/TensorFlow
814ae734db5c252ff8dc5a503523b23ea0661ee3
[ "MIT" ]
12
2016-12-28T00:06:09.000Z
2021-09-29T06:19:24.000Z
1/reduction.py
ys19931127/TensorFlow
814ae734db5c252ff8dc5a503523b23ea0661ee3
[ "MIT" ]
192
2016-11-21T13:54:47.000Z
2021-11-25T08:33:18.000Z
import tensorflow as tf sess = tf.InteractiveSession() x = tf.constant([[1, 2, 3], [3, 2, 1], [-1,-2,-3]]) boolean_tensor = tf.constant([[True, False, True], [False, False, True], [True, False, False]]) tf.redu...
40.705882
71
0.611272
94
692
4.340426
0.265957
0.117647
0.25
0.308824
0.470588
0.470588
0.196078
0
0
0
0
0.028626
0.242775
692
16
72
43.25
0.75
0.098266
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0
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
1021315c7a9cb7f6bd62d5a29d1b5a24fe008e06
283
py
Python
src/py4vasp/_util/documentation.py
vasp-dev/py4vasp
576c5c23d740b11687e37b6dd332165bc339cf16
[ "Apache-2.0" ]
27
2022-02-18T18:43:17.000Z
2022-03-29T22:05:41.000Z
src/py4vasp/_util/documentation.py
vasp-dev/py4vasp
576c5c23d740b11687e37b6dd332165bc339cf16
[ "Apache-2.0" ]
3
2022-02-18T18:52:33.000Z
2022-03-28T13:26:59.000Z
src/py4vasp/_util/documentation.py
vasp-dev/py4vasp
576c5c23d740b11687e37b6dd332165bc339cf16
[ "Apache-2.0" ]
4
2022-02-07T12:21:23.000Z
2022-03-13T21:36:03.000Z
# Copyright © VASP Software GmbH, # Licensed under the Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0) def add(doc_string): def add_documentation_to_function(func): func.__doc__ = doc_string return func return add_documentation_to_function
25.727273
84
0.731449
41
283
4.780488
0.609756
0.081633
0.091837
0.265306
0
0
0
0
0
0
0
0.017316
0.183746
283
10
85
28.3
0.82684
0.402827
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0
0
0.8
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
103966e268277d8b2818efe4d16ccfec4ef58640
1,817
py
Python
pyspv/script.py
abaldivan/pyspv
5576304a365133232541fdc1f8325d465600d099
[ "MIT" ]
36
2015-01-09T14:27:42.000Z
2022-02-09T05:31:43.000Z
pyspv/script.py
abaldivan/pyspv
5576304a365133232541fdc1f8325d465600d099
[ "MIT" ]
2
2018-07-03T15:25:58.000Z
2018-12-08T11:05:23.000Z
pyspv/script.py
abaldivan/pyspv
5576304a365133232541fdc1f8325d465600d099
[ "MIT" ]
19
2015-10-26T23:45:54.000Z
2021-02-02T20:07:59.000Z
OP_FALSE = 0 OP_0 = 0 OP_PUSHDATA1 = 0x4c OP_PUSHDATA2 = 0x4d OP_PUSHDATA4 = 0x4e OP_1 = 0x51 OP_2 = 0x52 OP_3 = 0x53 OP_RETURN = 0x6a OP_DUP = 0x76 OP_EQUAL = 0x87 OP_EQUALVERIFY = 0x88 OP_HASH160 = 0xa9 OP_CHECKMULTISIG = 0xae ...
27.119403
159
0.535498
226
1,817
4.163717
0.30531
0.233794
0.127524
0.187035
0.328374
0.172157
0.048884
0
0
0
0
0.057596
0.340671
1,817
66
160
27.530303
0.72788
0
0
0.04
0
0
0.008005
0
0
0
0.051458
0
0.02
1
0.12
false
0
0
0.04
0.18
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
103e113b47183c275da385be01455f4bad2a1aba
6,852
py
Python
mayan/apps/document_signatures/serializers.py
darrenflexxu/Mayan-EDMS
6707365bfacd137e625ddc1b990168012246fa07
[ "Apache-2.0" ]
null
null
null
mayan/apps/document_signatures/serializers.py
darrenflexxu/Mayan-EDMS
6707365bfacd137e625ddc1b990168012246fa07
[ "Apache-2.0" ]
5
2021-03-19T22:59:52.000Z
2022-03-12T00:13:16.000Z
mayan/apps/document_signatures/serializers.py
Sumit-Kumar-Jha/mayan
5b7ddeccf080b9e41cc1074c70e27dfe447be19f
[ "Apache-2.0" ]
1
2020-07-29T21:03:27.000Z
2020-07-29T21:03:27.000Z
from __future__ import absolute_import, unicode_literals from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers from rest_framework.exceptions import ValidationError from mayan.apps.acls.models import AccessControlList from mayan.apps.django_gpg.models import Key from mayan.ap...
32.942308
77
0.589609
598
6,852
6.463211
0.182274
0.108668
0.036223
0.053816
0.703234
0.679172
0.624321
0.624321
0.613454
0.613454
0
0
0.31509
6,852
207
78
33.101449
0.823567
0
0
0.517045
0
0
0.202569
0.053999
0
0
0
0
0
1
0.022727
false
0.068182
0.051136
0
0.1875
0.039773
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
105395cf0fb25efc5b6f0e4c0ea41c72bf40e16c
200
py
Python
kit_dl/misc/utils.py
jonasstr/kita
9fbf068a313bd829cbe5a19a6e51e4e3281c6456
[ "MIT" ]
null
null
null
kit_dl/misc/utils.py
jonasstr/kita
9fbf068a313bd829cbe5a19a6e51e4e3281c6456
[ "MIT" ]
null
null
null
kit_dl/misc/utils.py
jonasstr/kita
9fbf068a313bd829cbe5a19a6e51e4e3281c6456
[ "MIT" ]
null
null
null
def reformat(value): chars = {"Ä": "Ae", "Ö": "Oe", "Ü": "Ue", "ä": "ae", "ö": "oe", "ü": "ue", "\\": "/"} for char in chars: value = value.replace(char, chars[char]) return value
33.333333
89
0.47
28
200
3.357143
0.535714
0.06383
0.085106
0.12766
0.191489
0.191489
0
0
0
0
0
0
0.24
200
5
90
40
0.618421
0
0
0
0
0
0.105
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
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
106ae08239c260b6b3173edd5416bff85ff4abf0
54
py
Python
YaDiskClient/__init__.py
TyVik/YaDiskClient
ee60163bac8c5696d81e98c8ee1d8b321e46fae4
[ "MIT" ]
57
2015-01-24T19:19:15.000Z
2021-04-20T16:01:58.000Z
YaDiskClient/__init__.py
TyVik/YaDiskClient
ee60163bac8c5696d81e98c8ee1d8b321e46fae4
[ "MIT" ]
12
2015-02-10T10:40:24.000Z
2021-05-06T12:55:46.000Z
YaDiskClient/__init__.py
TyVik/YaDiskClient
ee60163bac8c5696d81e98c8ee1d8b321e46fae4
[ "MIT" ]
22
2015-01-24T19:19:29.000Z
2021-04-28T00:33:56.000Z
""" Client for Yandex.Disk. """ __version__ = '0.5.1'
10.8
23
0.611111
8
54
3.625
1
0
0
0
0
0
0
0
0
0
0
0.065217
0.148148
54
4
24
13.5
0.565217
0.425926
0
0
0
0
0.217391
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
107663611bb88133f508ce5a3ad902d3d99b8e9a
372
py
Python
src/service_specs/steps/categories.py
alaeddine10/ggrc-core
e9e6c581bc0351a6a722ec50d9a112c87b9c4d5f
[ "ECL-2.0", "Apache-2.0" ]
1
2020-10-20T22:58:44.000Z
2020-10-20T22:58:44.000Z
src/service_specs/steps/categories.py
alaeddine10/ggrc-core
e9e6c581bc0351a6a722ec50d9a112c87b9c4d5f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/service_specs/steps/categories.py
alaeddine10/ggrc-core
e9e6c581bc0351a6a722ec50d9a112c87b9c4d5f
[ "ECL-2.0", "Apache-2.0" ]
4
2020-10-20T22:58:46.000Z
2021-03-07T14:44:26.000Z
# Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file> # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> # Created By: # Maintained By: @given('a Category resource named "{name}" for scope "{scope}"') def create_category(context, name, scope): named_example_resou...
37.2
78
0.739247
53
372
5.113208
0.698113
0.066421
0
0
0
0
0
0
0
0
0
0.018349
0.120968
372
9
79
41.333333
0.810398
0.483871
0
0
0
0
0.333333
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
107c47467e75b9e58bcf6e87915806a70a662116
1,507
py
Python
mera/practice_with_function/function_with_arguments.py
MikeLaptev/sandbox_python
90d9b520d24602fa298abed4bb85232e12550fb2
[ "Apache-2.0" ]
1
2016-02-25T19:01:01.000Z
2016-02-25T19:01:01.000Z
mera/practice_with_function/function_with_arguments.py
MikeLaptev/sandbox_python
90d9b520d24602fa298abed4bb85232e12550fb2
[ "Apache-2.0" ]
null
null
null
mera/practice_with_function/function_with_arguments.py
MikeLaptev/sandbox_python
90d9b520d24602fa298abed4bb85232e12550fb2
[ "Apache-2.0" ]
null
null
null
''' Created on Aug 3, 2015 @author: Mikhail @summary: Create several functions: 1. First function has two positional parameters and infinity numbers of positional parameters 2. Second function has a mandatory parameter with key and infinity number of parameters with keys ''' def function_one(param_1, param_2, *list_...
37.675
97
0.639681
195
1,507
4.753846
0.323077
0.05178
0.030205
0.05178
0.253506
0.188781
0.188781
0.161812
0.07767
0
0
0.030329
0.212342
1,507
39
98
38.641026
0.750632
0
0
0.222222
0
0
0.276423
0
0
0
0
0
0
0
null
null
0
0
null
null
0.444444
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
1
0
2
10b3de679306d15d32537c2026cede2c6e904be1
544
py
Python
custom_components/yoosee/__init__.py
shaonianzhentan/ha_yoosee_camera
63e75b1285c03da75f98264dfbab01280b20f3c0
[ "MIT" ]
null
null
null
custom_components/yoosee/__init__.py
shaonianzhentan/ha_yoosee_camera
63e75b1285c03da75f98264dfbab01280b20f3c0
[ "MIT" ]
null
null
null
custom_components/yoosee/__init__.py
shaonianzhentan/ha_yoosee_camera
63e75b1285c03da75f98264dfbab01280b20f3c0
[ "MIT" ]
null
null
null
from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant import homeassistant.helpers.config_validation as cv from .const import DOMAIN, PLATFORMS CONFIG_SCHEMA = cv.deprecated(DOMAIN) async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: hass.conf...
38.857143
78
0.825368
68
544
6.411765
0.382353
0.08945
0.059633
0.123853
0.192661
0.192661
0
0
0
0
0
0
0.108456
544
14
79
38.857143
0.898969
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.4
0
0.6
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
52a562cd2d02d768a22aee110d5ef477a01ae410
2,296
py
Python
uwallet/constants.py
UlordChain/uwallet-client
c41f89f34dd17699cb4b285dbba9053f28be5603
[ "MIT" ]
19
2018-08-21T06:25:30.000Z
2018-08-21T12:34:14.000Z
uwallet/constants.py
UlordChain/uwallet-client
c41f89f34dd17699cb4b285dbba9053f28be5603
[ "MIT" ]
1
2018-06-01T09:14:36.000Z
2018-06-01T09:20:49.000Z
uwallet/constants.py
UlordChain/uwallet-client
c41f89f34dd17699cb4b285dbba9053f28be5603
[ "MIT" ]
null
null
null
RECOMMENDED_FEE = 50000 COINBASE_MATURITY = 100 COIN = 100000000 # supported types of transaction outputs TYPE_ADDRESS = 1 TYPE_PUBKEY = 2 TYPE_SCRIPT = 4 TYPE_CLAIM = 8 TYPE_SUPPORT = 16 TYPE_UPDATE = 32 # claim related constants EXPIRATION_BLOCKS = 262974 RECOMMENDED_CLAIMTRIE_HASH_CONFIRMS = 1 NO_SIGNATURE = 'ff'...
35.323077
225
0.719077
204
2,296
7.794118
0.622549
0.049057
0.026415
0.037736
0.092453
0.092453
0.092453
0.092453
0.092453
0.062893
0
0.262366
0.189895
2,296
65
226
35.323077
0.592473
0.169861
0
0.245283
0
0
0.361567
0.202223
0
0
0.120699
0.015385
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
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
52a927f380ad0ed78a473a41f87b117d30071c96
688
py
Python
oops_fhir/r4/value_set/example_service_modifier_codes.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/example_service_modifier_codes.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/example_service_modifier_codes.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.valueset import ValueSet as _ValueSet from oops_fhir.utils import ValueSet from oops_fhir.r4.code_system.example_service_modifier_codes import ( ExampleServiceModifierCodes as ExampleServiceModifierCodes_, ) __all__ = ["ExampleServiceModifierCodes"] _resource = _V...
22.193548
69
0.768895
75
688
6.76
0.56
0.088757
0.118343
0.078895
0
0
0
0
0
0
0
0.008621
0.156977
688
30
70
22.933333
0.865517
0.241279
0
0
0
0
0.064777
0.054656
0
0
0
0
0
1
0
false
0
0.363636
0
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
1
0
1
0
0
2
52bde21c4d5e91e0755b10978120c3bdc9222f94
4,042
py
Python
app.py
abhijitshow07/COVID-19-TRACKER
09f08113ac56cdc1b1b1a05ae2bdbc6798ca4462
[ "MIT" ]
2
2020-11-12T13:35:03.000Z
2021-05-18T08:53:55.000Z
app.py
abhijitshow07/COVID-19-TRACKER
09f08113ac56cdc1b1b1a05ae2bdbc6798ca4462
[ "MIT" ]
null
null
null
app.py
abhijitshow07/COVID-19-TRACKER
09f08113ac56cdc1b1b1a05ae2bdbc6798ca4462
[ "MIT" ]
1
2020-10-11T11:10:55.000Z
2020-10-11T11:10:55.000Z
# -*- coding: utf-8 -*- """ Created on Thu Apr 16 09:21:30 2020 @author: ABHIJIT SHOW """ from flask_cors import CORS, cross_origin from flask import Flask, render_template, request, json, jsonify import twitter import get_news import world import time_series import os app = Flask(__name__) cors = CORS(app, resour...
23.637427
64
0.728352
553
4,042
5.012658
0.186257
0.111111
0.136364
0.049062
0.196248
0.024531
0
0
0
0
0
0.006993
0.115537
4,042
171
65
23.637427
0.768392
0.032657
0
0.227273
0
0
0.187179
0.05359
0
0
0
0
0
1
0.204545
false
0
0.05303
0.166667
0.462121
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
52be2acc27a36efce34b4e80058e6ddc260cf268
74
py
Python
__version__.py
OldhamMade/beanstalktop
3d032220c6edcdf3583381ecde8aa6bbddfb7bb6
[ "MIT" ]
4
2016-06-30T14:51:59.000Z
2019-03-04T19:47:44.000Z
__version__.py
OldhamMade/beanstalktop
3d032220c6edcdf3583381ecde8aa6bbddfb7bb6
[ "MIT" ]
1
2018-06-11T15:10:02.000Z
2018-09-26T13:40:49.000Z
__version__.py
OldhamMade/beanstalktop
3d032220c6edcdf3583381ecde8aa6bbddfb7bb6
[ "MIT" ]
3
2017-10-04T12:49:22.000Z
2020-08-29T21:30:12.000Z
__version__ = "0.1.0" __author__ = 'Phillip B Oldham' __licence__ = 'MIT'
18.5
31
0.702703
10
74
4
0.9
0
0
0
0
0
0
0
0
0
0
0.047619
0.148649
74
3
32
24.666667
0.587302
0
0
0
0
0
0.324324
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
52bebe7204fe386398bf512f5648e3941a89e4d0
35,677
py
Python
bin/NOMIS_func.py
aptinis/NOMIS
5b2e2dcf6fa81cfdc85da0f63d0cd4db143d380e
[ "BSD-3-Clause" ]
null
null
null
bin/NOMIS_func.py
aptinis/NOMIS
5b2e2dcf6fa81cfdc85da0f63d0cd4db143d380e
[ "BSD-3-Clause" ]
null
null
null
bin/NOMIS_func.py
aptinis/NOMIS
5b2e2dcf6fa81cfdc85da0f63d0cd4db143d380e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Mar 6 12:05:27 2019 @author: olivierp """ import pandas as pd import numpy as np import pickle import warnings as wn import nibabel as nib import numpy.ma as ma pd.options.display.precision = 10 def regionf(data, value): string = "" andstring ...
73.560825
3,714
0.644981
4,739
35,677
4.642963
0.159105
0.016816
0.010362
0.007681
0.490024
0.397491
0.343544
0.305958
0.282871
0.253556
0
0.090435
0.215237
35,677
484
3,715
73.71281
0.695443
0.030412
0
0.176617
0
0.004975
0.349564
0.160061
0.004975
0
0
0
0
1
0.012438
false
0.059701
0.014925
0
0.039801
0.027363
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
52de078a535a0974fea42f05d0877bb578a638f9
514
py
Python
mytorch/utils.py
Felicia980317/mytorch
e463122c0d402878ec5b4c5a823a0feeba8fdbfe
[ "Apache-2.0" ]
null
null
null
mytorch/utils.py
Felicia980317/mytorch
e463122c0d402878ec5b4c5a823a0feeba8fdbfe
[ "Apache-2.0" ]
null
null
null
mytorch/utils.py
Felicia980317/mytorch
e463122c0d402878ec5b4c5a823a0feeba8fdbfe
[ "Apache-2.0" ]
null
null
null
import cv2 import torch def save(path, model): torch.save(model.state_dict(), path) def load(path, model): model.load_state_dict(torch.load(path)) def getDevice(cuda=True): cuda = cuda and torch.cuda.is_available() device = torch.device("cuda" if cuda else "cpu") # if cuda: # print("De...
22.347826
71
0.61284
71
514
4.338028
0.422535
0.087662
0
0
0
0
0
0
0
0
0
0.002545
0.235409
514
22
72
23.363636
0.78117
0.336576
0
0
0
0
0.020958
0
0
0
0
0
0
1
0.3
false
0
0.2
0
0.6
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
52e4dd5b323942453b7a77cdaf110a34a51fc724
561
py
Python
sinus_text/demo.py
digidigital/Transparency-for-pyFPDF-fpdf2-
2c35554f5234080e35f617ec4d43661c514c8f2e
[ "MIT" ]
3
2021-11-28T01:30:56.000Z
2022-03-08T12:29:11.000Z
sinus_text/demo.py
digidigital/Transparency-for-pyFPDF-fpdf2-
2c35554f5234080e35f617ec4d43661c514c8f2e
[ "MIT" ]
null
null
null
sinus_text/demo.py
digidigital/Transparency-for-pyFPDF-fpdf2-
2c35554f5234080e35f617ec4d43661c514c8f2e
[ "MIT" ]
1
2022-02-21T18:44:07.000Z
2022-02-21T18:44:07.000Z
#!/usr/bin/python3 from PDFSinusText import PDFSinusText as FPDF pdf=FPDF() pdf.add_page() pdf.set_font('helvetica', 'B', 10) pdf.set_text_color(250, 0, 0) txt1 = 'The Quick Brown Fox Jumps Over The Lazy Dogs.' txt2 = '+++++++++++++++++++++++++++++++++++++++' pdf.sinus_text(20, 30, txt1, 10, 3) pdf.sinus_text(20, ...
21.576923
54
0.629234
101
561
3.376238
0.455446
0.140762
0.211144
0.246334
0.211144
0.123167
0.123167
0
0
0
0
0.139918
0.13369
561
26
55
21.576923
0.561728
0.030303
0
0
0
0
0.215074
0.071691
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0
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
52f2180621d97d839fc7e7fee342e94fd74428c2
1,551
py
Python
weblog/config/models.py
Family-TreeSY/WeBlog
cc26d604caa39f7237788873e8460bae8dff197e
[ "MIT" ]
null
null
null
weblog/config/models.py
Family-TreeSY/WeBlog
cc26d604caa39f7237788873e8460bae8dff197e
[ "MIT" ]
null
null
null
weblog/config/models.py
Family-TreeSY/WeBlog
cc26d604caa39f7237788873e8460bae8dff197e
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from django.db import models from django.contrib.auth.models import User class Link(models.Model): STATUS_ITEM = ( (1, '上线'), (2, '删除'), ) title = models.CharField(max_length=255, verbose_name='名字') href = models.URLField(verbose_name='链接') user = models.Fo...
31.653061
130
0.655706
195
1,551
4.994872
0.374359
0.180698
0.135524
0.13963
0.74538
0.703285
0.655031
0.540041
0.4846
0.392197
0
0.021019
0.20245
1,551
49
131
31.653061
0.76637
0.012895
0
0.526316
0
0
0.043137
0
0
0
0
0
0
1
0.052632
false
0
0.052632
0.052632
0.657895
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
5e0b8593f4d5df6646d9052de770245857e02cd3
38,177
py
Python
lib/galaxy/visualization/registry.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/visualization/registry.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/visualization/registry.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
1
2020-07-25T21:03:18.000Z
2020-07-25T21:03:18.000Z
""" Lower level of visualization framework which does three main things: - associate visualizations with objects - create urls to visualizations based on some target object(s) - unpack a query string into the desired objects needed for rendering """ import os import shutil import glob from galaxy import ut...
45.0732
120
0.635461
4,673
38,177
5.01819
0.139739
0.011343
0.001023
0.0058
0.104478
0.048955
0.028316
0.011855
0.009552
0.009552
0
0.000554
0.290908
38,177
846
121
45.126478
0.865687
0.231763
0
0.126214
0
0
0.107926
0.004785
0
0
0
0.015366
0
0
null
null
0.002427
0.01699
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
1
0
0
0
0
0
0
0
0
2
5e0c701dea11007c547f4bb7bfea6ad7ffe6a6d6
667
py
Python
Users/migrations/0006_auto_20200414_1115.py
gordiig/Un_RSOI_Curs_Users
c798c1640a8f9a286e5b09ffef788bbb28656f1d
[ "MIT" ]
null
null
null
Users/migrations/0006_auto_20200414_1115.py
gordiig/Un_RSOI_Curs_Users
c798c1640a8f9a286e5b09ffef788bbb28656f1d
[ "MIT" ]
2
2021-03-19T01:16:56.000Z
2021-03-30T12:58:56.000Z
Users/migrations/0006_auto_20200414_1115.py
gordiig/Un_RSOI_Curs_Users
c798c1640a8f9a286e5b09ffef788bbb28656f1d
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-04-14 11:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Users', '0005_profile_money'), ] operations = [ migrations.RemoveField( model_name='profile', name='unlocked_geopins...
23.821429
57
0.571214
61
667
6.131148
0.639344
0.072193
0.128342
0.160428
0
0
0
0
0
0
0
0.046154
0.317841
667
27
58
24.703704
0.775824
0.067466
0
0.285714
1
0
0.127419
0
0
0
0
0
0
1
0
false
0
0.047619
0
0.190476
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
5e2f6647d8404f95e678e6b911755e67b47837e1
212
py
Python
algorithms/recursion/fibonnacci.py
Nyior/algorithms-and-datastructures-python
f970e9955e6305cf92c317e60acfbf391af04a96
[ "MIT" ]
1
2022-01-07T18:04:26.000Z
2022-01-07T18:04:26.000Z
algorithms/recursion/fibonnacci.py
Nyior/algorithms-and-datastructures-python
f970e9955e6305cf92c317e60acfbf391af04a96
[ "MIT" ]
null
null
null
algorithms/recursion/fibonnacci.py
Nyior/algorithms-and-datastructures-python
f970e9955e6305cf92c317e60acfbf391af04a96
[ "MIT" ]
null
null
null
def fibonnacci(n): """returns the nth fibonnacci number""" if n <= 1: return n else: return(fibonnacci(n-2) + fibonnacci(n-1)) if __name__ == '__main__': print(fibonnacci(6))
21.2
49
0.575472
27
212
4.222222
0.592593
0.289474
0
0
0
0
0
0
0
0
0
0.026144
0.278302
212
10
50
21.2
0.718954
0.15566
0
0
0
0
0.045977
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
0.142857
1
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
2
5e31e9ce2812ef0460f44828ed7cbcae021c3391
1,325
py
Python
SpiMediaGallery/main/tests/test_views.py
Swiss-Polar-Institute/spi-media-gallery
2f66f938cbe1a7a25a5971d42abb1b0b5deca31e
[ "MIT" ]
5
2020-02-21T20:38:50.000Z
2022-02-19T11:00:46.000Z
SpiMediaGallery/main/tests/test_views.py
Swiss-Polar-Institute/spi-media-gallery
2f66f938cbe1a7a25a5971d42abb1b0b5deca31e
[ "MIT" ]
23
2019-10-01T17:13:39.000Z
2022-01-21T20:02:26.000Z
SpiMediaGallery/main/tests/test_views.py
Swiss-Polar-Institute/spi-media-gallery
2f66f938cbe1a7a25a5971d42abb1b0b5deca31e
[ "MIT" ]
2
2022-02-03T08:52:51.000Z
2022-02-03T08:58:00.000Z
from django.test import Client from django.test import TestCase class ViewsTest(TestCase): fixtures = ['test_basic_data.yaml'] def setUp(self): pass def tearDown(self): pass def test_homepage(self): c = Client() response = c.get('/') self.assertEqual(respon...
23.660714
73
0.632453
155
1,325
5.290323
0.322581
0.073171
0.067073
0.115854
0.47561
0.435366
0.365854
0.229268
0.229268
0.153659
0
0.03012
0.248302
1,325
55
74
24.090909
0.793173
0
0
0.294118
0
0
0.131321
0.020377
0
0
0
0
0.323529
1
0.205882
false
0.058824
0.058824
0
0.323529
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
eab0a778eb3c518ed6d862e631c93d650671b9eb
351
py
Python
basicts/losses/losses.py
zezhishao/GuanCang_BasicTS
bbf82b9d08e82db78d4e9e9b11f43a676b54ad7c
[ "Apache-2.0" ]
3
2022-02-22T12:50:08.000Z
2022-03-13T03:38:46.000Z
basicts/losses/losses.py
zezhishao/GuanCang_BasicTS
bbf82b9d08e82db78d4e9e9b11f43a676b54ad7c
[ "Apache-2.0" ]
null
null
null
basicts/losses/losses.py
zezhishao/GuanCang_BasicTS
bbf82b9d08e82db78d4e9e9b11f43a676b54ad7c
[ "Apache-2.0" ]
null
null
null
from basicts.metrics.mae import masked_mae as masked_l1_loss from basicts.utils.misc import check_nan_inf import torch import torch.nn.functional as F def L1Loss(input, target, **kwargs): return F.l1_loss(input, target) def MSELoss(input, target, **kwargs): check_nan_inf(input) check_nan_inf(target) r...
29.25
60
0.769231
57
351
4.54386
0.45614
0.169884
0.127413
0
0
0
0
0
0
0
0
0.009934
0.139601
351
12
61
29.25
0.847682
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0.1
0.8
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
eab97f13ee8b3579f8b72573dac3735c0b67bbbc
2,843
py
Python
qiskit/pulse/commands/delay.py
EnriqueL8/qiskit-terra
08b801f1f8598c4e44680b4a75c232ed92db0262
[ "Apache-2.0" ]
2
2019-06-28T19:58:42.000Z
2019-07-26T05:04:02.000Z
qiskit/pulse/commands/delay.py
EnriqueL8/qiskit-terra
08b801f1f8598c4e44680b4a75c232ed92db0262
[ "Apache-2.0" ]
null
null
null
qiskit/pulse/commands/delay.py
EnriqueL8/qiskit-terra
08b801f1f8598c4e44680b4a75c232ed92db0262
[ "Apache-2.0" ]
1
2020-01-24T21:01:06.000Z
2020-01-24T21:01:06.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
33.845238
87
0.685895
384
2,843
5.028646
0.354167
0.049715
0.020197
0.023304
0.375971
0.357328
0.357328
0.357328
0.357328
0.357328
0
0.006069
0.246571
2,843
83
88
34.253012
0.895425
0.664791
0
0
0
0
0.029207
0
0
0
0
0
0
1
0.214286
false
0
0.285714
0
0.785714
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
eac0516db1e5847cfed51800060d2a183db28355
2,070
py
Python
chaospy/distributions/collection/generalized_half_logistic.py
agonzs11/Polinomio-del-caos
5a415ece07e6535488174bac69a6c0fcc2ca272d
[ "MIT" ]
1
2020-04-29T20:53:25.000Z
2020-04-29T20:53:25.000Z
chaospy/distributions/collection/generalized_half_logistic.py
agonzs11/Polinomio-del-caos
5a415ece07e6535488174bac69a6c0fcc2ca272d
[ "MIT" ]
null
null
null
chaospy/distributions/collection/generalized_half_logistic.py
agonzs11/Polinomio-del-caos
5a415ece07e6535488174bac69a6c0fcc2ca272d
[ "MIT" ]
null
null
null
"""Generalized half-logistic distribution.""" import numpy from scipy import special from ..baseclass import Dist from ..operators.addition import Add from .deprecate import deprecation_warning class generalized_half_logistic(Dist): """Generalized half-logistic distribution.""" def __init__(self, c=1): ...
27.6
81
0.575845
272
2,070
4.279412
0.286765
0.010309
0.098797
0.090206
0.10567
0.10567
0.082474
0.034364
0.034364
0.034364
0
0.077836
0.267633
2,070
74
82
27.972973
0.689974
0.415942
0
0.129032
0
0
0.027397
0
0
0
0
0
0
1
0.225806
false
0
0.16129
0.096774
0.612903
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
eacaa8ab6dc546f836cbb8ed03c90279f92e8087
468
py
Python
MBSTOI/__init__.py
TuZehai/Sheffield_Clarity_CEC1_Entry
179a95130505a2cd3fb9673884dda7923b6f3ea8
[ "MIT" ]
3
2021-11-01T14:03:10.000Z
2022-03-31T12:54:09.000Z
MBSTOI/__init__.py
TuZehai/Sheffield_Clarity_CEC1_Entry
179a95130505a2cd3fb9673884dda7923b6f3ea8
[ "MIT" ]
null
null
null
MBSTOI/__init__.py
TuZehai/Sheffield_Clarity_CEC1_Entry
179a95130505a2cd3fb9673884dda7923b6f3ea8
[ "MIT" ]
1
2022-03-31T12:54:12.000Z
2022-03-31T12:54:12.000Z
from MBSTOI.stft import stft from MBSTOI.thirdoct import thirdoct from MBSTOI.remove_silent_frames import remove_silent_frames from MBSTOI.mbstoi import mbstoi from MBSTOI.ec import ec from MBSTOI.ec_dbstoi import ec_dbstoi from MBSTOI.mbstoi_beta import mbstoi_beta, create_internal_noise __all__ = [ "stf...
24.631579
66
0.728632
61
468
5.262295
0.245902
0.218069
0.168224
0.149533
0.180685
0
0
0
0
0
0
0
0.196581
468
18
67
26
0.853723
0
0
0
0
0
0.18
0.046667
0
0
0
0
0
1
0
false
0
0.411765
0
0.411765
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
1
0
0
0
0
2
eacb3a81586db3fee500bbf9d370c3f28adbeca7
1,426
py
Python
examples/example.py
obrunet/PyLinux
f99a4f36fc40c7afa37441e00a2578608ceaabd4
[ "Apache-2.0" ]
3
2016-04-03T23:39:46.000Z
2019-06-27T13:40:34.000Z
examples/example.py
obrunet/PyLinux
f99a4f36fc40c7afa37441e00a2578608ceaabd4
[ "Apache-2.0" ]
null
null
null
examples/example.py
obrunet/PyLinux
f99a4f36fc40c7afa37441e00a2578608ceaabd4
[ "Apache-2.0" ]
2
2019-06-09T03:27:43.000Z
2019-10-21T14:29:15.000Z
#!/usr/bin/python import pylinux.pylinux as pylinux ## Static Information print 'Distribution:: ', pylinux.distro_name() + ' ' + \ pylinux.distro_release() + ' ' + \ pylinux.distro_nickname() print 'OS Architecture:: ' + pylinux.arch() print 'Kernel:: ', pylinux.kernel() print 'Total Memory:: ' + pylinux.to...
29.708333
89
0.687938
182
1,426
5.324176
0.478022
0.057792
0.026832
0.024768
0.105263
0.074303
0
0
0
0
0
0.002477
0.150771
1,426
47
90
30.340426
0.797688
0.089762
0
0
0
0
0.311094
0
0
0
0
0
0
0
null
null
0
0.035714
null
null
0.714286
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
1
0
2
ead398204ffcee2802e6642d4fd9e2c67bd6db94
409
py
Python
examples/evolCell/init.py
FernandoSBorges/netpyne
e1a7adb56b94aa78f8461397319eb4e9754c2d75
[ "MIT" ]
null
null
null
examples/evolCell/init.py
FernandoSBorges/netpyne
e1a7adb56b94aa78f8461397319eb4e9754c2d75
[ "MIT" ]
null
null
null
examples/evolCell/init.py
FernandoSBorges/netpyne
e1a7adb56b94aa78f8461397319eb4e9754c2d75
[ "MIT" ]
null
null
null
""" init.py Starting script to run NetPyNE-based model. Usage: python init.py # Run simulation, optionally plot a raster MPI usage: mpiexec -n 4 nrniv -python -mpi init.py Contributors: salvadordura@gmail.com """ from netpyne import sim cfg, netParams = sim.readCmdLineArgs() # read cfg and netParams from c...
24.058824
95
0.755501
55
409
5.618182
0.690909
0.058252
0
0
0
0
0
0
0
0
0
0.002924
0.163814
409
16
96
25.5625
0.900585
0.643032
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
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
1
0
1
0
0
0
0
2
eae40910525bdbd73751888e97decae388a13954
2,132
py
Python
entity_embeddings/util/validation_utils.py
awesome-archive/entity_embeddings_categorical
fcd5e11ed55587ffa1d05f23521c01f970f1aca0
[ "MIT" ]
41
2019-12-02T03:11:48.000Z
2021-04-19T02:02:18.000Z
entity_embeddings/util/validation_utils.py
awesome-archive/entity_embeddings_categorical
fcd5e11ed55587ffa1d05f23521c01f970f1aca0
[ "MIT" ]
10
2020-01-28T22:37:22.000Z
2022-02-10T00:16:39.000Z
entity_embeddings/util/validation_utils.py
awesome-archive/entity_embeddings_categorical
fcd5e11ed55587ffa1d05f23521c01f970f1aca0
[ "MIT" ]
10
2019-03-12T16:03:32.000Z
2019-11-05T01:27:05.000Z
import os import pandas as pd # from entity_embeddings.network.assembler import ModelAssembler # from entity_embeddings.processor.processor import TargetProcessor from entity_embeddings.network import ModelAssembler from entity_embeddings.processor.processor import TargetProcessor def check_csv_data(csv_path: str) ...
36.135593
100
0.748593
297
2,132
5.239057
0.232323
0.106041
0.127249
0.169666
0.409383
0.355398
0.293059
0.152956
0.101542
0
0
0.003436
0.181051
2,132
59
101
36.135593
0.887743
0.060038
0
0
0
0
0.306194
0
0
0
0
0
0
1
0.277778
false
0
0.111111
0
0.388889
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
eaf354b068405d47e7cf8bb064215ba0e638b435
263
py
Python
setup.py
rmatsum836/foyer-cookiecutter
b7a1f52652d28d5bf5098141271d69c87640942b
[ "MIT" ]
1
2020-11-08T23:51:58.000Z
2020-11-08T23:51:58.000Z
setup.py
rmatsum836/foyer-cookiecutter
b7a1f52652d28d5bf5098141271d69c87640942b
[ "MIT" ]
2
2020-01-10T21:07:53.000Z
2020-01-10T21:09:31.000Z
setup.py
rmatsum836/foyer-cookiecutter
b7a1f52652d28d5bf5098141271d69c87640942b
[ "MIT" ]
null
null
null
from setuptools import setup setup( name="foyer-cookiecutter", version="0.0.0", description="A Cookiecutter template for creating foyer recipes", author="Ray Matsumoto", author_email="ray.a.matsumoto@vanderbilt.edu" )
26.3
73
0.653992
30
263
5.7
0.7
0.023392
0
0
0
0
0
0
0
0
0
0.015
0.239544
263
9
74
29.222222
0.84
0
0
0
0
0
0.441065
0.114068
0
0
0
0
0
1
0
true
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
eafdeff6811fd5377a7dbfc3588e19a740a836f2
148
py
Python
iterators/infinite.py
janbodnar/Python-Course
51705ab5a2adef52bcdb99a800e94c0d67144a38
[ "BSD-2-Clause" ]
13
2017-08-22T12:26:07.000Z
2021-07-29T16:13:50.000Z
iterators/infinite.py
janbodnar/Python-Course
51705ab5a2adef52bcdb99a800e94c0d67144a38
[ "BSD-2-Clause" ]
1
2021-02-08T10:24:33.000Z
2021-02-08T10:24:33.000Z
iterators/infinite.py
janbodnar/Python-Course
51705ab5a2adef52bcdb99a800e94c0d67144a38
[ "BSD-2-Clause" ]
17
2018-08-13T11:10:33.000Z
2021-07-29T16:14:02.000Z
#!/usr/bin/python import itertools # Ctrl + C to interrupt for i in itertools.count(100, 2): print(i) # if i > 20: # break
11.384615
33
0.560811
22
148
3.772727
0.863636
0
0
0
0
0
0
0
0
0
0
0.059406
0.317568
148
12
34
12.333333
0.762376
0.398649
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
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
d80600f74fc4ab0c8437511d530927eadbbc60ed
713
py
Python
tests/tensor/tensor_test.py
kbrodt/tor4
d09740b746c534e67a72f492c7c03654f5888a46
[ "MIT" ]
null
null
null
tests/tensor/tensor_test.py
kbrodt/tor4
d09740b746c534e67a72f492c7c03654f5888a46
[ "MIT" ]
null
null
null
tests/tensor/tensor_test.py
kbrodt/tor4
d09740b746c534e67a72f492c7c03654f5888a46
[ "MIT" ]
null
null
null
import numpy as np from tor4 import tensor def test_tensor_from_scalar(): a = tensor(data=1) assert a.tolist() == 1 assert not a.requires_grad assert a.is_leaf a = tensor(data=2.0, requires_grad=True) assert a.tolist() == 2.0 assert a.requires_grad assert a.is_leaf def test_tensor_...
22.28125
53
0.639551
122
713
3.54918
0.221311
0.193995
0.101617
0.17552
0.595843
0.595843
0.595843
0.464203
0.3903
0.3903
0
0.03777
0.220196
713
31
54
23
0.741007
0
0
0.391304
0
0
0
0
0
0
0
0
0.565217
1
0.130435
false
0
0.086957
0
0.217391
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
2
d815be219931763ce99ef62a9f74a8090f8f8ddc
5,321
py
Python
artificial/base/state.py
lucasdavid/artificial
18199591f926dd369e9de0cd2285c395506f0a55
[ "MIT" ]
3
2016-03-20T02:51:01.000Z
2020-05-30T20:25:46.000Z
artificial/base/state.py
lucasdavid/artificial
18199591f926dd369e9de0cd2285c395506f0a55
[ "MIT" ]
null
null
null
artificial/base/state.py
lucasdavid/artificial
18199591f926dd369e9de0cd2285c395506f0a55
[ "MIT" ]
1
2019-10-21T05:43:46.000Z
2019-10-21T05:43:46.000Z
"""Artificial States""" # Author: Lucas David -- <ld492@drexel.edu> # License: MIT (c) 2016 import abc import copy as copy_lib import six class State(object): """State. Keeps track of episodic updates in the environment, maintaining a sequence through a recursive reference to parent states. A...
27.713542
78
0.598008
654
5,321
4.813456
0.40367
0.022872
0.010483
0.003812
0.011436
0.011436
0.011436
0
0
0
0
0.00521
0.314603
5,321
191
79
27.858639
0.857965
0.588987
0
0.066667
0
0
0.028115
0
0
0
0
0
0
1
0.244444
false
0
0.066667
0.022222
0.555556
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
d820ef8001d22f735a6da29408268e9b9e284332
617
py
Python
python_source/fotobox/__init__.py
andreas-mr/fotobox
5aacd614b74dc72096060cdd1c345bc2aa9dfae6
[ "Apache-2.0" ]
null
null
null
python_source/fotobox/__init__.py
andreas-mr/fotobox
5aacd614b74dc72096060cdd1c345bc2aa9dfae6
[ "Apache-2.0" ]
null
null
null
python_source/fotobox/__init__.py
andreas-mr/fotobox
5aacd614b74dc72096060cdd1c345bc2aa9dfae6
[ "Apache-2.0" ]
null
null
null
import configparser import logging import os from fotobox.misc import generate_timestamp from fotobox.file_system import ROOT_PATH, mkdir_if_not_exist # reading config file CONFIG = configparser.ConfigParser() CONFIG.sections() CONFIG.read(os.path.join(ROOT_PATH, 'config.ini')) # initialize logging LOG_PATH = os.path...
29.380952
90
0.76013
89
617
5.089888
0.460674
0.05298
0.066225
0.066225
0.07947
0
0
0
0
0
0
0.003591
0.097245
617
20
91
30.85
0.809695
0.061588
0
0
1
0.066667
0.227431
0.104167
0
0
0
0
0
1
0
false
0
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
1
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
d8265132af3f4f5a30a7480b344788fa45df5f0b
23,787
py
Python
src/models.py
Danboruya/mt-sequential-multi-agent-rl
75df9ede038db8cc05b3f53a0df8a93292575367
[ "Apache-2.0" ]
null
null
null
src/models.py
Danboruya/mt-sequential-multi-agent-rl
75df9ede038db8cc05b3f53a0df8a93292575367
[ "Apache-2.0" ]
13
2020-03-02T03:43:53.000Z
2021-04-25T01:13:23.000Z
src/models.py
Danboruya/mt-sequential-multi-agent-rl
75df9ede038db8cc05b3f53a0df8a93292575367
[ "Apache-2.0" ]
1
2021-12-19T08:36:11.000Z
2021-12-19T08:36:11.000Z
import math import time from itertools import count import cloudpickle import torch import torch.nn.functional as F from torch import nn import utils SQRT2 = math.sqrt(2.0) ACT = nn.ReLU class DQN(nn.Module): def __init__(self, in_channels=4, n_actions=14): super(DQN, self).__init__() self.conv...
41.878521
133
0.56699
2,965
23,787
4.30118
0.089376
0.098095
0.034815
0.029797
0.770485
0.740532
0.694738
0.676155
0.653336
0.630518
0
0.016876
0.319923
23,787
567
134
41.952381
0.771466
0.188254
0
0.597143
0
0
0.048751
0.009032
0
0
0
0
0
1
0.042857
false
0
0.022857
0.002857
0.1
0.014286
0
0
0
null
0
0
0
0
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
2
dc1f462f62f8c6901de22366613d40bbd57d0329
516
py
Python
catalog/management/__init__.py
DistrictDataLabs/logbook
7cea37f3516d1ef47c8869388a0691cd89ae988c
[ "Apache-2.0" ]
4
2015-11-11T23:56:32.000Z
2019-07-14T03:35:40.000Z
catalog/management/commands/__init__.py
DistrictDataLabs/logbook
7cea37f3516d1ef47c8869388a0691cd89ae988c
[ "Apache-2.0" ]
30
2015-04-02T13:04:00.000Z
2016-06-23T15:22:19.000Z
catalog/management/commands/__init__.py
DistrictDataLabs/logbook
7cea37f3516d1ef47c8869388a0691cd89ae988c
[ "Apache-2.0" ]
2
2015-04-02T03:08:00.000Z
2020-03-04T00:38:04.000Z
# catalog.management # Management commands for the catalog app. # # Author: Benjamin Bengfort <bbengfort@districtdatalabs.com> # Created: Sun Aug 23 21:17:10 2015 -0500 # # Copyright (C) 2015 District Data Labs # For license information, see LICENSE.txt # # ID: __init__.py [] benjamin@bengfort.com $ """ Management ...
27.157895
74
0.515504
48
516
5.458333
0.708333
0.137405
0.160305
0.183206
0.259542
0.259542
0
0
0
0
0
0.043956
0.118217
516
18
75
28.666667
0.531868
0.645349
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
dc26f12955282c7c3b29af7db1062ef5271c6a05
360
py
Python
downstream/zerospeech2021/model.py
OlegJakushkin/s3prl
c0e41f07fa56f0f79b5bf3839b4d0a4cf7c421bf
[ "MIT" ]
856
2021-01-15T15:40:32.000Z
2022-03-31T07:08:17.000Z
downstream/zerospeech2021/model.py
shuchengzhang92/s3prl
39460b7ab8d19cd2fbe3406ed1073a5dbe96bfc0
[ "MIT" ]
210
2021-01-15T13:28:50.000Z
2022-03-30T06:13:51.000Z
downstream/zerospeech2021/model.py
shuchengzhang92/s3prl
39460b7ab8d19cd2fbe3406ed1073a5dbe96bfc0
[ "MIT" ]
208
2021-01-15T03:03:12.000Z
2022-03-31T08:33:27.000Z
import torch import torch.nn as nn class Model(nn.Module): def __init__(self, input_dim, output_class_num, **kwargs): super(Model, self).__init__() self.linear = nn.Linear(input_dim, output_class_num) def forward(self, features): pooled = features.mean(dim=1) predicted = self....
25.714286
62
0.669444
48
360
4.729167
0.5
0.096916
0.123348
0.167401
0.193833
0
0
0
0
0
0
0.003584
0.225
360
13
63
27.692308
0.810036
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
dc2e71233af48ce4bf5bae490cdb29e6b8e820e1
587
py
Python
connect-to-goodreads/2_combine_query_results.py
gyauney/shakespeare-and-company-social-readership
9ad68af449474c79ab421834c4a53866f5bb121e
[ "MIT" ]
2
2021-09-07T18:00:49.000Z
2021-09-09T16:34:31.000Z
connect-to-goodreads/2_combine_query_results.py
gyauney/shakespeare-and-company-social-readership
9ad68af449474c79ab421834c4a53866f5bb121e
[ "MIT" ]
null
null
null
connect-to-goodreads/2_combine_query_results.py
gyauney/shakespeare-and-company-social-readership
9ad68af449474c79ab421834c4a53866f5bb121e
[ "MIT" ]
null
null
null
from collections import defaultdict import os import random import time import pandas as pd def main(): base_path = '/Volumes/Passport-1/data/shakespeare-and-co' results_directory_path = base_path + '/query-results' combined_results_path = base_path + '/goodreads_query_results.combined.csv' df_lis...
24.458333
80
0.734242
81
587
4.901235
0.481481
0.060453
0.151134
0
0
0
0
0
0
0
0
0.002045
0.166951
587
24
81
24.458333
0.809816
0
0
0
0
0
0.17517
0.136054
0
0
0
0
0
1
0.0625
false
0.0625
0.3125
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
2
dc3f30eff92f024c4b39e01819a55a70b101e892
97
py
Python
constructorpro.py
pawankumarsharm/Pythoncoding
f0e5f6c1d22b101e109088529640326dd5405a6a
[ "bzip2-1.0.6" ]
null
null
null
constructorpro.py
pawankumarsharm/Pythoncoding
f0e5f6c1d22b101e109088529640326dd5405a6a
[ "bzip2-1.0.6" ]
null
null
null
constructorpro.py
pawankumarsharm/Pythoncoding
f0e5f6c1d22b101e109088529640326dd5405a6a
[ "bzip2-1.0.6" ]
null
null
null
class Test: def __init__(self): print('Constructor execution..') t=Test() t1=Test() t2=Test()
13.857143
34
0.680412
14
97
4.428571
0.785714
0
0
0
0
0
0
0
0
0
0
0.023529
0.123711
97
6
35
16.166667
0.705882
0
0
0
0
0
0.237113
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0.166667
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
dc4a018fe1c933fc9e6a7ba6fe6ad64d2d809b67
405
py
Python
hello_world_fastapi/main.py
flaviogf/Exemplos
fc666429f6e90c388e201fb7b7d5801e3c25bd25
[ "MIT" ]
null
null
null
hello_world_fastapi/main.py
flaviogf/Exemplos
fc666429f6e90c388e201fb7b7d5801e3c25bd25
[ "MIT" ]
5
2019-12-29T04:58:10.000Z
2021-03-11T04:35:15.000Z
hello_world_fastapi/main.py
flaviogf/Exemplos
fc666429f6e90c388e201fb7b7d5801e3c25bd25
[ "MIT" ]
null
null
null
from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: str = None price: float tax: float @app.get('/') async def root(): return {'message': 'Hello Fast API!'} @app.get('/items/{item_id}') def read_item(item_id): return {'i...
15
41
0.65679
57
405
4.561404
0.508772
0.092308
0
0
0
0
0
0
0
0
0
0
0.2
405
26
42
15.576923
0.802469
0
0
0
0
0
0.128395
0
0
0
0
0
0
1
0.117647
false
0
0.117647
0.117647
0.705882
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
1
0
0
2
dc4adcc440cbe47fc0d917bf5b85160d59ffed03
359
py
Python
app/core/management/commands/expire_trips.py
SkroX/TravelAlly-Backend
cb46204d44e71e39f4de1f593c91285677822a38
[ "MIT" ]
null
null
null
app/core/management/commands/expire_trips.py
SkroX/TravelAlly-Backend
cb46204d44e71e39f4de1f593c91285677822a38
[ "MIT" ]
null
null
null
app/core/management/commands/expire_trips.py
SkroX/TravelAlly-Backend
cb46204d44e71e39f4de1f593c91285677822a38
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand from core.models import Trip from datetime import datetime, timedelta class Command(BaseCommand): help = 'Expires trip objects which are out-of-date' def handle(self, *args, **options): print("here") Trip.objects.filter(start_time__lte=date...
27.615385
86
0.729805
48
359
5.395833
0.75
0.084942
0
0
0
0
0
0
0
0
0
0.003311
0.158774
359
12
87
29.916667
0.854305
0
0
0
0
0
0.128134
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.75
0.125
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
dc52b282cf0fcb65f3e3628c18cedce26c7c5846
1,098
py
Python
yekpay/migrations/0003_auto_20181023_1519.py
maryam-afzp/django-yekpay
f7b9d7914035ea4f27238eba9e0c70227cc65046
[ "MIT" ]
3
2020-05-17T18:33:22.000Z
2021-12-06T08:31:42.000Z
yekpay/migrations/0003_auto_20181023_1519.py
Glyphack/django-yekpay
8c4a44853207be4ff0b1711c0524fb0201859b19
[ "MIT" ]
null
null
null
yekpay/migrations/0003_auto_20181023_1519.py
Glyphack/django-yekpay
8c4a44853207be4ff0b1711c0524fb0201859b19
[ "MIT" ]
4
2019-11-14T14:16:49.000Z
2021-12-06T08:31:44.000Z
# Generated by Django 2.0.9 on 2018-10-23 11:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('yekpay', '0002_auto_20181023_1458'), ] operations = [ migrations.AlterField( model_name='transaction', name='fromCur...
45.75
316
0.590164
121
1,098
5.297521
0.570248
0.062403
0.078003
0.090484
0.720749
0.720749
0.583463
0.583463
0.583463
0.583463
0
0.044931
0.209472
1,098
23
317
47.73913
0.693548
0.040984
0
0.470588
1
0
0.372027
0.021884
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0
0
0
0
null
0
0
0
0
1
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
2
dc533cdae64b9a3f34ce3cd6763d905db2405a12
940
py
Python
fastapp/plugins/tests.py
sahlinet/fastapp
fcbf8e404a411a4530093c0fbbb4664aedade162
[ "MIT" ]
null
null
null
fastapp/plugins/tests.py
sahlinet/fastapp
fcbf8e404a411a4530093c0fbbb4664aedade162
[ "MIT" ]
9
2016-01-11T15:13:43.000Z
2016-03-22T14:16:39.000Z
fastapp/plugins/tests.py
sahlinet/fastapp
fcbf8e404a411a4530093c0fbbb4664aedade162
[ "MIT" ]
null
null
null
from fastapp.plugins.datastore.tests import * import unittest import os from django.conf import settings from django.test import TestCase from django.test.utils import override_settings from fastapp.plugins import call_plugin_func from fastapp.tests import BaseTestCase from fastapp.plugins.models import PluginUserCo...
29.375
84
0.709574
120
940
5.466667
0.516667
0.067073
0.082317
0
0
0
0
0
0
0
0
0.001297
0.179787
940
31
85
30.322581
0.849546
0.185106
0
0
0
0
0.0841
0.027595
0
0
0
0
0.055556
1
0.055556
false
0.055556
0.5
0
0.611111
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
dc57fc1331eb8019b34686e2eb0a17aa0208c993
650
py
Python
venv/lib/python3.8/site-packages/pr2modules/netlink/event/thermal_event.py
vsevolodpohvalenko/home-assistant
4ae19b7d5d843c65ba700922c1814755257eb4e0
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/pr2modules/netlink/event/thermal_event.py
vsevolodpohvalenko/home-assistant
4ae19b7d5d843c65ba700922c1814755257eb4e0
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/pr2modules/netlink/event/thermal_event.py
vsevolodpohvalenko/home-assistant
4ae19b7d5d843c65ba700922c1814755257eb4e0
[ "Apache-2.0" ]
null
null
null
''' TODO: add THERMAL_GENL_ATTR_EVENT structure ''' from pr2modules.netlink import genlmsg from pr2modules.netlink.nlsocket import Marshal from pr2modules.netlink.event import EventSocket THERMAL_GENL_CMD_UNSPEC = 0 THERMAL_GENL_CMD_EVENT = 1 class thermal_msg(genlmsg): nla_map = (('THERMAL_GENL_ATTR_UNSPEC', 'n...
26
64
0.756923
80
650
5.7875
0.3875
0.166307
0.12095
0.086393
0
0
0
0
0
0
0
0.009191
0.163077
650
24
65
27.083333
0.841912
0.084615
0
0
0
0
0.11414
0.080068
0
0
0
0.041667
0
1
0
false
0
0.214286
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
2
dc59efcbbfad0be19b3756bdd172e519e400bebf
363
py
Python
build.py
wasiahmad/SumGenToBT
84cc82a23c3207811a6b17dfd408570e94009c29
[ "MIT" ]
1
2022-02-25T11:19:35.000Z
2022-02-25T11:19:35.000Z
build.py
wasiahmad/SumGenToBT
84cc82a23c3207811a6b17dfd408570e94009c29
[ "MIT" ]
null
null
null
build.py
wasiahmad/SumGenToBT
84cc82a23c3207811a6b17dfd408570e94009c29
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from tree_sitter import Language Language.build_library( # Store the library in the `build` directory 'evaluation/CodeBLEU/parser/my-languages.so', # Include one or more languages [ "third_party/tree-sitter-java", ...
22.6875
49
0.699725
45
363
5.555556
0.733333
0.12
0.112
0.16
0
0
0
0
0
0
0
0
0.206612
363
15
50
24.2
0.868056
0.38843
0
0
0
0
0.460829
0.460829
0
0
0
0
0
1
0
true
0
0.125
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
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
dc60e473b746c17085075bdf8934c4eb2dadec93
696
py
Python
src/config/settings.py
mairror/mairror-frontend
789b061998ec340ecad8cb635cd0690d7eb654b2
[ "MIT" ]
null
null
null
src/config/settings.py
mairror/mairror-frontend
789b061998ec340ecad8cb635cd0690d7eb654b2
[ "MIT" ]
2
2022-03-10T12:14:18.000Z
2022-03-10T22:07:53.000Z
src/config/settings.py
mairror/mairror-frontend
789b061998ec340ecad8cb635cd0690d7eb654b2
[ "MIT" ]
null
null
null
import os from functools import lru_cache from pydantic import BaseSettings class Settings(BaseSettings): API_URL: str = str(os.getenv("API_URL", "http://localhost:8000")) LOG_LEVEL: str = os.getenv("LOG_LEVEL", "INFO") API_KEY_HEADER: str = os.getenv("API_KEY_HEADER", "X-Api-Key") API_KEY: str = os....
29
76
0.659483
98
696
4.438776
0.397959
0.068966
0.151724
0.16092
0.16092
0
0
0
0
0
0
0.008818
0.185345
696
23
77
30.26087
0.758377
0
0
0
0
0
0.221264
0
0
0
0
0
0
1
0.058824
false
0
0.176471
0.058824
0.764706
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
dc62cc9c4131c6526ba2af68fe98e30e167abcb2
484
py
Python
minmlst/utils.py
shanicohen33/minMLST
75d1a5eef3fd1659a5706cc1b3d576f1e9048c82
[ "MIT" ]
3
2020-03-12T22:58:25.000Z
2021-05-14T01:35:48.000Z
minmlst/utils.py
shanicohen33/minMLST
75d1a5eef3fd1659a5706cc1b3d576f1e9048c82
[ "MIT" ]
null
null
null
minmlst/utils.py
shanicohen33/minMLST
75d1a5eef3fd1659a5706cc1b3d576f1e9048c82
[ "MIT" ]
1
2020-12-21T07:15:42.000Z
2020-12-21T07:15:42.000Z
import os def get_dir_files(dir_path): files = [file for file in os.listdir(dir_path) if os.path.isfile(os.path.join(dir_path, file))] return sorted(files) def create_dir_if_not_exists(dir_path): if not os.path.exists(dir_path): os.makedirs(dir_path) def remove_dir(dir_path): for file in o...
24.2
99
0.683884
83
484
3.746988
0.277108
0.22508
0.106109
0.07074
0.29582
0.29582
0.160772
0
0
0
0
0
0.202479
484
19
100
25.473684
0.805699
0
0
0
0
0
0
0
0
0
0
0
0
1
0.230769
false
0
0.076923
0
0.384615
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
1
0
0
0
0
0
0
0
2
dc64d45a7d550d56c676e34d821d1f93def84dc9
347
py
Python
src/kickoff.py
w9PcJLyb/GFootball
b271238bd0dc922787a0a9b984a8ae598cea2b2b
[ "Apache-2.0" ]
null
null
null
src/kickoff.py
w9PcJLyb/GFootball
b271238bd0dc922787a0a9b984a8ae598cea2b2b
[ "Apache-2.0" ]
null
null
null
src/kickoff.py
w9PcJLyb/GFootball
b271238bd0dc922787a0a9b984a8ae598cea2b2b
[ "Apache-2.0" ]
null
null
null
from .board import * def kickoff_action(board: Board) -> Action: ball_vector = Vector.from_point( board.ball.position - board.controlled_player.position ) if ball_vector.length() < 0.1: return board.set_action(Action.ShortPass, Vector(-1, 0)) else: return board.set_action(None,...
28.916667
64
0.682997
46
347
4.978261
0.5
0.131004
0.122271
0.174672
0
0
0
0
0
0
0
0.014493
0.204611
347
11
65
31.545455
0.815217
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0.111111
0.111111
0
0.444444
0.111111
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
dc7900ef08b9f1d96c3c86159e0bf40307f9151c
4,787
py
Python
example/settings.py
EbookFoundation/fef-questionnaire
6672fa575b2d93b1353f926e9894ae88b4251892
[ "BSD-3-Clause" ]
14
2017-06-21T15:08:45.000Z
2021-11-02T22:04:53.000Z
example/settings.py
EbookFoundation/fef-questionnaire
6672fa575b2d93b1353f926e9894ae88b4251892
[ "BSD-3-Clause" ]
null
null
null
example/settings.py
EbookFoundation/fef-questionnaire
6672fa575b2d93b1353f926e9894ae88b4251892
[ "BSD-3-Clause" ]
6
2018-03-14T20:28:06.000Z
2021-08-16T13:58:38.000Z
""" Django settings for example project. Generated by 'django-admin startproject' using Django 1.8.18. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build pat...
31.287582
232
0.721955
613
4,787
5.577488
0.425775
0.045627
0.038608
0.043872
0.09067
0.066394
0.066394
0.066394
0.023399
0
0
0.007858
0.175893
4,787
152
233
31.493421
0.858809
0.515563
0
0
1
0.014925
0.523327
0.419894
0
0
0
0
0
1
0
false
0
0.014925
0
0.014925
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
dc7a3c14e10a1542f180ac0179745c7ee64a9785
227
py
Python
api/run.py
iteemhe/office-hours-queue
039c2a0836160f02b28ac14dbf8ed2b6bd6ea7b5
[ "MIT" ]
1
2022-01-24T07:18:33.000Z
2022-01-24T07:18:33.000Z
api/run.py
iteemhe/office-hours-queue
039c2a0836160f02b28ac14dbf8ed2b6bd6ea7b5
[ "MIT" ]
null
null
null
api/run.py
iteemhe/office-hours-queue
039c2a0836160f02b28ac14dbf8ed2b6bd6ea7b5
[ "MIT" ]
null
null
null
from db import db from app import app """ Run Flask API in Heroku env """ db.init_app(app) @app.before_first_request def create_tables(): db.create_all() # if __name__ == "__main__": # app.run(port=5000, debug=True)
11.947368
32
0.69163
37
227
3.891892
0.675676
0.083333
0
0
0
0
0
0
0
0
0
0.02139
0.176211
227
18
33
12.611111
0.748663
0.251101
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
true
0
0.333333
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
dc8cbf4722143c34ae77d09a3c81c1fcd070df83
245
py
Python
hunkim/ml_lab_01.py
juvenilehex/ml2
57fa64660a87b2e432872c06414d1a86846ce380
[ "Apache-2.0" ]
33
2017-02-20T09:26:26.000Z
2021-03-17T15:15:21.000Z
hunkim/ml_lab_01.py
angelkim88/ml
57fa64660a87b2e432872c06414d1a86846ce380
[ "Apache-2.0" ]
null
null
null
hunkim/ml_lab_01.py
angelkim88/ml
57fa64660a87b2e432872c06414d1a86846ce380
[ "Apache-2.0" ]
58
2017-02-22T05:18:00.000Z
2021-06-08T08:41:17.000Z
# 참고자료 # 모두를 위한 머신러닝/딥러닝 강의 # 홍콩과기대 김성훈 # http://hunkim.github.io/ml import tensorflow as tf hello = tf.constant('Hello, TensorFlow!') print(hello) sess = tf.Session() print(sess.run(hello)) print(sess.run(hello).decode(encoding='utf-8'))
14.411765
47
0.697959
39
245
4.384615
0.692308
0.105263
0.140351
0.19883
0
0
0
0
0
0
0
0.004695
0.130612
245
16
48
15.3125
0.798122
0.244898
0
0
0
0
0.127778
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.5
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
dc9a407e72478b37a2d48fc65fccfb2b59073929
4,680
py
Python
model_api/model_training/next_framework/tests/training_util_classes_test.py
INK-USC/LEAN-LIFE
e3d6debc3e4c41145ef1c03236c4cf57bfd8be7d
[ "MIT" ]
21
2020-09-29T12:45:50.000Z
2022-03-27T13:11:12.000Z
model_api/model_training/next_framework/tests/training_util_classes_test.py
INK-USC/LEAN-LIFE
e3d6debc3e4c41145ef1c03236c4cf57bfd8be7d
[ "MIT" ]
3
2020-12-03T10:34:54.000Z
2021-03-29T09:01:05.000Z
model_api/model_training/next_framework/tests/training_util_classes_test.py
INK-USC/LEAN-LIFE
e3d6debc3e4c41145ef1c03236c4cf57bfd8be7d
[ "MIT" ]
3
2021-02-14T08:39:02.000Z
2021-07-29T02:33:14.000Z
import sys sys.path.append("../training/") from next_util_classes import PreTrainingFindModuleDataset, BaseVariableLengthDataset, TrainingDataset import torch tokens = [ [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 34, 45, 17, 5, 6], [1, 432, 343, 953, 349, 3940, 3993, 33, 22, 111, 2349, 3490], ...
39
135
0.598077
859
4,680
3.110594
0.14901
0.151198
0.215569
0.273952
0.70509
0.647455
0.622754
0.555389
0.549401
0.497754
0
0.19673
0.228846
4,680
120
136
39
0.543641
0
0
0.347826
0
0
0.002564
0
0
0
0
0
0.315217
1
0.054348
false
0
0.032609
0
0.086957
0
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
dca062d0145307823aee61d8a5984ea48f77e80d
136
py
Python
if_A_in_loop_continue.py
joshavenue/TIL-python
9389260ae19657f3f70b90cca1b2cc23c5618a8d
[ "MIT" ]
null
null
null
if_A_in_loop_continue.py
joshavenue/TIL-python
9389260ae19657f3f70b90cca1b2cc23c5618a8d
[ "MIT" ]
null
null
null
if_A_in_loop_continue.py
joshavenue/TIL-python
9389260ae19657f3f70b90cca1b2cc23c5618a8d
[ "MIT" ]
null
null
null
def loopy(items): # Code goes here for item in items: if item[0] == "a": continue else: print(item)
17
24
0.5
18
136
3.777778
0.833333
0
0
0
0
0
0
0
0
0
0
0.012048
0.389706
136
7
25
19.428571
0.807229
0.102941
0
0
0
0
0.008333
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.166667
0.166667
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
dca6d17f745d847ca91dbf828af33b3a1f4da278
473
py
Python
pydis_site/apps/api/migrations/0001_initial.py
Numerlor/site
e4cec0aeb2a791e622be8edd94fb4e82d150deab
[ "MIT" ]
700
2018-11-17T15:56:51.000Z
2022-03-30T22:53:17.000Z
pydis_site/apps/api/migrations/0001_initial.py
Numerlor/site
e4cec0aeb2a791e622be8edd94fb4e82d150deab
[ "MIT" ]
542
2018-11-17T13:39:42.000Z
2022-03-31T11:24:00.000Z
pydis_site/apps/api/migrations/0001_initial.py
Numerlor/site
e4cec0aeb2a791e622be8edd94fb4e82d150deab
[ "MIT" ]
178
2018-11-21T09:06:56.000Z
2022-03-31T07:43:28.000Z
# Generated by Django 2.1 on 2018-08-15 17:28 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='SnakeName', fields=[ ('name', models.CharFiel...
21.5
94
0.575053
47
473
5.723404
0.765957
0.111524
0.133829
0.178439
0
0
0
0
0
0
0
0.06135
0.310782
473
21
95
22.52381
0.763804
0.090909
0
0
1
0
0.053738
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.357143
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
dcacd9dab379b8351a99df476e1763b650b974b2
460
py
Python
my_weather_api/models.py
swingthrough/weather-api-task-django
b7de39fef470ed5eb36c28fc7ea23f3780d0535c
[ "MIT" ]
null
null
null
my_weather_api/models.py
swingthrough/weather-api-task-django
b7de39fef470ed5eb36c28fc7ea23f3780d0535c
[ "MIT" ]
null
null
null
my_weather_api/models.py
swingthrough/weather-api-task-django
b7de39fef470ed5eb36c28fc7ea23f3780d0535c
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class WeatherForecastDay(models.Model): country_code = models.CharField(max_length=8) for_day = models.DateField() average_temp_c = models.DecimalField(max_digits=5, decimal_places=2) # created_at = models.DateTimeField(auto_now_add=True cla...
30.666667
72
0.721739
62
460
5.048387
0.709677
0.105431
0
0
0
0
0
0
0
0
0
0.007874
0.171739
460
15
73
30.666667
0.813648
0.165217
0
0
0
0
0.138743
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0.111111
0.888889
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
1
0
0
2
dcb82e666407a946ede742d104f81330e3be6e78
4,629
py
Python
datalad/downloaders/tests/test_credentials.py
driusan/datalad
97f990caff182547845e1096a4044d9cd17e6a31
[ "MIT" ]
null
null
null
datalad/downloaders/tests/test_credentials.py
driusan/datalad
97f990caff182547845e1096a4044d9cd17e6a31
[ "MIT" ]
6
2015-11-20T21:41:13.000Z
2018-06-12T14:27:32.000Z
datalad/downloaders/tests/test_credentials.py
driusan/datalad
97f990caff182547845e1096a4044d9cd17e6a31
[ "MIT" ]
1
2017-03-28T14:44:16.000Z
2017-03-28T14:44:16.000Z
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ##...
40.605263
101
0.671851
580
4,629
5.193103
0.265517
0.098606
0.089641
0.090637
0.456507
0.37251
0.252324
0.159363
0.102922
0.033865
0
0.016313
0.165695
4,629
114
102
40.605263
0.763594
0.191834
0
0.260274
0
0
0.177945
0.013088
0
0
0
0
0.520548
1
0.082192
false
0.287671
0.150685
0
0.287671
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
1
0
0
0
1
0
0
0
0
0
2
dcbafe77a8c7ff4f020d2afed17328d41a65a88f
183
py
Python
Xian/week 9/8.py
Eurydia/Xian-assignment
4a7e4bcd3d4999ea7429054fec1792064c96ff30
[ "MIT" ]
null
null
null
Xian/week 9/8.py
Eurydia/Xian-assignment
4a7e4bcd3d4999ea7429054fec1792064c96ff30
[ "MIT" ]
null
null
null
Xian/week 9/8.py
Eurydia/Xian-assignment
4a7e4bcd3d4999ea7429054fec1792064c96ff30
[ "MIT" ]
null
null
null
''' Write a program to get a positive integer (n) and display the number patterns as the examples below. ''' n = int(input()) print(' 1') for i in range(2, n+1): print(f'{i} '*i)
20.333333
93
0.639344
34
183
3.441176
0.764706
0
0
0
0
0
0
0
0
0
0
0.020408
0.196721
183
8
94
22.875
0.77551
0.546448
0
0
0
0
0.08
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
f4a35da73bf31433f023faf0174a7fbd2dcd2b17
1,101
py
Python
remora/common/template.py
yuanying/remora
b61cfc7c5035d8dc9a887bbdd9da333b05c2f6d3
[ "Apache-2.0" ]
5
2017-11-24T11:14:39.000Z
2022-02-07T19:41:16.000Z
remora/common/template.py
yuanying/remora
b61cfc7c5035d8dc9a887bbdd9da333b05c2f6d3
[ "Apache-2.0" ]
17
2017-04-11T01:35:03.000Z
2018-07-26T04:21:40.000Z
remora/common/template.py
yuanying/remora
b61cfc7c5035d8dc9a887bbdd9da333b05c2f6d3
[ "Apache-2.0" ]
7
2017-03-08T04:44:09.000Z
2022-02-07T19:41:16.000Z
# # 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, software # ...
29.756757
78
0.693915
146
1,101
5.184932
0.643836
0.07926
0.034346
0.042272
0
0
0
0
0
0
0
0.004796
0.242507
1,101
36
79
30.583333
0.902878
0.671208
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.166667
0.083333
0.583333
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
f4a5259279f4798338602cf4e61708c2ffab66ce
7,348
py
Python
pysnmp/NET-SNMP-EXAMPLES-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/NET-SNMP-EXAMPLES-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/NET-SNMP-EXAMPLES-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module NET-SNMP-EXAMPLES-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NET-SNMP-EXAMPLES-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:08:14 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (def...
113.046154
1,214
0.782254
777
7,348
7.395109
0.212355
0.009746
0.013053
0.017403
0.335016
0.232336
0.173164
0.162026
0.160111
0.15141
0
0.069551
0.078389
7,348
64
1,215
114.8125
0.778943
0.045727
0
0
0
0
0.154077
0.022133
0
0
0
0
0
1
0
false
0
0.157895
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
f4a8bc01d0987611544b69abd7fd573085c4cbf6
371
py
Python
nn/_criterion.py
Riroaki/LemonML-
3bb344c135e4dd7dab63a4fd2184ac0aaacc367d
[ "MIT" ]
34
2019-06-23T03:45:41.000Z
2021-11-30T12:28:41.000Z
nn/_criterion.py
Riroaki/LemonML-
3bb344c135e4dd7dab63a4fd2184ac0aaacc367d
[ "MIT" ]
null
null
null
nn/_criterion.py
Riroaki/LemonML-
3bb344c135e4dd7dab63a4fd2184ac0aaacc367d
[ "MIT" ]
5
2019-06-14T09:41:24.000Z
2019-10-23T11:21:22.000Z
import numpy as np from ._base import Criterion class MSECriterion(Criterion): """Mean Square Error Criterion.""" def forward(self, pred: np.ndarray, y: np.ndarray) -> float: loss = 0.5 * np.power(y - pred, 2) return loss def backward(self, pred: np.ndarray, y: np.ndarray) -> np.ndarray:...
24.733333
70
0.61186
52
371
4.346154
0.519231
0.199115
0.088496
0.150442
0.238938
0.238938
0.238938
0
0
0
0
0.010949
0.261456
371
14
71
26.5
0.813869
0.075472
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0
0.777778
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
f4ab63b91477674f6de813514bc1620fc752a0b3
187
py
Python
Problem/PeopleFund/transpose_and_flatten.py
yeojin-dev/coding-test
30ce8507838beaa9232c6fc6c62a7dcb62d51464
[ "MIT" ]
2
2018-07-11T08:13:06.000Z
2018-07-11T08:47:12.000Z
Problem/PeopleFund/transpose_and_flatten.py
yeojin-dev/coding-test
30ce8507838beaa9232c6fc6c62a7dcb62d51464
[ "MIT" ]
null
null
null
Problem/PeopleFund/transpose_and_flatten.py
yeojin-dev/coding-test
30ce8507838beaa9232c6fc6c62a7dcb62d51464
[ "MIT" ]
null
null
null
import numpy as np arr = list() for _ in range(int(input().split()[0])): arr.append(list(map(int, input().split()))) arr = np.array(arr) print(arr.transpose()) print(arr.flatten())
18.7
47
0.647059
30
187
4
0.633333
0.133333
0.216667
0
0
0
0
0
0
0
0
0.006135
0.128342
187
9
48
20.777778
0.730061
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.285714
0
0
0
null
0
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
0
0
0
0
0
0
0
2
f4b5e16e9ac70939e82720c52ba6665044a286ec
1,130
py
Python
django_test/main/main/hdt_analyzer/views.py
pkats15/hdt_analyzer
61c52ff0885424f362c468cea82630f7d03f02e0
[ "MIT" ]
1
2015-10-17T17:26:32.000Z
2015-10-17T17:26:32.000Z
django_test/main/main/hdt_analyzer/views.py
pkats15/hdt_analyzer
61c52ff0885424f362c468cea82630f7d03f02e0
[ "MIT" ]
null
null
null
django_test/main/main/hdt_analyzer/views.py
pkats15/hdt_analyzer
61c52ff0885424f362c468cea82630f7d03f02e0
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from django.conf import settings from django.views.decorators.csrf import csrf_exempt from django.http import JsonResponse, HttpRequest import core.online_file_manager as ofm import json import startup import traceback # Create your views here. ...
28.25
69
0.59292
134
1,130
4.895522
0.514925
0.07622
0.068598
0.060976
0
0
0
0
0
0
0
0.003886
0.316814
1,130
39
70
28.974359
0.845855
0.077876
0
0.066667
0
0
0.018304
0
0
0
0
0.025641
0
0
null
null
0
0.3
null
null
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
1
0
1
0
0
0
0
0
0
0
0
2
f4c1bf2af4aa067dcaa527713163372fb7644bec
166
py
Python
ch21/timer0.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
1
2020-10-12T13:33:29.000Z
2020-10-12T13:33:29.000Z
ch21/timer0.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
null
null
null
ch21/timer0.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
1
2016-11-09T07:28:45.000Z
2016-11-09T07:28:45.000Z
#!/usr/bin/env python3 import time def timer(func, *args): start = time.clock() for i in range(10000): func(*args) return time.clock() - start;
16.6
32
0.60241
24
166
4.166667
0.75
0.16
0
0
0
0
0
0
0
0
0
0.048
0.246988
166
9
33
18.444444
0.752
0.126506
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
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
0
0
0
0
0
0
0
0
2
f4d2c4c20a285f38025d18c2609a261e875e99fe
438
py
Python
app/modules/user/__init__.py
janlycn/flask-restful-demo
905301fe62cdbb17ddccc80aca0d9d16ec43dc64
[ "Apache-2.0" ]
1
2018-07-20T03:37:40.000Z
2018-07-20T03:37:40.000Z
app/modules/user/__init__.py
janlycn/flask-restful-demo
905301fe62cdbb17ddccc80aca0d9d16ec43dc64
[ "Apache-2.0" ]
null
null
null
app/modules/user/__init__.py
janlycn/flask-restful-demo
905301fe62cdbb17ddccc80aca0d9d16ec43dc64
[ "Apache-2.0" ]
null
null
null
from flask import Blueprint from flask_restful import Api, url_for from config import config from . import resource # 蓝图 api_bp = Blueprint('user', __name__) # api api = Api(api_bp) # 路由 api.add_resource(resource.UserApi, '/users/<int:pk>') api.add_resource(resource.UserListApi, '/users') api.add_resource(resource.Aut...
21.9
64
0.739726
64
438
4.828125
0.453125
0.048544
0.135922
0.213592
0
0
0
0
0
0
0
0
0.130137
438
19
65
23.052632
0.811024
0.047945
0
0
0
0
0.07335
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.454545
0.272727
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
f4def96e62bdb6384f6ffc202fc9d8c28e2f3fd5
853
py
Python
server/models/task.py
efenstakes/Noty
1eaef996dcaa3e0f5f17b959a894e09d63ddd74c
[ "0BSD" ]
1
2020-01-16T09:27:18.000Z
2020-01-16T09:27:18.000Z
server/models/task.py
efenstakes/Noty
1eaef996dcaa3e0f5f17b959a894e09d63ddd74c
[ "0BSD" ]
2
2021-05-08T11:45:55.000Z
2021-05-10T19:21:20.000Z
server/models/task.py
efenstakes/Noty
1eaef996dcaa3e0f5f17b959a894e09d63ddd74c
[ "0BSD" ]
null
null
null
import mongoengine import datetime class Task(mongoengine.Document): title = mongoengine.StringField( max_length=100 ) body = mongoengine.StringField( required=True ) starts_on = mongoengine.DateTimeField( default=None ) ends_on = mongoengine.DateTimeField( default=None ) stage = mongoengine.Stri...
34.12
113
0.682298
90
853
6.333333
0.555556
0.115789
0.136842
0.173684
0.129825
0
0
0
0
0
0
0.008785
0.199297
853
24
114
35.541667
0.825769
0.023447
0
0
0
0
0.095296
0
0
0
0
0
0
1
0.0625
false
0
0.125
0.0625
0.875
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
f4e8a551b19218bffb571f29ab9b637a324571ba
251
py
Python
python/data_structures/list_node.py
dilless/leetcode-all-solutions
9c3e7feadfe5139bd9fc821a2afc510c84f85662
[ "MIT" ]
null
null
null
python/data_structures/list_node.py
dilless/leetcode-all-solutions
9c3e7feadfe5139bd9fc821a2afc510c84f85662
[ "MIT" ]
null
null
null
python/data_structures/list_node.py
dilless/leetcode-all-solutions
9c3e7feadfe5139bd9fc821a2afc510c84f85662
[ "MIT" ]
null
null
null
""" list_node ~~~ :author: dilless(Huangbo) :date: 2020/7/12 """ class ListNode: """ Definition for singly-linked list """ def __init__(self, val: int) -> None: self.val = val self.next = None
12.55
41
0.513944
28
251
4.428571
0.785714
0.112903
0
0
0
0
0
0
0
0
0
0.042424
0.342629
251
19
42
13.210526
0.709091
0.370518
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
f4f1be568f405b34083c0ca4c5522c84a438b46b
716
py
Python
tests/contrib/pylons/tests.py
shareablee/apm-agent-python
29f12ceb410b3c1a7f933b29dcecccf628dbbb6c
[ "BSD-3-Clause" ]
null
null
null
tests/contrib/pylons/tests.py
shareablee/apm-agent-python
29f12ceb410b3c1a7f933b29dcecccf628dbbb6c
[ "BSD-3-Clause" ]
null
null
null
tests/contrib/pylons/tests.py
shareablee/apm-agent-python
29f12ceb410b3c1a7f933b29dcecccf628dbbb6c
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from elasticapm.contrib.pylons import ElasticAPM def example_app(environ, start_response): raise ValueError("hello world") def test_init(): config = { "elasticapm.server_url": "http://localhost/api/store", "elasticapm.service_name": "p" * 32, "...
32.545455
78
0.702514
84
716
5.785714
0.47619
0.131687
0.18107
0.230453
0.246914
0.123457
0
0
0
0
0
0.01692
0.174581
716
21
79
34.095238
0.805415
0
0
0
0
0
0.22905
0.131285
0
0
0
0
0.25
1
0.125
false
0
0.125
0
0.25
0
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
f4fc2bd635bc266430ce3fea8269e95c601317a8
2,140
py
Python
creten/json_schemas/ExchangeConfigSchema.py
nardew/Creten
15ddb0b52e6f2afec2c79b3c731fccb34a2c63d6
[ "MIT" ]
9
2019-12-17T10:42:40.000Z
2021-12-02T23:07:05.000Z
creten/json_schemas/ExchangeConfigSchema.py
nardew/Creten
15ddb0b52e6f2afec2c79b3c731fccb34a2c63d6
[ "MIT" ]
null
null
null
creten/json_schemas/ExchangeConfigSchema.py
nardew/Creten
15ddb0b52e6f2afec2c79b3c731fccb34a2c63d6
[ "MIT" ]
6
2019-03-04T15:01:10.000Z
2022-01-12T23:22:55.000Z
schema = { "$schema": "http://json-schema.org/draft-06/schema#", "$comment": "Additional exchange customization to complement/rewrite exchange settings fetched directly from the exchange.", "type": "object", "properties": { "marketRules": { "$comment": "Definition of symbol rules that will overwrite rules fet...
31.014493
125
0.557477
200
2,140
5.965
0.415
0.192791
0.196144
0.085499
0.320201
0.320201
0.216262
0.216262
0.130763
0.070411
0
0.007495
0.251869
2,140
69
126
31.014493
0.737664
0
0
0.223881
0
0.044776
0.65717
0.109295
0
0
0
0
0
1
0
false
0
0
0
0
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
f4fc679e20adfd472a70e5507c137e14737db613
174
py
Python
pyopentdb/enum/Difficulty.py
amickael/pyopentdb
ff8e5c3fd8d0d47e3ac6a9e20d31662701b0b36f
[ "MIT" ]
1
2021-03-15T22:26:48.000Z
2021-03-15T22:26:48.000Z
pyopentdb/enum/Difficulty.py
amickael/pyopentdb
ff8e5c3fd8d0d47e3ac6a9e20d31662701b0b36f
[ "MIT" ]
1
2021-11-13T00:24:13.000Z
2021-11-14T19:31:08.000Z
pyopentdb/enum/Difficulty.py
amickael/pyopentdb
ff8e5c3fd8d0d47e3ac6a9e20d31662701b0b36f
[ "MIT" ]
null
null
null
from enum import Enum, unique @unique class Difficulty(Enum): EASY = "easy" MEDIUM = "medium" HARD = "hard" difficulty_map = {i.value: i for i in Difficulty}
14.5
49
0.655172
24
174
4.708333
0.583333
0
0
0
0
0
0
0
0
0
0
0
0.235632
174
11
50
15.818182
0.849624
0
0
0
0
0
0.08046
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.714286
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
0
0
1
0
0
2
76040facf3f8c5a08486b8b943d40568266a1ff6
1,769
py
Python
tests/builders/test_server_builder.py
pershinaM/openapi3-parser
957c86727d6d4119e98a7bc6aa260adc9fa22477
[ "MIT" ]
4
2021-01-12T12:44:20.000Z
2022-03-20T07:38:46.000Z
tests/builders/test_server_builder.py
pershinaM/openapi3-parser
957c86727d6d4119e98a7bc6aa260adc9fa22477
[ "MIT" ]
17
2021-01-08T18:36:34.000Z
2022-02-16T08:21:21.000Z
tests/builders/test_server_builder.py
pershinaM/openapi3-parser
957c86727d6d4119e98a7bc6aa260adc9fa22477
[ "MIT" ]
5
2021-05-27T19:46:49.000Z
2022-03-05T00:14:45.000Z
from typing import List import pytest from openapi_parser.builders import ServerBuilder from openapi_parser.specification import Server data_provider = ( ( [], [], ), ( [ { "url": "https://development.gigantic-server.com/v1", }, ...
28.079365
69
0.497456
152
1,769
5.743421
0.203947
0.109966
0.233677
0.261168
0.689576
0.689576
0.689576
0.572738
0.428408
0.428408
0
0.010526
0.355568
1,769
62
70
28.532258
0.755263
0
0
0.267857
0
0
0.348785
0
0
0
0
0
0.017857
1
0.017857
false
0
0.071429
0
0.089286
0
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
760a1b6103347381350e6509cbf5f43091ddc4e2
7,054
py
Python
tf/gdgkr/lab11_2_deep.py
tolkien/misc
84651346a3a0053b6a2af31db26c227a34da33c8
[ "MIT" ]
null
null
null
tf/gdgkr/lab11_2_deep.py
tolkien/misc
84651346a3a0053b6a2af31db26c227a34da33c8
[ "MIT" ]
null
null
null
tf/gdgkr/lab11_2_deep.py
tolkien/misc
84651346a3a0053b6a2af31db26c227a34da33c8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """lab11-2_deep.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1J_sFTBx4jqSfkefhBLFxUZjET-fHjI8g ## Deep CNN for MNIST """ !pip3 install -U -q PyDrive # see https://stackoverflow.com/questions/48596521/how-to-read-data-...
32.809302
111
0.666147
1,095
7,054
4.157991
0.29589
0.013178
0.003953
0.005271
0.203822
0.130463
0.078849
0.034483
0.034483
0.034483
0
0.060493
0.165722
7,054
215
112
32.809302
0.713169
0.207825
0
0.040323
1
0
0.088936
0.019764
0
0
0
0
0
0
null
null
0
0.072581
null
null
0.129032
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
1
0
0
0
0
0
0
0
0
2
7614159ffc2b0a199cbb30db4439ba180f8105a9
9,253
py
Python
tests/test_ruleParser.py
abultman/PiAutomator
2ad3aafdd6c94cf11fc2d60c9be489f76ac78277
[ "Apache-2.0" ]
5
2015-10-21T05:54:30.000Z
2021-01-13T01:10:36.000Z
tests/test_ruleParser.py
abultman/PiAutomator
2ad3aafdd6c94cf11fc2d60c9be489f76ac78277
[ "Apache-2.0" ]
null
null
null
tests/test_ruleParser.py
abultman/PiAutomator
2ad3aafdd6c94cf11fc2d60c9be489f76ac78277
[ "Apache-2.0" ]
5
2015-03-30T16:25:40.000Z
2016-07-29T09:10:03.000Z
from unittest import TestCase from context import Value from rules import RuleParser, operators from rules.conditional import ConditionalRule from rules.rules import RuleContext from rules.schedulerule import ScheduleRule from mock import Mock, MagicMock class TestRuleParser(TestCase): def setUp(self): se...
48.192708
129
0.683886
1,191
9,253
5.223342
0.127624
0.113326
0.125382
0.061083
0.782189
0.720784
0.641376
0.567272
0.524032
0.499759
0
0.02835
0.19183
9,253
191
130
48.445026
0.803557
0
0
0.282051
0
0.012821
0.198681
0.067776
0
0
0
0
0.5
1
0.147436
false
0
0.044872
0
0.211538
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
2