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
b9edd7dbf25e820fdbc6faa76fd63ef5d9d3ec94
1,090
py
Python
appengine/components/tests/datastore_utils_properties_test.py
pombreda/swarming
c70f311f3db8f25752c793a0d7b36cf537d95580
[ "Apache-2.0" ]
null
null
null
appengine/components/tests/datastore_utils_properties_test.py
pombreda/swarming
c70f311f3db8f25752c793a0d7b36cf537d95580
[ "Apache-2.0" ]
null
null
null
appengine/components/tests/datastore_utils_properties_test.py
pombreda/swarming
c70f311f3db8f25752c793a0d7b36cf537d95580
[ "Apache-2.0" ]
1
2021-12-06T03:37:36.000Z
2021-12-06T03:37:36.000Z
#!/usr/bin/env python # Copyright 2014 The Swarming Authors. All rights reserved. # Use of this source code is governed by the Apache v2.0 license that can be # found in the LICENSE file. import sys import unittest import test_env test_env.setup_test_env() from google.appengine.ext import ndb from components.datast...
23.695652
76
0.713761
150
1,090
5.06
0.52
0.079051
0.031621
0.057971
0.052701
0
0
0
0
0
0
0.017279
0.150459
1,090
45
77
24.222222
0.802376
0.165138
0
0
0
0
0.028698
0
0
0
0
0
0.192308
1
0.076923
false
0
0.230769
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9ef242e4a5b9cd66209cacaae0f38bad7d2a39e
128,492
py
Python
neutron/tests/unit/services/qos/test_qos_plugin.py
dangervon/neutron
06ce0c2c94d2256a8f6804a1eacb0733747dcf46
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/services/qos/test_qos_plugin.py
dangervon/neutron
06ce0c2c94d2256a8f6804a1eacb0733747dcf46
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/services/qos/test_qos_plugin.py
dangervon/neutron
06ce0c2c94d2256a8f6804a1eacb0733747dcf46
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
45.742969
79
0.617556
14,623
128,492
5.009027
0.034877
0.028015
0.031592
0.037681
0.893115
0.859626
0.827338
0.795732
0.770202
0.744781
0
0.00935
0.292501
128,492
2,808
80
45.759259
0.796377
0.008242
0
0.659209
0
0
0.120803
0.06922
0
0
0
0
0.079904
1
0.069117
false
0
0.012385
0.003596
0.094686
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
b9ef252652f99c5c9feffaab6f06bdbb7fe7dd89
953
py
Python
covfefe/covfefe.py
fixator10/Trusty-cogs
3d47a63f562cb64eb44da6bb53cfe9f8324026e7
[ "MIT" ]
148
2017-04-23T19:57:50.000Z
2022-03-12T06:59:58.000Z
covfefe/covfefe.py
mina9999/Trusty-cogs
a47de7c233f3c1802effd29f4a86f8a9b0e2b34a
[ "MIT" ]
155
2018-01-01T13:27:45.000Z
2022-03-12T05:17:51.000Z
covfefe/covfefe.py
mina9999/Trusty-cogs
a47de7c233f3c1802effd29f4a86f8a9b0e2b34a
[ "MIT" ]
221
2017-04-02T00:26:08.000Z
2022-03-26T15:06:54.000Z
import re import discord from redbot.core import commands class Covfefe(commands.Cog): """ Convert almost any word into covfefe """ def __init__(self, bot): self.bot = bot async def covfefe(self, x, k="aeiouy])"): """ https://codegolf.stackexchange.com/a/123697 "...
24.435897
79
0.541448
115
953
4.417391
0.582609
0.047244
0.062992
0.07874
0.122047
0.122047
0
0
0
0
0
0.012365
0.321091
953
38
80
25.078947
0.772798
0.037775
0
0
0
0
0.107856
0.029294
0
0
0
0
0
1
0.047619
false
0
0.142857
0
0.380952
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9ef44f166a7664004d3feffe782db268867e247
1,487
py
Python
src/api/bkuser_core/audit/views.py
trueware/bk-user
8c633e0a3821beb839ed120c4514c5733e675862
[ "MIT" ]
null
null
null
src/api/bkuser_core/audit/views.py
trueware/bk-user
8c633e0a3821beb839ed120c4514c5733e675862
[ "MIT" ]
null
null
null
src/api/bkuser_core/audit/views.py
trueware/bk-user
8c633e0a3821beb839ed120c4514c5733e675862
[ "MIT" ]
1
2021-12-31T06:48:41.000Z
2021-12-31T06:48:41.000Z
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-用户管理(Bk-User) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the Lic...
45.060606
115
0.799597
180
1,487
6.544444
0.611111
0.050934
0.119694
0.063667
0.104414
0.104414
0
0
0
0
0
0.008574
0.137189
1,487
32
116
46.46875
0.909587
0.471419
0
0.2
0
0
0.007712
0
0
0
0
0
0
1
0
false
0.266667
0.2
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
1
0
0
1
0
0
2
b9ef4b5c2209cb05949e60eccf8cd9158602e350
4,784
py
Python
exp_gqa/test.py
ronghanghu/gqa_single_hop_baseline
332d342da60dfefd40f2364d60215ed2f191aa2d
[ "BSD-2-Clause" ]
19
2019-08-19T18:09:26.000Z
2021-08-29T15:58:30.000Z
exp_gqa/test.py
ronghanghu/gqa_single_hop_baseline
332d342da60dfefd40f2364d60215ed2f191aa2d
[ "BSD-2-Clause" ]
1
2019-11-24T14:36:29.000Z
2019-12-11T08:33:12.000Z
exp_gqa/test.py
ronghanghu/gqa_single_hop_baseline
332d342da60dfefd40f2364d60215ed2f191aa2d
[ "BSD-2-Clause" ]
1
2019-10-30T05:55:52.000Z
2019-10-30T05:55:52.000Z
import os import numpy as np import tensorflow as tf from models_gqa.model import Model from models_gqa.config import build_cfg_from_argparse from util.gqa_train.data_reader import DataReader import json # Load config cfg = build_cfg_from_argparse() # Start session os.environ["CUDA_VISIBLE_DEVICES"] = str(cfg.GPU_ID...
40.201681
79
0.713002
736
4,784
4.328804
0.256793
0.043942
0.026365
0.032957
0.315443
0.284683
0.205273
0.161017
0.161017
0.134024
0
0.005542
0.170151
4,784
118
80
40.542373
0.796977
0.026756
0
0.082474
0
0.030928
0.125054
0.006457
0
0
0
0
0
1
0
false
0.010309
0.072165
0
0.072165
0.072165
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9efb93e53325ce5948d495ecf3a99ce26893591
2,071
py
Python
extract_gear/armor_visitor.py
kamerons/dde-extract-gear
44464ae470bd5de6279d32e3587b469ce006ea42
[ "Apache-2.0" ]
null
null
null
extract_gear/armor_visitor.py
kamerons/dde-extract-gear
44464ae470bd5de6279d32e3587b469ce006ea42
[ "Apache-2.0" ]
null
null
null
extract_gear/armor_visitor.py
kamerons/dde-extract-gear
44464ae470bd5de6279d32e3587b469ce006ea42
[ "Apache-2.0" ]
null
null
null
class ArmorVisitor: def __init__(self, num_pages, first_page_col_start, first_page_row_start, last_page_row_start, last_page_col_end, last_page_row_end, num_col_page=5, num_row_page=3): self.num_pages = num_pages self.first_page_col_start = first_page_col_start self.first_page_row_start = first_page_...
32.873016
110
0.718493
360
2,071
3.680556
0.105556
0.089811
0.090566
0.084528
0.490566
0.436981
0.315472
0.230943
0.199245
0.05283
0
0.00965
0.199421
2,071
62
111
33.403226
0.789505
0
0
0.08
0
0
0
0
0
0
0
0
0
1
0.12
false
0
0
0
0.22
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9f15c3b93c89d0226f4f6b8fd7503987d856e88
542
py
Python
gamla/url_utils_test.py
hyroai/gamla
bfa05807685bd51cba7c4c9cc47f1f5e73e6f7ee
[ "MIT" ]
17
2020-03-19T08:40:39.000Z
2022-03-06T14:43:35.000Z
gamla/url_utils_test.py
hyroai/gamla
bfa05807685bd51cba7c4c9cc47f1f5e73e6f7ee
[ "MIT" ]
39
2020-04-13T16:52:43.000Z
2022-03-24T08:30:49.000Z
gamla/url_utils_test.py
uriva/gamla
65b450a7761cbc13bdbc7a4216003932f18cf433
[ "MIT" ]
2
2019-11-13T15:13:51.000Z
2019-12-10T15:19:04.000Z
from gamla import url_utils def test_add_to_query_string1(): assert ( url_utils.add_to_query_string( {"a": 123}, "https://www.domain.com/path?param1=param1#anchor", ) == "https://www.domain.com/path?param1=param1&a=123#anchor" ) def test_add_to_query_string2()...
24.636364
67
0.586716
69
542
4.362319
0.333333
0.066445
0.13289
0.225914
0.790698
0.677741
0.677741
0.458472
0.458472
0.458472
0
0.055276
0.265683
542
21
68
25.809524
0.701005
0
0
0.352941
0
0
0.372694
0
0
0
0
0
0.117647
1
0.117647
true
0
0.058824
0
0.176471
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
1
0
0
0
0
0
0
2
b9f25a250dce61318cad2d5bfa0bebb70f70d2dc
1,071
py
Python
examples/temp_feie_shetland.py
nilsmkMET/roppy
c68d698fa4970174af2c7f7137bd4a3e5983b644
[ "MIT" ]
null
null
null
examples/temp_feie_shetland.py
nilsmkMET/roppy
c68d698fa4970174af2c7f7137bd4a3e5983b644
[ "MIT" ]
null
null
null
examples/temp_feie_shetland.py
nilsmkMET/roppy
c68d698fa4970174af2c7f7137bd4a3e5983b644
[ "MIT" ]
null
null
null
import numpy as np from netCDF4 import Dataset # Import development version of roppy import sys sys.path = ['..'] + sys.path import roppy # --- EDIT ----------------- # ROMS file romsfile = 'data/ocean_avg_example.nc' # Section definition lon0, lat0 = -0.67, 60.75 # Shetland lon1, lat1 = 4.72, 60.75 # Feie # --...
22.787234
74
0.6676
170
1,071
4.170588
0.547059
0.021157
0.022567
0.03385
0
0
0
0
0
0
0
0.05102
0.176471
1,071
46
75
23.282609
0.752834
0.445378
0
0
0
0
0.085217
0.043478
0
0
0
0.021739
0
0
null
null
0
0.235294
null
null
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
1
0
1
0
0
0
0
0
0
0
0
2
b9f401385afbe018601c2bef20e53c9b587fb7df
485
py
Python
examples/test_scalar_field.py
gemini3d/pv-gemini
99dff15b43a2c93cbcb63d2f8946d425d0555ef3
[ "Apache-2.0" ]
null
null
null
examples/test_scalar_field.py
gemini3d/pv-gemini
99dff15b43a2c93cbcb63d2f8946d425d0555ef3
[ "Apache-2.0" ]
null
null
null
examples/test_scalar_field.py
gemini3d/pv-gemini
99dff15b43a2c93cbcb63d2f8946d425d0555ef3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ example of 3D scalar field If you get this error, ParaView doesn't know your data file format: TypeError: TestFileReadability argument %Id: %V """ from pathlib import Path import argparse import paraview.simple as pvs p = argparse.ArgumentParser() p.add_argument("fn", help="data file to l...
20.208333
75
0.740206
74
485
4.810811
0.702703
0.044944
0
0
0
0
0
0
0
0
0
0.004819
0.14433
485
23
76
21.086957
0.853012
0.340206
0
0
0
0
0.153846
0
0
0
0
0
0
1
0
false
0
0.3
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9f4182f4b0683cbf4f51c72cef042f5acb55553
341
py
Python
src/cms/forms/languages/language_form.py
S10MC2015/cms-django
b08f2be60a9db6c8079ee923de2cd8912f550b12
[ "Apache-2.0" ]
null
null
null
src/cms/forms/languages/language_form.py
S10MC2015/cms-django
b08f2be60a9db6c8079ee923de2cd8912f550b12
[ "Apache-2.0" ]
null
null
null
src/cms/forms/languages/language_form.py
S10MC2015/cms-django
b08f2be60a9db6c8079ee923de2cd8912f550b12
[ "Apache-2.0" ]
null
null
null
from django import forms from ...models import Language class LanguageForm(forms.ModelForm): """ Form for creating and modifying language objects """ class Meta: model = Language fields = [ "code", "english_name", "native_name", "text_d...
17.947368
52
0.548387
31
341
5.935484
0.774194
0
0
0
0
0
0
0
0
0
0
0
0.363636
341
18
53
18.944444
0.847926
0.140762
0
0
0
0
0.148014
0
0
0
0
0
0
1
0
false
0
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
0
0
0
0
0
1
0
b9f437d2e63f9838da4ffa0491804e95e149a773
1,482
py
Python
search/forms.py
gregneagle/sal
74c583fb1c1b33d3201b308b147376b3dcaca33f
[ "Apache-2.0" ]
2
2019-11-01T20:50:35.000Z
2021-01-13T22:02:55.000Z
search/forms.py
gregneagle/sal
74c583fb1c1b33d3201b308b147376b3dcaca33f
[ "Apache-2.0" ]
null
null
null
search/forms.py
gregneagle/sal
74c583fb1c1b33d3201b308b147376b3dcaca33f
[ "Apache-2.0" ]
null
null
null
from django import forms from .models import * from server.models import * class ChoiceFieldNoValidation(forms.ChoiceField): def validate(self, value): pass class SaveSearchForm(forms.ModelForm): class Meta: model = SavedSearch fields = ('name',) class SearchRowForm(forms.ModelForm):...
27.962264
87
0.609312
155
1,482
5.574194
0.412903
0.08912
0.052083
0.078704
0
0
0
0
0
0
0
0.001881
0.282726
1,482
52
88
28.5
0.810913
0
0
0.045455
0
0
0.106613
0
0
0
0
0
0
1
0.045455
false
0.022727
0.068182
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9f59c6c5e552b8bde064c8fa9f25427a65b2006
158,531
py
Python
pysnmp-with-texts/InternetThruway-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/InternetThruway-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/InternetThruway-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 InternetThruway-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/InternetThruway-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:58:27 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default...
127.231942
9,703
0.781809
18,325
158,531
6.76251
0.058718
0.073304
0.128281
0.013654
0.604157
0.466645
0.429759
0.384053
0.333812
0.282304
0
0.056798
0.093199
158,531
1,245
9,704
127.334137
0.805239
0.002094
0
0.009796
0
0.038367
0.290025
0.006233
0
0
0
0
0
1
0
false
0.000816
0.004898
0
0.034286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
b9f67833672023bef782862284907976acb9371f
2,216
py
Python
newsparser.py
antoreep-jana/BBC-News-Analyzer
0a6e54ddf4baefa4532213c5e6f60e712ff3a1ca
[ "MIT" ]
1
2021-12-27T12:57:07.000Z
2021-12-27T12:57:07.000Z
newsparser.py
antoreep-jana/BBC-News-Analyzer
0a6e54ddf4baefa4532213c5e6f60e712ff3a1ca
[ "MIT" ]
null
null
null
newsparser.py
antoreep-jana/BBC-News-Analyzer
0a6e54ddf4baefa4532213c5e6f60e712ff3a1ca
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup as bs import requests class BBC: def __init__(self, url:str): article = requests.get(url) self.soup = bs(article.content, "html.parser") #print(dir(self.soup)) #print(self.soup.h1.text) self.body = self.get_body() self.link = url ...
28.410256
98
0.564982
278
2,216
4.406475
0.291367
0.084898
0.078367
0.04898
0.223673
0.179592
0.151837
0.151837
0.151837
0.151837
0
0.022872
0.289711
2,216
77
99
28.779221
0.7554
0.229242
0
0.057143
0
0
0.170326
0.068843
0
0
0
0
0
1
0.171429
false
0.028571
0.057143
0.028571
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
0
0
0
0
0
1
0
b9f73f41171ea9b93f4f79bc336c9fe6927dba89
2,044
py
Python
SIR_model-Copy.Caroline.1.py
Caroline-Odevall/final-project-team-18
fbf00ae4ec554dee9245a9834ff4108b3d339842
[ "MIT" ]
null
null
null
SIR_model-Copy.Caroline.1.py
Caroline-Odevall/final-project-team-18
fbf00ae4ec554dee9245a9834ff4108b3d339842
[ "MIT" ]
null
null
null
SIR_model-Copy.Caroline.1.py
Caroline-Odevall/final-project-team-18
fbf00ae4ec554dee9245a9834ff4108b3d339842
[ "MIT" ]
null
null
null
# In[42]: from scipy.integrate import odeint import numpy as np import matplotlib.pyplot as plt # In[43]: # describe the model def deriv(y, t, N, beta, gamma, delta): S, E, I, R = y dSdt = -beta * S * I / N # S(t) – susceptible (de som är mottagliga för infektion). dEdt = beta * S * I / N - gamma * ...
24.333333
137
0.630137
364
2,044
3.516484
0.436813
0.007813
0.009375
0.0125
0.151563
0.151563
0.029688
0.029688
0
0
0
0.04473
0.201566
2,044
83
138
24.626506
0.737745
0.354207
0
0
0
0
0.064241
0
0
0
0
0
0
1
0.052632
false
0
0.078947
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9f778c162a3f42e748bada544f1b060ab9f29ed
466
py
Python
Condicionales anidados.py
gcardosov/PythonAprendeOrg
0cad81f0a584c98389ca729a337d30581780e520
[ "MIT" ]
1
2018-03-07T05:26:12.000Z
2018-03-07T05:26:12.000Z
Condicionales anidados.py
gcardosov/PythonAprendeOrg
0cad81f0a584c98389ca729a337d30581780e520
[ "MIT" ]
null
null
null
Condicionales anidados.py
gcardosov/PythonAprendeOrg
0cad81f0a584c98389ca729a337d30581780e520
[ "MIT" ]
null
null
null
pregunta = input('trabajas desde casa? ') if pregunta == True: print 'Eres afortunado' if pregunta == False: print 'Trabajas fuera de casa' tiempo = input('Cuantos minutos haces al trabajo: ') if tiempo == 0: print 'trabajas desde casa' elif tiempo <=20: print 'Es po...
20.26087
57
0.583691
56
466
4.857143
0.589286
0.095588
0.125
0
0
0
0
0
0
0
0
0.022293
0.32618
466
22
58
21.181818
0.843949
0
0
0
0
0
0.371041
0
0
0
0
0
0
0
null
null
0
0
null
null
0.428571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
2
b9f8215f5040fa71b2646d52a053545a92c3fd12
1,681
py
Python
app/middleware/cache_headers.py
Niclnx/service-stac
ad9129a7130d09b2bed387d8e82575eb86fdfa7b
[ "BSD-3-Clause" ]
9
2020-08-17T11:01:48.000Z
2022-01-17T22:24:13.000Z
app/middleware/cache_headers.py
Niclnx/service-stac
ad9129a7130d09b2bed387d8e82575eb86fdfa7b
[ "BSD-3-Clause" ]
100
2020-08-14T05:56:40.000Z
2022-03-01T22:39:58.000Z
app/middleware/cache_headers.py
Niclnx/service-stac
ad9129a7130d09b2bed387d8e82575eb86fdfa7b
[ "BSD-3-Clause" ]
3
2020-09-02T14:01:07.000Z
2021-07-27T06:30:26.000Z
import logging import re from urllib.parse import urlparse from django.conf import settings from django.utils.cache import add_never_cache_headers from django.utils.cache import patch_cache_control from django.utils.cache import patch_response_headers logger = logging.getLogger(__name__) STAC_BASE = settings.STAC_BA...
32.960784
96
0.662701
207
1,681
5.188406
0.415459
0.037244
0.041899
0.055866
0.150838
0.126629
0.068901
0.068901
0
0
0
0
0.250446
1,681
50
97
33.62
0.852381
0.252826
0
0
0
0
0.06068
0.01699
0
0
0
0
0
1
0.066667
false
0
0.233333
0
0.366667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9f87264f50f9243a592053fcbe97aca0b8c2377
2,818
py
Python
mmdet/models/detectors/knowledge_distilling/kd_single_stage.py
anorthman/mmdetection
52e28154364f0e19d11c206bb357d88f29fc4a2d
[ "Apache-2.0" ]
5
2019-06-11T11:08:54.000Z
2021-03-25T10:06:01.000Z
mmdet/models/detectors/knowledge_distilling/kd_single_stage.py
anorthman/mmdetection
52e28154364f0e19d11c206bb357d88f29fc4a2d
[ "Apache-2.0" ]
null
null
null
mmdet/models/detectors/knowledge_distilling/kd_single_stage.py
anorthman/mmdetection
52e28154364f0e19d11c206bb357d88f29fc4a2d
[ "Apache-2.0" ]
1
2019-06-11T11:08:55.000Z
2019-06-11T11:08:55.000Z
# author huangchuanhong import torch from mmcv.runner import load_checkpoint from ..base import BaseDetector from ..single_stage import SingleStageDetector from ...registry import DETECTORS from ...builder import build_detector @DETECTORS.register_module class KDSingleStageDetector(SingleStageDetector): def __ini...
42.059701
112
0.551455
297
2,818
4.895623
0.218855
0.066025
0.091472
0.078404
0.296424
0.251719
0.251719
0.213205
0.167813
0.112792
0
0.002279
0.377218
2,818
66
113
42.69697
0.826211
0.007452
0
0.16129
0
0
0
0
0
0
0
0
0
1
0.032258
false
0
0.096774
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
0
0
0
0
0
1
0
b9f8cb65181ebad752b9a810d28cc601137f1877
4,518
py
Python
metaworld/envs/mujoco/sawyer_xyz/v2/sawyer_dial_turn_v2.py
yiwc/robotics-world
48efda3a8ea6741b35828b02860f45753252e376
[ "MIT" ]
681
2019-09-09T19:34:37.000Z
2022-03-31T12:17:58.000Z
metaworld/envs/mujoco/sawyer_xyz/v2/sawyer_dial_turn_v2.py
yiwc/robotics-world
48efda3a8ea6741b35828b02860f45753252e376
[ "MIT" ]
212
2019-09-18T14:43:44.000Z
2022-03-27T22:21:00.000Z
metaworld/envs/mujoco/sawyer_xyz/v2/sawyer_dial_turn_v2.py
yiwc/robotics-world
48efda3a8ea6741b35828b02860f45753252e376
[ "MIT" ]
157
2019-09-12T05:06:05.000Z
2022-03-29T14:47:24.000Z
import numpy as np from gym.spaces import Box from metaworld.envs import reward_utils from metaworld.envs.asset_path_utils import full_v2_path_for from metaworld.envs.mujoco.sawyer_xyz.sawyer_xyz_env import SawyerXYZEnv, _assert_task_is_set class SawyerDialTurnEnvV2(SawyerXYZEnv): TARGET_RADIUS = 0.07 def _...
31.816901
93
0.599823
628
4,518
3.941083
0.221338
0.038384
0.053333
0.028283
0.225859
0.149091
0.098586
0.073535
0.073535
0.073535
0
0.036772
0.28973
4,518
141
94
32.042553
0.734497
0
0
0.088496
0
0
0.047587
0.005755
0
0
0
0
0.017699
1
0.061947
false
0
0.044248
0.017699
0.176991
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9fa33196acc6d33e769b7c8e96ca3b00aeee8cc
237
wsgi
Python
obviforum/obviforum.wsgi
dcloutman/obviforum
31af0cf6f2e243bff9d920276831415bd5210cf9
[ "MIT" ]
null
null
null
obviforum/obviforum.wsgi
dcloutman/obviforum
31af0cf6f2e243bff9d920276831415bd5210cf9
[ "MIT" ]
null
null
null
obviforum/obviforum.wsgi
dcloutman/obviforum
31af0cf6f2e243bff9d920276831415bd5210cf9
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import logging import os logging.basicConfig(stream=sys.stderr) file_dir = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(0, file_dir) from main import app as application from main import db
23.7
54
0.797468
40
237
4.575
0.6
0.076503
0.153005
0
0
0
0
0
0
0
0
0.004695
0.101266
237
9
55
26.333333
0.85446
0.084388
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.625
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
b9fa7c6bd7a253ee2a588381042c5dfd3d99cb96
2,560
py
Python
yezdi/parser/parser.py
ragsagar/yezdi
5b97bedc56d5af7f28b244a0d7c0c8259f643102
[ "MIT" ]
1
2021-04-27T20:07:42.000Z
2021-04-27T20:07:42.000Z
yezdi/parser/parser.py
ragsagar/yezdi
5b97bedc56d5af7f28b244a0d7c0c8259f643102
[ "MIT" ]
null
null
null
yezdi/parser/parser.py
ragsagar/yezdi
5b97bedc56d5af7f28b244a0d7c0c8259f643102
[ "MIT" ]
null
null
null
from yezdi.lexer.token import TokenType from yezdi.parser.ast import Program, Statement, Participant, Title, LineStatement class Parser: def __init__(self, lexer): self.lexer = lexer self.current_token = None self.peek_token = None self.next_token() self.next_token() ...
32
86
0.640625
288
2,560
5.517361
0.184028
0.069226
0.100692
0.050346
0.229704
0.078037
0.060415
0.060415
0.060415
0
0
0
0.280469
2,560
79
87
32.405063
0.862649
0
0
0.227273
0
0
0
0
0
0
0
0
0
1
0.121212
false
0.015152
0.030303
0
0.409091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9fae34b418d8854a4b364f1044c114896456110
1,050
py
Python
scripts/check_categories.py
oberron/entolusis
209e1e245d8e501e5e6ea2f52dd5b0da7d886f5c
[ "MIT" ]
null
null
null
scripts/check_categories.py
oberron/entolusis
209e1e245d8e501e5e6ea2f52dd5b0da7d886f5c
[ "MIT" ]
null
null
null
scripts/check_categories.py
oberron/entolusis
209e1e245d8e501e5e6ea2f52dd5b0da7d886f5c
[ "MIT" ]
null
null
null
# list categories in category folder from os import walk from os.path import abspath,join, pardir categories_folder = abspath(join(__file__,pardir,pardir,"category")) post_folder = abspath(join(__file__,pardir,pardir,"_posts")) site_categories = [] for root,directories,files in walk(categories_folder): for f in ...
36.206897
68
0.578095
124
1,050
4.741935
0.387097
0.142857
0.057823
0.071429
0.316327
0.258503
0.146259
0.146259
0
0
0
0.00672
0.291429
1,050
29
69
36.206897
0.783602
0.032381
0
0.086957
0
0
0.04335
0
0
0
0
0
0
1
0
false
0
0.086957
0
0.086957
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9fb43e9d0e20574f25b444b461b284752a17b4c
5,311
py
Python
docsrc/makedoc.py
syoyo/soloud
cce88a2408a4b1e88ccbc75de9897b39bc3e7dda
[ "Libpng", "Zlib" ]
1
2019-11-25T11:32:09.000Z
2019-11-25T11:32:09.000Z
docsrc/makedoc.py
syoyo/soloud
cce88a2408a4b1e88ccbc75de9897b39bc3e7dda
[ "Libpng", "Zlib" ]
null
null
null
docsrc/makedoc.py
syoyo/soloud
cce88a2408a4b1e88ccbc75de9897b39bc3e7dda
[ "Libpng", "Zlib" ]
null
null
null
#!/usr/bin/env python3 """ builds documentation files from multimarkdown (mmd) source to various formats, including the web site and pdf. """ import subprocess import glob import os import sys import time import shutil src = [ "intro.mmd", "downloads.mmd", "quickstart.mmd", "faq.mmd", "dirstr...
34.940789
356
0.583129
662
5,311
4.63142
0.326284
0.042401
0.011416
0.011742
0.272016
0.234181
0.227658
0.14775
0.124592
0.081539
0
0.004619
0.184711
5,311
151
357
35.172185
0.703464
0.024854
0
0.140625
0
0
0.433327
0.090962
0
0
0
0
0
1
0
false
0.007813
0.046875
0
0.046875
0.085938
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9fc3dd10a80beed547f86b535cfadc6f817e0e2
4,872
tac
Python
6 复试/2 笔试/4 编译原理/hw/2016_黄家晖_PA/550405220_4_decaf_PA3/TestCases/S3/output/t9.tac
ladike/912_project
5178c1c93ac6ca30ffc72dd689f5c6932704b4ab
[ "MIT" ]
1
2022-03-02T16:05:49.000Z
2022-03-02T16:05:49.000Z
6 复试/2 笔试/4 编译原理/hw/2016_黄家晖_PA/550405220_4_decaf_PA3/TestCases/S3/output/t9.tac
ladike/912_project
5178c1c93ac6ca30ffc72dd689f5c6932704b4ab
[ "MIT" ]
null
null
null
6 复试/2 笔试/4 编译原理/hw/2016_黄家晖_PA/550405220_4_decaf_PA3/TestCases/S3/output/t9.tac
ladike/912_project
5178c1c93ac6ca30ffc72dd689f5c6932704b4ab
[ "MIT" ]
null
null
null
VTABLE(_Main) { <empty> Main _Main.COPY; } VTABLE(_Base) { <empty> Base _Base.COPY; } VTABLE(_Sub1) { _Base Sub1 _Sub1.COPY; } VTABLE(_Sub2) { _Base Sub2 _Sub2.COPY; } VTABLE(_Sub3) { _Sub1 Sub3 _Sub3.COPY; } VTABLE(_Sub4) { _Sub3 Sub4 _Sub4.C...
15.76699
34
0.555829
657
4,872
3.563166
0.207002
0.050833
0.050833
0.035882
0.041008
0
0
0
0
0
0
0.184833
0.331486
4,872
308
35
15.818182
0.533927
0
0
0.111111
0
0
0.022993
0
0
0
0
0
0
0
null
null
0
0
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
b9fc6312cdae3331d02a69bbbf58d767d486a41b
1,361
py
Python
arch/api/base/utils/party.py
yzjba/FATE
9a6d252da637b2583a0f8a51f6cb4c615850bab9
[ "Apache-2.0" ]
32
2020-06-12T08:39:58.000Z
2022-03-20T06:57:08.000Z
arch/api/base/utils/party.py
ErikSun2020/FATE
bdda535c7d8a974fc2c43102837964b7da199730
[ "Apache-2.0" ]
10
2020-11-13T18:55:48.000Z
2022-02-10T02:00:12.000Z
arch/api/base/utils/party.py
ErikSun2020/FATE
bdda535c7d8a974fc2c43102837964b7da199730
[ "Apache-2.0" ]
16
2020-06-12T06:51:46.000Z
2022-03-29T10:23:42.000Z
# # Copyright 2019 The FATE Authors. 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 appli...
30.244444
79
0.683321
197
1,361
4.48731
0.477157
0.087104
0.074661
0.050905
0.099548
0.056561
0
0
0
0
0
0.009381
0.216752
1,361
44
80
30.931818
0.819887
0.443791
0
0
0
0
0.088033
0.066025
0
0
0
0
0
1
0.411765
false
0
0.058824
0.294118
0.882353
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
b9fd9ad743eac1d46c7b5d951facfcfa09dbb1bf
3,778
py
Python
src/sentry/options/defaults.py
faulkner/sentry
f9dd4d0d7c683632cf02810c03bd42d7051ad010
[ "BSD-3-Clause" ]
null
null
null
src/sentry/options/defaults.py
faulkner/sentry
f9dd4d0d7c683632cf02810c03bd42d7051ad010
[ "BSD-3-Clause" ]
null
null
null
src/sentry/options/defaults.py
faulkner/sentry
f9dd4d0d7c683632cf02810c03bd42d7051ad010
[ "BSD-3-Clause" ]
null
null
null
""" sentry.options.defaults ~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import, print_function from sentry.logging import LoggingFormat from sentry.options import ( FLAG_IMMUTAB...
43.425287
95
0.75172
491
3,778
5.560081
0.250509
0.118681
0.158242
0.190476
0.515751
0.445055
0.396703
0.367399
0.299267
0.198535
0
0.01011
0.109846
3,778
86
96
43.930233
0.801665
0.125993
0
0
0
0
0.207128
0.027109
0
0
0
0
0
1
0
true
0.017857
0.071429
0
0.071429
0.017857
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
b9ff46cab163507c14f9b26bf086ce4979f54a2c
4,972
py
Python
tools/unidatadownload.py
henryiii/backrefs
ec82844098bc3bdc7bcaa61b32f80271e6a73da6
[ "MIT" ]
null
null
null
tools/unidatadownload.py
henryiii/backrefs
ec82844098bc3bdc7bcaa61b32f80271e6a73da6
[ "MIT" ]
null
null
null
tools/unidatadownload.py
henryiii/backrefs
ec82844098bc3bdc7bcaa61b32f80271e6a73da6
[ "MIT" ]
null
null
null
"""Download `Unicodedata` files.""" from __future__ import unicode_literals import os import zipfile import codecs from urllib.request import urlopen __version__ = '2.2.0' HOME = os.path.dirname(os.path.abspath(__file__)) def zip_unicode(output, version): """Zip the Unicode files.""" zipper = zipfile.ZipFi...
32.927152
112
0.627715
560
4,972
5.467857
0.310714
0.035271
0.032658
0.041803
0.173416
0.167864
0.126061
0.088178
0.033965
0.033965
0
0.002934
0.245977
4,972
150
113
33.146667
0.813817
0.056718
0
0.111111
0
0
0.248981
0.11602
0
0
0
0
0
1
0.037037
false
0
0.064815
0
0.101852
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9ffb7c6fff3e245dc8ea1ea786cc6f60c2d4cde
2,427
py
Python
generator/cache/cache.py
biarmic/OpenCache
bb9e110e434deb83900de328cc76b63901ba582f
[ "BSD-3-Clause" ]
5
2021-09-15T18:29:49.000Z
2022-03-26T04:41:01.000Z
generator/cache/cache.py
VLSIDA/OpenCache
0e79bf353c68d57dcc49d78178b12fd0b468f19a
[ "BSD-3-Clause" ]
null
null
null
generator/cache/cache.py
VLSIDA/OpenCache
0e79bf353c68d57dcc49d78178b12fd0b468f19a
[ "BSD-3-Clause" ]
null
null
null
# See LICENSE for licensing information. # # Copyright (c) 2021 Regents of the University of California and The Board # of Regents for the Oklahoma Agricultural and Mechanical College # (acting for and on behalf of Oklahoma State University) # All rights reserved. # import debug import datetime from policy import assoc...
33.246575
86
0.646477
311
2,427
4.884244
0.327974
0.013167
0.050033
0.03555
0.134299
0.060566
0.060566
0
0
0
0
0.003319
0.255047
2,427
73
87
33.246575
0.836836
0.217965
0
0.051282
0
0
0.107817
0
0
0
0
0.013699
0
1
0.102564
false
0
0.153846
0
0.282051
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
1
0
0
0
0
0
0
0
0
0
0
1
b9ffed8a41299969ab07da01999635758df5ba4f
11,469
py
Python
utils/data_loader.py
elieser1101/loglizer
985c5f582fbbe4d6365184086ac091134a5b5d07
[ "MIT" ]
null
null
null
utils/data_loader.py
elieser1101/loglizer
985c5f582fbbe4d6365184086ac091134a5b5d07
[ "MIT" ]
null
null
null
utils/data_loader.py
elieser1101/loglizer
985c5f582fbbe4d6365184086ac091134a5b5d07
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'Shilin He' import pandas as pd import os import numpy as np def hdfs_data_loader(para): """ load the log sequence matrix and labels from the file path. Args: -------- para: the parameters dictionary Returns: -------- raw_data: log sequences matrix...
38.877966
168
0.717674
1,839
11,469
4.231104
0.114193
0.049351
0.045238
0.043696
0.909009
0.89243
0.887033
0.882534
0.870582
0.859273
0
0.007697
0.150405
11,469
294
169
39.010204
0.790846
0.300201
0
0.744444
0
0
0.148532
0
0
0
0
0
0.027778
1
0.027778
false
0
0.016667
0
0.072222
0.077778
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
6a00c6e63b457a75c0424a247757123821cb24fb
1,230
py
Python
aspx2url/aspx2url.py
marcocucinato/aspx2url
985a0e51865bb7be15618155ff9844730c2eaaf6
[ "MIT" ]
null
null
null
aspx2url/aspx2url.py
marcocucinato/aspx2url
985a0e51865bb7be15618155ff9844730c2eaaf6
[ "MIT" ]
null
null
null
aspx2url/aspx2url.py
marcocucinato/aspx2url
985a0e51865bb7be15618155ff9844730c2eaaf6
[ "MIT" ]
null
null
null
from __future__ import print_function import re, sys, glob, getopt, os def usage(): print('aspx2url v1.0') print('Usage:') print(sys.argv[0]+' -d -h filename(s)') print('-d : Delete original file') print('-h : This help') def main(): try: opts, args = getopt.getopt(sys.argv[1:], "hd")...
29.285714
77
0.530081
145
1,230
4.393103
0.496552
0.037677
0.037677
0
0
0
0
0
0
0
0
0.009357
0.304878
1,230
41
78
30
0.735673
0
0
0.052632
0
0
0.139024
0.030894
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.105263
0.184211
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a00d6b8c83e85268bd294d4e512d54f000cfc8a
2,843
py
Python
pytype/tests/py2/test_stdlib.py
souravbadami/pytype
804fa97e7f9208df2711976085a96f756b3949e6
[ "Apache-2.0" ]
1
2020-04-20T02:55:21.000Z
2020-04-20T02:55:21.000Z
pytype/tests/py2/test_stdlib.py
doc22940/pytype
4772ad6fe89f4df75ae3d08e7374f68074175d4a
[ "Apache-2.0" ]
null
null
null
pytype/tests/py2/test_stdlib.py
doc22940/pytype
4772ad6fe89f4df75ae3d08e7374f68074175d4a
[ "Apache-2.0" ]
null
null
null
"""Tests of selected stdlib functions.""" from pytype.tests import test_base class StdlibTests(test_base.TargetPython27FeatureTest): """Tests for files in typeshed/stdlib.""" def testPosix(self): ty = self.Infer(""" import posix x = posix.urandom(10) """) self.assertTypesMatchPytd(ty, ""...
21.869231
61
0.518115
299
2,843
4.866221
0.26087
0.03299
0.054983
0.082474
0.468729
0.439863
0.428179
0.428179
0.428179
0.428179
0
0.020888
0.326416
2,843
129
62
22.03876
0.738903
0.024974
0
0.616071
0
0
0.604853
0.03477
0
0
0
0
0.071429
1
0.089286
false
0
0.107143
0
0.205357
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6a00f01d33da6c470fd1f865044516a818d9c018
88
py
Python
smmips/__init__.py
oicr-gsi/pysmmips
ccf209b13862a5533a11fbe02e80d3265ccef313
[ "MIT" ]
null
null
null
smmips/__init__.py
oicr-gsi/pysmmips
ccf209b13862a5533a11fbe02e80d3265ccef313
[ "MIT" ]
null
null
null
smmips/__init__.py
oicr-gsi/pysmmips
ccf209b13862a5533a11fbe02e80d3265ccef313
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Oct 20 16:04:52 2020 @author: rjovelin """
11
35
0.579545
14
88
3.642857
1
0
0
0
0
0
0
0
0
0
0
0.185714
0.204545
88
7
36
12.571429
0.542857
0.875
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
6a00f65f8d9c6385beccc2cbd3c37ef660b0dc52
6,343
py
Python
tarentsocialwall/MongoDBClient.py
tarent/socialwall-backend
2f09b8ccdd62a15daaa281d6ff568cb6ef749ab6
[ "MIT" ]
null
null
null
tarentsocialwall/MongoDBClient.py
tarent/socialwall-backend
2f09b8ccdd62a15daaa281d6ff568cb6ef749ab6
[ "MIT" ]
null
null
null
tarentsocialwall/MongoDBClient.py
tarent/socialwall-backend
2f09b8ccdd62a15daaa281d6ff568cb6ef749ab6
[ "MIT" ]
2
2019-08-06T14:14:44.000Z
2019-08-06T14:21:19.000Z
import random from datetime import datetime from passlib.handlers.sha2_crypt import sha256_crypt from pymongo import MongoClient from pymongo.errors import ConnectionFailure from tarentsocialwall.SocialPost import SocialPost from tarentsocialwall.User import User from tarentsocialwall.Util import Util class MongoDB...
33.036458
100
0.631405
731
6,343
5.235294
0.201094
0.073164
0.047557
0.036582
0.296316
0.267311
0.238045
0.195453
0.174549
0.117586
0
0.003274
0.277787
6,343
191
101
33.209424
0.832133
0.07189
0
0.282609
0
0
0.058233
0
0
0
0
0
0
1
0.108696
false
0.021739
0.057971
0.007246
0.311594
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a0102385be6299942545100e581de23300db9a4
76,697
py
Python
src/mount_efs/__init__.py
Sodki/efs-utils
493d9ea0dde93b560519b184219f6f71e32a8fcf
[ "MIT" ]
null
null
null
src/mount_efs/__init__.py
Sodki/efs-utils
493d9ea0dde93b560519b184219f6f71e32a8fcf
[ "MIT" ]
null
null
null
src/mount_efs/__init__.py
Sodki/efs-utils
493d9ea0dde93b560519b184219f6f71e32a8fcf
[ "MIT" ]
12
2020-10-22T03:47:51.000Z
2022-03-19T18:09:59.000Z
#!/usr/bin/env python # # Copyright 2017-2018 Amazon.com, Inc. and its affiliates. All Rights Reserved. # # Licensed under the MIT License. See the LICENSE accompanying this file # for the specific language governing permissions and limitations under # the License. # # # Copy this script to /sbin/mount.efs and make sur...
38.560583
130
0.680535
10,057
76,697
4.939147
0.107984
0.005234
0.010871
0.005818
0.40829
0.331186
0.284038
0.230407
0.202988
0.164556
0
0.007997
0.222316
76,697
1,988
131
38.57998
0.8248
0.092663
0
0.225897
0
0.014075
0.198127
0.023725
0
0
0
0
0.002111
1
0.069669
false
0.002815
0.024631
0.003519
0.194229
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a01fe7f065ff8fbb40e8cf44137b52463e1417c
1,010
py
Python
upcfcardsearch/c8.py
ProfessorSean/Kasutamaiza
7a69a69258f67bbb88bebbac6da4e6e1434947e6
[ "MIT" ]
null
null
null
upcfcardsearch/c8.py
ProfessorSean/Kasutamaiza
7a69a69258f67bbb88bebbac6da4e6e1434947e6
[ "MIT" ]
null
null
null
upcfcardsearch/c8.py
ProfessorSean/Kasutamaiza
7a69a69258f67bbb88bebbac6da4e6e1434947e6
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from discord.utils import get class c8(commands.Cog, name="c8"): def __init__(self, bot: commands.Bot): self.bot = bot @commands.command(name='Sacrosanct_Devouring_Pyre', aliases=['c8']) async def example_embed(self, ctx): embed = discord.Emb...
43.913043
195
0.687129
138
1,010
4.934783
0.565217
0.048458
0.101322
0.07489
0
0
0
0
0
0
0
0.032767
0.184158
1,010
23
196
43.913043
0.793689
0
0
0
0
0.055556
0.323442
0.0455
0
0
0.007913
0
0
1
0.111111
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a023f8c8af70de4e0b8e937c5773e7da489fab5
2,627
py
Python
SVMmodel_withSKF.py
tameney22/DCI-Capstone
6f59541f16030bfa3f0a706fd9f0e4394e1ee974
[ "MIT" ]
null
null
null
SVMmodel_withSKF.py
tameney22/DCI-Capstone
6f59541f16030bfa3f0a706fd9f0e4394e1ee974
[ "MIT" ]
null
null
null
SVMmodel_withSKF.py
tameney22/DCI-Capstone
6f59541f16030bfa3f0a706fd9f0e4394e1ee974
[ "MIT" ]
null
null
null
""" This script is where the preprocessed data is used to train the SVM model to perform the classification. I am using Stratified K-Fold Cross Validation to prevent bias and/or any imbalance that could affect the model's accuracy. REFERENCE: https://medium.com/@bedigunjit/simple-guide-to-text-classification-nlp-usin...
31.650602
132
0.760183
396
2,627
4.876263
0.386364
0.027965
0.01709
0.031072
0.037286
0
0
0
0
0
0
0.011329
0.12638
2,627
82
133
32.036585
0.830065
0.412257
0
0
0
0
0.134957
0
0
0
0
0
0
1
0
false
0
0.184211
0
0.184211
0.263158
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a046c97530ca1a780b9dd23d59ddcc8df166fa3
263
py
Python
red_dwarf/entrypoints/project_management.py
JesseMaitland/red-dwarf
f606ada43f4be72c5cab61049182b58c0c348602
[ "MIT" ]
null
null
null
red_dwarf/entrypoints/project_management.py
JesseMaitland/red-dwarf
f606ada43f4be72c5cab61049182b58c0c348602
[ "MIT" ]
null
null
null
red_dwarf/entrypoints/project_management.py
JesseMaitland/red-dwarf
f606ada43f4be72c5cab61049182b58c0c348602
[ "MIT" ]
null
null
null
from rsterm import EntryPoint from red_dwarf.project import provide_project_context, ProjectContext class InitProject(EntryPoint): @provide_project_context def run(self, project_context: ProjectContext) -> None: project_context.init_project()
23.909091
69
0.790875
30
263
6.666667
0.566667
0.28
0.21
0
0
0
0
0
0
0
0
0
0.148289
263
10
70
26.3
0.892857
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
6a048666edf3e5d75a0ded13639990b1d6bed2e8
33,554
py
Python
src/consensus.py
dschwoerer/samscripts
caee697e96a0639b7a4f9db02f70f4fd92b39ef9
[ "MIT" ]
null
null
null
src/consensus.py
dschwoerer/samscripts
caee697e96a0639b7a4f9db02f70f4fd92b39ef9
[ "MIT" ]
null
null
null
src/consensus.py
dschwoerer/samscripts
caee697e96a0639b7a4f9db02f70f4fd92b39ef9
[ "MIT" ]
null
null
null
#! /usr/bin/env python # Copyright Ivan Sovic, 2015. www.sovic.org # # Creates a pileup from a given SAM/BAM file, and calls consensus bases (or variants). import os import sys import operator import subprocess def increase_in_dict(dict_counter, value): try: dict_counter[value] += 1 except: ...
39.755924
436
0.550933
4,042
33,554
4.313953
0.114547
0.023513
0.03051
0.016345
0.535413
0.445375
0.385158
0.3453
0.332454
0.308941
0
0.015717
0.343893
33,554
843
437
39.803084
0.776334
0.216695
0
0.456656
0
0.03096
0.133988
0.041133
0
0
0
0.001186
0
1
0.00774
false
0.010836
0.006192
0
0.029412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a049ff78a91de998072b637d1639d25a433a194
5,867
py
Python
web/addons/account_payment/wizard/account_payment_populate_statement.py
diogocs1/comps
63df07f6cf21c41e4527c06e2d0499f23f4322e7
[ "Apache-2.0" ]
null
null
null
web/addons/account_payment/wizard/account_payment_populate_statement.py
diogocs1/comps
63df07f6cf21c41e4527c06e2d0499f23f4322e7
[ "Apache-2.0" ]
null
null
null
web/addons/account_payment/wizard/account_payment_populate_statement.py
diogocs1/comps
63df07f6cf21c41e4527c06e2d0499f23f4322e7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
48.891667
250
0.592466
723
5,867
4.596127
0.26971
0.027084
0.027084
0.033704
0.290701
0.222389
0.136624
0.058381
0.058381
0.058381
0
0.003465
0.262144
5,867
119
251
49.302521
0.764149
0.154082
0
0.097561
0
0
0.160677
0.052863
0
0
0
0
0
1
0.02439
false
0
0.036585
0
0.146341
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a04d1fd425aed6effcc3e48e1eb103f0872ab5a
3,621
py
Python
libqtile/widget/imapwidget.py
akloster/qtile
bd21d0744e177b8ca01ac129081472577d53ed66
[ "MIT" ]
1
2021-04-05T07:15:37.000Z
2021-04-05T07:15:37.000Z
libqtile/widget/imapwidget.py
akloster/qtile
bd21d0744e177b8ca01ac129081472577d53ed66
[ "MIT" ]
1
2022-02-27T12:17:27.000Z
2022-02-27T12:17:27.000Z
libqtile/widget/imapwidget.py
akloster/qtile
bd21d0744e177b8ca01ac129081472577d53ed66
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015 David R. Andersen # # 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, copy, m...
38.521277
98
0.67219
485
3,621
4.985567
0.472165
0.036394
0.021092
0
0
0
0
0
0
0
0
0.004681
0.233085
3,621
93
99
38.935484
0.866042
0.631041
0
0.064516
0
0
0.150741
0
0
0
0
0
0
1
0.064516
false
0.16129
0.16129
0
0.322581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
6a04e4f203740a253735948c968506f6632354e6
2,486
py
Python
game/views/tests/game_definition_view_test.py
dimadk24/english-fight-api
506a3eb2cb4cb91203b1e023b5248c27975df075
[ "MIT" ]
null
null
null
game/views/tests/game_definition_view_test.py
dimadk24/english-fight-api
506a3eb2cb4cb91203b1e023b5248c27975df075
[ "MIT" ]
null
null
null
game/views/tests/game_definition_view_test.py
dimadk24/english-fight-api
506a3eb2cb4cb91203b1e023b5248c27975df075
[ "MIT" ]
null
null
null
from rest_framework.response import Response from rest_framework.test import APIClient from game.models import GameDefinition, AppUser def create_game_definition(api_client: APIClient) -> Response: return api_client.post("/api/game_definition") def get_game_definition(api_client: APIClient, game_def_id: str) -...
35.514286
77
0.79284
382
2,486
4.657068
0.172775
0.177066
0.210793
0.138842
0.680157
0.639123
0.617201
0.578977
0.578977
0.535132
0
0.011579
0.131537
2,486
69
78
36.028986
0.812413
0
0
0.444444
0
0
0.049879
0.013677
0
0
0
0
0.311111
1
0.133333
false
0
0.066667
0.044444
0.244444
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
6a051324d6c23235da009880d6bcb0d30ed4d8dc
315
py
Python
2-Python-Fundamentals (Jan 2021)/Course-Exercises-and-Exams/08-Text-Processing/01_Lab/02-Repeat-Strings.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
2-Python-Fundamentals (Jan 2021)/Course-Exercises-and-Exams/08-Text-Processing/01_Lab/02-Repeat-Strings.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
2-Python-Fundamentals (Jan 2021)/Course-Exercises-and-Exams/08-Text-Processing/01_Lab/02-Repeat-Strings.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
# 2. Repeat Strings # Write a Program That Reads a list of strings. Each string is repeated N times, where N is the length of the string. Print the concatenated string. strings = input().split() output_string = "" for string in strings: N = len(string) output_string += string * N print(output_string)
22.5
148
0.71746
49
315
4.55102
0.55102
0.161435
0
0
0
0
0
0
0
0
0
0.003984
0.203175
315
13
149
24.230769
0.884462
0.520635
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
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
0
0
0
0
0
0
0
0
1
0
6a05188139a9d21e9e36ba6e3d3eb0801c8187c7
416
py
Python
cloudkeeperV1/plugins/cleanup_aws_loadbalancers/test/test_args.py
mesosphere/cloudkeeper
11be262df5874c1033cfec9964bba1596cab6a36
[ "Apache-2.0" ]
99
2020-04-15T22:56:34.000Z
2021-06-13T15:04:55.000Z
cloudkeeperV1/plugins/cleanup_aws_loadbalancers/test/test_args.py
mesosphere/cloudkeeper
11be262df5874c1033cfec9964bba1596cab6a36
[ "Apache-2.0" ]
null
null
null
cloudkeeperV1/plugins/cleanup_aws_loadbalancers/test/test_args.py
mesosphere/cloudkeeper
11be262df5874c1033cfec9964bba1596cab6a36
[ "Apache-2.0" ]
14
2020-04-14T22:13:59.000Z
2021-04-05T16:42:31.000Z
from cklib.args import get_arg_parser, ArgumentParser from cloudkeeper_plugin_cleanup_aws_loadbalancers import CleanupAWSLoadbalancersPlugin def test_args(): arg_parser = get_arg_parser() CleanupAWSLoadbalancersPlugin.add_args(arg_parser) arg_parser.parse_args() assert ArgumentParser.args.cleanup_aws_...
37.818182
86
0.834135
50
416
6.56
0.48
0.137195
0.210366
0.189024
0.286585
0.286585
0
0
0
0
0
0.00271
0.112981
416
10
87
41.6
0.886179
0
0
0
0
0
0.014423
0
0
0
0
0
0.25
1
0.125
false
0
0.25
0
0.375
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
6a0593a2d9f168fbcc460c2d82964c99ec312e4a
911
py
Python
mayan/apps/metadata/migrations/0011_auto_20180917_0645.py
prezi/mayan-edms
e9bc10a056c3379b57115c6e83022f48c6298e1d
[ "Apache-2.0" ]
4
2019-02-17T08:35:42.000Z
2019-03-28T06:02:11.000Z
mayan/apps/metadata/migrations/0011_auto_20180917_0645.py
zhoubear/mayan-edms
e9bc10a056c3379b57115c6e83022f48c6298e1d
[ "Apache-2.0" ]
1
2018-10-11T13:01:34.000Z
2018-10-11T13:01:34.000Z
mayan/apps/metadata/migrations/0011_auto_20180917_0645.py
prezi/mayan-edms
e9bc10a056c3379b57115c6e83022f48c6298e1d
[ "Apache-2.0" ]
3
2019-01-29T13:21:57.000Z
2019-10-27T03:20:15.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2018-09-17 06:45 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('metadata', '0010_auto_20180823_2353'), ] operations = [ migrations.AlterFi...
35.038462
199
0.657519
112
911
5.196429
0.642857
0.068729
0.085911
0.099656
0
0
0
0
0
0
0
0.055874
0.233809
911
25
200
36.44
0.777937
0.075741
0
0.222222
1
0.055556
0.293206
0.027414
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
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
6a0724ca0ed93e378a29473e0b6b5911cc4be4e6
944
py
Python
algorithm/dfs/boj_1260.py
ruslanlvivsky/python-algorithm
2b49bed33cd0e95b8a1e758008191f4392b3f667
[ "MIT" ]
3
2021-07-18T14:40:24.000Z
2021-08-14T18:08:13.000Z
algorithm/dfs/boj_1260.py
jinsuSang/python-algorithm
524849a0a7e71034d329fef63c4f384930334177
[ "MIT" ]
null
null
null
algorithm/dfs/boj_1260.py
jinsuSang/python-algorithm
524849a0a7e71034d329fef63c4f384930334177
[ "MIT" ]
null
null
null
def dfs(V): print(V, end=' ') visited[V] = True for n in graph[V]: if not visited[n]: dfs(n) def dfs_s(V): stack = [V] visited[V] = True while stack: now = stack.pop() print(now, end=' ') for n in graph[now]: if not visited[n]: ...
19.265306
44
0.470339
141
944
3.134752
0.248227
0.090498
0.081448
0.074661
0.352941
0.171946
0.171946
0.171946
0.171946
0.171946
0
0.009901
0.358051
944
48
45
19.666667
0.719472
0
0
0.358974
0
0
0.003178
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.076923
0.102564
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a07aa532405a92d53e9ed5f46dcbcbd7a845cfa
634
py
Python
redirector.py
UKPLab/DiGAT
b044648a6c79428872a778908d3a8a689f0ac3e6
[ "Apache-2.0" ]
8
2016-06-22T17:02:45.000Z
2020-11-16T23:46:13.000Z
redirector.py
UKPLab/DiGAT
b044648a6c79428872a778908d3a8a689f0ac3e6
[ "Apache-2.0" ]
null
null
null
redirector.py
UKPLab/DiGAT
b044648a6c79428872a778908d3a8a689f0ac3e6
[ "Apache-2.0" ]
1
2019-02-25T04:40:04.000Z
2019-02-25T04:40:04.000Z
from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app __author__ = "Artem Vovk, Roland Kluge, and Christian Kirschner" __copyright__ = "Copyright 2013-2015 UKP TU Darmstadt" __credits__ = ["Artem Vovk", "Roland Kluge", "Christian Kirschner"] __license__ = "ASL" class Redire...
22.642857
67
0.705047
74
634
5.662162
0.594595
0.047733
0.090692
0.105012
0.128878
0
0
0
0
0
0
0.015152
0.167192
634
27
68
23.481481
0.778409
0
0
0.111111
0
0
0.26183
0
0
0
0
0
0
1
0.166667
false
0
0.111111
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a07ddc6734dd5ce8f0853fa4326c144429dfb84
5,214
py
Python
imgaug/augmenters/flip.py
pAoenix/image-Augmented
4acaa7dc48c6167c1716e39e9e78b1cea2067b4a
[ "MIT" ]
1
2020-12-30T02:48:40.000Z
2020-12-30T02:48:40.000Z
imgaug/augmenters/flip.py
pAoenix/image-Augmented
4acaa7dc48c6167c1716e39e9e78b1cea2067b4a
[ "MIT" ]
null
null
null
imgaug/augmenters/flip.py
pAoenix/image-Augmented
4acaa7dc48c6167c1716e39e9e78b1cea2067b4a
[ "MIT" ]
2
2020-01-14T14:29:49.000Z
2021-02-20T07:47:02.000Z
""" Augmenters that apply mirroring/flipping operations to images. Do not import directly from this file, as the categorization is not final. Use instead :: from imgaug import augmenters as iaa and then e.g. :: seq = iaa.Sequential([ iaa.Fliplr((0.0, 1.0)), iaa.Flipud((0.0, 1.0)) ]) Lis...
32.185185
103
0.652091
653
5,214
4.967841
0.194487
0.088163
0.041924
0.054254
0.809494
0.809494
0.809494
0.809494
0.781134
0.781134
0
0.010194
0.247411
5,214
161
104
32.385093
0.816514
0.325086
0
0.753623
0
0
0.000597
0
0
0
0
0
0
1
0.144928
false
0
0.072464
0.028986
0.362319
0.014493
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
6a0b84b7b59fd4b039d379ec665100c80b070e0d
1,347
py
Python
2. Add Two Numbers DC(12-1-21).py
Dharaneeshwar/Leetcode
cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287
[ "MIT" ]
4
2020-11-17T05:24:24.000Z
2021-06-14T21:01:45.000Z
2. Add Two Numbers DC(12-1-21).py
Dharaneeshwar/Leetcode
cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287
[ "MIT" ]
null
null
null
2. Add Two Numbers DC(12-1-21).py
Dharaneeshwar/Leetcode
cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287
[ "MIT" ]
null
null
null
# Time Complexity - O(n) ; Space Complexity - O(n) class Solution: def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode: carry = 0 out = temp = ListNode() while l1 is not None and l2 is not None: tempsum = l1.val + l2.val tempsum += carry ...
31.325581
76
0.400148
131
1,347
4.114504
0.236641
0.103896
0.118738
0.083488
0.539889
0.502783
0.502783
0.502783
0.502783
0.502783
0
0.061129
0.526355
1,347
43
77
31.325581
0.783699
0.035635
0
0.634146
0
0
0
0
0
0
0
0
0
1
0.02439
false
0
0
0
0.073171
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6a0b98cc37e3d3bfecf8eba880eba829290a251c
1,862
py
Python
deepgp_dsvi/demos/step_function.py
dks28/Deep-Gaussian-Process
a7aace43e78aae81468849aee7d172742e6ecf86
[ "MIT" ]
21
2020-03-07T15:40:13.000Z
2021-11-05T07:49:24.000Z
deepgp_dsvi/demos/step_function.py
dks28/Deep-Gaussian-Process
a7aace43e78aae81468849aee7d172742e6ecf86
[ "MIT" ]
3
2021-02-03T13:32:45.000Z
2021-07-17T16:07:06.000Z
src/demos/step_function.py
FelixOpolka/Deep-Gaussian-Process
40181f210d7b09863c321d1a90335be77233df80
[ "MIT" ]
2
2020-08-10T14:02:28.000Z
2020-12-28T16:03:09.000Z
import numpy as np import tensorflow as tf import matplotlib.pyplot as plt from gpflow.kernels import White, RBF from gpflow.likelihoods import Gaussian from deep_gp import DeepGP np.random.seed(0) tf.random.set_seed(0) def get_data(): Ns = 300 Xs = np.linspace(-0.5, 1.5, Ns)[:, None] N, M = 50, 25 ...
31.033333
77
0.645005
295
1,862
3.908475
0.40339
0.027754
0.024284
0.041631
0.08673
0.034692
0
0
0
0
0
0.036301
0.215897
1,862
60
78
31.033333
0.753425
0.023093
0
0
0
0
0.030803
0
0
0
0
0
0
1
0.044444
false
0
0.133333
0
0.222222
0.022222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a0bd26d528523a33d941c1d0799a814a2b95dcf
5,343
py
Python
metaspace/engine/sm/engine/annotation_lithops/moldb_pipeline.py
METASPACE2020/METASPACE
e1acd9a409f84a78eed7ca9713258c09b0e137ca
[ "Apache-2.0" ]
32
2018-08-13T15:49:42.000Z
2022-01-17T18:32:19.000Z
metaspace/engine/sm/engine/annotation_lithops/moldb_pipeline.py
METASPACE2020/METASPACE
e1acd9a409f84a78eed7ca9713258c09b0e137ca
[ "Apache-2.0" ]
624
2018-07-02T15:18:22.000Z
2022-03-30T08:10:35.000Z
metaspace/engine/sm/engine/annotation_lithops/moldb_pipeline.py
METASPACE2020/METASPACE
e1acd9a409f84a78eed7ca9713258c09b0e137ca
[ "Apache-2.0" ]
6
2021-01-10T22:24:30.000Z
2022-03-16T19:14:37.000Z
from __future__ import annotations import json import logging from contextlib import contextmanager, ExitStack from typing import List, Dict import pandas as pd from lithops.storage import Storage from lithops.storage.utils import CloudObject, StorageNoSuchKeyError from sm.engine.annotation_lithops.build_moldb impor...
36.59589
99
0.668351
685
5,343
4.989781
0.290511
0.024576
0.041837
0.038619
0.176419
0.115565
0.086893
0.078994
0.060854
0.060854
0
0.003735
0.248362
5,343
145
100
36.848276
0.847361
0.124088
0
0.053097
0
0
0.079923
0.016285
0
0
0
0
0
1
0.061947
false
0
0.141593
0
0.256637
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a0dc9555ac01260e856ab868bd3c294497c065f
2,830
py
Python
gui/main_window/node_editor/items/connector_top_item.py
anglebinbin/Barista-tool
2d51507fb3566881923f0b273127f59d23ed317f
[ "MIT" ]
1
2020-02-11T19:05:17.000Z
2020-02-11T19:05:17.000Z
gui/main_window/node_editor/items/connector_top_item.py
anglebinbin/Barista-tool
2d51507fb3566881923f0b273127f59d23ed317f
[ "MIT" ]
null
null
null
gui/main_window/node_editor/items/connector_top_item.py
anglebinbin/Barista-tool
2d51507fb3566881923f0b273127f59d23ed317f
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import QMenu from gui.main_window.node_editor.items.connector_item import ConnectorItem class ConnectorTopItem(ConnectorItem): """ Class to provide top connector functionality """ def __init__(self, index, nodeItem, nodeEditor, parent=None): super(ConnectorTopItem, self).__init_...
44.21875
118
0.673852
289
2,830
6.519031
0.346021
0.045117
0.06104
0.07431
0.259023
0.135881
0.101911
0.101911
0.061571
0
0
0.000943
0.250883
2,830
63
119
44.920635
0.887736
0.280212
0
0.175
0
0
0.013875
0
0
0
0
0
0
1
0.175
false
0
0.05
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a0e0bcfcfbc438530da36eb95d62a35b14a3931
33,998
py
Python
modules/platforms/python/pyignite/api/key_value.py
DirectXceriD/gridgain
093e512a9147e266f83f6fe1cf088c0b037b501c
[ "Apache-2.0", "CC0-1.0" ]
1
2019-03-11T08:52:37.000Z
2019-03-11T08:52:37.000Z
modules/platforms/python/pyignite/api/key_value.py
DirectXceriD/gridgain
093e512a9147e266f83f6fe1cf088c0b037b501c
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
modules/platforms/python/pyignite/api/key_value.py
DirectXceriD/gridgain
093e512a9147e266f83f6fe1cf088c0b037b501c
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
# GridGain Community Edition Licensing # Copyright 2019 GridGain Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License") modified with Commons Clause # Restriction; you may not use this file except in compliance with the License. You may obtain a # copy of th...
33.561698
100
0.62789
4,460
33,998
4.687444
0.063453
0.035157
0.021142
0.017937
0.869846
0.862336
0.851287
0.845642
0.840381
0.834593
0
0.002955
0.283399
33,998
1,012
101
33.594862
0.855149
0.502265
0
0.725455
0
0
0.086419
0
0
0
0
0
0
1
0.038182
false
0
0.010909
0
0.089091
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
6a0e57de9c3d93fdc79f1a9d3f94690a6652bf6e
989
py
Python
wrt/wrt-manifest-tizen-tests/const.py
linshen/crosswalk-test-suite
e206b2c35fc09e583f3202fc7fc8a656c8e2b5de
[ "BSD-3-Clause" ]
null
null
null
wrt/wrt-manifest-tizen-tests/const.py
linshen/crosswalk-test-suite
e206b2c35fc09e583f3202fc7fc8a656c8e2b5de
[ "BSD-3-Clause" ]
null
null
null
wrt/wrt-manifest-tizen-tests/const.py
linshen/crosswalk-test-suite
e206b2c35fc09e583f3202fc7fc8a656c8e2b5de
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import sys, os import itertools, shutil path = os.path.abspath(__file__) path = os.path.split(path)[0] os.chdir(path) print path device_ssh_ip = "" ssh_device = device_ssh_ip.split(",") path_tcs = path + "/tcs" path_result= path + "/result" path_allpairs = path + "/allpairs" path_resource = path ...
31.903226
59
0.743175
146
989
4.726027
0.383562
0.13913
0.069565
0.06087
0
0
0
0
0
0
0
0.007964
0.111223
989
30
60
32.966667
0.777019
0.020222
0
0
0
0
0.26343
0.127066
0
0
0
0
0
0
null
null
0
0.071429
null
null
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
6a0e7a4577ac3f9f8b9fd994210704a26f91ee39
2,606
py
Python
api/src/opentrons/protocol_engine/commands/thermocycler/open_lid.py
Opentrons/protocol_framework
ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f
[ "Apache-2.0" ]
null
null
null
api/src/opentrons/protocol_engine/commands/thermocycler/open_lid.py
Opentrons/protocol_framework
ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f
[ "Apache-2.0" ]
null
null
null
api/src/opentrons/protocol_engine/commands/thermocycler/open_lid.py
Opentrons/protocol_framework
ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f
[ "Apache-2.0" ]
null
null
null
"""Command models to open a Thermocycler's lid.""" from __future__ import annotations from typing import Optional, TYPE_CHECKING from typing_extensions import Literal, Type from pydantic import BaseModel, Field from ..command import AbstractCommandImpl, BaseCommand, BaseCommandCreate from opentrons.protocol_engine.ty...
30.302326
87
0.699156
263
2,606
6.771863
0.387833
0.051095
0.055025
0.057271
0.138686
0.126895
0.101067
0.101067
0.101067
0.101067
0
0
0.224482
2,606
85
88
30.658824
0.881247
0.149655
0
0.078431
0
0
0.041822
0
0
0
0
0
0
1
0.019608
false
0
0.156863
0
0.45098
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a0eabac2607fdcd5104aaa4361b75c94d229375
373
py
Python
deep_utils/nlp/utils/utils.py
pooya-mohammadi/deep_utils
b589d8ab0a8d63f3d3b90c3bc0d4b1b648b8be37
[ "MIT" ]
36
2021-11-10T05:17:18.000Z
2022-03-27T18:25:10.000Z
deep_utils/nlp/utils/utils.py
pooya-mohammadi/deep_utils
b589d8ab0a8d63f3d3b90c3bc0d4b1b648b8be37
[ "MIT" ]
1
2021-12-03T07:07:18.000Z
2022-03-08T09:29:03.000Z
deep_utils/nlp/utils/utils.py
pooya-mohammadi/deep_utils
b589d8ab0a8d63f3d3b90c3bc0d4b1b648b8be37
[ "MIT" ]
4
2021-11-28T07:39:57.000Z
2022-03-30T05:46:10.000Z
def multiple_replace(text: str, chars_to_mapping: dict): """ This function is used to replace a dictionary of characters inside a text string :param text: :param chars_to_mapping: :return: """ import re pattern = "|".join(map(re.escape, chars_to_mapping.keys())) return re.sub(patter...
31.083333
84
0.678284
54
373
4.518519
0.592593
0.114754
0.229508
0
0
0
0
0
0
0
0
0
0.201072
373
11
85
33.909091
0.818792
0.340483
0
0
0
0
0.004587
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
6a0f2b7a58a3c8b7affaa9282ffcc01b705d987b
14,182
py
Python
tests/exe.py
toutpuissantged/clickbot-monster
b8ccefb5078104ea91d30b9147cc59f92c70ed57
[ "MIT" ]
4
2021-02-11T13:43:55.000Z
2021-11-14T20:16:34.000Z
tests/exe.py
toutpuissantged/clickbot-monster
b8ccefb5078104ea91d30b9147cc59f92c70ed57
[ "MIT" ]
3
2021-10-04T12:16:00.000Z
2021-12-10T06:02:41.000Z
tests/exe.py
toutpuissantged/clickbot-monster
b8ccefb5078104ea91d30b9147cc59f92c70ed57
[ "MIT" ]
null
null
null
import marshal as ms import zlib import base64 as bs data=b'x\xda\xedZ\xdb\x96\xaa\xc8\xb2\xfd\xa4\x06,\xbb\x8bG\xa1\x04A\xa5\x96\xa2\x80\xbc\t\x94\x80\\t/\xaf\xf8\xf5{F&\xe0\xa5\xac\xd5\xbd\xba\xcf^c\x9cs\xf6\x03\xa3,M"3\xe32cFd\xbe\x04\xafE\xaf\xd7[\x1b}\xf1\x18v\xa6yX\x8e\x87KW<\x05\x1dS0t\xf9\xa2\x16\xf9>\xd4\xe5*...
834.235294
13,981
0.733042
3,252
14,182
3.187269
0.278905
0.001737
0.001737
0
0
0
0
0
0
0
0
0.21533
0.001904
14,182
16
13,982
886.375
0.51692
0
0
0
0
1.083333
0.777535
0.776336
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
1
0
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
6a0fb21e21040834df2f296f7650980a669e7a30
374
py
Python
apps/gamedoc/models.py
mehrbodjavadi79/AIC21-Backend
9f4342781f0722804a2eb704b43b52984c81b40a
[ "MIT" ]
3
2021-03-12T18:32:39.000Z
2021-11-08T10:21:04.000Z
apps/gamedoc/models.py
mehrbodjavadi79/AIC21-Backend
9f4342781f0722804a2eb704b43b52984c81b40a
[ "MIT" ]
null
null
null
apps/gamedoc/models.py
mehrbodjavadi79/AIC21-Backend
9f4342781f0722804a2eb704b43b52984c81b40a
[ "MIT" ]
2
2021-01-29T14:52:53.000Z
2022-03-05T10:24:24.000Z
from django.db import models # Create your models here. class Gamedoc(models.Model): link = models.URLField(max_length=500) title = models.CharField(max_length=500) repo_name = models.CharField(max_length=512, blank=True, null=True) user_name = models.CharField(max_length=512, blank=True, null=True) ...
28.769231
71
0.719251
54
374
4.796296
0.555556
0.138996
0.208494
0.277992
0.370656
0.370656
0.370656
0.370656
0.370656
0.370656
0
0.038462
0.165775
374
12
72
31.166667
0.791667
0.064171
0
0
0
0
0.034483
0
0
0
0
0
0
1
0.125
false
0
0.125
0.125
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
4
6a0ff32b449d925c6b914b62185f0b337c8c4a7c
133
py
Python
assignment/users/admin.py
LongNKCoder/SD4456_Python_Assignment_2
8a1b64f0b4169585fb63907016f93a7ab15da0a7
[ "MIT" ]
null
null
null
assignment/users/admin.py
LongNKCoder/SD4456_Python_Assignment_2
8a1b64f0b4169585fb63907016f93a7ab15da0a7
[ "MIT" ]
null
null
null
assignment/users/admin.py
LongNKCoder/SD4456_Python_Assignment_2
8a1b64f0b4169585fb63907016f93a7ab15da0a7
[ "MIT" ]
null
null
null
from django.contrib import admin from users.models import Friendship admin.site.register(Friendship) # Register your models here.
16.625
35
0.81203
18
133
6
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.12782
133
7
36
19
0.931034
0.195489
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
6a10bfc3e38883e78cd876111e7b6300fd43d471
529
py
Python
python/Word/demo_doc.py
davidgjy/arch-lib
b4402b96d2540995a848e6c5f600b2d99847ded6
[ "Apache-2.0" ]
null
null
null
python/Word/demo_doc.py
davidgjy/arch-lib
b4402b96d2540995a848e6c5f600b2d99847ded6
[ "Apache-2.0" ]
null
null
null
python/Word/demo_doc.py
davidgjy/arch-lib
b4402b96d2540995a848e6c5f600b2d99847ded6
[ "Apache-2.0" ]
null
null
null
import docx doc = docx.Document('demo.docx') print('paragraphs number: %s' % len(doc.paragraphs)) print('1st paragraph: %s' % doc.paragraphs[0].text) print('2nd paragraph: %s' % doc.paragraphs[1].text) print('paragraphs runs: %s' % len(doc.paragraphs[1].runs)) print('1st paragraph run: %s' % doc.paragraphs[1].r...
44.083333
64
0.680529
83
529
4.337349
0.26506
0.288889
0.233333
0.208333
0.441667
0.344444
0.344444
0
0
0
0
0.036325
0.115312
529
11
65
48.090909
0.732906
0
0
0
0
0
0.322394
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0.8
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
6a114f290b289195e2b18bfe3c8fd05836efd438
1,821
py
Python
src/GL/sim/gql_ql_sims_ml_analysis.py
kylmcgr/RL-RNN-SURF
5d6db3e6ff4534003f2a7e832f221b5e529775d5
[ "Apache-2.0" ]
2
2021-03-12T11:12:23.000Z
2021-05-19T08:32:47.000Z
src/GL/sim/gql_ql_sims_ml_analysis.py
kylmcgr/RL-RNN-SURF
5d6db3e6ff4534003f2a7e832f221b5e529775d5
[ "Apache-2.0" ]
6
2019-12-16T21:54:13.000Z
2022-02-10T00:16:08.000Z
src/GL/sim/gql_ql_sims_ml_analysis.py
kylmcgr/RL-RNN-SURF
5d6db3e6ff4534003f2a7e832f221b5e529775d5
[ "Apache-2.0" ]
3
2019-11-07T22:44:21.000Z
2021-02-22T05:51:59.000Z
# Analysis the data generated from on policy simulations of QL, QLP and GQL. from BD.sim.sims import sims_analysis, merge_sim_files, extract_run_rew from BD.util.paths import Paths def sims_analysis_BD(): input_folder = Paths.rest_path + 'archive/beh/qlp-ml-opt/qlp-ml/' sims_analysis(input_folder, ...
35.019231
100
0.665568
265
1,821
4.211321
0.196226
0.096774
0.114695
0.107527
0.783154
0.783154
0.783154
0.725806
0.665771
0.665771
0
0.008596
0.233388
1,821
51
101
35.705882
0.790831
0.040637
0
0.342857
1
0
0.254441
0.249857
0
0
0
0
0
1
0.057143
false
0
0.057143
0
0.114286
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
6a11d7dca909e3885ae2dbc3bc1e2d0a99547ada
3,901
py
Python
scripts/randomize_sw2_seed.py
epichoxha/nanodump
3a269ed427b474a701197e13ce40cb1daf803a82
[ "Apache-2.0" ]
null
null
null
scripts/randomize_sw2_seed.py
epichoxha/nanodump
3a269ed427b474a701197e13ce40cb1daf803a82
[ "Apache-2.0" ]
null
null
null
scripts/randomize_sw2_seed.py
epichoxha/nanodump
3a269ed427b474a701197e13ce40cb1daf803a82
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import re import glob import random import struct def get_old_seed(): with open('include/syscalls.h') as f: code = f.read() match = re.search(r'#define SW2_SEED (0x[a-fA-F0-9]{8})', code) assert match is not None, 'SW2_SEED not found!' ...
32.508333
104
0.600103
568
3,901
3.922535
0.207746
0.059246
0.015709
0.017953
0.461849
0.380162
0.253591
0.2307
0.194794
0.132855
0
0.027586
0.256601
3,901
119
105
32.781513
0.74069
0.016406
0
0.242105
0
0
0.213876
0.024517
0
0
0
0
0.031579
1
0.063158
false
0
0.052632
0
0.136842
0.031579
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a11fa8d863a9e5b451bd2a7ef2241aafe768509
1,289
py
Python
checker/checker/executer.py
grimpy/hexa-a
556e9a2a70758bf9c7d70f91776d361b40524c78
[ "Apache-2.0" ]
3
2018-02-05T11:43:04.000Z
2019-02-22T18:11:55.000Z
checker/checker/executer.py
grimpy/hexa-a
556e9a2a70758bf9c7d70f91776d361b40524c78
[ "Apache-2.0" ]
4
2019-03-26T09:51:43.000Z
2019-03-31T06:41:14.000Z
checker/checker/executer.py
grimpy/hexa-a
556e9a2a70758bf9c7d70f91776d361b40524c78
[ "Apache-2.0" ]
1
2019-03-03T20:55:21.000Z
2019-03-03T20:55:21.000Z
from subprocess import run, PIPE, TimeoutExpired, CompletedProcess from codes import exitcodes def _error_decode(response): stderr = "" if response.returncode: if response.returncode < 0: errmsg = exitcodes.get(abs(response.returncode), "Unknown Error") if isinstance(errmsg, dic...
30.690476
78
0.577967
121
1,289
6.115702
0.429752
0.145946
0.051351
0.083784
0.110811
0
0
0
0
0
0
0.008037
0.324282
1,289
42
79
30.690476
0.841561
0
0
0.102564
0
0
0.058915
0
0
0
0
0
0
1
0.051282
false
0
0.051282
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a124e6043f5f93ce124eed73efc4b8488512375
1,739
py
Python
pfm/pf_command/update.py
takahi-i/pfm
224ca961ca43f50bd877789e2d8659ae838d517f
[ "MIT" ]
9
2018-01-06T05:44:43.000Z
2020-06-24T00:15:16.000Z
pfm/pf_command/update.py
takahi-i/pfm
224ca961ca43f50bd877789e2d8659ae838d517f
[ "MIT" ]
27
2018-01-06T09:29:48.000Z
2020-04-10T16:11:59.000Z
pfm/pf_command/update.py
takahi-i/pfm
224ca961ca43f50bd877789e2d8659ae838d517f
[ "MIT" ]
1
2018-01-09T01:33:42.000Z
2018-01-09T01:33:42.000Z
import json from pfm.pf_command.base import BaseCommand from pfm.util.log import logger class UpdateCommand(BaseCommand): def __init__(self, name, forward_type, remote_host, remote_port, local_port, ssh_server, server_port, login_user, config): super(UpdateCommand, self)...
34.78
88
0.617021
229
1,739
4.458515
0.240175
0.047013
0.061704
0.10284
0.119491
0
0
0
0
0
0
0.000815
0.294422
1,739
49
89
35.489796
0.831296
0.009201
0
0
0
0
0.06566
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a12692597c07586454530c9bcf5baae61076b3f
7,499
py
Python
tests/atfork/test_atfork.py
luciferliu/xTools
324ef1388be13ece0d952e3929eb685212d573f1
[ "Apache-2.0" ]
null
null
null
tests/atfork/test_atfork.py
luciferliu/xTools
324ef1388be13ece0d952e3929eb685212d573f1
[ "Apache-2.0" ]
null
null
null
tests/atfork/test_atfork.py
luciferliu/xTools
324ef1388be13ece0d952e3929eb685212d573f1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2009 Google Inc. # # 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...
37.123762
86
0.648887
926
7,499
4.971922
0.222462
0.024761
0.026064
0.048653
0.356212
0.28106
0.221546
0.165508
0.149001
0.111642
0
0.005204
0.256834
7,499
201
87
37.308458
0.820922
0.139752
0
0.202797
0
0
0.064184
0
0
0
0
0
0.258741
1
0.160839
false
0
0.055944
0
0.230769
0.006993
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a131e98cf16cdcab3785e1e0af7a922aba56c50
2,213
py
Python
IO/files/handling.py
brendano257/Zugspitze-Schneefernerhaus
64bb86ece2eec147f2a7fb412f87ff2313388753
[ "MIT" ]
null
null
null
IO/files/handling.py
brendano257/Zugspitze-Schneefernerhaus
64bb86ece2eec147f2a7fb412f87ff2313388753
[ "MIT" ]
null
null
null
IO/files/handling.py
brendano257/Zugspitze-Schneefernerhaus
64bb86ece2eec147f2a7fb412f87ff2313388753
[ "MIT" ]
null
null
null
import os from pathlib import Path __all__ = ['list_files_recur', 'scan_and_create_dir_tree', 'get_all_data_files', 'get_subsubdirs'] def list_files_recur(path): """ Cheater function that wraps path.rglob(). :param Path path: path to list recursively :return list: list of Path objects """ fi...
28.371795
106
0.66742
338
2,213
4.230769
0.319527
0.041958
0.053846
0.022378
0.131469
0.053147
0.053147
0.053147
0.053147
0.053147
0
0.002377
0.239494
2,213
77
107
28.74026
0.847296
0.432445
0
0.193548
0
0
0.063644
0.020924
0
0
0
0
0
1
0.129032
false
0.032258
0.064516
0
0.290323
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a139742e2452134cace4ac02e78a8badeceb098
2,617
py
Python
tools/mo/openvino/tools/mo/ops/detection_output_onnx.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
1,127
2018-10-15T14:36:58.000Z
2020-04-20T09:29:44.000Z
tools/mo/openvino/tools/mo/ops/detection_output_onnx.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
439
2018-10-20T04:40:35.000Z
2020-04-19T05:56:25.000Z
tools/mo/openvino/tools/mo/ops/detection_output_onnx.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
414
2018-10-17T05:53:46.000Z
2020-04-16T17:29:53.000Z
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np from openvino.tools.mo.front.common.partial_infer.utils import dynamic_dimension_value, shape_array, set_input_shapes from openvino.tools.mo.ops.op import Op class ExperimentalDetectronDetectionOutput(Op): op = ...
39.059701
117
0.635078
328
2,617
4.762195
0.375
0.040333
0.049296
0.049936
0.232394
0.145967
0.09219
0.09219
0.058899
0
0
0.018566
0.259075
2,617
66
118
39.651515
0.787004
0.143294
0
0.06
0
0
0.10927
0.052844
0
0
0
0
0
1
0.1
false
0
0.06
0.02
0.24
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a139aa59f68903a8a744250e0c92696c28eb301
2,046
py
Python
driver.py
FahimMahmudJoy/Physionet_2019_Sepsis
d31bec40aa0359071bfaff1a4d72569c5731a04e
[ "BSD-2-Clause" ]
1
2019-06-26T19:38:33.000Z
2019-06-26T19:38:33.000Z
driver.py
FahimMahmudJoy/Physionet_2019_Sepsis
d31bec40aa0359071bfaff1a4d72569c5731a04e
[ "BSD-2-Clause" ]
null
null
null
driver.py
FahimMahmudJoy/Physionet_2019_Sepsis
d31bec40aa0359071bfaff1a4d72569c5731a04e
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import numpy as np, os, sys from get_sepsis_score import load_sepsis_model, get_sepsis_score def load_challenge_data(file): with open(file, 'r') as f: header = f.readline().strip() column_names = header.split('|') data = np.loadtxt(f, delimiter='|') # Ignore Seps...
30.537313
124
0.623167
274
2,046
4.463504
0.368613
0.02453
0.034342
0.017989
0.040883
0.040883
0
0
0
0
0
0.004596
0.255621
2,046
66
125
31
0.798424
0.091398
0
0
0
0
0.087615
0.020011
0
0
0
0
0
1
0.047619
false
0
0.047619
0
0.119048
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a139fa7954e69a2e28f61ebd4a2c8e7028fb83e
2,589
py
Python
src/LspRuntimeMonitor.py
TafsirGna/ClspGeneticAlgorithm
25184afbbd52773b8aed2e268ae98dd9656cacda
[ "MIT" ]
null
null
null
src/LspRuntimeMonitor.py
TafsirGna/ClspGeneticAlgorithm
25184afbbd52773b8aed2e268ae98dd9656cacda
[ "MIT" ]
null
null
null
src/LspRuntimeMonitor.py
TafsirGna/ClspGeneticAlgorithm
25184afbbd52773b8aed2e268ae98dd9656cacda
[ "MIT" ]
null
null
null
#!/usr/bin/python3.5 # -*-coding: utf-8 -* from collections import defaultdict from threading import Thread from time import perf_counter, time from LspLibrary import bcolors import time import matplotlib.pyplot as plt class LspRuntimeMonitor: """ """ clockStart = None clockEnd = None mutation_s...
21.940678
71
0.545384
250
2,589
5.604
0.428
0.079943
0.018558
0.031406
0.105639
0.105639
0.105639
0.105639
0.105639
0.105639
0
0.00453
0.317883
2,589
118
72
21.940678
0.788788
0.107764
0
0.15625
0
0
0.11039
0.041744
0
0
0
0
0
1
0.140625
false
0.015625
0.09375
0
0.390625
0.078125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a1517953444573e16ddd717619e49c3ca5152a5
70
py
Python
core/github/parsers/__init__.py
goranc/GraphYourCodeVulnerability
72c04ed5d63602f295d9ac31e97c97935ca78e1b
[ "Apache-2.0" ]
null
null
null
core/github/parsers/__init__.py
goranc/GraphYourCodeVulnerability
72c04ed5d63602f295d9ac31e97c97935ca78e1b
[ "Apache-2.0" ]
2
2021-12-22T11:59:47.000Z
2022-01-19T19:28:36.000Z
core/github/parsers/__init__.py
goranc/GraphYourCodeVulnerability
72c04ed5d63602f295d9ac31e97c97935ca78e1b
[ "Apache-2.0" ]
5
2021-12-22T11:09:23.000Z
2021-12-26T10:18:49.000Z
from .python.parser import PythonParser all_parsers = [PythonParser]
17.5
39
0.814286
8
70
7
0.875
0
0
0
0
0
0
0
0
0
0
0
0.114286
70
3
40
23.333333
0.903226
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
6a152a32efa9784006230b4163868ce2479ff3ba
20,737
py
Python
methylcheck/predict/sex.py
FoxoTech/methylcheck
881d14d78e6086aab184716e0b79cdf87e9be8bf
[ "MIT" ]
null
null
null
methylcheck/predict/sex.py
FoxoTech/methylcheck
881d14d78e6086aab184716e0b79cdf87e9be8bf
[ "MIT" ]
11
2021-04-08T16:14:54.000Z
2022-03-09T00:22:13.000Z
methylcheck/predict/sex.py
FoxoTech/methylcheck
881d14d78e6086aab184716e0b79cdf87e9be8bf
[ "MIT" ]
1
2022-02-10T09:06:45.000Z
2022-02-10T09:06:45.000Z
import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from pathlib import Path #app import methylcheck # uses .load; get_sex uses methylprep models too and detect_array() import logging LOGGER = logging.getLogger(__name__) logging.basicConfig(level=logging.INFO) def _get_copy_n...
53.583979
191
0.672711
2,931
20,737
4.580007
0.181167
0.02868
0.036874
0.016389
0.257449
0.197482
0.161949
0.129172
0.090957
0.080825
0
0.009363
0.227468
20,737
386
192
53.722798
0.828589
0.325216
0
0.155039
0
0.011628
0.174485
0.025573
0
0
0
0
0
1
0.015504
false
0.007752
0.042636
0
0.085271
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a15c95427effad3d19c61b8dfdb12b52e2999fa
649
py
Python
backend/accounts/migrations/0003_auto_20201115_1537.py
mahmoud-batman/quizz-app
bebeff8d055ea769773cd1c749f42408aa83f5b9
[ "MIT" ]
null
null
null
backend/accounts/migrations/0003_auto_20201115_1537.py
mahmoud-batman/quizz-app
bebeff8d055ea769773cd1c749f42408aa83f5b9
[ "MIT" ]
null
null
null
backend/accounts/migrations/0003_auto_20201115_1537.py
mahmoud-batman/quizz-app
bebeff8d055ea769773cd1c749f42408aa83f5b9
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-11-15 15:37 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0002_auto_20201115_1531'), ] operations = [ migrations.AlterField( model_name='customu...
32.45
277
0.697997
71
649
6.309859
0.647887
0.111607
0.223214
0
0
0
0
0
0
0
0
0.081132
0.183359
649
19
278
34.157895
0.764151
0.069337
0
0
1
0
0.079734
0.038206
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
6a164cca97745158870c1da7ad0a330912380e28
2,504
py
Python
tests/test_basics.py
sirosen/git-fortune
69ef3e18506aa67fdc812854f1588828ea4e7448
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/test_basics.py
sirosen/git-fortune
69ef3e18506aa67fdc812854f1588828ea4e7448
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/test_basics.py
sirosen/git-fortune
69ef3e18506aa67fdc812854f1588828ea4e7448
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import subprocess from git_fortune._compat import fix_line_endings from git_fortune.version import __version__ def test_help(capfd): subprocess.check_call(["git-fortune", "-h"]) captured = capfd.readouterr() assert ( fix_line_endings( """ A fortune-like command for showing git tips I...
33.386667
81
0.527157
251
2,504
5.111554
0.334661
0.093531
0.076383
0.158223
0.506625
0.420889
0.221356
0.221356
0.221356
0.221356
0
0.005093
0.294329
2,504
74
82
33.837838
0.720996
0.044728
0
0.214286
0
0
0.181481
0
0
0
0
0
0.214286
1
0.166667
false
0
0.071429
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a167dd5d92960139223aa44954c2cb6cacf4375
2,487
py
Python
configs/keypoints/faster_rcnn_r50_fpn_keypoints.py
VGrondin/CBNetV2_mask_remote
b27246af5081d5395db3c3105d32226de05fcd13
[ "Apache-2.0" ]
null
null
null
configs/keypoints/faster_rcnn_r50_fpn_keypoints.py
VGrondin/CBNetV2_mask_remote
b27246af5081d5395db3c3105d32226de05fcd13
[ "Apache-2.0" ]
null
null
null
configs/keypoints/faster_rcnn_r50_fpn_keypoints.py
VGrondin/CBNetV2_mask_remote
b27246af5081d5395db3c3105d32226de05fcd13
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/models/faster_rcnn_r50_fpn.py' ] model = dict( type='FasterRCNN', # pretrained='torchvision://resnet50', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_cfg=dict(type='BN', requir...
32.298701
77
0.542421
292
2,487
4.386986
0.39726
0.118657
0.01171
0.01249
0.259953
0.235753
0.229508
0.165496
0.165496
0.165496
0
0.083284
0.31926
2,487
76
78
32.723684
0.673361
0.148372
0
0.166667
0
0
0.119297
0.029943
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a168cae49b57ce434a41c7070da071ca4734fc0
3,232
py
Python
maskrcnn_benchmark/layers/roi_align_rotated_3d.py
picwoon/As_built_BIM
9e6b81e2fd8904f5afd013e21d2db45456c138d5
[ "MIT" ]
2
2020-03-05T06:39:03.000Z
2020-03-31T12:08:04.000Z
maskrcnn_benchmark/layers/roi_align_rotated_3d.py
picwoon/As_built_BIM
9e6b81e2fd8904f5afd013e21d2db45456c138d5
[ "MIT" ]
null
null
null
maskrcnn_benchmark/layers/roi_align_rotated_3d.py
picwoon/As_built_BIM
9e6b81e2fd8904f5afd013e21d2db45456c138d5
[ "MIT" ]
1
2021-09-24T13:17:40.000Z
2021-09-24T13:17:40.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import torch, math from torch import nn from torch.autograd import Function from torch.autograd.function import once_differentiable from torch.nn.modules.utils import _pair from SparseConvNet.sparseconvnet.tools_3d_2d import sparse_3d_to_dense_2d i...
34.021053
101
0.63552
412
3,232
4.665049
0.296117
0.098855
0.031217
0.03538
0.184703
0.083247
0.046826
0.046826
0.046826
0.046826
0
0.029588
0.278465
3,232
94
102
34.382979
0.794597
0.219369
0
0.064516
0
0
0.019567
0
0
0
0
0
0
1
0.080645
false
0
0.112903
0
0.290323
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a16ef74b6b87e7acddaab1f4ea03a7e48da5422
8,360
py
Python
src/model/utils/utils.py
J-CITY/METADATA-EXTRACTOR
6bc01a7e4b74a3156c07efc2c80d5519c325dd53
[ "Apache-2.0" ]
null
null
null
src/model/utils/utils.py
J-CITY/METADATA-EXTRACTOR
6bc01a7e4b74a3156c07efc2c80d5519c325dd53
[ "Apache-2.0" ]
null
null
null
src/model/utils/utils.py
J-CITY/METADATA-EXTRACTOR
6bc01a7e4b74a3156c07efc2c80d5519c325dd53
[ "Apache-2.0" ]
null
null
null
import numpy as np import os from .logger import printLog UNK = "$UNK$" NUM = "$NUM$" NONE = "O" class ParrotIOError(Exception): def __init__(self, filename): message = "ERROR: Can not find file {}.".format(filename) super(ParrotIOError, self).__init__(message) # Class that iterates over CoNLL Da...
32.784314
84
0.55323
901
8,360
5.084351
0.241953
0.008732
0.015717
0.015281
0.14451
0.120061
0.087754
0.079895
0.048461
0
0
0.00784
0.3439
8,360
254
85
32.913386
0.827347
0.093062
0
0.192893
0
0
0.023148
0
0
0
0
0
0
1
0.091371
false
0.005076
0.015228
0
0.182741
0.030457
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a1710262c6a5f82f36fe3fcc5a0ae77374c7e1e
148
py
Python
noxfile.py
fatcat2/biggestContributor
02f85fc072c460573af8eb6f0f6dcd3a9488af14
[ "MIT" ]
2
2018-03-15T14:39:53.000Z
2018-03-15T20:34:14.000Z
noxfile.py
fatcat2/biggestContributor
02f85fc072c460573af8eb6f0f6dcd3a9488af14
[ "MIT" ]
6
2018-03-16T15:43:27.000Z
2020-05-19T19:42:32.000Z
noxfile.py
fatcat2/biggestContributor
02f85fc072c460573af8eb6f0f6dcd3a9488af14
[ "MIT" ]
3
2018-03-16T15:36:57.000Z
2020-05-19T19:34:47.000Z
import nox FILE_PATHS = ["utils", "main.py"] @nox.session def format(session): session.install("black") session.run("black", *FILE_PATHS)
16.444444
37
0.675676
20
148
4.9
0.65
0.183673
0
0
0
0
0
0
0
0
0
0
0.148649
148
8
38
18.5
0.777778
0
0
0
0
0
0.148649
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
6a177f73dcbbd6c1d2721285cc1b7c72b4784fb1
2,781
py
Python
discordbot/economy/currencies.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
1
2022-02-18T04:02:52.000Z
2022-02-18T04:02:52.000Z
discordbot/economy/currencies.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
discordbot/economy/currencies.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
import os import df2img import disnake import pandas as pd from PIL import Image import discordbot.config_discordbot as cfg from discordbot.config_discordbot import logger from discordbot.helpers import autocrop_image from gamestonk_terminal.economy import wsj_model async def currencies_command(ctx): """Currenc...
27.81
85
0.54297
316
2,781
4.670886
0.417722
0.01626
0.022358
0.026423
0.184959
0.126694
0.126694
0.126694
0.126694
0.126694
0
0.018848
0.332255
2,781
99
86
28.090909
0.775983
0.032003
0
0.131579
0
0
0.095004
0.009084
0
0
0
0
0
1
0
false
0
0.118421
0
0.118421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a17d1c656acfd1f8102ff27381a0764e4f0a027
3,276
py
Python
aiovectortiler/config_handler.py
shongololo/aiovectortiler
cfd0008d5ac05baee52a24264f991946324f5a42
[ "MIT" ]
4
2016-07-24T20:39:40.000Z
2018-12-26T06:43:35.000Z
aiovectortiler/config_handler.py
songololo/aiovectortiler
cfd0008d5ac05baee52a24264f991946324f5a42
[ "MIT" ]
7
2016-08-10T16:27:39.000Z
2018-10-13T13:16:24.000Z
aiovectortiler/config_handler.py
songololo/aiovectortiler
cfd0008d5ac05baee52a24264f991946324f5a42
[ "MIT" ]
3
2016-08-09T03:12:24.000Z
2016-11-08T01:17:29.000Z
import os import yaml import logging logger = logging.getLogger(__name__) class Configs: server = None recipes = {} DB = None plugins = None @classmethod def init_server_configs(cls, server_configs): with open(server_configs) as s_c: cls.server = yaml.load(s_c.read()) ...
28.99115
124
0.626984
420
3,276
4.695238
0.25
0.076065
0.026369
0.03499
0.123225
0.123225
0.123225
0.123225
0.105477
0.105477
0
0.004473
0.24939
3,276
112
125
29.25
0.797479
0.084554
0
0.140625
0
0
0.06296
0
0
0
0
0
0
1
0.1875
false
0
0.046875
0.078125
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a17dd33b700261e4940d552334d981b6c74eaed
128
py
Python
volksdep/converters/__init__.py
repoww/volksdep
ceaccd30a29a3ba82bd4f9be0c52b8c99c8d6290
[ "Apache-2.0" ]
271
2020-05-22T11:05:19.000Z
2022-02-27T13:57:38.000Z
volksdep/converters/__init__.py
repoww/volksdep
ceaccd30a29a3ba82bd4f9be0c52b8c99c8d6290
[ "Apache-2.0" ]
16
2020-06-28T09:54:07.000Z
2022-01-18T09:08:07.000Z
volksdep/converters/__init__.py
repoww/volksdep
ceaccd30a29a3ba82bd4f9be0c52b8c99c8d6290
[ "Apache-2.0" ]
34
2020-05-22T11:08:29.000Z
2021-12-18T22:47:06.000Z
from .torch2onnx import torch2onnx from .onnx2trt import onnx2trt from .torch2trt import torch2trt from .base import load, save
25.6
34
0.828125
17
128
6.235294
0.470588
0
0
0
0
0
0
0
0
0
0
0.054054
0.132813
128
4
35
32
0.900901
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
6a17e7c4a91ac2e9483c7bdc29806cbac3d7a40c
13,237
py
Python
t2vretrieval/models/mlmatch.py
Roc-Ng/HANet
e679703e9e725205424d87f750358fb4f62ceec5
[ "MIT" ]
34
2021-07-26T12:22:05.000Z
2022-03-08T03:49:33.000Z
t2vretrieval/models/mlmatch.py
hexiangteng/HANet
31d37ccad9c56ff9422cb4eb9d32e79e7b9bc831
[ "MIT" ]
null
null
null
t2vretrieval/models/mlmatch.py
hexiangteng/HANet
31d37ccad9c56ff9422cb4eb9d32e79e7b9bc831
[ "MIT" ]
3
2021-08-03T06:00:26.000Z
2021-12-27T03:26:12.000Z
import numpy as np import torch import framework.ops import t2vretrieval.encoders.mlsent import t2vretrieval.encoders.mlvideo import t2vretrieval.models.globalmatch from t2vretrieval.models.criterion import cosine_sim from t2vretrieval.models.globalmatch import VISENC, TXTENC class RoleGraphMatchModelConfig(t2vretri...
46.939716
156
0.694568
1,936
13,237
4.410641
0.129132
0.02108
0.018269
0.019674
0.338564
0.231994
0.146973
0.093688
0.046141
0.038412
0
0.01392
0.169676
13,237
281
157
47.106762
0.762988
0.080079
0
0.055556
0
0.00463
0.079025
0
0
0
0
0
0.00463
1
0.046296
false
0
0.037037
0.00463
0.138889
0.023148
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a186a13afeea2c9ca39fb78982684eb10c871db
3,784
py
Python
bench_fastapi/authentication/controllers/login.py
sharkguto/teste_carga
56d6e9dcbd3e7b7fe7295d8fcf4b4e8b84943cfb
[ "MIT" ]
1
2021-10-14T07:27:47.000Z
2021-10-14T07:27:47.000Z
bench_fastapi/authentication/controllers/login.py
sharkguto/teste_carga
56d6e9dcbd3e7b7fe7295d8fcf4b4e8b84943cfb
[ "MIT" ]
4
2019-08-06T02:26:32.000Z
2021-06-10T21:39:19.000Z
bench_fastapi/authentication/controllers/login.py
sharkguto/teste_carga
56d6e9dcbd3e7b7fe7295d8fcf4b4e8b84943cfb
[ "MIT" ]
1
2018-05-11T18:04:41.000Z
2018-05-11T18:04:41.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # login.py # @Author : Gustavo Freitas (gustavo@gmf-tech.com) # @Link : # @Date : 12/12/2019, 11:43:07 AM from typing import Optional, Any from fastapi import APIRouter, Body, Depends, HTTPException from fastapi import Header, Security from authentication.models.users...
29.795276
83
0.681818
496
3,784
5.08871
0.294355
0.021395
0.022187
0.021395
0.493265
0.443344
0.443344
0.425515
0.385103
0.385103
0
0.014815
0.17944
3,784
126
84
30.031746
0.798068
0.075846
0
0.395349
0
0
0.267355
0.055651
0
0
0
0
0
1
0
false
0.069767
0.162791
0
0.197674
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
6a190e5eb1440e6a01fc6f170da74507f39571ac
6,295
py
Python
dronesym-python/flask-api/src/dronepool.py
dilinade/DroneSym
30073bd31343bc27c6b8d72e48b4e06ced0c5fe6
[ "Apache-2.0" ]
1
2019-03-24T23:50:07.000Z
2019-03-24T23:50:07.000Z
dronesym-python/flask-api/src/dronepool.py
dilinade/DroneSym
30073bd31343bc27c6b8d72e48b4e06ced0c5fe6
[ "Apache-2.0" ]
null
null
null
dronesym-python/flask-api/src/dronepool.py
dilinade/DroneSym
30073bd31343bc27c6b8d72e48b4e06ced0c5fe6
[ "Apache-2.0" ]
null
null
null
#DronePool module which handles interaction with SITLs from dronekit import Vehicle, VehicleMode, connect from dronekit_sitl import SITL from threading import Lock import node, time import mavparser import threadrunner drone_pool = {} instance_count = 0 env_test = False q = None mq = None lock = Lock() class Sim(SI...
27.133621
187
0.707705
884
6,295
4.825792
0.186652
0.047586
0.040084
0.028129
0.296296
0.246835
0.205345
0.199015
0.178153
0.11158
0
0.007268
0.147577
6,295
231
188
27.251082
0.787738
0.014138
0
0.160494
0
0
0.107045
0
0
0
0
0
0
1
0.104938
false
0
0.037037
0.012346
0.234568
0.061728
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a19dea1f3bc079f6c50613369f0699df82e34cf
2,365
py
Python
Problemset/longest-string-chain/longest-string-chain.py
KivenCkl/LeetCode
fcc97c66f8154a5d20c2aca86120cb37b9d2d83d
[ "MIT" ]
7
2019-05-08T03:41:05.000Z
2020-12-22T12:39:43.000Z
Problemset/longest-string-chain/longest-string-chain.py
Yuziquan/LeetCode
303fc1c8af847f783c4020bd731b28b72ed92a35
[ "MIT" ]
1
2021-07-19T03:48:35.000Z
2021-07-19T03:48:35.000Z
Problemset/longest-string-chain/longest-string-chain.py
Yuziquan/LeetCode
303fc1c8af847f783c4020bd731b28b72ed92a35
[ "MIT" ]
7
2019-05-10T20:43:20.000Z
2021-02-22T03:47:35.000Z
# @Title: 最长字符串链 (Longest String Chain) # @Author: KivenC # @Date: 2019-05-26 20:35:25 # @Runtime: 144 ms # @Memory: 13.3 MB class Solution: # # way 1 # def longestStrChain(self, words: List[str]) -> int: # # 动态规划 # # dp[i] = max(dp[i], dp[j] + 1) (0 <= j < i 且 words[j] 是 words[i] 的前身) # ...
33.785714
81
0.442283
299
2,365
3.494983
0.284281
0.03445
0.042105
0.051675
0.200957
0.200957
0.200957
0.091866
0
0
0
0.052364
0.418605
2,365
69
82
34.275362
0.707636
0.647357
0
0
0
0
0
0
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a19e8bf83375a817e65cca3fb4f7daafac8434e
21,107
py
Python
IKFK Builder/IKFK_Builder.py
ssimbox/ssimbox-rigTools
824bc3b90c42ab54d01b4b0007f00e7cc2f2f08c
[ "MIT" ]
1
2021-01-19T13:36:42.000Z
2021-01-19T13:36:42.000Z
IKFK Builder/IKFK_Builder.py
ssimbox/sbx-autorig
824bc3b90c42ab54d01b4b0007f00e7cc2f2f08c
[ "MIT" ]
2
2021-03-29T22:15:08.000Z
2021-03-29T22:17:37.000Z
IKFK Builder/IKFK_Builder.py
ssimbox/ssimbox-rigTools
824bc3b90c42ab54d01b4b0007f00e7cc2f2f08c
[ "MIT" ]
null
null
null
from ctrlUI_lib import createClav2, createSphere import maya.cmds as cmds import maya.OpenMaya as om from functools import partial def duplicateChain(*args): global ogChain global chainLen global switcherLoc global side global controllerColor global clavCheckbox global rigGrp, ctrlGrp ...
41.386275
140
0.607713
2,599
21,107
4.865718
0.166987
0.007908
0.01115
0.014866
0.319706
0.25431
0.223312
0.178475
0.157204
0.133797
0
0.038685
0.250486
21,107
510
141
41.386275
0.760683
0.115791
0
0.119632
0
0
0.071843
0.004947
0
0
0
0
0
1
0.039877
false
0
0.01227
0
0.052147
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a1cf3b76d95e590eb1efa6bc9673c121f9d7242
5,128
py
Python
pipng/imagescale-q-m.py
nwiizo/joke
808c4c998cc7f5b7f6f3fb5a3ce421588a70c087
[ "MIT" ]
1
2017-01-11T06:12:24.000Z
2017-01-11T06:12:24.000Z
pipng/imagescale-q-m.py
ShuyaMotouchi/joke
808c4c998cc7f5b7f6f3fb5a3ce421588a70c087
[ "MIT" ]
null
null
null
pipng/imagescale-q-m.py
ShuyaMotouchi/joke
808c4c998cc7f5b7f6f3fb5a3ce421588a70c087
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright © 2012-13 Qtrac Ltd. All rights reserved. # This program or module is free software: you can redistribute it # and/or modify it under the terms of the GNU General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option)...
36.892086
76
0.63475
585
5,128
5.517949
0.353846
0.027881
0.026332
0.026022
0.178748
0.118959
0.049566
0
0
0
0
0.004491
0.261895
5,128
138
77
37.15942
0.848085
0.12617
0
0.046729
0
0
0.123066
0
0
0
0
0
0
1
0.074766
false
0
0.074766
0
0.196262
0.009346
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a1f0af3de00ce3a7fdb8765f1bbb9115dd67f60
35,122
py
Python
test/integration_test.py
NoopDog/azul
37614eff627888065c7b0a277b3137b8a587ed51
[ "Apache-2.0" ]
null
null
null
test/integration_test.py
NoopDog/azul
37614eff627888065c7b0a277b3137b8a587ed51
[ "Apache-2.0" ]
null
null
null
test/integration_test.py
NoopDog/azul
37614eff627888065c7b0a277b3137b8a587ed51
[ "Apache-2.0" ]
null
null
null
from abc import ( ABCMeta, ) from concurrent.futures.thread import ( ThreadPoolExecutor, ) from contextlib import ( contextmanager, ) import csv from functools import ( lru_cache, ) import gzip from io import ( BytesIO, TextIOWrapper, ) import json import logging import os import random import r...
40.231386
117
0.553442
3,599
35,122
5.208113
0.184496
0.011737
0.015258
0.006402
0.188167
0.158237
0.128468
0.101312
0.070476
0.056498
0
0.008481
0.355447
35,122
872
118
40.277523
0.819507
0.066767
0
0.152797
0
0.001364
0.073991
0.008847
0
0
0
0.001147
0.066849
1
0.068213
false
0.002729
0.060027
0.006821
0.177353
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a1f1b69ee306e65ab06cc8411c8b814a7455225
4,886
py
Python
server/openapi_server/controllers/data_transformation_controller.py
mintproject/MINT-ModelCatalogIngestionAPI
026d3495483a3e48ea3c1364d0dda09beeea69e4
[ "Apache-2.0" ]
2
2019-05-30T21:33:43.000Z
2019-09-27T21:04:38.000Z
server/openapi_server/controllers/data_transformation_controller.py
mintproject/model-catalog-api
2ad7016691891497bba37afe8ceb0fea8fe769e5
[ "Apache-2.0" ]
82
2019-10-08T16:35:34.000Z
2022-03-15T18:25:27.000Z
server/openapi_server/controllers/data_transformation_controller.py
mintproject/model-catalog-api
2ad7016691891497bba37afe8ceb0fea8fe769e5
[ "Apache-2.0" ]
null
null
null
import connexion import six from openapi_server import query_manager from openapi_server.utils.vars import DATATRANSFORMATION_TYPE_NAME, DATATRANSFORMATION_TYPE_URI from openapi_server.models.data_transformation import DataTransformation # noqa: E501 from openapi_server import util def custom_datasetspecifications_i...
33.465753
134
0.731068
603
4,886
5.736318
0.157546
0.034692
0.052616
0.060711
0.679676
0.670425
0.662619
0.640648
0.58514
0.539173
0
0.012765
0.198322
4,886
145
135
33.696552
0.870309
0.458657
0
0.615385
0
0
0
0
0
0
0
0
0
1
0.115385
false
0
0.115385
0
0.346154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a1f4e62deeca6901732e02e6f44f1571b8f71c9
2,634
py
Python
shap/plots/monitoring.py
NunoEdgarGFlowHub/shap
6992883fb3470163fcbe2bfacae0bd5f724ed1f8
[ "MIT" ]
8
2019-09-23T16:20:40.000Z
2021-10-09T20:26:20.000Z
shap/plots/monitoring.py
NunoEdgarGFlowHub/shap
6992883fb3470163fcbe2bfacae0bd5f724ed1f8
[ "MIT" ]
1
2019-02-22T10:16:13.000Z
2019-02-22T10:16:13.000Z
shap/plots/monitoring.py
NunoEdgarGFlowHub/shap
6992883fb3470163fcbe2bfacae0bd5f724ed1f8
[ "MIT" ]
4
2019-06-28T12:50:51.000Z
2021-07-02T07:42:18.000Z
import numpy as np import scipy import warnings try: import matplotlib.pyplot as pl import matplotlib except ImportError: warnings.warn("matplotlib could not be loaded!") pass from . import labels from . import colors def truncate_text(text, max_len): if len(text) > max_len: return text[:i...
33.769231
85
0.648823
389
2,634
4.290488
0.442159
0.03595
0.026962
0.015578
0.051528
0.034751
0
0
0
0
0
0.019015
0.221336
2,634
78
86
33.769231
0.794734
0.291192
0
0
0
0
0.066443
0.01675
0
0
0
0
0
1
0.043478
false
0.021739
0.173913
0
0.26087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a1f7efcf406b9bcc9bc35cc271b47eed9db309f
7,998
py
Python
mod_core.py
nokia-wroclaw/innovativeproject-dbshepherd
f82f3b36caaf9fcd6d28076051cb92458ba2edd3
[ "MIT" ]
null
null
null
mod_core.py
nokia-wroclaw/innovativeproject-dbshepherd
f82f3b36caaf9fcd6d28076051cb92458ba2edd3
[ "MIT" ]
null
null
null
mod_core.py
nokia-wroclaw/innovativeproject-dbshepherd
f82f3b36caaf9fcd6d28076051cb92458ba2edd3
[ "MIT" ]
1
2020-02-05T20:02:15.000Z
2020-02-05T20:02:15.000Z
import re import os import cmd import sys import common from getpass import getpass from kp import KeePassError, get_password from configmanager import ConfigManager, ConfigManagerError common.init() class ParseArgsException(Exception): def __init__(self, msg): self.msg = msg class ModuleCore(cmd.Cmd): def __...
29.512915
132
0.635159
1,039
7,998
4.805582
0.256015
0.006008
0.01442
0.016223
0.286
0.276387
0.231925
0.187863
0.175446
0.175446
0
0.0048
0.218555
7,998
271
133
29.512915
0.79408
0.147162
0
0.348416
0
0
0.102377
0.005542
0
0
0
0
0
1
0.081448
false
0.072398
0.036199
0.013575
0.180995
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
6a2025301420406c02ae8d4c4fc4c88641b66f90
7,702
py
Python
code/testbed/pde1/FemPde1.py
nicolai-schwartze/Masterthesis
7857af20c6b233901ab3cedc325bd64704111e16
[ "MIT" ]
1
2020-06-13T10:02:02.000Z
2020-06-13T10:02:02.000Z
code/testbed/pde1/FemPde1.py
nicolai-schwartze/Masterthesis
7857af20c6b233901ab3cedc325bd64704111e16
[ "MIT" ]
null
null
null
code/testbed/pde1/FemPde1.py
nicolai-schwartze/Masterthesis
7857af20c6b233901ab3cedc325bd64704111e16
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Apr 13 14:57:32 2020 @author: Nicolai """ import sys import os importpath = os.path.dirname(os.path.realpath(__file__)) + "/../" sys.path.append(importpath) from FemPdeBase import FemPdeBase import numpy as np # import from ngsolve import ngsolve as ngs from netgen.geom2d i...
31.695473
199
0.532849
1,030
7,702
3.88835
0.296117
0.011985
0.006991
0.006991
0.210986
0.205493
0.19226
0.174282
0.137328
0.137328
0
0.068829
0.279408
7,702
243
200
31.695473
0.652793
0.343677
0
0.336538
0
0.009615
0.090833
0.023231
0
0
0
0
0
1
0.019231
false
0
0.144231
0
0.173077
0.086538
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a20c03889abf01d98da2c14b133084ab0890d44
3,324
py
Python
cvxpy/cvxcore/tests/python/364A_scripts/power_lines.py
jasondark/cvxpy
56aaa01b0e9d98ae5a91a923708129a7b37a6f18
[ "ECL-2.0", "Apache-2.0" ]
38
2015-10-16T16:55:28.000Z
2022-02-16T05:06:01.000Z
cvxpy/cvxcore/tests/python/364A_scripts/power_lines.py
h-vetinari/cvxpy
86307f271819bb78fcdf64a9c3a424773e8269fa
[ "ECL-2.0", "Apache-2.0" ]
28
2015-09-16T16:33:23.000Z
2021-11-23T07:31:44.000Z
cvxpy/cvxcore/tests/python/364A_scripts/power_lines.py
h-vetinari/cvxpy
86307f271819bb78fcdf64a9c3a424773e8269fa
[ "ECL-2.0", "Apache-2.0" ]
21
2015-09-16T14:56:16.000Z
2022-02-16T05:06:03.000Z
import numpy as np from cvxpy import * import copy import time # data for power flow problem import numpy as np n = 12 # total number of nodes m = 18 # number of edges (transmission lines) k = 4 # number of generators # transmission line capacities = TIME = 0 Pmax = np.matrix(""" 4.8005, 1.9246,...
23.083333
75
0.513538
682
3,324
2.489736
0.219941
0.183746
0.245583
0.289753
0.326855
0.296231
0.280919
0.28033
0.278563
0.256184
0
0.197525
0.343562
3,324
144
76
23.083333
0.58066
0.22503
0
0.295652
0
0.043478
0.491552
0
0
0
0
0
0
1
0
false
0.095652
0.052174
0
0.052174
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
6a213e8a5b6a8886b1f3aeab6a75af090df46ca9
996
py
Python
LeetCode/530 Minimum Absolute Difference in BST.py
gesuwen/Algorithms
0c9cf4412d76f8b69ef68cc80636323f5a0e5786
[ "MIT" ]
null
null
null
LeetCode/530 Minimum Absolute Difference in BST.py
gesuwen/Algorithms
0c9cf4412d76f8b69ef68cc80636323f5a0e5786
[ "MIT" ]
null
null
null
LeetCode/530 Minimum Absolute Difference in BST.py
gesuwen/Algorithms
0c9cf4412d76f8b69ef68cc80636323f5a0e5786
[ "MIT" ]
null
null
null
# Binary Search Tree # Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes. # # Example: # # Input: # # 1 # \ # 3 # / # 2 # # Output: # 1 # # Explanation: # The minimum absolute difference is 1, which is the difference between 2 a...
23.162791
124
0.566265
126
996
4.444444
0.5
0.117857
0.057143
0.1
0
0
0
0
0
0
0
0.014925
0.327309
996
42
125
23.714286
0.820896
0.49498
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a240de4a4b62bd30eb577321f80af837069962e
2,029
py
Python
backends/search/__init__.py
dev-easyshares/company
61842839121f308619c59a8f52ab76c8b9dcdd30
[ "MIT" ]
null
null
null
backends/search/__init__.py
dev-easyshares/company
61842839121f308619c59a8f52ab76c8b9dcdd30
[ "MIT" ]
null
null
null
backends/search/__init__.py
dev-easyshares/company
61842839121f308619c59a8f52ab76c8b9dcdd30
[ "MIT" ]
null
null
null
from company.choices import fr as choices from mighty.errors import BackendError import datetime, logging logger = logging.getLogger(__name__) CHOICES_APE = dict(choices.APE) CHOICES_LEGALFORM = dict(choices.LEGALFORM) CHOICES_SLICE = dict(choices.SLICE_EFFECTIVE) class SearchBackend: message = None since_for...
31.215385
90
0.670281
245
2,029
5.359184
0.289796
0.031988
0.10358
0.121858
0.464585
0.412795
0.301599
0.210206
0
0
0
0.003209
0.232134
2,029
65
91
31.215385
0.839538
0
0
0.235294
0
0
0.125616
0.044828
0
0
0
0
0
1
0.235294
false
0.058824
0.058824
0.019608
0.54902
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
6a24c49a2e92d735c1970a4ba7a5a35023549f08
504
py
Python
app/database/database.py
luisornelasch/melp
82ff5c84d0df866ee64da10b96f61400c0809845
[ "MIT" ]
null
null
null
app/database/database.py
luisornelasch/melp
82ff5c84d0df866ee64da10b96f61400c0809845
[ "MIT" ]
null
null
null
app/database/database.py
luisornelasch/melp
82ff5c84d0df866ee64da10b96f61400c0809845
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine, engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker import os SQLALCHEMY_DATABASE_URL = os.getenv("DATABASE_URL").replace("postgres://", "postgresql+psycopg2://") engine = create_engine(SQLALCHEMY_DATABASE_URL) SessionLocal = se...
24
100
0.753968
59
504
6.271186
0.508475
0.113514
0.113514
0
0
0
0
0
0
0
0
0.002326
0.146825
504
20
101
25.2
0.85814
0
0
0
0
0
0.089286
0.043651
0
0
0
0
0
1
0.071429
false
0
0.285714
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a25b6baad0282a34406b60b6191667dfe9a128b
13,698
py
Python
ragweed/framework.py
soumyakoduri/ragweed
7d4a729ff761fe1ca073b7ceade46acf1321e9fd
[ "MIT" ]
null
null
null
ragweed/framework.py
soumyakoduri/ragweed
7d4a729ff761fe1ca073b7ceade46acf1321e9fd
[ "MIT" ]
null
null
null
ragweed/framework.py
soumyakoduri/ragweed
7d4a729ff761fe1ca073b7ceade46acf1321e9fd
[ "MIT" ]
null
null
null
import sys import os import boto import boto.s3.connection import json import inspect import pickle import bunch import yaml import ConfigParser import rados from boto.s3.key import Key from nose.plugins.attrib import attr from nose.tools import eq_ as eq from .reqs import _make_admin_request ragweed_env = None suite...
29.649351
141
0.593663
1,649
13,698
4.681019
0.142511
0.034979
0.015676
0.010364
0.268169
0.176577
0.123202
0.090038
0.080192
0.053763
0
0.001591
0.311651
13,698
461
142
29.713666
0.817054
0.004891
0
0.181564
0
0
0.043006
0
0
0
0
0
0.002793
0
null
null
0.030726
0.041899
null
null
0.027933
0
0
0
null
0
0
0
0
0
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
6a27987a8cba79e77e7ec06fe0349b417f6ae225
44
py
Python
exposing/_version.py
w4k2/exposing
6abbced18aa567ed45426ba915f3b56e7aeca028
[ "BSD-3-Clause" ]
null
null
null
exposing/_version.py
w4k2/exposing
6abbced18aa567ed45426ba915f3b56e7aeca028
[ "BSD-3-Clause" ]
1
2018-05-28T10:35:02.000Z
2018-05-28T10:35:02.000Z
exposing/_version.py
w4k2/exposing
6abbced18aa567ed45426ba915f3b56e7aeca028
[ "BSD-3-Clause" ]
null
null
null
""" ``exposing`` """ __version__ = '0.2.2'
7.333333
21
0.5
5
44
3.6
0.8
0
0
0
0
0
0
0
0
0
0
0.081081
0.159091
44
5
22
8.8
0.405405
0.272727
0
0
0
0
0.208333
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
6a27b2bcfa7e4d8b0487cdb6693479a656fd6bb3
136
py
Python
opensteer/teams/admin.py
reckonsys/opensteer
3c47bcf0a8de8e363ce8cced02827fe21a0d406a
[ "MIT" ]
5
2019-10-14T05:48:43.000Z
2021-08-29T17:42:48.000Z
opensteer/teams/admin.py
reckonsys/opensteer
3c47bcf0a8de8e363ce8cced02827fe21a0d406a
[ "MIT" ]
26
2019-09-19T08:51:45.000Z
2022-03-12T00:05:29.000Z
opensteer/teams/admin.py
reckonsys/opensteer
3c47bcf0a8de8e363ce8cced02827fe21a0d406a
[ "MIT" ]
1
2020-01-08T21:50:05.000Z
2020-01-08T21:50:05.000Z
from django.contrib import admin from opensteer.teams.models import Team, Member admin.site.register(Team) admin.site.register(Member)
22.666667
47
0.823529
20
136
5.6
0.6
0.160714
0.303571
0
0
0
0
0
0
0
0
0
0.088235
136
5
48
27.2
0.903226
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
6a2905a1e278bec5cf1d153f6d2fadf970789157
2,657
py
Python
tests/test_utils.py
ozora-ogino/tflite-human-tracking
d1be51c628e1464b5e2953a611df6e974a9ffbaa
[ "MIT" ]
3
2021-12-20T00:43:28.000Z
2022-03-12T00:54:42.000Z
tests/test_utils.py
ozora-ogino/tflite-human-tracking
d1be51c628e1464b5e2953a611df6e974a9ffbaa
[ "MIT" ]
null
null
null
tests/test_utils.py
ozora-ogino/tflite-human-tracking
d1be51c628e1464b5e2953a611df6e974a9ffbaa
[ "MIT" ]
5
2021-12-03T08:59:18.000Z
2022-03-17T11:25:38.000Z
from src.utils import check_direction, direction_config, is_intersect # pylint:disable=unexpected-keyword-arg class TestCheckDirection: def test_true(self): """Test true case.""" directions = { "right": {"prev_center": [0, 0], "current_center": [20, 0], "expect": True}, "l...
42.174603
90
0.530297
315
2,657
4.326984
0.184127
0.10785
0.088041
0.070433
0.705062
0.688188
0.666178
0.55099
0.426999
0.237711
0
0.04661
0.289424
2,657
62
91
42.854839
0.675318
0.108393
0
0.409091
0
0
0.183805
0
0
0
0
0
0.113636
1
0.113636
false
0
0.022727
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a296c2965af2f5264f62e16fe377851c022b76e
44
py
Python
scpp_base/scpp_base/src/db/__init__.py
scorelab/social-currency
f539893104bdfe098cfa58c8d9fabcbb00874c52
[ "Apache-2.0" ]
4
2018-10-02T06:31:18.000Z
2019-11-16T15:21:34.000Z
scpp_base/scpp_base/src/db/__init__.py
horizon00/social-currency
f539893104bdfe098cfa58c8d9fabcbb00874c52
[ "Apache-2.0" ]
2
2017-12-06T11:54:14.000Z
2019-11-11T11:34:06.000Z
scpp_base/scpp_base/src/db/__init__.py
horizon00/social-currency
f539893104bdfe098cfa58c8d9fabcbb00874c52
[ "Apache-2.0" ]
5
2017-02-27T10:10:41.000Z
2019-11-11T11:45:37.000Z
_all__ = ["db_handler","coin_value_handler"]
44
44
0.772727
6
44
4.666667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.045455
44
1
44
44
0.666667
0
0
0
0
0
0.622222
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
6a29d2f85143afe8ae63f5fd3499c691c4db69b3
2,792
py
Python
test/test_parameter_set.py
crest-cassia/caravan_search_engine
5c3bd3176b44e8c3145ba67b4240678e18a1394e
[ "MIT" ]
null
null
null
test/test_parameter_set.py
crest-cassia/caravan_search_engine
5c3bd3176b44e8c3145ba67b4240678e18a1394e
[ "MIT" ]
null
null
null
test/test_parameter_set.py
crest-cassia/caravan_search_engine
5c3bd3176b44e8c3145ba67b4240678e18a1394e
[ "MIT" ]
null
null
null
import unittest from caravan.tables import Tables from caravan.parameter_set import ParameterSet class ParameterSetTest(unittest.TestCase): def setUp(self): self.t = Tables.get() self.t.clear() def test_ps(self): ps = ParameterSet(500, (2, 3, 4, 5)) self.assertEqual(ps.id, 500...
36.736842
71
0.609599
419
2,792
3.904535
0.147971
0.21088
0.102689
0.176039
0.678484
0.606968
0.510391
0.465159
0.465159
0.336797
0
0.065783
0.243195
2,792
75
72
37.226667
0.708471
0
0
0.285714
0
0
0.002865
0
0
0
0
0
0.396825
1
0.142857
false
0
0.047619
0
0.206349
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
6a29e328b66b3aa40c02b6c801e1beb3b20cffb7
1,470
py
Python
tests/unit/transport/s3/test_settings.py
TinkoffCreditSystems/overhave
b0ab705ef5c5c5a65fa0b14b173b64fd7310e187
[ "Apache-2.0" ]
33
2021-02-01T15:49:37.000Z
2021-12-20T00:44:43.000Z
tests/unit/transport/s3/test_settings.py
TinkoffCreditSystems/overhave
b0ab705ef5c5c5a65fa0b14b173b64fd7310e187
[ "Apache-2.0" ]
46
2021-02-03T12:56:52.000Z
2021-12-19T18:50:27.000Z
tests/unit/transport/s3/test_settings.py
TinkoffCreditSystems/overhave
b0ab705ef5c5c5a65fa0b14b173b64fd7310e187
[ "Apache-2.0" ]
1
2021-12-07T09:02:44.000Z
2021-12-07T09:02:44.000Z
import pytest from pydantic import ValidationError from overhave.transport import OverhaveS3ManagerSettings class TestS3ManagerSettings: """ Unit tests for :class:`OverhaveS3ManagerSettings`. """ @pytest.mark.parametrize("test_s3_enabled", [False]) def test_disabled(self, test_s3_enabled: bool) -> None:...
39.72973
88
0.742857
170
1,470
6.082353
0.241176
0.110251
0.113153
0.142166
0.489362
0.246615
0.073501
0
0
0
0
0.020816
0.182993
1,470
36
89
40.833333
0.840133
0.034014
0
0
0
0
0.050283
0.018414
0
0
0
0
0.344828
1
0.103448
false
0
0.103448
0
0.241379
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0