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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d2ff4a8ff294546a0560451052497ab30e23a41f | 380 | py | Python | tests/unit/test_helpers.py | mabuelhagag/hijri-converter | 779516a06bcb3f72e4919d2deeed53d2c6db5e5b | [
"MIT"
] | 32 | 2019-08-07T10:36:17.000Z | 2022-01-23T13:57:04.000Z | tests/unit/test_helpers.py | mabuelhagag/hijri-converter | 779516a06bcb3f72e4919d2deeed53d2c6db5e5b | [
"MIT"
] | 8 | 2019-12-28T19:55:32.000Z | 2021-09-06T08:31:20.000Z | tests/unit/test_helpers.py | mabuelhagag/hijri-converter | 779516a06bcb3f72e4919d2deeed53d2c6db5e5b | [
"MIT"
] | 12 | 2019-06-02T19:48:01.000Z | 2021-11-12T09:07:03.000Z | from hijri_converter import helpers
def test_julian_to_ordinal():
assert helpers.jdn_to_ordinal(2447977) == 726552
def test_ordinal_to_julian():
assert helpers.ordinal_to_jdn(726552) == 2447977
def test_julian_to_reduced_julian():
assert helpers.jdn_to_rjd(2456087) == 56087
def test_reduced_julian_t... | 21.111111 | 52 | 0.778947 | 55 | 380 | 4.963636 | 0.327273 | 0.102564 | 0.208791 | 0.10989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152439 | 0.136842 | 380 | 17 | 53 | 22.352941 | 0.679878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.444444 | true | 0 | 0.111111 | 0 | 0.555556 | 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 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 5 |
961fbb60916709f046c0db38cb8b181402fd92bd | 206 | py | Python | test/privacyalgorithms/density.py | OPAL-Project/OPAL-AlgoService | 542b39f31551a849f45f91b6d85bfa3238e21767 | [
"MIT"
] | 1 | 2020-03-04T15:38:52.000Z | 2020-03-04T15:38:52.000Z | test/privacyalgorithms/density.py | OPAL-Project/OPAL-AlgoService | 542b39f31551a849f45f91b6d85bfa3238e21767 | [
"MIT"
] | 9 | 2018-07-05T07:32:40.000Z | 2021-10-19T00:32:07.000Z | test/privacyalgorithms/density.py | OPAL-Project/OPAL-AlgoService | 542b39f31551a849f45f91b6d85bfa3238e21767 | [
"MIT"
] | 2 | 2018-09-16T17:17:38.000Z | 2019-05-09T13:25:52.000Z | # -*- coding: utf-8 -*-
from opalalgorithms.core import OPALPrivacy
class Density(OPALPrivacy):
def __init__(self):
pass
def __call__(self, result, params, salt):
return result;
| 17.166667 | 45 | 0.650485 | 23 | 206 | 5.478261 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006369 | 0.237864 | 206 | 11 | 46 | 18.727273 | 0.796178 | 0.101942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.166667 | 0.166667 | 0.166667 | 0.833333 | 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 | 1 | 1 | 0 | 0 | 5 |
824ad44f38442f804e35a7bbc5ff10f6dac70d2e | 261 | py | Python | tests/test_model_to_dict.py | boba-and-beer/vectorhub | fc536a59c77755f4051af37338839e24e0add5c4 | [
"Apache-2.0"
] | 385 | 2020-10-26T13:12:11.000Z | 2021-10-07T15:14:48.000Z | tests/test_model_to_dict.py | boba-and-beer/vectorhub | fc536a59c77755f4051af37338839e24e0add5c4 | [
"Apache-2.0"
] | 24 | 2020-10-29T13:16:31.000Z | 2021-08-31T06:47:33.000Z | tests/test_model_to_dict.py | boba-and-beer/vectorhub | fc536a59c77755f4051af37338839e24e0add5c4 | [
"Apache-2.0"
] | 45 | 2020-10-29T15:25:19.000Z | 2021-09-05T21:50:57.000Z | from vectorhub.auto_encoder import *
def test_get_model_definitions():
assert isinstance(get_model_definitions(json_fn=None), list)
assert isinstance(get_model_definitions(json_fn=None)[0], dict)
assert len(get_model_definitions(json_fn=None)) > 0
| 37.285714 | 67 | 0.793103 | 38 | 261 | 5.105263 | 0.5 | 0.164948 | 0.391753 | 0.35567 | 0.623711 | 0.623711 | 0.623711 | 0.463918 | 0 | 0 | 0 | 0.008621 | 0.111111 | 261 | 6 | 68 | 43.5 | 0.827586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.6 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
828b69d23aba38d3f5b78cb02a0691e970db1be8 | 5,619 | py | Python | tests/test_services/test_vdc/actions.py | openvcloud/ays_templates | 7ce0bd5844ccfaefae554dd0dedeab2730a365cc | [
"Apache-2.0"
] | null | null | null | tests/test_services/test_vdc/actions.py | openvcloud/ays_templates | 7ce0bd5844ccfaefae554dd0dedeab2730a365cc | [
"Apache-2.0"
] | 10 | 2017-10-25T13:23:23.000Z | 2018-03-28T16:00:06.000Z | tests/test_services/test_vdc/actions.py | openvcloud/ays_templates | 7ce0bd5844ccfaefae554dd0dedeab2730a365cc | [
"Apache-2.0"
] | null | null | null | def init_actions_(service, args):
return {
'test_create': ['install'],
'test_delete': ['install'],
'test_routeros': ['install'],
'test_enable': ['enable'],
'test_disable': ['disable'],
}
##############
# dummy methods for making tests depend on the actions they test
def ... | 35.789809 | 131 | 0.641395 | 691 | 5,619 | 5.072359 | 0.154848 | 0.064194 | 0.068474 | 0.094151 | 0.77632 | 0.77632 | 0.766619 | 0.745221 | 0.720685 | 0.720685 | 0 | 0.008922 | 0.222104 | 5,619 | 156 | 132 | 36.019231 | 0.792954 | 0.032924 | 0 | 0.7 | 0 | 0 | 0.128124 | 0.022218 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.016667 | 0.05 | 0.008333 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
82b048fc6d2c604a335dd97e46846152df37e1f1 | 95 | py | Python | portfolio/models.py | xinging-birds/personalized-portfolio | 8888cf744980c480635ac800a0760379c42439b3 | [
"MIT"
] | 1 | 2019-03-17T15:39:08.000Z | 2019-03-17T15:39:08.000Z | portfolio/models.py | xinging-birds/personalized-portfolio | 8888cf744980c480635ac800a0760379c42439b3 | [
"MIT"
] | 1 | 2020-09-25T23:29:11.000Z | 2020-09-25T23:29:11.000Z | portfolio/models.py | xinging-birds/personalized-portfolio | 8888cf744980c480635ac800a0760379c42439b3 | [
"MIT"
] | 1 | 2019-02-24T23:18:03.000Z | 2019-02-24T23:18:03.000Z | from django.db import models
# Create your models here.
#serializer converts to and from JSON
| 19 | 37 | 0.789474 | 15 | 95 | 5 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168421 | 95 | 4 | 38 | 23.75 | 0.949367 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
82c16f6761b904d3361165a12c953ecf4d1a0f1f | 162 | py | Python | server/api/utilities/helpers/response.py | koiic/favorite-things | f34944dfbc78e454c6245b76f036f6dd24d018eb | [
"MIT"
] | null | null | null | server/api/utilities/helpers/response.py | koiic/favorite-things | f34944dfbc78e454c6245b76f036f6dd24d018eb | [
"MIT"
] | 5 | 2020-07-17T10:43:13.000Z | 2022-02-26T12:16:12.000Z | server/api/utilities/helpers/response.py | koiic/favorite-things | f34944dfbc78e454c6245b76f036f6dd24d018eb | [
"MIT"
] | null | null | null | def response(status, message, data, status_code=200):
return {
"status": status,
"message": message,
"data": data,
}, status_code
| 23.142857 | 53 | 0.574074 | 17 | 162 | 5.352941 | 0.470588 | 0.285714 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026087 | 0.290123 | 162 | 6 | 54 | 27 | 0.765217 | 0 | 0 | 0 | 0 | 0 | 0.104938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.166667 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 5 |
82cca2a409c8f42d8df7f8b06aa382d2241e71c5 | 2,533 | py | Python | setup.py | slaclab/epix-hr-2M-10k | 33b74fb2d6ed9ecca38ed1a1818cfb778beb9d50 | [
"BSD-3-Clause-LBNL"
] | 1 | 2022-01-27T00:40:46.000Z | 2022-01-27T00:40:46.000Z | setup.py | slaclab/epix-hr-2M-10k | 33b74fb2d6ed9ecca38ed1a1818cfb778beb9d50 | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-08-28T00:13:45.000Z | 2021-09-02T15:29:29.000Z | setup.py | slaclab/epix-hr-single-10k | 0c43b2a160442c485a94feceaab9aac3fc5e47b4 | [
"BSD-3-Clause-LBNL"
] | null | null | null | from setuptools import setup
# use softlinks to make the various "board-support-package" submodules
# look like subpackages. Then __init__.py will modify
# sys.path so that the correct "local" versions of surf etc. are
# picked up. A better approach would be using relative imports
# in the submodules, but that's mor... | 45.232143 | 95 | 0.703119 | 343 | 2,533 | 4.813411 | 0.279883 | 0.152635 | 0.298001 | 0.372502 | 0.611145 | 0.529982 | 0.039976 | 0 | 0 | 0 | 0 | 0.048863 | 0.183972 | 2,533 | 55 | 96 | 46.054545 | 0.749879 | 0.115673 | 0 | 0 | 0 | 0 | 0.713966 | 0.676365 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.020408 | 0 | 0.020408 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
7d54dedb0a3561e63d5b55f92a6e799b4f5d1dd6 | 132 | py | Python | xtract_sdk/client/__init__.py | xtracthub/xtract-sdk | fe88cd440591110d60e74c101a0b49d2385ac0a4 | [
"MIT"
] | 4 | 2020-08-06T19:11:29.000Z | 2021-12-01T20:08:02.000Z | xtract_sdk/client/__init__.py | xtracthub/xtract-sdk | fe88cd440591110d60e74c101a0b49d2385ac0a4 | [
"MIT"
] | 10 | 2020-08-06T15:58:28.000Z | 2022-01-12T19:06:36.000Z | xtract_sdk/client/__init__.py | xtracthub/xtract-sdk | fe88cd440591110d60e74c101a0b49d2385ac0a4 | [
"MIT"
] | null | null | null |
from .routes import XTRACT_CRAWLER, XTRACT_CRAWLER_DEV, XTRACT_SERVICE, XTRACT_SERVICE_DEV
from .xtract_client import XtractClient
| 33 | 90 | 0.871212 | 18 | 132 | 6 | 0.5 | 0.240741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 132 | 3 | 91 | 44 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
7d70788703fb10419ac9aeb391e2db78a901b6b0 | 223 | py | Python | templates/qualityScoreVisualizer/views.py | mocklee/PHRED-Quality-Visualizer | a7b875e56efe4d26bb75b9092809ad920ada01cf | [
"MIT"
] | null | null | null | templates/qualityScoreVisualizer/views.py | mocklee/PHRED-Quality-Visualizer | a7b875e56efe4d26bb75b9092809ad920ada01cf | [
"MIT"
] | 4 | 2019-11-01T20:58:38.000Z | 2021-03-09T07:48:31.000Z | templates/qualityScoreVisualizer/views.py | mocklee/PHRED-Quality-Visualizer | a7b875e56efe4d26bb75b9092809ad920ada01cf | [
"MIT"
] | null | null | null | from flask import render_template, Blueprint
qualityScoreVisualizer_blueprint = Blueprint('qualityScoreVisualizer', __name__)
@qualityScoreVisualizer_blueprint.route('/')
def index():
return render_template('index.html') | 31.857143 | 80 | 0.829596 | 21 | 223 | 8.428571 | 0.619048 | 0.158192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071749 | 223 | 7 | 81 | 31.857143 | 0.855072 | 0 | 0 | 0 | 0 | 0 | 0.147321 | 0.098214 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0.6 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 5 |
7d7bbf249cf2557b8daa18a5c84df9a15622f2a0 | 56 | py | Python | HEPTools/__init__.py | weissercn/HEPtools | e724e33c81e3738850be30dd15005feb5fd54a0a | [
"MIT"
] | null | null | null | HEPTools/__init__.py | weissercn/HEPtools | e724e33c81e3738850be30dd15005feb5fd54a0a | [
"MIT"
] | null | null | null | HEPTools/__init__.py | weissercn/HEPtools | e724e33c81e3738850be30dd15005feb5fd54a0a | [
"MIT"
] | null | null | null | import sys
import os
os.environ["HEPTools"]=os.getcwd()
| 14 | 34 | 0.75 | 9 | 56 | 4.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089286 | 56 | 3 | 35 | 18.666667 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
7d876f3595d6730ce33e6677704b573bdc71cf37 | 9,459 | py | Python | vines/geometry/geometry.py | AndrewGibbs/vines | 4c4f75adc8f601f06e2ab12fbaa95a047ef4354e | [
"MIT"
] | 4 | 2020-07-05T19:01:52.000Z | 2022-03-07T18:27:21.000Z | vines/geometry/geometry.py | AndrewGibbs/vines | 4c4f75adc8f601f06e2ab12fbaa95a047ef4354e | [
"MIT"
] | null | null | null | vines/geometry/geometry.py | AndrewGibbs/vines | 4c4f75adc8f601f06e2ab12fbaa95a047ef4354e | [
"MIT"
] | 5 | 2020-07-31T13:57:44.000Z | 2022-02-02T08:49:03.000Z |
from numba import njit, prange
import numpy as np
def generatedomain(res, dx, dy, dz):
# Get minimum number of voxels in each direction
nx = np.int(np.max((1.0, np.round(dx / res))))
ny = np.int(np.max((1.0, np.round(dy / res))))
nz = np.int(np.max((1.0, np.round(dz / res))))
Dx = nx * res
D... | 29.28483 | 75 | 0.505973 | 1,504 | 9,459 | 3.102394 | 0.120346 | 0.020574 | 0.012859 | 0.025718 | 0.758466 | 0.73832 | 0.701672 | 0.695242 | 0.681955 | 0.646592 | 0 | 0.043541 | 0.339571 | 9,459 | 322 | 76 | 29.375776 | 0.703378 | 0.160588 | 0 | 0.739316 | 1 | 0 | 0.01286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.034188 | 0 | 0.115385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 5 |
7d9c396544ae55ce37c542905df2c740a82288f9 | 280 | py | Python | web-gui/flaskr/model/__init__.py | kpk-pl/wallet | 68bcc2685d1932e4a5ec021c09854c1d6a7294a9 | [
"MIT"
] | null | null | null | web-gui/flaskr/model/__init__.py | kpk-pl/wallet | 68bcc2685d1932e4a5ec021c09854c1d6a7294a9 | [
"MIT"
] | null | null | null | web-gui/flaskr/model/__init__.py | kpk-pl/wallet | 68bcc2685d1932e4a5ec021c09854c1d6a7294a9 | [
"MIT"
] | null | null | null | from .asset import Asset, AssetCurrency
from .assetPricing import AssetPricing, AssetPricingQuotes, AssetPricingParametrized
from .assetOperation import AssetOperation, AssetOperationType
from .quote import Quote, QuoteCurrencyPair, QuoteHistoryItem
from .types import PyObjectId
| 46.666667 | 84 | 0.867857 | 26 | 280 | 9.346154 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092857 | 280 | 5 | 85 | 56 | 0.956693 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
7def6e1bbfe834b492146824156aa06539dc1d65 | 152 | py | Python | lib/dataset/__init__.py | fourmi1995/IronExperiment-DCN | 5292539764588e0168016c7e7b4df038358e9f38 | [
"MIT"
] | 2 | 2020-11-10T07:37:09.000Z | 2021-02-09T06:26:25.000Z | lib/dataset/__init__.py | fourmi1995/IronExperiment-DCN | 5292539764588e0168016c7e7b4df038358e9f38 | [
"MIT"
] | null | null | null | lib/dataset/__init__.py | fourmi1995/IronExperiment-DCN | 5292539764588e0168016c7e7b4df038358e9f38 | [
"MIT"
] | 1 | 2019-08-07T02:35:16.000Z | 2019-08-07T02:35:16.000Z | from imdb import IMDB
from pascal_voc import PascalVOC
from cityscape import CityScape
from coco import coco
from icdar_str_devkit import TableStr
| 25.333333 | 38 | 0.835526 | 23 | 152 | 5.391304 | 0.521739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164474 | 152 | 5 | 39 | 30.4 | 0.976378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
817484bc51a50d9844a86c3901993b6012192d7c | 9,684 | py | Python | tsfresh/convenience/bindings.py | TKlerx/tsfresh | 2ad7b3a6144e948e4dae53b73c0500aac9d17dcc | [
"MIT"
] | 2 | 2020-04-11T12:08:22.000Z | 2020-05-04T19:18:48.000Z | tsfresh/convenience/bindings.py | TKlerx/tsfresh | 2ad7b3a6144e948e4dae53b73c0500aac9d17dcc | [
"MIT"
] | null | null | null | tsfresh/convenience/bindings.py | TKlerx/tsfresh | 2ad7b3a6144e948e4dae53b73c0500aac9d17dcc | [
"MIT"
] | 1 | 2020-09-07T10:01:19.000Z | 2020-09-07T10:01:19.000Z | from functools import partial
from tsfresh.feature_extraction.extraction import _do_extraction_on_chunk
from tsfresh.feature_extraction.settings import ComprehensiveFCParameters
import pandas as pd
def _feature_extraction_on_chunk_helper(df, column_id, column_kind,
column_sor... | 45.895735 | 108 | 0.673069 | 1,277 | 9,684 | 4.90603 | 0.155051 | 0.080447 | 0.069753 | 0.043097 | 0.795211 | 0.763128 | 0.749721 | 0.749721 | 0.739186 | 0.729769 | 0 | 0.00166 | 0.253511 | 9,684 | 210 | 109 | 46.114286 | 0.864988 | 0.668525 | 0 | 0.368421 | 0 | 0 | 0.039037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.131579 | 0 | 0.289474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
8183491fa38b2f08aeda88afbf532a73aeabcd1e | 325 | py | Python | mypo/rebalancer/__init__.py | sonesuke/my-portfolio | 4fd19fdee8a0aa13194cab0df53c83218c5664e3 | [
"MIT"
] | 2 | 2021-03-14T00:14:25.000Z | 2021-09-04T16:26:02.000Z | mypo/rebalancer/__init__.py | sonesuke/my-portfolio | 4fd19fdee8a0aa13194cab0df53c83218c5664e3 | [
"MIT"
] | 104 | 2021-02-21T08:11:11.000Z | 2021-09-26T03:02:27.000Z | mypo/rebalancer/__init__.py | sonesuke/mypo | 4fd19fdee8a0aa13194cab0df53c83218c5664e3 | [
"MIT"
] | null | null | null | # flake8: noqa
from mypo.rebalancer.base_rebalancer import BaseRebalancer
from mypo.rebalancer.monthly_rebalancer import MonthlyRebalancer
from mypo.rebalancer.no_rebalancer import NoRebalancer
from mypo.rebalancer.plain_rebalancer import PlainRebalancer
from mypo.rebalancer.threshold_rebalancer import ThresholdRebala... | 40.625 | 68 | 0.889231 | 37 | 325 | 7.675676 | 0.432432 | 0.140845 | 0.316901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003322 | 0.073846 | 325 | 7 | 69 | 46.428571 | 0.940199 | 0.036923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
819ac26e64de6444dc2893e5fdcd9ae4cd428913 | 89 | py | Python | nsd1805/python/day20/mysite/market/admin.py | MrWangwf/nsd1806 | 069e993b0bb64cb21adc2a25aa56f6da674453bc | [
"Apache-2.0"
] | null | null | null | nsd1805/python/day20/mysite/market/admin.py | MrWangwf/nsd1806 | 069e993b0bb64cb21adc2a25aa56f6da674453bc | [
"Apache-2.0"
] | null | null | null | nsd1805/python/day20/mysite/market/admin.py | MrWangwf/nsd1806 | 069e993b0bb64cb21adc2a25aa56f6da674453bc | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import Userdb
admin.site.register(Userdb)
| 17.8 | 32 | 0.820225 | 13 | 89 | 5.615385 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11236 | 89 | 4 | 33 | 22.25 | 0.924051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
c4fbd87e66ed26b38272aa557112b1a5756b6193 | 186 | py | Python | tests/test_keyring.py | gzm55/sagecipher | 9fcc8a9701719a0391034812c56defa5a6bfa5e3 | [
"Apache-2.0"
] | 7 | 2016-05-04T12:25:19.000Z | 2022-03-17T05:21:03.000Z | tests/test_keyring.py | gzm55/sagecipher | 9fcc8a9701719a0391034812c56defa5a6bfa5e3 | [
"Apache-2.0"
] | 11 | 2021-02-15T07:00:16.000Z | 2021-09-14T15:37:19.000Z | tests/test_keyring.py | gzm55/sagecipher | 9fcc8a9701719a0391034812c56defa5a6bfa5e3 | [
"Apache-2.0"
] | 5 | 2018-07-22T09:16:06.000Z | 2021-09-14T15:20:31.000Z | from keyring.testing.backend import BackendBasicTests
from sagecipher.keyring import Keyring
class TestKeyring(BackendBasicTests):
def init_keyring(self):
return Keyring()
| 23.25 | 53 | 0.790323 | 20 | 186 | 7.3 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150538 | 186 | 7 | 54 | 26.571429 | 0.924051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 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 | 1 | 1 | 0 | 0 | 5 |
f217a2117a341e3bf603f32bd0a3043e989be3d1 | 24 | py | Python | python/testData/completion/attributeOfIndirectlyImportedPackage/a.after.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/completion/attributeOfIndirectlyImportedPackage/a.after.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/completion/attributeOfIndirectlyImportedPackage/a.after.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | import pkg1.m1
pkg1.foo | 8 | 14 | 0.791667 | 5 | 24 | 3.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.125 | 24 | 3 | 15 | 8 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
1ee76fa34d9004501bd540e9952f185e7080e623 | 17 | py | Python | hg.py | yagneshyaggiifj/yag | 0afcf598639fe58cd2016add4776756e5da74e77 | [
"bzip2-1.0.6"
] | null | null | null | hg.py | yagneshyaggiifj/yag | 0afcf598639fe58cd2016add4776756e5da74e77 | [
"bzip2-1.0.6"
] | null | null | null | hg.py | yagneshyaggiifj/yag | 0afcf598639fe58cd2016add4776756e5da74e77 | [
"bzip2-1.0.6"
] | null | null | null | print(word[:])
| 8.5 | 16 | 0.529412 | 2 | 17 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 17 | 1 | 17 | 17 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 5 |
1ef58b93931d867e71a73b0d78a200ee967ea72d | 203 | py | Python | moto/s3control/__init__.py | andormarkus/moto | 67cda6d7d6f42118ccd7e2170e7ff0a1f92fa6a6 | [
"Apache-2.0"
] | null | null | null | moto/s3control/__init__.py | andormarkus/moto | 67cda6d7d6f42118ccd7e2170e7ff0a1f92fa6a6 | [
"Apache-2.0"
] | null | null | null | moto/s3control/__init__.py | andormarkus/moto | 67cda6d7d6f42118ccd7e2170e7ff0a1f92fa6a6 | [
"Apache-2.0"
] | null | null | null | """s3control module initialization; sets value for base decorator."""
from .models import s3control_backends
from ..core.models import base_decorator
mock_s3control = base_decorator(s3control_backends)
| 33.833333 | 69 | 0.827586 | 25 | 203 | 6.52 | 0.56 | 0.239264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021858 | 0.098522 | 203 | 5 | 70 | 40.6 | 0.868852 | 0.310345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
1efd2aa95e152cd185de1f84418bb5cf2edfc9fd | 246 | py | Python | models/credentials.py | Astatine404/spiritus | 1ae04aa17e57a86970e85af2c8ae7ba69d2b6ced | [
"MIT"
] | 1 | 2018-02-10T13:07:24.000Z | 2018-02-10T13:07:24.000Z | models/credentials.py | Astatine404/spiritus | 1ae04aa17e57a86970e85af2c8ae7ba69d2b6ced | [
"MIT"
] | null | null | null | models/credentials.py | Astatine404/spiritus | 1ae04aa17e57a86970e85af2c8ae7ba69d2b6ced | [
"MIT"
] | 3 | 2018-02-27T10:27:07.000Z | 2020-09-23T13:18:04.000Z | CONSUMER_KEY = 'WVQrIJcorH11hQoP6mHKvXIZJ'
CONSUMER_SECRET = 'Ui3V1dEsa5owJnhu3nLNyqdz2hFf6HmvICPObiShmkzBszKnah'
ACCESS_TOKEN = '218405160-0iabe9XqpwAJ4z4BYsaXwH3ydKpFZhnzj5xpHxpI'
ACCESS_SECRET = 'PdPNfcgkc5x7TO54cxVjGOjSrqY2jbcaayV46ys9IkLj3'
| 49.2 | 70 | 0.898374 | 13 | 246 | 16.692308 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141026 | 0.04878 | 246 | 4 | 71 | 61.5 | 0.786325 | 0 | 0 | 0 | 0 | 0 | 0.691057 | 0.691057 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 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 | 5 |
48418ac72aad9d8a7040990d2c095aa1c387540a | 150 | py | Python | api/admin.py | OtchereDev/Omdbapi-Clone | 411c89944a1d6e7ba77e225a8ae263db08d6150f | [
"MIT"
] | null | null | null | api/admin.py | OtchereDev/Omdbapi-Clone | 411c89944a1d6e7ba77e225a8ae263db08d6150f | [
"MIT"
] | null | null | null | api/admin.py | OtchereDev/Omdbapi-Clone | 411c89944a1d6e7ba77e225a8ae263db08d6150f | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Movie, Genre
# Register your models here.
admin.site.register(Genre)
admin.site.register(Movie) | 21.428571 | 32 | 0.8 | 22 | 150 | 5.454545 | 0.545455 | 0.15 | 0.283333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113333 | 150 | 7 | 33 | 21.428571 | 0.902256 | 0.173333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
4857926c931e7c75ea97b79f73b32dfe9a736cf5 | 220 | py | Python | safe_transaction_service/history/apps.py | bigman1208000/safe-transaction-service | 283a278eeb06aaf9227047b96816e63d2a7b9466 | [
"MIT"
] | 5 | 2021-01-28T17:41:42.000Z | 2021-11-14T17:09:18.000Z | safe_transaction_service/history/apps.py | bigman1208000/safe-transaction-service | 283a278eeb06aaf9227047b96816e63d2a7b9466 | [
"MIT"
] | 2 | 2021-06-09T17:58:44.000Z | 2021-06-10T19:42:32.000Z | safe_transaction_service/history/apps.py | bigman1208000/safe-transaction-service | 283a278eeb06aaf9227047b96816e63d2a7b9466 | [
"MIT"
] | 5 | 2021-04-06T17:20:02.000Z | 2022-01-13T10:58:08.000Z | from django.apps import AppConfig
class HistoryConfig(AppConfig):
name = 'safe_transaction_service.history'
verbose_name = 'Safe Transaction Service'
def ready(self):
from . import signals # noqa
| 22 | 45 | 0.718182 | 25 | 220 | 6.2 | 0.72 | 0.103226 | 0.245161 | 0.335484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209091 | 220 | 9 | 46 | 24.444444 | 0.890805 | 0.018182 | 0 | 0 | 0 | 0 | 0.261682 | 0.149533 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
48655129b1c9e8c0abc263521c56f22ff38665ba | 155 | py | Python | python/databp/core/svc/__init__.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null | python/databp/core/svc/__init__.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null | python/databp/core/svc/__init__.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null | from .export_mapped_events import ExportMappedEvents
from .map_raw_events import MapRawEvents
from .query_bluepages_endpoint import QueryBluepagesEndpoint
| 38.75 | 60 | 0.903226 | 18 | 155 | 7.444444 | 0.722222 | 0.179104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077419 | 155 | 3 | 61 | 51.666667 | 0.937063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
4865c57296b71f54169cb336063a8ac0aa8718e8 | 41,539 | py | Python | tests/changes/backends/jenkins/test_builder.py | vault-the/changes | 37e23c3141b75e4785cf398d015e3dbca41bdd56 | [
"Apache-2.0"
] | 443 | 2015-01-03T16:28:39.000Z | 2021-04-26T16:39:46.000Z | tests/changes/backends/jenkins/test_builder.py | vault-the/changes | 37e23c3141b75e4785cf398d015e3dbca41bdd56 | [
"Apache-2.0"
] | 12 | 2015-07-30T19:07:16.000Z | 2016-11-07T23:11:21.000Z | tests/changes/backends/jenkins/test_builder.py | vault-the/changes | 37e23c3141b75e4785cf398d015e3dbca41bdd56 | [
"Apache-2.0"
] | 47 | 2015-01-09T10:04:00.000Z | 2020-11-18T17:58:19.000Z | from __future__ import absolute_import
import mock
import os.path
import responses
import pytest
import re
import time
from flask import current_app
from uuid import UUID
from changes.config import db, redis
from changes.constants import Status, Result
from changes.lib.artifact_store_lib import ArtifactState
from c... | 37.355216 | 240 | 0.610101 | 4,636 | 41,539 | 5.320966 | 0.080673 | 0.038106 | 0.053267 | 0.062145 | 0.766459 | 0.743554 | 0.723893 | 0.72138 | 0.700422 | 0.683152 | 0 | 0.03659 | 0.261802 | 41,539 | 1,111 | 241 | 37.388839 | 0.767871 | 0.015937 | 0 | 0.684783 | 0 | 0.033696 | 0.267364 | 0.072906 | 0 | 0 | 0 | 0.0009 | 0.1 | 1 | 0.03587 | false | 0.004348 | 0.026087 | 0 | 0.078261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
486ac585a5446b2e4cacd722943025bfc6303b32 | 55 | py | Python | chalice/tests/__init__.py | alphagov-mirror/csw-backend | 687b1db3a5931a2405881a846709fe12a9cde2b8 | [
"MIT"
] | 1 | 2019-10-14T11:34:24.000Z | 2019-10-14T11:34:24.000Z | chalice/tests/__init__.py | alphagov-mirror/csw-backend | 687b1db3a5931a2405881a846709fe12a9cde2b8 | [
"MIT"
] | 64 | 2018-08-21T07:06:35.000Z | 2021-11-01T09:22:27.000Z | chalice/tests/__init__.py | alphagov-mirror/csw-backend | 687b1db3a5931a2405881a846709fe12a9cde2b8 | [
"MIT"
] | 3 | 2018-09-05T12:40:58.000Z | 2021-04-10T20:12:27.000Z | import os
os.environ["CSW_CRITERIA_UNIT_TESTING"] = "1" | 27.5 | 45 | 0.781818 | 9 | 55 | 4.444444 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.072727 | 55 | 2 | 45 | 27.5 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0.464286 | 0.446429 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
48752af1d066afbfaf906d610bfb8b83215adb0c | 87 | py | Python | __init__.py | jinanloubani/aTEAM | 0999799fafbdc36ae09cdd91d99a5a7316803143 | [
"MIT"
] | 23 | 2018-05-25T02:16:59.000Z | 2022-03-24T06:56:34.000Z | __init__.py | jinanloubani/aTEAM | 0999799fafbdc36ae09cdd91d99a5a7316803143 | [
"MIT"
] | 1 | 2019-06-11T06:59:21.000Z | 2019-06-11T06:59:40.000Z | __init__.py | jinanloubani/aTEAM | 0999799fafbdc36ae09cdd91d99a5a7316803143 | [
"MIT"
] | 8 | 2018-08-29T16:43:12.000Z | 2022-01-17T11:54:40.000Z | """a pyTorch Extension for Applied Mathematics"""
from . import optim
from . import nn
| 21.75 | 49 | 0.747126 | 12 | 87 | 5.416667 | 0.833333 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16092 | 87 | 3 | 50 | 29 | 0.890411 | 0.494253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
6f870f32e1f9f48b02d86926f3d5697b84bd6702 | 2,202 | py | Python | tests/Argo_global_range_check_validation.py | BillMills/AutoQC | cb56fa5bb2115170ec204edd84e2d69ce84be820 | [
"MIT"
] | 17 | 2015-01-31T00:35:58.000Z | 2020-10-26T19:01:46.000Z | tests/Argo_global_range_check_validation.py | castelao/AutoQC | eb85422c1a6a5ff965a1ef96b3cb29240a66b506 | [
"MIT"
] | 163 | 2015-01-21T03:44:42.000Z | 2022-01-09T22:03:12.000Z | tests/Argo_global_range_check_validation.py | BillMills/AutoQC | cb56fa5bb2115170ec204edd84e2d69ce84be820 | [
"MIT"
] | 11 | 2015-06-04T14:32:22.000Z | 2021-04-11T05:18:09.000Z | import qctests.Argo_global_range_check
import util.testingProfile
import numpy
from util import obs_utils
##### Argo_global_range_check ---------------------------------------------------
def test_Argo_global_range_check_temperature():
'''
Make sure AGRC is flagging temperature excursions
'''
# shoul... | 39.321429 | 108 | 0.684832 | 314 | 2,202 | 4.652866 | 0.194268 | 0.068446 | 0.102669 | 0.136893 | 0.853525 | 0.778919 | 0.717317 | 0.717317 | 0.679671 | 0.611225 | 0 | 0.047855 | 0.174387 | 2,202 | 55 | 109 | 40.036364 | 0.755776 | 0.127157 | 0 | 0.454545 | 0 | 0 | 0.124934 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.060606 | false | 0 | 0.121212 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
6ff505e3b8ee9f65d288c4d5479b67bd35856203 | 144 | py | Python | tests/conftest.py | kylenstone/python-frameio-client | 5f12cb40d68f83cafe53752d869f4a9880a1169e | [
"MIT"
] | 1 | 2019-06-08T18:44:55.000Z | 2019-06-08T18:44:55.000Z | tests/conftest.py | jpylisela/python-frameio-client | 527ee5b9f85329982913b6ea54e097a5e089ff57 | [
"MIT"
] | null | null | null | tests/conftest.py | jpylisela/python-frameio-client | 527ee5b9f85329982913b6ea54e097a5e089ff57 | [
"MIT"
] | null | null | null | import pytest
from frameioclient import FrameioClient
@pytest.fixture
def frameioclient(token):
return FrameioClient("aaaabbbbccccddddeeee")
| 20.571429 | 46 | 0.840278 | 14 | 144 | 8.642857 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097222 | 144 | 6 | 47 | 24 | 0.930769 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 5 |
b50dbd77a83697e31c0e4fc69022dc98b1fb259c | 189 | py | Python | tests/samples/valid/DictAchievement.py | raviolliii/dev-achievements | da0a92f0d53b20192ef68ee1222cbf01fb0c0ed0 | [
"MIT"
] | 12 | 2021-02-05T15:38:08.000Z | 2021-09-04T21:19:03.000Z | tests/samples/valid/DictAchievement.py | raviolliii/dev-achievements | da0a92f0d53b20192ef68ee1222cbf01fb0c0ed0 | [
"MIT"
] | null | null | null | tests/samples/valid/DictAchievement.py | raviolliii/dev-achievements | da0a92f0d53b20192ef68ee1222cbf01fb0c0ed0 | [
"MIT"
] | null | null | null | # cases where DictAchievement should unlock
# >> CASE
{'name': 'John Doe', 'age': 24}
# >> CASE
{
'name': 'John Doe',
'age': 24
}
# >> CASE
func({'name': 'John Doe', 'age': 24})
| 13.5 | 43 | 0.534392 | 24 | 189 | 4.208333 | 0.5 | 0.237624 | 0.326733 | 0.415842 | 0.594059 | 0.435644 | 0.435644 | 0 | 0 | 0 | 0 | 0.041096 | 0.227513 | 189 | 13 | 44 | 14.538462 | 0.650685 | 0.343915 | 0 | 0 | 0 | 0 | 0.378151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
b50e9feb1fdb5ccfd803542f057009b98d272cba | 79 | py | Python | CodeWars/7 Kyu/Find the capitals.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | CodeWars/7 Kyu/Find the capitals.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | CodeWars/7 Kyu/Find the capitals.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | def capitals(word):
return [i for (i, c) in enumerate(word) if c.isupper()] | 39.5 | 59 | 0.658228 | 14 | 79 | 3.714286 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177215 | 79 | 2 | 59 | 39.5 | 0.8 | 0 | 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 | 1 | 0 | 0 | 5 |
82f8ade6a0016a76c42a940a20565b452e455cd3 | 235 | py | Python | dude/admin.py | demosdemon/dude-wheres-my-car | c4db13dd8f2ec7439a37bdef096c8adeb3e54553 | [
"MIT"
] | null | null | null | dude/admin.py | demosdemon/dude-wheres-my-car | c4db13dd8f2ec7439a37bdef096c8adeb3e54553 | [
"MIT"
] | 2 | 2018-08-30T01:35:29.000Z | 2018-09-01T02:08:15.000Z | dude/admin.py | demosdemon/dude-wheres-my-car | c4db13dd8f2ec7439a37bdef096c8adeb3e54553 | [
"MIT"
] | null | null | null | """Admin config."""
from flask_admin.contrib.sqla import ModelView
from dude.extensions import admin, db
from dude.user.models import Role, User
admin.add_view(ModelView(Role, db.session))
admin.add_view(ModelView(User, db.session))
| 26.111111 | 46 | 0.787234 | 36 | 235 | 5.055556 | 0.472222 | 0.087912 | 0.131868 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093617 | 235 | 8 | 47 | 29.375 | 0.85446 | 0.055319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
d20de33b5ab5c7d6d4257b4bc9158c6af147fc47 | 661 | py | Python | station/robot_goal_and_obstacle_finder/detection/acuro_markers/marker_position.py | GLO3013-E4/COViRondelle2021 | f8d23903d0a906e93a7698a555d90ebecdf83969 | [
"MIT"
] | null | null | null | station/robot_goal_and_obstacle_finder/detection/acuro_markers/marker_position.py | GLO3013-E4/COViRondelle2021 | f8d23903d0a906e93a7698a555d90ebecdf83969 | [
"MIT"
] | null | null | null | station/robot_goal_and_obstacle_finder/detection/acuro_markers/marker_position.py | GLO3013-E4/COViRondelle2021 | f8d23903d0a906e93a7698a555d90ebecdf83969 | [
"MIT"
] | null | null | null | class MarkerPosition:
def __init__(self, markers_points, rotation_vector, translation_vector):
self.markers_points = markers_points
self.rotation_vector = rotation_vector
self.translation_vector = translation_vector
def set_markers_points(self, markers_points):
self.markers_poi... | 30.045455 | 76 | 0.741301 | 77 | 661 | 5.948052 | 0.168831 | 0.255459 | 0.18559 | 0.104803 | 0.406114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202723 | 661 | 21 | 77 | 31.47619 | 0.86907 | 0 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
d215ec26475dddf3f75340a8265fdcb36ecbaaab | 355 | py | Python | blocks/bricks/recurrent/__init__.py | KIKOcaoyue/blocks | dfbeb400cfacfc1abe75e377cc03c1bf61b9c2fa | [
"BSD-3-Clause"
] | 1,067 | 2015-05-16T23:39:15.000Z | 2019-02-10T13:33:00.000Z | blocks/bricks/recurrent/__init__.py | KIKOcaoyue/blocks | dfbeb400cfacfc1abe75e377cc03c1bf61b9c2fa | [
"BSD-3-Clause"
] | 577 | 2015-05-16T18:52:53.000Z | 2018-11-27T15:31:09.000Z | blocks/bricks/recurrent/__init__.py | KIKOcaoyue/blocks | dfbeb400cfacfc1abe75e377cc03c1bf61b9c2fa | [
"BSD-3-Clause"
] | 379 | 2015-05-21T03:24:04.000Z | 2019-01-29T02:55:00.000Z | from .base import BaseRecurrent, recurrent
from .architectures import SimpleRecurrent, LSTM, GatedRecurrent
from .misc import Bidirectional, RecurrentStack, RECURRENTSTACK_SEPARATOR
__all__ = ("BaseRecurrent", "recurrent", "SimpleRecurrent", "LSTM",
"GatedRecurrent", "Bidirectional", "RecurrentStack",
... | 39.444444 | 73 | 0.760563 | 28 | 355 | 9.428571 | 0.5 | 0.166667 | 0.25 | 0.378788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143662 | 355 | 8 | 74 | 44.375 | 0.868421 | 0 | 0 | 0 | 0 | 0 | 0.298592 | 0.067606 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
d218d93da30da6a551c41df5254d435af92afcdd | 42 | py | Python | test/login.py | Cyril-hub/git-info | 3ad1464b6b7470240181d5bf2b01b89ba2b49416 | [
"MIT"
] | null | null | null | test/login.py | Cyril-hub/git-info | 3ad1464b6b7470240181d5bf2b01b89ba2b49416 | [
"MIT"
] | null | null | null | test/login.py | Cyril-hub/git-info | 3ad1464b6b7470240181d5bf2b01b89ba2b49416 | [
"MIT"
] | null | null | null | num = 10
num1 = 10
num2 = 20
num3 = 30
| 5.25 | 9 | 0.547619 | 8 | 42 | 2.875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.407407 | 0.357143 | 42 | 7 | 10 | 6 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
d23241a81c4a64c678d32e4719447026d3ff0cd6 | 51 | py | Python | primenumberslib/__init__.py | artigupt/primenumberslib | afb3a9ed914d018231a4588574428624cad91dcd | [
"MIT"
] | null | null | null | primenumberslib/__init__.py | artigupt/primenumberslib | afb3a9ed914d018231a4588574428624cad91dcd | [
"MIT"
] | null | null | null | primenumberslib/__init__.py | artigupt/primenumberslib | afb3a9ed914d018231a4588574428624cad91dcd | [
"MIT"
] | null | null | null | from primenumberslib.prime_numbers import is_prime
| 25.5 | 50 | 0.901961 | 7 | 51 | 6.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078431 | 51 | 1 | 51 | 51 | 0.93617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
d2547d39109421834a4661dbb1752da4928f9b90 | 41 | py | Python | streamlit_app.py | ffreemt/app2 | af092aa7f9a290f16ba650b012e439bea99f1848 | [
"MIT"
] | null | null | null | streamlit_app.py | ffreemt/app2 | af092aa7f9a290f16ba650b012e439bea99f1848 | [
"MIT"
] | null | null | null | streamlit_app.py | ffreemt/app2 | af092aa7f9a290f16ba650b012e439bea99f1848 | [
"MIT"
] | null | null | null | import streamlit as st
st.write("Hey ya") | 20.5 | 22 | 0.756098 | 8 | 41 | 3.875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 41 | 2 | 23 | 20.5 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
d27e40f75805fbdceffeaf3dd0716aefdd13f4c8 | 196 | py | Python | src/spacel/provision/app/__init__.py | mycloudandme/spacel-provision | 900b8ada0017f727163c5c2ae464e17d747ba0e8 | [
"MIT"
] | 2 | 2016-05-18T11:10:27.000Z | 2016-05-18T13:25:04.000Z | src/spacel/provision/app/__init__.py | mycloudandme/spacel-provision | 900b8ada0017f727163c5c2ae464e17d747ba0e8 | [
"MIT"
] | null | null | null | src/spacel/provision/app/__init__.py | mycloudandme/spacel-provision | 900b8ada0017f727163c5c2ae464e17d747ba0e8 | [
"MIT"
] | null | null | null | from .app_spot import AppSpotTemplateDecorator
from .cloudwatch_logs import CloudWatchLogsDecorator
from .ingress_resource import IngressResourceFactory
from .space import SpaceElevatorAppFactory
| 39.2 | 52 | 0.897959 | 19 | 196 | 9.105263 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 196 | 4 | 53 | 49 | 0.961111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
962dedad7cd1ac6129e395d809ed5e503d977805 | 93 | py | Python | cooey-bot/customcom/__init__.py | kennnyshiwa/cooey-tools | dc3a20a31d52711593ab08228cb4ae5bfe3955ec | [
"Apache-2.0"
] | 2 | 2021-01-27T20:28:09.000Z | 2022-02-20T14:43:54.000Z | cooey-bot/customcom/__init__.py | kennnyshiwa/cooey-tools | dc3a20a31d52711593ab08228cb4ae5bfe3955ec | [
"Apache-2.0"
] | null | null | null | cooey-bot/customcom/__init__.py | kennnyshiwa/cooey-tools | dc3a20a31d52711593ab08228cb4ae5bfe3955ec | [
"Apache-2.0"
] | 2 | 2021-01-11T01:56:36.000Z | 2021-01-27T20:28:09.000Z | from .customcom import CustomCommands
def setup(bot):
bot.add_cog(CustomCommands(bot))
| 15.5 | 37 | 0.763441 | 12 | 93 | 5.833333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139785 | 93 | 5 | 38 | 18.6 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
963991bf5ca93de7084e589a59777a7b5ef54033 | 218 | py | Python | discourse/discourse/admin.py | GonnaFlyMethod/discourse-django-vue | e323fc38c970a97788620a176f94bf3f2c830a60 | [
"MIT"
] | null | null | null | discourse/discourse/admin.py | GonnaFlyMethod/discourse-django-vue | e323fc38c970a97788620a176f94bf3f2c830a60 | [
"MIT"
] | null | null | null | discourse/discourse/admin.py | GonnaFlyMethod/discourse-django-vue | e323fc38c970a97788620a176f94bf3f2c830a60 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Topic, Comment, TagOfTopic, TopicSection
admin.site.register(Topic)
admin.site.register(Comment)
admin.site.register(TagOfTopic)
admin.site.register(TopicSection)
| 24.222222 | 60 | 0.825688 | 28 | 218 | 6.428571 | 0.428571 | 0.2 | 0.377778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077982 | 218 | 8 | 61 | 27.25 | 0.895522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
9655d0c33ac8d6f4d585fbbbe28b181446f8d757 | 22 | py | Python | qcodes_contrib_drivers/drivers/ZurichInstruments/__init__.py | ThorstenGroh/Qcodes_contrib_drivers | 97e05f8f5d8762953ee9db9bc461d0814eef657d | [
"MIT"
] | 223 | 2016-10-29T15:00:24.000Z | 2022-03-20T06:53:34.000Z | qcodes_contrib_drivers/drivers/ZurichInstruments/__init__.py | ThorstenGroh/Qcodes_contrib_drivers | 97e05f8f5d8762953ee9db9bc461d0814eef657d | [
"MIT"
] | 3,406 | 2016-10-25T10:44:50.000Z | 2022-03-31T09:47:35.000Z | qcodes_contrib_drivers/drivers/ZurichInstruments/__init__.py | ThorstenGroh/Qcodes_contrib_drivers | 97e05f8f5d8762953ee9db9bc461d0814eef657d | [
"MIT"
] | 263 | 2016-10-25T11:35:36.000Z | 2022-03-31T08:53:20.000Z | # empty __init__ file
| 11 | 21 | 0.772727 | 3 | 22 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 22 | 1 | 22 | 22 | 0.722222 | 0.863636 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
96950fe4cbc4bd7a61ff83f0f9e281dc70ae5f4d | 2,113 | py | Python | notebook/pillow_rotate.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 174 | 2018-05-30T21:14:50.000Z | 2022-03-25T07:59:37.000Z | notebook/pillow_rotate.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 5 | 2019-08-10T03:22:02.000Z | 2021-07-12T20:31:17.000Z | notebook/pillow_rotate.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 53 | 2018-04-27T05:26:35.000Z | 2022-03-25T07:59:37.000Z | from PIL import Image
im = Image.open('data/src/lena.jpg')
# 
im_rotate = im.rotate(90)
im_rotate.save('data/dst/lena_rotate_90.jpg', quality=95)
# 
im_rotate = im.rotate(45)
im_rotate.save('data/dst/lena_rotate_45.jpg', quality=95)
# ![lena_... | 34.639344 | 90 | 0.789872 | 365 | 2,113 | 4.216438 | 0.084932 | 0.17154 | 0.187135 | 0.243015 | 0.933073 | 0.917479 | 0.74334 | 0.547758 | 0.355426 | 0.246264 | 0 | 0.06754 | 0.061051 | 2,113 | 60 | 91 | 35.216667 | 0.708165 | 0.361098 | 0 | 0 | 0 | 0 | 0.317128 | 0.304413 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 5 |
9699450b573a259666b90dbea5aa88838e30f09e | 76 | py | Python | server/app/services/tasks_scheduler/timer_tasks/app/device_count/__init__.py | goodfree/ActorCloud | e8db470830ea6f6f208ad43c2e56a2e8976bc468 | [
"Apache-2.0"
] | 173 | 2019-06-10T07:14:49.000Z | 2022-03-31T08:42:36.000Z | server/app/services/tasks_scheduler/timer_tasks/app/device_count/__init__.py | zlyz12345/ActorCloud | 9c34b371c23464981323ef9865d9913bde1fe09c | [
"Apache-2.0"
] | 27 | 2019-06-12T08:25:29.000Z | 2022-02-26T11:37:15.000Z | server/app/services/tasks_scheduler/timer_tasks/app/device_count/__init__.py | zlyz12345/ActorCloud | 9c34b371c23464981323ef9865d9913bde1fe09c | [
"Apache-2.0"
] | 67 | 2019-06-10T08:40:05.000Z | 2022-03-09T03:43:56.000Z | from .count_task import device_count_task
__all__ = ['device_count_task']
| 15.2 | 41 | 0.802632 | 11 | 76 | 4.727273 | 0.545455 | 0.519231 | 0.576923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118421 | 76 | 4 | 42 | 19 | 0.776119 | 0 | 0 | 0 | 0 | 0 | 0.223684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
96be8607822c16150cf5e728dfb5ba04640bee1e | 6,419 | py | Python | pyramid_cloudflare_access/tests/test_access.py | teamniteo/pyramid_cloudflare_access | 60326378b64e16c7839302b184ec5412a39ab7cc | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | pyramid_cloudflare_access/tests/test_access.py | teamniteo/pyramid_cloudflare_access | 60326378b64e16c7839302b184ec5412a39ab7cc | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | pyramid_cloudflare_access/tests/test_access.py | teamniteo/pyramid_cloudflare_access | 60326378b64e16c7839302b184ec5412a39ab7cc | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | """Tests for HerokuappAccess tween."""
from pyramid import testing
from pyramid.httpexceptions import HTTPBadRequest
from pyramid.httpexceptions import HTTPForbidden
from pyramid_cloudflare_access import CloudflareAccess
import pytest
# Taken from example at https://pyjwt.readthedocs.io/en/latest/usage.html#retrieve... | 66.864583 | 1,058 | 0.827387 | 366 | 6,419 | 14.319672 | 0.456284 | 0.032437 | 0.043885 | 0.010303 | 0.426255 | 0.315207 | 0.286587 | 0.278573 | 0.265598 | 0.265598 | 0 | 0.090782 | 0.107649 | 6,419 | 95 | 1,059 | 67.568421 | 0.824197 | 0.044555 | 0 | 0.513514 | 0 | 0.027027 | 0.685158 | 0.660448 | 0 | 1 | 0 | 0 | 0.013514 | 1 | 0.040541 | false | 0 | 0.067568 | 0 | 0.108108 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
96c312e68999533ed362eaa287fa966ce7efd08c | 100 | py | Python | enthought/naming/initial_context.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 3 | 2016-12-09T06:05:18.000Z | 2018-03-01T13:00:29.000Z | enthought/naming/initial_context.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 1 | 2020-12-02T00:51:32.000Z | 2020-12-02T08:48:55.000Z | enthought/naming/initial_context.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | null | null | null | # proxy module
from __future__ import absolute_import
from apptools.naming.initial_context import *
| 25 | 45 | 0.85 | 13 | 100 | 6.076923 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11 | 100 | 3 | 46 | 33.333333 | 0.88764 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
739130d3aa2c6c235c2f52f8955404ceabcfca40 | 71,937 | py | Python | bespin_api_v2/tests_api.py | Duke-GCB/bespin-api | cea5c20fb2ff592adabe6ebb7ca934939aa11a34 | [
"MIT"
] | null | null | null | bespin_api_v2/tests_api.py | Duke-GCB/bespin-api | cea5c20fb2ff592adabe6ebb7ca934939aa11a34 | [
"MIT"
] | 137 | 2016-12-09T18:59:45.000Z | 2021-06-10T18:55:47.000Z | bespin_api_v2/tests_api.py | Duke-GCB/bespin-api | cea5c20fb2ff592adabe6ebb7ca934939aa11a34 | [
"MIT"
] | 3 | 2017-11-14T16:05:58.000Z | 2018-12-28T18:07:43.000Z | import json
from django.core.urlresolvers import reverse
from rest_framework.test import APITestCase
from rest_framework import status
from data.tests_api import UserLogin
from data.models import Workflow, WorkflowVersion, WorkflowConfiguration, JobStrategy, ShareGroup, JobFlavor, \
JobSettings, CloudSettingsOpenSt... | 46.44093 | 132 | 0.630093 | 8,055 | 71,937 | 5.396276 | 0.055121 | 0.091449 | 0.082016 | 0.052707 | 0.825293 | 0.796351 | 0.749672 | 0.711183 | 0.671958 | 0.657717 | 0 | 0.014304 | 0.24976 | 71,937 | 1,548 | 133 | 46.47093 | 0.791088 | 0.010537 | 0 | 0.625561 | 0 | 0.001495 | 0.12481 | 0.03331 | 0 | 0 | 0 | 0 | 0.207025 | 1 | 0.098655 | false | 0.005232 | 0.006726 | 0.007474 | 0.14275 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
73a1d2f4ffcf7af0327fbc1f6631bf883ed73f15 | 41 | py | Python | jdaviz/configs/imviz/plugins/aper_phot_simple/__init__.py | check-spelling/jdaviz | bfd0514d13bdc6fa0b8c8536a603293409270337 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | jdaviz/configs/imviz/plugins/aper_phot_simple/__init__.py | check-spelling/jdaviz | bfd0514d13bdc6fa0b8c8536a603293409270337 | [
"MIT",
"BSD-3-Clause"
] | 3 | 2021-05-06T13:03:37.000Z | 2021-12-02T14:51:48.000Z | jdaviz/configs/imviz/plugins/aper_phot_simple/__init__.py | rosteen/jdaviz | e02c08d68ef71c5e40600785f46e65e5ae95e236 | [
"MIT",
"BSD-3-Clause"
] | 1 | 2021-12-27T04:24:34.000Z | 2021-12-27T04:24:34.000Z | from .aper_phot_simple import * # noqa
| 20.5 | 40 | 0.731707 | 6 | 41 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195122 | 41 | 1 | 41 | 41 | 0.848485 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
73ea4e79965a64bc102b770bbf73639264ee1381 | 50 | py | Python | tests/scripts/t3/t3.py | ShixiangWang/loon | 288cf3ce032fe153fb65549f7ed0d3045be6207a | [
"MIT"
] | 4 | 2019-10-02T18:32:06.000Z | 2020-08-04T15:30:38.000Z | tests/scripts/t3/t3.py | jianguozhouzunyimedicaluniversity/loon | ac5d6ded168f0fb90eaac2adfb611bca7229728b | [
"MIT"
] | 22 | 2019-09-29T00:31:00.000Z | 2021-08-03T08:33:55.000Z | tests/scripts/t3/t3.py | jianguozhouzunyimedicaluniversity/loon | ac5d6ded168f0fb90eaac2adfb611bca7229728b | [
"MIT"
] | 3 | 2020-04-26T13:06:23.000Z | 2020-09-26T16:08:49.000Z | #!/usr/bin/env python
print('This is t3 script.')
| 16.666667 | 27 | 0.68 | 9 | 50 | 3.777778 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.12 | 50 | 2 | 28 | 25 | 0.75 | 0.4 | 0 | 0 | 0 | 0 | 0.62069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 5 |
fb415dfd0b9d219adc4392dfd58c4f93714f2a63 | 254 | py | Python | pokelist/models.py | gerbot150/pokelist-backend | 8228660447ed15c9ea5126e9ab61d1d57bd5adaf | [
"MIT"
] | null | null | null | pokelist/models.py | gerbot150/pokelist-backend | 8228660447ed15c9ea5126e9ab61d1d57bd5adaf | [
"MIT"
] | null | null | null | pokelist/models.py | gerbot150/pokelist-backend | 8228660447ed15c9ea5126e9ab61d1d57bd5adaf | [
"MIT"
] | null | null | null | from django.db import models
class Pokemon(models.Model):
pokemon_id = models.IntegerField()
name = models.CharField(max_length=200)
location_area_encounters = models.CharField(max_length=200)
def __str__(self):
return self.name
| 28.222222 | 63 | 0.73622 | 33 | 254 | 5.393939 | 0.666667 | 0.168539 | 0.202247 | 0.269663 | 0.303371 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.173228 | 254 | 8 | 64 | 31.75 | 0.819048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 1 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 5 |
fb6bc36cb785f1b0ed8fab973f6ab17705071c78 | 102 | py | Python | insomniac/extra_features/session.py | chikko80/Insomniac | 2d49a6d4e5a15eb63bddd9aace3cc872cf40b01a | [
"MIT"
] | null | null | null | insomniac/extra_features/session.py | chikko80/Insomniac | 2d49a6d4e5a15eb63bddd9aace3cc872cf40b01a | [
"MIT"
] | null | null | null | insomniac/extra_features/session.py | chikko80/Insomniac | 2d49a6d4e5a15eb63bddd9aace3cc872cf40b01a | [
"MIT"
] | null | null | null | from insomniac import activation_controller
exec(activation_controller.get_extra_feature("session"))
| 25.5 | 56 | 0.872549 | 12 | 102 | 7.083333 | 0.833333 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 102 | 3 | 57 | 34 | 0.885417 | 0 | 0 | 0 | 0 | 0 | 0.068627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
fb775d7242c0bab3903b0b3796f0f0553f191745 | 317 | py | Python | concat/tests/level0/test_execute.py | jmanuel1/concat | b8a982f0b07c4af4a8d30c8fab927a07a4068232 | [
"MIT"
] | 5 | 2020-11-27T23:34:29.000Z | 2022-03-08T16:37:19.000Z | concat/tests/level0/test_execute.py | jmanuel1/concat | b8a982f0b07c4af4a8d30c8fab927a07a4068232 | [
"MIT"
] | 1 | 2020-06-03T22:43:36.000Z | 2020-06-03T22:45:42.000Z | concat/tests/level0/test_execute.py | jmanuel1/concat | b8a982f0b07c4af4a8d30c8fab927a07a4068232 | [
"MIT"
] | null | null | null | import concat.level0.execute
import unittest
import ast
class TestExecute(unittest.TestCase):
def setUp(self) -> None:
pass
def test_execute_function(self) -> None:
module = ast.Module(body=[])
concat.level0.execute.execute('<test>', module, {})
# we passed if we get here
| 21.133333 | 59 | 0.649842 | 39 | 317 | 5.230769 | 0.589744 | 0.117647 | 0.186275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00823 | 0.233438 | 317 | 14 | 60 | 22.642857 | 0.831276 | 0.07571 | 0 | 0 | 0 | 0 | 0.020619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.111111 | 0.333333 | 0 | 0.666667 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 5 |
837f889a8aa5371d5470ab3a972975d7e5fc79d4 | 8,318 | py | Python | tests/test_sentinel.py | AznStevy/heart_rate_sentinel_server | e241ee705221be643a3c3773a2e5ed9c129c733f | [
"MIT"
] | null | null | null | tests/test_sentinel.py | AznStevy/heart_rate_sentinel_server | e241ee705221be643a3c3773a2e5ed9c129c733f | [
"MIT"
] | 4 | 2018-11-13T20:44:50.000Z | 2018-11-16T19:47:09.000Z | tests/test_sentinel.py | AznStevy/heart_rate_sentinel_server | e241ee705221be643a3c3773a2e5ed9c129c733f | [
"MIT"
] | null | null | null | import json
import pytest
import datetime
from random import choice
from string import ascii_uppercase
from heart_rate_sentinel_server import get_app
def _new_patient_id():
return ''.join(choice(ascii_uppercase) for _ in range(10))
@pytest.fixture()
def flask_app():
app = get_app()
return app
@pytest.... | 29.496454 | 80 | 0.686944 | 1,210 | 8,318 | 4.344628 | 0.080165 | 0.104622 | 0.069241 | 0.041088 | 0.834887 | 0.781434 | 0.766216 | 0.749096 | 0.698687 | 0.656839 | 0 | 0.025011 | 0.182856 | 8,318 | 281 | 81 | 29.601423 | 0.748418 | 0.001443 | 0 | 0.588496 | 0 | 0 | 0.162693 | 0.020472 | 0 | 0 | 0 | 0 | 0.084071 | 1 | 0.110619 | false | 0 | 0.044248 | 0.004425 | 0.181416 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
838d986e4c58e05d15e8b8a41e63b51318c126c5 | 56 | py | Python | Examples/Python/Example_1.py | TotteKarlsson/dsl | 3807cbe5f90a3cd495979eafa8cf5485367b634c | [
"BSD-2-Clause"
] | null | null | null | Examples/Python/Example_1.py | TotteKarlsson/dsl | 3807cbe5f90a3cd495979eafa8cf5485367b634c | [
"BSD-2-Clause"
] | null | null | null | Examples/Python/Example_1.py | TotteKarlsson/dsl | 3807cbe5f90a3cd495979eafa8cf5485367b634c | [
"BSD-2-Clause"
] | null | null | null | import dsl
print ("API Version: " + dsl.getVersion())
| 11.2 | 42 | 0.660714 | 7 | 56 | 5.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 56 | 4 | 43 | 14 | 0.804348 | 0 | 0 | 0 | 0 | 0 | 0.236364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 5 |
839c3ae37e6ff5fadd7f9f1ae17ef5af4296033d | 87 | py | Python | Tareas/ejercicio1.py | pelahumi/calentamiento | a7d602bde16bec4952fd6ea5b346cd0e2feb5a2c | [
"Apache-2.0"
] | null | null | null | Tareas/ejercicio1.py | pelahumi/calentamiento | a7d602bde16bec4952fd6ea5b346cd0e2feb5a2c | [
"Apache-2.0"
] | null | null | null | Tareas/ejercicio1.py | pelahumi/calentamiento | a7d602bde16bec4952fd6ea5b346cd0e2feb5a2c | [
"Apache-2.0"
] | null | null | null |
print("Roses are #ff0000 Violets are #0000ff why my code´s working I haven´t a clue")
| 29 | 85 | 0.735632 | 19 | 87 | 3.473684 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.172414 | 87 | 2 | 86 | 43.5 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.883721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 5 |
83d86b932b831dd3c324c2839e41edba99c9a082 | 60 | py | Python | src/metrics/__init__.py | kzajac97/frequency-neural-networks | 39ddea64d0654559dfe976e974fa369480f75caf | [
"MIT"
] | null | null | null | src/metrics/__init__.py | kzajac97/frequency-neural-networks | 39ddea64d0654559dfe976e974fa369480f75caf | [
"MIT"
] | null | null | null | src/metrics/__init__.py | kzajac97/frequency-neural-networks | 39ddea64d0654559dfe976e974fa369480f75caf | [
"MIT"
] | null | null | null | from .regression import regression_report, regression_score
| 30 | 59 | 0.883333 | 7 | 60 | 7.285714 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 60 | 1 | 60 | 60 | 0.927273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
83e082d0dbcd405ec2a069c41cf3e7b3448b254b | 1,269 | py | Python | config/PixelConfig.py | MOrgacki/MMORPG-Bot | 3ac418913044f35f2f872cf1d071fbba20ef6603 | [
"MIT"
] | null | null | null | config/PixelConfig.py | MOrgacki/MMORPG-Bot | 3ac418913044f35f2f872cf1d071fbba20ef6603 | [
"MIT"
] | 1 | 2021-10-12T18:59:12.000Z | 2021-10-12T18:59:12.000Z | config/PixelConfig.py | MOrgacki/MMORPG-Bot | 3ac418913044f35f2f872cf1d071fbba20ef6603 | [
"MIT"
] | null | null | null |
from config.Config import Config
class PixelConfig(Config):
"""Class contains bunch of getters to specific PIXEL location"""
@property
def get_attack(self):
return self.get_property('attack')
@property
def get_chase(self):
return self.get_property('chase')
@property
de... | 22.660714 | 68 | 0.677699 | 163 | 1,269 | 4.969325 | 0.220859 | 0.162963 | 0.207407 | 0.251852 | 0.530864 | 0.287654 | 0.149383 | 0.106173 | 0 | 0 | 0 | 0 | 0.229314 | 1,269 | 55 | 69 | 23.072727 | 0.828221 | 0.045705 | 0 | 0.315789 | 0 | 0 | 0.111388 | 0.041563 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0.026316 | 0.315789 | 0.684211 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
83f3c2f7489c065c41d2862a8ac36c396984f97b | 10,782 | py | Python | test/test_lsh_cassandra.py | researcher2/datasketch | c56c633c2b9eeef3a0706ee83bdc9d2b38d0eb47 | [
"MIT"
] | null | null | null | test/test_lsh_cassandra.py | researcher2/datasketch | c56c633c2b9eeef3a0706ee83bdc9d2b38d0eb47 | [
"MIT"
] | null | null | null | test/test_lsh_cassandra.py | researcher2/datasketch | c56c633c2b9eeef3a0706ee83bdc9d2b38d0eb47 | [
"MIT"
] | null | null | null | import unittest
import os
import numpy as np
import pickle
from multiprocessing import Pool, TimeoutError
import time
from datasketch.lsh import MinHashLSH
from datasketch.minhash import MinHash
from datasketch.weighted_minhash import WeightedMinHashGenerator
STORAGE_CONFIG_CASSANDRA = {
'basename': b'test',
'... | 38.370107 | 99 | 0.613615 | 1,402 | 10,782 | 4.542083 | 0.112696 | 0.089824 | 0.055276 | 0.061244 | 0.775754 | 0.758794 | 0.758794 | 0.737594 | 0.737594 | 0.729271 | 0 | 0.036702 | 0.262104 | 10,782 | 280 | 100 | 38.507143 | 0.7637 | 0.015489 | 0 | 0.6625 | 0 | 0 | 0.071361 | 0.023503 | 0 | 0 | 0 | 0 | 0.191667 | 1 | 0.0625 | false | 0 | 0.0375 | 0 | 0.1125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
f766e0e63f77f6d33944033364b887b207981671 | 64 | py | Python | outlookdisablespamfilter/__init__.py | jan-janssen/outlook-disable-spam-filter | 264f5fb650408abbfa5736f33ae098aefc0e7fac | [
"BSD-3-Clause"
] | null | null | null | outlookdisablespamfilter/__init__.py | jan-janssen/outlook-disable-spam-filter | 264f5fb650408abbfa5736f33ae098aefc0e7fac | [
"BSD-3-Clause"
] | null | null | null | outlookdisablespamfilter/__init__.py | jan-janssen/outlook-disable-spam-filter | 264f5fb650408abbfa5736f33ae098aefc0e7fac | [
"BSD-3-Clause"
] | null | null | null | from outlookdisablespamfilter.shared import transfer_spam_emails | 64 | 64 | 0.9375 | 7 | 64 | 8.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046875 | 64 | 1 | 64 | 64 | 0.95082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
f76cf5fdc8b65714f0db11d40e2a60b62cc19363 | 6,798 | py | Python | tests/test_template_fetcher.py | oazmon/sceptre-template-fetcher | ff40fea4dcdb7b785b90b70426758475a8d09634 | [
"Apache-2.0"
] | null | null | null | tests/test_template_fetcher.py | oazmon/sceptre-template-fetcher | ff40fea4dcdb7b785b90b70426758475a8d09634 | [
"Apache-2.0"
] | null | null | null | tests/test_template_fetcher.py | oazmon/sceptre-template-fetcher | ff40fea4dcdb7b785b90b70426758475a8d09634 | [
"Apache-2.0"
] | null | null | null |
from mock import patch
import pytest
import yaml
# When switch to new version change EnvironmentPathNotFoundError to:
# from sceptre.exceptions import InvalidSceptreDirectoryError
from sceptre.exceptions import EnvironmentPathNotFoundError
from sceptre_template_fetcher.template_fetcher import TemplateFetcher
class... | 39.754386 | 71 | 0.684319 | 792 | 6,798 | 5.498737 | 0.111111 | 0.179104 | 0.077153 | 0.123995 | 0.779104 | 0.760276 | 0.75729 | 0.742824 | 0.730654 | 0.702181 | 0 | 0.000753 | 0.218447 | 6,798 | 170 | 72 | 39.988235 | 0.818935 | 0.018535 | 0 | 0.57047 | 0 | 0 | 0.257798 | 0.196611 | 0 | 0 | 0 | 0 | 0.127517 | 1 | 0.087248 | false | 0 | 0.161074 | 0.006711 | 0.268456 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
f76da8cf5400cbdee6d5577c738c25bec19fa7d6 | 45 | py | Python | tests/__init__.py | saeedesmaili/twitter-blocker | 0a58bcd0a483c54ef1a274804bb80fa132839834 | [
"MIT"
] | null | null | null | tests/__init__.py | saeedesmaili/twitter-blocker | 0a58bcd0a483c54ef1a274804bb80fa132839834 | [
"MIT"
] | null | null | null | tests/__init__.py | saeedesmaili/twitter-blocker | 0a58bcd0a483c54ef1a274804bb80fa132839834 | [
"MIT"
] | null | null | null | """Unit test package for twitter_blocker."""
| 22.5 | 44 | 0.733333 | 6 | 45 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 45 | 1 | 45 | 45 | 0.8 | 0.844444 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
e3f303c59954e7bec5cf6fa62b4f49925de56d80 | 141 | py | Python | Ekeopara_Praise/Phase 2/LIST/Day44 Tasks/Task4.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 6 | 2020-05-23T19:53:25.000Z | 2021-05-08T20:21:30.000Z | Ekeopara_Praise/Phase 2/LIST/Day44 Tasks/Task4.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 8 | 2020-05-14T18:53:12.000Z | 2020-07-03T00:06:20.000Z | Ekeopara_Praise/Phase 2/LIST/Day44 Tasks/Task4.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 39 | 2020-05-10T20:55:02.000Z | 2020-09-12T17:40:59.000Z | '''4. Write a Python program to concatenate elements of a list. '''
num = ['1', '2', '3', '4', '5']
print('-'.join(num))
print(''.join(num)) | 28.2 | 67 | 0.567376 | 23 | 141 | 3.478261 | 0.73913 | 0.225 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.148936 | 141 | 5 | 68 | 28.2 | 0.616667 | 0.425532 | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 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 | 1 | 0 | 5 |
541d7b4e725c73aa7223417d3b326c524923b4c4 | 39 | py | Python | talking_assist/__init__.py | shubhamjainjnsb/talking_assist | 42acb4d5d41c4edee15fcb8fe81c365ab65ed76f | [
"MIT"
] | null | null | null | talking_assist/__init__.py | shubhamjainjnsb/talking_assist | 42acb4d5d41c4edee15fcb8fe81c365ab65ed76f | [
"MIT"
] | null | null | null | talking_assist/__init__.py | shubhamjainjnsb/talking_assist | 42acb4d5d41c4edee15fcb8fe81c365ab65ed76f | [
"MIT"
] | null | null | null | #The file to initialise the other files | 39 | 39 | 0.820513 | 7 | 39 | 4.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 39 | 1 | 39 | 39 | 0.969697 | 0.974359 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
580ad5a07c09c1b65a33d8cb9e7cf5166c76c6ab | 55 | py | Python | code/utils/__init__.py | yatharthahuja/unsupervised-homography-estimation | 6b5c7b1ad56418783351874a75521e94c2c84ce0 | [
"MIT"
] | null | null | null | code/utils/__init__.py | yatharthahuja/unsupervised-homography-estimation | 6b5c7b1ad56418783351874a75521e94c2c84ce0 | [
"MIT"
] | null | null | null | code/utils/__init__.py | yatharthahuja/unsupervised-homography-estimation | 6b5c7b1ad56418783351874a75521e94c2c84ce0 | [
"MIT"
] | null | null | null | from .utils import *
from .RANSAC_homography import *
| 18.333333 | 32 | 0.763636 | 7 | 55 | 5.857143 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163636 | 55 | 2 | 33 | 27.5 | 0.891304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
583bd45e040c331c7cb24ec42ba85048e87e6404 | 223 | py | Python | tests/builtins/test_callable.py | akubera/batavia | b56f2a3f54242f81aea3a5a048356a03f0d49494 | [
"BSD-3-Clause"
] | 1,256 | 2015-08-09T07:44:02.000Z | 2019-03-27T05:41:24.000Z | tests/builtins/test_callable.py | akubera/batavia | b56f2a3f54242f81aea3a5a048356a03f0d49494 | [
"BSD-3-Clause"
] | 406 | 2015-08-12T03:40:29.000Z | 2019-02-25T19:26:02.000Z | tests/builtins/test_callable.py | akubera/batavia | b56f2a3f54242f81aea3a5a048356a03f0d49494 | [
"BSD-3-Clause"
] | 589 | 2015-08-10T03:27:31.000Z | 2019-03-10T20:58:07.000Z | from .. utils import TranspileTestCase, BuiltinFunctionTestCase
class CallableTests(TranspileTestCase):
pass
class BuiltinCallableFunctionTests(BuiltinFunctionTestCase, TranspileTestCase):
function = "callable"
| 22.3 | 79 | 0.820628 | 15 | 223 | 12.2 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121076 | 223 | 9 | 80 | 24.777778 | 0.933673 | 0 | 0 | 0 | 0 | 0 | 0.035874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.2 | 0 | 0.8 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 5 |
58779bc0f374bf2023edd7f40daaf9147c8b4b2e | 2,401 | py | Python | readConfig.py | DongDong-123/zgg_SmartSystem | 9bf30a53b31972e104264af8bc248bae378f78df | [
"Apache-2.0"
] | null | null | null | readConfig.py | DongDong-123/zgg_SmartSystem | 9bf30a53b31972e104264af8bc248bae378f78df | [
"Apache-2.0"
] | null | null | null | readConfig.py | DongDong-123/zgg_SmartSystem | 9bf30a53b31972e104264af8bc248bae378f78df | [
"Apache-2.0"
] | null | null | null | import configparser
import os
curPath = os.path.dirname(os.path.realpath(__file__))
cfgPath = os.path.join(curPath, "config.ini")
class ReadConfig:
def __init__(self):
self.cfg = configparser.ConfigParser()
self.cfg.read(cfgPath, encoding='utf-8')
def get_user(self):
return self.cfg.... | 28.247059 | 124 | 0.630987 | 349 | 2,401 | 4.080229 | 0.17765 | 0.13764 | 0.168539 | 0.191011 | 0.523876 | 0.509831 | 0.255618 | 0.200843 | 0.162921 | 0.109551 | 0 | 0.020138 | 0.214077 | 2,401 | 85 | 125 | 28.247059 | 0.734499 | 0 | 0 | 0.166667 | 0 | 0 | 0.137386 | 0.009575 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.116667 | 0.033333 | 0.283333 | 0.7 | 0.033333 | 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 | 1 | 0 | 1 | 1 | 0 | 0 | 5 |
5894f7eed1f1c5e893aa0317c813d0e4bcc600bf | 208 | py | Python | app/defaults/AB_Test/get_reward.py | bartfrenk/streamingbandit | 4237a05b439c2c12912e813f0b76ccf8af382aef | [
"MIT"
] | 64 | 2017-05-21T06:08:57.000Z | 2022-01-25T14:44:54.000Z | app/defaults/AB_Test/get_reward.py | bartfrenk/streamingbandit | 4237a05b439c2c12912e813f0b76ccf8af382aef | [
"MIT"
] | 76 | 2017-05-04T10:30:59.000Z | 2020-05-07T06:43:03.000Z | app/defaults/AB_Test/get_reward.py | bartfrenk/streamingbandit | 4237a05b439c2c12912e813f0b76ccf8af382aef | [
"MIT"
] | 12 | 2017-05-04T13:10:23.000Z | 2020-02-22T17:12:49.000Z | # Generate random rewards for each treatment
if self.action["treatment"] == "1":
self.reward["value"] = np.random.binomial(1,0.5)
else: #Treatment = 2
self.reward["value"] = np.random.binomial(1,0.3)
| 34.666667 | 52 | 0.677885 | 32 | 208 | 4.40625 | 0.59375 | 0.141844 | 0.212766 | 0.241135 | 0.468085 | 0.468085 | 0.468085 | 0.468085 | 0 | 0 | 0 | 0.044693 | 0.139423 | 208 | 5 | 53 | 41.6 | 0.743017 | 0.264423 | 0 | 0 | 1 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
58a3864a67a2dcba7dc7a6529a33b0cf60ad1e67 | 207 | py | Python | spikesorters/__init__.py | manimoh/spikesorters | b5ea81a316f6caeacf5be587561804ef99807d76 | [
"MIT"
] | 22 | 2019-06-27T08:49:20.000Z | 2022-03-21T00:49:09.000Z | spikesorters/__init__.py | manimoh/spikesorters | b5ea81a316f6caeacf5be587561804ef99807d76 | [
"MIT"
] | 171 | 2019-06-27T06:56:25.000Z | 2021-07-23T13:24:59.000Z | spikesorters/__init__.py | manimoh/spikesorters | b5ea81a316f6caeacf5be587561804ef99807d76 | [
"MIT"
] | 26 | 2019-06-26T17:41:39.000Z | 2022-03-21T00:49:12.000Z | from .sorterlist import *
from .version import version as __version__
from .basesorter import BaseSorter
from .launcher import run_sorters, collect_sorting_outputs, iter_output_folders, iter_sorting_output
| 34.5 | 100 | 0.855072 | 27 | 207 | 6.148148 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10628 | 207 | 5 | 101 | 41.4 | 0.897297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
5435b1293210bd8b9d43b774e38e8248597cf4b0 | 12,700 | py | Python | model/baseline.py | tianqi-wang1996/Airsim_imitation-reinforcement-learning | d2b355309573d4cbe3e2e75512760d97fb261c82 | [
"MIT"
] | 1 | 2020-09-17T14:13:15.000Z | 2020-09-17T14:13:15.000Z | model/baseline.py | familywei/Airsim_imitation-reinforcement-learning | d2b355309573d4cbe3e2e75512760d97fb261c82 | [
"MIT"
] | null | null | null | model/baseline.py | familywei/Airsim_imitation-reinforcement-learning | d2b355309573d4cbe3e2e75512760d97fb261c82 | [
"MIT"
] | 6 | 2020-11-27T09:56:11.000Z | 2021-09-26T02:57:27.000Z | import torch
import torch.nn as nn
import numpy as np
# minimum component block for ResNet34
# flag input--'downsample' to determine whether downsampling will be done in this block
class BottleNeck(nn.Module):
def __init__(self, in_channels, out_channels, downsample=False):
super().__init__()
# su... | 32.731959 | 124 | 0.507795 | 1,628 | 12,700 | 3.853194 | 0.111179 | 0.072533 | 0.078431 | 0.043998 | 0.7934 | 0.728519 | 0.717201 | 0.7011 | 0.684043 | 0.661725 | 0 | 0.104768 | 0.380709 | 12,700 | 388 | 125 | 32.731959 | 0.692816 | 0.102047 | 0 | 0.833898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033898 | false | 0 | 0.010169 | 0 | 0.077966 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
545b50e6909764e7f35d20d488b9b531c17f658a | 1,832 | py | Python | src/scrapers/base_scraper.py | at1as/IMDB-Scrape | 38c8c92f0f73fb8d9c86369036841ea7d9697520 | [
"MIT"
] | 2 | 2016-02-23T18:42:23.000Z | 2017-06-22T22:34:21.000Z | src/scrapers/base_scraper.py | at1as/IMDB-Scrape | 38c8c92f0f73fb8d9c86369036841ea7d9697520 | [
"MIT"
] | 1 | 2019-01-18T03:05:38.000Z | 2019-01-18T03:05:38.000Z | src/scrapers/base_scraper.py | at1as/Media-Database | 38c8c92f0f73fb8d9c86369036841ea7d9697520 | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod
class BaseScraper(object):
__metaclass__ = ABCMeta
def __init__(self):
pass
@abstractmethod
def construct_search_url(self, title):
raise NotImplementedError
@abstractmethod
def get_title(self, xml_doc):
raise NotImplementedError
@abstractmetho... | 21.552941 | 61 | 0.75 | 197 | 1,832 | 6.700508 | 0.213198 | 0.244697 | 0.518182 | 0.559091 | 0.760606 | 0.727273 | 0.684848 | 0.684848 | 0.357576 | 0 | 0 | 0 | 0.191594 | 1,832 | 84 | 62 | 21.809524 | 0.89129 | 0 | 0 | 0.612903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.322581 | false | 0.016129 | 0.016129 | 0 | 0.370968 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
546c8f3d389cc9633709a828627d31c31985719e | 19 | py | Python | vex/_version.py | jobevers/vex | b7680c40897b8cbe6aae55ec9812b4fb11738192 | [
"MIT"
] | 1 | 2018-03-08T10:32:15.000Z | 2018-03-08T10:32:15.000Z | vex/_version.py | jobevers/vex | b7680c40897b8cbe6aae55ec9812b4fb11738192 | [
"MIT"
] | null | null | null | vex/_version.py | jobevers/vex | b7680c40897b8cbe6aae55ec9812b4fb11738192 | [
"MIT"
] | 1 | 2020-12-18T09:05:34.000Z | 2020-12-18T09:05:34.000Z | VERSION = "0.0.18"
| 9.5 | 18 | 0.578947 | 4 | 19 | 2.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0.157895 | 19 | 1 | 19 | 19 | 0.4375 | 0 | 0 | 0 | 0 | 0 | 0.315789 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
54a04eb3fb4f7da6ba692b62ecd20602c238ff44 | 56 | py | Python | 6 kyu/Count the divisible numbers.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 6 | 2020-09-03T09:32:25.000Z | 2020-12-07T04:10:01.000Z | 6 kyu/Count the divisible numbers.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 1 | 2021-12-13T15:30:21.000Z | 2021-12-13T15:30:21.000Z | 6 kyu/Count the divisible numbers.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | null | null | null | def divisible_count(x,y,k):
return (k*(y//k+1)-x)//k | 28 | 28 | 0.589286 | 13 | 56 | 2.461538 | 0.615385 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.125 | 56 | 2 | 28 | 28 | 0.632653 | 0 | 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 | 1 | 0 | 0 | 5 |
b73d65cd205e0320beb43bee65d3d364f80aed64 | 82 | py | Python | EIDEGraphics/EIDEUser.py | Vicente-Francisco/EIDEGraphics | 8e61bf64f4644a2e80df00946271f8cba4b5e65e | [
"Unlicense"
] | 2 | 2022-02-09T08:06:13.000Z | 2022-03-18T07:30:19.000Z | EIDEGraphics/EIDEUser.py | Vicente-Francisco/EIDEGraphics | 8e61bf64f4644a2e80df00946271f8cba4b5e65e | [
"Unlicense"
] | null | null | null | EIDEGraphics/EIDEUser.py | Vicente-Francisco/EIDEGraphics | 8e61bf64f4644a2e80df00946271f8cba4b5e65e | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Test script. Emulates user script.
"""
import EIDE
| 9.111111 | 34 | 0.585366 | 10 | 82 | 4.8 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.207317 | 82 | 8 | 35 | 10.25 | 0.723077 | 0.695122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
3f9c490770ac6be555913e9a07f362225aad6b86 | 34,214 | py | Python | release/stubs.min/System/__init___parts/DateTime.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 182 | 2017-06-27T02:26:15.000Z | 2022-03-30T18:53:43.000Z | release/stubs.min/System/__init___parts/DateTime.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 28 | 2017-06-27T13:38:23.000Z | 2022-03-15T11:19:44.000Z | release/stubs.min/System/__init___parts/DateTime.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 67 | 2017-06-28T09:43:59.000Z | 2022-03-20T21:17:10.000Z | class DateTime(object,IComparable,IFormattable,IConvertible,ISerializable,IComparable[DateTime],IEquatable[DateTime]):
"""
Represents an instant in time,typically expressed as a date and time of day.
DateTime(ticks: Int64)
DateTime(ticks: Int64,kind: DateTimeKind)
DateTime(year: int,month: int,day:... | 25.046852 | 215 | 0.697697 | 4,608 | 34,214 | 5.138021 | 0.076389 | 0.046714 | 0.028341 | 0.014783 | 0.765205 | 0.718196 | 0.690615 | 0.672622 | 0.654587 | 0.623374 | 0 | 0.002875 | 0.237505 | 34,214 | 1,365 | 216 | 25.065201 | 0.904669 | 0.772023 | 0 | 0.478873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.387324 | false | 0.387324 | 0 | 0 | 0.521127 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 5 |
3fb301e022862b3369bedfe09d206e1a8487687f | 204 | py | Python | visdets/utils.py | eqs/visdets | b88f474a2eb6207c3338185eeeaa77658ba2d43a | [
"MIT"
] | null | null | null | visdets/utils.py | eqs/visdets | b88f474a2eb6207c3338185eeeaa77658ba2d43a | [
"MIT"
] | 4 | 2020-03-31T00:56:55.000Z | 2020-04-28T01:18:15.000Z | visdets/utils.py | eqs/visdets | b88f474a2eb6207c3338185eeeaa77658ba2d43a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import numpy as np
import torch
__all__ = ['tensor2cvmat']
def tensor2cvmat(image: torch.Tensor) -> np.ndarray:
return np.uint8(image.permute(1, 2, 0).numpy() * 255).copy()
| 20.4 | 64 | 0.661765 | 29 | 204 | 4.517241 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05814 | 0.156863 | 204 | 9 | 65 | 22.666667 | 0.703488 | 0.102941 | 0 | 0 | 0 | 0 | 0.066298 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 5 |
3fc758fb1ffea7b007e0276f1a95b17d80766134 | 183 | py | Python | Inheritance/Exercises/03. players_and_monsters/project/soul_master.py | geodimitrov/PythonOOP_SoftUni | f1c6718c878b618b3ab3f174cd4d187bd178940b | [
"MIT"
] | 1 | 2021-06-30T11:53:44.000Z | 2021-06-30T11:53:44.000Z | Inheritance/Exercises/03. players_and_monsters/project/soul_master.py | geodimitrov/PythonOOP_SoftUni | f1c6718c878b618b3ab3f174cd4d187bd178940b | [
"MIT"
] | null | null | null | Inheritance/Exercises/03. players_and_monsters/project/soul_master.py | geodimitrov/PythonOOP_SoftUni | f1c6718c878b618b3ab3f174cd4d187bd178940b | [
"MIT"
] | null | null | null | from project.dark_wizard import DarkWizard
class SoulMaster(DarkWizard):
def __repr__(self):
return f"{self.username} of type {SoulMaster.__name__} has level {self.level}" | 45.75 | 86 | 0.754098 | 24 | 183 | 5.375 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147541 | 183 | 4 | 86 | 45.75 | 0.826923 | 0 | 0 | 0 | 0 | 0 | 0.369565 | 0.11413 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
3fd96d75249273dcd4302e3253f4e0c8ce4c6f05 | 102 | py | Python | tests/frontend/pages/base.py | zaibon/js-sdk | cd1d26f2c3343884c1927ceef7c1e12e3f7da905 | [
"Apache-2.0"
] | null | null | null | tests/frontend/pages/base.py | zaibon/js-sdk | cd1d26f2c3343884c1927ceef7c1e12e3f7da905 | [
"Apache-2.0"
] | null | null | null | tests/frontend/pages/base.py | zaibon/js-sdk | cd1d26f2c3343884c1927ceef7c1e12e3f7da905 | [
"Apache-2.0"
] | null | null | null | class Base:
base_url = "https://localhost"
def __init__(self, *args, **kwargs):
pass
| 17 | 40 | 0.588235 | 12 | 102 | 4.583333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.264706 | 102 | 5 | 41 | 20.4 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 5 |
3fe2c2a773a6c9641c676325a91876e4ecac8171 | 135 | py | Python | novelsave/services/source/__init__.py | mHaisham/novelsave | 011b6c5d705591783aee64662bc88b207bdc7205 | [
"Apache-2.0"
] | 15 | 2020-11-05T10:05:01.000Z | 2021-06-28T14:43:56.000Z | novelsave/services/source/__init__.py | mHaisham/novelsave | 011b6c5d705591783aee64662bc88b207bdc7205 | [
"Apache-2.0"
] | 21 | 2020-11-01T04:36:56.000Z | 2021-08-16T09:36:48.000Z | novelsave/services/source/__init__.py | mHaisham/novelsave | 011b6c5d705591783aee64662bc88b207bdc7205 | [
"Apache-2.0"
] | null | null | null | from .source_gateway import SourceGateway
from .meta_source_gateway import MetaSourceGateway
from .source_service import SourceService
| 33.75 | 50 | 0.888889 | 16 | 135 | 7.25 | 0.5625 | 0.172414 | 0.327586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 135 | 3 | 51 | 45 | 0.943089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
3ff65619d3ad1dc072f4b9f3b5749231abd4c257 | 6,548 | py | Python | pricing/vanilla/integration.py | Simbold/PyFinQ | c8be876ba7977fac1578ef788f51c2c9e7cb7d4c | [
"CC0-1.0"
] | 2 | 2020-08-23T19:03:49.000Z | 2022-01-01T04:54:03.000Z | pricing/vanilla/integration.py | Simbold/PyFinQ | c8be876ba7977fac1578ef788f51c2c9e7cb7d4c | [
"CC0-1.0"
] | null | null | null | pricing/vanilla/integration.py | Simbold/PyFinQ | c8be876ba7977fac1578ef788f51c2c9e7cb7d4c | [
"CC0-1.0"
] | null | null | null | import numpy as np
from scipy import stats, integrate
from integration_functions import laplace_transform_vanilla, heston_characteristic_function, \
black_scholes_characteristic_function
def closed_form_bs_eu(spot, strike, r, sigma, mt, option_type="call", t=0):
# spot: underlying spot price
# strike: str... | 41.18239 | 179 | 0.609499 | 970 | 6,548 | 4.006186 | 0.164948 | 0.051467 | 0.028821 | 0.02702 | 0.799022 | 0.745754 | 0.741637 | 0.72877 | 0.719763 | 0.719763 | 0 | 0.021268 | 0.217318 | 6,548 | 158 | 180 | 41.443038 | 0.736976 | 0.421961 | 0 | 0.652778 | 0 | 0 | 0.063322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.041667 | 0.041667 | 0.305556 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
b74a30acfc3eb4685511d05881195e41bb9eb82b | 1,647 | py | Python | x/client/readers.py | qwasa-net/pyllyllyll | 401c7339953cfc9d5c0f79784fe1a1bf90049e9d | [
"MIT"
] | null | null | null | x/client/readers.py | qwasa-net/pyllyllyll | 401c7339953cfc9d5c0f79784fe1a1bf90049e9d | [
"MIT"
] | null | null | null | x/client/readers.py | qwasa-net/pyllyllyll | 401c7339953cfc9d5c0f79784fe1a1bf90049e9d | [
"MIT"
] | null | null | null | """Server writers."""
import asyncio
import logging
import socket
from x.client.content import ContentProcessor
def reader(client: socket.socket, reader_id: int) -> tuple:
"""Handle a connection -- read all data, close connection, call processor."""
logging.info("reader %s connected", reader_id)
# read... | 26.564516 | 98 | 0.661809 | 218 | 1,647 | 4.922018 | 0.284404 | 0.074557 | 0.095061 | 0.100652 | 0.780988 | 0.780988 | 0.780988 | 0.71575 | 0.71575 | 0.71575 | 0 | 0.006314 | 0.230723 | 1,647 | 61 | 99 | 27 | 0.840568 | 0.170006 | 0 | 0.666667 | 0 | 0 | 0.140016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.121212 | 0 | 0.212121 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
b758eeaaf1d8c2805f824065cea806825e2e3fe1 | 134 | py | Python | maskrcnn_benchmark/_custom_ops.py | furkankirac/maskrcnn-benchmark | a348dc36600e577c3ba569320f3a6a8e15986f72 | [
"MIT"
] | 3 | 2020-06-10T04:37:01.000Z | 2021-12-20T07:45:48.000Z | maskrcnn_benchmark/_custom_ops.py | furkankirac/maskrcnn-benchmark | a348dc36600e577c3ba569320f3a6a8e15986f72 | [
"MIT"
] | 1 | 2020-06-17T09:05:31.000Z | 2021-09-13T09:16:36.000Z | maskrcnn_benchmark/_custom_ops.py | furkankirac/maskrcnn-benchmark | a348dc36600e577c3ba569320f3a6a8e15986f72 | [
"MIT"
] | 1 | 2020-07-06T05:47:12.000Z | 2020-07-06T05:47:12.000Z | import os
import torch
torch.ops.load_library(os.path.join(os.path.dirname(__file__), 'lib', 'libmaskrcnn_benchmark_customops.so'))
| 22.333333 | 108 | 0.791045 | 20 | 134 | 4.95 | 0.75 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067164 | 134 | 5 | 109 | 26.8 | 0.792 | 0 | 0 | 0 | 0 | 0 | 0.276119 | 0.253731 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
b7c2182fc0b51f13b9bf5936c453f750c7f76a7c | 353 | py | Python | instagram_api/response/shared_follower.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | 13 | 2019-08-07T21:24:34.000Z | 2020-12-12T12:23:50.000Z | instagram_api/response/shared_follower.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | null | null | null | instagram_api/response/shared_follower.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | null | null | null | from .mapper import ApiResponse, ApiResponseInterface
from .mapper.types import Timestamp, AnyType
from .model import SharedFollower
__all__ = ['SharedFollowersResponse']
class SharedFollowersResponseInterface(ApiResponseInterface):
users: [SharedFollower]
class SharedFollowersResponse(ApiResponse, SharedFollo... | 25.214286 | 77 | 0.832861 | 27 | 353 | 10.740741 | 0.592593 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107649 | 353 | 13 | 78 | 27.153846 | 0.920635 | 0 | 0 | 0 | 0 | 0 | 0.065156 | 0.065156 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.375 | 0 | 0.75 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 5 |
b7e83fb09357912c50608378e768f6d3cc52e8d3 | 133 | py | Python | src/badd/__init__.py | wksmirnowa/badd | 82bc0c2d70b2334f230ed178bf3c037940b9eb37 | [
"MIT"
] | 1 | 2021-05-20T12:32:06.000Z | 2021-05-20T12:32:06.000Z | src/badd/__init__.py | wksmirnowa/badd | 82bc0c2d70b2334f230ed178bf3c037940b9eb37 | [
"MIT"
] | null | null | null | src/badd/__init__.py | wksmirnowa/badd | 82bc0c2d70b2334f230ed178bf3c037940b9eb37 | [
"MIT"
] | null | null | null | from .ad import AdDetector
from .toxic import ToxicDetector
from .obscene import ObsceneDetector
from .file_loader import FileLoader
| 26.6 | 36 | 0.849624 | 17 | 133 | 6.588235 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120301 | 133 | 4 | 37 | 33.25 | 0.957265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
b7f3569412a072d13463d53f33da84724b1eeae7 | 306 | py | Python | Darlington/phase2/STRINGS/day 30 solution/qtn8.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 6 | 2020-05-23T19:53:25.000Z | 2021-05-08T20:21:30.000Z | Darlington/phase2/STRINGS/day 30 solution/qtn8.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 8 | 2020-05-14T18:53:12.000Z | 2020-07-03T00:06:20.000Z | Darlington/phase2/STRINGS/day 30 solution/qtn8.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 39 | 2020-05-10T20:55:02.000Z | 2020-09-12T17:40:59.000Z | #function to get a string made of its first three characters of a specified string.
# If the length of the string is less than 3 then return the original string.
def first_three(str):
return str[:3] if len(str) > 3 else str
print(first_three('ipy'))
print(first_three('python'))
print(first_three('py')) | 38.25 | 84 | 0.748366 | 55 | 306 | 4.090909 | 0.545455 | 0.222222 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011538 | 0.150327 | 306 | 8 | 85 | 38.25 | 0.853846 | 0.519608 | 0 | 0 | 0 | 0 | 0.075342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.2 | 0.4 | 0.6 | 0 | 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 | 1 | 0 | 1 | 0 | 5 |
4d2b73f670bad5a67e072f219f59727120f890db | 1,336 | py | Python | test.py | Taimoor55/TrustPrime | 362320b7f31b94a9dac8055bd4d459c75bae16af | [
"MIT"
] | null | null | null | test.py | Taimoor55/TrustPrime | 362320b7f31b94a9dac8055bd4d459c75bae16af | [
"MIT"
] | null | null | null | test.py | Taimoor55/TrustPrime | 362320b7f31b94a9dac8055bd4d459c75bae16af | [
"MIT"
] | null | null | null | # from osgeo import ogr
# wkt1 = "POLYGON ((1208064.271243039 624154.6783778917, 1208064.271243039 601260.9785661874, 1231345.9998651114 601260.9785661874, 1231345.9998651114 624154.6783778917, 1208064.271243039 624154.6783778917))"
# wkt2 = "POLYGON ((1199915.6662253144 633079.3410163528, 1199915.6662253144 614453.95... | 31.809524 | 210 | 0.732036 | 183 | 1,336 | 5.344262 | 0.453552 | 0.03681 | 0.027607 | 0.03681 | 0.070552 | 0.070552 | 0.070552 | 0.04908 | 0 | 0 | 0 | 0.362416 | 0.107784 | 1,336 | 42 | 211 | 31.809524 | 0.458054 | 0.886228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.75 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
4d7223b365c36d9857eed3af00eb45c4b85adb49 | 15,486 | py | Python | sample-input/benchmarks/c5g7/c5g7.py | luisarose/OpenMOC | 0617c22c0e0aee32c6c972000f8b399f6c53a51f | [
"MIT"
] | null | null | null | sample-input/benchmarks/c5g7/c5g7.py | luisarose/OpenMOC | 0617c22c0e0aee32c6c972000f8b399f6c53a51f | [
"MIT"
] | null | null | null | sample-input/benchmarks/c5g7/c5g7.py | luisarose/OpenMOC | 0617c22c0e0aee32c6c972000f8b399f6c53a51f | [
"MIT"
] | null | null | null | from openmoc import *
import openmoc.log as log
import openmoc.plotter as plotter
import openmoc.materialize as materialize
from openmoc.options import Options
###############################################################################
####################### Main Simulation Parameters #######################... | 42.543956 | 79 | 0.505618 | 2,693 | 15,486 | 2.875603 | 0.064241 | 0.240702 | 0.338585 | 0.421488 | 0.681173 | 0.626679 | 0.578642 | 0.573605 | 0.541581 | 0.430527 | 0 | 0.191685 | 0.178355 | 15,486 | 363 | 80 | 42.661157 | 0.416929 | 0.075229 | 0 | 0.456067 | 0 | 0.451883 | 0.026556 | 0.001856 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025105 | 0 | 0.025105 | 0.041841 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
4d91378c76042a2cd24840b57c647d78f1bc718a | 21 | py | Python | hello_world.py | heethanjan/webpage-jobseeker | e16e4d9db36247409ad433cd5298c8201b6f205f | [
"MIT"
] | null | null | null | hello_world.py | heethanjan/webpage-jobseeker | e16e4d9db36247409ad433cd5298c8201b6f205f | [
"MIT"
] | 8 | 2019-12-05T00:00:16.000Z | 2022-02-10T09:38:48.000Z | hello_world.py | kamal2222ahmed/profiles-rest-api | 509245d41a2687b8d0db9c6f555c560eb9b59d74 | [
"MIT"
] | null | null | null | print("hello_world")
| 10.5 | 20 | 0.761905 | 3 | 21 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 21 | 1 | 21 | 21 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.52381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 5 |
4da9e0f30cebab380dcb9439dd94fc8d3e734779 | 103 | py | Python | 162.py | RafaelHuang87/Leet-Code-Practice | 7754dcee38ffda18a5759113ef06d7becf4fe728 | [
"MIT"
] | null | null | null | 162.py | RafaelHuang87/Leet-Code-Practice | 7754dcee38ffda18a5759113ef06d7becf4fe728 | [
"MIT"
] | null | null | null | 162.py | RafaelHuang87/Leet-Code-Practice | 7754dcee38ffda18a5759113ef06d7becf4fe728 | [
"MIT"
] | null | null | null | class Solution:
def findPeakElement(self, nums: [int]) -> int:
return nums.index(max(nums)) | 34.333333 | 50 | 0.650485 | 13 | 103 | 5.153846 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203884 | 103 | 3 | 51 | 34.333333 | 0.817073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 5 |
4db54393516a1ff2c7212a3872e284550cd14714 | 184 | py | Python | auth_manager/apps.py | monstrenyatko/butler-api | 842cf16212ba9fdb6943b5ecd488bf0ca57acf84 | [
"MIT"
] | null | null | null | auth_manager/apps.py | monstrenyatko/butler-api | 842cf16212ba9fdb6943b5ecd488bf0ca57acf84 | [
"MIT"
] | null | null | null | auth_manager/apps.py | monstrenyatko/butler-api | 842cf16212ba9fdb6943b5ecd488bf0ca57acf84 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class AuthManagerConfig(AppConfig):
name = 'auth_manager'
verbose_name = 'auth manager'
def ready(self):
from . import signals
| 18.4 | 35 | 0.695652 | 21 | 184 | 6 | 0.714286 | 0.126984 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228261 | 184 | 9 | 36 | 20.444444 | 0.887324 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 1 | 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 | 1 | 0 | 0 | 5 |
4db73f3fc65a5de12bb2401fd3d72a8deddf3030 | 181 | py | Python | miner/coinslib/Command.py | JesseEmond/csgains | c7ea6d48522a8e46a2a32cdfd0f50307cafa61ca | [
"MIT"
] | 11 | 2017-03-28T03:28:30.000Z | 2019-06-02T05:25:02.000Z | miner/coinslib/Command.py | JesseEmond/csgains | c7ea6d48522a8e46a2a32cdfd0f50307cafa61ca | [
"MIT"
] | 2 | 2017-06-21T20:17:10.000Z | 2017-06-21T20:17:52.000Z | miner/coinslib/Command.py | JesseEmond/csgains | c7ea6d48522a8e46a2a32cdfd0f50307cafa61ca | [
"MIT"
] | null | null | null | import json
class Command:
def __init__(self, name, args={}):
self.name = name
self.args = args
def to_json(self):
return json.dumps(self.__dict__) | 20.111111 | 40 | 0.607735 | 24 | 181 | 4.208333 | 0.541667 | 0.158416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.281768 | 181 | 9 | 40 | 20.111111 | 0.776923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 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 | 1 | 0 | 0 | 5 |
4dd7451bbb14e4ade7345d77739c24fa7c07e7a6 | 126 | py | Python | rretry/lib.py | afdaniele/run-and-retry | fdfd0e77160fa2b751b80d93326288915bcaf1ef | [
"MIT"
] | null | null | null | rretry/lib.py | afdaniele/run-and-retry | fdfd0e77160fa2b751b80d93326288915bcaf1ef | [
"MIT"
] | null | null | null | rretry/lib.py | afdaniele/run-and-retry | fdfd0e77160fa2b751b80d93326288915bcaf1ef | [
"MIT"
] | null | null | null |
class AttemptResults(list):
def __init__(self, tries):
return super(AttemptResults, self).extend(['ND'] * tries)
| 25.2 | 65 | 0.674603 | 14 | 126 | 5.785714 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18254 | 126 | 4 | 66 | 31.5 | 0.786408 | 0 | 0 | 0 | 0 | 0 | 0.016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 5 |
4de8c3319ee16db03b84f478040f7f39f9eddbfa | 121 | py | Python | lexer/__init__.py | brian-joseph-petersen/oply | b30212492c7657903a88d1026b17beda0a1b9ce3 | [
"MIT"
] | null | null | null | lexer/__init__.py | brian-joseph-petersen/oply | b30212492c7657903a88d1026b17beda0a1b9ce3 | [
"MIT"
] | null | null | null | lexer/__init__.py | brian-joseph-petersen/oply | b30212492c7657903a88d1026b17beda0a1b9ce3 | [
"MIT"
] | null | null | null | t_ignore = " \t\r"
t_NUM = r"\d+"
from .Identifier import t_ID
from .LineFeed import t_NEWLINE
from .Error import t_error | 24.2 | 31 | 0.743802 | 23 | 121 | 3.695652 | 0.521739 | 0.247059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14876 | 121 | 5 | 32 | 24.2 | 0.825243 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
12a5a39dab3287221d130005860fefca3aa70eba | 93 | py | Python | Hello.py | ElliotEriksson/Hello_World | 152ca186dfaf2f9304d6d019921f3caab99c3f76 | [
"MIT"
] | null | null | null | Hello.py | ElliotEriksson/Hello_World | 152ca186dfaf2f9304d6d019921f3caab99c3f76 | [
"MIT"
] | null | null | null | Hello.py | ElliotEriksson/Hello_World | 152ca186dfaf2f9304d6d019921f3caab99c3f76 | [
"MIT"
] | null | null | null | # Hello World
# My first python git repo
if __name__ == "__main__":
print("Hello World") | 18.6 | 26 | 0.677419 | 13 | 93 | 4.230769 | 0.846154 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204301 | 93 | 5 | 27 | 18.6 | 0.743243 | 0.387097 | 0 | 0 | 0 | 0 | 0.345455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 5 |
12a638cad8be2e5703ed253a2972e9d999042c05 | 106 | py | Python | utils/__init__.py | omiderfanmanesh/dengue-infections-prediction | 6b4e4aa4af6f6e2cc581fd7828634bbfdc446340 | [
"Apache-2.0"
] | null | null | null | utils/__init__.py | omiderfanmanesh/dengue-infections-prediction | 6b4e4aa4af6f6e2cc581fd7828634bbfdc446340 | [
"Apache-2.0"
] | null | null | null | utils/__init__.py | omiderfanmanesh/dengue-infections-prediction | 6b4e4aa4af6f6e2cc581fd7828634bbfdc446340 | [
"Apache-2.0"
] | 1 | 2021-06-05T10:05:44.000Z | 2021-06-05T10:05:44.000Z | # Copyright (c) 2021, Omid Erfanmanesh, All rights reserved.
from utils.runtime_mode import RuntimeMode
| 26.5 | 61 | 0.792453 | 14 | 106 | 5.928571 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043956 | 0.141509 | 106 | 3 | 62 | 35.333333 | 0.868132 | 0.54717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
12b55229e87c0ece73e45f7b2a0e15e3ba4f81be | 112 | py | Python | browser launch.py | Ian-Ratliff/Overwatch-league-viewer | 9934aa0c960d0e4b7b04f0ebbf7a4d794cade2da | [
"MIT"
] | null | null | null | browser launch.py | Ian-Ratliff/Overwatch-league-viewer | 9934aa0c960d0e4b7b04f0ebbf7a4d794cade2da | [
"MIT"
] | 3 | 2020-07-17T18:03:49.000Z | 2021-05-10T01:13:40.000Z | browser launch.py | Ian-Ratliff/Overwatch-league-viewer | 9934aa0c960d0e4b7b04f0ebbf7a4d794cade2da | [
"MIT"
] | null | null | null | import webbrowser
import selenium
webbrowser.open("https://twitch.tv/overwatchleague",new=1, autoraise=False)
| 18.666667 | 75 | 0.803571 | 14 | 112 | 6.428571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0.071429 | 112 | 5 | 76 | 22.4 | 0.855769 | 0 | 0 | 0 | 0 | 0 | 0.297297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
12cdf94ad804c013e5bd3980384a30beb95485d8 | 67 | py | Python | shogun/dispatch/__init__.py | menpo/shogun | 013baff88cb495e8f4314826865ec7e332859636 | [
"MIT",
"BSD-3-Clause"
] | 1 | 2020-11-26T21:04:20.000Z | 2020-11-26T21:04:20.000Z | shogun/dispatch/__init__.py | menpo/shogun | 013baff88cb495e8f4314826865ec7e332859636 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | shogun/dispatch/__init__.py | menpo/shogun | 013baff88cb495e8f4314826865ec7e332859636 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | import shogun.dispatch.concrete
from .registry import TypeRegistry
| 22.333333 | 34 | 0.865672 | 8 | 67 | 7.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089552 | 67 | 2 | 35 | 33.5 | 0.95082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
12db2b68e8891b908b2bbc1f16301e73d0c20bef | 270 | py | Python | urlencode.py | 66095021/handy_code | 60654326378e60c4bc4f7fd9ab386bb64653abb9 | [
"MIT"
] | null | null | null | urlencode.py | 66095021/handy_code | 60654326378e60c4bc4f7fd9ab386bb64653abb9 | [
"MIT"
] | null | null | null | urlencode.py | 66095021/handy_code | 60654326378e60c4bc4f7fd9ab386bb64653abb9 | [
"MIT"
] | null | null | null | #!/bin/env python
# -*- coding:utf-8 -*-
import urllib
# use %20 as space
x = urllib.quote("test 我们")
# use + as space
y = urllib.quote_plus("test 我们")
print urllib.unquote(x)
print urllib.unquote(y)
print urllib.unquote_plus(x)
print urllib.unquote_plus(y)
print x, y
| 19.285714 | 32 | 0.703704 | 47 | 270 | 3.978723 | 0.425532 | 0.235294 | 0.385027 | 0.203209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012931 | 0.140741 | 270 | 13 | 33 | 20.769231 | 0.793103 | 0.255556 | 0 | 0 | 0 | 0 | 0.071066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.625 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 5 |
420ea2098e3026a781ea8b66e1f483bb7494e1bc | 39 | py | Python | deeds/__init__.py | wiktorowski211/deeds-registration | 4acec209b9d0ee322d3e71a2be5c3b8bf2050dfb | [
"MIT"
] | null | null | null | deeds/__init__.py | wiktorowski211/deeds-registration | 4acec209b9d0ee322d3e71a2be5c3b8bf2050dfb | [
"MIT"
] | null | null | null | deeds/__init__.py | wiktorowski211/deeds-registration | 4acec209b9d0ee322d3e71a2be5c3b8bf2050dfb | [
"MIT"
] | null | null | null | from .registration import registration
| 19.5 | 38 | 0.871795 | 4 | 39 | 8.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 39 | 1 | 39 | 39 | 0.971429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
421f25d2bf7375b29ba5f3857af175e8051d2a8d | 182 | py | Python | install.py | B3ND1X/py-air-script | d6756cc2b5ec2a7e7950b13b09c78c776488fd6e | [
"Apache-2.0"
] | 2 | 2021-11-19T10:40:07.000Z | 2022-02-28T16:39:49.000Z | install.py | B3ND1X/py-air-script | d6756cc2b5ec2a7e7950b13b09c78c776488fd6e | [
"Apache-2.0"
] | null | null | null | install.py | B3ND1X/py-air-script | d6756cc2b5ec2a7e7950b13b09c78c776488fd6e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import os
os.system("sudo apt-get update")
os.system("sudo apt-get install aircrack-ng")
os.system("sudo apt install ethtool")
os.system("sudo apt install rfkill") | 26 | 45 | 0.747253 | 31 | 182 | 4.387097 | 0.483871 | 0.235294 | 0.352941 | 0.441176 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098901 | 182 | 7 | 46 | 26 | 0.829268 | 0.087912 | 0 | 0 | 0 | 0 | 0.590361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
424e1597ed935d855fe93e7585e97a3754868005 | 20 | py | Python | catboost/python-package/catboost/version.py | dzaytsev91/catboost | c23174433aa20101ca10fa7dec729d86dfda5393 | [
"Apache-2.0"
] | null | null | null | catboost/python-package/catboost/version.py | dzaytsev91/catboost | c23174433aa20101ca10fa7dec729d86dfda5393 | [
"Apache-2.0"
] | null | null | null | catboost/python-package/catboost/version.py | dzaytsev91/catboost | c23174433aa20101ca10fa7dec729d86dfda5393 | [
"Apache-2.0"
] | null | null | null | VERSION = '0.9.1.1'
| 10 | 19 | 0.55 | 5 | 20 | 2.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 0.15 | 20 | 1 | 20 | 20 | 0.411765 | 0 | 0 | 0 | 0 | 0 | 0.35 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
428b66cb86f706323c2c8b39e9274d45e431f3e0 | 332 | py | Python | example/example/core/views.py | nicokant/django-htmx | 4e5b9875404d34dc2e9386b5de8410f354980605 | [
"MIT"
] | null | null | null | example/example/core/views.py | nicokant/django-htmx | 4e5b9875404d34dc2e9386b5de8410f354980605 | [
"MIT"
] | null | null | null | example/example/core/views.py | nicokant/django-htmx | 4e5b9875404d34dc2e9386b5de8410f354980605 | [
"MIT"
] | null | null | null | import time
from django.shortcuts import render
from django.views.decorators.http import require_http_methods
def index(request):
return render(request, "index.html")
@require_http_methods(["DELETE", "POST", "PUT"])
def attribute_test(request):
return render(request, "attribute_test.html", {"timestamp": ti... | 23.714286 | 77 | 0.753012 | 43 | 332 | 5.674419 | 0.511628 | 0.081967 | 0.147541 | 0.213115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114458 | 332 | 13 | 78 | 25.538462 | 0.829932 | 0 | 0 | 0 | 0 | 0 | 0.153614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.375 | 0.25 | 0.875 | 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 | 1 | 1 | 0 | 0 | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.