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
370bb4fe068e3ba3982bd58f8f7bad72c2b4ecd4
257
py
Python
demos/floc_sample/createSiteList.py
apakrash/floc_simulator
6276d9c94e953fb704ca687e7234658a699a434c
[ "MIT" ]
null
null
null
demos/floc_sample/createSiteList.py
apakrash/floc_simulator
6276d9c94e953fb704ca687e7234658a699a434c
[ "MIT" ]
null
null
null
demos/floc_sample/createSiteList.py
apakrash/floc_simulator
6276d9c94e953fb704ca687e7234658a699a434c
[ "MIT" ]
null
null
null
import json siteList = [] for i in range(1,20): siteList.append(input(f'Enter site {i}: ')) print(siteList) #print(siteList) with open('host_list.json', 'w', encoding='utf-8') as f: json.dump(siteList, f, ensure_ascii=False, indent=4)
21.416667
57
0.645914
40
257
4.1
0.75
0.158537
0
0
0
0
0
0
0
0
0
0.02381
0.182879
257
12
58
21.416667
0.757143
0.058366
0
0
0
0
0.155844
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
370ec5a0db02fa84a2f69c10a570dca652b97712
264
py
Python
output/models/nist_data/atomic/g_year/schema_instance/nistschema_sv_iv_atomic_g_year_min_exclusive_4_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/atomic/g_year/schema_instance/nistschema_sv_iv_atomic_g_year_min_exclusive_4_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/atomic/g_year/schema_instance/nistschema_sv_iv_atomic_g_year_min_exclusive_4_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.atomic.g_year.schema_instance.nistschema_sv_iv_atomic_g_year_min_exclusive_4_xsd.nistschema_sv_iv_atomic_g_year_min_exclusive_4 import NistschemaSvIvAtomicGYearMinExclusive4 __all__ = [ "NistschemaSvIvAtomicGYearMinExclusive4", ]
44
202
0.897727
33
264
6.454545
0.606061
0.098592
0.15493
0.187793
0.356808
0.356808
0.356808
0.356808
0.356808
0
0
0.016
0.05303
264
5
203
52.8
0.836
0
0
0
0
0
0.143939
0.143939
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
370f9cd890c1720a09c6e585711c280c23263c07
39
py
Python
checkov/dockerfile/__init__.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
4,013
2019-12-09T13:16:54.000Z
2022-03-31T14:31:01.000Z
checkov/dockerfile/__init__.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
1,258
2019-12-17T09:55:51.000Z
2022-03-31T19:17:17.000Z
checkov/dockerfile/__init__.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
638
2019-12-19T08:57:38.000Z
2022-03-30T21:38:37.000Z
from checkov.dockerfile.checks import *
39
39
0.846154
5
39
6.6
1
0
0
0
0
0
0
0
0
0
0
0
0.076923
39
1
39
39
0.916667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
3711dfaf9aadca685cb6c92e813e94fd2708d1c2
4,354
py
Python
tests/core/contracts/test_contract_constructor_encoding.py
geofferyj/web3.py
b406663f59d5b228487951f019eaf45b3eb9413b
[ "MIT" ]
3,041
2017-11-22T16:23:46.000Z
2022-03-31T15:19:39.000Z
tests/core/contracts/test_contract_constructor_encoding.py
geofferyj/web3.py
b406663f59d5b228487951f019eaf45b3eb9413b
[ "MIT" ]
1,506
2017-11-22T15:44:34.000Z
2022-03-31T18:40:05.000Z
tests/core/contracts/test_contract_constructor_encoding.py
geofferyj/web3.py
b406663f59d5b228487951f019eaf45b3eb9413b
[ "MIT" ]
1,095
2017-11-22T18:20:22.000Z
2022-03-31T13:05:31.000Z
import pytest from eth_utils import ( encode_hex, remove_0x_prefix, ) def test_contract_constructor_abi_encoding_with_no_constructor_fn(MathContract, MATH_CODE): deploy_data = MathContract._encode_constructor_data() assert deploy_data == MATH_CODE def test_contract_constructor_abi_encoding_with_con...
36.588235
175
0.714515
393
4,354
7.557252
0.249364
0.03367
0.056566
0.052525
0.525926
0.486195
0.419529
0.266667
0.246801
0.246801
0
0.184536
0.200965
4,354
118
176
36.898305
0.669158
0.021819
0
0.346939
0
0
0.210353
0.127529
0
0
0.127059
0
0.081633
1
0.081633
false
0.010204
0.020408
0
0.102041
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
371439527f71f5b5ea0e623382624347691d2251
832
py
Python
Pasture_Growth_Modelling/initialisation_support/define_reseed_params.py
Komanawa-Solutions-Ltd/SLMACC-2020-CSRA
914b6912c5f5b522107aa9406fb3d823e61c2ebe
[ "Apache-2.0" ]
null
null
null
Pasture_Growth_Modelling/initialisation_support/define_reseed_params.py
Komanawa-Solutions-Ltd/SLMACC-2020-CSRA
914b6912c5f5b522107aa9406fb3d823e61c2ebe
[ "Apache-2.0" ]
null
null
null
Pasture_Growth_Modelling/initialisation_support/define_reseed_params.py
Komanawa-Solutions-Ltd/SLMACC-2020-CSRA
914b6912c5f5b522107aa9406fb3d823e61c2ebe
[ "Apache-2.0" ]
null
null
null
""" Author: Matt Hanson Created: 18/12/2020 9:30 AM """ from Pasture_Growth_Modelling.initialisation_support.inital_long_term_runs import run_past_basgra_irrigated, \ run_past_basgra_dryland, plot_multiple_results import pandas as pd import numpy as np if __name__ == '__main__': reseed=True irr_ox = ru...
41.6
110
0.706731
121
832
4.487603
0.553719
0.064457
0.119705
0.121547
0
0
0
0
0
0
0
0.036496
0.176683
832
20
111
41.6
0.756204
0.05649
0
0
0
0
0.064516
0
0
0
0
0
0
1
0
false
0
0.214286
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
3714521e447b9677165a8e7963ed19bc3ce14d21
64
py
Python
vintageColorizer/__init__.py
Team-16-B/VintageColorizer
80c502fae32f5d4ca92727f2ffa63a48331bd8a8
[ "MIT" ]
1
2021-06-18T09:16:58.000Z
2021-06-18T09:16:58.000Z
vintageColorizer/__init__.py
Team-16-B/VintageColorizer
80c502fae32f5d4ca92727f2ffa63a48331bd8a8
[ "MIT" ]
null
null
null
vintageColorizer/__init__.py
Team-16-B/VintageColorizer
80c502fae32f5d4ca92727f2ffa63a48331bd8a8
[ "MIT" ]
null
null
null
from vintageColorizer._device import _Device device = _Device()
21.333333
44
0.828125
7
64
7.142857
0.571429
0.48
0
0
0
0
0
0
0
0
0
0
0.109375
64
3
45
21.333333
0.877193
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
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
1
0
0
0
0
4
3714939ff710373dc09f1b61b849805c96854964
5,570
py
Python
system_maintenance/admin.py
mfcovington/django-system-maintenance
f28c5480ddfc862e7114846ae452ec73ed747029
[ "BSD-3-Clause" ]
2
2018-12-08T01:11:17.000Z
2018-12-14T22:54:04.000Z
system_maintenance/admin.py
mfcovington/django-system-maintenance
f28c5480ddfc862e7114846ae452ec73ed747029
[ "BSD-3-Clause" ]
null
null
null
system_maintenance/admin.py
mfcovington/django-system-maintenance
f28c5480ddfc862e7114846ae452ec73ed747029
[ "BSD-3-Clause" ]
1
2020-11-21T18:25:50.000Z
2020-11-21T18:25:50.000Z
from django import forms from django.contrib import admin from .models import (DocumentationRecord, Hardware, MaintenanceRecord, MaintenanceRecordRelationship, MaintenanceType, Software, SysAdmin, System) class ReferencingRecordInline(admin.TabularInline): model = MaintenanceRecordRelationship fk_name = ...
22.191235
79
0.597846
410
5,570
7.739024
0.239024
0.052001
0.026473
0.034037
0.150331
0.083202
0
0
0
0
0
0
0.29623
5,570
250
80
22.28
0.809439
0
0
0.494898
0
0
0.247038
0.105566
0
0
0
0
0
1
0.010204
false
0
0.015306
0
0.255102
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
371517cfafbdaa11e93899d8223418ed40816171
859
py
Python
BulkSmsApi/Parse.py
DonnC/BulkSmsZW-Api
9e4559bbff1c448a9ebb9b271ecdc7044f00801a
[ "MIT" ]
4
2019-03-30T00:44:36.000Z
2021-05-19T13:50:11.000Z
BulkSmsApi/Parse.py
DonnC/BulkSmsZW-Api
9e4559bbff1c448a9ebb9b271ecdc7044f00801a
[ "MIT" ]
null
null
null
BulkSmsApi/Parse.py
DonnC/BulkSmsZW-Api
9e4559bbff1c448a9ebb9b271ecdc7044f00801a
[ "MIT" ]
1
2019-08-21T20:24:16.000Z
2019-08-21T20:24:16.000Z
# handle url encoding # do 'quote' on url from urllib.parse import quote class Parse(object): ''' parse and encode webservice payload ''' def __init__(self, web_url, quote_body, quote_recipients): self.web_url = web_url self.quote_body = quote_body ...
26.84375
63
0.582072
96
859
4.875
0.291667
0.115385
0.064103
0.08547
0
0
0
0
0
0
0
0
0.313155
859
32
64
26.84375
0.79322
0.152503
0
0
0
0
0.013595
0
0
0
0
0
0
1
0.294118
false
0
0.058824
0.058824
0.647059
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
371903e153c996cac483357a3df834531c766dc4
9,579
py
Python
ldap2pg/format.py
jeanpommier/ldap2pg
58a193ac79c13b99c13a2b963492678f553731d1
[ "PostgreSQL" ]
151
2017-06-29T08:09:33.000Z
2022-03-07T21:50:27.000Z
ldap2pg/format.py
jeanpommier/ldap2pg
58a193ac79c13b99c13a2b963492678f553731d1
[ "PostgreSQL" ]
363
2017-06-19T15:01:12.000Z
2022-03-16T08:34:35.000Z
ldap2pg/format.py
jeanpommier/ldap2pg
58a193ac79c13b99c13a2b963492678f553731d1
[ "PostgreSQL" ]
31
2017-06-16T08:40:54.000Z
2021-11-11T12:37:01.000Z
import itertools from copy import deepcopy from string import Formatter from .utils import unicode class FormatSpec(object): # A format string to generate e.g. role names. def __init__(self, spec): self.spec = spec self._fields = None def __repr__(self): return "%s(%r)" % (self....
29.383436
79
0.549431
1,104
9,579
4.548007
0.206522
0.025891
0.010954
0.016929
0.096793
0.027485
0.010357
0
0
0
0
0.000804
0.35108
9,579
325
80
29.473846
0.80695
0.21662
0
0.247706
1
0
0.024701
0
0
0
0
0
0
1
0.169725
false
0
0.018349
0.073394
0.348624
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
37192bf521db3c020565d1e29a16401738175408
1,190
py
Python
bozkurt-port-scanner V1.0.py
B3zkurt/bozkurt-port-scanner
5a1f485ab042abc71d5307e433d845c7adbcf168
[ "BSL-1.0" ]
null
null
null
bozkurt-port-scanner V1.0.py
B3zkurt/bozkurt-port-scanner
5a1f485ab042abc71d5307e433d845c7adbcf168
[ "BSL-1.0" ]
null
null
null
bozkurt-port-scanner V1.0.py
B3zkurt/bozkurt-port-scanner
5a1f485ab042abc71d5307e433d845c7adbcf168
[ "BSL-1.0" ]
1
2022-02-11T18:24:13.000Z
2022-02-11T18:24:13.000Z
from socket import * def banner(): print(""" ########################################################### #------------------PORT SCAN V 1.0-----------------------# #--------------------Coder By Bozkurt-------------------# ########################################################### """) ...
36.060606
107
0.428571
96
1,190
5.145833
0.625
0.04251
0.024292
0.044534
0
0
0
0
0
0
0
0.02381
0.329412
1,190
32
108
37.1875
0.595238
0.20084
0
0.090909
0
0
0.328603
0.241266
0
0
0
0
0
1
0.090909
false
0
0.045455
0
0.136364
0.136364
0
0
0
null
0
0
0
0
0
0
0
0
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
371a9f6e54991beac7038e5bc052194b2305b7a7
5,413
py
Python
ner/evaluation/evaluator.py
BonnierNews/lukas-ner-model
1f7f688f9b0f1e7b7cb66c42f188358d27a0be09
[ "MIT" ]
null
null
null
ner/evaluation/evaluator.py
BonnierNews/lukas-ner-model
1f7f688f9b0f1e7b7cb66c42f188358d27a0be09
[ "MIT" ]
null
null
null
ner/evaluation/evaluator.py
BonnierNews/lukas-ner-model
1f7f688f9b0f1e7b7cb66c42f188358d27a0be09
[ "MIT" ]
null
null
null
from string import punctuation import random import jsonlines import regex class Evaluator: """Class for evaluating NER models on two IOB tagged datasets: SUC 3.0 and Web News 2012, both from Språkbanken.""" def __init__(self, suc): self.suc = suc if suc: self.path = "data/input...
33.621118
119
0.53741
742
5,413
3.774933
0.221024
0.012853
0.014995
0.007497
0.145305
0.102106
0.077115
0.064263
0.064263
0.044984
0
0.010881
0.320894
5,413
160
120
33.83125
0.751088
0.130242
0
0.037383
0
0
0.063601
0.010958
0
0
0
0
0
1
0.093458
false
0
0.037383
0
0.224299
0.009346
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
371ae39ecd84c32c520c1b09dada1780df5bee65
9,456
py
Python
util/graph.py
natduca/ndbg
f8da43be62dac18072e9b0e6e5ecd0d1818aea4d
[ "Apache-2.0" ]
5
2016-05-12T08:48:41.000Z
2018-07-17T00:48:32.000Z
util/graph.py
natduca/ndbg
f8da43be62dac18072e9b0e6e5ecd0d1818aea4d
[ "Apache-2.0" ]
1
2022-01-16T12:18:50.000Z
2022-01-16T12:18:50.000Z
util/graph.py
natduca/ndbg
f8da43be62dac18072e9b0e6e5ecd0d1818aea4d
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
27.893805
99
0.64467
1,385
9,456
4.088087
0.175451
0.026846
0.050865
0.058283
0.248146
0.139173
0.099435
0.055104
0.046273
0.037089
0
0.022825
0.212352
9,456
338
100
27.976331
0.737379
0.103215
0
0.178138
0
0
0.019966
0
0
0
0
0
0
0
null
null
0
0.032389
null
null
0.012146
0
0
0
null
0
0
0
0
0
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
371b4de36b52d84cac233275c0bbe8ca788c6d87
825
py
Python
files/sources_raw/multiwordnet/jpn/jpn2tab.py
rvjansen/flp
989b6c0781b231e4cf2d4c1c0300e20f3f2f9aa6
[ "CC0-1.0" ]
1
2022-02-20T10:00:28.000Z
2022-02-20T10:00:28.000Z
files/sources_raw/multiwordnet/jpn/jpn2tab.py
rvjansen/flp
989b6c0781b231e4cf2d4c1c0300e20f3f2f9aa6
[ "CC0-1.0" ]
8
2022-01-10T01:35:58.000Z
2022-01-16T02:49:41.000Z
files/sources_raw/multiwordnet/jpn/jpn2tab.py
rvjansen/flp
989b6c0781b231e4cf2d4c1c0300e20f3f2f9aa6
[ "CC0-1.0" ]
null
null
null
#!/usr/share/python # -*- encoding: utf-8 -*- # # Extract synset-word pairs from the Japanese Wordnet # import sys import codecs #import re wndata="/home/bond/svn/wnja-code/tab/" wnname = "Japanese Wordnet" wnlang = "jpn" wnurl = "http://nlpwww.nict.go.jp/wn-ja/" wnlicense = "wordnet" # # header # outfile = "wn-dat...
21.710526
67
0.613333
131
825
3.862595
0.534351
0.019763
0.023715
0.01581
0.06917
0
0
0
0
0
0
0.004386
0.170909
825
37
68
22.297297
0.73538
0.253333
0
0
0
0
0.297342
0.048173
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
371c0cd9f1541bc9d1d7743f22dc97957977dc77
5,701
py
Python
util/loadtester/scripts/mnist_rest_locust.py
lorello/seldon-core
9509d41856071c72c419f7ec805c39be38a41249
[ "Apache-2.0" ]
1
2019-09-06T14:06:50.000Z
2019-09-06T14:06:50.000Z
util/loadtester/scripts/mnist_rest_locust.py
lorello/seldon-core
9509d41856071c72c419f7ec805c39be38a41249
[ "Apache-2.0" ]
null
null
null
util/loadtester/scripts/mnist_rest_locust.py
lorello/seldon-core
9509d41856071c72c419f7ec805c39be38a41249
[ "Apache-2.0" ]
null
null
null
from locust.stats import RequestStats from locust import HttpLocust, TaskSet, task, events import os import sys, getopt, argparse from random import randint,random import json from locust.events import EventHook import requests import re import time import resource import socket import signal from socket import error a...
36.544872
208
0.619891
708
5,701
4.861582
0.299435
0.026148
0.025567
0.015108
0.219059
0.17606
0.15921
0.140616
0.124346
0.113306
0
0.017527
0.24943
5,701
155
209
36.780645
0.786866
0.042098
0
0.193798
0
0
0.147706
0.003853
0
0
0
0
0
1
0.054264
false
0
0.131783
0
0.255814
0.116279
0
0
0
null
0
0
0
0
0
0
0
0
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
371c11466bbee73e5a5eb806d61588dcac84b8ca
106
py
Python
start.py
fahimfarhan/python-Package-Demo
ce4fe79dd0fe9494892baf620aca9d88107894a7
[ "MIT" ]
null
null
null
start.py
fahimfarhan/python-Package-Demo
ce4fe79dd0fe9494892baf620aca9d88107894a7
[ "MIT" ]
null
null
null
start.py
fahimfarhan/python-Package-Demo
ce4fe79dd0fe9494892baf620aca9d88107894a7
[ "MIT" ]
null
null
null
from measure import metrics, norms if __name__ == "__main__": metrics.metric(1) norms.norms()
11.777778
34
0.669811
13
106
4.846154
0.769231
0
0
0
0
0
0
0
0
0
0
0.012048
0.216981
106
8
35
13.25
0.746988
0
0
0
0
0
0.07767
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
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
371d6857f471bf5c4303b94e13030507ce47c281
8,475
py
Python
tests/587/test_engine_integration.py
CSUN-COMP587-F18/keras
5beed1cae876f570f92ee49b532aef2f97176bb2
[ "MIT" ]
null
null
null
tests/587/test_engine_integration.py
CSUN-COMP587-F18/keras
5beed1cae876f570f92ee49b532aef2f97176bb2
[ "MIT" ]
10
2018-09-27T23:03:18.000Z
2018-12-05T23:32:33.000Z
tests/587/test_engine_integration.py
CSUN-COMP587-F18/keras
5beed1cae876f570f92ee49b532aef2f97176bb2
[ "MIT" ]
null
null
null
import threading import pytest import numpy as np import pandas as pd import sys from keras import losses from keras.engine import Input from keras.engine.training import Model from keras.engine import training_utils from keras.layers import Dense, Dropout from keras.utils.generic_utils import slice_arrays from keras....
32.224335
83
0.623717
1,099
8,475
4.538672
0.158326
0.049719
0.044106
0.040898
0.624699
0.545309
0.497795
0.445469
0.392743
0.348637
0
0.020833
0.252389
8,475
262
84
32.347328
0.766414
0.003422
0
0.257282
0
0
0.046779
0
0
0
0
0
0.019417
1
0.092233
false
0.009709
0.063107
0.019417
0.199029
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
371f4ea7362504af95802b40a1ae8e406cb61f3a
10,522
py
Python
tests/test_directory_view_get_context_data.py
wildfish/django-directory
7a097e1eca66a2e5f5ae02905b92ecc37ae0db34
[ "MIT" ]
5
2015-10-05T11:54:59.000Z
2021-07-07T05:08:56.000Z
tests/test_directory_view_get_context_data.py
wildfish/django-directory
7a097e1eca66a2e5f5ae02905b92ecc37ae0db34
[ "MIT" ]
null
null
null
tests/test_directory_view_get_context_data.py
wildfish/django-directory
7a097e1eca66a2e5f5ae02905b92ecc37ae0db34
[ "MIT" ]
1
2016-03-16T07:59:50.000Z
2016-03-16T07:59:50.000Z
from django.http import QueryDict from django.test import TestCase, RequestFactory from directory.views import DirectoryView from .models import TestModelB, MultipleFieldModel class DirectoryViewGetContextData(TestCase): def test_filter_is_not_supplied_in_kwargs___filter_is_added(self): class TestDirector...
35.789116
151
0.642558
1,144
10,522
5.451049
0.072552
0.102309
0.038807
0.118826
0.897691
0.867383
0.843329
0.829859
0.820558
0.80789
0
0.005193
0.267915
10,522
293
152
35.911263
0.804362
0
0
0.787037
0
0
0.066812
0.010644
0
0
0
0
0.087963
1
0.087963
false
0
0.018519
0
0.287037
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
3720c3899d53ebbf6a2778fd6e3ce1432176eae2
17,466
py
Python
entrypoint.py
lucteo/action-cxx-toolkit
f181ba4199669f9a4ca17c7786499e33d2313d13
[ "MIT" ]
1
2020-09-27T11:22:13.000Z
2020-09-27T11:22:13.000Z
entrypoint.py
lucteo/action-cxx-toolkit
f181ba4199669f9a4ca17c7786499e33d2313d13
[ "MIT" ]
null
null
null
entrypoint.py
lucteo/action-cxx-toolkit
f181ba4199669f9a4ca17c7786499e33d2313d13
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os, sys, subprocess from dataclasses import dataclass # Input variables: # INPUT_CHECKS # INPUT_DEPENDENCIES # INPUT_DIRECTORY # INPUT_BUILDDIR # INPUT_CC # INPUT_CFLAGS # INPUT_CXXFLAGS # INPUT_CONANFLAGS # INPUT_CMAKEFLAGS # INPUT_CTESTFLAGS # INPUT_MAKEFLAGS # ...
33.914563
214
0.631455
2,148
17,466
5.005587
0.186685
0.023065
0.022972
0.011161
0.246652
0.181827
0.127046
0.107701
0.05506
0.05506
0
0.012313
0.237433
17,466
515
215
33.914563
0.794955
0.152353
0
0.209677
0
0.018817
0.294781
0.054857
0
0
0
0
0
1
0.061828
false
0
0.005376
0.002688
0.193548
0.026882
0
0
0
null
0
0
0
0
0
0
0
0
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
37216d3efdd9c931e8fe08aa0d3a0f964dd8a029
1,811
py
Python
test_power_of_four.py
brigitteunger/katas
3f9af88fe5d98753360457084741f573c863dc25
[ "MIT" ]
null
null
null
test_power_of_four.py
brigitteunger/katas
3f9af88fe5d98753360457084741f573c863dc25
[ "MIT" ]
null
null
null
test_power_of_four.py
brigitteunger/katas
3f9af88fe5d98753360457084741f573c863dc25
[ "MIT" ]
null
null
null
import unittest class Solution: def isPowerOfFour(self, num: int) -> bool: if num <= 0: return False number_format_bin = format(num, 'b') number_ones = number_format_bin.count('1') if number_ones == 1: if (len(number_format_bin)-1) % 2 == 0: ...
20.816092
51
0.617891
214
1,811
4.981308
0.21028
0.065666
0.101313
0.118199
0.638837
0.621951
0.621951
0.621951
0.567542
0.567542
0
0.035853
0.291552
1,811
86
52
21.05814
0.795012
0
0
0.377358
0
0
0.005522
0
0
0
0
0
0.169811
1
0.207547
false
0
0.018868
0
0.320755
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
3721f9b4857aebb54eda364b32c37163c9b97b18
561
py
Python
vanir/core/exchange/urls.py
guanana/vanir
b0bb9c874795a5803e6437ff0105ea036f1ae7b6
[ "Apache-2.0" ]
1
2022-01-19T07:11:05.000Z
2022-01-19T07:11:05.000Z
vanir/core/exchange/urls.py
guanana/vanir
b0bb9c874795a5803e6437ff0105ea036f1ae7b6
[ "Apache-2.0" ]
10
2021-11-07T14:17:07.000Z
2022-03-30T18:24:48.000Z
vanir/core/exchange/urls.py
guanana/vanir
b0bb9c874795a5803e6437ff0105ea036f1ae7b6
[ "Apache-2.0" ]
null
null
null
from django.urls import path from .views import ExchangeCreateView, ExchangeDeleteView, ExchangeDetailView, ExchangeListView, ExchangeUpdateView app_name = "exchange" urlpatterns = [ path("", ExchangeListView.as_view(), name="exchange_list"), path("add/", ExchangeCreateView.as_view(), name="exchange_add"), ...
43.153846
115
0.736185
61
561
6.590164
0.393443
0.179104
0.124378
0.223881
0
0
0
0
0
0
0
0
0.099822
561
12
116
46.75
0.79604
0
0
0
0
0
0.212121
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
37225c968e5f417234da031f05ff2c4ef3bc4d89
3,579
py
Python
mycv/utils/pbar_utils.py
duanzhiihao/mycv
184b52f7a5c1b6f603122d4f4050952b65ba0ead
[ "MIT" ]
null
null
null
mycv/utils/pbar_utils.py
duanzhiihao/mycv
184b52f7a5c1b6f603122d4f4050952b65ba0ead
[ "MIT" ]
null
null
null
mycv/utils/pbar_utils.py
duanzhiihao/mycv
184b52f7a5c1b6f603122d4f4050952b65ba0ead
[ "MIT" ]
null
null
null
from collections import OrderedDict from mycv.utils.general import ANSI class SimpleTable(OrderedDict): def __init__(self, init_keys=[]): super().__init__() # initialization: assign None to initial keys for key in init_keys: if not isinstance(key, str): ANSI.wa...
29.825
82
0.531713
438
3,579
4.200913
0.253425
0.029348
0.030435
0.026087
0.296739
0.222826
0.131522
0.065217
0.065217
0.065217
0
0.022439
0.340039
3,579
119
83
30.07563
0.756562
0.057558
0
0.322917
0
0
0.060515
0
0
0
0
0
0
1
0.072917
false
0
0.052083
0
0.239583
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
372305c2d1fb8224de3b77aaf1f47a6d32e75ba4
2,939
py
Python
example_scripts/tidetable_tutorial.py
British-Oceanographic-Data-Centre/COAsT
4d3d57c9afb61a92063b665626c1828dd2998d2b
[ "MIT" ]
8
2020-09-10T13:40:07.000Z
2022-03-10T22:52:44.000Z
example_scripts/tidetable_tutorial.py
British-Oceanographic-Data-Centre/COAsT
4d3d57c9afb61a92063b665626c1828dd2998d2b
[ "MIT" ]
294
2020-05-11T12:17:17.000Z
2022-03-31T22:07:52.000Z
example_scripts/tidetable_tutorial.py
British-Oceanographic-Data-Centre/COAsT
4d3d57c9afb61a92063b665626c1828dd2998d2b
[ "MIT" ]
4
2020-05-28T10:43:56.000Z
2021-09-07T10:40:09.000Z
#!/usr/bin/env python3 """ Tutorial for processing tabulated tide gauge data Created on Mon Oct 12 22:30:21 2020 You might scrape tidal highs and lows from a website such as <a title="NTSLF tidal predictions" href="https://www.ntslf.org/tides/tidepred?port=Liverpool"> <img alt="NTSLF tidal predictions" src="https://...
37.202532
103
0.737326
513
2,939
4.150097
0.409357
0.028182
0.067637
0.076092
0.199155
0.185063
0.185063
0.173791
0.173791
0.173791
0
0.080868
0.137462
2,939
78
104
37.679487
0.758974
0.548146
0
0
0
0
0.294163
0.052995
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.272727
0
0
0
null
0
0
0
0
0
0
0
0
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
3724a438c48806b5fed578c995c9254f9535f7f6
1,373
py
Python
ai_challenge/env/utils.py
village-people/flying-pig
c86b589aadb02dbfd42a917a388c2b8488ecd338
[ "MIT" ]
72
2017-05-22T18:22:58.000Z
2019-03-11T22:49:00.000Z
ai_challenge/env/utils.py
village-people/flying-pig
c86b589aadb02dbfd42a917a388c2b8488ecd338
[ "MIT" ]
1
2017-06-09T05:26:43.000Z
2017-08-22T11:41:41.000Z
ai_challenge/env/utils.py
village-people/flying-pig
c86b589aadb02dbfd42a917a388c2b8488ecd338
[ "MIT" ]
3
2017-05-25T08:49:27.000Z
2019-09-09T18:41:54.000Z
# Village People, 2017 from argparse import ArgumentParser def get_args(): args = ArgumentParser('PigChaseExperiment') args.add_argument('-t', '--type', type=str, default='random', choices=['dqn', 'empathetic', 'astar', 'random'], help='The type of baseline to run.'...
41.606061
80
0.611071
173
1,373
4.763006
0.445087
0.033981
0.072816
0.106796
0.18568
0.109223
0
0
0
0
0
0.029384
0.23161
1,373
32
81
42.90625
0.751659
0.085943
0
0
0
0
0.259169
0
0
0
0
0
0
1
0.142857
false
0
0.047619
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3725a03ff33ceb614141f34ea4cafeace14f8296
721
py
Python
practice/leetcode/lc0238_product_excpt_self.py
deehzee/dsalgo
025bf292e5a2c4e079cecb0c284ab6aeae9a07f4
[ "MIT" ]
null
null
null
practice/leetcode/lc0238_product_excpt_self.py
deehzee/dsalgo
025bf292e5a2c4e079cecb0c284ab6aeae9a07f4
[ "MIT" ]
null
null
null
practice/leetcode/lc0238_product_excpt_self.py
deehzee/dsalgo
025bf292e5a2c4e079cecb0c284ab6aeae9a07f4
[ "MIT" ]
1
2020-08-06T16:50:07.000Z
2020-08-06T16:50:07.000Z
def product_except_self(A): ''' 238. Product of Array Except Self ================================= Given an array A of n integers (n > 1), return an array where the i-th element is the product of all but the i-th element of A. Restrictions: ------------- 1. Don't use division 2. Us...
24.033333
74
0.482663
111
721
3.099099
0.432432
0.046512
0.043605
0.075581
0.093023
0.093023
0.093023
0
0
0
0
0.047809
0.303745
721
29
75
24.862069
0.63745
0.570042
0
0.222222
0
0
0
0
0
0
0
0
0
1
0.111111
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
0
0
0
0
0
0
0
1
0
3726727223ff1c3c48169567a42d07d0a4165647
452
py
Python
pnuml/learner/utils/weight_initializer.py
Snowapril/pnu-machine-learning-2021
bba2410fece99aded2b118cb1ea98de3d250cb87
[ "MIT" ]
2
2021-04-02T07:58:50.000Z
2021-04-02T08:37:00.000Z
pnuml/learner/utils/weight_initializer.py
Snowapril/pnu-machine-learning-2021
bba2410fece99aded2b118cb1ea98de3d250cb87
[ "MIT" ]
null
null
null
pnuml/learner/utils/weight_initializer.py
Snowapril/pnu-machine-learning-2021
bba2410fece99aded2b118cb1ea98de3d250cb87
[ "MIT" ]
null
null
null
import numpy as np def xavier_uniform_weight(shape, seed=0): """ initialize weight matrix with xavier_uniform_initializer. matrix size will be shape arguments """ np.random.seed(seed) scale = 1 / max(1., np.sum(shape) / 2.) limit = np.sqrt(scale * 3.) return np.random.uniform(-limit, l...
22.6
61
0.654867
64
452
4.546875
0.484375
0.089347
0
0
0
0
0
0
0
0
0
0.014245
0.223451
452
19
62
23.789474
0.814815
0.283186
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
372749ced3100fd6460b5bb6d9752ed56e2a92b1
5,952
py
Python
eventtools/tests/models/occurrence.py
atkinson/glamkit-eventtools
ed0b06c22ca3390506f4fac327493f871b0b4520
[ "BSD-3-Clause" ]
1
2015-11-05T10:26:49.000Z
2015-11-05T10:26:49.000Z
eventtools/tests/models/occurrence.py
atkinson/glamkit-eventtools
ed0b06c22ca3390506f4fac327493f871b0b4520
[ "BSD-3-Clause" ]
null
null
null
eventtools/tests/models/occurrence.py
atkinson/glamkit-eventtools
ed0b06c22ca3390506f4fac327493f871b0b4520
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8“ -*- from django.test import TestCase from eventtools.tests._inject_app import TestCaseWithApp as AppTestCase from eventtools.tests.eventtools_testapp.models import * from datetime import date, time, datetime, timedelta from eventtools.tests._fixture import bigfixture, reload_films from eventtools.u...
38.901961
193
0.649362
832
5,952
4.611779
0.270433
0.039093
0.093823
0.101903
0.383633
0.353922
0.326297
0.242377
0.183477
0.094605
0
0.032337
0.241431
5,952
152
194
39.157895
0.817276
0.16297
0
0.371795
0
0
0.044309
0
0
0
0
0.006579
0.166667
1
0.025641
false
0
0.089744
0
0.128205
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
37289cb1a30c4bf356b2cf2d3ff9602d8438b905
1,756
py
Python
custom/m4change/migrations/0004_auto__add_field_mcctstatus_modified_on.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
custom/m4change/migrations/0004_auto__add_field_mcctstatus_modified_on.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
custom/m4change/migrations/0004_auto__add_field_mcctstatus_modified_on.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'McctStatus.modified_on' db.add_column(u'm4change_mcctstatus', 'modified_on', self.gf('djan...
46.210526
193
0.602506
195
1,756
5.297436
0.379487
0.092933
0.14908
0.212972
0.52759
0.420136
0.352372
0.085189
0
0
0
0.016277
0.19533
1,756
37
194
47.459459
0.714791
0.052961
0
0
0
0
0.45208
0.227245
0
0
0
0
0
1
0.08
false
0
0.16
0
0.36
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
372a1246ed0dcfcdbea326ad609c7b48827fe89f
6,231
py
Python
src/data.py
gkovacs81/argus_server
97ebf705ed3e61a69bd561faf495e2c19bda510d
[ "MIT" ]
null
null
null
src/data.py
gkovacs81/argus_server
97ebf705ed3e61a69bd561faf495e2c19bda510d
[ "MIT" ]
3
2021-06-02T04:07:35.000Z
2021-12-27T20:21:46.000Z
src/data.py
gkovacs81/argus_server
97ebf705ed3e61a69bd561faf495e2c19bda510d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse from sqlalchemy.exc import ProgrammingError from monitoring.constants import ROLE_ADMIN, ROLE_USER from models import Keypad, KeypadType, Sensor, SensorType, User, Zone from monitoring.database import Session from models import metadata SENSOR_TYPES = [ SensorType(1, name...
36.652941
132
0.67437
820
6,231
4.970732
0.204878
0.048577
0.047841
0.056673
0.609912
0.601079
0.58317
0.573847
0.465653
0.382974
0
0.033281
0.180228
6,231
169
133
36.869822
0.764683
0.00321
0
0.3125
0
0
0.225282
0
0
0
0
0
0
1
0.046875
false
0.015625
0.046875
0
0.09375
0.1875
0
0
0
null
0
0
0
0
0
0
0
0
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
372abdbaa3a72f1cf8f94702fe632481d4798115
1,595
py
Python
src/actionFactory.py
koleberd/goaldependency
b4572758c405c90b33408497429531db82f5d22b
[ "FTL", "CNRI-Python", "CECILL-B", "AAL" ]
1
2018-01-10T21:41:27.000Z
2018-01-10T21:41:27.000Z
src/actionFactory.py
koleberd/goaldependency
b4572758c405c90b33408497429531db82f5d22b
[ "FTL", "CNRI-Python", "CECILL-B", "AAL" ]
null
null
null
src/actionFactory.py
koleberd/goaldependency
b4572758c405c90b33408497429531db82f5d22b
[ "FTL", "CNRI-Python", "CECILL-B", "AAL" ]
null
null
null
from action import * from playerState import * import gameController import os.path import json ### #parses json containing known actions #produces actions that return a specified PS ### class ActionFactory: def __init__(self,costs): with open('json/actionMemory.json') as jsfl: actMemory = j...
28.482143
131
0.592476
180
1,595
5.216667
0.361111
0.058573
0.042599
0.053248
0.198083
0.078807
0.078807
0
0
0
0
0.002655
0.291536
1,595
55
132
29
0.828319
0.09906
0
0
0
0
0.071745
0.019486
0
0
0
0
0
1
0.1
false
0
0.166667
0
0.366667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
372d79c40069d52a6abd36688789216fbc3fb69f
653
py
Python
src/pybullet_planning/interfaces/kinematics/__init__.py
mcx/pybullet_planning
cc90e8620dd61acc7fc4246638d91f222b64e77a
[ "MIT" ]
61
2019-10-07T19:20:15.000Z
2022-03-09T21:28:18.000Z
src/pybullet_planning/interfaces/kinematics/__init__.py
mcx/pybullet_planning
cc90e8620dd61acc7fc4246638d91f222b64e77a
[ "MIT" ]
9
2020-03-14T21:24:05.000Z
2021-06-01T13:27:45.000Z
src/pybullet_planning/interfaces/kinematics/__init__.py
mcx/pybullet_planning
cc90e8620dd61acc7fc4246638d91f222b64e77a
[ "MIT" ]
11
2020-08-20T12:54:55.000Z
2022-01-27T06:05:51.000Z
""" ******************************************************************************** interfaces.kinematics ******************************************************************************** .. currentmodule:: pybullet_planning.interfaces.kinematics Kinematics interface -------------------- .. autosummary:: :toctre...
21.766667
80
0.537519
53
653
6.226415
0.641509
0.121212
0
0
0
0
0
0
0
0
0
0
0.128637
653
29
81
22.517241
0.579965
0.761103
0
0
0
0
0.006803
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
372e1a3008c4b808410b6df31c41c5b99e78576d
2,904
py
Python
seeq/models/lattice_plot.py
juanjosegarciaripoll/seeq
3554550c3348fbaae398737cf4ae5510a34d6665
[ "MIT" ]
13
2019-07-31T17:00:37.000Z
2021-02-02T18:34:34.000Z
seeq/models/lattice_plot.py
Ydeh22/seeq
3554550c3348fbaae398737cf4ae5510a34d6665
[ "MIT" ]
null
null
null
seeq/models/lattice_plot.py
Ydeh22/seeq
3554550c3348fbaae398737cf4ae5510a34d6665
[ "MIT" ]
5
2019-11-04T17:54:40.000Z
2022-02-16T23:04:56.000Z
import matplotlib.collections import matplotlib.pyplot as plt import matplotlib.tri as tri import scipy.sparse as sp import numpy as np def plot_lattice(L, ax=None, dot='.'): """Plot a 2D or 3D representation of the lattice on the given axis, or create one if none is given. Parameters ---------- ...
31.225806
79
0.551653
435
2,904
3.662069
0.285057
0.040176
0.020088
0.030132
0.25361
0.25361
0.2285
0.2285
0.2285
0.2285
0
0.02489
0.294421
2,904
92
80
31.565217
0.752562
0.231405
0
0.293103
0
0
0.015559
0
0
0
0
0
0
1
0.034483
false
0
0.137931
0
0.206897
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
372eaae9ab2c16dd902249d10915b4c6382a3850
3,143
py
Python
fake_modules.py
meissnert/StarCluster-Plugins
a84dc5f62b5a37e7843c0fb4ac69011ecd766e51
[ "MIT" ]
1
2016-05-27T19:58:53.000Z
2016-05-27T19:58:53.000Z
fake_modules.py
meissnert/StarCluster-Plugins
a84dc5f62b5a37e7843c0fb4ac69011ecd766e51
[ "MIT" ]
null
null
null
fake_modules.py
meissnert/StarCluster-Plugins
a84dc5f62b5a37e7843c0fb4ac69011ecd766e51
[ "MIT" ]
null
null
null
from starcluster.clustersetup import ClusterSetup from starcluster.logger import log class FakeModInstaller(ClusterSetup): def run(self, nodes, master, user, user_shell, volumes): for node in nodes: log.info("Creating python 2.6.5 module files on %s" % (node.alias)) node.ssh.execute('mkdir /usr/local/Modules/...
69.844444
130
0.673242
495
3,143
4.272727
0.113131
0.089362
0.178723
0.293617
0.908747
0.853901
0.840662
0.831678
0.821277
0.799527
0
0.035385
0.136812
3,143
44
131
71.431818
0.744195
0
0
0.078947
0
0.473684
0.625517
0.424435
0
0
0
0
0
0
null
null
0
0.052632
null
null
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
null
0
0
0
0
1
0
0
0
0
0
0
0
0
11
372ec5bb74cde700d6daf808f9e274dcb999cf1b
49
py
Python
Nino/Files/config.py
rdhuper/Project_Crypto
49e22c1f7d01e4689073f89d2c79a6cf419e47e3
[ "MIT" ]
1
2018-10-13T20:15:52.000Z
2018-10-13T20:15:52.000Z
Nino/Files/config.py
rdhuper/Project_Crypto
49e22c1f7d01e4689073f89d2c79a6cf419e47e3
[ "MIT" ]
1
2018-10-17T04:04:57.000Z
2018-10-17T04:04:57.000Z
Nino/Files/config.py
rdhuper/Project_Crypto
49e22c1f7d01e4689073f89d2c79a6cf419e47e3
[ "MIT" ]
null
null
null
# Enter your password for SQL sqlpw = "password"
16.333333
29
0.734694
7
49
5.142857
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.183673
49
2
30
24.5
0.9
0.55102
0
0
0
0
0.4
0
0
0
0
0
0
1
0
false
1
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
372f233c0bcb9fb29c757ffe4ac5e45a5fb9ba0e
10,696
py
Python
nl2codemodel/src/nltocode/eval/score.py
SmartDataAnalytics/codeCAI
18a31541506d89b72cd07e498ef43dfa657877f8
[ "MIT" ]
null
null
null
nl2codemodel/src/nltocode/eval/score.py
SmartDataAnalytics/codeCAI
18a31541506d89b72cd07e498ef43dfa657877f8
[ "MIT" ]
null
null
null
nl2codemodel/src/nltocode/eval/score.py
SmartDataAnalytics/codeCAI
18a31541506d89b72cd07e498ef43dfa657877f8
[ "MIT" ]
null
null
null
import argparse import logging as log import re from collections import defaultdict from difflib import SequenceMatcher from os.path import commonprefix import pandas as pd import torch from torch.nn.functional import nll_loss, log_softmax from nltocode.datamodule import NL2CodeTrainDataModule from nltocode.grammar.g...
39.036496
117
0.703628
1,441
10,696
4.800139
0.172797
0.081538
0.03036
0.023421
0.388897
0.321093
0.244326
0.211219
0.160619
0.155414
0
0.01178
0.190445
10,696
273
118
39.179487
0.787042
0.024776
0
0.152381
0
0
0.127649
0.052556
0
0
0
0
0
1
0.052381
false
0
0.066667
0.004762
0.161905
0.057143
0
0
0
null
0
0
0
0
0
0
0
0
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
372f64e338493a2a24b995d3c6180d315a7bd7b3
11,735
py
Python
fast_tmp/admin/utils_bak.py
Chise1/fastapi-cli
e8e1bb20279880ea4de9c3358e49412dc644c98a
[ "Apache-2.0" ]
5
2021-01-23T06:43:01.000Z
2022-02-22T06:40:03.000Z
fast_tmp/admin/utils_bak.py
Chise1/fastapi-cli
e8e1bb20279880ea4de9c3358e49412dc644c98a
[ "Apache-2.0" ]
4
2022-02-09T04:44:50.000Z
2022-02-09T04:48:26.000Z
fast_tmp/admin/utils_bak.py
Chise1/fastapi-cli
e8e1bb20279880ea4de9c3358e49412dc644c98a
[ "Apache-2.0" ]
3
2021-01-13T09:40:42.000Z
2021-01-14T03:18:26.000Z
from typing import List, Optional, Type from tortoise import BackwardFKRelation, ForeignKeyFieldInstance, ManyToManyFieldInstance, Model from tortoise.fields import ( BigIntField, BooleanField, CharField, DateField, DatetimeField, DecimalField, FloatField, IntField, JSONField, S...
40.32646
100
0.545718
1,125
11,735
5.499556
0.16
0.177469
0.135769
0.160013
0.591078
0.507354
0.463229
0.449329
0.43252
0.417003
0
0.000656
0.350405
11,735
290
101
40.465517
0.810967
0.043715
0
0.452471
0
0
0.06203
0.011278
0
0
0
0.006897
0
1
0.011407
false
0.003802
0.026616
0
0.04943
0.003802
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
37319bdaa284f723a5abf8c32c3ba570386d947b
5,943
py
Python
cv/yolov3/yolov3_gpu/src/detection.py
hellowaywewe/deeplearning
fcd12cb2cc46f17725b139571891b9c212e999d5
[ "Apache-2.0" ]
null
null
null
cv/yolov3/yolov3_gpu/src/detection.py
hellowaywewe/deeplearning
fcd12cb2cc46f17725b139571891b9c212e999d5
[ "Apache-2.0" ]
null
null
null
cv/yolov3/yolov3_gpu/src/detection.py
hellowaywewe/deeplearning
fcd12cb2cc46f17725b139571891b9c212e999d5
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict import numpy as np import sys import cv2 import pandas as pd label_list = [ 'Bird_spp', 'Blue_sheep', 'Glovers_pika', 'Gray_wolf', 'Himalaya_marmot', 'Red_fox', 'Snow_leopard', 'Tibetan_snowcock', 'Upland_Buzzard', 'White-lipped_deer' ] clas...
38.341935
119
0.502272
792
5,943
3.57197
0.238636
0.042064
0.07211
0.059738
0.245316
0.219512
0.201485
0.168257
0.168257
0.168257
0
0.038713
0.356722
5,943
154
120
38.590909
0.701282
0.142521
0
0
0
0
0.036788
0
0
0
0
0
0
1
0.044248
false
0
0.044248
0
0.115044
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
2e92b47f2d6ffa829108d4338b27ad0da0819ace
7,348
py
Python
RSNA Pneumonia Detection Challenge/Retina_net model.py
YakinRubaiat/Kaggle-competition
3c9cc9f2ef180bbde2a17c1332c0d13eca0e4a37
[ "Apache-2.0" ]
null
null
null
RSNA Pneumonia Detection Challenge/Retina_net model.py
YakinRubaiat/Kaggle-competition
3c9cc9f2ef180bbde2a17c1332c0d13eca0e4a37
[ "Apache-2.0" ]
null
null
null
RSNA Pneumonia Detection Challenge/Retina_net model.py
YakinRubaiat/Kaggle-competition
3c9cc9f2ef180bbde2a17c1332c0d13eca0e4a37
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[ ]: import pandas as pd import numpy as np import scipy.misc import pydicom import glob import sys import os import pandas as pd import base64 from IPython.display import HTML # In[ ]: from scipy.ndimage.interpolation import zoom # In[ ]: get_ipython().system('gi...
24.331126
274
0.651606
978
7,348
4.733129
0.263804
0.015554
0.019443
0.012962
0.201771
0.136747
0.125513
0.102398
0.091596
0.069994
0
0.023461
0.18209
7,348
301
275
24.41196
0.746755
0.094311
0
0.052632
0
0.022556
0.210104
0.096506
0
0
0
0
0
1
0.015038
false
0
0.090226
0
0.120301
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
2e92f90fb3e8266f62a37e3918ac6d4ec8f50ca0
369
py
Python
qt-python-ui/qt-python.py
mortengunnufsen/examples-Qt
83e1b4c394863335852acc445fc0cf687ee7f9b6
[ "BSD-3-Clause" ]
2
2019-12-25T16:24:43.000Z
2022-01-16T14:43:00.000Z
qt-python-ui/qt-python.py
mortengunnufsen/examples-Qt
83e1b4c394863335852acc445fc0cf687ee7f9b6
[ "BSD-3-Clause" ]
null
null
null
qt-python-ui/qt-python.py
mortengunnufsen/examples-Qt
83e1b4c394863335852acc445fc0cf687ee7f9b6
[ "BSD-3-Clause" ]
5
2020-02-25T09:04:39.000Z
2020-12-28T21:14:00.000Z
#!/usr/bin/env python import sys from qtpy import QtWidgets def window(): app = QtWidgets.QApplication(sys.argv) w = QtWidgets.QWidget() b = QtWidgets.QLabel(w) b.setText("Hello World!") w.setGeometry(100,100,200,50) b.move(50,20) w.setWindowTitle("hello") w.show() sys.exit(app.e...
17.571429
42
0.636856
51
369
4.431373
0.666667
0
0
0
0
0
0
0
0
0
0
0.051195
0.205962
369
20
43
18.45
0.720137
0.054201
0
0
0
0
0.071839
0
0
0
0
0
0
1
0.071429
false
0
0.142857
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
2e9316c66aa980440c5346bc184412999eb69eb1
7,321
py
Python
core/admin.py
StateArchivesOfNorthCarolina/ratom_server
7fc2c179f1baee85c4b95cdf64a2d5d690d2482e
[ "MIT" ]
1
2020-02-24T03:47:17.000Z
2020-02-24T03:47:17.000Z
core/admin.py
StateArchivesOfNorthCarolina/ratom_server
7fc2c179f1baee85c4b95cdf64a2d5d690d2482e
[ "MIT" ]
21
2020-01-20T13:29:51.000Z
2022-03-12T00:11:12.000Z
core/admin.py
StateArchivesOfNorthCarolina/ratom_server
7fc2c179f1baee85c4b95cdf64a2d5d690d2482e
[ "MIT" ]
3
2020-08-27T09:20:34.000Z
2022-01-24T06:20:14.000Z
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.utils.html import format_html from django.db.models import Count from django.template.defaultfilters import filesizeformat from django.utils.translation import gettext_lazy as _ from core import models as ratom @admin.registe...
29.639676
130
0.511406
703
7,321
5.116643
0.283073
0.005838
0.030025
0.010008
0.128996
0.091187
0.052822
0.052822
0.052822
0.052822
0
0.000839
0.348996
7,321
246
131
29.760163
0.753882
0.059964
0
0.312796
0
0.014218
0.242809
0.048237
0
0
0
0
0
1
0.033175
false
0.014218
0.07109
0.018957
0.327014
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
2e940fa64dc6865ad17f9dcc7e74b2aaa6bf5fca
148
py
Python
setup.py
Syndelis/cellular-automata
0fd38cb03e83c3a4fde2e5b4acc994dc1e189d30
[ "Xnet", "X11" ]
2
2019-06-12T13:13:00.000Z
2021-04-08T18:05:53.000Z
setup.py
Syndelis/cellular-automata
0fd38cb03e83c3a4fde2e5b4acc994dc1e189d30
[ "Xnet", "X11" ]
null
null
null
setup.py
Syndelis/cellular-automata
0fd38cb03e83c3a4fde2e5b4acc994dc1e189d30
[ "Xnet", "X11" ]
null
null
null
# Cython compiler from distutils.core import setup from Cython.Build import cythonize setup(name='CA base class', ext_modules=cythonize("ca.pyx"))
24.666667
60
0.790541
22
148
5.272727
0.727273
0
0
0
0
0
0
0
0
0
0
0
0.108108
148
6
60
24.666667
0.878788
0.101351
0
0
0
0
0.143939
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
2e9452a258961100ea70bee55910c45c7ca053fb
721
py
Python
0150_Evaluate_Reverse_Polish_Notation.py
coldmanck/leetcode-python
f644b8a0711c96f312326b4d025e9be3340fec42
[ "MIT" ]
4
2021-01-11T09:53:58.000Z
2022-01-18T13:11:54.000Z
0150_Evaluate_Reverse_Polish_Notation.py
coldmanck/leetcode-python
f644b8a0711c96f312326b4d025e9be3340fec42
[ "MIT" ]
null
null
null
0150_Evaluate_Reverse_Polish_Notation.py
coldmanck/leetcode-python
f644b8a0711c96f312326b4d025e9be3340fec42
[ "MIT" ]
2
2020-04-13T13:55:48.000Z
2020-08-25T16:16:11.000Z
class Solution: def evalRPN(self, tokens: List[str]) -> int: stack = [] ops = {'+', '-', '*', '/'} for token in tokens: if token not in ops: stack.append(int(token)) else: a = stack.pop() b = stack.pop() ...
34.333333
100
0.363384
69
721
3.797101
0.521739
0.030534
0.103053
0.114504
0.145038
0.145038
0.145038
0.145038
0.145038
0
0
0.002857
0.514563
721
21
101
34.333333
0.745714
0.108183
0
0.1
0
0
0.010903
0
0
0
0
0
0
1
0.05
false
0
0
0
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2e963cd2a0462916e761886c42ba2584a9589e19
2,762
py
Python
plugins/ibm_qradar/unit_test/test_start_ariel_search.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
null
null
null
plugins/ibm_qradar/unit_test/test_start_ariel_search.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
null
null
null
plugins/ibm_qradar/unit_test/test_start_ariel_search.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
null
null
null
import os import sys from unittest.mock import patch from unittest import TestCase from insightconnect_plugin_runtime.exceptions import ( PluginException, ConnectionTestException, ) from icon_ibm_qradar.actions.start_ariel_search import StartArielSearch from unit_test.helpers.ariel_search import ArielSearchH...
32.116279
100
0.652788
288
2,762
6.059028
0.274306
0.069341
0.055014
0.048138
0.562751
0.460172
0.460172
0.460172
0.416619
0.416619
0
0.000475
0.237871
2,762
85
101
32.494118
0.828504
0.106083
0
0.3
0
0
0.118987
0
0
0
0
0
0.1
1
0.1
false
0.06
0.14
0
0.26
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2e97acf2470e0d21cbc675a63fe3d4483f62b6c4
682
py
Python
appengine/findit/services/test/build_url_test.py
xinghun61/infra
b5d4783f99461438ca9e6a477535617fadab6ba3
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/findit/services/test/build_url_test.py
asdfghjjklllllaaa/infra
8f63af54e46194cd29291813f2790ff6e986804d
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/findit/services/test/build_url_test.py
xinghun61/infra
b5d4783f99461438ca9e6a477535617fadab6ba3
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 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. from services import build_url from waterfall.test.wf_testcase import WaterfallTestCase class FlakeReportUtilTest(WaterfallTestCase): def testCreateBuild...
34.1
72
0.73607
87
682
5.563218
0.574713
0.082645
0.092975
0.086777
0.210744
0
0
0
0
0
0
0.012868
0.202346
682
19
73
35.894737
0.876838
0.227273
0
0
0
0
0.043977
0
0
0
0
0
0.25
1
0.083333
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e993f4791d05c0ec353fdb6e68bb9e8aa5e5559
1,677
py
Python
evaluator/evaluator_matrix.py
CryptoRichy/OctoBot
1ca5bd2ba4b8fc09859518fcb2a62f74a1435019
[ "Apache-2.0" ]
1
2018-11-26T16:43:36.000Z
2018-11-26T16:43:36.000Z
evaluator/evaluator_matrix.py
CryptoRichy/OctoBot
1ca5bd2ba4b8fc09859518fcb2a62f74a1435019
[ "Apache-2.0" ]
null
null
null
evaluator/evaluator_matrix.py
CryptoRichy/OctoBot
1ca5bd2ba4b8fc09859518fcb2a62f74a1435019
[ "Apache-2.0" ]
null
null
null
from config.cst import EvaluatorMatrixTypes from tools.evaluators_util import check_valid_eval_note class EvaluatorMatrix: def __init__(self, config): self.config = config self.matrix = { EvaluatorMatrixTypes.TA: {}, EvaluatorMatrixTypes.SOCIAL: {}, EvaluatorMat...
37.266667
79
0.630292
190
1,677
5.252632
0.231579
0.140281
0.176353
0.207415
0.41483
0.323647
0.251503
0.176353
0.176353
0.084168
0
0
0.290996
1,677
44
80
38.113636
0.839361
0.016696
0
0.166667
0
0
0
0
0
0
0
0
0
1
0.138889
false
0
0.055556
0.055556
0.361111
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2e9aa47756ac21e3388a034195d347bd40bff78f
3,615
py
Python
deepjet_geometric/datasets/djc_v2_dataset.py
lgray/deepjet-geometric
2efe7ef80fecb470d3ef55a4ec67bbb19b45a846
[ "MIT" ]
null
null
null
deepjet_geometric/datasets/djc_v2_dataset.py
lgray/deepjet-geometric
2efe7ef80fecb470d3ef55a4ec67bbb19b45a846
[ "MIT" ]
null
null
null
deepjet_geometric/datasets/djc_v2_dataset.py
lgray/deepjet-geometric
2efe7ef80fecb470d3ef55a4ec67bbb19b45a846
[ "MIT" ]
3
2021-02-10T13:31:54.000Z
2022-03-24T17:24:05.000Z
import os.path as osp import glob import h5py import numpy as np from tqdm import tqdm import torch from torch_geometric.data import Data from torch_geometric.data import Dataset class DeepJetCoreV2(Dataset): r''' input z0: (FatJat basic stats, 1) 'fj_pt', 'fj_eta', 'f...
30.897436
92
0.517289
487
3,615
3.661191
0.316222
0.028043
0.050477
0.033651
0.09198
0.035334
0.035334
0.035334
0.035334
0
0
0.031801
0.356293
3,615
116
93
31.163793
0.734422
0.137483
0
0.073529
0
0
0.074617
0.021124
0
0
0
0
0
1
0.102941
false
0
0.117647
0.029412
0.308824
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
2e9ab8241a8266c7db8bfa58384994c04aa38a39
1,427
py
Python
heat_integrationtests/functional/test_versionnegotiation.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
265
2015-01-02T09:33:22.000Z
2022-03-26T23:19:54.000Z
heat_integrationtests/functional/test_versionnegotiation.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
8
2015-09-01T15:43:19.000Z
2021-12-14T05:18:23.000Z
heat_integrationtests/functional/test_versionnegotiation.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
295
2015-01-06T07:00:40.000Z
2021-09-06T08:05:06.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
38.567568
78
0.685354
188
1,427
5.074468
0.595745
0.062893
0.059748
0.033543
0
0
0
0
0
0
0
0.0124
0.20883
1,427
36
79
39.638889
0.832595
0.424667
0
0
0
0
0.118012
0
0
0
0
0
0.111111
1
0.055556
false
0
0.111111
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
0
0
0
0
0
0
0
1
0
2e9af0aa8d93c643754acda802091390f3f473d0
1,848
py
Python
app/plugins/notife.py
MoeZilla/BlueMoonVampireBot
af074f846b56e7a4f262740d7b65b32ab11a4e42
[ "MIT" ]
1
2022-01-25T06:28:51.000Z
2022-01-25T06:28:51.000Z
app/plugins/notife.py
MoeZilla/BlueMoonVampireBot
af074f846b56e7a4f262740d7b65b32ab11a4e42
[ "MIT" ]
null
null
null
app/plugins/notife.py
MoeZilla/BlueMoonVampireBot
af074f846b56e7a4f262740d7b65b32ab11a4e42
[ "MIT" ]
null
null
null
""" MIT License Copyright (C) 2021-2022, NkSama Copyright (C) 2021-2022 Moezilla Copyright (c) 2021, Sylviorus, <https://github.com/Sylviorus/BlueMoonVampireBot> This file is part of @BlueMoonVampireBot (Antispam Telegram Bot) Permission is hereby granted, free of charge, to any person obtaining a copy of this software...
37.714286
80
0.765152
281
1,848
5
0.52669
0.062633
0.029893
0.025623
0
0
0
0
0
0
0
0.012953
0.164502
1,848
48
81
38.5
0.897021
0.672619
0
0
0
0
0.154104
0
0
0
0
0
0
1
0.111111
false
0.055556
0.333333
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
2
2e9bd9729c6377e6989819bbf1d32c6c58841a32
403
py
Python
apps/users/migrations/0004_user_username.py
kevotovar/topdeck-arena
e09753a29837847bdc239cd98a1942711c953bbe
[ "MIT" ]
null
null
null
apps/users/migrations/0004_user_username.py
kevotovar/topdeck-arena
e09753a29837847bdc239cd98a1942711c953bbe
[ "MIT" ]
24
2018-08-16T03:17:08.000Z
2021-06-10T20:43:13.000Z
apps/users/migrations/0004_user_username.py
kevotovar/topdeck-arena
e09753a29837847bdc239cd98a1942711c953bbe
[ "MIT" ]
null
null
null
# Generated by Django 2.1 on 2018-08-18 15:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0003_auto_20180815_2234'), ] operations = [ migrations.AddField( model_name='user', name='username', ...
21.210526
73
0.602978
45
403
5.288889
0.844444
0
0
0
0
0
0
0
0
0
0
0.110345
0.280397
403
18
74
22.388889
0.710345
0.1067
0
0
1
0
0.111732
0.064246
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2e9cb527ff1f857656488e0800350e5fc6febf44
13,024
py
Python
mmcls/models/backbones/t2t_vit.py
kivanctezoren/mmclassification
5c73d4b29f61c47d379bbec4621a465099e64bd7
[ "Apache-2.0" ]
1
2021-05-26T08:16:01.000Z
2021-05-26T08:16:01.000Z
mmcls/models/backbones/t2t_vit.py
kivanctezoren/mmclassification
5c73d4b29f61c47d379bbec4621a465099e64bd7
[ "Apache-2.0" ]
null
null
null
mmcls/models/backbones/t2t_vit.py
kivanctezoren/mmclassification
5c73d4b29f61c47d379bbec4621a465099e64bd7
[ "Apache-2.0" ]
1
2021-12-11T07:52:59.000Z
2021-12-11T07:52:59.000Z
# Copyright (c) OpenMMLab. All rights reserved. from copy import deepcopy from typing import Sequence import numpy as np import torch import torch.nn as nn from mmcv.cnn import build_norm_layer from mmcv.cnn.bricks.transformer import FFN from mmcv.cnn.utils.weight_init import trunc_normal_ from mmcv.runner.base_module...
35.391304
79
0.589527
1,653
13,024
4.436177
0.196612
0.038047
0.014728
0.012273
0.191872
0.162962
0.127642
0.11946
0.109369
0.109369
0
0.021434
0.315802
13,024
367
80
35.487738
0.801481
0.313268
0
0.201878
0
0
0.032705
0
0
0
0
0
0.00939
1
0.051643
false
0
0.056338
0.014085
0.159624
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
2e9e32236f3aacd45c54c96674594afc7e16ce46
2,313
py
Python
geopyspark/tests/geotrellis/rddwrapper_test.py
geotrellis/geotrellis-python
97bcb17a56ed4b4059e2f0dbab97706562cac692
[ "Apache-2.0" ]
182
2017-01-26T18:11:57.000Z
2021-09-07T07:39:52.000Z
geopyspark/tests/geotrellis/rddwrapper_test.py
geotrellis/geotrellis-python
97bcb17a56ed4b4059e2f0dbab97706562cac692
[ "Apache-2.0" ]
428
2016-12-21T14:53:43.000Z
2019-07-14T09:33:54.000Z
geopyspark/tests/geotrellis/rddwrapper_test.py
geotrellis/geotrellis-python
97bcb17a56ed4b4059e2f0dbab97706562cac692
[ "Apache-2.0" ]
66
2017-01-05T19:16:15.000Z
2022-02-23T12:49:50.000Z
import os import sys import numpy as np import pytest import unittest from geopyspark.geotrellis import Tile from geopyspark.geotrellis.layer import RasterLayer from geopyspark.geotrellis.constants import LayerType from geopyspark.tests.base_test_class import BaseTestClass from pyspark.storagelevel import StorageLevel...
33.521739
77
0.596628
278
2,313
4.798561
0.251799
0.107946
0.013493
0.107946
0.528486
0.528486
0.528486
0.446777
0.446777
0.446777
0
0.035693
0.273238
2,313
68
78
34.014706
0.757882
0
0
0.490566
0
0
0.00735
0
0
0
0
0
0.169811
1
0.075472
false
0
0.188679
0
0.283019
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
2e9e378b71918a48cd1b5aa6e11813c09f19056c
432
py
Python
pia/cli.py
soasme/bamboo
5c2b879dcbeafc46990d6bfda6f376acc7a55f01
[ "0BSD" ]
4
2016-04-04T17:30:43.000Z
2016-04-11T11:03:38.000Z
pia/cli.py
soasme/pia
5c2b879dcbeafc46990d6bfda6f376acc7a55f01
[ "0BSD" ]
2
2016-04-04T09:44:57.000Z
2016-04-04T09:49:44.000Z
pia/cli.py
soasme/pia
5c2b879dcbeafc46990d6bfda6f376acc7a55f01
[ "0BSD" ]
null
null
null
# -*- coding: utf-8 -*- """ pia.cli ~~~~~~~~~~~~~ A simple command line application for pia. """ import click @click.group() def cli(): """ Pia cli group """ pass @cli.command() def run(): """ Run remote pia program. """ pass @cli.command() def dev(): """ Develop a pia progr...
11.675676
42
0.509259
50
432
4.24
0.52
0.056604
0.132075
0.160377
0
0
0
0
0
0
0
0.003236
0.284722
432
36
43
12
0.682848
0.407407
0
0.307692
0
0
0.040609
0
0
0
0
0
0
1
0.307692
true
0.153846
0.076923
0
0.384615
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
1
0
0
0
0
0
4
2e9f955cd520a372ad16539bc58013fcc42d5c6b
1,222
py
Python
FEArena/feaapi/admin.py
Superbird11/FEArena
76b32dd9d4fddc62c191225e332560e0e9ed2c9e
[ "MIT" ]
1
2020-12-25T03:33:44.000Z
2020-12-25T03:33:44.000Z
FEArena/feaapi/admin.py
Superbird11/FEArena
76b32dd9d4fddc62c191225e332560e0e9ed2c9e
[ "MIT" ]
null
null
null
FEArena/feaapi/admin.py
Superbird11/FEArena
76b32dd9d4fddc62c191225e332560e0e9ed2c9e
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import core from .models import build from .models import play admin.site.register(core.FireEmblemGame) admin.site.register(core.Unit) admin.site.register(core.Class) admin.site.register(core.Weapon) admin.site.register(core.Item) admin.site.r...
32.157895
52
0.837152
161
1,222
6.354037
0.254658
0.246334
0.465298
0.28739
0
0
0
0
0
0
0
0
0.043372
1,222
37
53
33.027027
0.875107
0.021277
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.125
0
0.125
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
2ea10f31b9ad39b588a659cb52c25dc409daa644
207
py
Python
pytijo/constants.py
darinsikanic/structifytext
ff36ee92f483d8499710827773560f4886b07765
[ "Apache-2.0" ]
5
2017-04-28T08:03:15.000Z
2018-12-29T03:52:46.000Z
pytijo/constants.py
darinsikanic/structifytext
ff36ee92f483d8499710827773560f4886b07765
[ "Apache-2.0" ]
2
2020-01-15T06:25:48.000Z
2020-11-23T13:58:27.000Z
pytijo/constants.py
darinsikanic/structifytext
ff36ee92f483d8499710827773560f4886b07765
[ "Apache-2.0" ]
1
2019-05-02T10:44:53.000Z
2019-05-02T10:44:53.000Z
# Global KEYWORD_CHAR = "#" # API Keywords KEYWORD_ID = "#id" KEYWORD_START = "#start" KEYWORD_END = "#end" # Modules MODULE_CHAR = "@" CORE_MODULE_PACKAGE = "pytijo.modules" DEFAULT_MODULE_NAME = "tijo_re"
18.818182
38
0.719807
27
207
5.148148
0.62963
0
0
0
0
0
0
0
0
0
0
0
0.135266
207
10
39
20.7
0.776536
0.130435
0
0
0
0
0.204545
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2ea11475a7fe329519530a13d7b064e4322a451f
742
py
Python
rpi_rilla/light.py
gthar/rpi_rilla
50cb6aac0ead4094d72447538aca0296d1335a5a
[ "BSD-2-Clause" ]
null
null
null
rpi_rilla/light.py
gthar/rpi_rilla
50cb6aac0ead4094d72447538aca0296d1335a5a
[ "BSD-2-Clause" ]
null
null
null
rpi_rilla/light.py
gthar/rpi_rilla
50cb6aac0ead4094d72447538aca0296d1335a5a
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 import RPi.GPIO as GPIO from rpi_rilla.helpers import update_yaml GPIO.setmode(GPIO.BOARD) class Light: def __init__(self, id, pin, default, state_file): GPIO.setup(pin, GPIO.OUT) self.id = id self.pin = pin self.state_file = state_file self.set(def...
21.2
57
0.603774
107
742
4.065421
0.35514
0.124138
0.05977
0.096552
0
0
0
0
0
0
0
0.001876
0.281671
742
34
58
21.823529
0.814259
0.028302
0
0
0
0
0.045833
0
0
0
0
0
0
1
0.25
false
0
0.083333
0
0.375
0.083333
0
0
0
null
0
0
0
0
0
0
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
2ea297ebd14c9f18c3e486da0ab8842cf15efdc3
1,476
py
Python
core/anchor.py
calmisential/TensorFlow2.0_SSD
737a631608a8c2d3f2213f9139c1c0af0063f1d1
[ "MIT" ]
90
2019-10-05T13:19:22.000Z
2022-03-09T22:49:23.000Z
core/anchor.py
calmisential/TensorFlow2.0_SSD
737a631608a8c2d3f2213f9139c1c0af0063f1d1
[ "MIT" ]
17
2019-10-28T11:13:05.000Z
2022-02-22T12:33:23.000Z
core/anchor.py
calmisential/TensorFlow2.0_SSD
737a631608a8c2d3f2213f9139c1c0af0063f1d1
[ "MIT" ]
54
2019-09-26T06:47:39.000Z
2022-03-25T15:36:23.000Z
import numpy as np import math from configuration import IMAGE_HEIGHT, IMAGE_WIDTH, ASPECT_RATIOS, FEATURE_MAPS, \ DEFAULT_BOXES_SIZES, DOWNSAMPLING_RATIOS from itertools import product class DefaultBoxes: def __init__(self): assert IMAGE_HEIGHT == IMAGE_WIDTH self.image_size = IMAGE_HEIGHT ...
37.846154
116
0.603659
205
1,476
4.058537
0.302439
0.086538
0.122596
0.100962
0.194712
0.144231
0.120192
0
0
0
0
0.012548
0.298103
1,476
38
117
38.842105
0.790541
0.011518
0
0
0
0
0
0
0
0
0
0
0.033333
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
2ea32157d60a32cc39cebcfdf2909acc3fb3af7b
16,006
py
Python
tmp.py
devYaoYH/CodinGame_GitC
f55db74dc53d8f2e8d71bc652dc792e6d005adf2
[ "MIT" ]
2
2018-05-15T12:07:24.000Z
2020-03-10T15:49:29.000Z
tmp.py
devYaoYH/codingame_gitc
f55db74dc53d8f2e8d71bc652dc792e6d005adf2
[ "MIT" ]
null
null
null
tmp.py
devYaoYH/codingame_gitc
f55db74dc53d8f2e8d71bc652dc792e6d005adf2
[ "MIT" ]
1
2018-04-02T14:53:22.000Z
2018-04-02T14:53:22.000Z
''' Reinforce function - Takes a list of targets to be reinforced - Weighs targets - Sends reinforcements if available ''' def reinforce(self, simulStates): #TODO: How to bring troops to the front? curTroops = min(self.troops, readMaxAvailTroops(simulStates[self.ID])[0]) ...
49.401235
211
0.590216
1,609
16,006
5.845245
0.170914
0.020415
0.029771
0.034556
0.393939
0.356087
0.326635
0.2958
0.272727
0.26252
0
0.012183
0.317943
16,006
323
212
49.55418
0.849318
0.161939
0
0.536797
0
0.008658
0.041812
0.003715
0
0
0
0.009288
0
0
null
null
0
0
null
null
0.08658
0
0
0
null
0
0
0
0
0
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
2ea338d3af063a419c39ebbdc6516e42c2946316
1,185
py
Python
tests/test_complex.py
chenzhaiyu/abspy
c03d26e4ddb81d17467573ca2f399a9cb608a4be
[ "MIT" ]
5
2022-01-14T17:15:35.000Z
2022-03-11T09:51:49.000Z
tests/test_complex.py
chenzhaiyu/abspy
c03d26e4ddb81d17467573ca2f399a9cb608a4be
[ "MIT" ]
2
2022-01-18T15:17:54.000Z
2022-01-18T15:19:25.000Z
tests/test_complex.py
chenzhaiyu/abspy
c03d26e4ddb81d17467573ca2f399a9cb608a4be
[ "MIT" ]
1
2022-01-15T08:12:08.000Z
2022-01-15T08:12:08.000Z
from pathlib import Path import numpy as np from abspy import CellComplex dir_tests = Path(__file__).parent def example_cell_complex(): """ Simple CellComplex construction from specified planes and bounds. """ # start from two planes planes = np.array([[0, 1, 0, -50], [0, 0, 1, -50]]) # spe...
26.931818
93
0.678481
163
1,185
4.705521
0.404908
0.172099
0.046936
0.062581
0.059974
0
0
0
0
0
0
0.047872
0.206751
1,185
43
94
27.55814
0.768085
0.297046
0
0
0
0
0.059333
0
0
0
0
0
0
1
0.058824
false
0
0.176471
0
0.235294
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ea3a75a5f2751bf316fd5b79db613c01ad75117
1,106
py
Python
src/frr/tests/topotests/lib/exa-receive.py
zhouhaifeng/vpe
9c644ffd561988e5740021ed26e0f7739844353d
[ "Apache-2.0" ]
null
null
null
src/frr/tests/topotests/lib/exa-receive.py
zhouhaifeng/vpe
9c644ffd561988e5740021ed26e0f7739844353d
[ "Apache-2.0" ]
null
null
null
src/frr/tests/topotests/lib/exa-receive.py
zhouhaifeng/vpe
9c644ffd561988e5740021ed26e0f7739844353d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ exa-receive.py: Save received routes form ExaBGP into file """ import argparse import os from sys import stdin from datetime import datetime parser = argparse.ArgumentParser() parser.add_argument( "--no-timestamp", dest="timestamp", action="store_false", help="Disable timestamps" ) par...
25.136364
88
0.660036
136
1,106
5.323529
0.617647
0.037293
0.070442
0
0
0
0
0
0
0
0
0.001153
0.216094
1,106
43
89
25.72093
0.83391
0.105787
0
0.129032
0
0
0.173469
0
0
0
0
0
0
1
0
false
0.064516
0.129032
0
0.129032
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2ea3aab54423adec72cba91766a80d7a10a99caf
2,068
py
Python
unicrypto/backends/pure/external/AES/ccm.py
ac-rn/unicrypto
bb3205612d2d7943817d55aa93de67806ceabf0d
[ "MIT" ]
1
2022-03-15T23:23:03.000Z
2022-03-15T23:23:03.000Z
unicrypto/backends/pure/external/AES/ccm.py
ac-rn/unicrypto
bb3205612d2d7943817d55aa93de67806ceabf0d
[ "MIT" ]
null
null
null
unicrypto/backends/pure/external/AES/ccm.py
ac-rn/unicrypto
bb3205612d2d7943817d55aa93de67806ceabf0d
[ "MIT" ]
null
null
null
from Cryptodome.Cipher import AES import struct # https://tools.ietf.org/html/rfc3610 def aesCCMEncrypt(plaintext, aad, key, nonce, macLen): blockSize = 16 # For AES... if macLen not in (4, 6, 8, 10, 12, 14, 16): raise ValueError("Parameter 'mac_len' must be even and in the range 4..16 (not %d)" % macLen) if n...
25.85
95
0.640232
317
2,068
4.113565
0.353312
0.01227
0.029908
0.018405
0.035276
0.035276
0.035276
0
0
0
0
0.046567
0.190039
2,068
79
96
26.177215
0.73194
0.033366
0
0.035088
0
0
0.140492
0
0
0
0
0
0
1
0.017544
false
0
0.052632
0
0.087719
0.157895
0
0
0
null
0
0
0
0
0
0
0
0
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
2ea49685661b1bbd513afcd73c45bc80909614c1
1,878
py
Python
PyGenetic/mutation.py
Omair-R/PyGenetic
27c97e0958b65b6163a6fb9e9e5089eb2dc7dae2
[ "MIT" ]
17
2021-09-08T08:21:03.000Z
2022-03-24T16:57:02.000Z
PyGenetic/mutation.py
Omair-R/PyGenetic
27c97e0958b65b6163a6fb9e9e5089eb2dc7dae2
[ "MIT" ]
1
2021-12-16T15:40:16.000Z
2021-12-16T15:40:16.000Z
PyGenetic/mutation.py
Omair-R/PyGenetic
27c97e0958b65b6163a6fb9e9e5089eb2dc7dae2
[ "MIT" ]
6
2021-12-16T14:55:15.000Z
2022-01-11T18:05:35.000Z
import numpy as np class MutationDecidor: def __init__(self, mutation_type, n_genes, mutation_propability, low_boundery=0, high_boundery=0): self.n_genes = n_genes self.mutation_propability = mutation_propability...
34.145455
77
0.583067
205
1,878
5.097561
0.229268
0.080383
0.038278
0.080383
0.421053
0.345455
0.345455
0.24689
0.24689
0.24689
0
0.009509
0.328009
1,878
54
78
34.777778
0.818542
0
0
0.121951
0
0
0.014909
0
0
0
0
0
0
1
0.146341
false
0
0.02439
0.02439
0.243902
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
2ea4c520dd53a2a52f11b5e7a9e632d6c39aba9d
3,480
py
Python
tools/eval.py
jiaruixu/Detectron
baa3392405402438f8c339727aa9c0704dc9fa72
[ "Apache-2.0" ]
null
null
null
tools/eval.py
jiaruixu/Detectron
baa3392405402438f8c339727aa9c0704dc9fa72
[ "Apache-2.0" ]
null
null
null
tools/eval.py
jiaruixu/Detectron
baa3392405402438f8c339727aa9c0704dc9fa72
[ "Apache-2.0" ]
null
null
null
"""Evaluate a network with Detectron.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import argparse import cv2 # NOQA (Must import before importing caffe2 due to bug in cv2) import os import pprint import sys imp...
31.071429
161
0.675862
453
3,480
4.933775
0.403974
0.034899
0.045638
0.041163
0.112752
0.099776
0.036689
0.036689
0
0
0
0.007061
0.226724
3,480
111
162
31.351351
0.823486
0.100575
0
0.094737
0
0
0.195255
0.061879
0
0
0
0
0.021053
1
0.010526
false
0
0.2
0
0.221053
0.042105
0
0
0
null
0
0
0
0
0
0
0
0
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
2ea5aaa2c98d99adc13ed905c0058e7f02231385
2,847
py
Python
u24_lymphocyte/third_party/treeano/nodes/tests/containers_test.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
45
2015-04-26T04:45:51.000Z
2022-01-24T15:03:55.000Z
u24_lymphocyte/third_party/treeano/nodes/tests/containers_test.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
8
2018-07-20T20:54:51.000Z
2020-06-12T05:36:04.000Z
u24_lymphocyte/third_party/treeano/nodes/tests/containers_test.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
22
2018-05-21T23:57:20.000Z
2022-02-21T00:48:32.000Z
import nose.tools as nt import numpy as np import theano import treeano.nodes as tn fX = theano.config.floatX def test_sequential_node_serialization(): tn.check_serialization(tn.SequentialNode("a", [])) tn.check_serialization(tn.SequentialNode( "a", [tn.SequentialNode("b", []), tn.S...
29.968421
75
0.488936
312
2,847
4.339744
0.217949
0.041359
0.059084
0.088626
0.551699
0.464549
0.328656
0.241507
0.226736
0.16322
0
0.027136
0.301019
2,847
94
76
30.287234
0.653266
0
0
0.315789
0
0
0.061819
0
0
0
0
0
0.065789
1
0.105263
false
0
0.052632
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ea5e98a4fc2b8a1c6d0d0f71589f165127c59dd
3,231
py
Python
pupa/migrations/0001_initial.py
datamade/pupa
7c7d2937dfa0c8347e47661a6ed42fd28a9e16d4
[ "BSD-3-Clause" ]
3
2015-11-21T10:39:44.000Z
2019-11-17T16:34:53.000Z
pupa/migrations/0001_initial.py
datamade/pupa
7c7d2937dfa0c8347e47661a6ed42fd28a9e16d4
[ "BSD-3-Clause" ]
1
2015-11-23T19:43:48.000Z
2015-11-23T19:45:06.000Z
pupa/migrations/0001_initial.py
datamade/pupa
7c7d2937dfa0c8347e47661a6ed42fd28a9e16d4
[ "BSD-3-Clause" ]
5
2015-11-22T09:23:14.000Z
2019-11-17T16:34:57.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ('legislative', '0001_initial'), ] operations = [ migrations.CreateModel( name='...
40.898734
280
0.535747
260
3,231
6.511538
0.303846
0.049616
0.059067
0.054341
0.660366
0.607206
0.607206
0.506793
0.383934
0.383934
0
0.008422
0.301764
3,231
78
281
41.423077
0.742021
0.0065
0
0.583333
0
0
0.179863
0
0
0
0
0
0
1
0
false
0
0.055556
0
0.097222
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
2ea60c9a91259a0b51917497b57172f651d30c70
1,112
py
Python
models/estudiante.py
javierdaza/directorio_estudiantes
13f5963cccec278dec4fde7332a4491d9220c059
[ "MIT" ]
null
null
null
models/estudiante.py
javierdaza/directorio_estudiantes
13f5963cccec278dec4fde7332a4491d9220c059
[ "MIT" ]
null
null
null
models/estudiante.py
javierdaza/directorio_estudiantes
13f5963cccec278dec4fde7332a4491d9220c059
[ "MIT" ]
null
null
null
from urllib.parse import urlparse import datetime from decouple import config from peewee import * database_proxy = DatabaseProxy() production = config('PRODUCTION', cast=bool) class BaseModel(Model): class Meta: database = database_proxy class Estudiante(BaseModel): nombre_usuario = CharField(m...
24.173913
65
0.678058
119
1,112
6.226891
0.495798
0.064777
0.097166
0.11336
0.116059
0.116059
0
0
0
0
0
0.017381
0.223921
1,112
45
66
24.711111
0.841251
0
0
0.121212
0
0
0.046763
0
0
0
0
0
0
1
0
false
0.030303
0.121212
0
0.424242
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
2ea6798fa3e1352a78ff1f506bcd6a8b03ba29cd
2,213
py
Python
draftplot_PWx.py
erwinlambert/alphabeta
04dd03de3521556067c997c2deaf0d6560124b7b
[ "BSD-3-Clause" ]
null
null
null
draftplot_PWx.py
erwinlambert/alphabeta
04dd03de3521556067c997c2deaf0d6560124b7b
[ "BSD-3-Clause" ]
null
null
null
draftplot_PWx.py
erwinlambert/alphabeta
04dd03de3521556067c997c2deaf0d6560124b7b
[ "BSD-3-Clause" ]
null
null
null
from scipy.integrate import odeint import os import matplotlib as mpl import numpy as np import matplotlib.pyplot as plt import sys hstep = .01 sstep = .01 hmin = 0. hmax = 2. smin = 0. smax = 3. rmin = .01 rmax = 3. rstep = .1 rr = np.arange(rmin,rmax+rstep,rstep) LL3 = 1.2 LL4 = 0.22 dx = .01 s0 = .01 h0 = .01 ...
21.485437
50
0.619973
383
2,213
3.548303
0.391645
0.137601
0.087564
0.10596
0.036792
0
0
0
0
0
0
0.066012
0.171713
2,213
102
51
21.696078
0.675396
0.048351
0
0
0
0
0.199142
0.043354
0
0
0
0
0
1
0.013514
false
0
0.081081
0
0.108108
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
2ea6f2f3bf56a4b8ce0430cc6d5843b95908a1ac
4,405
py
Python
solid-pancake/solid_pancake_cli.py
sharyar/solid-pancake
26eb519fbfcb5f195527cda06ff4a93e7c0018a7
[ "MIT" ]
null
null
null
solid-pancake/solid_pancake_cli.py
sharyar/solid-pancake
26eb519fbfcb5f195527cda06ff4a93e7c0018a7
[ "MIT" ]
null
null
null
solid-pancake/solid_pancake_cli.py
sharyar/solid-pancake
26eb519fbfcb5f195527cda06ff4a93e7c0018a7
[ "MIT" ]
null
null
null
# CLI application for sentiment analysis of a user's tweets # Load constants # Check if saved model exists, if it does not, ask user if ok to train # Save model for vectorizer as well # Get user's twitter address # Ask if he wants a word cloud too # Start analyzing - Show animation for loading? # display graph of se...
32.873134
112
0.695119
610
4,405
4.785246
0.337705
0.035629
0.060295
0.017472
0.206578
0.151764
0.12196
0.104145
0.104145
0.075368
0
0.006596
0.2084
4,405
133
113
33.120301
0.830513
0.08899
0
0.1
0
0.01
0.354911
0.025994
0
0
0
0
0
1
0.02
false
0
0.09
0
0.13
0.02
0
0
0
null
0
0
0
0
0
0
0
0
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
2ea88745253e3b4338317f561c7e7bcfe24b4d43
1,237
py
Python
util.py
melkamar/fitanketa-miner
fa1d990a20f218cf1a2dde1d8485453f19ab597e
[ "MIT" ]
null
null
null
util.py
melkamar/fitanketa-miner
fa1d990a20f218cf1a2dde1d8485453f19ab597e
[ "MIT" ]
null
null
null
util.py
melkamar/fitanketa-miner
fa1d990a20f218cf1a2dde1d8485453f19ab597e
[ "MIT" ]
null
null
null
import datetime def get_semester(date: datetime.datetime) -> str: """ Semesters are coded B161 (winter 2016/2017), B162 (summer 2016/2017) etc. They are obtained by comparing dates: January-February year X -> winter semester of year (X-1)/X March-September year X -> summer semester of ye...
30.170732
86
0.641067
195
1,237
3.974359
0.435897
0.03871
0.054194
0.058065
0.141935
0.091613
0.067097
0
0
0
0
0.063608
0.224737
1,237
40
87
30.925
0.744526
0.290218
0
0
0
0
0.125891
0.059382
0
0
0
0
0
1
0.2
false
0
0.05
0.1
0.55
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
2ea8c2bf1fba5f3a643f0cdd98c6a5c896e24557
1,465
py
Python
vsutillib/vsutillib-misc/vsutillib/misc/strFormatTimeDelta.py
akai10tsuki/vsutillib
6d623171cc2a5c66a94fb508bfc312abeab49ff2
[ "MIT" ]
null
null
null
vsutillib/vsutillib-misc/vsutillib/misc/strFormatTimeDelta.py
akai10tsuki/vsutillib
6d623171cc2a5c66a94fb508bfc312abeab49ff2
[ "MIT" ]
null
null
null
vsutillib/vsutillib-misc/vsutillib/misc/strFormatTimeDelta.py
akai10tsuki/vsutillib
6d623171cc2a5c66a94fb508bfc312abeab49ff2
[ "MIT" ]
null
null
null
""" format timedelta object """ from string import Formatter def strFormatTimeDelta(tDelta, fmt=None): """ strFormatTimeDelta format time delta string. If fmt is None a format of 'N days N hours N minutes N seconds' will be used starting with the first non zero N found in the calculations. Args...
29.3
86
0.579522
174
1,465
4.873563
0.45977
0.023585
0.024764
0.025943
0.141509
0
0
0
0
0
0
0.019531
0.301024
1,465
49
87
29.897959
0.808594
0.254608
0
0.08
0
0
0.039385
0
0
0
0
0
0
1
0.04
false
0
0.04
0
0.16
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
2ea90ea2807bc0d66bfcd1a09e321202c437d6ed
951
py
Python
tests/conftest.py
carlegbert/crocodile
8b78c9d1610ba4977f718807e4ec442ce249f62a
[ "MIT" ]
null
null
null
tests/conftest.py
carlegbert/crocodile
8b78c9d1610ba4977f718807e4ec442ce249f62a
[ "MIT" ]
null
null
null
tests/conftest.py
carlegbert/crocodile
8b78c9d1610ba4977f718807e4ec442ce249f62a
[ "MIT" ]
null
null
null
import json from hashlib import sha1 import hmac from os import path import pytest from crocodile.app import create_app TEST_SECRET = 'test_secret' @pytest.fixture def app(): test_config = { 'CROCODILE_SECRET': TEST_SECRET, 'TESTING': True, 'CONSUMERSFILE': path.join(path.dirname(__file_...
19.02
75
0.674027
120
951
5.166667
0.391667
0.125806
0.154839
0
0
0
0
0
0
0
0
0.006527
0.194532
951
49
76
19.408163
0.802872
0
0
0.171429
0
0
0.168244
0
0
0
0
0
0
1
0.171429
false
0
0.171429
0.114286
0.485714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
2ea9a3d5c1e2aaee9a2edabc627b486bd2b84f2b
5,091
py
Python
gatelfpytorchjson/modules/TextClassBiLstmCnnSingle.py
GateNLP/gate-lf-pytorch-wrapper
a08e180e56062dc03247ff0eb2414c0179ef7863
[ "Apache-2.0" ]
1
2018-05-13T06:26:23.000Z
2018-05-13T06:26:23.000Z
gatelfpytorchjson/modules/TextClassBiLstmCnnSingle.py
GateNLP/gate-lf-pytorch-wrapper
a08e180e56062dc03247ff0eb2414c0179ef7863
[ "Apache-2.0" ]
46
2018-04-27T19:13:11.000Z
2019-06-10T20:45:27.000Z
gatelfpytorchjson/modules/TextClassBiLstmCnnSingle.py
GateNLP/gate-lf-pytorch-wrapper
a08e180e56062dc03247ff0eb2414c0179ef7863
[ "Apache-2.0" ]
2
2019-06-01T11:44:08.000Z
2019-06-18T03:27:19.000Z
from gatelfpytorchjson import CustomModule from gatelfpytorchjson import EmbeddingsModule import torch import torch.nn as nn import torch.nn.functional as F import sys import logging logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) streamhandler = logging.StreamHandler(stream=sys.stderr) formatter =...
41.390244
117
0.659006
701
5,091
4.611983
0.24679
0.036189
0.013919
0.023198
0.180019
0.127436
0.118157
0.097123
0.097123
0.025982
0
0.042116
0.21646
5,091
122
118
41.729508
0.768363
0.140051
0
0
0
0
0.028919
0
0
0
0
0
0
1
0.048193
false
0
0.084337
0.012048
0.180723
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
2ea9f0f2aa03f595d96934647cb51c4753435863
728
py
Python
server/server/main.py
john-sonz/federated-learning-iot
4eb698dff6c43bfefeea8f99eaa6aa0765200fc8
[ "MIT" ]
null
null
null
server/server/main.py
john-sonz/federated-learning-iot
4eb698dff6c43bfefeea8f99eaa6aa0765200fc8
[ "MIT" ]
null
null
null
server/server/main.py
john-sonz/federated-learning-iot
4eb698dff6c43bfefeea8f99eaa6aa0765200fc8
[ "MIT" ]
1
2022-01-10T15:39:32.000Z
2022-01-10T15:39:32.000Z
import flwr as fl import os from flwr.server.strategy import FedAvg os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3" ENV = os.environ FRACTION_FIT = float(ENV.get('FRACTION_FIT', "0.5")) MIN_AVAILABLE_CLIENTS = int(ENV.get('MIN_AVAILABLE_CLIENTS', "5")) NUM_ROUNDS = int(ENV.get('NUM_ROUNDS', "10")) SERVER_ADDRESS = ENV.get...
33.090909
96
0.773352
108
728
4.824074
0.351852
0.126679
0.21881
0.084453
0.115163
0
0
0
0
0
0
0.015267
0.100275
728
21
97
34.666667
0.780153
0
0
0
0
0
0.159341
0.028846
0
0
0
0
0
1
0.071429
false
0
0.214286
0
0.285714
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2eaa782a586f2d229922037eef6508d342caa110
10,279
py
Python
plot_functions.py
Noahs-ARK/idea_relations
b84427ede926f4272a1f60a3554d9674d70582cc
[ "MIT" ]
29
2017-04-27T18:08:38.000Z
2020-11-14T06:54:37.000Z
plot_functions.py
Noahs-ARK/idea_relations
b84427ede926f4272a1f60a3554d9674d70582cc
[ "MIT" ]
1
2017-06-16T19:47:52.000Z
2017-06-16T19:47:52.000Z
plot_functions.py
Noahs-ARK/idea_relations
b84427ede926f4272a1f60a3554d9674d70582cc
[ "MIT" ]
8
2017-04-27T20:14:28.000Z
2019-03-18T16:50:55.000Z
"""Adapt plot functions with seaborn to get more beautiful plots.""" from __future__ import unicode_literals from __future__ import absolute_import from __future__ import division from __future__ import print_function import logging import os import collections import itertools import numpy as np import scipy.stats a...
36.580071
88
0.594027
1,349
10,279
4.409192
0.24685
0.011769
0.010087
0.008742
0.183423
0.14694
0.102219
0.089778
0.073302
0.061197
0
0.010555
0.290301
10,279
280
89
36.710714
0.804798
0.092421
0
0.142857
0
0
0.040009
0
0
0
0
0
0
1
0.038961
false
0
0.073593
0
0.142857
0.004329
0
0
0
null
0
0
0
0
0
0
0
0
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
2eaa925e072fda3917a52d9ce1d563a4bee27bae
599
py
Python
Mask_RCNN/Faster_RCNN_New/vis_data.py
pkasten/Chiral-molecule-detection
fdeac581484b2b058eff863e2b5cd49b217fc4f5
[ "MIT" ]
2
2021-02-25T12:58:23.000Z
2021-11-30T13:03:27.000Z
Mask_RCNN/Faster_RCNN_New/vis_data.py
pkasten/Chiral-molecule-detection
fdeac581484b2b058eff863e2b5cd49b217fc4f5
[ "MIT" ]
null
null
null
Mask_RCNN/Faster_RCNN_New/vis_data.py
pkasten/Chiral-molecule-detection
fdeac581484b2b058eff863e2b5cd49b217fc4f5
[ "MIT" ]
1
2021-12-01T15:55:04.000Z
2021-12-01T15:55:04.000Z
import random from detectron2.utils.visualizer import Visualizer from detectron2.data.catalog import MetadataCatalog, DatasetCatalog import mol_data import cv2 mol_metadata = MetadataCatalog.get("mol") print(mol_metadata) dataset_dicts = DatasetCatalog.get("mol") for d in random.sample(dataset_dicts, ...
28.52381
68
0.686144
77
599
5.194805
0.454545
0.0825
0.055
0.06
0
0
0
0
0
0
0
0.022133
0.170284
599
21
69
28.52381
0.782696
0
0
0
0
0
0.02931
0
0
0
0
0
0
1
0
false
0
0.3125
0
0.3125
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2eaaf9b464b30657bb954716ce433490091b5cd9
1,916
py
Python
train/docker/src/train.py
samuelrojolopez/ml_technical_challenge
09b3d1e20243e0329042360d10af2d1832126c4a
[ "MIT" ]
null
null
null
train/docker/src/train.py
samuelrojolopez/ml_technical_challenge
09b3d1e20243e0329042360d10af2d1832126c4a
[ "MIT" ]
null
null
null
train/docker/src/train.py
samuelrojolopez/ml_technical_challenge
09b3d1e20243e0329042360d10af2d1832126c4a
[ "MIT" ]
null
null
null
# coding: utf-8 import pandas as pd from glob import glob from joblib import dump from imblearn.over_sampling import SMOTE from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestClassifier if __name__ == "__main__": TRAINING_DATA_PATH = "/opt/ml/input/data/train/" MODE...
26.246575
77
0.635699
240
1,916
4.8125
0.4125
0.114286
0.069264
0.054545
0.050216
0
0
0
0
0
0
0.006334
0.258351
1,916
72
78
26.611111
0.803659
0.055846
0
0.045455
0
0
0.139353
0.013935
0
0
0
0
0
1
0
false
0
0.136364
0
0.136364
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2eabbc492325693d84c09f8314053d43a9d2b56b
20,786
py
Python
pyne/tests/spatial_solvers/ahot_script.py
AllSafeCyberSecur1ty/Nuclear-Engineering
302d6dcc7c0a85a9191098366b076cf9cb5a9f6e
[ "MIT" ]
1
2022-03-26T20:01:13.000Z
2022-03-26T20:01:13.000Z
pyne/tests/spatial_solvers/ahot_script.py
AllSafeCyberSecur1ty/Nuclear-Engineering
302d6dcc7c0a85a9191098366b076cf9cb5a9f6e
[ "MIT" ]
null
null
null
pyne/tests/spatial_solvers/ahot_script.py
AllSafeCyberSecur1ty/Nuclear-Engineering
302d6dcc7c0a85a9191098366b076cf9cb5a9f6e
[ "MIT" ]
1
2022-03-26T19:59:13.000Z
2022-03-26T19:59:13.000Z
"""AHOT Spatial Solver tests""" # TODO: # Add tests with supported warning configurations? # a = populate_with_warnings("AHOTN") # a = populate_with_warnings("DGFEM") import numpy as np from numpy.testing import assert_array_almost_equal import pyne.spatialsolver from .dictionary_populate_test import ( populate_...
36.024263
85
0.537285
2,650
20,786
4.138113
0.110943
0.04514
0.023345
0.035747
0.869323
0.866314
0.848258
0.848258
0.736002
0.665238
0
0.466147
0.309343
20,786
576
86
36.086806
0.297715
0.007361
0
0.69305
0
0
0.05736
0
0
0
0
0.001736
0.030888
1
0.027027
false
0
0.007722
0
0.034749
0.025097
0
0
0
null
0
0
0
1
1
1
1
1
1
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
2eac1b4af86faa566a0da740a08ed19d0bd17c1d
646
py
Python
asynchronous_qiwi/call/API/QIWIWallet/payment_api/currency_rates.py
LexLuthorReal/asynchronous_qiwi
5847a8d4008493656e973e5283888a4e57234962
[ "MIT" ]
3
2021-05-20T02:36:30.000Z
2021-11-28T16:00:15.000Z
asynchronous_qiwi/call/API/QIWIWallet/payment_api/currency_rates.py
LexLuthorReal/asynchronous_qiwi
5847a8d4008493656e973e5283888a4e57234962
[ "MIT" ]
null
null
null
asynchronous_qiwi/call/API/QIWIWallet/payment_api/currency_rates.py
LexLuthorReal/asynchronous_qiwi
5847a8d4008493656e973e5283888a4e57234962
[ "MIT" ]
1
2021-11-28T16:00:20.000Z
2021-11-28T16:00:20.000Z
from .....data.URL import QIWIWalletURLS from .....data_types.connector.request_type import GET from .....connector.aiohttp_connector import Connector class CurrencyRatesAPI: @classmethod async def get_currency_rates(cls, wallet_api_key: str) -> dict: url = QIWIWalletURLS.Payments.currency_rates ...
38
86
0.684211
71
646
6.042254
0.507042
0.037296
0.055944
0
0
0
0
0
0
0
0
0
0.208978
646
16
87
40.375
0.83953
0
0
0
0
0
0.133127
0
0
0
0
0
0
1
0
false
0
0.230769
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
2eac49e1485b2b305dadda77ebaf1519f5ff917c
47
py
Python
doubleratchet/exceptions/missingkeyexception.py
mmojahed93/python-doubleratchet
3a8ae7a2ab2222f50df0b8077d89b05447532978
[ "MIT" ]
11
2018-03-28T11:15:29.000Z
2021-10-24T01:48:30.000Z
doubleratchet/exceptions/missingkeyexception.py
mmojahed93/python-doubleratchet
3a8ae7a2ab2222f50df0b8077d89b05447532978
[ "MIT" ]
null
null
null
doubleratchet/exceptions/missingkeyexception.py
mmojahed93/python-doubleratchet
3a8ae7a2ab2222f50df0b8077d89b05447532978
[ "MIT" ]
6
2019-04-22T20:13:25.000Z
2021-09-13T16:24:32.000Z
class MissingKeyException(Exception): pass
15.666667
37
0.787234
4
47
9.25
1
0
0
0
0
0
0
0
0
0
0
0
0.148936
47
2
38
23.5
0.925
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
2eac8b4e05486b52eb12dc6e758aba64c32a1220
5,877
py
Python
okonomiyaki/file_formats/setuptools_egg.py
enthought/okonomiyaki
51b8b4fa8d17255e13c097402691726545cf5b4c
[ "BSD-3-Clause" ]
1
2021-06-01T16:35:00.000Z
2021-06-01T16:35:00.000Z
okonomiyaki/file_formats/setuptools_egg.py
enthought/okonomiyaki
51b8b4fa8d17255e13c097402691726545cf5b4c
[ "BSD-3-Clause" ]
249
2015-02-24T19:06:53.000Z
2021-07-30T09:01:53.000Z
okonomiyaki/file_formats/setuptools_egg.py
enthought/okonomiyaki
51b8b4fa8d17255e13c097402691726545cf5b4c
[ "BSD-3-Clause" ]
4
2015-02-19T21:29:12.000Z
2016-01-14T21:02:39.000Z
import os.path import re import sys try: import sysconfig except ImportError: # Python 2.6 support sysconfig = None import warnings from okonomiyaki.errors import OkonomiyakiError from okonomiyaki.platforms import PythonImplementation from okonomiyaki.utils import py3compat from ._egg_info import _guess_pytho...
29.681818
79
0.609495
734
5,877
4.741144
0.223433
0.022414
0.017241
0.018391
0.13046
0.083908
0.03908
0.021839
0
0
0
0.013311
0.29692
5,877
197
80
29.832487
0.828896
0.219159
0
0.245763
0
0
0.115872
0.010827
0
0
0
0
0.008475
1
0.084746
false
0
0.09322
0.008475
0.330508
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
2ead2418ac79686f81faf8e79b899ef5370e790b
1,145
py
Python
Python/leetcode.271.encode-and-decode-strings.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
4
2015-10-10T00:30:55.000Z
2020-07-27T19:45:54.000Z
Python/leetcode.271.encode-and-decode-strings.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
Python/leetcode.271.encode-and-decode-strings.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
class Codec: def encode(self, strs): """Encodes a list of strings to a single string. :type strs: List[str] :rtype: str """ # encode format '<total_length> <seperate length connected with -> <joined str>' if not strs: return '' separate_l...
30.131579
88
0.535371
146
1,145
4.109589
0.369863
0.11
0.023333
0.046667
0
0
0
0
0
0
0
0.005284
0.338865
1,145
38
89
30.131579
0.787318
0.302183
0
0
0
0
0.006944
0
0
0
0
0
0
1
0.1
false
0
0
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2eaee1f5ab79283db12741ad1f4f0ff16bd8988e
3,761
py
Python
shipyard/rules/base/build.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
3
2016-01-04T06:28:52.000Z
2020-09-20T13:18:40.000Z
shipyard/rules/base/build.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
null
null
null
shipyard/rules/base/build.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
null
null
null
"""Base of all build rules.""" from pathlib import Path from garage import scripts from foreman import define_parameter, rule, to_path (define_parameter.path_typed('root') .with_doc('Path to the root directory of this repository.') .with_default(Path(__file__).parent.parent.parent.parent)) (define_parameter.pa...
29.155039
78
0.650625
468
3,761
5.111111
0.33547
0.056438
0.055602
0.070234
0.241221
0.153428
0.073997
0
0
0
0
0.006034
0.20686
3,761
128
79
29.382813
0.795843
0.194629
0
0.202703
0
0
0.260403
0.025839
0
0
0
0
0
1
0.040541
false
0
0.040541
0
0.081081
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
2eafb50bbce7f7a6466757554ee9222412c1f278
1,099
py
Python
examples/crud/authentication.py
fossabot/vial
0e33a68f5e0dd6a9a9877163f263114fc9e5f774
[ "MIT" ]
4
2019-02-07T14:58:21.000Z
2021-01-28T08:43:46.000Z
examples/crud/authentication.py
fossabot/vial
0e33a68f5e0dd6a9a9877163f263114fc9e5f774
[ "MIT" ]
8
2018-12-29T14:08:48.000Z
2021-03-19T07:54:54.000Z
examples/crud/authentication.py
fossabot/vial
0e33a68f5e0dd6a9a9877163f263114fc9e5f774
[ "MIT" ]
3
2019-01-07T05:50:39.000Z
2020-10-24T10:26:54.000Z
from functools import wraps from models import User class AuthenticationService: @classmethod def get_profile_from_token(cls, token): user = User.get(where={'auth_token': token}) if not user: raise Exception("No profile for this token") return user @classmethod d...
28.179487
94
0.591447
116
1,099
5.508621
0.439655
0.065728
0.043818
0.059468
0
0
0
0
0
0
0
0.003937
0.306642
1,099
38
95
28.921053
0.834646
0
0
0.111111
0
0
0.119199
0
0
0
0
0
0
1
0.148148
false
0
0.074074
0
0.407407
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
2eb0484af9cce8ea841dc9edc7631fe9d4a6ea0c
13,938
py
Python
extractVerb.py
StatisticalProject/timetobirth
0a7acfe51d8eb5195e9d5cbe3e7378a0b73a3842
[ "Apache-2.0" ]
null
null
null
extractVerb.py
StatisticalProject/timetobirth
0a7acfe51d8eb5195e9d5cbe3e7378a0b73a3842
[ "Apache-2.0" ]
null
null
null
extractVerb.py
StatisticalProject/timetobirth
0a7acfe51d8eb5195e9d5cbe3e7378a0b73a3842
[ "Apache-2.0" ]
null
null
null
import urllib, json import urllib.request,os import socket import random import re socket.setdefaulttimeout(50) #https://www.hide-my-ip.com/fr/proxylist.shtml # .*(\[\{.*\]).* KEY="A00239D3-45F6-4A0A-810C-54A347F144C2" KEY="720129CF233B4CA2DF97DAE48C8717E1" KEY="35d28185-0ca1-47f0-8caf-edc457802c9d" KEY="B...
49.425532
235
0.570311
1,504
13,938
5.256649
0.123005
0.035416
0.063749
0.057045
0.673539
0.617
0.492537
0.42082
0.388439
0.372502
0
0.02949
0.245803
13,938
281
236
49.601423
0.722603
0.016358
0
0.311966
0
0.068376
0.30415
0.079726
0
0
0
0
0
1
0.012821
false
0
0.021368
0
0.051282
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2eb2116844f3cc0a0343be2f4899a9026e234186
9,739
py
Python
cli.py
summunity/DjangoReact_CLI
89f4b60028c04a800aa44f1476c63bab27e0b382
[ "MIT" ]
null
null
null
cli.py
summunity/DjangoReact_CLI
89f4b60028c04a800aa44f1476c63bab27e0b382
[ "MIT" ]
null
null
null
cli.py
summunity/DjangoReact_CLI
89f4b60028c04a800aa44f1476c63bab27e0b382
[ "MIT" ]
null
null
null
""" Diamond Cronjob ================= Event Detection based on data stored in Diamond :Author: Nik Sumikawa :Date: Nov 3, 2020 """ import logging log = logging.getLogger(__name__) import pandas as pd from src.apps.interface import * from src.git.interface import * import os class CLI: def __init__(self):...
26.60929
95
0.505904
1,058
9,739
4.531191
0.192817
0.054443
0.046099
0.022528
0.520442
0.48957
0.466208
0.466208
0.423237
0.423237
0
0.011472
0.364514
9,739
365
96
26.682192
0.763128
0.55478
0
0.207317
0
0
0.095471
0
0
0
0
0
0
1
0.073171
false
0
0.134146
0
0.256098
0.02439
0
0
0
null
0
0
0
0
0
0
0
0
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
2eb22faa9efa6dff300c7bf44da3227149fe3aa6
7,636
py
Python
src/DataBase/LogTool/LogTool.py
swipswaps/Wind-Blade-Inspection
24613b9f2fbab224ffd3bbfc1082aa1547c19779
[ "MIT" ]
null
null
null
src/DataBase/LogTool/LogTool.py
swipswaps/Wind-Blade-Inspection
24613b9f2fbab224ffd3bbfc1082aa1547c19779
[ "MIT" ]
null
null
null
src/DataBase/LogTool/LogTool.py
swipswaps/Wind-Blade-Inspection
24613b9f2fbab224ffd3bbfc1082aa1547c19779
[ "MIT" ]
null
null
null
''' Author: Hans Erik Heggem Email: hans.erik.heggem@gmail.com Project: Master's Thesis - Autonomous Inspection Of Wind Blades Repository: Master's Thesis - CV (Computer Vision ''' import timeit from getpass import getpass from src.DroneVision.DroneVision_src.hardware.imageTools import MatplotShow ''' @brief LogT...
38.761421
226
0.64484
926
7,636
5.149028
0.2473
0.071728
0.016779
0.018456
0.26573
0.220847
0.152475
0.07005
0.042785
0.042785
0
0.008429
0.145495
7,636
196
227
38.959184
0.722299
0.004976
0
0.147059
0
0.029412
0.339975
0.052414
0
0
0
0
0
0
null
null
0.019608
0.029412
null
null
0.039216
0
0
0
null
0
0
0
0
0
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
2eb2a9edba41e9d0531222c23fa4b4443640a537
99
py
Python
acmicpc/11719/11719.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
3
2019-03-09T05:19:23.000Z
2019-04-06T09:26:36.000Z
acmicpc/11719/11719.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
1
2020-02-23T10:38:04.000Z
2020-02-23T10:38:04.000Z
acmicpc/11719/11719.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
1
2019-05-22T13:47:53.000Z
2019-05-22T13:47:53.000Z
while True: try: n = str(input()) print(n) except EOFError: break
14.142857
24
0.464646
11
99
4.181818
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.434343
99
6
25
16.5
0.821429
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
2eb3d07900dd0c7f4751ad09bc670f3fadf5606f
458
py
Python
examples/zeromq_first.py
msabramo/diesel
a1ed7ed0358d0fec8592e23aafc3b7ec167ab649
[ "BSD-3-Clause" ]
224
2015-01-03T06:33:05.000Z
2021-11-22T03:19:02.000Z
examples/zeromq_first.py
dowski/diesel
d9824e467805caf40e0ba21b88a27db38e64c352
[ "BSD-3-Clause" ]
12
2015-01-01T03:35:15.000Z
2021-05-22T23:37:28.000Z
examples/zeromq_first.py
dowski/diesel
d9824e467805caf40e0ba21b88a27db38e64c352
[ "BSD-3-Clause" ]
37
2015-01-04T01:47:55.000Z
2022-03-03T02:04:15.000Z
from diesel import quickstart, quickstop, sleep, first from diesel.protocols.zeromq import DieselZMQSocket, zctx, zmq import time def get_messages(): outsock = DieselZMQSocket(zctx.socket(zmq.DEALER), bind="tcp://127.0.0.1:5000") for x in xrange(1000): t, m = first(sleep=1.0, waits=[outsock]) ...
24.105263
83
0.637555
60
458
4.833333
0.616667
0.068966
0
0
0
0
0
0
0
0
0
0.045714
0.235808
458
18
84
25.444444
0.782857
0
0
0
0
0
0.093886
0
0
0
0
0
0
0
null
null
0
0.230769
null
null
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2eb55e581f300c9a4e077505d8a2d1a9bac31f8e
1,652
py
Python
homework.py
dieundead/studies
7da3a15b576ec1e2953c7fdf5762d88a42dea1d3
[ "MIT" ]
null
null
null
homework.py
dieundead/studies
7da3a15b576ec1e2953c7fdf5762d88a42dea1d3
[ "MIT" ]
null
null
null
homework.py
dieundead/studies
7da3a15b576ec1e2953c7fdf5762d88a42dea1d3
[ "MIT" ]
null
null
null
testlist_bubblesort = [40,723, 781, 610, 440, 819, 728, 280, 998, 744, 40, 303, 708, 279, 910] testlist_decision = [560, 769, 349, 97, 881, 108, 827, 131, 301, 952, 255, 787, 625, 549, 5] testlist_insertion = [984, 738, 859, 281, 548, 399, 894, ...
38.418605
80
0.580508
235
1,652
3.995745
0.33617
0.042599
0.042599
0.058573
0.28754
0.194888
0.194888
0.175719
0.123536
0.092652
0
0.12862
0.289346
1,652
43
80
38.418605
0.67121
0
0
0.171429
0
0
0.121043
0
0
0
0
0
0
1
0.085714
false
0
0
0
0.171429
0.171429
0
0
0
null
0
0
0
0
0
0
0
0
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
2eb564479c3dbf656497d8b1066141ca9f3fba07
4,728
py
Python
bookstore/src/book/dao/BookDao.py
mehulk99/Online-Book-Store
27c64b31e6fd33ae3db0bde351f889518de41eb1
[ "Apache-2.0" ]
null
null
null
bookstore/src/book/dao/BookDao.py
mehulk99/Online-Book-Store
27c64b31e6fd33ae3db0bde351f889518de41eb1
[ "Apache-2.0" ]
null
null
null
bookstore/src/book/dao/BookDao.py
mehulk99/Online-Book-Store
27c64b31e6fd33ae3db0bde351f889518de41eb1
[ "Apache-2.0" ]
null
null
null
''' Created on 14-May-2019 @author: mehulk99 ''' from flask import jsonify from bookstore.src.config import BookConfig from bookstore.src.dao.DataAccessor import DataAccessor from ...category.CategoryService import CategoryService from ...models.core.business.books.BookRepository import BookRepository from ...searc...
38.129032
187
0.592851
528
4,728
5.172348
0.234848
0.026364
0.041011
0.04394
0.309044
0.290004
0.279019
0.279019
0.265104
0.265104
0
0.00538
0.292301
4,728
123
188
38.439024
0.810819
0.024535
0
0.241758
0
0.054945
0.26106
0.03548
0
0
0
0
0
1
0.098901
false
0
0.065934
0.010989
0.263736
0.054945
0
0
0
null
0
0
0
0
0
0
0
0
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
2eb6625729f0d7d088a530fc6cdd71cef8012fd9
641
py
Python
tests/unit/api_notebook/test_Jp_GSheets.py
pbx-gs/OSBot-Jupyter
4c05384c46b6ba818a6856bf016b829b737cd72c
[ "Apache-2.0" ]
null
null
null
tests/unit/api_notebook/test_Jp_GSheets.py
pbx-gs/OSBot-Jupyter
4c05384c46b6ba818a6856bf016b829b737cd72c
[ "Apache-2.0" ]
2
2020-02-02T18:27:23.000Z
2020-02-02T18:49:24.000Z
tests/unit/api_notebook/test_Jp_GSheets.py
pbx-gs/OSBot-Jupyter
4c05384c46b6ba818a6856bf016b829b737cd72c
[ "Apache-2.0" ]
2
2019-12-15T23:36:37.000Z
2020-03-23T11:22:03.000Z
from unittest import TestCase from osbot_utils.utils.Dev import Dev from osbot_jupyter.api_notebook.Jp_GSheets import Jp_GSheets class test_Jp_GSheets(TestCase): def setUp(self): self.file_id = '1_Bwz6z34wALFGb1ILUXG8CtF1-Km6F9_sGXnAu4gewY' self.sheet_name = 'Jira Data' self.sheets ...
22.103448
72
0.672387
85
641
4.882353
0.435294
0.120482
0.048193
0.086747
0.115663
0
0
0
0
0
0
0.020576
0.24181
641
28
73
22.892857
0.833333
0
0
0
0
0
0.083203
0.069074
0
0
0
0
0
1
0.25
false
0
0.1875
0
0.5
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
2eb67aa5bb0af8a097d82e0669d563067c7b38b0
1,576
py
Python
clase_9_LimpiezaDeDatos/test/test_1_limpieza.py
alanpirotta/data_science_dh
4cb183aca70505d50d45a3f898463a47ee5eb053
[ "MIT" ]
null
null
null
clase_9_LimpiezaDeDatos/test/test_1_limpieza.py
alanpirotta/data_science_dh
4cb183aca70505d50d45a3f898463a47ee5eb053
[ "MIT" ]
null
null
null
clase_9_LimpiezaDeDatos/test/test_1_limpieza.py
alanpirotta/data_science_dh
4cb183aca70505d50d45a3f898463a47ee5eb053
[ "MIT" ]
null
null
null
def dummy(): return 0; def test_not_null_count(data, result, axis): is_notnull_result = data.notnull() data_not_null = is_notnull_result.sum(axis = axis) test_ok = all(data_not_null == result) if test_ok: msg = "Muy bien!!" else: if type(result) == "pandas.core.series.Series": ...
35.818182
119
0.647843
227
1,576
4.286344
0.290749
0.05036
0.056526
0.097636
0.514902
0.514902
0.397739
0.366906
0.366906
0.366906
0
0.005204
0.268401
1,576
44
120
35.818182
0.838682
0
0
0.432432
0
0
0.273304
0.065948
0
0
0
0
0
1
0.135135
false
0
0
0.027027
0.27027
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
2eb6a5b3ad9075ee31087bd668337d5de2ad9d3f
3,583
py
Python
stickerfinder/telegram/keyboard/settings.py
annihilatorrrr/sticker-finder
873468f8de26cc32d1de9b688140569b8086ab5b
[ "MIT" ]
82
2018-11-13T05:39:44.000Z
2022-01-18T17:08:44.000Z
stickerfinder/telegram/keyboard/settings.py
annihilatorrrr/sticker-finder
873468f8de26cc32d1de9b688140569b8086ab5b
[ "MIT" ]
25
2018-12-02T18:45:52.000Z
2022-03-21T22:54:19.000Z
stickerfinder/telegram/keyboard/settings.py
annihilatorrrr/sticker-finder
873468f8de26cc32d1de9b688140569b8086ab5b
[ "MIT" ]
23
2019-01-22T20:04:50.000Z
2022-02-01T14:57:28.000Z
"""Maintenance related keyboards.""" from telegram import ( InlineKeyboardMarkup, InlineKeyboardButton, ) from stickerfinder.helper.callback import build_user_data, build_data def get_settings_keyboard(user): """Get the inline keyboard for settings.""" international_payload = build_user_data("user_tog...
32.279279
87
0.64192
354
3,583
6.248588
0.20339
0.162749
0.047016
0.066456
0.367993
0.229656
0.120253
0.120253
0.081374
0.081374
0
0
0.263745
3,583
110
88
32.572727
0.832449
0.046888
0
0.322222
0
0
0.174425
0.02416
0
0
0
0
0
1
0.033333
false
0
0.022222
0
0.088889
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
2eba00efde07993dc1c59983d15c23b1545c645f
1,931
py
Python
code/zeroinsertion_aging/plot-fewinsertion.py
andim/paper-tcellimprint
e89605e51014fa3f347f96bab3d3d84c2b013a2f
[ "MIT" ]
2
2020-07-28T10:47:40.000Z
2021-11-14T20:07:21.000Z
code/zeroinsertion_aging/plot-fewinsertion.py
andim/paper-tcellimprint
e89605e51014fa3f347f96bab3d3d84c2b013a2f
[ "MIT" ]
null
null
null
code/zeroinsertion_aging/plot-fewinsertion.py
andim/paper-tcellimprint
e89605e51014fa3f347f96bab3d3d84c2b013a2f
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import matplotlib import palettable import pandas as pd import sys sys.path.append('..') from lib import * plt.style.use('../custom.mplstyle') names = ['oneInsertion', 'twoInsertion'] agebinsize = 10.0 agebins = np.arange(0.0, 90.0, agebinsize) bin_ts = agebins[:-1...
32.183333
95
0.663387
294
1,931
4.282313
0.455782
0.051628
0.040508
0.031771
0.036537
0.036537
0.036537
0.036537
0
0
0
0.055046
0.153288
1,931
59
96
32.728814
0.714985
0
0
0
0
0
0.116002
0.02434
0
0
0
0
0
1
0.021277
false
0
0.148936
0
0.191489
0.021277
0
0
0
null
0
0
0
0
0
0
0
0
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
2eba2b798479eb6da1c8d9471ea3f803852412fc
2,894
py
Python
library/library/modules/bigip_drop_connection.py
meverett1167/Ansible_Demos
dad515d43af19bcb201f31929e03352d09097efc
[ "Apache-2.0" ]
null
null
null
library/library/modules/bigip_drop_connection.py
meverett1167/Ansible_Demos
dad515d43af19bcb201f31929e03352d09097efc
[ "Apache-2.0" ]
null
null
null
library/library/modules/bigip_drop_connection.py
meverett1167/Ansible_Demos
dad515d43af19bcb201f31929e03352d09097efc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2017 F5 Networks Inc. # Copyright (c) 2016 Michael Perzel # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'...
24.735043
91
0.622668
332
2,894
5.26506
0.475904
0.034325
0.02746
0.039474
0.108124
0.108124
0.044622
0.044622
0
0
0
0.01644
0.26434
2,894
116
92
24.948276
0.804603
0.085003
0
0.266667
0
0
0.522529
0
0
0
0
0
0
1
0.011111
false
0.055556
0.055556
0
0.066667
0.011111
0
0
0
null
0
0
0
0
0
0
0
0
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
2eba870cf64953dbca714f2107848bfa15ca97d2
2,360
py
Python
tests/test_transforms.py
sri-sensors/atmosense-abcgan
6a0d88ce49b7de03e557eca362ab7d3399d44cfb
[ "MIT" ]
null
null
null
tests/test_transforms.py
sri-sensors/atmosense-abcgan
6a0d88ce49b7de03e557eca362ab7d3399d44cfb
[ "MIT" ]
null
null
null
tests/test_transforms.py
sri-sensors/atmosense-abcgan
6a0d88ce49b7de03e557eca362ab7d3399d44cfb
[ "MIT" ]
null
null
null
import unittest import abcgan.constants as const from abcgan import transforms as trans import numpy as np def fake_drivers(n): return np.exp(np.random.normal(size=(n, const.n_driver))) def fake_bvs(n): return np.exp(np.random.normal(size=(n, const.max_alt, const.n_bv))) class TestTransforms(unittest.Test...
34.202899
78
0.658051
330
2,360
4.436364
0.193939
0.036885
0.037568
0.040984
0.531421
0.50888
0.460383
0.413934
0.393443
0.393443
0
0.013165
0.227542
2,360
68
79
34.705882
0.789907
0
0
0.320755
0
0
0.011864
0
0
0
0
0
0.207547
1
0.169811
false
0
0.075472
0.037736
0.301887
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
2ebce4a5e3f3f33fb24cf40e4d6d09afffd1fa71
4,937
py
Python
bone-age/src/bsmu/bone_age/plugins/journal_exporter.py
IvanKosik/vision
74603d4b727e6d993b562eb4656952e29173323e
[ "BSD-3-Clause" ]
2
2019-10-15T11:34:17.000Z
2021-02-03T10:46:07.000Z
bone-age/src/bsmu/bone_age/plugins/journal_exporter.py
IvanKosik/vision
74603d4b727e6d993b562eb4656952e29173323e
[ "BSD-3-Clause" ]
null
null
null
bone-age/src/bsmu/bone_age/plugins/journal_exporter.py
IvanKosik/vision
74603d4b727e6d993b562eb4656952e29173323e
[ "BSD-3-Clause" ]
null
null
null
from __future__ import annotations import csv from typing import TYPE_CHECKING from PySide2.QtCore import QObject from PySide2.QtWidgets import QFileDialog, QMessageBox from bsmu.bone_age.plugins.main_window import TableMenu from bsmu.vision.core.plugins.base import Plugin if TYPE_CHECKING: from bsmu.bone_age.p...
46.140187
115
0.667004
547
4,937
5.570384
0.226691
0.082704
0.045947
0.037414
0.364293
0.255661
0.125041
0.090581
0.038727
0.038727
0
0.000824
0.262913
4,937
106
116
46.575472
0.836494
0
0
0.024096
0
0
0.114239
0.059955
0
0
0
0
0
1
0.060241
false
0
0.108434
0
0.337349
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
2ebd1a88d72451941988cd64b63eaae21ba2e050
21,234
py
Python
pyximc.py
EmmaKindstrom/Indentation_Discrimination
bdb68c82a36aae7f00acbf071fdd8e68bc309874
[ "MIT" ]
null
null
null
pyximc.py
EmmaKindstrom/Indentation_Discrimination
bdb68c82a36aae7f00acbf071fdd8e68bc309874
[ "MIT" ]
null
null
null
pyximc.py
EmmaKindstrom/Indentation_Discrimination
bdb68c82a36aae7f00acbf071fdd8e68bc309874
[ "MIT" ]
1
2022-02-14T10:52:31.000Z
2022-02-14T10:52:31.000Z
from ctypes import * import os import platform import sys # Load library # use cdecl on unix and stdcall on windows def ximc_shared_lib(): if platform.system() == "Linux": return CDLL("libximc.so") elif platform.system() == "FreeBSD": return CDLL("libximc.so") elif platform.system() == "Da...
23.462983
65
0.646605
2,507
21,234
5.039888
0.244515
0.061733
0.07218
0.049387
0.231658
0.190503
0.186704
0.16296
0.156787
0.156787
0
0.054833
0.221861
21,234
904
66
23.488938
0.709859
0.012668
0
0.234615
0
0
0.154823
0.011311
0
0
0.04806
0
0
1
0.001282
false
0.001282
0.005128
0
0.494872
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
2ebd8e420a76964bfe5a3a13462a439277b542dc
4,787
py
Python
cgi-bin/report.py
alexander1389/IMS.WebAPI
cfc8c6c899655c337973f9a32a620e9cd6af34b9
[ "MIT" ]
null
null
null
cgi-bin/report.py
alexander1389/IMS.WebAPI
cfc8c6c899655c337973f9a32a620e9cd6af34b9
[ "MIT" ]
null
null
null
cgi-bin/report.py
alexander1389/IMS.WebAPI
cfc8c6c899655c337973f9a32a620e9cd6af34b9
[ "MIT" ]
null
null
null
import sys import os import time from datetime import datetime from os.path import isfile, join, splitext, getsize, basename from shutil import copyfileobj from zipfile import ZipFile from bad_request import bad_request from utils import validate_dt DEFAULT_DAT = 'last' DEFAULT_EXT = 'xml' def report(**kwargs): ...
27.354286
79
0.62628
668
4,787
4.371257
0.242515
0.027397
0.017808
0.026027
0.300342
0.260274
0.243151
0.212671
0.20137
0.182877
0
0.004944
0.239398
4,787
174
80
27.511494
0.797034
0.257155
0
0.150538
0
0
0.174533
0.022559
0
0
0
0
0
1
0.064516
false
0
0.096774
0
0.215054
0.236559
0
0
0
null
0
0
0
0
0
0
0
0
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
2ec079ba38dcec7f18ce2e34d38c3161e2e10e94
16,428
py
Python
websaver/parsed_data/views.py
aiirohituzi/myWebCrawler
67060f724de1142b7d7d6f6fb981d3c1e925d9b0
[ "MIT" ]
2
2017-08-21T14:38:22.000Z
2017-08-22T01:35:36.000Z
websaver/parsed_data/views.py
aiirohituzi/myWebCrawler
67060f724de1142b7d7d6f6fb981d3c1e925d9b0
[ "MIT" ]
2
2017-09-05T09:54:26.000Z
2017-12-03T13:06:02.000Z
websaver/parsed_data/views.py
aiirohituzi/myWebCrawler
67060f724de1142b7d7d6f6fb981d3c1e925d9b0
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from parsed_data.models import RatingData import json import datetime import config import operator # Create your views here. def getRating(request): data = [] season = request.GET.get('season', False) if season: for r in Ra...
32.023392
97
0.499696
1,803
16,428
4.483084
0.061009
0.021774
0.011877
0.061858
0.910306
0.902264
0.900779
0.884201
0.872696
0.849808
0
0.012145
0.343438
16,428
513
98
32.023392
0.737252
0.486791
0
0.599057
0
0
0.127623
0
0
0
0
0
0
1
0.033019
false
0
0.033019
0
0.099057
0.04717
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
2ec18eb4c9d609c45f211bbba5ede5409418c196
173
py
Python
crawl_cvs/handlers/my_func.py
MacHu-GWU/crawl_cvs-project
1cf63254ea1d7c8026a9d0e0543aaa2d7b7f4918
[ "MIT" ]
1
2020-06-19T09:45:20.000Z
2020-06-19T09:45:20.000Z
crawl_cvs/handlers/my_func.py
MacHu-GWU/crawl_cvs-project
1cf63254ea1d7c8026a9d0e0543aaa2d7b7f4918
[ "MIT" ]
1
2019-12-27T18:41:21.000Z
2019-12-27T18:41:21.000Z
crawl_cvs/handlers/my_func.py
MacHu-GWU/crawl_cvs-project
1cf63254ea1d7c8026a9d0e0543aaa2d7b7f4918
[ "MIT" ]
1
2018-08-22T01:27:32.000Z
2018-08-22T01:27:32.000Z
# -*- coding: utf-8 -*- def handler(event, context): if event.get("name"): return "Hello {}!".format(event.get("name")) else: return "Hello World!"
21.625
52
0.549133
21
173
4.52381
0.714286
0.168421
0.252632
0
0
0
0
0
0
0
0
0.007634
0.242775
173
7
53
24.714286
0.717557
0.121387
0
0
0
0
0.193333
0
0
0
0
0
0
1
0.2
false
0
0
0
0.6
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
0
0
0
0
0
3
2ec221502b1e647f94c1e89ca9e353cdcc04428f
507
py
Python
Python/CeV/Exercicios/ex99.py
WerickL/Learning
5a9a488f0422454e612439b89093d5bc11242e65
[ "MIT" ]
null
null
null
Python/CeV/Exercicios/ex99.py
WerickL/Learning
5a9a488f0422454e612439b89093d5bc11242e65
[ "MIT" ]
null
null
null
Python/CeV/Exercicios/ex99.py
WerickL/Learning
5a9a488f0422454e612439b89093d5bc11242e65
[ "MIT" ]
null
null
null
def maior(*valores): if len(valores) >= 1: maiorv = valores[0] print(f'Analisando os valores...') for c in valores: print(c, end=' ') if c > maiorv: maiorv = c print() print(f'Foram informados {len(valores)} valores ao todo.') p...
23.045455
66
0.512821
69
507
3.768116
0.507246
0.069231
0
0
0
0
0
0
0
0
0
0.047619
0.337278
507
21
67
24.142857
0.72619
0
0
0
0
0
0.258383
0
0
0
0
0
0
1
0.052632
false
0
0
0
0.052632
0.368421
0
0
0
null
0
0
0
0
0
0
0
0
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