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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9b8ba846c55faf731fcca53f747364bc53d30509 | 229 | py | Python | taxi/timesheet/__init__.py | simonbru/taxi | 3940f520b6d61b5ac7c851c38dfd05da2f65b647 | [
"WTFPL"
] | 17 | 2016-02-02T14:10:49.000Z | 2021-11-30T00:04:29.000Z | taxi/timesheet/__init__.py | simonbru/taxi | 3940f520b6d61b5ac7c851c38dfd05da2f65b647 | [
"WTFPL"
] | 70 | 2015-01-08T17:02:42.000Z | 2021-09-21T20:08:07.000Z | taxi/timesheet/__init__.py | simonbru/taxi | 3940f520b6d61b5ac7c851c38dfd05da2f65b647 | [
"WTFPL"
] | 8 | 2015-08-23T12:50:36.000Z | 2021-11-26T10:33:45.000Z | # flake8: noqa
from .lines import TextLine, DateLine
from .entry import Entry, EntriesCollection
from .parser import TimesheetParser, create_time_from_text, is_top_down, trim
from .timesheet import Timesheet, TimesheetCollection
| 38.166667 | 77 | 0.838428 | 29 | 229 | 6.448276 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004902 | 0.10917 | 229 | 5 | 78 | 45.8 | 0.911765 | 0.052402 | 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 |
9b8fcbdcb02b9c2a21e5919e844c57535a98a7cb | 184 | py | Python | spectrum_gmbh/__init__.py | KCL-BMEIS/spectrumdevice | f0eecbd1d3b58dc9a9f226c4c75d7f398b1ea551 | [
"MIT"
] | 4 | 2022-01-10T08:35:23.000Z | 2022-01-19T12:06:05.000Z | spectrum_gmbh/__init__.py | KCL-BMEIS/spectrumdevice | f0eecbd1d3b58dc9a9f226c4c75d7f398b1ea551 | [
"MIT"
] | 8 | 2022-01-05T14:07:10.000Z | 2022-03-17T20:03:27.000Z | spectrum_gmbh/__init__.py | KCL-BMEIS/spectrumdevice | f0eecbd1d3b58dc9a9f226c4c75d7f398b1ea551 | [
"MIT"
] | null | null | null | # Files in this module are provided free of charge by Spectrum GMBH with no restrictions on use.
# They have been included here to simplify installation of the spectrumdevice package.
| 61.333333 | 96 | 0.809783 | 29 | 184 | 5.137931 | 0.965517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168478 | 184 | 2 | 97 | 92 | 0.973856 | 0.972826 | 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 |
32de442571c9ca55e0be461b0cbf91b834ec71d9 | 821 | py | Python | HaPPPy/MasterEquation/__init__.py | Mohammed-El-Nabulsi/single-electron-transistor | db1abd3627312403be83197c27d06ac4e3a61746 | [
"BSD-2-Clause"
] | null | null | null | HaPPPy/MasterEquation/__init__.py | Mohammed-El-Nabulsi/single-electron-transistor | db1abd3627312403be83197c27d06ac4e3a61746 | [
"BSD-2-Clause"
] | null | null | null | HaPPPy/MasterEquation/__init__.py | Mohammed-El-Nabulsi/single-electron-transistor | db1abd3627312403be83197c27d06ac4e3a61746 | [
"BSD-2-Clause"
] | null | null | null | """
.. module:: HaPPPy.MasterEquation
:platform: Unix, Windows
:synopsis: Tackles the master equation.
A module to simulate the time development of propabilities :math:`\\vec{P}(t)`
or to find stationary solutions :math:`\\vec{P}_{stat}` for an :math:`n`-state
quantum dot transistor with two reservoirs with tran... | 43.210526 | 80 | 0.778319 | 110 | 821 | 5.790909 | 0.663636 | 0.021978 | 0.025118 | 0.053375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127893 | 821 | 18 | 81 | 45.611111 | 0.889665 | 0.861145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
32f157ec08686fdb7e7194848a5bd3c8ded5d953 | 32 | py | Python | pybugsnag/utils/__init__.py | jpetrucciani/pybugsnag | 367e6e0842928e557e708a80d9b999ad3486b400 | [
"MIT"
] | 3 | 2018-09-18T13:36:26.000Z | 2020-12-07T22:38:33.000Z | pybugsnag/utils/__init__.py | jpetrucciani/pybugsnag | 367e6e0842928e557e708a80d9b999ad3486b400 | [
"MIT"
] | null | null | null | pybugsnag/utils/__init__.py | jpetrucciani/pybugsnag | 367e6e0842928e557e708a80d9b999ad3486b400 | [
"MIT"
] | 1 | 2020-12-07T23:34:59.000Z | 2020-12-07T23:34:59.000Z | """
utilities for pybugsnag
"""
| 8 | 23 | 0.65625 | 3 | 32 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 32 | 3 | 24 | 10.666667 | 0.777778 | 0.71875 | 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 |
fd25ba81163d883a65a07de03662e866968a9ede | 57 | py | Python | Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-005/pg-5.1-check-turtle.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-005/pg-5.1-check-turtle.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-005/pg-5.1-check-turtle.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | import turtle
turtle.forward(100)
turtle.exitonclick()
| 9.5 | 20 | 0.789474 | 7 | 57 | 6.428571 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.105263 | 57 | 5 | 21 | 11.4 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 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 |
fd2fbd9769b66b91d61965bdbfd5f752059b9a75 | 356 | py | Python | blog/hashing.py | marcogrella/fastapi-blog | 79c37cc029f3919f9d6cc5a86dc6b4c456617d58 | [
"MIT"
] | null | null | null | blog/hashing.py | marcogrella/fastapi-blog | 79c37cc029f3919f9d6cc5a86dc6b4c456617d58 | [
"MIT"
] | null | null | null | blog/hashing.py | marcogrella/fastapi-blog | 79c37cc029f3919f9d6cc5a86dc6b4c456617d58 | [
"MIT"
] | null | null | null | from passlib.context import CryptContext
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
class Hash():
def bcript(password: str):
hashedPassword = pwd_context.hash(password)
return hashedPassword
def verify(hashed_password, plain_password):
return pwd_context.veri... | 25.428571 | 67 | 0.735955 | 39 | 356 | 6.538462 | 0.538462 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174157 | 356 | 14 | 67 | 25.428571 | 0.867347 | 0 | 0 | 0 | 0 | 0 | 0.028011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.75 | 0.125 | 0.125 | 0.75 | 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 |
fd308d7dbc333d082e34f58aff0ed51ad0791375 | 439 | py | Python | exercises/pt/test_02_02_01.py | tuanducdesign/spacy-course | f8d092c5fa2997fccb3f367d174dce8667932b3d | [
"MIT"
] | null | null | null | exercises/pt/test_02_02_01.py | tuanducdesign/spacy-course | f8d092c5fa2997fccb3f367d174dce8667932b3d | [
"MIT"
] | null | null | null | exercises/pt/test_02_02_01.py | tuanducdesign/spacy-course | f8d092c5fa2997fccb3f367d174dce8667932b3d | [
"MIT"
] | null | null | null | def test():
assert gato_hash == nlp.vocab.strings["gato"], "Você atribuiu o código hash corretamente?"
assert 'nlp.vocab.strings["gato"]' in __solution__, "Você selecionou a string corretamente?"
assert gato_string == "gato", "Você selecionou a string corretamente?"
assert (
"nlp.vocab.strings[g... | 43.9 | 96 | 0.697039 | 57 | 439 | 5.105263 | 0.438596 | 0.082474 | 0.154639 | 0.195876 | 0.460481 | 0.460481 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182232 | 439 | 9 | 97 | 48.777778 | 0.810585 | 0 | 0 | 0 | 0 | 0 | 0.542141 | 0.120729 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.125 | true | 0 | 0 | 0 | 0.125 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fd6528d33d5ce332cf4a3ddb8af541cb3658aeca | 31 | py | Python | homeassistant/components/ilightsln/__init__.py | DavidLP/home-assistant | 58f343e0ba1df54f6689547b325f24ea6df69089 | [
"Apache-2.0"
] | null | null | null | homeassistant/components/ilightsln/__init__.py | DavidLP/home-assistant | 58f343e0ba1df54f6689547b325f24ea6df69089 | [
"Apache-2.0"
] | null | null | null | homeassistant/components/ilightsln/__init__.py | DavidLP/home-assistant | 58f343e0ba1df54f6689547b325f24ea6df69089 | [
"Apache-2.0"
] | 1 | 2021-06-16T09:57:31.000Z | 2021-06-16T09:57:31.000Z | """The ilightsln component."""
| 15.5 | 30 | 0.677419 | 3 | 31 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 31 | 1 | 31 | 31 | 0.75 | 0.774194 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b5c198ec8698c157c8ed2b3c867efa83858002eb | 51 | py | Python | tests/development/destination/gcs/test_create_bucket.py | denssk/backup | 292d5f1b1a3765ce0ea8d3cab8bd1ae0c583f72e | [
"Apache-2.0"
] | 69 | 2016-06-29T16:13:55.000Z | 2022-03-21T06:38:37.000Z | tests/development/destination/gcs/test_create_bucket.py | denssk/backup | 292d5f1b1a3765ce0ea8d3cab8bd1ae0c583f72e | [
"Apache-2.0"
] | 237 | 2016-09-28T02:12:34.000Z | 2022-03-25T13:32:23.000Z | tests/development/destination/gcs/test_create_bucket.py | denssk/backup | 292d5f1b1a3765ce0ea8d3cab8bd1ae0c583f72e | [
"Apache-2.0"
] | 45 | 2017-01-04T21:20:27.000Z | 2021-12-29T10:42:22.000Z | def test_create_bucket(gs):
gs.create_bucket()
| 17 | 27 | 0.745098 | 8 | 51 | 4.375 | 0.625 | 0.685714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137255 | 51 | 2 | 28 | 25.5 | 0.795455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b5df59dbf126ded557f1ab3788e9af072cd7a2dd | 130 | py | Python | player.py | dunlapc4/playdio | 8af96c4a746ba42ef1e683c7a259de9d808176c9 | [
"MIT"
] | null | null | null | player.py | dunlapc4/playdio | 8af96c4a746ba42ef1e683c7a259de9d808176c9 | [
"MIT"
] | null | null | null | player.py | dunlapc4/playdio | 8af96c4a746ba42ef1e683c7a259de9d808176c9 | [
"MIT"
] | 1 | 2020-06-07T22:02:52.000Z | 2020-06-07T22:02:52.000Z | import wave
from playsound import playsound
def playTrack(fileName):
track = 'audioclips/' + fileName
playsound(track)
| 14.444444 | 36 | 0.730769 | 14 | 130 | 6.785714 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 130 | 8 | 37 | 16.25 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0.085271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 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 |
bd1e29ec304452054a43ff749c73c24e280af54e | 237 | py | Python | indig/serializers.py | Paulo-Lopes-Estevao/indicativos-globais | 7dc75f954ba03a38eb8f7529541b3cb84b40472a | [
"BSD-3-Clause"
] | 2 | 2021-10-02T23:10:25.000Z | 2021-10-03T00:59:45.000Z | indig/serializers.py | Paulo-Lopes-Estevao/indicativos-globais | 7dc75f954ba03a38eb8f7529541b3cb84b40472a | [
"BSD-3-Clause"
] | null | null | null | indig/serializers.py | Paulo-Lopes-Estevao/indicativos-globais | 7dc75f954ba03a38eb8f7529541b3cb84b40472a | [
"BSD-3-Clause"
] | null | null | null | from rest_framework.serializers import HyperlinkedModelSerializer
from indig.models import Indicativos
class IndicativoSerializer(HyperlinkedModelSerializer):
class Meta:
model = Indicativos
fields = ['id', 'pais']
| 26.333333 | 65 | 0.763713 | 21 | 237 | 8.571429 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172996 | 237 | 8 | 66 | 29.625 | 0.918367 | 0 | 0 | 0 | 0 | 0 | 0.025316 | 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 |
bd51350bd418390e9da7bb860e1f29680d3ffcf7 | 121 | py | Python | snippets/show-image.py | district10/snippet-manager | bebe45a601368947168e3ee6e6ab8c1fc2ee2055 | [
"MIT"
] | 7 | 2018-08-04T09:28:19.000Z | 2020-10-19T17:46:34.000Z | snippets/show-image.py | district10/snippet-manager | bebe45a601368947168e3ee6e6ab8c1fc2ee2055 | [
"MIT"
] | null | null | null | snippets/show-image.py | district10/snippet-manager | bebe45a601368947168e3ee6e6ab8c1fc2ee2055 | [
"MIT"
] | 2 | 2018-07-31T04:14:55.000Z | 2020-04-02T01:22:39.000Z | # python show image
from IPython.display import Image
Image("http://scikit-learn.org/dev/_static/ml_map.png", width=800)
| 30.25 | 66 | 0.77686 | 20 | 121 | 4.6 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.082645 | 121 | 3 | 67 | 40.333333 | 0.801802 | 0.140496 | 0 | 0 | 0 | 0 | 0.45098 | 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 |
1fbd8fa727c342cfe3022ddc98542e6dfbc87ef3 | 137 | py | Python | famplex/html/__main__.py | steppi/famplex | ed09bf583b38a46b951cf8635871272c95df7fb8 | [
"CC0-1.0"
] | 11 | 2018-06-14T18:23:52.000Z | 2021-12-16T14:06:59.000Z | famplex/html/__main__.py | steppi/famplex | ed09bf583b38a46b951cf8635871272c95df7fb8 | [
"CC0-1.0"
] | 97 | 2018-03-29T15:15:58.000Z | 2021-11-10T12:49:51.000Z | famplex/html/__main__.py | steppi/famplex | ed09bf583b38a46b951cf8635871272c95df7fb8 | [
"CC0-1.0"
] | 12 | 2018-03-28T17:52:02.000Z | 2022-03-29T23:16:54.000Z | # -*- coding: utf-8 -*-
"""CLI for exporting FamPlex as a static site."""
from .api import html
if __name__ == '__main__':
html()
| 15.222222 | 49 | 0.613139 | 19 | 137 | 4 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 0.211679 | 137 | 8 | 50 | 17.125 | 0.694444 | 0.481752 | 0 | 0 | 0 | 0 | 0.123077 | 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 |
1ffcfce8b97cdbe1c6a8e39c43186bdf85257134 | 460 | py | Python | tamedpy/sbc.py | karanluthra/TamedPy | 013bc5e465d1d3ee09bd8241a55b5ea73cfdae97 | [
"MIT"
] | null | null | null | tamedpy/sbc.py | karanluthra/TamedPy | 013bc5e465d1d3ee09bd8241a55b5ea73cfdae97 | [
"MIT"
] | null | null | null | tamedpy/sbc.py | karanluthra/TamedPy | 013bc5e465d1d3ee09bd8241a55b5ea73cfdae97 | [
"MIT"
] | null | null | null | from driver import Driver
class SandboxedContext(object):
def __init__(self, num_workers=1):
self.driver = Driver(num_workers)
self.driver.turnup()
def __enter__(self):
return self.driver
def __exit__(self, ctx_type, ctx_value, ctx_traceback):
self.driver.turndown()
d... | 24.210526 | 59 | 0.654348 | 56 | 460 | 5.071429 | 0.446429 | 0.211268 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002825 | 0.230435 | 460 | 18 | 60 | 25.555556 | 0.799435 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0.076923 | 0.153846 | 0.692308 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
1f2e0e17d43ae50a5547b6075dfe86a6b9fb016b | 15 | py | Python | pyutilib/component/loader/tests/eggsrc/pkg4/package4/__init__.py | PyUtilib/PyUtilib | d99406f2af1fb62268c34453a2fbe6bd4a7348f0 | [
"BSD-3-Clause"
] | 24 | 2016-04-02T10:00:02.000Z | 2021-03-02T16:40:18.000Z | pyutilib/component/loader/tests/eggsrc/pkg4/package4/__init__.py | PyUtilib/PyUtilib | d99406f2af1fb62268c34453a2fbe6bd4a7348f0 | [
"BSD-3-Clause"
] | 105 | 2015-10-29T03:29:58.000Z | 2021-12-30T22:00:45.000Z | pyutilib/component/loader/tests/eggsrc/pkg4/package4/__init__.py | PyUtilib/PyUtilib | d99406f2af1fb62268c34453a2fbe6bd4a7348f0 | [
"BSD-3-Clause"
] | 22 | 2016-01-21T15:35:25.000Z | 2021-05-15T20:17:44.000Z | """Package4"""
| 7.5 | 14 | 0.533333 | 1 | 15 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.066667 | 15 | 1 | 15 | 15 | 0.5 | 0.533333 | 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 |
1f3a439e9e8ff246f1cc5da94a3e1c7f133c7be3 | 8,664 | py | Python | src/main/python/utime.py | SmartDogHouse/SmartDogHouse-Software | 00caf23e3fe8dae2d30c339f801d7c1a7ddca0c2 | [
"MIT"
] | 4 | 2021-05-17T10:42:48.000Z | 2021-08-09T15:51:28.000Z | src/main/python/utime.py | SmartDogHouse/SmartDogHouse-Software | 00caf23e3fe8dae2d30c339f801d7c1a7ddca0c2 | [
"MIT"
] | 148 | 2021-05-17T10:03:52.000Z | 2021-07-25T15:44:10.000Z | src/main/python/utime.py | SmartDogHouse/SmartDogHouse-Software | 00caf23e3fe8dae2d30c339f801d7c1a7ddca0c2 | [
"MIT"
] | 1 | 2021-06-27T17:25:20.000Z | 2021-06-27T17:25:20.000Z | # STUB: do NOT upload to the ESP, it's used to run the tests
"""Module: 'utime' on esp32 1.11.0"""
import time as dummy
# MCU: (sysname='esp32', nodename='esp32', release='1.11.0', version='v1.11-580-g973f68780 on 2019-11-17', machine='ESP32 module with ESP32')
# Stubber: 1.3.2
def localtime(secs) -> tuple:
"""
... | 61.446809 | 1,260 | 0.73638 | 1,367 | 8,664 | 4.62692 | 0.287491 | 0.013913 | 0.033043 | 0.038261 | 0.156838 | 0.126957 | 0.117787 | 0.105455 | 0.09502 | 0.09502 | 0 | 0.016657 | 0.182364 | 8,664 | 140 | 1,261 | 61.885714 | 0.8762 | 0.913435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.846154 | false | 0 | 0.076923 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
1f59f48eae82db340f335f10f2e34e76959ba0fa | 91 | py | Python | backend/settings_console/forms.py | jnyborg/nospammail | 1b9c41c85a9a0b3d1a0a56f50ad69b01b0cb386b | [
"Apache-2.0"
] | null | null | null | backend/settings_console/forms.py | jnyborg/nospammail | 1b9c41c85a9a0b3d1a0a56f50ad69b01b0cb386b | [
"Apache-2.0"
] | null | null | null | backend/settings_console/forms.py | jnyborg/nospammail | 1b9c41c85a9a0b3d1a0a56f50ad69b01b0cb386b | [
"Apache-2.0"
] | null | null | null | from django import forms
class ToggleEmailsForm(forms.Form):
id = forms.IntegerField() | 22.75 | 35 | 0.769231 | 11 | 91 | 6.363636 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 91 | 4 | 36 | 22.75 | 0.897436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1f72c208aec15507450164673c1f53160566e3ce | 129 | py | Python | resources/test_cases/python/PyCrypto/TestRule6.py | stg-tud/licma | b899e6e682f7716d19e79d6ce7b73c28c6efd4cf | [
"MIT"
] | 5 | 2021-09-13T11:24:13.000Z | 2022-03-18T21:56:58.000Z | resources/test_cases/python/PyCrypto/TestRule6c.py | stg-tud/licma | b899e6e682f7716d19e79d6ce7b73c28c6efd4cf | [
"MIT"
] | null | null | null | resources/test_cases/python/PyCrypto/TestRule6c.py | stg-tud/licma | b899e6e682f7716d19e79d6ce7b73c28c6efd4cf | [
"MIT"
] | 1 | 2021-09-13T06:02:20.000Z | 2021-09-13T06:02:20.000Z | """
PyCrypto has an own secure random function "Crypto.Random.random"
but it does not use a seed value as expected by rule 6
"""
| 25.8 | 65 | 0.744186 | 23 | 129 | 4.173913 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.178295 | 129 | 4 | 66 | 32.25 | 0.896226 | 0.930233 | 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 |
1f97b1a75e30e7babd9096b1d17938f466a0019f | 85 | py | Python | dlapp/apps.py | tavershimafx/E-library | 861b8aeba82e4bf0b63f5cb1421ca8f9f9cd1d96 | [
"Apache-2.0"
] | null | null | null | dlapp/apps.py | tavershimafx/E-library | 861b8aeba82e4bf0b63f5cb1421ca8f9f9cd1d96 | [
"Apache-2.0"
] | null | null | null | dlapp/apps.py | tavershimafx/E-library | 861b8aeba82e4bf0b63f5cb1421ca8f9f9cd1d96 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class DlappConfig(AppConfig):
name = 'dlapp'
| 14.166667 | 33 | 0.741176 | 10 | 85 | 6.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 85 | 5 | 34 | 17 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 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 |
2f293ecb9b8e2d48fc4240c89b4e9d822cbab23a | 399 | py | Python | joj/horse/schemas/user_access_key.py | joint-online-judge/horse | ec08ecd0528f6a4fad3fa5f5932aef1495721437 | [
"MIT"
] | 6 | 2020-12-28T07:05:52.000Z | 2022-01-16T04:44:02.000Z | joj/horse/schemas/user_access_key.py | joint-online-judge/horse | ec08ecd0528f6a4fad3fa5f5932aef1495721437 | [
"MIT"
] | 56 | 2021-02-02T02:21:52.000Z | 2022-03-13T02:39:05.000Z | joj/horse/schemas/user_access_key.py | joint-online-judge/horse | ec08ecd0528f6a4fad3fa5f5932aef1495721437 | [
"MIT"
] | 3 | 2021-01-28T17:52:58.000Z | 2021-12-17T17:42:42.000Z | from uuid import UUID
from sqlmodel import Field
from joj.horse.schemas.base import BaseORMSchema, IDMixin, TimestampMixin
class UserAccessKey(BaseORMSchema, IDMixin):
service: str = Field(nullable=False)
access_key_id: str = Field(nullable=False)
secret_access_key: str = Field(nullable=False)
user... | 22.166667 | 73 | 0.77193 | 48 | 399 | 6.3125 | 0.520833 | 0.079208 | 0.158416 | 0.207921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155388 | 399 | 17 | 74 | 23.470588 | 0.89911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.1 | 0.3 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
2f3fa8bdc5734ed5494aeefbf43e4355caca08ae | 87 | py | Python | fondos/apps.py | joelsegoviacrespo/control_aforo_migrado | be90d1d45a20f735e7ef20449c4ab91ca05b5d85 | [
"MIT"
] | null | null | null | fondos/apps.py | joelsegoviacrespo/control_aforo_migrado | be90d1d45a20f735e7ef20449c4ab91ca05b5d85 | [
"MIT"
] | null | null | null | fondos/apps.py | joelsegoviacrespo/control_aforo_migrado | be90d1d45a20f735e7ef20449c4ab91ca05b5d85 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class FondosConfig(AppConfig):
name = 'fondos'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 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 |
2f5dee36e4a0670e21f8c2029ee191f9ae61eaaa | 56 | py | Python | tests/__init__.py | synesissoftware/diagnosticism.Python | b3f58c5616b4f5523c339fd61ea3a883d7072724 | [
"BSD-3-Clause"
] | 1 | 2019-08-21T23:30:41.000Z | 2019-08-21T23:30:41.000Z | tests/__init__.py | synesissoftware/diagnosticism.Python | b3f58c5616b4f5523c339fd61ea3a883d7072724 | [
"BSD-3-Clause"
] | null | null | null | tests/__init__.py | synesissoftware/diagnosticism.Python | b3f58c5616b4f5523c339fd61ea3a883d7072724 | [
"BSD-3-Clause"
] | null | null | null | # This file present to deal with warnings from packager
| 28 | 55 | 0.803571 | 9 | 56 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 56 | 1 | 56 | 56 | 0.978261 | 0.946429 | 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 |
2f65cb9c69fac44f7cee628643b09f2d5f944190 | 339 | py | Python | thundra_demo_localstack/modules/dynamodb.py | thundra-io/thundra-demo-localstack-python | ffc7deb50508b59b51d791143e6e11c249df2ad5 | [
"Apache-2.0"
] | 1 | 2021-11-08T08:36:06.000Z | 2021-11-08T08:36:06.000Z | thundra_demo_localstack/modules/dynamodb.py | thundra-io/thundra-demo-localstack-python | ffc7deb50508b59b51d791143e6e11c249df2ad5 | [
"Apache-2.0"
] | null | null | null | thundra_demo_localstack/modules/dynamodb.py | thundra-io/thundra-demo-localstack-python | ffc7deb50508b59b51d791143e6e11c249df2ad5 | [
"Apache-2.0"
] | null | null | null | import boto3
from thundra_demo_localstack.utils import Singleton
from thundra_demo_localstack.config import EnvironmentConfig
class DynamoDbClient(metaclass=Singleton):
def __init__(self):
self.dynamodbClient = boto3.client('dynamodb', endpoint_url=EnvironmentConfig.LOCALSTACK_URL, region_name=Environmen... | 37.666667 | 143 | 0.837758 | 38 | 339 | 7.157895 | 0.605263 | 0.080882 | 0.110294 | 0.183824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006536 | 0.097345 | 339 | 9 | 143 | 37.666667 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
85ec07bdc5380b0f1c033787d3ef53653a6ba65f | 1,801 | py | Python | test/test_notification_target_api.py | chbndrhnns/ahoi-client | 8bd25f541c05af17c82904fa250272514b7971f2 | [
"MIT"
] | null | null | null | test/test_notification_target_api.py | chbndrhnns/ahoi-client | 8bd25f541c05af17c82904fa250272514b7971f2 | [
"MIT"
] | null | null | null | test/test_notification_target_api.py | chbndrhnns/ahoi-client | 8bd25f541c05af17c82904fa250272514b7971f2 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
[AHOI cookbook](/ahoi/docs/cookbook/index.html) [Data Privacy](/sandboxmanager/#/privacy) [Terms of Service](/sandboxmanager/#/terms) [Imprint](https://sparkassen-hub.com/impressum/) © 2016‐2017 Starfinanz - Ein Unternehmen der Finanz Informatik # noqa: E501
OpenAPI sp... | 25.728571 | 277 | 0.682399 | 203 | 1,801 | 5.827586 | 0.403941 | 0.213018 | 0.046492 | 0.063398 | 0.362637 | 0.321217 | 0.119189 | 0.087912 | 0.087912 | 0 | 0 | 0.025955 | 0.229872 | 1,801 | 69 | 278 | 26.101449 | 0.826965 | 0.47196 | 0 | 0.272727 | 0 | 0 | 0.00995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0.272727 | 0.227273 | 0 | 0.590909 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
c82dfdd0215a5fda94c02bfa47312301a6ea6715 | 202 | py | Python | captain_console/manufacturer/urls.py | PalinaKG/Verklegt_2 | 7bc80d2708ec2530470527b18c2aec259dddd99c | [
"MIT"
] | null | null | null | captain_console/manufacturer/urls.py | PalinaKG/Verklegt_2 | 7bc80d2708ec2530470527b18c2aec259dddd99c | [
"MIT"
] | null | null | null | captain_console/manufacturer/urls.py | PalinaKG/Verklegt_2 | 7bc80d2708ec2530470527b18c2aec259dddd99c | [
"MIT"
] | null | null | null | from . import views
from django.urls import path
urlpatterns = [
path('', views.index, name="manufacturer-index"),
path('<int:id>', views.get_manufacturer_by_id, name="manufacturer_details")
]
| 25.25 | 79 | 0.717822 | 26 | 202 | 5.423077 | 0.576923 | 0.22695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133663 | 202 | 7 | 80 | 28.857143 | 0.805714 | 0 | 0 | 0 | 0 | 0 | 0.227723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c837b9241a1d985ff21848907f36b25885057017 | 166 | py | Python | problem0753.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0753.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0753.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | ###########################
#
# #753 Fermat Equation - Project Euler
# https://projecteuler.net/problem=753
#
# Code by Kevin Marciniak
#
###########################
| 18.444444 | 38 | 0.475904 | 14 | 166 | 5.642857 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0.114458 | 166 | 8 | 39 | 20.75 | 0.496599 | 0.578313 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c0d52f359fc5f1ac65da3b5688686c322c4dd57c | 87 | py | Python | PP4E-Examples-1.4/Examples/PP4E/System/Tester/Scripts/test-status-bad.py | AngelLiang/PP4E | 3a7f63b366e1e4700b4d2524884696999a87ba9d | [
"MIT"
] | null | null | null | PP4E-Examples-1.4/Examples/PP4E/System/Tester/Scripts/test-status-bad.py | AngelLiang/PP4E | 3a7f63b366e1e4700b4d2524884696999a87ba9d | [
"MIT"
] | null | null | null | PP4E-Examples-1.4/Examples/PP4E/System/Tester/Scripts/test-status-bad.py | AngelLiang/PP4E | 3a7f63b366e1e4700b4d2524884696999a87ba9d | [
"MIT"
] | null | null | null | # test exit status: failure codes, nonzero
import sys
print('starting')
sys.exit(42)
| 14.5 | 43 | 0.735632 | 13 | 87 | 4.923077 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.149425 | 87 | 5 | 44 | 17.4 | 0.837838 | 0.45977 | 0 | 0 | 0 | 0 | 0.186047 | 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 |
c0dbe88adbcba5a86a12a9ee43d1c0653ac05bd4 | 7,826 | py | Python | src/dcm/agent/tests/unit/test_system_stat.py | JPWKU/unix-agent | 8f1278fc8c2768a8d4d54af642a881bace43652f | [
"Apache-2.0"
] | null | null | null | src/dcm/agent/tests/unit/test_system_stat.py | JPWKU/unix-agent | 8f1278fc8c2768a8d4d54af642a881bace43652f | [
"Apache-2.0"
] | 22 | 2015-09-15T20:52:34.000Z | 2016-03-11T22:44:24.000Z | src/dcm/agent/tests/unit/test_system_stat.py | JPWKU/unix-agent | 8f1278fc8c2768a8d4d54af642a881bace43652f | [
"Apache-2.0"
] | 3 | 2015-09-11T20:21:33.000Z | 2016-09-30T08:30:19.000Z | #
# Copyright (C) 2014 Dell, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 29.310861 | 74 | 0.603629 | 923 | 7,826 | 4.887324 | 0.152763 | 0.073155 | 0.045223 | 0.04611 | 0.743072 | 0.72556 | 0.717358 | 0.679007 | 0.679007 | 0.636888 | 0 | 0.038378 | 0.294148 | 7,826 | 266 | 75 | 29.421053 | 0.77824 | 0.070406 | 0 | 0.764706 | 0 | 0 | 0.067374 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.083333 | false | 0.009804 | 0.02451 | 0 | 0.117647 | 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 |
c0f12f3d1f543a513c4d5ac81578bf305a538f2a | 459 | py | Python | tangos/properties/pynbody/mass.py | TobiBu/tangos | decab8c892c5937fd68474a375089abef198dba2 | [
"BSD-3-Clause"
] | 15 | 2017-12-04T18:05:32.000Z | 2021-12-20T22:11:20.000Z | tangos/properties/pynbody/mass.py | TobiBu/tangos | decab8c892c5937fd68474a375089abef198dba2 | [
"BSD-3-Clause"
] | 99 | 2017-11-09T16:47:20.000Z | 2022-03-07T10:15:12.000Z | tangos/properties/pynbody/mass.py | TobiBu/tangos | decab8c892c5937fd68474a375089abef198dba2 | [
"BSD-3-Clause"
] | 14 | 2017-11-06T18:46:17.000Z | 2021-12-13T10:49:53.000Z | from . import PynbodyPropertyCalculation
class Masses(PynbodyPropertyCalculation):
names = "finder_mass"
def calculate(self, halo, existing_properties):
return halo['mass'].sum()
class MassBreakdown(PynbodyPropertyCalculation):
names = "finder_dm_mass", "finder_star_mass", "finder_gas_mass"
... | 30.6 | 85 | 0.71024 | 51 | 459 | 6.215686 | 0.392157 | 0.088328 | 0.233438 | 0.126183 | 0.328076 | 0.328076 | 0.328076 | 0.328076 | 0.328076 | 0 | 0 | 0 | 0.154684 | 459 | 14 | 86 | 32.785714 | 0.81701 | 0 | 0 | 0.222222 | 0 | 0 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.222222 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
23cfb0abb4cdca38fe77139cef1c52aaad92d63a | 252 | py | Python | src/pyclts/__init__.py | lingpy/clts | 5cd1b1dc6f7bc0983ea0ff7843d046f6d761807a | [
"Apache-2.0"
] | 4 | 2018-11-07T14:33:39.000Z | 2019-04-05T18:11:15.000Z | src/pyclts/__init__.py | lingpy/clts | 5cd1b1dc6f7bc0983ea0ff7843d046f6d761807a | [
"Apache-2.0"
] | 104 | 2017-12-04T09:28:37.000Z | 2019-10-22T08:05:18.000Z | src/pyclts/__init__.py | lingpy/clts | 5cd1b1dc6f7bc0983ea0ff7843d046f6d761807a | [
"Apache-2.0"
] | 5 | 2017-12-04T10:06:15.000Z | 2019-03-17T12:49:48.000Z | from pyclts.transcriptionsystem import TranscriptionSystem # noqa: F401
from pyclts.transcriptiondata import TranscriptionData # noqa: F401
from pyclts.soundclasses import SoundClasses # noqa: F401
from pyclts import api
__version__ = '1.3.1.dev0'
| 36 | 72 | 0.813492 | 30 | 252 | 6.7 | 0.433333 | 0.199005 | 0.179104 | 0.268657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059091 | 0.126984 | 252 | 6 | 73 | 42 | 0.854545 | 0.126984 | 0 | 0 | 0 | 0 | 0.046296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
23f9ebadb708eaf54df592f1f505653aa101b168 | 90 | py | Python | BuscaCotacoes/Application.py | vitimdt/TraderExpert | 942efb1f726c6f74e2a3c8d4099db30d72e8474e | [
"Apache-2.0"
] | 1 | 2021-05-26T16:55:27.000Z | 2021-05-26T16:55:27.000Z | BuscaCotacoes/Application.py | vitimdt/TraderExpert | 942efb1f726c6f74e2a3c8d4099db30d72e8474e | [
"Apache-2.0"
] | 1 | 2021-04-29T13:04:59.000Z | 2021-05-14T16:26:03.000Z | BuscaCotacoes/Application.py | vitimdt/TraderExpert | 942efb1f726c6f74e2a3c8d4099db30d72e8474e | [
"Apache-2.0"
] | 1 | 2022-02-07T14:21:53.000Z | 2022-02-07T14:21:53.000Z | from BuscaCotacoes import BuscaCotacoes
app = BuscaCotacoes()
app.iniciarColetaCotacoes() | 22.5 | 39 | 0.844444 | 8 | 90 | 9.5 | 0.625 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 90 | 4 | 40 | 22.5 | 0.926829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f195ba9be0e1c86249a956bbd52733bb57c67aea | 195 | py | Python | codenode/cpp/nodes/block.py | 0xf0f/codenode | fa36ba5e2eeb42e95c8fc33afd4f1bf131ba6d9b | [
"MIT"
] | 3 | 2019-06-27T04:57:37.000Z | 2019-06-27T11:29:33.000Z | codenode/cpp/nodes/block.py | 0xf0f/codenode | fa36ba5e2eeb42e95c8fc33afd4f1bf131ba6d9b | [
"MIT"
] | null | null | null | codenode/cpp/nodes/block.py | 0xf0f/codenode | fa36ba5e2eeb42e95c8fc33afd4f1bf131ba6d9b | [
"MIT"
] | null | null | null | from codenode.base import CodeNode
class Block(CodeNode):
def header(self):
yield '{'
def body(self):
yield from self.children
def footer(self):
yield '}'
| 15 | 34 | 0.594872 | 23 | 195 | 5.043478 | 0.565217 | 0.232759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.302564 | 195 | 12 | 35 | 16.25 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0.010256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0 | 0.625 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
f1ab06cd976c11ed4046370ca53ef4f12bf65598 | 48 | py | Python | model.py | sers-cy/blaxcy | f74fd69c06d75a598f8ecce33c32ca0b2816c823 | [
"Apache-2.0"
] | null | null | null | model.py | sers-cy/blaxcy | f74fd69c06d75a598f8ecce33c32ca0b2816c823 | [
"Apache-2.0"
] | null | null | null | model.py | sers-cy/blaxcy | f74fd69c06d75a598f8ecce33c32ca0b2816c823 | [
"Apache-2.0"
] | null | null | null | '''
Created on Oct 3, 2015
@author: bcy-3
'''
| 6.857143 | 22 | 0.5625 | 8 | 48 | 3.375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 0.229167 | 48 | 6 | 23 | 8 | 0.567568 | 0.791667 | 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 |
f1c3b125e65b2936cf448584e953c64c43c3557d | 759 | py | Python | django_proyects/proyecto1/sap/personas/models.py | JuanDuran85/ejemplos_python | 47aa49c65384ab89654f362f3da6cd2b0ef386e5 | [
"Apache-2.0"
] | null | null | null | django_proyects/proyecto1/sap/personas/models.py | JuanDuran85/ejemplos_python | 47aa49c65384ab89654f362f3da6cd2b0ef386e5 | [
"Apache-2.0"
] | null | null | null | django_proyects/proyecto1/sap/personas/models.py | JuanDuran85/ejemplos_python | 47aa49c65384ab89654f362f3da6cd2b0ef386e5 | [
"Apache-2.0"
] | null | null | null | from django.db import models
# Create your models here.
class Domicilio(models.Model):
calle = models.CharField(max_length=50)
numero = models.IntegerField()
ciudad = models.CharField(max_length=50)
pais = models.CharField(max_length=50)
def __str__(self):
return f'{self.id}-{self.calle} ... | 33 | 82 | 0.710145 | 100 | 759 | 5.22 | 0.41 | 0.12069 | 0.206897 | 0.275862 | 0.35249 | 0.103448 | 0.103448 | 0.103448 | 0 | 0 | 0 | 0.023622 | 0.163373 | 759 | 23 | 83 | 33 | 0.798425 | 0.031621 | 0 | 0.117647 | 0 | 0 | 0.118529 | 0.061308 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0.117647 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
7b075b0059651433f0f15cf456c5036b91957e78 | 38 | py | Python | Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-006/ph-6.16-list-with-maltiple-range.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-006/ph-6.16-list-with-maltiple-range.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-006/ph-6.16-list-with-maltiple-range.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | li = list(range(2, 21, 2))
print(li)
| 9.5 | 26 | 0.578947 | 8 | 38 | 2.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 0.184211 | 38 | 3 | 27 | 12.666667 | 0.580645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
7b1caf4700618a351c711ff5944ae15fe18bc80f | 1,499 | py | Python | OpenGLCffi/GL/EXT/ARB/texture_compression.py | cydenix/OpenGLCffi | c78f51ae5e6b655eb2ea98f072771cf69e2197f3 | [
"MIT"
] | null | null | null | OpenGLCffi/GL/EXT/ARB/texture_compression.py | cydenix/OpenGLCffi | c78f51ae5e6b655eb2ea98f072771cf69e2197f3 | [
"MIT"
] | null | null | null | OpenGLCffi/GL/EXT/ARB/texture_compression.py | cydenix/OpenGLCffi | c78f51ae5e6b655eb2ea98f072771cf69e2197f3 | [
"MIT"
] | null | null | null | from OpenGLCffi.GL import params
@params(api='gl', prms=['target', 'level', 'internalformat', 'width', 'height', 'depth', 'border', 'imageSize', 'data'])
def glCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, data):
pass
@params(api='gl', prms=['target', 'level', 'inter... | 40.513514 | 135 | 0.701134 | 162 | 1,499 | 6.487654 | 0.185185 | 0.146527 | 0.073264 | 0.099905 | 0.757374 | 0.757374 | 0.757374 | 0.666032 | 0.613701 | 0.434824 | 0 | 0.004461 | 0.102735 | 1,499 | 36 | 136 | 41.638889 | 0.776952 | 0 | 0 | 0.318182 | 0 | 0 | 0.237809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0.318182 | 0.045455 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
9e299d5027da7202be47cc78304585719ee4a5d0 | 167 | py | Python | Techfest 2021/Buying Items.py | AkashSCIENTIST/CompetitiveSolutions | 236db303a21c7195ebf721394a54ce9df70782f5 | [
"Apache-2.0"
] | null | null | null | Techfest 2021/Buying Items.py | AkashSCIENTIST/CompetitiveSolutions | 236db303a21c7195ebf721394a54ce9df70782f5 | [
"Apache-2.0"
] | null | null | null | Techfest 2021/Buying Items.py | AkashSCIENTIST/CompetitiveSolutions | 236db303a21c7195ebf721394a54ce9df70782f5 | [
"Apache-2.0"
] | null | null | null | from itertools import combinations as c
def totalWays(n, k):
# Write your code here.
arr = tuple(range(n))
arr2 = tuple(c(arr, k))
return len(arr2)+1
| 20.875 | 39 | 0.640719 | 27 | 167 | 3.962963 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023622 | 0.239521 | 167 | 7 | 40 | 23.857143 | 0.818898 | 0.125749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 1 | 0.2 | false | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
9e30ef5361dc1738837c166fb0f62dee3e70e3c7 | 177 | py | Python | game/assets/powerups/powerup.py | Hagesjo/bomberman-server | fcc5fa7576227e0470bd18875de65784fd618bb6 | [
"MIT"
] | 1 | 2017-12-22T08:01:52.000Z | 2017-12-22T08:01:52.000Z | game/assets/powerups/powerup.py | Hagesjo/bomberman-server | fcc5fa7576227e0470bd18875de65784fd618bb6 | [
"MIT"
] | 7 | 2016-12-30T23:58:52.000Z | 2017-12-17T14:13:59.000Z | game/assets/powerups/powerup.py | Hagesjo/bomberman-server | fcc5fa7576227e0470bd18875de65784fd618bb6 | [
"MIT"
] | 1 | 2018-06-06T03:34:57.000Z | 2018-06-06T03:34:57.000Z | class Powerup:
def __init__(self, coord):
self.coord = coord
def use(self, player):
raise NotImplementedError
def ascii(self):
return "P"
| 16.090909 | 33 | 0.59322 | 20 | 177 | 5.05 | 0.65 | 0.178218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.316384 | 177 | 10 | 34 | 17.7 | 0.834711 | 0 | 0 | 0 | 0 | 0 | 0.005682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0.142857 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
9e5b94fb704df9e5961343c9543feaa0c84e3df2 | 238 | py | Python | note31/sentence_v3.py | icexmoon/python-learning-notes | 838c91d896404290b89992b6517be1b6a79df41f | [
"MIT"
] | null | null | null | note31/sentence_v3.py | icexmoon/python-learning-notes | 838c91d896404290b89992b6517be1b6a79df41f | [
"MIT"
] | null | null | null | note31/sentence_v3.py | icexmoon/python-learning-notes | 838c91d896404290b89992b6517be1b6a79df41f | [
"MIT"
] | null | null | null | import re
class SentenceV3():
RE_WORD = re.compile('\w+')
def __init__(self, text) -> None:
self.text = text
self.words = SentenceV3.RE_WORD.findall(text)
def __iter__(self):
return iter(self.words) | 19.833333 | 53 | 0.613445 | 31 | 238 | 4.387097 | 0.516129 | 0.176471 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011299 | 0.256303 | 238 | 12 | 54 | 19.833333 | 0.757062 | 0 | 0 | 0 | 0 | 0 | 0.012552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
7b4c71dbe02787bfa41a9c7d6567206ca3dfdd6f | 400 | py | Python | tcontrol/__init__.py | DaivdZhang/tinyControl | 4842ba473002f876790c637001e77b90ec566eb7 | [
"BSD-3-Clause"
] | 1 | 2018-07-18T14:48:04.000Z | 2018-07-18T14:48:04.000Z | tcontrol/__init__.py | DaivdZhang/TinyControl | 4842ba473002f876790c637001e77b90ec566eb7 | [
"BSD-3-Clause"
] | 2 | 2017-08-31T08:31:46.000Z | 2017-10-03T07:01:39.000Z | tcontrol/__init__.py | akizunx/TinyControl | 4842ba473002f876790c637001e77b90ec566eb7 | [
"BSD-3-Clause"
] | 2 | 2017-05-28T08:58:28.000Z | 2018-01-24T02:48:49.000Z | from .lti import *
from .poly import *
from .pzmap import *
from .transferfunction import *
from .time_response import *
from .rlocus import *
from .frequency import *
from . import plot_utility as plot
from .statespace import *
from .exception import *
from .discretization import *
from .model_conversion import *
from... | 25 | 40 | 0.77 | 53 | 400 | 5.754717 | 0.415094 | 0.393443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 400 | 15 | 41 | 26.666667 | 0.907738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 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 |
7b6607a05969dfab9a44e700a18c24e53c6919ed | 66 | py | Python | dimedb/app/config.py | KeironO/DIMEdb | e47b13ab17a128e7136d9e342533c4e1d5021b67 | [
"MIT"
] | 1 | 2019-05-22T04:50:18.000Z | 2019-05-22T04:50:18.000Z | dimedb/app/config.py | KeironO/DIMEdb | e47b13ab17a128e7136d9e342533c4e1d5021b67 | [
"MIT"
] | 2 | 2017-11-20T16:17:57.000Z | 2017-11-20T16:23:35.000Z | dimedb/app/config.py | KeironO/DIMEdb | e47b13ab17a128e7136d9e342533c4e1d5021b67 | [
"MIT"
] | null | null | null | import os, csv
class BaseConfig(object):
MAINTENANCE = False
| 13.2 | 25 | 0.727273 | 8 | 66 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19697 | 66 | 4 | 26 | 16.5 | 0.90566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7b820b6a5ecffe3cd11fce5b9bc7b23d3e1eee65 | 875 | py | Python | crescent/resources/api_gateway_v2/api/cors.py | mpolatcan/zepyhrus | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | [
"Apache-2.0"
] | 1 | 2020-03-26T19:20:03.000Z | 2020-03-26T19:20:03.000Z | crescent/resources/api_gateway_v2/api/cors.py | mpolatcan/zepyhrus | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | [
"Apache-2.0"
] | null | null | null | crescent/resources/api_gateway_v2/api/cors.py | mpolatcan/zepyhrus | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | [
"Apache-2.0"
] | null | null | null | from crescent.core import Model
class Cors(Model):
def __int__(self):
super(Cors, self).__init__()
def AllowCredentials(self, allow_credentials: bool):
return self._set_field(self.AllowCredentials.__name__, allow_credentials)
def AllowHeaders(self, *allow_headers: str):
return se... | 36.458333 | 81 | 0.732571 | 109 | 875 | 5.366972 | 0.302752 | 0.102564 | 0.133333 | 0.184615 | 0.270085 | 0.194872 | 0.109402 | 0 | 0 | 0 | 0 | 0 | 0.163429 | 875 | 24 | 82 | 36.458333 | 0.79918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4375 | false | 0 | 0.0625 | 0.375 | 0.9375 | 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 |
7bb467f4b48ad6c0f25d738a305372a27ff22d15 | 191 | py | Python | generate_secret_key.py | LuisHenrique01/music-api | fb71c918625e61ae6ace3c14784ea1281287580f | [
"MIT"
] | 1 | 2021-02-02T03:58:48.000Z | 2021-02-02T03:58:48.000Z | generate_secret_key.py | LuisHenrique01/music-api | fb71c918625e61ae6ace3c14784ea1281287580f | [
"MIT"
] | null | null | null | generate_secret_key.py | LuisHenrique01/music-api | fb71c918625e61ae6ace3c14784ea1281287580f | [
"MIT"
] | null | null | null | from django.core.management.utils import get_random_secret_key
secret_key = get_random_secret_key()
with open('.env', 'w+') as arq:
dados = 'SECRET_KEY=%s'%secret_key
arq.write(dados) | 38.2 | 62 | 0.748691 | 31 | 191 | 4.322581 | 0.612903 | 0.335821 | 0.223881 | 0.268657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120419 | 191 | 5 | 63 | 38.2 | 0.797619 | 0 | 0 | 0 | 0 | 0 | 0.098958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c897bed43c483a447b8b037401fa9c22142d3776 | 1,010 | py | Python | python-data-analysis/pandas-demo/GroupByDemo.py | meteor1993/python-learning | 4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40 | [
"MIT"
] | 83 | 2019-10-15T06:54:06.000Z | 2022-03-28T14:08:21.000Z | python-data-analysis/pandas-demo/GroupByDemo.py | wenxuefeng3930/python-learning | 4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40 | [
"MIT"
] | 1 | 2020-04-16T08:13:19.000Z | 2020-07-14T01:52:46.000Z | python-data-analysis/pandas-demo/GroupByDemo.py | wenxuefeng3930/python-learning | 4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40 | [
"MIT"
] | 74 | 2019-11-02T08:10:36.000Z | 2022-02-19T12:23:36.000Z | import pandas as pd
# 数据导入
epidemic_dxy = pd.read_excel("epidemic_dxy.xlsx")
print(epidemic_dxy.groupby(['continents']))
print(epidemic_dxy.groupby(['continents']).count())
# pd.set_option('display.max_columns', None)
print(epidemic_dxy.groupby(['continents']).sum())
print(epidemic_dxy.groupby(['contin... | 43.913043 | 157 | 0.739604 | 106 | 1,010 | 6.849057 | 0.292453 | 0.227273 | 0.198347 | 0.221763 | 0.761708 | 0.589532 | 0.589532 | 0.589532 | 0.589532 | 0.589532 | 0 | 0 | 0.070297 | 1,010 | 23 | 158 | 43.913043 | 0.773163 | 0.046535 | 0 | 0 | 0 | 0 | 0.374867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.727273 | 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 |
c8f403f78fab18f7b4e8c946a89b14371a2e6d40 | 249 | py | Python | aiomessaging/__init__.py | aiomessaging/aiomessaging | 0fe2296d5a772a9b28c3173259e7a6ace6e45624 | [
"MIT"
] | 4 | 2018-07-08T18:49:10.000Z | 2018-08-16T20:17:29.000Z | aiomessaging/__init__.py | aiomessaging/aiomessaging | 0fe2296d5a772a9b28c3173259e7a6ace6e45624 | [
"MIT"
] | 23 | 2018-07-08T18:52:42.000Z | 2018-10-25T16:58:50.000Z | aiomessaging/__init__.py | aiomessaging/aiomessaging | 0fe2296d5a772a9b28c3173259e7a6ace6e45624 | [
"MIT"
] | null | null | null | """aiomessaging.
"""
from .app import AiomessagingApp
from .queues import QueueBackend
from .event import Event
from .message import Message, Route, Effect
__all__ = [
'QueueBackend', 'AiomessagingApp', 'Event', 'Message', 'Route', 'Effect'
]
| 20.75 | 76 | 0.722892 | 26 | 249 | 6.769231 | 0.461538 | 0.136364 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144578 | 249 | 11 | 77 | 22.636364 | 0.826291 | 0.052209 | 0 | 0 | 0 | 0 | 0.218341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
cdb812f27a5354b16006221c0b0db90eabca92c5 | 6,390 | py | Python | tests/test_rotations.py | MarceloJacinto/dsorlib | 5208919579726b73f088605885f6e1f0bf17d297 | [
"MIT"
] | null | null | null | tests/test_rotations.py | MarceloJacinto/dsorlib | 5208919579726b73f088605885f6e1f0bf17d297 | [
"MIT"
] | null | null | null | tests/test_rotations.py | MarceloJacinto/dsorlib | 5208919579726b73f088605885f6e1f0bf17d297 | [
"MIT"
] | null | null | null | from numpy import array
from numpy.testing import assert_allclose
from dsorlib.rotations import Rot_to_quaternion, RPY_to_quaternion, quaternion_to_Rot, quaternion_to_RPY, RPY_to_RotZYX, \
RotZYX_to_RPY
"""
The following tests are conducted for the rotations module
The following URL was used to obtained the standa... | 32.602041 | 122 | 0.662285 | 892 | 6,390 | 4.492152 | 0.106502 | 0.059895 | 0.041927 | 0.03993 | 0.808335 | 0.755428 | 0.722236 | 0.636386 | 0.584727 | 0.584727 | 0 | 0.201037 | 0.215336 | 6,390 | 195 | 123 | 32.769231 | 0.598125 | 0.114554 | 0 | 0.560748 | 0 | 0 | 0.001516 | 0 | 0 | 0 | 0 | 0 | 0.121495 | 1 | 0.121495 | false | 0 | 0.028037 | 0 | 0.149533 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b51f00c284c634b91ba48c16b6b38a19669ca60e | 101 | py | Python | redback/get_data/fermi.py | nikhil-sarin/redback | b0023b770a3c0a25a18c4f6ff1a07339be7f83fe | [
"MIT"
] | 2 | 2022-03-11T10:03:33.000Z | 2022-03-11T10:51:54.000Z | redback/get_data/fermi.py | nikhil-sarin/redback | b0023b770a3c0a25a18c4f6ff1a07339be7f83fe | [
"MIT"
] | 5 | 2022-03-03T07:59:13.000Z | 2022-03-03T08:01:32.000Z | redback/get_data/fermi.py | nikhil-sarin/redback | b0023b770a3c0a25a18c4f6ff1a07339be7f83fe | [
"MIT"
] | 1 | 2022-03-31T12:24:59.000Z | 2022-03-31T12:24:59.000Z |
class FermiDataGetter(object):
def __init__(self) -> None:
raise NotImplementedError()
| 16.833333 | 35 | 0.683168 | 9 | 101 | 7.222222 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217822 | 101 | 5 | 36 | 20.2 | 0.822785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
b53a2ab2c21bccdba68dc75f1d5583942ad27dfc | 163 | py | Python | reddit2telegram/channels/r_talesfromtechsupport/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 187 | 2016-09-20T09:15:54.000Z | 2022-03-29T12:22:33.000Z | reddit2telegram/channels/r_talesfromtechsupport/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 84 | 2016-09-22T14:25:07.000Z | 2022-03-19T01:26:17.000Z | reddit2telegram/channels/r_talesfromtechsupport/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 172 | 2016-09-21T15:39:39.000Z | 2022-03-16T15:15:58.000Z | #encoding:utf-8
subreddit = 'talesfromtechsupport'
t_channel = '@r_talesfromtechsupport'
def send_post(submission, r2t):
return r2t.send_simple(submission)
| 18.111111 | 38 | 0.779141 | 19 | 163 | 6.473684 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.116564 | 163 | 8 | 39 | 20.375 | 0.833333 | 0.08589 | 0 | 0 | 0 | 0 | 0.290541 | 0.155405 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 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 |
b5484cbd61a58520cca92569eb7a4e4542841514 | 163 | py | Python | SoftGeek/SoftWord/apps.py | enockhamuli15/SocialNetwork | 88ca5f6908f16060df0eed6fb266f36822bad265 | [
"MIT"
] | null | null | null | SoftGeek/SoftWord/apps.py | enockhamuli15/SocialNetwork | 88ca5f6908f16060df0eed6fb266f36822bad265 | [
"MIT"
] | null | null | null | SoftGeek/SoftWord/apps.py | enockhamuli15/SocialNetwork | 88ca5f6908f16060df0eed6fb266f36822bad265 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class SoftwordConfig(AppConfig):
name = 'SoftWord'
"""def ready(self):
import SoftWord.signals"""
| 18.111111 | 34 | 0.625767 | 16 | 163 | 6.375 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269939 | 163 | 9 | 35 | 18.111111 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 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 |
b5808dc48fa1227a099c3a726570b31bb3bc3711 | 169,063 | py | Python | liberator/libreapi.py | geejay101/libresbc | 7e0efee56f897452d1b783a84a743137df7993f9 | [
"MIT"
] | null | null | null | liberator/libreapi.py | geejay101/libresbc | 7e0efee56f897452d1b783a84a743137df7993f9 | [
"MIT"
] | null | null | null | liberator/libreapi.py | geejay101/libresbc | 7e0efee56f897452d1b783a84a743137df7993f9 | [
"MIT"
] | null | null | null | #
# liberator:libreapi.py
#
# The Initial Developer of the Original Code is
# Minh Minh <hnimminh at[@] outlook dot[.] com>
# Portions created by the Initial Developer are Copyright (C) the Initial Developer.
# All Rights Reserved.
#
import traceback
import re
import json
import hashlib
import redis
import validators... | 50.617665 | 285 | 0.638312 | 18,898 | 169,063 | 5.535612 | 0.0481 | 0.033075 | 0.045253 | 0.057125 | 0.785579 | 0.757848 | 0.729075 | 0.70187 | 0.669952 | 0.657898 | 0 | 0.013251 | 0.204581 | 169,063 | 3,339 | 286 | 50.632824 | 0.764672 | 0.062415 | 0 | 0.640945 | 0 | 0.03163 | 0.26247 | 0.11012 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037887 | false | 0.020507 | 0.005561 | 0.000348 | 0.199513 | 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 |
b5a6834a5076370e52af8191947d74baf0f5e8ff | 11,475 | py | Python | tests/test_optimizer.py | ar-nowaczynski/spaceopt | e87b26507e726ab5df027a4a850074f1fd3d0369 | [
"MIT"
] | 46 | 2020-01-28T10:29:49.000Z | 2021-09-04T20:18:01.000Z | tests/test_optimizer.py | ar-nowaczynski/spaceopt | e87b26507e726ab5df027a4a850074f1fd3d0369 | [
"MIT"
] | 1 | 2021-04-21T09:44:15.000Z | 2021-04-29T10:39:48.000Z | tests/test_optimizer.py | ar-nowaczynski/spaceopt | e87b26507e726ab5df027a4a850074f1fd3d0369 | [
"MIT"
] | null | null | null | import random
from typing import Dict
from spaceopt import SpaceOpt
random.seed(123456)
def search_space() -> Dict[str, list]:
return {
"a": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20],
"b": [-5.5, -4.4, -3.3, -2.2, -1.1, 0.0, 1.1, 2.2, 3.3, 4.4, 5.5],
"c": ... | 33.651026 | 106 | 0.554684 | 1,434 | 11,475 | 4.288006 | 0.098326 | 0.060823 | 0.069117 | 0.073183 | 0.802732 | 0.76793 | 0.737356 | 0.6819 | 0.667426 | 0.625142 | 0 | 0.039095 | 0.306754 | 11,475 | 340 | 107 | 33.75 | 0.733878 | 0 | 0 | 0.531034 | 0 | 0.010345 | 0.26719 | 0.011416 | 0 | 0 | 0 | 0 | 0.213793 | 1 | 0.027586 | false | 0 | 0.010345 | 0.003448 | 0.041379 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a91d1630617d27d8e48231bf87e684c7e57f2179 | 809 | py | Python | game/utils/patch.py | alviproject/birdstorm | 439ff97ee40c3dd93b8fa8bfca557bdee9c036e1 | [
"MIT"
] | null | null | null | game/utils/patch.py | alviproject/birdstorm | 439ff97ee40c3dd93b8fa8bfca557bdee9c036e1 | [
"MIT"
] | null | null | null | game/utils/patch.py | alviproject/birdstorm | 439ff97ee40c3dd93b8fa8bfca557bdee9c036e1 | [
"MIT"
] | null | null | null | import rest_framework.fields
from sockjs.tornado.basehandler import BaseHandler
#TODO add a comment
from sockjs.tornado.transports.websocket import WebSocketTransport
def strip_multiple_choice_msg(_):
return ''
rest_framework.fields.strip_multiple_choice_msg = strip_multiple_choice_msg
#mitigates following ex... | 24.515152 | 96 | 0.7911 | 97 | 809 | 6.412371 | 0.546392 | 0.096463 | 0.09164 | 0.106109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128554 | 809 | 32 | 97 | 25.28125 | 0.88227 | 0.321384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 1 | 0.230769 | false | 0.076923 | 0.230769 | 0.076923 | 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 |
a97d54833da6e0b0b4a6065b4b28a4a228a04f02 | 98 | py | Python | djoser/webauthn/apps.py | ulgens/djoser | c62371e3f9a8bbad2eaf55ffd0efad6eb6c02f26 | [
"MIT"
] | null | null | null | djoser/webauthn/apps.py | ulgens/djoser | c62371e3f9a8bbad2eaf55ffd0efad6eb6c02f26 | [
"MIT"
] | null | null | null | djoser/webauthn/apps.py | ulgens/djoser | c62371e3f9a8bbad2eaf55ffd0efad6eb6c02f26 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class WebauthnConfig(AppConfig):
name = "djoser.webauthn"
| 16.333333 | 33 | 0.765306 | 11 | 98 | 6.818182 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153061 | 98 | 5 | 34 | 19.6 | 0.903614 | 0 | 0 | 0 | 0 | 0 | 0.153061 | 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 |
a983ef401af7d6fd90105b091fff8c3208a5624a | 143 | py | Python | setup.py | NicholasBermuda/multilevelRBF | 23059d3bf0df99724843fb8753b42233a1a872e6 | [
"MIT"
] | null | null | null | setup.py | NicholasBermuda/multilevelRBF | 23059d3bf0df99724843fb8753b42233a1a872e6 | [
"MIT"
] | null | null | null | setup.py | NicholasBermuda/multilevelRBF | 23059d3bf0df99724843fb8753b42233a1a872e6 | [
"MIT"
] | null | null | null | from distutils.core import setup
from Cython.Build import cythonize
setup(
ext_modules = cythonize(["rbf.pyx", "rbf.pxd", "forms.pyx"])
) | 23.833333 | 64 | 0.72028 | 20 | 143 | 5.1 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13986 | 143 | 6 | 65 | 23.833333 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0.159722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
8d41601f01e9c5e17574d8fc8d65115ad27159c5 | 117 | py | Python | suricataparser/__init__.py | m-chrome/py-suricataparser | 607151674cb09601661f1d1b7bbb24f79bdd183a | [
"Apache-2.0"
] | 10 | 2021-03-29T21:45:37.000Z | 2022-03-27T15:42:28.000Z | suricataparser/__init__.py | m-chrome/py-suricataparser | 607151674cb09601661f1d1b7bbb24f79bdd183a | [
"Apache-2.0"
] | null | null | null | suricataparser/__init__.py | m-chrome/py-suricataparser | 607151674cb09601661f1d1b7bbb24f79bdd183a | [
"Apache-2.0"
] | 3 | 2021-07-22T21:28:22.000Z | 2022-03-18T17:44:44.000Z | from suricataparser.parse import parse_rule, parse_file
from suricataparser.rule import Rule
__version__ = "0.0.7"
| 19.5 | 55 | 0.811966 | 17 | 117 | 5.235294 | 0.529412 | 0.404494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029126 | 0.119658 | 117 | 5 | 56 | 23.4 | 0.834951 | 0 | 0 | 0 | 0 | 0 | 0.042735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
8d8c394e9c913458bb50991187417b82ec491d67 | 60,341 | py | Python | release/stubs.min/Wms/RemotingObjects/Outbound/__init__.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | release/stubs.min/Wms/RemotingObjects/Outbound/__init__.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | release/stubs.min/Wms/RemotingObjects/Outbound/__init__.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | # encoding: utf-8
# module Wms.RemotingObjects.Outbound calls itself Outbound
# from Wms.RemotingObjects,Version=1.23.1.0,Culture=neutral,PublicKeyToken=null
# by generator 1.145
# no doc
# no important
from System.Collections.Generic import *
from ..__init__ import *
# no functions
# classes
class Alloca... | 29.377313 | 215 | 0.710147 | 6,263 | 60,341 | 6.707488 | 0.058758 | 0.142112 | 0.085267 | 0.11369 | 0.55819 | 0.54993 | 0.541955 | 0.537432 | 0.535719 | 0.525959 | 0 | 0.001205 | 0.161201 | 60,341 | 2,053 | 216 | 29.391622 | 0.828783 | 0.127724 | 0 | 0.7431 | 0 | 0 | 0.001884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225053 | false | 0.186837 | 0.004246 | 0 | 0.804671 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
8d97f752632492b528049c4794a2ba50783de40b | 328 | py | Python | pkg/distil_bilstm_pos_tagger/__init__.py | etherlabsio/ai-engine | e73a4419a34db42a410e2a7e7629eb946b86f2c2 | [
"MIT"
] | null | null | null | pkg/distil_bilstm_pos_tagger/__init__.py | etherlabsio/ai-engine | e73a4419a34db42a410e2a7e7629eb946b86f2c2 | [
"MIT"
] | null | null | null | pkg/distil_bilstm_pos_tagger/__init__.py | etherlabsio/ai-engine | e73a4419a34db42a410e2a7e7629eb946b86f2c2 | [
"MIT"
] | 1 | 2020-04-19T11:07:42.000Z | 2020-04-19T11:07:42.000Z | from distil_bilstm_pos_tagger.distil_bilstm_pos_tagger import DistilBiLstmPosTagger
#from .distilbert_utils.modeling_distilbert import DistilBertPreTrainedModel, DistilBertModel, DistilBertConfig
#from .distilbert_utils.tokenization_distilbert import DistilBertTokenizer
from distil_bilstm_pos_tagger.distilbert_utils i... | 65.6 | 112 | 0.908537 | 35 | 328 | 8.114286 | 0.428571 | 0.126761 | 0.158451 | 0.221831 | 0.176056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057927 | 328 | 4 | 113 | 82 | 0.919094 | 0.560976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8da0e33d244598df780e16f383d223ea107f108c | 47,390 | py | Python | awx/main/tests/old/ad_hoc.py | doziya/ansible | 96f7371493043e2ae596d059f2ca990bd0a28ad5 | [
"Apache-2.0"
] | 1 | 2021-06-11T20:01:06.000Z | 2021-06-11T20:01:06.000Z | awx/main/tests/old/ad_hoc.py | doziya/ansible | 96f7371493043e2ae596d059f2ca990bd0a28ad5 | [
"Apache-2.0"
] | 4 | 2020-04-29T23:03:16.000Z | 2022-03-01T23:56:09.000Z | awx/main/tests/old/ad_hoc.py | doziya/ansible | 96f7371493043e2ae596d059f2ca990bd0a28ad5 | [
"Apache-2.0"
] | 1 | 2019-05-07T13:55:18.000Z | 2019-05-07T13:55:18.000Z | # Copyright (c) 2015 Ansible, Inc.
# All Rights Reserved.
# Python
import glob
import os
import subprocess
import tempfile
import mock
import unittest2 as unittest
# Django
from django.conf import settings
from django.core.urlresolvers import reverse
# Django-CRUM
from crum import impersonate
# AWX
from awx.main.u... | 49.261954 | 134 | 0.635324 | 6,017 | 47,390 | 4.766495 | 0.066312 | 0.059798 | 0.127615 | 0.053556 | 0.789505 | 0.75122 | 0.715656 | 0.690516 | 0.664191 | 0.643619 | 0 | 0.025184 | 0.244229 | 47,390 | 961 | 135 | 49.313215 | 0.775575 | 0.064739 | 0 | 0.66545 | 0 | 0 | 0.080006 | 0.024972 | 0 | 0 | 0 | 0.001041 | 0.223844 | 1 | 0.040146 | false | 0.062044 | 0.015815 | 0.001217 | 0.064477 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
8da24519f7c36ff1ac07b23daa42d050d369cb76 | 192 | py | Python | src/ReinforcementLearning/Modules/Agents/IAgent.py | B-C-WANG/ReinforcementLearningInAutoPilot | 8d3c0b81e3db2fb4be0e52e25b700c54f5e569dc | [
"MIT"
] | 27 | 2019-05-14T01:06:05.000Z | 2022-03-06T03:12:40.000Z | src/ReinforcementLearning/Modules/Agents/IAgent.py | B-C-WANG/ReinforcementLearningInAutoPilot | 8d3c0b81e3db2fb4be0e52e25b700c54f5e569dc | [
"MIT"
] | null | null | null | src/ReinforcementLearning/Modules/Agents/IAgent.py | B-C-WANG/ReinforcementLearningInAutoPilot | 8d3c0b81e3db2fb4be0e52e25b700c54f5e569dc | [
"MIT"
] | 10 | 2020-01-20T09:39:51.000Z | 2022-03-31T18:30:53.000Z | # coding:utf-8
class IAgent(object):
'''
负责调用Model和env,控制训练流程
'''
def save(self):
raise NotImplementedError()
def load(self):
raise NotImplementedError()
| 16 | 35 | 0.604167 | 18 | 192 | 6.444444 | 0.777778 | 0.155172 | 0.482759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007194 | 0.276042 | 192 | 11 | 36 | 17.454545 | 0.827338 | 0.177083 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
a5f33cc1e28d8d9b32f54456946f909ca9a920c7 | 180 | py | Python | Dataset/Leetcode/test/46/79.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/test/46/79.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/test/46/79.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, nums: List[int]) -> List[List[int]]:
return [[n] + sub for i, n in enumerate(nums) for sub in self.XXX(nums[:i] + nums[i+1:])] or [nums]
| 36 | 107 | 0.594444 | 32 | 180 | 3.34375 | 0.53125 | 0.130841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007042 | 0.211111 | 180 | 4 | 108 | 45 | 0.746479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
570458c482ee369c29c283695bc0dc84fb85bc67 | 92 | py | Python | func/__init__.py | pppineapple/ProximityCaculated | eddbf6f9e45ec1043befdfa0e30020400338ce19 | [
"MIT"
] | null | null | null | func/__init__.py | pppineapple/ProximityCaculated | eddbf6f9e45ec1043befdfa0e30020400338ce19 | [
"MIT"
] | null | null | null | func/__init__.py | pppineapple/ProximityCaculated | eddbf6f9e45ec1043befdfa0e30020400338ce19 | [
"MIT"
] | 1 | 2021-07-17T13:20:35.000Z | 2021-07-17T13:20:35.000Z | # _*_coding:utf-8_*_
# author: pineapple
# date: 2020/9/12 下午4:05
# file __init__.py.py | 23 | 26 | 0.663043 | 15 | 92 | 3.533333 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144737 | 0.173913 | 92 | 4 | 27 | 23 | 0.552632 | 0.913043 | 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 |
5715b61fa1c1114b42127a26ccb72d0b176c9116 | 435 | py | Python | flask_app/model/declarations.py | AI3SW/ai_job_teacher_flask | 13a8271df1b165e951b90e28ce495a3e44fc833f | [
"MIT"
] | null | null | null | flask_app/model/declarations.py | AI3SW/ai_job_teacher_flask | 13a8271df1b165e951b90e28ce495a3e44fc833f | [
"MIT"
] | null | null | null | flask_app/model/declarations.py | AI3SW/ai_job_teacher_flask | 13a8271df1b165e951b90e28ce495a3e44fc833f | [
"MIT"
] | null | null | null | import logging
from abc import ABC, abstractmethod
class BaseModel(ABC):
def __init__(self):
self.predictor = None
@abstractmethod
def init_model(self, config):
pass
@abstractmethod
def predict(self, input_image):
pass
@abstractmethod
def format_prediction(self, ... | 18.125 | 54 | 0.662069 | 46 | 435 | 6.065217 | 0.5 | 0.243728 | 0.225806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268966 | 435 | 23 | 55 | 18.913043 | 0.877358 | 0 | 0 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0.235294 | 0.117647 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
5735d0029752af6ec52553f5673fe53b944f206a | 21 | py | Python | gtfstk/_version.py | cjer/gtfstk | 7e1573a2fae786f4683cefc3c9d1f0310baa5367 | [
"MIT"
] | null | null | null | gtfstk/_version.py | cjer/gtfstk | 7e1573a2fae786f4683cefc3c9d1f0310baa5367 | [
"MIT"
] | null | null | null | gtfstk/_version.py | cjer/gtfstk | 7e1573a2fae786f4683cefc3c9d1f0310baa5367 | [
"MIT"
] | null | null | null | __version__ = '9.2.3' | 21 | 21 | 0.666667 | 4 | 21 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0.095238 | 21 | 1 | 21 | 21 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 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 |
93d922f845c8f17a588751fc9ab34aa4245b8188 | 550 | py | Python | mru_example.py | maanavshah/cache-policy-lru-mru | c882acdfd4b4cab3f131e8a364df30a69b8d39f8 | [
"MIT"
] | null | null | null | mru_example.py | maanavshah/cache-policy-lru-mru | c882acdfd4b4cab3f131e8a364df30a69b8d39f8 | [
"MIT"
] | null | null | null | mru_example.py | maanavshah/cache-policy-lru-mru | c882acdfd4b4cab3f131e8a364df30a69b8d39f8 | [
"MIT"
] | null | null | null | from lib.mru import MRU
mru = MRU()
mru.insert(1)
mru.get()
mru.insert(2)
mru.get()
mru.insert(3)
mru.get()
mru.insert(4)
mru.get()
mru.insert(5)
mru.get()
mru.insert(6)
mru.get()
mru.insert(4)
mru.get()
mru.insert(1)
mru.get()
mru.insert(6)
mru.get()
mru.insert(8)
mru.get()
mru.insert(5)
mru.get()
mru.insert(1)
mru.... | 10.784314 | 23 | 0.534545 | 128 | 550 | 2.296875 | 0.109375 | 0.397959 | 0.367347 | 0.612245 | 0.721088 | 0.687075 | 0.687075 | 0.537415 | 0.537415 | 0 | 0 | 0.150442 | 0.178182 | 550 | 50 | 24 | 11 | 0.5 | 0 | 0 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.035714 | 0 | 0 | 0 | 0 | null | 1 | 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 |
93f2b1465f03c8570fa224d02f34e6c51d853e7d | 25,866 | py | Python | src-el/rcc-reasoner/graph.py | EulerProject/EulerX | 49e63e6a27be97ab30832180a47d214494388e15 | [
"MIT"
] | 15 | 2016-02-17T20:48:29.000Z | 2021-03-05T20:38:05.000Z | src-el/rcc-reasoner/graph.py | eddy7896/EulerX | 49e63e6a27be97ab30832180a47d214494388e15 | [
"MIT"
] | 16 | 2015-02-05T18:38:48.000Z | 2021-06-14T11:38:36.000Z | src-el/rcc-reasoner/graph.py | eddy7896/EulerX | 49e63e6a27be97ab30832180a47d214494388e15 | [
"MIT"
] | 4 | 2016-01-26T03:24:52.000Z | 2020-01-09T07:57:15.000Z | #!/usr/bin/env python
#from tables import *
from rccrelations import *
import sys
def findKey(d, value):
for k,v in d.iteritems():
if v == value:
return k
comptab = [[30, 30, 31],
[30, 10, 31],
[30, 6, 30],
[30, 20, 31],
[30, 5, 31],
... | 25.71173 | 87 | 0.227171 | 3,066 | 25,866 | 1.916504 | 0.027723 | 0.042886 | 0.008339 | 0.013615 | 0.065691 | 0.065691 | 0.065691 | 0.065691 | 0.065691 | 0.065691 | 0 | 0.471748 | 0.574422 | 25,866 | 1,006 | 88 | 25.71173 | 0.062046 | 0.005142 | 0 | 0.016097 | 0 | 0 | 0.006841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001006 | false | 0 | 0.002012 | 0 | 0.004024 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 |
f50ba01ce505bdbc933b36b092b869424062f669 | 374 | py | Python | bproxypool/controller/form.py | littlebai3618/bproxypool | 358cf5c14164dadbd0d9bdf7cc3932b46ec81812 | [
"MIT"
] | 2 | 2019-12-26T02:49:59.000Z | 2020-02-11T09:22:07.000Z | bproxypool/controller/form.py | littlebai3618/bproxypool | 358cf5c14164dadbd0d9bdf7cc3932b46ec81812 | [
"MIT"
] | 3 | 2021-03-31T19:33:59.000Z | 2021-12-13T20:29:21.000Z | bproxypool/controller/form.py | littlebai3618/bproxypool | 358cf5c14164dadbd0d9bdf7cc3932b46ec81812 | [
"MIT"
] | 2 | 2020-01-25T12:05:47.000Z | 2020-07-19T02:57:12.000Z | from wtforms import StringField, IntegerField
from bproxypool.core import BaseForm, ParamRequired
class DeleteProxyForm(BaseForm):
proxy = StringField(validators=[ParamRequired()])
source = StringField(validators=[ParamRequired()])
class CoolDownProxyForm(BaseForm):
proxy = StringField(validators=[Para... | 26.714286 | 54 | 0.775401 | 33 | 374 | 8.787879 | 0.545455 | 0.217241 | 0.351724 | 0.234483 | 0.324138 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012232 | 0.125668 | 374 | 13 | 55 | 28.769231 | 0.874618 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
f51e233309686910e7f0c9c88e074703c23422fc | 247 | py | Python | webtool/server/views/client/__init__.py | wodo/WebTool3 | 1582a03d619434d8a6139f705a1b5860e9b5b8b8 | [
"BSD-2-Clause"
] | 13 | 2018-12-16T21:01:24.000Z | 2019-07-03T06:23:41.000Z | webtool/server/views/client/__init__.py | dav-kempten/WebTool3 | 859f39df67cb0f853c7fe33cb5d08b999d8692fc | [
"BSD-2-Clause"
] | 26 | 2019-07-07T06:44:06.000Z | 2021-09-07T07:28:34.000Z | webtool/server/views/client/__init__.py | dav-kempten/WebTool3 | 859f39df67cb0f853c7fe33cb5d08b999d8692fc | [
"BSD-2-Clause"
] | 3 | 2017-06-18T06:22:52.000Z | 2019-07-03T06:21:05.000Z | # -*- coding: utf-8 -*-
from .guide import GuideViewSet
from .activity import ActivityViewSet
from .topic import TopicViewSet
from .collective import CollectiveViewSet
from .booklet import BookletViewSet
from .urls import router as client_router
| 27.444444 | 41 | 0.809717 | 30 | 247 | 6.633333 | 0.633333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004651 | 0.129555 | 247 | 8 | 42 | 30.875 | 0.92093 | 0.08502 | 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 |
f524dfd03d8cf873461481c7fbd2062721a588e7 | 178 | py | Python | bacli/__init__.py | JoeyDP/bacli | 729a660a9a10d7b8a77d554c3fb1df08624f1620 | [
"MIT"
] | null | null | null | bacli/__init__.py | JoeyDP/bacli | 729a660a9a10d7b8a77d554c3fb1df08624f1620 | [
"MIT"
] | null | null | null | bacli/__init__.py | JoeyDP/bacli | 729a660a9a10d7b8a77d554c3fb1df08624f1620 | [
"MIT"
] | null | null | null | """ Define what is imported with `from bacli import *`. """
from .cli import cli
from .cli_legacy import command, setDescription
__all__ = ["cli", "command", "setDescription"]
| 25.428571 | 59 | 0.713483 | 22 | 178 | 5.545455 | 0.590909 | 0.114754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151685 | 178 | 6 | 60 | 29.666667 | 0.807947 | 0.286517 | 0 | 0 | 0 | 0 | 0.201681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f546b5bb3701fbd2acd5b2ba10790b3f02a95aa2 | 92 | py | Python | src/models/__init__.py | charlesxjyang/DeepGeyser | 59f54c67667800f091d7af1805c04bbc36c7624b | [
"Apache-2.0"
] | null | null | null | src/models/__init__.py | charlesxjyang/DeepGeyser | 59f54c67667800f091d7af1805c04bbc36c7624b | [
"Apache-2.0"
] | null | null | null | src/models/__init__.py | charlesxjyang/DeepGeyser | 59f54c67667800f091d7af1805c04bbc36c7624b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Sep 8 15:20:24 2018
@author: Charles Yang
"""
| 11.5 | 35 | 0.576087 | 15 | 92 | 3.533333 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0.217391 | 92 | 7 | 36 | 13.142857 | 0.569444 | 0.880435 | 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 |
f546bea6310d7e0570fa95351b5d0ffedf9c5822 | 210 | py | Python | urls.py | chkgk/otree_file_upload | b49f0f4b3dc5f22edd8a8af55af831dfb3c88102 | [
"MIT"
] | 1 | 2020-04-15T12:30:02.000Z | 2020-04-15T12:30:02.000Z | urls.py | chkgk/otree_file_upload | b49f0f4b3dc5f22edd8a8af55af831dfb3c88102 | [
"MIT"
] | null | null | null | urls.py | chkgk/otree_file_upload | b49f0f4b3dc5f22edd8a8af55af831dfb3c88102 | [
"MIT"
] | null | null | null | from otree.urls import urlpatterns
from django.conf.urls.static import static
import settings
# additional url pattern for media url
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) | 35 | 76 | 0.838095 | 30 | 210 | 5.766667 | 0.533333 | 0.138728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 210 | 6 | 76 | 35 | 0.915344 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 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 |
191decb802d99b48151eeae262423ae746ebbe1f | 1,110 | py | Python | DataTypes/Python/lists/circular_linked_list.py | shoriwe/LVaED | 68ca38eed2b4c2b1b7a6a8304c8effbcf2f977f7 | [
"MIT"
] | null | null | null | DataTypes/Python/lists/circular_linked_list.py | shoriwe/LVaED | 68ca38eed2b4c2b1b7a6a8304c8effbcf2f977f7 | [
"MIT"
] | 19 | 2021-02-08T22:14:16.000Z | 2021-03-03T15:13:07.000Z | DataTypes/Python/lists/circular_linked_list.py | shoriwe/LVaED | 68ca38eed2b4c2b1b7a6a8304c8effbcf2f977f7 | [
"MIT"
] | 3 | 2021-08-30T01:06:32.000Z | 2022-02-21T03:22:28.000Z | import double_linked_list
from lists import list_node
class CircularLinkedList(object):
def __init__(self):
self.length = 0
self.content = double_linked_list.DoublyLinkedList()
def update(self):
if self.content.start is not None:
self.content.start.before = self.content.end
self.length = self.content.l... | 21.346154 | 54 | 0.730631 | 160 | 1,110 | 4.8375 | 0.275 | 0.213178 | 0.067183 | 0.077519 | 0.118863 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00106 | 0.15045 | 1,110 | 51 | 55 | 21.764706 | 0.819724 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.361111 | false | 0 | 0.055556 | 0.111111 | 0.555556 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
194c792f5591a9425c4efb247e07cc690eba579a | 1,101 | py | Python | cloudrail/knowledge/context/azure/network/azure_subnet.py | my-devops-info/cloudrail-knowledge | b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e | [
"MIT"
] | null | null | null | cloudrail/knowledge/context/azure/network/azure_subnet.py | my-devops-info/cloudrail-knowledge | b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e | [
"MIT"
] | null | null | null | cloudrail/knowledge/context/azure/network/azure_subnet.py | my-devops-info/cloudrail-knowledge | b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e | [
"MIT"
] | null | null | null | from typing import List, Optional
from cloudrail.knowledge.context.azure.azure_resource import AzureResource
from cloudrail.knowledge.context.azure.constants.azure_resource_type import AzureResourceType
from cloudrail.knowledge.context.azure.network.azure_nsg import AzureNetworkSecurityGroup
class AzureSubnet(AzureR... | 34.40625 | 93 | 0.722979 | 133 | 1,101 | 5.75188 | 0.390977 | 0.152941 | 0.078431 | 0.113725 | 0.23268 | 0.099346 | 0.099346 | 0 | 0 | 0 | 0 | 0 | 0.206176 | 1,101 | 31 | 94 | 35.516129 | 0.875286 | 0.198002 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0.058824 | 0.235294 | 0.117647 | 0.647059 | 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 |
1994dc18ad266c62fe9ea55648d8ec65eafac0fa | 203 | py | Python | logger.py | vjdw/piper | 80af3f6c54029dd0a514211a0ecd73399b503356 | [
"MIT"
] | null | null | null | logger.py | vjdw/piper | 80af3f6c54029dd0a514211a0ecd73399b503356 | [
"MIT"
] | null | null | null | logger.py | vjdw/piper | 80af3f6c54029dd0a514211a0ecd73399b503356 | [
"MIT"
] | null | null | null | class Logger:
def __init__(self, filepath):
self.filepath = filepath
def write(self, msg):
with open(self.filepath, "a") as logfile:
logfile.write("{}\n".format(msg))
| 25.375 | 49 | 0.596059 | 25 | 203 | 4.68 | 0.6 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261084 | 203 | 7 | 50 | 29 | 0.78 | 0 | 0 | 0 | 0 | 0 | 0.024631 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
19a1cd73d94a8e7818b17b7b066df1a134f69129 | 480 | py | Python | 数字媒体安全应用与实践/learn_flask_the_hard_way/app/auth/forms.py | jckling/only-python | 9600d798889dfc38b8ecd65abd26e4ce657910d9 | [
"MIT"
] | 1 | 2019-10-12T01:09:15.000Z | 2019-10-12T01:09:15.000Z | 数字媒体安全应用与实践/learn_flask_the_hard_way/app/auth/forms.py | jckling/only-python | 9600d798889dfc38b8ecd65abd26e4ce657910d9 | [
"MIT"
] | null | null | null | 数字媒体安全应用与实践/learn_flask_the_hard_way/app/auth/forms.py | jckling/only-python | 9600d798889dfc38b8ecd65abd26e4ce657910d9 | [
"MIT"
] | 1 | 2019-10-12T01:10:13.000Z | 2019-10-12T01:10:13.000Z | # -*- coding: UTF-8 -*-
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField
from wtforms.validators import DataRequired, Email
class SignInForm(FlaskForm):
email = StringField('邮箱', validators=[DataRequired(), Email()])
password = PasswordField('密码', validators=[DataRequired()])
c... | 32 | 67 | 0.73125 | 47 | 480 | 7.446809 | 0.425532 | 0.251429 | 0.142857 | 0.154286 | 0.565714 | 0.565714 | 0.565714 | 0.565714 | 0.565714 | 0.565714 | 0 | 0.002387 | 0.127083 | 480 | 14 | 68 | 34.285714 | 0.832936 | 0.04375 | 0 | 0.444444 | 0 | 0 | 0.017505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0.333333 | 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 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
5fd832087cddffd8a834461600499be0e776344c | 17 | py | Python | files/functionMap.py | kronokiller/userInput | 69377c2804b276b7bbb02fcc5adfdc9ac70bc403 | [
"MIT"
] | null | null | null | files/functionMap.py | kronokiller/userInput | 69377c2804b276b7bbb02fcc5adfdc9ac70bc403 | [
"MIT"
] | null | null | null | files/functionMap.py | kronokiller/userInput | 69377c2804b276b7bbb02fcc5adfdc9ac70bc403 | [
"MIT"
] | null | null | null | functionMap = {}
| 8.5 | 16 | 0.647059 | 1 | 17 | 11 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 17 | 1 | 17 | 17 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5fd857e70cb92c2b1b538eaa6a1bea35b02c0cb5 | 904 | py | Python | server/ffstore/util/LogUtil.py | AsherYang/ThreeLine | 351dc8bfd1c0a536ffbf36ce8b1af953cc71f93a | [
"Apache-2.0"
] | 1 | 2017-05-02T10:02:28.000Z | 2017-05-02T10:02:28.000Z | server/ffstore/util/LogUtil.py | AsherYang/ThreeLine | 351dc8bfd1c0a536ffbf36ce8b1af953cc71f93a | [
"Apache-2.0"
] | null | null | null | server/ffstore/util/LogUtil.py | AsherYang/ThreeLine | 351dc8bfd1c0a536ffbf36ce8b1af953cc71f93a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Author: AsherYang
Email : ouyangfan1991@gmail.com
Date : 2018/6/23
Desc : log 输出工具,用于在linux 终端输出到指定文件
"""
import logging
default_log_file = '/work/ffstore_server/logs/ffstore.log'
class LogUtil:
"""
init log util
"""
def __init__(self, logFileName=d... | 23.179487 | 80 | 0.590708 | 95 | 904 | 5.526316 | 0.663158 | 0.038095 | 0.053333 | 0.068571 | 0.099048 | 0.099048 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.256637 | 904 | 38 | 81 | 23.789474 | 0.763393 | 0.596239 | 0 | 0 | 0 | 0 | 0.112462 | 0.112462 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.142857 | 0.142857 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
2723c5d9f4eb86cbf0817f3ab705ba086e21eac9 | 808 | py | Python | materials/migrations/0058_auto_20190329_1018.py | mgovoni-devel/MatD3 | 5b68d147f886bce427f92bb560159e62cec2d4e7 | [
"BSD-2-Clause-FreeBSD"
] | 7 | 2019-09-14T07:24:09.000Z | 2021-06-15T16:15:05.000Z | materials/migrations/0058_auto_20190329_1018.py | mgovoni-devel/MatD3 | 5b68d147f886bce427f92bb560159e62cec2d4e7 | [
"BSD-2-Clause-FreeBSD"
] | 14 | 2019-12-05T01:49:19.000Z | 2021-06-23T18:34:51.000Z | materials/migrations/0058_auto_20190329_1018.py | mgovoni-devel/MatD3 | 5b68d147f886bce427f92bb560159e62cec2d4e7 | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2019-11-06T21:16:57.000Z | 2019-11-30T10:51:44.000Z | # Generated by Django 2.1.7 on 2019-03-29 14:18
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('materials', '0057_auto_20190328_2245'),
]
operations = [
migrations.RemoveField(
model_name='bondangle',
name='idinfo_ptr',
... | 22.444444 | 49 | 0.529703 | 66 | 808 | 6.348485 | 0.515152 | 0.200477 | 0.24821 | 0.286396 | 0.458234 | 0.458234 | 0.205251 | 0 | 0 | 0 | 0 | 0.059961 | 0.360149 | 808 | 35 | 50 | 23.085714 | 0.750484 | 0.055693 | 0 | 0.689655 | 1 | 0 | 0.159001 | 0.030223 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.137931 | 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 |
272e1fa059ce06a47fee8f64720dfe01b52aa18f | 382 | py | Python | src/pipedown/nodes/metrics/mean_squared_error.py | brendanhasz/drainpype | a183acec7cae1ef9fde260868e2b021516a8cd7f | [
"MIT"
] | 2 | 2021-03-03T12:11:24.000Z | 2021-03-18T15:09:52.000Z | src/pipedown/nodes/metrics/mean_squared_error.py | brendanhasz/pipedown | a183acec7cae1ef9fde260868e2b021516a8cd7f | [
"MIT"
] | null | null | null | src/pipedown/nodes/metrics/mean_squared_error.py | brendanhasz/pipedown | a183acec7cae1ef9fde260868e2b021516a8cd7f | [
"MIT"
] | null | null | null | import pandas as pd
from pipedown.nodes.base.metric import Metric
from pipedown.utils.urls import get_node_url
class MeanSquaredError(Metric):
CODE_URL = get_node_url("metrics/mean_squared_error.py")
def run(self, y_pred: pd.Series, y_true: pd.Series):
return ((y_pred - y_true).pow(2)).mean()
d... | 25.466667 | 60 | 0.727749 | 60 | 382 | 4.383333 | 0.55 | 0.091255 | 0.076046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003145 | 0.167539 | 382 | 14 | 61 | 27.285714 | 0.823899 | 0 | 0 | 0 | 0 | 0 | 0.123037 | 0.075916 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0.222222 | 1 | 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 |
274d5a5bd2d1c0accb8d690414f74d162c118a64 | 191 | py | Python | baseq/rna/__init__.py | basedata10/baseq | 0f1786c3392a51a6ec7cb0f32355cd28eaa5df29 | [
"MIT"
] | 1 | 2018-08-30T20:29:17.000Z | 2018-08-30T20:29:17.000Z | baseq/rna/__init__.py | basedata10/baseq | 0f1786c3392a51a6ec7cb0f32355cd28eaa5df29 | [
"MIT"
] | null | null | null | baseq/rna/__init__.py | basedata10/baseq | 0f1786c3392a51a6ec7cb0f32355cd28eaa5df29 | [
"MIT"
] | null | null | null | import click
CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])
@click.group(context_settings=CONTEXT_SETTINGS)
def cli():
click.echo("Welcome to baseq-RNA")
from .cmd import * | 23.875 | 59 | 0.732984 | 27 | 191 | 5 | 0.703704 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109948 | 191 | 8 | 60 | 23.875 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0.145833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 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 |
275d86f8cfa02e340363c2b9ed6462a0c70294b3 | 61 | py | Python | AI/pyneogame/__init__.py | neodev-ab/NeoGame | f2c0c010b2ea13d99e23ecd2f59592433fbd2385 | [
"MIT"
] | 2 | 2019-08-29T13:52:36.000Z | 2019-11-23T23:41:54.000Z | AI/pyneogame/Agent/__init__.py | neodev-ab/NeoGame | f2c0c010b2ea13d99e23ecd2f59592433fbd2385 | [
"MIT"
] | 9 | 2019-08-30T08:01:37.000Z | 2021-10-06T06:48:09.000Z | AI/pyneogame/__init__.py | neodev-ab/NeoGame | f2c0c010b2ea13d99e23ecd2f59592433fbd2385 | [
"MIT"
] | 2 | 2019-05-12T14:41:42.000Z | 2019-11-23T23:47:24.000Z | # from .game_engine import Game
# from .QAgent import QAgent
| 20.333333 | 31 | 0.770492 | 9 | 61 | 5.111111 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163934 | 61 | 2 | 32 | 30.5 | 0.901961 | 0.918033 | 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 |
276cad461ebefaabba7e0218b238eb853fb86080 | 154 | py | Python | fempy/fem1d/tests/test_fem1d.py | EastMagica/fempy | 5f16fe458a63ede5a49925a691924fbbbea767ec | [
"MIT"
] | null | null | null | fempy/fem1d/tests/test_fem1d.py | EastMagica/fempy | 5f16fe458a63ede5a49925a691924fbbbea767ec | [
"MIT"
] | null | null | null | fempy/fem1d/tests/test_fem1d.py | EastMagica/fempy | 5f16fe458a63ede5a49925a691924fbbbea767ec | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding:utf-8 -*-
# @author : east
# @time : 2019/10/8 23:40
# @file : test_fem1d.py
# @project : fem
# software : PyCharm
| 17.111111 | 28 | 0.571429 | 22 | 154 | 3.954545 | 0.954545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108333 | 0.220779 | 154 | 8 | 29 | 19.25 | 0.616667 | 0.902597 | 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 |
2779a1da98bb4e2785711207c06cc3307b6f0e1b | 139 | py | Python | umu-python/app/service/tosca/vo/tgif/stream.py | suomitek/cubeai | cc4c0f5f445a552d239910da63944307c1f06e37 | [
"Apache-2.0"
] | null | null | null | umu-python/app/service/tosca/vo/tgif/stream.py | suomitek/cubeai | cc4c0f5f445a552d239910da63944307c1f06e37 | [
"Apache-2.0"
] | null | null | null | umu-python/app/service/tosca/vo/tgif/stream.py | suomitek/cubeai | cc4c0f5f445a552d239910da63944307c1f06e37 | [
"Apache-2.0"
] | null | null | null | class Stream(dict):
def __init__(self, subscribes, publishes):
dict.__init__(self, subscribes=subscribes, publishes=publishes)
| 34.75 | 71 | 0.741007 | 15 | 139 | 6.333333 | 0.533333 | 0.168421 | 0.378947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151079 | 139 | 3 | 72 | 46.333333 | 0.805085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
278f7f2ecdb5592d2bbf19d48b18eaa9ae2e5057 | 171 | py | Python | src/RepairManager/rules/rules_abc.py | RichardZhaoW/DLWorkspace | 27d3a3a82e59305bdc67dbfd69098d493f8b3cd5 | [
"MIT"
] | 38 | 2020-07-13T08:46:39.000Z | 2021-02-08T01:38:44.000Z | src/RepairManager/rules/rules_abc.py | RichardZhaoW/DLWorkspace | 27d3a3a82e59305bdc67dbfd69098d493f8b3cd5 | [
"MIT"
] | null | null | null | src/RepairManager/rules/rules_abc.py | RichardZhaoW/DLWorkspace | 27d3a3a82e59305bdc67dbfd69098d493f8b3cd5 | [
"MIT"
] | 20 | 2020-07-14T03:38:50.000Z | 2021-01-08T06:24:17.000Z | import abc
class Rule(abc.ABC):
@abc.abstractmethod
def check_status(self):
pass
@abc.abstractmethod
def take_action(self):
pass
| 14.25 | 27 | 0.602339 | 20 | 171 | 5.05 | 0.6 | 0.118812 | 0.39604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.315789 | 171 | 11 | 28 | 15.545455 | 0.863248 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.125 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
27b01d66fdaae6663286afaf631f60be64fa4613 | 182 | py | Python | oauth2_provider/tests/models.py | sfx/django-oauth-toolkit | 08ce1d63bfad16905a7d9f758591c0e8c65706ec | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2016-06-29T10:24:55.000Z | 2016-06-29T10:24:55.000Z | oauth2_provider/tests/models.py | sfx/django-oauth-toolkit | 08ce1d63bfad16905a7d9f758591c0e8c65706ec | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | oauth2_provider/tests/models.py | sfx/django-oauth-toolkit | 08ce1d63bfad16905a7d9f758591c0e8c65706ec | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2016-01-20T18:11:05.000Z | 2016-01-20T18:11:05.000Z | from django.db import models
from oauth2_provider.models import AbstractApplication
class TestApplication(AbstractApplication):
custom_field = models.CharField(max_length=255)
| 26 | 54 | 0.840659 | 21 | 182 | 7.142857 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02454 | 0.104396 | 182 | 6 | 55 | 30.333333 | 0.895706 | 0 | 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 |
27b4a3e9696ac52585d4bbc54a6504e560a2c4ec | 50 | py | Python | template/class_imp.py | hax0rs/GovHack2016 | 7879afa3e0a76ae8ef51f82b94c173e161cb86c9 | [
"MIT"
] | 1 | 2016-07-30T17:08:38.000Z | 2016-07-30T17:08:38.000Z | template/class_imp.py | hax0rs/GovHack2016 | 7879afa3e0a76ae8ef51f82b94c173e161cb86c9 | [
"MIT"
] | 1 | 2016-07-30T17:10:58.000Z | 2016-07-31T03:10:30.000Z | template/class_imp.py | hax0rs/GovHack2016 | 7879afa3e0a76ae8ef51f82b94c173e161cb86c9 | [
"MIT"
] | null | null | null | class Demo:
def __init__(self):
print ("done")
| 12.5 | 20 | 0.66 | 7 | 50 | 4.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18 | 50 | 3 | 21 | 16.666667 | 0.707317 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
27c2a6b848e12efc3b96622df5f92b4900824017 | 239 | py | Python | src/exercises/Ex01_saying_hello/test_hello.py | trcooke/57-exercises-python | 5df95d566dd6eccfb98cc32f877807e46e5ea39e | [
"MIT"
] | null | null | null | src/exercises/Ex01_saying_hello/test_hello.py | trcooke/57-exercises-python | 5df95d566dd6eccfb98cc32f877807e46e5ea39e | [
"MIT"
] | null | null | null | src/exercises/Ex01_saying_hello/test_hello.py | trcooke/57-exercises-python | 5df95d566dd6eccfb98cc32f877807e46e5ea39e | [
"MIT"
] | null | null | null | import unittest
from exercises.Ex01_saying_hello import hello
class TestHello(unittest.TestCase):
def test_givenValidName_returnsExpectedString(self):
self.assertEqual(hello.sayhello('Tim'), 'Hello, Tim, nice to meet you!')
| 26.555556 | 80 | 0.774059 | 29 | 239 | 6.241379 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009662 | 0.133891 | 239 | 8 | 81 | 29.875 | 0.864734 | 0 | 0 | 0 | 0 | 0 | 0.133891 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
27c6a373a24b624e21abacdd617534d9716af7d4 | 38 | py | Python | Lists/Liststring.py | Anilkumar95/python-75-hackathon | 0cc9304e46ceace826090614b46d8048a068d106 | [
"MIT"
] | null | null | null | Lists/Liststring.py | Anilkumar95/python-75-hackathon | 0cc9304e46ceace826090614b46d8048a068d106 | [
"MIT"
] | null | null | null | Lists/Liststring.py | Anilkumar95/python-75-hackathon | 0cc9304e46ceace826090614b46d8048a068d106 | [
"MIT"
] | 2 | 2019-01-27T16:59:48.000Z | 2019-01-29T13:07:40.000Z | List=['Yuvan','Bajjurla']
print(List)
| 12.666667 | 25 | 0.684211 | 5 | 38 | 5.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 38 | 2 | 26 | 19 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0.342105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
27ebabf334f7d55ba0e91a053cf35c5541787dbf | 3,572 | py | Python | configs/clang.py | pointhi/benchmarks | 68899480c0fc8d361079a81edc6d816d5f17d58e | [
"UPL-1.0"
] | 7 | 2018-12-10T02:41:43.000Z | 2020-06-18T06:13:59.000Z | configs/clang.py | pointhi/benchmarks | 68899480c0fc8d361079a81edc6d816d5f17d58e | [
"UPL-1.0"
] | 23 | 2018-06-07T07:46:27.000Z | 2018-08-06T17:57:39.000Z | configs/clang.py | pointhi/benchmarks | 68899480c0fc8d361079a81edc6d816d5f17d58e | [
"UPL-1.0"
] | 2 | 2018-06-07T08:04:52.000Z | 2018-06-07T09:06:21.000Z | from functools import partial
clang_kwargs = {'build_system_func': partial(build_system_executor, cc_version='--version', as_version='--version')}
harness.add_runtime('clang-O0', {"CC": "${CLANG}", "AS": "${CLANG}", "CFLAGS": "-Wno-everything -O0"}, **clang_kwargs)
harness.add_runtime('clang-O1', {"CC": "${CLANG}", "... | 127.571429 | 194 | 0.645577 | 468 | 3,572 | 4.814103 | 0.136752 | 0.117177 | 0.173546 | 0.214825 | 0.839769 | 0.782512 | 0.650688 | 0.462051 | 0.380826 | 0.315135 | 0 | 0.012041 | 0.069989 | 3,572 | 27 | 195 | 132.296296 | 0.666165 | 0 | 0 | 0 | 0 | 0 | 0.529675 | 0.109742 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
27f11d82a515f57f578bc54c55c8823df47a9526 | 43,063 | py | Python | tests/test_processing.py | oleksiyfesyk/wfdb-mod | 18834726c00248b738d6f23c835f0d0254aeddc6 | [
"MIT"
] | null | null | null | tests/test_processing.py | oleksiyfesyk/wfdb-mod | 18834726c00248b738d6f23c835f0d0254aeddc6 | [
"MIT"
] | null | null | null | tests/test_processing.py | oleksiyfesyk/wfdb-mod | 18834726c00248b738d6f23c835f0d0254aeddc6 | [
"MIT"
] | null | null | null | import wfdb
import numpy
class test_processing():
def test_1(self):
sig, fields = wfdb.srdsamp('sampledata/100')
ann = wfdb.rdann('sampledata/100', 'atr')
fs = fields['fs']
fs_target = 50
new_sig, new_ann = wfdb.processing.resample_singlechan(sig[:, 0], ann, fs, fs_target... | 525.158537 | 40,324 | 0.741054 | 10,400 | 43,063 | 3.063942 | 0.040481 | 0.012051 | 0.004802 | 0.00226 | 0.233297 | 0.072305 | 0.027773 | 0.017386 | 0.013745 | 0.012553 | 0 | 0.725157 | 0.01737 | 43,063 | 81 | 40,325 | 531.641975 | 0.027886 | 0 | 0 | 0.262295 | 0 | 0 | 0.002624 | 0 | 0 | 0 | 0 | 0 | 0.196721 | 1 | 0.114754 | false | 0 | 0.032787 | 0 | 0.163934 | 0.032787 | 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 |
7e0500078fb4390752c854053cc576ad01bd952a | 5,331 | py | Python | Experiment/Experiment/temp.py | Crabtux/Ubuntu-Configurations | 3dff9908a51bd97b7a2082d2fc8adcd230cb5fc4 | [
"MIT"
] | null | null | null | Experiment/Experiment/temp.py | Crabtux/Ubuntu-Configurations | 3dff9908a51bd97b7a2082d2fc8adcd230cb5fc4 | [
"MIT"
] | null | null | null | Experiment/Experiment/temp.py | Crabtux/Ubuntu-Configurations | 3dff9908a51bd97b7a2082d2fc8adcd230cb5fc4 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 –*-
import os
import sys
from Crypto.Util.number import bytes_to_long,long_to_bytes
def encrypt(m,N,e):
return pow(m,e,N)
def decrypt(c,N,d):
return pow(c,d,N)
def padding(msg):
res = msg
if len(res) < 128:
res = res + os.urandom(128-len(res))
return res
def transfer(msg):... | 87.393443 | 624 | 0.90771 | 180 | 5,331 | 26.8 | 0.355556 | 0.001658 | 0.001866 | 0.003317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.866653 | 0.061715 | 5,331 | 60 | 625 | 88.85 | 0.097561 | 0.480585 | 0 | 0.05 | 0 | 0 | 0.007257 | 0 | 0 | 1 | 0 | 0 | 0.025 | 1 | 0.15 | false | 0 | 0.075 | 0.05 | 0.4 | 0.05 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7e0d3edd937d8a5cd9d349983bcb2072741a9798 | 768 | py | Python | linked_list/linked_list.py | MateuszMazurkiewicz/LinkedList | 7a371f3d51079d2391242245e19d369d03181b6f | [
"MIT"
] | null | null | null | linked_list/linked_list.py | MateuszMazurkiewicz/LinkedList | 7a371f3d51079d2391242245e19d369d03181b6f | [
"MIT"
] | null | null | null | linked_list/linked_list.py | MateuszMazurkiewicz/LinkedList | 7a371f3d51079d2391242245e19d369d03181b6f | [
"MIT"
] | null | null | null | class LinkedList:
def __init__(self):
self.head = None
self.tail = None
def append_left(self, value):
pass
def append_right(self, value):
pass
def pop_left(self):
pass
def pop_right(self):
pass
def get_node_iterator(self):
pass
de... | 15.058824 | 40 | 0.544271 | 89 | 768 | 4.269663 | 0.325843 | 0.257895 | 0.173684 | 0.168421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.371094 | 768 | 51 | 41 | 15.058824 | 0.786749 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.428571 | 0 | null | null | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
7e10f5f9a61551e61819b0a68c7b1329aec6ad51 | 167 | py | Python | deep_svg_demo/demo/deepsvg/base/urls.py | GuardianWang/DeepAnimation | 8c25c3c23e3060292eeb83bb432a5522213d8e73 | [
"MIT"
] | 1 | 2021-12-10T22:42:27.000Z | 2021-12-10T22:42:27.000Z | deep_svg_demo/demo/deepsvg/base/urls.py | GuardianWang/DeepAnimation | 8c25c3c23e3060292eeb83bb432a5522213d8e73 | [
"MIT"
] | null | null | null | deep_svg_demo/demo/deepsvg/base/urls.py | GuardianWang/DeepAnimation | 8c25c3c23e3060292eeb83bb432a5522213d8e73 | [
"MIT"
] | null | null | null | from django.urls import path
from django.urls.resolvers import URLPattern
from . import views
urlpatterns = [
path('<str:pk>/', views.getRoutes, name="routes"),
] | 23.857143 | 54 | 0.730539 | 22 | 167 | 5.545455 | 0.636364 | 0.163934 | 0.229508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137725 | 167 | 7 | 55 | 23.857143 | 0.847222 | 0 | 0 | 0 | 0 | 0 | 0.089286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
fdfcba981d8f8da0781358cfe64fa1c78074a160 | 88 | py | Python | Core/third_party/JavaScriptCore/Scripts/builtins/__init__.py | InfiniteSynthesis/lynx-native | 022e277ee6767f5b668269a17b1679072cf7c3d6 | [
"MIT"
] | 677 | 2017-09-23T16:03:12.000Z | 2022-03-26T08:32:10.000Z | Core/third_party/JavaScriptCore/Scripts/builtins/__init__.py | InfiniteSynthesis/lynx-native | 022e277ee6767f5b668269a17b1679072cf7c3d6 | [
"MIT"
] | 9 | 2020-04-18T18:47:18.000Z | 2020-04-18T18:52:41.000Z | Core/third_party/JavaScriptCore/Scripts/builtins/__init__.py | InfiniteSynthesis/lynx-native | 022e277ee6767f5b668269a17b1679072cf7c3d6 | [
"MIT"
] | 92 | 2017-09-21T14:21:27.000Z | 2022-03-25T13:29:42.000Z | # Required for Python to search this directory for module files
from builtins import *
| 22 | 63 | 0.795455 | 13 | 88 | 5.384615 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 88 | 3 | 64 | 29.333333 | 0.972222 | 0.693182 | 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 |
8bf9846ce988529c2c3b2856132bc74b034fcb58 | 185 | py | Python | backend/api/serializers.py | NAKKA-K/2018-078-captive | d18ef63d64d69aed9e1607eb08e133ada0c75987 | [
"MIT"
] | null | null | null | backend/api/serializers.py | NAKKA-K/2018-078-captive | d18ef63d64d69aed9e1607eb08e133ada0c75987 | [
"MIT"
] | 9 | 2018-04-15T08:28:19.000Z | 2018-04-20T11:01:16.000Z | backend/api/serializers.py | NAKKA-K/2018-078-captive | d18ef63d64d69aed9e1607eb08e133ada0c75987 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from api.models import User
class QuestionSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('age', 'gender')
| 23.125 | 54 | 0.756757 | 21 | 185 | 6.619048 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 185 | 7 | 55 | 26.428571 | 0.896774 | 0 | 0 | 0 | 0 | 0 | 0.048649 | 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 |
e328f0752d1d20d5eebb09630f027cb7ae969d70 | 199 | py | Python | Sem2-Lab-4/lab4.py | BrendonPurchase2002-CS/Projects- | bd13533ddd16b049250a70e8f006938f84393a1a | [
"MIT"
] | null | null | null | Sem2-Lab-4/lab4.py | BrendonPurchase2002-CS/Projects- | bd13533ddd16b049250a70e8f006938f84393a1a | [
"MIT"
] | null | null | null | Sem2-Lab-4/lab4.py | BrendonPurchase2002-CS/Projects- | bd13533ddd16b049250a70e8f006938f84393a1a | [
"MIT"
] | null | null | null | def chooseLargest(a, b):
list(map(lambda tup: max(tup[0] + tup[1]), zip(a, b)))
l1 = [1, 2, 3, 4, 5]
l2 = [2, 2, 9, 0, 9]
return list(map(lambda tup: max(tup[0] + tup[1]), zip(a, b))) | 39.8 | 65 | 0.512563 | 41 | 199 | 2.487805 | 0.487805 | 0.058824 | 0.254902 | 0.313725 | 0.627451 | 0.627451 | 0.627451 | 0.627451 | 0.627451 | 0.627451 | 0 | 0.105263 | 0.236181 | 199 | 5 | 65 | 39.8 | 0.565789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e32f3186b7ac547e284feb1f7b806acaa31441b3 | 285 | py | Python | python/Strings/string-validators.py | cdrowley/hackerrank | cc5c925327cd3ce5b52c1614b814da75d42cca72 | [
"MIT"
] | null | null | null | python/Strings/string-validators.py | cdrowley/hackerrank | cc5c925327cd3ce5b52c1614b814da75d42cca72 | [
"MIT"
] | null | null | null | python/Strings/string-validators.py | cdrowley/hackerrank | cc5c925327cd3ce5b52c1614b814da75d42cca72 | [
"MIT"
] | null | null | null | # https://www.hackerrank.com/challenges/string-validators/problem
string = input()
print(any(c.isalnum() for c in string))
print(any(c.isalpha() for c in string))
print(any(c.isdigit() for c in string))
print(any(c.islower() for c in string))
print(any(c.isupper() for c in string))
| 28.5 | 65 | 0.719298 | 50 | 285 | 4.1 | 0.38 | 0.195122 | 0.219512 | 0.292683 | 0.409756 | 0.409756 | 0.409756 | 0 | 0 | 0 | 0 | 0 | 0.112281 | 285 | 9 | 66 | 31.666667 | 0.810277 | 0.221053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.833333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
e368f0e90a829de587609f680e3e5a9bde5017a0 | 161 | py | Python | service/handlers/schemas/input.py | ran-isenberg/aws-lambda-handler-cookbook | adfe58dacd87315151265818869bb842c7eb4971 | [
"MIT"
] | 61 | 2022-02-07T05:21:14.000Z | 2022-03-27T14:11:30.000Z | service/handlers/schemas/input.py | ran-isenberg/aws-lambda-handler-cookbook | adfe58dacd87315151265818869bb842c7eb4971 | [
"MIT"
] | 17 | 2022-02-26T05:25:31.000Z | 2022-03-16T20:02:46.000Z | service/handlers/schemas/input.py | ran-isenberg/aws-lambda-handler-cookbook | adfe58dacd87315151265818869bb842c7eb4971 | [
"MIT"
] | 4 | 2022-02-17T16:35:27.000Z | 2022-03-07T03:13:07.000Z | from pydantic import BaseModel, PositiveInt, constr
class Input(BaseModel):
my_name: constr(min_length=1, max_length=20)
order_item_count: PositiveInt
| 23 | 51 | 0.782609 | 22 | 161 | 5.5 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.142857 | 161 | 6 | 52 | 26.833333 | 0.855072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 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 | 0 | 0 | 1 | 0 | 0 | 4 |
e3847e6da453caa0f32bccd221834e7b3fdc3c83 | 381 | py | Python | pyOpenMS/env.py | open-ms/all-svn-branches | b182ba576e0cbfbe420b8edb0dd1c42bb6c973f3 | [
"Zlib",
"Apache-2.0"
] | 1 | 2018-05-23T03:43:10.000Z | 2018-05-23T03:43:10.000Z | pyOpenMS/env.py | kreinert/OpenMS | 45455356482ce5ab35e32e445609b291ec78a6d6 | [
"Zlib",
"Apache-2.0"
] | null | null | null | pyOpenMS/env.py | kreinert/OpenMS | 45455356482ce5ab35e32e445609b291ec78a6d6 | [
"Zlib",
"Apache-2.0"
] | null | null | null | OPEN_MS_SRC="/home/uschmitt/Release1.10pyopenms"
OPEN_MS_BUILD_DIR="/home/uschmitt/Release1.10pyopenms"
OPEN_MS_CONTRIB_BUILD_DIRS="/home/uschmitt/Release1.10pyopenms/contrib;/opt/local;/usr/local;"
QT_HEADERS_DIR="/usr/include/qt4"
QT_LIBRARY_DIR="/usr/lib/x86_64-linux-gnu"
QT_QTCORE_INCLUDE_DIR="/usr/include/qt4/QtCo... | 38.1 | 94 | 0.821522 | 59 | 381 | 4.966102 | 0.491525 | 0.081911 | 0.204778 | 0.307167 | 0.245734 | 0.245734 | 0 | 0 | 0 | 0 | 0 | 0.051075 | 0.023622 | 381 | 9 | 95 | 42.333333 | 0.736559 | 0 | 0 | 0 | 0 | 0 | 0.535433 | 0.475066 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8b61b881bbdc6b1ac2e823cc8ca65779662d1bb3 | 689 | py | Python | panopuppet/pano/views/__init__.py | propyless/panopuppet | 6beea45ad25ea1e2ed7dbd5b60210880cd8aab2a | [
"Apache-2.0"
] | 60 | 2015-03-26T14:24:47.000Z | 2016-08-09T17:48:00.000Z | panopuppet/pano/views/__init__.py | propyless/panopuppet | 6beea45ad25ea1e2ed7dbd5b60210880cd8aab2a | [
"Apache-2.0"
] | 108 | 2015-04-17T12:05:46.000Z | 2016-08-23T14:42:19.000Z | panopuppet/pano/views/__init__.py | propyless/panopuppet | 6beea45ad25ea1e2ed7dbd5b60210880cd8aab2a | [
"Apache-2.0"
] | 27 | 2015-03-30T13:23:03.000Z | 2016-10-25T20:18:27.000Z | __author__ = 'etaklar'
"""
You must add new views to a separate file
and then import the view here.
"""
from panopuppet.pano.views.views import *
from panopuppet.pano.views.dashboard import dashboard
from panopuppet.pano.views.nodes import nodes
from panopuppet.pano.views.analytics import analytics
from panopuppet.pan... | 38.277778 | 65 | 0.8418 | 99 | 689 | 5.757576 | 0.333333 | 0.270175 | 0.347368 | 0.44386 | 0.112281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09434 | 689 | 17 | 66 | 40.529412 | 0.913462 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.916667 | 0 | 0.916667 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
8b76b8f82fd653ba64796b7e522c180bc82ca5b8 | 586 | py | Python | learner/base.py | mramire8/structured | 3eb6a61fb7659a0b2a6ea93fe321b93a351162f7 | [
"Apache-2.0"
] | null | null | null | learner/base.py | mramire8/structured | 3eb6a61fb7659a0b2a6ea93fe321b93a351162f7 | [
"Apache-2.0"
] | null | null | null | learner/base.py | mramire8/structured | 3eb6a61fb7659a0b2a6ea93fe321b93a351162f7 | [
"Apache-2.0"
] | null | null | null |
class Learner(object):
"""docstring for Learner"""
def __init__(self, model, seed=None):
super(Learner, self).__init__()
self.model = model
self.seed = seed
def next(self, pool, step):
raise Exception("Undefined next function")
def fit(self, X, y):
raise Ex... | 26.636364 | 55 | 0.62628 | 73 | 586 | 4.863014 | 0.369863 | 0.101408 | 0.194366 | 0.095775 | 0.349296 | 0.349296 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257679 | 586 | 22 | 55 | 26.636364 | 0.816092 | 0.035836 | 0 | 0 | 0 | 0 | 0.13059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.133333 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.