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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
de158136de2037f8943a742e64777a954d8702be | 295 | py | Python | datemath/__init__.py | shadchin/python-datemath | 6d047b3cc4e357d83b50e7433c812994e21c3ffb | [
"Apache-2.0"
] | 34 | 2016-03-31T16:36:24.000Z | 2021-12-10T05:26:13.000Z | datemath/__init__.py | shadchin/python-datemath | 6d047b3cc4e357d83b50e7433c812994e21c3ffb | [
"Apache-2.0"
] | 23 | 2016-05-30T18:39:01.000Z | 2021-11-28T14:14:27.000Z | datemath/__init__.py | shadchin/python-datemath | 6d047b3cc4e357d83b50e7433c812994e21c3ffb | [
"Apache-2.0"
] | 11 | 2016-05-29T16:00:57.000Z | 2022-03-25T06:17:25.000Z | from .helpers import parse, DateMathException
def dm(expr, **kwargs):
''' does our datemath and returns an arrow object '''
return parse(expr, **kwargs)
def datemath(expr, **kwargs):
''' does our datemath and returns a datetime object '''
return parse(expr, **kwargs).datetime
| 29.5 | 59 | 0.688136 | 38 | 295 | 5.342105 | 0.526316 | 0.197044 | 0.137931 | 0.167488 | 0.610837 | 0.344828 | 0.344828 | 0 | 0 | 0 | 0 | 0 | 0.186441 | 295 | 9 | 60 | 32.777778 | 0.845833 | 0.318644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0 | 1 | 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 |
de15d03473af7851df09a5d3edc5ace554aebf84 | 344 | py | Python | scripts/patches/appintegrations.py | compose-x/troposphere | 9a94a8fafd8b4da1cd1f4239be0e7aa0681fd8d4 | [
"BSD-2-Clause"
] | null | null | null | scripts/patches/appintegrations.py | compose-x/troposphere | 9a94a8fafd8b4da1cd1f4239be0e7aa0681fd8d4 | [
"BSD-2-Clause"
] | null | null | null | scripts/patches/appintegrations.py | compose-x/troposphere | 9a94a8fafd8b4da1cd1f4239be0e7aa0681fd8d4 | [
"BSD-2-Clause"
] | null | null | null | patches = [
# Remove attribute property EventIntegrationAssociation and Metadata
{
"op": "remove",
"path": "/PropertyTypes/AWS::AppIntegrations::EventIntegration.EventIntegrationAssociation",
},
{
"op": "remove",
"path": "/PropertyTypes/AWS::AppIntegrations::EventIntegrat... | 28.666667 | 100 | 0.642442 | 23 | 344 | 9.608696 | 0.565217 | 0.072398 | 0.108597 | 0.226244 | 0.533937 | 0.533937 | 0.533937 | 0 | 0 | 0 | 0 | 0 | 0.218023 | 344 | 11 | 101 | 31.272727 | 0.821561 | 0.19186 | 0 | 0.2 | 0 | 0 | 0.605072 | 0.518116 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a9a4a4010fdff2fc76118dd17a1412cda345a6e8 | 201 | py | Python | methods_11/replace_me.py | njoroge33/py_learn | 6ad55f37789045bc5c03f3dd668cf1ea497f4e84 | [
"MIT"
] | null | null | null | methods_11/replace_me.py | njoroge33/py_learn | 6ad55f37789045bc5c03f3dd668cf1ea497f4e84 | [
"MIT"
] | 2 | 2019-04-15T06:29:55.000Z | 2019-04-19T17:34:32.000Z | methods_11/replace_me.py | njoroge33/py_learn | 6ad55f37789045bc5c03f3dd668cf1ea497f4e84 | [
"MIT"
] | 1 | 2019-11-19T04:51:18.000Z | 2019-11-19T04:51:18.000Z | # Write a programme that takes in a string given by the user and replaces the character with other one on user's prompt
# for more info on this quiz, go to this url: http://www.programmr.com/replace-me | 100.5 | 119 | 0.771144 | 39 | 201 | 3.974359 | 0.871795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169154 | 201 | 2 | 120 | 100.5 | 0.928144 | 0.9801 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a9dbbdfa160546a7dab45b33ce4793fcfd0620ae | 93 | py | Python | neighbour/apps.py | Evan-cell/neighbourhood | 817384871bdbb4ac773391fcf6eb93a2aaa18bf9 | [
"Unlicense"
] | 2 | 2022-01-17T03:52:59.000Z | 2022-02-18T15:09:34.000Z | neighbour/apps.py | Evan-cell/neighbourhood | 817384871bdbb4ac773391fcf6eb93a2aaa18bf9 | [
"Unlicense"
] | 11 | 2020-02-12T01:21:05.000Z | 2022-02-10T09:39:50.000Z | neighbour/apps.py | francismuk/neighbourhood | 393c6ae91242b010ef2aca4a845a0cb144c2189c | [
"MIT"
] | 1 | 2019-09-16T06:39:43.000Z | 2019-09-16T06:39:43.000Z | from django.apps import AppConfig
class NeighbourConfig(AppConfig):
name = 'neighbour'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 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 |
e73bf1150a3ffeb0c2f0885bdc76417677cbd6ec | 14 | py | Python | openml_data_integration/protobuf_generator/openml_335/myconstants.py | tuix/tutorials | 733d35a8a39df079e8c2432c441b70785ab08440 | [
"Apache-2.0"
] | 8 | 2020-04-21T13:29:04.000Z | 2021-12-13T08:59:09.000Z | openml_data_integration/protobuf_generator/openml_335/myconstants.py | tuix/tutorials | 733d35a8a39df079e8c2432c441b70785ab08440 | [
"Apache-2.0"
] | 3 | 2021-04-27T11:03:04.000Z | 2021-05-24T18:22:57.000Z | openml_data_integration/protobuf_generator/openml_335/myconstants.py | tuix/tutorials | 733d35a8a39df079e8c2432c441b70785ab08440 | [
"Apache-2.0"
] | 6 | 2020-07-06T08:23:25.000Z | 2021-11-24T10:39:34.000Z | DATA_ID = 335
| 7 | 13 | 0.714286 | 3 | 14 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 0.214286 | 14 | 1 | 14 | 14 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e74f03089af7b26a79a335d1890681db09712167 | 183 | py | Python | ibllib/io/extractors/biased_wheel.py | ekellbuch/ibllib | 6948f86c3f426cbebb39cc693f612d25079d7ef2 | [
"MIT"
] | null | null | null | ibllib/io/extractors/biased_wheel.py | ekellbuch/ibllib | 6948f86c3f426cbebb39cc693f612d25079d7ef2 | [
"MIT"
] | null | null | null | ibllib/io/extractors/biased_wheel.py | ekellbuch/ibllib | 6948f86c3f426cbebb39cc693f612d25079d7ef2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Author: Niccolò Bonacchi
# @Date: Wednesday, February 13th 2019, 12:06:17 pm
from ibllib.io.extractors.training_wheel import * # noqa
| 30.5 | 57 | 0.704918 | 27 | 183 | 4.740741 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082278 | 0.136612 | 183 | 5 | 58 | 36.6 | 0.727848 | 0.666667 | 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 |
e782fda17358103f60d31a909416e33c5a907f5f | 19 | py | Python | data/studio21_generated/introductory/3984/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/3984/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/3984/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | def tacofy(word):
| 9.5 | 17 | 0.684211 | 3 | 19 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 19 | 2 | 18 | 9.5 | 0.8125 | 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 |
e794bf50e8db0fc57c5ecb11376b9dcb5dc30e14 | 186 | py | Python | dev/python/python_cffi_adapter_template.py | bowlofstew/client | 0d5ae42aaf9863e3871828b6df06170aad17c560 | [
"MIT"
] | 40 | 2015-04-15T09:40:23.000Z | 2022-02-11T11:07:24.000Z | dev/python/python_cffi_adapter_template.py | bowlofstew/client | 0d5ae42aaf9863e3871828b6df06170aad17c560 | [
"MIT"
] | 19 | 2015-04-15T18:34:53.000Z | 2018-11-17T00:11:05.000Z | dev/python/python_cffi_adapter_template.py | bowlofstew/client | 0d5ae42aaf9863e3871828b6df06170aad17c560 | [
"MIT"
] | 22 | 2015-04-15T09:45:46.000Z | 2020-09-29T17:04:19.000Z | cffi_template = '''from cffi import FFI
def link_clib(block_cell_name):
ffi = FFI()
ffi.cdef(r\'\'\'{{headers}}\'\'\')
C = ffi.dlopen('{{dynlib_file}}')
return ffi, C
''' | 26.571429 | 39 | 0.586022 | 26 | 186 | 4 | 0.730769 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182796 | 186 | 7 | 40 | 26.571429 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0.877005 | 0.481283 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.285714 | 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 |
e7be5ab5c25208f4c1759ac4fae18aa491c11536 | 56 | py | Python | good/functionSideEffectsAfterReturn.py | Alberto42/Interpreter | a56c4d905672572734a8470ef607b66727489f15 | [
"BSD-3-Clause"
] | null | null | null | good/functionSideEffectsAfterReturn.py | Alberto42/Interpreter | a56c4d905672572734a8470ef607b66727489f15 | [
"BSD-3-Clause"
] | null | null | null | good/functionSideEffectsAfterReturn.py | Alberto42/Interpreter | a56c4d905672572734a8470ef607b66727489f15 | [
"BSD-3-Clause"
] | null | null | null | a = 0
def f(x) {
return 0
a = 1
}
f(0)
print(a) | 7 | 12 | 0.428571 | 13 | 56 | 1.846154 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 0.392857 | 56 | 8 | 13 | 7 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.142857 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
99d8357831481a4ba69560ab6577ea5f63404b1e | 104 | py | Python | Data-Processing/for-file/change_file_name.py | yzy1996/Python-Random | 9d76bd75cc4d6f3980b5c6ef8a20cedd92c0fa1b | [
"MIT"
] | 41 | 2019-01-30T05:19:06.000Z | 2022-01-30T06:37:16.000Z | Data-Processing/for-file/change_file_name.py | yzy1996/Python-Random | 9d76bd75cc4d6f3980b5c6ef8a20cedd92c0fa1b | [
"MIT"
] | null | null | null | Data-Processing/for-file/change_file_name.py | yzy1996/Python-Random | 9d76bd75cc4d6f3980b5c6ef8a20cedd92c0fa1b | [
"MIT"
] | 44 | 2019-01-30T05:14:26.000Z | 2022-01-02T08:15:19.000Z | import os
file_list = os.listdir()
for file in file_list:
os.rename(file, file.replace(' ', '-'))
| 14.857143 | 43 | 0.644231 | 16 | 104 | 4.0625 | 0.5625 | 0.246154 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182692 | 104 | 6 | 44 | 17.333333 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 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 |
99f2ae65465bae1831418b673c53709f2750febc | 50 | py | Python | python/Head First Python and Head First Programming/credit_card program/promotion.py | 0xelectron/studious-engine | c44132b515599fa54b64f14df4e62eb2a14f3227 | [
"MIT"
] | null | null | null | python/Head First Python and Head First Programming/credit_card program/promotion.py | 0xelectron/studious-engine | c44132b515599fa54b64f14df4e62eb2a14f3227 | [
"MIT"
] | null | null | null | python/Head First Python and Head First Programming/credit_card program/promotion.py | 0xelectron/studious-engine | c44132b515599fa54b64f14df4e62eb2a14f3227 | [
"MIT"
] | null | null | null | def discount(price):
return(0.9 * price)
| 12.5 | 23 | 0.58 | 7 | 50 | 4.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.28 | 50 | 3 | 24 | 16.666667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
8201ffb14bfc15c5093d7fe41df6f274620aa04c | 368 | py | Python | scrumate/people/admin.py | nahidsaikat/scrumate | 11a63f1cc361261a7023eceafc2a27e29561dca0 | [
"MIT"
] | 1 | 2019-04-29T05:44:34.000Z | 2019-04-29T05:44:34.000Z | scrumate/people/admin.py | nahidsaikat/scrumate | 11a63f1cc361261a7023eceafc2a27e29561dca0 | [
"MIT"
] | 27 | 2019-05-20T18:42:28.000Z | 2019-07-20T08:00:46.000Z | scrumate/people/admin.py | nahidsaikat/scrumate | 11a63f1cc361261a7023eceafc2a27e29561dca0 | [
"MIT"
] | null | null | null | from django.contrib import admin
from simple_history.admin import SimpleHistoryAdmin
from scrumate.people.models import Department, Designation, Employee, Client
admin.site.register(Department, SimpleHistoryAdmin)
admin.site.register(Designation, SimpleHistoryAdmin)
admin.site.register(Employee, SimpleHistoryAdmin)
... | 33.454545 | 76 | 0.855978 | 40 | 368 | 7.85 | 0.425 | 0.11465 | 0.216561 | 0.334395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070652 | 368 | 10 | 77 | 36.8 | 0.918129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
8217edf58d29831f6d571e49277693ec81bc3e50 | 357 | py | Python | ananke/docgetter.py | kingsBSD/ananke | d79e46ea3688fe7883246c4b73a8fe5a09a6369f | [
"Apache-2.0"
] | 1 | 2017-12-12T11:27:20.000Z | 2017-12-12T11:27:20.000Z | ananke/docgetter.py | kingsBSD/ananke | d79e46ea3688fe7883246c4b73a8fe5a09a6369f | [
"Apache-2.0"
] | null | null | null | ananke/docgetter.py | kingsBSD/ananke | d79e46ea3688fe7883246c4b73a8fe5a09a6369f | [
"Apache-2.0"
] | null | null | null |
import json
import pip
import pydoc
def render_doc(doc):
return {'name': doc.project_name,
'pypi':"https://pypi.python.org/pypi/"+doc.project_name+"/"+doc.version,
'local':"http://localhost:9000/"+doc.project_name.lower()+'.html'}
def get_docs():
return [render_doc(doc) for doc in sorted(pip.... | 25.5 | 81 | 0.677871 | 50 | 357 | 4.68 | 0.56 | 0.128205 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0.148459 | 357 | 14 | 82 | 25.5 | 0.756579 | 0 | 0 | 0 | 0 | 0 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0.222222 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
8220dc094c733f559e3404066a48f7310b2c91d2 | 177 | py | Python | venv/bin/django-admin.py | py-geek/City-Air | f6885dd028a244bcd472f860a0a093d7db91f43a | [
"MIT"
] | null | null | null | venv/bin/django-admin.py | py-geek/City-Air | f6885dd028a244bcd472f860a0a093d7db91f43a | [
"MIT"
] | null | null | null | venv/bin/django-admin.py | py-geek/City-Air | f6885dd028a244bcd472f860a0a093d7db91f43a | [
"MIT"
] | null | null | null | #!/home/pygeek/Documents/demo-allauth-bootstrap-master/venv/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 29.5 | 70 | 0.79661 | 23 | 177 | 5.652174 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084746 | 177 | 5 | 71 | 35.4 | 0.802469 | 0.389831 | 0 | 0 | 0 | 0 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
82235374db05cf7a23f8d9a5408868fb8a05172b | 363 | py | Python | app/form.py | Bryson582/GPA-WES-DPU | ac5fca52b908d9968d9fe006d4a52c2aec0f94cc | [
"MIT"
] | null | null | null | app/form.py | Bryson582/GPA-WES-DPU | ac5fca52b908d9968d9fe006d4a52c2aec0f94cc | [
"MIT"
] | null | null | null | app/form.py | Bryson582/GPA-WES-DPU | ac5fca52b908d9968d9fe006d4a52c2aec0f94cc | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm,RecaptchaField
from wtforms import StringField, PasswordField,SubmitField
from wtforms.validators import DataRequired
class MailForm(FlaskForm):
name = StringField('您的学号',validators=[DataRequired()])
pwd = PasswordField('您的密码',validators=[DataRequired()])
recaptcha = Recaptch... | 36.3 | 59 | 0.77686 | 35 | 363 | 8.028571 | 0.6 | 0.078292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 363 | 9 | 60 | 40.333333 | 0.880878 | 0 | 0 | 0 | 0 | 0 | 0.033149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.375 | 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 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
822eb8bdd47115f57263f6bbfeb8c2bc69128f7a | 677 | py | Python | qa327_test/frontend/test_404.py | CanonAY/Highedge-Co. | aced31e287b3dd4d6fb444825aa5b553166deff9 | [
"MIT"
] | null | null | null | qa327_test/frontend/test_404.py | CanonAY/Highedge-Co. | aced31e287b3dd4d6fb444825aa5b553166deff9 | [
"MIT"
] | null | null | null | qa327_test/frontend/test_404.py | CanonAY/Highedge-Co. | aced31e287b3dd4d6fb444825aa5b553166deff9 | [
"MIT"
] | 2 | 2021-02-23T06:18:42.000Z | 2021-04-17T07:07:52.000Z | import pytest
from seleniumbase import BaseCase
from qa327_test.conftest import base_url
from unittest.mock import patch
from qa327.models import db, User
from werkzeug.security import generate_password_hash, check_password_hash
"""
This file defines the unit test that tests program behavior when user try to access a... | 33.85 | 109 | 0.748892 | 103 | 677 | 4.805825 | 0.640777 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034862 | 0.194978 | 677 | 20 | 110 | 33.85 | 0.873395 | 0.21418 | 0 | 0 | 1 | 0 | 0.046117 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0.1 | 0.6 | 0 | 0.8 | 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 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
823258eefaad854b6b194ce397007ede7e02f562 | 305 | py | Python | deploy.py | limitedeternity/django-skeleton | 03001c81e36ae853831e57dea238ff7bddda4dbf | [
"MIT"
] | 2 | 2018-07-10T19:18:32.000Z | 2018-07-22T12:38:21.000Z | deploy.py | limitedeternity/django-skeleton | 03001c81e36ae853831e57dea238ff7bddda4dbf | [
"MIT"
] | null | null | null | deploy.py | limitedeternity/django-skeleton | 03001c81e36ae853831e57dea238ff7bddda4dbf | [
"MIT"
] | null | null | null | from subprocess import call
call('git add .', shell=True)
print("enter your git commit comment: ")
comment = input()
call('git commit -am "%s"' % comment, shell=True)
call('heroku maintenance:on', shell=True)
call('git push heroku master', shell=True)
call('heroku maintenance:off', shell=True)
| 30.5 | 50 | 0.701639 | 44 | 305 | 4.863636 | 0.5 | 0.21028 | 0.182243 | 0.17757 | 0.280374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147541 | 305 | 9 | 51 | 33.888889 | 0.823077 | 0 | 0 | 0 | 0 | 0 | 0.418919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.125 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
41389c751d392341d6e8defa9dc853bb4356520a | 2,553 | py | Python | tests/micropython/viper_misc.py | sebastien-riou/micropython | 116c15842fd48ddb77b0bc016341d936a0756573 | [
"MIT"
] | 13,648 | 2015-01-01T01:34:51.000Z | 2022-03-31T16:19:53.000Z | tests/micropython/viper_misc.py | sebastien-riou/micropython | 116c15842fd48ddb77b0bc016341d936a0756573 | [
"MIT"
] | 7,092 | 2015-01-01T07:59:11.000Z | 2022-03-31T23:52:18.000Z | tests/micropython/viper_misc.py | sebastien-riou/micropython | 116c15842fd48ddb77b0bc016341d936a0756573 | [
"MIT"
] | 4,942 | 2015-01-02T11:48:50.000Z | 2022-03-31T19:57:10.000Z | import micropython
# viper function taking and returning ints
@micropython.viper
def viper_int(x: int, y: int) -> int:
return x + y + 3
print(viper_int(1, 2))
# viper function taking and returning objects
@micropython.viper
def viper_object(x: object, y: object) -> object:
return x + y
print(viper_object(... | 16.796053 | 57 | 0.682335 | 421 | 2,553 | 4.030879 | 0.206651 | 0.169711 | 0.190336 | 0.240424 | 0.337655 | 0.147319 | 0.117266 | 0.117266 | 0.10607 | 0.077784 | 0 | 0.023996 | 0.200157 | 2,553 | 151 | 58 | 16.907285 | 0.807052 | 0.24481 | 0 | 0.2625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2125 | false | 0 | 0.025 | 0.15 | 0.425 | 0.2375 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
413fd42133a144570a0fa1f007c1c7b6f59380bc | 97 | py | Python | scripts/utils.py | nayefahmad/python-imports | 5956a959978c7f2b8845ac446f4c953a61758ece | [
"MIT"
] | null | null | null | scripts/utils.py | nayefahmad/python-imports | 5956a959978c7f2b8845ac446f4c953a61758ece | [
"MIT"
] | null | null | null | scripts/utils.py | nayefahmad/python-imports | 5956a959978c7f2b8845ac446f4c953a61758ece | [
"MIT"
] | null | null | null | import yaml
def read_yaml(path):
with open(path, "r") as f:
return yaml.safe_load(f) | 19.4 | 32 | 0.639175 | 17 | 97 | 3.529412 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237113 | 97 | 5 | 32 | 19.4 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
41417715b2101d9be8d8e6c4559633f5babfbf5d | 158 | py | Python | python_developer_tools/python/dict_utils.py | carlsummer/python_developer_tools | a8c4365b7cc601cda55648cdfd8c0cb1faae132f | [
"Apache-2.0"
] | 32 | 2021-06-21T04:49:48.000Z | 2022-03-29T05:46:59.000Z | python_developer_tools/python/dict_utils.py | carlsummer/python_developer_tools | a8c4365b7cc601cda55648cdfd8c0cb1faae132f | [
"Apache-2.0"
] | 1 | 2021-11-12T03:45:55.000Z | 2021-11-12T03:45:55.000Z | python_developer_tools/python/dict_utils.py | carlsummer/python_developer_tools | a8c4365b7cc601cda55648cdfd8c0cb1faae132f | [
"Apache-2.0"
] | 10 | 2021-06-03T08:05:05.000Z | 2021-12-13T03:10:42.000Z | # !/usr/bin/env python
# -- coding: utf-8 --
# @Author zengxiaohui
# Datatime:6/23/2021 3:06 PM
# @File:dict_utils
# dict.__contains__(key)
# del dict["key"]
| 19.75 | 28 | 0.664557 | 25 | 158 | 4 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080882 | 0.139241 | 158 | 7 | 29 | 22.571429 | 0.654412 | 0.905063 | 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 |
414189d79b2bee5b71542736cceaa1b8d28547c8 | 187 | py | Python | src/rctgen/impl/pool_size.py | mballance/pyrctgen | eb47ed2039d36ab236b63e795b313feb499820bd | [
"Apache-2.0"
] | 1 | 2022-03-10T04:12:11.000Z | 2022-03-10T04:12:11.000Z | src/rctgen/impl/pool_size.py | mballance/pyrctgen | eb47ed2039d36ab236b63e795b313feb499820bd | [
"Apache-2.0"
] | null | null | null | src/rctgen/impl/pool_size.py | mballance/pyrctgen | eb47ed2039d36ab236b63e795b313feb499820bd | [
"Apache-2.0"
] | null | null | null | '''
Created on May 12, 2022
@author: mballance
'''
class PoolSize(object):
def __init__(self, sz):
self._sz = sz
def __int__(self):
return self._sz | 14.384615 | 27 | 0.561497 | 23 | 187 | 4.130435 | 0.695652 | 0.189474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047244 | 0.320856 | 187 | 13 | 28 | 14.384615 | 0.700787 | 0.229947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 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 |
41559822f3cd5754bbcded35318328ac3c23e9ab | 12,012 | py | Python | zx64c/ast.py | khrynczenko/zx64c | 5a95bef1dff281266ea3f0d0bfd63d27ab5e9965 | [
"Apache-2.0"
] | null | null | null | zx64c/ast.py | khrynczenko/zx64c | 5a95bef1dff281266ea3f0d0bfd63d27ab5e9965 | [
"Apache-2.0"
] | null | null | null | zx64c/ast.py | khrynczenko/zx64c | 5a95bef1dff281266ea3f0d0bfd63d27ab5e9965 | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
import abc
from typing import List, Text, TypeVar, Generic
from abc import ABC
from functools import singledispatchmethod
from dataclasses import dataclass
from zx64c.types import Type, Callable
T = TypeVar("T")
class AstVisitor(ABC, Generic[T]):
@abc.abstractmethod
def ... | 24.217742 | 88 | 0.635614 | 1,453 | 12,012 | 4.974535 | 0.057123 | 0.048423 | 0.026148 | 0.034864 | 0.625623 | 0.569729 | 0.507333 | 0.469563 | 0.45725 | 0.424875 | 0 | 0.000222 | 0.250999 | 12,012 | 495 | 89 | 24.266667 | 0.803157 | 0 | 0 | 0.526912 | 0 | 0 | 0.000083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.274788 | false | 0.053824 | 0.01983 | 0.164306 | 0.526912 | 0.005666 | 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 |
415b8230d748d0db2537c75b8db2886c6cc5c383 | 167 | py | Python | TypesandVariableswithTextProcessing/TriplesLatinLetters.py | mironmiron3/SoftuniPythonFundamentals | 4f2d968250ae5c58c2b60242da013fe319781c6b | [
"MIT"
] | null | null | null | TypesandVariableswithTextProcessing/TriplesLatinLetters.py | mironmiron3/SoftuniPythonFundamentals | 4f2d968250ae5c58c2b60242da013fe319781c6b | [
"MIT"
] | null | null | null | TypesandVariableswithTextProcessing/TriplesLatinLetters.py | mironmiron3/SoftuniPythonFundamentals | 4f2d968250ae5c58c2b60242da013fe319781c6b | [
"MIT"
] | null | null | null | n = int(input())
for i in range (97 , 97 + n ):
for m in range (97, 97 + n):
for k in range (97, 97 + n):
print(chr(i) + chr(m) + chr(k)) | 27.833333 | 43 | 0.443114 | 31 | 167 | 2.387097 | 0.387097 | 0.283784 | 0.364865 | 0.445946 | 0.567568 | 0.405405 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 0.377246 | 167 | 6 | 43 | 27.833333 | 0.596154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
41762ecfd936ab369a345df2ef39a1dbdc03553a | 108 | py | Python | analyzer/settings_analyzer/apps.py | LaSoftRepo/analyzer | 320536cc86df7514c8dea979585ea70665ff83eb | [
"MIT"
] | null | null | null | analyzer/settings_analyzer/apps.py | LaSoftRepo/analyzer | 320536cc86df7514c8dea979585ea70665ff83eb | [
"MIT"
] | null | null | null | analyzer/settings_analyzer/apps.py | LaSoftRepo/analyzer | 320536cc86df7514c8dea979585ea70665ff83eb | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class SettingsAnalyzerConfig(AppConfig):
name = 'settings_analyzer'
| 18 | 40 | 0.796296 | 11 | 108 | 7.727273 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 108 | 5 | 41 | 21.6 | 0.913978 | 0 | 0 | 0 | 0 | 0 | 0.157407 | 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 |
4184e6cf126588d912e7c1c7dbb91bb46f494a45 | 292 | py | Python | collection/_tests.py | sa2209GitHub/python3-algorithm-collection | 614270a65d3f1bd9232fedd1b37f6f326ba11240 | [
"MIT"
] | null | null | null | collection/_tests.py | sa2209GitHub/python3-algorithm-collection | 614270a65d3f1bd9232fedd1b37f6f326ba11240 | [
"MIT"
] | null | null | null | collection/_tests.py | sa2209GitHub/python3-algorithm-collection | 614270a65d3f1bd9232fedd1b37f6f326ba11240 | [
"MIT"
] | null | null | null | # 1. GCD test result
import unittest
from gcd import gcd
class TestGCD(unittest.TestCase):
def test_result(self):
self.assertEqual(gcd(200, 120), 40)
self.assertEqual(gcd(160, 132), 4)
self.assertEqual(gcd(200, 100), 100)
self.assertEqual(gcd(13, 4), 1) | 24.333333 | 44 | 0.650685 | 42 | 292 | 4.5 | 0.5 | 0.31746 | 0.380952 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127753 | 0.222603 | 292 | 12 | 45 | 24.333333 | 0.704846 | 0.061644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 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 |
41ccde2959d32fd7715e9e6e6c6dd869fe50d0f4 | 62 | py | Python | aoc2021/25/d25_2.py | kewbish/ka-algorithms | 7a893fdaebd99530eaf0d9633c2721763707e92f | [
"MIT"
] | null | null | null | aoc2021/25/d25_2.py | kewbish/ka-algorithms | 7a893fdaebd99530eaf0d9633c2721763707e92f | [
"MIT"
] | null | null | null | aoc2021/25/d25_2.py | kewbish/ka-algorithms | 7a893fdaebd99530eaf0d9633c2721763707e92f | [
"MIT"
] | null | null | null | # nothing to see here - merry christmas and happy holidays ✨🎄
| 31 | 61 | 0.741935 | 10 | 62 | 4.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 62 | 1 | 62 | 62 | 0.92 | 0.951613 | 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 |
68ef78957cde1680fb73a318b03a79d7254700e4 | 615 | py | Python | itss/hsm_abc.py | ateska/c-its-itss | 43bb74bfcc762810e656ef92c030a6783e18571a | [
"MIT"
] | 7 | 2019-11-23T15:29:45.000Z | 2021-06-11T12:04:24.000Z | itss/hsm_abc.py | ateska/c-its-itss | 43bb74bfcc762810e656ef92c030a6783e18571a | [
"MIT"
] | null | null | null | itss/hsm_abc.py | ateska/c-its-itss | 43bb74bfcc762810e656ef92c030a6783e18571a | [
"MIT"
] | 4 | 2019-02-21T05:19:55.000Z | 2021-07-14T08:55:21.000Z | import abc
class HSM(abc.ABC):
def close(self):
pass
def load(self):
'''
Load from persistent storage.
Return True if OK (private key exists) or False if privake key doesn't exists
'''
return False
def store(self):
'''
Store to persistent storage. Can be NOOP.
'''
pass
@abc.abstractme... | 12.8125 | 79 | 0.64065 | 87 | 615 | 4.482759 | 0.45977 | 0.102564 | 0.161538 | 0.184615 | 0.179487 | 0.179487 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0.242276 | 615 | 47 | 80 | 13.085106 | 0.83691 | 0.396748 | 0 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.352941 | false | 0.294118 | 0.058824 | 0 | 0.529412 | 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 |
68fbd592d7914094ec39a1b37ae45f6d5c98b9ae | 89 | py | Python | DM-test/2/fibo.py | mahdi-javid/DM | 7d4337767492e375f8730ea51ed78658bf2a21ce | [
"MIT"
] | null | null | null | DM-test/2/fibo.py | mahdi-javid/DM | 7d4337767492e375f8730ea51ed78658bf2a21ce | [
"MIT"
] | null | null | null | DM-test/2/fibo.py | mahdi-javid/DM | 7d4337767492e375f8730ea51ed78658bf2a21ce | [
"MIT"
] | null | null | null | def fibo(n):
if n<3:
return n-1
else:
return fibo(n-1)+fibo(n-2)
| 14.833333 | 34 | 0.47191 | 17 | 89 | 2.470588 | 0.529412 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.370787 | 89 | 5 | 35 | 17.8 | 0.678571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
ec0cf8031e0159de62961b1675af642117b4c99e | 156 | py | Python | examples/jobs/job_print_date_time.py | luizfernandomeier/hangpy | 61965fbc2738da64abb52c351730bfaf8c8bdf5e | [
"MIT"
] | 5 | 2021-04-09T20:17:55.000Z | 2021-04-10T13:17:37.000Z | examples/jobs/job_print_date_time.py | luizfernandomeier/hangpy | 61965fbc2738da64abb52c351730bfaf8c8bdf5e | [
"MIT"
] | 10 | 2021-04-11T14:21:28.000Z | 2021-05-01T13:32:19.000Z | examples/jobs/job_print_date_time.py | luizfernandomeier/hangpy | 61965fbc2738da64abb52c351730bfaf8c8bdf5e | [
"MIT"
] | null | null | null | import datetime
from hangpy import JobActivityBase
class JobPrintDateTime(JobActivityBase):
def action(self):
print(datetime.datetime.now())
| 17.333333 | 40 | 0.75641 | 16 | 156 | 7.375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 156 | 8 | 41 | 19.5 | 0.907692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0.2 | 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 |
6b5e8e141f13af403cac198f53bc87097a9d9550 | 452 | py | Python | lambdas/jumpcloud/jcapiv1/apis/__init__.py | zimingd/aws-infra | 89922f6d2a148b14119a8b8164dd4b06d465d94e | [
"Apache-2.0"
] | null | null | null | lambdas/jumpcloud/jcapiv1/apis/__init__.py | zimingd/aws-infra | 89922f6d2a148b14119a8b8164dd4b06d465d94e | [
"Apache-2.0"
] | null | null | null | lambdas/jumpcloud/jcapiv1/apis/__init__.py | zimingd/aws-infra | 89922f6d2a148b14119a8b8164dd4b06d465d94e | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
# import apis into api package
from .applications_api import ApplicationsApi
from .command_results_api import CommandResultsApi
from .command_triggers_api import CommandTriggersApi
from .commands_api import CommandsApi
from .radius_servers_api import RadiusServersApi
from .search... | 34.769231 | 52 | 0.873894 | 58 | 452 | 6.517241 | 0.482759 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103982 | 452 | 12 | 53 | 37.666667 | 0.933333 | 0.061947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
6b6cc453bc7a2f5abe29b39ea101e196ec580b85 | 1,093 | py | Python | 2/src/assignment2.py | A03ki/PFN_internship2019_ML | 2353005e16217ec7b55d98da9c125d44005f3960 | [
"MIT"
] | null | null | null | 2/src/assignment2.py | A03ki/PFN_internship2019_ML | 2353005e16217ec7b55d98da9c125d44005f3960 | [
"MIT"
] | null | null | null | 2/src/assignment2.py | A03ki/PFN_internship2019_ML | 2353005e16217ec7b55d98da9c125d44005f3960 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
from gnn import GraphNeuralNetwork
from sgd import SGD
if __name__ == "__main__":
gnn = GraphNeuralNetwork(8, 0)
sgd = SGD()
graph = [[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0],
[0, 0, 0, 0, 0, 0, 0, 0,... | 31.228571 | 56 | 0.442818 | 204 | 1,093 | 2.313725 | 0.196078 | 0.364407 | 0.470339 | 0.533898 | 0.413136 | 0.408898 | 0.408898 | 0.408898 | 0.243644 | 0.235169 | 0 | 0.18529 | 0.353156 | 1,093 | 34 | 57 | 32.147059 | 0.48232 | 0 | 0 | 0.133333 | 0 | 0 | 0.038426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0.066667 | 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 |
6ba959700ea8ddb60e73d449359258fc35dd3931 | 2,220 | py | Python | Sparse/Py/build.py | danielcort/benchmarks-python-julia-c | aececc9f1fc3c368ae57f84028b0cf35a0c138e4 | [
"MIT"
] | 21 | 2018-03-27T08:36:34.000Z | 2021-10-01T12:26:54.000Z | Sparse/Py/build.py | danielcort/benchmarks-python-julia-c | aececc9f1fc3c368ae57f84028b0cf35a0c138e4 | [
"MIT"
] | 2 | 2018-05-13T16:44:06.000Z | 2019-09-27T06:33:09.000Z | Sparse/Py/build.py | danielcort/benchmarks-python-julia-c | aececc9f1fc3c368ae57f84028b0cf35a0c138e4 | [
"MIT"
] | 6 | 2018-05-29T13:27:31.000Z | 2021-06-27T17:49:09.000Z | import numpy as np
from scipy.sparse import csr_matrix,csc_matrix
#
def build2(size):
#how many coefficients ?
nc= 5*(size-2)**2+ 16*(size-2)+ 12
row= np.empty((nc),dtype=int)
col=np.empty((nc),dtype=int)
v=np.empty((nc),dtype=float)
h=1./(size-1)
h2=h*h
cd=-4/h2
hd=1./h2;
I=lamb... | 29.210526 | 57 | 0.384234 | 328 | 2,220 | 2.588415 | 0.170732 | 0.063604 | 0.074205 | 0.09894 | 0.740872 | 0.737338 | 0.737338 | 0.716137 | 0.69258 | 0.69258 | 0 | 0.066046 | 0.468018 | 2,220 | 75 | 58 | 29.6 | 0.652837 | 0.01036 | 0 | 0.681159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028986 | false | 0 | 0.028986 | 0 | 0.086957 | 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 |
6bde79b9dfe2b44edf718a61b2f765064f2dc815 | 129 | py | Python | RULEngine/Communication/protobuf/__init__.py | wonwon0/RobocupStrategyIA | 891028f616d476b05b23b40924d7c99502a718e3 | [
"MIT"
] | null | null | null | RULEngine/Communication/protobuf/__init__.py | wonwon0/RobocupStrategyIA | 891028f616d476b05b23b40924d7c99502a718e3 | [
"MIT"
] | null | null | null | RULEngine/Communication/protobuf/__init__.py | wonwon0/RobocupStrategyIA | 891028f616d476b05b23b40924d7c99502a718e3 | [
"MIT"
] | null | null | null | import sys
import os.path
folder = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(1, folder)
from . import google
| 16.125 | 52 | 0.75969 | 21 | 129 | 4.47619 | 0.571429 | 0.191489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008772 | 0.116279 | 129 | 7 | 53 | 18.428571 | 0.815789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 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 |
6bfc159140a0c9b47c80e04713adc98bc7f62c28 | 128 | py | Python | python/testData/refactoring/extractmethod/CommentIncluded.after.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/refactoring/extractmethod/CommentIncluded.after.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/refactoring/extractmethod/CommentIncluded.after.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | def baz():
tmp = "!" # try to extract this assignment, either with or without this comment
baz()
def bar(self):
pass | 16 | 84 | 0.640625 | 19 | 128 | 4.315789 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 128 | 8 | 85 | 16 | 0.854167 | 0.523438 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.2 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
6bfd5d02a854069fcf0d80f1d3d975d20aade750 | 213 | py | Python | monty/monty.py | ZnL-BCM/example_python | 78d4b2e0aeb843595dcdcca94b1c589ac1e4691a | [
"Unlicense"
] | null | null | null | monty/monty.py | ZnL-BCM/example_python | 78d4b2e0aeb843595dcdcca94b1c589ac1e4691a | [
"Unlicense"
] | null | null | null | monty/monty.py | ZnL-BCM/example_python | 78d4b2e0aeb843595dcdcca94b1c589ac1e4691a | [
"Unlicense"
] | null | null | null | # Example functions
def printmenu():
"""Example function for printing a pandas dataframe"""
import pandas as pd
_menu = pd.DataFrame([["Egg"], ["Bacon"], ["SPAM"]], index=[1, 2, 3])
print(_menu)
| 23.666667 | 73 | 0.619718 | 27 | 213 | 4.814815 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017647 | 0.201878 | 213 | 8 | 74 | 26.625 | 0.747059 | 0.314554 | 0 | 0 | 0 | 0 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
d401632d5d4b2f7546128711ac6ba983175d570d | 159 | py | Python | py/iphorse.py | davidbailey/etc | 9239a5e90a72e7d11d213ea5e7cc41176d066780 | [
"Unlicense"
] | null | null | null | py/iphorse.py | davidbailey/etc | 9239a5e90a72e7d11d213ea5e7cc41176d066780 | [
"Unlicense"
] | null | null | null | py/iphorse.py | davidbailey/etc | 9239a5e90a72e7d11d213ea5e7cc41176d066780 | [
"Unlicense"
] | null | null | null | import requests
r = requests.get('http://iphorse.com/json.php')
r.json()['remote_addr']
import yaml
print yaml.safe_dump(r.json(), default_flow_style=False)
| 19.875 | 56 | 0.748428 | 26 | 159 | 4.423077 | 0.730769 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081761 | 159 | 7 | 57 | 22.714286 | 0.787671 | 0 | 0 | 0 | 0 | 0 | 0.238994 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.4 | null | null | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
d41e461eace99ce1a88595cfcdcd8fa29f9cb35b | 121 | py | Python | scripts/gen_examples_markdown.py | lucasdietrich/AVRTOS | a8a3b7890ed54fbb1bd718fd13b0eb620ecf9b13 | [
"Apache-2.0"
] | 3 | 2021-12-10T21:16:03.000Z | 2022-03-20T08:09:53.000Z | scripts/gen_examples_markdown.py | Adecy/atmega328p-multithreading | b0f2da9f31fba7bcccf5f06f827af87494a0bcb3 | [
"Apache-2.0"
] | null | null | null | scripts/gen_examples_markdown.py | Adecy/atmega328p-multithreading | b0f2da9f31fba7bcccf5f06f827af87494a0bcb3 | [
"Apache-2.0"
] | null | null | null | import os
import os.path
DIR = "./src/examples"
for name in os.listdir(DIR):
print(f"- [{name}]({DIR}/{name}/main.c)") | 20.166667 | 43 | 0.636364 | 21 | 121 | 3.666667 | 0.666667 | 0.207792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123967 | 121 | 6 | 43 | 20.166667 | 0.726415 | 0 | 0 | 0 | 0 | 0 | 0.368852 | 0.237705 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
d448817c4ab8b0e6eaa84b1f5deefe099f70e50d | 398 | py | Python | Python/code case/code case 193.py | amazing-2020/pdf | 8cd3f5f510a1c1ed89b51b1354f4f8c000c5b24d | [
"Apache-2.0"
] | 3 | 2021-01-01T13:08:24.000Z | 2021-02-03T09:27:56.000Z | Python/code case/code case 193.py | amazing-2020/pdf | 8cd3f5f510a1c1ed89b51b1354f4f8c000c5b24d | [
"Apache-2.0"
] | null | null | null | Python/code case/code case 193.py | amazing-2020/pdf | 8cd3f5f510a1c1ed89b51b1354f4f8c000c5b24d | [
"Apache-2.0"
] | null | null | null | import re
print(re.match('www', 'www.baidu.com').span())
print(re.match('com', 'www.baidu.com'))
line = 'Cats are smarter than dogs'
match_obj = re.match(r'(.*) are (.*?) .*', line, re.M | re.I)
if match_obj:
print('match_obj.group():', match_obj.group())
print('match_obj.group(1):', match_obj.group(1))
p... | 28.428571 | 61 | 0.628141 | 66 | 398 | 3.666667 | 0.363636 | 0.264463 | 0.322314 | 0.223141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011561 | 0.130653 | 398 | 13 | 62 | 30.615385 | 0.687861 | 0 | 0 | 0 | 0 | 0 | 0.354271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.545455 | 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 |
d45ab89f4bb9b98a043c0ddd10969b60854ed69e | 76 | py | Python | xiaozhu/xiaozhu/run.py | ayueaa/Some-Spiders | 4cf085e55eab822c08d06b62099d1c235d1840ae | [
"MIT"
] | 5 | 2021-09-08T13:18:46.000Z | 2022-03-08T03:04:43.000Z | xiaozhu/xiaozhu/run.py | ayueaa/Some-Spiders | 4cf085e55eab822c08d06b62099d1c235d1840ae | [
"MIT"
] | 6 | 2021-03-19T00:38:28.000Z | 2022-03-11T23:47:06.000Z | xiaozhu/xiaozhu/run.py | ayueaa/Some-Spiders | 4cf085e55eab822c08d06b62099d1c235d1840ae | [
"MIT"
] | 3 | 2020-01-09T11:41:42.000Z | 2021-12-11T22:47:16.000Z | from scrapy import cmdline
cmdline.execute("scrapy crawl duanzu".split()) | 25.333333 | 46 | 0.776316 | 10 | 76 | 5.9 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118421 | 76 | 3 | 46 | 25.333333 | 0.880597 | 0 | 0 | 0 | 0 | 0 | 0.253333 | 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 |
d46b4cee225d381bfdb8aed1cdacc471cad2b526 | 143 | py | Python | arbitrage/public_markets/wbfexusdt.py | aviatorBeijing/bitcoin-arbitrage | a82edf28383466a05b954e3983d204f2046e5c31 | [
"MIT"
] | null | null | null | arbitrage/public_markets/wbfexusdt.py | aviatorBeijing/bitcoin-arbitrage | a82edf28383466a05b954e3983d204f2046e5c31 | [
"MIT"
] | null | null | null | arbitrage/public_markets/wbfexusdt.py | aviatorBeijing/bitcoin-arbitrage | a82edf28383466a05b954e3983d204f2046e5c31 | [
"MIT"
] | null | null | null | from arbitrage.public_markets._wbfex import WBFEx
class WBFExUSDT(WBFEx):
def __init__(self):
super().__init__("USD", "btcusdt")
| 20.428571 | 49 | 0.706294 | 17 | 143 | 5.352941 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167832 | 143 | 6 | 50 | 23.833333 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0.06993 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
2e0fd61188cf57b927b2a3ff60783ec56df7804d | 185 | py | Python | tamusers/apps.py | Tampere/django-tamusers | 5b3d82332c435990dad98f64bb9094cc1502b7ef | [
"BSD-2-Clause"
] | null | null | null | tamusers/apps.py | Tampere/django-tamusers | 5b3d82332c435990dad98f64bb9094cc1502b7ef | [
"BSD-2-Clause"
] | 1 | 2020-04-20T14:05:28.000Z | 2020-04-20T14:05:28.000Z | tamusers/apps.py | Tampere/django-tamusers | 5b3d82332c435990dad98f64bb9094cc1502b7ef | [
"BSD-2-Clause"
] | null | null | null | from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class TamusersConfig(AppConfig):
name = 'tamusers'
verbose_name = _("Tampere Users")
| 23.125 | 55 | 0.767568 | 22 | 185 | 6.272727 | 0.772727 | 0.144928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156757 | 185 | 7 | 56 | 26.428571 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0.113514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 |
2e3593ee443a7cd00f324b8d6ac39dc5402c0f99 | 260 | py | Python | scphylo/settings/__init__.py | faridrashidi/scphylo-tools | 4574e2c015da58e59caa38e3b3e49b398c1379c1 | [
"BSD-3-Clause"
] | null | null | null | scphylo/settings/__init__.py | faridrashidi/scphylo-tools | 4574e2c015da58e59caa38e3b3e49b398c1379c1 | [
"BSD-3-Clause"
] | null | null | null | scphylo/settings/__init__.py | faridrashidi/scphylo-tools | 4574e2c015da58e59caa38e3b3e49b398c1379c1 | [
"BSD-3-Clause"
] | null | null | null | """Settings Module."""
from scphylo.settings._settings import (
hg19,
hg38,
logfile,
m10x,
mm10,
refs,
tools,
verbosity,
)
__all__ = (
hg19,
hg38,
logfile,
m10x,
mm10,
refs,
tools,
verbosity,
)
| 10.833333 | 40 | 0.526923 | 24 | 260 | 5.5 | 0.583333 | 0.121212 | 0.227273 | 0.287879 | 0.621212 | 0.621212 | 0.621212 | 0.621212 | 0 | 0 | 0 | 0.095808 | 0.357692 | 260 | 23 | 41 | 11.304348 | 0.694611 | 0.061538 | 0 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2e3ee4ce77388b2c6bbee2c9fa448e2f7bc90297 | 4,950 | py | Python | resources/banners/banner2.py | gitter-badger/LUNA-2 | d66ab4770ea880ac5aa46165807b2f7aae2c0017 | [
"BSD-3-Clause"
] | null | null | null | resources/banners/banner2.py | gitter-badger/LUNA-2 | d66ab4770ea880ac5aa46165807b2f7aae2c0017 | [
"BSD-3-Clause"
] | null | null | null | resources/banners/banner2.py | gitter-badger/LUNA-2 | d66ab4770ea880ac5aa46165807b2f7aae2c0017 | [
"BSD-3-Clause"
] | null | null | null | ##################################################################################################
###########
###########
###########
###########
###########
########### ######## ########################## ######
########### ######## ######... | 62.658228 | 126 | 0.321414 | 295 | 4,950 | 5.159322 | 0.525424 | 0.052562 | 0.049277 | 0.039422 | 0.170828 | 0.089356 | 0.089356 | 0.089356 | 0.089356 | 0.089356 | 0 | 0.001267 | 0.362424 | 4,950 | 79 | 127 | 62.658228 | 0.480989 | 0.320404 | 0 | 0.111111 | 0 | 0 | 0.65616 | 0.060172 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.055556 | 0 | 0.055556 | 0.944444 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
2e49dfbc5efa0bed8a92fa432c0a4c75d9688e48 | 315 | py | Python | setup.py | icaros-usc/ada_assistance_policy | 5bd21fe0bddc99516d71101949cd93220a5eaf10 | [
"BSD-3-Clause"
] | 1 | 2020-08-17T00:28:03.000Z | 2020-08-17T00:28:03.000Z | setup.py | icaros-usc/ada_assistance_policy | 5bd21fe0bddc99516d71101949cd93220a5eaf10 | [
"BSD-3-Clause"
] | 1 | 2017-05-30T16:59:51.000Z | 2017-06-01T16:39:03.000Z | setup.py | icaros-usc/ada_assistance_policy | 5bd21fe0bddc99516d71101949cd93220a5eaf10 | [
"BSD-3-Clause"
] | 5 | 2017-09-18T18:20:38.000Z | 2021-03-16T11:14:04.000Z | #!/usr/bin/env python
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
package_info = generate_distutils_setup()
package_info['packages'] = ['ada_assistance_policy']
package_info['package_dir'] = {'':'src'}
package_info['install_requires'] = []
setup(**package_info)
| 26.25 | 60 | 0.784127 | 41 | 315 | 5.658537 | 0.536585 | 0.237069 | 0.206897 | 0.25 | 0.284483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08254 | 315 | 11 | 61 | 28.636364 | 0.802768 | 0.063492 | 0 | 0 | 1 | 0 | 0.20068 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
2e81998b49c1207dd29643a9afaacb9a42ff5ff0 | 91 | py | Python | src/footwear/apps.py | Bakhtiyar-Habib/CSE327-Project | 4126b40eb398e4cf13b49136e552775c5f3b0635 | [
"bzip2-1.0.6"
] | null | null | null | src/footwear/apps.py | Bakhtiyar-Habib/CSE327-Project | 4126b40eb398e4cf13b49136e552775c5f3b0635 | [
"bzip2-1.0.6"
] | null | null | null | src/footwear/apps.py | Bakhtiyar-Habib/CSE327-Project | 4126b40eb398e4cf13b49136e552775c5f3b0635 | [
"bzip2-1.0.6"
] | null | null | null | from django.apps import AppConfig
class FootwearConfig(AppConfig):
name = 'footwear'
| 15.166667 | 33 | 0.758242 | 10 | 91 | 6.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164835 | 91 | 5 | 34 | 18.2 | 0.907895 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 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 |
2e852c89accd3bb5bc5dd6b1aff586b5f9d64d89 | 2,148 | py | Python | Emall/loggings.py | syz247179876/e_mall | f94e39e091e098242342f532ae371b8ff127542f | [
"Apache-2.0"
] | 7 | 2021-04-10T13:20:56.000Z | 2022-03-29T15:00:29.000Z | Emall/loggings.py | syz247179876/E_mall | f94e39e091e098242342f532ae371b8ff127542f | [
"Apache-2.0"
] | 9 | 2021-05-11T03:53:31.000Z | 2022-03-12T00:58:03.000Z | Emall/loggings.py | syz247179876/E_mall | f94e39e091e098242342f532ae371b8ff127542f | [
"Apache-2.0"
] | 2 | 2020-11-24T08:59:22.000Z | 2020-11-24T14:10:59.000Z | # -*- coding: utf-8 -*-
# @Time : 2020/5/9 8:50
# @Author : 司云中
# @File : loggings.py
# @Software: PyCharm
import abc
import logging
# 工厂模式
class AbstractLoggerFactory(metaclass=abc.ABCMeta):
@abc.abstractmethod
def common_logger(self):
pass
@abc.abstractmethod
def specific_logger(self):... | 20.264151 | 71 | 0.680168 | 245 | 2,148 | 5.706122 | 0.22449 | 0.09299 | 0.103004 | 0.071531 | 0.440629 | 0.440629 | 0.32475 | 0.271817 | 0.271817 | 0.271817 | 0 | 0.005967 | 0.219739 | 2,148 | 105 | 72 | 20.457143 | 0.828162 | 0.075419 | 0 | 0.5 | 0 | 0 | 0.011699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.321429 | false | 0.053571 | 0.035714 | 0.178571 | 0.732143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
5ce9291282807558c8af5cf28657de7af20fcaab | 97 | py | Python | productsapp/apps.py | Madjura/text-entailment | efaf5bd369971f5742eb3bad9ca998af402d0bcb | [
"MIT"
] | null | null | null | productsapp/apps.py | Madjura/text-entailment | efaf5bd369971f5742eb3bad9ca998af402d0bcb | [
"MIT"
] | null | null | null | productsapp/apps.py | Madjura/text-entailment | efaf5bd369971f5742eb3bad9ca998af402d0bcb | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ProductsappConfig(AppConfig):
name = 'productsapp'
| 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 |
cf19a2c01b877219ebc98e8e850ee1d71a6a3490 | 127 | py | Python | Taras_Lepa/forth_hwk/floating_loop.py | kolyasalubov/Lv-639.pythonCore | 06f10669a188318884adb00723127465ebdf2907 | [
"MIT"
] | null | null | null | Taras_Lepa/forth_hwk/floating_loop.py | kolyasalubov/Lv-639.pythonCore | 06f10669a188318884adb00723127465ebdf2907 | [
"MIT"
] | null | null | null | Taras_Lepa/forth_hwk/floating_loop.py | kolyasalubov/Lv-639.pythonCore | 06f10669a188318884adb00723127465ebdf2907 | [
"MIT"
] | null | null | null | #Floating loop
first_list = list(range(10))
for i in first_list:
first_list[i] = float(first_list[i])
print(first_list)
| 18.142857 | 40 | 0.716535 | 22 | 127 | 3.909091 | 0.5 | 0.523256 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018692 | 0.15748 | 127 | 6 | 41 | 21.166667 | 0.785047 | 0.102362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cf1a1ef9d67252636ae9c22b402b8e31718f8cf0 | 125 | py | Python | tests/__init__.py | smartenv/smartcan | dcd214acd26fdc0af940460d42cb0f4f75a40829 | [
"Apache-2.0"
] | null | null | null | tests/__init__.py | smartenv/smartcan | dcd214acd26fdc0af940460d42cb0f4f75a40829 | [
"Apache-2.0"
] | 1 | 2019-09-02T20:21:27.000Z | 2019-09-02T22:58:38.000Z | tests/__init__.py | smartenv/smartcan | dcd214acd26fdc0af940460d42cb0f4f75a40829 | [
"Apache-2.0"
] | null | null | null | from gpiozero import Device
from gpiozero.pins.mock import MockFactory
factory = MockFactory()
Device.pin_factory = factory | 20.833333 | 42 | 0.824 | 16 | 125 | 6.375 | 0.5625 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 125 | 6 | 43 | 20.833333 | 0.927273 | 0 | 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 |
cf305af21b5600d03f07ae60b55be039a5a09aff | 1,468 | py | Python | msgbot/fb_bot/migrations/0001_initial.py | mshvern/fbportalbot | 6674056a7aaa5bc793612684979c6f57e4d0059c | [
"Apache-2.0"
] | null | null | null | msgbot/fb_bot/migrations/0001_initial.py | mshvern/fbportalbot | 6674056a7aaa5bc793612684979c6f57e4d0059c | [
"Apache-2.0"
] | null | null | null | msgbot/fb_bot/migrations/0001_initial.py | mshvern/fbportalbot | 6674056a7aaa5bc793612684979c6f57e4d0059c | [
"Apache-2.0"
] | 1 | 2019-09-06T13:38:20.000Z | 2019-09-06T13:38:20.000Z | # Generated by Django 2.0.6 on 2018-06-11 11:18
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Movie',
fields=[
('movie_id', models.AutoFi... | 39.675676 | 93 | 0.566757 | 151 | 1,468 | 5.357616 | 0.423841 | 0.278121 | 0.266996 | 0.355995 | 0.396786 | 0.163164 | 0.163164 | 0.163164 | 0.163164 | 0 | 0 | 0.056405 | 0.287466 | 1,468 | 36 | 94 | 40.777778 | 0.717017 | 0.030654 | 0 | 0 | 1 | 0 | 0.095004 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.172414 | 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 |
cf47b06a16b0d5c2e504dfdfc144a55b8241762e | 1,948 | py | Python | src/a05obiekty/CalculatorTest.py | tborzyszkowski/PSPI_Wstep_do_programowania | 4aca4dfe5a8daed19d7852dd29b6cfa57df8f51c | [
"MIT"
] | null | null | null | src/a05obiekty/CalculatorTest.py | tborzyszkowski/PSPI_Wstep_do_programowania | 4aca4dfe5a8daed19d7852dd29b6cfa57df8f51c | [
"MIT"
] | null | null | null | src/a05obiekty/CalculatorTest.py | tborzyszkowski/PSPI_Wstep_do_programowania | 4aca4dfe5a8daed19d7852dd29b6cfa57df8f51c | [
"MIT"
] | null | null | null | import unittest
from .Calculator import *
class CalculatorTestCase(unittest.TestCase):
def setUp(self) -> None:
self.calculator = Calculator()
def test_add(self):
self.calculator.add(1)
self.assertEqual(1, self.calculator.state)
def test_mult_0(self):
self.calculator.mult(... | 28.647059 | 62 | 0.660164 | 246 | 1,948 | 5.060976 | 0.170732 | 0.393574 | 0.213655 | 0.176707 | 0.576707 | 0.466667 | 0.321285 | 0.316466 | 0.186345 | 0.104418 | 0 | 0.048602 | 0.228953 | 1,948 | 67 | 63 | 29.074627 | 0.780293 | 0 | 0 | 0.264151 | 0 | 0 | 0.004107 | 0 | 0 | 0 | 0 | 0 | 0.226415 | 1 | 0.245283 | false | 0 | 0.037736 | 0 | 0.301887 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cf6485e52af6f8d9359cefb7bc42aa11fbc19a46 | 292 | py | Python | src/python/rossj/__init__.py | rhjohnstone/RossJ | 3bf0a81d085de33c5b461c10f2d66f52bf86450f | [
"FTL"
] | null | null | null | src/python/rossj/__init__.py | rhjohnstone/RossJ | 3bf0a81d085de33c5b461c10f2d66f52bf86450f | [
"FTL"
] | null | null | null | src/python/rossj/__init__.py | rhjohnstone/RossJ | 3bf0a81d085de33c5b461c10f2d66f52bf86450f | [
"FTL"
] | null | null | null | import warnings
# At the moment there are many harmless duplicate registration warnings from boost python. Ignore them until a suitable
# way to avoid duplicate registration during wrapper building is found.
warnings.filterwarnings("ignore")
from _chaste_project_RossJ_ross_manual import *
| 36.5 | 119 | 0.832192 | 40 | 292 | 5.95 | 0.825 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133562 | 292 | 7 | 120 | 41.714286 | 0.940711 | 0.640411 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 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 |
d8527a6582b22b8bf858bfaac53ed23a799c4c48 | 648 | py | Python | python/anyascii/_data/_27e.py | casept/anyascii | d4f426b91751254b68eaa84c6cd23099edd668e6 | [
"ISC"
] | null | null | null | python/anyascii/_data/_27e.py | casept/anyascii | d4f426b91751254b68eaa84c6cd23099edd668e6 | [
"ISC"
] | null | null | null | python/anyascii/_data/_27e.py | casept/anyascii | d4f426b91751254b68eaa84c6cd23099edd668e6 | [
"ISC"
] | null | null | null | b=' Xian Zhi Bin Vui Chua Zhi Zhuan Xue Lian Sui Ban Lan Ju Mian Xun Zhan Gun Khenh Zhi Cong Bui Wei Quan Chai Ngheo Reng Yue Vay Zi Zaan Zaan Luo Gui Mai Cheng Zhang Ju Tian Wan Zhi Nan Da Han Do Do Xi Lin Son Lom Yan Xu Huong Tham Hu Gan Xu Xi Cui Do Do ... | 648 | 648 | 0.601852 | 128 | 648 | 3.046875 | 0.734375 | 0.030769 | 0.030769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.393519 | 648 | 1 | 648 | 648 | 0.992366 | 0 | 0 | 0 | 0 | 1 | 0.992296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d88f63acca4e9156934c145da882b9114c3c3c8e | 447 | py | Python | tests/resources/functions_with_generics.py | jameslamb/hamilton | 49f11ede9a79478f31b8ded2673ec0f977033562 | [
"BSD-3-Clause-Clear"
] | 298 | 2021-10-14T20:56:45.000Z | 2022-03-30T12:55:05.000Z | tests/resources/functions_with_generics.py | jameslamb/hamilton | 49f11ede9a79478f31b8ded2673ec0f977033562 | [
"BSD-3-Clause-Clear"
] | 58 | 2021-10-18T17:54:41.000Z | 2022-03-31T00:19:36.000Z | tests/resources/functions_with_generics.py | jameslamb/hamilton | 49f11ede9a79478f31b8ded2673ec0f977033562 | [
"BSD-3-Clause-Clear"
] | 15 | 2021-10-30T17:45:59.000Z | 2022-03-09T14:55:53.000Z | """
Module for functions with genercis to test graph things with.
"""
from typing import Dict, Mapping, List, Tuple
def A(b: Dict, c: int) -> Tuple[Dict, int]:
"""Function that should become part of the graph - A"""
return b, c
def B(A: Tuple[Dict, int]) -> List:
"""Function that should become part of t... | 19.434783 | 61 | 0.615213 | 73 | 447 | 3.767123 | 0.465753 | 0.065455 | 0.087273 | 0.174545 | 0.276364 | 0.276364 | 0.276364 | 0.276364 | 0 | 0 | 0 | 0.005865 | 0.237136 | 447 | 22 | 62 | 20.318182 | 0.800587 | 0.360179 | 0 | 0 | 0 | 0 | 0.011194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0.111111 | 0.222222 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
d8a9bff484a2806acafb831dd0fd29200271b84e | 432 | py | Python | hw_asr/augmentations/spectrogram_augmentations/FrequencyMasking.py | ivan-gorin/asr_project_template | 6a9f908d7f287ac2a66d5740fa6c73133825845a | [
"MIT"
] | null | null | null | hw_asr/augmentations/spectrogram_augmentations/FrequencyMasking.py | ivan-gorin/asr_project_template | 6a9f908d7f287ac2a66d5740fa6c73133825845a | [
"MIT"
] | null | null | null | hw_asr/augmentations/spectrogram_augmentations/FrequencyMasking.py | ivan-gorin/asr_project_template | 6a9f908d7f287ac2a66d5740fa6c73133825845a | [
"MIT"
] | null | null | null | import torchaudio
from torch import Tensor
from hw_asr.augmentations.base import AugmentationBase
from hw_asr.augmentations.random_apply import RandomApply
class FrequencyMasking(AugmentationBase):
def __init__(self, freq_mask_param=15, p=0.5):
self._aug = RandomApply(torchaudio.transforms.FrequencyMaski... | 30.857143 | 109 | 0.787037 | 57 | 432 | 5.631579 | 0.526316 | 0.074766 | 0.121495 | 0.137072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010695 | 0.134259 | 432 | 13 | 110 | 33.230769 | 0.847594 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.444444 | 0.111111 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
d8d8366cac3a78a410909961900b6b85984a5987 | 78 | py | Python | 01. hello_world.py | dovletov/expert-potato | 9b41c274274a3674880123cc130638db4693e3a2 | [
"MIT"
] | null | null | null | 01. hello_world.py | dovletov/expert-potato | 9b41c274274a3674880123cc130638db4693e3a2 | [
"MIT"
] | null | null | null | 01. hello_world.py | dovletov/expert-potato | 9b41c274274a3674880123cc130638db4693e3a2 | [
"MIT"
] | null | null | null | import tensorflow as tf
with tf.Session() as sess:
print("Hello World!")
| 15.6 | 26 | 0.692308 | 12 | 78 | 4.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 78 | 4 | 27 | 19.5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 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 |
d8ef266d6f74b9212afe7df4174f7e1904b55b97 | 434 | py | Python | measurements/gunicorn_config.py | cyBerta/api | af8e15a800ffc272799a269f4801cbdd174d0c43 | [
"BSD-3-Clause"
] | null | null | null | measurements/gunicorn_config.py | cyBerta/api | af8e15a800ffc272799a269f4801cbdd174d0c43 | [
"BSD-3-Clause"
] | null | null | null | measurements/gunicorn_config.py | cyBerta/api | af8e15a800ffc272799a269f4801cbdd174d0c43 | [
"BSD-3-Clause"
] | null | null | null | from .config import PROMETHEUS_PORT
# This config is taken from:
# https://github.com/rycus86/prometheus_flask_exporter#multiprocess-applications
from prometheus_flask_exporter.multiprocess import GunicornPrometheusMetrics
def when_ready(server):
GunicornPrometheusMetrics.start_http_server_when_ready(PROMETHEUS_... | 31 | 80 | 0.854839 | 52 | 434 | 6.807692 | 0.596154 | 0.079096 | 0.129944 | 0.19774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005025 | 0.082949 | 434 | 13 | 81 | 33.384615 | 0.884422 | 0.239631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
2b1df826434d4980ce42e2e7824f2a772be8fee5 | 148 | py | Python | day47.py | DailyCodingHabit/dailyquiz | 06d2bdd73cde41ce93449cbeed336115a3131dd9 | [
"Apache-2.0"
] | null | null | null | day47.py | DailyCodingHabit/dailyquiz | 06d2bdd73cde41ce93449cbeed336115a3131dd9 | [
"Apache-2.0"
] | null | null | null | day47.py | DailyCodingHabit/dailyquiz | 06d2bdd73cde41ce93449cbeed336115a3131dd9 | [
"Apache-2.0"
] | null | null | null |
# Python Example
i = 5
while i < 10:
print(i)
i += 1
<?php
/* example 1 */
$i = 5;
while ($i <= 10) {
echo $i++;
}
| 7.789474 | 19 | 0.385135 | 21 | 148 | 2.714286 | 0.47619 | 0.070175 | 0.245614 | 0.280702 | 0.350877 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094118 | 0.425676 | 148 | 18 | 20 | 8.222222 | 0.576471 | 0.094595 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.1 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2b284baf7e0cb0aa3832f90acf54237d361ae726 | 94 | py | Python | canteen/apps.py | HemanthJella/ewallet | cc7f9b5abb7aa552b8769b9324c3d79630e5ea6a | [
"Apache-2.0"
] | null | null | null | canteen/apps.py | HemanthJella/ewallet | cc7f9b5abb7aa552b8769b9324c3d79630e5ea6a | [
"Apache-2.0"
] | null | null | null | canteen/apps.py | HemanthJella/ewallet | cc7f9b5abb7aa552b8769b9324c3d79630e5ea6a | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class CanteenConfig(AppConfig):
name = 'canteen'
| 15.666667 | 34 | 0.712766 | 10 | 94 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212766 | 94 | 5 | 35 | 18.8 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 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 |
2b2939c043e22fadaffe4fd5d1ba8771f2543f1a | 164 | py | Python | uniq_samples/code_samples/apic_config.py | patttakid/open | 0a1d62306acecf82d9071d762bd5e7aa8ffd5085 | [
"Apache-2.0"
] | 58 | 2016-02-09T08:44:36.000Z | 2020-03-10T17:19:08.000Z | uniq_samples/code_samples/apic_config.py | patttakid/open | 0a1d62306acecf82d9071d762bd5e7aa8ffd5085 | [
"Apache-2.0"
] | 2 | 2017-05-08T14:51:34.000Z | 2018-01-14T21:02:56.000Z | uniq_samples/code_samples/apic_config.py | patttakid/open | 0a1d62306acecf82d9071d762bd5e7aa8ffd5085 | [
"Apache-2.0"
] | 50 | 2016-02-11T08:17:39.000Z | 2020-12-10T05:11:50.000Z | import os
APIC=os.getenv("APIC") or "sandboxapic.cisco.com"
APIC_USER=os.getenv("APIC_USER") or "devnetuser"
APIC_PASSWORD=os.getenv("APIC_PASSWORD") or "Cisco123!" | 41 | 55 | 0.77439 | 26 | 164 | 4.730769 | 0.461538 | 0.195122 | 0.292683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019481 | 0.060976 | 164 | 4 | 55 | 41 | 0.779221 | 0 | 0 | 0 | 0 | 0 | 0.4 | 0.127273 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.25 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
2b3cbbc01265ac6e551e9b0d3c042fdfff8f1766 | 22 | py | Python | API_key.py | gaelfargeas/Virustotal_scan | 930e47524a60e2e537233c4675f582ae02276509 | [
"BSD-3-Clause"
] | null | null | null | API_key.py | gaelfargeas/Virustotal_scan | 930e47524a60e2e537233c4675f582ae02276509 | [
"BSD-3-Clause"
] | null | null | null | API_key.py | gaelfargeas/Virustotal_scan | 930e47524a60e2e537233c4675f582ae02276509 | [
"BSD-3-Clause"
] | null | null | null | API_key="your API key" | 22 | 22 | 0.772727 | 5 | 22 | 3.2 | 0.6 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 22 | 1 | 22 | 22 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.521739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2b6c2023c4daca4e218f738baf17e391ccb62a30 | 63 | py | Python | examples/python/runfoobar.py | tjgiese/atizer | b8cdb8f4bac7cedfb566d766acee5fe0cc7a7bd3 | [
"MIT"
] | null | null | null | examples/python/runfoobar.py | tjgiese/atizer | b8cdb8f4bac7cedfb566d766acee5fe0cc7a7bd3 | [
"MIT"
] | null | null | null | examples/python/runfoobar.py | tjgiese/atizer | b8cdb8f4bac7cedfb566d766acee5fe0cc7a7bd3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from foobar.sub.script import *
hello()
| 12.6 | 31 | 0.714286 | 10 | 63 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126984 | 63 | 4 | 32 | 15.75 | 0.818182 | 0.31746 | 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 |
991c2995c62cc507b84a74ca76f29afb89a2f363 | 2,358 | py | Python | tests/test_platform.py | kkoralsky/pex | 72c29ce99deb1b1730682dc50c618563243a3265 | [
"Apache-2.0"
] | 1 | 2020-08-13T17:09:20.000Z | 2020-08-13T17:09:20.000Z | tests/test_platform.py | kkoralsky/pex | 72c29ce99deb1b1730682dc50c618563243a3265 | [
"Apache-2.0"
] | null | null | null | tests/test_platform.py | kkoralsky/pex | 72c29ce99deb1b1730682dc50c618563243a3265 | [
"Apache-2.0"
] | 6 | 2017-06-19T23:23:18.000Z | 2021-12-20T21:39:43.000Z | # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
import pytest
from pex.platforms import Platform
class TestPlatform(object):
def test_pure_python(self):
assert Platform.compatible(None, None)
assert Platform.compatible(None... | 39.966102 | 79 | 0.726887 | 342 | 2,358 | 4.926901 | 0.239766 | 0.147181 | 0.227893 | 0.231454 | 0.601187 | 0.479525 | 0.479525 | 0.420178 | 0.348368 | 0.317507 | 0 | 0.098772 | 0.13698 | 2,358 | 58 | 80 | 40.655172 | 0.729238 | 0.176421 | 0 | 0.09375 | 0 | 0 | 0.327979 | 0 | 0 | 0 | 0 | 0.017241 | 0.5625 | 1 | 0.15625 | false | 0 | 0.0625 | 0 | 0.25 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9938ad559b27112f8a4f9ef895c9c7323cd93f5d | 90 | py | Python | app_poem/apps.py | visoon0012/plover.cloud | 04542628758d969085eb6172928165fddb5d2677 | [
"Apache-2.0"
] | 1 | 2018-05-15T08:34:14.000Z | 2018-05-15T08:34:14.000Z | app_poem/apps.py | visoon0012/plover.cloud | 04542628758d969085eb6172928165fddb5d2677 | [
"Apache-2.0"
] | 7 | 2020-06-05T18:09:20.000Z | 2022-03-11T23:20:49.000Z | app_poem/apps.py | visoon0012/plover.cloud | 04542628758d969085eb6172928165fddb5d2677 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class AppPoemConfig(AppConfig):
name = 'app_poem'
| 15 | 33 | 0.755556 | 11 | 90 | 6.090909 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 90 | 5 | 34 | 18 | 0.893333 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 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 |
9968494f54b6ea9580247ae75f9b060b7fed1c56 | 98 | py | Python | smart_mpls/mpls_manager/apps.py | ib-sang/smartMPLS-with-djqngo | abe2a34a288c979fa51404c6b1e732eb468a8628 | [
"MIT"
] | null | null | null | smart_mpls/mpls_manager/apps.py | ib-sang/smartMPLS-with-djqngo | abe2a34a288c979fa51404c6b1e732eb468a8628 | [
"MIT"
] | 7 | 2020-08-02T22:50:43.000Z | 2021-12-13T20:49:45.000Z | smart_mpls/mpls_manager/apps.py | ib-sang/smartMPLS-with-django | abe2a34a288c979fa51404c6b1e732eb468a8628 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class MplsManagerConfig(AppConfig):
name = 'mpls_manager'
| 16.333333 | 35 | 0.77551 | 11 | 98 | 6.818182 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153061 | 98 | 5 | 36 | 19.6 | 0.903614 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 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 |
997735e2b1ddba34541971fa4295acb5bb2410bd | 4,867 | py | Python | tests/test_decentrafact.py | irustandi/blockchain-developer-bootcamp-final-project | 0f0e19158381cbbc5d42292f2093f0235c78bb2d | [
"MIT"
] | null | null | null | tests/test_decentrafact.py | irustandi/blockchain-developer-bootcamp-final-project | 0f0e19158381cbbc5d42292f2093f0235c78bb2d | [
"MIT"
] | 1 | 2021-12-17T09:01:47.000Z | 2022-02-15T01:04:33.000Z | tests/test_decentrafact.py | irustandi/blockchain-developer-bootcamp-final-project | 0f0e19158381cbbc5d42292f2093f0235c78bb2d | [
"MIT"
] | null | null | null | import pytest
import brownie
from brownie import FactItem, VoteManager, interface, chain
from scripts.helpful_scripts import get_account, get_contract
@pytest.fixture
def deploy_fact():
account = get_account()
fact_item = FactItem.deploy(
{"from": account}
)
return fact_item
@pytest.fixture... | 19.313492 | 67 | 0.589891 | 564 | 4,867 | 4.769504 | 0.109929 | 0.089219 | 0.083643 | 0.069517 | 0.790335 | 0.732342 | 0.713011 | 0.691078 | 0.677695 | 0.660967 | 0 | 0.015868 | 0.300801 | 4,867 | 252 | 68 | 19.313492 | 0.774611 | 0.009657 | 0 | 0.727749 | 0 | 0 | 0.073166 | 0 | 0 | 0 | 0 | 0 | 0.099476 | 1 | 0.04712 | false | 0 | 0.020942 | 0 | 0.078534 | 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 |
99a1b05f021c298c1bd426cab6a197abbb1cbb75 | 87 | py | Python | admin/cconfigurator/tag/admin.py | Ekateriner/Distributed-informer | c5464eea0efd708926a99b506fb831f395b1aede | [
"MIT"
] | null | null | null | admin/cconfigurator/tag/admin.py | Ekateriner/Distributed-informer | c5464eea0efd708926a99b506fb831f395b1aede | [
"MIT"
] | null | null | null | admin/cconfigurator/tag/admin.py | Ekateriner/Distributed-informer | c5464eea0efd708926a99b506fb831f395b1aede | [
"MIT"
] | null | null | null | from django.contrib import admin
from tag.models import Tag
admin.site.register(Tag)
| 14.5 | 32 | 0.804598 | 14 | 87 | 5 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126437 | 87 | 5 | 33 | 17.4 | 0.921053 | 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 |
41d151dfb917705cfb6c5a183eb902a156b0c263 | 162 | py | Python | abieos/__init__.py | ulamlabs/abieos-python | ae400674ba42c922120311ab030252f5c8ff6ca4 | [
"MIT"
] | 2 | 2020-04-23T14:32:36.000Z | 2020-04-27T10:19:08.000Z | abieos/__init__.py | ulamlabs/abieos-python | ae400674ba42c922120311ab030252f5c8ff6ca4 | [
"MIT"
] | 1 | 2020-04-24T05:48:10.000Z | 2020-04-24T05:48:10.000Z | abieos/__init__.py | ulamlabs/abieos-python | ae400674ba42c922120311ab030252f5c8ff6ca4 | [
"MIT"
] | null | null | null | from abieos.serializer import (
EosAbiSerializer, EosAbiSerializerException
) # noqa
__all__ = [
'EosAbiSerializer',
'EosAbiSerializerException'
]
| 16.2 | 47 | 0.734568 | 10 | 162 | 11.5 | 0.8 | 0.713043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 162 | 9 | 48 | 18 | 0.871212 | 0.024691 | 0 | 0 | 0 | 0 | 0.262821 | 0.160256 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 1 | 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 | 0 | 0 | 4 |
41e4e9e91574c6bca06fbb75fe130b8fef2910ac | 200 | py | Python | src/pyndf/gui/tables/useclass/smart/csv.py | Guillaume-Guardia/ndf-python | 836498b210d2f921e76292df8046cd79006b458a | [
"MIT"
] | null | null | null | src/pyndf/gui/tables/useclass/smart/csv.py | Guillaume-Guardia/ndf-python | 836498b210d2f921e76292df8046cd79006b458a | [
"MIT"
] | null | null | null | src/pyndf/gui/tables/useclass/smart/csv.py | Guillaume-Guardia/ndf-python | 836498b210d2f921e76292df8046cd79006b458a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from pyndf.constants import CONST
from pyndf.gui.tables.useclass.smart.abstract import AbstractSmartTable
class CsvSmartTable(AbstractSmartTable):
type = CONST.TYPE.CSV
| 22.222222 | 71 | 0.77 | 24 | 200 | 6.416667 | 0.75 | 0.116883 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005714 | 0.125 | 200 | 8 | 72 | 25 | 0.874286 | 0.105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
41e87fe0251da52725d82dc93b081723e7d35674 | 1,004 | py | Python | meusExemplos/testes/test_teste1.py | wemerson-henrique/kivy | 3cb6061a2d19b01e86c3738206f30c8a853763d4 | [
"MIT"
] | null | null | null | meusExemplos/testes/test_teste1.py | wemerson-henrique/kivy | 3cb6061a2d19b01e86c3738206f30c8a853763d4 | [
"MIT"
] | null | null | null | meusExemplos/testes/test_teste1.py | wemerson-henrique/kivy | 3cb6061a2d19b01e86c3738206f30c8a853763d4 | [
"MIT"
] | null | null | null | import unittest
from exemplo1 import Soma, Dividir
class TestSoma(unittest.TestCase):
def test_retornar_introducao(self):
self.assertEqual(Soma(2, 3),5)
self.assertEqual(Soma(-2, 3),1)
self.assertEqual(Soma(2000, 3),2003)
def test_tipo_de_parametro(self):
self.assertRaises... | 37.185185 | 108 | 0.668327 | 134 | 1,004 | 4.940299 | 0.350746 | 0.241692 | 0.339879 | 0.39426 | 0.478852 | 0.279456 | 0.232628 | 0.18429 | 0.18429 | 0.18429 | 0 | 0.05665 | 0.191235 | 1,004 | 27 | 108 | 37.185185 | 0.758621 | 0.156375 | 0 | 0 | 0 | 0 | 0.004739 | 0 | 0 | 0 | 0 | 0 | 0.684211 | 1 | 0.157895 | false | 0 | 0.105263 | 0 | 0.315789 | 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 |
511bd66df95212dc058fa18098e47ba7bb77c243 | 212 | py | Python | gamenet/generate/msg_connless.py | Zwelf/libtw2 | 0afb7283a3f1cf6721eabdba3b941d2618133ff5 | [
"Apache-2.0",
"MIT"
] | null | null | null | gamenet/generate/msg_connless.py | Zwelf/libtw2 | 0afb7283a3f1cf6721eabdba3b941d2618133ff5 | [
"Apache-2.0",
"MIT"
] | null | null | null | gamenet/generate/msg_connless.py | Zwelf/libtw2 | 0afb7283a3f1cf6721eabdba3b941d2618133ff5 | [
"Apache-2.0",
"MIT"
] | null | null | null | import network
import fix_network
import datatypes
emit = datatypes.Emit()
with emit:
datatypes.emit_header_msg_connless()
datatypes.emit_enum_connless_module("Connless", network.Connless)
emit.dump()
| 17.666667 | 69 | 0.792453 | 27 | 212 | 5.962963 | 0.444444 | 0.322981 | 0.21118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122642 | 212 | 11 | 70 | 19.272727 | 0.865591 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
51573e8c30f786720c11523fc177556a82444df9 | 190 | py | Python | Chapter 09/__manifest__.py | hitosony/odoo | 04766df4a70c81a5fff913ead545d5b6c95ffed8 | [
"MIT"
] | 84 | 2016-12-16T13:55:05.000Z | 2021-11-08T13:13:36.000Z | Chapter 09/__manifest__.py | hitosony/odoo | 04766df4a70c81a5fff913ead545d5b6c95ffed8 | [
"MIT"
] | 4 | 2017-04-11T12:25:41.000Z | 2020-11-25T14:16:34.000Z | Chapter 09/__manifest__.py | hitosony/odoo | 04766df4a70c81a5fff913ead545d5b6c95ffed8 | [
"MIT"
] | 95 | 2016-11-30T09:02:52.000Z | 2021-12-07T22:28:09.000Z | {
'name': 'To-Do Kanban board',
'description': 'Kanban board to manage to-do tasks.',
'author': 'Daniel Reis',
'depends': ['todo_ui'],
'data': ['views/todo_view.xml'],
}
| 23.75 | 57 | 0.573684 | 24 | 190 | 4.458333 | 0.75 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 190 | 7 | 58 | 27.142857 | 0.713333 | 0 | 0 | 0 | 0 | 0 | 0.642105 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
515ac473f5975d5f96e0d47001d20f797e9ab4a3 | 1,130 | py | Python | accounts/migrations/0003_auto_20210629_1448.py | kritebh/django-blog | 5b3d76e4b41735368169cbd7ef54f32c233160d4 | [
"Apache-2.0"
] | null | null | null | accounts/migrations/0003_auto_20210629_1448.py | kritebh/django-blog | 5b3d76e4b41735368169cbd7ef54f32c233160d4 | [
"Apache-2.0"
] | null | null | null | accounts/migrations/0003_auto_20210629_1448.py | kritebh/django-blog | 5b3d76e4b41735368169cbd7ef54f32c233160d4 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.4 on 2021-06-29 09:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0002_auto_20210629_1319'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='facebook'... | 28.974359 | 73 | 0.570796 | 114 | 1,130 | 5.54386 | 0.377193 | 0.158228 | 0.197785 | 0.22943 | 0.696203 | 0.696203 | 0.632911 | 0.632911 | 0.632911 | 0.632911 | 0 | 0.058899 | 0.30885 | 1,130 | 38 | 74 | 29.736842 | 0.75032 | 0.039823 | 0 | 0.625 | 1 | 0 | 0.0988 | 0.021237 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5162c338b61c90d2db28b214a9c485e07cdfd782 | 215 | py | Python | src/__init__.py | MJDekkers/BDR_training_dag1 | df3c4e064a2ac3d2ecde828723e053815f2842da | [
"MIT"
] | null | null | null | src/__init__.py | MJDekkers/BDR_training_dag1 | df3c4e064a2ac3d2ecde828723e053815f2842da | [
"MIT"
] | 5 | 2020-01-28T23:07:59.000Z | 2022-02-10T00:34:54.000Z | src/__init__.py | MJDekkers/BDR_training_dag1 | df3c4e064a2ac3d2ecde828723e053815f2842da | [
"MIT"
] | null | null | null | from .data.Load_data import load_data
from .features.build_features import load_processed_data_inc_mean_std, load_mean_std
from .models.Train_model import train_model
from .models.Predict_model import predict_model
| 43 | 84 | 0.87907 | 35 | 215 | 5 | 0.4 | 0.091429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07907 | 215 | 4 | 85 | 53.75 | 0.883838 | 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 |
5a92465cef235caa1293b85b4fecc7c2a9aa360b | 142 | py | Python | src/z3c/testsetup/tests/cave/broken_mod.py | zopefoundation/z3c.testsetup | 7a07939b5df33d2124916385efdc9c82495d1b32 | [
"ZPL-2.1"
] | 1 | 2020-09-08T06:51:02.000Z | 2020-09-08T06:51:02.000Z | src/z3c/testsetup/tests/cave/broken_mod.py | zopefoundation/z3c.testsetup | 7a07939b5df33d2124916385efdc9c82495d1b32 | [
"ZPL-2.1"
] | 2 | 2015-04-14T18:00:03.000Z | 2020-05-15T08:56:34.000Z | src/z3c/testsetup/tests/cave/broken_mod.py | zopefoundation/z3c.testsetup | 7a07939b5df33d2124916385efdc9c82495d1b32 | [
"ZPL-2.1"
] | 1 | 2020-09-08T06:19:35.000Z | 2020-09-08T06:19:35.000Z | """
This module is broken, but does not contain tests.
It should be ignored while scanning for test modules.
"""
import non_existing_package
| 20.285714 | 53 | 0.774648 | 22 | 142 | 4.909091 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161972 | 142 | 6 | 54 | 23.666667 | 0.907563 | 0.739437 | 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 |
5a94bd3dc547c377d149fc90bf4deeaddb713cbf | 124 | py | Python | 12_module_basic/16_controller/mod.py | hemuke/python | bc99f2b5aee997083ae31f59a2b33db48c8255f3 | [
"Apache-2.0"
] | null | null | null | 12_module_basic/16_controller/mod.py | hemuke/python | bc99f2b5aee997083ae31f59a2b33db48c8255f3 | [
"Apache-2.0"
] | null | null | null | 12_module_basic/16_controller/mod.py | hemuke/python | bc99f2b5aee997083ae31f59a2b33db48c8255f3 | [
"Apache-2.0"
] | null | null | null | v = 18
_v = 56
def f():
pass
def _f():
pass
class MyClass(object):
pass
class _MyClass(object):
pass
| 6.888889 | 23 | 0.556452 | 18 | 124 | 3.666667 | 0.5 | 0.121212 | 0.242424 | 0.666667 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0.330645 | 124 | 17 | 24 | 7.294118 | 0.746988 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.4 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
5ac870c678d1ca4a2d7a862ae91d167ae549484a | 1,066 | py | Python | gem/migrations/0045_auto_20210107_1241.py | praekelt/molo-gem | ab4f9a16719f6cfc1981ef448f1d42c457e1dad7 | [
"BSD-2-Clause"
] | 3 | 2017-08-03T22:37:13.000Z | 2018-06-14T15:36:01.000Z | gem/migrations/0045_auto_20210107_1241.py | praekelt/molo-gem | ab4f9a16719f6cfc1981ef448f1d42c457e1dad7 | [
"BSD-2-Clause"
] | 635 | 2016-01-12T07:23:46.000Z | 2018-11-16T07:43:13.000Z | gem/migrations/0045_auto_20210107_1241.py | praekelt/molo-gem | ab4f9a16719f6cfc1981ef448f1d42c457e1dad7 | [
"BSD-2-Clause"
] | 6 | 2017-05-11T09:50:34.000Z | 2018-11-16T10:42:56.000Z | # Generated by Django 3.1.5 on 2021-01-07 10:41
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('gem', '0044_remove_deprecated_tables'),
]
operations = [
migrations.RemoveField(
model_name='gemsettings',
name='bbm_ga_acco... | 25.380952 | 49 | 0.559099 | 93 | 1,066 | 6.129032 | 0.494624 | 0.257895 | 0.319298 | 0.368421 | 0.631579 | 0.631579 | 0.470175 | 0.470175 | 0.203509 | 0 | 0 | 0.02695 | 0.338649 | 1,066 | 41 | 50 | 26 | 0.78156 | 0.042214 | 0 | 0.6 | 1 | 0 | 0.229637 | 0.07262 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028571 | 0 | 0.114286 | 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 |
5ae8dfeac1be6369506fc5b235ca6768780c64d4 | 152 | py | Python | portfolio_creator/data_source.py | cmvandrevala/finance_scripts | dc256d2284bc3fa9cf35572b771e7c9538ad2309 | [
"MIT"
] | 2 | 2020-05-13T14:52:49.000Z | 2022-03-20T04:32:10.000Z | portfolio_creator/data_source.py | cmvandrevala/finance_scripts | dc256d2284bc3fa9cf35572b771e7c9538ad2309 | [
"MIT"
] | 1 | 2021-10-09T16:21:42.000Z | 2021-10-09T16:21:42.000Z | portfolio_creator/data_source.py | cmvandrevala/finance_scripts | dc256d2284bc3fa9cf35572b771e7c9538ad2309 | [
"MIT"
] | 1 | 2020-05-13T14:52:52.000Z | 2020-05-13T14:52:52.000Z | import requests
from utilities.constants import Constants
class DataSource:
def get(self):
return requests.get(Constants.DATA_URL).text
| 15.2 | 52 | 0.75 | 19 | 152 | 5.947368 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 152 | 9 | 53 | 16.888889 | 0.91129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 4 |
5af8d8f84cfea227270ab39813ba88ce85b221f9 | 311 | py | Python | item.py | smilechaser/mc-roboto | f96411c11064114e0d9eb77201b97234ea5fe802 | [
"Apache-2.0"
] | 3 | 2016-06-23T03:43:26.000Z | 2021-08-17T19:31:59.000Z | item.py | smilechaser/mc-roboto | f96411c11064114e0d9eb77201b97234ea5fe802 | [
"Apache-2.0"
] | 1 | 2016-06-16T04:22:57.000Z | 2021-04-21T03:14:51.000Z | item.py | smilechaser/mc-roboto | f96411c11064114e0d9eb77201b97234ea5fe802 | [
"Apache-2.0"
] | null | null | null | class Item:
def __init__(self, block_id, count, damage, data):
self.block_id = block_id
self.count = count
self.damage = damage
self.data = data
def __str__(self):
return 'block: {:3d}, count: {:2d}, damage: {}'.format(self.block_id, self.count, self.damage)
| 23.923077 | 102 | 0.598071 | 41 | 311 | 4.243902 | 0.365854 | 0.16092 | 0.189655 | 0.183908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008772 | 0.266881 | 311 | 12 | 103 | 25.916667 | 0.754386 | 0 | 0 | 0 | 0 | 0 | 0.122187 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
5afc4a691378d530653d70d615c17ba597c9a1e9 | 223 | py | Python | examples/using_bottle.py | fholiveira/wando-server | 065f5abc08eb88a134fc7cd57363d4f7549d5cf0 | [
"BSD-2-Clause"
] | null | null | null | examples/using_bottle.py | fholiveira/wando-server | 065f5abc08eb88a134fc7cd57363d4f7549d5cf0 | [
"BSD-2-Clause"
] | null | null | null | examples/using_bottle.py | fholiveira/wando-server | 065f5abc08eb88a134fc7cd57363d4f7549d5cf0 | [
"BSD-2-Clause"
] | null | null | null | from bottle import route, default_app, template
from wando import run_simple
@route('/hello/<name>')
def index(name):
return template('<b>Hello {{name}}</b>!', name=name)
run_simple('localhost', 8080, default_app())
| 24.777778 | 56 | 0.70852 | 32 | 223 | 4.8125 | 0.5625 | 0.12987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.121076 | 223 | 8 | 57 | 27.875 | 0.765306 | 0 | 0 | 0 | 0 | 0 | 0.197309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
85010efcca02e6aa170d62ee27d291d76706a5ad | 124 | py | Python | modules/__init__.py | fcdl94/ModelingTheBackground | 1c589833ce5c1a7446469d4602ceab2cdeac1b0e | [
"MIT"
] | 105 | 2020-03-20T17:47:00.000Z | 2022-03-16T16:52:07.000Z | modules/__init__.py | fcdl94/ModelingTheBackground | 1c589833ce5c1a7446469d4602ceab2cdeac1b0e | [
"MIT"
] | 38 | 2020-03-24T18:21:12.000Z | 2022-02-25T17:44:01.000Z | modules/__init__.py | fcdl94/ModelingTheBackground | 1c589833ce5c1a7446469d4602ceab2cdeac1b0e | [
"MIT"
] | 28 | 2020-04-27T18:44:37.000Z | 2022-03-28T22:43:54.000Z | from .deeplab import DeeplabV3
from .residual import IdentityResidualBlock, ResidualBlock
from .misc import GlobalAvgPool2d
| 31 | 58 | 0.862903 | 13 | 124 | 8.230769 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018018 | 0.104839 | 124 | 3 | 59 | 41.333333 | 0.945946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
851839d3ef43020e5f65743c71115034a7b8ad58 | 77 | py | Python | google_pubsub_adapter/constants.py | herbie/google_pubsub_adapter | 8d7be6df9c58cac14e7b51f9ff59d9e6f2ab9cb1 | [
"MIT"
] | null | null | null | google_pubsub_adapter/constants.py | herbie/google_pubsub_adapter | 8d7be6df9c58cac14e7b51f9ff59d9e6f2ab9cb1 | [
"MIT"
] | null | null | null | google_pubsub_adapter/constants.py | herbie/google_pubsub_adapter | 8d7be6df9c58cac14e7b51f9ff59d9e6f2ab9cb1 | [
"MIT"
] | 1 | 2021-06-28T05:44:48.000Z | 2021-06-28T05:44:48.000Z | class PublisherConstants:
GOOGLE_PUBSUB_PUBLISHER_NAME = "google_pubsub"
| 25.666667 | 50 | 0.831169 | 8 | 77 | 7.5 | 0.75 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116883 | 77 | 2 | 51 | 38.5 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0.168831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
516c3ec4422206f9403804a951437a29e7091570 | 143 | py | Python | koha_patron/example.config.py | cca/koha_patron_import | 72e042be1571cb6cf080b04759973008c6249634 | [
"ECL-2.0"
] | 1 | 2020-03-15T22:16:15.000Z | 2020-03-15T22:16:15.000Z | koha_patron/example.config.py | cca/koha_patron_import | 72e042be1571cb6cf080b04759973008c6249634 | [
"ECL-2.0"
] | 5 | 2018-08-27T23:29:06.000Z | 2021-08-24T17:30:21.000Z | koha_patron/example.config.py | cca/koha_patron_import | 72e042be1571cb6cf080b04759973008c6249634 | [
"ECL-2.0"
] | null | null | null | config = {
'api_root': 'https://library.cca.edu/api/v1',
'client_id': 'abcedfg-123445678',
'client_secret': 'abcedfg-123445678',
}
| 23.833333 | 49 | 0.636364 | 17 | 143 | 5.176471 | 0.764706 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157025 | 0.153846 | 143 | 5 | 50 | 28.6 | 0.570248 | 0 | 0 | 0 | 0 | 0 | 0.657343 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
516e7de9e868844dbc2f3f2b78be7f07f95cfb1c | 39 | py | Python | core/version.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | null | null | null | core/version.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | null | null | null | core/version.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | null | null | null | __version__ = '4.1'
__edition__ = 'ce'
| 13 | 19 | 0.666667 | 5 | 39 | 3.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 0.153846 | 39 | 2 | 20 | 19.5 | 0.484848 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 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 |
5196a7cb1bef564609613df65c70255f27fbb06c | 2,217 | py | Python | events/urls.py | samersultan/treeio | 6299fbe7826800d576f7ab68b4c1996b7194540f | [
"MIT"
] | 2 | 2019-02-22T16:02:19.000Z | 2019-02-23T19:27:34.000Z | events/urls.py | dewmal/treeio | 6299fbe7826800d576f7ab68b4c1996b7194540f | [
"MIT"
] | null | null | null | events/urls.py | dewmal/treeio | 6299fbe7826800d576f7ab68b4c1996b7194540f | [
"MIT"
] | null | null | null | # encoding: utf-8
# Copyright 2011 Tree.io Limited
# This file is part of Treeio.
# License www.tree.io/license
"""
Events module URLs
"""
from django.conf.urls.defaults import patterns, url
urlpatterns = patterns('treeio.events.views',
url(r'^(\.(?P<response_format>\w+))?$', 'month_view', name='events'),
... | 47.170213 | 95 | 0.57014 | 276 | 2,217 | 4.355072 | 0.213768 | 0.053245 | 0.187188 | 0.199667 | 0.318636 | 0.252912 | 0.252912 | 0.202995 | 0.144759 | 0.069884 | 0 | 0.004992 | 0.186739 | 2,217 | 46 | 96 | 48.195652 | 0.661675 | 0.071719 | 0 | 0 | 0 | 0.035714 | 0.616438 | 0.442759 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.035714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
51bd5991717f38fdd08864fcf7b353f89c9a4eed | 1,802 | py | Python | v1/category/migrations/0002_auto_20210302_2055.py | hussu010/Backend-1 | f5d9a057d6ff947f6574b45f825d7987e2ac2730 | [
"MIT"
] | 1 | 2021-01-28T15:16:39.000Z | 2021-01-28T15:16:39.000Z | v1/category/migrations/0002_auto_20210302_2055.py | hussu010/Backend-1 | f5d9a057d6ff947f6574b45f825d7987e2ac2730 | [
"MIT"
] | 77 | 2021-02-01T04:53:10.000Z | 2021-12-07T15:45:43.000Z | v1/category/migrations/0002_auto_20210302_2055.py | hussu010/Backend-1 | f5d9a057d6ff947f6574b45f825d7987e2ac2730 | [
"MIT"
] | 3 | 2021-01-28T15:05:56.000Z | 2021-02-22T17:12:08.000Z | # Generated by Django 3.1.7 on 2021-03-02 15:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('shop', '0001_initial'),
('item', '0001_initial'),
('category', '0001_initial'),
]
... | 33.37037 | 105 | 0.597669 | 180 | 1,802 | 5.888889 | 0.227778 | 0.067925 | 0.10566 | 0.166038 | 0.75283 | 0.75283 | 0.674528 | 0.674528 | 0.674528 | 0.674528 | 0 | 0.020579 | 0.27192 | 1,802 | 53 | 106 | 34 | 0.787348 | 0.024972 | 0 | 0.652174 | 1 | 0 | 0.154416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
51e91d8c66cb070e8e8f62b33aaa04d68f887304 | 158 | py | Python | month01/all_code/day15/demo02.py | chaofan-zheng/tedu-python-demo | abe983ddc52690f4726cf42cc6390cba815026d8 | [
"Apache-2.0"
] | 4 | 2021-01-07T14:25:15.000Z | 2021-02-01T10:36:10.000Z | month01/all_code/day15/demo02.py | chaofan-zheng/tedu-python-demo | abe983ddc52690f4726cf42cc6390cba815026d8 | [
"Apache-2.0"
] | null | null | null | month01/all_code/day15/demo02.py | chaofan-zheng/tedu-python-demo | abe983ddc52690f4726cf42cc6390cba815026d8 | [
"Apache-2.0"
] | null | null | null | """
模块变量
"""
# 1. 存储的是模块文档字符串
# 适用性:在交互式python中,查看某个模块的使用方式
print(__doc__)
# 2. 存储的是模块名称
# 被导入时:真实模块名
# 作为主模块时:__main__
print(__name__)
import module01
| 11.285714 | 29 | 0.708861 | 18 | 158 | 5.555556 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030075 | 0.158228 | 158 | 13 | 30 | 12.153846 | 0.721805 | 0.550633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.666667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
cfdc40d132ab5c3799e61a93f152dfff8b70cbbe | 42 | py | Python | SCRAPE/Lib/site-packages/twisted/python/test/__init__.py | Chinmoy-Prasad-Dutta/scrapy_scraper | 09f6abfc3bcf10ee28f486d83b450c89a07e066e | [
"MIT"
] | 9,953 | 2019-04-03T23:41:04.000Z | 2022-03-31T11:54:44.000Z | stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/__init__.py | W4LKURE/learn_python3_spider | 98dd354a41598b31302641f9a0ea49d1ecfa0fb1 | [
"MIT"
] | 1,243 | 2015-01-23T17:23:59.000Z | 2022-03-28T13:46:17.000Z | stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/__init__.py | W4LKURE/learn_python3_spider | 98dd354a41598b31302641f9a0ea49d1ecfa0fb1 | [
"MIT"
] | 2,803 | 2019-04-06T13:15:33.000Z | 2022-03-31T07:42:01.000Z | """
Unit tests for L{twisted.python}.
"""
| 10.5 | 33 | 0.619048 | 6 | 42 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 42 | 3 | 34 | 14 | 0.722222 | 0.785714 | 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 |
cfe3368e0f4bda20b0b4b13d2088a87f6e6301b7 | 255 | py | Python | dashboard/admin.py | TheBoringDude/zeta | d9c380d4823a669c986050757b822e2aadcc7b01 | [
"MIT"
] | null | null | null | dashboard/admin.py | TheBoringDude/zeta | d9c380d4823a669c986050757b822e2aadcc7b01 | [
"MIT"
] | 8 | 2021-04-29T11:50:29.000Z | 2022-03-12T00:51:14.000Z | dashboard/admin.py | TheBoringDude/zeta | d9c380d4823a669c986050757b822e2aadcc7b01 | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from dashboard.models.collections import Collections, Inclution, Stuff
# register collection models
admin.site.register(Collections)
admin.site.register(Inclution)
admin.site.register(Stuff)
| 25.5 | 70 | 0.827451 | 32 | 255 | 6.59375 | 0.46875 | 0.127962 | 0.241706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094118 | 255 | 9 | 71 | 28.333333 | 0.91342 | 0.207843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 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 |
cffa1f8dce82c7abaeaec85371d760a45403c960 | 2,779 | py | Python | notes.py | NicholasDunham/numpy-audio-synth | 4b9278b9ba34b21a0035552329a326275f437f5d | [
"BSD-2-Clause"
] | 11 | 2018-09-24T14:43:44.000Z | 2022-01-04T17:53:55.000Z | notes.py | NicholasDunham/numpy-audio-synth | 4b9278b9ba34b21a0035552329a326275f437f5d | [
"BSD-2-Clause"
] | null | null | null | notes.py | NicholasDunham/numpy-audio-synth | 4b9278b9ba34b21a0035552329a326275f437f5d | [
"BSD-2-Clause"
] | 2 | 2019-01-18T03:06:45.000Z | 2020-07-03T14:16:05.000Z | _notes_dict_array_hz = {
'C': [8.176, 16.352, 32.703, 65.406, 130.81, 261.63, 523.25, 1046.5, 2093.0, 4186.0, 8372.0],
'C#': [8.662, 17.324, 34.648, 69.296, 138.59, 277.18, 554.37, 1108.7, 2217.5, 4434.9, 8869.8],
'Df': [8.662, 17.324, 34.648, 69.296, 138.59, 277.18, 554.37, 1108.7, 2217.5, 4434.9, 8869.8],... | 102.925926 | 1,022 | 0.59014 | 659 | 2,779 | 2.468892 | 0.31563 | 0.007376 | 0.01721 | 0.019668 | 0.320836 | 0.320836 | 0.320836 | 0.320836 | 0.320836 | 0.320836 | 0 | 0.638442 | 0.150054 | 2,779 | 27 | 1,023 | 102.925926 | 0.050381 | 0 | 0 | 0 | 0 | 0 | 0.009712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0 | 0 | 0.086957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
32007e82e095c866ab498b482368060e4aab8cfa | 232 | py | Python | src/ess/amor/__init__.py | Pasarus/ess | ec0a7e3080137c51316513c394903d5d98473b44 | [
"BSD-3-Clause"
] | null | null | null | src/ess/amor/__init__.py | Pasarus/ess | ec0a7e3080137c51316513c394903d5d98473b44 | [
"BSD-3-Clause"
] | null | null | null | src/ess/amor/__init__.py | Pasarus/ess | ec0a7e3080137c51316513c394903d5d98473b44 | [
"BSD-3-Clause"
] | null | null | null | # SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2021 Scipp contributors (https://github.com/scipp)
# flake8: noqa: F401
from ess.amor.amor_data import AmorData, AmorReference, Normalisation
from ess.amor.tools import q_grid
| 38.666667 | 69 | 0.788793 | 34 | 232 | 5.323529 | 0.823529 | 0.077348 | 0.121547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043269 | 0.103448 | 232 | 5 | 70 | 46.4 | 0.826923 | 0.521552 | 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 |
3200807a53029f7f5211b4c81fc0a98e1d933585 | 19 | py | Python | opinions/united_states_backscrapers/federal_appellate/__init__.py | brianwc/juriscraper | f95221c3ab38ef89e642a3f5ed5569f73866d636 | [
"BSD-2-Clause"
] | null | null | null | opinions/united_states_backscrapers/federal_appellate/__init__.py | brianwc/juriscraper | f95221c3ab38ef89e642a3f5ed5569f73866d636 | [
"BSD-2-Clause"
] | null | null | null | opinions/united_states_backscrapers/federal_appellate/__init__.py | brianwc/juriscraper | f95221c3ab38ef89e642a3f5ed5569f73866d636 | [
"BSD-2-Clause"
] | null | null | null | __all__ = ['ca4',]
| 9.5 | 18 | 0.526316 | 2 | 19 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.157895 | 19 | 1 | 19 | 19 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 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 |
5c4dfe8318dfb1e19e8f7486f33786464ad68ffe | 16,206 | py | Python | etl/parsers/etw/Microsoft_Windows_WPD_MTPClassDriver.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 104 | 2020-03-04T14:31:31.000Z | 2022-03-28T02:59:36.000Z | etl/parsers/etw/Microsoft_Windows_WPD_MTPClassDriver.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 7 | 2020-04-20T09:18:39.000Z | 2022-03-19T17:06:19.000Z | etl/parsers/etw/Microsoft_Windows_WPD_MTPClassDriver.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 16 | 2020-03-05T18:55:59.000Z | 2022-03-01T10:19:28.000Z | # -*- coding: utf-8 -*-
"""
Microsoft-Windows-WPD-MTPClassDriver
GUID : 21b7c16e-c5af-4a69-a74a-7245481c1b97
"""
from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct
from etl.utils import WString, CString, SystemTime, Guid
from etl.dtyp import Sid
f... | 29.900369 | 123 | 0.695607 | 1,927 | 16,206 | 5.600934 | 0.074728 | 0.094876 | 0.112666 | 0.195682 | 0.904197 | 0.901881 | 0.89104 | 0.622533 | 0.607709 | 0.598258 | 0 | 0.170057 | 0.181044 | 16,206 | 541 | 124 | 29.955638 | 0.643159 | 0.006356 | 0 | 0.486553 | 0 | 0 | 0.235491 | 0.166957 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.00978 | 0 | 0.317848 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5c68d2f4f902ae44aa74d20ab47fada71143f20b | 122 | py | Python | classifier/config.py | yennlh/svm4md | be9bb92000a94b3f43b820c8361984a28a5c306a | [
"MIT"
] | 1 | 2018-08-31T03:29:57.000Z | 2018-08-31T03:29:57.000Z | classifier/config.py | yennlh/svm4md | be9bb92000a94b3f43b820c8361984a28a5c306a | [
"MIT"
] | null | null | null | classifier/config.py | yennlh/svm4md | be9bb92000a94b3f43b820c8361984a28a5c306a | [
"MIT"
] | 1 | 2018-08-31T03:29:57.000Z | 2018-08-31T03:29:57.000Z |
class ConfigSVM:
# matrix_size = 1727
# matrix_size = 1219
# matrix_size = 1027
matrix_size = 798
# matrix_size = 3 | 15.25 | 21 | 0.696721 | 17 | 122 | 4.705882 | 0.529412 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168421 | 0.221311 | 122 | 8 | 22 | 15.25 | 0.673684 | 0.590164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
5ca839820f4d598ea3b6581130b647743b0baafa | 288 | py | Python | online-norm/pytorch/online_norm_pytorch/__init__.py | Ajk4/online-normalization | 84895855fb8b099ad8c1266dc325bec41d72ecf5 | [
"BSD-3-Clause"
] | null | null | null | online-norm/pytorch/online_norm_pytorch/__init__.py | Ajk4/online-normalization | 84895855fb8b099ad8c1266dc325bec41d72ecf5 | [
"BSD-3-Clause"
] | null | null | null | online-norm/pytorch/online_norm_pytorch/__init__.py | Ajk4/online-normalization | 84895855fb8b099ad8c1266dc325bec41d72ecf5 | [
"BSD-3-Clause"
] | null | null | null | """
Released under BSD 3-Clause License,
Copyright (c) 2019 Cerebras Systems Inc.
All rights reserved.
"""
from .online_norm_1d import ControlNorm1DLoop, ControlNorm1D, OnlineNorm1D, LayerScaling1D
from .online_norm_2d import ControlNorm2DLoop, ControlNorm2D, OnlineNorm2D, LayerScaling
| 36 | 90 | 0.822917 | 33 | 288 | 7.060606 | 0.878788 | 0.085837 | 0.120172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054475 | 0.107639 | 288 | 7 | 91 | 41.142857 | 0.85214 | 0.34375 | 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 |
5ca86a95775411f5b890013d14cfb3c79d623005 | 261 | py | Python | analytics/admin.py | markavale/mavshopv2 | f69f538aa1dbbe5db5e1ab97b231b3d4b726cccb | [
"MIT"
] | null | null | null | analytics/admin.py | markavale/mavshopv2 | f69f538aa1dbbe5db5e1ab97b231b3d4b726cccb | [
"MIT"
] | null | null | null | analytics/admin.py | markavale/mavshopv2 | f69f538aa1dbbe5db5e1ab97b231b3d4b726cccb | [
"MIT"
] | null | null | null | from django.contrib import admin
from . models import PageVisit, PageViewsAnalytics
class PageVisitAdmin(admin.ModelAdmin):
list_display = ('count', 'ip', 'timestamp')
admin.site.register(PageVisit, PageVisitAdmin)
admin.site.register(PageViewsAnalytics) | 29 | 50 | 0.796935 | 28 | 261 | 7.392857 | 0.642857 | 0.183575 | 0.164251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099617 | 261 | 9 | 51 | 29 | 0.880851 | 0 | 0 | 0 | 0 | 0 | 0.061069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5cde7b7670031415609195dcbbb78ae6dc9bb336 | 123 | py | Python | gethtmlmeta.py | DBeath/python-snippets | c9642c37183d947eb8a1a781e47bd70b1306d5ca | [
"MIT"
] | null | null | null | gethtmlmeta.py | DBeath/python-snippets | c9642c37183d947eb8a1a781e47bd70b1306d5ca | [
"MIT"
] | 2 | 2019-10-19T07:27:43.000Z | 2021-03-22T16:58:21.000Z | gethtmlmeta.py | DBeath/python-snippets | c9642c37183d947eb8a1a781e47bd70b1306d5ca | [
"MIT"
] | null | null | null | from webpreview import web_preview
from pprint import pprint
url = 'auctorial.com'
meta = web_preview(url)
pprint(meta)
| 13.666667 | 34 | 0.780488 | 18 | 123 | 5.222222 | 0.555556 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 123 | 8 | 35 | 15.375 | 0.895238 | 0 | 0 | 0 | 0 | 0 | 0.105691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.4 | 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 |
7a4174eedf2732a44ff2176a3235ffc73fdb5b3c | 163 | py | Python | main/urls.py | RyanBluth/DjangoTemplateProject---OpenShift | e8b961cfd12d426b9ccf6d222453a20ad08a212b | [
"MIT"
] | null | null | null | main/urls.py | RyanBluth/DjangoTemplateProject---OpenShift | e8b961cfd12d426b9ccf6d222453a20ad08a212b | [
"MIT"
] | null | null | null | main/urls.py | RyanBluth/DjangoTemplateProject---OpenShift | e8b961cfd12d426b9ccf6d222453a20ad08a212b | [
"MIT"
] | null | null | null | from django.conf.urls import patterns, url
import main.views
urlpatterns = patterns('',
(r'^$', main.views.index)
) | 23.285714 | 48 | 0.515337 | 16 | 163 | 5.25 | 0.75 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.368098 | 163 | 7 | 49 | 23.285714 | 0.815534 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 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 |
7a5615823396976106606a35b356bd3155fe8867 | 210 | py | Python | ip2location_timezone/views.py | ip2location/django-ip2location-timezone | 464a3d730bde24aae0b56e6e0e57b13e225420bf | [
"MIT"
] | 2 | 2019-07-11T09:09:19.000Z | 2020-04-06T17:29:23.000Z | ip2location_timezone/views.py | ip2location/django-ip2location-timezone | 464a3d730bde24aae0b56e6e0e57b13e225420bf | [
"MIT"
] | null | null | null | ip2location_timezone/views.py | ip2location/django-ip2location-timezone | 464a3d730bde24aae0b56e6e0e57b13e225420bf | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
from django.views.generic import TemplateView
class LoadView(TemplateView):
template_name = 'load.html' | 23.333333 | 45 | 0.77619 | 26 | 210 | 6.038462 | 0.769231 | 0.127389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005495 | 0.133333 | 210 | 9 | 46 | 23.333333 | 0.857143 | 0.1 | 0 | 0 | 0 | 0 | 0.047872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 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 |
7a56ecf415aabec147bb581fdd06691645be2b47 | 1,985 | py | Python | utils/boilerplate/test_cow.py | cfginn/sap-simulation-package | 73314e5380cec5c61a9fe5ff5fbafa25b9e2beac | [
"MIT"
] | null | null | null | utils/boilerplate/test_cow.py | cfginn/sap-simulation-package | 73314e5380cec5c61a9fe5ff5fbafa25b9e2beac | [
"MIT"
] | null | null | null | utils/boilerplate/test_cow.py | cfginn/sap-simulation-package | 73314e5380cec5c61a9fe5ff5fbafa25b9e2beac | [
"MIT"
] | null | null | null |
import unittest
from pysapets.cow import Cow
from pysapets.animal import Animal
import pysapets.constants as constants
from unittest.mock import patch
from io import StringIO
from copy import deepcopy
class CowTest(unittest.TestCase):
def setUp(self):
self.cow = Cow()
self.friends = [self.cow, Animal(2, 2)... | 29.626866 | 92 | 0.72796 | 293 | 1,985 | 4.767918 | 0.211604 | 0.060129 | 0.035791 | 0.082319 | 0.524696 | 0.44524 | 0.299928 | 0.128132 | 0.081603 | 0.058697 | 0 | 0.016718 | 0.186398 | 1,985 | 67 | 93 | 29.626866 | 0.848297 | 0.243829 | 0 | 0.205128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.230769 | 1 | 0.333333 | false | 0.102564 | 0.179487 | 0 | 0.538462 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.