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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
724da380c925fd0be608bd11f30b6d426eb5746d | 27 | py | Python | megnet/data/__init__.py | abdalazizrashid/megnet | 8ad0fca246465bd57d66392f790c5310c610dfff | [
"BSD-3-Clause"
] | 367 | 2018-12-13T14:49:00.000Z | 2022-03-31T10:17:04.000Z | megnet/data/__init__.py | kdmsit/MEGNet | 4f3c76c6b99edcb41d52ae5e8ae9dc89956d33d1 | [
"MIT"
] | 162 | 2019-02-08T20:38:12.000Z | 2022-03-31T21:13:06.000Z | megnet/data/__init__.py | kdmsit/MEGNet | 4f3c76c6b99edcb41d52ae5e8ae9dc89956d33d1 | [
"MIT"
] | 119 | 2018-12-17T10:16:12.000Z | 2022-03-31T17:26:57.000Z | """
Data manipulations
"""
| 6.75 | 18 | 0.62963 | 2 | 27 | 8.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 27 | 3 | 19 | 9 | 0.73913 | 0.666667 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a0fa30f527e6c86b6cb9dc5b7f38c0821721deb9 | 71 | py | Python | tests/routes/__init__.py | Bachhofer/spottydata | e9334c2a32bb65018b57d83fc4522ae241427db7 | [
"MIT"
] | null | null | null | tests/routes/__init__.py | Bachhofer/spottydata | e9334c2a32bb65018b57d83fc4522ae241427db7 | [
"MIT"
] | null | null | null | tests/routes/__init__.py | Bachhofer/spottydata | e9334c2a32bb65018b57d83fc4522ae241427db7 | [
"MIT"
] | null | null | null | # This is an empty python file to expose this directory to it's parent
| 35.5 | 70 | 0.774648 | 14 | 71 | 3.928571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197183 | 71 | 1 | 71 | 71 | 0.964912 | 0.957746 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9d0fc4d37e8008ce4ffedc8ff1748729bd11a8f1 | 271 | py | Python | skilletlib/skillet/__init__.py | annabarone/skilletlib | d1298218a1a0be35eb9fac2ae79323df600d8900 | [
"Apache-2.0"
] | 6 | 2020-04-27T18:08:02.000Z | 2022-01-14T13:27:19.000Z | skilletlib/skillet/__init__.py | annabarone/skilletlib | d1298218a1a0be35eb9fac2ae79323df600d8900 | [
"Apache-2.0"
] | 85 | 2019-10-28T19:13:55.000Z | 2021-07-14T13:00:28.000Z | skilletlib/skillet/__init__.py | annabarone/skilletlib | d1298218a1a0be35eb9fac2ae79323df600d8900 | [
"Apache-2.0"
] | 7 | 2019-12-05T20:17:16.000Z | 2021-12-09T01:16:58.000Z | # from .panos import PanosSkillet
# from .docker import DockerSkillet
# from .pan_validation import PanValidationSkillet
# from .python3 import Python3Skillet
# from .rest import RestSkillet
# from .template import TemplateSkillet
# from .workflow import WorkflowSkillet
| 33.875 | 50 | 0.819188 | 29 | 271 | 7.62069 | 0.586207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008475 | 0.129151 | 271 | 7 | 51 | 38.714286 | 0.927966 | 0.944649 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9d1115c99ef6af6ee80e12df2bf5eac7ff811ea7 | 149 | py | Python | CorePythonProg/ch02/0206.py | mallius/CppPrimer | 0285fabe5934492dfed0a9cf67ba5650982a5f76 | [
"MIT"
] | null | null | null | CorePythonProg/ch02/0206.py | mallius/CppPrimer | 0285fabe5934492dfed0a9cf67ba5650982a5f76 | [
"MIT"
] | null | null | null | CorePythonProg/ch02/0206.py | mallius/CppPrimer | 0285fabe5934492dfed0a9cf67ba5650982a5f76 | [
"MIT"
] | 1 | 2022-01-25T15:51:34.000Z | 2022-01-25T15:51:34.000Z | #!/usr/bin/env python
numTemp = raw_input('Enter a number: ')
num = int(numTemp)
if num > 0:
print '>0'
elif num ==0:
print '0'
else:
print '<0'
| 13.545455 | 39 | 0.61745 | 26 | 149 | 3.5 | 0.653846 | 0.197802 | 0.197802 | 0.21978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.194631 | 149 | 10 | 40 | 14.9 | 0.716667 | 0.134228 | 0 | 0 | 0 | 0 | 0.164063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9d59ba6b91ae4d068be41f7bfb3634b177f8ade2 | 217 | py | Python | tests/expr/expr09.py | ktok07b6/polyphony | 657c5c7440520db6b4985970bd50547407693ac4 | [
"MIT"
] | 83 | 2015-11-30T09:59:13.000Z | 2021-08-03T09:12:28.000Z | tests/expr/expr09.py | jesseclin/polyphony | 657c5c7440520db6b4985970bd50547407693ac4 | [
"MIT"
] | 4 | 2017-02-10T01:43:11.000Z | 2020-07-14T03:52:25.000Z | tests/expr/expr09.py | jesseclin/polyphony | 657c5c7440520db6b4985970bd50547407693ac4 | [
"MIT"
] | 11 | 2016-11-18T14:39:15.000Z | 2021-02-23T10:05:20.000Z | from polyphony import testbench
def expr09(a, b):
return a ^ b
@testbench
def test():
assert 1 == expr09(0b1000, 0b1001)
assert 3 == expr09(0b1000, 0b1011)
assert 1 == expr09(0b1010, 0b1011)
test()
| 16.692308 | 38 | 0.654378 | 30 | 217 | 4.733333 | 0.566667 | 0.169014 | 0.183099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244048 | 0.225806 | 217 | 12 | 39 | 18.083333 | 0.60119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
c22bb60421f79ce3a2d29c04e35af61e67fb09d3 | 1,207 | py | Python | telegram_ecommerce/filters/decorators.py | Anonylions/telegram_ecommerce | f5382886bbebf607c735e2f451774c56df8d6011 | [
"MIT"
] | 10 | 2020-11-20T20:55:52.000Z | 2022-02-10T20:25:45.000Z | telegram_ecommerce/filters/decorators.py | Anonylions/telegram_ecommerce | f5382886bbebf607c735e2f451774c56df8d6011 | [
"MIT"
] | 1 | 2022-02-16T10:28:18.000Z | 2022-02-16T10:35:31.000Z | telegram_ecommerce/filters/decorators.py | Anonylions/telegram_ecommerce | f5382886bbebf607c735e2f451774c56df8d6011 | [
"MIT"
] | 8 | 2021-05-01T01:13:09.000Z | 2022-03-13T14:00:01.000Z | from ..language import get_text
from ..database.query import (
user_exist,
is_admin)
END = -1
def warning_the_user_that_already_have_an_account(update, context):
text = get_text("user_have_account", context)
update.message.reply_text(text)
return END
def warning_the_user_that_he_dont_have_an_a... | 26.822222 | 67 | 0.71831 | 165 | 1,207 | 4.8 | 0.206061 | 0.131313 | 0.069444 | 0.090909 | 0.813131 | 0.795455 | 0.77904 | 0.606061 | 0.606061 | 0.568182 | 0 | 0.001058 | 0.217067 | 1,207 | 44 | 68 | 27.431818 | 0.837037 | 0 | 0 | 0.451613 | 0 | 0 | 0.032365 | 0.018257 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193548 | false | 0 | 0.064516 | 0 | 0.516129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
c22fbe148dfbc37e36952003c17c1b1180d11337 | 63 | py | Python | albow/demo/openGL/__init__.py | hasii2011/albow-python-3 | 04b9d42705b370b62f0e49d10274eebf3ac54bc1 | [
"MIT"
] | 6 | 2019-04-30T23:50:39.000Z | 2019-11-04T06:15:02.000Z | albow/demo/openGL/__init__.py | hasii2011/albow-python-3 | 04b9d42705b370b62f0e49d10274eebf3ac54bc1 | [
"MIT"
] | 73 | 2019-05-12T18:43:14.000Z | 2021-04-13T19:19:03.000Z | albow/demo/openGL/__init__.py | hasii2011/albow-python-3 | 04b9d42705b370b62f0e49d10274eebf3ac54bc1 | [
"MIT"
] | null | null | null | """"
This package contains the OpenGL demonstration classes
""" | 21 | 54 | 0.761905 | 7 | 63 | 6.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126984 | 63 | 3 | 55 | 21 | 0.872727 | 0.888889 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c235b37d33733193984303077c70e9f3d941faa4 | 1,847 | py | Python | pyglare/scene/objects.py | keyvank/pyglare | 9e26ae444ff4481f0f50d7344d2a5a881d04fe64 | [
"MIT"
] | 6 | 2017-01-13T22:32:55.000Z | 2022-03-27T22:19:49.000Z | pyglare/scene/objects.py | keyvank/pyglare | 9e26ae444ff4481f0f50d7344d2a5a881d04fe64 | [
"MIT"
] | 1 | 2016-09-13T17:59:41.000Z | 2016-09-13T18:05:20.000Z | pyglare/scene/objects.py | keyvank/pyglare | 9e26ae444ff4481f0f50d7344d2a5a881d04fe64 | [
"MIT"
] | null | null | null | from ..math import geometry as geo
from ..image.color import Color
import math
class Material:
def __init__(self,color,diffuse_rate,specular_rate,specular_exponent,reflection_rate):
self.color = color
self.diffuse_rate = diffuse_rate
self.specular_rate = specular_rate
self.specular_exponent = specular_expon... | 24.959459 | 102 | 0.7634 | 261 | 1,847 | 5.149425 | 0.226054 | 0.071429 | 0.072917 | 0.056548 | 0.348214 | 0.239583 | 0.239583 | 0.191964 | 0.191964 | 0.125 | 0 | 0.003113 | 0.130482 | 1,847 | 73 | 103 | 25.30137 | 0.833748 | 0.077964 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.06 | 0.06 | 0.12 | 0.62 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
dfa5cb1adcaf33702f7f2c3cd145a0c36382a865 | 97 | py | Python | students/K33421/Samoshchenkov_Alexei/lr_2/hw_system/apps.py | Vivasus/ITMO_ICT_WebDevelopment_2020-2021 | 833d7ac1d40d9f7456a3c6b104a0e53c652d0035 | [
"MIT"
] | null | null | null | students/K33421/Samoshchenkov_Alexei/lr_2/hw_system/apps.py | Vivasus/ITMO_ICT_WebDevelopment_2020-2021 | 833d7ac1d40d9f7456a3c6b104a0e53c652d0035 | [
"MIT"
] | null | null | null | students/K33421/Samoshchenkov_Alexei/lr_2/hw_system/apps.py | Vivasus/ITMO_ICT_WebDevelopment_2020-2021 | 833d7ac1d40d9f7456a3c6b104a0e53c652d0035 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class HwSystemConfig(AppConfig):
name = 'hw_system'
| 16.166667 | 34 | 0.721649 | 11 | 97 | 6.272727 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206186 | 97 | 5 | 35 | 19.4 | 0.896104 | 0 | 0 | 0 | 0 | 0 | 0.097826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
dfaff48e9268da391e5354a533c983a642617b56 | 517 | py | Python | matching_operators.py | DeadManPoe/PyMatcher | fa0301033d6a9476920519c867bc5e66db7793b7 | [
"MIT"
] | null | null | null | matching_operators.py | DeadManPoe/PyMatcher | fa0301033d6a9476920519c867bc5e66db7793b7 | [
"MIT"
] | null | null | null | matching_operators.py | DeadManPoe/PyMatcher | fa0301033d6a9476920519c867bc5e66db7793b7 | [
"MIT"
] | null | null | null | def match_plus(string, matching_value):
matches = match_star(string, matching_value)
return matches != 0, matches
def match_star(string, matching_value):
found_occurrences = 0
for i, char in enumerate(string):
if not match_identity(char, matching_value):
return found_occurrences
... | 28.722222 | 52 | 0.694391 | 62 | 517 | 5.532258 | 0.33871 | 0.265306 | 0.276968 | 0.134111 | 0.163265 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007481 | 0.224371 | 517 | 17 | 53 | 30.411765 | 0.84788 | 0 | 0 | 0.142857 | 0 | 0 | 0.001934 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
dfdfaf2898c9221e7f4f486f5412b4e767f314f2 | 3,821 | py | Python | tests/test_constraints.py | jayvdb/versions | 951bc3fd99b6a675190f11ee0752af1d7ff5b440 | [
"MIT"
] | 3 | 2015-02-20T04:02:25.000Z | 2021-04-06T14:42:21.000Z | tests/test_constraints.py | jayvdb/versions | 951bc3fd99b6a675190f11ee0752af1d7ff5b440 | [
"MIT"
] | 1 | 2019-07-07T06:37:01.000Z | 2019-07-07T06:37:01.000Z | tests/test_constraints.py | jayvdb/versions | 951bc3fd99b6a675190f11ee0752af1d7ff5b440 | [
"MIT"
] | 2 | 2019-07-07T05:40:29.000Z | 2021-04-06T14:42:23.000Z | from unittest import TestCase
from versions.constraints import Constraints, merge, ExclusiveConstraints
from versions.constraint import Constraint
class TestConstraints(TestCase):
def test_match(self):
self.assertTrue(Constraints.parse('>1,<2').match('1.5'))
def test_match_in(self):
self.as... | 40.221053 | 83 | 0.559016 | 373 | 3,821 | 5.678284 | 0.13941 | 0.29745 | 0.203966 | 0.184136 | 0.607177 | 0.607177 | 0.534466 | 0.392823 | 0.370633 | 0.363078 | 0 | 0.033607 | 0.267993 | 3,821 | 94 | 84 | 40.648936 | 0.723632 | 0.030359 | 0 | 0.106061 | 0 | 0 | 0.065118 | 0.007566 | 0 | 0 | 0 | 0 | 0.409091 | 1 | 0.166667 | false | 0 | 0.045455 | 0 | 0.242424 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
dfe12be6330b0968db19fa6ffe0881fb8fa8099d | 1,224 | py | Python | typefactory/constraints/numeric.py | stevemccartney/typefactory | 75c9eb9eec9a7b9488db9cc0d06352f4fd1de1d9 | [
"Apache-2.0"
] | null | null | null | typefactory/constraints/numeric.py | stevemccartney/typefactory | 75c9eb9eec9a7b9488db9cc0d06352f4fd1de1d9 | [
"Apache-2.0"
] | null | null | null | typefactory/constraints/numeric.py | stevemccartney/typefactory | 75c9eb9eec9a7b9488db9cc0d06352f4fd1de1d9 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from numbers import Real
from typing import Optional
@dataclass
class MultipleOf:
param: Real
def __call__(self, value: Real) -> Optional[str]:
if value % self.param != 0:
return f"Value must be a multiple of {self.param}"
else:
return... | 20.745763 | 62 | 0.586601 | 146 | 1,224 | 4.780822 | 0.212329 | 0.12894 | 0.08596 | 0.114613 | 0.775072 | 0.749284 | 0.749284 | 0.696275 | 0.696275 | 0.696275 | 0 | 0.0012 | 0.319444 | 1,224 | 58 | 63 | 21.103448 | 0.836735 | 0 | 0 | 0.581395 | 0 | 0 | 0.125817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116279 | false | 0 | 0.069767 | 0 | 0.651163 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
dfed59a42f4a11efd34b43e01fd5f7beba8d46b6 | 169 | py | Python | tests/web_platform/css_grid_1/abspos/test_grid_positioned_items_gaps.py | jonboland/colosseum | cbf974be54fd7f6fddbe7285704cfaf7a866c5c5 | [
"BSD-3-Clause"
] | 71 | 2015-04-13T09:44:14.000Z | 2019-03-24T01:03:02.000Z | tests/web_platform/css_grid_1/abspos/test_grid_positioned_items_gaps.py | jonboland/colosseum | cbf974be54fd7f6fddbe7285704cfaf7a866c5c5 | [
"BSD-3-Clause"
] | 35 | 2019-05-06T15:26:09.000Z | 2022-03-28T06:30:33.000Z | tests/web_platform/css_grid_1/abspos/test_grid_positioned_items_gaps.py | jonboland/colosseum | cbf974be54fd7f6fddbe7285704cfaf7a866c5c5 | [
"BSD-3-Clause"
] | 139 | 2015-05-30T18:37:43.000Z | 2019-03-27T17:14:05.000Z | from tests.utils import W3CTestCase
class TestGridPositionedItemsGaps(W3CTestCase):
vars().update(W3CTestCase.find_tests(__file__, 'grid-positioned-items-gaps-'))
| 28.166667 | 82 | 0.804734 | 18 | 169 | 7.277778 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019355 | 0.08284 | 169 | 5 | 83 | 33.8 | 0.825806 | 0 | 0 | 0 | 0 | 0 | 0.159763 | 0.159763 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
dff0a891ee94445188ef897fe40edf7b03e0dcdf | 18 | py | Python | src/__init__.py | PMantovani/pympu6050 | bab4e680d700d9ad62855958cdb93feaaa16060c | [
"MIT"
] | null | null | null | src/__init__.py | PMantovani/pympu6050 | bab4e680d700d9ad62855958cdb93feaaa16060c | [
"MIT"
] | null | null | null | src/__init__.py | PMantovani/pympu6050 | bab4e680d700d9ad62855958cdb93feaaa16060c | [
"MIT"
] | null | null | null | name = "pympu6050" | 18 | 18 | 0.722222 | 2 | 18 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0.111111 | 18 | 1 | 18 | 18 | 0.5625 | 0 | 0 | 0 | 0 | 0 | 0.473684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5f018a5353d8adb9d68568f7a0b49dde04ed193e | 75 | py | Python | storch/models/__init__.py | STomoya/storch | 47754eecd5fb5404dd345f06fb0f8d3270a9e5b9 | [
"MIT"
] | null | null | null | storch/models/__init__.py | STomoya/storch | 47754eecd5fb5404dd345f06fb0f8d3270a9e5b9 | [
"MIT"
] | null | null | null | storch/models/__init__.py | STomoya/storch | 47754eecd5fb5404dd345f06fb0f8d3270a9e5b9 | [
"MIT"
] | null | null | null |
from multiscale import MultiScale
from patchgan import PatchDiscriminator
| 18.75 | 39 | 0.88 | 8 | 75 | 8.25 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 75 | 3 | 40 | 25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
5f0603321cb19a9d08d78984f4e1439bd2f1a90c | 121 | py | Python | python/testData/findUsages/GlobalUsages.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/findUsages/GlobalUsages.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/findUsages/GlobalUsages.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | <caret>search_variable = 1
def function():
global search_variable
search_variable = 2
print(search_variable) | 20.166667 | 26 | 0.735537 | 15 | 121 | 5.666667 | 0.6 | 0.658824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.190083 | 121 | 6 | 27 | 20.166667 | 0.846939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a054dcd6697f8d246a99e2b87deb291ef103d4ce | 101 | py | Python | add.py | Harshillab/python | 877d5fa6769ce7bcc28ca75c247df42ed7375e55 | [
"MIT"
] | null | null | null | add.py | Harshillab/python | 877d5fa6769ce7bcc28ca75c247df42ed7375e55 | [
"MIT"
] | null | null | null | add.py | Harshillab/python | 877d5fa6769ce7bcc28ca75c247df42ed7375e55 | [
"MIT"
] | null | null | null | import os
a=input("enter username:")
if a.isalpha():
os.system("useradd "+a)
os.system("passwd a")
| 16.833333 | 26 | 0.673267 | 17 | 101 | 4 | 0.647059 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118812 | 101 | 5 | 27 | 20.2 | 0.764045 | 0 | 0 | 0 | 0 | 0 | 0.306931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
a0732a0c9e8673154fd43815d09dd9d39d2b3b7d | 96 | py | Python | batchout/core/util.py | ilia-khaustov/batchout | e916a1b0bfac771e6c96d0ff2478dc3f44804a94 | [
"MIT"
] | 8 | 2019-11-05T06:54:30.000Z | 2021-12-14T14:52:24.000Z | batchout/core/util.py | ilia-khaustov/batchout | e916a1b0bfac771e6c96d0ff2478dc3f44804a94 | [
"MIT"
] | null | null | null | batchout/core/util.py | ilia-khaustov/batchout | e916a1b0bfac771e6c96d0ff2478dc3f44804a94 | [
"MIT"
] | 1 | 2020-05-05T09:31:14.000Z | 2020-05-05T09:31:14.000Z |
def to_iter(obj):
try:
return iter(obj)
except TypeError:
return obj,
| 12 | 24 | 0.552083 | 12 | 96 | 4.333333 | 0.666667 | 0.269231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.364583 | 96 | 7 | 25 | 13.714286 | 0.852459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
a07710f0bb90f929f1fc7e78cba178a4fc0fa117 | 1,007 | py | Python | tests/article_test.py | Kabu1/flashnews | 30852077c465ce828452125ec5e2b21115609c38 | [
"Unlicense"
] | null | null | null | tests/article_test.py | Kabu1/flashnews | 30852077c465ce828452125ec5e2b21115609c38 | [
"Unlicense"
] | null | null | null | tests/article_test.py | Kabu1/flashnews | 30852077c465ce828452125ec5e2b21115609c38 | [
"Unlicense"
] | null | null | null | import unittest
from app.models import Article
class ArticleTest(unittest.TestCase):
'''
Test Class to test the behaviour of the Article class
'''
def setUp(self):
'''
Set up method that will run before every Test
'''
self.new_article = Article('Jack Healy, Jack Nicas ... | 45.772727 | 569 | 0.715988 | 142 | 1,007 | 5.056338 | 0.697183 | 0.041783 | 0.038997 | 0.058496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054745 | 0.183714 | 1,007 | 21 | 570 | 47.952381 | 0.818735 | 0.144985 | 0 | 0 | 0 | 0.428571 | 0.645807 | 0.030038 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
a078916cfe94a2866d1c06904964969d62a237ec | 25 | py | Python | relatives/__init__.py | treyhunner/django-relatives | a578ab135f865df2835957cedfd00476c4b65e18 | [
"MIT"
] | 10 | 2015-08-14T00:22:52.000Z | 2021-09-16T08:15:14.000Z | relatives/__init__.py | treyhunner/django-relatives | a578ab135f865df2835957cedfd00476c4b65e18 | [
"MIT"
] | 12 | 2015-03-09T20:17:16.000Z | 2021-09-30T18:46:11.000Z | relatives/__init__.py | treyhunner/django-relatives | a578ab135f865df2835957cedfd00476c4b65e18 | [
"MIT"
] | 3 | 2016-01-05T15:20:10.000Z | 2018-08-03T10:51:23.000Z | __version__ = '1.3.0.a3'
| 12.5 | 24 | 0.64 | 5 | 25 | 2.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0.12 | 25 | 1 | 25 | 25 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0.32 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a0921c92865225de5297219ccf69a9133b387063 | 2,431 | py | Python | dist/snippets/woosmap_http_zones_collection_request/woosmap_http_zones_collection_request.py | woosmap/openapi-specification | 7f934628a75695884db2fa29dd1d04efd1fb20de | [
"MIT"
] | null | null | null | dist/snippets/woosmap_http_zones_collection_request/woosmap_http_zones_collection_request.py | woosmap/openapi-specification | 7f934628a75695884db2fa29dd1d04efd1fb20de | [
"MIT"
] | 3 | 2021-12-20T16:15:13.000Z | 2022-02-15T00:44:19.000Z | dist/snippets/woosmap_http_zones_collection_request/woosmap_http_zones_collection_request.py | woosmap/openapi-specification | 7f934628a75695884db2fa29dd1d04efd1fb20de | [
"MIT"
] | null | null | null | # [START woosmap_http_zones_collection_request]
import requests
import json
url = "https://api.woosmap.com/zones?private_key=YOUR_PRIVATE_API_KEY"
payload = json.dumps({
"zones": [
{
"zone_id": "ZoneA",
"description": "Delivery Zone for Store A",
"store_id": "STORE_ID_1... | 52.847826 | 562 | 0.65035 | 319 | 2,431 | 4.880878 | 0.394984 | 0.026975 | 0.044316 | 0.050096 | 0.411047 | 0.047527 | 0.047527 | 0.047527 | 0 | 0 | 0 | 0.524758 | 0.194159 | 2,431 | 46 | 563 | 52.847826 | 0.270036 | 0.03661 | 0 | 0.205128 | 0 | 0.076923 | 0.720085 | 0.495727 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.051282 | 0 | 0.051282 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a09b9af2b847bf39b063ead0a72aab28cd93427e | 126 | py | Python | wtpy/apps/__init__.py | Huijun-Cui/wtpy | 9a8243a20b944fbb37aa33d81215b7b36ac7b1e2 | [
"MIT"
] | null | null | null | wtpy/apps/__init__.py | Huijun-Cui/wtpy | 9a8243a20b944fbb37aa33d81215b7b36ac7b1e2 | [
"MIT"
] | null | null | null | wtpy/apps/__init__.py | Huijun-Cui/wtpy | 9a8243a20b944fbb37aa33d81215b7b36ac7b1e2 | [
"MIT"
] | null | null | null | from .WtBtAnalyst import WtBtAnalyst
from .WtCtaOptimizer import WtCtaOptimizer
__all__ = ["WtBtAnalyst","WtCtaOptimizer"] | 31.5 | 43 | 0.809524 | 11 | 126 | 8.909091 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 126 | 4 | 44 | 31.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.201613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a09c77edcb165aec8e2b0d92f741bba565b1c3ad | 627 | py | Python | ad2web/api/forms.py | billfor/alarmdecoder-webapp | 43c3ebb2b44c7291cd89a2a7a31bbdfdb3ec06dc | [
"BSD-3-Clause",
"MIT"
] | 46 | 2015-06-14T02:19:16.000Z | 2022-03-24T03:11:19.000Z | ad2web/api/forms.py | billfor/alarmdecoder-webapp | 43c3ebb2b44c7291cd89a2a7a31bbdfdb3ec06dc | [
"BSD-3-Clause",
"MIT"
] | 66 | 2015-03-14T16:30:43.000Z | 2021-08-28T22:20:01.000Z | ad2web/api/forms.py | billfor/alarmdecoder-webapp | 43c3ebb2b44c7291cd89a2a7a31bbdfdb3ec06dc | [
"BSD-3-Clause",
"MIT"
] | 44 | 2015-02-13T19:23:37.000Z | 2021-12-30T04:17:21.000Z | # -*- coding: utf-8 -*-
import string
from flask_wtf import FlaskForm as Form
from wtforms.fields.html5 import URLField, EmailField, TelField
from wtforms import (ValidationError, HiddenField, TextField, HiddenField,
PasswordField, SubmitField, TextAreaField, IntegerField, RadioField,
FileField, Decima... | 34.833333 | 81 | 0.773525 | 69 | 627 | 6.985507 | 0.710145 | 0.068465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003759 | 0.151515 | 627 | 18 | 82 | 34.833333 | 0.902256 | 0.033493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.153846 | 0.615385 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
2604cf6f50e982afd7ab5c70c9417b6682140a5d | 6,513 | py | Python | tests/test_facade.py | seucolega/lista-de-listas-cli | 48815fac9cf3332c5e4fbc935d6ddd09be2738a8 | [
"MIT"
] | null | null | null | tests/test_facade.py | seucolega/lista-de-listas-cli | 48815fac9cf3332c5e4fbc935d6ddd09be2738a8 | [
"MIT"
] | null | null | null | tests/test_facade.py | seucolega/lista-de-listas-cli | 48815fac9cf3332c5e4fbc935d6ddd09be2738a8 | [
"MIT"
] | null | null | null | import facade
import pytest
import schemas
@pytest.fixture(autouse=True)
def configure_db_session(db_session):
facade.db_session = db_session
def test_get_item_list__empty():
assert facade.get_item_list() == []
def test_get_item_list__with_item(item_1):
assert facade.get_item_list() == [item_1]
def ... | 24.484962 | 79 | 0.76094 | 1,118 | 6,513 | 3.853309 | 0.059034 | 0.077066 | 0.078923 | 0.066852 | 0.831012 | 0.774838 | 0.733983 | 0.642758 | 0.595868 | 0.533658 | 0 | 0.026534 | 0.149394 | 6,513 | 265 | 80 | 24.577358 | 0.751083 | 0 | 0 | 0.428571 | 0 | 0 | 0.057424 | 0 | 0 | 0 | 0 | 0 | 0.24026 | 1 | 0.246753 | false | 0 | 0.019481 | 0 | 0.266234 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
260b70a7a637b6e3448163b26c95e89556398218 | 70 | py | Python | 24/aoc24-1-cython.py | combs/AdventOfCode2021 | 925df8a3526cb9c0dde368cf828673f345096e06 | [
"MIT"
] | null | null | null | 24/aoc24-1-cython.py | combs/AdventOfCode2021 | 925df8a3526cb9c0dde368cf828673f345096e06 | [
"MIT"
] | null | null | null | 24/aoc24-1-cython.py | combs/AdventOfCode2021 | 925df8a3526cb9c0dde368cf828673f345096e06 | [
"MIT"
] | null | null | null | import pyximport
pyximport.install()
from aoc24 import do_it
do_it()
| 11.666667 | 23 | 0.8 | 11 | 70 | 4.909091 | 0.636364 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.128571 | 70 | 5 | 24 | 14 | 0.852459 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
263f1ba2adc1731ba0f7b0bae1afb72287535d53 | 11,877 | py | Python | Vaccine_page/vaccine_maps_population.py | ScilifelabDataCentre/Covid_portal_vis | f41c1fe3b3d271b4d414378d622443f066a69d71 | [
"MIT"
] | null | null | null | Vaccine_page/vaccine_maps_population.py | ScilifelabDataCentre/Covid_portal_vis | f41c1fe3b3d271b4d414378d622443f066a69d71 | [
"MIT"
] | 2 | 2021-02-24T11:59:16.000Z | 2021-04-27T07:48:50.000Z | Vaccine_page/vaccine_maps_population.py | ScilifelabDataCentre/Covid_portal_vis | f41c1fe3b3d271b4d414378d622443f066a69d71 | [
"MIT"
] | 7 | 2021-02-18T14:50:03.000Z | 2021-11-11T11:41:07.000Z | import plotly.express as px
import plotly.graph_objects as go
import pandas as pd
import json
import os
from vaccine_dataprep_Swedentots import (
df_vacc_lan, # data on 1st 2 doses
third_vacc_dose_lan, # data on 3rd dose
# df_vacc_ålders_lan, # a switch to age data for 1st and second doses?
SCB_popu... | 31.841823 | 129 | 0.613707 | 1,706 | 11,877 | 4.028722 | 0.147128 | 0.081187 | 0.048014 | 0.044231 | 0.783501 | 0.741161 | 0.714826 | 0.714826 | 0.670886 | 0.647461 | 0 | 0.065502 | 0.233897 | 11,877 | 372 | 130 | 31.927419 | 0.689856 | 0.155258 | 0 | 0.664474 | 0 | 0 | 0.17183 | 0.024762 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.019737 | 0 | 0.019737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
26406e10e1297a7c9003be939dfb3100b8150501 | 9,995 | py | Python | stanCode_Projects/my_photoshop/blur.py | EricCheng8679/sc-projects | 85f478ecf4c04f3ee79fd4c911a7122b286aff06 | [
"MIT"
] | null | null | null | stanCode_Projects/my_photoshop/blur.py | EricCheng8679/sc-projects | 85f478ecf4c04f3ee79fd4c911a7122b286aff06 | [
"MIT"
] | null | null | null | stanCode_Projects/my_photoshop/blur.py | EricCheng8679/sc-projects | 85f478ecf4c04f3ee79fd4c911a7122b286aff06 | [
"MIT"
] | null | null | null | """
File: blur.py
-------------------------------
This file shows the original image(smiley-face.png)
first, and then its blurred image. The blur algorithm
uses the average RGB values of a pixel's nearest neighbors.
"""
from simpleimage import SimpleImage
BLURRED_SCALE = 9
def blur(old_img):
"""
:param old_... | 63.66242 | 118 | 0.561681 | 1,555 | 9,995 | 3.237942 | 0.076527 | 0.31142 | 0.126713 | 0.138232 | 0.8143 | 0.798014 | 0.794836 | 0.685601 | 0.669712 | 0.576763 | 0 | 0.019551 | 0.33987 | 9,995 | 156 | 119 | 64.070513 | 0.743559 | 0.076538 | 0 | 0.44697 | 0 | 0 | 0.003273 | 0.0024 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015152 | false | 0 | 0.007576 | 0 | 0.030303 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
13fb266bbbe1b42018ffaaf4a8dc92668ab6d95f | 137 | py | Python | src/__init__.py | gitlabbin/zookeeper-kazoo-barrier-snippet | 2ab88fa3735b61dd9a94e0e0294e88a12c458ee3 | [
"MIT"
] | null | null | null | src/__init__.py | gitlabbin/zookeeper-kazoo-barrier-snippet | 2ab88fa3735b61dd9a94e0e0294e88a12c458ee3 | [
"MIT"
] | null | null | null | src/__init__.py | gitlabbin/zookeeper-kazoo-barrier-snippet | 2ab88fa3735b61dd9a94e0e0294e88a12c458ee3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import absolute_import
def main():
import src.barrier
if __name__ == '__main__':
main() | 13.7 | 38 | 0.693431 | 18 | 137 | 4.555556 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189781 | 137 | 10 | 39 | 13.7 | 0.738739 | 0.145985 | 0 | 0 | 0 | 0 | 0.068376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
cd08e9d07146abb0712c59ab83d9a3d247ba38c2 | 27 | py | Python | tool/klint/bpf/__init__.py | kylerky/klint | 77be216ec3f4315a835b7bcdaef1b66ed3144603 | [
"MIT"
] | 2 | 2022-03-08T16:10:27.000Z | 2022-03-11T14:14:04.000Z | tool/klint/bpf/__init__.py | kylerky/klint | 77be216ec3f4315a835b7bcdaef1b66ed3144603 | [
"MIT"
] | null | null | null | tool/klint/bpf/__init__.py | kylerky/klint | 77be216ec3f4315a835b7bcdaef1b66ed3144603 | [
"MIT"
] | 1 | 2022-03-24T09:27:41.000Z | 2022-03-24T09:27:41.000Z | """
BPF-related stuff.
"""
| 6.75 | 18 | 0.555556 | 3 | 27 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 27 | 3 | 19 | 9 | 0.652174 | 0.666667 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cd592812165ebec71f40378868573e5f9eda72b9 | 252 | py | Python | download_and_create_reference_datasets/v02/create_ht__clinvar.py | NLSVTN/hail-elasticsearch-pipelines | 8b895a2e46a33d347dd2a1024101a6d515027a03 | [
"MIT"
] | 15 | 2017-11-22T14:48:04.000Z | 2020-10-05T18:22:24.000Z | download_and_create_reference_datasets/v02/create_ht__clinvar.py | NLSVTN/hail-elasticsearch-pipelines | 8b895a2e46a33d347dd2a1024101a6d515027a03 | [
"MIT"
] | 94 | 2020-10-21T17:37:57.000Z | 2022-03-29T14:59:46.000Z | download_and_create_reference_datasets/v02/create_ht__clinvar.py | NLSVTN/hail-elasticsearch-pipelines | 8b895a2e46a33d347dd2a1024101a6d515027a03 | [
"MIT"
] | 7 | 2019-01-29T09:08:10.000Z | 2020-02-25T16:22:57.000Z | #!/usr/bin/env python3
from kubernetes.shell_utils import simple_run as run
run((
"python3 gcloud_dataproc/v02/run_script.py "
"--cluster create-ht-clinvar "
"download_and_create_reference_datasets/v02/hail_scripts/write_clinvar_ht.py"))
| 28 | 83 | 0.77381 | 37 | 252 | 4.972973 | 0.756757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.119048 | 252 | 8 | 84 | 31.5 | 0.801802 | 0.083333 | 0 | 0 | 0 | 0 | 0.630435 | 0.469565 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cd5dd7dda160122dc7f0149e4f5abf4d8e95ebe4 | 206 | py | Python | parser/src/test/test-data/math_csc.py | luciansmith/sedml-script | d891645d0b3f89ff190fc7e719659c8e229c07da | [
"MIT"
] | null | null | null | parser/src/test/test-data/math_csc.py | luciansmith/sedml-script | d891645d0b3f89ff190fc7e719659c8e229c07da | [
"MIT"
] | null | null | null | parser/src/test/test-data/math_csc.py | luciansmith/sedml-script | d891645d0b3f89ff190fc7e719659c8e229c07da | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created by libsedmlscript v0.0.1
"""
from sed_roadrunner import model, task, plot
from mpmath import csc
#----------------------------------------------
csc(0.5)
| 15.846154 | 48 | 0.475728 | 23 | 206 | 4.217391 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035928 | 0.18932 | 206 | 12 | 49 | 17.166667 | 0.54491 | 0.490291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
cd7e21c2d43aa6b5ca80b05a26cc762c012f19a7 | 228 | py | Python | data/__init__.py | opconty/keras_std | 26cbe25c525128a067a97157bca0b060f40e5ec8 | [
"Apache-2.0"
] | 18 | 2019-07-16T10:54:29.000Z | 2021-03-16T00:34:23.000Z | data/__init__.py | opconty/keras_std | 26cbe25c525128a067a97157bca0b060f40e5ec8 | [
"Apache-2.0"
] | 2 | 2019-08-26T11:40:12.000Z | 2019-12-07T13:18:48.000Z | data/__init__.py | opconty/keras_std | 26cbe25c525128a067a97157bca0b060f40e5ec8 | [
"Apache-2.0"
] | 8 | 2019-07-17T08:26:10.000Z | 2021-03-16T00:34:17.000Z | #-*- coding:utf-8 -*-
#'''
# Created on 19-7-16 下午2:14
#
# @Author: Greg Gao(laygin)
#'''
from .synth_text import SynthTextConfig, SynthTextDataset
from .icdar13 import IcdarConfig, IcdarDataset
from .img_aug import resize_image | 25.333333 | 57 | 0.736842 | 31 | 228 | 5.322581 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055 | 0.122807 | 228 | 9 | 58 | 25.333333 | 0.77 | 0.342105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
cd8abd04dc151085122e27f4484b76ecb7ff52ac | 225 | py | Python | OnePy/sys_module/base_riskmanager.py | Chandlercjy/OnePyfx | 9bd43b721d3f7352495b6ccab76bd533a3d2e8f2 | [
"MIT"
] | 321 | 2017-07-09T09:25:45.000Z | 2022-03-29T16:51:35.000Z | OnePy/sys_module/base_riskmanager.py | sunzhouhong/OnePy | 4e225945de297ba1211035a7b95b5094cdddc2a7 | [
"MIT"
] | 7 | 2017-08-23T12:10:29.000Z | 2020-03-26T12:56:09.000Z | OnePy/sys_module/base_riskmanager.py | sunzhouhong/OnePy | 4e225945de297ba1211035a7b95b5094cdddc2a7 | [
"MIT"
] | 134 | 2017-07-26T22:29:18.000Z | 2022-03-23T09:22:10.000Z | from OnePy.sys_module.metabase_env import OnePyEnvBase
class RiskManagerBase(OnePyEnvBase):
def __init__(self):
self.env.risk_managers.update({self.__class__.__name__: self})
def run(self):
pass
| 17.307692 | 70 | 0.715556 | 27 | 225 | 5.407407 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191111 | 225 | 12 | 71 | 18.75 | 0.802198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.166667 | 0.166667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
26a4b307dfc5e770b6a75ad04eed2871c82ad2a0 | 174 | py | Python | Python/CrashCourse/mongodb-quickstart-course/src/starter_code_snake_bnb/src/infrastructure/state.py | Mujtaba-Biyabani/Research | 211f57812786a151ce8c3b1c3ed379fd1ba4e2f9 | [
"Unlicense"
] | 52 | 2017-12-06T10:44:05.000Z | 2021-11-24T10:44:16.000Z | Python/CrashCourse/mongodb-quickstart-course/src/starter_code_snake_bnb/src/infrastructure/state.py | Mujtaba-Biyabani/Research | 211f57812786a151ce8c3b1c3ed379fd1ba4e2f9 | [
"Unlicense"
] | 8 | 2018-01-29T08:32:34.000Z | 2019-01-02T05:56:51.000Z | Python/CrashCourse/mongodb-quickstart-course/src/starter_code_snake_bnb/src/infrastructure/state.py | Mujtaba-Biyabani/Research | 211f57812786a151ce8c3b1c3ed379fd1ba4e2f9 | [
"Unlicense"
] | 125 | 2018-11-20T07:56:22.000Z | 2022-03-16T06:32:42.000Z | active_account = None
def reload_account():
global active_account
if not active_account:
return
# TODO: pull owner account from the database.
pass
| 15.818182 | 49 | 0.683908 | 22 | 174 | 5.227273 | 0.727273 | 0.33913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.270115 | 174 | 10 | 50 | 17.4 | 0.905512 | 0.247126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0 | 1 | 0.166667 | false | 0.166667 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
26ab3cad8e013a6c3ea0f8a7d1ac3f6bf89a579f | 24,208 | py | Python | tests/core/inst_utils.py | cornell-brg/lizard | 7f9a78a913e64b5cfdee3a26223539ad225bd6da | [
"BSD-3-Clause"
] | 50 | 2019-05-22T08:43:15.000Z | 2022-03-21T23:58:50.000Z | tests/core/inst_utils.py | cornell-brg/lizard | 7f9a78a913e64b5cfdee3a26223539ad225bd6da | [
"BSD-3-Clause"
] | 1 | 2019-07-27T18:51:52.000Z | 2019-08-02T01:20:22.000Z | tests/core/inst_utils.py | cornell-brg/lizard | 7f9a78a913e64b5cfdee3a26223539ad225bd6da | [
"BSD-3-Clause"
] | 11 | 2019-12-26T06:00:48.000Z | 2022-03-27T02:29:35.000Z | #=========================================================================
# inst_utils
#=========================================================================
# Includes helper functions to simplify creating assembly tests.
from pymtl import *
from tests.context import lizard
#------------------------------------... | 33.207133 | 80 | 0.527801 | 2,815 | 24,208 | 4.307993 | 0.094849 | 0.04156 | 0.052775 | 0.039828 | 0.799621 | 0.757153 | 0.722108 | 0.670817 | 0.634617 | 0.604684 | 0 | 0.022921 | 0.17457 | 24,208 | 728 | 81 | 33.252747 | 0.583976 | 0.51673 | 0 | 0.475177 | 0 | 0 | 0.322035 | 0.001917 | 0 | 0 | 0.002091 | 0 | 0 | 0 | null | null | 0 | 0.007092 | null | null | 0.010638 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
26b0dec6991fd98013cf8dc45f05ed08b2f7cb49 | 479 | py | Python | hooks/relations/juju-info/requires.py | xenefix/RoutingPolicyRule | fb0c815c3fc049f63491a3ca56416c8ba0fe692c | [
"Apache-2.0"
] | null | null | null | hooks/relations/juju-info/requires.py | xenefix/RoutingPolicyRule | fb0c815c3fc049f63491a3ca56416c8ba0fe692c | [
"Apache-2.0"
] | null | null | null | hooks/relations/juju-info/requires.py | xenefix/RoutingPolicyRule | fb0c815c3fc049f63491a3ca56416c8ba0fe692c | [
"Apache-2.0"
] | null | null | null | from charms.reactive import RelationBase
from charms.reactive import scopes
from charms.reactive import hook
from charms.reactive import when
class TestRelation(RelationBase):
scope = scopes.GLOBAL
@hook('{requires:test}-relation-joined')
def joined(self):
self.set_state('{relation_name}.ready')
... | 26.611111 | 73 | 0.707724 | 63 | 479 | 5.269841 | 0.47619 | 0.120482 | 0.216867 | 0.289157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005038 | 0.17119 | 479 | 17 | 74 | 28.176471 | 0.831234 | 0 | 0 | 0 | 0 | 0 | 0.19833 | 0.10856 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.307692 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
26c624cf265c7c07d22297b36c515787f4a26b33 | 92 | py | Python | proton_decay_study/config/__init__.py | HEP-DL/proton_decay_study | e7b087a123b893254401f897100f656588bf0c19 | [
"MIT"
] | 2 | 2018-01-02T02:58:50.000Z | 2021-11-17T07:26:25.000Z | proton_decay_study/config/__init__.py | HEP-DL/proton_decay_study | e7b087a123b893254401f897100f656588bf0c19 | [
"MIT"
] | 415 | 2017-04-27T21:16:01.000Z | 2022-03-27T23:01:21.000Z | proton_decay_study/config/__init__.py | HEP-DL/proton_decay_study | e7b087a123b893254401f897100f656588bf0c19 | [
"MIT"
] | 2 | 2018-01-03T18:38:45.000Z | 2019-10-03T19:27:29.000Z |
class Config(object):
"""
Represents configuration of network training
"""
pass
| 11.5 | 48 | 0.663043 | 9 | 92 | 6.777778 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23913 | 92 | 7 | 49 | 13.142857 | 0.871429 | 0.478261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
26d8feef12cddd2dca60e0f08ac5f863599108a2 | 1,213 | py | Python | analysis/hist_javelin.py | LiyrAstroph/MICA | 2592b8ad3011880898f557a69b22cad63fcd47e0 | [
"MIT"
] | 1 | 2016-10-25T06:32:33.000Z | 2016-10-25T06:32:33.000Z | analysis/hist_javelin.py | LiyrAstroph/MICA | 2592b8ad3011880898f557a69b22cad63fcd47e0 | [
"MIT"
] | null | null | null | analysis/hist_javelin.py | LiyrAstroph/MICA | 2592b8ad3011880898f557a69b22cad63fcd47e0 | [
"MIT"
] | 3 | 2016-12-29T06:04:13.000Z | 2020-04-12T11:48:42.000Z | import numpy as np
import matplotlib.pyplot as plt
import corner
mcmc = np.loadtxt("mychain1.dat")
ntheta = mcmc.shape[1]
fig = plt.figure(1, figsize=(15, 6))
ax = fig.add_subplot(231)
ax.hist(mcmc[:, 0]/np.log(10.0), 100, normed=True, range=(-0.9, -0.1))
ax = fig.add_subplot(232)
ax.hist(mcmc[:, 1]/np.log(10.0)... | 24.26 | 108 | 0.635614 | 245 | 1,213 | 3.106122 | 0.195918 | 0.065703 | 0.105125 | 0.197109 | 0.720105 | 0.720105 | 0.720105 | 0.662286 | 0.662286 | 0.651774 | 0 | 0.133333 | 0.122012 | 1,213 | 49 | 109 | 24.755102 | 0.581221 | 0 | 0 | 0.387097 | 0 | 0 | 0.023083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096774 | 0 | 0.096774 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
26fd4d122991c7a14eaad9bffe766e315791616a | 90 | py | Python | root/ilikeit/MySQLCrashCourse/dbcom/tests/__init__.py | ChyiYaqing/chyidlTutorial | 77e7f6f84f21537a58a8a8a42e31cf2e3dd31996 | [
"MIT"
] | 5 | 2018-10-17T05:57:39.000Z | 2021-07-05T15:38:24.000Z | root/ilikeit/MySQLCrashCourse/dbcom/tests/__init__.py | ChyiYaqing/chyidlTutorial | 77e7f6f84f21537a58a8a8a42e31cf2e3dd31996 | [
"MIT"
] | 2 | 2021-04-14T00:48:43.000Z | 2021-04-14T02:20:50.000Z | root/ilikeit/MySQLCrashCourse/dbcom/tests/__init__.py | ChyiYaqing/chyidlTutorial | 77e7f6f84f21537a58a8a8a42e31cf2e3dd31996 | [
"MIT"
] | 3 | 2019-03-02T14:36:19.000Z | 2022-03-18T10:12:09.000Z | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
"""Requests test package initialisation.""" | 22.5 | 43 | 0.655556 | 11 | 90 | 5.363636 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.111111 | 90 | 4 | 43 | 22.5 | 0.7125 | 0.888889 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f81ce517b53ccd795c4a506f2213bfeafa42c8e0 | 255 | py | Python | django_selectel_storage/exceptions.py | Stuvros/django-selectel-storage | 076f7e3c58d9391e2e7e27feb0526736d101c2b5 | [
"MIT"
] | 27 | 2015-01-28T09:17:09.000Z | 2021-06-21T20:48:01.000Z | django_selectel_storage/exceptions.py | Stuvros/django-selectel-storage | 076f7e3c58d9391e2e7e27feb0526736d101c2b5 | [
"MIT"
] | 9 | 2015-08-07T15:03:00.000Z | 2020-05-01T04:54:02.000Z | django_selectel_storage/exceptions.py | Stuvros/django-selectel-storage | 076f7e3c58d9391e2e7e27feb0526736d101c2b5 | [
"MIT"
] | 19 | 2015-05-20T14:16:25.000Z | 2022-03-31T06:31:59.000Z | class SelectelException(ValueError):
pass
class InvalidSchema(SelectelException):
pass
class EmptyUsername(SelectelException):
pass
class EmptyPassword(SelectelException):
pass
class EmptyContainerName(SelectelException):
pass
| 13.421053 | 44 | 0.772549 | 20 | 255 | 9.85 | 0.4 | 0.182741 | 0.395939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168627 | 255 | 18 | 45 | 14.166667 | 0.929245 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.6 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
f8459ec6a60f2e71cf7db3476a3460a08e1783eb | 110 | wsgi | Python | cryptovote/cryptovote.wsgi | cryptovoting/cryptovote | b236cf031a8f9dfa5cca54ff45003313275a0fc8 | [
"MIT"
] | 8 | 2019-05-14T02:41:34.000Z | 2021-11-25T08:07:22.000Z | cryptovote/cryptovote.wsgi | cryptovoting/cryptovote | b236cf031a8f9dfa5cca54ff45003313275a0fc8 | [
"MIT"
] | null | null | null | cryptovote/cryptovote.wsgi | cryptovoting/cryptovote | b236cf031a8f9dfa5cca54ff45003313275a0fc8 | [
"MIT"
] | 2 | 2019-05-14T20:20:07.000Z | 2021-11-25T08:07:24.000Z | # Used for deploying on Apache with mod_wsgi
from cryptovote.app import create_app
application = create_app()
| 27.5 | 44 | 0.818182 | 17 | 110 | 5.117647 | 0.823529 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 110 | 3 | 45 | 36.666667 | 0.915789 | 0.381818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f8675dfd4e125d168dde1ba9e29185bd73af107b | 4,331 | py | Python | writer/cashData/csvUtils.py | sifarone/gce_k8s_deployment | f596e17b9d0263ae24c61ebba9925af4719b4306 | [
"MIT"
] | null | null | null | writer/cashData/csvUtils.py | sifarone/gce_k8s_deployment | f596e17b9d0263ae24c61ebba9925af4719b4306 | [
"MIT"
] | null | null | null | writer/cashData/csvUtils.py | sifarone/gce_k8s_deployment | f596e17b9d0263ae24c61ebba9925af4719b4306 | [
"MIT"
] | 1 | 2021-01-24T17:07:37.000Z | 2021-01-24T17:07:37.000Z | import pandas as pd
from . import cashUtils as utils
class ReadStockBhavDataCSV:
def __init__(self, fileName):
self.df = pd.read_csv(fileName)
self.columns = self.df.columns
def getCSVColumnList(self):
return self.columns
def getStockFlatData(self):
'''
Returns a ... | 36.091667 | 93 | 0.484184 | 365 | 4,331 | 5.575342 | 0.169863 | 0.140541 | 0.12973 | 0.183784 | 0.8 | 0.8 | 0.8 | 0.714496 | 0.680098 | 0.377396 | 0 | 0 | 0.406142 | 4,331 | 119 | 94 | 36.394958 | 0.791213 | 0.209651 | 0 | 0.5 | 0 | 0 | 0.121153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.035714 | 0.035714 | 0.321429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f86d0468889ac52f5ce1040fe21e913a6db95f94 | 20,391 | py | Python | pymatflow/abinit/post/bands.py | DeqiTang/pymatflow | bd8776feb40ecef0e6704ee898d9f42ded3b0186 | [
"MIT"
] | 6 | 2020-03-06T16:13:08.000Z | 2022-03-09T07:53:34.000Z | pymatflow/abinit/post/bands.py | DeqiTang/pymatflow | bd8776feb40ecef0e6704ee898d9f42ded3b0186 | [
"MIT"
] | 1 | 2021-10-02T02:23:08.000Z | 2021-11-08T13:29:37.000Z | pymatflow/abinit/post/bands.py | DeqiTang/pymatflow | bd8776feb40ecef0e6704ee898d9f42ded3b0186 | [
"MIT"
] | 1 | 2021-07-10T16:28:14.000Z | 2021-07-10T16:28:14.000Z | """
post_bands:
post_bands extract data from static-o_DS3_EBANDS.agr and it will build
the kpoints length: xcoord_k from the high symmetry line and the corresponding
basis for reciprocal space.
b1 = 1 / a1, b2 = 1 / a2 and b3 = 1 / a3.
"""
import os
import numpy as np
import matplotlib.pypl... | 51.492424 | 142 | 0.529106 | 2,816 | 20,391 | 3.760653 | 0.089134 | 0.086686 | 0.056657 | 0.051558 | 0.768839 | 0.737394 | 0.715014 | 0.709065 | 0.685836 | 0.671577 | 0 | 0.024399 | 0.324653 | 20,391 | 395 | 143 | 51.622785 | 0.744608 | 0.152126 | 0 | 0.565217 | 0 | 0.014493 | 0.223249 | 0.082138 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025362 | false | 0.003623 | 0.01087 | 0 | 0.039855 | 0.036232 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f88ab7cb09ff4cce53f828728ecd959e4a4ca37a | 955 | py | Python | djangoBackend/payment_module/migrations/0005_auto_20210924_0054.py | muhanzi/Django-REST-API | 08b8b2bbd08a74589cca7b5fd4e1d604d9a6d7eb | [
"Apache-2.0"
] | null | null | null | djangoBackend/payment_module/migrations/0005_auto_20210924_0054.py | muhanzi/Django-REST-API | 08b8b2bbd08a74589cca7b5fd4e1d604d9a6d7eb | [
"Apache-2.0"
] | null | null | null | djangoBackend/payment_module/migrations/0005_auto_20210924_0054.py | muhanzi/Django-REST-API | 08b8b2bbd08a74589cca7b5fd4e1d604d9a6d7eb | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.2 on 2021-09-23 21:54
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('payment_module', '0004_auto_20210924_0009'),
]
operations = [
migrations.RenameField(
model_name='commission',
old_name='age... | 24.487179 | 54 | 0.536126 | 84 | 955 | 5.869048 | 0.47619 | 0.212982 | 0.263692 | 0.30426 | 0.551724 | 0.551724 | 0.458418 | 0 | 0 | 0 | 0 | 0.050243 | 0.353927 | 955 | 38 | 55 | 25.131579 | 0.748784 | 0.04712 | 0 | 0.59375 | 1 | 0 | 0.176211 | 0.02533 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f89ffb26ee589ce79dc400f7f5cf4afa16b557b3 | 88 | py | Python | view/resources/__init__.py | surfaceanalytics/inelasticscattering | da549dde788a55084c565bbc5f89ebf9cbae4263 | [
"MIT"
] | null | null | null | view/resources/__init__.py | surfaceanalytics/inelasticscattering | da549dde788a55084c565bbc5f89ebf9cbae4263 | [
"MIT"
] | 3 | 2021-09-08T03:02:25.000Z | 2022-03-12T01:00:06.000Z | view/resources/__init__.py | surfaceanalytics/inelasticscattering | da549dde788a55084c565bbc5f89ebf9cbae4263 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 3 16:43:28 2020
@author: nicholls
"""
| 11 | 35 | 0.568182 | 14 | 88 | 3.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 0.215909 | 88 | 7 | 36 | 12.571429 | 0.550725 | 0.875 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f8ab70b04aa64ecaf4843be345aba0efec2cfc69 | 414 | py | Python | sapextractor/utils/string_matching/distances.py | aarkue/sap-meta-explorer | 613bf657bbaa72a3781a84664e5de7626516532f | [
"Apache-2.0"
] | 2 | 2021-02-10T08:09:35.000Z | 2021-05-21T06:25:34.000Z | sapextractor/utils/string_matching/distances.py | aarkue/sap-meta-explorer | 613bf657bbaa72a3781a84664e5de7626516532f | [
"Apache-2.0"
] | null | null | null | sapextractor/utils/string_matching/distances.py | aarkue/sap-meta-explorer | 613bf657bbaa72a3781a84664e5de7626516532f | [
"Apache-2.0"
] | 3 | 2021-11-22T13:27:00.000Z | 2022-03-16T22:08:51.000Z | import stringdist
def levenshtein(stru1, stru2):
"""
Measures the Levenshtein distance between two strings
Parameters
---------------
stru1
First string
stru2
Second string
Returns
---------------
levens_dist
Levenshtein distance
"""
return stringd... | 16.56 | 57 | 0.601449 | 38 | 414 | 6.526316 | 0.552632 | 0.16129 | 0.254032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.275362 | 414 | 24 | 58 | 17.25 | 0.793333 | 0.458937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0.2 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
f8ba3fd25de458d4df99e4ca579804ce22c8dbdc | 112 | py | Python | database.py | anthonypang99/TakeNote | 7da668d48b72ee825f3fb9f503f8d4d6fe2ff644 | [
"MIT"
] | null | null | null | database.py | anthonypang99/TakeNote | 7da668d48b72ee825f3fb9f503f8d4d6fe2ff644 | [
"MIT"
] | null | null | null | database.py | anthonypang99/TakeNote | 7da668d48b72ee825f3fb9f503f8d4d6fe2ff644 | [
"MIT"
] | null | null | null | from flask_sqlalchemy import SQLAlchemy
# Initialize the Flask-SQLAlchemy extension instance
db = SQLAlchemy()
| 22.4 | 52 | 0.830357 | 13 | 112 | 7.076923 | 0.692308 | 0.326087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 112 | 4 | 53 | 28 | 0.938776 | 0.446429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f8c2cf6aa69e132e2490580fb1e86b3b369033e8 | 192 | py | Python | src/qualtrutils/__init__.py | emanuele-albini/qualtrutils | 7f1fb08221edb220738445bf3e8a92a1a037bb76 | [
"MIT"
] | null | null | null | src/qualtrutils/__init__.py | emanuele-albini/qualtrutils | 7f1fb08221edb220738445bf3e8a92a1a037bb76 | [
"MIT"
] | null | null | null | src/qualtrutils/__init__.py | emanuele-albini/qualtrutils | 7f1fb08221edb220738445bf3e8a92a1a037bb76 | [
"MIT"
] | null | null | null | try:
import os
import pkg_resources # part of setuptools
__version__ = pkg_resources.get_distribution(os.path.dirname(__file__)).version
except:
pass
from .qualtrics import * | 24 | 83 | 0.744792 | 24 | 192 | 5.5 | 0.75 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182292 | 192 | 8 | 84 | 24 | 0.840764 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.428571 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
f8c3a6ea72bf6a5606bd1c07a86991ac84f55edc | 97 | py | Python | image_web/image_app/apps.py | datasciencee/Image_web | 28d0d8a3006e64da05bb6ede03b037daaa2897b2 | [
"MIT"
] | null | null | null | image_web/image_app/apps.py | datasciencee/Image_web | 28d0d8a3006e64da05bb6ede03b037daaa2897b2 | [
"MIT"
] | null | null | null | image_web/image_app/apps.py | datasciencee/Image_web | 28d0d8a3006e64da05bb6ede03b037daaa2897b2 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ImageAppConfig(AppConfig):
name = 'image_app'
| 16.166667 | 34 | 0.721649 | 11 | 97 | 6.272727 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206186 | 97 | 5 | 35 | 19.4 | 0.896104 | 0 | 0 | 0 | 0 | 0 | 0.097826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f8c5dfc6d0cdbf14f1da548855e712503b3de0e5 | 230 | py | Python | frameworks/MLNet/__init__.py | Ennosigaeon/automlbenchmark | bd3e529d641b64300a075d59408203d537311b7e | [
"MIT"
] | 282 | 2018-09-19T09:45:46.000Z | 2022-03-30T04:05:51.000Z | frameworks/MLNet/__init__.py | Ennosigaeon/automlbenchmark | bd3e529d641b64300a075d59408203d537311b7e | [
"MIT"
] | 267 | 2018-11-02T11:43:11.000Z | 2022-03-31T08:58:16.000Z | frameworks/MLNet/__init__.py | Ennosigaeon/automlbenchmark | bd3e529d641b64300a075d59408203d537311b7e | [
"MIT"
] | 104 | 2018-10-17T19:32:36.000Z | 2022-03-19T22:47:59.000Z | from amlb.utils import call_script_in_same_dir
def setup(*args, **kwargs):
call_script_in_same_dir(__file__, "setup.sh", *args, **kwargs)
def run(dataset, config):
from .exec import run
return run(dataset, config)
| 20.909091 | 66 | 0.721739 | 35 | 230 | 4.4 | 0.571429 | 0.12987 | 0.155844 | 0.207792 | 0.246753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16087 | 230 | 10 | 67 | 23 | 0.797927 | 0 | 0 | 0 | 0 | 0 | 0.034783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f8c656a1fcea7a9ee14e5a204d4f559a5949f3d3 | 189 | py | Python | generate_pentagons.py | YessOn/ProjectEuler-Toolkits | cc196c1c6faca32f7613ae40ddb3c7f7b86e071e | [
"MIT"
] | null | null | null | generate_pentagons.py | YessOn/ProjectEuler-Toolkits | cc196c1c6faca32f7613ae40ddb3c7f7b86e071e | [
"MIT"
] | null | null | null | generate_pentagons.py | YessOn/ProjectEuler-Toolkits | cc196c1c6faca32f7613ae40ddb3c7f7b86e071e | [
"MIT"
] | null | null | null | def generate_pentagons(n_of_pentagons):
pentagons = (num * (3 * num - 1) // 2 for num in range(1, n_of_pentagons))
for _ in range(n_of_pentagons - 1):
yield next(pentagons)
| 37.8 | 78 | 0.661376 | 30 | 189 | 3.9 | 0.466667 | 0.076923 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034014 | 0.222222 | 189 | 4 | 79 | 47.25 | 0.761905 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f8caa3e778c29557bd6611746d149fdf5e4f18a9 | 113 | py | Python | juno/server/http/handler/api.py | DSciLab/juno | 1d572c8d3fd06a6c1fcc51b42a6539dd3ae0927e | [
"MIT"
] | null | null | null | juno/server/http/handler/api.py | DSciLab/juno | 1d572c8d3fd06a6c1fcc51b42a6539dd3ae0927e | [
"MIT"
] | null | null | null | juno/server/http/handler/api.py | DSciLab/juno | 1d572c8d3fd06a6c1fcc51b42a6539dd3ae0927e | [
"MIT"
] | null | null | null | from .base.api_handler import APIBaseHandler
class APIHandler(APIBaseHandler):
def get(self):
pass
| 16.142857 | 44 | 0.725664 | 13 | 113 | 6.230769 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20354 | 113 | 6 | 45 | 18.833333 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
f8d1533d26da78b1c9ff1203760b4a5ae33a69c7 | 206 | py | Python | 1546.py | ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python | 9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da | [
"MIT"
] | 1 | 2022-01-14T08:45:32.000Z | 2022-01-14T08:45:32.000Z | 1546.py | ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python | 9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da | [
"MIT"
] | null | null | null | 1546.py | ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python | 9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da | [
"MIT"
] | null | null | null | arr = ['', 'Rolien', 'Naej', 'Elehcim', 'Odranoel']
n = int(input())
while n != 0:
n -= 1
k = int(input())
while k != 0:
k -= 1
num = int(input())
print(arr[num]) | 22.888889 | 52 | 0.417476 | 27 | 206 | 3.185185 | 0.518519 | 0.27907 | 0.302326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.359223 | 206 | 9 | 53 | 22.888889 | 0.621212 | 0 | 0 | 0 | 0 | 0 | 0.125628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3e1d352c7922c834041d16e3fdaa531ed2d9b63c | 75 | py | Python | map2annotation/__main__.py | aas-integration/integration-test2 | dc9a9b4593cd59841f0d8348056cbff80a9c2a21 | [
"MIT"
] | 3 | 2016-10-10T20:18:51.000Z | 2018-05-01T19:42:10.000Z | map2annotation/__main__.py | aas-integration/integration-test2 | dc9a9b4593cd59841f0d8348056cbff80a9c2a21 | [
"MIT"
] | 38 | 2016-08-22T03:20:25.000Z | 2018-06-11T19:13:05.000Z | map2annotation/__main__.py | aas-integration/integration-test2 | dc9a9b4593cd59841f0d8348056cbff80a9c2a21 | [
"MIT"
] | 7 | 2016-08-29T17:37:42.000Z | 2022-01-28T00:30:10.000Z | import map2annotation
if __name__ == '__main__':
map2annotation.main() | 18.75 | 26 | 0.746667 | 7 | 75 | 6.857143 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.146667 | 75 | 4 | 27 | 18.75 | 0.71875 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3e24efcd76f37df58a59baf6375172236bdbc8f9 | 116 | py | Python | notifications/utils.py | Natgeoed/django-notifications | a73c01f167bdf796b609d44a2be5323d08180b7f | [
"BSD-3-Clause"
] | 1 | 2019-05-28T14:55:58.000Z | 2019-05-28T14:55:58.000Z | notifications/utils.py | Natgeoed/django-notifications | a73c01f167bdf796b609d44a2be5323d08180b7f | [
"BSD-3-Clause"
] | null | null | null | notifications/utils.py | Natgeoed/django-notifications | a73c01f167bdf796b609d44a2be5323d08180b7f | [
"BSD-3-Clause"
] | 1 | 2020-03-29T10:13:28.000Z | 2020-03-29T10:13:28.000Z | # -*- coding: utf-8 -*-
def slug2id(slug):
return long(slug) - 110909
def id2slug(id):
return id + 110909
| 14.5 | 30 | 0.603448 | 16 | 116 | 4.375 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 0.232759 | 116 | 7 | 31 | 16.571429 | 0.617978 | 0.181034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
3e509827f57ba47184b958f8189726f8a1765c22 | 87 | py | Python | division.py | ReverseScale/PyDemo | 9cc6f3cbb8482f6e403bf65419537b0163798e61 | [
"MIT"
] | null | null | null | division.py | ReverseScale/PyDemo | 9cc6f3cbb8482f6e403bf65419537b0163798e61 | [
"MIT"
] | null | null | null | division.py | ReverseScale/PyDemo | 9cc6f3cbb8482f6e403bf65419537b0163798e61 | [
"MIT"
] | null | null | null | try:
print(5/0)
except ZeroDivisionError:
print('你是啥子吗!')
else:
print('算了') | 14.5 | 25 | 0.62069 | 11 | 87 | 4.909091 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 0.206897 | 87 | 6 | 26 | 14.5 | 0.753623 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
3e52b2bc37f4905d4ab47d9e200507510863fee4 | 626 | py | Python | Python/Data Structure and Algorithm/Krish Naik/Amazon Que.py | omkarsutar1255/Python-Data | 169d0c54b23d9dd5a7f1aea41ab385121c3b3c63 | [
"CC-BY-3.0"
] | null | null | null | Python/Data Structure and Algorithm/Krish Naik/Amazon Que.py | omkarsutar1255/Python-Data | 169d0c54b23d9dd5a7f1aea41ab385121c3b3c63 | [
"CC-BY-3.0"
] | null | null | null | Python/Data Structure and Algorithm/Krish Naik/Amazon Que.py | omkarsutar1255/Python-Data | 169d0c54b23d9dd5a7f1aea41ab385121c3b3c63 | [
"CC-BY-3.0"
] | null | null | null | # l1 = [1095, 1094, 1095]
# del l1[:]
# l1.extend([1005, 1094, 1095])
# print(l1)
l1 = [8676, 4444, 3333, 2222, 1111]
for i, n in enumerate(l1):
print(i, n)
if int(n / 1000) == 1:
l1[i] = n + 8000
elif int(n / 1000) == 2:
l1[i] = n + 6000
elif int(n / 1000) == 3:
l1[i] = n + 40... | 21.586207 | 35 | 0.4377 | 104 | 626 | 2.634615 | 0.336538 | 0.072993 | 0.233577 | 0.306569 | 0.437956 | 0.437956 | 0.437956 | 0.437956 | 0 | 0 | 0 | 0.334184 | 0.373802 | 626 | 28 | 36 | 22.357143 | 0.364796 | 0.116613 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.045455 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3e6ad6e1c6ce978983b60511c62b60c613bacb9a | 92 | py | Python | script.py | juand1809/JuanVelasquez_Ejercicio23 | 40b20dc3db6e3a9a884265a950dd3ccac1f7a615 | [
"MIT"
] | null | null | null | script.py | juand1809/JuanVelasquez_Ejercicio23 | 40b20dc3db6e3a9a884265a950dd3ccac1f7a615 | [
"MIT"
] | null | null | null | script.py | juand1809/JuanVelasquez_Ejercicio23 | 40b20dc3db6e3a9a884265a950dd3ccac1f7a615 | [
"MIT"
] | null | null | null | import os
a = os.system("g++ sumatoria.cpp -o sumatoria.x")
a = os.system("./sumatoria.x")
| 18.4 | 49 | 0.652174 | 16 | 92 | 3.75 | 0.5625 | 0.1 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 92 | 4 | 50 | 23 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.48913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e43608fd33081461199e20cc093779ca67fd8543 | 132 | py | Python | pythonExercicios/ex014.py | Yhago-Carvalho/CursoPython | 343ccabb1a61e16c6078de9672c78c56deed2589 | [
"MIT"
] | null | null | null | pythonExercicios/ex014.py | Yhago-Carvalho/CursoPython | 343ccabb1a61e16c6078de9672c78c56deed2589 | [
"MIT"
] | null | null | null | pythonExercicios/ex014.py | Yhago-Carvalho/CursoPython | 343ccabb1a61e16c6078de9672c78c56deed2589 | [
"MIT"
] | null | null | null | c = float(input('Digite a temperatura em Ceusius: '))
f = (9*c + 160)/5
print(f'A temperatura de {c:.1f}ºC corresponde a {f:.1f}ºF') | 44 | 60 | 0.659091 | 26 | 132 | 3.346154 | 0.692308 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061947 | 0.143939 | 132 | 3 | 60 | 44 | 0.707965 | 0 | 0 | 0 | 0 | 0 | 0.62406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e479315b2fec6b1b30374526a8f3ec4a57556364 | 536 | py | Python | tests/test_set_key.py | GustavoKatel/pushbullet-cli | e5102772752a97db539594b0d50b5effb36a22e2 | [
"MIT"
] | 176 | 2017-01-30T16:21:48.000Z | 2022-02-10T05:32:57.000Z | tests/test_set_key.py | GustavoKatel/pushbullet-cli | e5102772752a97db539594b0d50b5effb36a22e2 | [
"MIT"
] | 49 | 2017-01-21T20:27:03.000Z | 2022-01-16T02:57:51.000Z | tests/test_set_key.py | GustavoKatel/pushbullet-cli | e5102772752a97db539594b0d50b5effb36a22e2 | [
"MIT"
] | 21 | 2017-01-26T06:08:54.000Z | 2022-01-04T19:53:25.000Z | import platform
import pytest
@pytest.mark.skipif(
platform.system() == "Windows", reason="cannot test this on windows"
)
def test_set_key(set_key, pb_api, mocker):
import keyring
import getpass
import six
prev_token = six.text_type(keyring.get_password("pushbullet", "cli"))
try:
moc... | 25.52381 | 73 | 0.673507 | 67 | 536 | 5.208955 | 0.552239 | 0.051576 | 0.180516 | 0.160458 | 0.17765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197761 | 536 | 20 | 74 | 26.8 | 0.811628 | 0 | 0 | 0 | 0 | 0 | 0.160448 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.0625 | false | 0.3125 | 0.3125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
e47c17dddcd00889d223b3d8fce4a9d9c3d285a3 | 356 | py | Python | doingmathwithpython/ch03.py | andyliumathematics/mlnotes | 7b7a1c37d7660bdf9144c59693719033080d654b | [
"Apache-2.0"
] | null | null | null | doingmathwithpython/ch03.py | andyliumathematics/mlnotes | 7b7a1c37d7660bdf9144c59693719033080d654b | [
"Apache-2.0"
] | null | null | null | doingmathwithpython/ch03.py | andyliumathematics/mlnotes | 7b7a1c37d7660bdf9144c59693719033080d654b | [
"Apache-2.0"
] | null | null | null | # %%
l = [38,32,49,15,806,806]
sum(l)
# %%
len(l)
# %%
sum(l)//len(l)
# %%
l.sort()
# %%
l
# %%
# %%
l.most_common(1)
# %%
'''
求众数:出现频率最高的数据
'''
from collections import Counter
l = ['38','32','49','15','806','806']
c = Counter(l)
print(c.most_common()[0][0])
print(c.most_common(1))
print(c.most_common(2))
# %%
c.m... | 11.483871 | 37 | 0.530899 | 60 | 356 | 3.066667 | 0.383333 | 0.271739 | 0.23913 | 0.26087 | 0.163043 | 0.163043 | 0.163043 | 0 | 0 | 0 | 0 | 0.119205 | 0.151685 | 356 | 30 | 38 | 11.866667 | 0.490066 | 0.089888 | 0 | 0 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.266667 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e4884423f1f3c28f1f01d03c9e676127547b57c0 | 250 | py | Python | docs/autodoc_example.py | aio-libs/sphinxcontrib-asyncio | dbfa79e29980e73ad2dd9dec59f1238b1a8a7cd7 | [
"Apache-2.0"
] | 19 | 2016-02-21T13:27:43.000Z | 2020-02-19T17:22:38.000Z | docs/autodoc_example.py | aio-libs/sphinxcontrib-asyncio | dbfa79e29980e73ad2dd9dec59f1238b1a8a7cd7 | [
"Apache-2.0"
] | 9 | 2016-04-15T08:43:39.000Z | 2022-01-06T10:43:08.000Z | docs/autodoc_example.py | aio-libs/sphinxcontrib-asyncio | dbfa79e29980e73ad2dd9dec59f1238b1a8a7cd7 | [
"Apache-2.0"
] | 6 | 2016-04-11T07:32:41.000Z | 2019-09-28T10:59:51.000Z | import asyncio
class MyClass:
def my_func(self):
""" Normal function """
@asyncio.coroutine
def my_coro(self):
""" This is my coroutine """
@asyncio.coroutine
def coro(param):
""" Module level async function """
| 14.705882 | 39 | 0.608 | 29 | 250 | 5.172414 | 0.62069 | 0.066667 | 0.253333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.264 | 250 | 16 | 40 | 15.625 | 0.815217 | 0.264 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
e49334330d41dc2dca73dcd98740a04934ce3d79 | 83 | py | Python | DRF-React/appy/apps.py | Preet538-neitzen/LOC-Hackathon | e7bad458ef0069becdba42576f5fe1bfd736678b | [
"MIT"
] | null | null | null | DRF-React/appy/apps.py | Preet538-neitzen/LOC-Hackathon | e7bad458ef0069becdba42576f5fe1bfd736678b | [
"MIT"
] | 8 | 2021-03-19T13:44:46.000Z | 2022-03-12T00:55:03.000Z | DRF-React/appy/apps.py | Preet538-neitzen/LOC-Hackathon | e7bad458ef0069becdba42576f5fe1bfd736678b | [
"MIT"
] | 1 | 2021-02-13T00:16:36.000Z | 2021-02-13T00:16:36.000Z | from django.apps import AppConfig
class AppyConfig(AppConfig):
name = 'appy'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e4954716a9c58078b2bd1d9c30cda00cbdaf306f | 122 | py | Python | training/continueLearning.py | dwright37/generative-concatenative-image-captioner | 2bb257d4791e362e42a30bf0e4ca32e84f80d942 | [
"MIT"
] | null | null | null | training/continueLearning.py | dwright37/generative-concatenative-image-captioner | 2bb257d4791e362e42a30bf0e4ca32e84f80d942 | [
"MIT"
] | null | null | null | training/continueLearning.py | dwright37/generative-concatenative-image-captioner | 2bb257d4791e362e42a30bf0e4ca32e84f80d942 | [
"MIT"
] | null | null | null | def continueLearning(losses):
improving = losses[0] < losses[1] or losses[1] < losses[2]
return improving
| 30.5 | 66 | 0.647541 | 15 | 122 | 5.266667 | 0.6 | 0.177215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043011 | 0.237705 | 122 | 3 | 67 | 40.666667 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
e4b424d5ad2b323394201895d8483eb6857e159f | 3,158 | py | Python | Python/tdw/FBOutput/StaticSpring.py | ricklentz/tdw | da40eec151acae20b28d6486defb4358d96adb0e | [
"BSD-2-Clause"
] | null | null | null | Python/tdw/FBOutput/StaticSpring.py | ricklentz/tdw | da40eec151acae20b28d6486defb4358d96adb0e | [
"BSD-2-Clause"
] | null | null | null | Python/tdw/FBOutput/StaticSpring.py | ricklentz/tdw | da40eec151acae20b28d6486defb4358d96adb0e | [
"BSD-2-Clause"
] | null | null | null | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: FBOutput
import tdw.flatbuffers
class StaticSpring(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsStaticSpring(cls, buf, offset):
n = tdw.flatbuffers.encode.Get(tdw.flatbuffers.packer.uoffset, buf, offset)... | 38.048193 | 129 | 0.679227 | 394 | 3,158 | 5.319797 | 0.22335 | 0.073473 | 0.133588 | 0.166985 | 0.449427 | 0.441317 | 0.432729 | 0.395038 | 0.395038 | 0.395038 | 0 | 0.027666 | 0.21026 | 3,158 | 82 | 130 | 38.512195 | 0.812751 | 0.060165 | 0 | 0.254237 | 1 | 0 | 0.001353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.305085 | false | 0 | 0.033898 | 0.016949 | 0.627119 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
e4bd27232f18521dba7be29751865723323f35e8 | 94 | py | Python | rust/resources/api/resources.py | AsiaLi/rust | 9954d2bd9c337376840d638c6ac5af6d9a32ed28 | [
"Apache-2.0"
] | 5 | 2018-02-08T04:31:52.000Z | 2020-05-08T00:59:05.000Z | rust/resources/api/resources.py | AsiaLi/rust | 9954d2bd9c337376840d638c6ac5af6d9a32ed28 | [
"Apache-2.0"
] | 2 | 2019-03-23T03:14:06.000Z | 2019-04-19T07:51:55.000Z | rust/resources/api/resources.py | AsiaLi/rust | 9954d2bd9c337376840d638c6ac5af6d9a32ed28 | [
"Apache-2.0"
] | 4 | 2019-02-20T04:35:33.000Z | 2020-05-07T13:46:27.000Z | #coding: utf8
"""
built-in资源采用按需加载策略, 无需在此引入.
如要启用对应的资源, 请在项目的settings文件中配置RUST_RESOURCES
""" | 15.666667 | 43 | 0.787234 | 8 | 94 | 9.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011628 | 0.085106 | 94 | 6 | 44 | 15.666667 | 0.837209 | 0.893617 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e4d1a5ffa7594bfb272d1e801de25c346e704f41 | 159 | py | Python | finished/edabit/very_easy/return_sum.py | UltiRequiem/daily-python-practice | 31f72c45378be90b8fcadd30d7042819ee551a17 | [
"MIT"
] | 8 | 2021-05-29T23:30:12.000Z | 2021-09-24T03:25:44.000Z | finished/edabit/very_easy/return_sum.py | UltiRequiem/daily-python-practice | 31f72c45378be90b8fcadd30d7042819ee551a17 | [
"MIT"
] | null | null | null | finished/edabit/very_easy/return_sum.py | UltiRequiem/daily-python-practice | 31f72c45378be90b8fcadd30d7042819ee551a17 | [
"MIT"
] | 6 | 2021-06-02T14:20:24.000Z | 2021-08-19T00:49:26.000Z | def addition(x: int, y: int) -> int:
return x + y
# addition_lambda = lambda x, y: x + y
# Test:
if __name__ == "__main__":
print(addition(78, 98))
| 15.9 | 38 | 0.591195 | 25 | 159 | 3.4 | 0.56 | 0.070588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.245283 | 159 | 9 | 39 | 17.666667 | 0.675 | 0.264151 | 0 | 0 | 0 | 0 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
9021b355ad9a734bb50dcef4f74291f2233e5506 | 1,386 | py | Python | spectrocrunch/utils/comparable.py | woutdenolf/spectrocrunch | fde4b6e0f462f464ce7af6a942b355d3d8f39f77 | [
"MIT"
] | 3 | 2018-04-16T15:51:36.000Z | 2019-12-16T11:21:05.000Z | spectrocrunch/utils/comparable.py | woutdenolf/spectrocrunch | fde4b6e0f462f464ce7af6a942b355d3d8f39f77 | [
"MIT"
] | null | null | null | spectrocrunch/utils/comparable.py | woutdenolf/spectrocrunch | fde4b6e0f462f464ce7af6a942b355d3d8f39f77 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import operator
class Comparable(object):
@property
def _repr(self):
"""Unique representation of an instance"""
return "{}{}".format(type(self).__name__, id(self))
def _cmpkey(self, other):
return self._repr
def _sortkey(self, other):
return s... | 23.491525 | 59 | 0.591631 | 170 | 1,386 | 4.5 | 0.270588 | 0.129412 | 0.156863 | 0.198693 | 0.386928 | 0.386928 | 0.386928 | 0.096732 | 0 | 0 | 0 | 0.001002 | 0.279942 | 1,386 | 58 | 60 | 23.896552 | 0.765531 | 0.042569 | 0 | 0.051282 | 0 | 0 | 0.014383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0.025641 | 0.333333 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
5f483bb62aff2e6859980fe0b75abe98dd22d479 | 3,873 | py | Python | fixture/contact.py | piersto/python_training | a5e323f62177e97d31e39449d675192354ec70ed | [
"Apache-2.0"
] | null | null | null | fixture/contact.py | piersto/python_training | a5e323f62177e97d31e39449d675192354ec70ed | [
"Apache-2.0"
] | null | null | null | fixture/contact.py | piersto/python_training | a5e323f62177e97d31e39449d675192354ec70ed | [
"Apache-2.0"
] | null | null | null | class ContactHelper:
def __init__(self, app):
self.app = app
def submit_specified_user(self):
wd = self.app.wd
wd.find_element_by_xpath("(//input[@name='submit'])[2]").click()
def add_user(self, add_new_contact):
wd = self.app.wd
wd.find_element_by_... | 60.515625 | 110 | 0.674154 | 536 | 3,873 | 4.408582 | 0.11194 | 0.137114 | 0.29708 | 0.342785 | 0.869234 | 0.727042 | 0.289463 | 0.022006 | 0 | 0 | 0 | 0.002576 | 0.198296 | 3,873 | 64 | 111 | 60.515625 | 0.758454 | 0 | 0 | 0.163934 | 0 | 0 | 0.08983 | 0.007228 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04918 | false | 0 | 0 | 0 | 0.065574 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5f65055d81665e397feccfc78dd6d2f299634b64 | 138 | py | Python | cumulus2/template.py | peterkh/cumulus2 | 11352ce469acb0c319ba9cfb8691d80f4ae5048e | [
"Apache-2.0"
] | 1 | 2016-02-12T11:54:07.000Z | 2016-02-12T11:54:07.000Z | cumulus2/template.py | peterkh/cumulus2 | 11352ce469acb0c319ba9cfb8691d80f4ae5048e | [
"Apache-2.0"
] | null | null | null | cumulus2/template.py | peterkh/cumulus2 | 11352ce469acb0c319ba9cfb8691d80f4ae5048e | [
"Apache-2.0"
] | null | null | null | """
Template module for cumulus.
template class for reading yaml tempalte and creating data_source objects to
retrieve external data.
"""
| 23 | 76 | 0.797101 | 19 | 138 | 5.736842 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144928 | 138 | 5 | 77 | 27.6 | 0.923729 | 0.934783 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5f6e27388481683369aca2bd805d2c503d7286e8 | 189 | py | Python | deep_learning_zero/ch5/sample.py | kaito0223/shakyou | 8d901b4da24fbf0c708e3eb429a57d194e9857c1 | [
"MIT"
] | null | null | null | deep_learning_zero/ch5/sample.py | kaito0223/shakyou | 8d901b4da24fbf0c708e3eb429a57d194e9857c1 | [
"MIT"
] | null | null | null | deep_learning_zero/ch5/sample.py | kaito0223/shakyou | 8d901b4da24fbf0c708e3eb429a57d194e9857c1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import numpy as np
X = np.random.rand(2) #input
W = np.random.rand(2,3) #weight
B = np.random.rand(3) #bias
print(X)
print(W)
print(B)
Y=np.dot(X,W)+B
print(Y)
| 11.8125 | 31 | 0.613757 | 40 | 189 | 2.9 | 0.5 | 0.206897 | 0.310345 | 0.224138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031646 | 0.164021 | 189 | 15 | 32 | 12.6 | 0.702532 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.444444 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
5f79476b04b3854cb2181098acbee05c751aa836 | 307 | py | Python | kinopoisk_unofficial/response/films/seasons_response.py | masterWeber/kinopoisk-api-unofficial-client | 5c95e1ec6e43bd302399b63a1525ee7e61724155 | [
"MIT"
] | 2 | 2021-11-13T12:23:41.000Z | 2021-12-24T14:09:49.000Z | kinopoisk_unofficial/response/films/seasons_response.py | masterWeber/kinopoisk-api-unofficial-client | 5c95e1ec6e43bd302399b63a1525ee7e61724155 | [
"MIT"
] | 1 | 2022-03-29T19:13:24.000Z | 2022-03-30T18:57:23.000Z | kinopoisk_unofficial/response/films/seasons_response.py | masterWeber/kinopoisk-api-unofficial-client | 5c95e1ec6e43bd302399b63a1525ee7e61724155 | [
"MIT"
] | 1 | 2021-11-13T12:30:01.000Z | 2021-11-13T12:30:01.000Z | from dataclasses import field, dataclass
from typing import List
from kinopoisk_unofficial.contract.response import Response
from kinopoisk_unofficial.model.season import Season
@dataclass(frozen=True)
class SeasonsResponse(Response):
total: int
items: List[Season] = field(default_factory=list)
| 25.583333 | 59 | 0.814332 | 38 | 307 | 6.5 | 0.578947 | 0.105263 | 0.186235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120521 | 307 | 11 | 60 | 27.909091 | 0.914815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5f9b09cbcd120955bb173c4d9f5b1fd61f32f6e1 | 103 | py | Python | notebooks/python_recap/_solutions/python_rehearsal6.py | jonasvdd/DS-python-data-analysis | 835226f562ee0b0631d70e48a17c4526ff58a538 | [
"BSD-3-Clause"
] | 65 | 2017-03-21T09:15:40.000Z | 2022-02-01T23:43:08.000Z | notebooks/python_recap/_solutions/python_rehearsal6.py | jonasvdd/DS-python-data-analysis | 835226f562ee0b0631d70e48a17c4526ff58a538 | [
"BSD-3-Clause"
] | 100 | 2016-12-15T03:44:06.000Z | 2022-03-07T08:14:07.000Z | notebooks/python_recap/_solutions/python_rehearsal6.py | jonasvdd/DS-python-data-analysis | 835226f562ee0b0631d70e48a17c4526ff58a538 | [
"BSD-3-Clause"
] | 52 | 2016-12-19T07:48:52.000Z | 2022-02-19T17:53:48.000Z | np_pressures_hPa * math.exp(-gravit_acc * molar_mass_earth* height/(gas_constant*standard_temperature)) | 103 | 103 | 0.84466 | 15 | 103 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048544 | 103 | 1 | 103 | 103 | 0.816327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 4 |
5fb7671976b6e01ae676fe790432693d8f4d3e4c | 286 | py | Python | st_library/utils/generics/singleton.py | vartagg/dataprovider-py | e392af3dab21c99c51a32345710fcd0dc4023462 | [
"Apache-2.0"
] | null | null | null | st_library/utils/generics/singleton.py | vartagg/dataprovider-py | e392af3dab21c99c51a32345710fcd0dc4023462 | [
"Apache-2.0"
] | 2 | 2018-03-27T11:06:46.000Z | 2020-10-27T20:48:51.000Z | st_library/utils/generics/singleton.py | vartagg/dataprovider-py | e392af3dab21c99c51a32345710fcd0dc4023462 | [
"Apache-2.0"
] | 4 | 2018-02-26T08:12:39.000Z | 2018-05-18T06:01:01.000Z | class Singleton(object):
_instances = {}
def __new__(cls, *args, **kwargs):
if cls not in cls._instances:
# noinspection PyArgumentList
cls._instances[cls] = super(Singleton, cls).__new__(cls, *args, **kwargs)
return cls._instances[cls]
| 31.777778 | 85 | 0.618881 | 31 | 286 | 5.322581 | 0.516129 | 0.218182 | 0.121212 | 0.193939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258741 | 286 | 8 | 86 | 35.75 | 0.778302 | 0.094406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
396e8a1e3e6aa7c66751f496564ba6b53523d4aa | 43 | py | Python | homemade_steganog/__init__.py | zoomie/homemade_steganog | 1ab0a140b6a2e0d9d36073d067a2c808c97adf38 | [
"MIT"
] | 1 | 2019-03-12T13:25:43.000Z | 2019-03-12T13:25:43.000Z | homemade_steganog/__init__.py | zoomie/homemade_encryption | 1ab0a140b6a2e0d9d36073d067a2c808c97adf38 | [
"MIT"
] | 4 | 2020-03-24T16:43:01.000Z | 2022-03-11T23:39:53.000Z | homemade_steganog/__init__.py | zoomie/homemade_encryption | 1ab0a140b6a2e0d9d36073d067a2c808c97adf38 | [
"MIT"
] | null | null | null | from .home import Steg
__all__ = ['Steg',] | 14.333333 | 22 | 0.674419 | 6 | 43 | 4.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162791 | 43 | 3 | 23 | 14.333333 | 0.694444 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3974ecf545e9249007cc970e291df529ea220e8f | 83 | py | Python | devind_helpers/validator/__init__.py | devind-team/devind-django-helpers | 5c64d46a12802bbe0b70e44aa9d19bf975511b6e | [
"MIT"
] | null | null | null | devind_helpers/validator/__init__.py | devind-team/devind-django-helpers | 5c64d46a12802bbe0b70e44aa9d19bf975511b6e | [
"MIT"
] | 4 | 2022-02-18T09:24:05.000Z | 2022-03-31T16:46:29.000Z | devind_helpers/validator/__init__.py | devind-team/devind-django-helpers | 5c64d46a12802bbe0b70e44aa9d19bf975511b6e | [
"MIT"
] | null | null | null | from .validators import Validator, BaseRule
__all__ = ('Validator', 'BaseRule',)
| 16.6 | 43 | 0.73494 | 8 | 83 | 7.125 | 0.75 | 0.596491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13253 | 83 | 4 | 44 | 20.75 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0.204819 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
39a9bf645816b1c506dcc188750ce0f86697bf35 | 241 | py | Python | 8. The Prisoner.py | Zfauser/Code-Combat-Introductory-To-Computer-Science-Python-Answers | 231d17ad2224fc616c022b515bc14e78ec5822f9 | [
"MIT"
] | 1 | 2021-02-25T16:43:08.000Z | 2021-02-25T16:43:08.000Z | 8. The Prisoner.py | Zfauser/Code-Combat-Introductory-To-Computer-Science-Python-Answers | 231d17ad2224fc616c022b515bc14e78ec5822f9 | [
"MIT"
] | null | null | null | 8. The Prisoner.py | Zfauser/Code-Combat-Introductory-To-Computer-Science-Python-Answers | 231d17ad2224fc616c022b515bc14e78ec5822f9 | [
"MIT"
] | null | null | null | # Free the prisoner, defeat the guard and grab the gem.
hero.moveRight()
# Free Patrick from behind the "Weak Door".
hero.attack("Weak Door")
hero.moveRight(2)
# Defeat the guard, named "Two".
# Get the gem.
hero.moveRight()
hero.moveDown(3) | 26.777778 | 55 | 0.73029 | 39 | 241 | 4.512821 | 0.564103 | 0.221591 | 0.159091 | 0.215909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009662 | 0.141079 | 241 | 9 | 56 | 26.777778 | 0.84058 | 0.576763 | 0 | 0.4 | 0 | 0 | 0.091837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
39bfed4c3b2ea966740de31f26fe83daafbdbab5 | 171 | py | Python | setup.py | andribas404/splay_benchmark | 1ba2fe4d715b25db806c0b241c6adadd8d442a77 | [
"MIT"
] | null | null | null | setup.py | andribas404/splay_benchmark | 1ba2fe4d715b25db806c0b241c6adadd8d442a77 | [
"MIT"
] | null | null | null | setup.py | andribas404/splay_benchmark | 1ba2fe4d715b25db806c0b241c6adadd8d442a77 | [
"MIT"
] | null | null | null | """
Setup.
python setup.py build_ext --inplace
"""
from distutils.core import setup
from Cython.Build import cythonize
setup(ext_modules=cythonize('splay_tree.pyx'))
| 13.153846 | 46 | 0.760234 | 24 | 171 | 5.291667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122807 | 171 | 12 | 47 | 14.25 | 0.846667 | 0.251462 | 0 | 0 | 0 | 0 | 0.116667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
39d61db6e252ece16991b4c554bc384accb4d908 | 27,144 | py | Python | line/f_MessageService.py | winbotscript/LineService | 4c79029648e858e567378485e75276f865c1f73f | [
"Apache-2.0"
] | 1 | 2020-08-20T08:00:23.000Z | 2020-08-20T08:00:23.000Z | line/f_MessageService.py | winbotscript/LineService | 4c79029648e858e567378485e75276f865c1f73f | [
"Apache-2.0"
] | null | null | null | line/f_MessageService.py | winbotscript/LineService | 4c79029648e858e567378485e75276f865c1f73f | [
"Apache-2.0"
] | null | null | null | #
# Autogenerated by Frugal Compiler (3.4.3)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
from threading import Lock
from frugal.middleware import Method
from frugal.exceptions import TApplicationExceptionType
from frugal.exceptions import TTransportExceptionType
from frugal.processor impo... | 35.57536 | 171 | 0.597222 | 2,578 | 27,144 | 6.069822 | 0.082234 | 0.014379 | 0.010353 | 0.019555 | 0.740542 | 0.70271 | 0.682388 | 0.654269 | 0.632541 | 0.611388 | 0 | 0.007697 | 0.31075 | 27,144 | 762 | 172 | 35.622047 | 0.828692 | 0.050066 | 0 | 0.732082 | 1 | 0 | 0.040028 | 0.031445 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122867 | false | 0.005119 | 0.020478 | 0.030717 | 0.237201 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 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 | 4 |
39f17c6cf9e734ea907636289c61a9999dc0de12 | 251 | py | Python | src/core/views.py | Ao99/django-boilerplate | 7fa8078b67655698a4070ce58c10d2226fe1d59b | [
"MIT"
] | null | null | null | src/core/views.py | Ao99/django-boilerplate | 7fa8078b67655698a4070ce58c10d2226fe1d59b | [
"MIT"
] | null | null | null | src/core/views.py | Ao99/django-boilerplate | 7fa8078b67655698a4070ce58c10d2226fe1d59b | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.views import View
# Create your views here.
class CoreView(View):
template_name = 'core/home.html'
def get(self, request, *args, **kwargs):
return render(request, self.template_name, {}) | 31.375 | 54 | 0.717131 | 34 | 251 | 5.235294 | 0.705882 | 0.11236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171315 | 251 | 8 | 54 | 31.375 | 0.855769 | 0.091633 | 0 | 0 | 0 | 0 | 0.061674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
f2fea27459e59001e49be2e7ed0478672dee266a | 264 | py | Python | clamor/rest/endpoints/__init__.py | TomSputz/Clamor | 13222b90532938e6ebdbe8aea0430512e7d22817 | [
"MIT"
] | 15 | 2019-07-05T20:26:18.000Z | 2020-09-18T12:44:16.000Z | clamor/rest/endpoints/__init__.py | TomSputz/Clamor | 13222b90532938e6ebdbe8aea0430512e7d22817 | [
"MIT"
] | 7 | 2019-07-07T19:55:07.000Z | 2019-08-20T22:07:31.000Z | clamor/rest/endpoints/__init__.py | TomSputz/Clamor | 13222b90532938e6ebdbe8aea0430512e7d22817 | [
"MIT"
] | 6 | 2019-07-07T20:39:29.000Z | 2020-11-06T10:12:20.000Z | # -*- coding: utf-8 -*-
from . import base
from .audit_log import *
from .channel import *
from .emoji import *
from .gateway import *
from .guild import *
from .invite import *
from .oauth import *
from .user import *
from .voice import *
from .webhook import *
| 18.857143 | 24 | 0.69697 | 37 | 264 | 4.945946 | 0.459459 | 0.491803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004673 | 0.189394 | 264 | 13 | 25 | 20.307692 | 0.850467 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
84513ebf1e835ed2f032b1060dd720580d3e05a2 | 668 | py | Python | practicer_flask/app.py | DominikPott/practicer-flask | c8e523095bdd5912dadb7357d16a4e76229a04da | [
"MIT"
] | null | null | null | practicer_flask/app.py | DominikPott/practicer-flask | c8e523095bdd5912dadb7357d16a4e76229a04da | [
"MIT"
] | null | null | null | practicer_flask/app.py | DominikPott/practicer-flask | c8e523095bdd5912dadb7357d16a4e76229a04da | [
"MIT"
] | null | null | null | import os
from flask import Flask
import practicer_flask.auth
import practicer_flask.exercises
import practicer_flask.dashboard
import practicer_flask.topic
import practicer_flask.model_viewer
def create_app(test_config=None):
app = Flask(__name__)
app.config.from_mapping(SECRET_KEY=os.environ.get("SECRET_... | 23.857143 | 77 | 0.784431 | 92 | 668 | 5.347826 | 0.369565 | 0.256098 | 0.203252 | 0.235772 | 0.288618 | 0.219512 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118263 | 668 | 27 | 78 | 24.740741 | 0.835314 | 0 | 0 | 0 | 0 | 0 | 0.038922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.388889 | 0 | 0.5 | 0.222222 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
8460d12d7847a84d2047777b7d49fa013dbd6421 | 92 | py | Python | back/apps/base_user/apps.py | pylvin/nuxt-drf-template | e3f32cf98a2bdf393f88fbda2afedf2c0bf99dc7 | [
"MIT"
] | 2 | 2021-11-16T03:47:06.000Z | 2021-12-21T20:19:30.000Z | back/apps/base_user/apps.py | pylvin/nuxt-drf-template | e3f32cf98a2bdf393f88fbda2afedf2c0bf99dc7 | [
"MIT"
] | null | null | null | back/apps/base_user/apps.py | pylvin/nuxt-drf-template | e3f32cf98a2bdf393f88fbda2afedf2c0bf99dc7 | [
"MIT"
] | 2 | 2021-12-21T20:19:39.000Z | 2022-01-03T11:27:04.000Z | from django.apps import AppConfig
class BaseUserConfig(AppConfig):
name = 'base_user'
| 15.333333 | 33 | 0.76087 | 11 | 92 | 6.272727 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163043 | 92 | 5 | 34 | 18.4 | 0.896104 | 0 | 0 | 0 | 0 | 0 | 0.097826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ffc0fbef26aaac232d9390250ce89e31f64b7ad8 | 31 | py | Python | multinet/db/models/__init__.py | multinet-app/multinet-girder | f34c87849d92c7fe2f8589760f97bebbe04bd4af | [
"Apache-2.0"
] | 3 | 2019-10-22T15:21:10.000Z | 2020-02-13T17:40:07.000Z | multinet/db/models/__init__.py | multinet-app/multinet | f34c87849d92c7fe2f8589760f97bebbe04bd4af | [
"Apache-2.0"
] | 183 | 2019-08-01T14:27:00.000Z | 2020-03-04T17:47:49.000Z | multinet/db/models/__init__.py | multinet-app/multinet-girder | f34c87849d92c7fe2f8589760f97bebbe04bd4af | [
"Apache-2.0"
] | 2 | 2020-08-20T11:57:17.000Z | 2020-11-10T22:54:19.000Z | """ORM models for multinet."""
| 15.5 | 30 | 0.645161 | 4 | 31 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 31 | 1 | 31 | 31 | 0.740741 | 0.774194 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fff27be5ec642c73c3bac5ec2ecda165d7fe17c5 | 145 | py | Python | Hackerrank_python/15.numpy/10.Min and Max.py | manish1822510059/Hackerrank | 7c6e4553f033f067e04dc6c756ef90cb43f3c4a8 | [
"MIT"
] | 39 | 2020-09-27T05:32:05.000Z | 2022-01-08T18:04:05.000Z | Hackerrank_python/15.numpy/10.Min and Max.py | manish1822510059/Hackerrank | 7c6e4553f033f067e04dc6c756ef90cb43f3c4a8 | [
"MIT"
] | 5 | 2020-10-02T13:33:00.000Z | 2021-03-01T14:06:08.000Z | Hackerrank_python/15.numpy/10.Min and Max.py | manish1822510059/Hackerrank | 7c6e4553f033f067e04dc6c756ef90cb43f3c4a8 | [
"MIT"
] | 6 | 2020-10-03T04:04:55.000Z | 2021-10-18T04:07:53.000Z | import numpy as arr
n,m=map(int,input().split())
ar=([list(map(int,input().split()))for _ in range(n)])
arr1=arr.min(ar,axis=1)
print(max(arr1))
| 24.166667 | 54 | 0.668966 | 29 | 145 | 3.310345 | 0.724138 | 0.125 | 0.229167 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022388 | 0.075862 | 145 | 5 | 55 | 29 | 0.69403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
081691097da1b52252fbbf22f08b3e7856a39982 | 5,825 | py | Python | gonder_rc.py | TarikCinar/python-sesli-asistan | 1a29a8d3081b67ff352cf03f7b01ac01b7118deb | [
"MIT"
] | 1 | 2021-05-28T17:27:50.000Z | 2021-05-28T17:27:50.000Z | gonder_rc.py | TarikCinar/python-sesli-asistan | 1a29a8d3081b67ff352cf03f7b01ac01b7118deb | [
"MIT"
] | null | null | null | gonder_rc.py | TarikCinar/python-sesli-asistan | 1a29a8d3081b67ff352cf03f7b01ac01b7118deb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.13.0)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x04\x1a\
\x00\
\x01\x08\x3e\x78\x9c\xed\x9c\x4d\x6e\xd3\x50\x14\x85\x1d\x65\x10\
\x66\x61\xc4\x... | 47.357724 | 103 | 0.72721 | 1,329 | 5,825 | 3.158766 | 0.222724 | 0.13292 | 0.154359 | 0.148642 | 0.135779 | 0.135779 | 0.120534 | 0.120534 | 0.120534 | 0.120534 | 0 | 0.27106 | 0.036052 | 5,825 | 122 | 104 | 47.745902 | 0.476581 | 0.026094 | 0 | 0.075472 | 0 | 0.688679 | 0.000176 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.009434 | 0 | 0.028302 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
08540bf2ac8cadc1cf3900bd14a8f79f2ba8831e | 146 | py | Python | week-02/appendA.py | norbertbodo91/pythonExercises | 9cd773c5d6ce3280d19a84ef12b8fd478ff09613 | [
"MIT"
] | null | null | null | week-02/appendA.py | norbertbodo91/pythonExercises | 9cd773c5d6ce3280d19a84ef12b8fd478ff09613 | [
"MIT"
] | null | null | null | week-02/appendA.py | norbertbodo91/pythonExercises | 9cd773c5d6ce3280d19a84ef12b8fd478ff09613 | [
"MIT"
] | null | null | null | def appendA(toAppend):
newWord = toAppend + 'a'
return newWord
print(appendA(toAppend = raw_input("Enter a word to add an A letter: ")))
| 24.333333 | 73 | 0.684932 | 21 | 146 | 4.714286 | 0.714286 | 0.30303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19863 | 146 | 5 | 74 | 29.2 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.232877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
08597f4873dfad388e0eb75f921c519b7373d12a | 180 | py | Python | windscribe/__init__.py | Dayzpd/Python-Windscribe | eaaca7b39286434ec8588c967076f0b5b9961d91 | [
"MIT"
] | 9 | 2020-09-17T19:42:18.000Z | 2022-01-04T07:14:37.000Z | windscribe/__init__.py | Dayzpd/Python-Windscribe | eaaca7b39286434ec8588c967076f0b5b9961d91 | [
"MIT"
] | 4 | 2020-10-28T16:22:54.000Z | 2022-01-04T07:13:18.000Z | windscribe/__init__.py | Dayzpd/Python-Windscribe | eaaca7b39286434ec8588c967076f0b5b9961d91 | [
"MIT"
] | 4 | 2020-12-11T11:13:27.000Z | 2022-01-16T02:40:55.000Z | __all__ = [
'account',
'connect',
'locations',
'login',
'logout',
]
from .windscribe import (
account,
connect,
locations,
login,
logout,
) | 12 | 25 | 0.527778 | 14 | 180 | 6.5 | 0.642857 | 0.307692 | 0.505495 | 0.615385 | 0.747253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.327778 | 180 | 15 | 26 | 12 | 0.752066 | 0 | 0 | 0 | 0 | 0 | 0.187845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f286492200c20b0ffd878c540e355986ac87e759 | 265 | py | Python | __init__.py | Lukas-Dresel/dice22_breach_binja | 7b481b9209e56203b17d24f4a03e567765cf77d7 | [
"MIT"
] | null | null | null | __init__.py | Lukas-Dresel/dice22_breach_binja | 7b481b9209e56203b17d24f4a03e567765cf77d7 | [
"MIT"
] | null | null | null | __init__.py | Lukas-Dresel/dice22_breach_binja | 7b481b9209e56203b17d24f4a03e567765cf77d7 | [
"MIT"
] | null | null | null | import binaryninja
from .breach_arch import BreachArch
BreachArch.register()
from .breach_programview import BreachProgramView
BreachProgramView.register()
from .breach_calling_convention import BreachCallingConvention
from .breach_platform import BreachPlatform | 26.5 | 62 | 0.879245 | 27 | 265 | 8.444444 | 0.518519 | 0.175439 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083019 | 265 | 10 | 63 | 26.5 | 0.938272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.714286 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f2957c2436185eaacb1c43fe2b6685f21c467731 | 188 | py | Python | python/testData/inspections/PyStringFormatInspection/PackedRefInsideList.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/inspections/PyStringFormatInspection/PackedRefInsideList.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/inspections/PyStringFormatInspection/PackedRefInsideList.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | list = [3, 4]
"{3}".format(*[1, 2, *list])
"{4}".format(*[1, 2, *list])
"{1}".format(*[1, 2, *list])
"{3}".format(*[*list, 1, 2])
"{4}".format(*[*list, 1, 2])
"{1}".format(*[*list, 1, 2]) | 23.5 | 28 | 0.446809 | 33 | 188 | 2.545455 | 0.181818 | 0.142857 | 0.285714 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120482 | 0.117021 | 188 | 8 | 29 | 23.5 | 0.385542 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f2a46d1dd481c7acb620b8393b2d3f64e291c4db | 3,062 | py | Python | externals/IBK/scripts/personaltypes.py | Arombolosh/PVTool | 043f4c94b1f473e6e26b2ee0da8e6a064d9343c5 | [
"BSD-3-Clause"
] | 2 | 2020-06-03T08:22:25.000Z | 2020-06-04T13:05:19.000Z | externals/IBK/scripts/personaltypes.py | Arombolosh/PVTool | 043f4c94b1f473e6e26b2ee0da8e6a064d9343c5 | [
"BSD-3-Clause"
] | null | null | null | externals/IBK/scripts/personaltypes.py | Arombolosh/PVTool | 043f4c94b1f473e6e26b2ee0da8e6a064d9343c5 | [
"BSD-3-Clause"
] | null | null | null | ############################################################################
#
# Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
# Contact: http://www.qt-project.org/legal
#
# This file is part of Qt Creator.
#
# Commercial License Usage
# Licensees holding valid commercial Qt licenses may use this file in
# ... | 39.25641 | 78 | 0.68452 | 437 | 3,062 | 4.748284 | 0.455378 | 0.026988 | 0.013012 | 0.031807 | 0.070843 | 0.056867 | 0.026024 | 0.026024 | 0 | 0 | 0 | 0.006714 | 0.173089 | 3,062 | 77 | 79 | 39.766234 | 0.812796 | 0.828217 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
4b385a13715b06d087f942d7458bcb33eb5bba5d | 74 | py | Python | src/wagtail_tag_manager/__init__.py | Tehnode/wagtail-tag-manager | 048a03fe61b57ddd1eea0377ab26cf96527f5457 | [
"BSD-3-Clause"
] | 59 | 2018-06-13T07:30:42.000Z | 2022-03-22T02:14:34.000Z | src/wagtail_tag_manager/__init__.py | Tehnode/wagtail-tag-manager | 048a03fe61b57ddd1eea0377ab26cf96527f5457 | [
"BSD-3-Clause"
] | 74 | 2018-08-09T20:52:56.000Z | 2022-03-02T08:39:30.000Z | src/wagtail_tag_manager/__init__.py | Tehnode/wagtail-tag-manager | 048a03fe61b57ddd1eea0377ab26cf96527f5457 | [
"BSD-3-Clause"
] | 23 | 2018-10-10T05:29:38.000Z | 2022-01-19T15:09:51.000Z | default_app_config = "wagtail_tag_manager.config.WagtailTagManagerConfig"
| 37 | 73 | 0.891892 | 8 | 74 | 7.75 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 74 | 1 | 74 | 74 | 0.873239 | 0 | 0 | 0 | 0 | 0 | 0.675676 | 0.675676 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4b675eebc011dcbf30a99943e8204d368b2ed0b9 | 216 | py | Python | backend/core/__init__.py | itimor/one-ops | f1111735de252012752dfabe11598e9690c89257 | [
"MIT"
] | 2 | 2020-09-25T05:52:55.000Z | 2021-01-14T07:06:17.000Z | backend/core/__init__.py | itimor/one-ops | f1111735de252012752dfabe11598e9690c89257 | [
"MIT"
] | 6 | 2021-03-19T10:20:05.000Z | 2021-09-22T19:30:21.000Z | backend/core/__init__.py | itimor/one-ops | f1111735de252012752dfabe11598e9690c89257 | [
"MIT"
] | 1 | 2022-02-24T01:37:06.000Z | 2022-02-24T01:37:06.000Z | from __future__ import absolute_import, unicode_literals
# This will make sure the app is always imported when
# Django starts so that shared_task will use this app.
# import pymysql
#
# pymysql.install_as_MySQLdb()
| 30.857143 | 56 | 0.805556 | 33 | 216 | 5 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 216 | 6 | 57 | 36 | 0.896739 | 0.685185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
4b6ab5ac671d440fac187ec117fb8831906a3c8f | 39 | tac | Python | semantics_and_generate/samples/link1.tac | AHEADer/my_decaf_compiler | 42ba9f140c5fda3cd2b4fdb727745d2cfd39c923 | [
"MIT"
] | 1 | 2018-01-03T03:35:38.000Z | 2018-01-03T03:35:38.000Z | semantics_and_generate/samples/link1.tac | AHEADer/my_decaf_compiler | 42ba9f140c5fda3cd2b4fdb727745d2cfd39c923 | [
"MIT"
] | null | null | null | semantics_and_generate/samples/link1.tac | AHEADer/my_decaf_compiler | 42ba9f140c5fda3cd2b4fdb727745d2cfd39c923 | [
"MIT"
] | null | null | null | ____notmain:
BeginFunc 0 ;
EndFunc ;
| 9.75 | 14 | 0.717949 | 4 | 39 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.205128 | 39 | 3 | 15 | 13 | 0.741935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4b8d4301cde6fb6de24f8efb96ff5081761e33de | 643 | py | Python | Computer Science/Development/GUI/robo_controls.py | zbendt/ECE-Capstone-Project | 1bafc61f896191ccd5a843980500fb4b8bbeb8bd | [
"MIT"
] | null | null | null | Computer Science/Development/GUI/robo_controls.py | zbendt/ECE-Capstone-Project | 1bafc61f896191ccd5a843980500fb4b8bbeb8bd | [
"MIT"
] | null | null | null | Computer Science/Development/GUI/robo_controls.py | zbendt/ECE-Capstone-Project | 1bafc61f896191ccd5a843980500fb4b8bbeb8bd | [
"MIT"
] | null | null | null | import time
#Controls functions for the delta
sleep_time = 0.5
def turn_on_vacuum():
print("Turning on vacuum pump")
def pickup():
print("Picking up sample...")
time.sleep(sleep_time)
def drop():
print("Dropping sample...")
time.sleep(sleep_time)
def move_to_start():
... | 20.09375 | 37 | 0.634526 | 89 | 643 | 4.393258 | 0.370787 | 0.161125 | 0.214834 | 0.276215 | 0.432225 | 0.360614 | 0.276215 | 0 | 0 | 0 | 0 | 0.004032 | 0.228616 | 643 | 31 | 38 | 20.741935 | 0.784274 | 0.049767 | 0 | 0.272727 | 0 | 0 | 0.234426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0.090909 | 0.045455 | 0 | 0.363636 | 0.318182 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
298cc1131b4fa0f1be5f4becb01286a44e8b0a9d | 66 | py | Python | report/create_db.py | Kellel/reports | 975e99396301e87176a38dd440a273c9319b3e22 | [
"BSD-3-Clause"
] | null | null | null | report/create_db.py | Kellel/reports | 975e99396301e87176a38dd440a273c9319b3e22 | [
"BSD-3-Clause"
] | null | null | null | report/create_db.py | Kellel/reports | 975e99396301e87176a38dd440a273c9319b3e22 | [
"BSD-3-Clause"
] | null | null | null |
from models import Base, engine
Base.metadata.create_all(engine)
| 16.5 | 32 | 0.818182 | 10 | 66 | 5.3 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106061 | 66 | 3 | 33 | 22 | 0.898305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
29c8162014a517194fd9f41815841a6c8677d84e | 4,458 | py | Python | src/genie/libs/parser/iosxe/tests/ShowIpInterfaceBrief/cli/equal/golden_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/iosxe/tests/ShowIpInterfaceBrief/cli/equal/golden_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/iosxe/tests/ShowIpInterfaceBrief/cli/equal/golden_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z | expected_output = {
"interface": {
"GigabitEthernet0/0/0": {
"interface_is_ok": "YES",
"ip_address": "10.105.44.23",
"method": "other",
"protocol": "up",
"status": "up"
},
"GigabitEthernet0/0/1": {
"interface_is_ok": "YE... | 29.328947 | 45 | 0.394796 | 369 | 4,458 | 4.596206 | 0.146341 | 0.136203 | 0.160967 | 0.198113 | 0.858491 | 0.801887 | 0.761203 | 0.636792 | 0.462854 | 0.428656 | 0 | 0.075039 | 0.42306 | 4,458 | 151 | 46 | 29.523179 | 0.58437 | 0 | 0 | 0.635762 | 0 | 0 | 0.407582 | 0.020637 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
29d8926e28c855d35087d877a48866f5e57129f6 | 25 | py | Python | env/lib/python2.7/site-packages/grpc/_grpcio_metadata.py | husky-parul/SheHacks | 19383029947f50ebaf07232c9b2ee76c75d8ada6 | [
"Apache-2.0"
] | 2 | 2018-02-01T06:30:24.000Z | 2018-04-12T15:39:56.000Z | env/lib/python2.7/site-packages/grpc/_grpcio_metadata.py | husky-parul/SheHacks | 19383029947f50ebaf07232c9b2ee76c75d8ada6 | [
"Apache-2.0"
] | null | null | null | env/lib/python2.7/site-packages/grpc/_grpcio_metadata.py | husky-parul/SheHacks | 19383029947f50ebaf07232c9b2ee76c75d8ada6 | [
"Apache-2.0"
] | null | null | null | __version__ = """1.8.4""" | 25 | 25 | 0.56 | 4 | 25 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 0.08 | 25 | 1 | 25 | 25 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
29e4187ad7c1dcf2ceaec9e4c64c93ba30148a08 | 88 | py | Python | twitoff/__init__.py | boscolio/twitoff-ds19 | 46449f9a55619a74dafa32ebee733daca8d1602f | [
"MIT"
] | null | null | null | twitoff/__init__.py | boscolio/twitoff-ds19 | 46449f9a55619a74dafa32ebee733daca8d1602f | [
"MIT"
] | null | null | null | twitoff/__init__.py | boscolio/twitoff-ds19 | 46449f9a55619a74dafa32ebee733daca8d1602f | [
"MIT"
] | null | null | null | from .app import create_app
# creates the app by calling the package
APP = create_app() | 22 | 40 | 0.772727 | 15 | 88 | 4.4 | 0.6 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170455 | 88 | 4 | 41 | 22 | 0.90411 | 0.431818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
29e8e499563826ecb59fe97bb20177891dc4f78e | 235 | py | Python | my_env/lib/python3.8/site-packages/tests/strategies.py | David5627/AWWARD | a22a2b2f7d7d6377435bfd475e82268e4e907141 | [
"MIT"
] | 296 | 2015-09-07T16:04:01.000Z | 2022-03-27T06:31:43.000Z | my_env/lib/python3.8/site-packages/tests/strategies.py | David5627/AWWARD | a22a2b2f7d7d6377435bfd475e82268e4e907141 | [
"MIT"
] | 189 | 2015-09-07T14:56:32.000Z | 2022-01-31T09:17:22.000Z | my_env/lib/python3.8/site-packages/tests/strategies.py | David5627/AWWARD | a22a2b2f7d7d6377435bfd475e82268e4e907141 | [
"MIT"
] | 115 | 2015-09-17T08:36:36.000Z | 2022-03-09T12:36:14.000Z | from __future__ import unicode_literals
from hypothesis.strategies import integers
from star_ratings import app_settings
def scores(max_rating=app_settings.STAR_RATINGS_RANGE):
return integers(min_value=0, max_value=max_rating)
| 26.111111 | 55 | 0.851064 | 34 | 235 | 5.470588 | 0.617647 | 0.11828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004739 | 0.102128 | 235 | 8 | 56 | 29.375 | 0.876777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.6 | 0.2 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.