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
7e74d012199c091dab3c3a658effc265930743c7
90
py
Python
exceptions.py
kazqvaizer/litera
e558446e38e32c71d112676080332c0be104d5ad
[ "MIT" ]
4
2019-04-12T05:04:58.000Z
2021-12-11T13:37:24.000Z
exceptions.py
kazqvaizer/litera
e558446e38e32c71d112676080332c0be104d5ad
[ "MIT" ]
4
2020-02-01T09:03:52.000Z
2021-05-07T01:54:40.000Z
exceptions.py
kazqvaizer/litera
e558446e38e32c71d112676080332c0be104d5ad
[ "MIT" ]
2
2020-02-01T13:34:29.000Z
2022-03-14T14:23:29.000Z
class NoDataException(Exception): pass class BadAuthorization(Exception): pass
11.25
34
0.744444
8
90
8.375
0.625
0.38806
0
0
0
0
0
0
0
0
0
0
0.188889
90
7
35
12.857143
0.917808
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
1
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
7eb1580a6d5c4697d201b4fd3cf884feea56e0d3
92
py
Python
hwm3/venv/Lib/site-packages/pymorphy2/__init__.py
liubov-volkova/pythondev
087e7c9c5ce54d51fd098a2663ae351c1a2a20be
[ "MIT" ]
null
null
null
hwm3/venv/Lib/site-packages/pymorphy2/__init__.py
liubov-volkova/pythondev
087e7c9c5ce54d51fd098a2663ae351c1a2a20be
[ "MIT" ]
1
2020-04-14T14:13:57.000Z
2020-04-14T14:13:57.000Z
hwm3/venv/Lib/site-packages/pymorphy2/__init__.py
liubov-volkova/pythondev
087e7c9c5ce54d51fd098a2663ae351c1a2a20be
[ "MIT" ]
1
2019-05-11T23:53:04.000Z
2019-05-11T23:53:04.000Z
# -*- coding: utf-8 -*- from .version import __version__ from .analyzer import MorphAnalyzer
30.666667
35
0.75
11
92
5.909091
0.727273
0
0
0
0
0
0
0
0
0
0
0.0125
0.130435
92
3
35
30.666667
0.8
0.228261
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
0e778b7cf32b166b6052376322bfa385b360a17f
61
py
Python
src/fel/__init__.py
BlueShifTA/MLHEP2020-black-box
e979cb92218e9242174e45f976f5bb78ac916bac
[ "MIT" ]
1
2022-03-14T12:31:03.000Z
2022-03-14T12:31:03.000Z
src/fel/__init__.py
BlueShifTA/MLHEP2020-black-box
e979cb92218e9242174e45f976f5bb78ac916bac
[ "MIT" ]
null
null
null
src/fel/__init__.py
BlueShifTA/MLHEP2020-black-box
e979cb92218e9242174e45f976f5bb78ac916bac
[ "MIT" ]
7
2020-07-25T11:43:56.000Z
2020-10-14T18:53:12.000Z
from .sase import * from .evaluation import eval_optimization
30.5
41
0.836066
8
61
6.25
0.75
0
0
0
0
0
0
0
0
0
0
0
0.114754
61
2
41
30.5
0.925926
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
7ed2655f494b4002dcce0d7b71db0c2f2b7d9728
221
py
Python
occiput_suite/interfile/listmode.py
mscipio/occiput-suite
9b7dc59ad615d46d811eab965a86ec9efe292a7d
[ "BSD-2-Clause" ]
7
2018-02-22T13:50:21.000Z
2020-11-16T01:28:22.000Z
occiput_suite/interfile/listmode.py
mscipio/occiput-suite
9b7dc59ad615d46d811eab965a86ec9efe292a7d
[ "BSD-2-Clause" ]
null
null
null
occiput_suite/interfile/listmode.py
mscipio/occiput-suite
9b7dc59ad615d46d811eab965a86ec9efe292a7d
[ "BSD-2-Clause" ]
2
2018-02-22T13:50:31.000Z
2020-01-14T02:17:32.000Z
# interfile - Interfile read and write # Stefano Pedemonte # Aalto University, School of Science, Helsinki # Oct 2013, Helsinki from __future__ import absolute_import, print_function from ..simplewrap import *
13.8125
54
0.760181
26
221
6.230769
0.807692
0
0
0
0
0
0
0
0
0
0
0.022222
0.18552
221
15
55
14.733333
0.877778
0.542986
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0.5
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
1
0
1
0
1
1
0
5
7d11b25f5262d3a4ebc8ad5985e7e26fc9a335c8
249
py
Python
pyram/utils/__init__.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
pyram/utils/__init__.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
6
2020-02-17T13:44:43.000Z
2020-06-25T15:35:05.000Z
pyram/utils/__init__.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
##from . import assign from . import array from . import assign from . import custom_utils from . import cosmology from . import util from . import match from . import sampling from . import prettyplot from . import catalogs from . import io_module
20.75
26
0.771084
35
249
5.428571
0.4
0.578947
0.168421
0.210526
0.273684
0
0
0
0
0
0
0
0.176707
249
11
27
22.636364
0.926829
0.080321
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
adc59c0d32e4383b5821d0eca1eec6aa0d5781ca
3,473
bzl
Python
third_party/org_codehaus_plexus.bzl
wix/exodus
dfb0c9713b07a8b6a49b548b7b543021e748d80b
[ "MIT" ]
186
2019-06-05T01:02:53.000Z
2022-03-31T10:44:19.000Z
third_party/org_codehaus_plexus.bzl
wix/exodus
dfb0c9713b07a8b6a49b548b7b543021e748d80b
[ "MIT" ]
25
2019-06-04T23:18:55.000Z
2021-09-22T03:44:25.000Z
third_party/org_codehaus_plexus.bzl
wix/exodus
dfb0c9713b07a8b6a49b548b7b543021e748d80b
[ "MIT" ]
17
2019-06-04T18:45:19.000Z
2022-01-20T09:40:04.000Z
load("//:import_external.bzl", import_external = "safe_wix_scala_maven_import_external") def dependencies(): import_external( name = "org_codehaus_plexus_plexus_archiver", artifact = "org.codehaus.plexus:plexus-archiver:3.4", artifact_sha256 = "3c6611c98547dbf3f5125848c273ba719bc10df44e3f492fa2e302d6135a6ea5", srcjar_sha256 = "1887e8269928079236c9e1a75af5b5e256f4bfafaaed18da5c9c84faf5b26a91", deps = [ "@commons_io_commons_io", "@org_apache_commons_commons_compress", "@org_codehaus_plexus_plexus_io", "@org_codehaus_plexus_plexus_utils", "@org_iq80_snappy_snappy" ], runtime_deps = [ "@org_tukaani_xz" ], ) import_external( name = "org_codehaus_plexus_plexus_classworlds", artifact = "org.codehaus.plexus:plexus-classworlds:2.5.2", artifact_sha256 = "b2931d41740490a8d931cbe0cfe9ac20deb66cca606e679f52522f7f534c9fd7", srcjar_sha256 = "d087c4c0ff02b035111bb72c72603b2851d126c43da39cc3c73ff45139125bec", ) import_external( name = "org_codehaus_plexus_plexus_component_annotations", artifact = "org.codehaus.plexus:plexus-component-annotations:1.7.1", artifact_sha256 = "a7fee9435db716bff593e9fb5622bcf9f25e527196485929b0cd4065c43e61df", srcjar_sha256 = "18999359e8c1c5eb1f17a06093ceffc21f84b62b4ee0d9ab82f2e10d11049a78", excludes = [ "junit:junit", ], ) import_external( name = "org_codehaus_plexus_plexus_container_default", artifact = "org.codehaus.plexus:plexus-container-default:1.7.1", artifact_sha256 = "f3f61952d63675ef61b42fa4256c1635749a5bc17668b4529fccde0a29d8ee19", srcjar_sha256 = "4464c902148ed19381336e6fcf17e914dc895416953888bb049bdd4f7ef86b80", deps = [ "@com_google_collections_google_collections", "@org_apache_xbean_xbean_reflect", "@org_codehaus_plexus_plexus_classworlds", "@org_codehaus_plexus_plexus_utils" ], ) import_external( name = "org_codehaus_plexus_plexus_interpolation", artifact = "org.codehaus.plexus:plexus-interpolation:1.24", artifact_sha256 = "8fe2be04b067a75d02fb8a1a9caf6c1c8615f0d5577cced02e90b520763d2f77", srcjar_sha256 = "0b372b91236c4a2c63dc0d6b2010e10c98b993fc8491f6a02b73052a218b6644", ) import_external( name = "org_codehaus_plexus_plexus_io", artifact = "org.codehaus.plexus:plexus-io:2.7.1", artifact_sha256 = "20aa9dd74536ad9ce65d1253b5c4386747483a7a65c48008c9affb51854539cf", deps = [ "@commons_io_commons_io", "@org_codehaus_plexus_plexus_utils" ], ) import_external( name = "org_codehaus_plexus_plexus_utils", artifact = "org.codehaus.plexus:plexus-utils:3.1.0", artifact_sha256 = "0ffa0ad084ebff5712540a7b7ea0abda487c53d3a18f78c98d1a3675dab9bf61", srcjar_sha256 = "06eb127e188a940ebbcf340c43c95537c3052298acdc943a9b2ec2146c7238d9", ) import_external( name = "org_codehaus_plexus_plexus_velocity", artifact = "org.codehaus.plexus:plexus-velocity:1.1.8", artifact_sha256 = "36b3ea3d0cef03f36bd2c4e0f34729c3de80fd375059bdccbf52b10a42c6ec2c", srcjar_sha256 = "906065102c989b1a82ab0871de1489381835af84cdb32c668c8af59d8a7767fe", deps = [ "@commons_collections_commons_collections", "@org_codehaus_plexus_plexus_container_default", "@velocity_velocity" ], )
36.946809
91
0.736827
273
3,473
8.945055
0.245421
0.099099
0.153153
0.207207
0.411548
0.253071
0.157248
0.056511
0.056511
0.056511
0
0.237995
0.17852
3,473
93
92
37.344086
0.617946
0
0
0.285714
0
0
0.615606
0.602937
0
0
0
0
0
1
0.012987
true
0
0.116883
0
0.12987
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
adc858bef2ebb34114bb50d37bf96f9218ee09a9
23
py
Python
python/default/__init__.py
gilwoong-kang/education.cloudsecurity
b64c782017a06db9c312e04011b53a8cf058fa49
[ "Apache-2.0" ]
null
null
null
python/default/__init__.py
gilwoong-kang/education.cloudsecurity
b64c782017a06db9c312e04011b53a8cf058fa49
[ "Apache-2.0" ]
null
null
null
python/default/__init__.py
gilwoong-kang/education.cloudsecurity
b64c782017a06db9c312e04011b53a8cf058fa49
[ "Apache-2.0" ]
1
2021-06-29T09:46:23.000Z
2021-06-29T09:46:23.000Z
print("default module")
23
23
0.782609
3
23
6
1
0
0
0
0
0
0
0
0
0
0
0
0.043478
23
1
23
23
0.818182
0
0
0
0
0
0.583333
0
0
0
0
0
0
1
0
true
0
0
0
0
1
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
0
0
0
1
0
5
adff51b09174fcc76595a2ceed05e050f33486a6
120
py
Python
landingpage/admin.py
Patrickberzins/Tweagle_Final
4a7e426089dc5d3270c99fb4eb1dee243a44f924
[ "MIT" ]
null
null
null
landingpage/admin.py
Patrickberzins/Tweagle_Final
4a7e426089dc5d3270c99fb4eb1dee243a44f924
[ "MIT" ]
null
null
null
landingpage/admin.py
Patrickberzins/Tweagle_Final
4a7e426089dc5d3270c99fb4eb1dee243a44f924
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import ReportA admin.site.register(ReportA) # Register your models here.
20
32
0.808333
17
120
5.705882
0.647059
0
0
0
0
0
0
0
0
0
0
0
0.125
120
5
33
24
0.92381
0.216667
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
bc0bcb512b96764e4fb3418575f6b3dad153d659
88
py
Python
mobile_env/scenarios/__init__.py
stwerner97/mobile-env
72ab2d142cde1e765183c8e20168d391d5ca2de7
[ "MIT" ]
9
2022-01-12T21:57:58.000Z
2022-03-26T08:37:49.000Z
mobile_env/scenarios/__init__.py
stwerner97/mobile-env
72ab2d142cde1e765183c8e20168d391d5ca2de7
[ "MIT" ]
2
2021-12-12T17:55:35.000Z
2022-02-07T22:20:22.000Z
mobile_env/scenarios/__init__.py
stwerner97/mobile-env
72ab2d142cde1e765183c8e20168d391d5ca2de7
[ "MIT" ]
6
2021-10-19T09:12:26.000Z
2022-02-07T22:38:49.000Z
# import envs module so they register themselves import mobile_env.scenarios.registry
29.333333
49
0.829545
12
88
6
0.916667
0
0
0
0
0
0
0
0
0
0
0
0.136364
88
2
50
44
0.947368
0.522727
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
bc3cc4fa1b1176f747e9d38bfe96b2217a81068a
3,633
py
Python
qcm/HsdSAndFreqNewBox1CalibData.py
golfit/work-archive
bdd37d46fda3fde15ec2164d3335d6b4ed576bd7
[ "MIT" ]
null
null
null
qcm/HsdSAndFreqNewBox1CalibData.py
golfit/work-archive
bdd37d46fda3fde15ec2164d3335d6b4ed576bd7
[ "MIT" ]
null
null
null
qcm/HsdSAndFreqNewBox1CalibData.py
golfit/work-archive
bdd37d46fda3fde15ec2164d3335d6b4ed576bd7
[ "MIT" ]
null
null
null
from numpy import * from scipy import * fsdS1=[37424.5996476, 41653.5595834, 44227.5263150, 46131.0556774, 49182.1682894, 50653.2950739, 53606.1748703, 55780.1390832, 57089.1133718, 59985.6457535, 62107.8610625, 63587.5513792, 66341.8088564, 68092.5511813, 72247.5476337, 76712.7851415, 80658.8429454, 85017.1129488, 89356.3968951, 93594.0489333, 97618.9823264, 101981.4708949, 106214.5114575, 110216.4585374, 114905.6925208, 118811.4579622, 123044.2552899, 127534.0780242, 131430.0200858, 135934.5997732, 140156.0737681, 144331.1893368, 148525.0469170, 152760.9304824, 156941.8488254, 161419.7132036, 165665.5066499, 169585.6757436, 174018.4621135, 178282.8769970, 182210.7172861, 186363.4646203, 189397.8241460, 190610.0620549, 192888.9157879, 195703.7345092, 196911.8206453, 199199.9926560, 202010.4013603, 203216.1321761, 205529.6446799, 208522.5978787, 210151.8740108, 211854.3228970, 214813.9191489, 216735.7611092, 218191.1551739, 221125.9724840, 223036.1525139, 224513.5490365, 227439.7441895, 229328.6753949, 230838.7373929, 233757.8880172, 235600.1324580, 237403.7660717, 240189.5206042, 241874.3935235, 243703.6902578, 246510.9192798, 248176.9515318, 250004.1428072, 252829.8252008, 254483.5682235, 256307.7576349, 259129.6242293, 261355.1974513, 262616.0436537, 265437.7732735, 267656.0504605, 268929.2057121, 271759.1764223, 273958.6792342, 275239.0767348, 278084.8413393, 280215.5909803, 281787.8815468, 284438.4985998, 286533.0096677, 288269.3083714, 290768.9270019, 292476.0027460, 294314.4896480, 297087.8179945, 299011.2694920, 300795.1439464] Hreal=[199.05837, 199.79194, 199.09048, 197.58215, 197.07984, 196.98346, 196.74508, 196.55577, 196.45237, 196.58390, 197.09146, 197.62422, 198.15029, 198.64785, 199.12736, 199.59044, 200.02534, 200.43851, 200.85210, 201.22315, 201.55419, 201.84666, 202.11577, 202.35132, 202.56785, 202.76578, 202.94892, 203.11071, 203.26541, 203.41517, 203.55713, 203.69295, 203.80766, 203.92983, 204.03262, 204.13144, 204.22284, 204.31694, 204.39592, 204.46153, 204.51805, 204.57406, 204.62548, 204.66010, 204.69856, 204.72940, 204.75556, 204.77954, 204.81091, 204.83858, 204.86068, 204.88717, 204.91028, 204.93041, 204.95372, 204.97891, 205.00893, 205.03144, 205.05018, 205.06241, 205.08955, 205.11090, 205.13244, 205.16095, 205.18529, 205.20489, 205.21826, 205.23180, 205.24835, 205.27129, 205.28638, 205.29426, 205.30863, 205.32259, 205.33166, 205.34771, 205.36792, 205.39145, 205.40305, 205.42731, 205.44927, 205.47474, 205.49399, 205.51264, 205.53373, 205.55352, 205.57558, 205.59069, 205.61153, 205.61142, 205.63191, 205.61762, 205.62793, 205.62708, 205.60543, 205.61053] Himag=[-7.43645, -6.39943, -6.55689, -6.34487, -6.04337, -5.73344, -5.44799, -5.21252, -4.90764, -4.59269, -4.30699, -4.02726, -3.77049, -3.53250, -3.31251, -3.11950, -2.97711, -2.80988, -2.64540, -2.49958, -2.38517, -2.29105, -2.21999, -2.16245, -2.11519, -2.08275, -2.06176, -2.05005, -2.04254, -2.03133, -2.02611, -2.02941, -2.04326, -2.06599, -2.09051, -2.11340, -2.13731, -2.15911, -2.18845, -2.22549, -2.26033, -2.29902, -2.32294, -2.34754, -2.37538, -2.39570, -2.41618, -2.44008, -2.46319, -2.48732, -2.51009, -2.53353, -2.55497, -2.57187, -2.58517, -2.60898, -2.63523, -2.65256, -2.67976, -2.70542, -2.72567, -2.74906, -2.76994, -2.78470, -2.80841, -2.82567, -2.84175, -2.86575, -2.87676, -2.87851, -2.89777, -2.90922, -2.92317, -2.95224, -2.96450, -2.97822, -2.98625, -2.99039, -3.00933, -3.03810, -3.05554, -3.08144, -3.10787, -3.12112, -3.15091, -3.26453, -3.30104, -3.33641, -3.36786, -3.39934, -3.47601, -3.50349, -3.57367, -3.52047, -3.60066, -3.75463] HsdS1=double(Hreal)+1j*double(Himag)
330.272727
1,521
0.728048
591
3,633
4.475465
0.693739
0
0
0
0
0
0
0
0
0
0
0.772509
0.082852
3,633
10
1,522
363.3
0.021309
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
70bbef853118f2f13c91f3afdcbf587c60e98976
226
py
Python
e2e/config.py
Tismas/bigflow
6a4a14616d66beeaf45700ea340c97d797a1f9e5
[ "Apache-2.0" ]
null
null
null
e2e/config.py
Tismas/bigflow
6a4a14616d66beeaf45700ea340c97d797a1f9e5
[ "Apache-2.0" ]
null
null
null
e2e/config.py
Tismas/bigflow
6a4a14616d66beeaf45700ea340c97d797a1f9e5
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import PROJECT_ID = None CREDENTIALS = None try: from . import local_config PROJECT_ID = local_config.PROJECT_ID CREDENTIALS = local_config.CREDENTIALS except ImportError: pass
20.545455
42
0.778761
28
226
5.892857
0.5
0.163636
0.218182
0.242424
0
0
0
0
0
0
0
0
0.181416
226
11
43
20.545455
0.891892
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0.111111
0.333333
0
0.333333
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
5
70be80d23dbdf8437f2cde53b1b6ee3cd111ff0c
169
py
Python
src/abc190_c.py
06keito/study-atcoder
c859e542079b550d19fa5e5e632e982a0dbb9578
[ "MIT" ]
1
2021-08-19T07:21:47.000Z
2021-08-19T07:21:47.000Z
src/abc190_c.py
06keito/main-repository
c859e542079b550d19fa5e5e632e982a0dbb9578
[ "MIT" ]
null
null
null
src/abc190_c.py
06keito/main-repository
c859e542079b550d19fa5e5e632e982a0dbb9578
[ "MIT" ]
null
null
null
N,M = map(int,input().split()) ab_lst = [list(map(int,input().split())) for i in range(M)] K = int(input()) cd_lst = [list(map(int,input().split())) for i in range(K)]
28.166667
59
0.609467
33
169
3.060606
0.454545
0.316832
0.326733
0.475248
0.673267
0.673267
0.673267
0.673267
0.673267
0.673267
0
0
0.12426
169
5
60
33.8
0.682432
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
1
1
0
0
0
0
0
1
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
5
70c731153938859987cc1ef85f5379a30f017b55
69
py
Python
main/language/hello_world/hello.py
catalinprescure/python-pages
93df3b22df2cfa269127e803a1b6c6a34bae6745
[ "MIT" ]
null
null
null
main/language/hello_world/hello.py
catalinprescure/python-pages
93df3b22df2cfa269127e803a1b6c6a34bae6745
[ "MIT" ]
null
null
null
main/language/hello_world/hello.py
catalinprescure/python-pages
93df3b22df2cfa269127e803a1b6c6a34bae6745
[ "MIT" ]
1
2021-12-24T15:58:32.000Z
2021-12-24T15:58:32.000Z
# hello.py print('Hello World') # python hello.py # Hello World
11.5
20
0.652174
10
69
4.5
0.5
0.311111
0
0
0
0
0
0
0
0
0
0
0.217391
69
6
21
11.5
0.833333
0.521739
0
0
0
0
0.366667
0
0
0
0
0
0
1
0
true
0
0
0
0
1
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
1
0
0
0
0
1
0
5
cb282313dafb980154d8b9819e4a036e533921f7
2,134
py
Python
server/tests/test_reports.py
ishitakapoor26/Nutrihelp
5bac42aaee61884f9ee7415caf441e80b7b03b48
[ "MIT" ]
22
2021-02-15T10:30:59.000Z
2022-01-09T07:10:36.000Z
server/tests/test_reports.py
Ayonijakaushik19/Nutrihelp
85926b187a6bfcf80f1f1cd60667ed3d14dce0be
[ "MIT" ]
51
2021-02-27T15:42:15.000Z
2022-03-01T15:02:03.000Z
server/tests/test_reports.py
Ayonijakaushik19/Nutrihelp
85926b187a6bfcf80f1f1cd60667ed3d14dce0be
[ "MIT" ]
25
2021-02-14T17:49:23.000Z
2022-02-27T18:27:39.000Z
from json import dumps as pretty from ..app import app class glo: patient_id = [] userid = ['1k313224', '60961d77a7090edb5b69c62c'] report_id = [] g = glo() def pprint(data): print(pretty(data, sort_keys=True, indent=4)) def test_get_all_patients(): with app.test_client() as client: for id in g.userid: res = client.get('/patients/'+id) pprint(res.json) if type(res.json) == list: g.patient_id = [(d.get('id')) for d in res.json] g.patient_id.append({'$oid': g.userid[1]}) assert res.status_code == 200 def test_diabetes_report(): with app.test_client() as client: for uid in g.userid: for pid in g.patient_id: uri = 'reports/diabetes/'+uid+'/' + pid['$oid'] res = client.get(uri) pprint(res.json) assert res.status_code == 200 def test_get_all_reports(): with app.test_client() as client: for id in g.userid: res = client.get('reports/'+id) pprint(res.json) if type(res.json) == list: g.report_id = [(d.get('id')) for d in res.json] g.report_id.append({'$oid': g.userid[1]}) assert res.status_code == 200 def test_get_recent_reports(): with app.test_client() as client: for id in g.userid: res = client.get('reports/'+id+'/recent') pprint(res.json) assert res.status_code == 200 def test_report_get(): with app.test_client() as client: for uid in g.userid: for rid in g.report_id: uri = 'reports/'+uid+'/'+rid['$oid'] res = client.get(uri) pprint(res.json) assert res.status_code == 200 def test_report_delete(): with app.test_client() as client: for uid in g.userid: for rid in g.report_id: uri = 'reports/'+uid+'/'+rid['$oid'] res = client.delete(uri) pprint(res.json) assert res.status_code == 200
27.714286
64
0.534208
283
2,134
3.897527
0.187279
0.063463
0.059837
0.092475
0.732548
0.732548
0.732548
0.732548
0.727108
0.692656
0
0.031073
0.336457
2,134
76
65
28.078947
0.747881
0
0
0.561404
0
0
0.058575
0.011246
0
0
0
0
0.105263
1
0.122807
false
0
0.035088
0
0.22807
0.140351
0
0
0
null
0
0
0
0
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
5
cb2d87d8633ee15dcfd606e072e94fcc802b0191
112
py
Python
enthought/block_canvas/app/segy_reader/trace_header_ui.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/block_canvas/app/segy_reader/trace_header_ui.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/block_canvas/app/segy_reader/trace_header_ui.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import from blockcanvas.app.segy_reader.trace_header_ui import *
28
57
0.857143
16
112
5.5
0.8125
0
0
0
0
0
0
0
0
0
0
0
0.098214
112
3
58
37.333333
0.871287
0.107143
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
cb3fa35b9c09b8457319c273f58730fd1fb70a73
113
py
Python
cone/crypto/__init__.py
cone387/cone-python
898fc82fbaf925a4e05f1939b1453f80b6c0379b
[ "MIT" ]
null
null
null
cone/crypto/__init__.py
cone387/cone-python
898fc82fbaf925a4e05f1939b1453f80b6c0379b
[ "MIT" ]
null
null
null
cone/crypto/__init__.py
cone387/cone-python
898fc82fbaf925a4e05f1939b1453f80b6c0379b
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # author: Cone # datetime: 2022/3/20 下午4:29 # software: PyCharm from .md5 import get_md5
16.142857
28
0.663717
18
113
4.111111
0.944444
0
0
0
0
0
0
0
0
0
0
0.138298
0.168142
113
7
29
16.142857
0.648936
0.690265
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
cb617c8edc2c2207b9febd28beb6e805f4f54445
160
py
Python
pyEXOS/__init__.py
fooelisa/pyexos
0a8a221393ed28b1510131ddd45e78a84fae2a33
[ "Apache-2.0" ]
5
2017-05-15T13:00:00.000Z
2020-07-27T14:05:08.000Z
pyEXOS/__init__.py
fooelisa/pyexos
0a8a221393ed28b1510131ddd45e78a84fae2a33
[ "Apache-2.0" ]
10
2017-12-02T20:45:32.000Z
2018-10-16T23:17:12.000Z
pyEXOS/__init__.py
fooelisa/pyexos
0a8a221393ed28b1510131ddd45e78a84fae2a33
[ "Apache-2.0" ]
6
2017-05-31T09:15:50.000Z
2021-03-03T04:36:15.000Z
#!/usr/bin/env python """ Interact with Extreme Networks devices running EXOS """ from __future__ import absolute_import from .exos import EXOS # noqa: F401
22.857143
59
0.75625
22
160
5.272727
0.772727
0
0
0
0
0
0
0
0
0
0
0.022222
0.15625
160
6
60
26.666667
0.837037
0.525
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
cb73630b22752bbe3052e4f36281bcf5f7a54768
45
py
Python
BOJwithDongbinNa/1427/1427.py
jiyolla/StudyForCodingTestWithDongbinNa
c070829dd9c7b02b139e56511832c4a3b9f5982f
[ "MIT" ]
null
null
null
BOJwithDongbinNa/1427/1427.py
jiyolla/StudyForCodingTestWithDongbinNa
c070829dd9c7b02b139e56511832c4a3b9f5982f
[ "MIT" ]
null
null
null
BOJwithDongbinNa/1427/1427.py
jiyolla/StudyForCodingTestWithDongbinNa
c070829dd9c7b02b139e56511832c4a3b9f5982f
[ "MIT" ]
null
null
null
print("".join(sorted(input(),reverse=True)))
22.5
44
0.688889
6
45
5.166667
1
0
0
0
0
0
0
0
0
0
0
0
0.022222
45
1
45
45
0.704545
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
1
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
0
0
0
1
0
5
cb744e94535d4a9e27a926f07e5e637c388abfc7
98
py
Python
31/00/list.sort.1.py
pylangstudy/201705
c69de524faa67fa2d96267d5a51ed9794208f0e4
[ "CC0-1.0" ]
null
null
null
31/00/list.sort.1.py
pylangstudy/201705
c69de524faa67fa2d96267d5a51ed9794208f0e4
[ "CC0-1.0" ]
38
2017-05-25T07:08:48.000Z
2017-05-31T01:42:41.000Z
31/00/list.sort.1.py
pylangstudy/201705
c69de524faa67fa2d96267d5a51ed9794208f0e4
[ "CC0-1.0" ]
null
null
null
l = [{'key': 300}, {'key': 200}, {'key': 100}] print(l) l.sort(key = lambda x: x['key']) print(l)
19.6
46
0.510204
18
98
2.777778
0.5
0.24
0
0
0
0
0
0
0
0
0
0.108434
0.153061
98
4
47
24.5
0.493976
0
0
0.5
0
0
0.122449
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
cb7a9cd62233d422125e79a99ee64e6ccb64db40
190
py
Python
geodjango/webmap/admin.py
za/geodjango
a9d6d8f769cd36178b9d38ba25fe345970c177a9
[ "MIT" ]
null
null
null
geodjango/webmap/admin.py
za/geodjango
a9d6d8f769cd36178b9d38ba25fe345970c177a9
[ "MIT" ]
null
null
null
geodjango/webmap/admin.py
za/geodjango
a9d6d8f769cd36178b9d38ba25fe345970c177a9
[ "MIT" ]
null
null
null
from django.contrib import admin from leaflet.admin import LeafletGeoAdmin from .models import MushroomSpot # Register your models here. admin.site.register(MushroomSpot, LeafletGeoAdmin)
23.75
50
0.836842
23
190
6.913043
0.565217
0
0
0
0
0
0
0
0
0
0
0
0.110526
190
7
51
27.142857
0.940828
0.136842
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.75
0
0.75
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
cbba3bac548524fac06eba34a5683897b3409179
136
py
Python
app/common/admin.py
hupili/legco-watch
06253a65d299564827972a38dc7d7dee5c1f6120
[ "MIT" ]
null
null
null
app/common/admin.py
hupili/legco-watch
06253a65d299564827972a38dc7d7dee5c1f6120
[ "MIT" ]
null
null
null
app/common/admin.py
hupili/legco-watch
06253a65d299564827972a38dc7d7dee5c1f6120
[ "MIT" ]
1
2020-05-24T17:08:57.000Z
2020-05-24T17:08:57.000Z
from django.contrib import admin # Register your models here. from common.models import ErrorReport admin.site.register(ErrorReport)
17
37
0.816176
18
136
6.166667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.125
136
7
38
19.428571
0.932773
0.191176
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
cbd0fba1941399fd7ecf872dfb1c615a9b59fa4c
105
py
Python
updatesproducer/iupdates_provider.py
AppleteeYT/Iris
b60deb6575820253bad50b48b9b39023d6440fd4
[ "Apache-2.0" ]
null
null
null
updatesproducer/iupdates_provider.py
AppleteeYT/Iris
b60deb6575820253bad50b48b9b39023d6440fd4
[ "Apache-2.0" ]
null
null
null
updatesproducer/iupdates_provider.py
AppleteeYT/Iris
b60deb6575820253bad50b48b9b39023d6440fd4
[ "Apache-2.0" ]
null
null
null
from abc import ABC class IUpdatesProvider(ABC): def get_updates(self, user_id: str): pass
15
40
0.685714
15
105
4.666667
0.866667
0
0
0
0
0
0
0
0
0
0
0
0.238095
105
6
41
17.5
0.875
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0.25
0.25
0
0.75
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
1
0
1
0
0
1
0
0
5
1dafd5cb2b9ee24f85d0492d477b2a2487ae0d69
21
py
Python
dfs.py
vollov/dep-search-bpm
7219393c50af930e83ca4dbd494147d6e41f1d62
[ "MIT" ]
null
null
null
dfs.py
vollov/dep-search-bpm
7219393c50af930e83ca4dbd494147d6e41f1d62
[ "MIT" ]
null
null
null
dfs.py
vollov/dep-search-bpm
7219393c50af930e83ca4dbd494147d6e41f1d62
[ "MIT" ]
null
null
null
#Depth-first search
7
19
0.761905
3
21
5.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
21
2
20
10.5
0.888889
0.857143
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
3813d3bf73e62ea5457d8b35dacfe2f616ff3028
77
py
Python
20-factorialDigitSum.py
cmaron/Project-Euler
c4950302f71ee65d81040fae5764ec9eeef6b1f0
[ "MIT" ]
2
2015-01-20T14:00:14.000Z
2016-01-27T16:36:53.000Z
20-factorialDigitSum.py
cmaron/Project-Euler
c4950302f71ee65d81040fae5764ec9eeef6b1f0
[ "MIT" ]
null
null
null
20-factorialDigitSum.py
cmaron/Project-Euler
c4950302f71ee65d81040fae5764ec9eeef6b1f0
[ "MIT" ]
null
null
null
import math print sum(map(lambda x: int(x), list(str(math.factorial(100)))))
25.666667
64
0.714286
14
77
3.928571
0.857143
0
0
0
0
0
0
0
0
0
0
0.042857
0.090909
77
3
64
25.666667
0.742857
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.5
null
null
0.5
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
1
0
0
0
1
0
0
1
0
5
381729988473d7256abd99ce4c7a6b343ffeb255
2,358
py
Python
sparrow_django_common/tests/test_permission_middleware.py
littletiger7/sparrow_django_common
342f74611e1abba94868add6d98ed0292c1cefcd
[ "MIT" ]
2
2019-07-18T08:32:56.000Z
2019-07-23T03:58:51.000Z
sparrow_django_common/tests/test_permission_middleware.py
littletiger7/sparrow_django_common
342f74611e1abba94868add6d98ed0292c1cefcd
[ "MIT" ]
3
2019-07-24T08:51:58.000Z
2019-08-12T02:48:56.000Z
sparrow_django_common/tests/test_permission_middleware.py
littletiger7/sparrow_django_common
342f74611e1abba94868add6d98ed0292c1cefcd
[ "MIT" ]
6
2019-07-18T09:10:43.000Z
2020-09-04T08:25:51.000Z
import unittest from unittest import mock def mocked_requests_post(*args, **kwargs): class MockResponse: def __init__(self, json_data, status_code): self.json_data = json_data self.status_code = status_code def json(self): return self.json_data if args[0] == 'http://127.0.0.1:9999/api': return MockResponse({"status": True, "message": "成功", }, 200) return MockResponse({"status": False, "message": "失败"}, 200) class TestPermissionMiddleware(unittest.TestCase): """测试permission_middleware""" @mock.patch('sparrow_django_common.utils.validation_data.VerificationConfiguration.verify_middleware_location', return_value='') @mock.patch('requests.post', side_effect=mocked_requests_post) @mock.patch('sparrow_django_common.utils.validation_data.VerificationConfiguration.valid_permission_svc', return_value='') @mock.patch('django.conf.settings', return_value='') @mock.patch('sparrow_django_common.utils.normalize_url.NormalizeUrl.normalize_url', return_value='http://127.0.0.1:9999/api') def test_have_authority(self, NormalizeUrl, settings, valid_permission_svc, requests, verify_middleware_location): from sparrow_django_common.middleware.permission_middleware import PermissionMiddleware self.assertEqual(PermissionMiddleware().has_permission(requests, view=''), True) @mock.patch('sparrow_django_common.utils.validation_data.VerificationConfiguration.verify_middleware_location', return_value='') @mock.patch('requests.post', side_effect=mocked_requests_post) @mock.patch('sparrow_django_common.utils.validation_data.VerificationConfiguration.valid_permission_svc', return_value='') @mock.patch('django.conf.settings', return_value='') @mock.patch('sparrow_django_common.utils.normalize_url.NormalizeUrl.normalize_url', return_value='http://127.0.0.1:9d999/api') def test_no_permission(self, NormalizeUrl, settings, valid_permission_svc, requests, verify_middleware_location): from sparrow_django_common.middleware.permission_middleware import PermissionMiddleware self.assertEqual(PermissionMiddleware().has_permission(requests, view=''), False) if __name__ == '__main__': unittest.main()
48.122449
118
0.730704
263
2,358
6.231939
0.254753
0.054912
0.092739
0.080537
0.744356
0.744356
0.744356
0.729713
0.729713
0.729713
0
0.018556
0.154368
2,358
48
119
49.125
0.80341
0.009754
0
0.432432
0
0
0.295406
0.218119
0
0
0
0
0.054054
1
0.135135
false
0
0.108108
0.027027
0.378378
0
0
0
0
null
0
0
0
0
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
5
382094766492fe4d7fb7fd530bc4bf0dfce4fe43
81,379
py
Python
src/abaqus/BoundaryCondition/BoundaryConditionModel.py
Haiiliin/PyAbaqus
f20db6ebea19b73059fe875a53be370253381078
[ "MIT" ]
7
2022-01-21T09:15:45.000Z
2022-02-15T09:31:58.000Z
src/abaqus/BoundaryCondition/BoundaryConditionModel.py
Haiiliin/PyAbaqus
f20db6ebea19b73059fe875a53be370253381078
[ "MIT" ]
null
null
null
src/abaqus/BoundaryCondition/BoundaryConditionModel.py
Haiiliin/PyAbaqus
f20db6ebea19b73059fe875a53be370253381078
[ "MIT" ]
null
null
null
import typing from abaqusConstants import * from .AccelerationBC import AccelerationBC from .AccelerationBCState import AccelerationBCState from .AccelerationBaseMotionBC import AccelerationBaseMotionBC from .AccelerationBaseMotionBCState import AccelerationBaseMotionBCState from .AcousticPressureBC import AcousticPressureBC from .AcousticPressureBCState import AcousticPressureBCState from .Calibration import Calibration from .ConcentrationBC import ConcentrationBC from .ConcentrationBCState import ConcentrationBCState from .ConnAccelerationBC import ConnAccelerationBC from .ConnAccelerationBCState import ConnAccelerationBCState from .ConnDisplacementBC import ConnDisplacementBC from .ConnDisplacementBCState import ConnDisplacementBCState from .ConnVelocityBC import ConnVelocityBC from .ConnVelocityBCState import ConnVelocityBCState from .DisplacementBC import DisplacementBC from .DisplacementBCState import DisplacementBCState from .DisplacementBaseMotionBC import DisplacementBaseMotionBC from .DisplacementBaseMotionBCState import DisplacementBaseMotionBCState from .ElectricPotentialBC import ElectricPotentialBC from .ElectricPotentialBCState import ElectricPotentialBCState from .EulerianBC import EulerianBC from .EulerianBCState import EulerianBCState from .EulerianMotionBC import EulerianMotionBC from .EulerianMotionBCState import EulerianMotionBCState from .FluidCavityPressureBC import FluidCavityPressureBC from .FluidCavityPressureBCState import FluidCavityPressureBCState from .MagneticVectorPotentialBC import MagneticVectorPotentialBC from .MaterialFlowBC import MaterialFlowBC from .MaterialFlowBCState import MaterialFlowBCState from .PorePressureBC import PorePressureBC from .PorePressureBCState import PorePressureBCState from .RetainedNodalDofsBC import RetainedNodalDofsBC from .SecondaryBaseBC import SecondaryBaseBC from .SecondaryBaseBCState import SecondaryBaseBCState from .SubmodelBC import SubmodelBC from .SubmodelBCState import SubmodelBCState from .TemperatureBC import TemperatureBC from .TemperatureBCState import TemperatureBCState from .VelocityBC import VelocityBC from .VelocityBCState import VelocityBCState from .VelocityBaseMotionBC import VelocityBaseMotionBC from .VelocityBaseMotionBCState import VelocityBaseMotionBCState from ..Amplitude.CorrelationArray import CorrelationArray from ..Model.ModelBase import ModelBase from ..Region.Region import Region from ..Region.RegionArray import RegionArray class BoundaryConditionModel(ModelBase): """Abaqus creates a Model object named `Model-1` when a session is started. Notes ----- This object can be accessed by: .. code-block:: python mdb.models[name] """ def AccelerationBaseMotionBC(self, name: str, createStepName: str, dof: SymbolicConstant, amplitudeScaleFactor: float = 1, centerOfRotation: tuple = (), correlation: CorrelationArray = None, secondaryBase: str = '', useComplex: Boolean = OFF, amplitude: str = UNSET) -> AccelerationBaseMotionBC: """This method creates a AccelerationBaseMotionBC object. Notes ----- This function can be accessed by: .. code-block:: python mdb.models[name].AccelerationBaseMotionBC Parameters ---------- name A String specifying the boundary condition repository key. createStepName A String specifying the name of the step in which the boundary condition is created. dof A SymbolicConstant specifying the constrained degree-of-freedom. Possible values for the SymbolicConstant are U1, U2, U3, UR1, UR2, UR3. The default value is U1. amplitudeScaleFactor A Float specifying the scale factor for the amplitude curve. The default value is 1.0. centerOfRotation A ModelDot object specifying a tuple containing one center of rotation. The default value is the global origin. This argument applies only when *dof*=UR1, UR2, or UR3. correlation A CorrelationArray object. secondaryBase A String specifying the name of the SecondaryBaseBC object associated with this boundary condition. The default value is an empty string. useComplex A Boolean specifying whether to define the imaginary (out-of-plane) portion of the base motion record given by amplitude definition. The default value is OFF. amplitude A String or the SymbolicConstant UNSET specifying the name of the amplitude reference. UNSET should be used if the boundary condition has no amplitude reference. The default value is UNSET. You should provide the *amplitude* argument only if it is valid for the specified step. Returns ------- bc: AccelerationBC An AccelerationBaseMotionBC object. """ self.boundaryConditions[name] = boundaryCondition = AccelerationBaseMotionBC(name, createStepName, dof, amplitudeScaleFactor, centerOfRotation, correlation, secondaryBase, useComplex, amplitude) self.steps[createStepName].boundaryConditionStates[name] = AccelerationBaseMotionBCState() return boundaryCondition def AccelerationBC(self, name: str, createStepName: str, region: Region, fieldName: str = '', a1: typing.Union[SymbolicConstant, float] = UNSET, a2: typing.Union[SymbolicConstant, float] = UNSET, a3: typing.Union[SymbolicConstant, float] = UNSET, ar1: typing.Union[SymbolicConstant, float] = UNSET, ar2: typing.Union[SymbolicConstant, float] = UNSET, ar3: typing.Union[SymbolicConstant, float] = UNSET, amplitude: str = UNSET, localCsys: str = None, distributionType: SymbolicConstant = UNIFORM) -> AccelerationBC: """This method creates an AccelerationBC object. Notes ----- This function can be accessed by: .. code-block:: python mdb.models[name].AccelerationBC Parameters ---------- name A String specifying the boundary condition repository key. createStepName A String specifying the name of the step in which the boundary condition is created. region A Region object specifying the region to which the boundary condition is applied. fieldName A String specifying the name of the AnalyticalField object associated with this boundary condition. The *fieldName* argument applies only when *distributionType*=FIELD. The default value is an empty string. a1 A Float or a SymbolicConstant specifying the acceleration component in the 1-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET.Note:Although *a1*, *a2*, *a3*, *ar1*, *ar2*, and *ar3* are optional arguments, at least one of them must be specified. a2 A Float or a SymbolicConstant specifying the acceleration component in the 2-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. a3 A Float or a SymbolicConstant specifying the acceleration component in the 3-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. ar1 A Float or a SymbolicConstant specifying the rotational acceleration component about the 1-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. ar2 A Float or a SymbolicConstant specifying the rotational acceleration component about the 2-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. ar3 A Float or a SymbolicConstant specifying the rotational acceleration component about the 3-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. amplitude A String or the SymbolicConstant UNSET specifying the name of the amplitude reference. UNSET should be used if the boundary condition has no amplitude reference. The default value is UNSET. You should provide the *amplitude* argument only if it is valid for the specified step. localCsys None or a DatumCsys object specifying the local coordinate system of the boundary condition's degrees of freedom. If *localCsys*=None, the degrees of freedom are defined in the global coordinate system. The default value is None. distributionType A SymbolicConstant specifying how the boundary condition is distributed spatially. Possible values are UNIFORM, USER_DEFINED, and FIELD. The default value is UNIFORM. Returns ------- bc: AccelerationBC An AccelerationBC object. """ self.boundaryConditions[name] = boundaryCondition = AccelerationBC(name, createStepName, region, fieldName, a1, a2, a3, ar1, ar2, ar3, amplitude, localCsys, distributionType) self.steps[createStepName].boundaryConditionStates[name] = AccelerationBCState() return boundaryCondition def AcousticPressureBC(self, name: str, createStepName: str, region: Region, fieldName: str = '', magnitude: float = 0, distributionType: SymbolicConstant = UNIFORM, amplitude: str = UNSET, fixed: Boolean = OFF) -> AcousticPressureBC: """This method creates a AcousticPressureBC object. Notes ----- This function can be accessed by: .. code-block:: python mdb.models[name].AcousticPressureBC Parameters ---------- name A String specifying the boundary condition repository key. createStepName A String specifying the name of the step in which the boundary condition is created. region A Region object specifying the region to which the boundary condition is applied. fieldName A String specifying the name of the AnalyticalField object associated with this boundary condition. The *fieldName* argument applies only when *distributionType*=FIELD. The default value is an empty string. magnitude A Float specifying the acoustic pressure magnitude. The default value is 0. The *magnitude* argument is optional if *distributionType*=USER_DEFINED. distributionType A SymbolicConstant specifying how the boundary condition is distributed spatially. Possible values are UNIFORM, USER_DEFINED, and FIELD. The default value is UNIFORM. amplitude A String or the SymbolicConstant UNSET specifying the name of the amplitude reference. UNSET should be used if the boundary condition has no amplitude reference. The default value is UNSET. You should provide the *amplitude* argument only if it is valid for the specified step. fixed A Boolean specifying whether the boundary condition should remain fixed at the current values at the start of the step. The default value is OFF. Returns ------- bc: AcousticPressureBC An AcousticPressureBC object. """ self.boundaryConditions[name] = boundaryCondition = AcousticPressureBC(name, createStepName, region, fieldName, magnitude, distributionType, amplitude, fixed) self.steps[createStepName].boundaryConditionStates[name] = AcousticPressureBCState() return boundaryCondition def Calibration(self, name: str) -> Calibration: """This method creates a Calibration object. Notes ----- This function can be accessed by: .. code-block:: python mdb.models[name].Calibration Parameters ---------- name A String specifying the name of the new calibration. Returns ------- calibration: Calibration A Calibration object. """ self.boundaryConditions[name] = boundaryCondition = Calibration(name) return boundaryCondition def ConcentrationBC(self, name: str, createStepName: str, region: Region, fieldName: str = '', magnitude: float = 0, distributionType: SymbolicConstant = UNIFORM, amplitude: str = UNSET, fixed: Boolean = OFF) -> ConcentrationBC: """This method creates a ConcentrationBC object. Notes ----- This function can be accessed by: .. code-block:: python mdb.models[name].ConcentrationBC Parameters ---------- name A String specifying the boundary condition repository key. createStepName A String specifying the name of the step in which the boundary condition is created. region A Region object specifying the region to which the boundary condition is applied. fieldName A String specifying the name of the AnalyticalField object associated with this boundary condition. The *fieldName* argument applies only when *distributionType*=FIELD. The default value is an empty string. magnitude A Float specifying the concentration magnitude. The default value is 0. The *magnitude* argument is optional if *distributionType*=USER_DEFINED. distributionType A SymbolicConstant specifying how the boundary condition is distributed spatially. Possible values are UNIFORM, USER_DEFINED, and FIELD. The default value is UNIFORM. amplitude A String or the SymbolicConstant UNSET specifying the name of the amplitude reference. UNSET should be used if the boundary condition has no amplitude reference. The default value is UNSET. You should provide the *amplitude* argument only if it is valid for the specified step. fixed A Boolean specifying whether the boundary condition should remain fixed at the current values at the start of the step. The default value is OFF. Returns ------- bc: ConcentrationBC A ConcentrationBC object. """ self.boundaryConditions[name] = boundaryCondition = ConcentrationBC(name, createStepName, region, fieldName, magnitude, distributionType, amplitude, fixed) self.steps[createStepName].boundaryConditionStates[name] = ConcentrationBCState() return boundaryCondition def ConnAccelerationBC(self, name: str, createStepName: str, region: str = '', fastenerName: str = '', fastenerSetName: str = '', a1: typing.Union[SymbolicConstant, float] = UNSET, a2: typing.Union[SymbolicConstant, float] = UNSET, a3: typing.Union[SymbolicConstant, float] = UNSET, ar1: typing.Union[SymbolicConstant, float] = UNSET, ar2: typing.Union[SymbolicConstant, float] = UNSET, ar3: typing.Union[SymbolicConstant, float] = UNSET, amplitude: str = UNSET, distributionType: SymbolicConstant = UNIFORM) -> ConnAccelerationBC: """This method creates an ConnAccelerationBC object on a wire region. Alternatively, the boundary condition may also be applied to a wire set referenced from an assembled fastener template model. Notes ----- This function can be accessed by: .. code-block:: python mdb.models[name].ConnAccelerationBC Parameters ---------- name A String specifying the boundary condition repository key. createStepName A String specifying the name of the step in which the boundary condition is created. region The wire region to which the boundary condition is applied. This argument is not valid when *fastenerName* and *fastenerSetName* are specified. fastenerName A String specifying the name of the assembled fastener to which the boundary condition will be applied. This argument is not valid when *region* is specified. When this argument is specified, *fastenerSetName* must also be specified. The default value is an empty string. fastenerSetName A String specifying the assembled fastener template model set to which the boundary condition will be applied. This argument is not valid when *region* is specified. When this argument is specified, *fastenerName* must also be specified. The default value is an empty string. a1 A Float or a SymbolicConstant specifying the acceleration component in the connector's local 1-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET.Note:Although *a1*, *a2*, *a3*, *ar1*, *ar2*, and *ar3* are optional arguments, at least one of them must be specified. a2 A Float or a SymbolicConstant specifying the acceleration component in the connector's local 2-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. a3 A Float or a SymbolicConstant specifying the acceleration component in the connector's local 3-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. ar1 A Float or a SymbolicConstant specifying the rotational acceleration component in the connector's local 4-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. ar2 A Float or a SymbolicConstant specifying the rotational acceleration component in the connector's local 5-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. ar3 A Float or a SymbolicConstant specifying the rotational acceleration component in the connector's local 6-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. amplitude A String or the SymbolicConstant UNSET specifying the name of the amplitude reference. UNSET should be used if the boundary condition has no amplitude reference. The default value is UNSET. You should provide the *amplitude* argument only if it is valid for the specified step. distributionType A SymbolicConstant specifying how the boundary condition is distributed spatially. Possible values are UNIFORM and USER_DEFINED. The default value is UNIFORM. Returns ------- bc: ConnAccelerationBC A ConnAccelerationBC object. """ self.boundaryConditions[name] = boundaryCondition = ConnAccelerationBC(name, createStepName, region, fastenerName, fastenerSetName, a1, a2, a3, ar1, ar2, ar3, amplitude, distributionType) self.steps[createStepName].boundaryConditionStates[name] = ConnAccelerationBCState() return boundaryCondition def ConnDisplacementBC(self, name: str, createStepName: str, region: str = '', fastenerName: str = '', fastenerSetName: str = '', u1: typing.Union[SymbolicConstant, float] = UNSET, u2: typing.Union[SymbolicConstant, float] = UNSET, u3: typing.Union[SymbolicConstant, float] = UNSET, ur1: typing.Union[SymbolicConstant, float] = UNSET, ur2: typing.Union[SymbolicConstant, float] = UNSET, ur3: typing.Union[SymbolicConstant, float] = UNSET, fixed: Boolean = OFF, amplitude: str = UNSET, distributionType: SymbolicConstant = UNIFORM, buckleCase: SymbolicConstant = NOT_APPLICABLE) -> ConnDisplacementBC: """This method creates a ConnDisplacementBC object on a wire region. Alternatively, the boundary condition may also be applied to a wire set referenced from an assembled fastener template model. Notes ----- This function can be accessed by: .. code-block:: python mdb.models[name].ConnDisplacementBC Parameters ---------- name A String specifying the boundary condition repository key. createStepName A String specifying the name of the step in which the boundary condition is created. region The wire region to which the boundary condition is applied. This argument is not valid when *fastenerName* and *fastenerSetName* are specified. fastenerName A String specifying the name of the assembled fastener to which the boundary condition will be applied. This argument is not valid when *region* is specified. When this argument is specified, *fastenerSetName* must also be specified. The default value is an empty string. fastenerSetName A String specifying the assembled fastener template model set to which the boundary condition will be applied. This argument is not valid when *region* is specified. When this argument is specified, *fastenerName* must also be specified. The default value is an empty string. u1 A Float, a Complex, or a SymbolicConstant specifying the displacement component in the connector's local 1-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET.Note:Although *u1*, *u2*, *u3*, *ur1*, *ur2*, and *ur3* are optional arguments, at least one of them must be specified. u2 A Float, a Complex, or a SymbolicConstant specifying the displacement component in the connector's local 2-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. u3 A Float, a Complex, or a SymbolicConstant specifying the displacement component in the connector's local 3-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. ur1 A Float, a Complex, or a SymbolicConstant specifying the rotational component in the connector's local 4-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. ur2 A Float, a Complex, or a SymbolicConstant specifying the rotational component in the connector's local 5-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. ur3 A Float, a Complex, or a SymbolicConstant specifying the rotational component in the connector's local 6-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. fixed A Boolean specifying whether the boundary condition should remain fixed at the current values at the start of the step. The default value is OFF. amplitude A String or the SymbolicConstant UNSET specifying the name of the amplitude reference. UNSET should be used if the boundary condition has no amplitude reference. The default value is UNSET. You should provide the *amplitude* argument only if it is valid for the specified step. distributionType A SymbolicConstant specifying how the boundary condition is distributed spatially. Possible values are UNIFORM and USER_DEFINED. The default value is UNIFORM. buckleCase A SymbolicConstant specifying how the boundary condition is defined in a BUCKLE analysis. Possible values are NOT_APPLICABLE, STRESS_PERTURBATION, BUCKLING_MODES, and PERTURBATION_AND_BUCKLING. The default value is NOT_APPLICABLE. Returns ------- bc: ConnDisplacementBC A ConnDisplacementBC object. """ self.boundaryConditions[name] = boundaryCondition = ConnDisplacementBC(name, createStepName, region, fastenerName, fastenerSetName, u1, u2, u3, ur1, ur2, ur3, fixed, amplitude, distributionType, buckleCase) self.steps[createStepName].boundaryConditionStates[name] = ConnDisplacementBCState() return boundaryCondition def ConnVelocityBC(self, name: str, createStepName: str, region: str = '', fastenerName: str = '', fastenerSetName: str = '', v1: typing.Union[SymbolicConstant, float] = UNSET, v2: typing.Union[SymbolicConstant, float] = UNSET, v3: typing.Union[SymbolicConstant, float] = UNSET, vr1: typing.Union[SymbolicConstant, float] = UNSET, vr2: typing.Union[SymbolicConstant, float] = UNSET, vr3: typing.Union[SymbolicConstant, float] = UNSET, amplitude: str = UNSET, distributionType: SymbolicConstant = UNIFORM) -> ConnVelocityBC: """This method creates a ConnVelocityBC object on a wire region. Alternatively, the boundary condition may also be applied to a wire set referenced from an assembled fastener template model. Notes ----- This function can be accessed by: .. code-block:: python mdb.models[name].ConnVelocityBC Parameters ---------- name A String specifying the boundary condition repository key. createStepName A String specifying the name of the step in which the boundary condition is created. region The wire region to which the boundary condition is applied. This argument is not valid when *fastenerName* and *fastenerSetName* are specified. fastenerName A String specifying the name of the assembled fastener to which the boundary condition will be applied. This argument is not valid when *region* is specified. When this argument is specified, *fastenerSetName* must also be specified. The default value is an empty string. fastenerSetName A String specifying the assembled fastener template model set to which the boundary condition will be applied. This argument is not valid when *region* is specified. When this argument is specified, *fastenerName* must also be specified. The default value is an empty string. v1 A Float or a SymbolicConstant specifying the velocity component in the connector's local 1-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET.Note:Although *v1*, *v2*, *v3*, *vr1*, *vr2*, and *vr3* are optional arguments, at least one of them must be specified. v2 A Float or a SymbolicConstant specifying the velocity component in the connector's local 2-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. v3 A Float or a SymbolicConstant specifying the velocity component in the connector's local 3-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. vr1 A Float or a SymbolicConstant specifying the rotational velocity component in the connector's local 4-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. vr2 A Float or a SymbolicConstant specifying the rotational velocity component in the connector's local 5-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. vr3 A Float or a SymbolicConstant specifying the rotational velocity component in the connector's local 6-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. amplitude A String or the SymbolicConstant UNSET specifying the name of the amplitude reference. UNSET should be used if the boundary condition has no amplitude reference. The default value is UNSET. You should provide the *amplitude* argument only if it is valid for the specified step. distributionType A SymbolicConstant specifying how the boundary condition is distributed spatially. Possible values are UNIFORM and USER_DEFINED. The default value is UNIFORM. Returns ------- bc: ConnVelocityBC A ConnVelocityBC object. """ self.boundaryConditions[name] = boundaryCondition = ConnVelocityBC(name, createStepName, region, fastenerName, fastenerSetName, v1, v2, v3, vr1, vr2, vr3, amplitude, distributionType) self.steps[createStepName].boundaryConditionStates[name] = ConnVelocityBCState() return boundaryCondition def DisplacementBaseMotionBC(self, name: str, createStepName: str, dof: SymbolicConstant, amplitudeScaleFactor: float = 1, centerOfRotation: tuple = (), correlation: CorrelationArray = None, secondaryBase: str = '', useComplex: Boolean = OFF, amplitude: str = UNSET) -> DisplacementBaseMotionBC: """This method creates a DisplacementBaseMotionBC object. Notes ----- This function can be accessed by: .. code-block:: python mdb.models[name].DisplacementBaseMotionBC Parameters ---------- name A String specifying the boundary condition repository key. createStepName A String specifying the name of the step in which the boundary condition is created. dof A SymbolicConstant specifying the constrained degree-of-freedom. Possible values for the SymbolicConstant are U1, U2, U3, UR1, UR2, UR3. The default value is U1. amplitudeScaleFactor A Float specifying the scale factor for the amplitude curve. The default value is 1.0. centerOfRotation A ModelDot object specifying a tuple containing one center of rotation. The default value is the global origin. This argument applies only when *dof*=UR1, UR2, or UR3. correlation A CorrelationArray object. secondaryBase A String specifying the name of the SecondaryBaseBC object associated with this boundary condition. The default value is an empty string. useComplex A Boolean specifying whether to define the imaginary (out-of-plane) portion of the base motion record given by amplitude definition. The default value is OFF. amplitude A String or the SymbolicConstant UNSET specifying the name of the amplitude reference. UNSET should be used if the boundary condition has no amplitude reference. The default value is UNSET. You should provide the *amplitude* argument only if it is valid for the specified step. Returns ------- bc: DisplacementBaseMotionBC A DisplacementBaseMotionBC object. """ self.boundaryConditions[name] = boundaryCondition = DisplacementBaseMotionBC(name, createStepName, dof, amplitudeScaleFactor, centerOfRotation, correlation, secondaryBase, useComplex, amplitude) self.steps[createStepName].boundaryConditionStates[name] = DisplacementBaseMotionBCState() return boundaryCondition def DisplacementBC(self, name: str, createStepName: str, region: Region, fieldName: str = '', u1: typing.Union[SymbolicConstant, float] = UNSET, u2: typing.Union[SymbolicConstant, float] = UNSET, u3: typing.Union[SymbolicConstant, float] = UNSET, ur1: typing.Union[SymbolicConstant, float] = UNSET, ur2: typing.Union[SymbolicConstant, float] = UNSET, ur3: typing.Union[SymbolicConstant, float] = UNSET, fixed: Boolean = OFF, amplitude: str = UNSET, distributionType: SymbolicConstant = UNIFORM, localCsys: str = None, buckleCase: SymbolicConstant = NOT_APPLICABLE) -> DisplacementBC: """This method creates a DisplacementBC object. Notes ----- This function can be accessed by: .. code-block:: python mdb.models[name].DisplacementBC Parameters ---------- name A String specifying the boundary condition repository key. createStepName A String specifying the name of the step in which the boundary condition is created. region A Region object specifying the region to which the boundary condition is applied. fieldName A String specifying the name of the AnalyticalField or DiscreteField object associated with this boundary condition. The *fieldName* argument applies only when *distributionType*=FIELD or *distributionType*=DISCRETE_FIELD. The default value is an empty string. u1 A Float, a Complex, or a SymbolicConstant specifying the displacement component in the 1-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET.Note:Although *u1*, *u2*, *u3*, *ur1*, *ur2*, and *ur3* are optional arguments, at least one of them must be specified. u2 A Float, a Complex, or a SymbolicConstant specifying the displacement component in the 2-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. u3 A Float, a Complex, or a SymbolicConstant specifying the displacement component in the 3-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. ur1 A Float, a Complex, or a SymbolicConstant specifying the rotational displacement component about the 1-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. ur2 A Float, a Complex, or a SymbolicConstant specifying the rotational displacement component about the 2-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. ur3 A Float, a Complex, or a SymbolicConstant specifying the rotational displacement component about the 3-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. fixed A Boolean specifying whether the boundary condition should remain fixed at the current values at the start of the step. The default value is OFF. amplitude A String or the SymbolicConstant UNSET specifying the name of the amplitude reference. UNSET should be used if the boundary condition has no amplitude reference. The default value is UNSET. You should provide the *amplitude* argument only if it is valid for the specified step. distributionType A SymbolicConstant specifying how the boundary condition is distributed spatially. Possible values are UNIFORM, USER_DEFINED, FIELD, and DISCRETE_FIELD. The default value is UNIFORM. localCsys None or a DatumCsys object specifying the local coordinate system of the boundary condition's degrees of freedom. If *localCsys*=None, the degrees of freedom are defined in the global coordinate system. The default value is None. buckleCase A SymbolicConstant specifying how the boundary condition is defined in a BUCKLE analysis. Possible values are NOT_APPLICABLE, STRESS_PERTURBATION, BUCKLING_MODES, and PERTURBATION_AND_BUCKLING. The default value is NOT_APPLICABLE. Returns ------- bc: DisplacementBC A DisplacementBC object """ self.boundaryConditions[name] = boundaryCondition = DisplacementBC(name, createStepName, region, fieldName, u1, u2, u3, ur1, ur2, ur3, fixed, amplitude, distributionType, localCsys, buckleCase) self.steps[createStepName].boundaryConditionStates[name] = DisplacementBCState() return boundaryCondition def ElectricPotentialBC(self, name: str, createStepName: str, region: Region, fieldName: str = '', magnitude: float = 0, distributionType: SymbolicConstant = UNIFORM, amplitude: str = UNSET, fixed: Boolean = OFF) -> ElectricPotentialBC: """This method creates an ElectricPotentialBC object. Notes ----- This function can be accessed by: .. code-block:: python mdb.models[name].ElectricPotentialBC Parameters ---------- name A String specifying the boundary condition repository key. createStepName A String specifying the name of the step in which the boundary condition is created. region A Region object specifying the region to which the boundary condition is applied. fieldName A String specifying the name of the AnalyticalField object associated with this boundary condition. The *fieldName* argument applies only when *distributionType*=FIELD. The default value is an empty string. magnitude A Float specifying the electrical potential magnitude. The default value is 0. The *magnitude* argument is optional if *distributionType*=USER_DEFINED. distributionType A SymbolicConstant specifying how the boundary condition is distributed spatially. Possible values are UNIFORM, USER_DEFINED, and FIELD. The default value is UNIFORM. amplitude A String or the SymbolicConstant UNSET specifying the name of the amplitude reference. UNSET should be used if the boundary condition has no amplitude reference. The default value is UNSET. You should provide the *amplitude* argument only if it is valid for the specified step. fixed A Boolean specifying whether the boundary condition should remain fixed at the current values at the start of the step. The default value is OFF. Returns ------- bc: ElectricPotentialBC An ElectricPotentialBC object. """ self.boundaryConditions[name] = boundaryCondition = ElectricPotentialBC(name, createStepName, region, fieldName, magnitude, distributionType, amplitude, fixed) self.steps[createStepName].boundaryConditionStates[name] = ElectricPotentialBCState() return boundaryCondition def EulerianBC(self, name: str, createStepName: str, region: Region, definition: SymbolicConstant = INFLOW, inflowType: SymbolicConstant = FREE, outflowType: SymbolicConstant = ZERO_PRESSURE) -> EulerianBC: """This method creates a EulerianBC object. Notes ----- This function can be accessed by: .. code-block:: python mdb.models[name].EulerianBC Parameters ---------- name A String specifying the boundary condition repository key. createStepName A String specifying the name of the step in which the boundary condition is created. region A Region object specifying the region to which the boundary condition is applied. definition A SymbolicConstant specifying the flow conditions to be defined. Possible values are INFLOW, OUTFLOW, and BOTH. The default value is INFLOW. inflowType A SymbolicConstant specifying the control of material flow into the Eulerian domain. Possible values are FREE, NONE, and VOID. The default value is FREE. outflowType A SymbolicConstant specifying the control of flow of material out of the Eulerian domain. Possible values are ZERO_PRESSURE, FREE, NON_REFLECTING, and EQUILIBRIUM. The default value is ZERO_PRESSURE. Returns ------- bc: EulerianBC An EulerianBC object. """ self.boundaryConditions[name] = boundaryCondition = EulerianBC(name, createStepName, region, definition, inflowType, outflowType) self.steps[createStepName].boundaryConditionStates[name] = EulerianBCState() return boundaryCondition def EulerianMotionBC(self, name: str, createStepName: str, instanceName: str, followRegion: Boolean = ON, region: Region = Region(), materialName: str = '', ctrPosition1: SymbolicConstant = FREE, posPosition1: SymbolicConstant = FREE, negPosition1: SymbolicConstant = FREE, expansionRatio1: float = None, contractRatio1: float = 0, ctrPosition2: SymbolicConstant = FREE, posPosition2: SymbolicConstant = FREE, negPosition2: SymbolicConstant = FREE, expansionRatio2: float = None, contractRatio2: float = 0, ctrPosition3: SymbolicConstant = FREE, posPosition3: SymbolicConstant = FREE, negPosition3: SymbolicConstant = FREE, expansionRatio3: float = None, contractRatio3: float = 0, allowContraction: Boolean = ON, aspectLimit: float = 10, vmaxFactor: float = 1, volThreshold: float = 0, bufferSize: float = 2) -> EulerianMotionBC: """This method creates an EulerianMotionBC object. Notes ----- This function can be accessed by: .. code-block:: python mdb.models[name].EulerianMotionBC Parameters ---------- name A String specifying the boundary condition repository key. createStepName A String specifying the name of the step in which the boundary condition is created. instanceName A String specifying the name of the Eulerian part instance. followRegion A Boolean specifying whether the mesh will follow a regular surface region or an Eulerian surface. The default value is ON. region A Region object specifying the region to which the boundary condition is applied. materialName A String specifying the name of the Eulerian surface to follow. This argument applies only when *followRegion*=False. ctrPosition1 A SymbolicConstant specifying the 1-direction translational constraint on the center of the Eulerian mesh. Possible values are FREE and FIXED. The default value is FREE. posPosition1 A SymbolicConstant specifying the translational constraint on the positive (maximum) bounds of the mesh in the 1 direction. Possible values are FREE and FIXED. The default value is FREE. negPosition1 A SymbolicConstant specifying the translational constraint on the negative (minimum) bounds of the mesh in the 1 direction. Possible values are FREE and FIXED. The default value is FREE. expansionRatio1 None or a Float specifying the upper bounds on the allowable scaling of the mesh in the 1 direction. If *expansionRatio1*=None, then there is no upper limit. The default value is None. contractRatio1 A Float specifying the lower bounds on the allowable scaling of the mesh in the 1 direction. The default value is 0.0. ctrPosition2 A SymbolicConstant specifying the 2-direction translational constraint on the center of the Eulerian mesh. Possible values are FREE and FIXED. The default value is FREE. posPosition2 A SymbolicConstant specifying the translational constraint on the positive (maximum) bounds of the mesh in the 2 direction. Possible values are FREE and FIXED. The default value is FREE. negPosition2 A SymbolicConstant specifying the translational constraint on the negative (minimum) bounds of the mesh in the 2 direction. Possible values are FREE and FIXED. The default value is FREE. expansionRatio2 None or a Float specifying the upper bounds on the allowable scaling of the mesh in the 2 direction. If *expansionRatio2*=None, then there is no upper limit. The default value is None. contractRatio2 A Float specifying the lower bounds on the allowable scaling of the mesh in the 2 direction. The default value is 0.0. ctrPosition3 A SymbolicConstant specifying the 3-direction translational constraint on the center of the Eulerian mesh. Possible values are FREE and FIXED. The default value is FREE. posPosition3 A SymbolicConstant specifying the translational constraint on the positive (maximum) bounds of the mesh in the 3 direction. Possible values are FREE and FIXED. The default value is FREE. negPosition3 A SymbolicConstant specifying the translational constraint on the negative (minimum) bounds of the mesh in the 3 direction. Possible values are FREE and FIXED. The default value is FREE. expansionRatio3 None or a Float specifying the upper bounds on the allowable scaling of the mesh in the 3 direction. If *expansionRatio3*=None, then there is no upper limit. The default value is None. contractRatio3 A Float specifying the lower bounds on the allowable scaling of the mesh in the 3 direction. The default value is 0.0. allowContraction A Boolean specifying whether the mesh is allowed to contract . The default value is ON. aspectLimit A Float specifying the maximum change in allowed aspect ratio (for any of the three mesh aspects, 1-2, 2-3, 3-1). The default value is 10.0. vmaxFactor A Float specifying the multiplier for the mesh nodal velocity limit. The default value is 1.01. volThreshold A Float specifying the lower bounds on the volume fraction when determining which nodes to include in the surface bounding box calculation for an Eulerian material surface. This argument applies only when *followRegion*=False. The default value is 0.5. bufferSize None or a Float specifying the buffer between the surface box and the Eulerian section mesh bounding box. The default value is 2.0. Returns ------- bc: EulerianMotionBC An EulerianMotionBC object. """ self.boundaryConditions[name] = boundaryCondition = EulerianMotionBC(name, createStepName, instanceName, followRegion, region, materialName, ctrPosition1, posPosition1, negPosition1, expansionRatio1, contractRatio1, ctrPosition2, posPosition2, negPosition2, expansionRatio2, contractRatio2, ctrPosition3, posPosition3, negPosition3, expansionRatio3, contractRatio3, allowContraction, aspectLimit, vmaxFactor, volThreshold, bufferSize) self.steps[createStepName].boundaryConditionStates[name] = EulerianMotionBCState() return boundaryCondition def FluidCavityPressureBC(self, name: str, createStepName: str, fluidCavity: str, magnitude: float = 0, amplitude: str = UNSET, fixed: Boolean = OFF) -> FluidCavityPressureBC: """This method creates a FluidCavityPressureBC object. Notes ----- This function can be accessed by: .. code-block:: python mdb.models[name].FluidCavityPressureBC Parameters ---------- name A String specifying the boundary condition repository key. createStepName A String specifying the name of the step in which the boundary condition is created. fluidCavity A String specifying the name of a Fluid Cavity Interaction. magnitude A Float specifying the fluid cavity pressure magnitude. The default value is 0. amplitude A String or the SymbolicConstant UNSET specifying the name of the amplitude reference. UNSET should be used if the boundary condition has no amplitude reference. The default value is UNSET. You should provide the *amplitude* argument only if it is valid for the specified step. fixed A Boolean specifying whether the boundary condition should remain fixed at the current values at the start of the step. The default value is OFF. Returns ------- bc: FluidCavityPressureBC A FluidCavityPressureBC object. """ self.boundaryConditions[name] = boundaryCondition = FluidCavityPressureBC(name, createStepName, fluidCavity, magnitude, amplitude, fixed) self.steps[createStepName].boundaryConditionStates[name] = FluidCavityPressureBCState() return boundaryCondition def MagneticVectorPotentialBC(self, name: str, createStepName: str, region: Region, component1: SymbolicConstant = None, component2: SymbolicConstant = UNSET, component3: SymbolicConstant = UNSET, amplitude: str = UNSET, distributionType: SymbolicConstant = UNIFORM, localCsys: str = None) -> MagneticVectorPotentialBC: """This method creates a MagneticVectorPotentialBC object. Notes ----- This function can be accessed by: .. code-block:: python mdb.models[name].MagneticVectorPotentialBC Parameters ---------- name A String specifying the boundary condition repository key. createStepName A String specifying the name of the step in which the boundary condition is created. region A Region object specifying the region to which the boundary condition is applied. component1 A Complex, or a SymbolicConstant specifying the magnetic vector potential component in the 1-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET component2 A Complex, or a SymbolicConstant specifying the magnetic vector potential component in the 2-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. component3 A Complex, or a SymbolicConstant specifying the magnetic vector potential component in the 3-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. amplitude A String or the SymbolicConstant UNSET specifying the name of the amplitude reference. UNSET should be used if the boundary condition has no amplitude reference. The default value is UNSET. You should provide the *amplitude* argument only if it is valid for the specified step. distributionType A SymbolicConstant specifying how the boundary condition is distributed spatially. Possible values are UNIFORM and USER_DEFINED. The default value is UNIFORM. localCsys None or a DatumCsys object specifying the local coordinate system of the boundary condition's degrees of freedom. If *localCsys*=None, the degrees of freedom are defined in the global coordinate system. The default value is None. Returns ------- bc: MagneticVectorPotentialBC A MagneticVectorPotentialBC object. """ self.boundaryConditions[name] = boundaryCondition = MagneticVectorPotentialBC(name, createStepName, region, component1, component2, component3, amplitude, distributionType, localCsys) return boundaryCondition def MaterialFlowBC(self, name: str, createStepName: str, region: Region, fieldName: str = '', magnitude: float = 0, distributionType: SymbolicConstant = UNIFORM, amplitude: str = UNSET, fixed: Boolean = OFF) -> MaterialFlowBC: """This method creates a MaterialFlowBC object. Notes ----- This function can be accessed by: .. code-block:: python mdb.models[name].MaterialFlowBC Parameters ---------- name A String specifying the boundary condition repository key. createStepName A String specifying the name of the step in which the boundary condition is created. region A Region object specifying the region to which the boundary condition is applied. fieldName A String specifying the name of the AnalyticalField object associated with this boundary condition. The *fieldName* argument applies only when *distributionType*=FIELD. The default value is an empty string. magnitude A Float specifying the material flow magnitude. The default value is 0. The *magnitude* argument is optional if *distributionType*=USER_DEFINED. distributionType A SymbolicConstant specifying how the boundary condition is distributed spatially. Possible values are UNIFORM, USER_DEFINED, and FIELD. The default value is UNIFORM. amplitude A String or the SymbolicConstant UNSET specifying the name of the amplitude reference. UNSET should be used if the boundary condition has no amplitude reference. The default value is UNSET. You should provide the *amplitude* argument only if it is valid for the specified step. fixed A Boolean specifying whether the boundary condition should remain fixed at the current values at the start of the step. The default value is OFF. Returns ------- bc: MaterialFlowBC A MaterialFlowBC object. """ self.boundaryConditions[name] = boundaryCondition = MaterialFlowBC(name, createStepName, region, fieldName, magnitude, distributionType, amplitude, fixed) self.steps[createStepName].boundaryConditionStates[name] = MaterialFlowBCState() return boundaryCondition def PorePressureBC(self, name: str, createStepName: str, region: Region, fieldName: str = '', magnitude: float = 0, distributionType: SymbolicConstant = UNIFORM, amplitude: str = UNSET, fixed: Boolean = OFF) -> PorePressureBC: """This method creates a PorePressureBC object. Notes ----- This function can be accessed by: .. code-block:: python mdb.models[name].PorePressureBC Parameters ---------- name A String specifying the boundary condition repository key. createStepName A String specifying the name of the step in which the boundary condition is created. region A Region object specifying the region to which the boundary condition is applied. fieldName A String specifying the name of the AnalyticalField object associated with this boundary condition. The *fieldName* argument applies only when *distributionType*=FIELD. The default value is an empty string. magnitude A Float specifying the pore pressure magnitude. The default value is 0. The *magnitude* argument is optional if *distributionType*=USER_DEFINED. distributionType A SymbolicConstant specifying how the boundary condition is distributed spatially. Possible values are UNIFORM, USER_DEFINED, and FIELD. The default value is UNIFORM. amplitude A String or the SymbolicConstant UNSET specifying the name of the amplitude reference. UNSET should be used if the boundary condition has no amplitude reference. The default value is UNSET. You should provide the *amplitude* argument only if it is valid for the specified step. fixed A Boolean specifying whether the boundary condition should remain fixed at the current values at the start of the step. The default value is OFF. Returns ------- bc: PorePressureBC A PorePressureBC object. """ self.boundaryConditions[name] = boundaryCondition = PorePressureBC(name, createStepName, region, fieldName, magnitude, distributionType, amplitude, fixed) self.steps[createStepName].boundaryConditionStates[name] = PorePressureBCState() return boundaryCondition def RetainedNodalDofsBC(self, name: str, createStepName: str, region: Region, u1: Boolean = OFF, u2: Boolean = OFF, u3: Boolean = OFF, ur1: Boolean = OFF, ur2: Boolean = OFF, ur3: Boolean = OFF) -> RetainedNodalDofsBC: """This method creates a RetainedNodalDofsBC object. Notes ----- This function can be accessed by: .. code-block:: python mdb.models[name].RetainedNodalDofsBC Parameters ---------- name A String specifying the boundary condition repository key. createStepName A String specifying the name of the step in which the boundary condition is created. region A Region object specifying the region to which the boundary condition is applied. u1 A Boolean specifying whether to retain the degree of freedom in the 1-direction. The default value is OFF indicating that the degree of freedom is not retained. u2 A Boolean specifying whether to retain the degree of freedom in the 2-direction. The default value is OFF indicating that the degree of freedom is not retained. u3 A Boolean specifying whether to retain the degree of freedom in the 3-direction. The default value is OFF indicating that the degree of freedom is not retained. ur1 A Boolean specifying whether to retain the rotational degree of freedom about the 1-direction. The default value is OFF indicating that the degree of freedom is not retained. ur2 A Boolean specifying whether to retain the rotational degree of freedom about the 2-direction. The default value is OFF indicating that the degree of freedom is not retained. ur3 A Boolean specifying whether to retain the rotational degree of freedom about the 3-direction. The default value is OFF indicating that the degree of freedom is not retained. Returns ------- bc: RetainedNodalDofsBC A RetainedNodalDofsBC object. """ self.boundaryConditions[name] = boundaryCondition = RetainedNodalDofsBC(name, createStepName, region, u1, u2, u3, ur1, ur2, ur3) return boundaryCondition def SecondaryBaseBC(self, name: str, createStepName: str, regions: RegionArray, dofs: tuple) -> SecondaryBaseBC: """This method creates a SecondaryBaseBC object. Notes ----- This function can be accessed by: .. code-block:: python mdb.models[name].SecondaryBaseBC Parameters ---------- name A String specifying the boundary condition repository key. createStepName A String specifying the name of the step in which the boundary condition is created. regions A RegionArray object specifying the region to which the boundary condition is applied. Note that the usual *region* is ignored. The default value is MODEL. dofs A sequence of sequences of Ints specifying the constrained degrees-of-freedom. Returns ------- bc: SecondaryBaseBC A SecondaryBaseBC object. """ self.boundaryConditions[name] = boundaryCondition = SecondaryBaseBC(name, createStepName, regions, dofs) self.steps[createStepName].boundaryConditionStates[name] = SecondaryBaseBCState() return boundaryCondition def SubmodelBC(self, name: str, createStepName: str, region: Region, dof: tuple, globalStep: str, timeScale: Boolean, shellThickness: float, globalDrivingRegion: str = '', absoluteExteriorTolerance: float = None, exteriorTolerance: float = 0, localCsys: str = None, globalIncrement: int = 0, centerZoneSize: float = None, intersectionOnly: Boolean = OFF) -> SubmodelBC: """This method creates a SubmodelBC object. Notes ----- This function can be accessed by: .. code-block:: python mdb.models[name].SubmodelBC Parameters ---------- name A String specifying the boundary condition repository key. createStepName A String specifying the name of the step in which the boundary condition is created. region A Region object specifying the region to which the boundary condition is applied. dof A sequence of Ints specifying the degrees of freedom to which the boundary condition is applied. globalStep A String specifying the step in the global model from which Abaqus reads the values of the variables that will drive the submodel analysis. The String indicates the position of the step in the sequence of analysis steps. For example, *globalStep*='1' indicates the first step. timeScale A Boolean specifying whether to scale the time variable for the driven nodes' amplitude functions to match the submodel analysis step time. The default value is OFF. shellThickness A Float specifying the thickness of the shell in the global model. This argument is required for shell-to-solid submodeling and is not applicable to other submodels. The default value is 0.0. globalDrivingRegion A String specifying the element set in the global model that will be searched for elements whose responses will be used to drive the submodel. An empty string indicates that the entire global model will be searched. The default value is an empty string. absoluteExteriorTolerance None or a Float specifying the absolute value by which a driven node of the submodel can lie outside the region of the elements of the global model. The default value is None. exteriorTolerance None or a Float specifying the fraction of the average element size in the global model by which a driven node of the submodel can lie outside the region of the elements of the global model. The default value is 0.05. localCsys None or a DatumCsys object specifying the local coordinate system of the boundary condition's degrees of freedom. If *localCsys*=None, the degrees of freedom are defined in the global coordinate system. The default value is None. globalIncrement An Int specifying the increment number in the global model step from which the solution will be used to specify the values of the driven variables. If *globalIncrement*=0, the solution from the last increment will be used. The *globalIncrement* argument is applicable only for linear perturbation steps. The default value is 0. centerZoneSize A Float specifying the thickness of the center zone size around the shell midsurface. The default value is None. intersectionOnly A Boolean specifying whether to ignore driven nodes that lie outside the region of elements of the global model after accounting for the exterior search tolerance. The default value is OFF. Returns ------- bc: SubmodelBC A SubmodelBC object. """ self.boundaryConditions[name] = boundaryCondition = SubmodelBC(name, createStepName, region, dof, globalStep, timeScale, shellThickness, globalDrivingRegion, absoluteExteriorTolerance, exteriorTolerance, localCsys, globalIncrement, centerZoneSize, intersectionOnly) self.steps[createStepName].boundaryConditionStates[name] = SubmodelBCState() return boundaryCondition def TemperatureBC(self, name: str, createStepName: str, region: Region, fieldName: str = '', magnitude: float = 0, dof: tuple = (), amplitude: str = UNSET, distributionType: SymbolicConstant = UNIFORM, fixed: Boolean = OFF) -> TemperatureBC: """This method creates a TemperatureBC object. Notes ----- This function can be accessed by: .. code-block:: python mdb.models[name].TemperatureBC Parameters ---------- name A String specifying the boundary condition repository key. createStepName A String specifying the name of the step in which the boundary condition is created. region A Region object specifying the region to which the boundary condition is applied. fieldName A String specifying the name of the AnalyticalField object associated with this boundary condition. The *fieldName* argument applies only when *distributionType*=FIELD. The default value is an empty string. magnitude A Float specifying the temperature magnitude. The default value is 0. dof A sequence of Ints specifying the degrees of freedom to which the boundary condition is applied. The default value is (11,). amplitude A String or the SymbolicConstant UNSET specifying the name of the amplitude reference. UNSET should be used if the boundary condition has no amplitude reference. The default value is UNSET. You should provide the *amplitude* argument only if it is valid for the specified step. distributionType A SymbolicConstant specifying how the boundary condition is distributed spatially. Possible values are UNIFORM, USER_DEFINED, and FIELD. The default value is UNIFORM. fixed A Boolean specifying whether the boundary condition should remain fixed at the current values at the start of the step. The default value is OFF. Returns ------- bc: TemperatureBC A TemperatureBC object. """ self.boundaryConditions[name] = boundaryCondition = TemperatureBC(name, createStepName, region, fieldName, magnitude, dof, amplitude, distributionType, fixed) self.steps[createStepName].boundaryConditionStates[name] = TemperatureBCState() return boundaryCondition def VelocityBaseMotionBC(self, name: str, createStepName: str, dof: SymbolicConstant, amplitudeScaleFactor: float = 1, centerOfRotation: tuple = (), correlation: CorrelationArray = None, secondaryBase: str = '', useComplex: Boolean = OFF, amplitude: str = UNSET) -> VelocityBaseMotionBC: """This method creates a VelocityBaseMotionBC object. Notes ----- This function can be accessed by: .. code-block:: python mdb.models[name].VelocityBaseMotionBC Parameters ---------- name A String specifying the boundary condition repository key. createStepName A String specifying the name of the step in which the boundary condition is created. dof A SymbolicConstant specifying the constrained degree-of-freedom. Possible values for the SymbolicConstant are U1, U2, U3, UR1, UR2, UR3. The default value is U1. amplitudeScaleFactor A Float specifying the scale factor for the amplitude curve. The default value is 1.0. centerOfRotation A ModelDot object specifying a tuple containing one center of rotation. The default value is the global origin. This argument applies only when *dof*=UR1, UR2, or UR3. correlation A CorrelationArray object. secondaryBase A String specifying the name of the SecondaryBaseBC object associated with this boundary condition. The default value is an empty string. useComplex A Boolean specifying whether to define the imaginary (out-of-plane) portion of the base motion record given by amplitude definition. The default value is OFF. amplitude A String or the SymbolicConstant UNSET specifying the name of the amplitude reference. UNSET should be used if the boundary condition has no amplitude reference. The default value is UNSET. You should provide the *amplitude* argument only if it is valid for the specified step. Returns ------- bc: VelocityBaseMotionBC A VelocityBaseMotionBC object. """ self.boundaryConditions[name] = boundaryCondition = VelocityBaseMotionBC(name, createStepName, dof, amplitudeScaleFactor, centerOfRotation, correlation, secondaryBase, useComplex, amplitude) self.steps[createStepName].boundaryConditionStates[name] = VelocityBaseMotionBCState() return boundaryCondition def VelocityBC(self, name: str, createStepName: str, region: Region, fieldName: str = '', v1: typing.Union[SymbolicConstant, float] = UNSET, v2: typing.Union[SymbolicConstant, float] = UNSET, v3: typing.Union[SymbolicConstant, float] = UNSET, vr1: typing.Union[SymbolicConstant, float] = UNSET, vr2: typing.Union[SymbolicConstant, float] = UNSET, vr3: typing.Union[SymbolicConstant, float] = UNSET, amplitude: str = UNSET, localCsys: str = None, distributionType: SymbolicConstant = UNIFORM) -> VelocityBC: """This method creates a VelocityBC object. Notes ----- This function can be accessed by: .. code-block:: python mdb.models[name].VelocityBC Parameters ---------- name A String specifying the boundary condition repository key. createStepName A String specifying the name of the step in which the boundary condition is created. region A Region object specifying the region to which the boundary condition is applied. fieldName A String specifying the name of the AnalyticalField object associated with this boundary condition. The *fieldName* argument applies only when *distributionType*=FIELD. The default value is an empty string. v1 A Float or a SymbolicConstant specifying the velocity component in the 1-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET.Note:Although *v1*, *v2*, *v3*, *vr1*, *vr2*, and *vr3* are optional arguments, at least one of them must be specified. v2 A Float or a SymbolicConstant specifying the velocity component in the 2-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. v3 A Float or a SymbolicConstant specifying the velocity component in the 3-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. vr1 A Float or a SymbolicConstant specifying the rotational velocity component about the 1-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. vr2 A Float or a SymbolicConstant specifying the rotational velocity component about the 2-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. vr3 A Float or a SymbolicConstant specifying the rotational velocity component about the 3-direction. Possible values for the SymbolicConstant are UNSET and SET. The default value is UNSET. amplitude A String or the SymbolicConstant UNSET specifying the name of the amplitude reference. UNSET should be used if the boundary condition has no amplitude reference. The default value is UNSET. You should provide the *amplitude* argument only if it is valid for the specified step. localCsys None or a DatumCsys object specifying the local coordinate system of the boundary condition's degrees of freedom. If *localCsys*=None, the degrees of freedom are defined in the global coordinate system. The default value is None. distributionType A SymbolicConstant specifying how the boundary condition is distributed spatially. Possible values are UNIFORM, USER_DEFINED, and FIELD. The default value is UNIFORM. Returns ------- bc: VelocityBC A VelocityBC object. """ self.boundaryConditions[name] = boundaryCondition = VelocityBC(name, createStepName, region, fieldName, v1, v2, v3, vr1, vr2, vr3, amplitude, localCsys, distributionType) self.steps[createStepName].boundaryConditionStates[name] = VelocityBCState() return boundaryCondition
54.3251
120
0.618993
8,300
81,379
6.064458
0.051566
0.048296
0.048277
0.054713
0.776875
0.739187
0.725877
0.711533
0.704917
0.69846
0
0.006946
0.336622
81,379
1,497
121
54.361389
0.925442
0.592032
0
0.326316
0
0
0
0
0
0
0
0
0
1
0.080702
false
0
0.17193
0
0.336842
0
0
0
0
null
0
0
0
0
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
5
382d73f86eabcf33ad784308b67af36f241218f0
786
py
Python
HiggsAnalysis/Configuration/python/HiggsAnalysis_cff.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
HiggsAnalysis/Configuration/python/HiggsAnalysis_cff.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
HiggsAnalysis/Configuration/python/HiggsAnalysis_cff.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
14
2017-10-04T09:47:21.000Z
2019-10-23T18:04:45.000Z
import FWCore.ParameterSet.Config as cms # # HiggsAnalysis standard sequences # # Dominique Fortin - UC Riverside from HiggsAnalysis.Skimming.heavyChHiggsToTauNu_Sequences_cff import * from HiggsAnalysis.Skimming.higgsTo2Gamma_Sequences_cff import * from HiggsAnalysis.Skimming.higgsToInvisible_Sequences_cff import * from HiggsAnalysis.Skimming.higgsToTauTau_LeptonTau_Sequences_cff import * from HiggsAnalysis.Skimming.higgsToWW2Leptons_Sequences_cff import * from HiggsAnalysis.Skimming.higgsToZZ4Leptons_Sequences_cff import * # include "HiggsAnalysis/Skimming/data/rsTo2Gamma_Sequences.cff" higgsAnalysis = cms.Sequence(heavyChHiggsToTauNuSequence+higgsTo2GammaSequence+higgsToInvisibleSequence+higgsToTauTauLeptonTauSequence+higgsToWW2LeptonsSequence+higgsToZZ4LeptonsSequence)
49.125
187
0.886768
72
786
9.486111
0.458333
0.215227
0.219619
0.161054
0.314788
0.314788
0
0
0
0
0
0.009485
0.061069
786
15
188
52.4
0.915989
0.161578
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.875
0
0.875
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
382fc16c2945d32d9989f8fdbb5969d9a0919059
145
py
Python
textattack/commands/eval_model/__init__.py
StatNLP/discretezoo
565552b894a5c9632ac7b949d61a6f71123031e4
[ "MIT" ]
null
null
null
textattack/commands/eval_model/__init__.py
StatNLP/discretezoo
565552b894a5c9632ac7b949d61a6f71123031e4
[ "MIT" ]
null
null
null
textattack/commands/eval_model/__init__.py
StatNLP/discretezoo
565552b894a5c9632ac7b949d61a6f71123031e4
[ "MIT" ]
1
2022-03-25T16:45:12.000Z
2022-03-25T16:45:12.000Z
""" TextAttack Command Package for Evaluation ------------------------------------------ """ from .eval_model_command import EvalModelCommand
16.111111
48
0.558621
11
145
7.181818
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.103448
145
8
49
18.125
0.607692
0.57931
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
697c0d629aa33b9a6cc8a7dc825e782dbbd3336d
76
py
Python
multiqc_uphl/modules/abricate/__init__.py
Ikkik/MultiQC_UPHL
26658ee664613e71bb41c4a23ddaeb0e41f6cdd1
[ "MIT" ]
2
2019-11-15T16:40:08.000Z
2019-12-04T18:02:32.000Z
multiqc_uphl/modules/abricate/__init__.py
erinyoung/MultiQC_UPHL
26658ee664613e71bb41c4a23ddaeb0e41f6cdd1
[ "MIT" ]
null
null
null
multiqc_uphl/modules/abricate/__init__.py
erinyoung/MultiQC_UPHL
26658ee664613e71bb41c4a23ddaeb0e41f6cdd1
[ "MIT" ]
null
null
null
from __future__ import absolute_import from .abricate import MultiqcModule
19
38
0.868421
9
76
6.777778
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.118421
76
3
39
25.333333
0.910448
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
698f55fcb6776e8f50e1255407bb98682f3c48c4
398
py
Python
terracotta/server/spec.py
vlro/terracotta
26ef2f61bd8306fd8fecd27288df6426a6751534
[ "MIT" ]
null
null
null
terracotta/server/spec.py
vlro/terracotta
26ef2f61bd8306fd8fecd27288df6426a6751534
[ "MIT" ]
null
null
null
terracotta/server/spec.py
vlro/terracotta
26ef2f61bd8306fd8fecd27288df6426a6751534
[ "MIT" ]
null
null
null
"""server/spec.py Flask routes to serve API spec """ from typing import Any from flask import jsonify, render_template from terracotta.server.flask_api import spec_api, spec @spec_api.route('/swagger.json', methods=['GET']) def specification() -> str: return jsonify(spec.to_dict()) @spec_api.route('/apidoc', methods=['GET']) def ui() -> Any: return render_template('apidoc.html')
18.952381
54
0.71608
57
398
4.877193
0.508772
0.07554
0.086331
0
0
0
0
0
0
0
0
0
0.135678
398
20
55
19.9
0.80814
0.115578
0
0
0
0
0.107246
0
0
0
0
0
0
1
0.222222
true
0
0.333333
0.222222
0.777778
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
1
0
1
1
1
0
0
5
2a064c52142b792f6e0d9214e7344f177557518f
671
py
Python
hyperopt/hp.py
Loquats/hyperopt
6c5b33be93a71a4ae6a38f04a29b18020b78b702
[ "BSD-3-Clause" ]
6,071
2015-01-02T18:07:25.000Z
2022-03-31T23:43:16.000Z
hyperopt/hp.py
Loquats/hyperopt
6c5b33be93a71a4ae6a38f04a29b18020b78b702
[ "BSD-3-Clause" ]
606
2015-01-08T03:05:01.000Z
2022-03-31T07:55:13.000Z
hyperopt/hp.py
Loquats/hyperopt
6c5b33be93a71a4ae6a38f04a29b18020b78b702
[ "BSD-3-Clause" ]
945
2015-01-07T09:21:18.000Z
2022-03-29T08:51:55.000Z
""" Support nicer user syntax: from hyperopt import hp hp.uniform('x', 0, 1) """ from .pyll_utils import hp_choice as choice from .pyll_utils import hp_randint as randint from .pyll_utils import hp_pchoice as pchoice from .pyll_utils import hp_uniform as uniform from .pyll_utils import hp_uniformint as uniformint from .pyll_utils import hp_quniform as quniform from .pyll_utils import hp_loguniform as loguniform from .pyll_utils import hp_qloguniform as qloguniform from .pyll_utils import hp_normal as normal from .pyll_utils import hp_qnormal as qnormal from .pyll_utils import hp_lognormal as lognormal from .pyll_utils import hp_qlognormal as qlognormal
33.55
53
0.819672
109
671
4.825688
0.238532
0.197719
0.296578
0.43346
0.479087
0
0
0
0
0
0
0.003472
0.14158
671
19
54
35.315789
0.909722
0.119225
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
2a712153d7093cb205a000880188f8419ae7c784
111
py
Python
setup.py
wade-crys/crys-backend
521b1f99f9990c4dcc6296ab2145015847305fc2
[ "Apache-2.0" ]
null
null
null
setup.py
wade-crys/crys-backend
521b1f99f9990c4dcc6296ab2145015847305fc2
[ "Apache-2.0" ]
2
2021-06-02T00:54:57.000Z
2021-12-13T20:30:16.000Z
setup.py
wade-crys/CryS-Backend
521b1f99f9990c4dcc6296ab2145015847305fc2
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages setup(name='CrysBackend', version='1.0', packages=find_packages())
37
66
0.792793
15
111
5.733333
0.733333
0.27907
0
0
0
0
0
0
0
0
0
0.019417
0.072072
111
3
66
37
0.815534
0
0
0
0
0
0.125
0
0
0
0
0
0
1
0
true
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
1
0
1
0
0
0
0
5
2a77017e1cc54eb9e88a98f6c9a6f7e46e75fdca
1,195
py
Python
scope/device/iotool/commands.py
drew-sinha/rpc-scope
268864097b5b7d123a842f216adc446ec6b32d01
[ "MIT" ]
1
2017-11-10T17:23:11.000Z
2017-11-10T17:23:11.000Z
scope/device/iotool/commands.py
drew-sinha/rpc-scope
268864097b5b7d123a842f216adc446ec6b32d01
[ "MIT" ]
5
2018-08-01T03:05:35.000Z
2018-11-29T22:11:25.000Z
scope/device/iotool/commands.py
drew-sinha/rpc-scope
268864097b5b7d123a842f216adc446ec6b32d01
[ "MIT" ]
3
2016-05-25T18:58:35.000Z
2018-11-29T23:40:45.000Z
# This code is licensed under the MIT License (see LICENSE file for details) def _make_command(*elements): return ' '.join(map(str, elements)) def wait_high(pin): return _make_command('wh', pin) def wait_low(pin): return _make_command('wl', pin) def wait_change(pin): return _make_command('wc', pin) def wait_time(time): return _make_command('wt', time) def read_digital(pin): return _make_command('rd', pin) def read_analog(pin): return _make_command('ra', pin) def delay_ms(delay): return _make_command('dm', delay) def delay_us(delay): return _make_command('du', delay) def timer_begin(): return _make_command('tb') def timer_end(): return _make_command('te') def pwm(pin, value): return _make_command('pm', pin, value) def set_high(pin): return _make_command('sh', pin) def set_low(pin): return _make_command('sl', pin) def set_tristate(pin): return _make_command('st', pin) def char_transmit(byte): return _make_command('ct', byte) def char_receive(): return _make_command('cr') def loop(index, count): return _make_command('lo', index, count) def goto(index): return _make_command('go', index)
20.254237
76
0.693724
179
1,195
4.335196
0.363128
0.26933
0.39433
0.206186
0.121134
0
0
0
0
0
0
0
0.172385
1,195
58
77
20.603448
0.784631
0.061925
0
0
0
0
0.033065
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
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
1
0
0
0
1
0
0
0
5
aa74157043a5854682f44c51426933aad7277532
25
py
Python
emanager/crm/__init__.py
sourav-30/Manager
21adc814ab2c6e1cd5b375ea3ce3e01da743e357
[ "MIT" ]
null
null
null
emanager/crm/__init__.py
sourav-30/Manager
21adc814ab2c6e1cd5b375ea3ce3e01da743e357
[ "MIT" ]
null
null
null
emanager/crm/__init__.py
sourav-30/Manager
21adc814ab2c6e1cd5b375ea3ce3e01da743e357
[ "MIT" ]
null
null
null
from .Customer import *
12.5
24
0.72
3
25
6
1
0
0
0
0
0
0
0
0
0
0
0
0.2
25
1
25
25
0.9
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
0
0
0
5
aa7557a968bd3d0e4eb689c342b6be2c1bfc895d
1,744
py
Python
Python/examples/prostate.py
RyanShahidi/easyml
fe0ecab6de02c0d91ef7de937cfb72ce7fcf3a51
[ "MIT" ]
37
2016-11-16T20:11:34.000Z
2022-03-28T19:18:35.000Z
Python/examples/prostate.py
RyanShahidi/easyml
fe0ecab6de02c0d91ef7de937cfb72ce7fcf3a51
[ "MIT" ]
76
2016-11-06T18:04:41.000Z
2021-04-30T20:34:51.000Z
Python/examples/prostate.py
CCS-Lab/easyML
664076b4aba733751905ed351e5a320f20f1e520
[ "MIT" ]
18
2016-12-21T17:41:29.000Z
2021-05-10T20:43:49.000Z
from easymlpy import glmnet, random_forest, support_vector_machine from easymlpy.datasets import load_prostate # Settings n_samples = 50 n_divisions = 50 n_iterations = 2 # Load data prostate = load_prostate() # Analyze data output = support_vector_machine.easy_support_vector_machine(prostate, 'lpsa', random_state=1, progress_bar=True, n_core=1, n_samples=50, n_divisions=50, n_iterations=2) output.plot_predictions_single_train_test_split_train() output.plot_predictions_single_train_test_split_test() output.plot_model_performance_train() output.plot_model_performance_test() # Analyze data output = random_forest.easy_random_forest(prostate, 'lpsa', random_state=1, progress_bar=True, n_core=1, n_samples=50, n_divisions=50, n_iterations=2, model_args={'n_estimators': 10}) output.plot_variable_importances() output.plot_predictions_single_train_test_split_train() output.plot_predictions_single_train_test_split_test() output.plot_model_performance_train() output.plot_model_performance_test() # Analyze data output = glmnet.easy_glmnet(prostate, 'lpsa', random_state=1, progress_bar=True, n_core=1, n_samples=50, n_divisions=50, n_iterations=2, model_args={'alpha': 1, 'n_lambda': 200}) output.plot_coefficients() output.plot_predictions_single_train_test_split_train() output.plot_predictions_single_train_test_split_test() output.plot_model_performance_train() output.plot_model_performance_test()
39.636364
105
0.682339
211
1,744
5.184834
0.222749
0.127971
0.115174
0.14808
0.712066
0.712066
0.712066
0.712066
0.712066
0.680987
0
0.024224
0.242546
1,744
43
106
40.55814
0.803936
0.032683
0
0.548387
0
0
0.022011
0
0
0
0
0
0
1
0
false
0
0.096774
0
0.096774
0
0
0
0
null
0
0
0
0
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
5
aa886adfa70460f3298b14b87ac0b37322cd3906
256
py
Python
src/olympia/landfill/tests/test_names.py
covariant/addons-server
41e6ee9e426facb19a1e1ca8d40277cb6f94a7da
[ "BSD-3-Clause" ]
843
2016-02-09T13:00:37.000Z
2022-03-20T19:17:06.000Z
src/olympia/landfill/tests/test_names.py
covariant/addons-server
41e6ee9e426facb19a1e1ca8d40277cb6f94a7da
[ "BSD-3-Clause" ]
10,187
2016-02-05T23:51:05.000Z
2022-03-31T15:24:44.000Z
src/olympia/landfill/tests/test_names.py
covariant/addons-server
41e6ee9e426facb19a1e1ca8d40277cb6f94a7da
[ "BSD-3-Clause" ]
551
2016-02-08T20:32:16.000Z
2022-03-15T16:49:24.000Z
from olympia.amo.tests import TestCase from olympia.landfill.names import generate_names class NamesTests(TestCase): def test_names_generation(self): assert len(generate_names()) == 136 assert 'Exquisite Sandwich' in generate_names()
28.444444
55
0.753906
32
256
5.875
0.65625
0.207447
0
0
0
0
0
0
0
0
0
0.014085
0.167969
256
8
56
32
0.868545
0
0
0
1
0
0.070313
0
0
0
0
0
0.333333
1
0.166667
false
0
0.333333
0
0.666667
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
aa8cc0163535772bcc828d91776be3b06d8b1083
26
py
Python
test/__init__.py
KryptedGaming/django-eveonline-doctrines
145b80e38a57b4662dc62891dca29a0ba3bfd67c
[ "MIT" ]
1
2021-03-19T17:08:04.000Z
2021-03-19T17:08:04.000Z
test/__init__.py
KryptedGaming/django-eveonline-doctrines
145b80e38a57b4662dc62891dca29a0ba3bfd67c
[ "MIT" ]
25
2020-04-20T03:04:53.000Z
2021-02-21T17:01:53.000Z
test/__init__.py
KryptedGaming/django-eveonline-doctrines
145b80e38a57b4662dc62891dca29a0ba3bfd67c
[ "MIT" ]
1
2020-10-04T18:21:17.000Z
2020-10-04T18:21:17.000Z
# from .celery import app
13
25
0.730769
4
26
4.75
1
0
0
0
0
0
0
0
0
0
0
0
0.192308
26
1
26
26
0.904762
0.884615
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
aaa2137c5eb39ce2f5c3e43e4af1148d368c7590
30
py
Python
utilidades/__init__.py
marcosmercurio/Ola-Mundo
d5452336a3d83c2d43a8f3c222aa93fcbce845a0
[ "MIT" ]
null
null
null
utilidades/__init__.py
marcosmercurio/Ola-Mundo
d5452336a3d83c2d43a8f3c222aa93fcbce845a0
[ "MIT" ]
null
null
null
utilidades/__init__.py
marcosmercurio/Ola-Mundo
d5452336a3d83c2d43a8f3c222aa93fcbce845a0
[ "MIT" ]
null
null
null
input ("ola digite seu nome")
15
29
0.7
5
30
4.2
1
0
0
0
0
0
0
0
0
0
0
0
0.166667
30
1
30
30
0.84
0
0
0
0
0
0.633333
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
aad1e5769a96c00fe5569b09f253a28e2f6778b6
153
py
Python
src/Lotes/admin.py
carnadaxxx/lotizados
5d3dc346cb268dfc481e0c532712450b9ac2fc84
[ "Apache-2.0" ]
null
null
null
src/Lotes/admin.py
carnadaxxx/lotizados
5d3dc346cb268dfc481e0c532712450b9ac2fc84
[ "Apache-2.0" ]
null
null
null
src/Lotes/admin.py
carnadaxxx/lotizados
5d3dc346cb268dfc481e0c532712450b9ac2fc84
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import Lote, Manzana # Register your models here. admin.site.register(Lote) admin.site.register(Manzana)
19.125
33
0.797386
22
153
5.545455
0.545455
0.147541
0.278689
0
0
0
0
0
0
0
0
0
0.117647
153
7
34
21.857143
0.903704
0.169935
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
aae3a3ea8fa2e4b5f7e5f873ba5cc3719ab8d202
7,986
py
Python
tests/test_experiment/test_local_experiment_saver.py
mv1388/AIToolbox
c64ac4810a02d230ce471d86b758e82ea232a7e7
[ "MIT" ]
3
2019-10-12T12:24:09.000Z
2020-08-02T02:42:43.000Z
tests/test_experiment/test_local_experiment_saver.py
mv1388/aitoolbox
1060435e6cbdfd19abcb726c4080b663536b7467
[ "MIT" ]
3
2020-04-10T14:07:07.000Z
2020-04-22T19:04:38.000Z
tests/test_experiment/test_local_experiment_saver.py
mv1388/aitoolbox
1060435e6cbdfd19abcb726c4080b663536b7467
[ "MIT" ]
null
null
null
import unittest import os import shutil from tests.utils import * from aitoolbox.experiment.local_experiment_saver import * from aitoolbox.experiment.experiment_saver import AbstractExperimentSaver from aitoolbox.experiment.result_package.abstract_result_packages import AbstractResultPackage from aitoolbox.experiment.local_save.local_model_save import PyTorchLocalModelSaver, KerasLocalModelSaver from aitoolbox.experiment.local_save.local_results_save import LocalResultsSaver from aitoolbox.experiment.training_history import TrainingHistory THIS_DIR = os.path.dirname(os.path.abspath(__file__)) class DummyFullResultPackage(AbstractResultPackage): def __init__(self, result_dict, hyper_params): AbstractResultPackage.__init__(self, 'dummyFullPkg') self.result_dict = result_dict self.hyper_params = hyper_params self.y_true = [10.0] * 100 self.y_predicted = [123.4] * 100 def prepare_results_dict(self): return self.result_dict def get_results(self): return self.prepare_results_dict() def get_hyperparameters(self): return self.hyper_params class TestFullPyTorchExperimentLocalSaver(unittest.TestCase): def test_init(self): project_dir_name = 'projectPyTorchLocalModelSaver' exp_dir_name = 'experimentSubDirPT' saver = FullPyTorchExperimentLocalSaver(project_name=project_dir_name, experiment_name=exp_dir_name, local_model_result_folder_path=THIS_DIR) self.assertIsInstance(saver, AbstractExperimentSaver) self.assertIsInstance(saver, BaseFullExperimentLocalSaver) self.assertEqual(type(saver.model_saver), PyTorchLocalModelSaver) self.assertEqual(type(saver.results_saver), LocalResultsSaver) def test_save_experiment(self): self.save_experiment_options(save_true_pred_labels=True, separate_files=True) self.save_experiment_options(save_true_pred_labels=True, separate_files=False) self.save_experiment_options(save_true_pred_labels=False, separate_files=True) self.save_experiment_options(save_true_pred_labels=False, separate_files=False) def save_experiment_options(self, save_true_pred_labels, separate_files): model = Net() project_dir_name = 'projectPyTorchLocalModelSaver' exp_dir_name = 'experimentSubDirPT' current_time = datetime.datetime.fromtimestamp(time.time()).strftime('%Y-%m-%d_%H-%M-%S') project_path = os.path.join(THIS_DIR, project_dir_name) exp_path = os.path.join(project_path, f'{exp_dir_name}_{current_time}') model_path = os.path.join(exp_path, 'model') results_path = os.path.join(exp_path, 'results') result_pkg = DummyFullResultPackage({'metric1': 33434, 'acc1': 223.43, 'loss': 4455.6}, {'epoch': 20, 'lr': 0.334}) training_history = TrainingHistory().wrap_pre_prepared_history({}) model_checkpoint = {'model_state_dict': model.state_dict(), 'optimizer_state_dict': None, 'epoch': 10, 'hyperparams': {}} saver = FullPyTorchExperimentLocalSaver(project_name=project_dir_name, experiment_name=exp_dir_name, local_model_result_folder_path=THIS_DIR) saved_paths = saver.save_experiment(model_checkpoint, result_pkg, training_history, current_time, save_true_pred_labels=save_true_pred_labels, separate_files=separate_files) model_file_path_true = os.path.join(model_path, f'model_{exp_dir_name}_{current_time}.pth') self.assertTrue(os.path.exists(model_file_path_true)) if not separate_files: saved_paths_true = [model_file_path_true, os.path.join(results_path, f'results_hyperParams_hist_{exp_dir_name}_{current_time}.p')] else: saved_paths_true = [model_file_path_true, os.path.join(results_path, f'results_{exp_dir_name}_{current_time}.p'), os.path.join(results_path, f'hyperparams_{exp_dir_name}_{current_time}.p'), os.path.join(results_path, f'train_history_{exp_dir_name}_{current_time}.p')] if save_true_pred_labels: saved_paths_true.append(os.path.join(results_path, f'true_pred_labels_{exp_dir_name}_{current_time}.p')) self.assertEqual(sorted(saved_paths_true), sorted(saved_paths)) if os.path.exists(project_path): shutil.rmtree(project_path) class TestFullKerasExperimentLocalSaver(unittest.TestCase): def test_init(self): project_dir_name = 'projectPyTorchLocalModelSaver' exp_dir_name = 'experimentSubDirPT' saver = FullKerasExperimentLocalSaver(project_name=project_dir_name, experiment_name=exp_dir_name, local_model_result_folder_path=THIS_DIR) self.assertIsInstance(saver, AbstractExperimentSaver) self.assertIsInstance(saver, BaseFullExperimentLocalSaver) self.assertEqual(type(saver.model_saver), KerasLocalModelSaver) self.assertEqual(type(saver.results_saver), LocalResultsSaver) def test_save_experiment(self): self.save_experiment_options(save_true_pred_labels=True, separate_files=True) self.save_experiment_options(save_true_pred_labels=True, separate_files=False) self.save_experiment_options(save_true_pred_labels=False, separate_files=True) self.save_experiment_options(save_true_pred_labels=False, separate_files=False) def save_experiment_options(self, save_true_pred_labels, separate_files): model = keras_dummy_model() project_dir_name = 'projectKerasLocalModelSaver' exp_dir_name = 'experimentSubDirPT' current_time = datetime.datetime.fromtimestamp(time.time()).strftime('%Y-%m-%d_%H-%M-%S') project_path = os.path.join(THIS_DIR, project_dir_name) exp_path = os.path.join(project_path, f'{exp_dir_name}_{current_time}') model_path = os.path.join(exp_path, 'model') results_path = os.path.join(exp_path, 'results') result_pkg = DummyFullResultPackage({'metric1': 33434, 'acc1': 223.43, 'loss': 4455.6}, {'epoch': 20, 'lr': 0.334}) training_history = TrainingHistory().wrap_pre_prepared_history({}) saver = FullKerasExperimentLocalSaver(project_name=project_dir_name, experiment_name=exp_dir_name, local_model_result_folder_path=THIS_DIR) saved_paths = saver.save_experiment(model, result_pkg, training_history, current_time, save_true_pred_labels=save_true_pred_labels, separate_files=separate_files) model_file_path_true = os.path.join(model_path, f'model_{exp_dir_name}_{current_time}.h5') self.assertTrue(os.path.exists(model_file_path_true)) if not separate_files: saved_paths_true = [model_file_path_true, os.path.join(results_path, f'results_hyperParams_hist_{exp_dir_name}_{current_time}.p')] else: saved_paths_true = [model_file_path_true, os.path.join(results_path, f'results_{exp_dir_name}_{current_time}.p'), os.path.join(results_path, f'hyperparams_{exp_dir_name}_{current_time}.p'), os.path.join(results_path, f'train_history_{exp_dir_name}_{current_time}.p')] if save_true_pred_labels: saved_paths_true.append(os.path.join(results_path, f'true_pred_labels_{exp_dir_name}_{current_time}.p')) self.assertEqual(sorted(saved_paths_true), sorted(saved_paths)) if os.path.exists(project_path): shutil.rmtree(project_path)
51.192308
120
0.694966
937
7,986
5.512273
0.134472
0.043369
0.042594
0.05576
0.794385
0.794385
0.780058
0.780058
0.771733
0.771733
0
0.009899
0.215753
7,986
155
121
51.522581
0.814785
0
0
0.686441
0
0
0.118833
0.089031
0
0
0
0
0.101695
1
0.084746
false
0
0.084746
0.025424
0.220339
0
0
0
0
null
0
0
0
0
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
5
2aa14cea28d089fef82ea76140020a9e16bf6486
25
py
Python
latest/modules/physics/continuum_mechanics/beam_problems-3.py
sympy/sympy_doc
ec4f28eed09d5acb9e55874e82cc86c74e762c0d
[ "BSD-3-Clause" ]
20
2015-01-28T01:08:13.000Z
2021-12-19T04:03:28.000Z
latest/modules/physics/continuum_mechanics/beam_problems-3.py
varunjha089/sympy_doc
a9548e3691954dfc16357072d19aeccc3bdd959b
[ "BSD-3-Clause" ]
31
2015-01-27T07:16:19.000Z
2021-11-15T10:58:15.000Z
latest/modules/physics/continuum_mechanics/beam_problems-3.py
varunjha089/sympy_doc
a9548e3691954dfc16357072d19aeccc3bdd959b
[ "BSD-3-Clause" ]
38
2015-01-08T18:48:27.000Z
2021-12-02T13:19:43.000Z
b.apply_load(12, 9, -1)
12.5
24
0.6
6
25
2.333333
1
0
0
0
0
0
0
0
0
0
0
0.190476
0.16
25
1
25
25
0.47619
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
2ab3d4649efd979a11e0a3ab7ad4fe5cd1889b3c
124
py
Python
cyclegan/utils/__init__.py
narumiruna/cyclegan-pytorch
11e28b7d9681e9cd40ecf9ee6d0fc93076d69365
[ "MIT" ]
1
2020-03-19T07:38:42.000Z
2020-03-19T07:38:42.000Z
cyclegan/utils/__init__.py
narumiruna/cyclegan-pytorch
11e28b7d9681e9cd40ecf9ee6d0fc93076d69365
[ "MIT" ]
null
null
null
cyclegan/utils/__init__.py
narumiruna/cyclegan-pytorch
11e28b7d9681e9cd40ecf9ee6d0fc93076d69365
[ "MIT" ]
null
null
null
from .collections import AttrDict from .factory import get_factory from .utils import distributed_is_initialized, load_yaml
31
56
0.862903
17
124
6.058824
0.705882
0
0
0
0
0
0
0
0
0
0
0
0.104839
124
3
57
41.333333
0.927928
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
63205f0d0f403bce0d50f3687a12fd46ce50107c
279
py
Python
lasso/dyna/__init__.py
vishalbelsare/lasso-python
319bf590599b4a4d50d9345e83e8030afe044aec
[ "BSD-3-Clause" ]
43
2019-06-20T20:23:15.000Z
2022-03-08T11:28:12.000Z
lasso/dyna/__init__.py
vishalbelsare/lasso-python
319bf590599b4a4d50d9345e83e8030afe044aec
[ "BSD-3-Clause" ]
19
2019-10-04T17:13:34.000Z
2022-02-16T16:49:59.000Z
lasso/dyna/__init__.py
vishalbelsare/lasso-python
319bf590599b4a4d50d9345e83e8030afe044aec
[ "BSD-3-Clause" ]
17
2020-02-09T08:19:03.000Z
2021-12-03T07:06:31.000Z
from .D3plot import D3plot from .Binout import Binout from .ArrayType import ArrayType from .FilterType import FilterType from .D3plotHeader import D3plotHeader, D3plotFiletype __all__ = ["Binout", "D3plot", "ArrayType", "FilterType", "D3plotHeader", "D3plotFiletype"]
31
92
0.767025
28
279
7.5
0.321429
0.247619
0
0
0
0
0
0
0
0
0
0.033333
0.139785
279
8
93
34.875
0.841667
0
0
0
0
0
0.211111
0
0
0
0
0
0
1
0
false
0
0.833333
0
0.833333
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
1
0
0
5
6323c2041b1f1bf636e3e18c36db7c4b362e6b48
216
py
Python
Chapter02/hillar_django_restful_02_01/restful01/toys/views.py
weiliy/Django-RESTful-Web-Services
0b26a84ec8005c6a2cef61671b6d009f0780a9cc
[ "MIT" ]
95
2018-01-22T21:35:21.000Z
2022-03-30T10:13:35.000Z
Chapter02/hillar_django_restful_02_01/restful01/toys/views.py
weiliy/Django-RESTful-Web-Services
0b26a84ec8005c6a2cef61671b6d009f0780a9cc
[ "MIT" ]
6
2020-03-24T16:37:46.000Z
2021-06-10T21:04:36.000Z
Chapter02/hillar_django_restful_02_01/restful01/toys/views.py
weiliy/Django-RESTful-Web-Services
0b26a84ec8005c6a2cef61671b6d009f0780a9cc
[ "MIT" ]
73
2018-01-24T02:38:17.000Z
2022-01-23T21:02:41.000Z
""" Book: Django RESTful Web Services Author: Gaston C. Hillar - Twitter.com/gastonhillar Publisher: Packt Publishing Ltd. - http://www.packtpub.com """ from django.shortcuts import render # Create your views here.
24
58
0.759259
29
216
5.655172
0.931034
0
0
0
0
0
0
0
0
0
0
0
0.134259
216
8
59
27
0.877005
0.782407
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
2d4d95095ea40b1fc5639e7a3f8b8fa3c0d93d58
1,952
bzl
Python
rules/toolchain_containers.bzl
bansalvinayak/bazel-toolchains
5e4c884b0507a399141d3cc018f11edbd29034e8
[ "Apache-2.0" ]
null
null
null
rules/toolchain_containers.bzl
bansalvinayak/bazel-toolchains
5e4c884b0507a399141d3cc018f11edbd29034e8
[ "Apache-2.0" ]
null
null
null
rules/toolchain_containers.bzl
bansalvinayak/bazel-toolchains
5e4c884b0507a399141d3cc018f11edbd29034e8
[ "Apache-2.0" ]
null
null
null
def toolchain_container_sha256s(): return { ########################################################### # Base images # ########################################################### # gcr.io/cloud-marketplace/google/debian8:latest "debian8": "sha256:a6df7738c401aef6bf9c113eb1eea7f3921417fd4711ea28100681f2fe483ea2", # gcr.io/cloud-marketplace/google/debian9:latest "debian9": "sha256:1d6a9a6d106bd795098f60f4abb7083626354fa6735e81743c7f8cfca11259f0", # gcr.io/cloud-marketplace/google/ubuntu16_04:latest "ubuntu16_04": "sha256:8a12cc26c62e2f9824aada8d13c1f0c2d2847d18191560e1500d651a709d6550", ########################################################### # Python3 images # ########################################################### # gcr.io/cloud-marketplace/google/python:latest # Pinned to ace668f0f01e5e562ad09c3f128488ec33fa9126313f16505a86ae77865d1696 as it is the # latest *debian8* based python3 image. Newer ones are ubuntu16_04 based. "debian8_python3": "sha256:ace668f0f01e5e562ad09c3f128488ec33fa9126313f16505a86ae77865d1696", # gcr.io/google-appengine/python:latest "ubuntu16_04_python3": "sha256:67fd35064a812fd0ba0a6e9485410f9f2710ebf7b0787a7b350ce6a20f166bfe", ########################################################### # Clang images # ########################################################### # gcr.io/cloud-marketplace/google/clang-debian8:r337145 "debian8_clang": "sha256:de1116d36eafe16890afd64b6bc6809a3ed5b3597ed7bc857980749270894677", # gcr.io/cloud-marketplace/google/clang-ubuntu:r337145 "ubuntu16_04_clang": "sha256:fbf123ca7c7696f53864da4f7d1d9470f9ef4ebfabc4344f44173d1951faee6f", }
62.967742
105
0.550205
108
1,952
9.842593
0.388889
0.032926
0.056444
0.118532
0.178739
0.12794
0
0
0
0
0
0.259715
0.209016
1,952
30
106
65.066667
0.428756
0.341189
0
0
0
0
0.639738
0.542576
0
0
0
0
0
1
0.1
true
0
0
0.1
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
931fed1443314c67d4622ad038c45adcca2c04f4
181
py
Python
tests/test-checkpoint2.py
mrzv/saturn
e89e01c8cfb2bf9980f4e3117a3d4b498305dc59
[ "BSD-3-Clause-LBNL" ]
null
null
null
tests/test-checkpoint2.py
mrzv/saturn
e89e01c8cfb2bf9980f4e3117a3d4b498305dc59
[ "BSD-3-Clause-LBNL" ]
null
null
null
tests/test-checkpoint2.py
mrzv/saturn
e89e01c8cfb2bf9980f4e3117a3d4b498305dc59
[ "BSD-3-Clause-LBNL" ]
null
null
null
a = 5 #chk>{{{ #chk>gANDIEfymvjN9EowcCGj+XNtin7uihFyNxXkbW2Myny7GZzJcQAugAN9cQAoWAwAAABfX2J1aWx0aW5z #chk>X19xAWNidWlsdGlucwpfX2RpY3RfXwpYAQAAAGFxAksFdS4= #chk>}}} print(a) #o> 5
18.1
85
0.81768
13
181
11.384615
0.615385
0
0
0
0
0
0
0
0
0
0
0.094675
0.066298
181
9
86
20.111111
0.781065
0.850829
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
933aa79c9f0f508fcaa73dbcdae2f6c260f23f93
1,397
py
Python
smart-pizza-store_factory-part3/pizza_ingredients_factory.py
johnklee/learn_dp_from_bad_smell_design
88506487ce64a1b9492ec28fe235ae596ddf1472
[ "MIT" ]
null
null
null
smart-pizza-store_factory-part3/pizza_ingredients_factory.py
johnklee/learn_dp_from_bad_smell_design
88506487ce64a1b9492ec28fe235ae596ddf1472
[ "MIT" ]
4
2022-01-02T06:49:43.000Z
2022-02-15T12:36:41.000Z
smart-pizza-store_factory-part3/pizza_ingredients_factory.py
johnklee/learn_dp_from_bad_smell_design
88506487ce64a1b9492ec28fe235ae596ddf1472
[ "MIT" ]
null
null
null
import abc import pizza_ingredients class PizzaIngredientFactory(abc.ABC): @abc.abstractmethod def create_topping(self) -> pizza_ingredients.Topping: raise NotImplementedError @abc.abstractmethod def create_dough(self) -> pizza_ingredients.Dough: raise NotImplementedError @abc.abstractmethod def create_sauce(self) -> pizza_ingredients.Sauce: raise NotImplementedError @abc.abstractmethod def create_cheese(self) -> pizza_ingredients.Cheese: raise NotImplementedError @abc.abstractmethod def create_clams(self) -> pizza_ingredients.Clams: raise NotImplementedError class SimpleIngredientFactory(PizzaIngredientFactory): def create_topping(self) -> pizza_ingredients.Topping: return pizza_ingredients.SausageTopping() def create_pepperoni_topping(self) -> pizza_ingredients.Topping: return pizza_ingredients.PepperoniTopping() def create_veggie_topping(self) -> pizza_ingredients.Topping: return pizza_ingredients.VeggieTopping() def create_dough(self) -> pizza_ingredients.Dough: return pizza_ingredients.ThickCrustDough() def create_sauce(self) -> pizza_ingredients.Sauce: return pizza_ingredients.KetchupSauce() def create_cheese(self) -> pizza_ingredients.Cheese: return pizza_ingredients.SakuraCheese() def create_clams(self) -> pizza_ingredients.Clams: return pizza_ingredients.SoftshellClams()
29.104167
66
0.791696
146
1,397
7.342466
0.191781
0.298507
0.223881
0.121269
0.652985
0.652985
0.5
0.156716
0
0
0
0
0.129563
1,397
47
67
29.723404
0.881579
0
0
0.606061
0
0
0
0
0
0
0
0
0
1
0.363636
false
0
0.060606
0.212121
0.69697
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
934e0c51556d8b17848b2d215abc76ae07f45253
135
py
Python
tests/conftest.py
edornd/clidantic
1d76357541a2684815ab8919ba0de64a04fe50a1
[ "MIT" ]
1
2022-02-18T10:23:13.000Z
2022-02-18T10:23:13.000Z
tests/conftest.py
edornd/clidantic
1d76357541a2684815ab8919ba0de64a04fe50a1
[ "MIT" ]
6
2022-01-07T16:16:57.000Z
2022-02-11T19:45:39.000Z
tests/conftest.py
edornd/clidantic
1d76357541a2684815ab8919ba0de64a04fe50a1
[ "MIT" ]
null
null
null
import pytest from clidantic.testing import CliRunner @pytest.fixture(scope="function") def runner(request): return CliRunner()
15
39
0.77037
16
135
6.5
0.8125
0
0
0
0
0
0
0
0
0
0
0
0.133333
135
8
40
16.875
0.888889
0
0
0
0
0
0.059259
0
0
0
0
0
0
1
0.2
false
0
0.4
0.2
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
5
fa762350734f52fe95b1ff1a95fbd76bbd2baf99
276
py
Python
python/tom/linalg/__init__.py
m7thon/tom
fde3e934083c8c91256350b00e4128e48b351a8c
[ "MIT" ]
7
2017-10-04T05:41:46.000Z
2021-07-18T01:31:36.000Z
python/tom/linalg/__init__.py
m7thon/tom
fde3e934083c8c91256350b00e4128e48b351a8c
[ "MIT" ]
1
2021-05-16T16:16:55.000Z
2021-05-20T09:21:30.000Z
python/tom/linalg/__init__.py
m7thon/tom
fde3e934083c8c91256350b00e4128e48b351a8c
[ "MIT" ]
1
2017-10-04T05:41:59.000Z
2017-10-04T05:41:59.000Z
from .._tomlib import normalize, normalizeRows, normalizeCols, colwiseMean, rowwiseMean, weightedNorm, kron, svd from .._tomlib import solveLS from .._tomlib import computeWLRA, improveWLRA from ._linalg import spectral_norm_expectation, wsvd, cached_wsvd, CachedWSVD, pinv
39.428571
112
0.822464
31
276
7.096774
0.709677
0.136364
0.218182
0
0
0
0
0
0
0
0
0
0.108696
276
6
113
46
0.894309
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
fa981f9249e26b4894e567148ad152210444af05
264
py
Python
func4.py
akash0905/Python_codes
f650bfa6a13c7c00cf5852e31999359039bd7ea4
[ "MIT" ]
null
null
null
func4.py
akash0905/Python_codes
f650bfa6a13c7c00cf5852e31999359039bd7ea4
[ "MIT" ]
null
null
null
func4.py
akash0905/Python_codes
f650bfa6a13c7c00cf5852e31999359039bd7ea4
[ "MIT" ]
null
null
null
#~ def product(x,y,z=10): #~ print(x*y*z) #~ product(2,3) #~ def product(x=1,y=10,z): #~ print(x*y*z) #~ product(2,3) def product(x,y,z=10): print(x) print(y) print(z) #~ print(x*y*z) #~ product(2,3) product(2,3,100)
13.894737
28
0.481061
50
264
2.54
0.22
0.07874
0.11811
0.188976
0.787402
0.787402
0.787402
0.787402
0.440945
0.440945
0
0.093264
0.268939
264
18
29
14.666667
0.564767
0.507576
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.2
0.6
0
0
0
null
0
0
1
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
fadc9d13b585237eafb6821964ba9077d2ac97e6
1,069
py
Python
terrascript/resource/hashicorp/hcp.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/resource/hashicorp/hcp.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/resource/hashicorp/hcp.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/resource/hashicorp/hcp.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:18:10 UTC) import terrascript class hcp_aws_network_peering(terrascript.Resource): pass class hcp_aws_transit_gateway_attachment(terrascript.Resource): pass class hcp_consul_cluster(terrascript.Resource): pass class hcp_consul_cluster_root_token(terrascript.Resource): pass class hcp_consul_snapshot(terrascript.Resource): pass class hcp_hvn(terrascript.Resource): pass class hcp_hvn_peering_connection(terrascript.Resource): pass class hcp_hvn_route(terrascript.Resource): pass class hcp_vault_cluster(terrascript.Resource): pass class hcp_vault_cluster_admin_token(terrascript.Resource): pass __all__ = [ "hcp_aws_network_peering", "hcp_aws_transit_gateway_attachment", "hcp_consul_cluster", "hcp_consul_cluster_root_token", "hcp_consul_snapshot", "hcp_hvn", "hcp_hvn_peering_connection", "hcp_hvn_route", "hcp_vault_cluster", "hcp_vault_cluster_admin_token", ]
18.431034
73
0.770814
135
1,069
5.674074
0.274074
0.272846
0.300261
0.328982
0.613577
0.408616
0.227154
0
0
0
0
0.013172
0.147802
1,069
57
74
18.754386
0.827662
0.101964
0
0.30303
1
0
0.22466
0.147335
0
0
0
0
0
1
0
false
0.30303
0.030303
0
0.333333
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
5
faef097b7b9859bb74392def96dff17e707d6a4b
133
py
Python
tests/test_pyxq.py
goodchinas/pyxq
c7f6ea63084c18178049451f30f32f04080a511c
[ "MIT" ]
4
2019-12-17T11:05:53.000Z
2020-06-01T05:41:02.000Z
tests/test_pyxq.py
goodchinas/pyxq
c7f6ea63084c18178049451f30f32f04080a511c
[ "MIT" ]
null
null
null
tests/test_pyxq.py
goodchinas/pyxq
c7f6ea63084c18178049451f30f32f04080a511c
[ "MIT" ]
2
2019-11-13T01:11:53.000Z
2019-12-17T10:55:44.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `pyxq` package.""" def test_000_something(): """Test something."""
14.777778
31
0.586466
17
133
4.470588
0.882353
0
0
0
0
0
0
0
0
0
0
0.036036
0.165414
133
8
32
16.625
0.648649
0.631579
0
0
0
0
0
0
0
0
0
0
0
1
1
true
0
0
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
1
0
0
5
8784ecafff073d10c5e14b2aa1d5c02a01236216
48
py
Python
Language Skills/Python/Unit 07 Lists and Functions/01 Lists and Functions/List Recap/1-List accessing.py
rhyep/Python_tutorials
f5c8a64b91802b005dfe7dd9035f8d8daae8c3e3
[ "MIT" ]
346
2016-02-22T20:21:10.000Z
2022-01-27T20:55:53.000Z
Language Skills/Python/Unit 7/1-Lists and Functions/List Recap/1-List accessing.py
vpstudios/Codecademy-Exercise-Answers
ebd0ee8197a8001465636f52c69592ea6745aa0c
[ "MIT" ]
55
2016-04-07T13:58:44.000Z
2020-06-25T12:20:24.000Z
Language Skills/Python/Unit 7/1-Lists and Functions/List Recap/1-List accessing.py
vpstudios/Codecademy-Exercise-Answers
ebd0ee8197a8001465636f52c69592ea6745aa0c
[ "MIT" ]
477
2016-02-21T06:17:02.000Z
2021-12-22T10:08:01.000Z
n = [1, 3, 5] # Add your code below print n[1]
9.6
21
0.5625
11
48
2.454545
0.818182
0.148148
0
0
0
0
0
0
0
0
0
0.114286
0.270833
48
4
22
12
0.657143
0.395833
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.5
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
5
87890d5e80b6b90fe1cd2d9bc2f2d39827212fc8
320
py
Python
stubs/ev3_pybricks_1_0_0/uhashlib.py
RonaldHiemstra/micropython-stubs
d97f879b01f6687baaebef1c7e26a80909c3cff3
[ "MIT" ]
38
2020-10-18T21:59:44.000Z
2022-03-17T03:03:28.000Z
stubs/ev3_pybricks_1_0_0/uhashlib.py
RonaldHiemstra/micropython-stubs
d97f879b01f6687baaebef1c7e26a80909c3cff3
[ "MIT" ]
176
2020-10-18T14:31:03.000Z
2022-03-30T23:22:39.000Z
stubs/ev3_pybricks_1_0_0/uhashlib.py
RonaldHiemstra/micropython-stubs
d97f879b01f6687baaebef1c7e26a80909c3cff3
[ "MIT" ]
6
2020-12-28T21:11:12.000Z
2022-02-06T04:07:50.000Z
""" Module: 'uhashlib' on LEGO EV3 v1.0.0 """ # MCU: sysname=ev3, nodename=ev3, release=('v1.0.0',), version=('0.0.0',), machine=ev3 # Stubber: 1.3.2 class sha1: '' def digest(): pass def update(): pass class sha256: '' def digest(): pass def update(): pass
13.333333
86
0.5125
43
320
3.813953
0.55814
0.04878
0.04878
0.195122
0.317073
0.317073
0
0
0
0
0
0.09009
0.30625
320
23
87
13.913043
0.648649
0.43125
0
0.833333
0
0
0
0
0
0
0
0
0
1
0.333333
true
0.333333
0
0
0.5
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
1
1
1
0
0
0
0
0
5
878ed1fd67baa0c5456e5183445f48ee5235cd07
119
py
Python
ingredients_characterization/nutrition/ciqual/__init__.py
openfoodfacts/off-product-environmental-impact
a78958fec1a21f057339184be27cf299d4fe12d1
[ "MIT" ]
3
2021-09-07T13:46:25.000Z
2022-01-12T14:38:29.000Z
ingredients_characterization/nutrition/ciqual/__init__.py
openfoodfacts/off-product-environmental-impact
a78958fec1a21f057339184be27cf299d4fe12d1
[ "MIT" ]
18
2021-09-13T16:19:26.000Z
2022-03-24T16:22:38.000Z
ingredients_characterization/nutrition/ciqual/__init__.py
openfoodfacts/off-product-environmental-impact
a78958fec1a21f057339184be27cf299d4fe12d1
[ "MIT" ]
null
null
null
""" Nutritional characterization of the ingredients of the OFF taxonomy using CIQUAL (French nutritional database) """
59.5
118
0.798319
14
119
6.785714
0.785714
0.105263
0
0
0
0
0
0
0
0
0
0
0.134454
119
1
119
119
0.92233
0.92437
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
87c437491b7916075bb5de68985dcd1926705865
1,941
py
Python
test_functions.py
everyday847/trna_thread
963ef1ed3400fb4de06116815f56d84162b12960
[ "MIT" ]
1
2019-07-28T13:54:03.000Z
2019-07-28T13:54:03.000Z
test_functions.py
everyday847/trna_thread
963ef1ed3400fb4de06116815f56d84162b12960
[ "MIT" ]
null
null
null
test_functions.py
everyday847/trna_thread
963ef1ed3400fb4de06116815f56d84162b12960
[ "MIT" ]
null
null
null
from lib.str_manip import dashed from thread_denovo_trna import simple_match, import_dash_pattern from lib.Sequence import Sequence import mypy from typing import List, Dict, Tuple def test_dashed(): """ We're okay with a terminating space because we can just strip it off if it ever matters. """ assert(dashed([1,2,3,7,8,9], 'A') == "A:1-3 A:7-9 ") def test_dashed_solo(): """ We're okay with a terminating space because we can just strip it off if it ever matters. """ assert(dashed([1,2,3,7,8,9,15], 'A') == "A:1-3 A:7-9 A:15 ") def test_dashed_solo_mid(): """ We're okay with a terminating space because we can just strip it off if it ever matters. """ assert(dashed([1,2,3,5,7,8,9], 'A') == "A:1-3 A:5 A:7-9 ") def test_simple_match_identity(): """ aaa """ assert(simple_match(Sequence('A-'), Sequence('A-')) == 10) assert(simple_match(Sequence('G-'), Sequence('G-')) == 10) assert(simple_match(Sequence('GGAA---'), Sequence('GGAA---')) == 35) def test_simple_match_gap_penalty(): assert(simple_match(Sequence('A-'), Sequence('-A')) == -20) def test_simple_match_purine_eq(): assert(simple_match(Sequence('A-'), Sequence('G-')) == 7) def test_simple_match_pyrimidine_eq(): assert(simple_match(Sequence('U-'), Sequence('C-')) == 7) def test_simple_match_mod_U_eq(): assert(simple_match(Sequence('U-'), Sequence('T-')) == 8) def test_import_dash_pattern_middle(): assert(import_dash_pattern(Sequence('A--A', '....'), 'GG') == 'G--G') def test_import_dash_pattern_beginning(): assert(import_dash_pattern(Sequence('---AA', '....'), 'GG') == '---GG') def test_import_dash_pattern_end(): assert(import_dash_pattern(Sequence('AA---', '....'), 'GG') == 'GG---') def test_import_dash_pattern_dashes(): """ Does this make sense? """ assert(import_dash_pattern(Sequence('AA---', '....'), 'G-G') == 'G---G')
31.306452
78
0.638331
297
1,941
3.959596
0.249158
0.121599
0.130102
0.14881
0.683673
0.522109
0.465136
0.336735
0.32568
0.32568
0
0.028977
0.164348
1,941
61
79
31.819672
0.696054
0.150438
0
0
0
0
0.095452
0
0
0
0
0
0.451613
1
0.387097
true
0
0.419355
0
0.806452
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
1
0
1
1
0
1
0
1
0
0
5
87e505d81fa57880790e5c0de2ebda58b37fd4e5
127
py
Python
stats_scripts/mpmath/calculus/__init__.py
michalkouril/altanalyze
e721c79c56f7b0022516ff5456ebaa14104c933b
[ "Apache-2.0" ]
73
2015-08-17T03:21:32.000Z
2022-01-02T17:37:56.000Z
stats_scripts/mpmath/calculus/__init__.py
michalkouril/altanalyze
e721c79c56f7b0022516ff5456ebaa14104c933b
[ "Apache-2.0" ]
43
2017-07-30T03:30:04.000Z
2022-03-26T04:46:05.000Z
stats_scripts/mpmath/calculus/__init__.py
michalkouril/altanalyze
e721c79c56f7b0022516ff5456ebaa14104c933b
[ "Apache-2.0" ]
30
2015-08-26T07:21:43.000Z
2021-12-09T02:53:25.000Z
import calculus # XXX: hack to set methods import approximation import differentiation import extrapolation import polynomials
18.142857
26
0.858268
15
127
7.266667
0.733333
0
0
0
0
0
0
0
0
0
0
0
0.125984
127
6
27
21.166667
0.981982
0.188976
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
e20574e339d0813725a410fad77f864d6de2e62e
1,241
py
Python
tests/parse/test_get_surrounding_blocks.py
GSE-CCL/scratch-tools
4c17e671cf7f3493f04981a468b0afe9489bf403
[ "MIT" ]
null
null
null
tests/parse/test_get_surrounding_blocks.py
GSE-CCL/scratch-tools
4c17e671cf7f3493f04981a468b0afe9489bf403
[ "MIT" ]
9
2020-04-17T02:41:49.000Z
2020-07-07T15:38:27.000Z
tests/parse/test_get_surrounding_blocks.py
GSE-CCL/scratch-scrape
4c17e671cf7f3493f04981a468b0afe9489bf403
[ "MIT" ]
null
null
null
import pytest def test_get_surrounding_blocks_nodata(parser): result = parser.get_surrounding_blocks("fakeid", dict()) assert result == False def test_get_surrounding_blocks_nonexistent(parser, full_sb3): result = parser.get_surrounding_blocks("fakeid", full_sb3) assert result == False def test_get_surrounding_blocks_delve(parser, full_sb3): result = parser.get_surrounding_blocks("CupN)`F`z1tugXtDqYzj", full_sb3, delve=True) assert type(result) == list assert result == ["CupN)`F`z1tugXtDqYzj", "G+C7yL/-O.6MH2V,f@DG", "(Psor|t+4_@pna[eo4{0", "Fw-*+6_[m%^1H#z%J9:5", "Zb.aqYN8g)eq3U?(dp8D"] def test_get_surrounding_blocks_even_count(parser, full_sb3): result = parser.get_surrounding_blocks("G+C7yL/-O.6MH2V,f@DG", full_sb3, count=4) assert type(result) == list assert result == ["CupN)`F`z1tugXtDqYzj", "G+C7yL/-O.6MH2V,f@DG", "(Psor|t+4_@pna[eo4{0", "Fw-*+6_[m%^1H#z%J9:5"] def test_get_surrounding_blocks_no_delve(parser, full_sb3): result = parser.get_surrounding_blocks("CupN)`F`z1tugXtDqYzj", full_sb3) assert type(result) == list assert result == ["Aui.NpK5Cs_obawNI4{c", "[f|hsFZ%vg~}7{C}=*%5", "CupN)`F`z1tugXtDqYzj", "G+C7yL/-O.6MH2V,f@DG", "(Psor|t+4_@pna[eo4{0"]
49.64
141
0.709911
196
1,241
4.260204
0.285714
0.167665
0.239521
0.125749
0.853892
0.756886
0.649102
0.649102
0.435928
0.435928
0
0.045496
0.114424
1,241
24
142
51.708333
0.714286
0
0
0.263158
0
0
0.283642
0
0
0
0
0
0.421053
1
0.263158
false
0
0.052632
0
0.315789
0
0
0
0
null
0
1
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
0
0
0
0
0
0
0
5
e20cd31aff1d409e3821c727fc308974bcfd620b
221
py
Python
Chapter01/chapter1/installing_openai_gym.py
CrazyNicolas/PyTorch-1.x-Reinforcement-Learning-Cookbook
614ee6055039e2b4f91fc762c6bc5c92aee3ee83
[ "MIT" ]
1
2020-06-11T07:41:35.000Z
2020-06-11T07:41:35.000Z
Chapter01/chapter1/installing_openai_gym.py
AmazingDD/PyTorch-1.x-Reinforcement-Learning-Cookbook
1cca7e0218c2683a730b1c4a66681e68023657ef
[ "MIT" ]
null
null
null
Chapter01/chapter1/installing_openai_gym.py
AmazingDD/PyTorch-1.x-Reinforcement-Learning-Cookbook
1cca7e0218c2683a730b1c4a66681e68023657ef
[ "MIT" ]
1
2020-07-20T16:20:41.000Z
2020-07-20T16:20:41.000Z
''' Source codes for PyTorch 1.0 Reinforcement Learning (Packt Publishing) Chapter 1: Getting started with reinforcement learning and PyTorch Author: Yuxi (Hayden) Liu ''' from gym import envs print(envs.registry.all())
24.555556
70
0.778281
31
221
5.548387
0.83871
0.244186
0
0
0
0
0
0
0
0
0
0.015707
0.135747
221
9
71
24.555556
0.884817
0.737557
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
5
35a08cfb9e6e78b34ff6462d049b66333936f214
78
py
Python
Demo90/routes/__init__.py
De-Risking-Strategies/SensorFusionPublic
caa6ef7a5ac8991ee12ce2d5ad9b28e2b2b8ed38
[ "MIT" ]
null
null
null
Demo90/routes/__init__.py
De-Risking-Strategies/SensorFusionPublic
caa6ef7a5ac8991ee12ce2d5ad9b28e2b2b8ed38
[ "MIT" ]
null
null
null
Demo90/routes/__init__.py
De-Risking-Strategies/SensorFusionPublic
caa6ef7a5ac8991ee12ce2d5ad9b28e2b2b8ed38
[ "MIT" ]
null
null
null
#Sensor Fusion ROUTES Package print(f'Invoking ___init__.py for {__name__}')
19.5
46
0.782051
11
78
4.727273
1
0
0
0
0
0
0
0
0
0
0
0
0.115385
78
3
47
26
0.753623
0.358974
0
0
0
0
0.734694
0
0
0
0
0
0
1
0
true
0
0
0
0
1
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
1
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
35a626c9cce9c424d9f029ff747859b4ede726b5
259
py
Python
bauspartrackerapp/admin.py
hollesse/bauspartracker
3b490497a523707f5607483954ffbc3423053660
[ "MIT" ]
null
null
null
bauspartrackerapp/admin.py
hollesse/bauspartracker
3b490497a523707f5607483954ffbc3423053660
[ "MIT" ]
null
null
null
bauspartrackerapp/admin.py
hollesse/bauspartracker
3b490497a523707f5607483954ffbc3423053660
[ "MIT" ]
null
null
null
from django.contrib import admin from bauspartrackerapp.models import Bausparvertrag, Sparbeitrag, Buchung, SparbeitragJob admin.site.register(Bausparvertrag) admin.site.register(Sparbeitrag) admin.site.register(Buchung) admin.site.register(SparbeitragJob)
28.777778
89
0.853282
29
259
7.62069
0.448276
0.162896
0.307692
0
0
0
0
0
0
0
0
0
0.065637
259
8
90
32.375
0.913223
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
35e44455d0eafd20503ce3dde9a3b8700ff7ea7d
108
py
Python
cmd.py
Carrotor116/fserver
86934023fb080088854b4bae7867ad3667561111
[ "MIT" ]
1
2020-08-06T01:25:14.000Z
2020-08-06T01:25:14.000Z
cmd.py
Carrotor116/fserver
86934023fb080088854b4bae7867ad3667561111
[ "MIT" ]
1
2020-07-26T09:27:01.000Z
2020-07-26T09:27:01.000Z
cmd.py
Carrotor116/fserver
86934023fb080088854b4bae7867ad3667561111
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from fserver.cmd import run_fserver if __name__ == '__main__': run_fserver()
13.5
35
0.648148
14
108
4.285714
0.785714
0.333333
0
0
0
0
0
0
0
0
0
0.011494
0.194444
108
7
36
15.428571
0.678161
0.194444
0
0
0
0
0.094118
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
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
1
0
1
0
0
0
0
5
ea3548036ea2ba6c9edf8f6933ad88c30bbd8aef
217
py
Python
algorithms/algo4.py
dash61/AIM
f34031b13f69d2b9e028bb3bf54aab6fde06d817
[ "MIT" ]
2
2021-05-11T22:35:55.000Z
2021-06-03T19:52:24.000Z
algorithms/algo4.py
dash61/AIM
f34031b13f69d2b9e028bb3bf54aab6fde06d817
[ "MIT" ]
1
2021-01-19T02:49:30.000Z
2021-02-05T01:07:21.000Z
algorithms/algo4.py
dash61/AIM
f34031b13f69d2b9e028bb3bf54aab6fde06d817
[ "MIT" ]
null
null
null
""" Fourth algorithm function for application. Fill in your own algorithmic code here. """ def calculate4(self): 'Calculate ROI and other params given historical stock data using ?? algorithm.' return False
21.7
84
0.741935
28
217
5.75
0.964286
0
0
0
0
0
0
0
0
0
0
0.00565
0.184332
217
9
85
24.111111
0.903955
0.746544
0
0
0
0
0.619048
0
0
0
0
0
0
1
0.333333
false
0
0
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
1
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
5
ea7625e0b9924a6984e5e614f7211edba8347784
147
py
Python
mnist_arithmetic/__init__.py
e2crawfo/mnist_arithmetic
ba18f13cd8ed804e93548ae47a6a316088f05d53
[ "MIT" ]
1
2019-10-17T19:20:45.000Z
2019-10-17T19:20:45.000Z
mnist_arithmetic/__init__.py
e2crawfo/mnist_arithmetic
ba18f13cd8ed804e93548ae47a6a316088f05d53
[ "MIT" ]
null
null
null
mnist_arithmetic/__init__.py
e2crawfo/mnist_arithmetic
ba18f13cd8ed804e93548ae47a6a316088f05d53
[ "MIT" ]
null
null
null
from .emnist import MnistArithmeticDataset, load_emnist from .salience import SalienceDataset from .omniglot import load_omniglot, omniglot_classes
49
55
0.877551
17
147
7.411765
0.529412
0
0
0
0
0
0
0
0
0
0
0
0.088435
147
3
56
49
0.940299
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
ea8d29985b649cfe98bb06090e127c2248b60df3
188
py
Python
Python/Basic Programs/reversenumber.py
themohitpapneja/Code_Dump
ec72144e66d12cba2ce719c37292517588490b42
[ "Apache-2.0" ]
null
null
null
Python/Basic Programs/reversenumber.py
themohitpapneja/Code_Dump
ec72144e66d12cba2ce719c37292517588490b42
[ "Apache-2.0" ]
null
null
null
Python/Basic Programs/reversenumber.py
themohitpapneja/Code_Dump
ec72144e66d12cba2ce719c37292517588490b42
[ "Apache-2.0" ]
null
null
null
## reverse a 4-digit number using operators a=eval(input("Enter any 4-Digit Number: ")) print((),(a//1000),a%1000,a%10000) print((a%10)*1000 + ((a//10)%100)*100 + (a%1000)*10 + (a%10000))
37.6
64
0.632979
35
188
3.4
0.457143
0.12605
0.201681
0
0
0
0
0
0
0
0
0.238095
0.106383
188
4
65
47
0.470238
0.212766
0
0
0
0
0.17931
0
0
0
0
0
0
1
0
false
0
0
0
0
0.666667
0
0
0
null
0
1
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
5769dbc059fd9259875fff826c11550efa4ebec7
8,048
py
Python
tests/test_base_controllers.py
stuart-fb/pyrobot
2f06f337f84e2c0b172dcf5ee0cd8c7de73a50e1
[ "MIT" ]
6
2020-03-08T00:56:25.000Z
2021-05-21T03:32:37.000Z
tests/test_base_controllers.py
stuart-fb/pyrobot
2f06f337f84e2c0b172dcf5ee0cd8c7de73a50e1
[ "MIT" ]
16
2020-01-28T22:49:47.000Z
2022-03-11T23:51:24.000Z
tests/test_base_controllers.py
stuart-fb/pyrobot
2f06f337f84e2c0b172dcf5ee0cd8c7de73a50e1
[ "MIT" ]
2
2022-02-15T21:28:53.000Z
2022-03-21T21:45:55.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os import pytest import time import numpy as np from pyrobot import Robot from pyrobot.locobot.base_control_utils import \ get_trajectory_circle, get_trajectory_negcircle, _get_absolute_pose from pyrobot.locobot.bicycle_model import wrap_theta # Launch for running the following tests: # roslaunch locobot_control main.launch use_arm:=false use_base:=true base:=create use_rviz:=false use_sim:=true @pytest.fixture def botname(request): return request.config.getoption('botname') def _mkdir_if_missing(dir_name): if not os.path.exists(dir_name): os.makedirs(dir_name) def _get_time_str(): return time.strftime("%Y-%m-%d-%H-%M-%S", time.localtime()) @pytest.mark.parametrize("base_controller", ['ilqr']) @pytest.mark.parametrize("base_planner", ['none']) @pytest.mark.parametrize("close_loop", [True, False]) def test_trajectory_tracking_circle(botname, base_controller, base_planner, close_loop): bot = Robot(botname, base_config={'base_controller': base_controller, 'base_planner': base_planner}, use_arm=False, use_camera=False) dt = 1. / bot.configs.BASE.BASE_CONTROL_RATE v = bot.configs.BASE.MAX_ABS_FWD_SPEED / 2. w = bot.configs.BASE.MAX_ABS_TURN_SPEED / 2. r = v / w start_state = np.array(bot.base.get_state('odom')) states, _ = get_trajectory_circle(start_state, dt, r, v, np.pi) bot.base.track_trajectory(states, close_loop=close_loop) end_state = np.array(bot.base.get_state('odom')) dist = np.linalg.norm(states[-1, :2] - end_state[:2]) assert dist < 0.1 @pytest.mark.parametrize("base_controller", ['ilqr']) @pytest.mark.parametrize("base_planner", ['none']) @pytest.mark.parametrize("close_loop", [True, False]) def test_trajectory_tracking_two_circles(botname, base_controller, base_planner, close_loop): bot = Robot(botname, base_config={'base_controller': base_controller, 'base_planner': base_planner}, use_arm=False, use_camera=False) dt = 1. / bot.configs.BASE.BASE_CONTROL_RATE v = bot.configs.BASE.MAX_ABS_FWD_SPEED / 2. w = bot.configs.BASE.MAX_ABS_TURN_SPEED / 2. r = v / w start_state = np.array(bot.base.get_state('odom')) states1, _ = get_trajectory_circle(start_state, dt, r, v, np.pi) states2, _ = get_trajectory_negcircle(states1[-1, :] * 1, dt, r, v, np.pi) states = np.concatenate([states1, states2], 0) bot.base.track_trajectory(states, close_loop=close_loop) end_state = np.array(bot.base.get_state('odom')) dist = np.linalg.norm(states[-1, :2] - end_state[:2]) assert dist < 0.1 def _test_relative_position_control(posn, botname, base_controller, base_planner, close_loop, smooth, trans_thresh, angular_thresh): bot = Robot(botname, base_config={'base_controller': base_controller, 'base_planner': base_planner}, use_arm=False, use_camera=False) start_state = np.array(bot.base.get_state('odom')) desired_target = _get_absolute_pose(posn, start_state) bot.base.go_to_relative(posn, use_map=False, close_loop=close_loop, smooth=smooth) end_state = np.array(bot.base.get_state('odom')) if False: # Plot results to file file_name = '{:s}_position_{:s}_controller_{:s}_planner_{:s}_close{:d}_smooth{:d}-{:s}.pdf' posn_str = ['{:0.1f}'.format(x) for x in posn] file_name = file_name.format(botname, ','.join(posn_str), base_controller, base_planner, int(close_loop), int(smooth), _get_time_str()) tmp_dir = os.path.join(os.path.dirname(__file__), 'tmp') _mkdir_if_missing(tmp_dir) file_name = os.path.join(tmp_dir, file_name) bot.base.controller.plot_plan_execution(file_name) dist = np.linalg.norm(end_state[:2] - desired_target[:2]) angle = end_state[2] - desired_target[2] angle = np.abs(wrap_theta(angle)) assert dist < trans_thresh assert angle * 180. / np.pi < angular_thresh posns = np.array([[1., 0., 0.], [0., 0., np.pi], [1., 1., np.pi / 2.], [1., 1., 0.], [-1., 0., 0.]], dtype=np.float32) @pytest.mark.parametrize("base_controller", ['proportional']) @pytest.mark.parametrize("base_planner", ['none']) @pytest.mark.parametrize("close_loop", [True]) @pytest.mark.parametrize("smooth", [False]) @pytest.mark.parametrize("posn", posns) def test_relative_position_control1(botname, posn, base_controller, base_planner, close_loop, smooth): _test_relative_position_control(posn, botname, base_controller, base_planner, close_loop, smooth, 0.05, 10) @pytest.mark.parametrize("base_controller", ['movebase']) @pytest.mark.parametrize("base_planner", ['none']) @pytest.mark.parametrize("close_loop", [True]) @pytest.mark.parametrize("smooth", [False]) @pytest.mark.parametrize("posn", posns) def test_relative_position_control1_movebase(botname, posn, base_controller, base_planner, close_loop, smooth): _test_relative_position_control(posn, botname, base_controller, base_planner, close_loop, smooth, 0.25, 20) @pytest.mark.parametrize("base_controller", ['ilqr']) @pytest.mark.parametrize("base_planner", ['none']) @pytest.mark.parametrize("posn", posns) def test_relative_position_control2_close_smooth(botname, posn, base_controller, base_planner): _test_relative_position_control(posn, botname, base_controller, base_planner, True, True, 0.05, 10) @pytest.mark.parametrize("base_controller", ['ilqr']) @pytest.mark.parametrize("base_planner", ['none']) @pytest.mark.parametrize("posn", posns) def test_relative_position_control2_open_smooth(botname, posn, base_controller, base_planner): _test_relative_position_control(posn, botname, base_controller, base_planner, False, True, 0.10, 20) @pytest.mark.parametrize("base_controller", ['ilqr']) @pytest.mark.parametrize("base_planner", ['none']) @pytest.mark.parametrize("posn", posns) def test_relative_position_control2_close_sharp(botname, posn, base_controller, base_planner): _test_relative_position_control(posn, botname, base_controller, base_planner, True, False, 0.05, 10) @pytest.mark.parametrize("base_controller", ['ilqr']) @pytest.mark.parametrize("base_planner", ['none']) @pytest.mark.parametrize("posn", posns) def test_relative_position_control2_open_sharp(botname, posn, base_controller, base_planner): _test_relative_position_control(posn, botname, base_controller, base_planner, False, False, 0.10, 20) @pytest.mark.parametrize("base_controller", ['proportional', 'ilqr']) @pytest.mark.parametrize("base_planner", ['movebase']) @pytest.mark.parametrize("close_loop", [True]) @pytest.mark.parametrize("smooth", [False]) @pytest.mark.parametrize("posn", posns[:1, :]) def test_relative_position_control3(botname, posn, base_controller, base_planner, close_loop, smooth): _test_relative_position_control(posn, botname, base_controller, base_planner, close_loop, smooth, 0.05, 10) @pytest.mark.parametrize("base_controller", ['movebase']) @pytest.mark.parametrize("base_planner", ['movebase']) @pytest.mark.parametrize("close_loop", [True]) @pytest.mark.parametrize("smooth", [False]) @pytest.mark.parametrize("posn", posns[:1, :]) def test_relative_position_control3_movebase(botname, posn, base_controller, base_planner, close_loop, smooth): _test_relative_position_control(posn, botname, base_controller, base_planner, close_loop, smooth, 0.25, 20)
45.213483
112
0.687624
1,052
8,048
4.977186
0.159696
0.072574
0.152406
0.109817
0.740833
0.738732
0.7267
0.716005
0.707792
0.694423
0
0.014984
0.179051
8,048
177
113
45.468927
0.777509
0.042247
0
0.57037
0
0.007407
0.093365
0.009999
0
0
0
0
0.02963
1
0.103704
false
0
0.051852
0.014815
0.17037
0
0
0
0
null
0
0
0
0
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
5
578e05116b46078c34a30ac92c819c89603f7d1b
232
py
Python
src/lyrics/exceptions.py
LimaGuilherme/what-is-your-band-favorite-word-api
dff4a9ed120bdd9dca1ad72167aa963d15d810ca
[ "MIT" ]
null
null
null
src/lyrics/exceptions.py
LimaGuilherme/what-is-your-band-favorite-word-api
dff4a9ed120bdd9dca1ad72167aa963d15d810ca
[ "MIT" ]
null
null
null
src/lyrics/exceptions.py
LimaGuilherme/what-is-your-band-favorite-word-api
dff4a9ed120bdd9dca1ad72167aa963d15d810ca
[ "MIT" ]
null
null
null
class LyricsNotFound(Exception): pass class ElasticSearchConnectionError(Exception): pass class InvalidRepository(Exception): pass class ArtistNotFound(Exception): pass class ConfigError(Exception): pass
12.210526
46
0.75
20
232
8.7
0.4
0.373563
0.413793
0
0
0
0
0
0
0
0
0
0.185345
232
18
47
12.888889
0.920635
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
579dd3aa82c64303c7249f345c3404a33f42c196
6,225
py
Python
tests/utils_test/test_morph.py
JanekEbb/paderbox
7cd3bf92380e05ec856936d21a64d0a8a3ff0fca
[ "MIT" ]
25
2019-12-21T21:10:08.000Z
2022-02-04T10:40:19.000Z
tests/utils_test/test_morph.py
JanekEbb/paderbox
7cd3bf92380e05ec856936d21a64d0a8a3ff0fca
[ "MIT" ]
32
2019-12-21T21:48:24.000Z
2022-03-31T08:20:39.000Z
tests/utils_test/test_morph.py
JanekEbb/paderbox
7cd3bf92380e05ec856936d21a64d0a8a3ff0fca
[ "MIT" ]
254
2019-12-16T08:15:08.000Z
2021-11-26T12:41:12.000Z
import unittest import numpy as np import paderbox.testing as tc from paderbox.array import morph T, B, F = 40, 6, 50 A = np.random.uniform(size=(T, B, F)) A2 = np.random.uniform(size=(T, 1, B, F)) A3 = np.random.uniform(size=(T*B*F,)) A4 = np.random.uniform(size=(T, 1, 1, B, 1, F)) class TestMorph(unittest.TestCase): def test_noop_comma(self): result = morph('T,B,F->T,B,F', A) tc.assert_equal(result.shape, (T, B, F)) tc.assert_equal(result, A) def test_noop_space(self): result = morph('T B F->T B F', A) tc.assert_equal(result.shape, (T, B, F)) tc.assert_equal(result, A) def test_noop_mixed(self): result = morph('tbf->t, b f', A) tc.assert_equal(result.shape, (T, B, F)) tc.assert_equal(result, A) def test_transpose_comma(self): result = morph('T,B,F->F,T,B', A) tc.assert_equal(result.shape, (F, T, B)) tc.assert_equal(result, A.transpose(2, 0, 1)) def test_transpose_mixed(self): result = morph('t, b, f -> f t b', A) tc.assert_equal(result.shape, (F, T, B)) tc.assert_equal(result, A.transpose(2, 0, 1)) def test_broadcast_axis_0(self): result = morph('T,B,F->1,T,B,F', A) tc.assert_equal(result.shape, (1, T, B, F)) tc.assert_equal(result, A[None, ...]) def test_broadcast_axis_2(self): result = morph('T,B,F->T,B,1,F', A) tc.assert_equal(result.shape, (T, B, 1, F)) tc.assert_equal(result, A[..., None, :]) def test_broadcast_axis_3(self): result = morph('T,B,F->T,B,F,1', A) tc.assert_equal(result.shape, (T, B, F, 1)) tc.assert_equal(result, A[..., None]) def test_reshape_comma(self): result = morph('T,B,F->T,B*F', A) tc.assert_equal(result.shape, (T, B*F)) tc.assert_equal(result, A.reshape(T, B*F)) def test_reshape_comma_unflatten(self): result = morph('t*b*f->tbf', A3, t=T, b=B) tc.assert_equal(result.shape, (T, B, F)) tc.assert_equal(result, A3.reshape((T, B, F))) def test_reshape_comma_unflatten_and_transpose_and_flatten(self): result = morph('t*b*f->f, t*b', A3, f=F, t=T) tc.assert_equal(result.shape, (F, T*B)) tc.assert_equal(result, A3.reshape((T*B, F)).transpose((1, 0))) def test_reshape_comma_flat(self): result = morph('T,B,F->T*B*F', A) tc.assert_equal(result.shape, (T*B*F,)) tc.assert_equal(result, A.ravel()) def test_reshape_comma_with_singleton_input(self): result = morph('T, 1, B, F -> T*B*F', A2) tc.assert_equal(result.shape, (T*B*F,)) tc.assert_equal(result, A2.ravel()) def test_reshape_and_broadcast(self): tc.assert_equal(morph('T,B,F->T,1,B*F', A).shape, (T, 1, B*F)) tc.assert_equal(morph('T,B,F->T,1,B*F', A).ravel(), A.ravel()) def test_reshape_and_broadcast_many(self): result = morph('T,B,F->1,T,1,B*F,1', A) tc.assert_equal(result.shape, (1, T, 1, B*F, 1)) def test_swap_and_reshape(self): result = morph('T,B,F->T,F*B', A) tc.assert_equal(result.shape, (T, F * B)) tc.assert_equal(result, A.swapaxes(-1, -2).reshape(T, F * B)) def test_transpose_and_reshape(self): result = morph('T,B,F->F,B*T', A) tc.assert_equal(result.shape, (F, B*T)) tc.assert_equal(result, A.transpose(2, 1, 0).reshape(F, B*T)) def test_transpose_capital(self): result = morph('tbB->tBb', A) tc.assert_equal(result.shape, (T, F, B)) tc.assert_equal(result, A.transpose(0, 2, 1)) def test_all_comma(self): tc.assert_equal(morph('T,B,F->F,1,B*T', A).shape, (F, 1, B*T)) def test_all_space(self): tc.assert_equal(morph('t b f -> f1b*t', A).shape, (F, 1, B*T)) def test_ellipsis_3(self): tc.assert_equal(morph('...->...', A).shape, (T, B, F)) def test_ellipsis_2(self): tc.assert_equal(morph('...F->...F', A).shape, (T, B, F)) def test_ellipsis_2_begin(self): tc.assert_equal(morph('T...->T...', A).shape, (T, B, F)) def test_ellipsis_2_letter_conflict(self): tc.assert_equal(morph('a...->a...', A).shape, (T, B, F)) def test_ellipsis_1(self): tc.assert_equal(morph('...BF->...FB', A).shape, (T, F, B)) def test_ellipsis_1_begin(self): tc.assert_equal(morph('TB...->BT...', A).shape, (B, T, F)) def test_ellipsis_1_mid(self): tc.assert_equal(morph('T...F->F...T', A).shape, (F, B, T)) def test_ellipsis_0(self): tc.assert_equal(morph('...TBF->...TFB', A).shape, (T, F, B)) def test_ellipsis_0_begin(self): tc.assert_equal(morph('TBF...->TFB...', A).shape, (T, F, B)) def test_ellipsis_expand_0(self): tc.assert_equal( morph( 'a*b...->ab...', A, a=T // 2, b=2 ).shape, (T // 2, 2, B, F)) def test_ellipsis_expand_1(self): tc.assert_equal( morph( '...a*b->...ab', A, a=F // 2, b=2 ).shape, (T, B, F // 2, 2)) def test_reduce_mean(self): tc.assert_equal( morph( '...F->...', A, reduce=np.mean ).shape, (T, B)) tc.assert_equal( morph( '...F->...', A, reduce=np.mean ), np.mean(A, axis=-1)) def test_reduce_median(self): tc.assert_equal( morph( '...F->...', A, reduce=np.median ).shape, (T, B)) tc.assert_equal( morph( '...F->...', A, reduce=np.median ), np.median(A, axis=-1)) def test_reduce_sum(self): tc.assert_equal( morph( '...F->...', A, reduce=np.sum ).shape, (T, B)) tc.assert_equal( morph( '...F->...', A, reduce=np.sum ), np.sum(A, axis=-1))
31.923077
71
0.52
966
6,225
3.197723
0.081781
0.037553
0.227258
0.202978
0.809971
0.76821
0.657494
0.619618
0.537714
0.382972
0
0.017926
0.292048
6,225
194
72
32.087629
0.683004
0
0
0.343949
0
0
0.073735
0
0
0
0
0
0.343949
1
0.216561
false
0
0.025478
0
0.248408
0
0
0
0
null
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
5
57dba0e6434e7de02990f1e3a92cae51bb90b96c
141
py
Python
components/collector/src/source_model/__init__.py
Erik-Stel/quality-time
602b6970e5d9088cb89cc6d488337349e54e1c9a
[ "Apache-2.0" ]
null
null
null
components/collector/src/source_model/__init__.py
Erik-Stel/quality-time
602b6970e5d9088cb89cc6d488337349e54e1c9a
[ "Apache-2.0" ]
null
null
null
components/collector/src/source_model/__init__.py
Erik-Stel/quality-time
602b6970e5d9088cb89cc6d488337349e54e1c9a
[ "Apache-2.0" ]
null
null
null
"""Model package.""" from .entity import Entities, Entity from .measurement import SourceMeasurement from .responses import SourceResponses
23.5
42
0.808511
15
141
7.6
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.113475
141
5
43
28.2
0.912
0.099291
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
57dbe61128a55390d1b0dad863bf47373fe0c412
76
py
Python
code snippets/list_comprehension.py
akshaynagpal/python_snippets
86896150cc5b6ab37ea289cb7659d04a22a288ac
[ "MIT" ]
null
null
null
code snippets/list_comprehension.py
akshaynagpal/python_snippets
86896150cc5b6ab37ea289cb7659d04a22a288ac
[ "MIT" ]
null
null
null
code snippets/list_comprehension.py
akshaynagpal/python_snippets
86896150cc5b6ab37ea289cb7659d04a22a288ac
[ "MIT" ]
null
null
null
even_squares = [x**2 for x in range(1,11) if x%2 == 0 ] print even_squares
19
55
0.657895
17
76
2.823529
0.705882
0.458333
0
0
0
0
0
0
0
0
0
0.098361
0.197368
76
3
56
25.333333
0.688525
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.5
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
1
0
0
0
0
0
0
1
0
5
17cb33c2ae598f99d591d2de363ae38c90adab46
95
py
Python
caqi/scripts/create_project.py
chrisgervang/caqi
1441ea0dc66add6611005b9aebdf37dfc12d3811
[ "MIT" ]
null
null
null
caqi/scripts/create_project.py
chrisgervang/caqi
1441ea0dc66add6611005b9aebdf37dfc12d3811
[ "MIT" ]
null
null
null
caqi/scripts/create_project.py
chrisgervang/caqi
1441ea0dc66add6611005b9aebdf37dfc12d3811
[ "MIT" ]
null
null
null
from prefect import Client client = Client() client.create_project(project_name="caqi-flows")
19
48
0.8
13
95
5.692308
0.692308
0.486486
0.486486
0
0
0
0
0
0
0
0
0
0.094737
95
4
49
23.75
0.860465
0
0
0
0
0
0.105263
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
aa38006fd2abe646ad711730671c51767a6c838c
54
py
Python
sessions/session_01.py
pavanmaradia/202102-Python-Django-Training
6ce836009acf037a921b7439a6edda7fc8370dcb
[ "MIT" ]
1
2021-02-09T16:14:36.000Z
2021-02-09T16:14:36.000Z
sessions/session_01.py
pavanmaradia/202102-Python-Django-Training
6ce836009acf037a921b7439a6edda7fc8370dcb
[ "MIT" ]
null
null
null
sessions/session_01.py
pavanmaradia/202102-Python-Django-Training
6ce836009acf037a921b7439a6edda7fc8370dcb
[ "MIT" ]
null
null
null
print("Hello World") print("My name is Pavan Maradia")
27
33
0.740741
9
54
4.444444
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.111111
54
2
33
27
0.833333
0
0
0
0
0
0.636364
0
0
0
0
0
0
1
0
true
0
0
0
0
1
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
1
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
aa3afd5361d6cca4c856ba4a4d0f6b45b9d50161
278
py
Python
MINI_WEB/mini_web/framework/mini_frame_1.py
GalphaXie/LaoX
b7e8f9744292dc052c870e4d873052e9bfec19ee
[ "MIT" ]
null
null
null
MINI_WEB/mini_web/framework/mini_frame_1.py
GalphaXie/LaoX
b7e8f9744292dc052c870e4d873052e9bfec19ee
[ "MIT" ]
12
2020-03-24T17:39:25.000Z
2022-03-12T00:01:24.000Z
MINI_WEB/mini_web/framework/mini_frame_1.py
GalphaXie/LaoX
b7e8f9744292dc052c870e4d873052e9bfec19ee
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # file: mini_frame.py # Created by Guang at 19-7-19 # description: # *-* coding:utf8 *-* import time def login(): return "Welcome xxx to website! %s" % time.ctime() def register(): return "Welcome xxx register on our website! %s" % time.ctime()
18.533333
68
0.651079
41
278
4.390244
0.731707
0.144444
0.177778
0.188889
0
0
0
0
0
0
0
0.03125
0.194245
278
15
68
18.533333
0.772321
0.352518
0
0
0
0
0.380682
0
0
0
0
0
0
1
0.4
true
0
0.2
0.4
1
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
0
0
1
1
0
0
5
a4bec53bcda6e2d722e2cb189aa2b9afcc501350
267
py
Python
KerbalLanderEnvironment/__init__.py
dpohanlon/KerbalLanderEnvironment
d591f9c4e993cf922c2832aac54f5a55366439cf
[ "MIT" ]
2
2021-07-05T03:16:19.000Z
2021-12-09T13:37:08.000Z
KerbalLanderEnvironment/__init__.py
dpohanlon/KerbalLanderEnvironment
d591f9c4e993cf922c2832aac54f5a55366439cf
[ "MIT" ]
null
null
null
KerbalLanderEnvironment/__init__.py
dpohanlon/KerbalLanderEnvironment
d591f9c4e993cf922c2832aac54f5a55366439cf
[ "MIT" ]
null
null
null
from gym.envs.registration import register register(id='KerbalLander-v0', entry_point='KerbalLanderEnvironment.envs:KerbalLanderEnvironment', ) register(id='KerbalLanderSimple-v0', entry_point='KerbalLanderEnvironment.envs:KerbalLanderSimpleEnvironment', )
26.7
77
0.820225
24
267
9.041667
0.583333
0.092166
0.110599
0.322581
0.359447
0
0
0
0
0
0
0.008097
0.074906
267
9
78
29.666667
0.870445
0
0
0
0
0
0.546816
0.490637
0
0
0
0
0
1
0
true
0
0.142857
0
0.142857
0
1
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
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
352ad1262868bac74344bf07990e300c1c377ffe
1,150
py
Python
backend/myplaces/migrations/0010_auto_20220516_0955.py
crowdbotics-apps/ideapros-llc-viaggi-32125
8749fea0e08f50289cb7a192fd4d923f94770386
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/myplaces/migrations/0010_auto_20220516_0955.py
crowdbotics-apps/ideapros-llc-viaggi-32125
8749fea0e08f50289cb7a192fd4d923f94770386
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/myplaces/migrations/0010_auto_20220516_0955.py
crowdbotics-apps/ideapros-llc-viaggi-32125
8749fea0e08f50289cb7a192fd4d923f94770386
[ "FTL", "AML", "RSA-MD" ]
null
null
null
# Generated by Django 2.2.28 on 2022-05-16 09:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('myplaces', '0009_auto_20220515_1138'), ] operations = [ migrations.AddField( model_name='place', name='formatted_address', field=models.CharField(blank=True, max_length=255, null=True), ), migrations.AddField( model_name='place', name='formatted_phone_number', field=models.CharField(blank=True, max_length=255, null=True), ), migrations.AddField( model_name='place', name='international_phone_number', field=models.CharField(blank=True, max_length=255, null=True), ), migrations.AddField( model_name='place', name='url', field=models.CharField(blank=True, max_length=255, null=True), ), migrations.AddField( model_name='place', name='website', field=models.CharField(blank=True, max_length=255, null=True), ), ]
29.487179
74
0.578261
119
1,150
5.436975
0.369748
0.139104
0.177743
0.208655
0.718702
0.718702
0.718702
0.63524
0.63524
0.63524
0
0.058677
0.303478
1,150
38
75
30.263158
0.749064
0.04
0
0.625
1
0
0.118875
0.064428
0
0
0
0
0
1
0
false
0
0.03125
0
0.125
0
0
0
0
null
0
0
1
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
352c7e3d4df3057ff4a19fa92a39066cf0945034
181
py
Python
Python/cython/rowdotsetup.py
jessicaleete/numerical_computing
cc71f51f35ca74d00e617af3d1a0223e19fb9a68
[ "CC-BY-3.0" ]
10
2016-10-18T19:54:25.000Z
2021-10-09T20:12:38.000Z
Python/cython/rowdotsetup.py
jessicaleete/numerical_computing
cc71f51f35ca74d00e617af3d1a0223e19fb9a68
[ "CC-BY-3.0" ]
null
null
null
Python/cython/rowdotsetup.py
jessicaleete/numerical_computing
cc71f51f35ca74d00e617af3d1a0223e19fb9a68
[ "CC-BY-3.0" ]
2
2017-05-14T16:07:59.000Z
2020-06-20T09:05:06.000Z
from distutils.core import setup from Cython.Build import cythonize import numpy setup(name = "rowdot", ext_modules = cythonize('rowdot.pyx'), include_dirs=[numpy.get_include()], )
36.2
99
0.779006
25
181
5.52
0.68
0
0
0
0
0
0
0
0
0
0
0
0.099448
181
4
100
45.25
0.846626
0
0
0
0
0
0.088398
0
0
0
0
0
0
1
0
true
0
0.75
0
0.75
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
107a1eb8d15f317190fa1548d7088f81416a2d85
40
py
Python
tests/__init__.py
Bouchet07/intelligen
d876b1241efe7ad70fa759e1f10728728f867992
[ "MIT" ]
null
null
null
tests/__init__.py
Bouchet07/intelligen
d876b1241efe7ad70fa759e1f10728728f867992
[ "MIT" ]
null
null
null
tests/__init__.py
Bouchet07/intelligen
d876b1241efe7ad70fa759e1f10728728f867992
[ "MIT" ]
null
null
null
"""Unit test package for intelligen."""
20
39
0.7
5
40
5.6
1
0
0
0
0
0
0
0
0
0
0
0
0.125
40
1
40
40
0.8
0.825
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
10a5061bd78f2c222e12007e870b7a28687728f4
159
py
Python
tests/algorithms/__init__.py
Landanjs/composer
de75822706bc8a33e7d487b33a0b994944b9c806
[ "Apache-2.0" ]
1
2021-11-09T22:58:46.000Z
2021-11-09T22:58:46.000Z
tests/algorithms/__init__.py
Landanjs/composer
de75822706bc8a33e7d487b33a0b994944b9c806
[ "Apache-2.0" ]
null
null
null
tests/algorithms/__init__.py
Landanjs/composer
de75822706bc8a33e7d487b33a0b994944b9c806
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 MosaicML Composer authors # SPDX-License-Identifier: Apache-2.0 from tests.algorithms.algorithm_settings import get_settings as get_settings
31.8
76
0.842767
22
159
5.954545
0.863636
0.167939
0
0
0
0
0
0
0
0
0
0.041958
0.100629
159
4
77
39.75
0.874126
0.477987
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
52b8271924e4b63fe8431f291f4ae87957db0831
2,366
py
Python
metaswitch_tinder/components/grid.py
MartinHowarth/melinda
651591a16797bc5dc95e784e8c35eb57fc8de41f
[ "MIT" ]
1
2018-05-12T19:56:27.000Z
2018-05-12T19:56:27.000Z
metaswitch_tinder/components/grid.py
MartinHowarth/melinda
651591a16797bc5dc95e784e8c35eb57fc8de41f
[ "MIT" ]
24
2018-05-12T19:07:40.000Z
2018-06-12T21:46:50.000Z
metaswitch_tinder/components/grid.py
MartinHowarth/melinda
651591a16797bc5dc95e784e8c35eb57fc8de41f
[ "MIT" ]
null
null
null
import dash_html_components as html def create_equal_grid(elements): """ :param elements: List of rows, of which each is a list of columns Rows must be of equal length. Each element of a row must be a html.Div. :return: """ n_columns = len(elements[0]) if not all([len(row) == n_columns for row in elements]): raise ValueError("Not all rows are of the same length.") # Bootstrap allows a maximum of 12 columns per grid. column_class = "col-sm-{}".format(int(12 / n_columns)) grid_children = [] for row in elements: row_children = [] for col in row: if hasattr(col, "className"): col.className += " {}".format(column_class) else: col.className = column_class row_children.append(col) grid_children.append(html.Div(children=row_children, className="row")) grid = html.Div(children=grid_children, className="container") return grid def create_equal_row(elements): return create_equal_grid([elements]) def create_magic_three_grid(elements): """ :param elements: List of rows, of which each is a list of columns Rows must be of equal length. Each element of a row must be a html.Div. :return: """ n_columns = len(elements[0]) if not all([len(row) == n_columns for row in elements]): raise ValueError("Not all rows are of the same length.") grid_children = [] for row in elements: row_children = [] for num, col in enumerate(row): if (num == 0) or (num == 2): column_class = "col-sm-2 align-middle" elif num == 1: column_class = "col-sm-4 align-middle" else: break if hasattr(col, "className"): col.className += " {}".format(column_class) else: col.className = column_class row_children.append(col) if (num == 0) or (num == 1): row_children.append(html.Div("", className="col-sm-2")) grid_children.append(html.Div(children=row_children, className="row")) grid = html.Div(children=grid_children, className="container") return grid def create_magic_three_row(elements): return create_magic_three_grid([elements])
29.209877
78
0.598901
311
2,366
4.421222
0.21865
0.035636
0.023273
0.046545
0.754909
0.706909
0.706909
0.706909
0.706909
0.645818
0
0.008388
0.29459
2,366
80
79
29.575
0.815458
0.152578
0
0.630435
0
0
0.091889
0
0
0
0
0
0
1
0.086957
false
0
0.021739
0.043478
0.195652
0
0
0
0
null
0
0
0
0
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
5
5e2402ff01388e02e821916011528b1ae1b8b977
141
py
Python
run.py
modelop/fastscore-cli
1e14a00d473eece35b7dfe6791137af2ddd569ee
[ "Apache-2.0" ]
4
2017-06-06T15:41:51.000Z
2019-02-06T17:14:41.000Z
run.py
modelop/fastscore-cli
1e14a00d473eece35b7dfe6791137af2ddd569ee
[ "Apache-2.0" ]
4
2017-04-10T10:06:00.000Z
2019-01-29T11:11:11.000Z
run.py
modelop/fastscore-cli
1e14a00d473eece35b7dfe6791137af2ddd569ee
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from cli import dispatch import sys def main(): return dispatch.main() if __name__ == "__main__": sys.exit(main())
11.75
26
0.680851
20
141
4.4
0.7
0
0
0
0
0
0
0
0
0
0
0
0.170213
141
11
27
12.818182
0.752137
0.113475
0
0
0
0
0.065041
0
0
0
0
0
0
1
0.166667
true
0
0.333333
0.166667
0.666667
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
1
0
1
1
1
0
0
5
5e257b62886200366be9a70881fc76bfab830611
55
py
Python
src/analyze/__init__.py
ppisarski/digit-recognizer
4cfc5469a158045ed454764a3a591352b37adced
[ "MIT" ]
null
null
null
src/analyze/__init__.py
ppisarski/digit-recognizer
4cfc5469a158045ed454764a3a591352b37adced
[ "MIT" ]
null
null
null
src/analyze/__init__.py
ppisarski/digit-recognizer
4cfc5469a158045ed454764a3a591352b37adced
[ "MIT" ]
null
null
null
from .confusion_matrix import * from .history import *
18.333333
31
0.781818
7
55
6
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.145455
55
2
32
27.5
0.893617
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
eaa3b5553c3c9727b7c98ddbf6e193acc91c45eb
123
py
Python
tests/test_module.py
DNXLabs/python-module-template
28cde52ad9744ca0cd8825ec922ac401b8eaf2fb
[ "Apache-2.0" ]
null
null
null
tests/test_module.py
DNXLabs/python-module-template
28cde52ad9744ca0cd8825ec922ac401b8eaf2fb
[ "Apache-2.0" ]
null
null
null
tests/test_module.py
DNXLabs/python-module-template
28cde52ad9744ca0cd8825ec922ac401b8eaf2fb
[ "Apache-2.0" ]
null
null
null
import pytest from module.utils import template def test_module(): result = template() assert result == 'Template'
20.5
33
0.723577
15
123
5.866667
0.666667
0.318182
0
0
0
0
0
0
0
0
0
0
0.186992
123
6
34
20.5
0.88
0
0
0
0
0
0.064516
0
0
0
0
0
0.2
1
0.2
false
0
0.4
0
0.6
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
1
0
0
5
eac3a3dbc184bcfe18cec6acbed3fc7b3d231206
136
py
Python
source/__main__.py
zackjohnson8/TeamCityTestRepo
ccf719fb49f3dda579f1f9d6792229a4686252cb
[ "MIT" ]
null
null
null
source/__main__.py
zackjohnson8/TeamCityTestRepo
ccf719fb49f3dda579f1f9d6792229a4686252cb
[ "MIT" ]
null
null
null
source/__main__.py
zackjohnson8/TeamCityTestRepo
ccf719fb49f3dda579f1f9d6792229a4686252cb
[ "MIT" ]
null
null
null
import shutil import sys import team_city_math def main(): print(team_city_math.add(2, 3)) if __name__ == "__main__": main()
12.363636
35
0.691176
21
136
3.904762
0.666667
0.195122
0.292683
0
0
0
0
0
0
0
0
0.018182
0.191176
136
10
36
13.6
0.727273
0
0
0
0
0
0.058824
0
0
0
0
0
0
1
0.142857
true
0
0.428571
0
0.571429
0.142857
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
eafc3ed56673f8c4f2304a6e8ba663a653f8d1d8
49
py
Python
specreduce/utils/__init__.py
duytnguyendtn/specreduce
7b4235796852041426b7279b21217df287553225
[ "BSD-3-Clause" ]
null
null
null
specreduce/utils/__init__.py
duytnguyendtn/specreduce
7b4235796852041426b7279b21217df287553225
[ "BSD-3-Clause" ]
null
null
null
specreduce/utils/__init__.py
duytnguyendtn/specreduce
7b4235796852041426b7279b21217df287553225
[ "BSD-3-Clause" ]
null
null
null
""" General purpose utilities for specreduce """
12.25
40
0.734694
5
49
7.2
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
49
3
41
16.333333
0.857143
0.816327
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
d83b0a176c74ffa7c757537f2bb5c5945644bfbd
170
py
Python
vedastr/models/bodies/sequences/transformer/unit/registry.py
csmasters/vedastr
7513384ab503f15dc574c7d92b75ff2092354757
[ "Apache-2.0" ]
475
2020-03-17T01:46:32.000Z
2022-03-29T23:30:15.000Z
vedastr/models/bodies/sequences/transformer/unit/registry.py
csmasters/vedastr
7513384ab503f15dc574c7d92b75ff2092354757
[ "Apache-2.0" ]
71
2020-04-01T04:17:47.000Z
2021-11-18T06:55:14.000Z
vedastr/models/bodies/sequences/transformer/unit/registry.py
csmasters/vedastr
7513384ab503f15dc574c7d92b75ff2092354757
[ "Apache-2.0" ]
108
2020-02-21T10:30:37.000Z
2022-03-21T12:03:30.000Z
from vedastr.utils import Registry TRANSFORMER_ENCODER_LAYERS = Registry('transformer_encoder_layer') TRANSFORMER_DECODER_LAYERS = Registry('transformer_decoder_layer')
34
66
0.870588
19
170
7.368421
0.526316
0.407143
0.371429
0
0
0
0
0
0
0
0
0
0.064706
170
4
67
42.5
0.880503
0
0
0
0
0
0.294118
0.294118
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
dc25fdfc40a7f52eca66494aa6b68ba8eb801bf0
66
py
Python
Stream Tool/Resources/Scripts/RoAUpdateScores.py
Ateozc/RoA-Stream-Tool
c2e90d8ac2a6b2604016e11c6bd9210b37f39aa8
[ "MIT" ]
null
null
null
Stream Tool/Resources/Scripts/RoAUpdateScores.py
Ateozc/RoA-Stream-Tool
c2e90d8ac2a6b2604016e11c6bd9210b37f39aa8
[ "MIT" ]
null
null
null
Stream Tool/Resources/Scripts/RoAUpdateScores.py
Ateozc/RoA-Stream-Tool
c2e90d8ac2a6b2604016e11c6bd9210b37f39aa8
[ "MIT" ]
null
null
null
from RoAScripts import * update_scores(sys.argv[1], sys.argv[2])
16.5
39
0.742424
11
66
4.363636
0.818182
0.291667
0
0
0
0
0
0
0
0
0
0.033898
0.106061
66
4
39
16.5
0.779661
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
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
1
0
1
0
0
0
0
5
dc31152df60be3b996e61e5c06ba9b836258dc51
363
py
Python
account_check/wizard/__init__.py
odoo-mastercore/odoo-argentina
58cdfe8610bae42f69ddb9d652a28eb3245f6a04
[ "MIT" ]
1
2021-01-25T15:57:58.000Z
2021-01-25T15:57:58.000Z
account_check/wizard/__init__.py
odoo-mastercore/odoo-argentina
58cdfe8610bae42f69ddb9d652a28eb3245f6a04
[ "MIT" ]
null
null
null
account_check/wizard/__init__.py
odoo-mastercore/odoo-argentina
58cdfe8610bae42f69ddb9d652a28eb3245f6a04
[ "MIT" ]
2
2020-10-17T16:36:02.000Z
2021-01-24T10:20:05.000Z
############################################################################## # For copyright and license notices, see __manifest__.py file in module root # directory ############################################################################## from . import account_check_action_wizard from . import print_pre_numbered_checks from . import res_config_settings
45.375
78
0.473829
30
363
5.333333
0.866667
0.1875
0
0
0
0
0
0
0
0
0
0
0.077135
363
7
79
51.857143
0.477612
0.231405
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
dcb0409ca9c88b4f26f4e26b2d3552f7099ac68d
395
py
Python
CPT/format.py
Grosse-pasteque/CPT
3e3588617a7c058361546844a2c35913b0bcf7ed
[ "MIT" ]
1
2021-06-30T19:54:31.000Z
2021-06-30T19:54:31.000Z
CPT/format.py
Grosse-pasteque/CPT
3e3588617a7c058361546844a2c35913b0bcf7ed
[ "MIT" ]
null
null
null
CPT/format.py
Grosse-pasteque/CPT
3e3588617a7c058361546844a2c35913b0bcf7ed
[ "MIT" ]
1
2021-07-20T07:33:20.000Z
2021-07-20T07:33:20.000Z
from colorama import Fore def console(text, config, status): if config['return_only_value']: return text def text_format(text): return str(text).replace('\n', f"{Fore.RESET}\n{config['console']['start']}{config['colors'][status]}") return f"{config['console']['start']}{config['colors'][status]}{text_format(text)}{Fore.RESET}{config['console']['end']}{config['console']['line_sep']}"
39.5
153
0.691139
55
395
4.872727
0.436364
0.19403
0.104478
0.179104
0.268657
0.268657
0
0
0
0
0
0
0.073418
395
10
153
39.5
0.73224
0
0
0
0
0.142857
0.578283
0.530303
0
0
0
0
0
1
0.285714
false
0
0.142857
0.142857
0.857143
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
1
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
f492805777e51bd77c19fae4e0678169bb2b3d42
185
py
Python
mitm/core/__init__.py
alvarogzp/man-in-the-middle
82b645872582477cda21e3e8e62d61ba18e91282
[ "Apache-2.0" ]
4
2017-09-19T15:21:30.000Z
2022-03-21T14:19:13.000Z
mitm/core/__init__.py
alvarogzp/man-in-the-middle
82b645872582477cda21e3e8e62d61ba18e91282
[ "Apache-2.0" ]
1
2017-09-11T08:52:19.000Z
2017-09-11T08:52:19.000Z
mitm/core/__init__.py
alvarogzp/man-in-the-middle
82b645872582477cda21e3e8e62d61ba18e91282
[ "Apache-2.0" ]
null
null
null
from mitm.core.request_handler.base import BaseMitmRequestHandler from mitm.core.request_handler.with_destination import set_destination_endpoint, BaseWithDestinationMitmRequestHandler
61.666667
118
0.913514
20
185
8.2
0.65
0.097561
0.146341
0.231707
0.317073
0
0
0
0
0
0
0
0.048649
185
2
119
92.5
0.931818
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
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
1
0
1
0
0
0
0
5
f4dd9fea73cf8daad855913e16230d4c7c89c1ec
88
py
Python
ontology/logistic_regression/sherlock/listify_circuits_k18_reverse.py
ehbeam/neuro-knowledge-engine
9dc56ade0bbbd8d14f0660774f787c3f46d7e632
[ "MIT" ]
15
2020-07-17T07:10:26.000Z
2022-02-18T05:51:45.000Z
ontology/neural_network/sherlock/listify_circuits_k18_reverse.py
YifeiCAO/neuro-knowledge-engine
9dc56ade0bbbd8d14f0660774f787c3f46d7e632
[ "MIT" ]
2
2022-01-14T09:10:12.000Z
2022-01-28T17:32:42.000Z
ontology/neural_network/sherlock/listify_circuits_k18_reverse.py
YifeiCAO/neuro-knowledge-engine
9dc56ade0bbbd8d14f0660774f787c3f46d7e632
[ "MIT" ]
4
2021-12-22T13:27:32.000Z
2022-02-18T05:51:47.000Z
#!/bin/python import listify_circuits listify_circuits.optimize_circuits(18, 'reverse')
22
49
0.829545
11
88
6.363636
0.727273
0.428571
0
0
0
0
0
0
0
0
0
0.024096
0.056818
88
4
49
22
0.819277
0.136364
0
0
0
0
0.092105
0
0
0
0
0
0
1
0
true
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
1
0
1
0
0
0
0
5
7617b941b39dfbfdc86e9bb06d28eb21625cc0ec
164
py
Python
moto/elbv2/urls.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
5,460
2015-01-01T01:11:17.000Z
2022-03-31T23:45:38.000Z
moto/elbv2/urls.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
4,475
2015-01-05T19:37:30.000Z
2022-03-31T13:55:12.000Z
moto/elbv2/urls.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
1,831
2015-01-14T00:00:44.000Z
2022-03-31T20:30:04.000Z
from ..elb.urls import api_version_elb_backend url_bases = [r"https?://elasticloadbalancing\.(.+)\.amazonaws.com"] url_paths = {"{0}/$": api_version_elb_backend}
27.333333
67
0.731707
22
164
5.090909
0.727273
0.178571
0.232143
0.357143
0
0
0
0
0
0
0
0.006623
0.079268
164
5
68
32.8
0.735099
0
0
0
0
0
0.335366
0.304878
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
762885c9976ddb30ace13aee3b4667c8fc4f5962
78
py
Python
bandit/__init__.py
mremes/bandit-simulation
1167d059bf7c67a5b5e0a1c33d340edddc721b5e
[ "MIT" ]
null
null
null
bandit/__init__.py
mremes/bandit-simulation
1167d059bf7c67a5b5e0a1c33d340edddc721b5e
[ "MIT" ]
null
null
null
bandit/__init__.py
mremes/bandit-simulation
1167d059bf7c67a5b5e0a1c33d340edddc721b5e
[ "MIT" ]
null
null
null
from .agent import Agent from .reward import NormallyDistributedRandomRewards
26
52
0.871795
8
78
8.5
0.625
0
0
0
0
0
0
0
0
0
0
0
0.102564
78
2
53
39
0.971429
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
762f707ad0f82b1bed45c93db1dc73e16b7f9aba
130
py
Python
src/test/break_int3.py
jalapenopuzzle/rr
6f8b3c73868d9fd3e6ac14a1322b92dbe9958807
[ "BSD-1-Clause" ]
5,156
2015-01-01T06:10:28.000Z
2020-11-13T15:12:34.000Z
src/test/break_int3.py
jalapenopuzzle/rr
6f8b3c73868d9fd3e6ac14a1322b92dbe9958807
[ "BSD-1-Clause" ]
1,214
2015-01-02T02:32:13.000Z
2020-11-09T04:36:26.000Z
src/test/break_int3.py
jalapenopuzzle/rr
6f8b3c73868d9fd3e6ac14a1322b92dbe9958807
[ "BSD-1-Clause" ]
402
2015-01-13T22:54:32.000Z
2020-11-05T15:02:25.000Z
from util import * send_gdb('b int3.c:6') expect_gdb('Breakpoint 1') send_gdb('c') expect_gdb('Breakpoint 1, breakpoint') ok()
13
38
0.707692
22
130
4
0.590909
0.159091
0.431818
0.454545
0
0
0
0
0
0
0
0.035088
0.123077
130
9
39
14.444444
0.736842
0
0
0
0
0
0.361538
0
0
0
0
0
0
1
0
true
0
0.166667
0
0.166667
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
52091da1f95350e4f7788e6c763431a9214abcf6
3,351
py
Python
dojo/unittests/tools/test_gitlab_sast_parser.py
axelpavageau/django-DefectDojo
00b425742b783ada0f432241c2812ac1257feb73
[ "BSD-3-Clause" ]
1
2021-07-26T21:12:01.000Z
2021-07-26T21:12:01.000Z
dojo/unittests/tools/test_gitlab_sast_parser.py
axelpavageau/django-DefectDojo
00b425742b783ada0f432241c2812ac1257feb73
[ "BSD-3-Clause" ]
562
2019-06-21T18:44:38.000Z
2022-03-28T18:09:08.000Z
dojo/unittests/tools/test_gitlab_sast_parser.py
axelpavageau/django-DefectDojo
00b425742b783ada0f432241c2812ac1257feb73
[ "BSD-3-Clause" ]
2
2021-09-16T18:30:17.000Z
2021-09-17T00:46:38.000Z
from django.test import TestCase from dojo.tools.gitlab_sast.parser import GitlabSastParser from dojo.models import Test class TestGitlabSastParser(TestCase): def test_parse_file_with_no_vuln_has_no_findings(self): testfile = open("dojo/unittests/scans/gitlab_sast/gl-sast-report-0-vuln.json") parser = GitlabSastParser() findings = parser.get_findings(testfile, Test()) self.assertEqual(0, len(findings)) def test_parse_file_with_one_vuln_has_one_finding(self): testfile = open("dojo/unittests/scans/gitlab_sast/gl-sast-report-1-vuln.json") parser = GitlabSastParser() findings = parser.get_findings(testfile, Test()) self.assertEqual(1, len(findings)) finding = findings[0] self.assertEqual("Password in URL", finding.title) self.assertEqual("Critical", finding.severity) def test_parse_file_with_multiple_vuln_has_multiple_findings(self): testfile = open( "dojo/unittests/scans/gitlab_sast/gl-sast-report-many-vuln.json" ) parser = GitlabSastParser() findings = parser.get_findings(testfile, Test()) self.assertTrue(3, len(findings)) finding = findings[0] self.assertEqual("Password in URL", finding.title) self.assertEqual("Critical", finding.severity) finding = findings[1] self.assertEqual("Password in URL", finding.title) self.assertEqual("Critical", finding.severity) finding = findings[2] self.assertEqual("PKCS8 key", finding.title) self.assertEqual("Critical", finding.severity) def test_parse_file_with_various_confidences(self): testfile = open( "dojo/unittests/scans/gitlab_sast/gl-sast-report-confidence.json" ) parser = GitlabSastParser() findings = parser.get_findings(testfile, Test()) self.assertTrue(len(findings) == 8) for item in findings: self.assertTrue(item.cwe is None or isinstance(item.cwe, int)) finding = findings[3] self.assertEqual("Tentative", finding.get_scanner_confidence_text()) finding = findings[4] self.assertEqual("Tentative", finding.get_scanner_confidence_text()) finding = findings[5] self.assertEqual("Firm", finding.get_scanner_confidence_text()) finding = findings[6] self.assertEqual("Firm", finding.get_scanner_confidence_text()) finding = findings[7] self.assertEqual("Certain", finding.get_scanner_confidence_text()) def test_parse_file_with_various_cwes(self): testfile = open("dojo/unittests/scans/gitlab_sast/gl-sast-report-cwe.json") parser = GitlabSastParser() findings = parser.get_findings(testfile, Test()) self.assertTrue(len(findings) == 3) self.assertEqual(79, findings[0].cwe) self.assertEqual(89, findings[1].cwe) self.assertEqual(None, findings[2].cwe) def test_parse_file_issue4336(self): testfile = open("dojo/unittests/scans/gitlab_sast/gl-sast-report_issue4344.json") parser = GitlabSastParser() findings = parser.get_findings(testfile, Test()) self.assertEqual(1, len(findings)) finding = findings[0] self.assertEqual("[None severity] Potential XSS vulnerability", finding.title)
44.092105
89
0.682781
388
3,351
5.726804
0.203608
0.135014
0.032403
0.043204
0.755176
0.723222
0.707921
0.707921
0.707921
0.707921
0
0.012772
0.20561
3,351
75
90
44.68
0.821938
0
0
0.447761
0
0
0.156073
0.107729
0
0
0
0
0.358209
1
0.089552
false
0.044776
0.044776
0
0.149254
0
0
0
0
null
0
0
0
0
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
5
5213265a7b0f61a62df6364c00660b37cf1226ec
42
py
Python
tests/components/mutesync/__init__.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/mutesync/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/components/mutesync/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Tests for the mütesync integration."""
21
41
0.714286
5
42
6
1
0
0
0
0
0
0
0
0
0
0
0
0.119048
42
1
42
42
0.810811
0.833333
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
525c175f06dc3889c663c3e4b4c36d57d56544ab
3,942
py
Python
find_shortest_path.py
tjbruce19/codewars
ecc22421916d88589635d8781400acbd71c53c01
[ "Apache-2.0" ]
null
null
null
find_shortest_path.py
tjbruce19/codewars
ecc22421916d88589635d8781400acbd71c53c01
[ "Apache-2.0" ]
null
null
null
find_shortest_path.py
tjbruce19/codewars
ecc22421916d88589635d8781400acbd71c53c01
[ "Apache-2.0" ]
null
null
null
import time def get_next_node(grid, path, min_path, end_node,pre_move=None): cur_node = path[-1] if cur_node is end_node: return min_path,path[:-1] if cur_node.position.x != end_node.position.x: right_node = grid[cur_node.position.x + 1][cur_node.position.y] path.append(right_node) # print("right_node:") # print(right_node) # print(path) # print("--------------------") if min_path != [] and len(min_path) <= len(path): return min_path, path[:-1] else: if right_node is end_node: if min_path == []: min_path = path else: min_path = min_path if len(min_path) <= len(path) else path return min_path, path[:-1] else: if right_node.passable is True: min_path, path = get_next_node(grid,path,min_path,end_node) path = path[:-1] if cur_node.position.y != end_node.position.y and pre_move != "up": down_node = grid[cur_node.position.x][cur_node.position.y + 1] path.append(down_node) # print("down_node:") # print(down_node) # print(path) # print("--------------------") if min_path != [] and len(min_path) <= len(path): return min_path, path[:-1] else: if down_node is end_node: # print(123123) if min_path == []: min_path = path else: min_path = min_path if len(min_path) <= len(path) else path return min_path,path[:-1] else: if down_node.passable is True: min_path, path = get_next_node(grid,path,min_path,end_node,pre_move = "down") path = path[:-1] # if cur_node.position.x != 0: # left_node = grid[cur_node.position.x - 1][cur_node.position.y] # path.append(left_node) # # print("left_node:") # # print(left_node) # # print(path) # # print("--------------------") # if min_path != [] and len(min_path) <= len(path): # return min_path, path[:-1] # else: # if left_node is end_node: # if min_path == []: # min_path = path # else: # min_path = min_path if len(min_path) <= len(path) else path # return min_path, path[:-1] # else: # if left_node.passable is True and not path[:-1].__contains__(left_node): # min_path, path = get_next_node(grid,path,min_path,end_node) # path = path[:-1] if cur_node.position.y != 0 and pre_move != "down": up_node = grid[cur_node.position.x][cur_node.position.y - 1] path.append(up_node) # print("up_node:") # print(up_node) # print(path) # print("--------------------") if min_path != [] and len(min_path) <= len(path): return min_path, path[:-1] else: if up_node is end_node: if min_path == []: min_path = path else: min_path = min_path if len(min_path) <= len(path) else path return min_path, path[:-1] else: if up_node.passable is True: min_path,path = get_next_node(grid,path,min_path,end_node,pre_move = "up") path = path[:-1] return min_path,path def find_shortest_path(grid, start_node, end_node): # print(grid) # print(start_node) # print(end_node) cur_path = [start_node] min_path = [] pre_move = None if start_node is None or end_node is None: return [] else: min_path,path = get_next_node(grid, cur_path,min_path,end_node,pre_move) return min_path
39.818182
97
0.509386
511
3,942
3.661448
0.078278
0.190807
0.111705
0.090861
0.803848
0.791555
0.729022
0.701764
0.672902
0.672902
0
0.010638
0.356164
3,942
99
98
39.818182
0.726556
0.265094
0
0.507937
0
0
0.0042
0
0
0
0
0
0
1
0.031746
false
0.047619
0.015873
0
0.206349
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
5285401a494222004db84f3a011339ac586ff970
3,409
py
Python
configs/defect/cascade_rcnn_x101_64x4d_fpn_20e_coco.py
zwqnju/mmdetection
40dff5ac0fb9d3edd37f777b6e871b9587722457
[ "Apache-2.0" ]
null
null
null
configs/defect/cascade_rcnn_x101_64x4d_fpn_20e_coco.py
zwqnju/mmdetection
40dff5ac0fb9d3edd37f777b6e871b9587722457
[ "Apache-2.0" ]
null
null
null
configs/defect/cascade_rcnn_x101_64x4d_fpn_20e_coco.py
zwqnju/mmdetection
40dff5ac0fb9d3edd37f777b6e871b9587722457
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../cascade_rcnn/cascade_rcnn_x101_64x4d_fpn_20e_coco.py' ] dataset_type = 'DefectDataset' classes = ( "边异常", "角异常", "白色点瑕疵", "浅色块瑕疵", "深色点块瑕疵", "光圈瑕疵" ) data_root = '/media/samba/weiqiang/Datasets/dataset/' data = dict( samples_per_gpu=2, workers_per_gpu=2, train=dict( type=dataset_type, classes=classes, data_root=data_root + 'tile_round1_train_20201231/', ann_file=data_root + 'tile_round1_train_20201231/train_annos.json', img_prefix=data_root + 'tile_round1_train_20201231/train_imgs/', ), val=dict( type=dataset_type, classes=classes, data_root=data_root + 'tile_round1_train_20201231/', ann_file=data_root + 'tile_round1_train_20201231/train_annos.json', img_prefix=data_root + 'tile_round1_train_20201231/train_imgs/', ), test=dict( type=dataset_type, classes=classes, data_root=data_root + 'tile_round1_testA_20201231/', ann_file=None, img_prefix=data_root + 'tile_round1_testA_20201231/testA_imgs/', ), ) model = dict( roi_head=dict( bbox_head=[ dict( type='Shared2FCBBoxHead', in_channels=256, fc_out_channels=1024, roi_feat_size=7, num_classes=6, bbox_coder=dict( type='DeltaXYWHBBoxCoder', target_means=[0.0, 0.0, 0.0, 0.0], target_stds=[0.1, 0.1, 0.2, 0.2]), reg_class_agnostic=True, loss_cls=dict( type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0), loss_bbox=dict(type='SmoothL1Loss', beta=1.0, loss_weight=1.0)), dict( type='Shared2FCBBoxHead', in_channels=256, fc_out_channels=1024, roi_feat_size=7, num_classes=6, bbox_coder=dict( type='DeltaXYWHBBoxCoder', target_means=[0.0, 0.0, 0.0, 0.0], target_stds=[0.05, 0.05, 0.1, 0.1]), reg_class_agnostic=True, loss_cls=dict( type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0), loss_bbox=dict(type='SmoothL1Loss', beta=1.0, loss_weight=1.0)), dict( type='Shared2FCBBoxHead', in_channels=256, fc_out_channels=1024, roi_feat_size=7, num_classes=6, bbox_coder=dict( type='DeltaXYWHBBoxCoder', target_means=[0.0, 0.0, 0.0, 0.0], target_stds=[0.033, 0.033, 0.067, 0.067]), reg_class_agnostic=True, loss_cls=dict( type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0), loss_bbox=dict(type='SmoothL1Loss', beta=1.0, loss_weight=1.0)) ] ) ) optimizer = dict( lr=0.02/4, ) evaluation = dict( metric='mAP', ) load_from = 'checkpoints/cascade_mask_rcnn_x101_64x4d_fpn_20e_coco_20200512_161033-bdb5126a.pth'
32.160377
96
0.520681
380
3,409
4.344737
0.263158
0.025439
0.032707
0.036342
0.79043
0.79043
0.730466
0.730466
0.730466
0.730466
0
0.103223
0.371957
3,409
106
96
32.160377
0.667912
0
0
0.60396
0
0
0.20176
0.134018
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
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
5
87137c9d0c9321a8df4dcd89c9de316439447dde
38
py
Python
Hola.py
JoshuaRoy/3240-labdemo
089093048a09dc3420cfcab0558564cdeb0b5e56
[ "MIT" ]
null
null
null
Hola.py
JoshuaRoy/3240-labdemo
089093048a09dc3420cfcab0558564cdeb0b5e56
[ "MIT" ]
null
null
null
Hola.py
JoshuaRoy/3240-labdemo
089093048a09dc3420cfcab0558564cdeb0b5e56
[ "MIT" ]
null
null
null
import helper helper.greeting("Hola!")
19
24
0.789474
5
38
6
0.8
0
0
0
0
0
0
0
0
0
0
0
0.052632
38
2
24
19
0.833333
0
0
0
0
0
0.128205
0
0
0
0
0
0
1
0
true
0
0.5
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
0
1
0
0
0
0
5
871c5ff5bb4a0f07ffed44c13457676d4a54ce92
78
py
Python
train.py
DrazenDodik/vh_execution_onpush
70bd309aa1e2da2603acd3a908ea557547dd2991
[ "MIT" ]
null
null
null
train.py
DrazenDodik/vh_execution_onpush
70bd309aa1e2da2603acd3a908ea557547dd2991
[ "MIT" ]
null
null
null
train.py
DrazenDodik/vh_execution_onpush
70bd309aa1e2da2603acd3a908ea557547dd2991
[ "MIT" ]
null
null
null
import os import argparse print("Updated train.py!") print("Testing changes")
15.6
26
0.769231
11
78
5.454545
0.818182
0
0
0
0
0
0
0
0
0
0
0
0.102564
78
5
27
15.6
0.857143
0
0
0
0
0
0.405063
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
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
0
1
0
5
874af8fec1ca589c89370f28ec5f91344b92e3ad
157
py
Python
reservations/exceptions.py
kkarolis/cct-subsilocus
b2fd38a184550203410aa29248a6e5d6160acc19
[ "MIT" ]
1
2020-03-04T18:23:30.000Z
2020-03-04T18:23:30.000Z
reservations/exceptions.py
kkarolis/cct-subsilocus
b2fd38a184550203410aa29248a6e5d6160acc19
[ "MIT" ]
5
2021-03-18T23:45:40.000Z
2021-06-10T18:27:09.000Z
reservations/exceptions.py
kkarolis/cct-subsilocus
b2fd38a184550203410aa29248a6e5d6160acc19
[ "MIT" ]
null
null
null
from django.core.exceptions import ValidationError class ReservationException(ValidationError): """General exception raised by apps business logic."""
26.166667
58
0.802548
16
157
7.875
0.9375
0
0
0
0
0
0
0
0
0
0
0
0.121019
157
5
59
31.4
0.913043
0.305732
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5