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
577476ea62af5a5874428837c8c3bd80db6e3550
1,622
py
Python
curve_analysis/osu_dump/osu_db.py
Cozieee/mlpp-playground
89aa4294cbd8715a5901accc3e6953d2edfcc267
[ "MIT" ]
null
null
null
curve_analysis/osu_dump/osu_db.py
Cozieee/mlpp-playground
89aa4294cbd8715a5901accc3e6953d2edfcc267
[ "MIT" ]
1
2020-06-09T16:43:25.000Z
2020-06-09T16:43:25.000Z
curve_analysis/osu_dump/osu_db.py
Cozieee/mlpp-playground
89aa4294cbd8715a5901accc3e6953d2edfcc267
[ "MIT" ]
1
2020-06-05T20:27:20.000Z
2020-06-05T20:27:20.000Z
# Go ahead and replace db_names with how you named your dumps. Make sure it's in the same order # Each dump should still start with osu_ ex. osu_random_2019_11_01 from curve_analysis.bin.config import * import mysql.connector from tqdm import tqdm class OsuDB: password = SQL_PASSWORD host = SQL_HOST user...
30.037037
95
0.593095
216
1,622
4.333333
0.435185
0.038462
0.051282
0.042735
0.049145
0
0
0
0
0
0
0.008036
0.309494
1,622
53
96
30.603774
0.827679
0.168311
0
0
0
0
0.037202
0
0
0
0
0
0
1
0.102564
false
0.051282
0.076923
0.025641
0.358974
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
577983ceededd540588dd0e6d4cba0918dc2fc25
10,637
py
Python
saltspec/AutoIdentify.py
Richard-Tarbell/pysalt
2815d5533c7e60b7042f2bc3cf46cecdd38fc609
[ "BSD-3-Clause" ]
12
2015-02-22T08:35:04.000Z
2020-11-12T11:32:34.000Z
saltspec/AutoIdentify.py
Richard-Tarbell/pysalt
2815d5533c7e60b7042f2bc3cf46cecdd38fc609
[ "BSD-3-Clause" ]
17
2015-02-24T18:40:26.000Z
2018-06-05T12:52:59.000Z
saltspec/AutoIdentify.py
Richard-Tarbell/pysalt
2815d5533c7e60b7042f2bc3cf46cecdd38fc609
[ "BSD-3-Clause" ]
12
2015-03-20T14:46:19.000Z
2021-08-12T18:30:01.000Z
#!/usr/bin/env python # Copyright (c) 2009, South African Astronomical Observatory (SAAO) # # All rights reserved. See LICENSE for more details # """ AutoIDENTIFY is a program to automatically identify spectral lines in an arc image. Author Version Date -----------------------------...
36.806228
142
0.573282
1,312
10,637
4.630335
0.23628
0.021728
0.026667
0.031605
0.382387
0.32642
0.306996
0.276543
0.269465
0.253663
0
0.01219
0.32904
10,637
288
143
36.934028
0.839008
0.109335
0
0.304348
0
0
0.015875
0
0
0
0
0.003472
0
0
null
null
0.006211
0.093168
null
null
0.012422
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
577b3a33b9517bdb50526acbcf2576aac4b16195
1,830
py
Python
reading/zotero.py
ericrobskyhuntley/vialab.mit.edu
1318d03b8eeb106c1662052e1caa53290e206ae7
[ "MIT" ]
null
null
null
reading/zotero.py
ericrobskyhuntley/vialab.mit.edu
1318d03b8eeb106c1662052e1caa53290e206ae7
[ "MIT" ]
null
null
null
reading/zotero.py
ericrobskyhuntley/vialab.mit.edu
1318d03b8eeb106c1662052e1caa53290e206ae7
[ "MIT" ]
null
null
null
from pyzotero import zotero def fetch_list(library_id, library_type, collection_key, api_key, csl): zot = zotero.Zotero(library_id, library_type, api_key) collections = zot.collections_top() data = {} if collection_key: data = {'ref_list': zot.collection_items_top( collection_key, ...
34.528302
71
0.379235
148
1,830
4.5
0.290541
0.06006
0.108108
0.126126
0.435435
0.435435
0.238739
0.238739
0.238739
0.238739
0
0.004619
0.526776
1,830
53
72
34.528302
0.764434
0
0
0.423077
0
0
0.057892
0
0
0
0
0
0
1
0.019231
false
0
0.019231
0
0.038462
0.019231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
57851d9a145b8f2e5697c7b9e5483fc4f5c64565
286
py
Python
pysit/modeling/pvs_modeling.py
simonlegrand/pysit
1fb1a80839ceebef12a8d71aa9c295b65b08bac4
[ "BSD-3-Clause" ]
1
2022-01-12T13:19:16.000Z
2022-01-12T13:19:16.000Z
pysit/modeling/pvs_modeling.py
simonlegrand/pysit
1fb1a80839ceebef12a8d71aa9c295b65b08bac4
[ "BSD-3-Clause" ]
null
null
null
pysit/modeling/pvs_modeling.py
simonlegrand/pysit
1fb1a80839ceebef12a8d71aa9c295b65b08bac4
[ "BSD-3-Clause" ]
null
null
null
import numpy as np __all__ = ['PVSModeling'] __docformat__ = "restructuredtext en" class PVSModeling(object): """Class containing a collection of methods needed for seismic inversion using postiv vectorized signal methods. Attributes ---------- """
19.066667
76
0.664336
28
286
6.5
0.892857
0
0
0
0
0
0
0
0
0
0
0
0.237762
286
15
77
19.066667
0.834862
0.461538
0
0
0
0
0.234375
0
0
0
0
0
0
1
0
false
0
0.25
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
57a966dc915842d0c22738c929b1a657002f41a5
549
py
Python
app/urls.py
NicolletteOchola/NeighborhoodWatch
adf209ac94b891fad07bd8197cd57699ea3d30bb
[ "MIT" ]
null
null
null
app/urls.py
NicolletteOchola/NeighborhoodWatch
adf209ac94b891fad07bd8197cd57699ea3d30bb
[ "MIT" ]
4
2020-06-06T00:45:54.000Z
2021-09-08T01:42:14.000Z
app/urls.py
NicolletteOchola/NeighborhoodWatch
adf209ac94b891fad07bd8197cd57699ea3d30bb
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views from django.conf import settings from django.conf.urls.static import static urlpatterns = [ url('^$', views.index, name='index'), url(r'^neighborhood/(\d+)', views.my_area, name='hood'), url(r'^neighborhood/(\d+)/join/$', views.join, name='join'), ur...
36.6
77
0.695811
78
549
4.833333
0.397436
0.04244
0.111406
0.095491
0
0
0
0
0
0
0
0
0.114754
549
14
78
39.214286
0.77572
0
0
0
0
0
0.211293
0.089253
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
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
0
0
0
1
57b31719436cdf6eaa81907b6e5c949f7a0a1837
1,566
py
Python
mmtbx/monomer_library/populate_auto_linking_origin_ids.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/monomer_library/populate_auto_linking_origin_ids.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/monomer_library/populate_auto_linking_origin_ids.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import division from mmtbx.monomer_library.server import mon_lib_list_cif, geostd_list_cif from mmtbx.monomer_library.server import merge_and_overwrite_cifs # ['SS BOND', # short desc. # # complete desc. # 'Disulphide bond for CYS-like sulphur atoms within 3A (default) using ' # 'values...
31.32
78
0.618135
220
1,566
4.190909
0.481818
0.091106
0.05423
0.049892
0.218004
0.172451
0.056399
0
0
0
0
0.023911
0.252235
1,566
49
79
31.959184
0.76345
0.3659
0
0
0
0
0.09465
0
0
0
0
0
0
0
null
null
0
0.1
null
null
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
57b7885c63463ab2f0dcec8b982e8eba545f3dd4
6,905
py
Python
mailpile/app.py
letaysoncb/mailpython
3eb012e9772558d8f37d06bd33db4c834dc83c89
[ "Apache-2.0" ]
1
2015-11-05T17:32:34.000Z
2015-11-05T17:32:34.000Z
mailpile/app.py
laborautonomo/Mailpile
6e17c2c5cbe131ea1f916145420dbc07e8ca13c0
[ "Apache-2.0" ]
null
null
null
mailpile/app.py
laborautonomo/Mailpile
6e17c2c5cbe131ea1f916145420dbc07e8ca13c0
[ "Apache-2.0" ]
null
null
null
import getopt import gettext import locale import os import sys import mailpile.util import mailpile.defaults from mailpile.commands import COMMANDS, Command, Action from mailpile.commands import Help, HelpSplash, Load, Rescan from mailpile.config import ConfigManager from mailpile.conn_brokers import DisableUnbrokere...
31.967593
78
0.590442
740
6,905
5.404054
0.335135
0.03826
0.024006
0.033008
0.187297
0.142786
0.082521
0.063516
0.03951
0.03951
0
0.004587
0.305431
6,905
215
79
32.116279
0.829233
0.080811
0
0.278788
0
0
0.042139
0.003352
0
0
0
0
0
0
null
null
0.030303
0.115152
null
null
0.006061
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
57b8db5457a7cecf0c0a51e1ab1efb96a9f6cb31
4,768
py
Python
src/py_scripts_v0.1/falcon_utgcns.py
WangGenomicsLab/FALCON
07ce2944ebd9aa624cc6ed32af59ec36a2590e7a
[ "BSD-3-Clause-Clear" ]
3
2016-07-01T10:44:11.000Z
2018-04-25T14:09:27.000Z
src/py_scripts_v0.1/falcon_utgcns.py
WangGenomicsLab/FALCON
07ce2944ebd9aa624cc6ed32af59ec36a2590e7a
[ "BSD-3-Clause-Clear" ]
null
null
null
src/py_scripts_v0.1/falcon_utgcns.py
WangGenomicsLab/FALCON
07ce2944ebd9aa624cc6ed32af59ec36a2590e7a
[ "BSD-3-Clause-Clear" ]
2
2016-07-01T18:40:47.000Z
2016-07-07T09:00:44.000Z
#!/usr/bin/env python #################################################################################$$ # Copyright (c) 2011-2014, Pacific Biosciences of California, Inc. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted (subject to the limi...
38.144
128
0.631292
621
4,768
4.692432
0.389694
0.026767
0.017159
0.027454
0.175017
0.1407
0.098147
0.089911
0.089911
0.046671
0
0.006968
0.247483
4,768
124
129
38.451613
0.805184
0.387584
0
0.1875
0
0
0.068097
0
0
0
0
0
0
0
null
null
0
0.109375
null
null
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
57bb394afbc373d88018f5f5be322d1e290a7c64
1,513
py
Python
examples/synthetic/no_inter_acc_comparison.py
veneres/gef
07912d01040ca0169977ddd49839050c81ec2349
[ "MIT" ]
2
2022-02-16T08:02:15.000Z
2022-02-16T13:07:53.000Z
examples/synthetic/no_inter_acc_comparison.py
veneres/gef
07912d01040ca0169977ddd49839050c81ec2349
[ "MIT" ]
null
null
null
examples/synthetic/no_inter_acc_comparison.py
veneres/gef
07912d01040ca0169977ddd49839050c81ec2349
[ "MIT" ]
null
null
null
import pickle from sklearn.metrics import mean_squared_error, r2_score import json import lightgbm as lgbm import numpy as np def main(): with open("config.json") as f: config_dict = json.load(f) model_path = config_dict["no_inter_model_path"] explainer_path = config_dict["no_inter_explai...
33.622222
109
0.699273
230
1,513
4.326087
0.213043
0.055276
0.096482
0.064322
0.637186
0.58794
0.503518
0.432161
0.371859
0.239196
0
0.014412
0.174488
1,513
44
110
34.386364
0.782226
0
0
0.057143
0
0
0.181097
0
0
0
0
0
0
1
0.028571
false
0
0.142857
0
0.171429
0.457143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
57bc4388bd262cd380148196e37062abfbf4009b
546
py
Python
tests/ut/test_api_logout.py
ctera/ctera-gateway-openapi
0b37af6cd4b53dfe0f66f4dc75dc131e99c63233
[ "Apache-2.0" ]
null
null
null
tests/ut/test_api_logout.py
ctera/ctera-gateway-openapi
0b37af6cd4b53dfe0f66f4dc75dc131e99c63233
[ "Apache-2.0" ]
null
null
null
tests/ut/test_api_logout.py
ctera/ctera-gateway-openapi
0b37af6cd4b53dfe0f66f4dc75dc131e99c63233
[ "Apache-2.0" ]
null
null
null
import mock from ctera_gateway_openapi.api import logout from tests.ut import base class TestApiLogout(base.BaseTest): def setUp(self): super().setUp() login_manager_class_mock = self.patch_call('ctera_gateway_openapi.api.logout.LoginManager') self.login_manager_instance_mock = login_man...
30.333333
99
0.758242
72
546
5.388889
0.472222
0.154639
0.123711
0.185567
0.247423
0.175258
0
0
0
0
0
0
0.163004
546
17
100
32.117647
0.849015
0
0
0
0
0
0.082418
0.082418
0
0
0
0
0.083333
1
0.166667
false
0
0.25
0
0.5
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
57bcabb9ab89534909e6a56be91d2d7054a5c2fe
2,836
py
Python
screen_events.py
b-ryan/py-screen-events
43bd31a11b01f7c1abbbd7f4c404c993c47a291c
[ "MIT" ]
1
2016-10-25T02:32:59.000Z
2016-10-25T02:32:59.000Z
screen_events.py
b-ryan/py-screen-events
43bd31a11b01f7c1abbbd7f4c404c993c47a291c
[ "MIT" ]
1
2018-03-20T20:28:46.000Z
2018-03-20T20:28:46.000Z
screen_events.py
b-ryan/py-screen-events
43bd31a11b01f7c1abbbd7f4c404c993c47a291c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import platform import threading import time class ScreenState: ON = 1 OFF = 2 if platform.system() == 'Darwin': import Quartz def init(): pass def screen_state(context): # thanks to http://stackoverflow.com/a/11511419/683436 d = Quartz.CGSessionCop...
27.269231
71
0.580748
293
2,836
5.399317
0.303754
0.039823
0.066372
0.04804
0.23641
0.139064
0.071429
0
0
0
0
0.011047
0.32969
2,836
103
72
27.533981
0.821147
0.02574
0
0.141026
0
0
0.104672
0.086563
0
0
0
0
0
0
null
null
0.012821
0.102564
null
null
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
57bf9483d1dca995b372cd4b795933d181ae9e98
11,545
py
Python
invar-example/target/generated-sources/example/python/TestAbcInfo.py
struqt/invar
4547a6de593839ae68e19bc108918fb0d2530d5e
[ "MIT" ]
7
2016-08-26T05:10:20.000Z
2017-08-09T14:28:56.000Z
invar-example/target/generated-sources/example/python/TestAbcInfo.py
struqt/invar
4547a6de593839ae68e19bc108918fb0d2530d5e
[ "MIT" ]
null
null
null
invar-example/target/generated-sources/example/python/TestAbcInfo.py
struqt/invar
4547a6de593839ae68e19bc108918fb0d2530d5e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # ===------------------------------* Python *------------------------------=== # THIS FILE IS GENERATED BY INVAR. DO NOT EDIT !!! # ===------------------------------------------------------------------------=== from TestAbcConflict import TestAbcConflict from...
28.647643
97
0.473365
1,302
11,545
4.039939
0.11828
0.161977
0.161027
0.138403
0.414449
0.386502
0.28308
0.190114
0.188213
0.107605
0
0.047456
0.368471
11,545
402
98
28.718905
0.673982
0.029883
0
0.396825
1
0
0.057766
0
0
0
0.003756
0
0
1
0.013228
false
0
0.018519
0
0.047619
0.010582
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
57cfd71b18d011ff38dc679d107360992957fb86
1,538
py
Python
setup.py
imcery/flask-redis
e65ea5b4cbf5aac6a93920ffc5b0d20d2f8e4806
[ "MIT" ]
null
null
null
setup.py
imcery/flask-redis
e65ea5b4cbf5aac6a93920ffc5b0d20d2f8e4806
[ "MIT" ]
null
null
null
setup.py
imcery/flask-redis
e65ea5b4cbf5aac6a93920ffc5b0d20d2f8e4806
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import io from setuptools import setup with io.open('README.md', encoding='utf-8') as f: README = f.read() with io.open('HISTORY.md', encoding='utf-8') as f: HISTORY = f.read() setup( name='Flask-Redis', version='0.1', url='https://github.com/imcery/flask-redis', auth...
31.387755
71
0.606632
170
1,538
5.441176
0.529412
0.143784
0.189189
0.112432
0.108108
0.108108
0.071351
0
0
0
0
0.017827
0.23407
1,538
48
72
32.041667
0.767402
0.013654
0
0
0
0
0.53628
0
0
0
0
0
0
1
0
false
0
0.047619
0
0.047619
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
57d1eb7fd820b7f9d5686fdd6375778d211f7627
6,786
py
Python
ros/src/tl_detector/light_classification/tl_classifier.py
james94/Capstone-Program-Autonomous-Vehicle-CarND
63d7b565fc80d5013551efb8d23941488e8e51f4
[ "MIT" ]
null
null
null
ros/src/tl_detector/light_classification/tl_classifier.py
james94/Capstone-Program-Autonomous-Vehicle-CarND
63d7b565fc80d5013551efb8d23941488e8e51f4
[ "MIT" ]
9
2019-12-16T22:23:09.000Z
2022-02-10T01:10:30.000Z
ros/src/tl_detector/light_classification/tl_classifier.py
james94/Capstone-Program-Autonomous-Vehicle-CarND
63d7b565fc80d5013551efb8d23941488e8e51f4
[ "MIT" ]
null
null
null
from styx_msgs.msg import TrafficLight import tensorflow as tf import numpy as np import uuid import os import cv2 import rospy TRAFFIC_LIGHTS = ['Green', 'Red', 'Yellow', 'Unknown'] home = os.path.expanduser("~") class TLClassifier(object): def __init__(self, is_site): #TODO load classifier if is...
43.780645
135
0.633952
836
6,786
4.919856
0.252392
0.075857
0.041332
0.032336
0.185023
0.147095
0.131534
0.123511
0.092876
0.065159
0
0.01442
0.26422
6,786
154
136
44.064935
0.809333
0.186561
0
0.041237
0
0
0.085169
0.036104
0
0
0
0.012987
0
1
0.072165
false
0
0.082474
0
0.226804
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
57d3ac209691862791928f664ad9f85108f8a877
414
py
Python
python/python_fund/star_param2.py
yanrong/book_demo
20cd13f3c3507a11e826ebbf22bd1c7bcb36e06f
[ "Apache-2.0" ]
null
null
null
python/python_fund/star_param2.py
yanrong/book_demo
20cd13f3c3507a11e826ebbf22bd1c7bcb36e06f
[ "Apache-2.0" ]
null
null
null
python/python_fund/star_param2.py
yanrong/book_demo
20cd13f3c3507a11e826ebbf22bd1c7bcb36e06f
[ "Apache-2.0" ]
null
null
null
def add(x,y):return x+y params = (1,2) print add(*params) def hello(**params): print params print '='*30 params = {'name':'Sir Robin','greeting':'Well met'} hello(**params) def with_stars(**kwds): print kwds['name'],'is',kwds['age'],'year old' def without_stars(kwds): print kwds['name'],'is',kwds['age'],'years o...
18
51
0.647343
67
414
3.940299
0.447761
0.015152
0.106061
0.136364
0.234848
0.234848
0.234848
0.234848
0
0
0
0.021798
0.113527
414
22
52
18.818182
0.697548
0
0
0.125
0
0
0.195652
0
0
0
0
0
0
0
null
null
0
0
null
null
0.375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
57d3e09bd4d79b6708298e2b151d3e6303d4ac77
2,717
py
Python
problems/782.Transform_to_Chessboard/li2.py
subramp-prep/leetcode
d125201d9021ab9b1eea5e5393c2db4edd84e740
[ "Unlicense" ]
null
null
null
problems/782.Transform_to_Chessboard/li2.py
subramp-prep/leetcode
d125201d9021ab9b1eea5e5393c2db4edd84e740
[ "Unlicense" ]
null
null
null
problems/782.Transform_to_Chessboard/li2.py
subramp-prep/leetcode
d125201d9021ab9b1eea5e5393c2db4edd84e740
[ "Unlicense" ]
null
null
null
import collections class Solution(object): def movesToChessboard(self, b): N = len(b) if any(b[0][0] ^ b[i][0] ^ b[0][j] ^ b[i][j] for i in range(N) for j in range(N)): return -1 if not N / 2 <= sum(b[0]) <= (N + 1) / 2: return -1 if not N / 2 <= sum(b[i][0...
38.814286
110
0.600294
505
2,717
3.229703
0.291089
0.012262
0.034335
0.033722
0.215205
0.14531
0.1355
0.118332
0.100552
0.100552
0
0.061871
0.268311
2,717
69
111
39.376812
0.758551
0.596982
0
0.115385
0
0
0
0
0
0
0
0
0
0
null
null
0
0.038462
null
null
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
57de2bd1b9fbd5865d36e8b81853868fd4548e1b
620
py
Python
comp/yelp/onsite2/MinCoinNum_swirl_streaming.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
comp/yelp/onsite2/MinCoinNum_swirl_streaming.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
comp/yelp/onsite2/MinCoinNum_swirl_streaming.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
# Think about another ways def mincoin(coins, target): # coins: positive nums coins.sort() cand = set(coins) minnums = [0] * target cnt = 0 while len(cand) != 0: cnt += 1 newcand = set() for c in cand: minnums[c] = cnt for coin in coins: ...
20.666667
41
0.41129
66
620
3.863636
0.5
0
0
0
0
0
0
0
0
0
0
0.029221
0.503226
620
29
42
21.37931
0.798701
0.072581
0
0.086957
0
0
0
0
0
0
0
0
0
1
0.043478
false
0
0
0
0.086957
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
57e0320461354e3875933659ecb0acca3a76667f
1,072
py
Python
home_server/pages/weather_station/wind.py
wwakabobik/home
518167bb705a18e5697bb261942dc1e10eac5bf0
[ "MIT" ]
null
null
null
home_server/pages/weather_station/wind.py
wwakabobik/home
518167bb705a18e5697bb261942dc1e10eac5bf0
[ "MIT" ]
null
null
null
home_server/pages/weather_station/wind.py
wwakabobik/home
518167bb705a18e5697bb261942dc1e10eac5bf0
[ "MIT" ]
1
2021-12-01T08:34:05.000Z
2021-12-01T08:34:05.000Z
from flask import render_template from db.queries import get_last_measurement_pack def wind_page(): wind_data = get_last_measurement_pack('wind_data', '0') return render_template("weather_station/wind_dashboard.html", avg_rps=wind_data['avg_rps'], max_rp...
42.88
65
0.48694
115
1,072
4.078261
0.26087
0.272921
0.093817
0.093817
0
0
0
0
0
0
0
0.001603
0.41791
1,072
24
66
44.666667
0.75
0
0
0
0
0
0.140858
0.032649
0
0
0
0
0
1
0.05
false
0
0.1
0
0.2
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
57e8c4e42922adae41d63aa6447e7d66b077bbfc
1,210
py
Python
python/misc/blackjack.py
christopher-burke/warmups
140c96ada87ec5e9faa4622504ddee18840dce4a
[ "MIT" ]
null
null
null
python/misc/blackjack.py
christopher-burke/warmups
140c96ada87ec5e9faa4622504ddee18840dce4a
[ "MIT" ]
2
2022-03-10T03:49:14.000Z
2022-03-14T00:49:54.000Z
python/misc/blackjack.py
christopher-burke/warmups
140c96ada87ec5e9faa4622504ddee18840dce4a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Blackjack. Create a function that takes a list of card numbers and checks if the sum of their value exceeds 21. If the sum exceeds 21, return True and if the sum is under or equal to 21, return False. Values of the cards are as follows: * 2-10 are their value. * J-K (face cards) count as 10...
26.888889
117
0.647934
211
1,210
3.611374
0.450237
0.07874
0.102362
0.099738
0.102362
0.076115
0.076115
0.076115
0.076115
0
0
0.047821
0.222314
1,210
44
118
27.5
0.761955
0.501653
0
0.117647
0
0
0.047782
0
0
0
0
0
0.235294
1
0.117647
false
0.058824
0
0
0.294118
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
57eab4913f0f9e717fd5c59817796ff14d88d524
5,885
py
Python
kubernetes/client/models/istio_networking_v1alpha3_envoy_filter_proxy_match.py
DrAuYueng/python
9e5346352b16122d7956b59cd7924ea49f320dd2
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/istio_networking_v1alpha3_envoy_filter_proxy_match.py
DrAuYueng/python
9e5346352b16122d7956b59cd7924ea49f320dd2
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/istio_networking_v1alpha3_envoy_filter_proxy_match.py
DrAuYueng/python
9e5346352b16122d7956b59cd7924ea49f320dd2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.15.6 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class IstioNetwo...
41.153846
516
0.66559
724
5,885
5.309392
0.233425
0.059313
0.104058
0.084287
0.57076
0.533039
0.511446
0.457596
0.381894
0.381894
0
0.01711
0.265081
5,885
142
517
41.443662
0.871676
0.538997
0
0.064516
1
0
0.045025
0
0
0
0
0
0
1
0.16129
false
0
0.048387
0
0.387097
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
57f3f7f6f1f77f1345ae7da35a79deb429e4c766
2,897
py
Python
beetsplug/subsonicupdate.py
Dhruv325/beets-py
f4412e757bac5a1b946707b312afefbed31e17a4
[ "MIT" ]
null
null
null
beetsplug/subsonicupdate.py
Dhruv325/beets-py
f4412e757bac5a1b946707b312afefbed31e17a4
[ "MIT" ]
null
null
null
beetsplug/subsonicupdate.py
Dhruv325/beets-py
f4412e757bac5a1b946707b312afefbed31e17a4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This file is part of beets. # Copyright 2016, Adrian Sampson. # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation t...
34.903614
75
0.640318
366
2,897
4.997268
0.513661
0.045927
0.014215
0.022963
0
0
0
0
0
0
0
0.017074
0.251985
2,897
82
76
35.329268
0.82695
0.463238
0
0
0
0
0.1481
0
0
0
0
0
0
1
0.05
false
0.1
0.2
0
0.275
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
57f43353506cc6e2115e6cd2467218b64790de06
1,726
py
Python
linregress.py
sumeet-iitg/MLProblems
08b68a222d63d4d482966cddefe9f71e4abecffe
[ "MIT" ]
null
null
null
linregress.py
sumeet-iitg/MLProblems
08b68a222d63d4d482966cddefe9f71e4abecffe
[ "MIT" ]
null
null
null
linregress.py
sumeet-iitg/MLProblems
08b68a222d63d4d482966cddefe9f71e4abecffe
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D def computeLoss(ys, xs, W): data_sz = len(ys) sq_err = (np.dot(W.T,xs) - ys)**2 avg_loss = np.sqrt(np.sum(sq_err))/data_sz return avg_loss def computeGradNorm(ys,xs, W): data_...
27.83871
78
0.566049
261
1,726
3.590038
0.367816
0.029883
0.026681
0.051227
0.10032
0.057631
0.034152
0
0
0
0
0.028363
0.285052
1,726
61
79
28.295082
0.730956
0.096756
0
0.1
0
0
0.084151
0
0
0
0
0
0
0
null
null
0
0.1
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
0
0
1
0
0
0
0
0
0
0
0
1
57fe6debe86f39a17df20968d9f9fbe6eca2ca24
643
py
Python
br_colpon/urls.py
leoliuabc/colpon
d9d97a28a28a5e7b5ee770d78840641c2c9f4df7
[ "Apache-2.0" ]
1
2021-05-14T05:54:53.000Z
2021-05-14T05:54:53.000Z
br_colpon/urls.py
leoliuabc/Colpon
d9d97a28a28a5e7b5ee770d78840641c2c9f4df7
[ "Apache-2.0" ]
null
null
null
br_colpon/urls.py
leoliuabc/Colpon
d9d97a28a28a5e7b5ee770d78840641c2c9f4df7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #-*- coding:utf8 -*- #Author: Leo #Email: leoliuabc@gmail.com #Date: 2018-05-05 from django.conf.urls import url from . import views from django.conf.urls.static import static from django.conf import settings urlpatterns = [ url(r'^$', views.home, name='home'), url(r'^stores/$', views.s...
32.15
65
0.653188
95
643
4.389474
0.442105
0.057554
0.100719
0.086331
0
0
0
0
0
0
0
0.019504
0.122862
643
19
66
33.842105
0.719858
0.144635
0
0
0
0
0.2
0.088073
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
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
17ae7f05712b3a008eb58cb83adb7197b8250182
320
py
Python
recipes/plyer/__init__.py
LarsDu/kivy-ios
71928646a261dac1a5be171ebe632eb34b7c2aa4
[ "MIT" ]
null
null
null
recipes/plyer/__init__.py
LarsDu/kivy-ios
71928646a261dac1a5be171ebe632eb34b7c2aa4
[ "MIT" ]
null
null
null
recipes/plyer/__init__.py
LarsDu/kivy-ios
71928646a261dac1a5be171ebe632eb34b7c2aa4
[ "MIT" ]
null
null
null
# pure-python package, this can be removed when we'll support any python package from toolchain import PythonRecipe class PlyerRecipe(PythonRecipe): version = "master" url = "https://github.com/kivy/plyer/archive/{version}.zip" depends = ["python", "pyobjus"] archs = ["i386"] recipe = PlyerRecipe()
24.615385
80
0.703125
39
320
5.769231
0.846154
0.115556
0
0
0
0
0
0
0
0
0
0.011321
0.171875
320
12
81
26.666667
0.837736
0.24375
0
0
0
0
0.309623
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
17af39217a5e9110c5e2de7cc3ca7f670c5482ee
5,753
py
Python
tests/test_passmanager.py
revilooliver/rp
9618b640039f911e98e0fa0f5766951bac7e16af
[ "Apache-2.0" ]
5
2020-12-16T07:58:35.000Z
2022-03-01T16:41:49.000Z
tests/test_passmanager.py
revilooliver/rp
9618b640039f911e98e0fa0f5766951bac7e16af
[ "Apache-2.0" ]
null
null
null
tests/test_passmanager.py
revilooliver/rp
9618b640039f911e98e0fa0f5766951bac7e16af
[ "Apache-2.0" ]
1
2020-11-19T17:31:49.000Z
2020-11-19T17:31:49.000Z
# -*- coding: utf-8 -*- # (C) Copyright Ji Liu and Luciano Bello 2020. # # 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 modifications or ...
32.502825
93
0.62211
728
5,753
4.848901
0.258242
0.043626
0.022663
0.038527
0.531161
0.466289
0.466289
0.444759
0.425496
0.425496
0
0.048598
0.25604
5,753
176
94
32.6875
0.765654
0.109856
0
0.477876
0
0
0.00684
0
0
0
0
0
0.079646
1
0.079646
false
0.115044
0.088496
0.00885
0.230089
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
17bb54ecb22c43f01511663f3f72663d4d7fa404
546
py
Python
src/series_parser.py
moonrollersoft/subtitles
75099c48e938968f760a248cf11e2f1fc748b413
[ "MIT" ]
null
null
null
src/series_parser.py
moonrollersoft/subtitles
75099c48e938968f760a248cf11e2f1fc748b413
[ "MIT" ]
null
null
null
src/series_parser.py
moonrollersoft/subtitles
75099c48e938968f760a248cf11e2f1fc748b413
[ "MIT" ]
null
null
null
import re SERIES_SEPARATOR_GROUP_REGEX = '( ?[eE]| ?[xX])' SERIES_GROUPS_REGEX = r'([0-9]+){}([0-9]+)'.format(SERIES_SEPARATOR_GROUP_REGEX) class SeriesFilenameParser: def __init__(self, filename): pattern = re.compile(SERIES_GROUPS_REGEX) matched_pattern = pattern.search(filename) self....
24.818182
80
0.67033
66
546
5.227273
0.454545
0.121739
0.115942
0.144928
0
0
0
0
0
0
0
0.013793
0.203297
546
21
81
26
0.77931
0
0
0.133333
0
0
0.06044
0
0
0
0
0
0
1
0.2
false
0
0.066667
0.133333
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
17c111fbf7b841b5a9fd0bbb03061a43ee5e7630
587
py
Python
test/test_discdiff.py
neitzke/stokes-numerics
8845aef7598ca245d095cca690bf48568758a8c9
[ "MIT" ]
1
2020-08-03T16:24:06.000Z
2020-08-03T16:24:06.000Z
test/test_discdiff.py
neitzke/stokes-numerics
8845aef7598ca245d095cca690bf48568758a8c9
[ "MIT" ]
null
null
null
test/test_discdiff.py
neitzke/stokes-numerics
8845aef7598ca245d095cca690bf48568758a8c9
[ "MIT" ]
null
null
null
import logging import logconfig logconfig.logconfig(filename=None) logconfig.loglevel(logging.INFO) import squaregrid from discdiff import * import pytest @pytest.mark.filterwarnings("ignore:the matrix subclass") def test_discdiff(): '''Create and print finite difference derivative matrices for a small square gri...
30.894737
88
0.744463
78
587
5.589744
0.666667
0.08945
0.103211
0.100917
0
0
0
0
0
0
0
0.005952
0.141397
587
18
89
32.611111
0.859127
0.267462
0
0
0
0
0.096698
0
0
0
0
0
0
1
0.071429
false
0
0.357143
0
0.428571
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
17c3ea148ee8462519643a310c3929a0c35cc6bb
3,292
py
Python
Back_End.py
UjjwalKr-git/Simple_Calculator
be4c18da51e91b9198fb51bbad3764ba29c13a4e
[ "Apache-2.0" ]
1
2020-01-24T18:21:16.000Z
2020-01-24T18:21:16.000Z
Back_End.py
UjjwalKr-git/Simple_Calculator
be4c18da51e91b9198fb51bbad3764ba29c13a4e
[ "Apache-2.0" ]
null
null
null
Back_End.py
UjjwalKr-git/Simple_Calculator
be4c18da51e91b9198fb51bbad3764ba29c13a4e
[ "Apache-2.0" ]
null
null
null
def addition(x, y): result = x result += y return result def substraction(x, y): result = x result -= y return result def divisionQ(x, y): result = x result = int(result / y) return result def divisionR(x, y): result = x result = int(result % y) ...
32.594059
131
0.558323
260
3,292
3.642308
0.176923
0.023231
0.059134
0.066526
0.565998
0.530095
0.419219
0.419219
0.419219
0.291447
0
0.014311
0.320778
3,292
100
132
32.92
0.409213
0
0
0.45
0
0
0.336466
0.279135
0
0
0
0
0
1
0.1375
false
0
0
0.0375
0.275
0.25
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
0
0
1
17caa14bf3a168e857b3ac858d2d53bafa13f2d9
1,213
py
Python
tests/object_store/utils/test_memory_mapped_file_writter.py
yellowdog/yellowdog-sdk-python-public
da69a7d6e45c92933e34fefcaef8b5d98dcd6036
[ "Apache-2.0" ]
null
null
null
tests/object_store/utils/test_memory_mapped_file_writter.py
yellowdog/yellowdog-sdk-python-public
da69a7d6e45c92933e34fefcaef8b5d98dcd6036
[ "Apache-2.0" ]
null
null
null
tests/object_store/utils/test_memory_mapped_file_writter.py
yellowdog/yellowdog-sdk-python-public
da69a7d6e45c92933e34fefcaef8b5d98dcd6036
[ "Apache-2.0" ]
null
null
null
import pytest from threading import Thread from yellowdog_client.object_store.utils import MemoryMappedFileWriterFactory class TestMemoryMappedFileWriter(object): @pytest.fixture def file_path(self, tmpdir): p = tmpdir.mkdir("sub").join("writter.txt") return str(p) def write(self, writer,...
37.90625
99
0.609233
149
1,213
4.85906
0.416107
0.099448
0.149171
0.18232
0.273481
0.273481
0
0
0
0
0
0.052397
0.260511
1,213
31
100
39.129032
0.754738
0
0
0
0
0
0.051937
0.019786
0
0
0
0
0.04
1
0.12
false
0
0.12
0
0.32
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
17cbc34fb4f9a5caa435b5d3aadce9aa8d749ed6
10,828
py
Python
crypto_tools/data/frequent_short_words_by_language.py
roccobarbi/crypto_tools
6a0e2bc27817b2390dfbb757e5a1703a6251926a
[ "MIT" ]
null
null
null
crypto_tools/data/frequent_short_words_by_language.py
roccobarbi/crypto_tools
6a0e2bc27817b2390dfbb757e5a1703a6251926a
[ "MIT" ]
null
null
null
crypto_tools/data/frequent_short_words_by_language.py
roccobarbi/crypto_tools
6a0e2bc27817b2390dfbb757e5a1703a6251926a
[ "MIT" ]
null
null
null
frequent_short_words_by_language = { "en": { 1: ["a", "i"], 2: ["am", "an", "as", "at", "be", "by", "do", "go", "he", "if", "in", "is", "it", "me", "mr", "my", "no", "of", "oh", "ok", "on", "or", "PM", "so", "to", "tv", "up", "us", "we"], 3: ["act", "add", "age", "ago", "air", "a...
104.115385
119
0.516162
1,027
10,828
5.438169
0.997079
0
0
0
0
0
0
0
0
0
0
0.002195
0.200499
10,828
103
120
105.126214
0.642948
0
0
0
0
0
0.511544
0
0
0
0
0
0
1
0
false
0.009709
0.009709
0
0.009709
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
17d0238b572723650742d68eaba385a2fcd87e6b
5,290
py
Python
src/db.py
JasonPuglisi/emmental
ec60e79ac7fc7322445de84e4d431a151a1e8299
[ "MIT" ]
2
2019-01-29T10:19:36.000Z
2020-02-05T20:25:58.000Z
src/db.py
JasonPuglisi/emmental
ec60e79ac7fc7322445de84e4d431a151a1e8299
[ "MIT" ]
54
2019-01-28T02:41:58.000Z
2019-04-16T21:24:09.000Z
src/db.py
JasonPuglisi/emmental
ec60e79ac7fc7322445de84e4d431a151a1e8299
[ "MIT" ]
1
2020-02-05T20:26:17.000Z
2020-02-05T20:26:17.000Z
"""Contains functionality for interfacing with the database.""" import os import uuid import bcrypt import mysql.connector def connect_db(): """Create a connection to MariaDB.""" dbconnection = mysql.connector.connect( host=os.environ['MARIADB_IP'], user=os.environ['MARIADB_USER'], pas...
32.256098
95
0.662004
647
5,290
5.279753
0.177743
0.04918
0.061183
0.058548
0.548888
0.507904
0.468384
0.383489
0.334309
0.306206
0
0.003188
0.229112
5,290
163
96
32.453988
0.834478
0.144991
0
0.459016
0
0
0.166404
0
0
0
0
0
0
1
0.106557
false
0.057377
0.032787
0
0.295082
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
17d029f1fa9f0e2edc26366a9147b9f430f7b4ac
1,482
py
Python
bincrafters_conventions/actions/check_for_spdx_license.py
madebr/bincrafters-repo-bincrafters-conventions
e537c0b53df21c99c6b4de646d79187218bce809
[ "MIT" ]
null
null
null
bincrafters_conventions/actions/check_for_spdx_license.py
madebr/bincrafters-repo-bincrafters-conventions
e537c0b53df21c99c6b4de646d79187218bce809
[ "MIT" ]
null
null
null
bincrafters_conventions/actions/check_for_spdx_license.py
madebr/bincrafters-repo-bincrafters-conventions
e537c0b53df21c99c6b4de646d79187218bce809
[ "MIT" ]
null
null
null
import spdx_lookup from conans.client import conan_api from conans.errors import ConanException def check_license(main, recipe_license): if spdx_lookup.by_id(recipe_license): main.output_result_check(passed=True, title="SPDX License identifier") return True else: main.output_result_che...
43.588235
95
0.651147
171
1,482
5.444444
0.391813
0.125671
0.068743
0.090226
0.306122
0.214823
0.214823
0.214823
0.214823
0.214823
0
0
0.272605
1,482
33
96
44.909091
0.863636
0
0
0.275862
0
0
0.198381
0
0
0
0
0
0
1
0.068966
false
0.137931
0.103448
0
0.344828
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
17d1852d61819d3f43dbd27e7221c0a0fbd5655c
22,172
py
Python
larcv/app/arxiv/mac/pyrgb/display/LabelingTool.py
mmajewsk/larcv2
9ee74e42b293d547d3a8510fa2139b2d4ccf6b89
[ "MIT" ]
14
2017-10-19T15:08:29.000Z
2021-03-31T21:21:07.000Z
larcv/app/arxiv/mac/pyrgb/display/LabelingTool.py
mmajewsk/larcv2
9ee74e42b293d547d3a8510fa2139b2d4ccf6b89
[ "MIT" ]
32
2017-10-25T22:54:06.000Z
2019-10-01T13:57:15.000Z
larcv/app/arxiv/mac/pyrgb/display/LabelingTool.py
mmajewsk/larcv2
9ee74e42b293d547d3a8510fa2139b2d4ccf6b89
[ "MIT" ]
16
2017-12-07T12:04:40.000Z
2021-11-15T00:53:31.000Z
import os,sys import numpy as np from .. import pg from .. import QtGui from ..lib.roislider import ROISlider class LabelingTool: """ Class holding labeling functions. This class is a state machine that modifies a ImageItem stored in a PlotItem. states: uninitiated: not yet worked with an image....
43.645669
144
0.622407
2,555
22,172
5.292368
0.165558
0.022482
0.032614
0.019672
0.42723
0.34344
0.264236
0.246339
0.220899
0.206404
0
0.014176
0.271423
22,172
507
145
43.731755
0.822892
0.08867
0
0.372881
0
0
0.055245
0
0
0
0
0
0
0
null
null
0.002825
0.014124
null
null
0.053672
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
17d3b6b5c79ddf58a243a353cab222488d4fee77
988
py
Python
tests/test_optimization_problems.py
WY-Wang/pySOT
a2de59a0ab00da0465b964e070199fe4773918cd
[ "BSD-3-Clause" ]
180
2015-11-17T03:36:31.000Z
2022-03-16T10:09:42.000Z
tests/test_optimization_problems.py
WY-Wang/pySOT
a2de59a0ab00da0465b964e070199fe4773918cd
[ "BSD-3-Clause" ]
41
2015-06-30T15:43:10.000Z
2021-02-04T06:03:02.000Z
tests/test_optimization_problems.py
WY-Wang/pySOT
a2de59a0ab00da0465b964e070199fe4773918cd
[ "BSD-3-Clause" ]
45
2015-10-29T16:40:11.000Z
2021-11-14T01:44:39.000Z
import importlib import inspect import numpy as np import pytest import pySOT.optimization_problems from pySOT.optimization_problems import OptimizationProblem from pySOT.utils import check_opt_prob def test_all(): module = importlib.import_module("pySOT.optimization_problems") for name, obj in inspect.getm...
29.058824
77
0.63664
116
988
5.258621
0.465517
0.111475
0.163934
0.045902
0.065574
0.065574
0
0
0
0
0
0.004196
0.276316
988
33
78
29.939394
0.848951
0.055668
0
0
0
0
0.065591
0.029032
0
0
0
0
0.083333
1
0.041667
false
0
0.333333
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
0
1
0
0
0
0
1
17d54eac5c261da64c862e866f14847b1a2ad460
470
py
Python
src/re_ranking_core/query_expansion/method/qe_base.py
RImbriaco/OML
4998cdebc3ac553ccd53b4caacf24d8c3d8fc07b
[ "MIT" ]
2
2021-09-08T12:33:05.000Z
2021-09-14T09:40:43.000Z
src/re_ranking_core/query_expansion/method/qe_base.py
RImbriaco/OML
4998cdebc3ac553ccd53b4caacf24d8c3d8fc07b
[ "MIT" ]
null
null
null
src/re_ranking_core/query_expansion/method/qe_base.py
RImbriaco/OML
4998cdebc3ac553ccd53b4caacf24d8c3d8fc07b
[ "MIT" ]
1
2021-09-08T12:35:10.000Z
2021-09-08T12:35:10.000Z
import numpy as np from abc import ABC, abstractmethod class QeBase(ABC): def __init__(self, vectors, ranking, config): vectors = vectors / np.expand_dims(np.linalg.norm(vectors, axis=1), axis=1) self.vectors = vectors self.ranking = ranking ...
23.5
75
0.591489
52
470
5.211538
0.5
0.081181
0
0
0
0
0
0
0
0
0
0.006349
0.329787
470
19
76
24.736842
0.853968
0
0
0.266667
0
0
0
0
0
0
0
0
0
1
0.2
false
0.133333
0.133333
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
17dd76ba5ae45931674d0e9ea3d90d98f9fa4a9e
1,312
py
Python
xmreg/base_define.py
xiaominghe2014/py_reg
d4c4f2e5171bc194157ad4d42550340db5ab1c92
[ "MIT" ]
1
2019-08-08T06:13:21.000Z
2019-08-08T06:13:21.000Z
xmreg/base_define.py
xiaominghe2014/py_reg
d4c4f2e5171bc194157ad4d42550340db5ab1c92
[ "MIT" ]
null
null
null
xmreg/base_define.py
xiaominghe2014/py_reg
d4c4f2e5171bc194157ad4d42550340db5ab1c92
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- """ @version: ?? @author: xiaoming @license: MIT Licence @contact: xiaominghe2014@gmail.com @site: @software: PyCharm @file: base_define.py @time: 2017/12/19 下午12:11 """ import const as xreg xreg.repeat_0_or_more = '*' xreg.repeat_1_or_more = '+' xreg.repeat_0_or_1 = '?' x...
20.184615
68
0.568598
192
1,312
3.734375
0.34375
0.136681
0.108787
0.142259
0.290098
0.23431
0.167364
0.167364
0
0
0
0.026
0.237805
1,312
64
69
20.5
0.691
0.182927
0
0.176471
0
0
0.038278
0
0
0
0
0
0
1
0.205882
false
0
0.029412
0
0.441176
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
17de533230424635188df6c3a34befb229e13dc8
4,251
py
Python
todo/views.py
fidele000/Ftodo-RestAPI-Django
8c695503e04a3957920910acb9f1bb823ece4287
[ "MIT" ]
null
null
null
todo/views.py
fidele000/Ftodo-RestAPI-Django
8c695503e04a3957920910acb9f1bb823ece4287
[ "MIT" ]
null
null
null
todo/views.py
fidele000/Ftodo-RestAPI-Django
8c695503e04a3957920910acb9f1bb823ece4287
[ "MIT" ]
null
null
null
from django.http import response from django.shortcuts import render from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from rest_framework import viewsets from rest_framework.authentication import TokenAuthentication from rest_framework import filter...
31.257353
85
0.684545
462
4,251
6.207792
0.287879
0.053696
0.053347
0.041492
0.30788
0.283473
0.25802
0.25802
0.20781
0.181311
0
0.001779
0.20654
4,251
136
86
31.257353
0.848503
0.129381
0
0.325581
0
0
0.071213
0
0
0
0
0
0
1
0.162791
false
0
0.162791
0.011628
0.732558
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
17e903028828adb380e7f4aefdabe357d03ef01f
535
py
Python
pragmatizt_functions/ira_functions.py
pragmatizt/lambdata
aed043486b932b7f0befec9a0977cf085c79be6c
[ "MIT" ]
null
null
null
pragmatizt_functions/ira_functions.py
pragmatizt/lambdata
aed043486b932b7f0befec9a0977cf085c79be6c
[ "MIT" ]
4
2020-03-24T17:42:36.000Z
2021-06-02T00:40:08.000Z
pragmatizt_functions/ira_functions.py
pragmatizt/lambdata
aed043486b932b7f0befec9a0977cf085c79be6c
[ "MIT" ]
null
null
null
from sklearn.model_selection import train_test_split def my_function(): print('hello world') def ira_split_version(X, y): X_train, X_val, y_train, y_val = train_test_split( X, y, train_size=0.5, test_size=0.5, random_state=42) print("X_train:", X_train.shape) print("X_val:", X_val.shape) ...
22.291667
61
0.684112
93
535
3.602151
0.397849
0.089552
0.062687
0.059701
0.119403
0.119403
0.119403
0.119403
0
0
0
0.013636
0.17757
535
23
62
23.26087
0.747727
0
0
0
0
0
0.072897
0
0
0
0
0
0
1
0.214286
false
0
0.071429
0
0.428571
0.357143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
17ed633dc9e21f28b67944061b1ab7390193b3f5
273
py
Python
beagle/tools.py
howeverforever/beagle
d805561c2e87467ff2045c8ea1f9f7fb74b710fb
[ "MIT" ]
null
null
null
beagle/tools.py
howeverforever/beagle
d805561c2e87467ff2045c8ea1f9f7fb74b710fb
[ "MIT" ]
null
null
null
beagle/tools.py
howeverforever/beagle
d805561c2e87467ff2045c8ea1f9f7fb74b710fb
[ "MIT" ]
1
2018-10-06T09:01:45.000Z
2018-10-06T09:01:45.000Z
from datetime import datetime, timedelta import time __all__ = ['get_datetime'] def get_datetime(utc0_time, delta=0): d = datetime.fromtimestamp(utc0_time) + timedelta(seconds=int(delta)) utc8 = datetime.fromtimestamp(time.mktime(d.timetuple())) return utc8
24.818182
73
0.747253
35
273
5.6
0.542857
0.112245
0
0
0
0
0
0
0
0
0
0.021277
0.139194
273
10
74
27.3
0.812766
0
0
0
0
0
0.043956
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
17f081cdd1ea1f5a064b04b0bee0746de436bb8b
3,661
py
Python
daemon/core/configservices/sercurityservices/services.py
montag451/core
3be162b0b0f54b35520b980023abdfad4ff5e489
[ "BSD-2-Clause" ]
null
null
null
daemon/core/configservices/sercurityservices/services.py
montag451/core
3be162b0b0f54b35520b980023abdfad4ff5e489
[ "BSD-2-Clause" ]
null
null
null
daemon/core/configservices/sercurityservices/services.py
montag451/core
3be162b0b0f54b35520b980023abdfad4ff5e489
[ "BSD-2-Clause" ]
null
null
null
from typing import Any, Dict import netaddr from core.config import Configuration from core.configservice.base import ConfigService, ConfigServiceMode from core.emulator.enumerations import ConfigDataTypes GROUP_NAME = "Security" class VpnClient(ConfigService): name = "VPNClient" group = GROUP_NAME dir...
25.78169
68
0.559683
328
3,661
6.158537
0.265244
0.026733
0.074257
0.089109
0.586634
0.512376
0.470792
0.447525
0.364356
0.364356
0
0.006395
0.31658
3,661
141
69
25.964539
0.800959
0
0
0.619048
0
0
0.125922
0
0
0
0
0
0
1
0.015873
false
0
0.039683
0
0.587302
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
17f0c92ba41f332eb74ebca5f1a0bf0bcbb884e2
4,977
py
Python
cabot_ui/test/test_navigation.py
CMU-cabot/cabot
b53874abd2804f23f62dcc8ff97a5ee39d3fe48c
[ "MIT" ]
14
2020-12-05T17:15:57.000Z
2022-02-09T05:51:09.000Z
cabot_ui/test/test_navigation.py
CMU-cabot/cabot
b53874abd2804f23f62dcc8ff97a5ee39d3fe48c
[ "MIT" ]
22
2021-02-25T06:56:23.000Z
2022-03-16T13:15:45.000Z
cabot_ui/test/test_navigation.py
CMU-cabot/cabot
b53874abd2804f23f62dcc8ff97a5ee39d3fe48c
[ "MIT" ]
7
2021-01-05T16:07:59.000Z
2022-03-24T02:48:14.000Z
#!/usr/bin/env python # Copyright (c) 2020 Carnegie Mellon University # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use...
35.297872
90
0.671891
662
4,977
4.903323
0.348943
0.036969
0.02711
0.032348
0.252311
0.252311
0.252311
0.244609
0.23167
0.186691
0
0.020419
0.222624
4,977
140
91
35.55
0.818558
0.21961
0
0.258427
0
0
0.060765
0.012048
0
0
0
0
0.258427
0
null
null
0
0.168539
null
null
0.044944
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
17f176f5f3ea741c0fb355c6fd48f4e6cf7be69b
10,585
py
Python
pythonsdk/messaging/messaging_pb2.py
jjrobotcn/andy4
4a0cb57aa5f318a3099fbfe6198620555b3a45af
[ "MIT" ]
null
null
null
pythonsdk/messaging/messaging_pb2.py
jjrobotcn/andy4
4a0cb57aa5f318a3099fbfe6198620555b3a45af
[ "MIT" ]
null
null
null
pythonsdk/messaging/messaging_pb2.py
jjrobotcn/andy4
4a0cb57aa5f318a3099fbfe6198620555b3a45af
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: messaging.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol...
36.12628
922
0.767029
1,170
10,585
6.630769
0.141026
0.034029
0.052591
0.023202
0.556845
0.492137
0.479505
0.479505
0.462233
0.413251
0
0.029302
0.113368
10,585
292
923
36.25
0.797336
0.049315
0
0.58498
1
0.003953
0.236669
0.158675
0
0
0
0
0
1
0
false
0
0.01581
0
0.01581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
17fbfa3585f86603c374d5d7b381ec384f3e57af
379
py
Python
app/recipe/urls.py
NhatHox23/nhat-recipe-backend
9a6bb84f43ceea94671b9a5a6318f7df648d597f
[ "MIT" ]
null
null
null
app/recipe/urls.py
NhatHox23/nhat-recipe-backend
9a6bb84f43ceea94671b9a5a6318f7df648d597f
[ "MIT" ]
null
null
null
app/recipe/urls.py
NhatHox23/nhat-recipe-backend
9a6bb84f43ceea94671b9a5a6318f7df648d597f
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework.routers import DefaultRouter from recipe.views import TagListAPI, TagCreateAPI # router = DefaultRouter() # router.register('tags', views.TagListAPI) app_name = 'recipe' urlpatterns = [ path('tag/list/', TagListAPI.as_view(), name="list-tag"), path('...
25.266667
66
0.736148
47
379
5.851064
0.531915
0.050909
0.072727
0
0
0
0
0
0
0
0
0
0.121372
379
14
67
27.071429
0.825826
0.174142
0
0
0
0
0.141935
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
aa037dbc7ff20d359b402cfe06bbe66330fae59a
1,786
py
Python
aiida_quantumespresso/tools/cpinputparser.py
unkcpz/aiida-quantumespresso
fbac0993bb8b6cdeba85717453debcf0ab062b5a
[ "MIT" ]
null
null
null
aiida_quantumespresso/tools/cpinputparser.py
unkcpz/aiida-quantumespresso
fbac0993bb8b6cdeba85717453debcf0ab062b5a
[ "MIT" ]
null
null
null
aiida_quantumespresso/tools/cpinputparser.py
unkcpz/aiida-quantumespresso
fbac0993bb8b6cdeba85717453debcf0ab062b5a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import re import numpy as np from qeinputparser import ( QeInputFile,parse_namelists,parse_atomic_positions, parse_atomic_species,parse_cell_parameters, RE_FLAGS ) from aiida.orm.data.array.kpoints import KpointsData from aiida.common.exceptions import ParsingError from qeinput...
38
80
0.673012
225
1,786
5.16
0.391111
0.056848
0.041344
0.067183
0.254953
0.237726
0.192937
0.192937
0.192937
0.192937
0
0.000756
0.259798
1,786
46
81
38.826087
0.877458
0.444009
0
0.352941
0
0
0
0
0
0
0
0
0
1
0.058824
false
0
0.352941
0
0.470588
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
0
0
0
1
aa064a37c01be7e3c7c4ef4e4348926463f1aa99
2,425
py
Python
release/stubs.min/System/ComponentModel/__init___parts/EventDescriptor.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/ComponentModel/__init___parts/EventDescriptor.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/ComponentModel/__init___parts/EventDescriptor.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class EventDescriptor(MemberDescriptor): """ Provides information about an event. """ def AddEventHandler(self, component, value): """ AddEventHandler(self: EventDescriptor,component: object,value: Delegate) When overridden in a derived class,binds the event to the component. c...
24.009901
118
0.65567
284
2,425
5.542254
0.295775
0.095299
0.050826
0.054003
0.383736
0.344346
0.344346
0.344346
0.344346
0.344346
0
0
0.258557
2,425
100
119
24.25
0.875417
0.351753
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.142857
false
0.142857
0
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
aa06eb362457f816c79b28db5a64931a57665c3d
13,738
py
Python
PyScripts(elseIsTkinter)/ex45.py
Dario213/My-Python-Scripts
dee96e84e8a892e7a72f96c47a1f161e068572cb
[ "Apache-2.0" ]
null
null
null
PyScripts(elseIsTkinter)/ex45.py
Dario213/My-Python-Scripts
dee96e84e8a892e7a72f96c47a1f161e068572cb
[ "Apache-2.0" ]
null
null
null
PyScripts(elseIsTkinter)/ex45.py
Dario213/My-Python-Scripts
dee96e84e8a892e7a72f96c47a1f161e068572cb
[ "Apache-2.0" ]
null
null
null
from random import randint from sys import exit from textwrap import dedent from sys import argv script, filename, filename2, filename3 = argv trezor_kod = f"{randint(1,9)}{randint(1,9)}{randint(1,9)}{randint(1,9)}" pismo = open(filename) transakcije = open(filename2) nalazi = open(filename3) class Sce...
37.84573
141
0.568059
1,650
13,738
4.692727
0.41697
0.004391
0.017048
0.024151
0.053339
0.026992
0.01369
0.004649
0.004649
0
0
0.006686
0.33593
13,738
362
142
37.950276
0.842048
0
0
0.125
0
0.010714
0.511139
0.004187
0
0
0
0
0
1
0.057143
false
0
0.014286
0.003571
0.185714
0.446429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
aa0765dd1af0629d353762a15c5834503696298b
1,127
py
Python
eahub/base/management/commands/remove_sensitive_data_from_db.py
walambert/eahub.org
21b6111b2626e4739c249d0881d16fbc818094cb
[ "MIT" ]
36
2019-02-22T23:07:14.000Z
2022-02-10T13:24:27.000Z
eahub/base/management/commands/remove_sensitive_data_from_db.py
walambert/eahub.org
21b6111b2626e4739c249d0881d16fbc818094cb
[ "MIT" ]
717
2019-02-21T22:07:55.000Z
2022-02-26T15:17:49.000Z
eahub/base/management/commands/remove_sensitive_data_from_db.py
walambert/eahub.org
21b6111b2626e4739c249d0881d16fbc818094cb
[ "MIT" ]
19
2019-04-14T14:37:56.000Z
2022-02-14T22:05:16.000Z
from django.contrib.auth.hashers import make_password from django.core.management import base from faker import Faker from eahub.base.models import User from eahub.profiles.models import Profile, ProfileAnalyticsLog from eahub.profiles.models import VisibilityEnum class Command(base.BaseCommand): def handle(self...
34.151515
80
0.694765
132
1,127
5.734848
0.401515
0.05284
0.044914
0.060766
0.202114
0
0
0
0
0
0
0.006742
0.210293
1,127
32
81
35.21875
0.84382
0
0
0
0
0
0.016859
0
0
0
0
0
0
1
0.04
false
0.12
0.24
0
0.32
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
aa0f11040e3112872c046214fa0184538efb2356
816
py
Python
provision/management/commands/getWinDC_groups.py
NOAA-GSD/qrba_os
83d079e43a7fa026c5ced79d7bc65f62cd74b90b
[ "CC0-1.0" ]
1
2019-11-14T03:43:32.000Z
2019-11-14T03:43:32.000Z
provision/management/commands/getWinDC_groups.py
NOAA-GSD/qrba_os
83d079e43a7fa026c5ced79d7bc65f62cd74b90b
[ "CC0-1.0" ]
null
null
null
provision/management/commands/getWinDC_groups.py
NOAA-GSD/qrba_os
83d079e43a7fa026c5ced79d7bc65f62cd74b90b
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/python from __future__ import unicode_literals # https://stackoverflow.com/questions/19475955/using-django-models-in-external-python-script from django.core.management.base import BaseCommand, CommandError import datetime from django.utils import timezone from provision.models import WinDC class Command(...
34
92
0.66299
102
816
5.215686
0.598039
0.050752
0.045113
0.052632
0.071429
0.071429
0
0
0
0
0
0.015504
0.209559
816
23
93
35.478261
0.809302
0.131127
0
0
0
0
0.158416
0
0
0
0
0
0
1
0.0625
false
0
0.3125
0
0.5
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
aa12ade53911b1553654c018fe843dd0b6b59000
2,054
py
Python
app/api/authentication.py
tchanbin/-Flask-Vue
7c949a949c673d86f4cdeae5552acabc7ca2a48c
[ "MIT" ]
null
null
null
app/api/authentication.py
tchanbin/-Flask-Vue
7c949a949c673d86f4cdeae5552acabc7ca2a48c
[ "MIT" ]
null
null
null
app/api/authentication.py
tchanbin/-Flask-Vue
7c949a949c673d86f4cdeae5552acabc7ca2a48c
[ "MIT" ]
null
null
null
from flask import g, jsonify from flask_httpauth import HTTPBasicAuth from ..models import User from . import api from .errors import unauthorized, forbidden from flask_login import current_user auth = HTTPBasicAuth() @auth.verify_password def verify_password(username_or_token, password): if username_or_token ==...
26
71
0.6889
266
2,054
5.078947
0.225564
0.097705
0.097705
0.051813
0.557365
0.54034
0.455959
0.455959
0.455959
0.455959
0
0.004908
0.206426
2,054
78
72
26.333333
0.823926
0.420643
0
0.058824
0
0
0.029386
0
0
0
0
0
0
1
0.117647
false
0.147059
0.176471
0.029412
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
aa15696ef9aad5e529254c8eef6558885a6e48f8
2,281
py
Python
data/make_classification/make_classification_helper.py
lurosenb/superquail
66f7e23b32d403f56af1bb5e366e76634b990b18
[ "MIT" ]
null
null
null
data/make_classification/make_classification_helper.py
lurosenb/superquail
66f7e23b32d403f56af1bb5e366e76634b990b18
[ "MIT" ]
null
null
null
data/make_classification/make_classification_helper.py
lurosenb/superquail
66f7e23b32d403f56af1bb5e366e76634b990b18
[ "MIT" ]
null
null
null
# TODO: cleanup into function import pandas as pd import numpy as np from sklearn.datasets import make_classification from sklearn.model_selection import train_test_split n_samples = 2000 n_features = 5 n_informative = 5 # relevant features to explain target n_redundant = 0 # linear combinations of informative n_repea...
31.246575
100
0.653661
314
2,281
4.493631
0.321656
0.085046
0.046067
0.059532
0.133239
0
0
0
0
0
0
0.019507
0.235861
2,281
73
101
31.246575
0.790017
0.185007
0
0
0
0
0.038961
0
0
0
0
0.013699
0
1
0.019608
false
0
0.078431
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
aa18f27a08235d4fd5f4b933145f0d801cee002c
2,921
py
Python
detector/detector.py
YunchuZhang/Visually-Grounded-Library-of-Behaviors-for-Generalizing-Manipulation-Across-Objects-Configurations-
896afda942dfc04e4aaad2ee751c32df1eb17913
[ "MIT" ]
1
2022-03-14T22:25:17.000Z
2022-03-14T22:25:17.000Z
detector/detector.py
YunchuZhang/Visually-Grounded-Library-of-Behaviors
896afda942dfc04e4aaad2ee751c32df1eb17913
[ "MIT" ]
null
null
null
detector/detector.py
YunchuZhang/Visually-Grounded-Library-of-Behaviors
896afda942dfc04e4aaad2ee751c32df1eb17913
[ "MIT" ]
null
null
null
import sys import pickle import imageio from munch import Munch import torch import numpy as np import pcp_utils from pcp_utils.utils import Config #grnn_dir = pcp_utils.utils.get_grnn_dir() #sys.path.append(grnn_dir) # #import model_nets #from backend import saverloader #import utils class Detector: def __in...
31.408602
144
0.66176
417
2,921
4.347722
0.323741
0.052951
0.046332
0.041919
0.278544
0.13679
0.113624
0.113624
0.113624
0.113624
0
0.006416
0.252996
2,921
92
145
31.75
0.824473
0.228346
0
0.041667
0
0
0.063653
0
0
0
0
0.021739
0
1
0.125
false
0.020833
0.166667
0
0.354167
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
aa1a4f0ad1816df15043891519eb74a753c6ba5c
534
py
Python
members/views/user_books_views.py
sadjad-tavakoli/farjad-agile
f40278c859b8af42e83a9935065a6713ca08e956
[ "MIT" ]
1
2022-03-16T07:08:29.000Z
2022-03-16T07:08:29.000Z
members/views/user_books_views.py
mousavihasans/farjad-agile
f40278c859b8af42e83a9935065a6713ca08e956
[ "MIT" ]
6
2019-12-26T16:39:13.000Z
2021-09-07T23:46:48.000Z
members/views/user_books_views.py
sadjad-tavakoli/farjad-agile
f40278c859b8af42e83a9935065a6713ca08e956
[ "MIT" ]
null
null
null
from django.views.generic.list import ListView from books.models import Books from farjad.utils.permission_checker import PermissionCheckerMixin, LoginRequired from members.views.area_setter import PanelAreaSetter class UserBooksListView(PanelAreaSetter, PermissionCheckerMixin, ListView): model = Books permi...
31.411765
81
0.786517
61
534
6.721311
0.622951
0.043902
0
0
0
0
0
0
0
0
0
0
0.142322
534
16
82
33.375
0.895197
0
0
0
0
0
0.067416
0.043071
0
0
0
0
0
1
0.083333
false
0
0.333333
0.083333
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
aa1bc0ccff101f37023bfa9b7286550d89c8011e
1,872
py
Python
Scripts/ackpushflood.py
froyo75/IDS_NetFlow_Based_System
54aae29c1a65844509ac9b754ce4dacdaab7f2fa
[ "MIT" ]
1
2016-02-24T00:43:29.000Z
2016-02-24T00:43:29.000Z
Scripts/ackpushflood.py
froyo75/IDS_NetFlow_Based_System
54aae29c1a65844509ac9b754ce4dacdaab7f2fa
[ "MIT" ]
null
null
null
Scripts/ackpushflood.py
froyo75/IDS_NetFlow_Based_System
54aae29c1a65844509ac9b754ce4dacdaab7f2fa
[ "MIT" ]
2
2015-07-30T08:57:59.000Z
2017-06-13T16:40:52.000Z
import sys,time from scapy.all import * from random import randint from threading import Thread class Ack(Thread): def __init__(self,target,port,nbPacket): self.t = target self.p = int(port) self.nb = int(nbPacket) self.listePort = [] Thread.__init__(self) def addPort...
27.130435
107
0.586004
291
1,872
3.676976
0.305842
0.02243
0.025234
0.031776
0.140187
0.11028
0.059813
0.059813
0.059813
0.059813
0
0.021091
0.265491
1,872
68
108
27.529412
0.757091
0
0
0.15625
0
0
0.086004
0
0
0
0
0
0
0
null
null
0.015625
0.0625
null
null
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
aa2a7ff0ada4cfba41cc99574a0fa6dc52ae7f73
649
py
Python
accounts/models.py
Kyeonga-Kim/HyundaiSteel_PJ
83705e6ee2e37bebe8e4b7a0626274d15a19f448
[ "MIT" ]
null
null
null
accounts/models.py
Kyeonga-Kim/HyundaiSteel_PJ
83705e6ee2e37bebe8e4b7a0626274d15a19f448
[ "MIT" ]
8
2021-04-08T21:51:46.000Z
2022-03-12T00:38:29.000Z
accounts/models.py
Kyeonga-Kim/HyundaiSteel_PJ
83705e6ee2e37bebe8e4b7a0626274d15a19f448
[ "MIT" ]
2
2020-07-10T02:08:44.000Z
2020-09-04T12:43:22.000Z
from django.db import models from imagekit.models import ProcessedImageField from imagekit.processors import Thumbnail from django.conf import settings class Profile(models.Model): nickname = models.CharField(max_length=20, blank=True) image = ProcessedImageField( blank=True, ...
34.157895
83
0.546995
57
649
6.140351
0.578947
0.057143
0
0
0
0
0
0
0
0
0
0.01995
0.382126
649
18
84
36.055556
0.852868
0
0
0
0
0
0.026194
0
0
0
0
0
0
1
0
false
0
0.266667
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
aa3079508590885e4d263668bd37c8d6d722bc1a
3,238
py
Python
Rucksack/aho.py
mbednarski/PUT-AiSD
48777e04d83a23e27684c0eb46a914e5c1cc0b8a
[ "MIT" ]
null
null
null
Rucksack/aho.py
mbednarski/PUT-AiSD
48777e04d83a23e27684c0eb46a914e5c1cc0b8a
[ "MIT" ]
null
null
null
Rucksack/aho.py
mbednarski/PUT-AiSD
48777e04d83a23e27684c0eb46a914e5c1cc0b8a
[ "MIT" ]
null
null
null
from collections import deque from loader import load_dict AdjList = [] def init_trie(keywords): """ creates a trie of keywords, then sets fail transitions """ create_empty_trie() add_keywords(keywords) set_fail_transitions() def create_empty_trie(): """ initalize the root of the trie """ A...
30.54717
86
0.596356
407
3,238
4.55774
0.206388
0.122911
0.049057
0.053908
0.183827
0.139084
0.111051
0.04097
0
0
0
0.007262
0.277023
3,238
105
87
30.838095
0.785135
0
0
0.090909
0
0
0.088215
0
0
0
0
0
0
0
null
null
0
0.025974
null
null
0.012987
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
aa336f1ea7706ee05716d3d82ab104fd8b7be069
8,586
py
Python
spec/test/stored_queries/test_fulltext_search.py
mikacashman/relation_engine
1144348bf7900be2fe3045e00e7058d7c7709161
[ "MIT" ]
null
null
null
spec/test/stored_queries/test_fulltext_search.py
mikacashman/relation_engine
1144348bf7900be2fe3045e00e7058d7c7709161
[ "MIT" ]
null
null
null
spec/test/stored_queries/test_fulltext_search.py
mikacashman/relation_engine
1144348bf7900be2fe3045e00e7058d7c7709161
[ "MIT" ]
null
null
null
""" Tests for the generic fulltext search These tests run within the re_api docker image, and require access to the ArangoDB, auth, and workspace images. """ import json import time import unittest import requests import os from spec.test.helpers import ( get_config, check_spec_test_env, create_test_docs,...
30.774194
111
0.554507
954
8,586
4.801887
0.27673
0.032744
0.027505
0.032089
0.680201
0.680201
0.659026
0.630212
0.627811
0.627811
0
0.031277
0.337177
8,586
278
112
30.884892
0.773678
0.087468
0
0.638767
0
0.017621
0.251446
0.028024
0
0
0
0.003597
0.048458
1
0.035242
false
0
0.026432
0
0.070485
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
aa4490ad65e1ae6c830272f3bdfcd6953d8e10b4
5,133
py
Python
pysnmp/RADLAN-BRGMACSWITCH-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/RADLAN-BRGMACSWITCH-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/RADLAN-BRGMACSWITCH-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 RADLAN-BRGMACSWITCH-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RADLAN-BRGMACSWITCH-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:37:02 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 ...
122.214286
642
0.789207
511
5,133
7.923679
0.285714
0.038528
0.067424
0.011855
0.405779
0.326006
0.253396
0.237096
0.234626
0.183008
0
0.057483
0.067991
5,133
41
643
125.195122
0.78888
0.066238
0
0
0
0
0.175376
0.014005
0
0
0
0
0
1
0
false
0
0.205882
0
0.205882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a4baa5f5c89220cec5609a19f6a5dda858e2ceab
1,381
py
Python
cookbook/tests/views/test_views_api.py
cazier/recipes
cdf4c0d1bb7ff9e7b020ddb6d7da492682efccde
[ "MIT" ]
null
null
null
cookbook/tests/views/test_views_api.py
cazier/recipes
cdf4c0d1bb7ff9e7b020ddb6d7da492682efccde
[ "MIT" ]
null
null
null
cookbook/tests/views/test_views_api.py
cazier/recipes
cdf4c0d1bb7ff9e7b020ddb6d7da492682efccde
[ "MIT" ]
null
null
null
from django.contrib import auth from django.urls import reverse from cookbook.models import Recipe from cookbook.tests.views.test_views import TestViews class TestViewsApi(TestViews): def test_external_link_permission(self): recipe = Recipe.objects.create( internal=False, link='t...
36.342105
73
0.698769
185
1,381
4.972973
0.281081
0.146739
0.18587
0.156522
0.540217
0.454348
0.454348
0.454348
0.433696
0.433696
0
0.032374
0.194786
1,381
37
74
37.324324
0.794964
0
0
0.214286
0
0
0.049964
0.018827
0
0
0
0
0.321429
1
0.107143
false
0
0.142857
0
0.285714
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a4bc227bf05160140af8728c4f32b955ae5846c0
6,010
py
Python
explosions_experimental/Game.py
P3D-Space-Tech-Demo/Section2SpaceflightDocking
d47c18f6e53a92564130f0fa1b70d72cfb1f6229
[ "BSD-3-Clause" ]
null
null
null
explosions_experimental/Game.py
P3D-Space-Tech-Demo/Section2SpaceflightDocking
d47c18f6e53a92564130f0fa1b70d72cfb1f6229
[ "BSD-3-Clause" ]
1
2021-05-19T22:50:41.000Z
2021-06-02T03:00:04.000Z
explosions_experimental/Game.py
P3D-Space-Tech-Demo/Section2SpaceflightDocking
d47c18f6e53a92564130f0fa1b70d72cfb1f6229
[ "BSD-3-Clause" ]
null
null
null
from direct.showbase.ShowBase import ShowBase from direct.task import Task from panda3d.core import Vec4, Vec3, Vec2 from panda3d.core import Shader from panda3d.core import ClockObject from panda3d.core import WindowProperties from panda3d.core import CardMaker import random class Game(ShowBase): def __init__(s...
43.23741
113
0.701165
586
6,010
7.168942
0.180887
0.16996
0.243513
0.028565
0.642704
0.564389
0.548679
0.491788
0.46846
0.46846
0
0.037052
0.17371
6,010
138
114
43.550725
0.808901
0
0
0
0
0
0.087767
0.019417
0
0
0
0
0
1
0.103448
false
0.017241
0.137931
0
0.275862
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a4becb988a559b021db7e28598ee6e113d7d9071
8,852
py
Python
App-Launcher/lib/app_launcher.py
softbankrobotics-labs/app-launcher
a708bb45b750c5fc31ea0dc5087b372a45a58bea
[ "BSD-3-Clause" ]
4
2019-12-04T11:47:43.000Z
2021-07-19T19:16:42.000Z
App-Launcher/lib/app_launcher.py
softbankrobotics-labs/app-launcher
a708bb45b750c5fc31ea0dc5087b372a45a58bea
[ "BSD-3-Clause" ]
1
2019-11-21T15:59:45.000Z
2019-11-21T15:59:45.000Z
App-Launcher/lib/app_launcher.py
softbankrobotics-labs/app-launcher
a708bb45b750c5fc31ea0dc5087b372a45a58bea
[ "BSD-3-Clause" ]
2
2019-11-21T15:45:38.000Z
2021-07-20T06:47:28.000Z
# -*- coding: utf-8 -*- import qi import sys from app_list_manager import AppListManager from view_manager import ViewManager from preferences_manager import PreferencesManager from dialog_manager import DialogManager import helpers class AppLauncher: @qi.nobind def __init__(self, session=None): self...
42.354067
111
0.583145
919
8,852
5.478781
0.252448
0.049652
0.033366
0.017875
0.247071
0.180338
0.147766
0.131082
0.106852
0.070705
0
0.004593
0.262201
8,852
208
112
42.557692
0.749043
0.073882
0
0.193333
0
0
0.115893
0.01784
0
0
0
0.004808
0
0
null
null
0.013333
0.046667
null
null
0.073333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a4c572266bc5dc9686876779142b9b2e7454c1cf
488
py
Python
modules/Word/adapters/dictionary/WebsterAdapter.py
stevekineeve88/orb
284cc78659e88e85e8773599da3bda382a8bb833
[ "MIT" ]
null
null
null
modules/Word/adapters/dictionary/WebsterAdapter.py
stevekineeve88/orb
284cc78659e88e85e8773599da3bda382a8bb833
[ "MIT" ]
null
null
null
modules/Word/adapters/dictionary/WebsterAdapter.py
stevekineeve88/orb
284cc78659e88e85e8773599da3bda382a8bb833
[ "MIT" ]
null
null
null
from modules.Word.adapters.abstracts.DictionaryAdapter import DictionaryAdapter class WebsterAdapter(DictionaryAdapter): def __init__(self): super().__init__() self.base_url = "https://www.merriam-webster.com" def is_word(self, word: str) -> bool: html = self.parse_html(f'{self.base_u...
37.538462
79
0.668033
61
488
5.098361
0.622951
0.051447
0.07074
0
0
0
0
0
0
0
0
0.002506
0.182377
488
12
80
40.666667
0.776942
0
0
0
0
0
0.227459
0.067623
0
0
0
0
0
1
0.222222
false
0
0.111111
0
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
0
0
0
1
a4d11e9b9bb2ba433d48c722c0bc79e4cf0a02ba
16,843
py
Python
code/python/demonstrate_Zelinka_etal13_16_decomp.py
subond/cloud-radiative-kernels
8cbd5edd72c6b527fa90283c02b909b7cd33752c
[ "BSD-3-Clause" ]
10
2017-11-07T05:53:12.000Z
2021-11-08T00:18:20.000Z
code/python/demonstrate_Zelinka_etal13_16_decomp.py
mzelinka/cloud-radiative-kernels
b24d7738b317a9534cb7a9f272bd22723be0e02b
[ "BSD-3-Clause" ]
null
null
null
code/python/demonstrate_Zelinka_etal13_16_decomp.py
mzelinka/cloud-radiative-kernels
b24d7738b317a9534cb7a9f272bd22723be0e02b
[ "BSD-3-Clause" ]
9
2018-03-28T15:18:38.000Z
2021-12-06T03:28:51.000Z
#!/usr/bin/env cdat """ # This script demonstrates how to compute the cloud feedback using cloud radiative kernels for a # short (2-year) period of MPI-ESM-LR using the difference between amipFuture and amip runs. # One should difference longer periods for more robust results -- these are just for demonstrative purpos...
44.676393
149
0.614261
2,501
16,843
4.043583
0.218713
0.008702
0.007416
0.014832
0.383961
0.328983
0.274498
0.260061
0.242658
0.206566
0
0.061146
0.199905
16,843
376
150
44.795213
0.6893
0.195511
0
0.214912
0
0
0.080554
0.043296
0
0
0
0
0
0
null
null
0
0.035088
null
null
0.004386
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a4d18b9576b1e60147c225883a7ca37d8d27fc8f
1,122
py
Python
thinking-in-python/python-spider/src/util/file_util.py
yihonglei/road-of-arch
cbd650de04637c9c18276f3b4d3fea8f9b92f22c
[ "Apache-2.0" ]
3
2020-07-22T10:51:58.000Z
2021-08-03T07:37:45.000Z
thinking-in-python/python-spider/src/util/file_util.py
yihonglei/road-of-arch
cbd650de04637c9c18276f3b4d3fea8f9b92f22c
[ "Apache-2.0" ]
1
2022-01-24T03:36:05.000Z
2022-02-08T09:02:57.000Z
thinking-in-python/python-spider/src/util/file_util.py
yihonglei/road-of-arch
cbd650de04637c9c18276f3b4d3fea8f9b92f22c
[ "Apache-2.0" ]
4
2021-06-28T15:28:11.000Z
2022-03-03T06:39:30.000Z
# -*- coding: utf-8 -*- import os """ 文件工具 @author yihonglei """ def create_dir_by_date(path): # 去除首位空格 path = path.strip() # 去除尾部 \ 符号 path = path.rstrip("\\") # 判断路径是否存在 # 存在 True # 不存在 False is_exists = os.path.exists(path) # 判断结果 if not is_exists: # 如果不存在则创...
15.802817
36
0.531194
135
1,122
4.311111
0.325926
0.109966
0.09622
0.123711
0.61512
0.61512
0.61512
0.61512
0.61512
0.61512
0
0.001362
0.345811
1,122
70
37
16.028571
0.791553
0.241533
0
0.48
0
0
0.011335
0
0
0
0
0
0
1
0.16
false
0
0.04
0
0.36
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a4d5c5acabaec1a5a1fe7aca1a95cfac2ea25659
391
py
Python
py_recommendation/data.py
kashy750/RecoSystem
2b18357417675bffa998f9c925f3d57c34e0d02f
[ "MIT" ]
null
null
null
py_recommendation/data.py
kashy750/RecoSystem
2b18357417675bffa998f9c925f3d57c34e0d02f
[ "MIT" ]
null
null
null
py_recommendation/data.py
kashy750/RecoSystem
2b18357417675bffa998f9c925f3d57c34e0d02f
[ "MIT" ]
null
null
null
class Item(object): """docstring for Item""" def __init__(self, itemName_list, itemTags_list=[], itemDesc_list=[]): self.itemNames = itemName_list self.itemTags = itemTags_list self.itemDescs = itemDesc_list class Users(object): """docstring for User""" def __init__(self, userIds_list, triedItems_list): ...
21.722222
71
0.736573
48
391
5.625
0.375
0.148148
0.133333
0
0
0
0
0
0
0
0
0
0.148338
391
17
72
23
0.810811
0.094629
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
a4d7357211df03cb4673a5de206a48ab8b73ccdf
2,024
py
Python
src/dxtbx/format/FormatCBFMiniPilatusDLS6MSN119.py
toastisme/dxtbx
fc24e215a8052e7e17be4ad4b41f9dbb474d852a
[ "BSD-3-Clause" ]
3
2019-08-16T05:46:29.000Z
2020-09-18T08:38:37.000Z
src/dxtbx/format/FormatCBFMiniPilatusDLS6MSN119.py
toastisme/dxtbx
fc24e215a8052e7e17be4ad4b41f9dbb474d852a
[ "BSD-3-Clause" ]
448
2019-04-06T01:20:56.000Z
2022-03-31T15:58:48.000Z
src/dxtbx/format/FormatCBFMiniPilatusDLS6MSN119.py
toastisme/dxtbx
fc24e215a8052e7e17be4ad4b41f9dbb474d852a
[ "BSD-3-Clause" ]
10
2019-04-08T13:30:32.000Z
2021-09-30T14:48:50.000Z
""" An implementation of the CBF image reader for Pilatus images, from the Pilatus 6M SN 119 currently on Diamond I24. """ import sys from dxtbx.format.FormatCBFMiniPilatus import FormatCBFMiniPilatus class FormatCBFMiniPilatusDLS6MSN119(FormatCBFMiniPilatus): """A class for reading mini CBF format Pilatus ima...
31.625
81
0.599802
245
2,024
4.832653
0.444898
0.02027
0.050676
0.068412
0.233108
0.233108
0.202703
0.160473
0.160473
0.094595
0
0.030736
0.308794
2,024
63
82
32.126984
0.815583
0.282609
0
0.212121
0
0
0.064148
0
0
0
0
0.015873
0
1
0.060606
false
0
0.060606
0
0.363636
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
a4e8658f9b20e05604b7a97bc32e179d90570b34
14,192
py
Python
surface_distance_test.py
RadiotherapyAI/surfacedist
9f9a7c83dd37d826fa2920c8cdafaec1c89ecc78
[ "Apache-2.0" ]
null
null
null
surface_distance_test.py
RadiotherapyAI/surfacedist
9f9a7c83dd37d826fa2920c8cdafaec1c89ecc78
[ "Apache-2.0" ]
null
null
null
surface_distance_test.py
RadiotherapyAI/surfacedist
9f9a7c83dd37d826fa2920c8cdafaec1c89ecc78
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
38.356757
80
0.659456
1,885
14,192
4.617507
0.120424
0.015855
0.016544
0.018842
0.787109
0.741958
0.685547
0.662224
0.617302
0.580767
0
0.0519
0.239713
14,192
369
81
38.460705
0.754773
0.073281
0
0.652459
0
0
0.017304
0
0
0
0
0
0.081967
1
0.045902
false
0
0.032787
0
0.091803
0.003279
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
0
0
0
1
a4ebe3f59553677ed074af5e5bdcef8368830d2b
466
py
Python
dataprep/tests/connector/test_read_sql.py
devinllu/dataprep
d56861e5bed3c608cace74983f797dc729072d0a
[ "MIT" ]
1,229
2019-12-21T02:58:59.000Z
2022-03-30T08:12:33.000Z
dataprep/tests/connector/test_read_sql.py
devinllu/dataprep
d56861e5bed3c608cace74983f797dc729072d0a
[ "MIT" ]
680
2019-12-19T06:09:23.000Z
2022-03-31T04:15:25.000Z
dataprep/tests/connector/test_read_sql.py
devinllu/dataprep
d56861e5bed3c608cace74983f797dc729072d0a
[ "MIT" ]
170
2020-01-08T03:27:26.000Z
2022-03-20T20:42:55.000Z
# type: ignore from os import environ import pytest import pandas as pd from ...utils import display_dataframe from ...connector import read_sql @pytest.mark.skipif( environ.get("DB_URL", "") == "" or environ.get("DB_SQL", "") == "", reason="Skip tests that requires database setup and sql query specified", )...
24.526316
77
0.684549
68
466
4.514706
0.529412
0.065147
0.078176
0
0
0
0
0
0
0
0
0
0.180258
466
18
78
25.888889
0.803665
0.025751
0
0
0
0
0.192478
0
0
0
0
0
0
1
0.071429
false
0
0.357143
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a4ef1a389790ae13c0bc131d00ee8dc550c8ee95
1,554
py
Python
run_me.py
tkanoff/therover
179f23c2c79f063e91751a9ffd70e06d18db6bd1
[ "MIT" ]
null
null
null
run_me.py
tkanoff/therover
179f23c2c79f063e91751a9ffd70e06d18db6bd1
[ "MIT" ]
null
null
null
run_me.py
tkanoff/therover
179f23c2c79f063e91751a9ffd70e06d18db6bd1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import re from plateau import Plateau from rover import Rover # Get test data from the file filename = "data.txt" # Introduce index to keep track of the rovers while iterating # over the data.txt entries (more than 2 allowed) rover_index = 0 plateau_initial = {} rovers = {} rover_position...
24.666667
76
0.645431
203
1,554
4.812808
0.394089
0.071648
0.065507
0.04913
0.061412
0.061412
0
0
0
0
0
0.006034
0.253539
1,554
62
77
25.064516
0.836207
0.21879
0
0
0
0
0.060682
0
0
0
0
0
0
0
null
null
0
0.090909
null
null
0.060606
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a4f11802ae314fe301764938aeeee30a3443f24c
910
py
Python
test_mdx_ditaa.py
hosseinn/py-markdown-ditaa
110314eb4aea5c26693d6cd88679766f97173f72
[ "MIT" ]
9
2015-01-08T09:08:32.000Z
2021-04-30T00:57:13.000Z
test_mdx_ditaa.py
hosseinn/py-markdown-ditaa
110314eb4aea5c26693d6cd88679766f97173f72
[ "MIT" ]
2
2015-09-17T03:22:52.000Z
2015-09-17T03:26:20.000Z
test_mdx_ditaa.py
hosseinn/py-markdown-ditaa
110314eb4aea5c26693d6cd88679766f97173f72
[ "MIT" ]
2
2015-09-17T03:02:48.000Z
2015-11-29T18:01:06.000Z
from __future__ import unicode_literals import markdown as md from nose.tools import assert_equal import os def test_with_fenced_code(): markdown_source = "\n".join( ["Test diagram:", "", "```ditaa", "+---+", "| A |", "+---+", "```", "", ...
24.594595
80
0.482418
94
910
4.510638
0.446809
0.141509
0.169811
0.066038
0
0
0
0
0
0
0
0.044728
0.312088
910
36
81
25.277778
0.632588
0
0
0.16129
0
0.032258
0.327473
0.057143
0
0
0
0
0.064516
1
0.032258
false
0.064516
0.129032
0
0.16129
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
a4f92f04111d1530d45a2cc5b8e7152912b55316
384
py
Python
src/djpmp/migrations/0020_auto_20200419_1004.py
daimon99/djpmp
c479b9a173b75be0ba90a9b3954b6f88f6a01efc
[ "MIT" ]
2
2020-05-13T03:56:00.000Z
2020-10-14T12:11:54.000Z
src/djpmp/migrations/0020_auto_20200419_1004.py
daimon99/djpmp
c479b9a173b75be0ba90a9b3954b6f88f6a01efc
[ "MIT" ]
null
null
null
src/djpmp/migrations/0020_auto_20200419_1004.py
daimon99/djpmp
c479b9a173b75be0ba90a9b3954b6f88f6a01efc
[ "MIT" ]
1
2021-02-24T08:26:32.000Z
2021-02-24T08:26:32.000Z
# Generated by Django 2.2.11 on 2020-04-19 02:04 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('djpmp', '0019_project_token'), ] operations = [ migrations.AlterModelOptions( name='hrcalendar', options={'verbose_name': '...
21.333333
84
0.614583
39
384
5.923077
0.74359
0.095238
0
0
0
0
0
0
0
0
0
0.070423
0.260417
384
17
85
22.588235
0.742958
0.119792
0
0
1
0
0.238095
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
35049e76466df7fd2acb9c0db2f4b61a78f65535
494
py
Python
test/test_compare.py
codeclimate-testing/falcon
c2d0b9da4d4cffd39cd489ffa886ee745d06f063
[ "Apache-2.0" ]
115
2015-01-18T13:28:05.000Z
2022-03-01T23:45:44.000Z
test/test_compare.py
codeclimate-testing/falcon
c2d0b9da4d4cffd39cd489ffa886ee745d06f063
[ "Apache-2.0" ]
null
null
null
test/test_compare.py
codeclimate-testing/falcon
c2d0b9da4d4cffd39cd489ffa886ee745d06f063
[ "Apache-2.0" ]
8
2015-02-12T04:08:42.000Z
2018-09-11T20:55:29.000Z
from testing_helpers import wrap @wrap def compare(a, b): if a < b: return 10 else: return -10 def test_compare_numbers(): compare(1,0) compare(1,1) compare(1,2) compare(1,True) compare(1,False) compare(1.0,1) compare(1.0,1.0) compare(-1.0, -1.0) compare(-2.0, -3.0) compare(-2.0, F...
17.642857
33
0.623482
82
494
3.670732
0.317073
0.239203
0.119601
0.099668
0.096346
0.096346
0
0
0
0
0
0.085213
0.192308
494
28
34
17.642857
0.669173
0
0
0
0
0
0.060606
0
0
0
0
0
0
1
0.166667
false
0
0.041667
0
0.291667
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3505fb9308eebac4dcedeb1a002317e05cf867b5
1,144
py
Python
data_load.py
karennik98/VGG-19
6d5e2f6838ce59a9409fbf71492a7f600ee07856
[ "MIT" ]
null
null
null
data_load.py
karennik98/VGG-19
6d5e2f6838ce59a9409fbf71492a7f600ee07856
[ "MIT" ]
null
null
null
data_load.py
karennik98/VGG-19
6d5e2f6838ce59a9409fbf71492a7f600ee07856
[ "MIT" ]
null
null
null
from pathlib import Path import numpy as np # linear algebra import pandas as pd # data_small processing, CSV file I/O (e.g. pd.read_csv) class DataLoader: def __init__(self, base_data_dir=str()): self.train_dir = base_data_dir + 'train/' self.test_dir = base_data_dir + 'test/' self.val_d...
36.903226
77
0.618007
167
1,144
4
0.365269
0.047904
0.065868
0.062874
0.121257
0.121257
0.121257
0
0
0
0
0.003538
0.258741
1,144
30
78
38.133333
0.784198
0.060315
0
0
0
0
0.048507
0
0
0
0
0
0
1
0.172414
false
0
0.103448
0.103448
0.448276
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
3506cbf3a01c027ea4ec9c204fb3e736f3d10324
2,346
py
Python
backend/tracker/api/mutations/projects/create.py
dmitriyvek/Tracker
b2903d0e980c8480e9c9cbecbfa3987997c7f04e
[ "MIT" ]
null
null
null
backend/tracker/api/mutations/projects/create.py
dmitriyvek/Tracker
b2903d0e980c8480e9c9cbecbfa3987997c7f04e
[ "MIT" ]
null
null
null
backend/tracker/api/mutations/projects/create.py
dmitriyvek/Tracker
b2903d0e980c8480e9c9cbecbfa3987997c7f04e
[ "MIT" ]
null
null
null
import graphene from graphene.types import ResolveInfo from ..base import BaseMutationPayload from tracker.api.scalars.projects import Description, Title from tracker.api.schemas.projects import ProjectCreationSchema from tracker.api.services import validate_input from tracker.api.services.projects import ( check_...
34.5
77
0.732737
237
2,346
7.139241
0.324895
0.045508
0.05792
0.026005
0
0
0
0
0
0
0
0
0.190111
2,346
67
78
35.014925
0.890526
0.013214
0
0
0
0
0.061932
0
0
0
0
0
0
1
0.019608
false
0
0.196078
0
0.568627
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
35088061ff295e04ca2e5de11c7e6c2b5717befa
1,001
py
Python
bin/ipconvert.py
doksu/TA-ipconvert
b9227ab5ce7164b753deb34c25c34f544397cb49
[ "MIT" ]
null
null
null
bin/ipconvert.py
doksu/TA-ipconvert
b9227ab5ce7164b753deb34c25c34f544397cb49
[ "MIT" ]
1
2020-12-25T06:19:47.000Z
2020-12-25T06:19:47.000Z
bin/ipconvert.py
doksu/TA-ipconvert
b9227ab5ce7164b753deb34c25c34f544397cb49
[ "MIT" ]
1
2019-08-28T14:22:07.000Z
2019-08-28T14:22:07.000Z
#!/usr/bin/env python import csv import sys import socket import struct if len(sys.argv) != 3: print("Usage: python ipconvert.py [integer field] [string field]") sys.exit(1) else: integerfield = sys.argv[1] stringfield = sys.argv[2] infile = sys.stdin outfile = sys.stdout r = csv.Dict...
22.75
100
0.585415
113
1,001
5.168142
0.477876
0.123288
0.077055
0.065068
0.145548
0
0
0
0
0
0
0.007163
0.302697
1,001
43
101
23.27907
0.829513
0.01998
0
0.290323
0
0
0.062245
0
0
0
0
0
0
1
0
false
0.064516
0.129032
0
0.129032
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
0
0
1
0
0
0
0
0
1
350ed33de0f7452c040f3f826428dde64a5bc608
5,590
py
Python
RSGISLib/ZonalStats/PALSAR/SortExtractedData.py
petebunting/rsgis_scripts
b35b0403cdfad6c63824d4f8c038f190cdb5978d
[ "MIT" ]
4
2020-09-16T10:45:15.000Z
2021-05-06T04:34:32.000Z
RSGISLib/ZonalStats/PALSAR/SortExtractedData.py
petebunting/rsgis_scripts
b35b0403cdfad6c63824d4f8c038f190cdb5978d
[ "MIT" ]
null
null
null
RSGISLib/ZonalStats/PALSAR/SortExtractedData.py
petebunting/rsgis_scripts
b35b0403cdfad6c63824d4f8c038f190cdb5978d
[ "MIT" ]
2
2020-07-06T18:03:40.000Z
2022-02-15T12:45:34.000Z
#!/usr/bin/env python #################################### #################################### ## SortExtractedData.py ## ## Script to sort zonal stats ## ## data into single spreadsheet ## ## ## ## Author: Dan Clewley ## ## Email: ddc06@aber.ac.uk ## #...
36.776316
98
0.528444
481
5,590
6.108108
0.338877
0.05514
0.073519
0.006807
0.056501
0.002723
0.002723
0
0
0
0
0.008371
0.358855
5,590
151
99
37.019868
0.811384
0.19034
0
0.119565
0
0
0.039954
0
0
0
0
0
0
0
null
null
0
0.021739
null
null
0.021739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
35114c9fb0d01cb231bd67fb930d58915b237d97
2,616
py
Python
experiments/interpreting_shifts/launchers/jan1922.py
lxuechen/swissknife
43dbd36f1e998ebe29c0b85fafd0de765dfb5de8
[ "MIT" ]
1
2022-02-25T00:00:30.000Z
2022-02-25T00:00:30.000Z
experiments/interpreting_shifts/launchers/jan1922.py
lxuechen/swissknife
43dbd36f1e998ebe29c0b85fafd0de765dfb5de8
[ "MIT" ]
null
null
null
experiments/interpreting_shifts/launchers/jan1922.py
lxuechen/swissknife
43dbd36f1e998ebe29c0b85fafd0de765dfb5de8
[ "MIT" ]
null
null
null
"""Generate shell scripts to run. This is a template script. Filling out the stuff below each time before running new experiments helps with organization and avoids the messiness once there are many experiments. date: 01/19/22 purpose: Ablation studies: Feature extractor DeepJDOT training ...
29.066667
79
0.589067
294
2,616
4.884354
0.377551
0.100279
0.071031
0.061281
0.244429
0.190808
0.075209
0.075209
0
0
0
0.02672
0.327599
2,616
89
80
29.393258
0.789653
0.176988
0
0.064516
1
0
0.330848
0.153308
0
0
0
0
0
1
0.032258
false
0
0.032258
0
0.080645
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3513de9ad8f0cb1cff9ada907364e74889072b06
4,063
py
Python
grr/server/grr_response_server/flows/general/read_low_level_test.py
BA7JCM/grr
c6f3b19e73e1d76a195d3c9a63e894ace6ea2508
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/flows/general/read_low_level_test.py
BA7JCM/grr
c6f3b19e73e1d76a195d3c9a63e894ace6ea2508
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/flows/general/read_low_level_test.py
BA7JCM/grr
c6f3b19e73e1d76a195d3c9a63e894ace6ea2508
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Tests for read_low_level.""" import os from absl import app from grr_response_client.client_actions import read_low_level as read_low_level_actions from grr_response_server import file_store from grr_response_server.databases import db from grr_response_server.flows.general import read_low_l...
31.253846
87
0.711051
553
4,063
4.895118
0.222423
0.041374
0.053195
0.035094
0.672331
0.643517
0.643517
0.630218
0.630218
0.630218
0
0.01035
0.191484
4,063
129
88
31.496124
0.813699
0.073591
0
0.609195
0
0
0.035647
0.012329
0
0
0
0
0.114943
1
0.08046
false
0
0.103448
0
0.206897
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
351a0a4188eb077e06ebb6763ccc5ffc259ea739
3,110
py
Python
thirdparty/blender_autocomplete-master/2.82/bpy_extras/view3d_utils.py
Ray1184/HPMSBatch
3852710e7366361cb9e90f471ddccbbce5ffe8ee
[ "MIT" ]
5
2020-10-09T00:05:39.000Z
2022-02-01T07:59:47.000Z
thirdparty/blender_autocomplete-master/2.82/bpy_extras/view3d_utils.py
Ray1184/HPMSBatch
3852710e7366361cb9e90f471ddccbbce5ffe8ee
[ "MIT" ]
null
null
null
thirdparty/blender_autocomplete-master/2.82/bpy_extras/view3d_utils.py
Ray1184/HPMSBatch
3852710e7366361cb9e90f471ddccbbce5ffe8ee
[ "MIT" ]
1
2020-11-27T06:21:23.000Z
2020-11-27T06:21:23.000Z
import sys import typing import bpy import mathutils def location_3d_to_region_2d(region: 'bpy.types.Region', rv3d: 'bpy.types.RegionView3D', coord, default=None) -> 'mathutils.Vector': '''Return the region relative 2d location...
41.466667
131
0.659164
406
3,110
4.950739
0.192118
0.063682
0.055721
0.079602
0.677114
0.59801
0.569154
0.569154
0.569154
0.544776
0
0.024138
0.254019
3,110
74
132
42.027027
0.842241
0.653376
0
0.409091
0
0
0.233766
0.095238
0
0
0
0
0
1
0.181818
false
0.181818
0.181818
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
351b48d0dafefdd05818a290496adb4ab64de0e5
362
py
Python
classes/place.py
New-Humans/ubfs
2b2639120559bf4fe02b080f659a9564eace7423
[ "Apache-2.0" ]
null
null
null
classes/place.py
New-Humans/ubfs
2b2639120559bf4fe02b080f659a9564eace7423
[ "Apache-2.0" ]
null
null
null
classes/place.py
New-Humans/ubfs
2b2639120559bf4fe02b080f659a9564eace7423
[ "Apache-2.0" ]
null
null
null
from .context import Context from .spec import Spec class Place(Context): """Places are all contexts by nature. Not many shared properties besides! Attributes bool isPlace Overridden from Entity Spec spec Overridden from Entity""" # Things that child class SHOULDNT need to redeclare isPlace = True ...
22.625
74
0.718232
47
362
5.531915
0.659574
0.107692
0.153846
0
0
0
0
0
0
0
0
0
0.207182
362
15
75
24.133333
0.905923
0.679558
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.4
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
352563358fc4100f90c699a534bec1ff651a5b9d
367
py
Python
pythonProject/040.py
MontanhaRio/python
43ad6173d692ebeb153c23c893e4b8f0bf07afcc
[ "MIT" ]
null
null
null
pythonProject/040.py
MontanhaRio/python
43ad6173d692ebeb153c23c893e4b8f0bf07afcc
[ "MIT" ]
null
null
null
pythonProject/040.py
MontanhaRio/python
43ad6173d692ebeb153c23c893e4b8f0bf07afcc
[ "MIT" ]
null
null
null
#040 - Aquele clássico da Média nota1 = int(input('primeira nota: ')) nota2 = int(input('segunda nota: ')) media = (nota1 + nota2) / 2 print(f'tirando {nota1:.1f} e {nota2:.1f}, a media do aluno e {media:.1f}') if 7 > media >= 5: print('o aluno esta em recuperacao.') elif media < 5: print('o aluno esta reprovas...
30.583333
75
0.643052
58
367
4.068966
0.568966
0.076271
0.139831
0.190678
0.177966
0.177966
0
0
0
0
0
0.053691
0.188011
367
11
76
33.363636
0.738255
0.081744
0
0
0
0.1
0.497024
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
35280ae17c2bed914028f4a3abd4b9730b4057bf
540
py
Python
utils.py
manand881/food-reviews-sentiment-analysis
c8ca312d4d14d2486ce40db8a2c0cdc34062bcfa
[ "MIT" ]
11
2019-04-20T11:15:16.000Z
2022-02-09T22:02:43.000Z
utils.py
manand881/food-reviews-sentiment-analysis
c8ca312d4d14d2486ce40db8a2c0cdc34062bcfa
[ "MIT" ]
6
2020-01-28T22:45:58.000Z
2022-02-10T00:22:18.000Z
utils.py
manand881/food-reviews-sentiment-analysis
c8ca312d4d14d2486ce40db8a2c0cdc34062bcfa
[ "MIT" ]
6
2020-05-30T19:49:34.000Z
2022-02-19T01:57:33.000Z
import numpy as np from string import punctuation # make it a set to accelerate tests punc = set(punctuation) def clean_text(text): return ''.join([ c.lower() for c in text if c not in punc ]) def tokenize_words(words, vocab2int): words = words.split() tokenized_words = np.zeros((len(words),))...
28.421053
65
0.618519
75
540
4.386667
0.613333
0.12766
0
0
0
0
0
0
0
0
0
0.005195
0.287037
540
19
66
28.421053
0.849351
0.12037
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0.071429
0.142857
0.071429
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
3529dfed05da0301cc1a8f750f90a43f2a090209
6,068
py
Python
shop/migrations/0001_initial.py
Zadigo/mycommerce
145031ebb359389e680a820577a4b6b2d382646d
[ "MIT" ]
null
null
null
shop/migrations/0001_initial.py
Zadigo/mycommerce
145031ebb359389e680a820577a4b6b2d382646d
[ "MIT" ]
null
null
null
shop/migrations/0001_initial.py
Zadigo/mycommerce
145031ebb359389e680a820577a4b6b2d382646d
[ "MIT" ]
null
null
null
# Generated by Django 4.0.1 on 2022-04-18 12:07 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import shop.utils import shop.validators class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(...
52.765217
411
0.581905
613
6,068
5.600326
0.269168
0.028838
0.031459
0.036703
0.430527
0.39965
0.374599
0.290708
0.279348
0.253714
0
0.011987
0.257581
6,068
114
412
53.22807
0.750055
0.007416
0
0.46729
1
0
0.178708
0.01229
0
0
0
0
0
1
0
false
0
0.046729
0
0.084112
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3533fad7335e8f7c13d7c01ca391dbcfd1c404e1
3,481
py
Python
model_navigator/perf_analyzer/profiling_data.py
triton-inference-server/model_navigator
ec2915f4f5a6b9ed7e1b59290899e2b56b98bcc7
[ "ECL-2.0", "Apache-2.0" ]
49
2021-04-09T18:32:07.000Z
2022-03-29T07:32:24.000Z
model_navigator/perf_analyzer/profiling_data.py
triton-inference-server/model_navigator
ec2915f4f5a6b9ed7e1b59290899e2b56b98bcc7
[ "ECL-2.0", "Apache-2.0" ]
7
2021-07-13T09:00:12.000Z
2021-11-15T17:16:35.000Z
model_navigator/perf_analyzer/profiling_data.py
triton-inference-server/model_navigator
ec2915f4f5a6b9ed7e1b59290899e2b56b98bcc7
[ "ECL-2.0", "Apache-2.0" ]
7
2021-04-09T18:31:56.000Z
2022-03-01T08:08:04.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
35.161616
115
0.674232
462
3,481
4.948052
0.411255
0.026247
0.01706
0.013998
0.017498
0
0
0
0
0
0
0.005299
0.241023
3,481
98
116
35.520408
0.859955
0.315714
0
0
0
0
0.106491
0
0
0
0
0.010204
0
1
0.066667
false
0
0.133333
0.016667
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
35364c2112b0e307595f6e0a34ba48e6612fd275
752
py
Python
test/test_signals_v1.py
morganwu277/chan
05e63f05c9e46460395507a2cd21d1d9c96b12c2
[ "MIT" ]
null
null
null
test/test_signals_v1.py
morganwu277/chan
05e63f05c9e46460395507a2cd21d1d9c96b12c2
[ "MIT" ]
null
null
null
test/test_signals_v1.py
morganwu277/chan
05e63f05c9e46460395507a2cd21d1d9c96b12c2
[ "MIT" ]
null
null
null
# coding: utf-8 import sys import warnings sys.path.insert(0, '.') sys.path.insert(0, '..') import os import pandas as pd import czsc from czsc.analyze import KlineAnalyze, find_zs from czsc.signals_v1 import KlineSignals warnings.warn("czsc version is {}".format(czsc.__version__)) cur_path = os.path.split(os.path....
25.066667
60
0.707447
119
752
4.268908
0.521008
0.041339
0.051181
0.055118
0
0
0
0
0
0
0
0.043011
0.134309
752
29
61
25.931034
0.737327
0.043883
0
0
0
0
0.069832
0
0
0
0
0
0
1
0.047619
false
0
0.333333
0
0.380952
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
353a4932168abe444b1d7591338cbc617f9a6ade
6,325
py
Python
jsmp/NN_trainer.py
robbie-manolache/kaggle-jsmp
548b236de383a962956723ddd916c350ad713e53
[ "Apache-2.0" ]
2
2021-03-28T21:07:15.000Z
2021-03-29T18:59:20.000Z
jsmp/NN_trainer.py
robert-manolache/kaggle-jsmp
548b236de383a962956723ddd916c350ad713e53
[ "Apache-2.0" ]
null
null
null
jsmp/NN_trainer.py
robert-manolache/kaggle-jsmp
548b236de383a962956723ddd916c350ad713e53
[ "Apache-2.0" ]
1
2021-03-29T18:59:39.000Z
2021-03-29T18:59:39.000Z
## Functions for to train action optimization model ## import os import json from datetime import datetime import numpy as np import tensorflow.keras.backend as K from tensorflow import keras from jsmp.query_pq import query_train_pq, query_preds_pq from jsmp.eval_tools import compute_utility def __profit_maximizer__...
33.289474
89
0.541502
793
6,325
4.105927
0.235813
0.041769
0.018428
0.027641
0.345823
0.305897
0.291769
0.236486
0.236486
0.169533
0
0.004267
0.333123
6,325
190
90
33.289474
0.767662
0.046166
0
0.316901
0
0
0.090117
0
0
0
0
0
0
1
0.028169
false
0.06338
0.056338
0
0.112676
0.014085
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
353f51ec6640a3a494796f6f7ce0acb01c48949b
855
py
Python
django_git/management/commands/git_pull_utils/connectivity_manager.py
weijia/django-git
e1e03de7fafcce05caa57b475ce5a73099523514
[ "BSD-3-Clause" ]
null
null
null
django_git/management/commands/git_pull_utils/connectivity_manager.py
weijia/django-git
e1e03de7fafcce05caa57b475ce5a73099523514
[ "BSD-3-Clause" ]
null
null
null
django_git/management/commands/git_pull_utils/connectivity_manager.py
weijia/django-git
e1e03de7fafcce05caa57b475ce5a73099523514
[ "BSD-3-Clause" ]
null
null
null
import traceback import urllib2 import urlparse class ConnectivityManager(object): cache = {} # def __init__(self): # super(ConnectivityManager, self).__init__() # self.cache = {} def is_connectable(self, url): # server_url = self.get_server(url) server_url = url ...
27.580645
75
0.567251
88
855
5.295455
0.431818
0.154506
0.096567
0.11588
0.120172
0.120172
0
0
0
0
0
0.012456
0.34269
855
30
76
28.5
0.816726
0.14152
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0.047619
0.142857
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
0
0
1
0
0
0
0
0
0
0
0
1
3541f1bd629bd08e789de781281ceb7c4f0a8064
11,536
py
Python
tools/inference_final.py
eryuehouniao/mmdetection
e80df144aeb2000116f1a8deb98fa4916b1fe5c3
[ "Apache-2.0" ]
1
2019-10-29T06:45:12.000Z
2019-10-29T06:45:12.000Z
tools/inference_final.py
eryuehouniao/mmdetection
e80df144aeb2000116f1a8deb98fa4916b1fe5c3
[ "Apache-2.0" ]
null
null
null
tools/inference_final.py
eryuehouniao/mmdetection
e80df144aeb2000116f1a8deb98fa4916b1fe5c3
[ "Apache-2.0" ]
1
2020-09-24T12:17:55.000Z
2020-09-24T12:17:55.000Z
# encoding=utf-8 import time, os, sys import json import mmcv from collections import defaultdict from mmdet.apis import init_detector, inference_detector import numpy as np # from tqdm import tqdm import cv2 import datetime, time from collections import defaultdict def get_jpg(path, list1): for root, filedir, fi...
45.239216
119
0.56094
1,451
11,536
4.236389
0.139214
0.036603
0.011713
0.015617
0.428664
0.351716
0.302424
0.292338
0.282577
0.270538
0
0.054918
0.25182
11,536
254
120
45.417323
0.657282
0
0
0.195266
0
0
0.082597
0.034153
0
0
0
0
0.005917
0
null
null
0
0.053254
null
null
0.017751
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
35443a24f3b8c6c97f7b3785b6f5107a8f390153
507
py
Python
ExpenseTracker/todo/forms.py
MeRichard123/LifeExpenses
58a9cc8063091f275e0413a98049829f2a817760
[ "MIT" ]
null
null
null
ExpenseTracker/todo/forms.py
MeRichard123/LifeExpenses
58a9cc8063091f275e0413a98049829f2a817760
[ "MIT" ]
null
null
null
ExpenseTracker/todo/forms.py
MeRichard123/LifeExpenses
58a9cc8063091f275e0413a98049829f2a817760
[ "MIT" ]
1
2020-09-01T15:38:19.000Z
2020-09-01T15:38:19.000Z
from django import forms from django.forms import ModelForm from .models import Todo, STATUS, PRIORITY class CreateTodo(ModelForm): priority = forms.ChoiceField(choices=PRIORITY, widget=forms.RadioSelect()) task = forms.CharField(widget=forms.TextInput( attrs={'class': 'form-control'})) descriptio...
29.823529
78
0.674556
55
507
6.145455
0.527273
0.097633
0.118343
0.147929
0
0
0
0
0
0
0
0
0.199211
507
16
79
31.6875
0.832512
0
0
0
0
0
0.100592
0
0
0
0
0
0
1
0
false
0
0.230769
0
0.615385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
354509cf1d5a506e9fe4432bc29a79597cefa83c
2,126
py
Python
pychron/hardware/core/scpi_device.py
ael-noblegas/pychron
6ebbbb1f66a614972b62b7a9be4c784ae61b5d62
[ "Apache-2.0" ]
1
2019-02-27T21:57:44.000Z
2019-02-27T21:57:44.000Z
pychron/hardware/core/scpi_device.py
ael-noblegas/pychron
6ebbbb1f66a614972b62b7a9be4c784ae61b5d62
[ "Apache-2.0" ]
80
2018-07-17T20:10:20.000Z
2021-08-17T15:38:24.000Z
pychron/hardware/core/scpi_device.py
AGESLDEO/pychron
1a81e05d9fba43b797f335ceff6837c016633bcf
[ "Apache-2.0" ]
null
null
null
# =============================================================================== # Copyright 2014 Jake Ross # # 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...
32.212121
88
0.533396
217
2,126
5.16129
0.562212
0.053571
0.023214
0.028571
0
0
0
0
0
0
0
0.005505
0.23095
2,126
65
89
32.707692
0.679511
0.531044
0
0
0
0
0.111623
0
0
0
0
0
0
1
0.208333
false
0
0.083333
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
1
0
0
0
0
0
0
0
1
101f1b2e1786b13e8d4e412f12919a3781565a4c
4,197
py
Python
src/tou/runscenarios.py
NREL/EFFORT
b83e425d038c60f13b4c8da5b9c7caaf6b5f64d7
[ "BSD-3-Clause" ]
null
null
null
src/tou/runscenarios.py
NREL/EFFORT
b83e425d038c60f13b4c8da5b9c7caaf6b5f64d7
[ "BSD-3-Clause" ]
null
null
null
src/tou/runscenarios.py
NREL/EFFORT
b83e425d038c60f13b4c8da5b9c7caaf6b5f64d7
[ "BSD-3-Clause" ]
null
null
null
""" Use this script to run scenarios for TOU optimization involving merit order plants for summer and winter months. Generates input data necessary for optimization in each scenario and runs optimization. """ import os from tou_merit_order_optimization import RunModel from pemv1 import GeneratePEM import pandas as ...
34.975
83
0.596855
537
4,197
4.409683
0.251397
0.049409
0.025338
0.029561
0.476774
0.418497
0.396537
0.326014
0.257601
0.19848
0
0.028986
0.276626
4,197
120
84
34.975
0.750988
0.332142
0
0
1
0
0.177046
0.044533
0
0
0
0
0
1
0.018519
false
0
0.092593
0
0.111111
0.018519
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
101fb0df4ded460cdcbc31dd83632fb2ce7df6f4
3,324
py
Python
Course_1_Week_3_Project_1.py
Vivek9Chavan/DeepLearning.AI-TensorFlow-Developer-Professional-Certificate
c48f2040631a87d973ea8cbe534af9cd8f715d4a
[ "Apache-2.0" ]
null
null
null
Course_1_Week_3_Project_1.py
Vivek9Chavan/DeepLearning.AI-TensorFlow-Developer-Professional-Certificate
c48f2040631a87d973ea8cbe534af9cd8f715d4a
[ "Apache-2.0" ]
null
null
null
Course_1_Week_3_Project_1.py
Vivek9Chavan/DeepLearning.AI-TensorFlow-Developer-Professional-Certificate
c48f2040631a87d973ea8cbe534af9cd8f715d4a
[ "Apache-2.0" ]
null
null
null
""" This is is a part of the DeepLearning.AI TensorFlow Developer Professional Certificate offered on Coursera. All copyrights belong to them. I am sharing this work here to showcase the projects I have worked on Course: Introduction to TensorFlow for Artificial Intelligence, Machine Learning, and Deep Learning ...
35.741935
417
0.651324
552
3,324
3.884058
0.29529
0.102612
0.096549
0.100746
0.23181
0.215951
0.178638
0.125933
0.064366
0
0
0.040808
0.225933
3,324
92
418
36.130435
0.79246
0
0
0
0
0.136364
0.243454
0
0
0
0
0
0
0
null
null
0
0
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
0
0
1
0
0
0
0
0
0
0
0
1
103195a74d90e52f3a870011206c9b5e149e5565
1,632
py
Python
glu.py
isihwan/glu
236b7e6675de8b099d850ea3339dba1e5eb5fc7b
[ "Apache-2.0" ]
null
null
null
glu.py
isihwan/glu
236b7e6675de8b099d850ea3339dba1e5eb5fc7b
[ "Apache-2.0" ]
null
null
null
glu.py
isihwan/glu
236b7e6675de8b099d850ea3339dba1e5eb5fc7b
[ "Apache-2.0" ]
null
null
null
#!python # for GHEdit comment import sys, getopt, os from pydispatch import dispatcher import gluserver import glugit def usage(): print 'Usage : glu [<options>]... [<query>] [<repository>]' print '\t-h, --help\t\tPrint this message.' print '\t-s, --server\t\tExcute with server-mode.' print '\t-q\t\t\tQuery strin...
21.76
94
0.643382
229
1,632
4.510917
0.366812
0.058083
0.052275
0.037754
0.027106
0
0
0
0
0
0
0.01395
0.165441
1,632
74
95
22.054054
0.744493
0.015931
0
0.137931
0
0
0.19015
0
0
0
0
0
0
0
null
null
0.017241
0.068966
null
null
0.137931
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
103e6e2f64c4519d9537136e66f23c8be473cd0b
586
py
Python
recursivefunctn.py
Meena25/python-75-hackathon
5a3888a7621d52e07d1b5cfd112501909cc709ec
[ "MIT" ]
null
null
null
recursivefunctn.py
Meena25/python-75-hackathon
5a3888a7621d52e07d1b5cfd112501909cc709ec
[ "MIT" ]
null
null
null
recursivefunctn.py
Meena25/python-75-hackathon
5a3888a7621d52e07d1b5cfd112501909cc709ec
[ "MIT" ]
null
null
null
"""Recursive function to generate fibonacci series""" def recursive_fib(n): if n==0: return 0 elif n==1: return 1 else: return(recursive_fib(n-1) + recursive_fib(n-2)) print("Enter the number of terms : ") n=int(input()) print("Fibonacci series is given by: ") """Recurs...
15.837838
56
0.600683
90
586
3.866667
0.477778
0.172414
0.112069
0.091954
0.258621
0
0
0
0
0
0
0.05
0.283276
586
36
57
16.277778
0.778571
0.080205
0
0
1
0
0.19398
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.25
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1041fdbe6ca946ed4f89b58afc1f2cbb4797f9ec
560
py
Python
tests/example.py
MiroslavPolozij/hetbuilder
a8f26ab3afce796768313818a0e888f0f87abd57
[ "MIT" ]
3
2021-04-26T16:05:52.000Z
2022-01-27T02:46:03.000Z
tests/example.py
MiroslavPolozij/hetbuilder
a8f26ab3afce796768313818a0e888f0f87abd57
[ "MIT" ]
null
null
null
tests/example.py
MiroslavPolozij/hetbuilder
a8f26ab3afce796768313818a0e888f0f87abd57
[ "MIT" ]
6
2021-05-10T09:24:32.000Z
2021-09-25T19:37:52.000Z
from hetbuilder.algorithm import CoincidenceAlgorithm from hetbuilder.plotting import InteractivePlot # we read in the structure files via the ASE import ase.io bottom = ase.io.read("graphene.xyz") top = ase.io.read("MoS2_2H_1l.xyz") # we set up the algorithm class alg = CoincidenceAlgorithm(bottom, top) # we run the...
35
102
0.75
89
560
4.685393
0.561798
0.035971
0.043165
0.06235
0
0
0
0
0
0
0
0.047718
0.139286
560
15
103
37.333333
0.817427
0.214286
0
0
0
0
0.059633
0
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
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
104307f27bff0b342d252f6308837ce6d7e3674d
3,114
py
Python
code_doc/views/project_views.py
coordt/code_doc
c2fac64ac3ad61952a2d9f036727166741f9aff9
[ "BSD-3-Clause" ]
null
null
null
code_doc/views/project_views.py
coordt/code_doc
c2fac64ac3ad61952a2d9f036727166741f9aff9
[ "BSD-3-Clause" ]
null
null
null
code_doc/views/project_views.py
coordt/code_doc
c2fac64ac3ad61952a2d9f036727166741f9aff9
[ "BSD-3-Clause" ]
null
null
null
from django.shortcuts import get_object_or_404 from django.http import HttpResponse from django.contrib.auth.decorators import login_required from django.utils.decorators import method_decorator from django.views.generic.detail import DetailView from django.views.generic import ListView, View import logging import j...
34.21978
101
0.676943
382
3,114
5.308901
0.332461
0.034517
0.016272
0.02071
0.091716
0.091716
0.059172
0.059172
0.059172
0.059172
0
0.004576
0.228003
3,114
90
102
34.6
0.839018
0.149968
0
0
0
0
0.107075
0.037476
0
0
0
0.011111
0.017241
1
0.068966
false
0
0.172414
0.017241
0.465517
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
104409b429aca3a5845c93bf75c943d7897cbb72
523
py
Python
tests/unit/test_errors.py
lewisjared/netcdf-scm
2c433f12f126639513deeec91c338c0f2ebbcc70
[ "BSD-2-Clause" ]
null
null
null
tests/unit/test_errors.py
lewisjared/netcdf-scm
2c433f12f126639513deeec91c338c0f2ebbcc70
[ "BSD-2-Clause" ]
2
2019-05-31T01:07:36.000Z
2019-06-04T03:53:10.000Z
tests/unit/test_errors.py
lewisjared/netcdf-scm
2c433f12f126639513deeec91c338c0f2ebbcc70
[ "BSD-2-Clause" ]
null
null
null
import warnings from netcdf_scm.errors import raise_no_iris_warning def test_raise_no_iris_warning(): expected_warn = ( "A compatible version of Iris is not installed, not all functionality will " "work. We recommend installing the lastest version of Iris using conda to " "address this." ...
29.055556
84
0.724665
74
523
4.851351
0.621622
0.100279
0.21727
0.150418
0
0
0
0
0
0
0
0.004843
0.210325
523
17
85
30.764706
0.864407
0
0
0
0
0
0.305927
0
0
0
0
0
0.166667
1
0.083333
false
0
0.166667
0
0.25
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
104cc8ca9af8ba39c8364637f77101267f28790f
1,828
py
Python
tests/extension/seq_/merge/test_seq_merge.py
jesseclin/veriloggen
a645f2c53f04e5b88213eef17779d212192ea2b5
[ "Apache-2.0" ]
232
2015-09-01T16:07:48.000Z
2022-03-28T14:53:28.000Z
tests/extension/seq_/merge/test_seq_merge.py
jesseclin/veriloggen
a645f2c53f04e5b88213eef17779d212192ea2b5
[ "Apache-2.0" ]
34
2015-08-21T09:13:03.000Z
2022-03-21T23:52:44.000Z
tests/extension/seq_/merge/test_seq_merge.py
jesseclin/veriloggen
a645f2c53f04e5b88213eef17779d212192ea2b5
[ "Apache-2.0" ]
46
2015-09-24T14:39:57.000Z
2022-02-23T21:59:56.000Z
from __future__ import absolute_import from __future__ import print_function import veriloggen import seq_merge expected_verilog = """ module test; reg CLK; reg RST; blinkled uut ( .CLK(CLK), .RST(RST) ); reg reset_done; initial begin CLK = 0; forever begin #5 CLK = !CLK; ...
15.895652
69
0.572757
280
1,828
3.375
0.210714
0.063492
0.050794
0.07619
0.175661
0.032804
0.032804
0.032804
0
0
0
0.076367
0.319475
1,828
114
70
16.035088
0.68328
0
0
0.247312
0
0
0.688184
0
0
0
0
0
0.010753
1
0.010753
false
0
0.064516
0
0.075269
0.010753
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
104f8676b08736e1d1892aa856d0e7ea921fcf5f
1,085
py
Python
setup.py
czAdamV/GHIA
3a5943ecd70eadaaa40fa9afd26f1e0ef4365cd4
[ "Unlicense" ]
null
null
null
setup.py
czAdamV/GHIA
3a5943ecd70eadaaa40fa9afd26f1e0ef4365cd4
[ "Unlicense" ]
null
null
null
setup.py
czAdamV/GHIA
3a5943ecd70eadaaa40fa9afd26f1e0ef4365cd4
[ "Unlicense" ]
null
null
null
from setuptools import setup, find_packages with open('README.md') as f: long_description = ''.join(f.readlines()) setup( name='ghia_volekada', version='0.6', description='GitHub issues assignment tool', long_description=long_description, author='Adam Volek', author_email='volekada@fit.c...
29.324324
76
0.615668
113
1,085
5.79646
0.725664
0.068702
0.058015
0
0
0
0
0
0
0
0
0.007151
0.226728
1,085
37
77
29.324324
0.77354
0.01659
0
0.060606
0
0
0.423077
0.036585
0
0
0
0.027027
0
1
0
false
0
0.030303
0
0.030303
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
104fad66e746c4de9ff18efb5a829e68886078c9
4,019
py
Python
spin_bath_proc_MF_2d.py
weinbe58/tfim_noise
36e9e569eb92a9a48277eb53ffb24cc3dae8a9b1
[ "BSD-3-Clause" ]
null
null
null
spin_bath_proc_MF_2d.py
weinbe58/tfim_noise
36e9e569eb92a9a48277eb53ffb24cc3dae8a9b1
[ "BSD-3-Clause" ]
null
null
null
spin_bath_proc_MF_2d.py
weinbe58/tfim_noise
36e9e569eb92a9a48277eb53ffb24cc3dae8a9b1
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import glob,sys,os import matplotlib.pyplot as plt from itertools import product from quspin.basis import spin_basis_general,tensor_basis from quspin.operators import hamiltonian from quspin.tools.evolution import evolve from quspin.basis.transformations import square_lattice_trans from tilted_squar...
24.065868
90
0.685494
703
4,019
3.761024
0.210526
0.030257
0.018911
0.030257
0.179652
0.132753
0.127837
0.127837
0.099092
0.049168
0
0.018912
0.144812
4,019
166
91
24.210843
0.750364
0.005972
0
0.083333
0
0
0.012278
0
0
0
0
0
0
0
null
null
0
0.1
null
null
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
10556ae1eaeeb2ea127f26ed489e1fdf05d0cf5f
846
py
Python
tests/test_extractor.py
facetoe/promval
dd5624e002894110b5809f9d674d7f7b8c60da94
[ "MIT" ]
null
null
null
tests/test_extractor.py
facetoe/promval
dd5624e002894110b5809f9d674d7f7b8c60da94
[ "MIT" ]
null
null
null
tests/test_extractor.py
facetoe/promval
dd5624e002894110b5809f9d674d7f7b8c60da94
[ "MIT" ]
null
null
null
from promval.extractor import AggregationGroupExtractor def test_aggregation_group_extractor(): expr = """ avg by (first, second)(metric{label='thing'}) """ extractor = AggregationGroupExtractor() items = extractor.extract(expr) assert items == [["first", "second"]] def test_aggregation_...
27.290323
62
0.646572
82
846
6.52439
0.329268
0.082243
0.119626
0.128972
0.807477
0.628037
0.628037
0.628037
0.523364
0.523364
0
0
0.208038
846
30
63
28.2
0.798507
0
0
0.583333
0
0
0.306147
0.13948
0
0
0
0
0.125
1
0.125
false
0
0.041667
0
0.166667
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1