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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6dbdf2e07c031f3d6a37cda2fd33a518c30b5f29 | 4,454 | py | Python | PlutusOSS/data/tests.py | SzymonNastaly/PLUTUS-OSS | c932e07eb3604503edbde898633a0c20db265c9e | [
"MIT"
] | 1 | 2020-05-13T14:53:44.000Z | 2020-05-13T14:53:44.000Z | PlutusOSS/data/tests.py | SzymonNastaly/PLUTUS-OSS | c932e07eb3604503edbde898633a0c20db265c9e | [
"MIT"
] | 6 | 2021-03-18T20:54:59.000Z | 2022-02-10T07:09:07.000Z | PlutusOSS/data/tests.py | SzymonNastaly/PLUTUS-OSS | c932e07eb3604503edbde898633a0c20db265c9e | [
"MIT"
] | 2 | 2020-05-13T14:53:53.000Z | 2021-09-24T17:35:39.000Z | from django.contrib.auth.models import User
from rest_framework.authtoken.models import Token
from rest_framework.test import APITestCase
# sample company data
company_data = """{"name": "TEST 1 AG", "ticker": "T1A.DE", "current_liab": 1000000, "equity": 1000000,
"total_assets": 1000000, "revenue12":... | 50.044944 | 117 | 0.663224 | 530 | 4,454 | 5.430189 | 0.243396 | 0.038221 | 0.02606 | 0.029187 | 0.798124 | 0.756776 | 0.729673 | 0.716122 | 0.703266 | 0.653231 | 0 | 0.09154 | 0.190615 | 4,454 | 88 | 118 | 50.613636 | 0.706796 | 0.079704 | 0 | 0.655172 | 0 | 0.172414 | 0.375553 | 0 | 0 | 0 | 0 | 0.011364 | 0.137931 | 1 | 0.137931 | false | 0.103448 | 0.051724 | 0 | 0.224138 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
6dcc89c7aaf4cf6be676e4acce586c215616392a | 3,626 | py | Python | hangman.py | rbutt15/python-scripts | 37da2e3881f5e5f20484cc7f3e277e2db37b3a2e | [
"MIT"
] | null | null | null | hangman.py | rbutt15/python-scripts | 37da2e3881f5e5f20484cc7f3e277e2db37b3a2e | [
"MIT"
] | null | null | null | hangman.py | rbutt15/python-scripts | 37da2e3881f5e5f20484cc7f3e277e2db37b3a2e | [
"MIT"
] | null | null | null |
print("Welcome to Hangman")
name=input("What's your name?")
print("Hi "+name)
print("_ _ _ _ _")
firstletter=input("What's your first letter?")
if firstletter==("a"):
print("a _ _ _ _")
secondletter=input("What's your second letter?")
if firstletter==("a"):
if secondletter==("p"):
print(... | 26.086331 | 53 | 0.519029 | 386 | 3,626 | 4.512953 | 0.072539 | 0.293915 | 0.156142 | 0.15155 | 0.912744 | 0.91217 | 0.91217 | 0.91217 | 0.91217 | 0.91217 | 0 | 0 | 0.275234 | 3,626 | 138 | 54 | 26.275362 | 0.662861 | 0 | 0 | 0.916031 | 0 | 0 | 0.185526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.427481 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 9 |
6de61e451c75bac0fc2181a08ffe8f7cdf717fce | 238,517 | py | Python | contoh/Hello_py3.py | MR-X-junior/pyenc | 3768481fd74e8c4a94f414df0792fb1fe16d36fe | [
"MIT"
] | 1 | 2021-03-31T08:21:05.000Z | 2021-03-31T08:21:05.000Z | contoh/Hello_py3.py | MR-X-junior/pyenc | 3768481fd74e8c4a94f414df0792fb1fe16d36fe | [
"MIT"
] | null | null | null | contoh/Hello_py3.py | MR-X-junior/pyenc | 3768481fd74e8c4a94f414df0792fb1fe16d36fe | [
"MIT"
] | 2 | 2021-05-21T01:42:50.000Z | 2021-11-23T12:29:07.000Z | #coding=utf-8
#enskripsi By Rahmat
#Di Buat Pada Sat Mar 20 10:51:04 2021
# Contoh Script Yang Sudah Di Enskripsi
# Python 3
import marshal
exec(marshal.loads(b'\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\x... | 34,073.857143 | 238,377 | 0.755837 | 48,917 | 238,517 | 3.685304 | 0.026085 | 0.325904 | 0.348919 | 0.348936 | 0.927926 | 0.919123 | 0.9085 | 0.894516 | 0.879101 | 0.859081 | 0 | 0.30499 | 0.002918 | 238,517 | 7 | 238,377 | 34,073.857143 | 0.453034 | 0.000482 | 0 | 0 | 0 | 80.5 | 0.712913 | 0.709586 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 20 |
09c6e7053b39e56e0a08a5fb88d86f76f24a4def | 68,586 | py | Python | benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/backup_results_unknownr/cmp_gamess/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/backup_results_unknownr/cmp_gamess/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/backup_results_unknownr/cmp_gamess/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | power = {'BUSES': {'Area': 1.33155,
'Bus/Area': 1.33155,
'Bus/Gate Leakage': 0.00662954,
'Bus/Peak Dynamic': 0.0,
'Bus/Runtime Dynamic': 0.0,
'Bus/Subthreshold Leakage': 0.0691322,
'Bus/Subthreshold Leakage with power gating': 0.0259246,
'Gate... | 75.039387 | 124 | 0.681976 | 8,082 | 68,586 | 5.78149 | 0.067681 | 0.123614 | 0.112999 | 0.093481 | 0.939327 | 0.931302 | 0.918653 | 0.886573 | 0.861961 | 0.842786 | 0 | 0.131573 | 0.224404 | 68,586 | 914 | 125 | 75.039387 | 0.746818 | 0 | 0 | 0.642232 | 0 | 0 | 0.657632 | 0.048114 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
09cfb48b7d5e827369dac9d2381150f1113bd5d6 | 2,702 | py | Python | 2019/02/test_interpreter.py | cheshyre/advent-of-code | 2ccc1529bbf8b0deed938d0783deb09dcc8f5e50 | [
"Unlicense"
] | 1 | 2021-12-03T07:20:23.000Z | 2021-12-03T07:20:23.000Z | 2019/02/test_interpreter.py | cheshyre/advent-of-code | 2ccc1529bbf8b0deed938d0783deb09dcc8f5e50 | [
"Unlicense"
] | null | null | null | 2019/02/test_interpreter.py | cheshyre/advent-of-code | 2ccc1529bbf8b0deed938d0783deb09dcc8f5e50 | [
"Unlicense"
] | null | null | null | """Module to test interpreter."""
import unittest
import interpreter
class InterpreterPart1Test(unittest.TestCase):
"""Class to test interpreter based on examples in Day 2 Part 1."""
def test_program1_command1(self):
"""Test the first command of the first program."""
memory = "1,9,10,3,2,3,... | 34.202532 | 72 | 0.636936 | 399 | 2,702 | 4.170426 | 0.150376 | 0.064904 | 0.100962 | 0.027043 | 0.832332 | 0.775841 | 0.761418 | 0.761418 | 0.730769 | 0.701923 | 0 | 0.098848 | 0.228719 | 2,702 | 78 | 73 | 34.641026 | 0.699616 | 0.145448 | 0 | 0.755556 | 0 | 0.2 | 0.127425 | 0.123457 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.133333 | false | 0 | 0.044444 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
09d473a5eb26d5685ec84dc4d3aebff03b2c9bc9 | 168 | py | Python | tests/test_sample.py | emfloyd2/python-project-template | 6ab96f74ef50b38806c003cd88dcafd3da40a142 | [
"MIT"
] | null | null | null | tests/test_sample.py | emfloyd2/python-project-template | 6ab96f74ef50b38806c003cd88dcafd3da40a142 | [
"MIT"
] | null | null | null | tests/test_sample.py | emfloyd2/python-project-template | 6ab96f74ef50b38806c003cd88dcafd3da40a142 | [
"MIT"
] | null | null | null | import pytest
import sample
@pytest.fixture
def dummy_value():
return 1
def test_some_function(dummy_value):
assert sample.some_function() == dummy_value
| 12 | 48 | 0.75 | 23 | 168 | 5.217391 | 0.565217 | 0.25 | 0.283333 | 0.366667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007194 | 0.172619 | 168 | 13 | 49 | 12.923077 | 0.856115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.285714 | false | 0 | 0.285714 | 0.142857 | 0.714286 | 0 | 1 | 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 | 1 | 0 | 0 | 7 |
1139291a7e02ff22e5eb3bbdc1c392b89d770966 | 601 | py | Python | library/tests/test_dimensions.py | rickyphewitt/st7789-python | 5c16baecb8844b1807da221b40d03dec500b3a9e | [
"MIT"
] | 118 | 2019-11-26T19:44:01.000Z | 2022-03-28T15:24:53.000Z | library/tests/test_dimensions.py | rickyphewitt/st7789-python | 5c16baecb8844b1807da221b40d03dec500b3a9e | [
"MIT"
] | 18 | 2019-10-30T14:43:20.000Z | 2022-02-15T23:46:26.000Z | library/tests/test_dimensions.py | rickyphewitt/st7789-python | 5c16baecb8844b1807da221b40d03dec500b3a9e | [
"MIT"
] | 48 | 2020-01-31T16:17:47.000Z | 2022-03-26T19:38:14.000Z | def test_240_240(GPIO, spidev):
import ST7789
display = ST7789.ST7789(port=0, cs=0, dc=24, width=240, height=240, rotation=0)
assert display.width == 240
assert display.height == 240
def test_240_135(GPIO, spidev):
import ST7789
display = ST7789.ST7789(port=0, cs=0, dc=24, width=240, height=13... | 30.05 | 83 | 0.68386 | 93 | 601 | 4.354839 | 0.204301 | 0.192593 | 0.118519 | 0.162963 | 0.82716 | 0.82716 | 0.82716 | 0.730864 | 0.730864 | 0.488889 | 0 | 0.216049 | 0.191348 | 601 | 19 | 84 | 31.631579 | 0.617284 | 0 | 0 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 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 | 7 |
3a215566fbbf76d2c7abcaffe67f37542e7d0c84 | 86 | py | Python | transformations/resize.py | 1mplex/segmentation_image_augmentation | bd93c1589078247c0c7aff8556afc16a7e15be39 | [
"MIT"
] | 15 | 2020-07-21T08:57:38.000Z | 2022-01-24T21:59:10.000Z | transformations/resize.py | el-lilya/segmentation_image_augmentation | c16604274a220e00a6fbc4d653ab9c90276a8eba | [
"MIT"
] | 1 | 2021-02-15T21:24:11.000Z | 2021-02-15T21:24:11.000Z | transformations/resize.py | el-lilya/segmentation_image_augmentation | c16604274a220e00a6fbc4d653ab9c90276a8eba | [
"MIT"
] | 9 | 2021-07-01T02:42:22.000Z | 2022-01-24T21:59:12.000Z | import cv2
def resize(img, shape):
return cv2.resize(img, (shape[1], shape[0]))
| 14.333333 | 48 | 0.651163 | 14 | 86 | 4 | 0.642857 | 0.321429 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056338 | 0.174419 | 86 | 5 | 49 | 17.2 | 0.732394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 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 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 7 |
e905c392a6c5f12f411050efedf3003acabd49db | 146 | py | Python | quests/professions/fishing.py | 0rtis/dfk | 4c85ccc1e78f4d6fd1bb0915024af56ec4529382 | [
"MIT"
] | 90 | 2021-10-17T19:36:45.000Z | 2022-03-31T17:19:43.000Z | quests/professions/fishing.py | neelfirst/dfk | 52f9c5288a0637f507cb3e42b680c13f776ac4c0 | [
"MIT"
] | 13 | 2021-11-13T00:19:31.000Z | 2022-03-20T15:13:22.000Z | quests/professions/fishing.py | neelfirst/dfk | 52f9c5288a0637f507cb3e42b680c13f776ac4c0 | [
"MIT"
] | 71 | 2021-11-05T03:00:41.000Z | 2022-03-30T06:16:25.000Z | QUEST_CONTRACT_ADDRESS_V1 = '0xE259e8386d38467f0E7fFEdB69c3c9C935dfaeFc'
QUEST_CONTRACT_ADDRESS_V2 = '0xADFFD2A255B3792873a986895c6312e8FbacFc8B'
| 48.666667 | 72 | 0.917808 | 10 | 146 | 12.8 | 0.7 | 0.203125 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.342857 | 0.041096 | 146 | 2 | 73 | 73 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0.575342 | 0.575342 | 0 | 0 | 0.575342 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
3acbc54b08a74daefa834fd0c99f8ba75b9ae6e2 | 4,745 | py | Python | tests/parser/bug.46.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | tests/parser/bug.46.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | tests/parser/bug.46.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | input = """
% Reported by Axel Polleres to trigger a bug with -OR.
true.
%actiontime(T) :- T < #maxint, #int(T).
location(t) :- true.
location(B) :- block(B).
% blocksC2.dl without free variables
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Blocks world domain description in C
% Elementary Act... | 28.076923 | 92 | 0.572603 | 858 | 4,745 | 3.159674 | 0.122378 | 0.029509 | 0.044264 | 0.047953 | 0.995942 | 0.995942 | 0.995942 | 0.995942 | 0.995942 | 0.995942 | 0 | 0.036721 | 0.185037 | 4,745 | 168 | 93 | 28.244048 | 0.664339 | 0 | 0 | 0.983607 | 0 | 0.196721 | 0.993467 | 0.085985 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
c92b092a43e9d0806f5332f51ab131ad38326d1f | 3,137 | py | Python | app_test.py | amir734jj/ping-pong-reservation-app | de32215f6829e8a23d19a471ab82e03659cd38da | [
"MIT"
] | 1 | 2018-04-22T05:01:12.000Z | 2018-04-22T05:01:12.000Z | app_test.py | amir734jj/ping-pong-reservation-app | de32215f6829e8a23d19a471ab82e03659cd38da | [
"MIT"
] | null | null | null | app_test.py | amir734jj/ping-pong-reservation-app | de32215f6829e8a23d19a471ab82e03659cd38da | [
"MIT"
] | null | null | null | import unittest, datetime
from app import User, validate_start_end_time
class UserTest(unittest.TestCase):
def test_validate_start_end_time_equal_false(self):
# Arrange
start_time = datetime.datetime.now()
end_time = start_time + datetime.timedelta(days=1)
_users = [User("", str(st... | 34.855556 | 119 | 0.650303 | 395 | 3,137 | 4.858228 | 0.116456 | 0.120375 | 0.207921 | 0.208442 | 0.877019 | 0.877019 | 0.846795 | 0.828557 | 0.818134 | 0.818134 | 0 | 0.022194 | 0.238763 | 3,137 | 90 | 120 | 34.855556 | 0.781407 | 0.042078 | 0 | 0.510638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148936 | 1 | 0.148936 | false | 0 | 0.042553 | 0 | 0.212766 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
c931e71b77d7ce1c2b8accfbcb757028184b06c5 | 39 | py | Python | src/lib/Bastion.py | DTenore/skulpt | 098d20acfb088d6db85535132c324b7ac2f2d212 | [
"MIT"
] | 2,671 | 2015-01-03T08:23:25.000Z | 2022-03-31T06:15:48.000Z | src/lib/Bastion.py | wakeupmuyunhe/skulpt | a8fb11a80fb6d7c016bab5dfe3712517a350b347 | [
"MIT"
] | 972 | 2015-01-05T08:11:00.000Z | 2022-03-29T13:47:15.000Z | src/lib/Bastion.py | wakeupmuyunhe/skulpt | a8fb11a80fb6d7c016bab5dfe3712517a350b347 | [
"MIT"
] | 845 | 2015-01-03T19:53:36.000Z | 2022-03-29T18:34:22.000Z | import _sk_fail; _sk_fail._("Bastion")
| 19.5 | 38 | 0.769231 | 6 | 39 | 4.166667 | 0.666667 | 0.48 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 39 | 1 | 39 | 39 | 0.694444 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 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 | 1 | 0 | 0 | 7 |
c96dcd75a62a72db7e9ccc81fe9cea2ff1b23b25 | 83,769 | py | Python | tests/brainload/test_freesurferdata.py | dfsp-spirit/cogload | ff9d19803c2e0c9aea248a45380959c2758ba83a | [
"MIT"
] | 8 | 2018-11-11T11:41:19.000Z | 2022-02-09T10:50:34.000Z | tests/brainload/test_freesurferdata.py | dfsp-spirit/cogload | ff9d19803c2e0c9aea248a45380959c2758ba83a | [
"MIT"
] | 8 | 2018-11-05T10:11:09.000Z | 2019-11-05T20:34:19.000Z | tests/brainload/test_freesurferdata.py | dfsp-spirit/cogload | ff9d19803c2e0c9aea248a45380959c2758ba83a | [
"MIT"
] | 1 | 2020-07-20T06:43:57.000Z | 2020-07-20T06:43:57.000Z | import os
import pytest
import numpy as np
from numpy.testing import assert_array_equal, assert_allclose
import brainload as bl
import brainload.freesurferdata as fsd
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
TEST_DATA_DIR = os.path.join(THIS_DIR, os.pardir, 'test_data')
# Respect the environment variabl... | 58.826545 | 311 | 0.758861 | 12,751 | 83,769 | 4.587013 | 0.03733 | 0.06962 | 0.051223 | 0.027287 | 0.897451 | 0.869411 | 0.850981 | 0.82766 | 0.814102 | 0.796526 | 0 | 0.024921 | 0.132006 | 83,769 | 1,423 | 312 | 58.867885 | 0.779483 | 0.049052 | 0 | 0.611162 | 0 | 0.021958 | 0.192076 | 0.053276 | 0 | 0 | 0 | 0 | 0.574565 | 1 | 0.087832 | false | 0 | 0.005489 | 0 | 0.093321 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6ea8903480dbc0728b0877f1ac51cc33d7760100 | 32,928 | py | Python | iiif_api_services/tests/test_sequence.py | utlib/utl_iiif_api | e2d77ad5a677487e205b840cc800af46b4697eab | [
"Apache-2.0"
] | 4 | 2019-12-08T18:39:37.000Z | 2021-11-09T19:35:44.000Z | iiif_api_services/tests/test_sequence.py | utlib/utl_iiif_api | e2d77ad5a677487e205b840cc800af46b4697eab | [
"Apache-2.0"
] | 2 | 2020-06-05T16:45:31.000Z | 2021-06-10T17:30:00.000Z | iiif_api_services/tests/test_sequence.py | utlib/utl_iiif_api | e2d77ad5a677487e205b840cc800af46b4697eab | [
"Apache-2.0"
] | 1 | 2019-12-08T18:45:52.000Z | 2019-12-08T18:45:52.000Z | import os
import json
from test_addons import APIMongoTestCase
from rest_framework import status
from rest_framework_jwt.settings import api_settings
from django.conf import settings # import the settings file to get IIIF_BASE_URL & IIIF_CONTEXT
from iiif_api_services.models.User import User
from iiif_api_services.mod... | 69.910828 | 179 | 0.719965 | 4,065 | 32,928 | 5.623124 | 0.055597 | 0.049873 | 0.058273 | 0.05696 | 0.898373 | 0.880436 | 0.861843 | 0.820194 | 0.804314 | 0.768702 | 0 | 0.016628 | 0.147048 | 32,928 | 470 | 180 | 70.059574 | 0.79723 | 0.042213 | 0 | 0.601467 | 0 | 0 | 0.175143 | 0.01781 | 0 | 0 | 0 | 0 | 0.281174 | 1 | 0.102689 | false | 0.0978 | 0.02445 | 0 | 0.141809 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
42ba4c7ec2b3b1b7e0962790ae2ce572378af352 | 23 | py | Python | Unit 3/3.4/3.4.5 Add Parentheses.py | shashwat73/cse | 60e49307e57105cf9916c7329f53f891c5e81fdb | [
"MIT"
] | 1 | 2021-04-08T14:02:49.000Z | 2021-04-08T14:02:49.000Z | Unit 3/3.4/3.4.5 Add Parentheses.py | shashwat73/cse | 60e49307e57105cf9916c7329f53f891c5e81fdb | [
"MIT"
] | null | null | null | Unit 3/3.4/3.4.5 Add Parentheses.py | shashwat73/cse | 60e49307e57105cf9916c7329f53f891c5e81fdb | [
"MIT"
] | null | null | null | print 2 + 3 * (4 + 8)
| 11.5 | 22 | 0.391304 | 5 | 23 | 1.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 0.391304 | 23 | 1 | 23 | 23 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 1 | 1 | 1 | 1 | null | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 8 |
6e4244249bd865c5a0a686a46724e3a3033a2b12 | 16,261 | py | Python | sdk/python/pulumi_github/repository_environment.py | pulumi/pulumi-github | 303ed7a28cbfe6ba1db75b3b365dcfa0b00e6e91 | [
"ECL-2.0",
"Apache-2.0"
] | 20 | 2020-04-27T15:05:01.000Z | 2022-02-08T00:28:32.000Z | sdk/python/pulumi_github/repository_environment.py | pulumi/pulumi-github | 303ed7a28cbfe6ba1db75b3b365dcfa0b00e6e91 | [
"ECL-2.0",
"Apache-2.0"
] | 103 | 2020-05-01T17:36:32.000Z | 2022-03-31T15:26:35.000Z | sdk/python/pulumi_github/repository_environment.py | pulumi/pulumi-github | 303ed7a28cbfe6ba1db75b3b365dcfa0b00e6e91 | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2020-06-24T19:15:02.000Z | 2021-11-26T08:05:46.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import ... | 43.948649 | 193 | 0.668963 | 1,649 | 16,261 | 6.370528 | 0.111583 | 0.073298 | 0.070538 | 0.02713 | 0.804093 | 0.777249 | 0.761828 | 0.740409 | 0.717373 | 0.704522 | 0 | 0.00008 | 0.235533 | 16,261 | 369 | 194 | 44.067751 | 0.844984 | 0.272 | 0 | 0.694175 | 1 | 0 | 0.166849 | 0.110353 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15534 | false | 0.004854 | 0.033981 | 0.029126 | 0.281553 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
95383eca678e295f3aea372162b89be183a932de | 1,934 | py | Python | dataStateAccess/BookDTO.py | vishu221b/bookme-flask-REST-API-Collection | 9ee923e13d786af9b11421370edac718743855af | [
"MIT"
] | null | null | null | dataStateAccess/BookDTO.py | vishu221b/bookme-flask-REST-API-Collection | 9ee923e13d786af9b11421370edac718743855af | [
"MIT"
] | null | null | null | dataStateAccess/BookDTO.py | vishu221b/bookme-flask-REST-API-Collection | 9ee923e13d786af9b11421370edac718743855af | [
"MIT"
] | null | null | null | def book_dto(book):
try:
if not book:
return None
return {
'id': str(book.pk),
'book_name': book.name,
'summary': book.summary if book.summary else "",
'author': book.author,
'book_genre': book.genre,
'barcode': book... | 33.344828 | 87 | 0.546536 | 224 | 1,934 | 4.473214 | 0.1875 | 0.087824 | 0.035928 | 0.04491 | 0.820359 | 0.786427 | 0.786427 | 0.786427 | 0.786427 | 0.612774 | 0 | 0 | 0.332472 | 1,934 | 57 | 88 | 33.929825 | 0.776143 | 0 | 0 | 0.716981 | 0 | 0 | 0.22544 | 0.012927 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0 | 0 | 0 | 0.150943 | 0.056604 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
95438238d213adaf1c5202dbda477eae1e401ba3 | 20,114 | py | Python | cjaasPythonClient/admin-apis/swagger_client/api/account_api.py | kat-mulberries/cjaas-sdk | 11dc39c9e2058d1a6c900ad0ef4236a984f8aac5 | [
"Apache-2.0"
] | 4 | 2021-04-28T16:33:09.000Z | 2022-01-12T00:19:06.000Z | cjaasPythonClient/admin-apis/swagger_client/api/account_api.py | kat-mulberries/cjaas-sdk | 11dc39c9e2058d1a6c900ad0ef4236a984f8aac5 | [
"Apache-2.0"
] | 2 | 2021-07-06T15:35:59.000Z | 2021-12-16T16:52:34.000Z | cjaasPythonClient/admin-apis/swagger_client/api/account_api.py | kat-mulberries/cjaas-sdk | 11dc39c9e2058d1a6c900ad0ef4236a984f8aac5 | [
"Apache-2.0"
] | 7 | 2021-05-13T20:15:21.000Z | 2021-12-16T10:28:02.000Z | # coding: utf-8
"""
Azure Functions OpenAPI Extension
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absol... | 39.516699 | 129 | 0.621855 | 2,183 | 20,114 | 5.502061 | 0.079249 | 0.04729 | 0.038298 | 0.044959 | 0.9458 | 0.941554 | 0.938473 | 0.928982 | 0.925985 | 0.923487 | 0 | 0.01596 | 0.292881 | 20,114 | 508 | 130 | 39.594488 | 0.828517 | 0.34563 | 0 | 0.814126 | 1 | 0 | 0.196961 | 0.058386 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040892 | false | 0 | 0.01487 | 0 | 0.115242 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
954d67ef9d42489de3495d7e2f20bee778cd0cb0 | 208 | py | Python | carball/output_generation/__init__.py | twobackfromtheend/carball | 6dcc3f7f0f2266cc3e0a3de24deaac2aec392b73 | [
"Apache-2.0"
] | null | null | null | carball/output_generation/__init__.py | twobackfromtheend/carball | 6dcc3f7f0f2266cc3e0a3de24deaac2aec392b73 | [
"Apache-2.0"
] | null | null | null | carball/output_generation/__init__.py | twobackfromtheend/carball | 6dcc3f7f0f2266cc3e0a3de24deaac2aec392b73 | [
"Apache-2.0"
] | null | null | null | from carball.output_generation.data_frame_generation.data_frame import create_data_frame
from carball.output_generation.proto_generation.game import create_game
__all__ = ['create_game', 'create_data_frame'] | 52 | 88 | 0.875 | 29 | 208 | 5.724138 | 0.37931 | 0.216867 | 0.204819 | 0.325301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057692 | 208 | 4 | 89 | 52 | 0.846939 | 0 | 0 | 0 | 0 | 0 | 0.133971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
9567c349cb0ecb0b4b59cebc4efa1c98882ad8d4 | 39 | py | Python | Compiler Design Lab/ChocoPy_LLVM_Compiler/tests/parse/bad_inner_class2.py | Abhishek-Aditya-bs/Lab-Projects-and-Assignments | fd2681a1c7453367a4df1790e58afb312f13998c | [
"MIT"
] | 7 | 2021-08-28T18:20:45.000Z | 2022-02-01T07:35:59.000Z | Compiler Design Lab/ChocoPy_LLVM_Compiler/tests/parse/bad_inner_class2.py | Abhishek-Aditya-bs/Lab-Projects-and-Assignments | fd2681a1c7453367a4df1790e58afb312f13998c | [
"MIT"
] | 1 | 2020-05-30T17:57:11.000Z | 2020-05-30T20:44:53.000Z | tests/parse/bad_inner_class2.py | yangdanny97/chocopy-python-frontend | d0fb63fc744771640fa4d06076743f42089899c1 | [
"MIT"
] | 2 | 2022-02-05T06:16:16.000Z | 2022-02-24T11:07:09.000Z | def f()->int:
class C:
pass | 13 | 13 | 0.435897 | 6 | 39 | 2.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.410256 | 39 | 3 | 14 | 13 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0.333333 | 0 | 0 | 0.666667 | 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 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 7 |
9578063d83cdffc15a89b5358873cddc2358d974 | 2,145 | py | Python | src/data/pretty_test_target.py | morgannewellsun/Reverse-Conway | 1750bf6ab96b8d6ccc1d8905264097e091adb82c | [
"Unlicense"
] | 1 | 2022-03-13T22:44:53.000Z | 2022-03-13T22:44:53.000Z | src/data/pretty_test_target.py | morgannewellsun/Reverse-Conway | 1750bf6ab96b8d6ccc1d8905264097e091adb82c | [
"Unlicense"
] | null | null | null | src/data/pretty_test_target.py | morgannewellsun/Reverse-Conway | 1750bf6ab96b8d6ccc1d8905264097e091adb82c | [
"Unlicense"
] | null | null | null | import numpy as np
pretty_test_target = np.array(
[[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, ... | 73.965517 | 81 | 0.323077 | 642 | 2,145 | 1.076324 | 0.021807 | 1.412446 | 1.984081 | 2.489146 | 0.904486 | 0.904486 | 0.904486 | 0.904486 | 0.904486 | 0.904486 | 0 | 0.45704 | 0.354312 | 2,145 | 28 | 82 | 76.607143 | 0.041877 | 0 | 0 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.035714 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 13 |
95a43db8f9e323207325e75c5f40df33bb6b452d | 1,503 | py | Python | mentoring/migrations/0003_auto_20161016_1818.py | TomWerner/AlumniMentoring | d4bac09fc768232f0795a0672eb041a2225118ae | [
"MIT"
] | 2 | 2016-10-19T17:04:53.000Z | 2017-07-23T21:49:34.000Z | mentoring/migrations/0003_auto_20161016_1818.py | TomWerner/AlumniMentoring | d4bac09fc768232f0795a0672eb041a2225118ae | [
"MIT"
] | null | null | null | mentoring/migrations/0003_auto_20161016_1818.py | TomWerner/AlumniMentoring | d4bac09fc768232f0795a0672eb041a2225118ae | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-10-16 23:18
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mentoring', '0002_auto_20161016_1817'),
]
operations = [
migrations.AlterField... | 32.673913 | 74 | 0.612109 | 144 | 1,503 | 6.208333 | 0.333333 | 0.134228 | 0.167785 | 0.194631 | 0.785235 | 0.785235 | 0.725951 | 0.725951 | 0.725951 | 0.725951 | 0 | 0.04512 | 0.277445 | 1,503 | 45 | 75 | 33.4 | 0.778085 | 0.043247 | 0 | 0.789474 | 1 | 0 | 0.172822 | 0.116376 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.131579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
c28bceb1c95032cfb451884b49aa421437587537 | 5,751 | py | Python | netaddr/tests/ip/test_platform_osx.py | Rockly/netaddr | 9c3b71bf34f2132ced0e143d1a7f5efa706caf48 | [
"BSD-3-Clause"
] | 416 | 2015-01-02T18:23:32.000Z | 2020-01-17T02:08:01.000Z | netaddr/tests/ip/test_platform_osx.py | Rockly/netaddr | 9c3b71bf34f2132ced0e143d1a7f5efa706caf48 | [
"BSD-3-Clause"
] | 110 | 2015-01-07T16:14:40.000Z | 2020-01-08T08:14:11.000Z | netaddr/tests/ip/test_platform_osx.py | Rockly/netaddr | 9c3b71bf34f2132ced0e143d1a7f5efa706caf48 | [
"BSD-3-Clause"
] | 108 | 2015-02-25T09:47:31.000Z | 2020-01-16T14:24:08.000Z | import platform
import pytest
from netaddr import iprange_to_cidrs, IPNetwork, IPAddress, INET_PTON, AddrFormatError
from netaddr.strategy.ipv6 import int_to_str
@pytest.mark.skipif('sys.platform != "darwin"')
def test_ip_behaviour_osx():
assert iprange_to_cidrs('::1', '::255.255.255.254') == [
IPNetwor... | 36.630573 | 102 | 0.517649 | 848 | 5,751 | 3.477594 | 0.143868 | 0.078671 | 0.03764 | 0.09766 | 0.727026 | 0.720244 | 0.703967 | 0.703967 | 0.680909 | 0.680909 | 0 | 0.278364 | 0.226048 | 5,751 | 156 | 103 | 36.865385 | 0.384183 | 0.033038 | 0 | 0.680556 | 0 | 0 | 0.362196 | 0.052925 | 0 | 0 | 0.00324 | 0 | 0.041667 | 1 | 0.013889 | true | 0 | 0.027778 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c2b649f0295ef6c62d82e629c0521fc95bc860a1 | 5,099 | py | Python | tests/test_fields.py | bicyclemicycle/docxcompose | 2b8d07f545302e0730d8be514839a8f5cb3bf930 | [
"MIT"
] | 66 | 2017-09-15T17:28:48.000Z | 2022-03-30T18:08:22.000Z | tests/test_fields.py | bicyclemicycle/docxcompose | 2b8d07f545302e0730d8be514839a8f5cb3bf930 | [
"MIT"
] | 49 | 2017-10-13T07:23:19.000Z | 2022-03-30T08:21:52.000Z | tests/test_fields.py | 4teamwork/docxmerge | 1584b79c7ba6ef1c7477de2615c6564e11667b06 | [
"MIT"
] | 21 | 2019-01-23T14:45:52.000Z | 2022-03-21T08:15:30.000Z | from datetime import datetime
from docxcompose.properties import FieldBase
from docxcompose.utils import word_to_python_date_format
class FieldForTesting(FieldBase):
def _get_fieldname_string(self):
return self.node
class TestFieldNameParsing(object):
def test_can_parse_quoted_property_names(self)... | 42.140496 | 79 | 0.66464 | 667 | 5,099 | 4.802099 | 0.133433 | 0.096784 | 0.071183 | 0.094911 | 0.865439 | 0.851077 | 0.806744 | 0.78926 | 0.771776 | 0.757415 | 0 | 0.023904 | 0.212395 | 5,099 | 120 | 80 | 42.491667 | 0.773655 | 0 | 0 | 0.436782 | 0 | 0 | 0.252599 | 0 | 0 | 0 | 0 | 0 | 0.413793 | 1 | 0.195402 | false | 0 | 0.034483 | 0.011494 | 0.287356 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c2e8cdd1aa6660019650dc82f448bfe349de7ec0 | 1,229 | py | Python | test/regexp/python9.py | kylebarron/MagicPython | da6fa0793e2c85d3bf7709ff1d4f65ccf468db11 | [
"MIT"
] | 1,482 | 2015-10-16T21:59:32.000Z | 2022-03-30T11:44:40.000Z | test/regexp/python9.py | kylebarron/MagicPython | da6fa0793e2c85d3bf7709ff1d4f65ccf468db11 | [
"MIT"
] | 226 | 2015-10-15T15:53:44.000Z | 2022-03-25T03:08:27.000Z | test/regexp/python9.py | kylebarron/MagicPython | da6fa0793e2c85d3bf7709ff1d4f65ccf468db11 | [
"MIT"
] | 129 | 2015-10-20T02:41:49.000Z | 2022-03-22T01:44:36.000Z | a = r'foo[^]'
a = r'foo[]'
a : source.python
: source.python
= : keyword.operator.assignment.python, source.python
: source.python
r : source.python, storage.type.string.python, string.regexp.quoted.single.python
' : punctuation.definition.st... | 53.434783 | 109 | 0.644426 | 134 | 1,229 | 5.910448 | 0.134328 | 0.272727 | 0.272727 | 0.30303 | 0.987374 | 0.987374 | 0.987374 | 0.987374 | 0.987374 | 0.987374 | 0 | 0 | 0.238405 | 1,229 | 22 | 110 | 55.863636 | 0.846154 | 0 | 0 | 0.8 | 0 | 0.1 | 0.00895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
c2f2be91960d4a38ffbeef786ce4063823274bce | 44 | py | Python | tests/test_hueniversity_py.py | vermashivam679/hueniversity_py | 20a768cf7e04637e5b6d517d9ba544f64b1c8d7a | [
"MIT"
] | null | null | null | tests/test_hueniversity_py.py | vermashivam679/hueniversity_py | 20a768cf7e04637e5b6d517d9ba544f64b1c8d7a | [
"MIT"
] | null | null | null | tests/test_hueniversity_py.py | vermashivam679/hueniversity_py | 20a768cf7e04637e5b6d517d9ba544f64b1c8d7a | [
"MIT"
] | null | null | null | from hueniversity_py import hueniversity_py
| 22 | 43 | 0.909091 | 6 | 44 | 6.333333 | 0.666667 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 44 | 1 | 44 | 44 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 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 | 1 | 0 | 0 | 7 |
6c3730bb4df4c3fbccc2dbb911006dd686a734ee | 31,058 | py | Python | adaptive/interface/adaptive/Adaptive.py | scwolof/adaptive | 9f7475400aa0469778cb60d5ce9c95d9ca359174 | [
"MIT"
] | null | null | null | adaptive/interface/adaptive/Adaptive.py | scwolof/adaptive | 9f7475400aa0469778cb60d5ce9c95d9ca359174 | [
"MIT"
] | null | null | null | adaptive/interface/adaptive/Adaptive.py | scwolof/adaptive | 9f7475400aa0469778cb60d5ce9c95d9ca359174 | [
"MIT"
] | null | null | null | #
# Autogenerated by Thrift Compiler (0.11.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
from thrift.protocol.TProtocol import TProtocolException
from thrift.TRecursive impo... | 33.576216 | 134 | 0.603419 | 3,182 | 31,058 | 5.64362 | 0.054683 | 0.015035 | 0.027063 | 0.020047 | 0.826874 | 0.80304 | 0.769518 | 0.72948 | 0.714166 | 0.714166 | 0 | 0.00339 | 0.297057 | 31,058 | 924 | 135 | 33.612554 | 0.819165 | 0.020896 | 0 | 0.778711 | 1 | 0 | 0.038435 | 0.003011 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12605 | false | 0.007003 | 0.011204 | 0.037815 | 0.243697 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
6c658b35c800350570b0d4c585a72400755d3c24 | 179 | py | Python | examples/drjr-demo/core/admin.py | janos-gonye/django-rest-jwt-registration | d16389f66ae8a87bcb6ac7df51394329aa8e6a05 | [
"MIT"
] | null | null | null | examples/drjr-demo/core/admin.py | janos-gonye/django-rest-jwt-registration | d16389f66ae8a87bcb6ac7df51394329aa8e6a05 | [
"MIT"
] | 1 | 2022-03-15T00:12:58.000Z | 2022-03-18T22:15:51.000Z | examples/drjr-demo/core/admin.py | janos-gonye/django-rest-jwt-registration | d16389f66ae8a87bcb6ac7df51394329aa8e6a05 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth import get_user_model
admin.site.register(get_user_model(), UserAdmin)
| 25.571429 | 48 | 0.837989 | 27 | 179 | 5.407407 | 0.444444 | 0.205479 | 0.349315 | 0.287671 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089385 | 179 | 6 | 49 | 29.833333 | 0.895706 | 0 | 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 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
66da0cbe3636d1753e6e6b830912874754dac006 | 1,450 | py | Python | zkay/examples/scenarios/nested_if.py | nibau/zkay | da04760088767e05214aac2d2beee4cbf8ed77f6 | [
"MIT"
] | null | null | null | zkay/examples/scenarios/nested_if.py | nibau/zkay | da04760088767e05214aac2d2beee4cbf8ed77f6 | [
"MIT"
] | null | null | null | zkay/examples/scenarios/nested_if.py | nibau/zkay | da04760088767e05214aac2d2beee4cbf8ed77f6 | [
"MIT"
] | null | null | null | from zkay.examples.scenario import ScenarioBuilder
a = 'a'
sb = ScenarioBuilder('NestedIfStatements', 'code/NestedIfCond.zkay').set_users(a)
sb.set_deployment_transaction(owner=a)
sb.add_balance_assertion(0)
sb.add_state_assertion('val', user=a, should_decrypt=True, expected_value=False)
sb.add_state_assertion('res', u... | 46.774194 | 81 | 0.792414 | 236 | 1,450 | 4.584746 | 0.182203 | 0.092421 | 0.12939 | 0.245841 | 0.82902 | 0.726433 | 0.726433 | 0.726433 | 0.726433 | 0.68854 | 0 | 0.019048 | 0.058621 | 1,450 | 30 | 82 | 48.333333 | 0.773626 | 0 | 0 | 0.44 | 0 | 0 | 0.07931 | 0.015172 | 0 | 0 | 0 | 0 | 0.64 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
66e9c51385b0e2c94cb188b2969c91277ae6e563 | 6,009 | py | Python | academia_ai/neural_network/layers/sigmoid.py | Knuppknou/academia_AI | a6605150e9b1afc390c35230620f45c1e75464f5 | [
"MIT"
] | 4 | 2017-04-23T10:15:14.000Z | 2017-04-23T10:47:29.000Z | academia_ai/neural_network/layers/sigmoid.py | Knuppknou/academia_AI | a6605150e9b1afc390c35230620f45c1e75464f5 | [
"MIT"
] | null | null | null | academia_ai/neural_network/layers/sigmoid.py | Knuppknou/academia_AI | a6605150e9b1afc390c35230620f45c1e75464f5 | [
"MIT"
] | 3 | 2017-01-16T08:08:34.000Z | 2017-04-23T10:15:31.000Z | import numpy as np
class SigmoidLayer(object):
''' With the sigmoid function the data pixels are set on 0 or 1 generally.
tp is the turning point of the sigmoid function.
m is the slope of the function.
Todo: implement Gauss distribution
'''
class Sigmoid(object):
def sigmoid(x, ... | 35.982036 | 78 | 0.559993 | 852 | 6,009 | 3.807512 | 0.117371 | 0.033909 | 0.040691 | 0.038841 | 0.952528 | 0.948212 | 0.948212 | 0.948212 | 0.948212 | 0.946979 | 0 | 0.010829 | 0.323848 | 6,009 | 167 | 79 | 35.982036 | 0.787595 | 0.177068 | 0 | 0.851852 | 0 | 0 | 0.020936 | 0 | 0 | 0 | 0 | 0.023952 | 0 | 1 | 0.148148 | false | 0 | 0.009259 | 0.018519 | 0.287037 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
dd176ddd3f51326b348707b83102ecd51bc0ec99 | 25,829 | py | Python | bitcoinscript/samples.py | fungibit/bitcoinscript | ced6fb37dfa40eac7341826c758842e0ed7e7475 | [
"MIT"
] | 1 | 2017-10-25T17:11:44.000Z | 2017-10-25T17:11:44.000Z | bitcoinscript/samples.py | fungibit/bitcoinscript | ced6fb37dfa40eac7341826c758842e0ed7e7475 | [
"MIT"
] | 3 | 2017-03-10T05:27:29.000Z | 2017-04-07T16:06:28.000Z | bitcoinscript/samples.py | fungibit/bitcoinscript | ced6fb37dfa40eac7341826c758842e0ed7e7475 | [
"MIT"
] | null | null | null | """
Samples of real scripts from the blockchains.
Part of this file is GENERATED USING bin/gen_samples.py! (by running it and copy/pasting the output).
"""
from bitcoin.core.scripteval import SCRIPT_VERIFY_P2SH
from .script import ScriptType, outscript_from_raw, inscript_from_raw
####################################... | 134.526042 | 2,511 | 0.857989 | 575 | 25,829 | 38.394783 | 0.325217 | 0.006976 | 0.005888 | 0.006251 | 0.026181 | 0.023327 | 0.018118 | 0.009784 | 0.006432 | 0 | 0 | 0.614637 | 0.07631 | 25,829 | 191 | 2,512 | 135.230366 | 0.310713 | 0.026404 | 0 | 0.205298 | 1 | 0 | 0.840402 | 0.799795 | 0 | 1 | 0 | 0 | 0 | 1 | 0.019868 | false | 0 | 0.013245 | 0 | 0.059603 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
b0f1494d1fffbd2fe514cc063b8391c100e7364c | 916 | py | Python | src/django_auth_mafiasi/django_rest_framework/permissions.py | fsinfuhh/django_auth_mafiasi | f6226fb7a13883e5a57238e0295d5577d63a1bbf | [
"MIT"
] | 1 | 2021-01-26T14:54:10.000Z | 2021-01-26T14:54:10.000Z | src/django_auth_mafiasi/django_rest_framework/permissions.py | fsinfuhh/django_auth_mafiasi | f6226fb7a13883e5a57238e0295d5577d63a1bbf | [
"MIT"
] | 3 | 2021-11-09T17:08:13.000Z | 2021-11-16T11:53:57.000Z | src/django_auth_mafiasi/django_rest_framework/permissions.py | fsinfuhh/django_auth_mafiasi | f6226fb7a13883e5a57238e0295d5577d63a1bbf | [
"MIT"
] | null | null | null | from rest_framework.permissions import BasePermission
def get_user(request):
return request.user
class IsStaff(BasePermission):
"""
Grants permission if the logged-in user is considered staff
See https://docs.djangoproject.com/en/3.1/ref/contrib/auth/#django.contrib.auth.models.User.is_staff
""... | 29.548387 | 108 | 0.728166 | 124 | 916 | 5.266129 | 0.346774 | 0.073507 | 0.130168 | 0.153139 | 0.808576 | 0.744257 | 0.744257 | 0.744257 | 0.744257 | 0.744257 | 0 | 0.005277 | 0.172489 | 916 | 31 | 109 | 29.548387 | 0.856201 | 0.363537 | 0 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0.076923 | 0.384615 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 9 |
9fe80a4eb2cd7d73de93ab2fa229bf6f7b6b5c01 | 103,400 | py | Python | tests/simulations/system/test_system_packaged_vav.py | john-grando/pyExpandObjects | c08b1d1bc45684bc71c0f49b4d2f22c707cd4aa4 | [
"BSD-3-Clause"
] | null | null | null | tests/simulations/system/test_system_packaged_vav.py | john-grando/pyExpandObjects | c08b1d1bc45684bc71c0f49b4d2f22c707cd4aa4 | [
"BSD-3-Clause"
] | 1 | 2021-02-03T01:56:56.000Z | 2021-02-03T01:56:56.000Z | tests/simulations/system/test_system_packaged_vav.py | john-grando/pyExpandObjects | c08b1d1bc45684bc71c0f49b4d2f22c707cd4aa4 | [
"BSD-3-Clause"
] | 1 | 2022-01-11T18:31:05.000Z | 2022-01-11T18:31:05.000Z | from pathlib import Path
from tests.simulations import BaseSimulationTest
from src.epjson_handler import EPJSON
test_dir = Path(__file__).parent.parent.parent
schedule_objects = {
"Schedule:Compact": {
"Always0.8": {
"data": [
{
"field": "Through: 12/31"
... | 61.76822 | 129 | 0.689255 | 11,928 | 103,400 | 5.554158 | 0.030433 | 0.038521 | 0.065721 | 0.0832 | 0.951713 | 0.934596 | 0.924543 | 0.913042 | 0.905042 | 0.897404 | 0 | 0.011011 | 0.202466 | 103,400 | 1,673 | 130 | 61.80514 | 0.79236 | 0.006809 | 0 | 0.701597 | 0 | 0 | 0.382555 | 0.275101 | 0 | 0 | 0 | 0.000598 | 0.071566 | 1 | 0.060064 | false | 0 | 0.001917 | 0.000639 | 0.122684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b026aeb253107976fd67c65d85729e391e553787 | 125 | py | Python | parser.py | smdth/mimLab | 78a49c17a4e103841f49cd4b880561a490682864 | [
"0BSD"
] | null | null | null | parser.py | smdth/mimLab | 78a49c17a4e103841f49cd4b880561a490682864 | [
"0BSD"
] | null | null | null | parser.py | smdth/mimLab | 78a49c17a4e103841f49cd4b880561a490682864 | [
"0BSD"
] | null | null | null | #!/bin/env python
import sys
print sys.argv[1]
print sys.argv[1].split("[")
print sys.argv[1].split("[")[-1].split("]")[0]
| 15.625 | 46 | 0.616 | 22 | 125 | 3.5 | 0.454545 | 0.311688 | 0.467532 | 0.506494 | 0.467532 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044248 | 0.096 | 125 | 7 | 47 | 17.857143 | 0.637168 | 0.128 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.75 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
b029d2111e43d7122ccee5b19071cf1ac93c09d1 | 14,592 | py | Python | app/sqlalchemyclassnotes.py | sargentfrancesca/flasky | 0bea79fddb45f1279da7c468d1ae7f8a6a3e8c7f | [
"MIT"
] | 3 | 2017-12-12T19:38:07.000Z | 2022-01-17T09:54:07.000Z | app/sqlalchemyclassnotes.py | sargentfrancesca/flasky | 0bea79fddb45f1279da7c468d1ae7f8a6a3e8c7f | [
"MIT"
] | 117 | 2016-08-08T09:10:13.000Z | 2017-01-31T15:19:51.000Z | app/sqlalchemyclassnotes.py | sargentfrancesca/flasky | 0bea79fddb45f1279da7c468d1ae7f8a6a3e8c7f | [
"MIT"
] | 1 | 2020-05-01T08:36:42.000Z | 2020-05-01T08:36:42.000Z | >>> from sqlalchemy.orm.query import Query
>>>
>>> class VersionQuery(Query):
... def __iter__(self):
... return Query.__iter__(self.original())
... def original(self):
... mzero = self._mapper_zero()
... if mzero is not None:
... # crit = mzero.class_.ve... | 54.245353 | 1,279 | 0.748081 | 2,068 | 14,592 | 5.022727 | 0.070116 | 0.019255 | 0.043901 | 0.010109 | 0.980938 | 0.980841 | 0.977279 | 0.977279 | 0.977279 | 0.977279 | 0 | 0.023338 | 0.148438 | 14,592 | 268 | 1,280 | 54.447761 | 0.81257 | 0 | 0 | 0.820628 | 0 | 0 | 0.036585 | 0.014813 | 0 | 0 | 0 | 0 | 0.013453 | 0 | null | null | 0 | 0.116592 | null | null | 0.017937 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
b02b5563d04b5fb093b80e6fbd6c305a98da11b8 | 11,606 | py | Python | conf/settings.py | RosenLo/elasticsearch-agent | 920aec639cd0b377016ff8ea084e07d42da56a32 | [
"MIT"
] | 16 | 2016-12-25T16:11:26.000Z | 2019-05-24T08:17:36.000Z | conf/settings.py | rosenlo/elasticsearch-agent | 920aec639cd0b377016ff8ea084e07d42da56a32 | [
"MIT"
] | 1 | 2018-04-27T12:53:07.000Z | 2018-10-11T10:12:40.000Z | conf/settings.py | rosenlo/elasticsearch-agent | 920aec639cd0b377016ff8ea084e07d42da56a32 | [
"MIT"
] | 3 | 2017-10-17T12:18:03.000Z | 2018-12-24T07:34:00.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
Author: Rosen
Mail: rosenluov@gmail.com
File: settings.py
Created Time: 12/22/16 12:05
"""
import socket
import logging.config
from os import path
BASE_DIR = path.dirname(path.abspath(__file__))
pidfile = '/run/elasticsearch/es-agent.pid'
stdout = '/data/log/elasticsearch/e... | 33.64058 | 106 | 0.677236 | 1,491 | 11,606 | 4.934943 | 0.144869 | 0.06374 | 0.055722 | 0.058304 | 0.839087 | 0.818701 | 0.780103 | 0.723294 | 0.695026 | 0.691356 | 0 | 0.004493 | 0.17534 | 11,606 | 344 | 107 | 33.738372 | 0.764288 | 0.167069 | 0 | 0.695489 | 0 | 0.003759 | 0.674479 | 0.549375 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.003759 | 0.011278 | 0 | 0.011278 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b039d6c449f8b89629e38e6414393861dead04e7 | 2,755 | py | Python | Mundo 2_Estruturas de Controle/Desafio_59.py | VictorOliveira02/Desafios-Python3-Curso-em-Video | 53ee8bd814b816f3a21936677ef3f155b582843f | [
"MIT"
] | null | null | null | Mundo 2_Estruturas de Controle/Desafio_59.py | VictorOliveira02/Desafios-Python3-Curso-em-Video | 53ee8bd814b816f3a21936677ef3f155b582843f | [
"MIT"
] | null | null | null | Mundo 2_Estruturas de Controle/Desafio_59.py | VictorOliveira02/Desafios-Python3-Curso-em-Video | 53ee8bd814b816f3a21936677ef3f155b582843f | [
"MIT"
] | null | null | null | n1 = float(input('\nPRIMEIRO VALOR: '))
n2 = float(input('SEGUNDO VALOR: '))
print('\nOQUE DESEJA FAZER?')
menu = int(input('[ 1 ] - SOMAR\n[ 2 ] - MULTIPLICAR\n[ 3 ] - SUBTRAIR\n[ 4 ] - DIVIDIR\n[ 5 ] - MAIOR OU MENOR\n[ 6 ] - NOVOS NÚMEROS\n[ 7 ] - SAIR\n-> QUAL SUA OPÇÃO: '))
while menu != 7:
if menu == 1:
... | 67.195122 | 184 | 0.514338 | 436 | 2,755 | 3.25 | 0.130734 | 0.0494 | 0.084686 | 0.091743 | 0.865914 | 0.865914 | 0.84192 | 0.84192 | 0.84192 | 0.84192 | 0 | 0.055556 | 0.281307 | 2,755 | 40 | 185 | 68.875 | 0.660101 | 0 | 0 | 0.459459 | 0 | 0.27027 | 0.684574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.27027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
b0414d7127ad8f8fc1c7945e12df022d28641958 | 1,591 | py | Python | custom_components/fpl/sensor_DatesSensor.py | Dominic7/hass-fpl | fa5ba8a1b6f2e0b0c812edfe5568074c7c42a764 | [
"MIT"
] | 12 | 2020-10-16T15:13:03.000Z | 2022-03-23T15:16:00.000Z | custom_components/fpl/sensor_DatesSensor.py | Dominic7/hass-fpl | fa5ba8a1b6f2e0b0c812edfe5568074c7c42a764 | [
"MIT"
] | 27 | 2020-01-18T19:30:32.000Z | 2022-03-28T22:27:33.000Z | custom_components/fpl/sensor_DatesSensor.py | Dominic7/hass-fpl | fa5ba8a1b6f2e0b0c812edfe5568074c7c42a764 | [
"MIT"
] | 16 | 2020-06-16T16:45:37.000Z | 2022-03-24T03:26:03.000Z | from .fplEntity import FplEntity
class CurrentBillDateSensor(FplEntity):
def __init__(self, coordinator, config, account):
super().__init__(coordinator, config, account, "Current Bill Date")
@property
def state(self):
return self.getData("current_bill_date")
@property
def icon(se... | 23.746269 | 75 | 0.664991 | 170 | 1,591 | 5.941176 | 0.188235 | 0.168317 | 0.237624 | 0.09901 | 0.847525 | 0.817822 | 0.817822 | 0.817822 | 0.656436 | 0.478218 | 0 | 0 | 0.224387 | 1,591 | 66 | 76 | 24.106061 | 0.818477 | 0 | 0 | 0.652174 | 0 | 0 | 0.121936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.326087 | false | 0 | 0.021739 | 0.217391 | 0.673913 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 8 |
b04876548259452b6259438f71a18b658bd93dc8 | 162 | py | Python | schedulers/__init__.py | zihaomu/HID_2020_baseline | c2c3705707695a969d24aa52c225aa3f85c7a4f3 | [
"Apache-2.0"
] | 34 | 2020-08-26T14:53:13.000Z | 2021-09-26T12:41:55.000Z | schedulers/__init__.py | zihaomu/HID_2020_baseline | c2c3705707695a969d24aa52c225aa3f85c7a4f3 | [
"Apache-2.0"
] | 1 | 2020-10-10T14:29:25.000Z | 2020-10-10T19:28:03.000Z | schedulers/__init__.py | zihaomu/HID_2020_baseline | c2c3705707695a969d24aa52c225aa3f85c7a4f3 | [
"Apache-2.0"
] | 7 | 2020-09-06T06:49:45.000Z | 2022-03-11T11:13:39.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from .scheduler_factory import get_scheduler
| 23.142857 | 45 | 0.845679 | 20 | 162 | 6.05 | 0.5 | 0.247934 | 0.396694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 162 | 6 | 46 | 27 | 0.876812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.25 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
b04cc7f69196861f6ec242bf6e6c217670038389 | 3,361 | py | Python | tests/data.py | PDXFinder/pdcm-etl | 3caf80938d9e80f1fc7bb0724cba6ae68a8d315e | [
"Apache-2.0"
] | 1 | 2021-05-24T14:54:48.000Z | 2021-05-24T14:54:48.000Z | tests/data.py | PDXFinder/pdcm-etl | 3caf80938d9e80f1fc7bb0724cba6ae68a8d315e | [
"Apache-2.0"
] | 1 | 2021-06-01T10:46:07.000Z | 2021-06-01T10:46:07.000Z | tests/data.py | PDXFinder/pdcm-etl | 3caf80938d9e80f1fc7bb0724cba6ae68a8d315e | [
"Apache-2.0"
] | null | null | null | model_raw_data = [
{
"Field": "Description",
"model_id": "",
"host_strain": "",
"host_strain_full": "",
"engraftment_site": "",
"engraftment_type": "",
"sample_type": "",
"sample_state": "",
"passage_number": "",
"publications": ""
... | 28.008333 | 66 | 0.492115 | 282 | 3,361 | 5.478723 | 0.287234 | 0.090615 | 0.054369 | 0.044013 | 0.920388 | 0.895146 | 0.895146 | 0.895146 | 0.895146 | 0.895146 | 0 | 0.039965 | 0.322523 | 3,361 | 119 | 67 | 28.243697 | 0.63856 | 0 | 0 | 0.754237 | 0 | 0 | 0.488843 | 0.014281 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
b0592da7eda0ba99e9752b4f9f904b040939e2a5 | 12,658 | py | Python | pydass_vasp/electronic_structure/dos.py | terencezl/pydass_vasp | 77b5e285d6e9755f8f170159b7818a090a364917 | [
"MIT"
] | 9 | 2015-11-13T15:30:07.000Z | 2020-06-02T12:54:55.000Z | pydass_vasp/electronic_structure/dos.py | dlnguyen/pydass_vasp | 77b5e285d6e9755f8f170159b7818a090a364917 | [
"MIT"
] | 2 | 2016-02-26T16:49:48.000Z | 2018-05-23T02:22:37.000Z | pydass_vasp/electronic_structure/dos.py | dlnguyen/pydass_vasp | 77b5e285d6e9755f8f170159b7818a090a364917 | [
"MIT"
] | 3 | 2018-10-01T17:45:19.000Z | 2021-04-16T21:08:43.000Z | import re
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from .helpers import determine_tag_value, figs_assert, initiate_figs, plot_helper_settings
from ..xml_utils import parse
def get_tdos(filepath='DOSCAR', ISPIN=None, Ef=None, plot=False, xlim=None, ylim_upper=None, on_figs=None):
"""
... | 40.570513 | 119 | 0.523937 | 1,636 | 12,658 | 3.927262 | 0.122861 | 0.028016 | 0.016809 | 0.013697 | 0.864903 | 0.848093 | 0.825214 | 0.79144 | 0.79144 | 0.761089 | 0 | 0.031412 | 0.331016 | 12,658 | 311 | 120 | 40.700965 | 0.727326 | 0.173408 | 0 | 0.762136 | 0 | 0.009709 | 0.152398 | 0.072374 | 0 | 0 | 0 | 0 | 0.014563 | 1 | 0.009709 | false | 0 | 0.029126 | 0 | 0.048544 | 0.029126 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
05eaa18fc35ce8baad6675276fa26a7128985e46 | 1,777 | py | Python | modules/variables.py | EnzoKilm/pierre-feuille-ciseaux | d57442f5fea66b7cdc1fb23d08ef3cd552aa33f1 | [
"Apache-2.0"
] | null | null | null | modules/variables.py | EnzoKilm/pierre-feuille-ciseaux | d57442f5fea66b7cdc1fb23d08ef3cd552aa33f1 | [
"Apache-2.0"
] | null | null | null | modules/variables.py | EnzoKilm/pierre-feuille-ciseaux | d57442f5fea66b7cdc1fb23d08ef3cd552aa33f1 | [
"Apache-2.0"
] | null | null | null | # Variables
pierre = ['P', 'PIERRE', 'PIERE', 'PIERRES']
feuille = ['F', 'FEUILLE', 'FEUILL', 'FEUILLES']
ciseaux = ['C', 'CISEAUX', 'CISEAU', 'CISEAUS']
sc_o = 0
sc_j = 0
esp = "\n"
jouer = 1
oui = ['OUI', 'YES', 'YEP', 'UI', 'OIU']
non = ['NON', 'NO', 'NOPE', 'NNO', 'NONN']
partie = 1
# https://en.wikipedia.org/wiki/... | 53.848485 | 312 | 0.71919 | 286 | 1,777 | 4.391608 | 0.297203 | 0.907643 | 1.289809 | 1.624204 | 0.620223 | 0.620223 | 0.620223 | 0.620223 | 0.620223 | 0.620223 | 0 | 0.399377 | 0.096792 | 1,777 | 32 | 313 | 55.53125 | 0.383178 | 0.079347 | 0 | 0 | 0 | 0.24 | 0.755528 | 0.572482 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
af1495ef7dca18f425b8fa6c6348f33073c93576 | 1,043 | py | Python | echoError.py | wgr5600133/kmail | b5a69924098189b85ebad12e649bc202c3820bee | [
"MIT"
] | 2 | 2020-07-30T23:21:07.000Z | 2020-07-30T23:21:10.000Z | echoError.py | wgr5600133/kmail | b5a69924098189b85ebad12e649bc202c3820bee | [
"MIT"
] | null | null | null | echoError.py | wgr5600133/kmail | b5a69924098189b85ebad12e649bc202c3820bee | [
"MIT"
] | null | null | null | <<<<<<< HEAD
<<<<<<< HEAD
import click
def startStatment(statement):
click.echo(" ")
click.echo(click.style(statement, fg='green'))
def finishStatement(statement):
click.echo(" ")
click.echo(click.style(statement, fg='green'))
def errorStatement(statement):
click.echo(click.style(statement, fg='... | 22.673913 | 50 | 0.688399 | 112 | 1,043 | 6.410714 | 0.125 | 0.188022 | 0.292479 | 0.288301 | 0.988858 | 0.988858 | 0.988858 | 0.988858 | 0.988858 | 0.988858 | 0 | 0.048512 | 0.130393 | 1,043 | 45 | 51 | 23.177778 | 0.743109 | 0 | 0 | 1 | 0 | 0 | 0.043145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
af5fb47de419dd28e496529971a4216375769167 | 81,292 | py | Python | solutions/previous_solution_python/contest_leetcode_5461.py | YuhanShi53/Leetcode_solutions | cdcad34656d25d6af09b226e17250c6070305ab0 | [
"MIT"
] | null | null | null | solutions/previous_solution_python/contest_leetcode_5461.py | YuhanShi53/Leetcode_solutions | cdcad34656d25d6af09b226e17250c6070305ab0 | [
"MIT"
] | null | null | null | solutions/previous_solution_python/contest_leetcode_5461.py | YuhanShi53/Leetcode_solutions | cdcad34656d25d6af09b226e17250c6070305ab0 | [
"MIT"
] | null | null | null | class Solution:
def numSub(self, s: str) -> int:
s = s.split('0')
res = 0
for x in s:
y = len(x)
res += (y + 1) * y // 2
return res
if __name__ == '__main__':
s = "1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111... | 6,253.230769 | 81,026 | 0.998056 | 39 | 81,292 | 2,080.153846 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.998066 | 0.001415 | 81,292 | 13 | 81,027 | 6,253.230769 | 0.001306 | 0 | 0 | 0 | 0 | 0 | 0.996703 | 0.996593 | 0 | 1 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.25 | 0.083333 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
bb6918cc0feafe18403c26a8139eb05e9c2b6ce4 | 67 | py | Python | fexr/core/__init__.py | fexrapis/pyfexr | 2273f29c9a828722d546e9f7a6cbbc6f50987786 | [
"MIT"
] | null | null | null | fexr/core/__init__.py | fexrapis/pyfexr | 2273f29c9a828722d546e9f7a6cbbc6f50987786 | [
"MIT"
] | null | null | null | fexr/core/__init__.py | fexrapis/pyfexr | 2273f29c9a828722d546e9f7a6cbbc6f50987786 | [
"MIT"
] | null | null | null | from fexr.core.usage import Usage
from fexr.core.users import Users | 33.5 | 33 | 0.835821 | 12 | 67 | 4.666667 | 0.5 | 0.285714 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104478 | 67 | 2 | 34 | 33.5 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
bbb1579009ea492c1968893be0f945e6194b974b | 103,390 | py | Python | coach/EggPan/message_Reyn_CUR2.py | LSTM-Kirigaya/NUAA-guandan | f6920868649c26536b3dc3fce8ecd1d4f7c755fa | [
"MIT"
] | null | null | null | coach/EggPan/message_Reyn_CUR2.py | LSTM-Kirigaya/NUAA-guandan | f6920868649c26536b3dc3fce8ecd1d4f7c755fa | [
"MIT"
] | null | null | null | coach/EggPan/message_Reyn_CUR2.py | LSTM-Kirigaya/NUAA-guandan | f6920868649c26536b3dc3fce8ecd1d4f7c755fa | [
"MIT"
] | 1 | 2022-03-08T11:06:51.000Z | 2022-03-08T11:06:51.000Z | #Reyn_AI 2.0.0 采用加权思想全新改版
#暂定比赛版本
#Author: Ryen Zhang
#University: NUAA
#point-val对应列表
point_val = [28,6,8,10,12,15,18,20,21,22,23,24,25, 100] # 目前最强版本
#该函数负责转换点数所对应的val
def get_point_val(card,curRank):
if card[1] == curRank and card[0] == 'H':
return 500
if card[1] == curRank:
return 100
... | 41.273453 | 212 | 0.453061 | 16,394 | 103,390 | 2.722032 | 0.014701 | 0.170084 | 0.119373 | 0.131944 | 0.938129 | 0.931473 | 0.919081 | 0.91758 | 0.915742 | 0.909692 | 0 | 0.096887 | 0.331947 | 103,390 | 2,505 | 213 | 41.273453 | 0.549196 | 0.067183 | 0 | 0.928923 | 0 | 0 | 0.020384 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004023 | false | 0.001341 | 0 | 0 | 0.048726 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a55c54bb39395e4f1e5846b38940fb011bc0b9ce | 1,597 | py | Python | gpu_ver/refcode/models/layers/utils.py | bigaidream-projects/drmad | a4bb6010595d956f29c5a42a095bab76a60b29eb | [
"MIT"
] | 119 | 2016-02-24T17:20:50.000Z | 2021-05-28T21:35:16.000Z | gpu_ver/refcode/models/layers/utils.py | LinZichuan/drmad | a4bb6010595d956f29c5a42a095bab76a60b29eb | [
"MIT"
] | 8 | 2016-02-25T03:13:38.000Z | 2017-09-15T00:54:52.000Z | gpu_ver/refcode/models/layers/utils.py | LinZichuan/drmad | a4bb6010595d956f29c5a42a095bab76a60b29eb | [
"MIT"
] | 31 | 2016-03-10T04:57:11.000Z | 2021-05-02T01:00:04.000Z | import theano.tensor as T
import numpy as np
# Numerically stable log mean exp. Will keep dims.
def LogSumExp(x, axis=None):
x_max = T.max(x, axis=axis, keepdims=True)
return T.log(T.sum(T.exp(x - x_max), axis=axis, keepdims=True)) + x_max
# Numerically stable log mean exp. Will keep dims.
def LogMeanExp(x,... | 34.717391 | 79 | 0.678147 | 277 | 1,597 | 3.833935 | 0.133574 | 0.079096 | 0.210923 | 0.263653 | 0.822976 | 0.822976 | 0.800377 | 0.800377 | 0.800377 | 0.760829 | 0 | 0.006891 | 0.182217 | 1,597 | 45 | 80 | 35.488889 | 0.806279 | 0.226049 | 0 | 0.291667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0 | 0.083333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
a56250f50e20757ea9f1e7ae924320ba249b7220 | 316 | py | Python | pyorb/utils/__init__.py | sunxb05/aichem | 79a22f49f7e2bec8aa4a8cc718dbd22bbdd40eb0 | [
"Apache-2.0"
] | 1 | 2020-01-29T11:24:52.000Z | 2020-01-29T11:24:52.000Z | pyorb/utils/__init__.py | sunxb05/aichem | 79a22f49f7e2bec8aa4a8cc718dbd22bbdd40eb0 | [
"Apache-2.0"
] | 1 | 2021-06-22T07:43:55.000Z | 2021-06-29T10:57:43.000Z | pyorb/utils/__init__.py | sunxb05/aichem | 79a22f49f7e2bec8aa4a8cc718dbd22bbdd40eb0 | [
"Apache-2.0"
] | 1 | 2020-01-12T07:38:07.000Z | 2020-01-12T07:38:07.000Z | from .drawfigures import OrbitalOrdered, Difference, DrawOverlap, DrawFragEnergy, DrawOverlap2FragEnergy, DrawCoef
from .selectMO import OrbitalInteractionSelected, OrbitalInteractionSelectedWeak, DataSummary, GetComplexOrb
from .selectMOopen import OrbitalInteractionSelectedOpen, DataSummaryOpen, GetComplexOrbOpen | 105.333333 | 114 | 0.892405 | 22 | 316 | 12.818182 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00339 | 0.066456 | 316 | 3 | 115 | 105.333333 | 0.952542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
a5b59b88510db723970e4dcd62adb40d0f9c4040 | 84,852 | py | Python | pcdet/models/dense_heads/e2e_fusion_modules.py | ocNflag/point2seq | 710686f576b3df5469a06c66860758b25f852dbd | [
"Apache-2.0"
] | 21 | 2022-03-24T09:37:38.000Z | 2022-03-31T13:21:54.000Z | pcdet/models/dense_heads/e2e_fusion_modules.py | ocNflag/point2seq | 710686f576b3df5469a06c66860758b25f852dbd | [
"Apache-2.0"
] | null | null | null | pcdet/models/dense_heads/e2e_fusion_modules.py | ocNflag/point2seq | 710686f576b3df5469a06c66860758b25f852dbd | [
"Apache-2.0"
] | 1 | 2022-03-24T09:37:48.000Z | 2022-03-24T09:37:48.000Z | import torch
import math
import numpy as np
import torch.nn as nn
import torch.nn.functional as F
from pcdet.utils import common_utils, box_utils
from pcdet.utils.common_utils import limit_period_torch
from pcdet.models.dense_heads.utils import FeatureAdaption, Sequential
from pcdet.ops.dcn import ModulatedDeformConv
... | 41.371039 | 119 | 0.605313 | 12,650 | 84,852 | 3.793202 | 0.015652 | 0.036512 | 0.03472 | 0.032261 | 0.964697 | 0.961966 | 0.959153 | 0.95759 | 0.95313 | 0.950629 | 0 | 0.024581 | 0.256871 | 84,852 | 2,051 | 120 | 41.371039 | 0.736393 | 0.018715 | 0 | 0.8844 | 0 | 0 | 0.026651 | 0.000264 | 0 | 0 | 0 | 0 | 0.000622 | 1 | 0.049099 | false | 0 | 0.005594 | 0 | 0.096333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3c81b35669efe8cc959af5db0b0e6ef8df2323d9 | 74 | py | Python | dataviz/__init__.py | aroques/k-means | 7c85f1e5d25a44d94cedae083b00747ae770bb07 | [
"MIT"
] | 1 | 2020-03-22T03:45:04.000Z | 2020-03-22T03:45:04.000Z | dataviz/__init__.py | aroques/k-means | 7c85f1e5d25a44d94cedae083b00747ae770bb07 | [
"MIT"
] | 2 | 2021-04-20T18:02:03.000Z | 2021-06-01T22:10:15.000Z | dataviz/__init__.py | aroques/k-means | 7c85f1e5d25a44d94cedae083b00747ae770bb07 | [
"MIT"
] | 2 | 2018-04-17T14:01:33.000Z | 2019-01-08T03:54:31.000Z | from .dataviz import generate_clusters
from .dataviz import plot_clusters
| 24.666667 | 38 | 0.864865 | 10 | 74 | 6.2 | 0.6 | 0.354839 | 0.548387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 74 | 2 | 39 | 37 | 0.939394 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
3c84ebe56c1149639ff9639f525565bb3b738c69 | 3,269 | py | Python | tests/test_provider_ukfast_ecloud.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | tests/test_provider_ukfast_ecloud.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | tests/test_provider_ukfast_ecloud.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | # tests/test_provider_ukfast_ecloud.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:15:38 UTC)
def test_provider_import():
import terrascript.provider.ukfast.ecloud
def test_resource_import():
from terrascript.resource.ukfast.ecloud import ecloud_firewallpolicy
from terrascript.resour... | 31.737864 | 80 | 0.804221 | 415 | 3,269 | 6.183133 | 0.2 | 0.201091 | 0.273578 | 0.36477 | 0.823071 | 0.794232 | 0.788776 | 0.218239 | 0 | 0 | 0 | 0.005329 | 0.13888 | 3,269 | 102 | 81 | 32.04902 | 0.906217 | 0.148669 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009804 | 0 | 1 | 0.069767 | true | 0 | 1 | 0 | 1.069767 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 10 |
591ef837736b011630e22d883cdac0930215f448 | 4,120 | py | Python | test/test_main.py | jackdewinter/pyscan | 05ea9bff0aaf4d53aa401c51526bb847accec56a | [
"MIT"
] | 1 | 2021-01-14T17:39:18.000Z | 2021-01-14T17:39:18.000Z | test/test_main.py | jackdewinter/pyscan | 05ea9bff0aaf4d53aa401c51526bb847accec56a | [
"MIT"
] | 17 | 2020-08-15T23:27:28.000Z | 2022-02-20T18:23:49.000Z | test/test_main.py | jackdewinter/pyscan | 05ea9bff0aaf4d53aa401c51526bb847accec56a | [
"MIT"
] | null | null | null | """
Module to provide tests related to the basic parts of the scanner.
"""
from test.test_scenarios import MainlineExecutor
def test_scanner_with_no_parameters():
"""
Test to make sure we get the simple information if no parameters are supplied.
"""
# Arrange
scanner = MainlineExecutor()
sup... | 28.611111 | 94 | 0.679612 | 488 | 4,120 | 5.559426 | 0.163934 | 0.048655 | 0.053078 | 0.053078 | 0.940656 | 0.909694 | 0.860302 | 0.860302 | 0.860302 | 0.860302 | 0 | 0.001268 | 0.234466 | 4,120 | 143 | 95 | 28.811189 | 0.858909 | 0.120631 | 0 | 0.82716 | 0 | 0 | 0.536765 | 0 | 0 | 0 | 0 | 0 | 0.049383 | 1 | 0.049383 | false | 0 | 0.012346 | 0 | 0.061728 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
59404a2c089fbd909961feb21691e08575cc621f | 189 | py | Python | tests/test_get.py | chimmy-changa/dummy-basic | d8bf598fd64138892634dfbc7bbdcbe8cf94937f | [
"BSD-2-Clause"
] | null | null | null | tests/test_get.py | chimmy-changa/dummy-basic | d8bf598fd64138892634dfbc7bbdcbe8cf94937f | [
"BSD-2-Clause"
] | null | null | null | tests/test_get.py | chimmy-changa/dummy-basic | d8bf598fd64138892634dfbc7bbdcbe8cf94937f | [
"BSD-2-Clause"
] | null | null | null | from dummy_basic.get import get_hello, get_hello_world
def test_get_hello():
assert "hello" == get_hello()
def test_get_hello_world():
assert "hello_world" == get_hello_world()
| 18.9 | 54 | 0.740741 | 29 | 189 | 4.37931 | 0.344828 | 0.377953 | 0.307087 | 0.23622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153439 | 189 | 9 | 55 | 21 | 0.79375 | 0 | 0 | 0 | 0 | 0 | 0.084656 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.4 | true | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 8 |
597edbca863d5d2042572d4ea1ee41b6811a28da | 208 | py | Python | api_exporter/views.py | taboola/prometheus-api-exporter | de0c0a802725aaa965093b3a457da481a311b561 | [
"MIT"
] | 7 | 2021-08-04T06:51:17.000Z | 2021-08-04T19:47:57.000Z | api_exporter/views.py | taboola/prometheus-api-exporter | de0c0a802725aaa965093b3a457da481a311b561 | [
"MIT"
] | null | null | null | api_exporter/views.py | taboola/prometheus-api-exporter | de0c0a802725aaa965093b3a457da481a311b561 | [
"MIT"
] | 1 | 2022-02-21T09:56:24.000Z | 2022-02-21T09:56:24.000Z | from django.shortcuts import redirect
from django.shortcuts import render
def index(request):
return render(request, 'main/index.html')
def view_404(request, exception=None):
return redirect('/')
| 18.909091 | 45 | 0.75 | 27 | 208 | 5.740741 | 0.592593 | 0.129032 | 0.245161 | 0.322581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016854 | 0.144231 | 208 | 10 | 46 | 20.8 | 0.853933 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 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 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
59959bc6e5aacc859c78a8a4d13162ed7f312c65 | 102 | py | Python | addons/windows64/cpython-3.9.7-windows64/python/install/Lib/site-packages/sitecustomize.py | niklas2902/py4godot---Open-Project | 0983ea2b4f8dd1d0e239dcffb556c678147a1e79 | [
"Apache-2.0"
] | null | null | null | addons/windows64/cpython-3.9.7-windows64/python/install/Lib/site-packages/sitecustomize.py | niklas2902/py4godot---Open-Project | 0983ea2b4f8dd1d0e239dcffb556c678147a1e79 | [
"Apache-2.0"
] | null | null | null | addons/windows64/cpython-3.9.7-windows64/python/install/Lib/site-packages/sitecustomize.py | niklas2902/py4godot---Open-Project | 0983ea2b4f8dd1d0e239dcffb556c678147a1e79 | [
"Apache-2.0"
] | null | null | null |
import site
import os
site.addsitedir(os.getcwd()+'/addons/windows64')
site.addsitedir(os.getcwd())
| 14.571429 | 48 | 0.754902 | 14 | 102 | 5.5 | 0.5 | 0.363636 | 0.415584 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.078431 | 102 | 6 | 49 | 17 | 0.797872 | 0 | 0 | 0 | 0 | 0 | 0.168317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
ab69e61b9777798ea64443cae01d56dbb618a6c0 | 947 | py | Python | backend/src/exercise/models.py | Rdani2005/helping-you2 | 772367ca6046ca578a6a951558f55fae2c974024 | [
"MIT"
] | null | null | null | backend/src/exercise/models.py | Rdani2005/helping-you2 | 772367ca6046ca578a6a951558f55fae2c974024 | [
"MIT"
] | null | null | null | backend/src/exercise/models.py | Rdani2005/helping-you2 | 772367ca6046ca578a6a951558f55fae2c974024 | [
"MIT"
] | null | null | null | # -------------------- Libraries --------------------------------
from django.db import models
# ------------------ Copyright ----------------------------------
__author__ = "Danny Sequeira"
__copyright__ = "Copyright (C) Danny Sequeira 2022"
# ------------------ Models -------------------------------------
# Mental Ex... | 45.095238 | 65 | 0.621964 | 99 | 947 | 5.808081 | 0.292929 | 0.156522 | 0.198261 | 0.24 | 0.702609 | 0.702609 | 0.702609 | 0.702609 | 0.702609 | 0.702609 | 0 | 0.004808 | 0.121436 | 947 | 20 | 66 | 47.35 | 0.686298 | 0.254488 | 0 | 0.666667 | 0 | 0 | 0.067143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.866667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 1 | 0 | 0 | 8 |
ab87f4195e40378c5291ad69068c694bc9f1742a | 3,588 | py | Python | tests/test_fasta.py | carlosp420/dataset-creator | d15e4a9b7a6bcf367fcd53c1532a812b8ed84bc9 | [
"BSD-2-Clause"
] | 1 | 2020-10-05T15:16:21.000Z | 2020-10-05T15:16:21.000Z | tests/test_fasta.py | carlosp420/dataset-creator | d15e4a9b7a6bcf367fcd53c1532a812b8ed84bc9 | [
"BSD-2-Clause"
] | 9 | 2015-09-16T10:49:10.000Z | 2020-06-28T20:07:10.000Z | tests/test_fasta.py | carlosp420/dataset-creator | d15e4a9b7a6bcf367fcd53c1532a812b8ed84bc9 | [
"BSD-2-Clause"
] | null | null | null | import os
import unittest
from dataset_creator.dataset import Dataset
from .generate_test_data import get_test_data
FASTA_DATA_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'Fasta')
class TestFasta(unittest.TestCase):
def setUp(self):
self.maxDiff = None
self.test_data = get_... | 42.211765 | 95 | 0.678372 | 463 | 3,588 | 4.963283 | 0.151188 | 0.087032 | 0.062663 | 0.066144 | 0.815057 | 0.801131 | 0.791123 | 0.791123 | 0.7698 | 0.7698 | 0 | 0.018695 | 0.209866 | 3,588 | 84 | 96 | 42.714286 | 0.791887 | 0.027035 | 0 | 0.46875 | 1 | 0 | 0.123414 | 0.07526 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.15625 | false | 0 | 0.0625 | 0 | 0.234375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
aba8a42dee7350c02d4df85d74b303251b1373c0 | 13,033 | py | Python | yandex/cloud/billing/v1/billing_account_service_pb2_grpc.py | korsar182/python-sdk | 873bf2a9b136a8f2faae72e86fae1f5b5c3d896a | [
"MIT"
] | 36 | 2018-12-23T13:51:50.000Z | 2022-03-25T07:48:24.000Z | yandex/cloud/billing/v1/billing_account_service_pb2_grpc.py | korsar182/python-sdk | 873bf2a9b136a8f2faae72e86fae1f5b5c3d896a | [
"MIT"
] | 15 | 2019-02-28T04:55:09.000Z | 2022-03-06T23:17:24.000Z | yandex/cloud/billing/v1/billing_account_service_pb2_grpc.py | korsar182/python-sdk | 873bf2a9b136a8f2faae72e86fae1f5b5c3d896a | [
"MIT"
] | 18 | 2019-02-23T07:10:57.000Z | 2022-03-28T14:41:08.000Z | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from yandex.cloud.access import access_pb2 as yandex_dot_cloud_dot_access_dot_access__pb2
from yandex.cloud.billing.v1 import billing_account_pb2 as yandex_dot_c... | 53.413934 | 164 | 0.72209 | 1,268 | 13,033 | 6.951893 | 0.097003 | 0.052184 | 0.063528 | 0.077141 | 0.853659 | 0.849007 | 0.82768 | 0.790698 | 0.742938 | 0.711288 | 0 | 0.008031 | 0.216527 | 13,033 | 243 | 165 | 53.633745 | 0.855254 | 0.064375 | 0 | 0.523077 | 1 | 0 | 0.095112 | 0.067124 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071795 | false | 0 | 0.025641 | 0.030769 | 0.14359 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e6180ab91e27a84b198426ef07daeb1c16bd1ae8 | 131 | py | Python | getGAP.py | caiomcg/TSP | 047ff34a8769b062306d261169ab4ca3f4368be1 | [
"MIT"
] | 1 | 2019-09-04T17:48:06.000Z | 2019-09-04T17:48:06.000Z | getGAP.py | caiomcg/TSP | 047ff34a8769b062306d261169ab4ca3f4368be1 | [
"MIT"
] | null | null | null | getGAP.py | caiomcg/TSP | 047ff34a8769b062306d261169ab4ca3f4368be1 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
print(sys.argv[1])
print(((float(sys.argv[1]) - float(sys.argv[2]))/(float(sys.argv[2]))) * 100.0)
| 16.375 | 79 | 0.625954 | 24 | 131 | 3.416667 | 0.5 | 0.341463 | 0.439024 | 0.317073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067227 | 0.091603 | 131 | 7 | 80 | 18.714286 | 0.621849 | 0.122137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.666667 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 8 |
e63b1a49e13a59e8ed1da3c058b08aaf6785832c | 8,121 | py | Python | silo/benchmarks/results/istc11-3-21-13.py | anshsarkar/TailBench | 25845756aee9a892229c25b681051591c94daafd | [
"MIT"
] | 274 | 2015-01-23T16:24:09.000Z | 2022-02-22T03:16:14.000Z | silo/benchmarks/results/istc11-3-21-13.py | anshsarkar/TailBench | 25845756aee9a892229c25b681051591c94daafd | [
"MIT"
] | 3 | 2015-03-17T11:52:36.000Z | 2019-07-22T23:04:25.000Z | silo/benchmarks/results/istc11-3-21-13.py | anshsarkar/TailBench | 25845756aee9a892229c25b681051591c94daafd | [
"MIT"
] | 94 | 2015-01-07T06:55:36.000Z | 2022-01-22T08:14:15.000Z | RESULTS = [({'bench_opts': '', 'scale_factor': 320000, 'db': 'kvdb', 'bench': 'ycsb', 'par_load': True, 'threads': 1}, [(341977.0, 0.0), (367991.0, 0.0), (342608.0, 0.0)]), ({'bench_opts': '', 'scale_factor': 320000, 'db': 'kvdb', 'bench': 'ycsb', 'par_load': True, 'threads': 4}, [(1565190.0, 0.0), (1565550.0, 0.0), (1... | 4,060.5 | 8,120 | 0.607191 | 1,281 | 8,121 | 3.75566 | 0.178767 | 0.070671 | 0.049886 | 0.108501 | 0.741634 | 0.74101 | 0.74101 | 0.714197 | 0.714197 | 0.714197 | 0 | 0.214956 | 0.094323 | 8,121 | 1 | 8,121 | 8,121 | 0.439157 | 0 | 0 | 0 | 0 | 11 | 0.43369 | 0.154414 | 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 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
05120bc7098f24a8600040afe53bc1790b641087 | 91,200 | py | Python | src/framework/scsLib.py | securedataplane/mts | 9ffe415ce586600e558e7a2855348c9cd1651f49 | [
"MIT"
] | 1 | 2022-03-10T13:00:25.000Z | 2022-03-10T13:00:25.000Z | src/framework/scsLib.py | securedataplane/mts | 9ffe415ce586600e558e7a2855348c9cd1651f49 | [
"MIT"
] | 1 | 2019-07-23T08:49:09.000Z | 2019-07-23T08:49:09.000Z | src/framework/scsLib.py | securedataplane/mts | 9ffe415ce586600e558e7a2855348c9cd1651f49 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Sat Aug 11 22:12:05 2018
@author: saad
"""
'''
Scenarios:
+ Single tenant:
+ phy2vm2vm2phy_Baseline_NoDPDK
+ phy2vm2vm2phy_Baseline_DPDK
+ phy2vm2vm2phy_SRIOV_NoDPDK
+ phy2vm2vm2phy_SRIOV_DPDK
... | 35.063437 | 123 | 0.493684 | 9,656 | 91,200 | 4.572908 | 0.035729 | 0.040153 | 0.028309 | 0.029441 | 0.899266 | 0.884727 | 0.872928 | 0.861921 | 0.85746 | 0.853723 | 0 | 0.060402 | 0.246645 | 91,200 | 2,600 | 124 | 35.076923 | 0.582278 | 0.133531 | 0 | 0.812457 | 0 | 0 | 0.192398 | 0.021459 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020534 | false | 0.001369 | 0.00616 | 0 | 0.045859 | 0.000684 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
054d06df525a0202e695c2c4e8ef8cd4966c35f1 | 7,000 | py | Python | CodigoPython.py | JuanMPerezM/Proyecto-Final-POO | 79f3d874603f544d3bd186a6189ae04758330832 | [
"MIT"
] | null | null | null | CodigoPython.py | JuanMPerezM/Proyecto-Final-POO | 79f3d874603f544d3bd186a6189ae04758330832 | [
"MIT"
] | null | null | null | CodigoPython.py | JuanMPerezM/Proyecto-Final-POO | 79f3d874603f544d3bd186a6189ae04758330832 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import random
c=0
k=0
bplo=0
ihi=0
ilo=0
aux=0
resta=0
valores=int(input("ingrese la cantidad de valores que va a ingresar: "))
for i in range (1, valores+1):
valorpp=float(input("ingrese el varlor obtenido:"))
if valorpp>0 and valorpp<=55:
print (f"la calidad del aire con un ... | 39.772727 | 102 | 0.573 | 1,009 | 7,000 | 3.975223 | 0.107037 | 0.08726 | 0.13463 | 0.122164 | 0.896535 | 0.872351 | 0.866367 | 0.866367 | 0.866367 | 0.866367 | 0 | 0.051366 | 0.299143 | 7,000 | 175 | 103 | 40 | 0.766205 | 0.003 | 0 | 0.681529 | 0 | 0 | 0.339114 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.006369 | 0 | 0.006369 | 0.420382 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
058cf09aa2a1c6148d381ae072a5ded91f8789a0 | 12,767 | py | Python | tools/page_finder/login_page_scanner.py | onurrozkaan/interrogator | 799613bdb39cfdf00ad19381a8121be2a7291c2b | [
"MIT"
] | 5 | 2019-03-09T09:45:58.000Z | 2021-06-27T10:18:24.000Z | tools/page_finder/login_page_scanner.py | ozkanonur/interrogator | 799613bdb39cfdf00ad19381a8121be2a7291c2b | [
"MIT"
] | null | null | null | tools/page_finder/login_page_scanner.py | ozkanonur/interrogator | 799613bdb39cfdf00ad19381a8121be2a7291c2b | [
"MIT"
] | null | null | null | import http.client
import socket
import sys
from assets.styling.colors import *
from assets.dork.config import *
def login_scanner():
try:
result_count = 0
page_count = 0
try:
message = sys.stdout.write( red + "Enter URL to scan Login page: ")
domain = input()
... | 43.872852 | 105 | 0.460249 | 1,244 | 12,767 | 4.642283 | 0.106109 | 0.113766 | 0.072035 | 0.09974 | 0.841039 | 0.841039 | 0.837056 | 0.837056 | 0.789957 | 0.789957 | 0 | 0.015583 | 0.421947 | 12,767 | 290 | 106 | 44.024138 | 0.766938 | 0 | 0 | 0.832143 | 0 | 0 | 0.189943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003571 | false | 0 | 0.017857 | 0 | 0.021429 | 0.292857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5530c0e9499475d8836884e1b3e6ca5c39be7eb1 | 2,244 | py | Python | darknight/test/process/test_remove_other_elements.py | xuliang2019/darknight | 4c89a4d584d050c320eab6028971948a45314e17 | [
"MIT"
] | 3 | 2019-11-20T22:54:39.000Z | 2020-05-17T08:58:29.000Z | darknight/test/process/test_remove_other_elements.py | xuliang2019/darknight | 4c89a4d584d050c320eab6028971948a45314e17 | [
"MIT"
] | 10 | 2020-03-24T18:15:10.000Z | 2022-03-12T00:16:34.000Z | darknight/test/process/test_remove_other_elements.py | xuliang2019/darknight | 4c89a4d584d050c320eab6028971948a45314e17 | [
"MIT"
] | 1 | 2020-01-12T05:08:40.000Z | 2020-01-12T05:08:40.000Z | # Import
import pandas as pd
import numpy as np
from rdkit.Chem import AllChem as Chem
from rdkit.Chem import PandasTools,Draw
import math
import openbabel
import darkchem
import sys
sys.path.append("../..")
import process
# Define testing function
def test_remove_other_elements():
# Import some data to use
da... | 64.114286 | 161 | 0.755348 | 299 | 2,244 | 5.351171 | 0.210702 | 0.31625 | 0.54625 | 0.28875 | 0.744375 | 0.744375 | 0.744375 | 0.744375 | 0.744375 | 0.71125 | 0 | 0.000989 | 0.098485 | 2,244 | 34 | 162 | 66 | 0.789916 | 0.054367 | 0 | 0 | 0 | 0 | 0.116257 | 0.01465 | 0 | 0 | 0 | 0 | 0.44 | 1 | 0.04 | false | 0 | 0.36 | 0 | 0.44 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 10 |
5530f9033b705ee53bcf47bf6ec02e12f6cdb981 | 14,079 | py | Python | tests/test_azure_vault_settings.py | kewtree1408/pydantic-azure-secrets | e34e44d9fa90b9582ac80be3d2ab0122ec4c2b6c | [
"MIT"
] | 5 | 2021-02-17T08:27:12.000Z | 2021-12-21T19:43:04.000Z | tests/test_azure_vault_settings.py | kewtree1408/pydantic-azure-secrets | e34e44d9fa90b9582ac80be3d2ab0122ec4c2b6c | [
"MIT"
] | null | null | null | tests/test_azure_vault_settings.py | kewtree1408/pydantic-azure-secrets | e34e44d9fa90b9582ac80be3d2ab0122ec4c2b6c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from typing import Any
from unittest import mock
import pydantic
import pytest
from pathlib import Path
from pydantic_azure_secrets import AzureVaultSettings
PWD = Path(__file__).parent.absolute()
class SettingsENVs(AzureVaultSettings):
"""
Example of settings with environment varia... | 38.572603 | 86 | 0.75325 | 1,653 | 14,079 | 6.057471 | 0.07804 | 0.089484 | 0.054329 | 0.075302 | 0.904624 | 0.863977 | 0.832218 | 0.804055 | 0.764806 | 0.756816 | 0 | 0.017751 | 0.151715 | 14,079 | 364 | 87 | 38.678571 | 0.820648 | 0.05945 | 0 | 0.724409 | 0 | 0 | 0.334755 | 0.259561 | 0 | 0 | 0 | 0 | 0.366142 | 1 | 0.03937 | false | 0 | 0.023622 | 0 | 0.161417 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5535150b80712861281c6fc909414a11033be521 | 195 | py | Python | dj_literature/views.py | NameNolen/LiteratureView | 0642f071e703360286d898425ea39a41745b6beb | [
"MIT"
] | null | null | null | dj_literature/views.py | NameNolen/LiteratureView | 0642f071e703360286d898425ea39a41745b6beb | [
"MIT"
] | null | null | null | dj_literature/views.py | NameNolen/LiteratureView | 0642f071e703360286d898425ea39a41745b6beb | [
"MIT"
] | null | null | null | from django.http import HttpResponse
from django.shortcuts import render
# Create your views here.
# todo 只是做了index。
def index(request):
return render(request, 'dj_literature/index.html')
| 19.5 | 54 | 0.774359 | 26 | 195 | 5.769231 | 0.769231 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14359 | 195 | 9 | 55 | 21.666667 | 0.898204 | 0.2 | 0 | 0 | 0 | 0 | 0.156863 | 0.156863 | 0 | 0 | 0 | 0.111111 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
e98fcad081656dc211d6bef321e741a9e08a854f | 39 | py | Python | High School/9th Grade APCSP (Python)/Unit 1/Unit 01.03 (Variables)/01.03.05.py | SomewhereOutInSpace/Computer-Science-Class | f5d21850236a7a18dc53b4a650ecbe9a11781f1d | [
"Unlicense"
] | null | null | null | High School/9th Grade APCSP (Python)/Unit 1/Unit 01.03 (Variables)/01.03.05.py | SomewhereOutInSpace/Computer-Science-Class | f5d21850236a7a18dc53b4a650ecbe9a11781f1d | [
"Unlicense"
] | null | null | null | High School/9th Grade APCSP (Python)/Unit 1/Unit 01.03 (Variables)/01.03.05.py | SomewhereOutInSpace/Computer-Science-Class | f5d21850236a7a18dc53b4a650ecbe9a11781f1d | [
"Unlicense"
] | null | null | null | #01.03.05 Math?!
print(2 + 3 * 8 / 2)
| 9.75 | 20 | 0.487179 | 9 | 39 | 2.111111 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.344828 | 0.25641 | 39 | 3 | 21 | 13 | 0.310345 | 0.384615 | 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 | 1 | 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 | 1 | 0 | 7 |
e9bafc99b92cc5adcf8283b82c942a070cad6291 | 252 | py | Python | shdlCore/src/__init__.py | ckf42/shdl | 1ff377c43edb3333fbc54a74f4cd8a9fc256c976 | [
"MIT"
] | null | null | null | shdlCore/src/__init__.py | ckf42/shdl | 1ff377c43edb3333fbc54a74f4cd8a9fc256c976 | [
"MIT"
] | 15 | 2021-09-03T13:01:24.000Z | 2022-01-24T10:09:11.000Z | shdlCore/src/__init__.py | ckf42/shdl | 1ff377c43edb3333fbc54a74f4cd8a9fc256c976 | [
"MIT"
] | null | null | null | from re import sub as re_sub
from re import split as re_split
from shdlCore.src.CliArg import *
from shdlCore.src.CommonUtil import *
from shdlCore.src.StringTransformer import *
from shdlCore.src.LocalFileHandler import *
from .RepoHandler import *
| 25.2 | 44 | 0.809524 | 37 | 252 | 5.459459 | 0.351351 | 0.237624 | 0.29703 | 0.311881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134921 | 252 | 9 | 45 | 28 | 0.926606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
756dae18ff20dd84188eb7b23a87101693b4dd78 | 9,180 | py | Python | TestCreateTableSqlBuilder.py | ytyaru/Python.Database.201706300700 | e4a81571648fb65a6bb4a2819aa037abe925422d | [
"CC0-1.0"
] | null | null | null | TestCreateTableSqlBuilder.py | ytyaru/Python.Database.201706300700 | e4a81571648fb65a6bb4a2819aa037abe925422d | [
"CC0-1.0"
] | null | null | null | TestCreateTableSqlBuilder.py | ytyaru/Python.Database.201706300700 | e4a81571648fb65a6bb4a2819aa037abe925422d | [
"CC0-1.0"
] | null | null | null | import unittest
from CreateTableSqlAnalyzer import CreateTableSqlAnalyzer
from CreateTableSqlBuilder import CreateTableSqlBuilder
class TestCreateTableSqlBuilder(unittest.TestCase):
def test_create_table(self):
sql = '''create table TBL_NM(Id integer primary key, Name text not null);'''
c = CreateTa... | 36 | 131 | 0.56841 | 1,069 | 9,180 | 4.808232 | 0.085126 | 0.079183 | 0.098054 | 0.105837 | 0.91323 | 0.912062 | 0.889494 | 0.887549 | 0.870623 | 0.843385 | 0 | 0.009029 | 0.300218 | 9,180 | 254 | 132 | 36.141732 | 0.791096 | 0 | 0 | 0.753191 | 0 | 0.034043 | 0.459913 | 0 | 0 | 0 | 0 | 0 | 0.076596 | 1 | 0.076596 | false | 0 | 0.012766 | 0 | 0.093617 | 0.076596 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
75852097d2d572ddfdb294c53aaf7cc84df01fac | 185 | py | Python | CA117/Lab_2/plural_12.py | PRITI1999/OneLineWonders | 91a7368e0796e5a3b5839c9165f9fbe5460879f5 | [
"MIT"
] | 6 | 2016-02-04T00:15:20.000Z | 2019-10-13T13:53:16.000Z | CA117/Lab_2/plural_12.py | PRITI1999/OneLineWonders | 91a7368e0796e5a3b5839c9165f9fbe5460879f5 | [
"MIT"
] | 2 | 2016-03-14T04:01:36.000Z | 2019-10-16T12:45:34.000Z | CA117/Lab_2/plural_12.py | PRITI1999/OneLineWonders | 91a7368e0796e5a3b5839c9165f9fbe5460879f5 | [
"MIT"
] | 10 | 2016-02-09T14:38:32.000Z | 2021-05-25T08:16:26.000Z | print(__import__("re").sub("([^aeiou]y|fe|ch|sh|[fxszo])$",lambda m:("v"if"f"in m.group(0)else m.group(0)[:-1]+"i"if"y"in m.group(0)else m.group(0))+"e",__import__("sys").argv[1])+"s")
| 92.5 | 184 | 0.610811 | 41 | 185 | 2.560976 | 0.609756 | 0.228571 | 0.266667 | 0.171429 | 0.380952 | 0.380952 | 0.380952 | 0.380952 | 0 | 0 | 0 | 0.03352 | 0.032432 | 185 | 1 | 185 | 185 | 0.553073 | 0 | 0 | 0 | 0 | 0 | 0.216216 | 0.156757 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 9 |
75a6f0e52f2238b237b5c348c94f07f0246bd4f6 | 6,697 | py | Python | switch.py | winxin/micropython-tft-gui- | 59b812b81be70e25d2ffd816ce9b544ea561e691 | [
"MIT"
] | 73 | 2016-05-11T07:45:18.000Z | 2021-12-13T13:39:04.000Z | switch.py | winxin/micropython-tft-gui- | 59b812b81be70e25d2ffd816ce9b544ea561e691 | [
"MIT"
] | 2 | 2016-11-23T09:22:13.000Z | 2021-02-05T08:51:27.000Z | switch.py | winxin/micropython-tft-gui- | 59b812b81be70e25d2ffd816ce9b544ea561e691 | [
"MIT"
] | 11 | 2017-09-20T06:37:23.000Z | 2021-04-24T14:29:00.000Z |
# Code generated by bmp_to_icon.py
from uctypes import addressof
_icons = {
0: (
b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff'
b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfd\x97\x77\x55'
b'\x55\x55\x55\x55\x55\x55\x55\x55\x55\x77\x7b\xdf\xff\xff\xff\xff'
b'\xff\xff\xff\x... | 60.333333 | 133 | 0.680305 | 1,536 | 6,697 | 2.955729 | 0.111979 | 0.255066 | 0.319163 | 0.340969 | 0.648238 | 0.584361 | 0.546256 | 0.545595 | 0.460793 | 0.448678 | 0 | 0.185791 | 0.077348 | 6,697 | 110 | 134 | 60.881818 | 0.548956 | 0.004778 | 0 | 0.096154 | 1 | 0.826923 | 0.826178 | 0.826178 | 0 | 1 | 0 | 0 | 0 | 1 | 0.019231 | false | 0 | 0.009615 | 0.009615 | 0.038462 | 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 | 1 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
75df39ee83534bbadc26be3f4dee7c2d2e840be6 | 69,267 | py | Python | spark_fhir_schemas/r4/resources/activitydefinition.py | imranq2/SparkFhirSchemas | 24debae6980fb520fe55aa199bdfd43c0092eb9c | [
"Apache-2.0"
] | 2 | 2020-10-31T23:25:01.000Z | 2021-06-09T14:12:42.000Z | spark_fhir_schemas/r4/resources/activitydefinition.py | imranq2/SparkFhirSchemas | 24debae6980fb520fe55aa199bdfd43c0092eb9c | [
"Apache-2.0"
] | null | null | null | spark_fhir_schemas/r4/resources/activitydefinition.py | imranq2/SparkFhirSchemas | 24debae6980fb520fe55aa199bdfd43c0092eb9c | [
"Apache-2.0"
] | null | null | null | from typing import Union, List, Optional
from pyspark.sql.types import (
StructType,
StructField,
StringType,
ArrayType,
DateType,
BooleanType,
DataType,
TimestampType,
)
# This file is auto-generated by generate_schema so do not edit it manually
# noinspection PyPep8Naming
class Acti... | 53.037519 | 110 | 0.556354 | 6,267 | 69,267 | 5.928355 | 0.094303 | 0.064921 | 0.040777 | 0.063306 | 0.888757 | 0.885608 | 0.884532 | 0.861922 | 0.859123 | 0.853901 | 0 | 0.00277 | 0.405908 | 69,267 | 1,305 | 111 | 53.078161 | 0.900075 | 0.311837 | 0 | 0.782658 | 0 | 0 | 0.018541 | 0.002038 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001126 | false | 0 | 0.030405 | 0 | 0.03491 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
f975ae757cb9fa24ff4e7c97926d304b7ceb1aaa | 2,395 | py | Python | src/ctc/protocols/fourbyte_utils/query_utils/remote_queries.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 94 | 2022-02-15T19:34:49.000Z | 2022-03-26T19:26:22.000Z | src/ctc/protocols/fourbyte_utils/query_utils/remote_queries.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 7 | 2022-03-03T02:58:47.000Z | 2022-03-11T18:41:05.000Z | src/ctc/protocols/fourbyte_utils/query_utils/remote_queries.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 7 | 2022-02-15T17:53:07.000Z | 2022-03-17T19:14:17.000Z | from __future__ import annotations
import typing
from .. import fourbyte_spec
async def async_query_function_signature_remote(
hex_signature: typing.Optional[str] = None,
*,
id: typing.Optional[int] = None,
bytes_signature: typing.Optional[str] = None,
text_signature: typing.Optional[str] = Non... | 28.176471 | 63 | 0.637161 | 278 | 2,395 | 5.284173 | 0.18705 | 0.074881 | 0.049013 | 0.106195 | 0.925119 | 0.925119 | 0.925119 | 0.925119 | 0.925119 | 0.91627 | 0 | 0 | 0.271816 | 2,395 | 84 | 64 | 28.511905 | 0.842317 | 0.044676 | 0 | 0.793651 | 0 | 0 | 0.0724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.079365 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
32dcd153a3e78f901496a7b4e415babb5c013e48 | 25,504 | py | Python | System/DateTime/__init__.py | Grim-es/udon-pie-auto-completion | c2cd86554ed615cdbbb01e19fa40665eafdfaedc | [
"MIT"
] | null | null | null | System/DateTime/__init__.py | Grim-es/udon-pie-auto-completion | c2cd86554ed615cdbbb01e19fa40665eafdfaedc | [
"MIT"
] | null | null | null | System/DateTime/__init__.py | Grim-es/udon-pie-auto-completion | c2cd86554ed615cdbbb01e19fa40665eafdfaedc | [
"MIT"
] | null | null | null | from typing import overload
from UdonPie import System
from UdonPie.Undefined import *
class DateTime:
def __new__(cls, arg1=None):
'''
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
@overload
def ctor(arg1):
'''
:param arg1:... | 22.411248 | 112 | 0.532975 | 2,386 | 25,504 | 5.683571 | 0.047779 | 0.122705 | 0.092471 | 0.067252 | 0.917631 | 0.909741 | 0.903252 | 0.885407 | 0.840941 | 0.729813 | 0 | 0.050244 | 0.373353 | 25,504 | 1,137 | 113 | 22.430959 | 0.798273 | 0.467809 | 0 | 0.752809 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294944 | false | 0.294944 | 0.008427 | 0 | 0.30618 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 9 |
fd11dd25d86247dd8b2bcbd4dcd85f721a879756 | 14,940 | py | Python | dairy_erp/patches/malbar_v1_0/vlcc_list.py | shrikant9867/Dairy_project_Daiyerp | 635d34115f0eb2081b6835a190eda4971dbfb99f | [
"MIT"
] | null | null | null | dairy_erp/patches/malbar_v1_0/vlcc_list.py | shrikant9867/Dairy_project_Daiyerp | 635d34115f0eb2081b6835a190eda4971dbfb99f | [
"MIT"
] | null | null | null | dairy_erp/patches/malbar_v1_0/vlcc_list.py | shrikant9867/Dairy_project_Daiyerp | 635d34115f0eb2081b6835a190eda4971dbfb99f | [
"MIT"
] | 2 | 2020-01-19T13:27:57.000Z | 2021-12-28T20:32:56.000Z | from __future__ import unicode_literals
import frappe
def vlcc_list():
return [{'Kolalambu KSS':'MILMA01_3000_0006_8516'},{'Kolalambu KSS':'MILMA01_3000_0006_8516'},
{'Kakkattiri KSS':'MILMA01_3000_0009_8664'},{'Kakkattiri KSS':'MILMA01_3000_0009_8664'},
{'Cherpulassery KSS':'MILMA01_3000_0002_6734'},{'Cherpulassery ... | 66.4 | 112 | 0.746252 | 2,028 | 14,940 | 5.036489 | 0.169132 | 0.332779 | 0.249462 | 0.03877 | 0.775113 | 0.761112 | 0.280399 | 0.183474 | 0.162522 | 0.012532 | 0 | 0.398375 | 0.069009 | 14,940 | 225 | 113 | 66.4 | 0.33597 | 0.083601 | 0 | 0.010256 | 0 | 0 | 0.780022 | 0.459788 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005128 | false | 0 | 0.010256 | 0 | 0.020513 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fd125ef6889e668bbd01caab74e5711dbc15088c | 76 | py | Python | goldtest/__init__.py | vadimg/goldtest | 809a4d5703d75edafbd4ab737f4088fc027d75d4 | [
"MIT"
] | null | null | null | goldtest/__init__.py | vadimg/goldtest | 809a4d5703d75edafbd4ab737f4088fc027d75d4 | [
"MIT"
] | null | null | null | goldtest/__init__.py | vadimg/goldtest | 809a4d5703d75edafbd4ab737f4088fc027d75d4 | [
"MIT"
] | null | null | null | from goldtest import TestCase # noqa
from goldtest import Goldtest # noqa
| 25.333333 | 37 | 0.789474 | 10 | 76 | 6 | 0.5 | 0.4 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 76 | 2 | 38 | 38 | 0.967742 | 0.118421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
b5ef3629621f3fe0dc6580066cd16821f6133fab | 4,915 | py | Python | tests/functional/test_scoping/test_model_repository.py | stanislaw/textX | cccb0e0680635e884841f7ef929b1234131716d3 | [
"MIT"
] | 346 | 2018-12-30T18:47:09.000Z | 2022-03-31T23:07:13.000Z | tests/functional/test_scoping/test_model_repository.py | stanislaw/textX | cccb0e0680635e884841f7ef929b1234131716d3 | [
"MIT"
] | 183 | 2018-12-27T17:22:28.000Z | 2022-03-28T08:31:09.000Z | tests/functional/test_scoping/test_model_repository.py | stanislaw/textX | cccb0e0680635e884841f7ef929b1234131716d3 | [
"MIT"
] | 46 | 2019-01-01T07:58:04.000Z | 2022-01-01T14:15:38.000Z | from __future__ import unicode_literals
from os.path import dirname, abspath, join
import textx.scoping.providers as scoping_providers
from textx import metamodel_from_file
from textx.scoping import is_file_included
def test_inclusion_check_1():
"""
Test to demonstrate how to check if a file is used by a mod... | 30.91195 | 79 | 0.562157 | 525 | 4,915 | 4.940952 | 0.171429 | 0.084811 | 0.138782 | 0.169622 | 0.900925 | 0.879337 | 0.879337 | 0.879337 | 0.868543 | 0.861989 | 0 | 0.014966 | 0.252289 | 4,915 | 158 | 80 | 31.107595 | 0.690884 | 0.194303 | 0 | 0.55914 | 0 | 0 | 0.164804 | 0.012038 | 0 | 0 | 0 | 0 | 0.129032 | 1 | 0.032258 | false | 0 | 0.086022 | 0 | 0.11828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
bd08d619c7bea561b026f933f1e4ba5091c354d8 | 2,935 | py | Python | test/test_modify_group.py | insideout-oss/python_training | 4ca8df1e8dea5e0e3cce99fc72db5a6c01b1bce8 | [
"Apache-2.0"
] | null | null | null | test/test_modify_group.py | insideout-oss/python_training | 4ca8df1e8dea5e0e3cce99fc72db5a6c01b1bce8 | [
"Apache-2.0"
] | null | null | null | test/test_modify_group.py | insideout-oss/python_training | 4ca8df1e8dea5e0e3cce99fc72db5a6c01b1bce8 | [
"Apache-2.0"
] | null | null | null | from random import randrange
import random
from model.group import Group
def test_modify_some_group(app, db, check_ui):
if len(db.get_group_list()) == 0:
app.group.create(Group(name="", header="", footer=""))
old_groups = db.get_group_list()
group_old = random.choice(old_groups)
group_mdf = Gr... | 46.587302 | 113 | 0.71925 | 496 | 2,935 | 3.9375 | 0.08871 | 0.092166 | 0.09831 | 0.09831 | 0.890425 | 0.87916 | 0.87916 | 0.87916 | 0.87916 | 0.87916 | 0 | 0.001616 | 0.156388 | 2,935 | 62 | 114 | 47.33871 | 0.787157 | 0 | 0 | 0.703704 | 0 | 0 | 0.047019 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 1 | 0.074074 | false | 0 | 0.055556 | 0 | 0.12963 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1fcc676893c0a90ec01eaef7c1d6ba11eb3c6a17 | 26,603 | py | Python | attacks/injection.py | LFhase/GIA-HAO | d07e7dd76a86686faae4ebfc60b91128c170dbd4 | [
"MIT"
] | 11 | 2022-01-29T12:01:51.000Z | 2022-03-28T07:35:42.000Z | attacks/injection.py | LFhase/GIA-HAO | d07e7dd76a86686faae4ebfc60b91128c170dbd4 | [
"MIT"
] | null | null | null | attacks/injection.py | LFhase/GIA-HAO | d07e7dd76a86686faae4ebfc60b91128c170dbd4 | [
"MIT"
] | null | null | null | from operator import add
import random
from attacks import utils
import torch.nn.functional as F
import numpy as np
import torch
import scipy.sparse as sp
from attacks.attack import gcn_norm
def dice_injection(adj, n_inject, n_edge_max, origin_labels, target_idx, device):
n_classes = max(origin_labels)+1
clas... | 38.893275 | 142 | 0.598241 | 4,022 | 26,603 | 3.695922 | 0.068374 | 0.05449 | 0.01776 | 0.01776 | 0.8185 | 0.799125 | 0.783922 | 0.778338 | 0.764346 | 0.757888 | 0 | 0.017675 | 0.276924 | 26,603 | 683 | 143 | 38.95022 | 0.755095 | 0.055295 | 0 | 0.789292 | 0 | 0.005181 | 0.030732 | 0.006537 | 0 | 0 | 0 | 0 | 0.005181 | 1 | 0.017271 | false | 0 | 0.015544 | 0 | 0.051813 | 0.02418 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1fe7bb74c3fa714cbe197afeac5ca23012250774 | 4,347 | py | Python | presqt/targets/utilities/tests/shared_upload_test_functions.py | craig-willis/presqt | b920527bf8998696f516d65a50f0a5c3862c4558 | [
"Apache-2.0"
] | null | null | null | presqt/targets/utilities/tests/shared_upload_test_functions.py | craig-willis/presqt | b920527bf8998696f516d65a50f0a5c3862c4558 | [
"Apache-2.0"
] | null | null | null | presqt/targets/utilities/tests/shared_upload_test_functions.py | craig-willis/presqt | b920527bf8998696f516d65a50f0a5c3862c4558 | [
"Apache-2.0"
] | null | null | null | import json
from presqt.utilities import read_file
def process_wait(process_info, ticket_path):
# Wait until the spawned off process finishes in the background to do further validation
while process_info['status'] == 'in_progress':
try:
process_info = read_file('{}/process_info.json'.form... | 51.75 | 157 | 0.761905 | 552 | 4,347 | 5.643116 | 0.175725 | 0.123274 | 0.246549 | 0.164687 | 0.886998 | 0.878331 | 0.874799 | 0.874799 | 0.861958 | 0.861958 | 0 | 0.003228 | 0.144928 | 4,347 | 83 | 158 | 52.373494 | 0.834813 | 0.129515 | 0 | 0.660714 | 0 | 0.017857 | 0.200106 | 0.034985 | 0 | 0 | 0 | 0 | 0.357143 | 1 | 0.053571 | false | 0.017857 | 0.035714 | 0 | 0.089286 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
1f3c2f8e392fd22eb8a627ac98a0559323f250a6 | 12,966 | py | Python | tests/test_algebra_onnx_operators_if.py | xiaowuhu/sklearn-onnx | e85674a67a0a043e19c2ffe181e5d31eca8ce40b | [
"Apache-2.0"
] | 1 | 2021-12-13T18:00:56.000Z | 2021-12-13T18:00:56.000Z | tests/test_algebra_onnx_operators_if.py | xiaowuhu/sklearn-onnx | e85674a67a0a043e19c2ffe181e5d31eca8ce40b | [
"Apache-2.0"
] | null | null | null | tests/test_algebra_onnx_operators_if.py | xiaowuhu/sklearn-onnx | e85674a67a0a043e19c2ffe181e5d31eca8ce40b | [
"Apache-2.0"
] | 2 | 2020-08-20T06:27:36.000Z | 2021-09-06T09:09:50.000Z | # SPDX-License-Identifier: Apache-2.0
import unittest
from distutils.version import StrictVersion
import numpy as np
from numpy.testing import assert_almost_equal
import onnx
import onnx.helper
from onnx import TensorProto
from onnxruntime import InferenceSession, __version__ as ort_version
try:
# scikit-learn >= ... | 40.392523 | 79 | 0.586765 | 1,563 | 12,966 | 4.619322 | 0.088932 | 0.047368 | 0.063158 | 0.018837 | 0.892936 | 0.891413 | 0.887396 | 0.874792 | 0.870914 | 0.863019 | 0 | 0.028104 | 0.270014 | 12,966 | 320 | 80 | 40.51875 | 0.734707 | 0.005861 | 0 | 0.791667 | 0 | 0 | 0.048347 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 1 | 0.026515 | false | 0 | 0.068182 | 0 | 0.098485 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1f6a44f48ca7f6c2404389fecefe79f00a807592 | 4,431 | py | Python | socfaker/timestamp.py | priamai/soc-faker | 51b587f0cec52212136905280406e915006d2afc | [
"MIT"
] | 122 | 2020-02-21T16:06:54.000Z | 2022-03-21T13:53:03.000Z | socfaker/timestamp.py | priamai/soc-faker | 51b587f0cec52212136905280406e915006d2afc | [
"MIT"
] | 13 | 2020-01-29T16:37:05.000Z | 2022-01-27T21:30:10.000Z | socfaker/timestamp.py | priamai/soc-faker | 51b587f0cec52212136905280406e915006d2afc | [
"MIT"
] | 20 | 2020-04-10T11:59:29.000Z | 2022-02-10T09:20:26.000Z | import pendulum
from .baseclass import BaseClass
class Timestamp(BaseClass):
"""The Timestamp Class provides methods to generate timestamps
"""
def in_the_past_pendulum_object(self,
years=0,
months=BaseClass().random.randint(0,3),
days=BaseClass().random.randint(1,15),
... | 42.2 | 130 | 0.62153 | 562 | 4,431 | 4.870107 | 0.113879 | 0.147242 | 0.122762 | 0.104129 | 0.847643 | 0.8038 | 0.8038 | 0.779686 | 0.775667 | 0.729266 | 0 | 0.037485 | 0.271496 | 4,431 | 104 | 131 | 42.605769 | 0.810409 | 0.488603 | 0 | 0.698113 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09434 | false | 0 | 0.037736 | 0.018868 | 0.245283 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1f8de20821d67458a73f5d619eaadab9ab0336c7 | 388 | py | Python | FixDataPoints.py | trojaxat/Assessment | 4477cfb1ecf5506ec6122f53abf26e304460544b | [
"MIT"
] | null | null | null | FixDataPoints.py | trojaxat/Assessment | 4477cfb1ecf5506ec6122f53abf26e304460544b | [
"MIT"
] | null | null | null | FixDataPoints.py | trojaxat/Assessment | 4477cfb1ecf5506ec6122f53abf26e304460544b | [
"MIT"
] | null | null | null | def changeValueA(actualDataFrame, changeValue):
predictedData = actualDataFrame.copy()
predictedData["y"] = [item*changeValue for item in actualDataFrame["x"]]
return predictedData
def changeValueB(actualDataFrame, changeValue):
predictedData = actualDataFrame.copy()
predictedData["y"] = [item+cha... | 35.272727 | 76 | 0.752577 | 36 | 388 | 8.111111 | 0.361111 | 0.178082 | 0.267123 | 0.369863 | 0.89726 | 0.89726 | 0.89726 | 0.89726 | 0.89726 | 0.89726 | 0 | 0 | 0.14433 | 388 | 10 | 77 | 38.8 | 0.879518 | 0 | 0 | 0.5 | 0 | 0 | 0.010309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
2f34c2dafe6578891cf75c18e66800dc9cc9bb28 | 225 | py | Python | Security/user/create.py | carloscarrillocarrillo/booksmarks | b0f4b851eaa400b88e6ba9ab2904a58394a434e6 | [
"MIT"
] | null | null | null | Security/user/create.py | carloscarrillocarrillo/booksmarks | b0f4b851eaa400b88e6ba9ab2904a58394a434e6 | [
"MIT"
] | 2 | 2020-07-26T13:50:40.000Z | 2020-07-26T14:00:27.000Z | Security/user/create.py | carloscarrillocarrillo/booksmarks | b0f4b851eaa400b88e6ba9ab2904a58394a434e6 | [
"MIT"
] | null | null | null | from Security.db.user.CreateUserInterface import CreateUserInterface
def create_user(create_user: CreateUserInterface ,username, password, confirm_password):
return create_user.create(username, password, confirm_password) | 56.25 | 89 | 0.857778 | 25 | 225 | 7.52 | 0.48 | 0.159574 | 0.170213 | 0.329787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075556 | 225 | 4 | 90 | 56.25 | 0.903846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.666667 | 0.333333 | 0.333333 | 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 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 8 |
2f7847ad438c4e3fd694ac93398ac3d594dc22e2 | 176 | py | Python | src/ssp/spark/udf/tensorflow_serving_api_udf_test.py | gyan42/spark-streaming-playground | 147ef9cbc31b7aed242663dee36143ebf0e8043f | [
"Apache-2.0"
] | 10 | 2020-03-12T11:51:46.000Z | 2022-03-24T04:56:05.000Z | src/ssp/spark/udf/tensorflow_serving_api_udf_test.py | gyan42/spark-streaming-playground | 147ef9cbc31b7aed242663dee36143ebf0e8043f | [
"Apache-2.0"
] | 12 | 2020-04-23T07:28:14.000Z | 2022-03-12T00:20:24.000Z | src/ssp/spark/udf/tensorflow_serving_api_udf_test.py | gyan42/spark-streaming-playground | 147ef9cbc31b7aed242663dee36143ebf0e8043f | [
"Apache-2.0"
] | 1 | 2020-04-20T14:48:38.000Z | 2020-04-20T14:48:38.000Z | import pytest
from ssp.spark.udf.tensorflow_serving_api_udf import predict_text_class, get_text_classifier_udf
def test_tensorflow_serving_api_udf_imports():
assert True
| 25.142857 | 96 | 0.863636 | 27 | 176 | 5.148148 | 0.703704 | 0.244604 | 0.28777 | 0.330935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096591 | 176 | 6 | 97 | 29.333333 | 0.874214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | true | 0 | 0.75 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 8 |
2f9a52f4961427d68a281d808d5a7630145f7c3a | 180 | py | Python | libfuturize/test_scripts/py2/stdlib_newstyleclass_printstatement.py | kojoidrissa/python-future | 16635ad986ab10a337267f637a8b040a70bc5258 | [
"MIT"
] | 1 | 2018-01-18T00:46:19.000Z | 2018-01-18T00:46:19.000Z | libfuturize/test_scripts/py2/stdlib_newstyleclass_printstatement.py | kojoidrissa/python-future | 16635ad986ab10a337267f637a8b040a70bc5258 | [
"MIT"
] | null | null | null | libfuturize/test_scripts/py2/stdlib_newstyleclass_printstatement.py | kojoidrissa/python-future | 16635ad986ab10a337267f637a8b040a70bc5258 | [
"MIT"
] | null | null | null | from __future__ import print_function
from future import standard_library
from future.builtins import *
import configparser
class Blah(object):
pass
print('Hello', end=None)
| 18 | 37 | 0.8 | 24 | 180 | 5.75 | 0.666667 | 0.217391 | 0.231884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 180 | 9 | 38 | 20 | 0.890323 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.142857 | 0.571429 | 0 | 0.714286 | 0.285714 | 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 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 8 |
c855746b247830c7fe2d77ed9cf43885d8cd0d85 | 28,787 | py | Python | ATSAMD51P19A/libsrc/ATSAMD51P19A/SERCOM0_.py | t-ikegami/WioTerminal-CircuitPython | efbdc2e13ad969fe009d88f7ec4b836ca61ae973 | [
"MIT"
] | null | null | null | ATSAMD51P19A/libsrc/ATSAMD51P19A/SERCOM0_.py | t-ikegami/WioTerminal-CircuitPython | efbdc2e13ad969fe009d88f7ec4b836ca61ae973 | [
"MIT"
] | 1 | 2022-01-19T00:16:02.000Z | 2022-01-26T03:43:34.000Z | ATSAMD51P19A/libsrc/ATSAMD51P19A/SERCOM0_.py | t-ikegami/WioTerminal-CircuitPython | efbdc2e13ad969fe009d88f7ec4b836ca61ae973 | [
"MIT"
] | null | null | null | import uctypes as ct
SERCOM_I2CM = {
'CTRLA' : ( 0x00, {
'reg' : 0x00 | ct.UINT32,
'SWRST' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'ENABLE' : 0x00 | ct.BFUINT32 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'MODE' : 0x00 | ct.BFUINT32 | 2 << ct.BF_POS | 3 << ct.BF_LEN,
'RUNSTDB... | 49.632759 | 75 | 0.503456 | 4,514 | 28,787 | 3.056491 | 0.040097 | 0.192506 | 0.168442 | 0.146699 | 0.975792 | 0.975792 | 0.974922 | 0.957092 | 0.956802 | 0.954555 | 0 | 0.144707 | 0.294473 | 28,787 | 579 | 76 | 49.71848 | 0.534613 | 0 | 0 | 0.912434 | 0 | 0 | 0.083197 | 0 | 0 | 0 | 0.068156 | 0 | 0 | 1 | 0 | false | 0 | 0.001751 | 0 | 0.001751 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c85a46387134e5b8ab8d50ec1fa275845cd192c4 | 8,495 | py | Python | tests/app_test.py | estepona/naive-file-splitter | 965c5e8963ab32cd4156e1c689ebce8a7a1092cd | [
"MIT"
] | 1 | 2021-10-01T13:57:19.000Z | 2021-10-01T13:57:19.000Z | tests/app_test.py | estepona/naive-file-splitter | 965c5e8963ab32cd4156e1c689ebce8a7a1092cd | [
"MIT"
] | null | null | null | tests/app_test.py | estepona/naive-file-splitter | 965c5e8963ab32cd4156e1c689ebce8a7a1092cd | [
"MIT"
] | null | null | null | import os
import pytest
from src.app import BYTES_PER_MB, SPLITTED_CHUNKS_PATTERN, read_in_chunks, get_path, split_, merge_
@pytest.mark.parametrize(
'dirpath, src, dst, chunk',
[
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/dup.mov',
... | 29.599303 | 99 | 0.512184 | 984 | 8,495 | 4.343496 | 0.073171 | 0.089846 | 0.202153 | 0.31446 | 0.855171 | 0.838559 | 0.838559 | 0.838559 | 0.838559 | 0.838559 | 0 | 0.016488 | 0.328899 | 8,495 | 286 | 100 | 29.702797 | 0.733205 | 0 | 0 | 0.733083 | 0 | 0 | 0.487934 | 0.466627 | 0 | 0 | 0 | 0 | 0.015038 | 1 | 0.011278 | false | 0 | 0.011278 | 0 | 0.022556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
c866176018303ce578b45937beccaf7a80f841d3 | 3,440 | py | Python | tests/runtime/test_zero_division_error.py | MrGreenTea/friendly | 091f6af1d3c2be8fee078e52db6e16074d5518e5 | [
"MIT"
] | null | null | null | tests/runtime/test_zero_division_error.py | MrGreenTea/friendly | 091f6af1d3c2be8fee078e52db6e16074d5518e5 | [
"MIT"
] | null | null | null | tests/runtime/test_zero_division_error.py | MrGreenTea/friendly | 091f6af1d3c2be8fee078e52db6e16074d5518e5 | [
"MIT"
] | null | null | null | import friendly
def test_Division_operator():
zero = 0
try:
1 / zero
except ZeroDivisionError as e:
message = str(e)
friendly.explain_traceback(redirect="capture")
result = friendly.get_output()
assert "ZeroDivisionError: division by zero" in result
if friendly.get... | 27.086614 | 87 | 0.656686 | 424 | 3,440 | 5.205189 | 0.141509 | 0.079746 | 0.090621 | 0.094246 | 0.890349 | 0.88174 | 0.863616 | 0.863616 | 0.843679 | 0.843679 | 0 | 0.007053 | 0.25814 | 3,440 | 126 | 88 | 27.301587 | 0.857759 | 0 | 0 | 0.777778 | 0 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0.161616 | 1 | 0.080808 | false | 0 | 0.010101 | 0 | 0.171717 | 0.010101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c86a9d6a37d84ea9884e46cfb318f7404eaf21e1 | 3,850 | py | Python | tamcolors/tests/tam_tools_tests/tam_print_tests.py | cmcmarrow/tamcolors | 65a5f2455bbe35a739b98d14af158c3df7feb786 | [
"Apache-2.0"
] | 29 | 2020-07-17T23:46:17.000Z | 2022-02-06T05:36:44.000Z | tamcolors/tests/tam_tools_tests/tam_print_tests.py | sudo-nikhil/tamcolors | 65a5f2455bbe35a739b98d14af158c3df7feb786 | [
"Apache-2.0"
] | 42 | 2020-07-25T19:39:52.000Z | 2021-02-24T01:19:58.000Z | tamcolors/tests/tam_tools_tests/tam_print_tests.py | sudo-nikhil/tamcolors | 65a5f2455bbe35a739b98d14af158c3df7feb786 | [
"Apache-2.0"
] | 8 | 2020-07-18T23:02:48.000Z | 2020-12-30T04:07:35.000Z | # built in libraries
import unittest.mock
# tamcolors libraries
from tamcolors import tam_io
from tamcolors import tam_tools
from tamcolors.tam_io.tam_colors import *
class TAMPrintTests(unittest.TestCase):
def test_tam_print(self):
surface = tam_io.tam_surface.TAMSurface(6, 5, "@", RED, GREEN)
t... | 52.027027 | 84 | 0.605195 | 530 | 3,850 | 4.226415 | 0.103774 | 0.214286 | 0.314286 | 0.357143 | 0.879911 | 0.879911 | 0.879911 | 0.778571 | 0.778571 | 0.741964 | 0 | 0.033086 | 0.230649 | 3,850 | 73 | 85 | 52.739726 | 0.72316 | 0.00987 | 0 | 0.546875 | 0 | 0 | 0.022053 | 0 | 0 | 0 | 0 | 0 | 0.515625 | 1 | 0.078125 | false | 0 | 0.0625 | 0 | 0.15625 | 0.15625 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
c0a51725733140efca24f97424298a7c4499ca51 | 33,117 | py | Python | authors/apps/articles/tests/test_views.py | kimbugp/ah-haven-space-sprinters | 00e08131d1c4d7785f127f8e1beb17488c8ca0fd | [
"BSD-3-Clause"
] | 4 | 2019-04-30T13:38:15.000Z | 2021-04-22T08:56:54.000Z | authors/apps/articles/tests/test_views.py | kimbugp/ah-haven-space-sprinters | 00e08131d1c4d7785f127f8e1beb17488c8ca0fd | [
"BSD-3-Clause"
] | 37 | 2019-03-19T09:33:42.000Z | 2019-04-30T20:02:02.000Z | authors/apps/articles/tests/test_views.py | kimbugp/ah-haven-space-sprinters | 00e08131d1c4d7785f127f8e1beb17488c8ca0fd | [
"BSD-3-Clause"
] | 4 | 2019-06-29T11:50:41.000Z | 2019-12-09T02:17:05.000Z | import json
from django.urls import reverse
from django.core import mail
from rest_framework import status
from authors.apps.authentication.models import User
from authors.apps.articles.models import Article, ArticleLikes
from .test_base import BaseTestClass
from authors.apps.authentication.tests.test_base import B... | 41.5 | 86 | 0.602228 | 3,543 | 33,117 | 5.456675 | 0.05899 | 0.081726 | 0.091243 | 0.108623 | 0.897791 | 0.878757 | 0.864325 | 0.854911 | 0.82548 | 0.800548 | 0 | 0.007797 | 0.28351 | 33,117 | 797 | 87 | 41.55207 | 0.806979 | 0.010901 | 0 | 0.796424 | 0 | 0 | 0.175061 | 0.080746 | 0 | 0 | 0 | 0 | 0.115543 | 1 | 0.072902 | false | 0.001376 | 0.011004 | 0 | 0.086658 | 0.001376 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c0c586afcbaa5be04df2a07bbcd4cbe92790ecb2 | 764 | py | Python | eppy/tests/test_case_insensitive.py | hnagda/eppy | 422399ada78eb9f39ae61f96b385fe41a0a19100 | [
"MIT"
] | 116 | 2015-04-07T13:58:34.000Z | 2022-02-23T15:52:35.000Z | eppy/tests/test_case_insensitive.py | hnagda/eppy | 422399ada78eb9f39ae61f96b385fe41a0a19100 | [
"MIT"
] | 324 | 2015-01-01T04:10:46.000Z | 2022-03-16T16:28:13.000Z | eppy/tests/test_case_insensitive.py | hnagda/eppy | 422399ada78eb9f39ae61f96b385fe41a0a19100 | [
"MIT"
] | 65 | 2015-07-14T21:57:02.000Z | 2022-02-14T08:39:02.000Z | import pytest
@pytest.mark.parametrize("key", ["BUILDING", "Building", "building", "BuIlDiNg"])
def test_get_and_set(base_idf, key):
idf = base_idf
idf.newidfobject(key, Name="Building")
buildings = idf.idfobjects["building"]
assert len(buildings) == 1
@pytest.mark.parametrize("key", ["BUILDING", "B... | 29.384615 | 81 | 0.693717 | 98 | 764 | 5.295918 | 0.244898 | 0.277457 | 0.277457 | 0.138728 | 0.745665 | 0.745665 | 0.745665 | 0.745665 | 0.745665 | 0.745665 | 0 | 0.001546 | 0.153141 | 764 | 25 | 82 | 30.56 | 0.800618 | 0 | 0 | 0.578947 | 0 | 0 | 0.189791 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 1 | 0.157895 | false | 0 | 0.052632 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 | 7 |
c0d4d0151900f828636a6b8a82722ae41f8b1e19 | 47 | py | Python | tests/functions.py | glebite/dikteh | c717696420901e7b19fc181ac4a853a698769616 | [
"CC0-1.0"
] | null | null | null | tests/functions.py | glebite/dikteh | c717696420901e7b19fc181ac4a853a698769616 | [
"CC0-1.0"
] | null | null | null | tests/functions.py | glebite/dikteh | c717696420901e7b19fc181ac4a853a698769616 | [
"CC0-1.0"
] | null | null | null | import os
def thingy():
return 'Windows'
| 7.833333 | 20 | 0.638298 | 6 | 47 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255319 | 47 | 5 | 21 | 9.4 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.148936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0.333333 | 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 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 8 |
c0e42bcb627e13b9fab6a9fbb71e89baedc779d8 | 175 | py | Python | sktime/datasets/__init__.py | fkiraly/sktime | 3cd0064f7750844178b60d67422b083b5004131a | [
"BSD-3-Clause"
] | 2 | 2021-01-19T05:10:50.000Z | 2021-01-22T18:39:56.000Z | sktime/datasets/__init__.py | fkiraly/sktime | 3cd0064f7750844178b60d67422b083b5004131a | [
"BSD-3-Clause"
] | 1 | 2019-11-05T16:48:00.000Z | 2019-11-05T16:48:00.000Z | sktime/datasets/__init__.py | jasonlines/sktime-workshop-shapelets | de18963af56a0f062b0a69cc6560611912a6778f | [
"BSD-3-Clause"
] | 1 | 2019-11-05T16:34:32.000Z | 2019-11-05T16:34:32.000Z | from .base import load_gunpoint
from .base import load_italy_power_demand
from .base import load_arrow_head
from .base import load_shampoo_sales
from .base import load_longley | 35 | 41 | 0.862857 | 29 | 175 | 4.896552 | 0.448276 | 0.28169 | 0.492958 | 0.633803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108571 | 175 | 5 | 42 | 35 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
c0f8cffb500b899abd2afc2e3e66a8d747c357f1 | 6,503 | py | Python | tests/snc/agents/hedgehog/test_minimum_draining_time.py | dmcnamee/snc | c2da8c1e9ecdc42c59b9de73224b3d50ee1c9786 | [
"Apache-2.0"
] | 5 | 2021-03-24T16:23:10.000Z | 2021-11-17T12:44:51.000Z | tests/snc/agents/hedgehog/test_minimum_draining_time.py | dmcnamee/snc | c2da8c1e9ecdc42c59b9de73224b3d50ee1c9786 | [
"Apache-2.0"
] | 3 | 2021-03-26T01:16:08.000Z | 2021-05-08T22:06:47.000Z | tests/snc/agents/hedgehog/test_minimum_draining_time.py | dmcnamee/snc | c2da8c1e9ecdc42c59b9de73224b3d50ee1c9786 | [
"Apache-2.0"
] | 2 | 2021-03-24T17:20:06.000Z | 2021-04-19T09:01:12.000Z | import numpy as np
import snc.agents.hedgehog.minimal_draining_time as mdt
from snc.agents.hedgehog.workload.workload import compute_load_workload_matrix
from snc.environments import examples
def test_compute_minimal_draining_time_push_model():
minimal_draining_time_theory = 20.
initial_state = np.array([[10.... | 55.581197 | 99 | 0.746732 | 896 | 6,503 | 4.947545 | 0.147321 | 0.230092 | 0.29145 | 0.087977 | 0.804196 | 0.782766 | 0.769231 | 0.742161 | 0.722987 | 0.637717 | 0 | 0.01927 | 0.178072 | 6,503 | 116 | 100 | 56.060345 | 0.810103 | 0.054129 | 0 | 0.427083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 1 | 0.052083 | false | 0 | 0.041667 | 0 | 0.09375 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
23c3804bd3b6ebc5a0f3655a51abbe2e80bad2ff | 10,262 | py | Python | command/runner.py | Canon11/dj-cref | f139a2dcd31d7229293e7fe53ec5a21519024ad1 | [
"MIT"
] | 1 | 2019-06-30T15:29:40.000Z | 2019-06-30T15:29:40.000Z | command/runner.py | Canon11/dj-cref | f139a2dcd31d7229293e7fe53ec5a21519024ad1 | [
"MIT"
] | null | null | null | command/runner.py | Canon11/dj-cref | f139a2dcd31d7229293e7fe53ec5a21519024ad1 | [
"MIT"
] | null | null | null | from abc import abstractmethod, ABCMeta
import textwrap
class BaseView(metaclass=ABCMeta):
def get_import(self):
text = 'from django.views import %s' % self.__class__.__name__
return text
@abstractmethod
def get_main_text(self):
pass
def output(self, needs_import):
te... | 33.535948 | 77 | 0.479146 | 896 | 10,262 | 5.321429 | 0.102679 | 0.125839 | 0.159396 | 0.120596 | 0.854446 | 0.832425 | 0.832425 | 0.808515 | 0.790059 | 0.790059 | 0 | 0.001031 | 0.432762 | 10,262 | 305 | 78 | 33.645902 | 0.818073 | 0 | 0 | 0.834711 | 0 | 0 | 0.855389 | 0.140908 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049587 | false | 0.012397 | 0.028926 | 0 | 0.256198 | 0.004132 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
f1d679b4230f64b9f019068584123a15c4f2aa81 | 440 | py | Python | CreateCSV/settings.py | JacobRawling/MLTopReconstruction | 8d498e8da6ce672615892d67a4678c873953f260 | [
"MIT"
] | 1 | 2020-05-28T11:49:30.000Z | 2020-05-28T11:49:30.000Z | CreateCSV/settings.py | JacobRawling/MLTopReconstruction | 8d498e8da6ce672615892d67a4678c873953f260 | [
"MIT"
] | null | null | null | CreateCSV/settings.py | JacobRawling/MLTopReconstruction | 8d498e8da6ce672615892d67a4678c873953f260 | [
"MIT"
] | null | null | null | input_file = "/Users/jrawling/Documents/Physics/DeadConeAnalysis/ATLASWork/samples/ttj/output.root"
input_file = "/Users/jrawling/Documents/Physics/DeadConeAnalysis/ATLASWork/samples/ttj/410501_minisample.root"
input_file = "/Users/jrawling/Documents/Physics/DeadConeAnalysis/ATLASWork/samples/ttj/410501.root"
... | 62.857143 | 113 | 0.802273 | 54 | 440 | 6.314815 | 0.425926 | 0.079179 | 0.123167 | 0.193548 | 0.70088 | 0.70088 | 0.70088 | 0.70088 | 0.70088 | 0.70088 | 0 | 0.029557 | 0.077273 | 440 | 7 | 114 | 62.857143 | 0.810345 | 0 | 0 | 0 | 0 | 0 | 0.659864 | 0.596372 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
9e4dc06c90301e66f54b59538a0d0e3faf972500 | 1,349 | py | Python | tests/bpyutils/util/test_test.py | boilpy/bpyutils | 9f81c544abaf7b3221f3c6783f293c344bd94544 | [
"MIT"
] | null | null | null | tests/bpyutils/util/test_test.py | boilpy/bpyutils | 9f81c544abaf7b3221f3c6783f293c344bd94544 | [
"MIT"
] | null | null | null | tests/bpyutils/util/test_test.py | boilpy/bpyutils | 9f81c544abaf7b3221f3c6783f293c344bd94544 | [
"MIT"
] | null | null | null | import pytest
from bpyutils.util.test import (
_class_name_to_fn,
_read_and_sanitize_file,
TestGenerator,
NodeFetcher,
generate_tests
)
def test__class_name_to_fn():
raise NotImplementedError
def test__read_and_sanitize_file():
raise NotImplementedError
def test_test_generator():
raise NotImplementedEr... | 19.271429 | 44 | 0.848036 | 159 | 1,349 | 6.666667 | 0.220126 | 0.125472 | 0.458491 | 0.526415 | 0.74717 | 0.706604 | 0.378302 | 0.109434 | 0 | 0 | 0 | 0 | 0.103781 | 1,349 | 69 | 45 | 19.550725 | 0.876758 | 0 | 0 | 0.413043 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.413043 | true | 0 | 0.130435 | 0 | 0.543478 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 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 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
7b88687c5a9f04a16b50e1659d8989de82cd7cf1 | 71 | py | Python | settings.py | Jsinclairisto/pygame_project | 307df339237b1766c45fed3f6f4f4adfc274d180 | [
"MIT"
] | null | null | null | settings.py | Jsinclairisto/pygame_project | 307df339237b1766c45fed3f6f4f4adfc274d180 | [
"MIT"
] | null | null | null | settings.py | Jsinclairisto/pygame_project | 307df339237b1766c45fed3f6f4f4adfc274d180 | [
"MIT"
] | null | null | null | import pygame, os
from pygame.locals import *
def constants():
pass | 14.2 | 27 | 0.732394 | 10 | 71 | 5.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183099 | 71 | 5 | 28 | 14.2 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0.25 | 0.5 | 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 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
7ba7885e62a4dd34d5872e2e1d9551cf1b13f492 | 248 | py | Python | portality/api/v1/data_objects/__init__.py | glauberm/doaj | dc24dfcbf4a9f02ce5c9b09b611a5766ea5742f7 | [
"Apache-2.0"
] | null | null | null | portality/api/v1/data_objects/__init__.py | glauberm/doaj | dc24dfcbf4a9f02ce5c9b09b611a5766ea5742f7 | [
"Apache-2.0"
] | null | null | null | portality/api/v1/data_objects/__init__.py | glauberm/doaj | dc24dfcbf4a9f02ce5c9b09b611a5766ea5742f7 | [
"Apache-2.0"
] | null | null | null | from portality.api.v1.data_objects.journal import OutgoingJournal
from portality.api.v1.data_objects.application import IncomingApplication, OutgoingApplication
from portality.api.v1.data_objects.article import IncomingArticleDO, OutgoingArticleDO
| 62 | 94 | 0.887097 | 29 | 248 | 7.482759 | 0.517241 | 0.179724 | 0.221198 | 0.248848 | 0.400922 | 0.400922 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 0.056452 | 248 | 3 | 95 | 82.666667 | 0.91453 | 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 | 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 | 1 | 0 | 1 | 0 | 0 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.