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
c896cf21816f76cd01ad1bacb6b82f675af14297
12,510
py
Python
services/core-api/tests/now_submissions/resources/test_application_resource.py
parc-jason/mds
8f181a429442208a061ed72065b71e6c2bd0f76f
[ "Apache-2.0" ]
25
2018-07-09T19:04:37.000Z
2022-03-15T17:27:10.000Z
services/core-api/tests/now_submissions/resources/test_application_resource.py
parc-jason/mds
8f181a429442208a061ed72065b71e6c2bd0f76f
[ "Apache-2.0" ]
983
2018-04-25T20:08:07.000Z
2022-03-31T21:45:20.000Z
services/core-api/tests/now_submissions/resources/test_application_resource.py
parc-jason/mds
8f181a429442208a061ed72065b71e6c2bd0f76f
[ "Apache-2.0" ]
58
2018-05-15T22:35:50.000Z
2021-11-29T19:40:52.000Z
import json from tests.factories import (NOWSubmissionFactory, MineFactory, NOWClientFactory, NOWApplicationIdentityFactory) class TestGetApplicationResource: """GET /now-submissions/applications/{application_guid}""" def test_get_now_submission_by_guid_success(self, test_client,...
55.110132
97
0.681455
1,463
12,510
5.470267
0.057416
0.115332
0.048732
0.051981
0.907035
0.899538
0.878171
0.864426
0.828814
0.781832
0
0.007223
0.22534
12,510
226
98
55.353982
0.818595
0.060192
0
0.627119
0
0
0.155447
0.113652
0
0
0
0
0.254237
1
0.084746
false
0
0.011299
0
0.101695
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
c89c4416cb922696e6077b691fa44b4a364a4846
447
py
Python
output/models/nist_data/list_pkg/non_positive_integer/schema_instance/nistschema_sv_iv_list_non_positive_integer_enumeration_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/non_positive_integer/schema_instance/nistschema_sv_iv_list_non_positive_integer_enumeration_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/non_positive_integer/schema_instance/nistschema_sv_iv_list_non_positive_integer_enumeration_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.list_pkg.non_positive_integer.schema_instance.nistschema_sv_iv_list_non_positive_integer_enumeration_2_xsd.nistschema_sv_iv_list_non_positive_integer_enumeration_2 import ( NistschemaSvIvListNonPositiveIntegerEnumeration2, NistschemaSvIvListNonPositiveIntegerEnumeration2Type, ) __a...
44.7
201
0.888143
37
447
10.027027
0.594595
0.088949
0.145553
0.097035
0.25876
0.25876
0.25876
0.25876
0.25876
0
0
0.014388
0.067114
447
9
202
49.666667
0.8753
0
0
0
0
0
0.223714
0.223714
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
1
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
c89d84cb20f102af7452f0c152beca85a101d946
386
py
Python
cache-basic.py
kurapikats/python-basics
7b81e5e8de44186b573b74f05c78b56894df0ed7
[ "MIT" ]
null
null
null
cache-basic.py
kurapikats/python-basics
7b81e5e8de44186b573b74f05c78b56894df0ed7
[ "MIT" ]
null
null
null
cache-basic.py
kurapikats/python-basics
7b81e5e8de44186b573b74f05c78b56894df0ed7
[ "MIT" ]
null
null
null
import time def compute(a, b): time.sleep(2) return a + b cache = {} def cache_compute(a, b): if (a, b) in cache.keys(): return cache[a, b] else: new = compute(a, b) cache[a, b] = new return new print(cache_compute(1, 2)) print(cache_compute(3, 5)) print(cache_com...
14.846154
30
0.585492
64
386
3.4375
0.328125
0.063636
0.386364
0.163636
0.422727
0.25
0.25
0.25
0
0
0
0.038596
0.261658
386
25
31
15.44
0.733333
0
0
0.235294
0
0
0
0
0
0
0
0
0
1
0.117647
false
0
0.058824
0
0.352941
0.294118
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
c8a19d3ee1214101499b5145f53a93867a82f056
675
py
Python
dl/src/CookieManager.py
PatrykCholewa/PI_Stored
4ff4d72fe56281b76ddf7b759c19aabbce3c9899
[ "MIT" ]
null
null
null
dl/src/CookieManager.py
PatrykCholewa/PI_Stored
4ff4d72fe56281b76ddf7b759c19aabbce3c9899
[ "MIT" ]
null
null
null
dl/src/CookieManager.py
PatrykCholewa/PI_Stored
4ff4d72fe56281b76ddf7b759c19aabbce3c9899
[ "MIT" ]
null
null
null
from datetime import datetime import jwt from src import ConfigManager secret = ConfigManager.get_config("DL_COOKIE_SECRET_KEY") secure = ConfigManager.get_config("APP_SECURE") def validate_user_jwt(token, username): token = jwt.decode(token, secret, "HS256") expire = token['exp'] if username != token[...
23.275862
58
0.708148
88
675
5.25
0.397727
0.060606
0.095238
0.082251
0.428571
0.428571
0.428571
0.428571
0.190476
0
0
0.010889
0.183704
675
28
59
24.107143
0.827586
0
0
0.444444
0
0
0.087407
0
0
0
0
0
0
1
0.111111
false
0
0.166667
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
c8a2956bd7fb979e05d6c1af9814b3f364a7b696
2,403
py
Python
printing/Spooler.py
mrlinqu/intsa_term_client
596335da6dbdf7eb543b1dcf2c33bcc222aa3321
[ "MIT" ]
null
null
null
printing/Spooler.py
mrlinqu/intsa_term_client
596335da6dbdf7eb543b1dcf2c33bcc222aa3321
[ "MIT" ]
1
2020-11-07T12:44:56.000Z
2020-11-07T12:46:52.000Z
printing/Spooler.py
mrlinqu/intsa_term_client
596335da6dbdf7eb543b1dcf2c33bcc222aa3321
[ "MIT" ]
null
null
null
# Copyright 2020 by Roman Khuramshin <mr.linqu@gmail.com>. # All rights reserved. # This file is part of the Intsa Term Client - X2Go terminal client for Windows, # and is released under the "MIT License Agreement". Please see the LICENSE # file that should have been included as part of this package. import logging i...
28.607143
168
0.61881
303
2,403
4.729373
0.379538
0.055827
0.066992
0.052338
0.1612
0.1612
0.1612
0.1612
0.1612
0.1612
0
0.00762
0.290054
2,403
84
169
28.607143
0.832356
0.124844
0
0.178571
0
0
0.042918
0
0
0
0
0
0
1
0.089286
false
0.107143
0.107143
0
0.267857
0.107143
0
0
0
null
0
0
0
0
0
0
0
0
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
c8a3493cfeb4dfbb80acc4a2be0aae2d1cb8c74f
1,264
py
Python
mytests/test_SimpleCalc.py
KishoreParihar/DemoPythonTest
f9dadbf6cfcd4e6877e31ca65851882f73234307
[ "MIT" ]
null
null
null
mytests/test_SimpleCalc.py
KishoreParihar/DemoPythonTest
f9dadbf6cfcd4e6877e31ca65851882f73234307
[ "MIT" ]
null
null
null
mytests/test_SimpleCalc.py
KishoreParihar/DemoPythonTest
f9dadbf6cfcd4e6877e31ca65851882f73234307
[ "MIT" ]
null
null
null
import unittest import sys sys.path.append(".") sys.path.insert(0, '..\\') from calculator.simplecalculator import Calculator class TestSimpleCalc(unittest.TestCase): @classmethod def setUpClass(cls): print ("In setupclass() method") cls.cal = Calculator(4, 3) @classmethod def tearDow...
23.849057
58
0.606013
159
1,264
4.72956
0.377358
0.121011
0.042553
0.037234
0.101064
0.055851
0.055851
0.055851
0
0
0
0.021413
0.261076
1,264
52
59
24.307692
0.783726
0
0
0.15
0
0
0.076741
0
0
0
0
0
0.175
1
0.225
false
0
0.075
0
0.325
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
c8a47ee8db41845109ebaa2bf272e65a01b66623
2,683
py
Python
argos/countdown.9s.py
solettitiger/countdown
c5df89c7d67984171de08508ef4433ea9d6fbbd1
[ "MIT" ]
null
null
null
argos/countdown.9s.py
solettitiger/countdown
c5df89c7d67984171de08508ef4433ea9d6fbbd1
[ "MIT" ]
null
null
null
argos/countdown.9s.py
solettitiger/countdown
c5df89c7d67984171de08508ef4433ea9d6fbbd1
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- import datetime import sys import subprocess import os from playsound import playsound # ****************************************************************** # Definitionen # ****************************************************************** filename = 'countdown.txt' audiof...
26.83
151
0.561685
295
2,683
5.037288
0.362712
0.05249
0.020188
0.025572
0.15074
0.114401
0.114401
0.079408
0.079408
0
0
0.013339
0.133805
2,683
99
152
27.10101
0.625645
0.211331
0
0.112676
0
0
0.10852
0
0
0
0
0
0
1
0.098592
false
0
0.070423
0
0.197183
0.056338
0
0
0
null
0
0
0
0
0
0
0
0
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
c8a59080304794abe4b7a5451fd69be502c0aee2
1,392
py
Python
restapi/v1/serializers.py
asntech/jaspar
ae86731e8f197d6830e6d778835f218d4eb1b9e8
[ "BSD-3-Clause" ]
3
2017-11-20T23:03:20.000Z
2020-02-15T19:32:23.000Z
restapi/v1/serializers.py
asntech/jaspar
ae86731e8f197d6830e6d778835f218d4eb1b9e8
[ "BSD-3-Clause" ]
3
2019-12-12T09:26:55.000Z
2021-06-10T19:24:19.000Z
restapi/v1/serializers.py
asntech/jaspar
ae86731e8f197d6830e6d778835f218d4eb1b9e8
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ## Author: Aziz Khan ## License: GPL v3 ## Copyright © 2017 Aziz Khan <azez.khan__AT__gmail.com> from rest_framework import serializers from portal.models import Matrix, MatrixAnnotation from django.http import HttpRequest class MatrixAnnotationSerializer(serializers.HyperlinkedModelSerializ...
29
90
0.733477
165
1,392
5.993939
0.454545
0.024267
0.0273
0.0364
0.21638
0.21638
0.149646
0.149646
0.149646
0.149646
0
0.005733
0.122845
1,392
47
91
29.617021
0.80344
0.208333
0
0.181818
0
0
0.106422
0
0
0
0
0
0
1
0.136364
false
0
0.136364
0.045455
0.727273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
c8a8f855a2d0fbd314903aae2f023f9e8c19884d
5,043
py
Python
multimodal_models/StackGAN_V2_PyTorch/models.py
kumayu0108/model-zoo
4285779f6ff51fa1efb0625d67b428e90c343c0c
[ "MIT" ]
43
2020-05-16T21:05:34.000Z
2022-02-08T11:33:29.000Z
multimodal_models/StackGAN_V2_PyTorch/models.py
kumayu0108/model-zoo
4285779f6ff51fa1efb0625d67b428e90c343c0c
[ "MIT" ]
52
2020-05-14T16:18:08.000Z
2021-11-02T19:13:47.000Z
multimodal_models/StackGAN_V2_PyTorch/models.py
kumayu0108/model-zoo
4285779f6ff51fa1efb0625d67b428e90c343c0c
[ "MIT" ]
69
2020-05-14T13:39:23.000Z
2021-07-30T00:51:27.000Z
import torch import torch.nn as nn from generator_model import G1, G2 from helper_functions.Blocks import downBlock, Block3x3_leakRelu from helper_functions.ret_image import Interpolate, condAugmentation from helper_functions.initial_weights import weights_init from helper_functions.losses import KLloss, custom_loss fr...
39.093023
78
0.615507
766
5,043
3.708877
0.148825
0.078845
0.069694
0.050334
0.530799
0.471313
0.451602
0.426962
0.401619
0.401619
0
0.052632
0.284156
5,043
129
79
39.093023
0.734349
0
0
0.491379
0
0
0
0
0
0
0
0
0
1
0.068966
false
0
0.077586
0
0.198276
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
c8a9475637b6493e4ff65f91b1c3dca0e1d6f885
382
py
Python
utils/agro_utils.py
TiagoMarta/data_fusion_Vineyard-Segmentation
de54e149d36027bb314b5890ea4a1e71ba472d17
[ "Unlicense", "MIT" ]
3
2021-08-04T08:03:50.000Z
2022-03-25T11:22:09.000Z
utils/agro_utils.py
TiagoMarta/data_fusion_Vineyard-Segmentation
de54e149d36027bb314b5890ea4a1e71ba472d17
[ "Unlicense", "MIT" ]
null
null
null
utils/agro_utils.py
TiagoMarta/data_fusion_Vineyard-Segmentation
de54e149d36027bb314b5890ea4a1e71ba472d17
[ "Unlicense", "MIT" ]
null
null
null
import numpy as np def NDVI(nir,red): ''' # https://eos.com/make-an-analysis/ndvi/ Inputs: nxm numpy arrays NIR – reflection in the near-infrared spectrum RED – reflection in the red range of the spectrum ''' num = nir-red dom = nir+red ndvi = np.divide(num,dom) ndvi[...
25.466667
57
0.609948
59
382
3.983051
0.610169
0.076596
0.110638
0.13617
0
0
0
0
0
0
0
0.003636
0.280105
382
15
58
25.466667
0.843636
0.505236
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c8a98f7aadc1b3bec71524384698aed558c36091
3,805
py
Python
generator/api/routes.py
horvathandris/phenoflow
d0109f3702bc180954051170a56e017af52636fb
[ "MIT" ]
null
null
null
generator/api/routes.py
horvathandris/phenoflow
d0109f3702bc180954051170a56e017af52636fb
[ "MIT" ]
null
null
null
generator/api/routes.py
horvathandris/phenoflow
d0109f3702bc180954051170a56e017af52636fb
[ "MIT" ]
null
null
null
from starlette.applications import Starlette from starlette.responses import JSONResponse from api import workflow import oyaml as yaml app = Starlette(debug=True) def generateWorkflow(steps, nested=False): generatedWorkflow = workflow.initWorkflow(); generatedWorkflowInputs = {}; generatedSteps = []; if (n...
57.651515
252
0.70276
390
3,805
6.830769
0.325641
0.028904
0.031532
0.031532
0.251126
0.186562
0.161036
0.161036
0.161036
0.161036
0
0.003927
0.130092
3,805
65
253
58.538462
0.800906
0.105125
0
0.066667
1
0
0.192704
0
0
0
0
0
0
1
0.022222
false
0
0.088889
0
0.177778
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
c8abec201704fed99560906ddf5c95d5088bad9f
840
py
Python
heap/maxSlidingWindow.py
saai/LeetcodePythonSolutions
201f2054dda3f303ae6a376b40cbc7f98688322c
[ "MIT" ]
null
null
null
heap/maxSlidingWindow.py
saai/LeetcodePythonSolutions
201f2054dda3f303ae6a376b40cbc7f98688322c
[ "MIT" ]
null
null
null
heap/maxSlidingWindow.py
saai/LeetcodePythonSolutions
201f2054dda3f303ae6a376b40cbc7f98688322c
[ "MIT" ]
null
null
null
class Solution(object): def maxSlidingWindow(self, nums, k): """ :type nums: List[int] :type k: int :rtype: List[int] """ res = [] tmp = [] # tmp[0] always save the current windows max for i in xrange(len(nums)): if i < k-1: # first k-1 num...
31.111111
85
0.42381
102
840
3.490196
0.411765
0.044944
0.092697
0.08427
0.224719
0.134831
0.134831
0.134831
0
0
0
0.019912
0.461905
840
27
86
31.111111
0.767699
0.22619
0
0.352941
0
0
0
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.176471
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
c8adae8d9f3f33704f82f32bb3e323260ea0ba97
29,151
py
Python
tccli/services/tsf/v20180326/help.py
zyh911/tencentcloud-cli
dfc5dbd660d4c60d265921c4edc630091478fc41
[ "Apache-2.0" ]
null
null
null
tccli/services/tsf/v20180326/help.py
zyh911/tencentcloud-cli
dfc5dbd660d4c60d265921c4edc630091478fc41
[ "Apache-2.0" ]
null
null
null
tccli/services/tsf/v20180326/help.py
zyh911/tencentcloud-cli
dfc5dbd660d4c60d265921c4edc630091478fc41
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- DESC = "tsf-2018-03-26" INFO = { "DeletePublicConfig": { "params": [ { "name": "ConfigId", "desc": "配置项ID" } ], "desc": "删除公共配置项" }, "DescribeSimpleGroups": { "params": [ { "name": "GroupIdList", "desc": "部署组ID列表,不填写时查询全量" ...
18.567516
165
0.392028
1,844
29,151
6.197397
0.284707
0.064753
0.032814
0.038502
0.510851
0.45861
0.35973
0.322979
0.287714
0.254725
0
0.007365
0.41309
29,151
1,570
166
18.567516
0.660588
0.00072
0
0.379222
0
0.001275
0.404511
0.056061
0
0
0
0
0
1
0
false
0.001275
0.001275
0
0.001275
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
c8b067f63a4c14a9b78ac5bf7aace3e8420c7a16
1,729
py
Python
workflow_scripts/test_models.py
jcwchen/models
2fd86acdd51037570e1daefa03873237b76bd5a6
[ "MIT" ]
1
2020-12-19T14:46:23.000Z
2020-12-19T14:46:23.000Z
workflow_scripts/test_models.py
sumit6597/models
2fd86acdd51037570e1daefa03873237b76bd5a6
[ "MIT" ]
null
null
null
workflow_scripts/test_models.py
sumit6597/models
2fd86acdd51037570e1daefa03873237b76bd5a6
[ "MIT" ]
1
2021-08-08T11:47:35.000Z
2021-08-08T11:47:35.000Z
import onnx from pathlib import Path import subprocess import sys def run_lfs_install(): result = subprocess.run(['git', 'lfs', 'install'], cwd=cwd_path, stdout=subprocess.PIPE, stderr=subprocess.PIPE) print("Git LFS install completed with return code=" + str(result.returncode)) def pull_lfs_file(file_name): re...
35.285714
156
0.707924
248
1,729
4.798387
0.354839
0.070588
0.032773
0.040336
0.247059
0.205042
0.205042
0.134454
0.134454
0.092437
0
0.002024
0.142857
1,729
48
157
36.020833
0.800945
0.096588
0
0
0
0
0.205523
0
0
0
0
0
0
1
0.058824
false
0
0.117647
0
0.176471
0.235294
0
0
0
null
0
0
0
0
0
0
0
0
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
c8b4dfd0fac657e7ac7e488ed975872bacfb263c
25
py
Python
manager/__init__.py
monocleface/viewer
8ab47a9e846bd2716fe0208c34f33565513fc3f6
[ "Apache-2.0" ]
6
2020-02-28T21:18:16.000Z
2020-03-13T16:45:57.000Z
manager/__init__.py
monocleface/viewer
8ab47a9e846bd2716fe0208c34f33565513fc3f6
[ "Apache-2.0" ]
6
2020-02-28T12:42:52.000Z
2020-03-16T03:49:09.000Z
manager/__init__.py
monocleface/viewer
8ab47a9e846bd2716fe0208c34f33565513fc3f6
[ "Apache-2.0" ]
6
2020-03-05T13:04:25.000Z
2020-03-13T16:46:03.000Z
from .utils import Config
25
25
0.84
4
25
5.25
1
0
0
0
0
0
0
0
0
0
0
0
0.12
25
1
25
25
0.954545
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
c8b5d127b254896268904720f95e3739d411d338
1,374
py
Python
src/classifier/utils/create_data.py
maxscheijen/dutch-sentiment-classifier
6b3149d906710fadc0b104a9f79ca389a7f5cba3
[ "Apache-2.0" ]
null
null
null
src/classifier/utils/create_data.py
maxscheijen/dutch-sentiment-classifier
6b3149d906710fadc0b104a9f79ca389a7f5cba3
[ "Apache-2.0" ]
null
null
null
src/classifier/utils/create_data.py
maxscheijen/dutch-sentiment-classifier
6b3149d906710fadc0b104a9f79ca389a7f5cba3
[ "Apache-2.0" ]
null
null
null
import glob import pandas as pd from tqdm import tqdm from classifier import config class Dataset: """Create dataset class""" def __init__(self): # Get all txt files self.paths = sorted(glob.glob("data/*/*/*.txt")) self.dataframe = None def load_data(self): dfs = [] # i...
28.625
68
0.54294
154
1,374
4.727273
0.441558
0.071429
0.03022
0.041209
0
0
0
0
0
0
0
0
0.365357
1,374
47
69
29.234043
0.834862
0.15575
0
0
0
0
0.041012
0
0
0
0
0
0
1
0.115385
false
0
0.153846
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c8b602b1d86d1edc850b44d842ce6f3bb89f273d
642
py
Python
pip/setup.py
siphr/urdu-digit
133fcea917ce4584c2f98b470f9e3063f9f03c99
[ "MIT" ]
null
null
null
pip/setup.py
siphr/urdu-digit
133fcea917ce4584c2f98b470f9e3063f9f03c99
[ "MIT" ]
null
null
null
pip/setup.py
siphr/urdu-digit
133fcea917ce4584c2f98b470f9e3063f9f03c99
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages setup( name="urdu_digit", version="0.0.17", keywords=["urdu", "numeric", "digit", "converter"], description="English to Urdu numeric digit converter.", long_description=open('README.md').read(), project_urls={ 'Homepag...
25.68
74
0.641745
77
642
5.25974
0.649351
0.111111
0.079012
0.123457
0.138272
0.138272
0
0
0
0
0
0.018868
0.174455
642
24
75
26.75
0.745283
0.031153
0
0
0
0
0.439614
0
0
0
0
0
0
1
0
true
0
0.055556
0
0.055556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
c8b68cb341dae475cc25f2d74d8dcd06d0f58623
1,682
py
Python
algorithms/intervals.py
calebperkins/algorithms
9f4a029261160e6b12b8bedd53f0a0ebf541237a
[ "MIT" ]
null
null
null
algorithms/intervals.py
calebperkins/algorithms
9f4a029261160e6b12b8bedd53f0a0ebf541237a
[ "MIT" ]
null
null
null
algorithms/intervals.py
calebperkins/algorithms
9f4a029261160e6b12b8bedd53f0a0ebf541237a
[ "MIT" ]
null
null
null
import collections Interval = collections.namedtuple("Interval", "start, end") class AugmentedTree: """ An augmented tree for querying intervals. The nodes are ordered by the start interval. The high attribute is the maximum end interval of the node and any of its children. This tree could become im...
29
116
0.521998
202
1,682
4.306931
0.361386
0.096552
0.036782
0
0
0
0
0
0
0
0
0
0.399524
1,682
57
117
29.508772
0.861386
0.189655
0
0.166667
0
0
0.013443
0
0
0
0
0
0
1
0.119048
false
0
0.02381
0.02381
0.261905
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
c8bd12730bd20c4875906f949b15caeb99026f0f
4,874
py
Python
utils/visualization.py
yigitozgumus/Polimi_Thesis
711c1edcf1fdb92fc6c15bf5ab1be141c13995c3
[ "MIT" ]
3
2019-07-27T14:00:42.000Z
2020-01-17T17:07:51.000Z
utils/visualization.py
yigitozgumus/Polimi_Thesis
711c1edcf1fdb92fc6c15bf5ab1be141c13995c3
[ "MIT" ]
null
null
null
utils/visualization.py
yigitozgumus/Polimi_Thesis
711c1edcf1fdb92fc6c15bf5ab1be141c13995c3
[ "MIT" ]
4
2019-10-22T02:58:26.000Z
2020-10-06T09:59:26.000Z
import numpy as np import matplotlib.pyplot as plt def show_anomalies(patch_array): num_figs = len(patch_array) fig = plt.figure(figsize=(num_figs * 30, 30)) plt.tight_layout() for i in range(len(patch_array)): plt.subplot(num_figs, 1, i + 1) plt.imshow(patch_array[i]) plt.axis...
34.083916
100
0.55437
712
4,874
3.660112
0.172753
0.049885
0.034919
0.018803
0.55449
0.48043
0.415196
0.335764
0.278972
0.278972
0
0.079128
0.312885
4,874
142
101
34.323944
0.699015
0.060936
0
0.273504
0
0
0.02779
0
0
0
0
0
0
1
0.08547
false
0
0.017094
0.034188
0.179487
0.051282
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c8c0726d584812a525a610e545b5c0960badaf74
18,223
py
Python
tests/unit/core/tensorrt_loaders.py
ParikhKadam/NeMo
ee11f7c4666d410d91f9da33c61f4819ea625013
[ "Apache-2.0" ]
10
2020-03-17T08:32:06.000Z
2021-04-19T19:03:50.000Z
tests/unit/core/tensorrt_loaders.py
dcmartin/NeMo
d2120a40bf23d3e38ff5677c2685c712f297e6b1
[ "Apache-2.0" ]
1
2020-06-11T00:54:42.000Z
2020-06-11T00:54:42.000Z
tests/unit/core/tensorrt_loaders.py
dcmartin/NeMo
d2120a40bf23d3e38ff5677c2685c712f297e6b1
[ "Apache-2.0" ]
3
2020-03-10T05:10:07.000Z
2020-12-08T01:33:35.000Z
# ! /usr/bin/python # -*- coding: utf-8 -*- # ============================================================================= # Copyright 2020 NVIDIA. 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 obta...
43.70024
548
0.610492
2,076
18,223
5.197977
0.194123
0.023353
0.011862
0.011584
0.143638
0.098415
0.064869
0.064869
0.058382
0.041331
0
0.005254
0.300225
18,223
416
549
43.805288
0.840966
0.255831
0
0.158672
0
0.00369
0.098311
0.003593
0
0
0
0
0.00738
1
0.070111
false
0.00369
0.03321
0.01476
0.177122
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
c8c0d558d52b83f545c1d622f249b8f8181f6952
420
py
Python
vstreamer_server/application/VideoStreamerServerApplication.py
artudi54/video-streamer
66e5e722ed66abe5877488f177c0ac4f13325382
[ "MIT" ]
2
2019-10-08T10:49:52.000Z
2021-10-01T11:26:31.000Z
vstreamer_server/application/VideoStreamerServerApplication.py
artudi54/video-streamer
66e5e722ed66abe5877488f177c0ac4f13325382
[ "MIT" ]
1
2019-05-16T13:48:29.000Z
2019-05-16T13:48:49.000Z
vstreamer_server/application/VideoStreamerServerApplication.py
artudi54/video-streamer
66e5e722ed66abe5877488f177c0ac4f13325382
[ "MIT" ]
1
2019-10-08T10:49:56.000Z
2019-10-08T10:49:56.000Z
import logging import signal from PySide2 import QtCore import vstreamer_utils class VideoStreamerServerApplication(QtCore.QCoreApplication): def __init__(self, argv): super().__init__(argv) self.setApplicationName("video_streamer_server") self.logger = vstreamer_utils.make_logger() ...
28
62
0.754762
45
420
6.688889
0.6
0.139535
0.13289
0
0
0
0
0
0
0
0
0.002865
0.169048
420
14
63
30
0.859599
0
0
0
0
0
0.111905
0.05
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
c8c12c77067e0a8b65aeb31d29a9acc363766542
2,345
py
Python
serial_scripts/reset_config/test_reset_config.py
vkolli/5.0_contrail-test
1793f169a94100400a1b2fafbad21daf5aa4d48a
[ "Apache-2.0" ]
1
2017-06-13T04:42:34.000Z
2017-06-13T04:42:34.000Z
serial_scripts/reset_config/test_reset_config.py
vkolli/contrail-test-perf
db04b8924a2c330baabe3059788b149d957a7d67
[ "Apache-2.0" ]
1
2021-06-01T22:18:29.000Z
2021-06-01T22:18:29.000Z
serial_scripts/reset_config/test_reset_config.py
vkolli/contrail-test-perf
db04b8924a2c330baabe3059788b149d957a7d67
[ "Apache-2.0" ]
null
null
null
#Define environment variable FABRIC_UTILS_PATH and provide path to fabric_utils before running import time import os from contrail_fixtures import * import testtools from tcutils.commands import * from fabric.context_managers import settings from tcutils.wrappers import preposttest_wrapper from tcutils.util import * fr...
40.431034
94
0.690405
284
2,345
5.556338
0.411972
0.038023
0.063371
0.047529
0.08365
0.08365
0.043093
0.043093
0
0
0
0.002209
0.227719
2,345
57
95
41.140351
0.869133
0.054584
0
0
0
0
0.168966
0.016749
0
0
0
0
0.045455
0
null
null
0.068182
0.295455
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
c8c174e66db5ae93829e5da36ac5e18a48241662
15,382
py
Python
server/services/wiki/pages/overview_service.py
hotosm/oeg-reporter
f0c3da80ba380df907a818db224e9ca2ae0018b3
[ "BSD-2-Clause" ]
1
2021-02-03T13:37:48.000Z
2021-02-03T13:37:48.000Z
server/services/wiki/pages/overview_service.py
hotosm/oeg-reporter
f0c3da80ba380df907a818db224e9ca2ae0018b3
[ "BSD-2-Clause" ]
8
2020-07-16T23:17:51.000Z
2020-10-14T20:40:00.000Z
server/services/wiki/pages/overview_service.py
hotosm/oeg-reporter
f0c3da80ba380df907a818db224e9ca2ae0018b3
[ "BSD-2-Clause" ]
null
null
null
from server.services.wiki.pages.templates import OverviewPageTemplates from server.services.wiki.pages.page_service import PageService from server.services.wiki.mediawiki_service import MediaWikiService from server.services.wiki.wiki_text_service import WikiTextService from server.services.wiki.wiki_table_service impor...
39.64433
88
0.594981
1,451
15,382
5.926258
0.085458
0.094895
0.066985
0.030701
0.606698
0.532271
0.476916
0.435167
0.402605
0.371206
0
0.000288
0.323625
15,382
387
89
39.74677
0.826221
0.071122
0
0.394137
0
0
0.100863
0.037735
0
0
0
0
0
1
0.039088
false
0
0.022801
0
0.120521
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
c8c21cc5ec4a4f6297ac9cc8b0615e326672a6bb
414
py
Python
App/migrations/0011_playlist_preferences.py
dlanghorne0428/StudioMusicPlayer
54dabab896b96d90b68d6435edfd52fe6a866bc2
[ "MIT" ]
null
null
null
App/migrations/0011_playlist_preferences.py
dlanghorne0428/StudioMusicPlayer
54dabab896b96d90b68d6435edfd52fe6a866bc2
[ "MIT" ]
44
2022-01-21T01:33:59.000Z
2022-03-26T23:35:25.000Z
App/migrations/0011_playlist_preferences.py
dlanghorne0428/StudioMusicPlayer
54dabab896b96d90b68d6435edfd52fe6a866bc2
[ "MIT" ]
null
null
null
# Generated by Django 4.0 on 2022-03-06 02:23 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('App', '0010_remove_user_percentage_preferences_user_preferences'), ] operations = [ migrations.AddField( model_name='playlist', ...
21.789474
76
0.628019
43
414
5.883721
0.790698
0
0
0
0
0
0
0
0
0
0
0.059406
0.268116
414
18
77
23
0.775578
0.103865
0
0
1
0
0.211382
0.151762
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c8c3d449685f28e78f767aafb617c4bfc465febb
2,779
py
Python
emerald/database_operations.py
femmerling/EmeraldBox
68f5776577f0c929ca1f5ba23f1dfe480f813037
[ "MIT" ]
17
2015-01-15T21:41:16.000Z
2021-01-10T15:34:09.000Z
emerald/database_operations.py
femmerling/EmeraldBox
68f5776577f0c929ca1f5ba23f1dfe480f813037
[ "MIT" ]
null
null
null
emerald/database_operations.py
femmerling/EmeraldBox
68f5776577f0c929ca1f5ba23f1dfe480f813037
[ "MIT" ]
5
2015-02-07T02:41:18.000Z
2016-11-11T02:50:21.000Z
import imp import os.path from app import db from migrate.versioning import api from config import SQLALCHEMY_DATABASE_URI from config import SQLALCHEMY_MIGRATE_REPO def db_create(): # This creates the new database. db.create_all() # If no repo existed, the creation will prepare for the first migration....
41.477612
144
0.77366
375
2,779
5.453333
0.256
0.149633
0.184841
0.212225
0.515403
0.466504
0.437164
0.386308
0.350122
0.210269
0
0.001712
0.15905
2,779
67
145
41.477612
0.873342
0.178122
0
0.15
0
0
0.123902
0.011863
0
0
0
0
0
0
null
null
0
0.15
null
null
0.2
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
1
0
0
0
0
0
0
0
0
3
c8c574de241b0c8199ec3be2586cfc5532691047
5,253
py
Python
xmuda/eval_sem_pcd.py
anhquancao/xmuda-extend
4b670ec2f6766e3a624e81dbe5d97b209c1c4f76
[ "Apache-2.0" ]
null
null
null
xmuda/eval_sem_pcd.py
anhquancao/xmuda-extend
4b670ec2f6766e3a624e81dbe5d97b209c1c4f76
[ "Apache-2.0" ]
null
null
null
xmuda/eval_sem_pcd.py
anhquancao/xmuda-extend
4b670ec2f6766e3a624e81dbe5d97b209c1c4f76
[ "Apache-2.0" ]
null
null
null
from xmuda.models.SSC2d_proj3d2d import SSC2dProj3d2d from xmuda.data.NYU.nyu_dm import NYUDataModule from xmuda.data.semantic_kitti.kitti_dm import KittiDataModule from xmuda.common.utils.sscMetrics import SSCMetrics from xmuda.data.NYU.params import class_relation_freqs as NYU_class_relation_freqs, class_freq_1_4 as ...
44.897436
234
0.663811
732
5,253
4.434426
0.247268
0.032348
0.064695
0.092421
0.401725
0.358287
0.277264
0.127542
0.107209
0.077634
0
0.043783
0.213021
5,253
116
235
45.284483
0.741413
0.106225
0
0.098901
0
0.010989
0.230999
0.181896
0
0
0
0
0
1
0
false
0
0.131868
0
0.131868
0.010989
0
0
0
null
0
0
0
0
0
0
0
0
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
c8c6f7ca2165cf621b2f2448c66168d6e16e7af2
9,695
py
Python
hnn/src/apps/dataparallel.py
anlewy/mt-dnn
eeb6f01ce0630e61a52b8c9c6f7537cd34978e45
[ "MIT" ]
2,075
2019-02-25T08:54:38.000Z
2022-03-31T10:44:50.000Z
hnn/src/apps/dataparallel.py
anlewy/mt-dnn
eeb6f01ce0630e61a52b8c9c6f7537cd34978e45
[ "MIT" ]
176
2019-03-12T02:58:42.000Z
2022-03-22T20:17:23.000Z
hnn/src/apps/dataparallel.py
anlewy/mt-dnn
eeb6f01ce0630e61a52b8c9c6f7537cd34978e45
[ "MIT" ]
437
2019-03-11T21:36:21.000Z
2022-03-29T02:40:53.000Z
# Author: penhe@microsoft.com # Date: 05/30/2019 # """ Data parallel module """ from collections import OrderedDict import numpy as np import torch from torch.cuda.comm import broadcast_coalesced from torch.cuda.comm import reduce_add_coalesced from torch.nn.parallel import parallel_apply from torch.nn.parallel.scatte...
35.643382
139
0.664569
1,415
9,695
4.368905
0.142049
0.0165
0.008088
0.010191
0.214008
0.173245
0.126658
0.123261
0.113555
0.113555
0
0.009976
0.214234
9,695
271
140
35.774908
0.801523
0.030737
0
0.1875
0
0
0.008208
0
0
0
0
0
0.008929
1
0.098214
false
0
0.044643
0.026786
0.227679
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
c8c808427fd949238223a24b72518b4c7f83bcd8
1,190
py
Python
mall/serializers.py
turing0/mallProject
cc56d25c51fa03584f99a633a6f606622cfb1e5d
[ "MIT" ]
null
null
null
mall/serializers.py
turing0/mallProject
cc56d25c51fa03584f99a633a6f606622cfb1e5d
[ "MIT" ]
null
null
null
mall/serializers.py
turing0/mallProject
cc56d25c51fa03584f99a633a6f606622cfb1e5d
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import User from .models import Product from django.contrib.auth import get_user_model class UserSerializer(serializers.ModelSerializer): class Meta: model = User fields = ('id', 'username', 'password', 'balance') class ProductSerializer(serial...
36.060606
92
0.657143
127
1,190
5.992126
0.393701
0.11958
0.082786
0.0841
0.13929
0.13929
0.13929
0
0
0
0
0
0.223529
1,190
32
93
37.1875
0.823593
0.540336
0
0.166667
0
0
0.103383
0
0
0
0
0
0
1
0
false
0.083333
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
1
0
0
3
c8ca44f18c6c1244335778442d0b31143cb496f7
811
py
Python
ch02/multiSinal_button.py
you-know-who-2017/pythonQT
a713bfacbb53c5f23e9d7f61dc44592335a24423
[ "MIT" ]
null
null
null
ch02/multiSinal_button.py
you-know-who-2017/pythonQT
a713bfacbb53c5f23e9d7f61dc44592335a24423
[ "MIT" ]
null
null
null
ch02/multiSinal_button.py
you-know-who-2017/pythonQT
a713bfacbb53c5f23e9d7f61dc44592335a24423
[ "MIT" ]
null
null
null
''' Author: geekli Date: 2020-12-27 10:38:46 LastEditTime: 2020-12-27 10:40:44 LastEditors: your name Description: FilePath: \pythonQT\ch02\multiSinal_button.py ''' import sys from PyQt5.QtWidgets import QApplication, QWidget, QPushButton class Demo(QWidget): def __init__(self): super(Demo, self).__init_...
25.34375
62
0.630086
101
811
4.851485
0.554455
0.122449
0.032653
0.040816
0
0
0
0
0
0
0
0.054927
0.236745
811
32
63
25.34375
0.736672
0.204686
0
0
0
0
0.04252
0
0
0
0
0
0
1
0.111111
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c8cbd8c6d4128ec1fba81659c9414d125347bfa3
105
py
Python
archive/2021-03-7/results/notebooks/advb_article/get_hmod_sample.py
CambridgeSemiticsLab/BH_time_collocations
2d1864b6e9cd26624c769ee1e970d69d19da7fbf
[ "CC-BY-4.0" ]
5
2019-06-19T19:42:21.000Z
2021-04-20T22:43:45.000Z
archive/2021-03-7/results/notebooks/advb_article/get_hmod_sample.py
CambridgeSemiticsLab/BHTenseAndAspect
2d1864b6e9cd26624c769ee1e970d69d19da7fbf
[ "CC-BY-4.0" ]
2
2020-02-25T10:19:40.000Z
2020-03-13T15:29:01.000Z
archive/2021-03-7/results/notebooks/advb_article/get_hmod_sample.py
CambridgeSemiticsLab/BHTenseAndAspect
2d1864b6e9cd26624c769ee1e970d69d19da7fbf
[ "CC-BY-4.0" ]
null
null
null
from __main__ import * hm_df = functs_df[~((functs_df.head_type == 'prep') & (functs_df.suffix))].copy()
35
81
0.695238
16
105
4
0.6875
0.375
0.3125
0
0
0
0
0
0
0
0
0
0.104762
105
2
82
52.5
0.680851
0
0
0
0
0
0.038095
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
c8cc6707f00bfb68eb5be0a694507e862c881eb3
1,123
py
Python
autodc/components/hpo_optimizer/hpo_optimizer_builder.py
dingdian110/AutoDC
f5ccca6bea993bcff3e804fb859e8b25ae020b5c
[ "MIT" ]
null
null
null
autodc/components/hpo_optimizer/hpo_optimizer_builder.py
dingdian110/AutoDC
f5ccca6bea993bcff3e804fb859e8b25ae020b5c
[ "MIT" ]
null
null
null
autodc/components/hpo_optimizer/hpo_optimizer_builder.py
dingdian110/AutoDC
f5ccca6bea993bcff3e804fb859e8b25ae020b5c
[ "MIT" ]
null
null
null
from autodc.components.hpo_optimizer.smac_optimizer import SMACOptimizer from autodc.components.hpo_optimizer.mfse_optimizer import MfseOptimizer from autodc.components.hpo_optimizer.bohb_optimizer import BohbOptimizer from autodc.components.hpo_optimizer.tpe_optimizer import TPEOptimizer def build_hpo_optimizer(eval...
46.791667
86
0.688335
133
1,123
5.413534
0.360902
0.083333
0.111111
0.127778
0.256944
0
0
0
0
0
0
0.011891
0.251113
1,123
23
87
48.826087
0.844233
0.025824
0
0
0
0
0.029304
0
0
0
0
0.043478
0
1
0.05
false
0
0.2
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
c8ccf268808a95f71f44af0d1f8a0dcac8ac8aa6
835
py
Python
record_voice.py
y1255018/voice-printer
cea33ae978a0709346bdbaf009f4fa07a97c7463
[ "MIT" ]
null
null
null
record_voice.py
y1255018/voice-printer
cea33ae978a0709346bdbaf009f4fa07a97c7463
[ "MIT" ]
1
2020-05-10T12:57:46.000Z
2020-05-10T12:59:27.000Z
record_voice.py
y1255018/voice-printer
cea33ae978a0709346bdbaf009f4fa07a97c7463
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys, select, termios,tty import os def getKey(): fd = sys.stdin.fileno() old = termios.tcgetattr(fd) new = termios.tcgetattr(fd) new[3] &= ~termios.ICANON new[3] &= ~termios.ECHO try: termios.tcsetattr(fd, termios.TCSANOW, new) ch = sys.stdin.read(1) finally: ...
19.880952
50
0.568862
106
835
4.40566
0.537736
0.044968
0.077088
0.089936
0.137045
0
0
0
0
0
0
0.009983
0.28024
835
42
51
19.880952
0.767055
0.052695
0
0.0625
0
0
0.102792
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.15625
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c8cd1764a3562bbf6dce2fed67c34407e35a1349
1,516
py
Python
findpeak.py
BartMassey/pdx-cs-sound
52f671f155f71eb75a635d9b125f9324889dd329
[ "MIT" ]
null
null
null
findpeak.py
BartMassey/pdx-cs-sound
52f671f155f71eb75a635d9b125f9324889dd329
[ "MIT" ]
null
null
null
findpeak.py
BartMassey/pdx-cs-sound
52f671f155f71eb75a635d9b125f9324889dd329
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # Copyright (c) 2019 Bart Massey # [This program is licensed under the "MIT License"] # Please see the file LICENSE in the source # distribution of this software for license terms. # Find maximum and minimum sample in an audio file. import sys import wave as wav # Get the signal file. wavfile = wa...
25.694915
56
0.638522
202
1,516
4.688119
0.435644
0.057022
0.044351
0.040127
0
0
0
0
0
0
0
0.008108
0.26781
1,516
58
57
26.137931
0.845045
0.32058
0
0.142857
0
0
0.023715
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
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
0
0
0
0
0
0
0
0
1
0
c8ce16cc98ba530c9d0d89640e062797670ba6af
275
py
Python
thywill_apps/src/thywill_apps/test/proof_of_concept/__init__.py
exratione/thywill-python
2078d6f6fc12034eac60a7cc30bf2bc0d27a8732
[ "MIT" ]
1
2015-04-26T19:49:35.000Z
2015-04-26T19:49:35.000Z
thywill_apps/src/thywill_apps/test/proof_of_concept/__init__.py
exratione/thywill-python
2078d6f6fc12034eac60a7cc30bf2bc0d27a8732
[ "MIT" ]
null
null
null
thywill_apps/src/thywill_apps/test/proof_of_concept/__init__.py
exratione/thywill-python
2078d6f6fc12034eac60a7cc30bf2bc0d27a8732
[ "MIT" ]
null
null
null
''' A very simple test application to exercise a round trip of messages through the thywill system. This also illustrates the bare, bare minimum implementation of the 'thywill_interface.py' module - all it does is echo back incoming messages to the client who sent them. '''
45.833333
98
0.789091
44
275
4.909091
0.795455
0.092593
0
0
0
0
0
0
0
0
0
0
0.163636
275
6
99
45.833333
0.93913
0.970909
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
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
3
c8ce9069c002bb7867b82767bde341a14df75d08
104
py
Python
integration/tests/error_assert_variable.py
youhavethewrong/hurl
91cc14882a5f1ef7fa86be09a9f5581cef680559
[ "Apache-2.0" ]
1,013
2020-08-27T12:38:48.000Z
2022-03-31T23:12:23.000Z
integration/tests/error_assert_variable.py
youhavethewrong/hurl
91cc14882a5f1ef7fa86be09a9f5581cef680559
[ "Apache-2.0" ]
217
2020-08-31T11:18:10.000Z
2022-03-30T17:50:30.000Z
integration/tests/error_assert_variable.py
youhavethewrong/hurl
91cc14882a5f1ef7fa86be09a9f5581cef680559
[ "Apache-2.0" ]
54
2020-09-02T09:41:06.000Z
2022-03-19T15:33:05.000Z
from tests import app @app.route("/error-assert-variable") def error_assert_variable(): return ''
14.857143
36
0.721154
14
104
5.214286
0.714286
0.30137
0.520548
0
0
0
0
0
0
0
0
0
0.144231
104
6
37
17.333333
0.820225
0
0
0
0
0
0.213592
0.213592
0
0
0
0
0.5
1
0.25
true
0
0.25
0.25
0.75
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
1
0
0
1
1
0
0
9
c8d09ce36295ecfe93aeeecfaa8a003ce925b428
6,979
py
Python
src/jk_sysinfo/get_proc_cpu_info.py
jkpubsrc/python-module-jk-sysinfo
583c9e5d10f64a722ffa794d081aaf94354ba4fb
[ "Apache-1.1" ]
null
null
null
src/jk_sysinfo/get_proc_cpu_info.py
jkpubsrc/python-module-jk-sysinfo
583c9e5d10f64a722ffa794d081aaf94354ba4fb
[ "Apache-1.1" ]
null
null
null
src/jk_sysinfo/get_proc_cpu_info.py
jkpubsrc/python-module-jk-sysinfo
583c9e5d10f64a722ffa794d081aaf94354ba4fb
[ "Apache-1.1" ]
null
null
null
import typing from jk_cachefunccalls import cacheCalls from jk_cmdoutputparsinghelper import ValueParser_ByteWithUnit from .parsing_utils import * from .invoke_utils import run #import jk_json _parserColonKVP = ParseAtFirstDelimiter(delimiter=":", valueCanBeWrappedInDoubleQuotes=False, keysReplaceSpacesWithUnders...
29.572034
612
0.71271
1,110
6,979
4.372072
0.216216
0.008036
0.009067
0.018957
0.732124
0.723058
0.716464
0.694622
0.694622
0.671955
0
0.049793
0.202894
6,979
235
613
29.697872
0.822578
0.745379
0
0.193548
0
0
0.174539
0
0
0
0
0
0
1
0.032258
false
0
0.080645
0
0.145161
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
c8d14c78402ef6d14f3e0943706f524623b640ce
900
py
Python
src/telegram/telegram.py
timepieces141/refactored-telegram
02dce4b1273afb5fd8b80cbdc64a560dc75dbeec
[ "MIT" ]
null
null
null
src/telegram/telegram.py
timepieces141/refactored-telegram
02dce4b1273afb5fd8b80cbdc64a560dc75dbeec
[ "MIT" ]
null
null
null
src/telegram/telegram.py
timepieces141/refactored-telegram
02dce4b1273afb5fd8b80cbdc64a560dc75dbeec
[ "MIT" ]
null
null
null
''' This module provides the Telegram. ''' class Telegram: ''' Telegram encapsulates the pieces and parts of a telegram. ''' def __init__(self, sender, recipient, message): ''' Constructs a Telegram instance. :param sender: The sender of the telegram :param recipi...
20.930233
61
0.564444
88
900
5.659091
0.306818
0.066265
0.052209
0.072289
0.092369
0
0
0
0
0
0
0
0.351111
900
42
62
21.428571
0.85274
0.385556
0
0.214286
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
c8d1af14aa978ccc8ecf4f4ebec0ffa36d951d1c
345
py
Python
test/test_report.py
aymatveev/testing_framework
3e522d23b46ddb27b3b389210c244aaee5c3370e
[ "MIT" ]
null
null
null
test/test_report.py
aymatveev/testing_framework
3e522d23b46ddb27b3b389210c244aaee5c3370e
[ "MIT" ]
null
null
null
test/test_report.py
aymatveev/testing_framework
3e522d23b46ddb27b3b389210c244aaee5c3370e
[ "MIT" ]
null
null
null
from testing_framework.report import report from typing import Tuple import html def test_report(): result = report(("test_report", "second line")) expected_result = f""" <!DOCTYPE html> <html> <body> <div>test_report</div><div>second line</div> </body> </html> """ assert html.escape(expected_resul...
23
62
0.695652
46
345
5.086957
0.434783
0.128205
0
0
0
0
0
0
0
0
0
0
0.153623
345
15
62
23
0.80137
0
0
0
0
0
0.352601
0.095376
0
0
0
0
0.071429
1
0.071429
false
0
0.214286
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c8d1c681c7ce88bcb176a7a0b8c693c830a7bc65
160
py
Python
Python/mixedfractions/mixedfractions.py
rvrheenen/OpenKattis
7fd59fcb54e86cdf10f56c580c218c62e584f391
[ "MIT" ]
12
2016-10-03T20:43:43.000Z
2021-06-12T17:18:42.000Z
Python/mixedfractions/mixedfractions.py
rvrheenen/OpenKattis
7fd59fcb54e86cdf10f56c580c218c62e584f391
[ "MIT" ]
null
null
null
Python/mixedfractions/mixedfractions.py
rvrheenen/OpenKattis
7fd59fcb54e86cdf10f56c580c218c62e584f391
[ "MIT" ]
10
2017-11-14T19:56:37.000Z
2021-02-02T07:39:57.000Z
while(True): inp = [int(x) for x in input().split()] if inp[0] == 0 and inp[1] == 0: break print(inp[0]//inp[1], inp[0]%inp[1], "/", inp[1])
32
53
0.48125
30
160
2.566667
0.5
0.207792
0.181818
0.207792
0.246753
0
0
0
0
0
0
0.075
0.25
160
5
53
32
0.566667
0
0
0
0
0
0.006211
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
c8d23bd00fcfedf98199c38fb1e64ea94cbde637
4,480
py
Python
qr_rover_lost_comms/src/qr_rover_lost_comms/qr_rover_lost_comms.py
QuantumRoboticsURC/qrteam
bb28f4ad82eab6fb0706be13f8571e0b3261641e
[ "MIT" ]
null
null
null
qr_rover_lost_comms/src/qr_rover_lost_comms/qr_rover_lost_comms.py
QuantumRoboticsURC/qrteam
bb28f4ad82eab6fb0706be13f8571e0b3261641e
[ "MIT" ]
null
null
null
qr_rover_lost_comms/src/qr_rover_lost_comms/qr_rover_lost_comms.py
QuantumRoboticsURC/qrteam
bb28f4ad82eab6fb0706be13f8571e0b3261641e
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import time import rospy import subprocess import actionlib from std_msgs.msg import Float32 from sensor_msgs.msg import Joy from geometry_msgs.msg import Twist, PoseWithCovarianceStamped from actionlib_msgs.msg import GoalStatus, GoalStatusArray from move_base_msgs.msg import MoveBase...
39.646018
99
0.59375
568
4,480
4.450704
0.262324
0.042722
0.059335
0.047468
0.245253
0.170886
0.16693
0.131329
0.131329
0.048259
0
0.019396
0.297991
4,480
113
100
39.646018
0.78442
0.074107
0
0.106383
0
0
0.056294
0
0
0
0
0.00885
0
1
0.095745
false
0
0.106383
0
0.234043
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
c8d264727c0faf5a872f18da939f483862ce785c
108
py
Python
backend/application/contracts/schemas/__init__.py
uesleicarvalhoo/Ecommerce
1d8d0f0c522dcd27fd90e315989b6fa93caf62b8
[ "MIT" ]
null
null
null
backend/application/contracts/schemas/__init__.py
uesleicarvalhoo/Ecommerce
1d8d0f0c522dcd27fd90e315989b6fa93caf62b8
[ "MIT" ]
null
null
null
backend/application/contracts/schemas/__init__.py
uesleicarvalhoo/Ecommerce
1d8d0f0c522dcd27fd90e315989b6fa93caf62b8
[ "MIT" ]
null
null
null
from backend.domain.contracts import NewClient, NewOrder, NewOrderItem from .new_product import NewProduct
27
70
0.851852
13
108
7
0.846154
0
0
0
0
0
0
0
0
0
0
0
0.101852
108
3
71
36
0.938144
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
c8d5d6f27303f0d53ce075025843560499c32f81
508
py
Python
backend/swagger_server/helpers/_add_audit_entry.py
Lend88/libresign
9537f39a696fa5f3433052406329d77d528b6cf9
[ "MIT" ]
6
2019-01-29T05:58:37.000Z
2021-11-02T22:47:02.000Z
backend/swagger_server/helpers/_add_audit_entry.py
Lend88/libresign
9537f39a696fa5f3433052406329d77d528b6cf9
[ "MIT" ]
9
2020-09-09T04:53:01.000Z
2022-03-08T22:52:18.000Z
backend/swagger_server/helpers/_add_audit_entry.py
Lend88/libresign
9537f39a696fa5f3433052406329d77d528b6cf9
[ "MIT" ]
4
2019-01-29T07:38:55.000Z
2021-10-16T21:06:42.000Z
from uuid import UUID import json from ..mappings import * def add_doc_audit_entry(session, doc_id, status, data): """"Add an audit entry, requires that a commit be run on the session afterwards """ if not isinstance(doc_id, UUID): raise ValueError("Expecting UUID") if not isinstanc...
22.086957
55
0.65748
67
508
4.865672
0.537313
0.046012
0.092025
0
0
0
0
0
0
0
0
0
0.25
508
22
56
23.090909
0.855643
0.149606
0
0
0
0
0.067961
0
0
0
0
0
0
1
0.076923
false
0
0.230769
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c8d758a027414f97b213413022804a7b0f68fe28
523
py
Python
version.py
Jin-Tao-208/web_science_coursework
bb4ab2226b70e7b0f7bbef40ceb002900e757a31
[ "MIT" ]
null
null
null
version.py
Jin-Tao-208/web_science_coursework
bb4ab2226b70e7b0f7bbef40ceb002900e757a31
[ "MIT" ]
null
null
null
version.py
Jin-Tao-208/web_science_coursework
bb4ab2226b70e7b0f7bbef40ceb002900e757a31
[ "MIT" ]
null
null
null
# versions of libraries used import sys import tweepy import numpy as np import pymongo import emoji import nltk.tokenize import requests print("Python version:{}".format(sys.version)) print("tweepy version:{}".format(tweepy.__version__)) print("pymongo version:{}".format(pymongo.__version__)) print("emoji...
29.055556
58
0.745698
63
523
5.809524
0.301587
0.248634
0
0
0
0
0
0
0
0
0
0
0.10325
523
17
59
30.764706
0.780384
0.049713
0
0
0
0
0.247379
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
4
c8d9772ef30de66f59d67a0dc784ccc67d52e59f
94
py
Python
python3/binary.py
eiadshahtout/Python
b2406b0806bc55a9d8f5482a304a8d6968249018
[ "MIT" ]
null
null
null
python3/binary.py
eiadshahtout/Python
b2406b0806bc55a9d8f5482a304a8d6968249018
[ "MIT" ]
null
null
null
python3/binary.py
eiadshahtout/Python
b2406b0806bc55a9d8f5482a304a8d6968249018
[ "MIT" ]
null
null
null
def count_ones(num): binary = str(bin(num))[2:] print(binary) return binary count_ones(20)
15.666667
27
0.712766
16
94
4.0625
0.6875
0.276923
0
0
0
0
0
0
0
0
0
0.036585
0.12766
94
6
28
15.666667
0.756098
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
0.2
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
c8d9edb95baf53d14122148e741bd4d9e71e6992
6,968
py
Python
adaboost.py
xxxzhi/AdaBoostClassifier
e5161cad03bdeb1c353b1c06dc32752a34c160d3
[ "Apache-2.0" ]
1
2019-03-15T03:10:08.000Z
2019-03-15T03:10:08.000Z
adaboost.py
xxxzhi/AdaBoostClassifier
e5161cad03bdeb1c353b1c06dc32752a34c160d3
[ "Apache-2.0" ]
null
null
null
adaboost.py
xxxzhi/AdaBoostClassifier
e5161cad03bdeb1c353b1c06dc32752a34c160d3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import dbm from sklearn.datasets import load_iris from classifer.base import BaseClassifier from classifer.decision_tree import DecisionTreeClassifier import numpy as np class AbsAdaBoostClassifier(BaseClassifier): def __init__(self, num_rounds): super(AbsAdaB...
28.325203
104
0.550373
849
6,968
4.369847
0.248528
0.021563
0.014016
0.01186
0.121024
0.095687
0.02345
0.021024
0.021024
0.021024
0
0.01733
0.329219
6,968
245
105
28.440816
0.776423
0.050947
0
0.088608
0
0
0.036976
0.008835
0
0
0
0
0
0
null
null
0.006329
0.037975
null
null
0.107595
0
0
0
null
0
0
0
0
0
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
c8da9080a11e6c113c5b2a18202d6e7d74fba286
4,942
py
Python
bioinfo/assembly/overlap.py
sohyongsheng/sequence_assembly
f2dea763da447f09f49de8fbf3ceaad8ed3e0559
[ "MIT" ]
1
2022-02-02T07:49:58.000Z
2022-02-02T07:49:58.000Z
bioinfo/assembly/overlap.py
sohyongsheng/sequence_assembly
f2dea763da447f09f49de8fbf3ceaad8ed3e0559
[ "MIT" ]
null
null
null
bioinfo/assembly/overlap.py
sohyongsheng/sequence_assembly
f2dea763da447f09f49de8fbf3ceaad8ed3e0559
[ "MIT" ]
null
null
null
import numpy as np from bioinfo.assembly.errors import InvalidPair from bioinfo.molecules.sequence import Sequence class LargestOverlapFinder: def __init__(self): pass # Get indices a, b, c, d of longest substrings first, # such that substring == first[a: b] == second[c: d]. # Also returns le...
31.679487
68
0.474909
561
4,942
4.103387
0.219251
0.054735
0.026064
0.008688
0.337967
0.30278
0.261946
0.2298
0.2298
0.21199
0
0.030753
0.42756
4,942
155
69
31.883871
0.782962
0.140834
0
0.259615
0
0
0.009039
0
0
0
0
0
0.028846
1
0.076923
false
0.009615
0.028846
0.009615
0.269231
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
c8dab9e9589a6e0d7ec3775c63cd68cd42f91ee4
857
py
Python
models/operations.py
NikolayXHD/tinkoff-api-python
4a4b71f7af1d752b8566299c058b712b513fa92f
[ "MIT" ]
null
null
null
models/operations.py
NikolayXHD/tinkoff-api-python
4a4b71f7af1d752b8566299c058b712b513fa92f
[ "MIT" ]
null
null
null
models/operations.py
NikolayXHD/tinkoff-api-python
4a4b71f7af1d752b8566299c058b712b513fa92f
[ "MIT" ]
null
null
null
from __future__ import annotations from . import _base class Operations(_base.Model): swagger_types: dict[str, str] = {'operations': 'list[Operation]'} attribute_map: dict[str, str] = {'operations': 'operations'} def __init__(self, operations=None): self._operations = None self.discrimi...
25.205882
69
0.611435
83
857
6.13253
0.46988
0.165029
0.10609
0.078585
0.129666
0
0
0
0
0
0
0
0.28238
857
33
70
25.969697
0.827642
0.121354
0
0
0
0
0.134561
0
0
0
0
0
0
1
0.157895
false
0
0.105263
0
0.473684
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
c8dad2fb3e34935d8ee2d55f042a5e204873fdf4
187
py
Python
tests/IT/fixtures/test_fixture_nested.py
testandconquer/pytest-conquer
da600c7f5bcd06aa62c5cca9b75370bf1a6ebf05
[ "MIT" ]
null
null
null
tests/IT/fixtures/test_fixture_nested.py
testandconquer/pytest-conquer
da600c7f5bcd06aa62c5cca9b75370bf1a6ebf05
[ "MIT" ]
5
2018-12-27T02:52:01.000Z
2019-01-02T01:52:55.000Z
tests/IT/fixtures/test_fixture_nested.py
testandconquer/pytest-conquer
da600c7f5bcd06aa62c5cca9b75370bf1a6ebf05
[ "MIT" ]
null
null
null
import pytest @pytest.fixture def fixture1(): return 1 @pytest.fixture def fixture2(fixture1): return fixture1 + 1 def test_with_fixture(fixture2): assert fixture2 == 2
11.6875
32
0.71123
24
187
5.458333
0.5
0.198473
0.244275
0
0
0
0
0
0
0
0
0.060403
0.203209
187
15
33
12.466667
0.818792
0
0
0.222222
0
0
0
0
0
0
0
0
0.111111
1
0.333333
false
0
0.111111
0.222222
0.666667
0
1
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
1
1
0
0
5
c8dbf09302e48945dea0b1250add3f9a59269652
827
py
Python
app/api/utils/remoteImageMapper.py
nurely/lxdui
8cb31dc1117719b140f440f8a705282781db7b35
[ "Apache-2.0" ]
589
2017-10-22T04:11:08.000Z
2022-03-26T22:50:30.000Z
app/api/utils/remoteImageMapper.py
nurely/lxdui
8cb31dc1117719b140f440f8a705282781db7b35
[ "Apache-2.0" ]
134
2017-11-14T02:52:03.000Z
2022-03-22T12:51:09.000Z
app/api/utils/remoteImageMapper.py
nurely/lxdui
8cb31dc1117719b140f440f8a705282781db7b35
[ "Apache-2.0" ]
170
2017-10-06T06:22:43.000Z
2022-03-15T02:12:34.000Z
def remoteImagesList(images): response = [] aliasesProcessed = [] aliases = [alias[20:] for alias in images['metadata']] for alias in aliases: strippedAlias = alias.replace('/default','') if strippedAlias not in aliasesProcessed: aliasesDetails = alias.split('/') ...
30.62963
76
0.628779
71
827
7.15493
0.422535
0.031496
0.03937
0
0
0
0
0
0
0
0
0.009836
0.262394
827
26
77
31.807692
0.822951
0
0
0
0
0
0.060606
0
0
0
0
0
0
1
0.095238
false
0
0
0
0.190476
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
c8e095e4b5a713605e60ac5cfbe8f9beb652c2f1
390
py
Python
search.py
kanttouchthis/clip-search
463c3f2849a6f5ae7ebc6bfe7a932ec82f2ab0c1
[ "MIT" ]
1
2021-10-12T12:15:00.000Z
2021-10-12T12:15:00.000Z
search.py
kanttouchthis/clip-search
463c3f2849a6f5ae7ebc6bfe7a932ec82f2ab0c1
[ "MIT" ]
null
null
null
search.py
kanttouchthis/clip-search
463c3f2849a6f5ae7ebc6bfe7a932ec82f2ab0c1
[ "MIT" ]
1
2021-11-20T14:51:11.000Z
2021-11-20T14:51:11.000Z
from searcher import CLIPSearcher from utils import get_args if __name__ == "__main__": args = get_args() cs = CLIPSearcher(device=args.device, store_path=args.store_path) cs.load_dir(args.dir, save_every=args.save_every, recursive=args.recursive, load_new=(not args.dont_load_new)) cs.search(texts=args...
43.333333
114
0.769231
59
390
4.779661
0.457627
0.049645
0
0
0
0
0
0
0
0
0
0
0.115385
390
8
115
48.75
0.817391
0
0
0
0
0
0.020513
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
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
0
0
0
0
0
1
c8e2a3f8d1524fcc6efb93afc74fa20ef2432c75
2,049
py
Python
gemd/entity/template/has_property_templates.py
CitrineInformatics/gemd-python
4f80045c1b481269c7451f6a205755c22093eb74
[ "Apache-2.0" ]
7
2020-04-02T11:11:09.000Z
2022-02-05T23:19:51.000Z
gemd/entity/template/has_property_templates.py
CitrineInformatics/gemd-python
4f80045c1b481269c7451f6a205755c22093eb74
[ "Apache-2.0" ]
24
2020-04-22T16:55:09.000Z
2022-03-30T20:44:39.000Z
gemd/entity/template/has_property_templates.py
CitrineInformatics/gemd-python
4f80045c1b481269c7451f6a205755c22093eb74
[ "Apache-2.0" ]
3
2020-05-08T00:50:02.000Z
2020-12-19T00:48:56.000Z
"""For entities that have a property template.""" from gemd.entity.link_by_uid import LinkByUID from gemd.entity.setters import validate_list from gemd.entity.template.base_template import BaseTemplate from gemd.entity.template.property_template import PropertyTemplate from gemd.entity.bounds.base_bounds import BaseBou...
32.52381
84
0.625671
207
2,049
6.115942
0.323672
0.028436
0.055292
0.060032
0.350711
0.273302
0.273302
0.273302
0.273302
0.273302
0
0
0.295266
2,049
62
85
33.048387
0.876731
0.406052
0
0
0
0
0
0
0
0
0
0
0
1
0.136364
false
0
0.272727
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
c8e3e5f641575e46034c6e7d21d6b9a28bd02474
1,547
py
Python
app/main/forms.py
james-muriithi/blog
e653f2fbb3c1e5a873c393b4985cc12d726e451c
[ "Unlicense" ]
null
null
null
app/main/forms.py
james-muriithi/blog
e653f2fbb3c1e5a873c393b4985cc12d726e451c
[ "Unlicense" ]
null
null
null
app/main/forms.py
james-muriithi/blog
e653f2fbb3c1e5a873c393b4985cc12d726e451c
[ "Unlicense" ]
null
null
null
from app.models import Subscriber from flask_wtf import FlaskForm from wtforms import TextAreaField, StringField, IntegerField, EmailField from wtforms.validators import InputRequired, ValidationError from flask import flash class BlogForm(FlaskForm): title = StringField('Title', validators=[InputRequired()]) ...
40.710526
76
0.728507
144
1,547
7.777778
0.347222
0.246429
0.075
0.109821
0.394643
0.319643
0.319643
0.319643
0.319643
0.319643
0
0
0.144796
1,547
38
77
40.710526
0.846561
0.027149
0
0.285714
0
0
0.096731
0
0
0
0
0
0
1
0.035714
false
0
0.178571
0
0.892857
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
c8e4d42dd8ef4d4d14c2794784ca0f4e4747b37c
278
py
Python
miner/config.py
czhang-nbai/swan
03a6ade93d9b8b193bd05bf851779784eb2ffde5
[ "MIT" ]
6
2021-02-19T02:36:06.000Z
2021-03-20T09:38:17.000Z
miner/config.py
czhang-nbai/swan
03a6ade93d9b8b193bd05bf851779784eb2ffde5
[ "MIT" ]
27
2021-01-13T06:43:44.000Z
2021-05-12T04:55:28.000Z
miner/config.py
czhang-nbai/swan
03a6ade93d9b8b193bd05bf851779784eb2ffde5
[ "MIT" ]
7
2021-01-26T04:50:11.000Z
2021-03-04T22:26:59.000Z
import toml def read_config(_config_path=None): if _config_path is None: _config_path = './config.toml' # script_dir = os.path.dirname(__file__) # file_path = os.path.join(script_dir, config_path) _config = toml.load(_config_path) return _config
21.384615
55
0.694245
39
278
4.461538
0.435897
0.287356
0.183908
0.229885
0
0
0
0
0
0
0
0
0.205036
278
12
56
23.166667
0.78733
0.316547
0
0
0
0
0.069519
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.5
0
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
0
0
3
c8e6c52bd4d19fdf314e6096b12ca3b0f03e5a63
3,214
py
Python
godaddy_dns.py
JohnMcSpedon/GoDaddy_DNS_migrator
e7439616f64a446254e4df05db115aaa0206691e
[ "MIT" ]
4
2021-03-01T18:28:34.000Z
2021-03-11T12:20:16.000Z
godaddy_dns.py
JohnMcSpedon/GoDaddy_DNS_migrator
e7439616f64a446254e4df05db115aaa0206691e
[ "MIT" ]
null
null
null
godaddy_dns.py
JohnMcSpedon/GoDaddy_DNS_migrator
e7439616f64a446254e4df05db115aaa0206691e
[ "MIT" ]
null
null
null
""" Retrieve GoDaddy DNS settings via their developer API See also: https://developer.godaddy.com/doc/endpoint/domains#/ """ import os import time from pprint import pprint from typing import List import requests import credential_loaders BASE_URL = "https://api.godaddy.com" # You can easily replace these with...
32.795918
120
0.671749
413
3,214
5.033898
0.411622
0.02886
0.03848
0.051948
0.162578
0.124098
0.056758
0
0
0
0
0.032705
0.19135
3,214
97
121
33.134021
0.767218
0.46453
0
0
0
0.027027
0.141805
0.012891
0
0
0
0.010309
0
1
0.135135
false
0
0.162162
0
0.405405
0.162162
0
0
0
null
0
0
0
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
c8e80bc7bd958f10a7a1f279ed0d99283b77f722
1,184
py
Python
preprocessing.py
Alloooshe/facelib_modular_face_recognition_pipline
0313214b6f919e49e84235c1a6a4a4838b813e73
[ "MIT" ]
10
2019-12-29T13:38:56.000Z
2021-03-15T07:21:52.000Z
preprocessing.py
Alloooshe/facelib_modular_face_recognition_pipline
0313214b6f919e49e84235c1a6a4a4838b813e73
[ "MIT" ]
1
2021-03-15T07:45:45.000Z
2021-03-17T11:10:53.000Z
preprocessing.py
Alloooshe/facelib_modular_face_recognition_pipline
0313214b6f919e49e84235c1a6a4a4838b813e73
[ "MIT" ]
2
2020-05-03T08:33:39.000Z
2021-02-06T16:49:54.000Z
import cv2 import numpy as np class preprocessing: def process_image(self,image, rescale, recolor): if rescale['req']: image= self.rescale(image,rescale['width'], rescale['height']) if recolor['req']: image = self.rgb2gray(image) return image def rescale (self,image,wid...
28.878049
71
0.579392
152
1,184
4.486842
0.342105
0.065982
0.064516
0
0
0
0
0
0
0
0
0.033413
0.29223
1,184
41
72
28.878049
0.78043
0
0
0.088235
0
0
0.014847
0
0
0
0
0
0
1
0.176471
false
0
0.058824
0
0.441176
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c8e8ef9bc1df23fffd3b87a416935aa12a7c1e19
214
py
Python
app/database/pronto_soccorso.py
nyxgear/PSD-e-service-pronto-soccorso
92eb0586c2cfb12a844a106b71911c80e8e3e57b
[ "MIT" ]
null
null
null
app/database/pronto_soccorso.py
nyxgear/PSD-e-service-pronto-soccorso
92eb0586c2cfb12a844a106b71911c80e8e3e57b
[ "MIT" ]
null
null
null
app/database/pronto_soccorso.py
nyxgear/PSD-e-service-pronto-soccorso
92eb0586c2cfb12a844a106b71911c80e8e3e57b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .tables.pronto_soccorsi import table class ProntoSoccorso: _table = table def __init__(self, ps_dict): # entity dict self.e_d = ps_dict def to_dict(self): return self.e_d
14.266667
41
0.696262
33
214
4.181818
0.636364
0.086957
0.086957
0
0
0
0
0
0
0
0
0.00578
0.191589
214
14
42
15.285714
0.791908
0.154206
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0.142857
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
c8ea55c5455ae4d69b07f53ce37792d7f4a82837
132
py
Python
3_binary_tree/__init__.py
freshklauser/LeeCodeSummary
d9d776ddfc44fee844123b848d43a78e9ba4117e
[ "MIT" ]
null
null
null
3_binary_tree/__init__.py
freshklauser/LeeCodeSummary
d9d776ddfc44fee844123b848d43a78e9ba4117e
[ "MIT" ]
null
null
null
3_binary_tree/__init__.py
freshklauser/LeeCodeSummary
d9d776ddfc44fee844123b848d43a78e9ba4117e
[ "MIT" ]
1
2021-11-18T01:58:29.000Z
2021-11-18T01:58:29.000Z
# -*- coding: utf-8 -*- # @Author : Administrator # @DateTime : 2021/10/17 20:40 # @FileName : __init__.py # @SoftWare : PyCharm
18.857143
30
0.621212
16
132
4.875
1
0
0
0
0
0
0
0
0
0
0
0.121495
0.189394
132
6
31
22
0.607477
0.909091
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
c8ebd9a417dcbfc90f2665cef2e143f107c15986
497
py
Python
covid_19_stat.py
pavelkalinchuk/api
3b2eccbb09b012ac2c841dd30c44a285a8f5bdc2
[ "Apache-2.0" ]
null
null
null
covid_19_stat.py
pavelkalinchuk/api
3b2eccbb09b012ac2c841dd30c44a285a8f5bdc2
[ "Apache-2.0" ]
null
null
null
covid_19_stat.py
pavelkalinchuk/api
3b2eccbb09b012ac2c841dd30c44a285a8f5bdc2
[ "Apache-2.0" ]
null
null
null
import requests from datetime import date, timedelta today = date.today() yesterday = today - timedelta(days=1) country = "Russia" endpoint = f"https://api.covid19api.com/country/{country}/status/confirmed" params = {"from": str(yesterday), "to": str(today)} response = requests.get(endpoint, params=params).json() tot...
29.235294
76
0.724346
68
497
5.25
0.529412
0.156863
0
0
0
0
0
0
0
0
0
0.016129
0.126761
497
16
77
31.0625
0.806452
0
0
0
0
0
0.285714
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c8ec940438930475725da4b1624b8e42cb723947
157
py
Python
core/models/__init__.py
Brain-Engine/ImageNet
893a8008e0e8e373bc66a7cbb40813db8495426a
[ "Apache-2.0" ]
1
2021-05-17T11:49:12.000Z
2021-05-17T11:49:12.000Z
core/models/__init__.py
Brain-Engine/ImageNet
893a8008e0e8e373bc66a7cbb40813db8495426a
[ "Apache-2.0" ]
null
null
null
core/models/__init__.py
Brain-Engine/ImageNet
893a8008e0e8e373bc66a7cbb40813db8495426a
[ "Apache-2.0" ]
1
2021-05-17T11:49:22.000Z
2021-05-17T11:49:22.000Z
# import models from torchvision from torchvision.models import * # import models from efficientnet from .efficientnet import b0, b1, b2, b3, b4, b5, b6, b7
31.4
56
0.764331
23
157
5.217391
0.565217
0.2
0.266667
0
0
0
0
0
0
0
0
0.060606
0.159236
157
4
57
39.25
0.848485
0.394904
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
0
6
c8ee532a04ed15373dc8d2091c28d0c7dca10643
2,834
py
Python
MPI/py/plot_mpi_timing.py
mlxd/myscripts
b8b7d6b270ef24b06028e21f066c2bb587f94cef
[ "MIT" ]
null
null
null
MPI/py/plot_mpi_timing.py
mlxd/myscripts
b8b7d6b270ef24b06028e21f066c2bb587f94cef
[ "MIT" ]
null
null
null
MPI/py/plot_mpi_timing.py
mlxd/myscripts
b8b7d6b270ef24b06028e21f066c2bb587f94cef
[ "MIT" ]
null
null
null
#This file plots the results from the MPI timing runs import sys import numpy as np from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import matplotlib.markers as mkr plt_style='ggplot' plt.rcParams['font.size'] = 11 plt.rcParams['font.family'] = 'serif' plt.rcParams['axes.labelsize'] = 11 plt.rc...
38.821918
155
0.61856
538
2,834
3.228625
0.291822
0.018423
0.018423
0.032239
0.264824
0.200921
0.15947
0.145653
0.138169
0.138169
0
0.036977
0.122089
2,834
72
156
39.361111
0.661174
0.181016
0
0.117647
0
0
0.121317
0
0
0
0
0
0
1
0
false
0
0.098039
0
0.098039
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
c8efd5f50e23a88b242e0e5832ddd548e4a5108c
1,809
py
Python
src/entitykb/pipeline/filterers.py
genomoncology/entitykb
61cf346a24f52fd8c1edea8827a816284ed6ecaf
[ "MIT" ]
25
2020-06-30T16:46:43.000Z
2022-01-04T15:27:49.000Z
src/entitykb/pipeline/filterers.py
genomoncology/entitykb
61cf346a24f52fd8c1edea8827a816284ed6ecaf
[ "MIT" ]
3
2020-11-25T15:09:33.000Z
2021-05-08T11:25:14.000Z
src/entitykb/pipeline/filterers.py
genomoncology/entitykb
61cf346a24f52fd8c1edea8827a816284ed6ecaf
[ "MIT" ]
2
2021-06-17T11:21:49.000Z
2021-12-02T13:07:15.000Z
from typing import Iterator from entitykb import Span, interfaces, Doc class KeepExactNameOnly(interfaces.IFilterer): """ Only keep spans that are an exact match. """ def is_keep(self, span: Span): return span.name == span.text class RemoveInexactSynonyms(interfaces.IFilterer): """ Remove if n...
27.409091
73
0.63571
221
1,809
5.085973
0.316742
0.049822
0.053381
0.042705
0.209075
0.178826
0.11121
0.11121
0.11121
0.076512
0
0.000743
0.255943
1,809
65
74
27.830769
0.834324
0.114428
0
0.075
0
0
0
0
0
0
0
0
0
1
0.225
false
0
0.05
0.125
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
c8effc674c65f81f1f4c9fdac1c750120b3d16ef
716
py
Python
octavia-cli/unit_tests/test_entrypoint.py
pluralsh/airbyte
9b1ed03fe482f5154f6c1843b1be76de87f3605d
[ "MIT" ]
1
2022-01-27T22:29:38.000Z
2022-01-27T22:29:38.000Z
octavia-cli/unit_tests/test_entrypoint.py
pluralsh/airbyte
9b1ed03fe482f5154f6c1843b1be76de87f3605d
[ "MIT" ]
null
null
null
octavia-cli/unit_tests/test_entrypoint.py
pluralsh/airbyte
9b1ed03fe482f5154f6c1843b1be76de87f3605d
[ "MIT" ]
null
null
null
# # Copyright (c) 2021 Airbyte, Inc., all rights reserved. # import pytest from click.testing import CliRunner from octavia_cli import entrypoint def test_octavia(): runner = CliRunner() result = runner.invoke(entrypoint.octavia) assert result.exit_code == 0 assert result.output.startswith("Usage: oc...
27.538462
116
0.734637
85
716
6.082353
0.541176
0.092843
0.081238
0.104449
0.12766
0
0
0
0
0
0
0.009885
0.152235
716
25
117
28.64
0.841845
0.075419
0
0.117647
0
0
0.107903
0
0
0
0
0
0.235294
1
0.117647
false
0
0.235294
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c8f2a4e3254c600092c6d8f19d958953e7b804a3
5,261
py
Python
src/device/eltako/fsr61_actor.py
rosenloecher-it/enocean-mqtt-bridge
d56e41a1a67e70bdeb1aa46d10f48ed5a12ca59c
[ "MIT" ]
1
2020-12-01T17:10:14.000Z
2020-12-01T17:10:14.000Z
src/device/eltako/fsr61_actor.py
rosenloecher-it/enocean-mqtt-bridge
d56e41a1a67e70bdeb1aa46d10f48ed5a12ca59c
[ "MIT" ]
1
2021-09-19T13:38:02.000Z
2021-09-19T13:38:02.000Z
src/device/eltako/fsr61_actor.py
rosenloecher-it/enocean-mqtt-bridge
d56e41a1a67e70bdeb1aa46d10f48ed5a12ca59c
[ "MIT" ]
null
null
null
import json import logging import random from datetime import datetime from typing import Optional from paho.mqtt.client import MQTTMessage from enocean.protocol.constants import PACKET from enocean.protocol.packet import RadioPacket from src.command.switch_command import SwitchCommand from src.common.json_attributes...
40.469231
117
0.698536
599
5,261
5.851419
0.250417
0.047076
0.043652
0.056491
0.151213
0.103281
0.063338
0.039372
0.039372
0
0
0.009248
0.21897
5,261
129
118
40.782946
0.843758
0.030603
0
0.05
0
0
0.051969
0.004134
0
0
0.001969
0
0
1
0.08
false
0
0.18
0.01
0.31
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
c8f361858524234ea8e385c43bd790d28e9507fd
1,960
py
Python
neuroml/arraymorph_load_time_benchmark.py
NeuralEnsemble/libNeuroML
75d1630a0c6354a3997c4068dc8cdc447491b6f8
[ "BSD-3-Clause" ]
20
2015-03-11T11:21:32.000Z
2021-10-11T16:03:27.000Z
neuroml/arraymorph_load_time_benchmark.py
NeuralEnsemble/libNeuroML
75d1630a0c6354a3997c4068dc8cdc447491b6f8
[ "BSD-3-Clause" ]
48
2015-01-15T18:41:01.000Z
2022-01-05T13:53:58.000Z
neuroml/arraymorph_load_time_benchmark.py
NeuralEnsemble/libNeuroML
75d1630a0c6354a3997c4068dc8cdc447491b6f8
[ "BSD-3-Clause" ]
16
2015-01-14T21:53:46.000Z
2019-09-04T23:05:27.000Z
import numpy as np import neuroml import neuroml.arraymorph as am class Benchmark: def __init__(self, num_segments): self.num_segments = num_segments def set_up(self): num_segments = int(1e4) # Per cell num_vertices = num_segments + 1 x = np.linspace(0, 10, num_vertices) ...
31.612903
67
0.656122
245
1,960
5.004082
0.220408
0.058728
0.044861
0.055465
0.126427
0.102773
0.073409
0
0
0
0
0.019035
0.24949
1,960
61
68
32.131148
0.814412
0.004082
0
0
0
0
0.022564
0
0
0
0
0
0
1
0.044444
false
0
0.066667
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c8f400891a861906013fd78e255d4aff2e9b28fa
5,840
py
Python
extractexamples.py
afcarl/contra
a82d14342b242cba7a8298d54aa0dabd9d77269d
[ "0BSD" ]
1
2019-04-22T16:56:07.000Z
2019-04-22T16:56:07.000Z
extractexamples.py
afcarl/contra
a82d14342b242cba7a8298d54aa0dabd9d77269d
[ "0BSD" ]
null
null
null
extractexamples.py
afcarl/contra
a82d14342b242cba7a8298d54aa0dabd9d77269d
[ "0BSD" ]
null
null
null
#!/usr/bin/env python # Extracts examples of given strings with context in a TAB-separated # field format from given text documents. from __future__ import with_statement import sys import re from os import path options = None def argparser(): import argparse ap=argparse.ArgumentParser(description="Extract...
37.677419
175
0.55976
738
5,840
4.369919
0.249322
0.032248
0.056434
0.022326
0.27876
0.231628
0.135194
0.135194
0.114729
0.092403
0
0.005747
0.314726
5,840
154
176
37.922078
0.8001
0.064384
0
0.311475
0
0.016393
0.210671
0.004584
0.008197
0
0
0
0.02459
0
null
null
0
0.040984
null
null
0.114754
0
0
0
null
0
0
0
0
0
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
c8f61ba84ff26314734e24f05cd833da5e3ee801
2,813
py
Python
pymtl/tools/translation/verilog_bug_test.py
belang/pymtl
4a96738724b007cbd684753aed0ac3de5b5dbebb
[ "BSD-3-Clause" ]
206
2015-01-05T21:53:56.000Z
2022-03-14T08:04:49.000Z
pymtl/tools/translation/verilog_bug_test.py
belang/pymtl
4a96738724b007cbd684753aed0ac3de5b5dbebb
[ "BSD-3-Clause" ]
84
2015-01-25T19:57:33.000Z
2021-05-11T15:46:56.000Z
pymtl/tools/translation/verilog_bug_test.py
belang/pymtl
4a96738724b007cbd684753aed0ac3de5b5dbebb
[ "BSD-3-Clause" ]
99
2015-02-17T17:43:44.000Z
2022-02-14T17:58:18.000Z
#======================================================================= # verilog_bug_test.py #======================================================================= import pytest from pymtl import * from exceptions import VerilatorCompileError pytestmark = requires_verilator #-------------------------------...
29
72
0.460363
265
2,813
4.686792
0.358491
0.021739
0.028986
0.038647
0.090177
0.088567
0.032206
0
0
0
0
0.00354
0.196587
2,813
96
73
29.302083
0.546018
0.335585
0
0.186441
0
0
0.049189
0
0
0
0
0
0.033898
1
0.186441
false
0
0.050847
0
0.305085
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
c8f667d55a6083981558407ab139318c270d5ca3
436
py
Python
library/TraverseDirectory-M2.py
remytanx/python3-created-in-github
83b3dd0f36da6fc4df7c1cc37cac12f178f985a3
[ "MIT" ]
null
null
null
library/TraverseDirectory-M2.py
remytanx/python3-created-in-github
83b3dd0f36da6fc4df7c1cc37cac12f178f985a3
[ "MIT" ]
null
null
null
library/TraverseDirectory-M2.py
remytanx/python3-created-in-github
83b3dd0f36da6fc4df7c1cc37cac12f178f985a3
[ "MIT" ]
null
null
null
import os # Get the list of all files with a specific extension # In this example, we will take a path of a directory and try to # list all the files, with a specific extension .py here, # in the directory and its sub-directories recursively. path = r'C:\Users\10900225\Documents\Witch\BTX\Workspaces\Library' for r...
33.538462
66
0.733945
76
436
4.210526
0.618421
0.05625
0.0625
0.1125
0.16875
0
0
0
0
0
0
0.021978
0.165138
436
13
67
33.538462
0.857143
0.518349
0
0
0
0
0.286408
0.271845
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
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
c8f71840564fdc1ff2e1787b21b4d5173407d801
1,509
py
Python
Modules/carlosma7/wizard/create_appointment.py
Carlosma7/Odoo
c234fcc18d15d4d8369e237286bee610fd76ceee
[ "CC0-1.0" ]
null
null
null
Modules/carlosma7/wizard/create_appointment.py
Carlosma7/Odoo
c234fcc18d15d4d8369e237286bee610fd76ceee
[ "CC0-1.0" ]
null
null
null
Modules/carlosma7/wizard/create_appointment.py
Carlosma7/Odoo
c234fcc18d15d4d8369e237286bee610fd76ceee
[ "CC0-1.0" ]
null
null
null
#-*- coding: utf-8-*- from odoo import api, fields, models, _ # Wizard class class CreateAppointmentWizard(models.TransientModel): _name = "create.appointment.wizard" _description = "Create Appointment Wizard" date_appointment = fields.Date(string='Date', required=False) patient_id = fields.Many2one('hospital.pa...
29.019231
97
0.686547
181
1,509
5.519337
0.364641
0.081081
0.052052
0.08008
0.206206
0.162162
0.138138
0.108108
0.108108
0.108108
0
0.006216
0.147117
1,509
52
98
29.019231
0.770008
0.284957
0
0.2
0
0
0.34334
0.062852
0
0
0
0
0
1
0.066667
false
0
0.033333
0.033333
0.333333
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
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
c8f838e818d81e237d9d5d8fa11595a921a6fae3
4,731
py
Python
groups.py
davidmehren/udm_group_matrix
ae71feef4bf299588aa473c95e9073c7d2f5f23e
[ "MIT" ]
null
null
null
groups.py
davidmehren/udm_group_matrix
ae71feef4bf299588aa473c95e9073c7d2f5f23e
[ "MIT" ]
null
null
null
groups.py
davidmehren/udm_group_matrix
ae71feef4bf299588aa473c95e9073c7d2f5f23e
[ "MIT" ]
1
2019-12-06T14:59:39.000Z
2019-12-06T14:59:39.000Z
#!/bin/env python3 import re from typing import List import numpy as np import matplotlib.pyplot as plt filtered_users = ["join-backup", "join-slave", "ucs-sso"] filtered_groups = ["computers", "dc backup hosts", "dc slave hosts"] class LDAPUser: name: str def __init__(self, name): self.name = name ...
31.125
106
0.581484
595
4,731
4.406723
0.233613
0.030511
0.022883
0.021358
0.179252
0.11251
0.101449
0.047292
0.029748
0.029748
0
0.007541
0.299302
4,731
151
107
31.331126
0.783409
0.015853
0
0.09322
0
0
0.073087
0
0
0
0
0
0
1
0.144068
false
0
0.033898
0.033898
0.330508
0.008475
0
0
0
null
0
0
0
0
0
0
0
0
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
c8f87a26e0ea3211d6cafee5a76cf221fb9382c8
107,098
py
Python
src/dbobjects.py
211tbc/synthesis
55b4dcb85b7a2ed5fbc46b1740c8ca0ab80248a4
[ "Unlicense" ]
null
null
null
src/dbobjects.py
211tbc/synthesis
55b4dcb85b7a2ed5fbc46b1740c8ca0ab80248a4
[ "Unlicense" ]
7
2016-08-12T15:12:43.000Z
2020-06-07T03:19:13.000Z
src/dbobjects.py
211tbc/synthesis
55b4dcb85b7a2ed5fbc46b1740c8ca0ab80248a4
[ "Unlicense" ]
null
null
null
from sqlalchemy import create_engine, Column, Integer, BigInteger, String, Boolean, MetaData, ForeignKey from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, relationship from sqlalchemy.types import DateTime, Date, Interval from sqlalchemy.pool import NullPool from .conf imp...
49.789865
176
0.757755
13,198
107,098
5.767389
0.048265
0.098374
0.135842
0.166715
0.836701
0.77217
0.694763
0.593394
0.457513
0.352873
0
0.0148
0.145157
107,098
2,150
177
49.813023
0.816618
0.027134
0
0.380649
0
0
0.049642
0.009145
0
0
0
0
0
1
0.002658
false
0.000532
0.004785
0
0.979798
0.002658
0
0
0
null
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
c8f8cdcd902d01952d5a7b8a680f7b6b5e1cd1d5
3,154
py
Python
ImageAnalysis/ImageAnalysis/python/references/bead-designer-test/beads.py
mikebourbeauart/PerlerPrinter
8c5023de6bb9b3cbe2bc28c1c823030dfd708db4
[ "MIT" ]
null
null
null
ImageAnalysis/ImageAnalysis/python/references/bead-designer-test/beads.py
mikebourbeauart/PerlerPrinter
8c5023de6bb9b3cbe2bc28c1c823030dfd708db4
[ "MIT" ]
2
2021-09-07T23:43:53.000Z
2022-01-13T00:39:55.000Z
ImageAnalysis/ImageAnalysis/python/references/bead-designer-test/beads.py
mikebourbeauart/PerlerPrinter
8c5023de6bb9b3cbe2bc28c1c823030dfd708db4
[ "MIT" ]
1
2019-10-21T17:12:07.000Z
2019-10-21T17:12:07.000Z
import Image from ImageColor import getrgb from reportlab.pdfgen import canvas from reportlab.lib.units import mm from reportlab.lib.pagesizes import A4 import uuid BEAD_RADIUS = 1.75*mm BEAD_THICKNESS = 1*mm BOARD_SPACING = 4.85*mm BOARD_BORDER = 4*mm #A4 60x43 = 2580 #A3 86x60 = 5160 #A2 86x120 = 10,320 #MARQUEE A4...
28.414414
84
0.616677
503
3,154
3.71173
0.304175
0.038565
0.008034
0.020889
0.11248
0.071773
0.071773
0.071773
0.057311
0.057311
0
0.044454
0.25111
3,154
110
85
28.672727
0.745978
0.117628
0
0
0
0
0.029579
0
0
0
0
0
0
0
null
null
0
0.077922
null
null
0.012987
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
c8f8f117d6dace7d4b6c578a60f491f9e6393f0d
1,836
py
Python
common_tools/report_dialog.py
jamiecook/AequilibraE
b1013d59cbeaf6fc4e1a944cf31f20460a2a4156
[ "MIT" ]
null
null
null
common_tools/report_dialog.py
jamiecook/AequilibraE
b1013d59cbeaf6fc4e1a944cf31f20460a2a4156
[ "MIT" ]
null
null
null
common_tools/report_dialog.py
jamiecook/AequilibraE
b1013d59cbeaf6fc4e1a944cf31f20460a2a4156
[ "MIT" ]
null
null
null
""" ----------------------------------------------------------------------------------------------------------- Package: AequilibraE Name: Report dialog Purpose: Dialog for showing the report from algorithm runs Original Author: Pedro Camargo (c@margo.co) Contributors: Last edited by: Pedro Camarg...
30.6
108
0.56427
206
1,836
4.854369
0.490291
0.042
0.033
0.04
0
0
0
0
0
0
0
0.014114
0.228214
1,836
59
109
31.118644
0.691602
0.337691
0
0
0
0
0.042749
0
0
0
0
0
0
1
0.09375
false
0
0.1875
0
0.3125
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
0
0
0
0
0
0
0
0
1
0
c8f9b47386e455dd9e70d1f591e4c141b1b8e828
21,580
py
Python
gui/robot_data_visualizer.py
wh1210/robot-data-visualizer
ebb59687233a8d09c8ed327c66ed1d69c4623136
[ "MIT" ]
null
null
null
gui/robot_data_visualizer.py
wh1210/robot-data-visualizer
ebb59687233a8d09c8ed327c66ed1d69c4623136
[ "MIT" ]
13
2018-11-20T22:55:39.000Z
2022-03-11T23:36:18.000Z
gui/robot_data_visualizer.py
wh1210/robot-data-visualizer
ebb59687233a8d09c8ed327c66ed1d69c4623136
[ "MIT" ]
2
2018-11-09T01:48:07.000Z
2018-12-29T23:10:53.000Z
import os import sys sys.path.append('.') sys.path.append('..') import warnings warnings.filterwarnings("ignore") from datetime import datetime import matplotlib matplotlib.use("TkAgg") import matplotlib.lines as lines import matplotlib.image as mpimg from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg f...
34.091627
117
0.580445
2,749
21,580
4.381593
0.121863
0.027895
0.023661
0.018265
0.575924
0.500789
0.441013
0.391449
0.371523
0.321129
0
0.008758
0.317424
21,580
632
118
34.14557
0.808961
0.185218
0
0.402174
0
0
0.040773
0
0
0
0
0.003165
0
1
0.105978
false
0.027174
0.040761
0
0.17663
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
c8fa3bb594a67f398ad5e9f8e305ca9da2fda5ed
1,780
py
Python
day10/day10.py
BroderickCarlin/AdventOfCode
52d12d16f3d291a51984e6d85dbe97e604abc005
[ "MIT" ]
null
null
null
day10/day10.py
BroderickCarlin/AdventOfCode
52d12d16f3d291a51984e6d85dbe97e604abc005
[ "MIT" ]
null
null
null
day10/day10.py
BroderickCarlin/AdventOfCode
52d12d16f3d291a51984e6d85dbe97e604abc005
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- lengths = "187,254,0,81,169,219,1,190,19,102,255,56,46,32,2,216" suffix = [17, 31, 73, 47, 23] num_rounds = 64 def puzzle1(): knot = range(256) skip_size = 0 idx1 = 0 for l in [int(a) for a in lengths.split(",")]: idx2 = idx1 + l k = [] ...
24.383562
64
0.455056
240
1,780
3.291667
0.283333
0.141772
0.111392
0.050633
0.559494
0.559494
0.516456
0.516456
0.516456
0.516456
0
0.104641
0.382584
1,780
72
65
24.722222
0.614195
0.023596
0
0.654545
0
0.018182
0.043779
0.029954
0
0
0
0
0
1
0.036364
false
0
0
0
0.072727
0.036364
0
0
0
null
0
0
0
0
0
0
0
0
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
c8fc7cc35ebc665797970c840fc5d039b1988b5c
1,914
py
Python
17tensorflow/tf2/2my_model.py
cheerfulwang/python-tutorial
d0f7348e1da4ff954e3add66e1aae55d599283ee
[ "Apache-2.0" ]
2
2021-01-04T10:44:44.000Z
2022-02-13T07:53:41.000Z
17tensorflow/tf2/2my_model.py
zm79287/python-tutorial
d0f7348e1da4ff954e3add66e1aae55d599283ee
[ "Apache-2.0" ]
null
null
null
17tensorflow/tf2/2my_model.py
zm79287/python-tutorial
d0f7348e1da4ff954e3add66e1aae55d599283ee
[ "Apache-2.0" ]
2
2020-11-23T08:58:51.000Z
2022-02-13T07:53:42.000Z
# -*- coding: utf-8 -*- """ @author:XuMing(xuming624@qq.com) @description: """ import tensorflow as tf import tensorflow.keras as keras import tensorflow.keras.layers as layers # 超参 num_words = 2000 num_tags = 12 num_departments = 4 # 输入 body_input = keras.Input(shape=(None,), name='body') title_input = keras.Input(...
29.446154
98
0.719436
269
1,914
4.925651
0.371747
0.030189
0.045283
0.045283
0.179623
0.179623
0.093585
0.05283
0
0
0
0.036527
0.127482
1,914
65
99
29.446154
0.756886
0.056426
0
0
0
0
0.102235
0.013408
0
0
0
0
0
1
0
false
0
0.102564
0
0.102564
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
c8ff0f334dbba342f0a95112a0a41bb1cc0f4aaf
3,937
py
Python
src/genie/libs/parser/nxos/tests/ShowIpOspf/cli/equal/golden_output_2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/nxos/tests/ShowIpOspf/cli/equal/golden_output_2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/nxos/tests/ShowIpOspf/cli/equal/golden_output_2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { 'vrf': {'default': {'address_family': {'ipv4': {'instance': {'1': {'areas': {'0.0.0.0': {'area_id': '0.0.0.0', ...
49.2125
73
0.216916
180
3,937
4.511111
0.516667
0.017241
0.014778
0.009852
0.135468
0.068966
0.068966
0.068966
0.068966
0
0
0.068796
0.689865
3,937
79
74
49.835443
0.596233
0
0
0.194805
0
0
0.191105
0.02338
0
0
0
0
0
1
0
false
0.012987
0
0
0
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
c8ffacba13563fc63e94eff5bc851a3e548d81b6
4,566
py
Python
rain/cloud/system/system.py
SuPerCxyz/rain
578b6d125f535414d3ea3fcfee4015b70fed560c
[ "Apache-2.0" ]
2
2018-12-20T01:38:56.000Z
2018-12-29T14:49:36.000Z
rain/cloud/system/system.py
SuPerCxyz/rain
578b6d125f535414d3ea3fcfee4015b70fed560c
[ "Apache-2.0" ]
null
null
null
rain/cloud/system/system.py
SuPerCxyz/rain
578b6d125f535414d3ea3fcfee4015b70fed560c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- import json import platform import time from getdevinfo import getdevinfo import psutil from rain.common import rain_log from rain.common import utils from rain.common.utils import async_call logger = rain_log.logg(__name__) class SystemInfo(object): """system info...
33.328467
75
0.592641
537
4,566
4.724395
0.210428
0.039417
0.025621
0.01419
0.135199
0.067797
0.02838
0
0
0
0
0.023307
0.304643
4,566
136
76
33.573529
0.775748
0.091765
0
0.038462
0
0
0.116769
0.005141
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.211538
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
c8ffe69de767e55075d5f9e090d7f69a2c93dd80
7,517
py
Python
models.py
rudrasohan/Trust-Region-Policy-Optimization
bbaadf37aa3ea4ccc35907038eea4add9e5e050c
[ "MIT" ]
3
2019-11-16T15:40:14.000Z
2021-12-28T14:26:36.000Z
models.py
rudrasohan/Trust-Region-Policy-Optimization
bbaadf37aa3ea4ccc35907038eea4add9e5e050c
[ "MIT" ]
null
null
null
models.py
rudrasohan/Trust-Region-Policy-Optimization
bbaadf37aa3ea4ccc35907038eea4add9e5e050c
[ "MIT" ]
null
null
null
"""Model Definations for trpo.""" import gym import numpy as np import torch import time import scipy.optimize import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from distributions import DiagonalGaussian from helpers import get_flat_params, set_flat_params, get_flat_grads #from ...
33.261062
119
0.600905
947
7,517
4.543823
0.182682
0.032535
0.041831
0.027888
0.346967
0.318383
0.261678
0.231466
0.221241
0.221241
0
0.016339
0.275376
7,517
226
120
33.261062
0.773637
0.168285
0
0.295455
0
0
0.018916
0.00409
0
0
0
0
0
1
0.121212
false
0
0.075758
0
0.287879
0.037879
0
0
0
null
0
0
0
0
0
0
0
0
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
7400b5e2ffa5344609e346cb8a0ec6ea5d60b0b6
148
py
Python
sample_1/admin.py
JordanEC/django-rest-and-angular
571eb2a7d966c2b7f1f520a764420207387709cd
[ "MIT" ]
null
null
null
sample_1/admin.py
JordanEC/django-rest-and-angular
571eb2a7d966c2b7f1f520a764420207387709cd
[ "MIT" ]
null
null
null
sample_1/admin.py
JordanEC/django-rest-and-angular
571eb2a7d966c2b7f1f520a764420207387709cd
[ "MIT" ]
null
null
null
from django.contrib import admin from sample_1.models import * # Register your models here. admin.site.register(Author) admin.site.register(Book)
18.5
32
0.797297
22
148
5.318182
0.636364
0.153846
0.290598
0
0
0
0
0
0
0
0
0.007634
0.114865
148
7
33
21.142857
0.885496
0.175676
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
740167bc86931d3454e29781523554e25235165c
2,217
py
Python
irs_lqr/dynamical_system.py
lujieyang/irs_lqr
bc9cade6a3bb2fa2d76bdd5fe453030a7b28700f
[ "MIT" ]
6
2021-11-20T19:05:06.000Z
2022-01-31T00:10:41.000Z
irs_lqr/dynamical_system.py
lujieyang/irs_lqr
bc9cade6a3bb2fa2d76bdd5fe453030a7b28700f
[ "MIT" ]
10
2021-07-24T19:50:36.000Z
2021-11-20T19:06:40.000Z
irs_lqr/dynamical_system.py
lujieyang/irs_lqr
bc9cade6a3bb2fa2d76bdd5fe453030a7b28700f
[ "MIT" ]
1
2021-12-15T22:09:31.000Z
2021-12-15T22:09:31.000Z
class DynamicalSystem: def __init__(self): """ Base virtual dynamical systems class. Any dynamics as an input to the system must inherit from this class. TODO(terry-suh): Consider using ABC? """ self.h = 0 self.dim_x = 0 self.dim_u = 0 def dynam...
33.089552
76
0.57014
308
2,217
4.029221
0.308442
0.067687
0.096696
0.070911
0.521354
0.521354
0.482675
0.482675
0.375504
0.212732
0
0.003392
0.335138
2,217
66
77
33.590909
0.838535
0.590438
0
0.307692
0
0
0.15942
0
0
0
0
0.015152
0
1
0.384615
false
0
0
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
0
0
0
0
2
740438f708cbfe346a44823a28bc4994e0b1022b
196
py
Python
uuid1/models.py
charlesDavid009/Uuid
7553843c0112e7f0e248cd5692eccca72553e720
[ "MIT" ]
1
2021-05-24T18:52:53.000Z
2021-05-24T18:52:53.000Z
uuid1/models.py
charlesDavid009/Uuid
7553843c0112e7f0e248cd5692eccca72553e720
[ "MIT" ]
null
null
null
uuid1/models.py
charlesDavid009/Uuid
7553843c0112e7f0e248cd5692eccca72553e720
[ "MIT" ]
null
null
null
from django.db import models import uuid # Create your models here. class Uuid(models.Model): uuids = models.CharField(max_length=225) created = models.DateTimeField(auto_now_add=True)
19.6
53
0.760204
28
196
5.214286
0.785714
0
0
0
0
0
0
0
0
0
0
0.018072
0.153061
196
9
54
21.777778
0.861446
0.122449
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.4
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
74043e623f8ec052206750dba77f648adab74816
1,660
py
Python
comedy-org.py
qedpi/file-organizer
07bdc6fd8e752aae03078529dfefe4838f4f4c4e
[ "MIT" ]
2
2020-11-23T16:32:11.000Z
2021-05-14T00:35:16.000Z
comedy-org.py
qedpi/file-organizer
07bdc6fd8e752aae03078529dfefe4838f4f4c4e
[ "MIT" ]
null
null
null
comedy-org.py
qedpi/file-organizer
07bdc6fd8e752aae03078529dfefe4838f4f4c4e
[ "MIT" ]
null
null
null
import os from shutil import move, rmtree from itertools import chain from genres import genre_of, DOWNLOAD_DIR, DST_DIRS, VIDEO_EXTENSIONS print(genre_of) print(f'moving files from {DOWNLOAD_DIR}: \n' # f'with keywords: {COMEDY_TAGS} \n' # f'with extensions: {VIDEO_EXTENSIONS} \n' ) files_moved =...
37.727273
92
0.638554
246
1,660
4.130081
0.369919
0.047244
0.029528
0.029528
0.057087
0.057087
0.057087
0
0
0
0
0.004052
0.256627
1,660
44
93
37.727273
0.819287
0.280723
0
0.074074
0
0
0.085521
0
0
0
0
0.022727
0
1
0
false
0
0.148148
0
0.148148
0.185185
0
0
0
null
0
0
0
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
7405313149ad1d453f1faa1ff9ea0b0aec012d46
3,572
py
Python
keeper/v2api/projects.py
lsst-sqre/ltd-keeper
c658bcce726764e7416a8a386b418e83912b0f32
[ "Apache-2.0", "MIT" ]
5
2016-05-16T18:46:26.000Z
2019-07-08T15:16:41.000Z
keeper/v2api/projects.py
lsst-sqre/ltd-keeper
c658bcce726764e7416a8a386b418e83912b0f32
[ "Apache-2.0", "MIT" ]
46
2016-02-18T16:54:36.000Z
2022-03-25T19:43:45.000Z
keeper/v2api/projects.py
lsst-sqre/ltd-keeper
c658bcce726764e7416a8a386b418e83912b0f32
[ "Apache-2.0", "MIT" ]
4
2016-08-20T23:10:07.000Z
2022-03-25T19:52:09.000Z
"""Handlers for project-related APIs.""" from __future__ import annotations from typing import Dict, Tuple from flask import request from flask_accept import accept_fallback from keeper.auth import token_auth from keeper.logutils import log_route from keeper.models import Organization, Product, db from keeper.servi...
28.349206
77
0.676932
406
3,572
5.724138
0.226601
0.042599
0.024096
0.02926
0.562823
0.491394
0.477625
0.433735
0.39673
0.326162
0
0.007505
0.216685
3,572
125
78
28.576
0.823088
0.009518
0
0.417476
0
0
0.04983
0.015289
0
0
0
0
0
1
0.038835
false
0
0.126214
0
0.203884
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
7405685566287cf4e859fe85e98cb0c021c50b86
2,237
py
Python
plugins/markdown_extensions/katex.py
raabrp/rraabblog
a1d47ede918f4838ac3bbcff9ef4e7c67f851c32
[ "MIT" ]
null
null
null
plugins/markdown_extensions/katex.py
raabrp/rraabblog
a1d47ede918f4838ac3bbcff9ef4e7c67f851c32
[ "MIT" ]
null
null
null
plugins/markdown_extensions/katex.py
raabrp/rraabblog
a1d47ede918f4838ac3bbcff9ef4e7c67f851c32
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Allow server-side KaTeX rendering for Markdown through node.js The markdown extension adds regex patterns for `$` and `$$` in the source `.md` file, and applies KaTeX to the intermediate text with a `python-bond` call to node.js requires * node * npm * katex (npm install katex) * python-b...
24.053763
97
0.565042
252
2,237
4.924603
0.456349
0.028203
0.017728
0.022562
0
0
0
0
0
0
0
0.003041
0.265087
2,237
92
98
24.315217
0.751825
0.259723
0
0.095238
0
0.02381
0.150765
0.094683
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.214286
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
7407dcd338f0c898023c04aaa216c45c15fae02b
247
py
Python
1-Python-Programming-Basics (Sep 2020)/Course-Exercises-and-Exams/05_While-Loop/00.Book-Exercises-7.1-Complex-Loops-02-Numbers-N-to-1.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
1-Python-Programming-Basics (Sep 2020)/Course-Exercises-and-Exams/05_While-Loop/00.Book-Exercises-7.1-Complex-Loops-02-Numbers-N-to-1.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
1-Python-Programming-Basics (Sep 2020)/Course-Exercises-and-Exams/05_While-Loop/00.Book-Exercises-7.1-Complex-Loops-02-Numbers-N-to-1.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
# числата от N до 1 в обратен ред # Да се напише програма, която отпечатва числата от n до 1 в обратен ред (стъпка -1). # Например, ако n = 100, то резултатът ще е: 100, 99, 98, …, 3, 2, 1. n = int(input()) for i in range(n, 0, -1): print(i)
30.875
85
0.631579
51
247
3.117647
0.686275
0.113208
0.125786
0.150943
0.301887
0.301887
0.301887
0.301887
0
0
0
0.095238
0.234818
247
8
86
30.875
0.730159
0.740891
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7408452dfdbed6f56d0e2243de45d1e90b286cdf
1,490
py
Python
simpleclassroom/urls.py
cbetheridge/simpleclassroom
9e99262ffdb4efc0e27566855866dfc26244bf26
[ "MIT" ]
null
null
null
simpleclassroom/urls.py
cbetheridge/simpleclassroom
9e99262ffdb4efc0e27566855866dfc26244bf26
[ "MIT" ]
null
null
null
simpleclassroom/urls.py
cbetheridge/simpleclassroom
9e99262ffdb4efc0e27566855866dfc26244bf26
[ "MIT" ]
null
null
null
"""simpleclassroom URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') C...
42.571429
80
0.713423
228
1,490
4.574561
0.280702
0.053691
0.034516
0.023011
0.16395
0.16395
0.071908
0.071908
0
0
0
0.006178
0.130872
1,490
34
81
43.823529
0.799228
0.42953
0
0
0
0
0.297746
0
0
0
0
0
0
1
0
false
0
0.235294
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd9d087613da3991818c9538bda9aacfcb7b2302
714
py
Python
Mechanize/checkWords.py
rpvnwnkl/DailyWriter
7934d636219e46b9875f31e327bf52993e15e517
[ "MIT" ]
null
null
null
Mechanize/checkWords.py
rpvnwnkl/DailyWriter
7934d636219e46b9875f31e327bf52993e15e517
[ "MIT" ]
null
null
null
Mechanize/checkWords.py
rpvnwnkl/DailyWriter
7934d636219e46b9875f31e327bf52993e15e517
[ "MIT" ]
null
null
null
#!usr/bin/env python import sys, logging import re import mechanize logger = logging.getLogger('mechanize') logger.addHandler(logging.StreamHandler(sys.stdout)) logger.setLevel(logging.DEBUG) br = mechanize.Browser() br.set_debug_http(True) br.set_debug_responses(True) br.set_debug_redirects(True) br.open("https://...
23.032258
52
0.752101
105
714
5.028571
0.466667
0.028409
0.056818
0.05303
0.056818
0
0
0
0
0
0
0.01374
0.082633
714
30
53
23.8
0.792366
0.026611
0
0
0
0
0.189033
0.030303
0
0
0
0
0
0
null
null
0.125
0.125
null
null
0.291667
0
0
0
null
0
0
0
0
0
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
1
0
0
0
0
0
2
cd9ec9af338573f552a9119ee09d53bff7f7cebd
4,939
py
Python
simplereg/data_writer.py
gift-surg/SimpleReg
9d9a774f5b7823c2256844c9d0260395604fb396
[ "BSD-3-Clause" ]
18
2017-11-10T15:09:41.000Z
2021-01-12T07:48:46.000Z
simplereg/data_writer.py
gift-surg/SimpleReg
9d9a774f5b7823c2256844c9d0260395604fb396
[ "BSD-3-Clause" ]
null
null
null
simplereg/data_writer.py
gift-surg/SimpleReg
9d9a774f5b7823c2256844c9d0260395604fb396
[ "BSD-3-Clause" ]
3
2019-03-20T14:13:03.000Z
2020-01-15T01:32:51.000Z
# \file DataWriter.py # \brief Class to read data # # \author Michael Ebner (michael.ebner.14@ucl.ac.uk) # \date June 2018 import os import sys import numpy as np import nibabel as nib import SimpleITK as sitk import pysitk.python_helper as ph import pysitk.simple_itk_helper as sitkh from simplereg.definitions i...
40.154472
78
0.578255
519
4,939
5.246628
0.194605
0.052883
0.080793
0.046272
0.654793
0.565553
0.471172
0.38744
0.366875
0.271392
0
0.00559
0.348046
4,939
122
79
40.483607
0.840062
0.023284
0
0.46
0
0
0.110004
0.005396
0
0
0
0
0
1
0.04
false
0
0.11
0
0.16
0.01
0
0
0
null
0
0
0
0
0
0
0
0
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
cd9f005c2266883ac0727dd4f11b65c0cc61acbf
3,881
py
Python
configman/datetime_util.py
peterbe/configman
724d80b25a0ebbb2e75ad69e92a6611494cd68b4
[ "BSD-3-Clause" ]
null
null
null
configman/datetime_util.py
peterbe/configman
724d80b25a0ebbb2e75ad69e92a6611494cd68b4
[ "BSD-3-Clause" ]
null
null
null
configman/datetime_util.py
peterbe/configman
724d80b25a0ebbb2e75ad69e92a6611494cd68b4
[ "BSD-3-Clause" ]
null
null
null
# ***** BEGIN LICENSE BLOCK ***** # Version: MPL 1.1/GPL 2.0/LGPL 2.1 # # The contents of this file are subject to the Mozilla Public License Version # 1.1 (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.mozilla.org/MPL/ # # Softwa...
34.651786
79
0.67328
597
3,881
4.331658
0.291457
0.017401
0.019335
0.021268
0.306265
0.228925
0.210364
0.208817
0.152359
0.152359
0
0.016322
0.226488
3,881
111
80
34.963964
0.845103
0.551662
0
0.097561
0
0
0.044758
0
0
0
0
0
0
1
0.195122
false
0
0.02439
0.04878
0.463415
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
cda50a569978706c9bec0db5233be29def4df294
2,952
py
Python
src/tests/voluntario/test_api.py
Akijunior/Atados
255c9c9137e48aa82fdea63f9d6d65a3720c3f92
[ "MIT" ]
null
null
null
src/tests/voluntario/test_api.py
Akijunior/Atados
255c9c9137e48aa82fdea63f9d6d65a3720c3f92
[ "MIT" ]
null
null
null
src/tests/voluntario/test_api.py
Akijunior/Atados
255c9c9137e48aa82fdea63f9d6d65a3720c3f92
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.contrib.auth.models import User from rest_framework.authtoken.models import Token from rest_framework.test import APITestCase, APIClient from rest_framework.views import status from voluntario.models import Voluntario class BaseViewTest(APITestCase): de...
42.782609
87
0.686992
341
2,952
5.718475
0.258065
0.082051
0.064615
0.089231
0.649744
0.637436
0.604615
0.576923
0.576923
0.576923
0
0.019076
0.200881
2,952
68
88
43.411765
0.807546
0
0
0.470588
0
0
0.110095
0.02439
0
0
0
0
0.117647
1
0.137255
false
0.078431
0.117647
0
0.27451
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
cda678a982b6a913bc586a56ae657d42e29745b5
508
py
Python
main.py
ki-ljl/Scaffold-Federated-Learning
12e04217df3af2c326ea90fef6cff47beaaec485
[ "MIT" ]
9
2022-03-02T13:58:29.000Z
2022-03-31T06:45:40.000Z
main.py
ki-ljl/Scaffold-Federated-Learning
12e04217df3af2c326ea90fef6cff47beaaec485
[ "MIT" ]
null
null
null
main.py
ki-ljl/Scaffold-Federated-Learning
12e04217df3af2c326ea90fef6cff47beaaec485
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- """ @Time:2022/05/05 12:57 @Author:KI @File:main.py @Motto:Hungry And Humble """ from data_process import clients_wind from server import Scaffold def main(): K, C, E, B, r = 10, 0.5, 30, 50, 10 input_dim = 28 lr = 0.08 options = {'K': K, 'C': C, 'E': E, 'B': B, 'r': r, 'clients...
20.32
79
0.582677
79
508
3.556962
0.582278
0.085409
0
0
0
0
0
0
0
0
0
0.071979
0.234252
508
24
80
21.166667
0.650386
0.185039
0
0
0
0
0.076355
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cda77d54e2daf57e2851f4a131c3a29a3329d0d5
464
py
Python
reddit/files/setup_cassandra.py
mitodl/reddit-formula
68c597f5391b8bf960de3d701225de2fc45d04e4
[ "BSD-3-Clause" ]
null
null
null
reddit/files/setup_cassandra.py
mitodl/reddit-formula
68c597f5391b8bf960de3d701225de2fc45d04e4
[ "BSD-3-Clause" ]
4
2017-09-29T18:34:06.000Z
2018-05-23T19:07:17.000Z
reddit/files/setup_cassandra.py
mitodl/reddit-formula
68c597f5391b8bf960de3d701225de2fc45d04e4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import pycassa sys = pycassa.SystemManager("cassandra.service.consul:9160") if "reddit" not in sys.list_keyspaces(): print "creating keyspace 'reddit'" sys.create_keyspace("reddit", "SimpleStrategy", {"replication_factor": "3"}) print "done" if "permacache" not in sys.get_keyspace_c...
30.933333
80
0.726293
57
464
5.77193
0.561404
0.030395
0.048632
0
0
0
0
0
0
0
0
0.012469
0.135776
464
14
81
33.142857
0.80798
0.043103
0
0.2
0
0
0.395034
0.065463
0
0
0
0
0
0
null
null
0
0.1
null
null
0.4
0
0
0
null
0
0
0
0
0
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
cda9eb07b967369dac4f17bb21af05cd80acf296
1,472
py
Python
Data Analysis with Pandas Intermediate/Pandas Internals_ Series-145.py
vipmunot/Data-Analysis-using-Python
34586d8cbbc336508c4a7a68abe14944f1096252
[ "MIT" ]
null
null
null
Data Analysis with Pandas Intermediate/Pandas Internals_ Series-145.py
vipmunot/Data-Analysis-using-Python
34586d8cbbc336508c4a7a68abe14944f1096252
[ "MIT" ]
null
null
null
Data Analysis with Pandas Intermediate/Pandas Internals_ Series-145.py
vipmunot/Data-Analysis-using-Python
34586d8cbbc336508c4a7a68abe14944f1096252
[ "MIT" ]
null
null
null
## 1. Data Structures ## import pandas as pd fandango = pd.read_csv('fandango_score_comparison.csv') print(fandango.head(2)) ## 2. Integer Indexes ## fandango = pd.read_csv('fandango_score_comparison.csv') series_film = fandango['FILM'] series_rt = fandango['RottenTomatoes'] print(series_film[:5]) print(series_rt[:5...
25.37931
81
0.754076
203
1,472
5.231527
0.364532
0.135593
0.026365
0.032015
0.12806
0.080979
0.080979
0.080979
0
0
0
0.029163
0.11481
1,472
58
82
25.37931
0.785879
0.16712
0
0.068966
0
0
0.123737
0.048822
0
0
0
0
0
1
0
false
0
0.068966
0
0.068966
0.206897
0
0
0
null
0
0
0
0
0
0
0
0
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
cdad55a9ce2a49755ae4b294972c1f2e61c115f9
425
py
Python
problem/01000~09999/01058/1058.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
1
2019-04-19T16:37:44.000Z
2019-04-19T16:37:44.000Z
problem/01000~09999/01058/1058.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
1
2019-04-20T11:42:44.000Z
2019-04-20T11:42:44.000Z
problem/01000~09999/01058/1058.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
3
2019-04-19T16:37:47.000Z
2021-10-25T00:45:00.000Z
n=int(input()) link=[[100]*n for i in range(n)] for i in range(n): x=input() for j in range(n): if x[j]=='Y': link[i][j]=1 for i in range(n): for j in range(n): for k in range(n): if link[j][i]+link[i][k]<link[j][k]: link[j][k]=link[j][i]+link[i][k] link[k][j]=link[j][k] ans=0 for ...
20.238095
42
0.52
101
425
2.188119
0.217822
0.253394
0.289593
0.199095
0.647059
0.488688
0.144796
0
0
0
0
0.024465
0.230588
425
21
43
20.238095
0.651376
0
0
0.315789
0
0
0.002347
0
0
0
0
0
0
1
0
false
0
0
0
0
0.052632
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
0
0
3
cdae861a30ba2bb3bd941147a704995ddbb3e7b8
4,894
py
Python
pytest_ipynb/plugin.py
kevingerman/pytest-ipynb
04b5fed4f280983f64254b01e3b24b7733e99224
[ "BSD-3-Clause" ]
104
2015-01-21T16:10:46.000Z
2021-05-31T06:53:35.000Z
pytest_ipynb/plugin.py
kevingerman/pytest-ipynb
04b5fed4f280983f64254b01e3b24b7733e99224
[ "BSD-3-Clause" ]
26
2015-04-09T04:12:48.000Z
2018-12-22T18:41:33.000Z
pytest_ipynb/plugin.py
kevingerman/pytest-ipynb
04b5fed4f280983f64254b01e3b24b7733e99224
[ "BSD-3-Clause" ]
21
2015-02-06T10:07:28.000Z
2021-04-19T21:31:48.000Z
import pytest import os,sys import warnings try: from exceptions import Exception, TypeError, ImportError except: pass from runipy.notebook_runner import NotebookRunner wrapped_stdin = sys.stdin sys.stdin = sys.__stdin__ sys.stdin = wrapped_stdin try: from Queue import Empty except: from queue import ...
32.845638
122
0.599918
556
4,894
5.160072
0.307554
0.055769
0.05298
0.025096
0.177762
0.076333
0.056117
0.043221
0.043221
0.043221
0
0.003452
0.289743
4,894
148
123
33.067568
0.821922
0.079281
0
0.166667
0
0
0.065792
0
0.009259
0
0
0
0
1
0.083333
false
0.037037
0.12037
0
0.296296
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
cdaf411884a90226584098d678014eeaecc826d5
90
py
Python
test.py
stpwin/fb-groub-sentiment
0c0c860bf7b405e7cc4a7fac5a337b751dddb910
[ "bzip2-1.0.6" ]
null
null
null
test.py
stpwin/fb-groub-sentiment
0c0c860bf7b405e7cc4a7fac5a337b751dddb910
[ "bzip2-1.0.6" ]
7
2019-08-25T01:53:14.000Z
2022-03-11T23:57:08.000Z
test.py
stpwin/fb-groub-sentiment
0c0c860bf7b405e7cc4a7fac5a337b751dddb910
[ "bzip2-1.0.6" ]
null
null
null
items = {"a": True, "b": False} b = [v for k, v in items.items() if v == True] print(b)
15
46
0.533333
18
90
2.666667
0.611111
0
0
0
0
0
0
0
0
0
0
0
0.233333
90
5
47
18
0.695652
0
0
0
0
0
0.022222
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
cdb4d928fe81a97440ce0c56dea2317a5512f228
2,258
py
Python
setup.py
vbrinnel/ztflc
b1ccab67e5e0e385d8406f179c1ad0c346afa129
[ "Apache-2.0" ]
1
2020-04-07T14:36:49.000Z
2020-04-07T14:36:49.000Z
setup.py
vbrinnel/ztflc
b1ccab67e5e0e385d8406f179c1ad0c346afa129
[ "Apache-2.0" ]
3
2020-01-16T18:25:46.000Z
2021-05-19T20:51:52.000Z
setup.py
vbrinnel/ztflc
b1ccab67e5e0e385d8406f179c1ad0c346afa129
[ "Apache-2.0" ]
1
2021-03-31T19:47:33.000Z
2021-03-31T19:47:33.000Z
#! /usr/bin/env python # DESCRIPTION = "ztflc: Force photometry lc fitter" LONG_DESCRIPTION = """ Force photometry lc fitter""" DISTNAME = "ztflc" AUTHOR = "Mickael Rigault" MAINTAINER = "Mickael Rigault" MAINTAINER_EMAIL = "m.rigault@ipnl.in2p3.fr" URL = "https://github.com/MickaelRigault/ztflc/" LICENSE = "BSD (3-c...
26.880952
68
0.637733
234
2,258
5.987179
0.504274
0.074946
0.024268
0.032834
0.105639
0.051392
0
0
0
0
0
0.007186
0.260407
2,258
83
69
27.204819
0.831737
0.11116
0
0.098361
0
0
0.2695
0.0225
0
0
0
0
0
1
0.016393
false
0
0.114754
0
0.147541
0.016393
0
0
0
null
0
0
0
0
0
0
0
0
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
cdb4fa7248d3772a040373832306d9f403d71783
311
py
Python
ibm1.py
thovo/ibm1
df00eca56827e294642d503972f29ab3e139caf0
[ "MIT" ]
null
null
null
ibm1.py
thovo/ibm1
df00eca56827e294642d503972f29ab3e139caf0
[ "MIT" ]
null
null
null
ibm1.py
thovo/ibm1
df00eca56827e294642d503972f29ab3e139caf0
[ "MIT" ]
null
null
null
#!/usr/bin/python __author__ = 'thovo' import sys def ibm1(): #Check for arguments args_length = len(sys.argv) print "The number of arguments: "+str(args_length) i = 0 while i < args_length: print "The argument number " + str(i) + " is " + str(sys.argv[i]) i += 1 ibm1()
18.294118
73
0.59164
45
311
3.933333
0.6
0.169492
0
0
0
0
0
0
0
0
0
0.017621
0.270096
311
17
74
18.294118
0.762115
0.11254
0
0
0
0
0.196364
0
0
0
0
0
0
0
null
null
0
0.1
null
null
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
cdb6e8d6090040ad0dc31239d89e99153192bd44
1,927
py
Python
wordfinds/raw.py
GrandMoff100/WordFinds
4b56532f399178e5f2b18b246084644061c5bfc2
[ "MIT" ]
2
2021-05-22T19:19:56.000Z
2021-08-16T11:34:11.000Z
wordfinds/raw.py
GrandMoff100/WordFinds
4b56532f399178e5f2b18b246084644061c5bfc2
[ "MIT" ]
null
null
null
wordfinds/raw.py
GrandMoff100/WordFinds
4b56532f399178e5f2b18b246084644061c5bfc2
[ "MIT" ]
1
2021-11-09T13:55:43.000Z
2021-11-09T13:55:43.000Z
import random from .utils import filler from .array import RawWordFindArray, WordArray class RawWordFind(RawWordFindArray): def __init__(self, size, wordbank): super().__init__(size, wordbank) for word in wordbank.words: if not self.valid_word_length(word): raise ValueE...
32.661017
120
0.511676
249
1,927
3.891566
0.273092
0.093911
0.049536
0.055728
0.21259
0.155831
0.155831
0.084623
0.084623
0.084623
0
0
0.359107
1,927
58
121
33.224138
0.784615
0
0
0.085106
0
0.021277
0.088266
0
0
0
0
0
0
1
0.085106
false
0.042553
0.06383
0.021277
0.234043
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
cdb7047c417fa314c5e02129e1672265cc3318ba
2,969
py
Python
src/neon/frontend/aeon_shim.py
MUTTERSCHIFF/ngraph-neon
762e8ea639cdc671311ee4929bd1ee8cdf83e8bb
[ "Apache-2.0" ]
13
2018-03-17T00:27:18.000Z
2020-06-18T01:36:34.000Z
src/neon/frontend/aeon_shim.py
MUTTERSCHIFF/ngraph-neon
762e8ea639cdc671311ee4929bd1ee8cdf83e8bb
[ "Apache-2.0" ]
20
2018-03-17T14:49:04.000Z
2018-04-19T17:47:38.000Z
src/neon/frontend/aeon_shim.py
NervanaSystems/ngraph-neon
8988ab90ee81c8b219ea5c374702e56d7f383302
[ "Apache-2.0" ]
5
2018-03-23T22:47:17.000Z
2020-10-21T16:15:02.000Z
# ****************************************************************************** # Copyright 2017-2018 Intel Corporation # # 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.apa...
35.345238
88
0.583025
337
2,969
4.967359
0.462908
0.066906
0.015532
0.019116
0
0
0
0
0
0
0
0.005942
0.263052
2,969
83
89
35.771084
0.759141
0.241495
0
0.036364
0
0
0.127415
0
0
0
0
0
0
1
0.109091
false
0
0.145455
0.018182
0.327273
0.018182
0
0
0
null
0
0
0
0
0
0
0
0
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