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
7b788c4e537ccfe9b9a19c03459ac9310b0314ff
662
py
Python
setup.py
yuji-koseki/django-home-urls
ef42ad08101f83c2aff941e00abd50e60c57ac51
[ "MIT" ]
null
null
null
setup.py
yuji-koseki/django-home-urls
ef42ad08101f83c2aff941e00abd50e60c57ac51
[ "MIT" ]
null
null
null
setup.py
yuji-koseki/django-home-urls
ef42ad08101f83c2aff941e00abd50e60c57ac51
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="django_home_urls", version="0.1.0", author="Yuji Koseki", author_email="pxquuqjm0k62new7q4@gmail.com", description="Django home urlconf.", long_description=long_description, long_d...
28.782609
58
0.663142
74
662
5.797297
0.689189
0.13986
0.065268
0.13986
0
0
0
0
0
0
0
0.016886
0.194864
662
22
59
30.090909
0.787993
0
0
0
0
0
0.416918
0.042296
0
0
0
0
0
1
0
false
0
0.05
0
0.05
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
7b792f428ffd2ed8a9d5df151157eca526120574
3,553
py
Python
lib/DataFileIO.py
cttsai1985/Kaggle-Home-Credit-Default-Risk
a378d5fcee1895a6229c740779f64b286532de8c
[ "Apache-2.0" ]
null
null
null
lib/DataFileIO.py
cttsai1985/Kaggle-Home-Credit-Default-Risk
a378d5fcee1895a6229c740779f64b286532de8c
[ "Apache-2.0" ]
null
null
null
lib/DataFileIO.py
cttsai1985/Kaggle-Home-Credit-Default-Risk
a378d5fcee1895a6229c740779f64b286532de8c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ This script provide a class to read and save files Created on Sat July 21 2018 @author: cttsai """ import pandas as pd from Utility import CheckFileExist from LibConfigs import logger, hdf5_compress_option, fast_hdf5_compress_option class DataFileIO(object): ""...
33.205607
109
0.587672
439
3,553
4.621868
0.275626
0.043371
0.044357
0.035485
0.280434
0.200099
0.101528
0.101528
0.072942
0.046328
0
0.007498
0.2868
3,553
106
110
33.518868
0.793212
0.090909
0
0.073529
0
0
0.074495
0
0
0
0
0
0
1
0.132353
false
0
0.044118
0.044118
0.338235
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
7b7fac5e786fffa0981a48a959c7b50a97194205
885
py
Python
tests/testSevenKing.py
yooyoo2004/RoomAI
7f4d655581a03ded801f6c6d7d18f9fff47aa6f5
[ "MIT" ]
null
null
null
tests/testSevenKing.py
yooyoo2004/RoomAI
7f4d655581a03ded801f6c6d7d18f9fff47aa6f5
[ "MIT" ]
null
null
null
tests/testSevenKing.py
yooyoo2004/RoomAI
7f4d655581a03ded801f6c6d7d18f9fff47aa6f5
[ "MIT" ]
1
2021-08-15T16:19:01.000Z
2021-08-15T16:19:01.000Z
#!/bin/python from roomai.sevenking import SevenKingEnv from roomai.sevenking import SevenKingAction import unittest class testSevenKing(unittest.TestCase): def show_hand_card(self,hand_card): str = "" for c in hand_card: str += "," + c.key print (str) def testEnv(self): ...
30.517241
120
0.662147
110
885
5.109091
0.427273
0.099644
0.142349
0.106762
0.241993
0
0
0
0
0
0
0.00578
0.218079
885
28
121
31.607143
0.806358
0.013559
0
0
0
0
0.050633
0
0
0
0
0
0.05
1
0.1
false
0
0.15
0
0.3
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
0
0
0
0
0
0
0
0
1
0
7b817580d6dc21506efb8434e6050e6f651bf968
1,776
py
Python
pyamazonlandsat/product.py
eamanu/pyamazonlandsat
cf16c5acc8fa44a89a8fcd5276e4a46421e3aa3e
[ "MIT" ]
null
null
null
pyamazonlandsat/product.py
eamanu/pyamazonlandsat
cf16c5acc8fa44a89a8fcd5276e4a46421e3aa3e
[ "MIT" ]
null
null
null
pyamazonlandsat/product.py
eamanu/pyamazonlandsat
cf16c5acc8fa44a89a8fcd5276e4a46421e3aa3e
[ "MIT" ]
null
null
null
import attr import os import tarfile from pyamazonlandsat.utils import get_path_row_from_name from pyamazonlandsat.downloader import Downloader @attr.s class Product: """Class that represent a Product :param name: name of the Product. type name: str. :param output_path: path where save the downloaded...
31.714286
84
0.614865
231
1,776
4.554113
0.359307
0.057034
0.034221
0.026616
0.034221
0
0
0
0
0
0
0.003182
0.29223
1,776
55
85
32.290909
0.833731
0.309122
0
0
0
0.034483
0.057194
0
0
0
0
0
0
1
0.103448
false
0
0.172414
0
0.448276
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7b83240c1ea862333830ef3e4b3423db43db8c92
5,352
py
Python
segmentation.py
IgnacioPardo/RoadTrip
6cdded860a67bb99cc1fc81e85cd8c09eaf46431
[ "MIT" ]
2
2021-04-13T18:54:08.000Z
2021-09-21T23:08:08.000Z
segmentation.py
IgnacioPardo/RoadTrip
6cdded860a67bb99cc1fc81e85cd8c09eaf46431
[ "MIT" ]
null
null
null
segmentation.py
IgnacioPardo/RoadTrip
6cdded860a67bb99cc1fc81e85cd8c09eaf46431
[ "MIT" ]
null
null
null
from __future__ import division from skimage.segmentation import slic, mark_boundaries from skimage.util import img_as_float from skimage import io import numpy as np import matplotlib.pyplot as plt import os from cv2 import boundingRect #from argparse import ArgumentParser img_width = 50 img_height = 50 img_depth = ...
30.409091
112
0.734865
816
5,352
4.533088
0.216912
0.025953
0.016221
0.021898
0.203839
0.115707
0.103271
0.088132
0.018383
0.018383
0
0.008966
0.145553
5,352
176
113
30.409091
0.799913
0.056241
0
0.120301
0
0
0.070141
0.010105
0
0
0
0
0
1
0.06015
false
0
0.06015
0.007519
0.18797
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7b842e0e690c82590e6a6533bd9a6cab6937e48f
1,797
py
Python
benten/code/workflowgraph.py
stain/benten
40440d36025e0b27b8dfa6752aa76b15e7abc0d1
[ "Apache-2.0" ]
null
null
null
benten/code/workflowgraph.py
stain/benten
40440d36025e0b27b8dfa6752aa76b15e7abc0d1
[ "Apache-2.0" ]
null
null
null
benten/code/workflowgraph.py
stain/benten
40440d36025e0b27b8dfa6752aa76b15e7abc0d1
[ "Apache-2.0" ]
null
null
null
"""Parse CWL and create a JSON file describing the workflow. This dictionary is directly suitable for display by vis.js, but can be parsed for any other purpose.""" # Copyright (c) 2019 Seven Bridges. See LICENSE from ..cwl.lib import ListOrMap def cwl_graph(cwl: dict): graph = { "nodes": [], ...
29.95
97
0.590428
258
1,797
3.94186
0.321705
0.031465
0.039331
0.070796
0.33825
0.290069
0.229105
0.13766
0.13766
0.13766
0
0.003658
0.239288
1,797
59
98
30.457627
0.740307
0.114636
0
0.054054
0
0
0.087697
0
0
0
0
0
0
1
0.108108
false
0
0.027027
0
0.189189
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
7b87f62b10bc328cd7870120d84ededf89b99acb
21
py
Python
data/studio21_generated/introductory/4853/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/introductory/4853/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/introductory/4853/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
def double_char(s):
10.5
19
0.714286
4
21
3.5
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
21
2
20
10.5
0.777778
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
4
7b882a00a99da3e2e17e41e9f577ca3003e8abd3
2,561
py
Python
app/core/models.py
fxavier/abt-epts
021a8140db32afba106a7a9e122b98452d88c225
[ "MIT" ]
null
null
null
app/core/models.py
fxavier/abt-epts
021a8140db32afba106a7a9e122b98452d88c225
[ "MIT" ]
null
null
null
app/core/models.py
fxavier/abt-epts
021a8140db32afba106a7a9e122b98452d88c225
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, \ PermissionsMixin from django.conf import settings class UserManager(BaseUserManager): def create_user(self, email, password=None, **extra_fields): """Creates a...
30.488095
76
0.673565
295
2,561
5.694915
0.359322
0.042857
0.075
0.1
0.258333
0.133929
0.07619
0
0
0
0
0.012072
0.223741
2,561
84
77
30.488095
0.832998
0.158141
0
0.26
0
0
0.054374
0
0
0
0
0.011905
0
1
0.12
false
0.08
0.06
0.04
0.76
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
1
0
0
1
0
0
3
7b8b21db4d1b5bb95da77aaaeac80ad479fa1496
477
py
Python
reviews/migrations/0006_review_no_login.py
moshthepitt/answers
9febf465a18c41e7a48130e987a8fd64ceae3358
[ "MIT" ]
6
2015-07-28T09:36:39.000Z
2020-08-11T17:15:18.000Z
reviews/migrations/0006_review_no_login.py
Swifilaboroka/answers
9febf465a18c41e7a48130e987a8fd64ceae3358
[ "MIT" ]
8
2015-12-17T22:56:16.000Z
2022-01-13T00:43:16.000Z
reviews/migrations/0006_review_no_login.py
Swifilaboroka/answers
9febf465a18c41e7a48130e987a8fd64ceae3358
[ "MIT" ]
3
2017-07-15T12:13:03.000Z
2022-02-02T10:04:10.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('reviews', '0005_auto_20160203_1247'), ] operations = [ migrations.AddField( model_name='review', nam...
23.85
125
0.628931
51
477
5.647059
0.784314
0.041667
0.076389
0
0
0
0
0
0
0
0
0.047753
0.253669
477
19
126
25.105263
0.761236
0.044025
0
0
0
0
0.187225
0.050661
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
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
7b8c7e8a4741c68754a4c124370afe960c3a82b1
2,191
py
Python
qbism/kraus.py
heyredhat/qbism
192333b725495c6b66582f7a7b0b4c18a2f392a4
[ "Apache-2.0" ]
2
2021-01-27T18:39:12.000Z
2021-02-01T06:57:02.000Z
qbism/kraus.py
heyredhat/qbism
192333b725495c6b66582f7a7b0b4c18a2f392a4
[ "Apache-2.0" ]
null
null
null
qbism/kraus.py
heyredhat/qbism
192333b725495c6b66582f7a7b0b4c18a2f392a4
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: 04kraus.ipynb (unless otherwise specified). __all__ = ['apply_kraus', 'partial_trace_kraus', 'povm_map'] # Cell import numpy as np import qutip as qt # Cell def apply_kraus(dm, kraus): r""" Applies a Kraus map to a density matrix $\rho$. The Kraus map consists in some nu...
42.960784
146
0.64126
380
2,191
3.615789
0.336842
0.029112
0.018195
0.011645
0.034935
0
0
0
0
0
0
0.003432
0.202191
2,191
51
147
42.960784
0.782609
0.546326
0
0
1
0
0.041081
0
0
0
0
0
0
1
0.136364
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7b8d3bfd9dda43412dd61ee3a956e43a5295cf1f
78
py
Python
Python Book/12. Complex Loops/05_sequence_2k_plus_one/sequence_2k_plus_one.py
alexanderivanov2/Softuni-Software-Engineering
8adb96f445f1da17dbb6eded9e9594319154c7e7
[ "MIT" ]
null
null
null
Python Book/12. Complex Loops/05_sequence_2k_plus_one/sequence_2k_plus_one.py
alexanderivanov2/Softuni-Software-Engineering
8adb96f445f1da17dbb6eded9e9594319154c7e7
[ "MIT" ]
null
null
null
Python Book/12. Complex Loops/05_sequence_2k_plus_one/sequence_2k_plus_one.py
alexanderivanov2/Softuni-Software-Engineering
8adb96f445f1da17dbb6eded9e9594319154c7e7
[ "MIT" ]
null
null
null
n = int(input()) num = 1 while num <= n: print(num) num = num * 2 + 1
13
21
0.487179
14
78
2.714286
0.571429
0.315789
0
0
0
0
0
0
0
0
0
0.057692
0.333333
78
6
21
13
0.673077
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
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
7b8dd1f4d57db9568b64c88454ba16b6a105aa77
4,129
py
Python
run_all_benchmark_functions.py
ntienvu/KnowingOptimumValue_BO
42225cb9d61c1225bd757fe9dd02834a0bc7a3e6
[ "MIT" ]
14
2020-06-30T00:36:14.000Z
2022-01-11T13:15:53.000Z
run_all_benchmark_functions.py
ntienvu/KnowingOptimumValue_BO
42225cb9d61c1225bd757fe9dd02834a0bc7a3e6
[ "MIT" ]
null
null
null
run_all_benchmark_functions.py
ntienvu/KnowingOptimumValue_BO
42225cb9d61c1225bd757fe9dd02834a0bc7a3e6
[ "MIT" ]
2
2020-10-17T15:27:06.000Z
2021-02-27T10:34:04.000Z
import sys sys.path.insert(0,'..') sys.path.insert(0,'../..') from bayes_opt import BayesOpt,BayesOpt_KnownOptimumValue import numpy as np #from bayes_opt import auxiliary_functions from bayes_opt import functions from bayes_opt import utilities import warnings #from bayes_opt import acquisition_maximization import...
25.80625
125
0.654154
598
4,129
4.369565
0.272575
0.057405
0.012629
0.013777
0.287026
0.233065
0.220054
0.190968
0.169537
0.140069
0
0.019469
0.178978
4,129
159
126
25.968553
0.751327
0.2589
0
0.164557
0
0
0.085979
0.018188
0
0
0
0
0
1
0
false
0
0.113924
0
0.113924
0.050633
0
0
0
null
0
0
0
0
0
0
0
0
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
7b8e2e97334a2cce55aad103330d605ea89ea8e4
2,258
py
Python
coursesical/ical.py
cdfmlr/coursesical
d027db60dca6bcf543a74d3a6dd635fd8d1ee5ba
[ "MIT" ]
2
2021-03-19T02:23:24.000Z
2021-12-22T15:01:46.000Z
coursesical/ical.py
cdfmlr/coursesical
d027db60dca6bcf543a74d3a6dd635fd8d1ee5ba
[ "MIT" ]
null
null
null
coursesical/ical.py
cdfmlr/coursesical
d027db60dca6bcf543a74d3a6dd635fd8d1ee5ba
[ "MIT" ]
null
null
null
import icalendar import uuid from datetime import datetime import pytz cst = pytz.timezone('Asia/Shanghai') class Calendar(icalendar.Calendar): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.add('prodid', '-//CDFMLR//coursesical//CN') self.add('VERSION', '2.0...
31.361111
95
0.569088
260
2,258
4.846154
0.292308
0.083333
0.019048
0.030159
0.311905
0.196825
0.111111
0.111111
0
0
0
0.008413
0.263065
2,258
71
96
31.802817
0.748798
0.124446
0
0.088889
0
0
0.154629
0.038657
0
0
0
0
0
1
0.111111
false
0
0.088889
0
0.288889
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
7b8f6c6edc977e548344a0694966296691f0f034
816
py
Python
minesweeper/test/message_tests.py
newnone/Multiplayer-Minesweeper
054adc4a14a710dfdd479791b9d1d40df061211c
[ "MIT" ]
null
null
null
minesweeper/test/message_tests.py
newnone/Multiplayer-Minesweeper
054adc4a14a710dfdd479791b9d1d40df061211c
[ "MIT" ]
null
null
null
minesweeper/test/message_tests.py
newnone/Multiplayer-Minesweeper
054adc4a14a710dfdd479791b9d1d40df061211c
[ "MIT" ]
null
null
null
#!/usr/bin/python3.2 import unittest from minesweeper.message import * class UTSMessageTest(unittest.TestCase): def test_parse_infer_type(self): """ Instantiates one object for every concrete subclass of UTSMessage using the type-inferring factory method parse_infer_type(), checking that...
27.2
98
0.61152
91
816
5.263736
0.648352
0.06263
0.087683
0
0
0
0
0
0
0
0
0.014085
0.303922
816
29
99
28.137931
0.829225
0.252451
0
0
0
0
0.077193
0
0
0
0
0
0.066667
1
0.066667
false
0
0.133333
0
0.266667
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
7b917e46393f05ca669d8af2e30bf77af89da6ab
1,640
py
Python
setup.py
RunnerPyzza/RunnerPyzza
47f46339ab510635120613ac683f0be462f54ca4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
setup.py
RunnerPyzza/RunnerPyzza
47f46339ab510635120613ac683f0be462f54ca4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
setup.py
RunnerPyzza/RunnerPyzza
47f46339ab510635120613ac683f0be462f54ca4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from distutils.core import setup from distutils.command.build_py import build_py import os import shutil import stat from RunnerPyzza import __version__ class runner_build_py(build_py): def runner_install(self): print "RunnerPyzza basic configuration ..." try: os.mkdir("/etc/runnerpyzz...
33.469388
140
0.646951
176
1,640
5.903409
0.465909
0.047161
0.025024
0.065448
0.046198
0
0
0
0
0
0
0.011024
0.22561
1,640
48
141
34.166667
0.807087
0.029268
0
0.219512
0
0
0.401009
0.132409
0
0
0
0
0
0
null
null
0.073171
0.146341
null
null
0.04878
0
0
0
null
0
0
0
0
0
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
7b92c51e95df7d865e1969f7a3d0f8febc341130
1,142
py
Python
recursion/0043_string_multiplication.py
MartinMa28/Algorithms_review
3f2297038c00f5a560941360ca702e6868530f34
[ "MIT" ]
null
null
null
recursion/0043_string_multiplication.py
MartinMa28/Algorithms_review
3f2297038c00f5a560941360ca702e6868530f34
[ "MIT" ]
null
null
null
recursion/0043_string_multiplication.py
MartinMa28/Algorithms_review
3f2297038c00f5a560941360ca702e6868530f34
[ "MIT" ]
null
null
null
class Solution: def _equalize_length(self, *args) -> tuple: max_len = max(map(len, args)) return tuple(map(lambda x: x.zfill(max_len), args)) def _add(self, *args) -> str: return str(sum(map(int, args))) def _sub(self, num1: str, num2: str) -> str: return str(int(num1) -...
27.853659
135
0.565674
178
1,142
3.342697
0.224719
0.05042
0.060504
0.067227
0.255462
0.255462
0.067227
0.067227
0
0
0
0.069091
0.277583
1,142
41
136
27.853659
0.652121
0.021016
0
0
0
0
0.014324
0
0
0
0
0
0
1
0.166667
false
0
0
0.083333
0.416667
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7b941b7e926180fee64edecc4bb32c18fe4b75b2
220
py
Python
galaxy/exceptions.py
jmchilton/pulsar
783b90cf0bce893a11c347fcaf6778b98e0bb062
[ "Apache-2.0" ]
1
2016-08-17T06:36:03.000Z
2016-08-17T06:36:03.000Z
galaxy/exceptions.py
jmchilton/pulsar
783b90cf0bce893a11c347fcaf6778b98e0bb062
[ "Apache-2.0" ]
null
null
null
galaxy/exceptions.py
jmchilton/pulsar
783b90cf0bce893a11c347fcaf6778b98e0bb062
[ "Apache-2.0" ]
null
null
null
""" Here for compat. with objectstore. """ class ObjectNotFound(Exception): """ Accessed object was not found """ pass class ObjectInvalid(Exception): """ Accessed object store ID is invalid """ pass
15.714286
47
0.663636
24
220
6.083333
0.791667
0.232877
0.315068
0
0
0
0
0
0
0
0
0
0.218182
220
13
48
16.923077
0.848837
0.463636
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
7b95c23e30524cab22ee7e5bbccde48a49bfd895
9,432
py
Python
fluid/node.py
quantmind/aio-fluid
e75f91646ac9a0c9ca5679bda12319c208166d64
[ "BSD-3-Clause" ]
null
null
null
fluid/node.py
quantmind/aio-fluid
e75f91646ac9a0c9ca5679bda12319c208166d64
[ "BSD-3-Clause" ]
21
2021-08-13T06:11:55.000Z
2022-03-18T06:13:05.000Z
fluid/node.py
quantmind/aio-fluid
e75f91646ac9a0c9ca5679bda12319c208166d64
[ "BSD-3-Clause" ]
null
null
null
import asyncio import inspect import logging import os import random import time import uuid from abc import ABC, abstractmethod from functools import cached_property, wraps from logging import Logger from typing import Any, Callable, Dict, List, Optional, Tuple from aiohttp.client import ClientConnectionError, Client...
28.155224
86
0.603584
1,099
9,432
5.033667
0.189263
0.031815
0.013919
0.023861
0.253073
0.199747
0.161244
0.131236
0.131236
0.131236
0
0.002246
0.291985
9,432
334
87
28.239521
0.826146
0.024067
0
0.344681
0
0
0.037085
0
0
0
0
0
0.004255
1
0.114894
false
0.025532
0.06383
0.034043
0.302128
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
7b967b35c19a8e35142f9fb160d57122b85d9056
860
py
Python
python/testcase.py
AurySystem/SYAML
7bc6e6cae023bfb8c3f2f15f0ce9d3618f879593
[ "MIT" ]
null
null
null
python/testcase.py
AurySystem/SYAML
7bc6e6cae023bfb8c3f2f15f0ce9d3618f879593
[ "MIT" ]
null
null
null
python/testcase.py
AurySystem/SYAML
7bc6e6cae023bfb8c3f2f15f0ce9d3618f879593
[ "MIT" ]
null
null
null
import syaml testcase = """--- key: key: f key2: l nest: inner: g nest2: nestted: 3 inner2: s outnest: 3 ha: g je: r --- key: value a_list: - itema - listlist: - itemitem - itemb - key1: bweh key2: bweh key3: bweh key4: bweh - innerList: - innerItem - indict:...
14.576271
37
0.522093
115
860
3.895652
0.678261
0.026786
0
0
0
0
0
0
0
0
0
0.041667
0.330233
860
59
38
14.576271
0.736111
0.05
0
0
0
0
0.685049
0.033088
0
0
0
0
0
1
0.017544
false
0
0.017544
0
0.070175
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7b98ab75092f0df028f96b2d93df9ca2c2ab75d6
478
py
Python
lib/csvtools.py
mtyates/scrapers
1fe55314b1235a971a436a8a17f05cea22b40f49
[ "Apache-2.0" ]
null
null
null
lib/csvtools.py
mtyates/scrapers
1fe55314b1235a971a436a8a17f05cea22b40f49
[ "Apache-2.0" ]
null
null
null
lib/csvtools.py
mtyates/scrapers
1fe55314b1235a971a436a8a17f05cea22b40f49
[ "Apache-2.0" ]
1
2021-12-20T16:55:50.000Z
2021-12-20T16:55:50.000Z
#!/usr/bin/env python import os import sys def dict_to_csv(comps, filename): ## print column headings then all attributes for each company f = open(filename, 'wb') columns = [x for x in comps[comps.keys()[0]].keys() if x != 'name'] columns = ['name'] + columns f.write(','.join(columns) +...
22.761905
71
0.546025
67
478
3.865672
0.58209
0.069498
0.100386
0
0
0
0
0
0
0
0
0.00289
0.276151
478
20
72
23.9
0.745665
0.165272
0
0
0
0
0.045455
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7b9a53fe727088aa66ec964d3fe2b9eeb158dba7
543
py
Python
dashboard/migrations/0016_auto_20200222_2336.py
BDALab/GENEActiv-sleep-analyses-system
f0458de041153f2dee240a53571149827de00a2e
[ "MIT" ]
null
null
null
dashboard/migrations/0016_auto_20200222_2336.py
BDALab/GENEActiv-sleep-analyses-system
f0458de041153f2dee240a53571149827de00a2e
[ "MIT" ]
null
null
null
dashboard/migrations/0016_auto_20200222_2336.py
BDALab/GENEActiv-sleep-analyses-system
f0458de041153f2dee240a53571149827de00a2e
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2020-02-22 22:36 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('dashboard', '0015_auto_20200222_2200'), ] operations = [ migrations.RemoveField( model_name='subject', name='handedness', ...
20.884615
49
0.546961
49
543
5.938776
0.612245
0.216495
0.268041
0.309278
0.42268
0.42268
0
0
0
0
0
0.086592
0.3407
543
25
50
21.72
0.726257
0.082873
0
0.473684
1
0
0.15121
0.046371
0
0
0
0
0
1
0
false
0
0.052632
0
0.210526
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
7b9bed79cdfa84b20637330716a10344fca07de2
799
py
Python
examples.py/Basics/Shape/LoadDisplayShape.py
timgates42/processing.py
78a237922c2a928b83f4ad579dbf8d32c0099890
[ "Apache-2.0" ]
1,224
2015-01-01T22:09:23.000Z
2022-03-29T19:43:56.000Z
examples.py/Basics/Shape/LoadDisplayShape.py
timgates42/processing.py
78a237922c2a928b83f4ad579dbf8d32c0099890
[ "Apache-2.0" ]
253
2015-01-14T03:45:51.000Z
2022-02-08T01:18:19.000Z
examples.py/Basics/Shape/LoadDisplayShape.py
timgates42/processing.py
78a237922c2a928b83f4ad579dbf8d32c0099890
[ "Apache-2.0" ]
225
2015-01-13T18:38:33.000Z
2022-03-30T20:27:39.000Z
""" Load and Display a Shape. Illustration by George Brower. (Rewritten in Python by Jonathan Feinberg.) The loadShape() command is used to read simple SVG (Scalable Vector Graphics) files into a Processing sketch. This library was specifically tested under SVG files created from Adobe Illustrator. For now, we c...
33.291667
84
0.700876
125
799
4.48
0.712
0.025
0.057143
0
0
0
0
0
0
0
0
0.065287
0.214018
799
23
85
34.73913
0.826433
0.729662
0
0
0
0
0.040816
0
0
0
0
0
0
1
0.222222
false
0
0
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
7b9c4e6a952c20a965aae8106ca3b0f977bd503c
4,015
py
Python
deidentify/tokenizer/tokenizer_ons.py
bbieniek/deidentify
7021bf0540e0a7f931e65544d12a2909c79a14eb
[ "MIT" ]
64
2020-01-16T16:20:47.000Z
2022-03-31T12:59:19.000Z
deidentify/tokenizer/tokenizer_ons.py
HabibMrad/deidentify
d8960a74c852a71b29a6ee0fd6a3cf7f946a5f60
[ "MIT" ]
14
2020-01-28T08:47:06.000Z
2022-02-12T08:32:12.000Z
deidentify/tokenizer/tokenizer_ons.py
HabibMrad/deidentify
d8960a74c852a71b29a6ee0fd6a3cf7f946a5f60
[ "MIT" ]
12
2020-01-21T07:54:04.000Z
2022-02-19T06:42:53.000Z
""" Custom tokenization routines for the 'ons' corpus. Special care is taken to metadata tokens such as === Report: 12345 === that were inserted to distinguish between multiple documents of a client. They will be properly handled during the tokenization and sentence segmentation stage. """ import re import spacy from...
31.124031
109
0.596762
494
4,015
4.757085
0.380567
0.068085
0.020426
0.012766
0.090213
0.070638
0.045106
0.045106
0
0
0
0.009944
0.248568
4,015
128
110
31.367188
0.768976
0.395268
0
0.058824
0
0
0.117868
0.021658
0
0
0
0
0
1
0.044118
false
0
0.088235
0.014706
0.191176
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
7b9c889768e3496393e2ee54739cb4b6ccbaab96
1,219
py
Python
systemtest/quality/utils/models.py
IBM-Power-SystemTest/systemtest
a29e6d54500ca13f554073cc66a4a2d403ea5b14
[ "BSD-3-Clause" ]
1
2022-03-09T18:07:11.000Z
2022-03-09T18:07:11.000Z
systemtest/quality/utils/models.py
IBM-Power-SystemTest/systemtest
a29e6d54500ca13f554073cc66a4a2d403ea5b14
[ "BSD-3-Clause" ]
null
null
null
systemtest/quality/utils/models.py
IBM-Power-SystemTest/systemtest
a29e6d54500ca13f554073cc66a4a2d403ea5b14
[ "BSD-3-Clause" ]
null
null
null
# Django from django.conf import Settings, settings # APPs from systemtest.quality import forms as quality_forms, models as quality_models from systemtest.utils.db2 import Database def get_quality_status(status_name: str) -> quality_models.QualityStatus: """ Gets a specific QualityStatus by exact name ...
23.442308
79
0.646432
134
1,219
5.708955
0.485075
0.05098
0.067974
0
0
0
0
0
0
0
0
0.002247
0.269893
1,219
51
80
23.901961
0.857303
0.185398
0
0
0
0
0.084926
0
0
0
0
0
0
1
0.08
false
0
0.12
0
0.24
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7b9c9c8690ed96b25a9028c69ebb2b7c65845147
1,849
py
Python
cibopath/scraper.py
hackebrot/cibopath
7b341cb92942a0ed70e21c9e5f23d281a625e30c
[ "BSD-3-Clause" ]
11
2016-02-08T11:45:26.000Z
2017-05-19T16:07:31.000Z
cibopath/scraper.py
hackebrot/cibopath
7b341cb92942a0ed70e21c9e5f23d281a625e30c
[ "BSD-3-Clause" ]
5
2016-02-11T22:11:54.000Z
2016-06-09T20:54:07.000Z
cibopath/scraper.py
hackebrot/cibopath
7b341cb92942a0ed70e21c9e5f23d281a625e30c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import asyncio import logging import aiohttp from cibopath import readme_parser, github_api from cibopath.templates import Template logger = logging.getLogger('cibopath') class CibopathError(Exception): """Custom error class for the app.""" class CookiecutterReadmeError(CibopathError...
29.822581
79
0.70146
206
1,849
6.15534
0.38835
0.047319
0.040221
0.039432
0.047319
0
0
0
0
0
0
0.002056
0.210925
1,849
61
80
30.311475
0.867032
0.102217
0
0
0
0
0.073646
0
0
0
0
0
0
1
0.052632
false
0
0.131579
0
0.289474
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
7b9ce56039cc41fcf712d566d9141353c7327dc4
5,400
py
Python
using_force_sense_selector_switch/A-B_force_sense_switching/ForceSenseSwitchSample.py
sjdemartini/SpikeSafePythonSamples
60dc9cd175577e9601c0709ac471c72c5a666f1b
[ "MIT" ]
4
2020-06-11T00:11:17.000Z
2022-03-17T22:58:13.000Z
using_force_sense_selector_switch/A-B_force_sense_switching/ForceSenseSwitchSample.py
sjdemartini/SpikeSafePythonSamples
60dc9cd175577e9601c0709ac471c72c5a666f1b
[ "MIT" ]
null
null
null
using_force_sense_selector_switch/A-B_force_sense_switching/ForceSenseSwitchSample.py
sjdemartini/SpikeSafePythonSamples
60dc9cd175577e9601c0709ac471c72c5a666f1b
[ "MIT" ]
2
2021-12-20T20:03:05.000Z
2022-01-12T18:51:54.000Z
# Goal: # Demonstrate the A/B switch functionality of the SpikeSafe PSMU while operating in DC mode # # Expectation: # Channel 1 will run in DC mode with the switch set to Primary. # Afterward the Switch be set to Auxiliary mode, in which another source may operate connected to the SpikeSafe # After the Auxiliary s...
46.551724
223
0.696111
766
5,400
4.776762
0.275457
0.061492
0.046187
0.060399
0.398743
0.353102
0.327685
0.29161
0.26182
0.26182
0
0.013936
0.242593
5,400
116
224
46.551724
0.880685
0.415556
0
0.433333
0
0.016667
0.204684
0.024382
0
0
0
0
0
1
0
false
0
0.15
0
0.15
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
7b9d392017b7f0eb08e175d175e38cee08ff4854
1,886
py
Python
tools/perf/contrib/cluster_telemetry/screenshot.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/perf/contrib/cluster_telemetry/screenshot.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/perf/contrib/cluster_telemetry/screenshot.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import logging import os import py_utils import time from telemetry.page import legacy_page_test from telemetry.util import image_util class Screenshot(leg...
33.087719
80
0.698303
240
1,886
5.308333
0.458333
0.056515
0.071429
0.026688
0
0
0
0
0
0
0
0.00466
0.203606
1,886
56
81
33.678571
0.843542
0.180276
0
0.052632
0
0
0.16873
0.025407
0
0
0
0.017857
0
1
0.052632
false
0
0.157895
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
7b9dada36fd7bad56b1a0092534a61252ce1c05e
2,474
py
Python
tripleoclient/tests/v1/overcloud_delete/test_overcloud_delete.py
mail2nsrajesh/python-tripleoclient
6646b2fc4a37b2a52c1cf7d7edb42c8007e905d8
[ "Apache-2.0" ]
null
null
null
tripleoclient/tests/v1/overcloud_delete/test_overcloud_delete.py
mail2nsrajesh/python-tripleoclient
6646b2fc4a37b2a52c1cf7d7edb42c8007e905d8
[ "Apache-2.0" ]
null
null
null
tripleoclient/tests/v1/overcloud_delete/test_overcloud_delete.py
mail2nsrajesh/python-tripleoclient
6646b2fc4a37b2a52c1cf7d7edb42c8007e905d8
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
36.382353
79
0.719887
305
2,474
5.639344
0.383607
0.034884
0.046512
0.05814
0.272093
0.272093
0.226744
0.182558
0.182558
0.105814
0
0.010076
0.197656
2,474
67
80
36.925373
0.856423
0.229992
0
0.263158
0
0
0.113347
0.060911
0
0
0
0
0.131579
1
0.105263
false
0
0.078947
0
0.210526
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
7b9f976e658245e57765789e6e80ca7112711034
8,621
py
Python
bird_view/models/agent_IAs_RL.py
magh24/carla_RL_IAs
a38fb353bd84330c6c20b9cc8e824d7bbb02cfe5
[ "MIT" ]
39
2020-03-17T10:12:49.000Z
2022-03-12T14:18:45.000Z
bird_view/models/agent_IAs_RL.py
marintoro/LearningByCheating
a13b331ee8d69071570c97b35f1348758d658ee5
[ "MIT" ]
null
null
null
bird_view/models/agent_IAs_RL.py
marintoro/LearningByCheating
a13b331ee8d69071570c97b35f1348758d658ee5
[ "MIT" ]
16
2020-06-11T20:15:57.000Z
2022-03-13T01:55:16.000Z
import numpy as np import torch from collections import deque, namedtuple import cv2 import os import carla from .model_supervised import Model_Segmentation_Traffic_Light_Supervised from .model_RL import DQN, Orders class AgentIAsRL: def __init__(self, args=None, **kwargs): super().__init__(**kwargs) ...
37.482609
95
0.594363
1,057
8,621
4.598865
0.197729
0.05863
0.022629
0.023041
0.311047
0.225057
0.134129
0.099568
0.054721
0.021806
0
0.01723
0.313305
8,621
229
96
37.646288
0.803885
0.045586
0
0.091398
0
0
0.034814
0
0
0
0
0
0
1
0.021505
false
0
0.043011
0
0.102151
0.010753
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7b9fd2f8f9e605ca6783d2a3d4f02dcb90eb1482
162
py
Python
Python/1079.py
Marcelalopes/Questoes-URI
e13894c1bcbcb252ed814d5b5e930d05c7a8494f
[ "MIT" ]
5
2020-10-12T16:21:31.000Z
2021-12-15T20:27:22.000Z
Python/1079.py
Marcelalopes/Questoes-URI
e13894c1bcbcb252ed814d5b5e930d05c7a8494f
[ "MIT" ]
null
null
null
Python/1079.py
Marcelalopes/Questoes-URI
e13894c1bcbcb252ed814d5b5e930d05c7a8494f
[ "MIT" ]
5
2019-06-21T04:26:14.000Z
2021-05-01T14:15:44.000Z
n = int(input()) for i in range(1 , n + 1 ): x = input().split() a,b,c = x print('{:.1f}'.format((float(a) * 2 + float(b) * 3 + float(c) * 5) / 10))
23.142857
77
0.45679
30
162
2.466667
0.7
0
0
0
0
0
0
0
0
0
0
0.067797
0.271605
162
6
78
27
0.559322
0
0
0
0
0
0.037037
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
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
7b9fd98a85b6fed6891c0ba799c31065628711f4
10,547
py
Python
bin_testing/diff_fuzzing.py
KristianMika/PA193-Bech32m
6625c3883dd4ee4db40afc0b9eae1c945544a87b
[ "MIT" ]
null
null
null
bin_testing/diff_fuzzing.py
KristianMika/PA193-Bech32m
6625c3883dd4ee4db40afc0b9eae1c945544a87b
[ "MIT" ]
null
null
null
bin_testing/diff_fuzzing.py
KristianMika/PA193-Bech32m
6625c3883dd4ee4db40afc0b9eae1c945544a87b
[ "MIT" ]
null
null
null
import base64 import binascii import datetime import os import subprocess import random import sys BECH_SYMBOLS = "qpzry9x8gf2tvdw0s3jn54khce6mua7l" OUR_BINARY = None LIBBECH32ENC_BINARY = None LIBBECH32DEC_BINARY = None NODE_REF = "node . " # region Encoding def node_encode(hrp, data_hex): str_in = NODE_REF +...
35.156667
114
0.561297
1,446
10,547
3.928077
0.123098
0.051761
0.046831
0.032394
0.585739
0.553873
0.516373
0.485035
0.426585
0.369366
0
0.02085
0.267849
10,547
299
115
35.274247
0.714711
0.012326
0
0.409091
0
0.008264
0.231316
0.028434
0
0
0
0
0
1
0.066116
false
0
0.028926
0.020661
0.161157
0.14876
0
0
0
null
0
0
0
0
0
0
0
0
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
7ba085171ad82d0c573dcc7bfc7f5421e63a5a9f
3,166
py
Python
ldt/utils/usaf/bcsd_preproc/forecast_task_07.py
andrewsoong/LISF
20e3b00a72b6b348c567d0703550f290881679b4
[ "Apache-2.0" ]
67
2018-11-13T21:40:54.000Z
2022-02-23T08:11:56.000Z
ldt/utils/usaf/bcsd_preproc/forecast_task_07.py
andrewsoong/LISF
20e3b00a72b6b348c567d0703550f290881679b4
[ "Apache-2.0" ]
679
2018-11-13T20:10:29.000Z
2022-03-30T19:55:25.000Z
ldt/utils/usaf/bcsd_preproc/forecast_task_07.py
andrewsoong/LISF
20e3b00a72b6b348c567d0703550f290881679b4
[ "Apache-2.0" ]
119
2018-11-08T15:53:35.000Z
2022-03-28T10:16:01.000Z
#!/usr/bin/env python3 """ #------------------------------------------------------------------------------ # # SCRIPT: forecast_task_07.py # # PURPOSE: Combine all non-precip 6-hourly files into one file and copy BCSD # precip files in to the same directory Based on FORECAST_TASK_07.sh. # # REVISION HISTORY: # 24 Oct 2...
26.830508
95
0.622236
419
3,166
4.515513
0.357995
0.06871
0.021142
0.031712
0.154334
0.136364
0.088795
0.070825
0.070825
0.070825
0
0.017537
0.207517
3,166
117
96
27.059829
0.736548
0.253948
0
0.169492
0
0
0.334053
0.091066
0
0
0
0
0
1
0.067797
false
0
0.067797
0
0.169492
0.20339
0
0
0
null
0
0
0
0
0
0
0
0
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
7ba2716e5d28bfa4af27d8788deae9d221d9561f
271
py
Python
1_estrutura_sequencial/10_celsius_fahrenheit.py
cecilmalone/lista_de_exercicios_pybr
6d7c4aeddf8d1b1d839ad05ef5b5813a8fe611b5
[ "MIT" ]
null
null
null
1_estrutura_sequencial/10_celsius_fahrenheit.py
cecilmalone/lista_de_exercicios_pybr
6d7c4aeddf8d1b1d839ad05ef5b5813a8fe611b5
[ "MIT" ]
null
null
null
1_estrutura_sequencial/10_celsius_fahrenheit.py
cecilmalone/lista_de_exercicios_pybr
6d7c4aeddf8d1b1d839ad05ef5b5813a8fe611b5
[ "MIT" ]
null
null
null
""" 10. Faça um Programa que peça a temperatura em graus Celsius, transforme e mostre em graus Farenheit. """ celsius = float(input('Informe o valor em Celsius (ºC): ')) fahrenheit = (celsius * (9/5)) + 32 print('{} ºC é igual a {:.1f} ºF'.format(celsius, fahrenheit))
30.111111
101
0.682657
41
271
4.512195
0.756098
0.075676
0
0
0
0
0
0
0
0
0
0.030973
0.166052
271
8
102
33.875
0.787611
0.372694
0
0
0
0
0.358025
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
7ba27d2ca0843358d969fed10afe5cbbd1851036
12,178
py
Python
model/modules/capsules.py
lidq92/pytorch-dynamic-routing-between-capsules
4388cd36193348cbb10035008360330e67acdd41
[ "MIT" ]
10
2018-09-17T02:14:34.000Z
2021-06-17T12:16:35.000Z
model/modules/capsules.py
lidq92/pytorch-dynamic-routing-between-capsules
4388cd36193348cbb10035008360330e67acdd41
[ "MIT" ]
null
null
null
model/modules/capsules.py
lidq92/pytorch-dynamic-routing-between-capsules
4388cd36193348cbb10035008360330e67acdd41
[ "MIT" ]
2
2019-08-06T20:40:02.000Z
2020-01-02T08:24:39.000Z
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from torch.distributions import Normal def squash(s, dim=-1, eps=1e-8): """ "Squashing" non-linearity that shrunks short vectors to almost zero length and long vectors to a length slightly below 1 v_j = ||s_j||...
36.029586
172
0.579323
1,842
12,178
3.667752
0.140065
0.020722
0.017318
0.017318
0.322232
0.276643
0.225281
0.19331
0.143132
0.124334
0
0.023848
0.28379
12,178
337
173
36.136499
0.750745
0.227377
0
0.255102
0
0
0.007387
0
0
0
0
0
0.005102
1
0.071429
false
0
0.02551
0.005102
0.168367
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
7ba31e643aa2124a524e4368c26dcf7ed0147d91
16,807
py
Python
ci/test_marathon_lb_dcos_e2e.py
vivint-smarthome/marathon-lb
d8dd02a1889d3db6e3e7fefa62ff178b3ab72ce9
[ "Apache-2.0" ]
511
2015-10-17T09:28:28.000Z
2022-02-20T21:58:56.000Z
ci/test_marathon_lb_dcos_e2e.py
vivint-smarthome/marathon-lb
d8dd02a1889d3db6e3e7fefa62ff178b3ab72ce9
[ "Apache-2.0" ]
575
2015-10-09T11:54:09.000Z
2021-11-22T20:50:19.000Z
ci/test_marathon_lb_dcos_e2e.py
vivint-smarthome/marathon-lb
d8dd02a1889d3db6e3e7fefa62ff178b3ab72ce9
[ "Apache-2.0" ]
411
2015-10-29T13:41:45.000Z
2022-02-11T09:27:50.000Z
#!python3 import contextlib import json import logging import os from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import serialization from cryptography.hazmat.primitives.asymmetric import rsa from dcos_e2e import cluster from dcos_e2e import node from dcos_test_utils impo...
32.571705
76
0.609091
1,939
16,807
5.017019
0.167612
0.023643
0.014803
0.020868
0.366571
0.275185
0.203845
0.153783
0.120888
0.067845
0
0.007462
0.290355
16,807
515
77
32.634951
0.808166
0.032903
0
0.221932
0
0.002611
0.078122
0.013924
0
0
0
0
0.010444
1
0.109661
false
0.002611
0.046997
0.023499
0.276762
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
7ba7975d420153a385e3680b17a15d19e06af3c9
308
py
Python
day1.py
danmana/adventofcode2017
6f80cd7c2382453b6e9d577975c2f02a024095c5
[ "MIT" ]
null
null
null
day1.py
danmana/adventofcode2017
6f80cd7c2382453b6e9d577975c2f02a024095c5
[ "MIT" ]
null
null
null
day1.py
danmana/adventofcode2017
6f80cd7c2382453b6e9d577975c2f02a024095c5
[ "MIT" ]
null
null
null
def sumOf(s, offset): sum = 0 n = len(s) for i in range(0, len(s)): if s[i] == s[(i + offset) % n]: sum += int(s[i]) return sum file = open("./input/input1.txt", "r") for s in file: s = s.strip() print('Part 1: ', sumOf(s, 1)) print('Part 2: ', sumOf(s, int(len(s)/2))) file.close()
14
43
0.519481
59
308
2.711864
0.457627
0.1125
0
0
0
0
0
0
0
0
0
0.029915
0.24026
308
22
44
14
0.653846
0
0
0
0
0
0.114007
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.153846
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7ba983a2c839be1dfa3a88ffa4c32747f568686e
2,123
py
Python
tests/test_inflate.py
FilipKlaesson/cops
67d2e5dd4534b3f3eec95b6cfda9d4c9c1746ef0
[ "BSD-3-Clause" ]
null
null
null
tests/test_inflate.py
FilipKlaesson/cops
67d2e5dd4534b3f3eec95b6cfda9d4c9c1746ef0
[ "BSD-3-Clause" ]
null
null
null
tests/test_inflate.py
FilipKlaesson/cops
67d2e5dd4534b3f3eec95b6cfda9d4c9c1746ef0
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from cops.graph import Graph from cops.clustering import ClusterProblem, ClusterStructure, inflate_agent_clusters def test_activationinflate1(): G = Graph() G.add_connectivity_path([0, 1]) G.add_connectivity_path([0, 2]) agent_positions = {0: 0, 1: 1, 2: 2} G.init_agents(agent...
31.686567
84
0.646726
323
2,123
4.077399
0.179567
0.109339
0.182232
0.242976
0.823083
0.791192
0.786636
0.757783
0.53303
0.422172
0
0.055681
0.162506
2,123
66
85
32.166667
0.685039
0
0
0.391304
0
0
0.028262
0
0
0
0
0
0.347826
1
0.043478
false
0
0.065217
0
0.108696
0
0
0
0
null
0
1
1
1
1
1
1
0
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
6
7bab917bc22f4ebc30925ed7bbdf5a597c5e9ff4
3,243
py
Python
tools/STCG/STCG.py
ambertide/SASVM
ee699ec9b585ad0fccb0b70e11dde1b225ac56c1
[ "MIT" ]
null
null
null
tools/STCG/STCG.py
ambertide/SASVM
ee699ec9b585ad0fccb0b70e11dde1b225ac56c1
[ "MIT" ]
7
2019-12-27T20:59:12.000Z
2020-01-08T22:53:42.000Z
tools/STCG/STCG.py
ambertide/SASVM
ee699ec9b585ad0fccb0b70e11dde1b225ac56c1
[ "MIT" ]
null
null
null
import csv from sys import argv from os import getcwd def generate_memory_list_view(expected_memory) -> str: """ Convert expected memory's bytestring to a list of Cells (in string) :param expected_memory: "A00023" :return: [Cell("A0"), Cell("00"), Cell("23")] """ list_view = "[" for i in ra...
36.438202
114
0.662041
418
3,243
4.854067
0.277512
0.103499
0.025136
0.021686
0.178413
0.128142
0.092656
0.092656
0.092656
0
0
0.015767
0.2177
3,243
89
115
36.438202
0.783997
0.109775
0
0
1
0
0.398164
0.165549
0
0
0
0
0.03125
1
0.0625
false
0
0.140625
0
0.234375
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7bad82b4e2d7cbdb41d0bbaab31ed7d1164ed27e
108
py
Python
Crash Course Python, 2nd Edition/Chapter 3, Introducing List/YourOwnList.py
EdgarCastillo101/Crash-Course-Python-2nd-edition
484c9096076c0ba69b1b9d78c6c974064fc1eda3
[ "MIT" ]
null
null
null
Crash Course Python, 2nd Edition/Chapter 3, Introducing List/YourOwnList.py
EdgarCastillo101/Crash-Course-Python-2nd-edition
484c9096076c0ba69b1b9d78c6c974064fc1eda3
[ "MIT" ]
null
null
null
Crash Course Python, 2nd Edition/Chapter 3, Introducing List/YourOwnList.py
EdgarCastillo101/Crash-Course-Python-2nd-edition
484c9096076c0ba69b1b9d78c6c974064fc1eda3
[ "MIT" ]
null
null
null
car = ['volvo', 'toyota', 'BMW', 'Yes?'] message = f"I would like to own a {car[1].title()}" print(message)
27
51
0.601852
18
108
3.611111
0.888889
0
0
0
0
0
0
0
0
0
0
0.01087
0.148148
108
4
52
27
0.695652
0
0
0
0
0
0.513761
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
7baf6ff631178bc7ddca808d29592a1384d2ce35
10,677
py
Python
stanCode_projects/my_drawing/my_drawing.py
ShihYesWei/stanCode-projects
69104b7be3d8c3fbd34935c1d4e15e40961e4556
[ "MIT" ]
null
null
null
stanCode_projects/my_drawing/my_drawing.py
ShihYesWei/stanCode-projects
69104b7be3d8c3fbd34935c1d4e15e40961e4556
[ "MIT" ]
null
null
null
stanCode_projects/my_drawing/my_drawing.py
ShihYesWei/stanCode-projects
69104b7be3d8c3fbd34935c1d4e15e40961e4556
[ "MIT" ]
null
null
null
""" File: my_drawing Author name: Alan Chen ---------------------- This program will draw a recently famous picture of Gian(技安), one of the main characters in doraemon(哆啦A夢). This is a picture that originally Gian was scared by something. Here, I reassign the things that scared him is the Illuminati symbol with a strin...
24.156109
114
0.579189
1,576
10,677
3.790609
0.163706
0.042183
0.060763
0.035152
0.471543
0.40241
0.380984
0.376967
0.376967
0.376967
0
0.112341
0.28051
10,677
441
115
24.210884
0.665322
0.046642
0
0.433735
0
0
0.064249
0
0
0
0
0
0
1
0.003012
false
0
0.006024
0
0.009036
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
7bb1307068ac9567a6b6b9039165f859f8bd8998
127
py
Python
tests/handlers/testhandlers/not_a_handler.py
bcurnow/magicband-reader
d8afa80648abc8954abd9c3cab8f6f6b9cb260ec
[ "Apache-2.0" ]
5
2021-01-12T02:53:07.000Z
2022-03-02T17:58:18.000Z
tests/handlers/testhandlers/not_a_handler.py
bcurnow/magicband-reader
d8afa80648abc8954abd9c3cab8f6f6b9cb260ec
[ "Apache-2.0" ]
null
null
null
tests/handlers/testhandlers/not_a_handler.py
bcurnow/magicband-reader
d8afa80648abc8954abd9c3cab8f6f6b9cb260ec
[ "Apache-2.0" ]
null
null
null
""" This module doesn't provide a register method and should be skipped. This ensures that the error handling logic works. """
63.5
126
0.76378
20
127
4.85
0.95
0
0
0
0
0
0
0
0
0
0
0
0.165354
127
1
127
127
0.915094
0.929134
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
1
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
7bb15b935b3d0af4caae284ba8b64031d24bf414
3,196
py
Python
ciri/modules/reddit.py
AmarnathCJD/Cirilla-Userbot
a580f2d3442ab7ebc4497aee7e381e6e220dbf93
[ "MIT" ]
null
null
null
ciri/modules/reddit.py
AmarnathCJD/Cirilla-Userbot
a580f2d3442ab7ebc4497aee7e381e6e220dbf93
[ "MIT" ]
null
null
null
ciri/modules/reddit.py
AmarnathCJD/Cirilla-Userbot
a580f2d3442ab7ebc4497aee7e381e6e220dbf93
[ "MIT" ]
2
2022-01-01T06:58:10.000Z
2022-01-12T15:59:38.000Z
import json import os import subprocess import requests from bs4 import BeautifulSoup from ciri import HelpStr from ciri.utils import ciri_cmd, eor @ciri_cmd(pattern="red(?:dit)? (.*)") async def reddit(e): url = e.pattern_match.group(1) if not url: return await e.edit("`No url provided?`") if n...
30.730769
129
0.54005
438
3,196
3.803653
0.303653
0.046819
0.033013
0.042017
0.309124
0.251501
0.236495
0.162065
0.162065
0.162065
0
0.034026
0.291927
3,196
103
130
31.029126
0.702165
0
0
0.2
0
0.011111
0.231227
0.017209
0
0
0
0
0
1
0.033333
false
0
0.077778
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7bb4c8f4351e98128f6ae2e0b66016892643437c
2,343
py
Python
.ipynb_checkpoints/visuals-checkpoint.py
Serenitea/DSND-Capstone-LoL
2a29132b5e513f9dde1b2afadbc9f28b00ae952d
[ "CNRI-Python" ]
null
null
null
.ipynb_checkpoints/visuals-checkpoint.py
Serenitea/DSND-Capstone-LoL
2a29132b5e513f9dde1b2afadbc9f28b00ae952d
[ "CNRI-Python" ]
null
null
null
.ipynb_checkpoints/visuals-checkpoint.py
Serenitea/DSND-Capstone-LoL
2a29132b5e513f9dde1b2afadbc9f28b00ae952d
[ "CNRI-Python" ]
null
null
null
import requests, json import numpy as np import importlib import pandas as pd import os import seaborn as sns import matplotlib.pyplot as plt %matplotlib inline import pdb import warnings warnings.filterwarnings('ignore') def plot_barh(s_to_plot, title = '', xlabel = '', ylabel = '', color_palette = 'YlGnBu', pre_u...
34.455882
82
0.600512
318
2,343
4.264151
0.396226
0.013274
0.030973
0.026549
0
0
0
0
0
0
0
0.006799
0.309432
2,343
68
83
34.455882
0.831273
0.314981
0
0
0
0
0.030934
0
0
0
0
0
0
0
null
null
0
0.209302
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7bb571ec75fa6c41fe74464726a90fe46a7374f0
4,373
py
Python
components/roode/__init__.py
mgernhard/Roode
50727e0f46d2bfc73559eb5fc73984ca87acb174
[ "Unlicense" ]
null
null
null
components/roode/__init__.py
mgernhard/Roode
50727e0f46d2bfc73559eb5fc73984ca87acb174
[ "Unlicense" ]
null
null
null
components/roode/__init__.py
mgernhard/Roode
50727e0f46d2bfc73559eb5fc73984ca87acb174
[ "Unlicense" ]
null
null
null
from re import I import esphome.codegen as cg import esphome.config_validation as cv from esphome.components import sensor from esphome.const import CONF_ID, STATE_CLASS_MEASUREMENT, UNIT_EMPTY, UNIT_METER # DEPENDENCIES = ["i2c"] AUTO_LOAD = ["sensor", "binary_sensor", "text_sensor"] MULTI_CONF = True CONF_ROODE_ID ...
35.266129
121
0.69426
586
4,373
4.860068
0.204778
0.03441
0.049157
0.031952
0.38132
0.314607
0.298455
0.238764
0.210674
0.210674
0
0.014702
0.191173
4,373
123
122
35.552846
0.7905
0.005031
0
0.272727
0
0
0.226259
0.03817
0
0
0.00092
0
0
1
0.018182
false
0
0.045455
0
0.063636
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
7bb63dc88642b89c018c0dffd26e55f7b04e4fc6
7,767
py
Python
GUI/mainUI.py
nipunsampath/Folder-Maker
e52ace87a08f477e6c105a0e14f85b7886a71f8c
[ "MIT" ]
2
2019-04-18T14:37:05.000Z
2020-10-25T02:47:26.000Z
GUI/mainUI.py
nipunsampath/Folder-Maker
e52ace87a08f477e6c105a0e14f85b7886a71f8c
[ "MIT" ]
null
null
null
GUI/mainUI.py
nipunsampath/Folder-Maker
e52ace87a08f477e6c105a0e14f85b7886a71f8c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'D:\Projects\Python\Folder Maker\GUI\main.ui' # # Created by: PyQt5 UI code generator 5.12.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(s...
55.085106
135
0.709927
815
7,767
6.70184
0.226994
0.080007
0.088612
0.022885
0.18052
0.112047
0.087148
0.071036
0.058587
0.058587
0
0.037587
0.167632
7,767
140
136
55.478571
0.80727
0.027552
0
0
1
0
0.107077
0
0
0
0
0
0
1
0.016129
false
0
0.016129
0
0.040323
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
7bb80c3ecc1f81bebc7a34d9d8f2cc068b53480f
1,632
py
Python
LoanPandas/code.py
yogprabhu/ga-learner-dsmp-repo
eaf27f7598f767481b08be3999024fb56612a666
[ "MIT" ]
1
2019-05-01T18:24:49.000Z
2019-05-01T18:24:49.000Z
LoanPandas/code.py
yogprabhu/ga-learner-dsmp-repo
eaf27f7598f767481b08be3999024fb56612a666
[ "MIT" ]
null
null
null
LoanPandas/code.py
yogprabhu/ga-learner-dsmp-repo
eaf27f7598f767481b08be3999024fb56612a666
[ "MIT" ]
null
null
null
# -------------- # Import packages import numpy as np import pandas as pd from scipy.stats import mode # code starts here bank = pd.read_csv(path) categorical_var = bank.select_dtypes(include = 'object') print(categorical_var) numerical_var = bank.select_dtypes(include = 'number') print(numerical_var) # code ends h...
22.666667
127
0.700368
236
1,632
4.610169
0.338983
0.057904
0.077206
0.073529
0.321691
0.251838
0.180147
0.075368
0.075368
0.075368
0
0.013689
0.104779
1,632
71
128
22.985915
0.731006
0.191176
0
0
0
0
0.164996
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.148148
0
0
0
null
0
0
0
0
0
0
0
0
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
7bb9a05e4b4df3445a16a9d49bf23b734a000bdc
1,718
py
Python
test/espnet2/tts/feats_extract/test_energy.py
texpomru13/espnet
7ef005e832e2fb033f356c16f54e0f08762fb4b0
[ "Apache-2.0" ]
5,053
2017-12-13T06:21:41.000Z
2022-03-31T13:38:29.000Z
test/espnet2/tts/feats_extract/test_energy.py
texpomru13/espnet
7ef005e832e2fb033f356c16f54e0f08762fb4b0
[ "Apache-2.0" ]
3,666
2017-12-14T05:58:50.000Z
2022-03-31T22:11:49.000Z
test/espnet2/tts/feats_extract/test_energy.py
texpomru13/espnet
7ef005e832e2fb033f356c16f54e0f08762fb4b0
[ "Apache-2.0" ]
1,709
2017-12-13T01:02:42.000Z
2022-03-31T11:57:45.000Z
import pytest import torch from espnet2.tts.feats_extract.energy import Energy @pytest.mark.parametrize( "use_token_averaged_energy, reduction_factor", [(False, None), (True, 1), (True, 3)] ) def test_forward(use_token_averaged_energy, reduction_factor): layer = Energy( n_fft=128, hop_length=...
30.140351
88
0.661816
220
1,718
4.859091
0.268182
0.097287
0.194574
0.26754
0.695042
0.695042
0.642657
0.642657
0.642657
0.642657
0
0.035688
0.217113
1,718
56
89
30.678571
0.759108
0
0
0.44898
0
0
0.080326
0.045402
0
0
0
0
0.040816
1
0.061224
false
0
0.061224
0
0.122449
0.040816
0
0
0
null
0
1
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
7bba3197cf6ebc84a1f3034725dd0f1b29fd1b82
4,699
py
Python
squad/merge.py
uwnlp/piqa
e18f2189c93965c94655d5cc943dcecdc2c1ea57
[ "Apache-2.0" ]
89
2018-08-25T07:59:07.000Z
2021-05-04T06:37:27.000Z
squad/merge.py
seominjoon/piqa
e18f2189c93965c94655d5cc943dcecdc2c1ea57
[ "Apache-2.0" ]
11
2018-09-28T17:33:27.000Z
2019-11-27T23:34:45.000Z
squad/merge.py
uwnlp/piqa
e18f2189c93965c94655d5cc943dcecdc2c1ea57
[ "Apache-2.0" ]
10
2018-09-19T06:48:06.000Z
2020-04-14T20:42:06.000Z
"""Official merge script for PI-SQuAD v0.1""" from __future__ import print_function import os import argparse import json import sys import shutil import scipy.sparse import scipy.sparse.linalg import numpy as np import numpy.linalg def get_q2c(dataset): q2c = {} for article in dataset: for para_idx...
38.516393
117
0.613109
651
4,699
4.18894
0.225806
0.041071
0.038137
0.017602
0.411808
0.256692
0.182985
0.182985
0.098276
0.057572
0
0.010759
0.268142
4,699
121
118
38.834711
0.782204
0.025963
0
0.168317
0
0
0.130444
0
0
0
0
0
0
1
0.019802
false
0
0.108911
0
0.148515
0.069307
0
0
0
null
0
0
0
0
0
0
0
0
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
7bba6288445870de13beac5ccea088e511b9306b
3,918
py
Python
src/passpredict/locations.py
samtx/pass-predictor
6577f75cd7d64bd3c12a9512880d4b29c2682b4c
[ "MIT" ]
null
null
null
src/passpredict/locations.py
samtx/pass-predictor
6577f75cd7d64bd3c12a9512880d4b29c2682b4c
[ "MIT" ]
null
null
null
src/passpredict/locations.py
samtx/pass-predictor
6577f75cd7d64bd3c12a9512880d4b29c2682b4c
[ "MIT" ]
null
null
null
from functools import cached_property from datetime import datetime from math import degrees, radians, sin, cos import numpy as np from orbit_predictor import coordinate_systems from .utils import get_timezone_from_latlon from .time import make_utc from ._time import datetime2mjd from .solar import sun_pos_mjd from ....
29.238806
88
0.619704
468
3,918
4.970085
0.241453
0.037833
0.025795
0.041273
0.203783
0.138435
0.138435
0.138435
0.138435
0.138435
0
0.00577
0.292241
3,918
133
89
29.458647
0.833033
0.159775
0
0.108434
0
0
0.030007
0.016634
0
0
0
0
0
1
0.168675
false
0
0.156627
0.048193
0.493976
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
7bbaeab63e6d9b82f2fcd904c0c52ba80c699e2f
4,559
py
Python
rl_baselines/evaluation/eval_post.py
anonymous-authors-2018/robotics-repo
385d1f3b49f8d414ab90f53c6f06b56614ae83ba
[ "MIT" ]
5
2019-08-21T22:57:21.000Z
2021-01-01T21:15:26.000Z
rl_baselines/evaluation/eval_post.py
BillChan226/POAR-SRL-4-Robot
a6a8052e105369656d34fffc4f7ca4475dcc38df
[ "MIT" ]
null
null
null
rl_baselines/evaluation/eval_post.py
BillChan226/POAR-SRL-4-Robot
a6a8052e105369656d34fffc4f7ca4475dcc38df
[ "MIT" ]
2
2019-11-26T11:41:12.000Z
2021-08-30T16:00:27.000Z
import subprocess import numpy as np import pickle import argparse import os from rl_baselines.student_eval import allPolicy from srl_zoo.utils import printRed, printGreen from rl_baselines.evaluation.cross_eval_utils import EnvsKwargs, loadConfigAndSetup, policyEval,createEnv def dict2array(tasks,data): res=[]...
33.77037
130
0.645317
615
4,559
4.59187
0.263415
0.063739
0.03966
0.028329
0.174575
0.158994
0.122875
0.122875
0.122875
0.122875
0
0.01039
0.239965
4,559
134
131
34.022388
0.804618
0.100241
0
0.241379
0
0
0.098629
0.007097
0
0
0
0
0
1
0.045977
false
0.011494
0.091954
0
0.183908
0.022989
0
0
0
null
0
0
0
0
0
0
0
0
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
7bbb8601ea2e62414cb9ab4019393f8898c93e86
6,304
py
Python
HLTriggerOffline/SUSYBSM/test/BSMTriggerCheck/runComparison.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
HLTriggerOffline/SUSYBSM/test/BSMTriggerCheck/runComparison.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
HLTriggerOffline/SUSYBSM/test/BSMTriggerCheck/runComparison.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
#! /usr/bin/env python import os os.system("make clean; make; \\rm *.log log.list") ############################################ #dir1='TriggerValidation_223_HLT' #dir2='TriggerValidation_224_HLT' #out='223_vs_224' #samples=['LM1'] #prefix1 = "histo_" #prefix2 = "histo_" #sufix1 = "_IDEALV11" #sufix2 = "_IDEALV11_v...
34.075676
153
0.615641
791
6,304
4.825537
0.209861
0.044014
0.037464
0.023579
0.565627
0.51585
0.412366
0.412366
0.39979
0.33377
0
0.045384
0.182107
6,304
184
154
34.26087
0.694919
0.350888
0
0.291667
0
0.027778
0.39847
0.137395
0
0
0
0
0
1
0
false
0
0.013889
0
0.013889
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
7bbbafe111995f8ba65d3c92e9ed6a6bf9e416f8
2,275
py
Python
log_in.py
lowerx/8March
02948996ca43dddbc2a7ffad882a21b59fbea4ed
[ "MIT" ]
null
null
null
log_in.py
lowerx/8March
02948996ca43dddbc2a7ffad882a21b59fbea4ed
[ "MIT" ]
null
null
null
log_in.py
lowerx/8March
02948996ca43dddbc2a7ffad882a21b59fbea4ed
[ "MIT" ]
null
null
null
from curses import echo from importlib.metadata import metadata import sqlite3 import sys import sqlalchemy import os from sqlalchemy import Column, Integer, String, ForeignKey, Table, MetaData, create_engine, engine_from_config from sqlalchemy.orm import relationship, backref, sessionmaker from sqlalchemy.ext.declarat...
28.4375
110
0.633407
242
2,275
5.77686
0.334711
0.021459
0.032189
0.040773
0.269671
0.211731
0.211731
0.211731
0.211731
0.128755
0
0.000595
0.261538
2,275
79
111
28.797468
0.831548
0.222418
0
0
0
0
0.040069
0
0
0
0
0
0
1
0.066667
false
0.088889
0.222222
0
0.466667
0.022222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7bbbb84b2ea6ce8e2867ca8c352a6bb6c21ce89f
1,602
py
Python
mecc/views.py
unistra/eva
9f7bd8c44edbca05eb45b36cb5b8e658e53bc3c0
[ "Apache-2.0" ]
null
null
null
mecc/views.py
unistra/eva
9f7bd8c44edbca05eb45b36cb5b8e658e53bc3c0
[ "Apache-2.0" ]
3
2021-03-19T10:36:10.000Z
2021-09-08T01:37:47.000Z
mecc/views.py
unistra/eva
9f7bd8c44edbca05eb45b36cb5b8e658e53bc3c0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django_cas.decorators import login_required from django.core.exceptions import ObjectDoesNotExist from django.shortcuts import render, redirect from mecc.apps.years.models import UniversityYear @login_required def home(request): """ root of all evil: dispatch according to us...
36.409091
83
0.637953
200
1,602
5
0.385
0.027
0.154
0.156
0.374
0.271
0.238
0.238
0.238
0.238
0
0.001638
0.237828
1,602
43
84
37.255814
0.817363
0.046816
0
0.090909
0
0
0.1858
0.029197
0
0
0
0
0
1
0.030303
false
0.030303
0.121212
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7bbbe09edfcf3321edef1198ab48f96f54dee63c
2,695
py
Python
src/OTLMOW/OTLModel/Datatypes/KlNetwerklinkMediumtype.py
davidvlaminck/OTLClassPython
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
2
2022-02-01T08:58:11.000Z
2022-02-08T13:35:17.000Z
src/OTLMOW/OTLModel/Datatypes/KlNetwerklinkMediumtype.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
src/OTLMOW/OTLModel/Datatypes/KlNetwerklinkMediumtype.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
# coding=utf-8 from OTLMOW.OTLModel.Datatypes.KeuzelijstField import KeuzelijstField from OTLMOW.OTLModel.Datatypes.KeuzelijstWaarde import KeuzelijstWaarde # Generated with OTLEnumerationCreator. To modify: extend, do not edit class KlNetwerklinkMediumtype(KeuzelijstField): """Mogelijke waarden voor het type dra...
72.837838
173
0.634879
226
2,695
7.570796
0.30531
0.024547
0.094097
0.135009
0.543542
0.543542
0.496201
0.496201
0.496201
0.329632
0
0.000518
0.283117
2,695
36
174
74.861111
0.885093
0.063822
0
0
1
0.033333
0.49662
0.009145
0
0
0
0
0
1
0
false
0
0.066667
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7bbde3e95bb2349d1613a331043db076b94f2cfe
1,617
py
Python
src/utgardtests/filewriter/statusprocessor.py
ess-dmsc/utgard-test-utils
27e244d06a681e09a10584dc6b93e5eaf767a8be
[ "BSD-2-Clause" ]
null
null
null
src/utgardtests/filewriter/statusprocessor.py
ess-dmsc/utgard-test-utils
27e244d06a681e09a10584dc6b93e5eaf767a8be
[ "BSD-2-Clause" ]
null
null
null
src/utgardtests/filewriter/statusprocessor.py
ess-dmsc/utgard-test-utils
27e244d06a681e09a10584dc6b93e5eaf767a8be
[ "BSD-2-Clause" ]
null
null
null
import logging import threading import time class StatusProcessor: MAX_NUM_MESSAGES_PER_UPDATE = 10 GET_MESSAGES_TIMEOUT_S = 0.5 LIVENESS_TIMEOUT_S = 5 def __init__( self, status_consumer, msg_processor, logger=logging.getLogger(__name__), time_function=time.ti...
26.508197
73
0.641311
195
1,617
4.871795
0.287179
0.075789
0.095789
0.053684
0.145263
0
0
0
0
0
0
0.004325
0.285096
1,617
60
74
26.95
0.817474
0
0
0.040816
0
0
0.017316
0
0
0
0
0
0
1
0.163265
false
0
0.061224
0
0.367347
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
7bbdf574388c84658ffc5b1e989b4bad6ddb075e
9,045
py
Python
befh/exchanges/okex_spot.py
philsong/BitcoinExchangeFH
3c45d4be2ea2a258f132d982f62f69d649e0b083
[ "Apache-2.0" ]
32
2017-12-15T07:30:11.000Z
2020-07-16T10:15:18.000Z
befh/exchanges/okex_spot.py
bijiasuo/BitcoinExchangeFH
9aa7b790cf74cf9fe48662147c30fc05e045e9ed
[ "Apache-2.0" ]
null
null
null
befh/exchanges/okex_spot.py
bijiasuo/BitcoinExchangeFH
9aa7b790cf74cf9fe48662147c30fc05e045e9ed
[ "Apache-2.0" ]
20
2017-11-09T15:28:39.000Z
2019-12-10T01:02:57.000Z
from befh.ws_api_socket import WebSocketApiClient from befh.market_data import L2Depth, Trade from befh.exchanges.gateway import ExchangeGateway from befh.instrument import Instrument from befh.util import Logger from befh.clients.sql_template import SqlClientTemplate import time import threading import json from funct...
38.326271
116
0.570591
1,044
9,045
4.627395
0.165709
0.033326
0.028152
0.02691
0.336576
0.274477
0.217346
0.170358
0.153798
0.136411
0
0.01172
0.330238
9,045
235
117
38.489362
0.785738
0.100387
0
0.131034
0
0
0.062363
0.016202
0
0
0
0
0
1
0.110345
false
0
0.075862
0.048276
0.275862
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
7bbe575d89df5cb9077767131f1bcff71b4ea2bc
191
py
Python
cloudflare_ddns/__init__.py
joshuaavalon/cloudflare-ddns
9a79a73dc6f723d2bd9afd26289a9c990744f4e7
[ "Apache-2.0" ]
1
2019-05-16T15:25:22.000Z
2019-05-16T15:25:22.000Z
cloudflare_ddns/__init__.py
joshuaavalon/cloudflare-ddns
9a79a73dc6f723d2bd9afd26289a9c990744f4e7
[ "Apache-2.0" ]
null
null
null
cloudflare_ddns/__init__.py
joshuaavalon/cloudflare-ddns
9a79a73dc6f723d2bd9afd26289a9c990744f4e7
[ "Apache-2.0" ]
1
2019-06-17T15:22:29.000Z
2019-06-17T15:22:29.000Z
from cloudflare_ddns.configuration import Configuration, SiteConfiguration from cloudflare_ddns.ddns import CloudflareDDNS __all__ = ["CloudflareDDNS", "Configuration", "SiteConfiguration"]
38.2
74
0.848168
17
191
9.176471
0.470588
0.179487
0.230769
0
0
0
0
0
0
0
0
0
0.078534
191
4
75
47.75
0.886364
0
0
0
0
0
0.230366
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
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
0
0
1
0
0
0
0
4
7bbe5cef3d1aeca66fb6ca826edab503eb8c860b
587
py
Python
hardhat/recipes/python/twisted.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
hardhat/recipes/python/twisted.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
hardhat/recipes/python/twisted.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
from .base import PipBaseRecipe class TwistedRecipe(PipBaseRecipe): def __init__(self, *args, **kwargs): super(TwistedRecipe, self).__init__(*args, **kwargs) self.sha256 = 'a4cc164a781859c74de47f17f0e85f4b' \ 'ce8a3321a9d0892c015c8f80c4158ad9' self.pythons = ['python...
32.611111
60
0.524702
41
587
7.317073
0.731707
0.066667
0
0
0
0
0
0
0
0
0
0.13172
0.366269
587
17
61
34.529412
0.674731
0
0
0
0
0
0.229983
0.109029
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
7bbf00877f721b0c24c4e63d13a17b9fddb98274
250
py
Python
EXC/CW1/task3/combiner.py
easyCZ/UoE-Projects
7651c8caf329c4f7b4562eba441bfc24124cfcfd
[ "BSD-2-Clause" ]
null
null
null
EXC/CW1/task3/combiner.py
easyCZ/UoE-Projects
7651c8caf329c4f7b4562eba441bfc24124cfcfd
[ "BSD-2-Clause" ]
1
2022-02-23T07:34:53.000Z
2022-02-23T07:34:53.000Z
EXC/CW1/task3/combiner.py
easyCZ/UoE-Projects
7651c8caf329c4f7b4562eba441bfc24124cfcfd
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # combiner.py import sys word_count = 0 line_count = 0 for line in sys.stdin: words, lines = line.strip().split('\t') word_count += int(words) line_count += int(lines) print("{0}\t{1}".format(word_count, line_count))
17.857143
48
0.66
41
250
3.878049
0.560976
0.169811
0
0
0
0
0
0
0
0
0
0.019231
0.168
250
14
48
17.857143
0.745192
0.112
0
0
0
0
0.045249
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
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
7bbf1685508e5466a589c9ca9ef370e0a3b9611c
1,376
py
Python
tests/exploratory/user_data/radish/steps.py
tuxrosi/radish
b21fa751f8dfc4309451476151c810b44975babb
[ "MIT" ]
null
null
null
tests/exploratory/user_data/radish/steps.py
tuxrosi/radish
b21fa751f8dfc4309451476151c810b44975babb
[ "MIT" ]
null
null
null
tests/exploratory/user_data/radish/steps.py
tuxrosi/radish
b21fa751f8dfc4309451476151c810b44975babb
[ "MIT" ]
null
null
null
import re from radish.stepregistry import step from radish import when, then from radish.terrain import world @step(re.compile("I have the number in user data as (.+)")) def have_number(step, input_variable): if world.config.user_data: if input_variable in world.config.user_data: step.context...
35.282051
106
0.652616
198
1,376
4.449495
0.252525
0.145289
0.102157
0.129398
0.61748
0.533485
0.46765
0.397276
0.397276
0.397276
0
0.001899
0.234738
1,376
38
107
36.210526
0.834758
0
0
0.516129
0
0.064516
0.300872
0
0
0
0
0
0.16129
1
0.096774
false
0
0.129032
0
0.225806
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
7bbf1d84d1d1e722a857754d78ceb86118a7eadb
3,462
py
Python
django/core/views.py
andreyvpng/askme
65139c347a6b80f0a660ca24d6dd864e4531903a
[ "Apache-2.0" ]
2
2018-10-29T09:37:47.000Z
2019-11-28T14:11:12.000Z
django/core/views.py
andreyvpng/askme
65139c347a6b80f0a660ca24d6dd864e4531903a
[ "Apache-2.0" ]
null
null
null
django/core/views.py
andreyvpng/askme
65139c347a6b80f0a660ca24d6dd864e4531903a
[ "Apache-2.0" ]
2
2018-09-18T14:09:46.000Z
2019-11-28T14:11:14.000Z
from django.contrib.auth import get_user_model from django.contrib.auth.mixins import LoginRequiredMixin from django.core.exceptions import ObjectDoesNotExist, PermissionDenied from django.http.response import HttpResponseBadRequest, HttpResponseRedirect from django.urls import reverse_lazy from django.urls.base import...
27.696
77
0.662334
383
3,462
5.869452
0.232376
0.035587
0.024466
0.033808
0.344751
0.298488
0.258452
0.232651
0.232651
0.232651
0
0
0.237146
3,462
124
78
27.919355
0.851193
0
0
0.337349
0
0
0.019064
0
0
0
0
0
0
1
0.120482
false
0.012048
0.108434
0.036145
0.578313
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
7bc0b829008737def4ec98f701aadecbf19f6fdd
336
py
Python
setup.py
lepture/pydouban
5b67c9f6a206a2b21539fc28b3b8658947ae1904
[ "BSD-3-Clause" ]
1
2019-04-14T19:58:43.000Z
2019-04-14T19:58:43.000Z
setup.py
lepture/pydouban
5b67c9f6a206a2b21539fc28b3b8658947ae1904
[ "BSD-3-Clause" ]
null
null
null
setup.py
lepture/pydouban
5b67c9f6a206a2b21539fc28b3b8658947ae1904
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup setup( name = 'pydouban', version = '1.0.0', description = 'Lightweight Python Douban API Library', author = 'Marvour', author_email = 'marvour@gmail.com', license = 'BSD License', url = 'http://i.shiao.org/a/pydouban', packages = ...
22.4
58
0.630952
41
336
5.146341
0.804878
0
0
0
0
0
0
0
0
0
0
0.011321
0.21131
336
14
59
24
0.784906
0.059524
0
0
0
0
0.387302
0
0
0
0
0
0
1
0
true
0
0.090909
0
0.090909
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
7bc111fc110f0ab3862581da0b6b979e7a706d1e
3,234
py
Python
drowsiness_detector.py
zhww-107/drowsiness_detector
855995e1da36ffc0ec1fda7df8ea1aafc35c416d
[ "BSD-2-Clause" ]
1
2020-05-12T12:31:51.000Z
2020-05-12T12:31:51.000Z
drowsiness_detector.py
zhww-107/drowsiness_detector
855995e1da36ffc0ec1fda7df8ea1aafc35c416d
[ "BSD-2-Clause" ]
null
null
null
drowsiness_detector.py
zhww-107/drowsiness_detector
855995e1da36ffc0ec1fda7df8ea1aafc35c416d
[ "BSD-2-Clause" ]
null
null
null
from imutils import face_utils from scipy.spatial import distance import cv2 import dlib import imutils import pygame import time # Initializing the alert sound pygame.mixer.init() alert_sound = pygame.mixer.Sound("alert_sound.wav") default_volume = 0.2 # Eye-Aspect-Ratio data EAR_threshhold = 0.17 # One valid frame ...
31.096154
89
0.649969
478
3,234
4.276151
0.34728
0.034247
0.041096
0.030822
0.13454
0.082681
0.082681
0.082681
0.082681
0.082681
0
0.048991
0.248918
3,234
104
90
31.096154
0.792507
0.300557
0
0.118644
0
0
0.055828
0.016525
0
0
0.001787
0
0
1
0.033898
false
0
0.118644
0
0.169492
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
7bc160c90d8d420f5bacbdb3fbe421c84e36aaf4
11,809
py
Python
trunk-tap.py
schreiberstein/trunk-tap.py
aacf32816e2a558e31ebc431edf84e23ef22146d
[ "MIT" ]
15
2017-10-22T15:08:58.000Z
2022-01-03T22:21:12.000Z
trunk-tap.py
ideechaniz/trunk-tap.py
aacf32816e2a558e31ebc431edf84e23ef22146d
[ "MIT" ]
2
2018-04-04T18:52:54.000Z
2019-02-20T10:16:13.000Z
trunk-tap.py
ideechaniz/trunk-tap.py
aacf32816e2a558e31ebc431edf84e23ef22146d
[ "MIT" ]
6
2017-10-23T03:03:16.000Z
2021-07-03T16:28:29.000Z
#!/usr/bin/env python3 # < trunk-tap.py > # Version 1.0 < 20171022 > # Copyright 2017: Alexander Schreiber < schreiberstein[at]gmail.com > # https://github.com/schreiberstein/trunk-tap.py # MIT License: # ============ # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and...
41.146341
260
0.655348
1,606
11,809
4.719801
0.205479
0.044327
0.020185
0.037995
0.424274
0.41161
0.347625
0.335752
0.322823
0.282454
0
0.016827
0.209925
11,809
286
261
41.29021
0.795606
0.442459
0
0.447761
0
0.029851
0.242862
0
0
0
0
0
0
1
0.126866
false
0
0.022388
0
0.268657
0.022388
0
0
0
null
0
0
0
0
0
0
0
0
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
7bc353399a2502106befa0365666e5d586522d04
4,404
py
Python
tests/common/mock_cgroup_commands.py
rbgithuub/WALinuxAgent
c0462f33bb5e3a33430fe3d172676d85cefa6227
[ "Apache-2.0" ]
null
null
null
tests/common/mock_cgroup_commands.py
rbgithuub/WALinuxAgent
c0462f33bb5e3a33430fe3d172676d85cefa6227
[ "Apache-2.0" ]
null
null
null
tests/common/mock_cgroup_commands.py
rbgithuub/WALinuxAgent
c0462f33bb5e3a33430fe3d172676d85cefa6227
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Microsoft 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.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
38.631579
178
0.711172
621
4,404
4.94847
0.330113
0.024406
0.053693
0.054995
0.391474
0.248617
0.191344
0.04686
0.024732
0.024732
0
0.011187
0.167802
4,404
113
179
38.973451
0.827285
0.153951
0
0.196429
0
0
0.243243
0.121622
0
0
0
0
0
1
0.071429
false
0
0.107143
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7bc78e4dfebfc4162a535f0855d380aa68aa6df8
1,474
py
Python
main.py
saiamphora/XOR-NEATpy
091b6d6fc3b662491c8216227f5305841521e0ed
[ "Unlicense" ]
1
2021-11-29T03:30:49.000Z
2021-11-29T03:30:49.000Z
main.py
saiamphora/XOR-NEATpy
091b6d6fc3b662491c8216227f5305841521e0ed
[ "Unlicense" ]
1
2021-11-29T15:28:09.000Z
2021-11-29T15:28:09.000Z
main.py
saiamphora/XOR-NEATpy
091b6d6fc3b662491c8216227f5305841521e0ed
[ "Unlicense" ]
null
null
null
from __future__ import print_function import os import neat # 2-input XOR inputs and expected outputs. xor_inputs = [(0.0, 0.0), (0.0, 1.0), (1.0, 0.0), (1.0, 1.0)] xor_outputs = [(0.0,),(1.0,),(1.0,),(0.0,)] def eval_genomes(genomes, config): for genome_id, genome in genomes: genome.fitness = 4.0 ...
33.5
82
0.651967
206
1,474
4.514563
0.334951
0.021505
0.019355
0.012903
0.189247
0.115054
0.115054
0.109677
0.092473
0.092473
0
0.031463
0.202171
1,474
44
83
33.5
0.759354
0.027137
0
0.060606
0
0
0.073971
0
0
0
0
0
0
1
0.060606
false
0
0.090909
0
0.151515
0.121212
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7bc7b39f24b5e8a02751dc33b721dc3411814fe9
16,866
py
Python
iBlock.py
RussianOtter/iBlock
e0db1b94fd2d8ed9538ad42df1a706cc782bb2f3
[ "MIT" ]
5
2017-10-02T06:01:01.000Z
2022-03-08T05:51:51.000Z
iBlock.py
RussianOtter/iBlock
e0db1b94fd2d8ed9538ad42df1a706cc782bb2f3
[ "MIT" ]
null
null
null
iBlock.py
RussianOtter/iBlock
e0db1b94fd2d8ed9538ad42df1a706cc782bb2f3
[ "MIT" ]
null
null
null
""" _ _____ _ _ |_| __ | |___ ___| |_ | | __ -| | . | _| '_| |_|_____|_|___|___|_,_| iBlock is a machine learning video game! This game is played on a 8x6 board (48 spaces) and the goal is to fill up the enemy's column with your pieces! Once that happens the game will reset and log all the data for the ...
27.115756
398
0.600024
2,617
16,866
3.751242
0.151318
0.009575
0.014057
0.018336
0.475807
0.457879
0.419171
0.411837
0.386778
0.368035
0
0.062812
0.203308
16,866
621
399
27.15942
0.667783
0.006463
0
0.572835
0
0.001969
0.221088
0.005539
0
0
0
0
0
0
null
null
0.01378
0.003937
null
null
0.104331
0
0
0
null
0
0
0
0
0
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
7bc9519279bbaea50bce0ecf16967333a0bd62b5
319
py
Python
Autre/Internet.py
Yaya-Cout/Python
500a2bc18cbb0b9bf1470943def8fd8e8e76d36d
[ "Unlicense" ]
5
2020-12-05T14:00:39.000Z
2021-12-02T11:44:54.000Z
Autre/Internet.py
Yaya-Cout/Python
500a2bc18cbb0b9bf1470943def8fd8e8e76d36d
[ "Unlicense" ]
11
2021-03-15T17:51:43.000Z
2021-11-24T13:24:39.000Z
Autre/Internet.py
Yaya-Cout/Python
500a2bc18cbb0b9bf1470943def8fd8e8e76d36d
[ "Unlicense" ]
1
2021-01-02T14:15:10.000Z
2021-01-02T14:15:10.000Z
def main(): import webbrowser recherche = 0 while True: if recherche >= 2: print("Vous avez fait " + str(recherche) + " recherches.") recherche += 1 adresse = input("Quel adresse veut-tu ouvrir") webbrowser.open(adresse) if __name__ == "__main__": main()
19.9375
70
0.567398
34
319
5.088235
0.735294
0
0
0
0
0
0
0
0
0
0
0.013761
0.316614
319
15
71
21.266667
0.779817
0
0
0
0
0
0.194357
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.181818
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7bc96e1706c4c4494a902bdb9aa51a33d9269620
6,502
py
Python
older/rc-qradar-search/query_runner/components/ariel_query.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
65
2017-12-04T13:58:32.000Z
2022-03-24T18:33:17.000Z
older/rc-qradar-search/query_runner/components/ariel_query.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
48
2018-03-02T19:17:14.000Z
2022-03-09T22:00:38.000Z
older/rc-qradar-search/query_runner/components/ariel_query.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
95
2018-01-11T16:23:39.000Z
2022-03-21T11:34:29.000Z
"""Action Module circuits component to update incidents from QRadar Ariel queries""" import logging from datetime import datetime import time import copy import json from string import Template from pkg_resources import Requirement, resource_filename import resilient_circuits.template_functions as template_functions fr...
36.324022
113
0.669948
806
6,502
5.183623
0.266749
0.028722
0.013404
0.019148
0.218047
0.189325
0.157252
0.140498
0.140498
0.102441
0
0.003721
0.214703
6,502
178
114
36.52809
0.814532
0.101969
0
0.148438
0
0
0.097957
0.016064
0
0
0
0
0
1
0.054688
false
0
0.085938
0
0.203125
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
7bcaa605df103e994b12588df4d84741fe74b87f
2,371
py
Python
first/sendmail-practice.py
bujige/Python-practice
c1eb76b0caaada628f23a477303f07d6be3f707c
[ "Apache-2.0" ]
null
null
null
first/sendmail-practice.py
bujige/Python-practice
c1eb76b0caaada628f23a477303f07d6be3f707c
[ "Apache-2.0" ]
null
null
null
first/sendmail-practice.py
bujige/Python-practice
c1eb76b0caaada628f23a477303f07d6be3f707c
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- from email import encoders from email.header import Header from email.mime.multipart import MIMEBase, MIMEMultipart from email.mime.text import MIMEText from email.utils import parseaddr, formataddr import smtplib # 格式化一个邮件地址 def _format_addr(s): # parseaddr:解析字符串中的...
28.22619
79
0.634753
304
2,371
4.855263
0.414474
0.02168
0.020325
0.02439
0.186992
0.186992
0.163957
0.081301
0
0
0
0.012794
0.175875
2,371
84
80
28.22619
0.742579
0.137916
0
0.086957
0
0.021739
0.258929
0.041171
0
0
0
0
0
1
0.021739
false
0.043478
0.130435
0
0.173913
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7bcea7388e12344b8c218c07128ff9fb1cd5ed79
1,519
py
Python
yat-master/pymodule/common_sql/plain_parser/reader.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
yat-master/pymodule/common_sql/plain_parser/reader.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
yat-master/pymodule/common_sql/plain_parser/reader.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
#!/usr/bin/env python # encoding=utf-8 """ Copyright (c) 2021 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFT...
27.125
84
0.623436
202
1,519
4.569307
0.485149
0.107259
0.081257
0.056338
0.223185
0.173348
0.173348
0.110509
0.110509
0.110509
0
0.009434
0.302172
1,519
55
85
27.618182
0.861321
0.35813
0
0.387097
0
0
0
0
0
0
0
0
0
1
0.16129
false
0
0
0
0.354839
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
7bcfdbc346740098cdd0e1ea01a84bd850dcb6f3
2,895
py
Python
web/admin.py
dschien/greendoors-web
26a10e909e6447f1709d27e58340f08372ce8f26
[ "MIT" ]
null
null
null
web/admin.py
dschien/greendoors-web
26a10e909e6447f1709d27e58340f08372ce8f26
[ "MIT" ]
2
2020-06-05T17:29:54.000Z
2021-06-10T18:58:13.000Z
web/admin.py
dschien/greendoors-web
26a10e909e6447f1709d27e58340f08372ce8f26
[ "MIT" ]
null
null
null
__author__ = 'schien' from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.contrib.auth.models import User from django.contrib.admin import BooleanFieldListFilter from api.models import Scan, Measure, InstalledMeasure, MeasureCategory, App, MessageThread, RedirectUrl, Trackabl...
24.327731
152
0.760622
312
2,895
6.945513
0.282051
0.074758
0.133364
0.048454
0.085371
0.085371
0.056761
0.056761
0
0
0
0.002015
0.14266
2,895
119
153
24.327731
0.871072
0.041451
0
0.205479
0
0
0.058186
0
0
0
0
0
0
1
0
false
0.013699
0.082192
0
0.712329
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
c8730231294cec0e238e9725d099edb7ac1ec02d
7,359
py
Python
compecon/basisSpline.py
daniel-schaefer/CompEcon-python
d3f66e04a7e02be648fc5a68065806ec7cc6ffd6
[ "MIT" ]
null
null
null
compecon/basisSpline.py
daniel-schaefer/CompEcon-python
d3f66e04a7e02be648fc5a68065806ec7cc6ffd6
[ "MIT" ]
null
null
null
compecon/basisSpline.py
daniel-schaefer/CompEcon-python
d3f66e04a7e02be648fc5a68065806ec7cc6ffd6
[ "MIT" ]
1
2021-06-01T03:47:35.000Z
2021-06-01T03:47:35.000Z
import numpy as np from scipy.sparse import csc_matrix, diags, tril from .basis import Basis __author__ = 'Randall' # TODO: complete this class # todo: compare performance of csr_matrix and csc_matrix to deal with sparse interpolation operators # fixme: interpolation is 25 slower than in matlab when 2 dimensions!! 2x ...
36.430693
119
0.512298
989
7,359
3.73913
0.244692
0.047593
0.03218
0.034072
0.11033
0.098972
0.098972
0.098972
0.08437
0.08437
0
0.018904
0.367441
7,359
201
120
36.61194
0.77551
0.192825
0
0.128
0
0.008
0.08632
0
0
0
0
0.00995
0.04
1
0.056
false
0
0.024
0
0.128
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
c873b44db1fbe52cb97100b99eb41550c409cc9f
2,279
py
Python
vendors/rez-2.23.1-py2.7/rez/backport/shutilwhich.py
ColinKennedy/tk-config-default2-respawn
855fb8033daa549b92615792442f19a7f9c4f55c
[ "Linux-OpenIB" ]
4
2019-01-11T03:41:28.000Z
2019-09-12T06:57:17.000Z
vendors/rez-2.23.1-py2.7/rez/backport/shutilwhich.py
ColinKennedy/tk-config-default2-respawn
855fb8033daa549b92615792442f19a7f9c4f55c
[ "Linux-OpenIB" ]
null
null
null
vendors/rez-2.23.1-py2.7/rez/backport/shutilwhich.py
ColinKennedy/tk-config-default2-respawn
855fb8033daa549b92615792442f19a7f9c4f55c
[ "Linux-OpenIB" ]
2
2019-01-10T05:00:18.000Z
2020-02-15T16:32:56.000Z
import os import os.path import sys # Modified version from Python-3.3. 'env' environ dict override has been added. def which(cmd, mode=os.F_OK | os.X_OK, env=None): """Given a command, mode, and a PATH string, return the path which conforms to the given mode on the PATH, or None if there is no such file...
36.174603
79
0.617376
348
2,279
4.008621
0.41092
0.021505
0.007168
0.010036
0.018638
0.018638
0.018638
0
0
0
0
0.003086
0.289162
2,279
62
80
36.758065
0.858025
0.432207
0
0
0
0.03125
0.055024
0.042265
0
0
0
0
0
1
0.0625
false
0
0.09375
0.03125
0.28125
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
c876f748ac3b92bbe9dd6ace6cf8630a36ac3d08
6,469
py
Python
src/symbol_table.py
harkiratbehl/PyGM
e0a4e0b865afb607dfa0525ca386bfbe77bb6508
[ "MIT" ]
2
2019-02-13T11:30:08.000Z
2021-02-14T04:20:44.000Z
src/symbol_table.py
harkiratbehl/PyGM
e0a4e0b865afb607dfa0525ca386bfbe77bb6508
[ "MIT" ]
null
null
null
src/symbol_table.py
harkiratbehl/PyGM
e0a4e0b865afb607dfa0525ca386bfbe77bb6508
[ "MIT" ]
null
null
null
"""Defines the classes SymbolTable and SymbolTableNode""" import sys from numpy import ones class SymbolTableNode: """Defines a class SymbolTableNode which stores the nodes in the SymbolTable""" def __init__(self, name, type_name, parameters = None, size = None): """Initializes the Node""" sel...
34.227513
83
0.534549
744
6,469
4.478495
0.143817
0.09904
0.117047
0.056122
0.404562
0.289016
0.2497
0.171068
0.153661
0.127851
0
0.006702
0.354151
6,469
188
84
34.409574
0.790809
0.065698
0
0.302817
0
0
0.06239
0
0
0
0
0
0
0
null
null
0
0.014085
null
null
0.105634
0
0
0
null
0
0
0
0
0
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
c879174dc589e41a31be3771fbf140871339c500
151
py
Python
setup.py
Will-Robin/NorthNet
343238afbefd02b7255ef6013cbfb0e801bc2b3b
[ "BSD-3-Clause" ]
null
null
null
setup.py
Will-Robin/NorthNet
343238afbefd02b7255ef6013cbfb0e801bc2b3b
[ "BSD-3-Clause" ]
2
2022-02-23T12:03:32.000Z
2022-02-23T14:27:29.000Z
setup.py
Will-Robin/NorthNet
343238afbefd02b7255ef6013cbfb0e801bc2b3b
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, version setup( name="NorthNet", version="0.0", author="William E. Robinson", packages = ["NorthNet"], )
16.777778
37
0.635762
17
151
5.647059
0.764706
0
0
0
0
0
0
0
0
0
0
0.016807
0.211921
151
8
38
18.875
0.789916
0
0
0
0
0
0.251656
0
0
0
0
0
0
1
0
true
0
0.142857
0
0.142857
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
0
0
0
0
0
3
c87b5c6d8dff26ac4e6274273976c58563c8553b
13,380
py
Python
clustering/runner.py
kburnik/naps-clustering
8ceaad61e7f1c3d76ad9e7c7491b705b936a6f19
[ "MIT" ]
null
null
null
clustering/runner.py
kburnik/naps-clustering
8ceaad61e7f1c3d76ad9e7c7491b705b936a6f19
[ "MIT" ]
null
null
null
clustering/runner.py
kburnik/naps-clustering
8ceaad61e7f1c3d76ad9e7c7491b705b936a6f19
[ "MIT" ]
null
null
null
"""Class with high-level methods for processing NAPS and NAPS BE datasets.""" from config import DATA_NAPS_BE_ALL from lib import partition_naps from lib import plot from lib import plot_clusters from lib import plot_clusters_with_probability from lib import plot_setup from lib import read_naps from lib import read_na...
34.307692
78
0.65568
1,827
13,380
4.600985
0.158183
0.03212
0.019986
0.027837
0.412562
0.33833
0.298239
0.275399
0.269807
0.24542
0
0.004765
0.23139
13,380
389
79
34.395887
0.812622
0.145366
0
0.323529
0
0.006536
0.054953
0.031567
0
0
0
0.002571
0
1
0.081699
false
0.003268
0.04902
0.003268
0.183007
0.009804
0
0
0
null
0
0
0
0
0
0
0
0
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
c87d1cba2782a99d03e9fe56c04a83d537ce2a1a
2,936
py
Python
Algorithms_medium/1618. Maximum Font to Fit a Sentence in a Screen.py
VinceW0/Leetcode_Python_solutions
09e9720afce21632372431606ebec4129eb79734
[ "Xnet", "X11" ]
4
2020-08-11T20:45:15.000Z
2021-03-12T00:33:34.000Z
Algorithms_medium/1618. Maximum Font to Fit a Sentence in a Screen.py
VinceW0/Leetcode_Python_solutions
09e9720afce21632372431606ebec4129eb79734
[ "Xnet", "X11" ]
null
null
null
Algorithms_medium/1618. Maximum Font to Fit a Sentence in a Screen.py
VinceW0/Leetcode_Python_solutions
09e9720afce21632372431606ebec4129eb79734
[ "Xnet", "X11" ]
null
null
null
""" 1618. Maximum Font to Fit a Sentence in a Screen Medium You are given a string text. We want to display text on a screen of width w and height h. You can choose any font size from array fonts, which contains the available font sizes in ascending order. You can use the FontInfo interface to get the width and heigh...
32.622222
260
0.642711
456
2,936
4.138158
0.350877
0.029677
0.017488
0.015898
0.077371
0.077371
0.052994
0.052994
0.052994
0.052994
0
0.040534
0.260559
2,936
90
261
32.622222
0.82865
0.793597
0
0.125
0
0
0.013746
0
0
0
0
0
0
1
0.125
false
0
0
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c880853878e1cff80cb76bcab65d294bfff7d0f4
6,407
py
Python
climateeconomics/sos_wrapping/sos_wrapping_dice/tempchange/tempchange_discipline.py
os-climate/witness-core
3ef9a44d86804c5ad57deec3c9916348cb3bfbb8
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
1
2022-01-14T06:37:42.000Z
2022-01-14T06:37:42.000Z
climateeconomics/sos_wrapping/sos_wrapping_dice/tempchange/tempchange_discipline.py
os-climate/witness-core
3ef9a44d86804c5ad57deec3c9916348cb3bfbb8
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
climateeconomics/sos_wrapping/sos_wrapping_dice/tempchange/tempchange_discipline.py
os-climate/witness-core
3ef9a44d86804c5ad57deec3c9916348cb3bfbb8
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
''' Copyright 2022 Airbus SAS Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
33.025773
129
0.605119
774
6,407
4.808786
0.307494
0.029017
0.051585
0.027405
0.192638
0.158248
0.158248
0.12762
0.068243
0.055884
0
0.015368
0.278914
6,407
193
130
33.196891
0.79026
0.167005
0
0.070175
0
0
0.211059
0.013496
0
0
0
0
0
1
0.052632
false
0
0.04386
0
0.184211
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c8813251417f083ef4764a6d0d80104c34d5a26a
56,368
py
Python
pymkm/pymkm_app.py
Guibod/pymkm
58ac805c8072979f3059c7faafc264386ae98141
[ "MIT" ]
null
null
null
pymkm/pymkm_app.py
Guibod/pymkm
58ac805c8072979f3059c7faafc264386ae98141
[ "MIT" ]
null
null
null
pymkm/pymkm_app.py
Guibod/pymkm
58ac805c8072979f3059c7faafc264386ae98141
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ The PyMKM example app. """ __author__ = "Andreas Ehrlund" __version__ = "2.0.4" __license__ = "MIT" import os import csv import json import shelve import logging import logging.handlers import pprint import uuid import sys from datetime import datetime import micromenu import progressbar i...
38.319511
168
0.482064
5,261
56,368
4.942026
0.105303
0.018077
0.005077
0.010769
0.327077
0.239846
0.199577
0.163731
0.127269
0.098923
0
0.004573
0.425809
56,368
1,470
169
38.345578
0.798678
0.037539
0
0.287175
0
0.003934
0.154995
0.018795
0
0
0
0.00068
0
1
0.029111
false
0.00236
0.02203
0
0.076318
0.063729
0
0
0
null
0
0
0
0
0
0
0
0
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
c8829aec3d5b9877236b2115916c5ca2a14ab73b
333
py
Python
Datasets/Terrain/us_ned_physio_diversity.py
monocilindro/qgis-earthengine-examples
82aea8926d34ed3f4ad4a4a345ddbd225819d28f
[ "MIT" ]
646
2019-12-03T06:09:03.000Z
2022-03-28T03:37:08.000Z
Datasets/Terrain/us_ned_physio_diversity.py
csaybar/qgis-earthengine-examples
ba8942683834d2847ff3246bdd1859b36e50fe44
[ "MIT" ]
10
2019-12-30T03:42:44.000Z
2021-05-22T07:34:07.000Z
Datasets/Terrain/us_ned_physio_diversity.py
csaybar/qgis-earthengine-examples
ba8942683834d2847ff3246bdd1859b36e50fe44
[ "MIT" ]
219
2019-12-06T02:20:53.000Z
2022-03-30T15:14:27.000Z
import ee from ee_plugin import Map dataset = ee.Image('CSP/ERGo/1_0/US/physioDiversity') physiographicDiversity = dataset.select('b1') physiographicDiversityVis = { 'min': 0.0, 'max': 1.0, } Map.setCenter(-94.625, 39.825, 7) Map.addLayer( physiographicDiversity, physiographicDiversityVis, 'Physiographic...
23.785714
54
0.738739
40
333
6.1
0.7
0.016393
0
0
0
0
0
0
0
0
0
0.062069
0.129129
333
13
55
25.615385
0.77931
0
0
0
0
0
0.186186
0.093093
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c88407b58490b10ee7b7b9dec303ca0721d6f4c4
281
py
Python
timesheet/forms.py
pincoin/windmill
fe373e5ca27c775a926e9a5538931f9394196d90
[ "MIT" ]
null
null
null
timesheet/forms.py
pincoin/windmill
fe373e5ca27c775a926e9a5538931f9394196d90
[ "MIT" ]
7
2020-02-12T01:22:46.000Z
2021-06-10T18:43:01.000Z
timesheet/forms.py
pincoin/windmill
fe373e5ca27c775a926e9a5538931f9394196d90
[ "MIT" ]
null
null
null
from django import forms from . import models class PunchLogForm(forms.ModelForm): latitude = forms.DecimalField(widget=forms.HiddenInput()) longitude = forms.DecimalField(widget=forms.HiddenInput()) class Meta: model = models.PunchLog fields = ()
20.071429
62
0.701068
29
281
6.793103
0.586207
0.172589
0.233503
0.284264
0.395939
0
0
0
0
0
0
0
0.202847
281
13
63
21.615385
0.879464
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.75
0
1
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
3
c8845f1c14219b145ec8b7fa1bba57f5b2418dfb
497
py
Python
bin/base64util.py
SnowleopardXI/stash
a14f016e5b568095af8d1e78addedc562e3cde70
[ "MIT" ]
null
null
null
bin/base64util.py
SnowleopardXI/stash
a14f016e5b568095af8d1e78addedc562e3cde70
[ "MIT" ]
null
null
null
bin/base64util.py
SnowleopardXI/stash
a14f016e5b568095af8d1e78addedc562e3cde70
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import base64 print('Choose your choice:') n=''' 1:Encode string to base64 2:Decode base64 to string ''' c=int(eval(input(n))) #定义菜单变量 if c == 1: #进入菜单1的判断 print('Type string to be encoded:') inp=input() out = str(base64.encodebytes(inp.encode("utf-8")), "utf...
24.85
63
0.593561
73
497
4.041096
0.506849
0.054237
0.101695
0.115254
0.128814
0
0
0
0
0
0
0.054545
0.225352
497
19
64
26.157895
0.711688
0.092555
0
0
0
0
0.365471
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.058824
0.294118
0
0
0
null
0
0
0
0
0
0
0
0
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
c884c97e5f0b08128955897f09554f008fe34589
9,781
py
Python
Code/nebulae/lib/sc/sc.py
CarlColglazier/QB_Nebulae_V2
3326fa1c672ba0845b28cb55847bea0c9b8e9a05
[ "MIT" ]
8
2020-05-14T20:18:29.000Z
2021-08-08T15:18:28.000Z
Code/nebulae/lib/sc/sc.py
alex-thibodeau/QB_Nebulae_V2
34bcf341ea8eddaa9f9ce2e7c2d2438e00e50f54
[ "MIT" ]
null
null
null
Code/nebulae/lib/sc/sc.py
alex-thibodeau/QB_Nebulae_V2
34bcf341ea8eddaa9f9ce2e7c2d2438e00e50f54
[ "MIT" ]
null
null
null
import time, os, sys import scsynth, scosc server = 0 # reference to app's sc server process sndLoader = 0 synthon = 0 # did we start the scsythn process? ##workingpath = os.getcwd() # must be set to the right path in case something special is need sndpath = os.path.join( os.getcwd() , 'sounds' ) synthdefpath = os....
37.190114
120
0.600552
1,304
9,781
4.465491
0.263037
0.010304
0.016486
0.029195
0.305513
0.250215
0.233385
0.214666
0.214666
0.202645
0
0.009535
0.313772
9,781
262
121
37.332061
0.858015
0.10684
0
0.12963
0
0.009259
0.091086
0.005842
0
0
0
0
0
0
null
null
0
0.018519
null
null
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
c884d28504ed798c203413f680ec73fe70726669
357
py
Python
test/test_api/test_routes/test_about.py
MRmlik12/biblioteczka
3fcde24cd42d0155c3a20585d20ac0d0a7989101
[ "MIT" ]
null
null
null
test/test_api/test_routes/test_about.py
MRmlik12/biblioteczka
3fcde24cd42d0155c3a20585d20ac0d0a7989101
[ "MIT" ]
3
2021-07-29T08:34:09.000Z
2021-07-29T10:12:34.000Z
test/test_api/test_routes/test_about.py
MRmlik12/catana
3fcde24cd42d0155c3a20585d20ac0d0a7989101
[ "MIT" ]
null
null
null
import pytest from fastapi import FastAPI from httpx import AsyncClient from starlette.status import HTTP_200_OK pytestmark = pytest.mark.asyncio async def test_about_route_if_status_code_is_ok(app: FastAPI, client: AsyncClient): response = await client.request("GET", app.url_path_for("index_router")) assert...
29.75
83
0.809524
53
357
5.169811
0.641509
0.051095
0.065693
0
0
0
0
0
0
0
0
0.019108
0.120448
357
11
84
32.454545
0.853503
0
0
0
0
0
0.042017
0
0
0
0
0
0.125
1
0
false
0
0.5
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
1
0
0
0
0
1
c88551ac723dd08106aa9434592b74d5d60bf757
2,614
py
Python
linefinder/job_scripts/linefinder_sightlines.py
zhafen/linefinder
0f4f36a83246f1b833d0c281e635d86be3d1eb95
[ "MIT" ]
null
null
null
linefinder/job_scripts/linefinder_sightlines.py
zhafen/linefinder
0f4f36a83246f1b833d0c281e635d86be3d1eb95
[ "MIT" ]
12
2018-08-26T14:10:18.000Z
2021-04-15T21:48:58.000Z
linefinder/job_scripts/linefinder_sightlines.py
zhafen/linefinder
0f4f36a83246f1b833d0c281e635d86be3d1eb95
[ "MIT" ]
1
2021-05-19T16:45:21.000Z
2021-05-19T16:45:21.000Z
import linefinder.linefinder as linefinder import linefinder.config as linefinder_config import linefinder.utils.file_management as file_management ######################################################################## sim_name = 'm12i' '''The simulation to run tracking on.''' tag = '{}_sightline'.format( sim_nam...
30.045977
82
0.630451
326
2,614
4.773006
0.484663
0.031491
0.008997
0.010283
0
0
0
0
0
0
0
0.013046
0.237567
2,614
86
83
30.395349
0.767687
0.193191
0
0.033333
0
0
0.271704
0.083601
0
0
0
0
0
1
0
false
0
0.05
0
0.05
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
c8864bea2e2f25d967c38986aef9fb5517d5143b
285
py
Python
SwordToOffer/SwordToOffer-PythonSolution/47_Sum_Solution.py
dingchaofan/AlgorithmSolution
46198e3f0dbda867e7b75f0d0e52be5f0181238a
[ "MIT" ]
1
2020-06-23T02:18:39.000Z
2020-06-23T02:18:39.000Z
SwordToOffer/SwordToOffer-PythonSolution/47_Sum_Solution.py
dingchaofan/AlgorithmSolution
46198e3f0dbda867e7b75f0d0e52be5f0181238a
[ "MIT" ]
null
null
null
SwordToOffer/SwordToOffer-PythonSolution/47_Sum_Solution.py
dingchaofan/AlgorithmSolution
46198e3f0dbda867e7b75f0d0e52be5f0181238a
[ "MIT" ]
1
2021-01-11T12:07:03.000Z
2021-01-11T12:07:03.000Z
# 47. 求1+2+3+...+n # 求1+2+3+...+n,要求不能使用乘除法、for、while、if、else、switch、case等关键字及条件判断语句(A?B:C)。 # -*- coding:utf-8 -*- class Solution: def Sum_Solution(self, n): # write code here res = n if(res): res += self.Sum_Solution(n-1) return res
21.923077
73
0.540351
44
285
3.454545
0.659091
0.039474
0.052632
0.065789
0
0
0
0
0
0
0
0.048077
0.270175
285
13
74
21.923077
0.682692
0.438596
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
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
c8870211f55a315e2890fcb0bc548ae67550546d
137
py
Python
apps/users/urls.py
akundev/akundotdev
98b47925b948c920789c5acebad86944162bf53a
[ "Apache-2.0" ]
null
null
null
apps/users/urls.py
akundev/akundotdev
98b47925b948c920789c5acebad86944162bf53a
[ "Apache-2.0" ]
3
2021-03-30T14:21:08.000Z
2021-07-07T03:04:26.000Z
apps/users/urls.py
almazkun/akundotdev
98b47925b948c920789c5acebad86944162bf53a
[ "Apache-2.0" ]
null
null
null
from django.urls import path from .views import AboutTemplateView urlpatterns = [path("", AboutTemplateView.as_view(), name="about")]
19.571429
67
0.759124
16
137
6.4375
0.75
0
0
0
0
0
0
0
0
0
0
0
0.116788
137
6
68
22.833333
0.85124
0
0
0
0
0
0.036496
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
c8879bded50ae8fbfe4e76e5d099e8ada2d7784b
2,969
py
Python
fedireads/broadcast.py
thricedotted/fedireads
a1fbba1ba31e569489378176b0894a0a8907c14c
[ "CC0-1.0" ]
null
null
null
fedireads/broadcast.py
thricedotted/fedireads
a1fbba1ba31e569489378176b0894a0a8907c14c
[ "CC0-1.0" ]
null
null
null
fedireads/broadcast.py
thricedotted/fedireads
a1fbba1ba31e569489378176b0894a0a8907c14c
[ "CC0-1.0" ]
1
2021-01-30T22:38:20.000Z
2021-01-30T22:38:20.000Z
''' send out activitypub messages ''' from base64 import b64encode from Crypto.PublicKey import RSA from Crypto.Signature import pkcs1_15 from Crypto.Hash import SHA256 from datetime import datetime import json import requests from fedireads import incoming from fedireads.settings import DOMAIN def get_recipients(us...
32.988889
76
0.630852
355
2,969
5.185915
0.394366
0.0239
0.021184
0.01195
0.064096
0.036936
0.036936
0
0
0
0
0.010919
0.259683
2,969
89
77
33.359551
0.826661
0.176154
0
0.03125
0
0
0.114428
0.010779
0
0
0
0.011236
0
1
0.046875
false
0
0.15625
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
c887c627a5de312187bb987f26d6bea4c3b72084
733
py
Python
polls/views.py
druss16/danslist
ad06f8fa8df5936db7a60e9820f0c89a77f8879a
[ "MIT" ]
null
null
null
polls/views.py
druss16/danslist
ad06f8fa8df5936db7a60e9820f0c89a77f8879a
[ "MIT" ]
null
null
null
polls/views.py
druss16/danslist
ad06f8fa8df5936db7a60e9820f0c89a77f8879a
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from django.template import RequestContext, loader from .models import Question # Create your views here. def index(request): latest_question_list = Question.objects.order_by('-pub_date')[:5] context = {'latest_question_list': latest_question_...
29.32
68
0.777626
102
733
5.45098
0.441176
0.107914
0.097122
0.082734
0.143885
0.143885
0.143885
0
0
0
0
0.001558
0.124147
733
24
69
30.541667
0.864486
0.031378
0
0
0
0
0.217021
0
0
0
0
0
0
1
0.266667
false
0
0.266667
0.133333
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
c889096998408750f88d5b4c179ee06539614ee4
48,562
py
Python
hawc_hal/HAL.py
torresramiro350/hawc_hal
048536df22bdfa3ace2925e60d802beb76775849
[ "BSD-3-Clause" ]
null
null
null
hawc_hal/HAL.py
torresramiro350/hawc_hal
048536df22bdfa3ace2925e60d802beb76775849
[ "BSD-3-Clause" ]
null
null
null
hawc_hal/HAL.py
torresramiro350/hawc_hal
048536df22bdfa3ace2925e60d802beb76775849
[ "BSD-3-Clause" ]
null
null
null
from __future__ import division from builtins import str from builtins import range from astropy.utils.misc import isiterable from past.utils import old_div import copy import collections import numpy as np import healpy as hp import astropy.units as u import matplotlib.pyplot as plt import matplotlib as mpl from sci...
38.20771
126
0.609942
6,121
48,562
4.574743
0.123182
0.008214
0.02357
0.011999
0.393543
0.337833
0.285908
0.242376
0.210842
0.2017
0
0.008056
0.314958
48,562
1,270
127
38.237795
0.833679
0.254438
0
0.183962
0
0.001572
0.043765
0.005003
0
0
0
0
0.009434
1
0.045597
false
0.001572
0.051887
0.001572
0.133648
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
c88aff50b9e6ce0d5c309be594a03b1f208a90db
15,227
py
Python
sshcustodian/sshcustodian.py
jkglasbrenner/sshcustodian
870d1088f27e1528e27f94f55f2efad7dad32d5d
[ "MIT" ]
null
null
null
sshcustodian/sshcustodian.py
jkglasbrenner/sshcustodian
870d1088f27e1528e27f94f55f2efad7dad32d5d
[ "MIT" ]
null
null
null
sshcustodian/sshcustodian.py
jkglasbrenner/sshcustodian
870d1088f27e1528e27f94f55f2efad7dad32d5d
[ "MIT" ]
null
null
null
# File: sshcustodian/sshcustodian.py # -*- coding: utf-8 -*- # Python 2/3 Compatibility from __future__ import (unicode_literals, division, absolute_import, print_function) from six.moves import filterfalse """ This module creates a subclass of the main Custodian class in the Custodian project ...
43.505714
80
0.568858
1,786
15,227
4.653415
0.218925
0.030321
0.031765
0.021658
0.272651
0.209842
0.183371
0.142943
0.142943
0.142943
0
0.003191
0.361923
15,227
349
81
43.630372
0.852203
0.248506
0
0.202899
0
0
0.062481
0
0
0
0
0
0
1
0.043478
false
0.024155
0.082126
0
0.144928
0.004831
0
0
0
null
0
0
0
0
0
0
0
0
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
c88ca1454e3c43e792033b4722a580761e424d90
17,217
py
Python
sherlock/__init__.py
akudelka/sherlock
9e85f36c01e0cb1d495283f024423bc60c3f7a4e
[ "MIT" ]
165
2015-01-12T09:09:19.000Z
2022-03-14T11:26:23.000Z
sherlock/__init__.py
akudelka/sherlock
9e85f36c01e0cb1d495283f024423bc60c3f7a4e
[ "MIT" ]
35
2015-01-07T14:57:24.000Z
2022-03-24T17:43:28.000Z
sherlock/__init__.py
akudelka/sherlock
9e85f36c01e0cb1d495283f024423bc60c3f7a4e
[ "MIT" ]
38
2015-03-11T09:10:05.000Z
2022-01-17T11:29:38.000Z
''' Sherlock: Distributed Locks with a choice of backend ==================================================== :mod:`sherlock` is a library that provides easy-to-use distributed inter-process locks and also allows you to choose a backend of your choice for lock synchronization. |Build Status| |Coverage Status| .. |Bu...
34.228628
100
0.606319
2,063
17,217
4.996122
0.204072
0.01921
0.010478
0.009314
0.206171
0.177064
0.136703
0.125546
0.125546
0.11856
0
0.002819
0.299355
17,217
502
101
34.296813
0.851612
0.68566
0
0.126984
0
0
0.181875
0.004615
0
0
0
0
0
1
0.071429
false
0
0.039683
0.007937
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
c88d252547df6d3f79fae0aefc72512a6ebb61d4
7,199
py
Python
misc.py
ChristophReich1996/Semantic_Pyramid_for_Image_Generation
00e6e7787a5d90b9c09f50a5d7039cb9b5cd4509
[ "MIT" ]
46
2020-04-13T07:54:49.000Z
2022-03-01T06:29:15.000Z
misc.py
ChristophReich1996/Semantic_Pyramid_for_Image_Generation
00e6e7787a5d90b9c09f50a5d7039cb9b5cd4509
[ "MIT" ]
2
2020-07-27T15:11:09.000Z
2021-04-04T10:58:03.000Z
misc.py
ChristophReich1996/Semantic_Pyramid_for_Image_Generation
00e6e7787a5d90b9c09f50a5d7039cb9b5cd4509
[ "MIT" ]
5
2020-06-22T01:56:30.000Z
2021-12-22T04:34:49.000Z
from typing import List, Tuple, Union import torch import torch.nn as nn import torch.nn.functional as F import numpy as np import random from skimage.draw import random_shapes import os import json def get_masks_for_training( mask_shapes: List[Tuple] = [(1, 128, 128), (1, 64, 64), (1, 32, 32), (1, 1...
44.99375
120
0.607862
969
7,199
4.389061
0.190918
0.041383
0.028215
0.037856
0.462732
0.45027
0.446038
0.446038
0.410299
0.410299
0
0.03268
0.2774
7,199
159
121
45.27673
0.78489
0.263648
0
0.362637
0
0
0.007845
0
0
0
0
0
0
1
0.087912
false
0
0.098901
0.010989
0.252747
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
c88f24e0c4f56b49a1514bbc5fcfcc00efd5e15c
4,204
py
Python
EasyMCDM/models/Irmo.py
qanastek/EasyMCDM
7fa2e2dfe9397834ca9f50211ea2717a16785394
[ "MIT" ]
4
2022-03-05T20:51:38.000Z
2022-03-15T17:10:22.000Z
EasyMCDM/models/Irmo.py
qanastek/EasyMCDM
7fa2e2dfe9397834ca9f50211ea2717a16785394
[ "MIT" ]
null
null
null
EasyMCDM/models/Irmo.py
qanastek/EasyMCDM
7fa2e2dfe9397834ca9f50211ea2717a16785394
[ "MIT" ]
1
2022-03-08T13:45:22.000Z
2022-03-08T13:45:22.000Z
import math from typing import Dict, List, Tuple, Union from EasyMCDM.models.MCDM import MCDM # Instant-Runoff Multicriteria Optimization (IRMO) class Irmo(MCDM): # Memory allocation __slots__ = ['verbose', 'matrix', 'names', 'indexes', 'preferences', 'matrix'] # Constructor def __init__...
37.873874
218
0.562559
515
4,204
4.483495
0.271845
0.058467
0.02382
0.022521
0.234301
0.189693
0.162841
0.162841
0.162841
0.122997
0
0.01527
0.330162
4,204
111
219
37.873874
0.804688
0.142245
0
0.083333
0
0
0.131837
0
0
0
0
0
0.066667
1
0.083333
false
0
0.05
0
0.233333
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
c8919966f9b0c8cb69e17d80a649cb9b3d0b7138
2,046
py
Python
ramp/estimators/r.py
kvh/ramp
8618ce673e49b95f40c9659319c3cb72281dacac
[ "MIT" ]
214
2015-01-01T07:42:25.000Z
2022-03-08T08:57:49.000Z
ramp/estimators/r.py
Marigold/ramp
f9ddea84bc3b5097c0ddb8a3f71a0fce1775ba76
[ "MIT" ]
8
2020-05-19T20:15:40.000Z
2020-05-19T20:15:41.000Z
ramp/estimators/r.py
Marigold/ramp
f9ddea84bc3b5097c0ddb8a3f71a0fce1775ba76
[ "MIT" ]
87
2015-01-13T19:25:15.000Z
2021-05-16T10:40:05.000Z
import numpy as np from rpy2.robjects import FloatVector from rpy2.robjects.packages import importr from rpy2 import robjects stats = importr('stats') base = importr('base') def matrix_to_r_dataframe(x): rx = FloatVector(np.ravel(x)) rx = robjects.r['matrix'](rx, nrow = len(x), byrow=True) ret...
29.652174
74
0.610948
278
2,046
4.363309
0.251799
0.046167
0.051937
0.103875
0.301731
0.236603
0.189613
0.189613
0.189613
0.131904
0
0.005215
0.250244
2,046
68
75
30.088235
0.785528
0.030303
0
0.294118
0
0
0.033317
0
0
0
0
0
0
1
0.176471
false
0
0.156863
0
0.490196
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
c89234777cdd2b2357d8a397dcec12fefab43a56
1,138
py
Python
tests/decorators/test_timer.py
ShaneMicro/azure-functions-python-library
f56564effbf291a27e1bd5751a38484af387bb7f
[ "MIT" ]
null
null
null
tests/decorators/test_timer.py
ShaneMicro/azure-functions-python-library
f56564effbf291a27e1bd5751a38484af387bb7f
[ "MIT" ]
1
2022-03-02T11:49:02.000Z
2022-03-02T11:49:02.000Z
tests/decorators/test_timer.py
ShaneMicro/azure-functions-python-library
f56564effbf291a27e1bd5751a38484af387bb7f
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import unittest from azure.functions.decorators.constants import TIMER_TRIGGER from azure.functions.decorators.core import BindingDirection, DataType from azure.functions.decorators.timer import TimerTrigger class TestTim...
37.933333
70
0.598418
102
1,138
6.509804
0.558824
0.040663
0.081325
0.126506
0
0
0
0
0
0
0
0
0.311951
1,138
29
71
39.241379
0.84802
0.079086
0
0
0
0
0.1159
0
0
0
0
0
0.086957
1
0.043478
false
0
0.173913
0
0.26087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c895e6b35498811fbcaa8204ceff2eff7744a4b3
8,368
py
Python
src/client.py
Da3dalu2/SimpleNetworkSimulator
447bc099b35720ab8d6e8a9703bb2354f1f01cae
[ "MIT" ]
null
null
null
src/client.py
Da3dalu2/SimpleNetworkSimulator
447bc099b35720ab8d6e8a9703bb2354f1f01cae
[ "MIT" ]
null
null
null
src/client.py
Da3dalu2/SimpleNetworkSimulator
447bc099b35720ab8d6e8a9703bb2354f1f01cae
[ "MIT" ]
null
null
null
import socket import threading import time from threading import Thread import utilities as utils import error_handling as check BUFFER_SIZE = 1024 BROADCAST_MAC = "FF:FF:FF:FF:FF:FF" class ClientThread(threading.Thread): """ Initializes the client. The event synchronization primitive, among the initial...
32.30888
80
0.603848
963
8,368
5.011423
0.186916
0.089101
0.052217
0.055118
0.456486
0.410485
0.373187
0.30978
0.293618
0.245545
0
0.001735
0.311066
8,368
258
81
32.434109
0.835386
0.059154
0
0.357143
0
0
0.113235
0.003064
0
0
0
0
0
1
0.053571
false
0
0.035714
0
0.10119
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
c8962401f6f771809773c10b2765a3a3a3c92f1b
2,569
py
Python
great_expectations/rule_based_profiler/types/builder.py
afeld/great_expectations
ca2dc1f8951c727040d680b543aee91753c2c862
[ "Apache-2.0" ]
1
2022-01-26T18:51:29.000Z
2022-01-26T18:51:29.000Z
great_expectations/rule_based_profiler/types/builder.py
afeld/great_expectations
ca2dc1f8951c727040d680b543aee91753c2c862
[ "Apache-2.0" ]
null
null
null
great_expectations/rule_based_profiler/types/builder.py
afeld/great_expectations
ca2dc1f8951c727040d680b543aee91753c2c862
[ "Apache-2.0" ]
1
2021-11-29T07:37:28.000Z
2021-11-29T07:37:28.000Z
import json from great_expectations.core.util import convert_to_json_serializable from great_expectations.types import SerializableDictDot, safe_deep_copy from great_expectations.util import deep_filter_properties_iterable class Builder(SerializableDictDot): """ A Builder provides methods to serialize any bu...
42.114754
119
0.69093
318
2,569
5.308176
0.273585
0.09064
0.049763
0.059242
0.547986
0.547986
0.547986
0.547986
0.547986
0.525474
0
0.009635
0.232386
2,569
60
120
42.816667
0.846349
0.501752
0
0
0
0
0
0
0
0
0
0.05
0
1
0.153846
false
0
0.153846
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
1
0
0
0
0
0
0
0
0
0
0
1
c8963aa9c2fd19d072617ac3bc9699a61aa29633
449
py
Python
Day_3_Boolean_Logic_Conditionals/Day3_ex1_RL.py
lenovreg/Python_TietoEvry_Feb2022
1e37f524c1b78bb9752500261a953b812fc697db
[ "MIT" ]
null
null
null
Day_3_Boolean_Logic_Conditionals/Day3_ex1_RL.py
lenovreg/Python_TietoEvry_Feb2022
1e37f524c1b78bb9752500261a953b812fc697db
[ "MIT" ]
null
null
null
Day_3_Boolean_Logic_Conditionals/Day3_ex1_RL.py
lenovreg/Python_TietoEvry_Feb2022
1e37f524c1b78bb9752500261a953b812fc697db
[ "MIT" ]
null
null
null
# #1. Health check # # Ask user for their temperature. # # If the user enters below 35, then output "not too cold" # # If 35 to 37 (inclusive), output "all right" # # If the temperature over 37, then output "possible fever" # user_temp = float(input('What is your temperature?')) if user_temp < 35: print('not too ...
32.071429
62
0.679287
70
449
4.3
0.514286
0.106312
0.066445
0
0
0
0
0
0
0
0
0.047354
0.200445
449
13
63
34.538462
0.791086
0.512249
0
0
0
0
0.296117
0
0
0
0
0
0
1
0
false
0
0
0
0
0.428571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1