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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c7349ec685ce1af0110178abaaf2eb1878a5bd71 | 106 | py | Python | Src/main.py | DukeA/DAT02X-19-03-MachineLearning-Starcraft2 | ade31deb4cf6cacd0c411c39310aeb1300561936 | [
"MIT"
] | null | null | null | Src/main.py | DukeA/DAT02X-19-03-MachineLearning-Starcraft2 | ade31deb4cf6cacd0c411c39310aeb1300561936 | [
"MIT"
] | null | null | null | Src/main.py | DukeA/DAT02X-19-03-MachineLearning-Starcraft2 | ade31deb4cf6cacd0c411c39310aeb1300561936 | [
"MIT"
] | null | null | null |
from absl import app
from mainLoop import main
if __name__ == '__main__':
app.run(main)
| 13.25 | 27 | 0.632075 | 14 | 106 | 4.214286 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292453 | 106 | 7 | 28 | 15.142857 | 0.786667 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c7508c28b649dccba896625618759517bbe0fd13 | 161 | py | Python | pyclustering/container/examples/__init__.py | JosephChataignon/pyclustering | bf4f51a472622292627ec8c294eb205585e50f52 | [
"BSD-3-Clause"
] | 1,013 | 2015-01-26T19:50:14.000Z | 2022-03-31T07:38:48.000Z | pyclustering/container/examples/__init__.py | peterlau0626/pyclustering | bf4f51a472622292627ec8c294eb205585e50f52 | [
"BSD-3-Clause"
] | 542 | 2015-01-20T16:44:32.000Z | 2022-01-29T14:57:20.000Z | pyclustering/container/examples/__init__.py | peterlau0626/pyclustering | bf4f51a472622292627ec8c294eb205585e50f52 | [
"BSD-3-Clause"
] | 262 | 2015-03-19T07:28:12.000Z | 2022-03-30T07:28:24.000Z | """!
@brief Collection of examples devoted to containers.
@authors Andrei Novikov (pyclustering@yandex.ru)
@date 2014-2020
@copyright BSD-3-Clause
""" | 17.888889 | 53 | 0.714286 | 20 | 161 | 5.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067164 | 0.167702 | 161 | 9 | 54 | 17.888889 | 0.791045 | 0.900621 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c7651286d18c5a48356115767024669710aad666 | 29 | py | Python | python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationTupleType.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationTupleType.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationTupleType.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | v<caret>ar = (1, 'foo', None) | 29 | 29 | 0.551724 | 6 | 29 | 2.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.137931 | 29 | 1 | 29 | 29 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c79748fa89a41d17ad6e31fcee8a32474231a1c4 | 27 | py | Python | tests/unit/providers/callables/__init__.py | YelloFam/python-dependency-injector | 541131e33858ee1b8b5a7590d2bb9f929740ea1e | [
"BSD-3-Clause"
] | null | null | null | tests/unit/providers/callables/__init__.py | YelloFam/python-dependency-injector | 541131e33858ee1b8b5a7590d2bb9f929740ea1e | [
"BSD-3-Clause"
] | null | null | null | tests/unit/providers/callables/__init__.py | YelloFam/python-dependency-injector | 541131e33858ee1b8b5a7590d2bb9f929740ea1e | [
"BSD-3-Clause"
] | null | null | null | """Tests for callables."""
| 13.5 | 26 | 0.62963 | 3 | 27 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 27 | 1 | 27 | 27 | 0.708333 | 0.740741 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c7aa99e86ce9b9941bb3c2dee52be602130563cd | 200 | py | Python | app/__init__.py | geirowew/SapAPI | dda0d839722d28c7a30d58c8b3d5076a503fd837 | [
"MIT"
] | 1 | 2021-10-11T20:20:50.000Z | 2021-10-11T20:20:50.000Z | app/__init__.py | geirowew/SapAPI | dda0d839722d28c7a30d58c8b3d5076a503fd837 | [
"MIT"
] | null | null | null | app/__init__.py | geirowew/SapAPI | dda0d839722d28c7a30d58c8b3d5076a503fd837 | [
"MIT"
] | 2 | 2021-01-22T10:52:04.000Z | 2021-10-06T10:28:07.000Z | from flask import Flask
#from config import Config
import config
app = Flask(__name__)
#app.config.from_object(Config)
app.config.from_object(config)
#from app import routes
from app import gettoken | 20 | 31 | 0.81 | 31 | 200 | 5.032258 | 0.290323 | 0.192308 | 0.230769 | 0.24359 | 0.320513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 200 | 10 | 32 | 20 | 0.886364 | 0.385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
c7ba815c300287faa117210ec887325390625523 | 114 | py | Python | nautapy/__init__.py | armandofcom/nautapy | 6907e350021752b54998f6b0b5674dccc8ca9ddd | [
"MIT"
] | 25 | 2020-03-20T05:02:09.000Z | 2022-03-29T13:24:36.000Z | nautapy/__init__.py | armandofcom/nautapy | 6907e350021752b54998f6b0b5674dccc8ca9ddd | [
"MIT"
] | 7 | 2020-01-22T23:10:25.000Z | 2021-06-02T21:41:27.000Z | nautapy/__init__.py | armandofcom/nautapy | 6907e350021752b54998f6b0b5674dccc8ca9ddd | [
"MIT"
] | 14 | 2020-03-20T05:02:18.000Z | 2022-03-29T13:24:39.000Z | import os
appdata_path = os.path.expanduser("~/.local/share/nautapy")
os.makedirs(appdata_path, exist_ok=True)
| 16.285714 | 59 | 0.763158 | 17 | 114 | 4.941176 | 0.705882 | 0.261905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087719 | 114 | 6 | 60 | 19 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0.19469 | 0.19469 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c7cb28d53e6c7e1382fc471314a689bf2b0e9252 | 172 | py | Python | athena/athena/errors.py | aculich/openmappr | c9e5b4cfc974a6eda9cbc8a0ea6f8a96ce35efba | [
"MIT"
] | 19 | 2018-04-05T23:33:33.000Z | 2022-03-24T00:18:20.000Z | athena/athena/errors.py | aculich/openmappr | c9e5b4cfc974a6eda9cbc8a0ea6f8a96ce35efba | [
"MIT"
] | 13 | 2018-01-10T23:31:11.000Z | 2018-07-20T12:55:02.000Z | athena/athena/errors.py | aculich/openmappr | c9e5b4cfc974a6eda9cbc8a0ea6f8a96ce35efba | [
"MIT"
] | 5 | 2018-02-12T05:33:19.000Z | 2019-09-21T22:43:02.000Z |
class AthenaError(Exception):
"""base class for all athena exceptions"""
pass
class AthenaMongoError(AthenaError):
"""Class for all mongo related errors"""
pass | 21.5 | 46 | 0.726744 | 20 | 172 | 6.25 | 0.65 | 0.128 | 0.176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168605 | 172 | 8 | 47 | 21.5 | 0.874126 | 0.412791 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
c7f39bdc2218cef3b2fe963ee01b122a395a8bc3 | 227 | py | Python | tests/repositories/helpers/methods/test_reinstall_if_needed.py | traibnn/integration | cf5920a677fdaa8408074e533371141828b0b30f | [
"MIT"
] | 1 | 2021-07-31T00:34:30.000Z | 2021-07-31T00:34:30.000Z | tests/repositories/helpers/methods/test_reinstall_if_needed.py | traibnn/integration | cf5920a677fdaa8408074e533371141828b0b30f | [
"MIT"
] | 45 | 2021-07-21T13:32:44.000Z | 2022-03-28T06:15:40.000Z | tests/repositories/helpers/methods/test_reinstall_if_needed.py | traibnn/integration | cf5920a677fdaa8408074e533371141828b0b30f | [
"MIT"
] | null | null | null | import pytest
@pytest.mark.asyncio
async def test_reinstall_if_needed(repository):
repository.content.path.local = "/non/existing/dir"
repository.data.installed = True
await repository.async_reinstall_if_needed()
| 25.222222 | 55 | 0.784141 | 29 | 227 | 5.931034 | 0.724138 | 0.127907 | 0.197674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123348 | 227 | 8 | 56 | 28.375 | 0.864322 | 0 | 0 | 0 | 0 | 0 | 0.07489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 0 | 4 |
1bf0738223b67b02abba6e6aa0c92e93cd84b652 | 470 | py | Python | mtstub.py | shimniok/rockblock | 7a84d7da7df34c2dbe1a288fb6de24558eb4485f | [
"MIT"
] | 1 | 2020-05-30T01:29:06.000Z | 2020-05-30T01:29:06.000Z | mtstub.py | shimniok/rockblock | 7a84d7da7df34c2dbe1a288fb6de24558eb4485f | [
"MIT"
] | 1 | 2017-10-16T03:30:55.000Z | 2018-01-14T19:05:43.000Z | mtstub.py | shimniok/rockblock | 7a84d7da7df34c2dbe1a288fb6de24558eb4485f | [
"MIT"
] | 1 | 2019-08-05T10:31:46.000Z | 2019-08-05T10:31:46.000Z | #!/usr/bin/env python
##################################################################################################
## mtstub.py
##
## emulates rockblock api so I don't have to burn credits testing...
##################################################################################################
import cgi
#i... | 24.736842 | 98 | 0.417021 | 40 | 470 | 4.9 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011737 | 0.093617 | 470 | 18 | 99 | 26.111111 | 0.448357 | 0.310638 | 0 | 0 | 0 | 0 | 0.268908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
1bf69ac1479d462fb413d5e64a7b2f979173894e | 5,091 | py | Python | t_core/tc_python/xrule.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 3 | 2017-06-02T19:26:27.000Z | 2021-06-14T04:25:45.000Z | t_core/tc_python/xrule.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 8 | 2016-08-24T07:04:07.000Z | 2017-05-26T16:22:47.000Z | t_core/tc_python/xrule.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 1 | 2019-10-31T06:00:23.000Z | 2019-10-31T06:00:23.000Z |
from util.infinity import INFINITY
from tc_python.arule import ARule
from t_core.rollbacker import Rollbacker
from t_core.resolver import Resolver
class XRule(ARule):
'''
Applies the transformation on one match with roll-back capability.
'''
def __init__(self, LHS, RHS, max_iterations=... | 37.433824 | 111 | 0.575329 | 593 | 5,091 | 4.809444 | 0.145025 | 0.109397 | 0.08345 | 0.091164 | 0.72791 | 0.721599 | 0.706872 | 0.674264 | 0.646914 | 0.628331 | 0 | 0 | 0.351208 | 5,091 | 135 | 112 | 37.711111 | 0.863457 | 0.194264 | 0 | 0.763441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.043011 | 0 | 0.268817 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1bff3ce09a664d524ed5b17fd85a06acad12da24 | 195 | py | Python | libs/imgutils.py | EpicKiwi/projet-datascience | 90b59fc674fc2146634d1c1681f9b65083a7aa91 | [
"MIT"
] | null | null | null | libs/imgutils.py | EpicKiwi/projet-datascience | 90b59fc674fc2146634d1c1681f9b65083a7aa91 | [
"MIT"
] | null | null | null | libs/imgutils.py | EpicKiwi/projet-datascience | 90b59fc674fc2146634d1c1681f9b65083a7aa91 | [
"MIT"
] | 2 | 2020-01-14T07:53:50.000Z | 2020-01-14T12:24:35.000Z | import cv2
def img_path2array(path):
return cv2.cvtColor(cv2.imread(path, 10), cv2.COLOR_BGR2RGB)
def img_array2file(path, array):
cv2.imwrite(path, cv2.cvtColor(array, cv2.COLOR_RGB2BGR)) | 27.857143 | 64 | 0.769231 | 30 | 195 | 4.866667 | 0.533333 | 0.082192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074286 | 0.102564 | 195 | 7 | 65 | 27.857143 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
402e10f9fc439179bd0a8ffc8b3cd706de061b93 | 251 | py | Python | tfl_data.py | dongyan1024/overtime | 4f722a823585890026fe9584ba5985963b2a586c | [
"MIT"
] | 9 | 2020-10-15T13:53:36.000Z | 2022-03-08T12:08:09.000Z | tfl_data.py | dongyan1024/overtime | 4f722a823585890026fe9584ba5985963b2a586c | [
"MIT"
] | 6 | 2021-02-07T15:43:12.000Z | 2021-04-24T04:03:39.000Z | tfl_data.py | dongyan1024/overtime | 4f722a823585890026fe9584ba5985963b2a586c | [
"MIT"
] | 7 | 2020-10-15T13:55:12.000Z | 2022-03-12T03:54:02.000Z |
import overtime as ot
times = ['14:00','14:05', '14:10', '14:15', '14:20', '14:25', '14:30', '14:35', '14:40', '14:45', '14:50', '14:55']
tfl_data = ot.TflInput(['victoria', 'central', 'bakerloo', 'piccadilly'], ['inbound', 'outbound'], times)
| 41.833333 | 116 | 0.565737 | 40 | 251 | 3.525 | 0.675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220183 | 0.131474 | 251 | 5 | 117 | 50.2 | 0.426606 | 0 | 0 | 0 | 0 | 0 | 0.440816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
404408dcaaf3ec9278595ad0836bc4bc90af7ec0 | 81 | py | Python | asf_search/constants/DATASET/__init__.py | jhkennedy/Discovery-asf_search | 4ec45e8a85cd626ea92f83937df9f8f04e0f7f4f | [
"BSD-3-Clause"
] | null | null | null | asf_search/constants/DATASET/__init__.py | jhkennedy/Discovery-asf_search | 4ec45e8a85cd626ea92f83937df9f8f04e0f7f4f | [
"BSD-3-Clause"
] | 1 | 2021-04-01T16:30:56.000Z | 2021-04-01T16:30:56.000Z | asf_search/constants/DATASET/__init__.py | jhkennedy/Discovery-asf_search | 4ec45e8a85cd626ea92f83937df9f8f04e0f7f4f | [
"BSD-3-Clause"
] | null | null | null | """Datasets to be used in search and related functions"""
from .DATASET import * | 27 | 57 | 0.740741 | 12 | 81 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160494 | 81 | 3 | 58 | 27 | 0.882353 | 0.62963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
406b1ddec2cc13a47e3515d6e9a2b41aa445fd1b | 76 | py | Python | cookietemple/create/templates/cli/cli_python/{{ cookiecutter.project_slug_no_hyphen }}/tests/__init__.py | e2jk/cookietemple | 86af5622cdabe9ae446048536571898716939f29 | [
"Apache-2.0"
] | 117 | 2020-11-23T02:07:23.000Z | 2022-03-21T16:14:53.000Z | cookietemple/create/templates/cli/cli_python/{{ cookiecutter.project_slug_no_hyphen }}/tests/__init__.py | e2jk/cookietemple | 86af5622cdabe9ae446048536571898716939f29 | [
"Apache-2.0"
] | 226 | 2020-10-19T19:58:13.000Z | 2022-03-27T18:54:30.000Z | cookietemple/create/templates/cli/cli_python/{{ cookiecutter.project_slug_no_hyphen }}/tests/__init__.py | e2jk/cookietemple | 86af5622cdabe9ae446048536571898716939f29 | [
"Apache-2.0"
] | 9 | 2020-11-24T12:45:10.000Z | 2022-03-13T15:58:23.000Z | """Test suite for the {{ cookiecutter.project_slug_no_hyphen }} package."""
| 38 | 75 | 0.736842 | 10 | 76 | 5.3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 76 | 1 | 76 | 76 | 0.779412 | 0.907895 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
407dc792a754cf8c4cf33cd4fb3c31fe49507ba3 | 9,201 | py | Python | sample-input/homogeneous/geometry.py | AI-Pranto/OpenMOC | 7f6ce4797aec20ddd916981a56a4ba54ffda9a06 | [
"MIT"
] | 97 | 2015-01-02T02:13:45.000Z | 2022-03-09T14:12:45.000Z | sample-input/homogeneous/geometry.py | AI-Pranto/OpenMOC | 7f6ce4797aec20ddd916981a56a4ba54ffda9a06 | [
"MIT"
] | 325 | 2015-01-07T17:43:14.000Z | 2022-02-21T17:22:00.000Z | sample-input/homogeneous/geometry.py | AI-Pranto/OpenMOC | 7f6ce4797aec20ddd916981a56a4ba54ffda9a06 | [
"MIT"
] | 73 | 2015-01-17T19:11:58.000Z | 2022-03-24T16:31:37.000Z | import openmoc
import openmoc.log as log
import openmoc.plotter as plotter
import openmoc.materialize as materialize
log.set_log_level('NORMAL')
###############################################################################
########################### Creating Materials ############################
#############... | 46.705584 | 79 | 0.29236 | 1,300 | 9,201 | 2.046154 | 0.053846 | 0.751128 | 1.125564 | 1.499248 | 0.572556 | 0.5 | 0.37594 | 0.37594 | 0.37594 | 0.37594 | 0 | 0.007078 | 0.401152 | 9,201 | 196 | 80 | 46.943878 | 0.475681 | 0.014672 | 0 | 0.662162 | 0 | 0 | 0.041651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033784 | 0 | 0.033784 | 0.040541 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
408169e338ef415cc1c1cefeaa3179019885ca4e | 79 | py | Python | Schemas/Subject.py | esot0/jmsa-tutoring-backend | f35000c73fbbb31f9b4dcca36e40854dc2e06d23 | [
"MIT"
] | null | null | null | Schemas/Subject.py | esot0/jmsa-tutoring-backend | f35000c73fbbb31f9b4dcca36e40854dc2e06d23 | [
"MIT"
] | null | null | null | Schemas/Subject.py | esot0/jmsa-tutoring-backend | f35000c73fbbb31f9b4dcca36e40854dc2e06d23 | [
"MIT"
] | null | null | null | from mongoengine import *
class Subject(Document):
subject = StringField() | 19.75 | 27 | 0.746835 | 8 | 79 | 7.375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164557 | 79 | 4 | 27 | 19.75 | 0.893939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
409191dc8e0d6b6abf220bc3d47860d3cfbeff3a | 31,078 | py | Python | vehicle/views.py | BernardAli/vehicle-service-mgt | 242d9797f9138a23d1c649d63660c2ee0b6cc462 | [
"MIT"
] | 105 | 2020-09-27T16:10:44.000Z | 2022-03-31T18:08:36.000Z | vehicle/views.py | BernardAli/vehicle-service-mgt | 242d9797f9138a23d1c649d63660c2ee0b6cc462 | [
"MIT"
] | 1 | 2021-07-15T21:36:09.000Z | 2021-07-15T21:36:09.000Z | vehicle/views.py | BernardAli/vehicle-service-mgt | 242d9797f9138a23d1c649d63660c2ee0b6cc462 | [
"MIT"
] | 87 | 2020-10-02T11:45:42.000Z | 2022-03-25T16:43:22.000Z | from django.shortcuts import render,redirect,reverse
from . import forms,models
from django.db.models import Sum
from django.contrib.auth.models import Group
from django.http import HttpResponseRedirect
from django.contrib.auth.decorators import login_required,user_passes_test
from django.conf import settings
from djan... | 41.327128 | 150 | 0.702491 | 3,514 | 31,078 | 6.03671 | 0.056346 | 0.035261 | 0.051949 | 0.071088 | 0.814453 | 0.770094 | 0.740772 | 0.688587 | 0.646726 | 0.61269 | 0 | 0.00015 | 0.142512 | 31,078 | 751 | 151 | 41.382157 | 0.795865 | 0.047847 | 0 | 0.597663 | 0 | 0 | 0.150196 | 0.068351 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103506 | false | 0.046745 | 0.013356 | 0.011686 | 0.267112 | 0.03172 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4093599c05b72acbbffdbf768053f07822e78e65 | 124 | py | Python | library/favourite/api/pagination.py | furkan-34/library-DRF-django-api | 3634133b7c543d6d05845dd8fa1f206386c1badb | [
"MIT"
] | null | null | null | library/favourite/api/pagination.py | furkan-34/library-DRF-django-api | 3634133b7c543d6d05845dd8fa1f206386c1badb | [
"MIT"
] | null | null | null | library/favourite/api/pagination.py | furkan-34/library-DRF-django-api | 3634133b7c543d6d05845dd8fa1f206386c1badb | [
"MIT"
] | null | null | null | from rest_framework.pagination import PageNumberPagination
class FavouritePagination(PageNumberPagination):
page_size=4 | 31 | 58 | 0.870968 | 12 | 124 | 8.833333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 0.08871 | 124 | 4 | 59 | 31 | 0.929204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
40b2c91082ea21890c36b449104ec87a0b8d9b4b | 266 | py | Python | tests/test_app/rest_app/rest_app/controllers/config_controller.py | jadbin/guniflask | 36253a962c056abf34884263c6919b02b921ad9c | [
"MIT"
] | 12 | 2018-09-06T06:14:59.000Z | 2021-04-18T06:30:44.000Z | tests/test_app/rest_app/rest_app/controllers/config_controller.py | jadbin/guniflask | 36253a962c056abf34884263c6919b02b921ad9c | [
"MIT"
] | null | null | null | tests/test_app/rest_app/rest_app/controllers/config_controller.py | jadbin/guniflask | 36253a962c056abf34884263c6919b02b921ad9c | [
"MIT"
] | 2 | 2019-09-08T22:01:26.000Z | 2020-08-03T07:23:29.000Z | from guniflask.config import settings
from guniflask.web import blueprint, get_route
@blueprint
class ConfigController:
def __init__(self):
pass
@get_route('/settings/<name>')
def get_setting(self, name):
return {name: settings[name]}
| 20.461538 | 46 | 0.703008 | 32 | 266 | 5.625 | 0.5625 | 0.144444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199248 | 266 | 12 | 47 | 22.166667 | 0.84507 | 0 | 0 | 0 | 0 | 0 | 0.06015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.111111 | 0.222222 | 0.111111 | 0.666667 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
40ee9a52429bac1502e511dda17968ae00643dd6 | 41 | py | Python | ez_sten/__init__.py | deadlift1226/ez-sten | 7f754e5648ce6b7d5207a901618b77a8e4382c86 | [
"MIT"
] | null | null | null | ez_sten/__init__.py | deadlift1226/ez-sten | 7f754e5648ce6b7d5207a901618b77a8e4382c86 | [
"MIT"
] | null | null | null | ez_sten/__init__.py | deadlift1226/ez-sten | 7f754e5648ce6b7d5207a901618b77a8e4382c86 | [
"MIT"
] | null | null | null | name = "module"
from .module import func
| 13.666667 | 24 | 0.731707 | 6 | 41 | 5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 41 | 2 | 25 | 20.5 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
40f3ddcdfc03bc9856328d9f89786ad5e9dd0772 | 88 | py | Python | src/models/__init__.py | DwaraknathT/sparsity | 705f2cba074e6ab4f7655c6af98882773cd826bf | [
"MIT"
] | null | null | null | src/models/__init__.py | DwaraknathT/sparsity | 705f2cba074e6ab4f7655c6af98882773cd826bf | [
"MIT"
] | null | null | null | src/models/__init__.py | DwaraknathT/sparsity | 705f2cba074e6ab4f7655c6af98882773cd826bf | [
"MIT"
] | null | null | null | __all__ = ["transformers", "vision"]
from .transformers import *
from .vision import *
| 17.6 | 36 | 0.715909 | 9 | 88 | 6.555556 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147727 | 88 | 4 | 37 | 22 | 0.786667 | 0 | 0 | 0 | 0 | 0 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
906d400738f33dc206c78e71d946859aba32483a | 97 | py | Python | python/760.find-anagram-mappings.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/760.find-anagram-mappings.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/760.find-anagram-mappings.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | class Solution:
def anagramMappings(self, A: List[int], B: List[int]) -> List[int]:
| 24.25 | 71 | 0.597938 | 13 | 97 | 4.461538 | 0.692308 | 0.362069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237113 | 97 | 3 | 72 | 32.333333 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
906d8e08da166b6c85abfbc022b056f7f3eb7ea0 | 1,547 | py | Python | src/jdk.internal.vm.compiler/.mx.graal/mx_graal.py | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | 2 | 2018-06-19T05:43:32.000Z | 2018-06-23T10:04:56.000Z | src/jdk.internal.vm.compiler/.mx.graal/mx_graal.py | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | null | null | null | src/jdk.internal.vm.compiler/.mx.graal/mx_graal.py | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | null | null | null | #
# ----------------------------------------------------------------------------------------------------
#
# Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify ... | 45.5 | 109 | 0.66128 | 221 | 1,547 | 4.570136 | 0.588235 | 0.023762 | 0.038614 | 0.056436 | 0.140594 | 0.104951 | 0.104951 | 0.071287 | 0 | 0 | 0 | 0.025777 | 0.147382 | 1,547 | 33 | 110 | 46.878788 | 0.739955 | 0.808662 | 0 | 0 | 0 | 0 | 0.156716 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
906e0d5d4effa98640d75d6a7be5cc83893d3c38 | 84 | py | Python | pygments_lexer_solidity/__init__.py | veox/pygments-lexer-solidity | e99ccf980337ceaad4fbc7ee11795e91d7fab0ae | [
"BSD-2-Clause"
] | 2 | 2018-05-24T14:36:59.000Z | 2019-06-29T23:50:08.000Z | pygments_lexer_solidity/__init__.py | veox/pygments-lexer-solidity | e99ccf980337ceaad4fbc7ee11795e91d7fab0ae | [
"BSD-2-Clause"
] | null | null | null | pygments_lexer_solidity/__init__.py | veox/pygments-lexer-solidity | e99ccf980337ceaad4fbc7ee11795e91d7fab0ae | [
"BSD-2-Clause"
] | 1 | 2019-11-11T23:24:17.000Z | 2019-11-11T23:24:17.000Z | from .lexer import SolidityLexer, YulLexer
__all__ = ['SolidityLexer', 'YulLexer']
| 21 | 42 | 0.761905 | 8 | 84 | 7.5 | 0.75 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 84 | 3 | 43 | 28 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
90988846045a582c1eb61f51d1fdf6a5c9b664f2 | 312 | py | Python | examples/admin.py | kimbackdoo/Web-Cralwer | 6a92ec00ea2273f228b8c304cd596ad9120c4709 | [
"MIT"
] | null | null | null | examples/admin.py | kimbackdoo/Web-Cralwer | 6a92ec00ea2273f228b8c304cd596ad9120c4709 | [
"MIT"
] | null | null | null | examples/admin.py | kimbackdoo/Web-Cralwer | 6a92ec00ea2273f228b8c304cd596ad9120c4709 | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
#models에서 Shop을 임폴트
from .models import Shop
from .models import Parsed_data
from .models import Img_data
from .models import Other
admin.site.register(Shop)
admin.site.register(Parsed_data)
admin.site.register(Img_data)
admin.site.register(Other)
| 22.285714 | 32 | 0.814103 | 48 | 312 | 5.208333 | 0.375 | 0.16 | 0.256 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108974 | 312 | 13 | 33 | 24 | 0.899281 | 0.141026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.555556 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
90b067d91d1317f4e26b80f4ccf8b819d42bc981 | 206 | py | Python | {{cookiecutter.project_name}}/tests/conftest.py | nelsonHolic/common-fastapi-microservice | 06a995264ced42a59565f1f703bab7bfed8e7cc1 | [
"MIT"
] | 1 | 2021-12-14T17:08:24.000Z | 2021-12-14T17:08:24.000Z | {{cookiecutter.project_name}}/tests/conftest.py | nelsonHolic/common-fastapi-microservice | 06a995264ced42a59565f1f703bab7bfed8e7cc1 | [
"MIT"
] | null | null | null | {{cookiecutter.project_name}}/tests/conftest.py | nelsonHolic/common-fastapi-microservice | 06a995264ced42a59565f1f703bab7bfed8e7cc1 | [
"MIT"
] | null | null | null | import pytest
from fastapi.testclient import TestClient
from {{cookiecutter.project_name}}.app import app
@pytest.fixture()
def app_client() -> TestClient:
client = TestClient(app)
return client
| 18.727273 | 49 | 0.757282 | 25 | 206 | 6.16 | 0.52 | 0.207792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150485 | 206 | 10 | 50 | 20.6 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.428571 | null | null | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
90d7c582c62cd57d3012bffede812a95aec2d89a | 378 | py | Python | tests/plot_profile/test_utils.py | mizeller/plot_profile | 832f1d47a182d65747f18cf1ac90afc9a3b821c1 | [
"MIT"
] | null | null | null | tests/plot_profile/test_utils.py | mizeller/plot_profile | 832f1d47a182d65747f18cf1ac90afc9a3b821c1 | [
"MIT"
] | 3 | 2021-11-10T15:37:27.000Z | 2022-03-28T13:29:42.000Z | tests/plot_profile/test_utils.py | MeteoSwiss-APN/plot_profile | 832f1d47a182d65747f18cf1ac90afc9a3b821c1 | [
"MIT"
] | null | null | null | """Test module ``plot_profile/utils.py``."""
# Standard library
import logging
# First-party
from plot_profile.utils import count_to_log_level
def test_count_to_log_level():
assert count_to_log_level(0) == logging.ERROR
assert count_to_log_level(1) == logging.WARNING
assert count_to_log_level(2) == loggi... | 27 | 51 | 0.759259 | 59 | 378 | 4.508475 | 0.457627 | 0.157895 | 0.225564 | 0.338346 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012232 | 0.134921 | 378 | 13 | 52 | 29.076923 | 0.801223 | 0.179894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 1 | 0.142857 | true | 0 | 0.285714 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
90f47be06645ba00851f14cd7c007a7d8432d2b8 | 1,705 | py | Python | phonenumbers/data/region_AC.py | ayushgoel/FixGoogleContacts | e49e58db6718bef8f95b6f767241605441c7fe41 | [
"MIT"
] | 2 | 2019-02-22T05:27:22.000Z | 2020-12-30T19:33:18.000Z | phonenumbers/data/region_AC.py | ayushgoel/FixGoogleContacts | e49e58db6718bef8f95b6f767241605441c7fe41 | [
"MIT"
] | null | null | null | phonenumbers/data/region_AC.py | ayushgoel/FixGoogleContacts | e49e58db6718bef8f95b6f767241605441c7fe41 | [
"MIT"
] | null | null | null | """Auto-generated file, do not edit by hand. AC metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_AC = PhoneMetadata(id='AC', country_code=247, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[2-467]\\d{3}', possible_number_pattern=... | 85.25 | 149 | 0.794721 | 209 | 1,705 | 6.119617 | 0.291866 | 0.304926 | 0.28147 | 0.422205 | 0.614543 | 0.578577 | 0.578577 | 0.578577 | 0.578577 | 0.101642 | 0 | 0.021357 | 0.066276 | 1,705 | 19 | 150 | 89.736842 | 0.782035 | 0.031085 | 0 | 0 | 1 | 0.058824 | 0.076549 | 0.020049 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2903a87ca8ef20b939b217181d37a2379c18a9f6 | 693 | py | Python | extras/scripts/finish_ci.py | connornishijima/PixieChroma | 4812c72087550797d17f6fe4d003eda2ce1cc25a | [
"MIT"
] | 20 | 2021-10-30T19:15:27.000Z | 2022-03-22T14:59:13.000Z | extras/scripts/finish_ci.py | connornishijima/PixieChroma | 4812c72087550797d17f6fe4d003eda2ce1cc25a | [
"MIT"
] | 39 | 2021-10-29T22:21:53.000Z | 2022-02-06T17:50:05.000Z | extras/scripts/finish_ci.py | connornishijima/PixieChroma | 4812c72087550797d17f6fe4d003eda2ce1cc25a | [
"MIT"
] | 5 | 2021-10-30T23:55:41.000Z | 2022-01-07T09:05:47.000Z | # This is just for GitHub, and is used to clean up leftover files after
# automatic testing has completed, and generate developer reports about
# anything left undocumented!
# run: "sudo python ./extras/scripts/finish_ci.py"
import os
import sys
os.system("sudo python ./extras/scripts/generate_doxygen_report.py")
os... | 30.130435 | 71 | 0.74026 | 107 | 693 | 4.728972 | 0.542056 | 0.142292 | 0.118577 | 0.181818 | 0.322134 | 0.262846 | 0.262846 | 0.185771 | 0.185771 | 0 | 0 | 0 | 0.113997 | 693 | 22 | 72 | 31.5 | 0.824104 | 0.311688 | 0 | 0 | 1 | 0 | 0.625 | 0.277542 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.153846 | 0 | 0.153846 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2910c5c59d8ba3a8c530e8551e58a52db38377c4 | 254 | py | Python | grafana_api/api/__init__.py | sedan07/grafana_api | 4cc0b85e8660d9f21c8bd1997c5163a730ac2ee3 | [
"MIT"
] | null | null | null | grafana_api/api/__init__.py | sedan07/grafana_api | 4cc0b85e8660d9f21c8bd1997c5163a730ac2ee3 | [
"MIT"
] | null | null | null | grafana_api/api/__init__.py | sedan07/grafana_api | 4cc0b85e8660d9f21c8bd1997c5163a730ac2ee3 | [
"MIT"
] | null | null | null | from .base import Base
from .admin import Admin
from .dashboard import Dashboard
from .datasource import Datasource
from .folder import Folder
from .organisation import Organisation, Organisations
from .search import Search
from .user import User, Users
| 28.222222 | 53 | 0.826772 | 34 | 254 | 6.176471 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133858 | 254 | 8 | 54 | 31.75 | 0.954545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
2911bd336905b53ebe454ea6d5b0bca66ffa304e | 347 | py | Python | SimMuon/GEMDigitizer/python/muonGEMDigi_cff.py | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | SimMuon/GEMDigitizer/python/muonGEMDigi_cff.py | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 7 | 2016-07-17T02:34:54.000Z | 2019-08-13T07:58:37.000Z | SimMuon/GEMDigitizer/python/muonGEMDigi_cff.py | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | import FWCore.ParameterSet.Config as cms
from SimMuon.GEMDigitizer.muonGEMDigis_cfi import *
from SimMuon.GEMDigitizer.muonGEMPadDigis_cfi import *
from SimMuon.GEMDigitizer.muonGEMPadDigiClusters_cfi import *
muonGEMDigiTask = cms.Task(simMuonGEMDigis, simMuonGEMPadDigis, simMuonGEMPadDigiClusters)
muonGEMDigi = cms... | 38.555556 | 90 | 0.864553 | 34 | 347 | 8.735294 | 0.588235 | 0.111111 | 0.232323 | 0.13468 | 0.215488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074928 | 347 | 8 | 91 | 43.375 | 0.925234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
29320044fb1e6ea2d550bb85edcedd897afb61eb | 28,020 | py | Python | flask_app.py | mdaeron/clumpycrunch | 463d9241477acc557c4635b4d4f1f5338bf37617 | [
"BSD-3-Clause"
] | null | null | null | flask_app.py | mdaeron/clumpycrunch | 463d9241477acc557c4635b4d4f1f5338bf37617 | [
"BSD-3-Clause"
] | 1 | 2020-05-27T21:09:16.000Z | 2020-05-27T21:09:16.000Z | flask_app.py | mdaeron/clumpycrunch | 463d9241477acc557c4635b4d4f1f5338bf37617 | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python3
# from datetime import datetime
# from random import choices
# from string import ascii_lowercase
from flask import Flask, request, render_template, Response, send_file
from flaskext.markdown import Markdown
from D47crunch import D47data, pretty_table, make_csv, smart_type
from D47crunch import... | 44.975923 | 300 | 0.715667 | 4,869 | 28,020 | 4.028137 | 0.236394 | 0.004895 | 0.011778 | 0.010095 | 0.349207 | 0.228012 | 0.180034 | 0.160812 | 0.145924 | 0.132463 | 0 | 0.227334 | 0.093076 | 28,020 | 622 | 301 | 45.048232 | 0.544388 | 0.076838 | 0 | 0.127745 | 0 | 0.309381 | 0.608057 | 0.466008 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015968 | false | 0.001996 | 0.01996 | 0 | 0.077844 | 0.00998 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2951af032672242812dfd6a7fa6b331872d27c9b | 210 | py | Python | prepare_sets.py | mechtal/Vaccination_UK | f3ad91c128b8b7711fc03d12a115cbf3e660318f | [
"MIT"
] | null | null | null | prepare_sets.py | mechtal/Vaccination_UK | f3ad91c128b8b7711fc03d12a115cbf3e660318f | [
"MIT"
] | 17 | 2022-03-12T11:19:44.000Z | 2022-03-28T08:26:38.000Z | prepare_sets.py | mechtal/Vaccination_UK | f3ad91c128b8b7711fc03d12a115cbf3e660318f | [
"MIT"
] | null | null | null | def prepare_sets(dataset, feature_columns, y_column):
train_X, val_X, train_y, val_y = train_test_split(dataset[feature_columns], dataset[y_column], random_state=1)
return train_X, val_X, train_y, val_y | 70 | 114 | 0.785714 | 37 | 210 | 4.027027 | 0.459459 | 0.187919 | 0.281879 | 0.134228 | 0.268456 | 0.268456 | 0.268456 | 0.268456 | 0 | 0 | 0 | 0.005376 | 0.114286 | 210 | 3 | 115 | 70 | 0.795699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
29589b62fc1cb372684ea22b3b76f315253769f1 | 219 | py | Python | message_handlers/location_handler.py | pratyushmore/lunch-tag-bot | e0a055a2ee914c3bc5434244b17cfb7e3b1a7a9a | [
"MIT"
] | null | null | null | message_handlers/location_handler.py | pratyushmore/lunch-tag-bot | e0a055a2ee914c3bc5434244b17cfb7e3b1a7a9a | [
"MIT"
] | 1 | 2019-10-21T15:15:48.000Z | 2019-10-21T19:28:10.000Z | message_handlers/location_handler.py | pratyushmore/lunch-tag-bot | e0a055a2ee914c3bc5434244b17cfb7e3b1a7a9a | [
"MIT"
] | null | null | null | def location(messaging_adaptor, user, channel, location):
message = "Your location has been set to `{}`. You are ready to be matched for Lunch Tag :)".format(location)
messaging_adaptor.send_message(channel, message)
| 54.75 | 110 | 0.767123 | 31 | 219 | 5.322581 | 0.709677 | 0.206061 | 0.290909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127854 | 219 | 3 | 111 | 73 | 0.863874 | 0 | 0 | 0 | 0 | 0 | 0.365297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
297cba1ed48f76e8524cfa4c59799c094d9928a0 | 368 | py | Python | test.py | jdonovanCS/CS-352-Evolutionary-Computation | dca64068c1824dac8ec3983d7215effa426bc3bc | [
"BSD-3-Clause"
] | null | null | null | test.py | jdonovanCS/CS-352-Evolutionary-Computation | dca64068c1824dac8ec3983d7215effa426bc3bc | [
"BSD-3-Clause"
] | null | null | null | test.py | jdonovanCS/CS-352-Evolutionary-Computation | dca64068c1824dac8ec3983d7215effa426bc3bc | [
"BSD-3-Clause"
] | null | null | null | import argparse
import collections
import os
import random
import json
from copy import deepcopy
import ConfigSpace
import numpy as np
# from tabular_benchmarks import FCNetProteinStructureBenchmark, FCNetSliceLocalizationBenchmark,\
# FCNetNavalPropulsionBenchmark, FCNetParkinsonsTelemonitoringBenchmark
from ta... | 26.285714 | 98 | 0.872283 | 34 | 368 | 9.382353 | 0.617647 | 0.068966 | 0.131661 | 0.169279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.108696 | 368 | 14 | 99 | 26.285714 | 0.960366 | 0.461957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
462677ff68dd069f07b9a100cb78c22fa238e35f | 360 | py | Python | Interview/langTrans.py | dnootana/Python | 2881bafe8bc378fa3cae50a747fcea1a55630c63 | [
"MIT"
] | 1 | 2021-02-19T11:00:11.000Z | 2021-02-19T11:00:11.000Z | Interview/langTrans.py | dnootana/Python | 2881bafe8bc378fa3cae50a747fcea1a55630c63 | [
"MIT"
] | null | null | null | Interview/langTrans.py | dnootana/Python | 2881bafe8bc378fa3cae50a747fcea1a55630c63 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.8
table="".maketrans("0123456789","\N{Devanagari digit zero}\N{Devanagari digit one}"
"\N{Devanagari digit two}\N{Devanagari digit three}"
"\N{Devanagari digit four}\N{Devanagari digit five}"
"\N{Devanagari digit six}\N{Devanagari digit seven}"
"\N{Devanagari digit eight}\N{Devanagari digit nine... | 45 | 83 | 0.75 | 52 | 360 | 5.192308 | 0.442308 | 0.407407 | 0.592593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066265 | 0.077778 | 360 | 8 | 84 | 45 | 0.746988 | 0.063889 | 0 | 0 | 0 | 0 | 0.801187 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4636eb5b9d65657cf6249aa635cf51cca2defbb9 | 244 | py | Python | prickly-pufferfish/python_questions/add_to_zero.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 40 | 2020-08-02T07:38:22.000Z | 2021-07-26T01:46:50.000Z | prickly-pufferfish/python_questions/add_to_zero.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 134 | 2020-07-31T12:15:45.000Z | 2020-12-13T04:42:19.000Z | prickly-pufferfish/python_questions/add_to_zero.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 101 | 2020-07-31T12:00:47.000Z | 2021-11-01T09:06:58.000Z | """
Write a function with a list of ints as a paramter. /
Return True if any two nums sum to 0. /
>>> add_to_zero([]) /
False /
>>> add_to_zero([1]) /
False /
>>> add_to_zero([1, 2, 3]) /
False /
>>> add_to_zero([1, 2, 3, -2]) /
True /
"""
| 14.352941 | 53 | 0.569672 | 44 | 244 | 2.977273 | 0.545455 | 0.152672 | 0.274809 | 0.320611 | 0.374046 | 0.259542 | 0.259542 | 0 | 0 | 0 | 0 | 0.04712 | 0.217213 | 244 | 16 | 54 | 15.25 | 0.638743 | 0.963115 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
466460f359120dda2e7fd00e3c8bae00cdec4a39 | 4,930 | py | Python | ginga/canvas/coordmap.py | saimn/ginga | 9daf1875b4c1b0fad0a053c5f258bf7d4c0f3455 | [
"BSD-3-Clause"
] | null | null | null | ginga/canvas/coordmap.py | saimn/ginga | 9daf1875b4c1b0fad0a053c5f258bf7d4c0f3455 | [
"BSD-3-Clause"
] | null | null | null | ginga/canvas/coordmap.py | saimn/ginga | 9daf1875b4c1b0fad0a053c5f258bf7d4c0f3455 | [
"BSD-3-Clause"
] | null | null | null | #
# coordmap.py -- coordinate mappings.
#
# This is open-source software licensed under a BSD license.
# Please see the file LICENSE.txt for details.
#
from ginga import trcalc
from ginga.util import wcs
from ginga.util.six.moves import map
__all__ = ['CanvasMapper', 'DataMapper', 'OffsetMapper', 'WCSMapper']
class ... | 30.245399 | 71 | 0.631034 | 776 | 4,930 | 3.801546 | 0.154639 | 0.038983 | 0.044746 | 0.071186 | 0.643729 | 0.560678 | 0.538983 | 0.514915 | 0.504068 | 0.475593 | 0 | 0.002769 | 0.267546 | 4,930 | 162 | 72 | 30.432099 | 0.814179 | 0.230629 | 0 | 0.488636 | 0 | 0 | 0.011628 | 0 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.340909 | false | 0 | 0.034091 | 0.159091 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
46750d2f3ef713a053808ca00fc559cb70158512 | 283 | py | Python | Phase-2/Linked List/Day-70.py | CodedLadiesInnovateTech/python-challenges | 22ce26c68fea6c7c243ada831e47c52e27a62127 | [
"MIT"
] | 11 | 2020-05-11T08:41:21.000Z | 2022-02-27T08:21:37.000Z | Phase-2/Linked List/Day-70.py | CodedLadiesInnovateTech/python-challenges | 22ce26c68fea6c7c243ada831e47c52e27a62127 | [
"MIT"
] | 9 | 2020-05-12T10:46:06.000Z | 2020-05-28T17:37:19.000Z | Phase-2/Linked List/Day-70.py | CodedLadiesInnovateTech/python-challenges | 22ce26c68fea6c7c243ada831e47c52e27a62127 | [
"MIT"
] | 44 | 2020-05-10T20:53:32.000Z | 2021-04-25T18:47:08.000Z | '''
1. Write a Python program to access a specific item in a singly linked list using index value.
2. Write a Python program to set a new value of an item in a singly linked list using index value.
3. Write a Python program to delete the first item from a singly linked list.
'''
| 31.444444 | 98 | 0.749117 | 54 | 283 | 3.925926 | 0.481481 | 0.084906 | 0.169811 | 0.268868 | 0.65566 | 0.358491 | 0.358491 | 0.358491 | 0.358491 | 0 | 0 | 0.013393 | 0.208481 | 283 | 8 | 99 | 35.375 | 0.933036 | 0.964664 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
46759a54fd059282243dcf32a6f899667fd72ec3 | 25 | py | Python | ngboost/version.py | dsharpc/ngboost | 8c05e0cb3b95bb23d8f30f17042d2fd8926c4014 | [
"Apache-2.0"
] | null | null | null | ngboost/version.py | dsharpc/ngboost | 8c05e0cb3b95bb23d8f30f17042d2fd8926c4014 | [
"Apache-2.0"
] | null | null | null | ngboost/version.py | dsharpc/ngboost | 8c05e0cb3b95bb23d8f30f17042d2fd8926c4014 | [
"Apache-2.0"
] | null | null | null | __version__ = "0.3.4dev"
| 12.5 | 24 | 0.68 | 4 | 25 | 3.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 0.12 | 25 | 1 | 25 | 25 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0.32 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
467ab5f703a873dbd5ce9a6760742fdfbfa8b614 | 30 | py | Python | tests/resources/accepted/res_0_minpyversion_3_0.py | matteogabburo/python-ast-utils | 5069e9e53e8ed1f5305167254139b95967102aeb | [
"MIT"
] | 3 | 2020-12-22T10:43:39.000Z | 2021-01-01T16:42:32.000Z | tests/resources/accepted/res_0_minpyversion_3_0.py | matteogabburo/python-ast-utils | 5069e9e53e8ed1f5305167254139b95967102aeb | [
"MIT"
] | null | null | null | tests/resources/accepted/res_0_minpyversion_3_0.py | matteogabburo/python-ast-utils | 5069e9e53e8ed1f5305167254139b95967102aeb | [
"MIT"
] | null | null | null | import os
x = 7
print(x + 1)
| 6 | 12 | 0.566667 | 7 | 30 | 2.428571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 0.3 | 30 | 4 | 13 | 7.5 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
46812ee3bdef976af898f29d2c99337fc3788ea0 | 91 | py | Python | virtual/lib/python3.6/site-packages/macaroonbakery/tests/__init__.py | marknesh/pitches | 0a480d9bc2beafaefa0121393b1502cc05edab89 | [
"MIT"
] | null | null | null | virtual/lib/python3.6/site-packages/macaroonbakery/tests/__init__.py | marknesh/pitches | 0a480d9bc2beafaefa0121393b1502cc05edab89 | [
"MIT"
] | 11 | 2020-06-05T20:57:31.000Z | 2021-09-22T18:35:03.000Z | flask/lib/python3.6/site-packages/macaroonbakery/tests/__init__.py | JOFLIX/grapevines | 34576e01184570d79cc140b42ffb71d322132da6 | [
"MIT",
"Unlicense"
] | 1 | 2020-11-04T06:48:34.000Z | 2020-11-04T06:48:34.000Z | # Copyright 2017 Canonical Ltd.
# Licensed under the LGPLv3, see LICENCE file for details.
| 30.333333 | 58 | 0.78022 | 13 | 91 | 5.461538 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065789 | 0.164835 | 91 | 2 | 59 | 45.5 | 0.868421 | 0.945055 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
46955a61d6eda18fd04e0a7384414c8a588922bf | 85 | py | Python | File/admin.py | alstn2468/Likelion_DRF_Project | 35a359a05185f551ed2e999ab17e0108a69d6b57 | [
"MIT"
] | 28 | 2019-10-15T13:15:26.000Z | 2021-11-08T08:23:45.000Z | 15_LikeLionDRFProject/File/admin.py | jhleed/LikeLion_Django_Study_Summary | c788182af5bcfd16bdd4b57235a48659758e494b | [
"MIT"
] | 1 | 2021-05-22T18:27:01.000Z | 2021-05-22T18:27:01.000Z | 15_LikeLionDRFProject/File/admin.py | jhleed/LikeLion_Django_Study_Summary | c788182af5bcfd16bdd4b57235a48659758e494b | [
"MIT"
] | 17 | 2019-09-09T00:15:36.000Z | 2021-01-28T13:08:51.000Z | from django.contrib import admin
from .models import File
admin.site.register(File)
| 17 | 32 | 0.811765 | 13 | 85 | 5.307692 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 85 | 4 | 33 | 21.25 | 0.92 | 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 | 0 | 0 | 0 | 4 |
469e17c0eac34c546af54d506129856bf3802b70 | 83 | py | Python | 05_Practice1/Step06/yj.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | null | null | null | 05_Practice1/Step06/yj.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | 3 | 2020-11-04T05:38:53.000Z | 2021-03-02T02:15:19.000Z | 05_Practice1/Step06/yj.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | null | null | null | a = int(input())
for i in range(a):
print('* '*(a-a//2))
print(' *'*(a//2)) | 20.75 | 24 | 0.433735 | 15 | 83 | 2.4 | 0.6 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030769 | 0.216867 | 83 | 4 | 25 | 20.75 | 0.523077 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
469f11caff52684e1427825fdf274cfe729dc55b | 231 | py | Python | greydot/errors.py | TralahM/greydot-api | 34982c34bf878b2728e934147ca4ea38a78523e4 | [
"MIT"
] | null | null | null | greydot/errors.py | TralahM/greydot-api | 34982c34bf878b2728e934147ca4ea38a78523e4 | [
"MIT"
] | null | null | null | greydot/errors.py | TralahM/greydot-api | 34982c34bf878b2728e934147ca4ea38a78523e4 | [
"MIT"
] | null | null | null | class NoMessageRecipients(Exception):
"""
Raised when Message Recipients are not specified.
"""
pass
class InvalidAmount(Exception):
"""
Raised when an invalid currency amount is specified
"""
pass
| 19.25 | 55 | 0.666667 | 23 | 231 | 6.695652 | 0.73913 | 0.194805 | 0.246753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251082 | 231 | 11 | 56 | 21 | 0.890173 | 0.437229 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
46a2b9041cbdb5a67a2d23664c83d5328cdf8c09 | 260 | py | Python | apps/tasks/api/views.py | dayvidemerson/django-rest-example | 85eabb1e154cfd8ebc0019080b37cd3f1302c206 | [
"MIT"
] | null | null | null | apps/tasks/api/views.py | dayvidemerson/django-rest-example | 85eabb1e154cfd8ebc0019080b37cd3f1302c206 | [
"MIT"
] | null | null | null | apps/tasks/api/views.py | dayvidemerson/django-rest-example | 85eabb1e154cfd8ebc0019080b37cd3f1302c206 | [
"MIT"
] | null | null | null | from rest_framework import viewsets
from rest_framework import generics
from ..models import Task
from .serializers import TaskSerializer
class TaskViewSet(viewsets.ModelViewSet):
serializer_class = TaskSerializer
queryset = Task.objects.all()
| 21.666667 | 41 | 0.796154 | 29 | 260 | 7.034483 | 0.586207 | 0.078431 | 0.166667 | 0.22549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 260 | 12 | 42 | 21.666667 | 0.927273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
d3dd8c075e4b425fd099e7113200bcfa2c88d3c5 | 152 | py | Python | seisflows/system/lsf_sm.py | jpvantassel/seisflows | 5155ec177b5df0218e1fb5204f1fcd6969c66f20 | [
"BSD-2-Clause"
] | 97 | 2016-11-18T21:19:28.000Z | 2022-03-31T15:02:42.000Z | seisflows/system/lsf_sm.py | SuwenJunliu/seisflows | 14d246691acf8e8549487a5db7c7cd877d23a2ae | [
"BSD-2-Clause"
] | 30 | 2017-02-21T14:54:14.000Z | 2021-08-30T01:44:39.000Z | seisflows/system/lsf_sm.py | SuwenJunliu/seisflows | 14d246691acf8e8549487a5db7c7cd877d23a2ae | [
"BSD-2-Clause"
] | 78 | 2017-03-01T15:32:29.000Z | 2022-01-31T09:09:17.000Z | #
# This is Seisflows
#
# See LICENCE file
#
###############################################################################
raise NotImplementedError
| 16.888889 | 79 | 0.348684 | 8 | 152 | 6.625 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098684 | 152 | 8 | 80 | 19 | 0.386861 | 0.223684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d3f286f3f58a2b5e1d9a8943be97eb809e75f53c | 19,191 | py | Python | qa/char_analyze.py | JinkelaCrops/t2t-learning | 5d9b5a5164af763c24f1cbce9d97561e9f2b772c | [
"Apache-2.0"
] | 5 | 2019-03-28T03:52:32.000Z | 2021-02-24T07:09:26.000Z | qa/char_analyze.py | JinkelaCrops/t2t-learning | 5d9b5a5164af763c24f1cbce9d97561e9f2b772c | [
"Apache-2.0"
] | null | null | null | qa/char_analyze.py | JinkelaCrops/t2t-learning | 5d9b5a5164af763c24f1cbce9d97561e9f2b772c | [
"Apache-2.0"
] | 2 | 2018-08-07T03:43:09.000Z | 2019-12-09T06:41:40.000Z | # 所有的unicode字符
from collections import Counter
import qa.regex_utils as regutil
import re
resource_path = "/media/tmxmall/a36811aa-0e87-4ba1-b14f-370134452449/data/medicine.txt"
with open(resource_path, "r", encoding="utf8") as f:
char_stream = f.read()
char_dictionary = Counter(list(char_stream))
med_unicodes =... | 35.604824 | 124 | 0.472617 | 2,215 | 19,191 | 4.164334 | 0.237923 | 0.187229 | 0.255312 | 0.33608 | 0.189722 | 0.05399 | 0.029488 | 0.029488 | 0.029488 | 0.029488 | 0 | 0.236075 | 0.33672 | 19,191 | 538 | 125 | 35.671004 | 0.443947 | 0.000625 | 0 | 0 | 0 | 0 | 0.282933 | 0.014085 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00578 | false | 0 | 0.017341 | 0 | 0.028902 | 0.011561 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d3f53c7bfc8c69e3589a13dbe7ec8f22516451e9 | 622 | py | Python | challenges/largest_product_array/test_largest_product.py | jayadams011/data-structures-and-algorithms | b9a49c65ca769c82b2a34d840bd1e4dd626be025 | [
"MIT"
] | null | null | null | challenges/largest_product_array/test_largest_product.py | jayadams011/data-structures-and-algorithms | b9a49c65ca769c82b2a34d840bd1e4dd626be025 | [
"MIT"
] | 4 | 2018-03-22T16:56:06.000Z | 2018-03-28T23:30:29.000Z | challenges/largest_product_array/test_largest_product.py | jayadams011/data-structures-and-algorithms | b9a49c65ca769c82b2a34d840bd1e4dd626be025 | [
"MIT"
] | null | null | null | from largest_product.py import largest_product
import pytest
def test_product_returns():
"""test if return is a single product """
assert largest_product.largest([[2, 2]]) is 4
def test_returns_largest():
""" test if return is the largest of longer array """
assert largest_product.largest([[1, 3], [6... | 24.88 | 67 | 0.672026 | 96 | 622 | 4.145833 | 0.458333 | 0.211055 | 0.201005 | 0.203518 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032129 | 0.199357 | 622 | 24 | 68 | 25.916667 | 0.767068 | 0 | 0 | 0 | 0 | 0 | 0.030238 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | null | null | 0 | 0.166667 | null | null | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d3ffb66f226d9d5f6c6c34d8eb1cb0a764f6d67e | 255 | py | Python | passagens/models/classe_viagem.py | carlosrjhoe/Aplicacao_Formulario_com_Django | e16b8bc99aeb120e89c615a34261372bc81f6528 | [
"MIT"
] | null | null | null | passagens/models/classe_viagem.py | carlosrjhoe/Aplicacao_Formulario_com_Django | e16b8bc99aeb120e89c615a34261372bc81f6528 | [
"MIT"
] | null | null | null | passagens/models/classe_viagem.py | carlosrjhoe/Aplicacao_Formulario_com_Django | e16b8bc99aeb120e89c615a34261372bc81f6528 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.translation import gettext_lazy as _
class ClasseViagem(models.TextChoices):
ECONOMICA = 'ECO', _('Econômica')
EXECUTIVA = 'EXE', _('Executiva')
PRIMEIRA_CLASSE = 'PRI', _('Primeira') | 36.428571 | 54 | 0.690196 | 27 | 255 | 6.296296 | 0.777778 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188235 | 255 | 7 | 55 | 36.428571 | 0.821256 | 0 | 0 | 0 | 0 | 0 | 0.136719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3101d2087b21203c5098923bc3b4dd50b2a5f5c1 | 616 | py | Python | app/requests/users.py | codingedward/book-a-meal-api | 36756abc225bf7e8306330f2c3e223dc32af7869 | [
"MIT"
] | null | null | null | app/requests/users.py | codingedward/book-a-meal-api | 36756abc225bf7e8306330f2c3e223dc32af7869 | [
"MIT"
] | null | null | null | app/requests/users.py | codingedward/book-a-meal-api | 36756abc225bf7e8306330f2c3e223dc32af7869 | [
"MIT"
] | 2 | 2018-10-01T17:45:19.000Z | 2020-12-07T13:48:25.000Z | from .base import JsonRequest
class PostRequest(JsonRequest):
@staticmethod
def rules():
return {
'email': 'required|email|unique:User,email',
'password': 'required|string|confirmed|least_string:6',
'username': 'required|alpha|least_string:3',
'role': 'i... | 26.782609 | 67 | 0.586039 | 62 | 616 | 5.725806 | 0.483871 | 0.123944 | 0.146479 | 0.174648 | 0.659155 | 0.450704 | 0.253521 | 0.253521 | 0.253521 | 0.253521 | 0 | 0.017937 | 0.275974 | 616 | 22 | 68 | 28 | 0.778027 | 0 | 0 | 0.444444 | 0 | 0 | 0.413961 | 0.308442 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0.111111 | 0.055556 | 0.111111 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 4 |
3103a85a9b3f81384b162df662d084203f7e48e2 | 3,037 | py | Python | testing/test_input.py | arunumd/Rover | 622ed4775827514a5add787ffb25b338e8faacf3 | [
"MIT"
] | 1 | 2020-11-22T12:01:25.000Z | 2020-11-22T12:01:25.000Z | testing/test_input.py | arunumd/Rover | 622ed4775827514a5add787ffb25b338e8faacf3 | [
"MIT"
] | null | null | null | testing/test_input.py | arunumd/Rover | 622ed4775827514a5add787ffb25b338e8faacf3 | [
"MIT"
] | 2 | 2020-05-16T13:41:35.000Z | 2021-12-30T10:28:04.000Z | import unittest
from modules.Input import *
class CommandInputTest(unittest.TestCase):
def setUp(self):
self.field_a_locations = ["gOtOFieldAroW8",
" go to fieLDA RoW 18 ",
"gOTOfield A rOW88"]
self.field_b_locations = ["gOtOFie... | 46.723077 | 79 | 0.622654 | 376 | 3,037 | 4.787234 | 0.167553 | 0.216667 | 0.274444 | 0.346667 | 0.716111 | 0.660556 | 0.656111 | 0.577778 | 0.44 | 0.187778 | 0 | 0.035163 | 0.232137 | 3,037 | 64 | 80 | 47.453125 | 0.736707 | 0 | 0 | 0 | 0 | 0 | 0.120514 | 0 | 0 | 0 | 0 | 0 | 0.490566 | 1 | 0.132075 | false | 0 | 0.037736 | 0 | 0.188679 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3136a4ea2bcd00c8806e57580d4c6c2d114d3d2d | 68 | py | Python | 11024/11024.py3.py | isac322/BOJ | 35959dd1a63d75ebca9ed606051f7a649d5c0c7b | [
"MIT"
] | 14 | 2017-05-02T02:00:42.000Z | 2021-11-16T07:25:29.000Z | 11024/11024.py3.py | isac322/BOJ | 35959dd1a63d75ebca9ed606051f7a649d5c0c7b | [
"MIT"
] | 1 | 2017-12-25T14:18:14.000Z | 2018-02-07T06:49:44.000Z | 11024/11024.py3.py | isac322/BOJ | 35959dd1a63d75ebca9ed606051f7a649d5c0c7b | [
"MIT"
] | 9 | 2016-03-03T22:06:52.000Z | 2020-04-30T22:06:24.000Z | for _ in range(int(input())):
print(sum(map(int, input().split()))) | 34 | 38 | 0.632353 | 11 | 68 | 3.818182 | 0.818182 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 68 | 2 | 38 | 34 | 0.677419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
314a686b41ad5ce98c4fc71d262791e5baa688cc | 117 | py | Python | python/testData/completion/notImportedQualifiedName/UseImportPriorityWhenAddingImport/main.py | 06needhamt/intellij-community | 63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b | [
"Apache-2.0"
] | null | null | null | python/testData/completion/notImportedQualifiedName/UseImportPriorityWhenAddingImport/main.py | 06needhamt/intellij-community | 63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b | [
"Apache-2.0"
] | null | null | null | python/testData/completion/notImportedQualifiedName/UseImportPriorityWhenAddingImport/main.py | 06needhamt/intellij-community | 63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b | [
"Apache-2.0"
] | null | null | null | import subprocess
import sys
import django.conf
import django.utils.encoding
subprocess.Popen
sys.argv
plt.<caret> | 11.7 | 28 | 0.820513 | 17 | 117 | 5.647059 | 0.647059 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 117 | 10 | 29 | 11.7 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.571429 | null | null | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
314ff3ce95a071becc9963a4bf86bce7daa74c66 | 2,465 | py | Python | integration-test/830-windmill-zoom.py | roman-ianivskyy/vector-datasource | 3d59c0d9856d6bc2a78c4a9273b4e850c2e41d92 | [
"MIT"
] | null | null | null | integration-test/830-windmill-zoom.py | roman-ianivskyy/vector-datasource | 3d59c0d9856d6bc2a78c4a9273b4e850c2e41d92 | [
"MIT"
] | null | null | null | integration-test/830-windmill-zoom.py | roman-ianivskyy/vector-datasource | 3d59c0d9856d6bc2a78c4a9273b4e850c2e41d92 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
import dsl
from shapely.wkt import loads as wkt_loads
from . import FixtureTest
class WindmillZoom(FixtureTest):
def test_windmill_with_attraction(self):
# update windmill zoom to 15 and if attraction zoom to 14
# windmill with tourism = attraction
self.generate_... | 79.516129 | 1,057 | 0.714807 | 305 | 2,465 | 5.698361 | 0.47541 | 0.032221 | 0.017261 | 0.033372 | 0.129459 | 0.078251 | 0.049482 | 0 | 0 | 0 | 0 | 0.465682 | 0.148884 | 2,465 | 30 | 1,058 | 82.166667 | 0.362726 | 0.061663 | 0 | 0.210526 | 0 | 0.052632 | 0.610052 | 0.015598 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.105263 | false | 0 | 0.210526 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
31642639391c00a85e1a2f3c4f186e8a38649689 | 5,572 | py | Python | scripts/v.py | NatashaChopper/stage | b33654b6bfaa7d291e80327d83cd6849271cc656 | [
"BSD-2-Clause"
] | null | null | null | scripts/v.py | NatashaChopper/stage | b33654b6bfaa7d291e80327d83cd6849271cc656 | [
"BSD-2-Clause"
] | null | null | null | scripts/v.py | NatashaChopper/stage | b33654b6bfaa7d291e80327d83cd6849271cc656 | [
"BSD-2-Clause"
] | null | null | null | import numpy
with open ("dic.txt", "w", encoding="utf-8") as dic:
for x in range(5, 790, 1):
if 92 < x <= 113:
dic.write('"'+str(x)+'"'+":"+ '"'+'1'+'",')
elif 113 < x <= 133:
dic.write('"'+str(x)+'"'+":"+ '"'+'2'+'",')
elif 133 < x <= 153:
dic.w... | 43.193798 | 59 | 0.288227 | 619 | 5,572 | 2.594507 | 0.201939 | 0.303861 | 0.30137 | 0.328767 | 0.162516 | 0.022416 | 0 | 0 | 0 | 0 | 0 | 0.117854 | 0.337581 | 5,572 | 129 | 60 | 43.193798 | 0.317258 | 0 | 0 | 0 | 0 | 0 | 0.092929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.007874 | 0 | 0.007874 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
317ed9d058dadae1ec740f0850b99974ce2e984d | 293 | py | Python | retratodefases/phase_diagrams/__init__.py | Loracio/retrato-de-fases | a2d870a69b911af3b78288708cb569c957506940 | [
"MIT"
] | 3 | 2021-03-22T00:07:28.000Z | 2021-03-22T12:11:18.000Z | retratodefases/phase_diagrams/__init__.py | Loracio/retrato-de-fases | a2d870a69b911af3b78288708cb569c957506940 | [
"MIT"
] | null | null | null | retratodefases/phase_diagrams/__init__.py | Loracio/retrato-de-fases | a2d870a69b911af3b78288708cb569c957506940 | [
"MIT"
] | 2 | 2021-03-20T19:00:53.000Z | 2021-03-22T12:19:52.000Z | try:
__PHASE_DIAGRAMS_IMPORTED__
except NameError:
__PHASE_DIAGRAMS_IMPORTED__= False
if not __PHASE_DIAGRAMS_IMPORTED__:
from .phase_portrait import PhasePortrait
from .funcion1D import Funcion1D
from .nullclines import Nullcline2D
__PHASE_DIAGRAMS_IMPORTED__ = True | 26.636364 | 45 | 0.805461 | 32 | 293 | 6.59375 | 0.53125 | 0.246446 | 0.398104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012295 | 0.167235 | 293 | 11 | 46 | 26.636364 | 0.852459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.777778 | 0 | 0.777778 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3198fc009ad14ca016fe53373d72241bd818e6a1 | 231 | py | Python | PythonExercicios/ex031.py | Caio-Moretti/115.Exercicios-Python | 7e66fb1f44ea3eb4ade63f37d843242ac42ade84 | [
"MIT"
] | null | null | null | PythonExercicios/ex031.py | Caio-Moretti/115.Exercicios-Python | 7e66fb1f44ea3eb4ade63f37d843242ac42ade84 | [
"MIT"
] | null | null | null | PythonExercicios/ex031.py | Caio-Moretti/115.Exercicios-Python | 7e66fb1f44ea3eb4ade63f37d843242ac42ade84 | [
"MIT"
] | null | null | null | dis = float(input('Digite a distância da sua viagem em Km: '))
if dis <= 200:
print('O valor da sua passagem será {:.2f} reais'.format(dis * 0.5))
else:
print('O valor da sua passagem será {:.2f} reais'.format(dis * 0.45))
| 38.5 | 73 | 0.645022 | 41 | 231 | 3.634146 | 0.609756 | 0.100671 | 0.147651 | 0.174497 | 0.604027 | 0.604027 | 0.604027 | 0.604027 | 0.604027 | 0.604027 | 0 | 0.053476 | 0.190476 | 231 | 5 | 74 | 46.2 | 0.743316 | 0 | 0 | 0 | 0 | 0 | 0.528139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.4 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
319aeea582f12d05f825c637fc9e26f9381d34d7 | 94 | py | Python | TWITOFF/__init__.py | DSPT3/Twitoff | ba4a0359942a9981c9d985fa0a30cd0b44dd1d98 | [
"MIT"
] | null | null | null | TWITOFF/__init__.py | DSPT3/Twitoff | ba4a0359942a9981c9d985fa0a30cd0b44dd1d98 | [
"MIT"
] | 4 | 2021-06-08T21:03:37.000Z | 2022-03-12T00:21:25.000Z | TWITOFF/__init__.py | DSPT3/Twitoff | ba4a0359942a9981c9d985fa0a30cd0b44dd1d98 | [
"MIT"
] | 2 | 2020-02-28T11:59:32.000Z | 2021-07-12T02:28:34.000Z | """ Entry Point for Our Twitoff Flask App """
from .app import create_app
APP = create_app() | 18.8 | 45 | 0.712766 | 15 | 94 | 4.333333 | 0.666667 | 0.276923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180851 | 94 | 5 | 46 | 18.8 | 0.844156 | 0.393617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
31bc16b72d793c3793926c951b8b26eb5b85e70b | 43 | py | Python | python/testData/intentions/convertLambdaToFunction.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/intentions/convertLambdaToFunction.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/intentions/convertLambdaToFunction.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | newlist = lambda x<caret>, y: (x+y)/y
x = 1 | 21.5 | 37 | 0.581395 | 10 | 43 | 2.5 | 0.6 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.186047 | 43 | 2 | 38 | 21.5 | 0.685714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9ec518765538fd6d2d3d18e0ed23d60b0ac69f7f | 58 | py | Python | tests/__init__.py | bio2bel/famplex | 3a1dfb0f3da3eb33c2b4de658cf02ffb6b5bebaa | [
"MIT"
] | null | null | null | tests/__init__.py | bio2bel/famplex | 3a1dfb0f3da3eb33c2b4de658cf02ffb6b5bebaa | [
"MIT"
] | 3 | 2018-07-24T14:32:41.000Z | 2018-08-10T11:17:49.000Z | tests/__init__.py | bio2bel/famplex | 3a1dfb0f3da3eb33c2b4de658cf02ffb6b5bebaa | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Tests for Bio2BEL FamPlex."""
| 14.5 | 32 | 0.551724 | 7 | 58 | 4.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.172414 | 58 | 3 | 33 | 19.333333 | 0.625 | 0.844828 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9ec6363df3d16f3e41bfd55d3ca8396d912ca17a | 160 | py | Python | mazeexperiment/__main__.py | NickAnderegg/rpacr-mazeexperiment | 3afe6afb10b4ad61a169645e59f2ad0d0f92f565 | [
"MIT"
] | null | null | null | mazeexperiment/__main__.py | NickAnderegg/rpacr-mazeexperiment | 3afe6afb10b4ad61a169645e59f2ad0d0f92f565 | [
"MIT"
] | null | null | null | mazeexperiment/__main__.py | NickAnderegg/rpacr-mazeexperiment | 3afe6afb10b4ad61a169645e59f2ad0d0f92f565 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""mazeexperiment.__main__: executed when mazeexperiment directory is called as script."""
from .mazeexperiment import main
main()
| 20 | 90 | 0.71875 | 18 | 160 | 6.166667 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007353 | 0.15 | 160 | 7 | 91 | 22.857143 | 0.808824 | 0.66875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
9ec95a1a1ec287a29e316037c8a1f39e97c4bff8 | 97 | py | Python | funolympics/apps.py | codeema/Yokiyo | 2e710bca487ee393784c116b7db2db7337f73d40 | [
"MIT"
] | null | null | null | funolympics/apps.py | codeema/Yokiyo | 2e710bca487ee393784c116b7db2db7337f73d40 | [
"MIT"
] | 6 | 2020-05-20T15:29:55.000Z | 2021-09-08T02:02:43.000Z | funolympics/apps.py | codeema/Yokiyo | 2e710bca487ee393784c116b7db2db7337f73d40 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class FunolympicsConfig(AppConfig):
name = 'funolympics'
| 16.166667 | 35 | 0.773196 | 10 | 97 | 7.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154639 | 97 | 5 | 36 | 19.4 | 0.914634 | 0 | 0 | 0 | 0 | 0 | 0.113402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9ecf156b5761ad136db575bc3923db3ea214ba15 | 5,939 | py | Python | mmtbx/validation/regression/tst_restraints.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 155 | 2016-11-23T12:52:16.000Z | 2022-03-31T15:35:44.000Z | mmtbx/validation/regression/tst_restraints.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 590 | 2016-12-10T11:31:18.000Z | 2022-03-30T23:10:09.000Z | mmtbx/validation/regression/tst_restraints.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 115 | 2016-11-15T08:17:28.000Z | 2022-02-09T15:30:14.000Z |
from __future__ import absolute_import, division, print_function
from libtbx.utils import null_out
from libtbx import easy_pickle
from six.moves import cStringIO as StringIO
def run_validation(pdb_file, ignore_hd=True):
from mmtbx.validation import restraints
import mmtbx.command_line
cmdline = mmtbx.command_li... | 51.198276 | 79 | 0.506651 | 1,132 | 5,939 | 2.597173 | 0.287102 | 0.040816 | 0.038095 | 0.057143 | 0.265306 | 0.237755 | 0.172109 | 0.056463 | 0 | 0 | 0 | 0.329955 | 0.40192 | 5,939 | 115 | 80 | 51.643478 | 0.497748 | 0.013134 | 0 | 0.074766 | 0 | 0.476636 | 0.739583 | 0.011612 | 0 | 0 | 0 | 0 | 0.037383 | 1 | 0.018692 | false | 0 | 0.056075 | 0 | 0.084112 | 0.018692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9ed4d88c4f6045e4df06f3ac9733b88b158d09a9 | 245 | py | Python | 08-About_scrapy/douban/main.py | jiaxiaochu/spider | 4b0f751f76a31556a91dea719873cf2979e4be94 | [
"MIT"
] | null | null | null | 08-About_scrapy/douban/main.py | jiaxiaochu/spider | 4b0f751f76a31556a91dea719873cf2979e4be94 | [
"MIT"
] | 1 | 2020-08-27T10:25:38.000Z | 2020-08-27T10:25:38.000Z | 08-About_scrapy/douban/main.py | jiaxiaochu/spider | 4b0f751f76a31556a91dea719873cf2979e4be94 | [
"MIT"
] | null | null | null | # !/Library/Frameworks/Python.framework/Versions/3.7/bin/python3
# -*- coding:utf-8 -*-
# @Author : Jiazhixiang
# 导入cmdline模块,可以实现控制终端命令行。
from scrapy import cmdline
# 用execute()方法,输入运行scrapy的命令。
cmdline.execute(['scrapy', 'crawl', 'douban'])
| 24.5 | 64 | 0.726531 | 28 | 245 | 6.357143 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018018 | 0.093878 | 245 | 9 | 65 | 27.222222 | 0.783784 | 0.644898 | 0 | 0 | 0 | 0 | 0.209877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
9eedb43deb24d2533fe70662a5b08fab696d08f6 | 500 | py | Python | Crypto/py3compat.py | eddiejessup/transcrypt | 1a5894a2c355e1b88626a2b195e132bd7e701981 | [
"MIT"
] | 14 | 2015-02-15T02:17:07.000Z | 2020-07-15T03:02:46.000Z | Crypto/py3compat.py | eddiejessup/Transcrypt | 1a5894a2c355e1b88626a2b195e132bd7e701981 | [
"MIT"
] | 12 | 2015-04-11T14:26:14.000Z | 2021-09-07T09:25:38.000Z | Crypto/py3compat.py | eddiejessup/Transcrypt | 1a5894a2c355e1b88626a2b195e132bd7e701981 | [
"MIT"
] | 4 | 2016-02-27T16:06:59.000Z | 2019-09-04T04:01:05.000Z | __revision__ = "$Id$"
def b(s):
return s.encode("latin-1")
def bchr(s):
return bytes([s])
def bstr(s):
if isinstance(s, str):
return bytes(s, "latin-1")
else:
return bytes(s)
def bord(s):
return s
def tobytes(s):
if isinstance(s, bytes):
return s
else:
... | 13.513514 | 38 | 0.542 | 72 | 500 | 3.708333 | 0.347222 | 0.104869 | 0.179775 | 0.168539 | 0.449438 | 0.187266 | 0.187266 | 0 | 0 | 0 | 0 | 0.01173 | 0.318 | 500 | 36 | 39 | 13.888889 | 0.771261 | 0 | 0 | 0.478261 | 0 | 0 | 0.064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.043478 | 0.173913 | 0.695652 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
9ef42081bff35de1f92bff97bfccd08e32e6f3d8 | 395 | py | Python | studio_ghibli/movies/test_data.py | hbansal0122/studio_ghibli_project | 1a2df853f9d5088aa137f372ab0ee83ce8ba3667 | [
"MIT"
] | null | null | null | studio_ghibli/movies/test_data.py | hbansal0122/studio_ghibli_project | 1a2df853f9d5088aa137f372ab0ee83ce8ba3667 | [
"MIT"
] | null | null | null | studio_ghibli/movies/test_data.py | hbansal0122/studio_ghibli_project | 1a2df853f9d5088aa137f372ab0ee83ce8ba3667 | [
"MIT"
] | null | null | null | """ Test data"""
stub_films = [{
"id": "12345",
"title": "This is film one",
},{
"id": "23456",
"title": "This is film two",
}]
stub_poeple = [{
"name": "person 1",
"films": ["url/12345", "url/23456"]
},{
"name": "person 2",
"films": ["url/23456"]
},{
"name": "person 3",
"film... | 16.458333 | 39 | 0.463291 | 46 | 395 | 3.934783 | 0.456522 | 0.220994 | 0.21547 | 0.165746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132203 | 0.253165 | 395 | 24 | 40 | 16.458333 | 0.481356 | 0.022785 | 0 | 0.4 | 0 | 0 | 0.444737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9ef4febad34c41f83b4899c15a9e9cfec2b40a27 | 236 | py | Python | data_converters/fsdbripper/create_new_db.py | osvaldolove/amiberry-api | 3310592d2411c69f7c225edb3e3907e6a5e6caf8 | [
"MIT"
] | null | null | null | data_converters/fsdbripper/create_new_db.py | osvaldolove/amiberry-api | 3310592d2411c69f7c225edb3e3907e6a5e6caf8 | [
"MIT"
] | null | null | null | data_converters/fsdbripper/create_new_db.py | osvaldolove/amiberry-api | 3310592d2411c69f7c225edb3e3907e6a5e6caf8 | [
"MIT"
] | 1 | 2018-08-22T21:55:26.000Z | 2018-08-22T21:55:26.000Z | import sqlite3
from constants import DESTINATION_DB
destination_connection = sqlite3.connect(DESTINATION_DB)
destination_cursor = destination_connection.cursor()
destination_cursor.execute('CREATE TABLE game(uuid, payload)')
| 26.222222 | 63 | 0.817797 | 26 | 236 | 7.192308 | 0.576923 | 0.139037 | 0.256684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009569 | 0.114407 | 236 | 8 | 64 | 29.5 | 0.885167 | 0 | 0 | 0 | 0 | 0 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
7303be01ae89f9c41f09c1617f6cea31c52d0cf4 | 347 | py | Python | codes_/1189_Maximum_Number_of_Balloons.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | codes_/1189_Maximum_Number_of_Balloons.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | codes_/1189_Maximum_Number_of_Balloons.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | # %% [1189. *Maximum Number of Balloons](https://leetcode.com/problems/maximum-number-of-balloons/)
# 問題:textから'ballon'を構成できる数を返せ
# 解法:collections.Counterを用いる
class Solution:
def maxNumberOfBalloons(self, text: str) -> int:
c = collections.Counter(text)
return min(c[s] // n for s, n in collections.C... | 43.375 | 99 | 0.700288 | 45 | 347 | 5.4 | 0.755556 | 0.106996 | 0.123457 | 0.1893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.146974 | 347 | 7 | 100 | 49.571429 | 0.807432 | 0.43804 | 0 | 0 | 0 | 0 | 0.036649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
73204039a36f632a872aa19aeb8f09ee3f95315d | 424 | py | Python | 12-transformar_metro.py | tainagirotto/exercicios-py | 39107c05a0a8e5230cd48876ad8e1ad6f0a2ff59 | [
"MIT"
] | null | null | null | 12-transformar_metro.py | tainagirotto/exercicios-py | 39107c05a0a8e5230cd48876ad8e1ad6f0a2ff59 | [
"MIT"
] | null | null | null | 12-transformar_metro.py | tainagirotto/exercicios-py | 39107c05a0a8e5230cd48876ad8e1ad6f0a2ff59 | [
"MIT"
] | null | null | null | # Ler um número em metros e mostrar seu valor em cm e mm:
m = float(input('Digite o valor em metros: '))
dm = m * 10
cm = m * 100
mm = m * 1000
km = m/1000
hm = m/100
dam = m/10
print('O valor em cm é {}' .format(cm))
print('O valor em milímetros é {}' .format(mm))
print('O valor em dm é {}' .format(dm))
print('O val... | 24.941176 | 57 | 0.613208 | 85 | 424 | 3.058824 | 0.317647 | 0.215385 | 0.215385 | 0.3 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053571 | 0.207547 | 424 | 16 | 58 | 26.5 | 0.720238 | 0.129717 | 0 | 0 | 0 | 0 | 0.376022 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.461538 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
7329f5fd535980ef38334fa719dd3596b7005058 | 176 | py | Python | python-while/exercise4.py | crobert7/Py-Basics | c1d1a1441de6cbee409c59ddda2b11bc7ee16df1 | [
"MIT"
] | null | null | null | python-while/exercise4.py | crobert7/Py-Basics | c1d1a1441de6cbee409c59ddda2b11bc7ee16df1 | [
"MIT"
] | null | null | null | python-while/exercise4.py | crobert7/Py-Basics | c1d1a1441de6cbee409c59ddda2b11bc7ee16df1 | [
"MIT"
] | null | null | null | word = input('Type a word: ')
while word != 'chupacabra':
word = input('Type a word: ')
if word == 'chupacabra':
print('You are out of the loop')
break | 25.142857 | 40 | 0.5625 | 24 | 176 | 4.125 | 0.625 | 0.181818 | 0.262626 | 0.282828 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.289773 | 176 | 7 | 41 | 25.142857 | 0.792 | 0 | 0 | 0.333333 | 0 | 0 | 0.389831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
733f199984f8b993cc317085788a45b7c591ad8b | 1,084 | py | Python | Projects/herdimmunity/Person.py | Tech-at-DU/ACS-1111.1-Object-Oriented-Programming | e4405678282b7fbd78a3b8337116b61083417343 | [
"MIT"
] | null | null | null | Projects/herdimmunity/Person.py | Tech-at-DU/ACS-1111.1-Object-Oriented-Programming | e4405678282b7fbd78a3b8337116b61083417343 | [
"MIT"
] | null | null | null | Projects/herdimmunity/Person.py | Tech-at-DU/ACS-1111.1-Object-Oriented-Programming | e4405678282b7fbd78a3b8337116b61083417343 | [
"MIT"
] | 1 | 2021-11-01T21:04:52.000Z | 2021-11-01T21:04:52.000Z | import random
from Virus import Virus
class Person:
''' The simulation will contain people who will make up a population.'''
def __init__(self, is_vaccinated, infection=None):
''' We start out with is_alive = True
All other values will be set by the simulation through the parameters when
... | 37.37931 | 86 | 0.665129 | 150 | 1,084 | 4.726667 | 0.506667 | 0.025388 | 0.045134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005168 | 0.285978 | 1,084 | 28 | 87 | 38.714286 | 0.910853 | 0.615314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.222222 | false | 0.111111 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
b42bbf006e731b294f9bc03e50361e650c57e4a5 | 97 | py | Python | 17.py | yonghuatang/python | 6d53bf2f1e75ac03b07eb56ff83e26d8b5155bb1 | [
"MIT"
] | null | null | null | 17.py | yonghuatang/python | 6d53bf2f1e75ac03b07eb56ff83e26d8b5155bb1 | [
"MIT"
] | null | null | null | 17.py | yonghuatang/python | 6d53bf2f1e75ac03b07eb56ff83e26d8b5155bb1 | [
"MIT"
] | null | null | null | from datetime import date
now = date.today()
print('The date today is', now, now.strftime("%A"))
| 24.25 | 51 | 0.701031 | 16 | 97 | 4.25 | 0.6875 | 0.264706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134021 | 97 | 3 | 52 | 32.333333 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0.195876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b4631189d6d2e11cc9e3587fbf8d89019ec14498 | 6,856 | py | Python | data_service/api/data_api.py | statisticsnorway/microdata-data-service | d477b7b75589d4c977771122558c948c040a1106 | [
"Apache-2.0"
] | null | null | null | data_service/api/data_api.py | statisticsnorway/microdata-data-service | d477b7b75589d4c977771122558c948c040a1106 | [
"Apache-2.0"
] | 7 | 2021-10-08T13:40:33.000Z | 2022-02-04T10:37:55.000Z | data_service/api/data_api.py | statisticsnorway/microdata-data-service | d477b7b75589d4c977771122558c948c040a1106 | [
"Apache-2.0"
] | null | null | null | import logging
import os
import io
from fastapi import APIRouter, Depends, Header
from fastapi.responses import FileResponse, StreamingResponse
from fastapi import HTTPException, status
import pyarrow as pa
import pyarrow.parquet as pq
from data_service.api.query_models import (
InputTimePeriodQuery, InputTimeQue... | 35.708333 | 79 | 0.67605 | 809 | 6,856 | 5.53152 | 0.131026 | 0.053631 | 0.030391 | 0.035978 | 0.764246 | 0.748603 | 0.748603 | 0.741453 | 0.698101 | 0.698101 | 0 | 0.005101 | 0.227976 | 6,856 | 191 | 80 | 35.895288 | 0.840355 | 0.093932 | 0 | 0.507576 | 0 | 0 | 0.1927 | 0.045215 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05303 | false | 0 | 0.113636 | 0 | 0.219697 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b47abe86e6343865f80d317d811f2885ba219aec | 122 | py | Python | Pacote Dowload/pythonProject/aula020.py | J297-hub/exercicios-de-python | cde355f9aeb43abce7890cd9879646bfe768190e | [
"MIT"
] | null | null | null | Pacote Dowload/pythonProject/aula020.py | J297-hub/exercicios-de-python | cde355f9aeb43abce7890cd9879646bfe768190e | [
"MIT"
] | null | null | null | Pacote Dowload/pythonProject/aula020.py | J297-hub/exercicios-de-python | cde355f9aeb43abce7890cd9879646bfe768190e | [
"MIT"
] | null | null | null | def soma (a,b):
print(f'A = {a} e B = {b}')
s=a+b
print(f'A soma A + B ={s}')
#Programa Principal
soma(4,5)
| 13.555556 | 31 | 0.491803 | 26 | 122 | 2.307692 | 0.461538 | 0.1 | 0.2 | 0.266667 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.278689 | 122 | 8 | 32 | 15.25 | 0.659091 | 0.147541 | 0 | 0 | 0 | 0 | 0.330097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0.4 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b485f966490bf3490f3dba52ae21698a1d35eef4 | 265 | py | Python | app/admin.py | CS-Hunt/Get-Placed | f79f79f2dd37510405a24578b3a91acea00f9244 | [
"MIT"
] | 14 | 2021-08-28T04:05:55.000Z | 2022-02-20T07:03:16.000Z | app/admin.py | CS-Hunt/Get-Placed | f79f79f2dd37510405a24578b3a91acea00f9244 | [
"MIT"
] | null | null | null | app/admin.py | CS-Hunt/Get-Placed | f79f79f2dd37510405a24578b3a91acea00f9244 | [
"MIT"
] | 9 | 2021-08-28T04:06:03.000Z | 2021-09-26T16:45:28.000Z | from django.contrib import admin
from .models import Placement_Company_Detail,Profile,StudentBlogModel,ResorcesModel
admin.site.register(Placement_Company_Detail)
admin.site.register(Profile)
admin.site.register(StudentBlogModel)
admin.site.register(ResorcesModel) | 37.857143 | 83 | 0.875472 | 32 | 265 | 7.125 | 0.4375 | 0.157895 | 0.298246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045283 | 265 | 7 | 84 | 37.857143 | 0.901186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 4 |
81f0785b99135f37da39fd3dcab4612074c70aed | 718 | py | Python | examples/03-interception/api.py | nomadsinteractive/migi | 7ebcd0d362f642b889c309c20618ff36f1448c28 | [
"Apache-2.0"
] | 3 | 2022-01-09T10:09:55.000Z | 2022-01-11T03:37:55.000Z | examples/03-interception/api.py | nomadsinteractive/migi | 7ebcd0d362f642b889c309c20618ff36f1448c28 | [
"Apache-2.0"
] | null | null | null | examples/03-interception/api.py | nomadsinteractive/migi | 7ebcd0d362f642b889c309c20618ff36f1448c28 | [
"Apache-2.0"
] | null | null | null | from ctypes import *
from migi.decorators import stdcall
@stdcall('MessageBoxW', 'User32.dll', interceptable=True)
def _native_message_box_w(hwnd: c_void_p, content: c_wchar_p, title: c_wchar_p, flags: c_uint32) -> c_int32:
if wstring_at(content) == "I'm in":
return _native_message_box_w.call_original(hw... | 32.636364 | 108 | 0.763231 | 109 | 718 | 4.633028 | 0.422018 | 0.138614 | 0.190099 | 0.20198 | 0.29505 | 0.154455 | 0.154455 | 0.154455 | 0 | 0 | 0 | 0.014354 | 0.126741 | 718 | 21 | 109 | 34.190476 | 0.791069 | 0 | 0 | 0 | 0 | 0 | 0.048747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0.083333 | 0.666667 | 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 | 0 | 1 | 0 | 0 | 4 |
81f8404fe9a704d334f1bcd998cf63672186b71f | 55 | py | Python | backend/code/start.py | socek/iep | 793e35ca5304eef7b7dacb5dd8d486622f497759 | [
"Apache-2.0"
] | null | null | null | backend/code/start.py | socek/iep | 793e35ca5304eef7b7dacb5dd8d486622f497759 | [
"Apache-2.0"
] | null | null | null | backend/code/start.py | socek/iep | 793e35ca5304eef7b7dacb5dd8d486622f497759 | [
"Apache-2.0"
] | null | null | null | if __name__ == "__main__":
print("Nothing yet...")
| 18.333333 | 27 | 0.6 | 6 | 55 | 4.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 55 | 2 | 28 | 27.5 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
81fb080ba80dc6a4245823877af0ad4179c7b39d | 87 | py | Python | tests/data/program_analysis/PyAST2CAST/import/test_import_3.py | rsulli55/automates | 1647a8eef85c4f03086a10fa72db3b547f1a0455 | [
"Apache-2.0"
] | 17 | 2018-12-19T16:32:38.000Z | 2021-10-05T07:58:15.000Z | tests/data/program_analysis/PyAST2CAST/import/test_import_3.py | rsulli55/automates | 1647a8eef85c4f03086a10fa72db3b547f1a0455 | [
"Apache-2.0"
] | 183 | 2018-12-20T17:03:01.000Z | 2022-02-23T22:21:42.000Z | tests/data/program_analysis/PyAST2CAST/import/test_import_3.py | rsulli55/automates | 1647a8eef85c4f03086a10fa72db3b547f1a0455 | [
"Apache-2.0"
] | 5 | 2019-01-04T22:37:49.000Z | 2022-01-19T17:34:16.000Z | # 'from ... import ...' statement
from sys import exit
def main():
exit(0)
main() | 12.428571 | 33 | 0.597701 | 12 | 87 | 4.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 0.218391 | 87 | 7 | 34 | 12.428571 | 0.75 | 0.356322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c32db06fd5b31b4a1c0ead0ae4470b3896648d58 | 1,180 | py | Python | wonambi/attr/__init__.py | wonambi-python/wonambi | 4e2834cdd799576d1a231ecb48dfe4da1364fe3a | [
"BSD-3-Clause"
] | 63 | 2017-12-30T08:11:17.000Z | 2022-01-28T10:34:20.000Z | wonambi/attr/__init__.py | wonambi-python/wonambi | 4e2834cdd799576d1a231ecb48dfe4da1364fe3a | [
"BSD-3-Clause"
] | 23 | 2017-09-08T08:29:49.000Z | 2022-03-17T08:19:13.000Z | wonambi/attr/__init__.py | wonambi-python/wonambi | 4e2834cdd799576d1a231ecb48dfe4da1364fe3a | [
"BSD-3-Clause"
] | 12 | 2017-09-18T12:48:36.000Z | 2021-09-22T07:16:07.000Z | """Packages containing all the possible attributes to recordings, such as
- channels (module "chan") with class:
- Chan
- anatomical info (module "anat") with class:
- Surf
- annotations and sleep scores (module "annotations") with class:
- Annotations
Possibly include forward and i... | 43.703704 | 79 | 0.766102 | 180 | 1,180 | 5.011111 | 0.561111 | 0.029933 | 0.031042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188983 | 1,180 | 26 | 80 | 45.384615 | 0.942529 | 0.880508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
c33a308f4b93fcb1577dde001c5501e493e62b57 | 146 | py | Python | WeatherPy/config.py.py | Brownc03/python-api-challenge | 24af57a6652b2990e8bdbc1e8e01566a2e7878b8 | [
"ADSL"
] | null | null | null | WeatherPy/config.py.py | Brownc03/python-api-challenge | 24af57a6652b2990e8bdbc1e8e01566a2e7878b8 | [
"ADSL"
] | null | null | null | WeatherPy/config.py.py | Brownc03/python-api-challenge | 24af57a6652b2990e8bdbc1e8e01566a2e7878b8 | [
"ADSL"
] | null | null | null | # OpenWeatherMap API Key
weather_api_key = "ae41fcf95db0d612b74e2b509abe9684"
# Google API Key
g_key = "AIzaSyCuF1rT6NscWq62bcBm0tZM7hKlaeWfONQ" | 29.2 | 52 | 0.842466 | 13 | 146 | 9.230769 | 0.615385 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183206 | 0.10274 | 146 | 5 | 53 | 29.2 | 0.732824 | 0.253425 | 0 | 0 | 0 | 0 | 0.663551 | 0.663551 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c34c38cdb59ab3adcb9297c65de4aee9cda600b1 | 1,328 | py | Python | py3canvas/tests/shared_brand_configs.py | tylerclair/py3canvas | 7485d458606b65200f0ffa5bbe597a9d0bee189f | [
"MIT"
] | null | null | null | py3canvas/tests/shared_brand_configs.py | tylerclair/py3canvas | 7485d458606b65200f0ffa5bbe597a9d0bee189f | [
"MIT"
] | null | null | null | py3canvas/tests/shared_brand_configs.py | tylerclair/py3canvas | 7485d458606b65200f0ffa5bbe597a9d0bee189f | [
"MIT"
] | null | null | null | """SharedBrandConfigs API Tests for Version 1.0.
This is a testing template for the generated SharedBrandConfigsAPI Class.
"""
import unittest
import requests
import secrets
from py3canvas.apis.shared_brand_configs import SharedBrandConfigsAPI
from py3canvas.apis.shared_brand_configs import Sharedbrandconfig
class T... | 37.942857 | 126 | 0.752259 | 156 | 1,328 | 6.237179 | 0.403846 | 0.030832 | 0.107914 | 0.073998 | 0.510791 | 0.510791 | 0.445015 | 0.308325 | 0.308325 | 0.170606 | 0 | 0.0037 | 0.185994 | 1,328 | 34 | 127 | 39.058824 | 0.896392 | 0.481175 | 0 | 0.117647 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0.117647 | 0.294118 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
6f0b8327462eef4971df182fcdc4e7e99669fd00 | 210 | py | Python | sborl/__init__.py | canonical/sborl | f821ecfcbf977d0605def66dca19ea5e8e39b5a3 | [
"Apache-2.0"
] | null | null | null | sborl/__init__.py | canonical/sborl | f821ecfcbf977d0605def66dca19ea5e8e39b5a3 | [
"Apache-2.0"
] | null | null | null | sborl/__init__.py | canonical/sborl | f821ecfcbf977d0605def66dca19ea5e8e39b5a3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 Canonical Ltd.
# See LICENSE file for licensing details.
__version__ = "0.0.8"
# flake8: noqa: F401,F402
from . import errors, events, relation, testing
from .relation import EndpointWrapper
| 23.333333 | 47 | 0.761905 | 28 | 210 | 5.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 0.152381 | 210 | 8 | 48 | 26.25 | 0.797753 | 0.442857 | 0 | 0 | 0 | 0 | 0.044248 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
6f6a38a0483844a3f770817a9b327db335f9b10a | 255 | py | Python | ssrl/providers/base.py | AspirinGeyer/PySSRL | bdb27d7ada2fc317b8e2ea18f389e280d58e24ac | [
"Apache-2.0"
] | 6 | 2019-06-07T19:25:51.000Z | 2019-10-30T01:56:29.000Z | ssrl/providers/base.py | AspirinGeyer/PySSRL | bdb27d7ada2fc317b8e2ea18f389e280d58e24ac | [
"Apache-2.0"
] | 1 | 2019-08-26T00:05:50.000Z | 2019-08-26T00:05:50.000Z | ssrl/providers/base.py | AspirinGeyer/PySSRL | bdb27d7ada2fc317b8e2ea18f389e280d58e24ac | [
"Apache-2.0"
] | 1 | 2019-10-30T01:56:33.000Z | 2019-10-30T01:56:33.000Z | # -*- coding:utf-8 -*-
class BaseProvider(object):
@staticmethod
def loads(link_url):
raise NotImplementedError("Implemetion required.")
@staticmethod
def dumps(conf):
raise NotImplementedError("Implemetion required.")
| 19.615385 | 58 | 0.670588 | 23 | 255 | 7.391304 | 0.73913 | 0.176471 | 0.411765 | 0.505882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004975 | 0.211765 | 255 | 12 | 59 | 21.25 | 0.840796 | 0.078431 | 0 | 0.571429 | 0 | 0 | 0.180258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6f76ec963af630c9f2623b7e32036a92ed42bb1c | 8,778 | py | Python | tests/basic_step_tests.py | kodexa-ai/kodexa | 568466b3dc4758babf2d318dc91b1c09ec60845d | [
"Apache-2.0"
] | 1 | 2020-08-31T09:32:39.000Z | 2020-08-31T09:32:39.000Z | tests/basic_step_tests.py | kodexa-ai/kodexa | 568466b3dc4758babf2d318dc91b1c09ec60845d | [
"Apache-2.0"
] | 13 | 2020-04-08T10:53:26.000Z | 2022-03-30T09:51:29.000Z | tests/basic_step_tests.py | kodexa-ai/kodexa | 568466b3dc4758babf2d318dc91b1c09ec60845d | [
"Apache-2.0"
] | 1 | 2020-04-12T13:10:51.000Z | 2020-04-12T13:10:51.000Z | import os
import pytest
from kodexa import Document, Pipeline, PipelineContext, TagsToKeyValuePairExtractor, RollupTransformer
def get_test_directory():
return os.path.dirname(os.path.abspath(__file__)) + "/../test_documents/"
@pytest.mark.skip
def test_html_rollup():
document = Document.from_msgpack(open... | 45.71875 | 224 | 0.691729 | 1,201 | 8,778 | 4.882598 | 0.16403 | 0.072135 | 0.055423 | 0.085266 | 0.7691 | 0.742156 | 0.735846 | 0.675477 | 0.643247 | 0.643247 | 0 | 0.024663 | 0.163933 | 8,778 | 191 | 225 | 45.958115 | 0.774356 | 0.192982 | 0 | 0.534483 | 0 | 0.008621 | 0.144823 | 0.020142 | 0 | 0 | 0 | 0 | 0.491379 | 1 | 0.043103 | false | 0 | 0.025862 | 0.008621 | 0.077586 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6f79392055980ee88fc9adbd173f470e11c846bf | 158 | py | Python | dftimewolf/lib/containers/__init__.py | fooris/dftimewolf | 5df863dad1518e4c4109f0563efa7458df26f7d2 | [
"Apache-2.0"
] | 1 | 2021-01-21T19:53:37.000Z | 2021-01-21T19:53:37.000Z | dftimewolf/lib/containers/__init__.py | joachimmetz/dftimewolf | 9181bd9e860a467495ca4ab66e2c3873cbcbf529 | [
"Apache-2.0"
] | null | null | null | dftimewolf/lib/containers/__init__.py | joachimmetz/dftimewolf | 9181bd9e860a467495ca4ab66e2c3873cbcbf529 | [
"Apache-2.0"
] | null | null | null | """Make containers available here."""
from .report import Report
from .threat_intelligence import ThreatIntelligence
from .stackdriver import StackdriverLogs
| 31.6 | 51 | 0.835443 | 17 | 158 | 7.705882 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101266 | 158 | 4 | 52 | 39.5 | 0.922535 | 0.196203 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
48b9e626c31a3acad3ffc788ac2313af13310a0d | 120 | py | Python | tests/core/test_core_renderer.py | timvink/pheasant | eb5b0a8b5473baad5ad4903984433fe763f5312e | [
"MIT"
] | 24 | 2018-05-25T15:23:30.000Z | 2021-06-09T10:56:52.000Z | tests/core/test_core_renderer.py | timvink/pheasant | eb5b0a8b5473baad5ad4903984433fe763f5312e | [
"MIT"
] | 14 | 2019-04-30T10:51:01.000Z | 2020-09-16T20:37:30.000Z | tests/core/test_core_renderer.py | timvink/pheasant | eb5b0a8b5473baad5ad4903984433fe763f5312e | [
"MIT"
] | 9 | 2019-06-12T10:54:18.000Z | 2022-01-15T21:19:05.000Z | from pheasant.renderers.jupyter.jupyter import Jupyter
jupyter = Jupyter()
jupyter.findall("{{3}}3{{5}}")
jupyter.page
| 20 | 54 | 0.75 | 16 | 120 | 5.625 | 0.5625 | 0.622222 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027273 | 0.083333 | 120 | 5 | 55 | 24 | 0.790909 | 0 | 0 | 0 | 0 | 0 | 0.091667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 4 |
48bc446a06d58d6a75df610f9236257a1d789475 | 9,669 | py | Python | malaya_speech/train/model/fastspeechsplit/model.py | ishine/malaya-speech | fd34afc7107af1656dff4b3201fa51dda54fde18 | [
"MIT"
] | 111 | 2020-08-31T04:58:54.000Z | 2022-03-29T15:44:18.000Z | malaya_speech/train/model/fastspeechsplit/model.py | ishine/malaya-speech | fd34afc7107af1656dff4b3201fa51dda54fde18 | [
"MIT"
] | 14 | 2020-12-16T07:27:22.000Z | 2022-03-15T17:39:01.000Z | malaya_speech/train/model/fastspeechsplit/model.py | ishine/malaya-speech | fd34afc7107af1656dff4b3201fa51dda54fde18 | [
"MIT"
] | 29 | 2021-02-09T08:57:15.000Z | 2022-03-12T14:09:19.000Z | import tensorflow as tf
from ..fastspeech.model import (
TFFastSpeechEncoder,
TFTacotronPostnet,
TFFastSpeechLayer,
)
from ..speechsplit.model import InterpLnr
import numpy as np
import copy
class Encoder_6(tf.keras.layers.Layer):
def __init__(self, config, hparams, **kwargs):
super(Encoder_6,... | 34.532143 | 79 | 0.617541 | 1,296 | 9,669 | 4.293981 | 0.077932 | 0.038994 | 0.039712 | 0.038814 | 0.81761 | 0.775202 | 0.726685 | 0.714286 | 0.62965 | 0.576819 | 0 | 0.029487 | 0.270452 | 9,669 | 279 | 80 | 34.655914 | 0.759427 | 0 | 0 | 0.497817 | 0 | 0 | 0.031751 | 0.004551 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061135 | false | 0 | 0.021834 | 0 | 0.144105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
48da319d7adab06ea080a4bfe703b82db0fccf2a | 1,106 | py | Python | elliptic_moab/Mesh/MeshQL.py | padmec-reservoir/elliptic_moab | a3b15f29a621c35a8279fd163326a0895aa67f30 | [
"MIT"
] | null | null | null | elliptic_moab/Mesh/MeshQL.py | padmec-reservoir/elliptic_moab | a3b15f29a621c35a8279fd163326a0895aa67f30 | [
"MIT"
] | null | null | null | elliptic_moab/Mesh/MeshQL.py | padmec-reservoir/elliptic_moab | a3b15f29a621c35a8279fd163326a0895aa67f30 | [
"MIT"
] | null | null | null | from typing import Type
from elliptic.Kernel.Context import ContextDelegate
from .Selector import SelectorImplementation
from .Manager import ManagerImplementation
from .Computer import ComputerImplementation
class MeshQLImplementation(ComputerImplementation, ManagerImplementation, SelectorImplementation):
def ... | 34.5625 | 98 | 0.654611 | 98 | 1,106 | 7.22449 | 0.428571 | 0.077684 | 0.127119 | 0.176554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.264919 | 1,106 | 31 | 99 | 35.677419 | 0.870849 | 0 | 0 | 0.095238 | 0 | 0 | 0.149186 | 0.018987 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0.095238 | 0.238095 | 0.095238 | 0.714286 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
48dcecd475c9d9c66ff47a1b76abf99c791428f8 | 805 | py | Python | tests/test_268.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | tests/test_268.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | tests/test_268.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import pytest
"""
Test 268. Missing Number
"""
@pytest.fixture(scope="session")
def init_variables_268():
from src.leetcode_268_missing_number import Solution
solution = Solution()
def _init_variables_268():
return solution
yield _init_variables_268
class TestClass... | 23.676471 | 83 | 0.696894 | 111 | 805 | 4.738739 | 0.333333 | 0.271863 | 0.334601 | 0.152091 | 0.490494 | 0.490494 | 0.425856 | 0.425856 | 0.425856 | 0.21673 | 0 | 0.099388 | 0.187578 | 805 | 33 | 84 | 24.393939 | 0.704893 | 0.024845 | 0 | 0 | 0 | 0 | 0.009309 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.352941 | false | 0 | 0.117647 | 0.058824 | 0.588235 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
48f4b8e6c0c1a95b21e6fbc67429a32685a3063d | 126 | py | Python | output/models/ms_data/regex/hangul_compatibility_jamo_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ms_data/regex/hangul_compatibility_jamo_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ms_data/regex/hangul_compatibility_jamo_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ms_data.regex.hangul_compatibility_jamo_xsd.hangul_compatibility_jamo import Doc
__all__ = [
"Doc",
]
| 21 | 99 | 0.801587 | 17 | 126 | 5.352941 | 0.764706 | 0.417582 | 0.505495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 126 | 5 | 100 | 25.2 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 4 |
5b1363485151128caf183c9f6b705444acca65c5 | 136 | py | Python | src/localsrv/urls.py | vladiibine/localsrv | 7bb8fd2e08f43a1b5adef9ad17ab534a317e0a57 | [
"MIT"
] | null | null | null | src/localsrv/urls.py | vladiibine/localsrv | 7bb8fd2e08f43a1b5adef9ad17ab534a317e0a57 | [
"MIT"
] | 4 | 2015-04-28T08:20:26.000Z | 2015-06-13T06:32:31.000Z | src/localsrv/urls.py | vladiibine/localsrv | 7bb8fd2e08f43a1b5adef9ad17ab534a317e0a57 | [
"MIT"
] | 1 | 2018-03-04T20:29:27.000Z | 2018-03-04T20:29:27.000Z | from django.conf.urls import url
from .views import serve_all
urlpatterns = (
url(r'^.*$', serve_all, name="localsrv:serve_all"),
) | 22.666667 | 55 | 0.705882 | 20 | 136 | 4.65 | 0.65 | 0.258065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139706 | 136 | 6 | 56 | 22.666667 | 0.794872 | 0 | 0 | 0 | 0 | 0 | 0.160584 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
5b19d3c83fe2ac0f121d05692ca3db02ba4ea908 | 1,848 | py | Python | data/scripts/classes/team_row.py | matt-waite/lol-reference | 1042fc0a63f7911ed9434b5bb6ba8f866fc0a9c2 | [
"MIT"
] | 1 | 2020-08-26T17:29:58.000Z | 2020-08-26T17:29:58.000Z | data/scripts/classes/team_row.py | matt-waite/lol-reference | 1042fc0a63f7911ed9434b5bb6ba8f866fc0a9c2 | [
"MIT"
] | null | null | null | data/scripts/classes/team_row.py | matt-waite/lol-reference | 1042fc0a63f7911ed9434b5bb6ba8f866fc0a9c2 | [
"MIT"
] | null | null | null | from classes import oracles_headers
class TeamRow:
COLUMNS = oracles_headers.oracles_columns
def __init__(self, row):
self.ROW = row
def GetCell(self, name):
return self.ROW[self.COLUMNS[name]]
def GetDatabaseObject(self):
game = {
"gameId": self.GameId(),
... | 24 | 63 | 0.540584 | 202 | 1,848 | 4.910891 | 0.227723 | 0.15121 | 0.141129 | 0.211694 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002368 | 0.314394 | 1,848 | 77 | 64 | 24 | 0.780584 | 0 | 0 | 0 | 0 | 0 | 0.094646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.321429 | false | 0 | 0.017857 | 0.285714 | 0.678571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
5b2402300dbab63aa021dccf15d38bf7417d131e | 90 | py | Python | python/632.smallest-range-covering-elements-from-k-lists.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/632.smallest-range-covering-elements-from-k-lists.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/632.smallest-range-covering-elements-from-k-lists.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | class Solution:
def smallestRange(self, nums: List[List[int]]) -> List[int]:
| 22.5 | 64 | 0.611111 | 11 | 90 | 5 | 0.727273 | 0.254545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233333 | 90 | 3 | 65 | 30 | 0.797101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d28a47045a9d4366365cea9cca22f372e578a38f | 620 | py | Python | Exercício feitos pela primeira vez/ex046.py | Claayton/pythonExerciciosLinux | 696cdb16983638418bd0d0d4fe44dc72662b9c97 | [
"MIT"
] | 1 | 2021-01-23T15:43:34.000Z | 2021-01-23T15:43:34.000Z | Exercício feitos pela primeira vez/ex046.py | Claayton/pythonExerciciosLinux | 696cdb16983638418bd0d0d4fe44dc72662b9c97 | [
"MIT"
] | null | null | null | Exercício feitos pela primeira vez/ex046.py | Claayton/pythonExerciciosLinux | 696cdb16983638418bd0d0d4fe44dc72662b9c97 | [
"MIT"
] | null | null | null | #Exercício046
from time import sleep
import emoji
print('\033[32mCONTAGEM REGRESSIVA PARA O ANO NOVO:\033[m')
sleep(1)
for c in range(10, 0 - 1, -1):#repete os números de 10 até o 0
print(c)
sleep(1)
print(emoji.emojize("\033[31m:boom::boom::boom:KABUM:boom::boom::boom:", use_aliases=True))
print(emoji.emojize(... | 47.692308 | 104 | 0.720968 | 106 | 620 | 4.179245 | 0.415094 | 0.288939 | 0.216704 | 0.180587 | 0.38149 | 0.38149 | 0.38149 | 0.311512 | 0.311512 | 0.311512 | 0 | 0.080844 | 0.082258 | 620 | 13 | 105 | 47.692308 | 0.697715 | 0.069355 | 0 | 0.166667 | 0 | 0.083333 | 0.487847 | 0.368056 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.583333 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
d294d257d8cdf140b519b1d91dd4b68639347768 | 8,235 | py | Python | proxy_server/backend_services.py | lmanzurv/django_proxy_server | 20304829ef1ddcbb281e1373d308e5fa826fcd39 | [
"Apache-2.0"
] | 11 | 2015-07-18T02:23:43.000Z | 2021-11-15T11:43:21.000Z | proxy_server/backend_services.py | lmanzurv/django_proxy_server | 20304829ef1ddcbb281e1373d308e5fa826fcd39 | [
"Apache-2.0"
] | null | null | null | proxy_server/backend_services.py | lmanzurv/django_proxy_server | 20304829ef1ddcbb281e1373d308e5fa826fcd39 | [
"Apache-2.0"
] | 5 | 2015-02-24T15:37:36.000Z | 2021-10-10T16:42:22.000Z | from django.contrib.auth import SESSION_KEY
from django.core.cache import cache
from django.conf import settings
from django.http import HttpResponse, HttpResponseServerError
from proxy_server.response import AJAX_REQUEST
import httplib, json, proxy_server
def invoke_backend_service(method, function_path, json_data=di... | 37.094595 | 131 | 0.600364 | 901 | 8,235 | 5.307436 | 0.134295 | 0.07821 | 0.039732 | 0.02133 | 0.754287 | 0.730238 | 0.702217 | 0.631326 | 0.631326 | 0.631326 | 0 | 0.005967 | 0.328476 | 8,235 | 221 | 132 | 37.262443 | 0.85877 | 0 | 0 | 0.710983 | 0 | 0.011561 | 0.080874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011561 | false | 0 | 0.034682 | 0 | 0.092486 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d2d2f4b2d01e6090619cd23b148cfe0e1bc36f87 | 330 | py | Python | core/managers.py | Bilal815/ecommerce_storee | 45e61f1d865a65b4c52d74502b4fcab7ee6c1adf | [
"MIT"
] | 95 | 2020-04-13T09:02:30.000Z | 2022-03-25T14:11:34.000Z | core/managers.py | Bilal815/ecommerce_api | a3d8ce7a9e1fa2528d240d5ab508afe92607c9f8 | [
"MIT"
] | 87 | 2020-02-21T17:58:56.000Z | 2022-03-21T21:37:05.000Z | core/managers.py | Bilal815/ecommerce_api | a3d8ce7a9e1fa2528d240d5ab508afe92607c9f8 | [
"MIT"
] | 33 | 2021-01-18T09:30:29.000Z | 2022-03-30T01:31:57.000Z | from django.db import models
class SoftDeleteManager(models.Manager):
def save_soft_delete(self):
self.is_deleted = True
self.save()
return True
def get_soft_delete(self):
return self.filter(is_deleted=True)
def get_unsoft_delete(self):
return self.filter(is_delet... | 22 | 44 | 0.681818 | 44 | 330 | 4.909091 | 0.477273 | 0.138889 | 0.12963 | 0.185185 | 0.324074 | 0.324074 | 0.324074 | 0 | 0 | 0 | 0 | 0 | 0.236364 | 330 | 14 | 45 | 23.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
d2defb686bfc61f23201cb71e5a9d368779c4dfa | 98 | py | Python | setup.py | kuzxnia/typer | 39007237d552e4f4920b2c6e13e5f0ce482d4427 | [
"MIT"
] | null | null | null | setup.py | kuzxnia/typer | 39007237d552e4f4920b2c6e13e5f0ce482d4427 | [
"MIT"
] | 3 | 2020-04-07T12:39:51.000Z | 2020-04-09T22:49:16.000Z | setup.py | kuzxnia/typer | 39007237d552e4f4920b2c6e13e5f0ce482d4427 | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name="typer", packages=find_packages(),
)
| 16.333333 | 43 | 0.744898 | 12 | 98 | 5.916667 | 0.666667 | 0.338028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 98 | 5 | 44 | 19.6 | 0.845238 | 0 | 0 | 0 | 0 | 0 | 0.05102 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 4 |
d2e9b98d6967be78af6014083084b5dab63e624c | 61 | py | Python | nautobot/circuits/__init__.py | psmware-ltd/nautobot | ac516287fb8edcc3482bd011839de837c6bbf0df | [
"Apache-2.0"
] | 384 | 2021-02-24T01:40:40.000Z | 2022-03-30T10:30:59.000Z | nautobot/circuits/__init__.py | psmware-ltd/nautobot | ac516287fb8edcc3482bd011839de837c6bbf0df | [
"Apache-2.0"
] | 1,067 | 2021-02-24T00:58:08.000Z | 2022-03-31T23:38:23.000Z | nautobot/circuits/__init__.py | psmware-ltd/nautobot | ac516287fb8edcc3482bd011839de837c6bbf0df | [
"Apache-2.0"
] | 128 | 2021-02-24T02:45:16.000Z | 2022-03-20T18:48:36.000Z | default_app_config = "nautobot.circuits.apps.CircuitsConfig"
| 30.5 | 60 | 0.852459 | 7 | 61 | 7.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04918 | 61 | 1 | 61 | 61 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0.606557 | 0.606557 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d2f36e17b1fe05c90facefa1af9d3583979040ce | 220 | py | Python | src/intervals/once.py | Eagerod/tasker | b2bfbd6557063da389d1839f4f151bb4ad78b075 | [
"MIT"
] | null | null | null | src/intervals/once.py | Eagerod/tasker | b2bfbd6557063da389d1839f4f151bb4ad78b075 | [
"MIT"
] | null | null | null | src/intervals/once.py | Eagerod/tasker | b2bfbd6557063da389d1839f4f151bb4ad78b075 | [
"MIT"
] | null | null | null | from base_interval import BaseInterval
class OnceInterval(BaseInterval):
@staticmethod
def next_interval(start_date):
return start_date
@staticmethod
def approximate_period():
return 0
| 18.333333 | 38 | 0.718182 | 23 | 220 | 6.652174 | 0.695652 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005917 | 0.231818 | 220 | 11 | 39 | 20 | 0.899408 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.25 | 0.75 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.