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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c24eba6790bb195936fb85ffcf4d642d51a514da | 2,838 | py | Python | psx/_dump_/54/_dump_ida_/overlay_d/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 15 | 2018-06-28T01:11:25.000Z | 2021-09-27T15:57:18.000Z | psx/_dump_/54/_dump_ida_/overlay_d/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-29T04:08:23.000Z | 2019-10-17T13:57:22.000Z | psx/_dump_/54/_dump_ida_/overlay_d/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-28T01:11:34.000Z | 2020-05-23T09:21:48.000Z | set_name(0x8014AFA0, "EA_cd_seek", SN_NOWARN)
set_name(0x8014AFA8, "MY_CdGetSector", SN_NOWARN)
set_name(0x8014AFDC, "init_cdstream", SN_NOWARN)
set_name(0x8014AFEC, "flush_cdstream", SN_NOWARN)
set_name(0x8014B010, "check_complete_frame", SN_NOWARN)
set_name(0x8014B090, "reset_cdstream", SN_NOWARN)
set_name(0x8014B0B8... | 49.789474 | 58 | 0.82241 | 424 | 2,838 | 5.03066 | 0.29717 | 0.183779 | 0.283638 | 0.386779 | 0.384435 | 0.197843 | 0 | 0 | 0 | 0 | 0 | 0.146816 | 0.059197 | 2,838 | 56 | 59 | 50.678571 | 0.65206 | 0 | 0 | 0 | 0 | 0 | 0.289641 | 0.046159 | 0 | 0 | 0.197322 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dfa4cb16739b7b233168689cfa231f7ee6ac86ba | 297 | py | Python | protmapper/__init__.py | cthoyt/protmapper | 4284c95e3484236e32bee57811e39b77b90ffe27 | [
"BSD-2-Clause"
] | null | null | null | protmapper/__init__.py | cthoyt/protmapper | 4284c95e3484236e32bee57811e39b77b90ffe27 | [
"BSD-2-Clause"
] | null | null | null | protmapper/__init__.py | cthoyt/protmapper | 4284c95e3484236e32bee57811e39b77b90ffe27 | [
"BSD-2-Clause"
] | null | null | null | import logging
from protmapper.api import ProtMapper, MappedSite
from protmapper.resources import resource_dir
logging.basicConfig(format=('%(levelname)s: [%(asctime)s] %(name)s'
' - %(message)s'),
level=logging.INFO, datefmt='%Y-%m-%d %H:%M:%S')
| 33 | 68 | 0.609428 | 35 | 297 | 5.142857 | 0.657143 | 0.155556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23569 | 297 | 8 | 69 | 37.125 | 0.792952 | 0 | 0 | 0 | 0 | 0 | 0.228956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 0 | 3 |
dfb34f6ea775b3e6b5188623848c4e4e908e634e | 330 | py | Python | ramda/toString.py | zydmayday/pamda | 6740d0294f3bedbeeef3bbc3042a43dceb3239b2 | [
"MIT"
] | 1 | 2022-03-14T07:35:13.000Z | 2022-03-14T07:35:13.000Z | ramda/toString.py | zydmayday/pamda | 6740d0294f3bedbeeef3bbc3042a43dceb3239b2 | [
"MIT"
] | 3 | 2022-03-24T02:30:18.000Z | 2022-03-31T07:46:04.000Z | ramda/toString.py | zydmayday/pamda | 6740d0294f3bedbeeef3bbc3042a43dceb3239b2 | [
"MIT"
] | null | null | null | from .private._curry1 import _curry1
from .private._isString import _isString
from .private._quote import _quote
def inner_toString(val):
"""
TODO: dict, set, list, tuple, function, object
TODO: regex, date if needed
"""
if _isString(val):
return _quote(val)
return str(val)
toString = _curry1(inner_... | 19.411765 | 48 | 0.727273 | 44 | 330 | 5.204545 | 0.522727 | 0.144105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 0.172727 | 330 | 16 | 49 | 20.625 | 0.827839 | 0.224242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
dfcaf90e445e594747ecaf6b86aae8b4a80a3bde | 772 | py | Python | smart-pizza-store_factory-part3/pizza_ingredients.py | johnklee/learn_dp_from_bad_smell_design | 88506487ce64a1b9492ec28fe235ae596ddf1472 | [
"MIT"
] | null | null | null | smart-pizza-store_factory-part3/pizza_ingredients.py | johnklee/learn_dp_from_bad_smell_design | 88506487ce64a1b9492ec28fe235ae596ddf1472 | [
"MIT"
] | 4 | 2022-01-02T06:49:43.000Z | 2022-02-15T12:36:41.000Z | smart-pizza-store_factory-part3/pizza_ingredients.py | johnklee/learn_dp_from_bad_smell_design | 88506487ce64a1b9492ec28fe235ae596ddf1472 | [
"MIT"
] | null | null | null | class Topping:
pass
class BeefTopping(Topping):
pass
class SausageTopping(Topping):
pass
class SpinachTopping(Topping):
pass
class PepperoniTopping(Topping):
pass
class VeggieTopping(Topping):
pass
class Dough:
pass
class ThickCrustDough(Dough):
pass
class ThinCrustDough(Dough):
pass
... | 8.483516 | 32 | 0.718912 | 86 | 772 | 6.453488 | 0.290698 | 0.356757 | 0.172973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207254 | 772 | 90 | 33 | 8.577778 | 0.906863 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
dfda3fa98cc2f511d7c1cb2892c5b0459388cbe1 | 710 | py | Python | Pattern/Symbol/equilateral_triangle.py | reddyprasade/PYTHON-BASIC-FOR-ALL | 4fa4bf850f065e9ac1cea0365b93257e1f04e2cb | [
"MIT"
] | 21 | 2019-06-28T05:11:17.000Z | 2022-03-16T02:02:28.000Z | Pattern/Symbol/equilateral_triangle.py | reddyprasade/PYTHON-BASIC-FOR-ALL | 4fa4bf850f065e9ac1cea0365b93257e1f04e2cb | [
"MIT"
] | 2 | 2021-12-28T14:15:58.000Z | 2021-12-28T14:16:02.000Z | Symbols/equilateral_triangle.py | vijayakumarr345/pattern | d857812cea625098a18c9d45ca01b22a379d5fb0 | [
"MIT"
] | 18 | 2019-07-07T03:20:33.000Z | 2021-05-08T10:44:18.000Z | # Shape of Equilateral Triangle using fucntions
def for_equilateral_triangle():
""" *'s printed in the shape of Equilateral Triangle """
for row in range(9):
for col in range(15):
if row+col >=8 and col-row<7:
print('*',end=' ')
else:
print... | 28.4 | 61 | 0.459155 | 82 | 710 | 3.926829 | 0.329268 | 0.295031 | 0.167702 | 0.242236 | 0.614907 | 0.614907 | 0.614907 | 0.614907 | 0.614907 | 0.614907 | 0 | 0.033573 | 0.412676 | 710 | 24 | 62 | 29.583333 | 0.738609 | 0.205634 | 0 | 0.5 | 0 | 0 | 0.015209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.1 | 0.3 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dfe40c825f1c35365a3e7893a7042458832a0eea | 336 | py | Python | docidgen.py | pelagios/recogito-document-splitter | 800b8a41cd929108596810855acd3121c0fd83c0 | [
"Apache-2.0"
] | null | null | null | docidgen.py | pelagios/recogito-document-splitter | 800b8a41cd929108596810855acd3121c0fd83c0 | [
"Apache-2.0"
] | null | null | null | docidgen.py | pelagios/recogito-document-splitter | 800b8a41cd929108596810855acd3121c0fd83c0 | [
"Apache-2.0"
] | null | null | null | # Just a convenience helper - generates a Recogito-compliant document ID
# Note that there is a (theoretical) risk of duplicate IDs. Always cross-check
# whether the generated ID is still available in your target system!
import random
import string
id = ''.join(random.choices(string.ascii_lowercase + string.digits, k ... | 42 | 78 | 0.776786 | 51 | 336 | 5.098039 | 0.803922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006969 | 0.145833 | 336 | 8 | 79 | 42 | 0.898955 | 0.636905 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
dff62ff717613db4bdbf6013024c7cad8c41e3a4 | 330 | py | Python | regression_tests/parsers/c_parser/exprs/unary_ops/not_op_expr.py | mehrdad-shokri/retdec-regression-tests-framework | 9c3edcd0a7bc292a0d5b5cbfb4315010c78d3bc3 | [
"MIT"
] | 21 | 2017-12-12T20:38:43.000Z | 2019-04-14T12:46:10.000Z | regression_tests/parsers/c_parser/exprs/unary_ops/not_op_expr.py | mehrdad-shokri/retdec-regression-tests-framework | 9c3edcd0a7bc292a0d5b5cbfb4315010c78d3bc3 | [
"MIT"
] | 6 | 2018-01-06T13:32:23.000Z | 2018-09-14T15:09:11.000Z | regression_tests/parsers/c_parser/exprs/unary_ops/not_op_expr.py | mehrdad-shokri/retdec-regression-tests-framework | 9c3edcd0a7bc292a0d5b5cbfb4315010c78d3bc3 | [
"MIT"
] | 11 | 2017-12-12T20:38:46.000Z | 2018-07-19T03:12:03.000Z | """
A not operator (``!``).
"""
from regression_tests.parsers.c_parser.exprs.unary_ops.unary_op_expr import UnaryOpExpr
class NotOpExpr(UnaryOpExpr):
"""A not operator (``!``)."""
def is_not_op(self):
"""Returns ``True``."""
return True
def __str__(self):
return '!{}'.format... | 19.411765 | 87 | 0.59697 | 39 | 330 | 4.769231 | 0.666667 | 0.043011 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215152 | 330 | 16 | 88 | 20.625 | 0.718147 | 0.19697 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
dff7927b7f9659e10f17913b610881647b9b29f9 | 29,760 | py | Python | pacu/models/awsapi/amplify.py | RyanJarv/Pacu2 | 27df4bcf296fc8f467d3dc671a47bf9519ce7a24 | [
"MIT"
] | 1 | 2022-03-09T14:51:54.000Z | 2022-03-09T14:51:54.000Z | pacu/models/awsapi/amplify.py | RyanJarv/Pacu2 | 27df4bcf296fc8f467d3dc671a47bf9519ce7a24 | [
"MIT"
] | null | null | null | pacu/models/awsapi/amplify.py | RyanJarv/Pacu2 | 27df4bcf296fc8f467d3dc671a47bf9519ce7a24 | [
"MIT"
] | null | null | null | # generated by datamodel-codegen:
# filename: openapi.yaml
# timestamp: 2021-12-31T02:44:47+00:00
from __future__ import annotations
from datetime import datetime
from enum import Enum
from typing import Annotated, Any, List, Optional
from pydantic import BaseModel, Extra, Field, SecretStr
class EnvValue(Base... | 20.987306 | 106 | 0.722917 | 2,690 | 29,760 | 7.913755 | 0.143866 | 0.046928 | 0.040868 | 0.04472 | 0.483559 | 0.416244 | 0.36786 | 0.246994 | 0.175968 | 0.150225 | 0 | 0.005279 | 0.198051 | 29,760 | 1,417 | 107 | 21.002117 | 0.886701 | 0.161358 | 0 | 0.44713 | 1 | 0 | 0.019106 | 0.003332 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.169184 | 0.007553 | 0 | 0.799094 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5f035344ecddf02b7c0a310c6cff2122a2a39124 | 61 | py | Python | mercury/models/user.py | Mercury-DDS/The-Data-Delivery-System | 44e17365a5ed9403552adb473449e8b8ec62e4e3 | [
"MIT"
] | null | null | null | mercury/models/user.py | Mercury-DDS/The-Data-Delivery-System | 44e17365a5ed9403552adb473449e8b8ec62e4e3 | [
"MIT"
] | null | null | null | mercury/models/user.py | Mercury-DDS/The-Data-Delivery-System | 44e17365a5ed9403552adb473449e8b8ec62e4e3 | [
"MIT"
] | null | null | null | class User(object):
def _init_(username):
""""""
| 15.25 | 25 | 0.52459 | 6 | 61 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.278689 | 61 | 3 | 26 | 20.333333 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5f07800a81cc816ecfb72b05f5c82ed6784148aa | 244 | py | Python | materials/subsurface_material.py | neodyme60/raypy | a898ba46e07ba299fcb1729dca45abdc1e944f83 | [
"MIT"
] | 1 | 2018-05-15T04:00:17.000Z | 2018-05-15T04:00:17.000Z | materials/subsurface_material.py | neodyme60/raypy | a898ba46e07ba299fcb1729dca45abdc1e944f83 | [
"MIT"
] | null | null | null | materials/subsurface_material.py | neodyme60/raypy | a898ba46e07ba299fcb1729dca45abdc1e944f83 | [
"MIT"
] | null | null | null | from core.material import Material
from core.texture import Texture
class SubsurfaceMaterial(Material):
def __init__(self, sc: float, kr: Texture, sa: Texture, sps: Texture, e: Texture, bump: Texture):
super().__init__()
| 27.111111 | 102 | 0.70082 | 30 | 244 | 5.433333 | 0.6 | 0.09816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196721 | 244 | 8 | 103 | 30.5 | 0.831633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5f30ee41684a48eebe9b28d2120d85fc86bd47e6 | 696 | py | Python | utils/boilerplate/mammoth.py | cfginn/sap-simulation-package | 73314e5380cec5c61a9fe5ff5fbafa25b9e2beac | [
"MIT"
] | null | null | null | utils/boilerplate/mammoth.py | cfginn/sap-simulation-package | 73314e5380cec5c61a9fe5ff5fbafa25b9e2beac | [
"MIT"
] | null | null | null | utils/boilerplate/mammoth.py | cfginn/sap-simulation-package | 73314e5380cec5c61a9fe5ff5fbafa25b9e2beac | [
"MIT"
] | null | null | null |
from pysapets.animal import Animal
import pysapets.constants as constants
import random
import logging
class Mammoth(Animal):
# base health and attack values
BASE_ATTACK = 2
BASE_HEALTH = 6
def __init__(self, addAttack = 0, addHealth = 0):
# lvl 1: Faint: Give all friends +2/+2
# lvl 2: Faint: Gi... | 29 | 144 | 0.695402 | 96 | 696 | 4.875 | 0.40625 | 0.064103 | 0.076923 | 0.121795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025455 | 0.20977 | 696 | 24 | 145 | 29 | 0.825455 | 0.222701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.083333 | 0.333333 | 0 | 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 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
a06084015aeaf7abda6b8143ca18456c425d27b7 | 145 | py | Python | config4923.py | davidfergusonaz/davidtest | 63cca01e48d4f23386a654afec78d291d9e4d54d | [
"MIT"
] | null | null | null | config4923.py | davidfergusonaz/davidtest | 63cca01e48d4f23386a654afec78d291d9e4d54d | [
"MIT"
] | null | null | null | config4923.py | davidfergusonaz/davidtest | 63cca01e48d4f23386a654afec78d291d9e4d54d | [
"MIT"
] | 1 | 2018-03-05T19:42:13.000Z | 2018-03-05T19:42:13.000Z | provider "aws" {
access_key = "AKIAJMVHXQZN6OMIO72Q"
secret_key = "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"
region = "${var.region}
}
| 24.166667 | 57 | 0.724138 | 12 | 145 | 8.583333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106557 | 0.158621 | 145 | 5 | 58 | 29 | 0.737705 | 0 | 0 | 0 | 0 | 0 | 0.434483 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a0659a8ec66e4e23d7288dbcccebd1b2bbc4caa7 | 119 | py | Python | src/updates/api/utils.py | khkoyani/testapi2 | 9726ede1c3b8d7ec750c06a2d2ace4dfe1373358 | [
"bzip2-1.0.6"
] | null | null | null | src/updates/api/utils.py | khkoyani/testapi2 | 9726ede1c3b8d7ec750c06a2d2ace4dfe1373358 | [
"bzip2-1.0.6"
] | 9 | 2020-06-05T22:36:27.000Z | 2022-01-13T01:35:52.000Z | src/updates/api/utils.py | khkoyani/testapi2 | 9726ede1c3b8d7ec750c06a2d2ace4dfe1373358 | [
"bzip2-1.0.6"
] | null | null | null | import json
def json_data(data):
try:
return json.loads(data)
except ValueError:
return False
| 14.875 | 31 | 0.630252 | 15 | 119 | 4.933333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.302521 | 119 | 7 | 32 | 17 | 0.891566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
a09c77791d3faf21dda65c8463ccc6c7ee83c90a | 419 | py | Python | armulator/armv6/opcodes/thumb_instruction_set/__init__.py | matan1008/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 16 | 2018-01-22T14:36:49.000Z | 2021-12-17T15:39:52.000Z | armulator/armv6/opcodes/thumb_instruction_set/__init__.py | AhmedMounir/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 3 | 2019-02-19T17:51:47.000Z | 2022-03-31T20:45:21.000Z | armulator/armv6/opcodes/thumb_instruction_set/__init__.py | AhmedMounir/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 4 | 2020-06-18T23:51:03.000Z | 2022-02-09T17:43:13.000Z | import thumb_instruction_set_encoding_16_bit
import thumb_instruction_set_encoding_32_bit
def decode_instruction(instr):
if instr.len == 16:
# 16-bit Thumb instruction encoding
return thumb_instruction_set_encoding_16_bit.decode_instruction(instr)
elif instr.len == 32:
# 32-bit Thumb i... | 34.916667 | 78 | 0.782816 | 56 | 419 | 5.446429 | 0.267857 | 0.314754 | 0.24918 | 0.354098 | 0.67541 | 0.636066 | 0.393443 | 0.393443 | 0.393443 | 0 | 0 | 0.045845 | 0.167064 | 419 | 11 | 79 | 38.090909 | 0.82808 | 0.159905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.714286 | 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 | 0 | 0 | 0 | 3 |
a0a7ad6bda3875ce1bfd71afbf7443c82383ba06 | 181 | py | Python | users/urls.py | 2020-Hallym-Capstone-Design-Team-PHAS/phas_backend | e56c64bfa4fb2a41d5267401b2a28e7eae3c8925 | [
"MIT"
] | null | null | null | users/urls.py | 2020-Hallym-Capstone-Design-Team-PHAS/phas_backend | e56c64bfa4fb2a41d5267401b2a28e7eae3c8925 | [
"MIT"
] | 1 | 2020-04-29T02:49:49.000Z | 2020-05-25T02:51:50.000Z | users/urls.py | 2020-Hallym-Capstone-Design-Team-PHAS/PHAS_Backend | e56c64bfa4fb2a41d5267401b2a28e7eae3c8925 | [
"MIT"
] | null | null | null | from django.urls import path
from users.views import *
urlpatterns = [
path('regist', userRegist, name = "user_regist"),
path('sign-in', userSignIn, name = "user_signIn")
] | 25.857143 | 53 | 0.690608 | 23 | 181 | 5.347826 | 0.695652 | 0.130081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165746 | 181 | 7 | 54 | 25.857143 | 0.81457 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a0bb498c24a576466fd562336bc059a62226d731 | 445 | py | Python | aiopynoon/exceptions.py | alistairg/aiopynoon | f1340bd6a56de661e09f9f90fb28c331df2d5653 | [
"MIT"
] | 1 | 2020-06-18T06:29:40.000Z | 2020-06-18T06:29:40.000Z | aiopynoon/exceptions.py | alistairg/aiopynoon | f1340bd6a56de661e09f9f90fb28c331df2d5653 | [
"MIT"
] | null | null | null | aiopynoon/exceptions.py | alistairg/aiopynoon | f1340bd6a56de661e09f9f90fb28c331df2d5653 | [
"MIT"
] | null | null | null | """ Exceptions thrown by PyNoon """
class NoonException(Exception):
pass
class NoonAuthenticationError(NoonException):
pass
class NoonInvalidParametersError(NoonException):
pass
class NoonInvalidJsonError(NoonException):
pass
class NoonDuplicateIdError(NoonException):
pass
class Noon... | 11.710526 | 48 | 0.748315 | 36 | 445 | 9.25 | 0.444444 | 0.189189 | 0.396396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18427 | 445 | 38 | 49 | 11.710526 | 0.917355 | 0.060674 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a0bd789ff2e1139219e88a8494c3dc054ecf0fce | 183 | py | Python | server.py | uuso/killrepo | 42ada2244bdc8b83a9c8207fbe5c789c3f4bc803 | [
"MIT"
] | null | null | null | server.py | uuso/killrepo | 42ada2244bdc8b83a9c8207fbe5c789c3f4bc803 | [
"MIT"
] | null | null | null | server.py | uuso/killrepo | 42ada2244bdc8b83a9c8207fbe5c789c3f4bc803 | [
"MIT"
] | null | null | null | import os
import bottle
@bottle.route("/")
def func():
return "Ok"
bottle.run(server="gunicorn",
host="0.0.0.0",
port=int(os.environ.get("PORT", 5000)))
| 14.076923 | 50 | 0.568306 | 26 | 183 | 4 | 0.692308 | 0.057692 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 0.234973 | 183 | 12 | 51 | 15.25 | 0.685714 | 0 | 0 | 0 | 0 | 0 | 0.120219 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0.25 | 0.125 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
a0bdba89999d30e643fdb6f47346158f479dd3b3 | 2,976 | py | Python | arrays_practice/mutables.py | Kel0/codePractice | 21e8f420747e2b90bf01f8036a6de8d717f1dc54 | [
"MIT"
] | null | null | null | arrays_practice/mutables.py | Kel0/codePractice | 21e8f420747e2b90bf01f8036a6de8d717f1dc54 | [
"MIT"
] | 1 | 2021-05-05T04:21:19.000Z | 2021-05-06T04:50:01.000Z | arrays_practice/mutables.py | Kel0/codePractice | 21e8f420747e2b90bf01f8036a6de8d717f1dc54 | [
"MIT"
] | null | null | null | class Node:
def __init__(self):
self._offset = 0
self._offset_size = 2
self._init_list = []
def __resize(self):
if len(self._init_list) >= self._offset_size:
_val = len(self._init_list)
if len(self._init_list) + 1 // 2 % 2 == 0:
_val = len... | 23.808 | 84 | 0.563172 | 382 | 2,976 | 3.968586 | 0.138743 | 0.126649 | 0.189974 | 0.079156 | 0.466359 | 0.330475 | 0.233509 | 0.08971 | 0.050132 | 0.050132 | 0 | 0.011397 | 0.321909 | 2,976 | 124 | 85 | 24 | 0.739841 | 0 | 0 | 0.318681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318681 | false | 0 | 0 | 0.120879 | 0.527473 | 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 | 0 | 0 | 0 | 3 |
263e1492e927b56bd3b83a77205e4abdedf303ab | 934 | py | Python | python-review/pets_class.py | SandraCoburn/python-web-development | 1f33cdbd970566b128d2e81e665e504da79dcffd | [
"MIT"
] | null | null | null | python-review/pets_class.py | SandraCoburn/python-web-development | 1f33cdbd970566b128d2e81e665e504da79dcffd | [
"MIT"
] | null | null | null | python-review/pets_class.py | SandraCoburn/python-web-development | 1f33cdbd970566b128d2e81e665e504da79dcffd | [
"MIT"
] | null | null | null | class Pets():
animals = []
def __init__(self, animals):
self.animals = animals
def walk(self):
for animal in self.animals:
print(animal.walk())
class Cat():
is_lazy = True
def __init__(self, name, age):
self.name = name
self.age = age
def walk(self... | 23.35 | 75 | 0.632762 | 144 | 934 | 4 | 0.368056 | 0.048611 | 0.052083 | 0.072917 | 0.171875 | 0.171875 | 0.171875 | 0.171875 | 0 | 0 | 0 | 0.011364 | 0.246253 | 934 | 40 | 76 | 23.35 | 0.806818 | 0.231263 | 0 | 0.307692 | 0 | 0 | 0.106294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0 | 0 | 0.153846 | 0.692308 | 0.076923 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
264aaa115ddf4ce425d6cffd1bf504684c07a55e | 80 | py | Python | __init__.py | RDML-consortium/rdml-python | 11843a7b2b8f45032186770d43ae78d7526e25af | [
"MIT"
] | 11 | 2020-06-10T09:11:00.000Z | 2022-03-28T17:56:44.000Z | __init__.py | RDML-consortium/rdml-python | 11843a7b2b8f45032186770d43ae78d7526e25af | [
"MIT"
] | 3 | 2022-03-03T05:38:37.000Z | 2022-03-22T20:38:51.000Z | __init__.py | RDML-consortium/rdml-python | 11843a7b2b8f45032186770d43ae78d7526e25af | [
"MIT"
] | 4 | 2020-06-10T09:13:50.000Z | 2022-03-03T05:25:47.000Z | #!/usr/bin/python
from .rdml import *
name = "rdmlpython"
__all__ = ["rdml"]
| 10 | 19 | 0.6375 | 10 | 80 | 4.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175 | 80 | 7 | 20 | 11.428571 | 0.712121 | 0.2 | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
265441f6cf28bf28bffca56cfd3f5ba9ec625b0e | 742 | py | Python | db/db_models/Organization.py | akarapun/elearning | fe116d5815925269819061ea183cbfdb773844cf | [
"MIT"
] | 1 | 2020-03-14T11:00:14.000Z | 2020-03-14T11:00:14.000Z | db/db_models/Organization.py | akarapun/elearning | fe116d5815925269819061ea183cbfdb773844cf | [
"MIT"
] | null | null | null | db/db_models/Organization.py | akarapun/elearning | fe116d5815925269819061ea183cbfdb773844cf | [
"MIT"
] | null | null | null | from sqlalchemy import Table, Column, Integer, String, NVARCHAR, DateTime, func
from sqlalchemy import PrimaryKeyConstraint
from db import Base
class Organization(Base):
__tablename__ = 'organization'
__table_args__ = (
PrimaryKeyConstraint('orgCode'),
)
orgCode = Column(NVARCHAR(length=20), ... | 33.727273 | 79 | 0.721024 | 80 | 742 | 6.575 | 0.4625 | 0.212928 | 0.304183 | 0.1673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027508 | 0.167116 | 742 | 21 | 80 | 35.333333 | 0.823625 | 0 | 0 | 0 | 0 | 0 | 0.025606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.888889 | 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 | 0 | 0 | 0 | 3 |
26651ccecda16bae4dcf0ef70114ed218847b2e0 | 607 | py | Python | vistrails/packages/vtk/wrapper.py | celiafish/VisTrails | d8cb575b8b121941de190fe608003ad1427ef9f6 | [
"BSD-3-Clause"
] | 1 | 2015-05-11T16:46:49.000Z | 2015-05-11T16:46:49.000Z | vistrails/packages/vtk/wrapper.py | celiafish/VisTrails | d8cb575b8b121941de190fe608003ad1427ef9f6 | [
"BSD-3-Clause"
] | null | null | null | vistrails/packages/vtk/wrapper.py | celiafish/VisTrails | d8cb575b8b121941de190fe608003ad1427ef9f6 | [
"BSD-3-Clause"
] | null | null | null | #import warnings
class VTKInstanceWrapper(object):
def __init__(self, instance, module_id):
self.vtkInstance = instance
self.vt_module_id = module_id
# For future use: warns when .vtkInstance is used
#@property
#def vtkInstance(self):
# warnings.warn(
# "Derefere... | 28.904762 | 78 | 0.622735 | 61 | 607 | 5.967213 | 0.606557 | 0.065934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002331 | 0.293245 | 607 | 20 | 79 | 30.35 | 0.846154 | 0.517298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.666667 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
269174d70b2a18cf7fa1fcd9650585e5a8851ad1 | 2,333 | py | Python | 20/day_1.py | 0LL13/advent | 917a10a43fcdba3bd9ce3140a8b8cb44b1fc8c0f | [
"Unlicense"
] | null | null | null | 20/day_1.py | 0LL13/advent | 917a10a43fcdba3bd9ce3140a8b8cb44b1fc8c0f | [
"Unlicense"
] | null | null | null | 20/day_1.py | 0LL13/advent | 917a10a43fcdba3bd9ce3140a8b8cb44b1fc8c0f | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
INPUT = """1742
1763
1238
1424
1736
1903
1580
1847
1860
1933
1779
1901
1984
1861
1769
1896
1428
2010
1673
1491
1996
1746
1973
1696
1616
2006
1890
1600
1991
1724
1804
1794
462
1706
2002
1939
1834
1312
1943
1465
1405
1459
1659
1288
1241
1935
1294
1388
1772
1945
1649
813
1956
1274
1686
1404
1770
16... | 8.870722 | 102 | 0.626232 | 415 | 2,333 | 3.503614 | 0.580723 | 0.060523 | 0.049519 | 0.055021 | 0.202201 | 0.187758 | 0.187758 | 0.134801 | 0.105915 | 0.071527 | 0 | 0.5 | 0.273039 | 2,333 | 262 | 103 | 8.90458 | 0.357311 | 0.369481 | 0 | 0.009091 | 0 | 0 | 0.704577 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.027273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cd020d0cdb891d762719a029f0d60e619e5d9f18 | 709 | py | Python | _build/jupyter_execute/contents/transport/lecture_10/L10_numericalcontent/Retardation Factor.py | prabhasyadav/iGW-I | eba32830f32f1109a7bee600c65832af0e7183fa | [
"CC-BY-4.0"
] | null | null | null | _build/jupyter_execute/contents/transport/lecture_10/L10_numericalcontent/Retardation Factor.py | prabhasyadav/iGW-I | eba32830f32f1109a7bee600c65832af0e7183fa | [
"CC-BY-4.0"
] | null | null | null | _build/jupyter_execute/contents/transport/lecture_10/L10_numericalcontent/Retardation Factor.py | prabhasyadav/iGW-I | eba32830f32f1109a7bee600c65832af0e7183fa | [
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# ## Retardation Factor
# In[1]:
print("\033[1m\033[4mA quick example:\033[0m You can change the provided values.\n")
print("Calculate the retardation factor.\n\n\033[1mProvided are:\033[0m")
ne = 0.4 #effective porosity [-]
rho = 1.25 # density of solid material [kg/m³]
Kd = ... | 22.870968 | 142 | 0.693935 | 115 | 709 | 4.26087 | 0.521739 | 0.040816 | 0.061224 | 0.069388 | 0.183673 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 0.136812 | 709 | 30 | 143 | 23.633333 | 0.712418 | 0.284908 | 0 | 0 | 0 | 0.333333 | 0.682281 | 0.154786 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
cd0abfa5e174a91ac3c05b3ad56b10ba84525944 | 224 | py | Python | setup.py | poush/TF_SpeechRecoChallenge | 39d56c91bcdbfca9d451548d0dd66cd7152df188 | [
"Apache-2.0"
] | 35 | 2018-01-28T11:19:21.000Z | 2020-12-24T09:32:03.000Z | setup.py | poush/TF_SpeechRecoChallenge | 39d56c91bcdbfca9d451548d0dd66cd7152df188 | [
"Apache-2.0"
] | 1 | 2019-08-30T02:17:40.000Z | 2019-08-30T02:17:40.000Z | setup.py | poush/TF_SpeechRecoChallenge | 39d56c91bcdbfca9d451548d0dd66cd7152df188 | [
"Apache-2.0"
] | 19 | 2018-01-28T15:29:24.000Z | 2021-11-04T06:25:43.000Z | """
Python package setup file.
"""
from setuptools import setup
setup(
name="TF_Speech",
version="0.2.0",
extras_require={'tensorflow': ['tensorflow'],
'tensorflow with gpu': ['tensorflow-gpu']},
)
| 17.230769 | 61 | 0.620536 | 25 | 224 | 5.48 | 0.72 | 0.291971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016854 | 0.205357 | 224 | 12 | 62 | 18.666667 | 0.752809 | 0.116071 | 0 | 0 | 0 | 0 | 0.352632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cd122ddfc29e666a1303e706ab205e38a4b0b88c | 323 | py | Python | __main__.py | Yourself1011/pukage | 809601c355ac4a544a6007c179c7aa6797ebbbe9 | [
"MIT"
] | 2 | 2020-08-26T22:17:18.000Z | 2020-09-07T01:05:02.000Z | __main__.py | Yourself1011/pukage | 809601c355ac4a544a6007c179c7aa6797ebbbe9 | [
"MIT"
] | 1 | 2020-09-08T19:33:36.000Z | 2020-09-09T15:40:51.000Z | __main__.py | Yourself1011/pukage | 809601c355ac4a544a6007c179c7aa6797ebbbe9 | [
"MIT"
] | 1 | 2020-08-04T15:43:35.000Z | 2020-08-04T15:43:35.000Z | """
Pukage
Choose-your-own-adventure game.
https://github.com/Yourself1011/Pukage/
Copyright 2020 Daniel Zhang, Jeffery Zang, Li Feng Yin, and all Pukage contributors https://github.com/Yourself1011/Pukage/graphs/contributors/
MIT License
"""
from main import startingMenu
if __name__ == "__main__":
startingMenu... | 21.533333 | 143 | 0.767802 | 41 | 323 | 5.853659 | 0.756098 | 0.091667 | 0.116667 | 0.216667 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042254 | 0.120743 | 323 | 14 | 144 | 23.071429 | 0.802817 | 0.73065 | 0 | 0 | 0 | 0 | 0.101266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
cd1b0219e0d8a4b23f461118b3dbb415b467a442 | 258 | py | Python | tick/robust/build/__init__.py | sumau/tick | 1b56924a35463e12f7775bc0aec182364f26f2c6 | [
"BSD-3-Clause"
] | 411 | 2017-03-30T15:22:05.000Z | 2022-03-27T01:58:34.000Z | tick/robust/build/__init__.py | saurabhdash/tick | bbc561804eb1fdcb4c71b9e3e2d83a66e7b13a48 | [
"BSD-3-Clause"
] | 345 | 2017-04-13T14:53:20.000Z | 2022-03-26T00:46:22.000Z | tick/robust/build/__init__.py | saurabhdash/tick | bbc561804eb1fdcb4c71b9e3e2d83a66e7b13a48 | [
"BSD-3-Clause"
] | 102 | 2017-04-25T11:47:53.000Z | 2022-02-15T11:45:49.000Z | # License: BSD 3 clause
# Templating update - 19/02/2018
# Importing DLLs has gotten a bit strange and now requires
# updating the path for DLLs to be found before hand
from tick.base.opsys import add_to_path_if_windows
add_to_path_if_windows(__file__)
| 25.8 | 59 | 0.790698 | 45 | 258 | 4.266667 | 0.822222 | 0.052083 | 0.09375 | 0.114583 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.162791 | 258 | 9 | 60 | 28.666667 | 0.847222 | 0.627907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 0 | 3 |
cd4675fd5ba6aae85225e2a285545318f361bf88 | 44 | py | Python | samplot/__init__.py | pontushojer/samplot | 5007a137dd907fb43cc841dbeeba0fbecb53681e | [
"MIT"
] | 353 | 2018-01-30T02:52:28.000Z | 2022-03-31T03:06:52.000Z | samplot/__init__.py | pontushojer/samplot | 5007a137dd907fb43cc841dbeeba0fbecb53681e | [
"MIT"
] | 95 | 2018-01-29T15:43:00.000Z | 2022-03-02T16:48:53.000Z | samplot/__init__.py | pontushojer/samplot | 5007a137dd907fb43cc841dbeeba0fbecb53681e | [
"MIT"
] | 53 | 2017-08-29T17:10:30.000Z | 2022-03-31T03:06:40.000Z | #!/usr/bin/env python
__version__ = "1.3.0"
| 14.666667 | 21 | 0.659091 | 8 | 44 | 3.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.113636 | 44 | 2 | 22 | 22 | 0.564103 | 0.454545 | 0 | 0 | 0 | 0 | 0.217391 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cd6555f42628b254b182ec12ce8ed36813ebe28e | 384 | py | Python | kitsune/users/management/commands/remove_expired_registration_profiles.py | Corporex/kitsune | e12064de2f1bc0fb43d319944545bd3aa8493de0 | [
"BSD-3-Clause"
] | 1 | 2021-07-22T07:45:32.000Z | 2021-07-22T07:45:32.000Z | kitsune/users/management/commands/remove_expired_registration_profiles.py | Corporex/kitsune | e12064de2f1bc0fb43d319944545bd3aa8493de0 | [
"BSD-3-Clause"
] | 10 | 2020-12-13T06:14:14.000Z | 2022-01-21T20:00:59.000Z | kitsune/users/management/commands/remove_expired_registration_profiles.py | Corporex/kitsune | e12064de2f1bc0fb43d319944545bd3aa8493de0 | [
"BSD-3-Clause"
] | 1 | 2019-08-31T05:47:57.000Z | 2019-08-31T05:47:57.000Z | from django.core.management.base import BaseCommand
from kitsune.search.models import generate_tasks
from kitsune.users.models import RegistrationProfile
class Command(BaseCommand):
help = "Cleanup expired registration profiles and users that not activated."
def handle(self, **options):
Registration... | 29.538462 | 80 | 0.78125 | 44 | 384 | 6.727273 | 0.704545 | 0.074324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151042 | 384 | 12 | 81 | 32 | 0.907975 | 0 | 0 | 0 | 1 | 0 | 0.174479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
cd6fbb612137cedb1b02ea7eeb5e73ddd5c9eb30 | 590 | py | Python | tests/test_models.py | TobiasRosskopf/django_backend_template | 1de5ea6b9006b0cc3898873b26ea251313cfe61d | [
"MIT"
] | null | null | null | tests/test_models.py | TobiasRosskopf/django_backend_template | 1de5ea6b9006b0cc3898873b26ea251313cfe61d | [
"MIT"
] | null | null | null | tests/test_models.py | TobiasRosskopf/django_backend_template | 1de5ea6b9006b0cc3898873b26ea251313cfe61d | [
"MIT"
] | null | null | null | from django.test import TestCase
from app.models import CustomUser
from app.models import CustomGroup
class CustomUserTests(TestCase):
def setUp(self):
self.user = CustomUser.objects.create_user(username="testuser01", email="testuser01@mail.com", password="top_secret")
def test_user_string(self):
... | 25.652174 | 125 | 0.728814 | 71 | 590 | 5.971831 | 0.450704 | 0.075472 | 0.061321 | 0.089623 | 0.264151 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0.020121 | 0.157627 | 590 | 22 | 126 | 26.818182 | 0.832998 | 0 | 0 | 0.153846 | 0 | 0 | 0.120339 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.307692 | false | 0.076923 | 0.230769 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
cd78ab4a1b2e5fe9c6265c6b2b35359db90e2af8 | 65 | py | Python | demo/main/routes.py | Arfey/aiohttp_admin2 | 2b3782389ec9e25809635811b76ef8111b27d8ba | [
"MIT"
] | 12 | 2021-10-15T11:48:12.000Z | 2022-03-24T07:31:43.000Z | demo/main/routes.py | Arfey/aiohttp_admin2 | 2b3782389ec9e25809635811b76ef8111b27d8ba | [
"MIT"
] | 2 | 2021-12-29T16:31:05.000Z | 2021-12-30T00:50:40.000Z | demo/main/routes.py | Arfey/aiohttp_admin2 | 2b3782389ec9e25809635811b76ef8111b27d8ba | [
"MIT"
] | null | null | null | from aiohttp.web import RouteTableDef
routes = RouteTableDef()
| 13 | 37 | 0.8 | 7 | 65 | 7.428571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138462 | 65 | 4 | 38 | 16.25 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
cd857cc11648db25d7aef743070a023035068538 | 99 | py | Python | examples/01-hello-world/hello.py | ProgHaj/cowait | e95c30faab8caf8b0413de4e1784529a3a06475d | [
"Apache-2.0"
] | 51 | 2020-06-04T06:08:14.000Z | 2022-03-28T06:59:53.000Z | examples/01-hello-world/hello.py | ProgHaj/cowait | e95c30faab8caf8b0413de4e1784529a3a06475d | [
"Apache-2.0"
] | 121 | 2020-06-01T12:09:32.000Z | 2022-03-31T20:47:57.000Z | examples/01-hello-world/hello.py | ProgHaj/cowait | e95c30faab8caf8b0413de4e1784529a3a06475d | [
"Apache-2.0"
] | 6 | 2020-06-11T16:05:20.000Z | 2022-03-23T06:30:17.000Z | from cowait import Task
class Hello(Task):
async def run(self):
print('Hello World')
| 14.142857 | 28 | 0.646465 | 14 | 99 | 4.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252525 | 99 | 6 | 29 | 16.5 | 0.864865 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.5 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cd8e8d3f0768cce4bebdf7e5f117c431b9918c99 | 711 | py | Python | PYSTUDY/processlib.py | shi-cong/review | c8da7128ea18ecaa5849f2066d321e70d6f97f70 | [
"Apache-2.0"
] | 8 | 2017-10-22T00:24:42.000Z | 2017-11-24T01:23:52.000Z | PYSTUDY/processlib.py | shi-cong/review | c8da7128ea18ecaa5849f2066d321e70d6f97f70 | [
"Apache-2.0"
] | 2 | 2017-10-12T22:04:25.000Z | 2017-10-12T23:43:48.000Z | PYSTUDY/processlib.py | shi-cong/review | c8da7128ea18ecaa5849f2066d321e70d6f97f70 | [
"Apache-2.0"
] | null | null | null | """
进程模块
"""
from multiprocessing import Process
Process = Process
def create_process(daemon, name, callback, *callbackParams):
"""创建进程
:param daemon: True主进程关闭而关闭, False主进程必须等待子进程结束
:param name: 进程名称
:param callback: 回调函数
:param callbackParams: 回调函数参数
:return: 返回一个进程对象
"""
bp = Proces... | 17.341463 | 80 | 0.663854 | 84 | 711 | 5.52381 | 0.392857 | 0.064655 | 0.043103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219409 | 711 | 40 | 81 | 17.775 | 0.836036 | 0.270042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.066667 | 0.133333 | 0.666667 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
26c6b262140ed98e3833db16a19fc745139a179e | 268 | py | Python | MyRepo/services/restaurant_service.py | aryanj723/psychic-disco | 025656a2d30dab7bdaa488926742d6c868137906 | [
"Apache-2.0"
] | null | null | null | MyRepo/services/restaurant_service.py | aryanj723/psychic-disco | 025656a2d30dab7bdaa488926742d6c868137906 | [
"Apache-2.0"
] | null | null | null | MyRepo/services/restaurant_service.py | aryanj723/psychic-disco | 025656a2d30dab7bdaa488926742d6c868137906 | [
"Apache-2.0"
] | null | null | null | from MyRepo.services.restaurant_service_interface import RestaurantServiceInterface
from MyRepo.models.restaurant import Restaurant
class RestaurantService(RestaurantServiceInterface):
def addRestaurant(self):
restaurant = Restaurant()
return restaurant
| 29.777778 | 83 | 0.835821 | 24 | 268 | 9.25 | 0.625 | 0.09009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115672 | 268 | 8 | 84 | 33.5 | 0.936709 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 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 | 0 | 0 | 0 | 3 |
26cd8f0dff79fb7d35ca7f65e19dd4108d1e4350 | 2,145 | py | Python | src/abaqus/Material/TestData/ShearTestData.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | 7 | 2022-01-21T09:15:45.000Z | 2022-02-15T09:31:58.000Z | src/abaqus/Material/TestData/ShearTestData.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | src/abaqus/Material/TestData/ShearTestData.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | class ShearTestData:
"""The ShearTestData object specifies the normalized shear creep compliance or relaxation
modulus as a function of time.
Notes
-----
This object can be accessed by:
.. code-block:: python
import material
mdb.models[name].materials[name].viscoe... | 34.596774 | 100 | 0.593473 | 249 | 2,145 | 5.100402 | 0.337349 | 0.070866 | 0.053543 | 0.091339 | 0.500787 | 0.445669 | 0.445669 | 0.177953 | 0.177953 | 0.177953 | 0 | 0.003425 | 0.319347 | 2,145 | 61 | 101 | 35.163934 | 0.860274 | 0.775758 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.4 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
26d6a150bf30e57fd21fb84ce3d0cdee1cc4677f | 203 | py | Python | Classes/Class-09/contest-09/C.py | CristianLazoQuispe/ITMO-Training-Camp-2021 | ba0511116669803adb3d70ef1b49cd124c3bed34 | [
"MIT"
] | null | null | null | Classes/Class-09/contest-09/C.py | CristianLazoQuispe/ITMO-Training-Camp-2021 | ba0511116669803adb3d70ef1b49cd124c3bed34 | [
"MIT"
] | null | null | null | Classes/Class-09/contest-09/C.py | CristianLazoQuispe/ITMO-Training-Camp-2021 | ba0511116669803adb3d70ef1b49cd124c3bed34 | [
"MIT"
] | null | null | null | [n,m] = list(map(int,input().split()))
ai = list(map(int,input().split()))
aux = [[]for i in range(m)]
dp = [aux for i in range(n)]
#def grundy():
for i in range(n):
for j in range(m):
| 14.5 | 38 | 0.536946 | 38 | 203 | 2.868421 | 0.447368 | 0.256881 | 0.165138 | 0.302752 | 0.743119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231527 | 203 | 14 | 39 | 14.5 | 0.698718 | 0.064039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
26e7e1b8b3bbd1687cb94c42ef83ad0c8e3759eb | 321 | py | Python | list_compr.py | charliechocho/py-crash-course | b42b8a4c1cb8d76e8316f55c1565ff42d920ee63 | [
"Apache-2.0"
] | null | null | null | list_compr.py | charliechocho/py-crash-course | b42b8a4c1cb8d76e8316f55c1565ff42d920ee63 | [
"Apache-2.0"
] | null | null | null | list_compr.py | charliechocho/py-crash-course | b42b8a4c1cb8d76e8316f55c1565ff42d920ee63 | [
"Apache-2.0"
] | null | null | null | #list comprehension makes code even shorter but harder to read
num_square = [value**3 for value in range(1,10)]
print(num_square)
#the medium way of doing it
num_square = []
for value in range(1,11):
num_square.append(value**3)
print(num_square)
print(min(num_square))
print(max(num_square))
print(sum(num_square))... | 18.882353 | 62 | 0.750779 | 57 | 321 | 4.087719 | 0.54386 | 0.309013 | 0.180258 | 0.128755 | 0.137339 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028674 | 0.130841 | 321 | 16 | 63 | 20.0625 | 0.806452 | 0.271028 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.555556 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
f8034607b25e42daba75e8119e9201188b5a5e79 | 244 | py | Python | product/scripts/db.py | tomoyamkung/flask_blog_app | dcb57333b6c10f71a5657ca45aaefa52a4548741 | [
"MIT"
] | null | null | null | product/scripts/db.py | tomoyamkung/flask_blog_app | dcb57333b6c10f71a5657ca45aaefa52a4548741 | [
"MIT"
] | 15 | 2020-04-17T14:40:47.000Z | 2020-04-20T13:46:59.000Z | product/scripts/db.py | tomoyamkung/flask_blog_app | dcb57333b6c10f71a5657ca45aaefa52a4548741 | [
"MIT"
] | null | null | null | from flask_script import Command
from product.models.entries import Entry
class DataBaseInitialization(Command):
def run(self):
if not Entry.exists():
Entry.create_table(read_capacity_units=5, write_capacity_units=2)
| 24.4 | 77 | 0.745902 | 32 | 244 | 5.5 | 0.78125 | 0.147727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0.180328 | 244 | 9 | 78 | 27.111111 | 0.87 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
f813129a645a470fd0d6308272577b661a27a051 | 129 | py | Python | run.py | allenwoods/madoko-standalone | e2a9939cddc3449f04d3d51bf61951ba52d5f588 | [
"Apache-2.0"
] | null | null | null | run.py | allenwoods/madoko-standalone | e2a9939cddc3449f04d3d51bf61951ba52d5f588 | [
"Apache-2.0"
] | null | null | null | run.py | allenwoods/madoko-standalone | e2a9939cddc3449f04d3d51bf61951ba52d5f588 | [
"Apache-2.0"
] | null | null | null | from pathlib import Path
import subprocess
cwd = Path(".\\").absolute()
subprocess.call(f"madoko-local.cmd -rl --homedir {cwd}") | 25.8 | 56 | 0.72093 | 18 | 129 | 5.166667 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100775 | 129 | 5 | 56 | 25.8 | 0.801724 | 0 | 0 | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f83ce236b6b3b5ee26965b75cbea58631cf6efe6 | 645 | py | Python | apps/geolocalizacion/api/serializers_distrito.py | Ajerhy/proyectocoteco | d6e6bca71532cbe010a7dacd44a5263fabb0d4c2 | [
"MIT"
] | null | null | null | apps/geolocalizacion/api/serializers_distrito.py | Ajerhy/proyectocoteco | d6e6bca71532cbe010a7dacd44a5263fabb0d4c2 | [
"MIT"
] | 7 | 2020-06-05T23:01:01.000Z | 2021-09-22T18:55:08.000Z | apps/geolocalizacion/api/serializers_distrito.py | Ajerhy/proyectocoteco | d6e6bca71532cbe010a7dacd44a5263fabb0d4c2 | [
"MIT"
] | null | null | null | from rest_framework.serializers import ModelSerializer,HyperlinkedModelSerializer
from rest_framework import serializers
from rest_framework.exceptions import ValidationError
from apps.geolocalizacion.models import Distrito
from apps.geolocalizacion.api.serializers_localidad import LocalidadSerializer
"""
class Distri... | 35.833333 | 81 | 0.787597 | 60 | 645 | 8.316667 | 0.466667 | 0.048096 | 0.102204 | 0.196393 | 0.112224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139535 | 645 | 18 | 82 | 35.833333 | 0.899099 | 0 | 0 | 0 | 0 | 0 | 0.060078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f8410aa6461ec49d442a69acdb10fe8efcc41b79 | 1,044 | py | Python | regparser/tree/xml_parser/matchers.py | pkfec/regulations-parser | ff6b29dcce0449a133e7b93dd462ab3110f80a5d | [
"CC0-1.0"
] | 26 | 2016-06-04T20:48:09.000Z | 2021-07-28T18:13:30.000Z | regparser/tree/xml_parser/matchers.py | pkfec/regulations-parser | ff6b29dcce0449a133e7b93dd462ab3110f80a5d | [
"CC0-1.0"
] | 146 | 2016-04-06T19:07:54.000Z | 2022-01-02T20:09:53.000Z | regparser/tree/xml_parser/matchers.py | pkfec/regulations-parser | ff6b29dcce0449a133e7b93dd462ab3110f80a5d | [
"CC0-1.0"
] | 28 | 2016-04-09T20:40:48.000Z | 2021-05-08T17:52:59.000Z | """Utilities for converting an XML tag into a struct.Node (or set of
nodes)."""
import abc
import six
class Parser(six.with_metaclass(abc.ABCMeta, object)):
"""Describe the interface we're expecting from our tag parsers. We don't
require the class actually be inherited from so long as the interface is
sa... | 30.705882 | 78 | 0.692529 | 143 | 1,044 | 4.965035 | 0.594406 | 0.049296 | 0.05493 | 0.047887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226054 | 1,044 | 33 | 79 | 31.636364 | 0.878713 | 0.501916 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f883f33fef6eda6db5bd1898f17a90030dbdbd24 | 93 | py | Python | vocab/vocabexam/apps.py | qinzhaofei2177-2/vocab_repo | f84132e0bc10e303d9e2231750fbb1c9eba72af3 | [
"Apache-2.0"
] | null | null | null | vocab/vocabexam/apps.py | qinzhaofei2177-2/vocab_repo | f84132e0bc10e303d9e2231750fbb1c9eba72af3 | [
"Apache-2.0"
] | null | null | null | vocab/vocabexam/apps.py | qinzhaofei2177-2/vocab_repo | f84132e0bc10e303d9e2231750fbb1c9eba72af3 | [
"Apache-2.0"
] | 1 | 2020-08-27T06:56:18.000Z | 2020-08-27T06:56:18.000Z | from django.apps import AppConfig
class VocabexamConfig(AppConfig):
name = 'vocabexam'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f8941ccff27d98722f9e1cc83b84299803029963 | 237 | py | Python | autoflow/workflow/components/preprocessing/reduce/kernel_pca.py | auto-flow/autoflow | f5903424ad8694d57741a0bd6dfeaba320ea6517 | [
"BSD-3-Clause"
] | 49 | 2020-04-16T11:17:28.000Z | 2020-05-06T01:32:44.000Z | autoflow/workflow/components/preprocessing/reduce/kernel_pca.py | auto-flow/autoflow | f5903424ad8694d57741a0bd6dfeaba320ea6517 | [
"BSD-3-Clause"
] | null | null | null | autoflow/workflow/components/preprocessing/reduce/kernel_pca.py | auto-flow/autoflow | f5903424ad8694d57741a0bd6dfeaba320ea6517 | [
"BSD-3-Clause"
] | 3 | 2020-04-17T00:53:24.000Z | 2020-04-23T03:04:26.000Z | from autoflow.workflow.components.feature_engineer_base import AutoFlowFeatureEngineerAlgorithm
__all__=["KernelPCA"]
class KernelPCA(AutoFlowFeatureEngineerAlgorithm):
class__ = "KernelPCA"
module__ = "sklearn.decomposition"
| 26.333333 | 95 | 0.822785 | 19 | 237 | 9.736842 | 0.789474 | 0.151351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101266 | 237 | 8 | 96 | 29.625 | 0.868545 | 0 | 0 | 0 | 0 | 0 | 0.165254 | 0.088983 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
f89d09315b4b063259f79165d07ffd42fa02b75d | 4,501 | py | Python | NIOS/__init__.py | jamesharr/nios | 55b1854fc51d33098630063867dc0eeb44024ea6 | [
"Apache-2.0"
] | null | null | null | NIOS/__init__.py | jamesharr/nios | 55b1854fc51d33098630063867dc0eeb44024ea6 | [
"Apache-2.0"
] | null | null | null | NIOS/__init__.py | jamesharr/nios | 55b1854fc51d33098630063867dc0eeb44024ea6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# coding: utf-8
"""Module docs.
"""
import getpass
import sys
import urllib
import urllib2
import base64
import json
def _get_method(rv):
"""Produce a lambda that returns the value passed in.
This makes pyflakes happy.
"""
def _lambda():
return rv
return _lambda
clas... | 31.041379 | 100 | 0.610087 | 509 | 4,501 | 5.198428 | 0.239686 | 0.045351 | 0.036281 | 0.045351 | 0.642101 | 0.631519 | 0.631519 | 0.631519 | 0.631519 | 0.631519 | 0 | 0.01476 | 0.277494 | 4,501 | 144 | 101 | 31.256944 | 0.798893 | 0.018885 | 0 | 0.474747 | 0 | 0 | 0.079869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.111111 | 0.060606 | null | null | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f8b6269d9b124fb789548d487680698760c9e258 | 78 | py | Python | python/254.factor-combinations.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/254.factor-combinations.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/254.factor-combinations.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | class Solution:
def getFactors(self, n: int) -> List[List[int]]:
| 19.5 | 52 | 0.576923 | 10 | 78 | 4.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269231 | 78 | 3 | 53 | 26 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f8c08df0d8afc41bcd588ed7fdcd4f451a3a422c | 160 | py | Python | noiseblend_api/blends/mellow_dinner.py | alin23/noiseblend-api | 94409c47e77665f391cdbb8f2b10db63cf120703 | [
"Apache-2.0",
"MIT"
] | null | null | null | noiseblend_api/blends/mellow_dinner.py | alin23/noiseblend-api | 94409c47e77665f391cdbb8f2b10db63cf120703 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-04-20T16:39:55.000Z | 2021-04-20T16:39:55.000Z | noiseblend_api/blends/mellow_dinner.py | alin23/noiseblend-api | 94409c47e77665f391cdbb8f2b10db63cf120703 | [
"Apache-2.0",
"MIT"
] | null | null | null | from .blend import Blend
class MellowDinner(Blend):
ATTRIBUTES = {"target_popularity": 60}
GENRES = ["groove", "bossanova"]
TOP_TRACKS_COUNT = 20
| 20 | 42 | 0.6875 | 18 | 160 | 5.944444 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031008 | 0.19375 | 160 | 7 | 43 | 22.857143 | 0.79845 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
f8c2dbd9d884c435871b3c14a070aa4d54053d53 | 6,182 | py | Python | trade_remedies_api/config/urls.py | uktrade/trade-remedies-api | fbe2d142ef099c7244788a0f72dd1003eaa7edce | [
"MIT"
] | 1 | 2020-08-13T10:37:15.000Z | 2020-08-13T10:37:15.000Z | trade_remedies_api/config/urls.py | uktrade/trade-remedies-api | fbe2d142ef099c7244788a0f72dd1003eaa7edce | [
"MIT"
] | 4 | 2020-09-10T13:41:52.000Z | 2020-12-16T09:00:21.000Z | trade_remedies_api/config/urls.py | uktrade/trade-remedies-api | fbe2d142ef099c7244788a0f72dd1003eaa7edce | [
"MIT"
] | null | null | null | """trade_remedies_api URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
... | 50.672131 | 125 | 0.702362 | 813 | 6,182 | 5.157442 | 0.157442 | 0.056046 | 0.145719 | 0.179347 | 0.724541 | 0.711185 | 0.671834 | 0.560935 | 0.540902 | 0.440496 | 0 | 0.003526 | 0.128437 | 6,182 | 121 | 126 | 51.090909 | 0.774684 | 0.111453 | 0 | 0.421569 | 0 | 0.029412 | 0.496444 | 0.471457 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.009804 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f8c4bee9fdf17136dd0731ca65eb6a9597238af6 | 121 | py | Python | weather_forecast/apps/forecast/forms.py | elangaar/django-weather-forecast | f8563b3e4fe339c7d76852a50b63dab0e6c6c591 | [
"MIT"
] | null | null | null | weather_forecast/apps/forecast/forms.py | elangaar/django-weather-forecast | f8563b3e4fe339c7d76852a50b63dab0e6c6c591 | [
"MIT"
] | null | null | null | weather_forecast/apps/forecast/forms.py | elangaar/django-weather-forecast | f8563b3e4fe339c7d76852a50b63dab0e6c6c591 | [
"MIT"
] | null | null | null | from django import forms
class SelectForm(forms.Form):
name = forms.CharField(label="Nazwa miejsca", max_length=30)
| 24.2 | 64 | 0.760331 | 17 | 121 | 5.352941 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019048 | 0.132231 | 121 | 4 | 65 | 30.25 | 0.847619 | 0 | 0 | 0 | 0 | 0 | 0.107438 | 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 | 0 | 0 | 0 | 3 |
3e0d60ddda106f23347b42e6264e8598f0b0f006 | 854 | py | Python | mneia_admin_backend/migrations/0016_auto_20210703_1155.py | mneia-gr/mneia-admin-backend | ab1c1f55f599d8d1919930717c979c3973c821d0 | [
"CC0-1.0"
] | null | null | null | mneia_admin_backend/migrations/0016_auto_20210703_1155.py | mneia-gr/mneia-admin-backend | ab1c1f55f599d8d1919930717c979c3973c821d0 | [
"CC0-1.0"
] | null | null | null | mneia_admin_backend/migrations/0016_auto_20210703_1155.py | mneia-gr/mneia-admin-backend | ab1c1f55f599d8d1919930717c979c3973c821d0 | [
"CC0-1.0"
] | null | null | null | # Generated by Django 3.2.4 on 2021-07-03 11:55
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("mneia_admin_backend", "0015_areaurl"),
]
operations = [
migrations.AlterModelOptions(
name="area",
options={"ordering": ["na... | 28.466667 | 75 | 0.590164 | 72 | 854 | 6.847222 | 0.541667 | 0.219067 | 0.251521 | 0.105477 | 0.340771 | 0.146045 | 0 | 0 | 0 | 0 | 0 | 0.030995 | 0.282201 | 854 | 29 | 76 | 29.448276 | 0.773246 | 0.052693 | 0 | 0.347826 | 1 | 0 | 0.296159 | 0.027261 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.173913 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3e13fd63fd7bf453a9435eaa28d16a6ca7c0dbd1 | 1,262 | py | Python | login/migrations/0001_initial.py | BBshigaoshou/Mysite | e7506d228c48555e4d49e93f609854809ec3d886 | [
"MIT"
] | null | null | null | login/migrations/0001_initial.py | BBshigaoshou/Mysite | e7506d228c48555e4d49e93f609854809ec3d886 | [
"MIT"
] | null | null | null | login/migrations/0001_initial.py | BBshigaoshou/Mysite | e7506d228c48555e4d49e93f609854809ec3d886 | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2021-12-19 04:23
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='CityWeather',
fields=[
('id', models.AutoFiel... | 34.108108 | 114 | 0.549128 | 125 | 1,262 | 5.416 | 0.432 | 0.132939 | 0.239291 | 0.319055 | 0.579025 | 0.233383 | 0.233383 | 0.233383 | 0.233383 | 0.233383 | 0 | 0.040092 | 0.308241 | 1,262 | 36 | 115 | 35.055556 | 0.735395 | 0.034073 | 0 | 0.344828 | 1 | 0 | 0.060805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.034483 | 0.034483 | 0 | 0.172414 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3e4ee7ffc8d84f1ca049a2eee95f245339beeb64 | 301 | py | Python | Mundo 1 Fundamentos/ex012.py | costa53/curso_em_video_python3 | 4f859641324f8b35be56d807f40457d7dddc451f | [
"MIT"
] | 1 | 2022-02-17T16:23:52.000Z | 2022-02-17T16:23:52.000Z | Mundo 1 Fundamentos/ex012.py | costa53/curso_em_video_python3 | 4f859641324f8b35be56d807f40457d7dddc451f | [
"MIT"
] | null | null | null | Mundo 1 Fundamentos/ex012.py | costa53/curso_em_video_python3 | 4f859641324f8b35be56d807f40457d7dddc451f | [
"MIT"
] | null | null | null | # DESAFIO 012
# Faça um algoritmo que leia o preço de um produto e mostre seu novo preço, com 5% de desconto.
pr = float(input('Qual é o preço do produto? R$'))
desc = 5
pf = pr - (pr * desc / 100)
print(f'O produto que custava R${pr:.2f}, na promoção com desconto de {desc}% vai custar R${pf:.2f}')
| 37.625 | 101 | 0.674419 | 58 | 301 | 3.5 | 0.62069 | 0.059113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041322 | 0.196013 | 301 | 7 | 102 | 43 | 0.797521 | 0.348837 | 0 | 0 | 0 | 0.25 | 0.621762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3e6035226fc593105e3a46df47ecc2a2656bb3f4 | 455 | py | Python | src/Genetics/Gene.py | Morteza-Kazemi/Othello-AI-player | 6e698ea831560b2a1497943049d9664c746b477f | [
"MIT"
] | 1 | 2022-03-05T23:52:23.000Z | 2022-03-05T23:52:23.000Z | src/Genetics/Gene.py | Morteza-Kazemi/Othello-AI-player | 6e698ea831560b2a1497943049d9664c746b477f | [
"MIT"
] | null | null | null | src/Genetics/Gene.py | Morteza-Kazemi/Othello-AI-player | 6e698ea831560b2a1497943049d9664c746b477f | [
"MIT"
] | null | null | null | class Gene:
def __init__(self, weight_list):
self.weight_list = weight_list
self.total_games = 0
self.total_wins = 0
self.fitness = 0
def fitness_calc(self):
self.fitness = self.total_wins / self.total_games
def increment_total_game(self):
self.total_games +... | 22.75 | 57 | 0.632967 | 62 | 455 | 4.306452 | 0.322581 | 0.235955 | 0.194757 | 0.127341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018349 | 0.281319 | 455 | 19 | 58 | 23.947368 | 0.798165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3e643c44bbe6667de559b3ce6153f3e509a335a7 | 265 | py | Python | examples/telebot/asyncio_executor.py | dotX12/EventFisher | 437a7a1e87013c14d4018887488b3c8b353487e6 | [
"Apache-2.0"
] | 1 | 2021-02-05T22:35:56.000Z | 2021-02-05T22:35:56.000Z | examples/telebot/asyncio_executor.py | dotX12/EventFisher | 437a7a1e87013c14d4018887488b3c8b353487e6 | [
"Apache-2.0"
] | null | null | null | examples/telebot/asyncio_executor.py | dotX12/EventFisher | 437a7a1e87013c14d4018887488b3c8b353487e6 | [
"Apache-2.0"
] | null | null | null | import asyncio
async def non_blocking(loop, executor, *task):
await asyncio.wait(
fs={
loop.run_in_executor(executor, task[0]),
loop.run_in_executor(executor, task[1]),
},
return_when=asyncio.ALL_COMPLETED
) | 24.090909 | 52 | 0.611321 | 32 | 265 | 4.84375 | 0.625 | 0.232258 | 0.116129 | 0.219355 | 0.374194 | 0.374194 | 0 | 0 | 0 | 0 | 0 | 0.010471 | 0.279245 | 265 | 11 | 53 | 24.090909 | 0.801047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3e6e31e5bead6bba348d34bc9512dc903f0c7b09 | 304 | py | Python | src/zope/deferredimport/__init__.py | zopefoundation/zope.deferredimport | cee860773a434a5a94b8c466e3d4ef2764f30d25 | [
"ZPL-2.1"
] | 5 | 2015-07-10T07:12:05.000Z | 2019-08-05T08:38:05.000Z | src/zope/deferredimport/__init__.py | zopefoundation/zope.deferredimport | cee860773a434a5a94b8c466e3d4ef2764f30d25 | [
"ZPL-2.1"
] | 9 | 2015-02-01T18:08:43.000Z | 2021-12-10T08:15:11.000Z | src/zope/deferredimport/__init__.py | zopefoundation/zope.deferredimport | cee860773a434a5a94b8c466e3d4ef2764f30d25 | [
"ZPL-2.1"
] | 1 | 2015-04-03T08:37:15.000Z | 2015-04-03T08:37:15.000Z | from zope.deferredimport.deferredmodule import initialize
from zope.deferredimport.deferredmodule import define, defineFrom
from zope.deferredimport.deferredmodule import deprecated, deprecatedFrom
__all__ = (
'initialize',
'define',
'defineFrom',
'deprecated',
'deprecatedFrom',
)
| 23.384615 | 73 | 0.766447 | 26 | 304 | 8.807692 | 0.423077 | 0.104803 | 0.28821 | 0.471616 | 0.550218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148026 | 304 | 12 | 74 | 25.333333 | 0.88417 | 0 | 0 | 0 | 0 | 0 | 0.164474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e41886185a0b98d43bdf079ce8dc9b34d41f9d98 | 635 | py | Python | JD_Spider/items.py | Zhongzixin/JD_scrapy | 29c84fe7cd5a5af381c7199fb7ccecc6b9f198cc | [
"Apache-2.0"
] | null | null | null | JD_Spider/items.py | Zhongzixin/JD_scrapy | 29c84fe7cd5a5af381c7199fb7ccecc6b9f198cc | [
"Apache-2.0"
] | null | null | null | JD_Spider/items.py | Zhongzixin/JD_scrapy | 29c84fe7cd5a5af381c7199fb7ccecc6b9f198cc | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class JdSpiderItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
id = scrapy.Field()
title = scrap... | 22.678571 | 52 | 0.655118 | 82 | 635 | 5 | 0.52439 | 0.34878 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002004 | 0.214173 | 635 | 27 | 53 | 23.518519 | 0.819639 | 0.322835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e43853363eb475a99a7af068a701a0c62a1c5018 | 3,568 | py | Python | eventory/ext/inktory/pink/engine/story.py | siku2/Eventory | 8a88b3328ae83b369a185a1ea266031e9eef04e8 | [
"MIT"
] | 1 | 2018-04-06T00:34:46.000Z | 2018-04-06T00:34:46.000Z | eventory/ext/inktory/pink/engine/story.py | siku2/Eventory | 8a88b3328ae83b369a185a1ea266031e9eef04e8 | [
"MIT"
] | null | null | null | eventory/ext/inktory/pink/engine/story.py | siku2/Eventory | 8a88b3328ae83b369a185a1ea266031e9eef04e8 | [
"MIT"
] | null | null | null | from typing import List, TYPE_CHECKING
from .object import Object
from .json_serialisation import Json
import json
from .container import Container
from .pointer import Pointer
if TYPE_CHECKING:
from .choice import Choice
from .variables_state import VariablesState
from .list_definition_origin import List... | 30.495726 | 95 | 0.684697 | 430 | 3,568 | 5.395349 | 0.244186 | 0.065948 | 0.05819 | 0.031034 | 0.132328 | 0.096121 | 0.042672 | 0 | 0 | 0 | 0 | 0.001826 | 0.232623 | 3,568 | 117 | 96 | 30.495727 | 0.845508 | 0.001121 | 0 | 0.10989 | 0 | 0 | 0.03396 | 0 | 0 | 0 | 0 | 0.008547 | 0 | 1 | 0.241758 | false | 0.010989 | 0.131868 | 0.120879 | 0.582418 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
e45cf39b13665679619f7386ca387cd93ec5a23f | 1,335 | py | Python | _materials/first_assignment_examples/stoklosinski_caroline_python_assignment.py | jgadomski/is310-computing-humanities | 16871317dc823e43fec191d05045ea5cac952eb9 | [
"MIT"
] | 1 | 2022-01-31T18:45:08.000Z | 2022-01-31T18:45:08.000Z | _materials/first_assignment_examples/stoklosinski_caroline_python_assignment.py | jgadomski/is310-computing-humanities | 16871317dc823e43fec191d05045ea5cac952eb9 | [
"MIT"
] | null | null | null | _materials/first_assignment_examples/stoklosinski_caroline_python_assignment.py | jgadomski/is310-computing-humanities | 16871317dc823e43fec191d05045ea5cac952eb9 | [
"MIT"
] | 1 | 2022-02-22T18:14:37.000Z | 2022-02-22T18:14:37.000Z | import pandas as pd
new_dict = dict(
"Python"={
"2015" : 9
"2016" : 22
"2017" : 27
"2018" : 32
"2019" : 35
}, "JavaScript"={
"2015" : 8
"2016" : 18
"2017" : 12
"2018" : 6
"2019" : 15
}, "Twitter"={
"2015" : 10
... | 17.8 | 64 | 0.378277 | 148 | 1,335 | 3.331081 | 0.358108 | 0.099391 | 0.040568 | 0.040568 | 0.10142 | 0.10142 | 0 | 0 | 0 | 0 | 0 | 0.339189 | 0.445693 | 1,335 | 74 | 65 | 18.040541 | 0.327027 | 0 | 0 | 0.307692 | 0 | 0 | 0.204648 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.015385 | null | null | 0.061538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e477241c16f5c91f04bd772d24eea2a729f9b737 | 314 | py | Python | app/extensions.py | staneyffer/nini_ruan | 17675762debd99499dd08b3d63838b140082eb72 | [
"MIT"
] | 2 | 2018-05-06T08:32:36.000Z | 2018-07-24T17:18:17.000Z | app/extensions.py | staneyffer/nini_ruan | 17675762debd99499dd08b3d63838b140082eb72 | [
"MIT"
] | null | null | null | app/extensions.py | staneyffer/nini_ruan | 17675762debd99499dd08b3d63838b140082eb72 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*-coding: UTF-8 -*-
#from app.models.user import identity, authenticate
from flask_migrate import Migrate
migrate = Migrate()
from flask_jwt import JWT
from app.common.authentication import identity, authenticate
jwt=JWT(authentication_handler=authenticate, identity_handler=identity)
| 26.166667 | 71 | 0.802548 | 41 | 314 | 6.04878 | 0.487805 | 0.056452 | 0.209677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007092 | 0.101911 | 314 | 11 | 72 | 28.545455 | 0.87234 | 0.292994 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 3 |
e492bf90913aab7671cdb2374f6392f3fb5bec6e | 106 | py | Python | src/SemBrain/Drivers/__init__.py | trkelch/sem | 58abdbbaa8ac5f6b4e57b5f5ee890b3258203573 | [
"Unlicense"
] | null | null | null | src/SemBrain/Drivers/__init__.py | trkelch/sem | 58abdbbaa8ac5f6b4e57b5f5ee890b3258203573 | [
"Unlicense"
] | null | null | null | src/SemBrain/Drivers/__init__.py | trkelch/sem | 58abdbbaa8ac5f6b4e57b5f5ee890b3258203573 | [
"Unlicense"
] | null | null | null | #added to make sure Drivers directory gets built
class __init__(object):
"""description of class"""
| 17.666667 | 48 | 0.726415 | 14 | 106 | 5.214286 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179245 | 106 | 5 | 49 | 21.2 | 0.83908 | 0.641509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 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 | 0 | 0 | 0 | 3 |
e4bd8dd3444c35ab1bfa4bc9e7b76d7d264703df | 4,623 | py | Python | src/SIONVisitor.py | kamimura/py-sion | 69ee059f9fee2cb1e00aab1ee97638a88fc910ae | [
"MIT"
] | 1 | 2018-08-06T04:52:35.000Z | 2018-08-06T04:52:35.000Z | src/SIONVisitor.py | kamimura/py-sion | 69ee059f9fee2cb1e00aab1ee97638a88fc910ae | [
"MIT"
] | null | null | null | src/SIONVisitor.py | kamimura/py-sion | 69ee059f9fee2cb1e00aab1ee97638a88fc910ae | [
"MIT"
] | null | null | null | # Created by kamimura on 2018/07/21.
# Copyright © 2018 kamimura. All rights reserved.
# Generated from SION.g4 by ANTLR 4.7.1
from antlr4 import *
if __name__ is not None and "." in __name__:
from .SIONParser import SIONParser
else:
from SIONParser import SIONParser
import datetime
def num_rem_under(n):
... | 33.5 | 88 | 0.637465 | 650 | 4,623 | 4.364615 | 0.193846 | 0.143814 | 0.063447 | 0.114205 | 0.384209 | 0.35178 | 0.341206 | 0.313007 | 0.227353 | 0.11773 | 0 | 0.00961 | 0.257192 | 4,623 | 137 | 89 | 33.744526 | 0.816249 | 0.234263 | 0 | 0.202247 | 1 | 0 | 0.00657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.213483 | false | 0 | 0.044944 | 0.101124 | 0.483146 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
e4cb33629c7d44695751231ec49505009e1cc62a | 161 | py | Python | Python_Fundamentals/04_Lambda_Functions_And_Exercise/task_lists/09_largest_n_items.py | Dochko0/Python | e9612c4e842cfd3d9a733526cc7485765ef2238f | [
"MIT"
] | null | null | null | Python_Fundamentals/04_Lambda_Functions_And_Exercise/task_lists/09_largest_n_items.py | Dochko0/Python | e9612c4e842cfd3d9a733526cc7485765ef2238f | [
"MIT"
] | null | null | null | Python_Fundamentals/04_Lambda_Functions_And_Exercise/task_lists/09_largest_n_items.py | Dochko0/Python | e9612c4e842cfd3d9a733526cc7485765ef2238f | [
"MIT"
] | null | null | null | num_list = list(map(int, input().split()))
num_list.sort()
num_list.reverse()
items = int(input())
print(' '.join(str(num_list[x]) for x in range (0, items))) | 20.125 | 59 | 0.658385 | 28 | 161 | 3.642857 | 0.607143 | 0.27451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007042 | 0.118012 | 161 | 8 | 59 | 20.125 | 0.711268 | 0 | 0 | 0 | 0 | 0 | 0.006173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
900cb687f2cd929a56e49f50c72830524b7b12cd | 142 | py | Python | py/redis/etcd_client.py | mabotech/mabo.io | 7f646db9d5ee3cd0b137866bf8eaf295890f134c | [
"MIT"
] | null | null | null | py/redis/etcd_client.py | mabotech/mabo.io | 7f646db9d5ee3cd0b137866bf8eaf295890f134c | [
"MIT"
] | null | null | null | py/redis/etcd_client.py | mabotech/mabo.io | 7f646db9d5ee3cd0b137866bf8eaf295890f134c | [
"MIT"
] | 1 | 2021-01-30T01:47:01.000Z | 2021-01-30T01:47:01.000Z |
# pip install python-etcd --no-deps
# pip install urllib3 --no-deps
import etcd
client = etcd.Client()
print client.read('/mi/tag').value | 14.2 | 35 | 0.704225 | 22 | 142 | 4.545455 | 0.636364 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008264 | 0.147887 | 142 | 10 | 36 | 14.2 | 0.818182 | 0.443662 | 0 | 0 | 0 | 0 | 0.093333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.333333 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
900e67182a6823787d4cddba9ac757044119b068 | 9,429 | py | Python | twoPlayers.py | msr0b0t/Scrabble | fa88b085d63e557b0047b953a08ea4d5bcce7b1f | [
"MIT"
] | null | null | null | twoPlayers.py | msr0b0t/Scrabble | fa88b085d63e557b0047b953a08ea4d5bcce7b1f | [
"MIT"
] | null | null | null | twoPlayers.py | msr0b0t/Scrabble | fa88b085d63e557b0047b953a08ea4d5bcce7b1f | [
"MIT"
] | null | null | null | import mylib as m
from datetime import datetime
# κώδικας για παιχνίδι με δύο παίκτες
def scrabble():
print('\nΑρχή παιχνιδιού\n')
name1 = input('Όνομα πρώτου παίκτη: ')
name2 = input('Όνομα δεύτερου παίκτη: ')
print()
# παιχνίδι
m.makeFile()
sak = m.SakClass()
player1 = m.Player(na... | 48.353846 | 123 | 0.464524 | 916 | 9,429 | 4.781659 | 0.21179 | 0.054795 | 0.015982 | 0.016438 | 0.746119 | 0.720091 | 0.710046 | 0.683562 | 0.683562 | 0.66621 | 0 | 0.018185 | 0.3993 | 9,429 | 194 | 124 | 48.603093 | 0.75512 | 0.209672 | 0 | 0.634483 | 0 | 0 | 0.1802 | 0.074454 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006897 | false | 0.013793 | 0.013793 | 0 | 0.02069 | 0.151724 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
901e06f03959ff94f05fe1115daad90a50d6e1c5 | 107 | py | Python | main.py | SpiralDevelopment/Bitmex-to-Telegram | 88cc8cdba9abb7fdd2eb99dc714cff61c3d5dcb4 | [
"MIT"
] | 2 | 2021-09-17T09:23:58.000Z | 2021-10-03T17:02:46.000Z | main.py | SpiralDevelopment/Bitmex-to-Telegram | 88cc8cdba9abb7fdd2eb99dc714cff61c3d5dcb4 | [
"MIT"
] | null | null | null | main.py | SpiralDevelopment/Bitmex-to-Telegram | 88cc8cdba9abb7fdd2eb99dc714cff61c3d5dcb4 | [
"MIT"
] | 2 | 2020-08-19T09:07:26.000Z | 2021-11-11T09:41:47.000Z | from bot_manager import TelegramBot
bot_mgr = TelegramBot()
if bot_mgr.is_initialized:
bot_mgr.run()
| 15.285714 | 35 | 0.775701 | 16 | 107 | 4.875 | 0.625 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149533 | 107 | 6 | 36 | 17.833333 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9025276e73ec9bac11980e29e4f4c2d8ae748669 | 1,643 | py | Python | codenode/frontend/backend/fixtures/development.py | deldotdr/codenode | 90e615dc1300cc0e4ca696bb5a12442a66cd969d | [
"BSD-3-Clause"
] | 14 | 2015-01-16T11:15:29.000Z | 2021-08-28T09:35:57.000Z | codenode/frontend/backend/fixtures/development.py | deldotdr/codenode | 90e615dc1300cc0e4ca696bb5a12442a66cd969d | [
"BSD-3-Clause"
] | 2 | 2015-10-22T16:35:18.000Z | 2017-06-20T07:43:31.000Z | codenode/frontend/backend/fixtures/development.py | deldotdr/codenode | 90e615dc1300cc0e4ca696bb5a12442a66cd969d | [
"BSD-3-Clause"
] | 3 | 2017-08-20T13:02:47.000Z | 2020-10-01T07:22:09.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file has been automatically generated, changes may be lost if you
# go and generate it again. It was generated with the following command:
# ./manage.py dumpscript
import datetime
from decimal import Decimal
from django.contrib.contenttypes.models import ContentTyp... | 33.530612 | 81 | 0.731589 | 229 | 1,643 | 5.026201 | 0.423581 | 0.083406 | 0.093831 | 0.028671 | 0.170287 | 0.119896 | 0.076455 | 0.076455 | 0 | 0 | 0 | 0.070475 | 0.17955 | 1,643 | 49 | 82 | 33.530612 | 0.783383 | 0.125989 | 0 | 0.0625 | 1 | 0 | 0.15014 | 0.035615 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.0625 | 0.1875 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
9049712faffae37b17c65d107b5abd2cc7717bec | 893 | py | Python | cms/publications/migrations/0005_auto_20201117_1319.py | rkhleics/nhs-ei.website | 9968916a5c442a2b33003f8a48b238df53ebded0 | [
"MIT"
] | 1 | 2021-02-04T13:20:31.000Z | 2021-02-04T13:20:31.000Z | cms/publications/migrations/0005_auto_20201117_1319.py | rkhleics/nhs-ei.website | 9968916a5c442a2b33003f8a48b238df53ebded0 | [
"MIT"
] | 77 | 2020-11-29T23:10:16.000Z | 2022-03-23T11:47:51.000Z | cms/publications/migrations/0005_auto_20201117_1319.py | rkhleics/nhs-ei.website | 9968916a5c442a2b33003f8a48b238df53ebded0 | [
"MIT"
] | 3 | 2021-03-19T09:23:59.000Z | 2021-08-31T21:49:36.000Z | # Generated by Django 3.1.2 on 2020-11-17 13:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('publications', '0004_publicationcategoryrelationship'),
]
operations = [
migrations.AddField(
model_name='publication',
... | 26.264706 | 65 | 0.567749 | 81 | 893 | 6.17284 | 0.481481 | 0.144 | 0.184 | 0.216 | 0.62 | 0.62 | 0.536 | 0.404 | 0.404 | 0.296 | 0 | 0.031199 | 0.318029 | 893 | 33 | 66 | 27.060606 | 0.789819 | 0.050392 | 0 | 0.592593 | 1 | 0 | 0.13948 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5f4102fc09cada4da9b24047539dba00df9f320e | 4,007 | py | Python | ievv_opensource/ievv_sms/phone_number_handler.py | appressoas/ievv_opensource | 63e87827952ddc8f6f86145b79478ef21d6a0990 | [
"BSD-3-Clause"
] | null | null | null | ievv_opensource/ievv_sms/phone_number_handler.py | appressoas/ievv_opensource | 63e87827952ddc8f6f86145b79478ef21d6a0990 | [
"BSD-3-Clause"
] | 37 | 2015-10-26T09:14:12.000Z | 2022-02-10T10:35:33.000Z | ievv_opensource/ievv_sms/phone_number_handler.py | appressoas/ievv_opensource | 63e87827952ddc8f6f86145b79478ef21d6a0990 | [
"BSD-3-Clause"
] | 1 | 2015-11-06T07:56:34.000Z | 2015-11-06T07:56:34.000Z | import re
from django.conf import settings
from django.utils.module_loading import import_string
class BasePhoneNumberHandler:
STRIP_WHITESPACE_PATTERN = re.compile(r'(\s|-)+')
def __init__(self, phone_number, country_calling_code=None):
self.raw_phone_number = phone_number or ''
self._count... | 35.149123 | 105 | 0.681308 | 507 | 4,007 | 4.996055 | 0.201183 | 0.212791 | 0.09396 | 0.087248 | 0.478089 | 0.399131 | 0.3182 | 0.266088 | 0.097908 | 0.060797 | 0 | 0.010184 | 0.240329 | 4,007 | 113 | 106 | 35.460177 | 0.821945 | 0.174694 | 0 | 0.31746 | 0 | 0 | 0.04512 | 0.03904 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206349 | false | 0 | 0.063492 | 0.031746 | 0.650794 | 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 | 0 | 1 | 0 | 0 | 3 |
5f42f4b3d94df8ab4be68a26a6706c16fca73dc1 | 1,288 | py | Python | home/admin.py | nurpeiis/RED | 0e1f61488f79283749ec11b5d0e5b066dd02bd68 | [
"MIT"
] | null | null | null | home/admin.py | nurpeiis/RED | 0e1f61488f79283749ec11b5d0e5b066dd02bd68 | [
"MIT"
] | 12 | 2019-02-03T07:54:32.000Z | 2022-03-11T23:33:19.000Z | home/admin.py | nurpeiis/RED | 0e1f61488f79283749ec11b5d0e5b066dd02bd68 | [
"MIT"
] | 2 | 2018-12-28T11:38:17.000Z | 2019-09-11T22:45:04.000Z | from django.contrib import admin
from mptt.admin import MPTTModelAdmin
from home.models import BigSection, SubSection, Project, StepOneInterest, Team
# Register your models here.
class BigSectionAdmin(admin.ModelAdmin):
list_display = ('name', 'description')
def description(self, obj):
return obj.descri... | 35.777778 | 78 | 0.745342 | 138 | 1,288 | 6.884058 | 0.268116 | 0.094737 | 0.12 | 0.164211 | 0.531579 | 0.531579 | 0.531579 | 0.531579 | 0.531579 | 0.531579 | 0 | 0 | 0.14441 | 1,288 | 35 | 79 | 36.8 | 0.862069 | 0.020186 | 0 | 0.566667 | 0 | 0 | 0.102462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.1 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5f4d99502975a5302d8c980f337be43d6b5a49dd | 17 | py | Python | packages/pyright-scip/snapshots/input/file_from_module_import/xyz/nested_file.py | sourcegraph/pyright | f6a94a47f7e61172fd108ee9a4c62f748e1d24af | [
"MIT"
] | null | null | null | packages/pyright-scip/snapshots/input/file_from_module_import/xyz/nested_file.py | sourcegraph/pyright | f6a94a47f7e61172fd108ee9a4c62f748e1d24af | [
"MIT"
] | 19 | 2022-03-17T03:20:34.000Z | 2022-03-31T02:53:12.000Z | packages/pyright-scip/snapshots/input/file_from_module_import/xyz/nested_file.py | sourcegraph/pyright | f6a94a47f7e61172fd108ee9a4c62f748e1d24af | [
"MIT"
] | null | null | null | X = "a constant"
| 8.5 | 16 | 0.588235 | 3 | 17 | 3.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 17 | 1 | 17 | 17 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0.588235 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5f50743b757e04ddd36a99af92975cbae6569e4d | 344 | py | Python | yagmail/utils.py | york-schlabrendorff-liqid/yagmail | f24af871c670c29f30c34ef2a4ab5abc3b17d005 | [
"MIT"
] | 2,431 | 2015-05-01T14:28:02.000Z | 2022-03-31T20:02:22.000Z | yagmail/utils.py | york-schlabrendorff-liqid/yagmail | f24af871c670c29f30c34ef2a4ab5abc3b17d005 | [
"MIT"
] | 216 | 2015-04-20T05:41:36.000Z | 2022-03-30T21:53:35.000Z | yagmail/utils.py | york-schlabrendorff-liqid/yagmail | f24af871c670c29f30c34ef2a4ab5abc3b17d005 | [
"MIT"
] | 310 | 2015-06-22T23:42:22.000Z | 2022-03-22T07:48:49.000Z | import os
class raw(str):
""" Ensure that a string is treated as text and will not receive 'magic'. """
pass
class inline(str):
""" Only needed when wanting to inline an image rather than attach it """
pass
def find_user_home_path():
with open(os.path.expanduser("~/.yagmail")) as f:
... | 18.105263 | 81 | 0.642442 | 52 | 344 | 4.192308 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235465 | 344 | 18 | 82 | 19.111111 | 0.828897 | 0.395349 | 0 | 0.25 | 0 | 0 | 0.051546 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0.25 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5f76c7dc4dbff7eb989dd915f104263c61d892ba | 300 | py | Python | mautrix/client/state_store/__init__.py | tulir/mautrix-appservice-python | d180603445bb0bc465a7b2ff918c4ac28a5dbfc2 | [
"MIT"
] | 1 | 2018-08-24T13:33:30.000Z | 2018-08-24T13:33:30.000Z | mautrix/client/state_store/__init__.py | tulir/mautrix-appservice-python | d180603445bb0bc465a7b2ff918c4ac28a5dbfc2 | [
"MIT"
] | 4 | 2018-07-10T11:43:46.000Z | 2018-09-03T22:08:02.000Z | mautrix/client/state_store/__init__.py | tulir/mautrix-appservice-python | d180603445bb0bc465a7b2ff918c4ac28a5dbfc2 | [
"MIT"
] | 2 | 2018-07-03T04:07:08.000Z | 2018-09-10T03:13:59.000Z | from .abstract import StateStore
from .file import FileStateStore
from .memory import MemoryStateStore
from .sync import MemorySyncStore, SyncStore
__all__ = [
"StateStore",
"FileStateStore",
"MemoryStateStore",
"MemorySyncStore",
"SyncStore",
"asyncpg",
"sqlalchemy",
]
| 20 | 44 | 0.713333 | 25 | 300 | 8.4 | 0.56 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19 | 300 | 14 | 45 | 21.428571 | 0.864198 | 0 | 0 | 0 | 0 | 0 | 0.27 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5f79bb305803568a8bb5f88b2090fe20fa38dfa3 | 431 | py | Python | django_analyses/filters/output/__init__.py | TheLabbingProject/django_analyses | 08cac40a32754a265b37524f08ec6160c69ebea8 | [
"Apache-2.0"
] | 1 | 2020-12-30T12:43:34.000Z | 2020-12-30T12:43:34.000Z | django_analyses/filters/output/__init__.py | TheLabbingProject/django_analyses | 08cac40a32754a265b37524f08ec6160c69ebea8 | [
"Apache-2.0"
] | 59 | 2019-12-25T13:14:56.000Z | 2021-07-22T12:24:46.000Z | django_analyses/filters/output/__init__.py | TheLabbingProject/django_analyses | 08cac40a32754a265b37524f08ec6160c69ebea8 | [
"Apache-2.0"
] | 2 | 2020-05-24T06:44:27.000Z | 2020-07-09T15:47:31.000Z | """
Filters for the :class:`~django_analyses.models.output.output.Output` and
:class:`~django_analyses.models.output.definitions.output_definition.OutputDefinition`
subclasses.
"""
from django_analyses.filters.output.output import OutputFilter
from django_analyses.filters.output.output_definition import \
OutputDe... | 35.916667 | 86 | 0.839907 | 47 | 431 | 7.531915 | 0.404255 | 0.19774 | 0.152542 | 0.211864 | 0.488701 | 0.313559 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074246 | 431 | 11 | 87 | 39.181818 | 0.887218 | 0.399072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5fbf030e1e5958a36e4938ad62e36102452c6755 | 193 | py | Python | ed/l/python/examples/async/semaphore.py | cn007b/stash | bae604d3056f09b9b6c6b3e0282f02c829801f5c | [
"MIT"
] | null | null | null | ed/l/python/examples/async/semaphore.py | cn007b/stash | bae604d3056f09b9b6c6b3e0282f02c829801f5c | [
"MIT"
] | null | null | null | ed/l/python/examples/async/semaphore.py | cn007b/stash | bae604d3056f09b9b6c6b3e0282f02c829801f5c | [
"MIT"
] | 1 | 2021-11-26T05:40:08.000Z | 2021-11-26T05:40:08.000Z | import asyncio
async def f1():
s = asyncio.Semaphore(value=2)
await s.acquire()
print(1)
await s.acquire()
print(2)
await s.acquire()
print(3)
asyncio.run(f1())
| 12.866667 | 34 | 0.595855 | 28 | 193 | 4.107143 | 0.535714 | 0.156522 | 0.33913 | 0.469565 | 0.330435 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041958 | 0.259067 | 193 | 14 | 35 | 13.785714 | 0.762238 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.3 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5fd4c9e992478f7af2ae2f9c7c6a0562541c6cc4 | 728 | py | Python | modules/eme_utils/__module__.py | oboforty/metaindex | 290d6b581fb1c074e28d42dc750ab878585e2eb2 | [
"MIT"
] | null | null | null | modules/eme_utils/__module__.py | oboforty/metaindex | 290d6b581fb1c074e28d42dc750ab878585e2eb2 | [
"MIT"
] | null | null | null | modules/eme_utils/__module__.py | oboforty/metaindex | 290d6b581fb1c074e28d42dc750ab878585e2eb2 | [
"MIT"
] | null | null | null | import os
import sys
from eme.entities import load_handlers, load_settings
from .services.error_reporting import init_ws
from .services.jinja_helpers import init_jinja
from .services.mail import init_mail
module_path = os.path.dirname(os.path.realpath(__file__))
conf = load_settings(os.path.join(module_p... | 20.8 | 99 | 0.715659 | 106 | 728 | 4.679245 | 0.367925 | 0.070565 | 0.040323 | 0.064516 | 0.080645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173077 | 728 | 34 | 100 | 21.411765 | 0.82392 | 0 | 0 | 0.1 | 0 | 0 | 0.041787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.1 | 0.3 | 0 | 0.55 | 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 | 0 | 1 | 0 | 0 | 3 |
396d65e3ba30fada2d89d91ce36be32638cde0c2 | 506 | py | Python | test/test_steps.py | kdelee/ansible-builder | 07cee927efca220ad17f66bba6fb4a42d9c09953 | [
"Apache-2.0"
] | null | null | null | test/test_steps.py | kdelee/ansible-builder | 07cee927efca220ad17f66bba6fb4a42d9c09953 | [
"Apache-2.0"
] | null | null | null | test/test_steps.py | kdelee/ansible-builder | 07cee927efca220ad17f66bba6fb4a42d9c09953 | [
"Apache-2.0"
] | null | null | null | from ansible_builder.steps import PipSteps
def test_steps_for_collection_dependencies():
assert list(PipSteps(None, [
'test/metadata/my-requirements.txt',
'test/reqfile/requirements.txt'
])) == [
'\n'.join([
'RUN pip3 install \\',
' -r /usr/share/ansible/coll... | 33.733333 | 109 | 0.636364 | 53 | 506 | 5.943396 | 0.528302 | 0.190476 | 0.088889 | 0.165079 | 0.48254 | 0.311111 | 0.311111 | 0.311111 | 0 | 0 | 0 | 0.002564 | 0.229249 | 506 | 14 | 110 | 36.142857 | 0.805128 | 0 | 0 | 0 | 0 | 0.083333 | 0.521739 | 0.44664 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.083333 | true | 0 | 0.083333 | 0 | 0.166667 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
39a5b366e5ac44c0e03e12cde5c2bb3b7bd59b8e | 567 | py | Python | packages/reporting-server/parsers/log_type_parser.py | baviera08/romi-dashboard | ac3a15014ad3c3bdac523a6550934a06653cfba1 | [
"Apache-2.0"
] | 23 | 2021-04-13T23:01:12.000Z | 2022-03-21T02:15:24.000Z | packages/reporting-server/parsers/log_type_parser.py | baviera08/romi-dashboard | ac3a15014ad3c3bdac523a6550934a06653cfba1 | [
"Apache-2.0"
] | 326 | 2021-03-10T17:32:17.000Z | 2022-03-30T04:42:14.000Z | packages/reporting-server/parsers/log_type_parser.py | baviera08/romi-dashboard | ac3a15014ad3c3bdac523a6550934a06653cfba1 | [
"Apache-2.0"
] | 13 | 2021-04-10T10:33:36.000Z | 2022-02-22T15:39:58.000Z | from models.tortoise_models.raw_log import LogLevel
def get_log_type(fullstring, stream_type="stdout"):
if "critical" in fullstring.lower():
return LogLevel.CRITICAL
elif "error" in fullstring.lower():
return LogLevel.ERROR
elif "warn" in fullstring.lower():
return LogLevel.WARN
... | 28.35 | 51 | 0.659612 | 67 | 567 | 5.492537 | 0.373134 | 0.266304 | 0.230978 | 0.3125 | 0.421196 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248677 | 567 | 19 | 52 | 29.842105 | 0.86385 | 0 | 0 | 0.25 | 0 | 0 | 0.067019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.5625 | 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 | 0 | 0 | 0 | 3 |
39f4cf833c03aa3daa306988dc92b0f8848cdb0e | 3,209 | py | Python | IMP Proportions/Compare Caps Median Sans.py | andrestelex/Impallari-Fontlab-Macros | ed9f57715dd376b513ce1a7ddb4d683e893a849b | [
"Apache-2.0"
] | 10 | 2015-02-25T11:38:56.000Z | 2020-11-19T22:47:08.000Z | IMP Proportions/Compare Caps Median Sans.py | andrestelex/Impallari-Fontlab-Macros | ed9f57715dd376b513ce1a7ddb4d683e893a849b | [
"Apache-2.0"
] | 3 | 2015-06-24T05:03:06.000Z | 2016-07-28T00:37:31.000Z | IMP Proportions/Compare Caps Median Sans.py | andrestelex/Impallari-Fontlab-Macros | ed9f57715dd376b513ce1a7ddb4d683e893a849b | [
"Apache-2.0"
] | 5 | 2017-04-20T11:09:47.000Z | 2021-05-19T22:17:53.000Z | #FLM: Compare Proportions Caps to Median Sans
# Description:
# Compare Caps Proportions to Median Sans Serif
# Credits:
# Pablo Impallari
# http://www.impallari.com
from robofab.world import CurrentFont
from robofab.interface.all.dialogs import Message
def compare_to_median(g, new_width):
g.clearVGuides()
g.c... | 27.194915 | 59 | 0.693986 | 584 | 3,209 | 3.532534 | 0.200342 | 0.112458 | 0.196316 | 0.201648 | 0.29714 | 0.030538 | 0.030538 | 0 | 0 | 0 | 0 | 0.064272 | 0.175756 | 3,209 | 118 | 60 | 27.194915 | 0.71569 | 0.100031 | 0 | 0 | 0 | 0 | 0.01617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.021277 | null | null | 0.287234 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
840e6de27700b3a5a2d9500503e07bd48a999ef0 | 61 | py | Python | PythonCode/1059.py | CrystianPrintes20/ProjetoUri | 92a88ae2671a556f4d418c3605e9a2c6933dc9d8 | [
"MIT"
] | null | null | null | PythonCode/1059.py | CrystianPrintes20/ProjetoUri | 92a88ae2671a556f4d418c3605e9a2c6933dc9d8 | [
"MIT"
] | null | null | null | PythonCode/1059.py | CrystianPrintes20/ProjetoUri | 92a88ae2671a556f4d418c3605e9a2c6933dc9d8 | [
"MIT"
] | null | null | null | #Questão: Numeroa Pares
for i in range(2,101,2):
print(i) | 20.333333 | 24 | 0.672131 | 12 | 61 | 3.416667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.180328 | 61 | 3 | 25 | 20.333333 | 0.72 | 0.360656 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
8413981b37355b12e23223a335acdce6eea93777 | 821 | py | Python | todo_app/migrations/0021_auto_20190805_1325.py | guluzadef/Instaexample | 9c74a3e3ac8b523bbccd0e2e6c769c40bf6b3406 | [
"MIT"
] | 2 | 2019-08-21T15:45:56.000Z | 2019-08-21T15:45:59.000Z | todo_app/migrations/0021_auto_20190805_1325.py | guluzadef/Instaexample | 9c74a3e3ac8b523bbccd0e2e6c769c40bf6b3406 | [
"MIT"
] | null | null | null | todo_app/migrations/0021_auto_20190805_1325.py | guluzadef/Instaexample | 9c74a3e3ac8b523bbccd0e2e6c769c40bf6b3406 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.3 on 2019-08-05 13:25
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('todo_app', '0020_remove_profile_slug'),
]
operations = [
migrations.RenameField(
model_name='profile',
old_name='Backgroundp... | 24.147059 | 49 | 0.54933 | 73 | 821 | 5.958904 | 0.465753 | 0.193103 | 0.23908 | 0.275862 | 0.404598 | 0.404598 | 0.404598 | 0 | 0 | 0 | 0 | 0.035185 | 0.342266 | 821 | 33 | 50 | 24.878788 | 0.77037 | 0.054811 | 0 | 0.444444 | 1 | 0 | 0.18863 | 0.031008 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
84149c7936d0e313fdded001d418f6adb57072fb | 81 | py | Python | ExerciciosdePython/ex025.py | aleksandromelo/Exercicios | 782ff539efa1286180eaf8df8c25c4eca7a5e669 | [
"MIT"
] | null | null | null | ExerciciosdePython/ex025.py | aleksandromelo/Exercicios | 782ff539efa1286180eaf8df8c25c4eca7a5e669 | [
"MIT"
] | null | null | null | ExerciciosdePython/ex025.py | aleksandromelo/Exercicios | 782ff539efa1286180eaf8df8c25c4eca7a5e669 | [
"MIT"
] | null | null | null | n = str(input('Qual é seu nome completo? ')).strip()
print('SILVA' in n.upper())
| 27 | 52 | 0.641975 | 14 | 81 | 3.714286 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135802 | 81 | 2 | 53 | 40.5 | 0.742857 | 0 | 0 | 0 | 0 | 0 | 0.382716 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
8442c0697c7c728fc5a077d27c593876626cb40d | 10,420 | py | Python | src/ralph_pricing/migrations/0005_auto__add_splunkname__add_unique_splunkname_splunk_name_pricing_device.py | zefciu/ralph_pricing | f3c9e23b36331ec0ab464afd08fcab5f96921c1e | [
"Apache-2.0"
] | null | null | null | src/ralph_pricing/migrations/0005_auto__add_splunkname__add_unique_splunkname_splunk_name_pricing_device.py | zefciu/ralph_pricing | f3c9e23b36331ec0ab464afd08fcab5f96921c1e | [
"Apache-2.0"
] | null | null | null | src/ralph_pricing/migrations/0005_auto__add_splunkname__add_unique_splunkname_splunk_name_pricing_device.py | zefciu/ralph_pricing | f3c9e23b36331ec0ab464afd08fcab5f96921c1e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'SplunkName'
db.create_table('ralph_pricing_splunkname', (
('id', self.gf('django... | 72.867133 | 228 | 0.579559 | 1,108 | 10,420 | 5.295126 | 0.109206 | 0.092722 | 0.159877 | 0.228396 | 0.790694 | 0.755071 | 0.702403 | 0.650929 | 0.588035 | 0.545764 | 0 | 0.007923 | 0.188484 | 10,420 | 143 | 229 | 72.867133 | 0.685904 | 0.034261 | 0 | 0.266667 | 0 | 0.008333 | 0.568132 | 0.311816 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0 | 0.033333 | 0 | 0.075 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
84506564a35755b4134567d0f6fefc4bb0f8943b | 74 | py | Python | wf_auto/__init__.py | SWERecker/wf-auto | 1f7706c2f51aebdefe8791e50a1a894523882baf | [
"MIT"
] | null | null | null | wf_auto/__init__.py | SWERecker/wf-auto | 1f7706c2f51aebdefe8791e50a1a894523882baf | [
"MIT"
] | null | null | null | wf_auto/__init__.py | SWERecker/wf-auto | 1f7706c2f51aebdefe8791e50a1a894523882baf | [
"MIT"
] | null | null | null | __all__ = ['pos', 'bark', 'device', 'util']
print("----按下Ctrl+C停止----")
| 24.666667 | 44 | 0.513514 | 8 | 74 | 4.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121622 | 74 | 2 | 45 | 37 | 0.523077 | 0 | 0 | 0 | 0 | 0 | 0.486111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
8451586dee84c00275924adedaf4768868d97bec | 231 | py | Python | main.py | tier4/autoware-documentation | 1943f9b4416ef75098b52c4fcfd64343459a0236 | [
"Apache-2.0"
] | null | null | null | main.py | tier4/autoware-documentation | 1943f9b4416ef75098b52c4fcfd64343459a0236 | [
"Apache-2.0"
] | 6 | 2022-02-10T10:54:13.000Z | 2022-03-16T09:12:16.000Z | main.py | tier4/autoware-documentation | 1943f9b4416ef75098b52c4fcfd64343459a0236 | [
"Apache-2.0"
] | null | null | null | import urllib
def define_env(env):
@env.filter
def drawio(image_path):
image_url = urllib.parse.quote(f"{env.conf['site_url']}{image_path}", "")
return f"https://app.diagrams.net/?lightbox=1#U{image_url}"
| 25.666667 | 81 | 0.658009 | 35 | 231 | 4.171429 | 0.657143 | 0.082192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005208 | 0.168831 | 231 | 8 | 82 | 28.875 | 0.755208 | 0 | 0 | 0 | 0 | 0 | 0.359307 | 0.147186 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ffbfcb2901b933a9abdd55a7d091dd58508d3dd0 | 4,274 | py | Python | src/graficas.py | AntonioCheca/tfg | f72ae8b89245ae4408de66787ee91d6263e88e73 | [
"CC0-1.0"
] | null | null | null | src/graficas.py | AntonioCheca/tfg | f72ae8b89245ae4408de66787ee91d6263e88e73 | [
"CC0-1.0"
] | null | null | null | src/graficas.py | AntonioCheca/tfg | f72ae8b89245ae4408de66787ee91d6263e88e73 | [
"CC0-1.0"
] | null | null | null | import matplotlib.pyplot as plt
import math
import numpy as np
def Read_Two_Column_File(file_name):
with open(file_name, 'r') as data:
x = []
y = []
for line in data:
p = line.split()
x.append(float(p[0]))
y.append(float(p[1]))
return x, y
x,y = Rea... | 36.844828 | 142 | 0.720402 | 883 | 4,274 | 3.16761 | 0.0906 | 0.021452 | 0.057204 | 0.103325 | 0.870576 | 0.838041 | 0.776904 | 0.666786 | 0.522703 | 0.470147 | 0 | 0.004751 | 0.113477 | 4,274 | 115 | 143 | 37.165217 | 0.733439 | 0.004445 | 0 | 0.375 | 0 | 0 | 0.347601 | 0.074083 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010417 | false | 0 | 0.03125 | 0 | 0.052083 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ffc26b4193b48ca80024545f24db59b357763a28 | 240 | py | Python | issuelab/base/comment.py | tafilz/youtrack-to-gitlab | b324ecfc5cf85c62d3b453fed30f4ef2c67c87bb | [
"MIT"
] | null | null | null | issuelab/base/comment.py | tafilz/youtrack-to-gitlab | b324ecfc5cf85c62d3b453fed30f4ef2c67c87bb | [
"MIT"
] | 4 | 2020-08-25T18:39:57.000Z | 2020-08-25T18:45:02.000Z | issuelab/base/comment.py | tafilz/youtrack-to-gitlab | b324ecfc5cf85c62d3b453fed30f4ef2c67c87bb | [
"MIT"
] | null | null | null | from pydantic import BaseModel
from typing import List
from .user import User
from .attachment import Attachment
class Comment(BaseModel):
author: User
text: str
attachments: List[Attachment] = []
created_at: float = None | 20 | 38 | 0.7375 | 30 | 240 | 5.866667 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 240 | 12 | 39 | 20 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.444444 | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ffc79125a0b60942ce6b586a29cc5c604f59a803 | 1,100 | py | Python | examples/hero3_tests.py | knlklabacka/gopro-py-api | 2c08bec317f1080fe7c9b702816ed7c6c518e15b | [
"MIT"
] | 1 | 2019-05-07T14:59:01.000Z | 2019-05-07T14:59:01.000Z | examples/hero3_tests.py | rsumner31/gopro-py-api | 5cf19e48ab81367f08f1b0a00825588ed8902f46 | [
"MIT"
] | 1 | 2018-11-07T09:29:31.000Z | 2018-11-07T12:10:41.000Z | examples/hero3_tests.py | rsumner31/gopro-py-api | 5cf19e48ab81367f08f1b0a00825588ed8902f46 | [
"MIT"
] | null | null | null | from goprocam import GoProCamera
from goprocam import constants
gpCam = GoProCamera.GoPro(constants.auth)
gpCam.infoCamera("model_name")
if gpCam.getStatus(constants.Hero3Status.Mode) == 00:
print("videomode")
gpCam.getStatus(constants.Hero3Status.SpotMeter)
gpCam.getStatus(constants.Hero3Status.TimeLapseInterval)
... | 37.931034 | 56 | 0.861818 | 116 | 1,100 | 8.163793 | 0.310345 | 0.280887 | 0.461457 | 0.682154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019811 | 0.036364 | 1,100 | 28 | 57 | 39.285714 | 0.873585 | 0 | 0 | 0 | 0 | 0 | 0.017273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.041667 | 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 | 0 | 0 | 3 |
ffdbb3222d9f2281d14a4aa76ecd09c236d429d2 | 259 | py | Python | C/OS/Kernel/Terminal.py | x-channel/K-SET-OS | a85ddc21df323dbb03e709aa2e0681ad79d56295 | [
"MIT"
] | null | null | null | C/OS/Kernel/Terminal.py | x-channel/K-SET-OS | a85ddc21df323dbb03e709aa2e0681ad79d56295 | [
"MIT"
] | null | null | null | C/OS/Kernel/Terminal.py | x-channel/K-SET-OS | a85ddc21df323dbb03e709aa2e0681ad79d56295 | [
"MIT"
] | null | null | null | import threading
class Saida(threading.Thread):
def __init__(self):
threading.Thread.__init__(self, name="Terminal Saida")
self.nome = "Terminal Saida"
def saida(self, processo, id, valor):
print(processo, id, ":", valor) | 28.777778 | 62 | 0.644788 | 30 | 259 | 5.3 | 0.5 | 0.188679 | 0.188679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227799 | 259 | 9 | 63 | 28.777778 | 0.795 | 0 | 0 | 0 | 0 | 0 | 0.111538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 0.142857 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fff7b66b2a0cd1fa2302cd722d55398d6b8ec1b1 | 212 | py | Python | bin/store_pass.py | vconstellation/steam-forum-scraper | 8d6311dafc40b3cba943bf06242cec63b8d7aa1d | [
"MIT"
] | null | null | null | bin/store_pass.py | vconstellation/steam-forum-scraper | 8d6311dafc40b3cba943bf06242cec63b8d7aa1d | [
"MIT"
] | null | null | null | bin/store_pass.py | vconstellation/steam-forum-scraper | 8d6311dafc40b3cba943bf06242cec63b8d7aa1d | [
"MIT"
] | null | null | null | import keyring
from getpass import getpass
def set_pass():
login = input("Please input full email address: ")
password = getpass()
keyring.set_password("scraper", login, password)
return login
| 19.272727 | 54 | 0.707547 | 26 | 212 | 5.692308 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20283 | 212 | 10 | 55 | 21.2 | 0.87574 | 0 | 0 | 0 | 0 | 0 | 0.188679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.571429 | 0.285714 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
080a9cc18bcc2b6a82fe4a57690f09e15429141e | 250 | py | Python | mainapp/tests.py | mmiyaji/Dansible | 06d5ea1fce1345388e7101db33f23e6460e3c3cf | [
"MIT"
] | null | null | null | mainapp/tests.py | mmiyaji/Dansible | 06d5ea1fce1345388e7101db33f23e6460e3c3cf | [
"MIT"
] | null | null | null | mainapp/tests.py | mmiyaji/Dansible | 06d5ea1fce1345388e7101db33f23e6460e3c3cf | [
"MIT"
] | null | null | null | from django.test import TestCase
from mainapp.models import Server
# Create your tests here.
class ServerModelTests(TestCase):
def test_is_empty(self):
saved_servers = Server.get_all()
self.assertEqual(saved_servers.count(), 0)
| 25 | 50 | 0.74 | 33 | 250 | 5.454545 | 0.757576 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004854 | 0.176 | 250 | 9 | 51 | 27.777778 | 0.868932 | 0.092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
080df2b90b579d47e9e838cc3a8ef9accc22fd70 | 341 | py | Python | database/__main__.py | aleph-oh/wikigame-solver | 9a7b0a16df41291890e2bbe5903be55b25cef0f4 | [
"MIT"
] | null | null | null | database/__main__.py | aleph-oh/wikigame-solver | 9a7b0a16df41291890e2bbe5903be55b25cef0f4 | [
"MIT"
] | null | null | null | database/__main__.py | aleph-oh/wikigame-solver | 9a7b0a16df41291890e2bbe5903be55b25cef0f4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Initializes database tables and foreign keys.
"""
from sqlalchemy import event
from sqlalchemy.engine import Engine
from .constants import Base, engine
from .utilities import set_sqlite_foreign_key_pragma
Base.metadata.create_all(bind=engine)
event.listens_for(Engine, "connect")(set_sqlite... | 24.357143 | 67 | 0.818182 | 48 | 341 | 5.604167 | 0.604167 | 0.104089 | 0.118959 | 0.141264 | 0.185874 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003247 | 0.096774 | 341 | 13 | 68 | 26.230769 | 0.87013 | 0.196481 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
082b5379eaa8214b27a75b7de5a29b211ec0088e | 599 | py | Python | nlpru/error.py | sergegoussev/nlpru | 0020fa3db97099e9ad5dd86af70e7c45ef6f60bb | [
"MIT"
] | 1 | 2019-02-28T10:48:35.000Z | 2019-02-28T10:48:35.000Z | nlpru/error.py | sergegoussev/nlpru | 0020fa3db97099e9ad5dd86af70e7c45ef6f60bb | [
"MIT"
] | 2 | 2019-04-30T01:27:37.000Z | 2019-05-10T02:00:19.000Z | nlpru/error.py | sergegoussev/nlpru | 0020fa3db97099e9ad5dd86af70e7c45ef6f60bb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
nlpru.error
"""
class nlpruError(Exception):
"""
The main exception handler for nlpru
"""
def __init__(self, reason):
Exception.__init__(self, reason)
class ConversationError(nlpruError):
"""
Error handler for conversation building and analysis
"""
... | 17.114286 | 82 | 0.652755 | 63 | 599 | 6.079365 | 0.587302 | 0.104439 | 0.172324 | 0.195822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002208 | 0.24374 | 599 | 34 | 83 | 17.617647 | 0.843267 | 0.449082 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.333333 | 0 | 0 | 0.555556 | 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 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
082c2fcdb2746aa34add62180ab11b924514fd75 | 485 | py | Python | tests/test_process_shifts.py | m-budryte/tenzo_tt | 76139ad48475dd1335b671c6c204589c29ea1574 | [
"MIT"
] | null | null | null | tests/test_process_shifts.py | m-budryte/tenzo_tt | 76139ad48475dd1335b671c6c204589c29ea1574 | [
"MIT"
] | null | null | null | tests/test_process_shifts.py | m-budryte/tenzo_tt | 76139ad48475dd1335b671c6c204589c29ea1574 | [
"MIT"
] | null | null | null | import pytest
from solution.solution import *
from pytest_fixtures import *
from parsers.work_shifts_parser import Work_shifts_parser
def test_process_shifts():
assert process_shifts('work_shifts.csv') == {
'09:00': 30.0,
'10:00': 50.0,
'11:00': 50.0,
'12:00': 64.0,
'13:00': 74.0,
'14:00': ... | 21.086957 | 57 | 0.558763 | 85 | 485 | 3.082353 | 0.482353 | 0.114504 | 0.057252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266846 | 0.235052 | 485 | 22 | 58 | 22.045455 | 0.439353 | 0 | 0 | 0 | 0 | 0 | 0.175258 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.047619 | true | 0 | 0.190476 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
08301bde18ec4315d2fb0d7940ac77b453e96b26 | 174 | py | Python | startup/customer/v1/serializers.py | nimeshkverma/Django-REST-Framework-Boilerplate | fab4187cf06f3af96cc486b1f1ea34da687f3ebe | [
"MIT"
] | 1 | 2018-01-19T15:04:36.000Z | 2018-01-19T15:04:36.000Z | startup/customer/v1/serializers.py | nimeshkverma/Django-REST-Framework-Boilerplate | fab4187cf06f3af96cc486b1f1ea34da687f3ebe | [
"MIT"
] | 1 | 2020-06-05T17:25:35.000Z | 2020-06-05T17:25:35.000Z | startup/customer/v1/serializers.py | nimeshkverma/Django-REST-Framework-Boilerplate | fab4187cf06f3af96cc486b1f1ea34da687f3ebe | [
"MIT"
] | 3 | 2017-10-23T05:51:16.000Z | 2020-12-28T11:08:29.000Z | from rest_framework import serializers
from customer import models
class CustomerSerializer(serializers.ModelSerializer):
class Meta:
model = models.Customer
| 17.4 | 54 | 0.781609 | 18 | 174 | 7.5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178161 | 174 | 9 | 55 | 19.333333 | 0.944056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 0 | 0 | 0 | 3 |
0834a1a013ade79d9ef52be6bb3ea11692fd9f6a | 88 | py | Python | tests/geonames.py | spmorillo/sherpa-app | a369326086d84bbe2fe84409f2b95210aa221978 | [
"MIT"
] | null | null | null | tests/geonames.py | spmorillo/sherpa-app | a369326086d84bbe2fe84409f2b95210aa221978 | [
"MIT"
] | null | null | null | tests/geonames.py | spmorillo/sherpa-app | a369326086d84bbe2fe84409f2b95210aa221978 | [
"MIT"
] | null | null | null | import pgeocode
nomi = pgeocode.Nominatim('es')
print(nomi.query_postal_code("28027"))
| 17.6 | 38 | 0.772727 | 12 | 88 | 5.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061728 | 0.079545 | 88 | 4 | 39 | 22 | 0.753086 | 0 | 0 | 0 | 0 | 0 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
085107dcffdadc3df97c4c8c7efe9fb213fdda22 | 157 | py | Python | 03_Day_Operators/4.py | diegofregolente/30-Days-Of-Python | e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267 | [
"Apache-2.0"
] | null | null | null | 03_Day_Operators/4.py | diegofregolente/30-Days-Of-Python | e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267 | [
"Apache-2.0"
] | null | null | null | 03_Day_Operators/4.py | diegofregolente/30-Days-Of-Python | e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267 | [
"Apache-2.0"
] | null | null | null | base = int(input('Base: '))
height = int(input('Height: '))
area_of_triangle = 0.5 * (base * height)
print(f'Area of the triangle: {int(area_of_triangle)}')
| 31.4 | 55 | 0.675159 | 25 | 157 | 4.08 | 0.48 | 0.176471 | 0.27451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014599 | 0.127389 | 157 | 4 | 56 | 39.25 | 0.729927 | 0 | 0 | 0 | 0 | 0 | 0.375796 | 0.146497 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
f259ff03946bf7501e58015e07bf0b86c3cc42c9 | 597 | py | Python | Spiders_/text_package_/scrapy_me/core/scheduler.py | Zyn0423/crawler- | c8bcad09315e6d7e9e5191b2761358ba57d435a0 | [
"MIT"
] | null | null | null | Spiders_/text_package_/scrapy_me/core/scheduler.py | Zyn0423/crawler- | c8bcad09315e6d7e9e5191b2761358ba57d435a0 | [
"MIT"
] | null | null | null | Spiders_/text_package_/scrapy_me/core/scheduler.py | Zyn0423/crawler- | c8bcad09315e6d7e9e5191b2761358ba57d435a0 | [
"MIT"
] | null | null | null | # 调度器组件
# 缓存请求对象(Request),并为下载器提供请求对象,实现请求的调度
# 对请求对象进行去重判断
# coding=utf-8
from queue import Queue
# from six.moves.queue import Queue
class Scheduler(object):
def __init__(self):
self.q=Queue()
def add_request(self,request):
"""
添加url放入队列
:param request: url
:return:
... | 17.558824 | 37 | 0.530988 | 61 | 597 | 5.065574 | 0.52459 | 0.142395 | 0.10356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002597 | 0.355109 | 597 | 33 | 38 | 18.090909 | 0.8 | 0.289782 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0.090909 | 0.090909 | 0 | 0.636364 | 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 | 0 | 1 | 0 | 0 | 3 |
f2740dde2c7cf8dac5c7f0fd6323e265914f8fb2 | 4,743 | py | Python | cea/optimization/master/performance_aggregation.py | architecture-building-systems/cea-toolbox | bfec7ecb4b242449ab8796a1e8ce68c05c35f1d6 | [
"MIT"
] | 121 | 2017-08-15T20:10:22.000Z | 2022-03-24T01:25:42.000Z | cea/optimization/master/performance_aggregation.py | architecture-building-systems/cea-toolbox | bfec7ecb4b242449ab8796a1e8ce68c05c35f1d6 | [
"MIT"
] | 2,121 | 2017-07-27T12:02:01.000Z | 2022-03-31T16:39:28.000Z | cea/optimization/master/performance_aggregation.py | architecture-building-systems/cea-toolbox | bfec7ecb4b242449ab8796a1e8ce68c05c35f1d6 | [
"MIT"
] | 42 | 2017-09-19T09:59:56.000Z | 2022-02-19T20:19:56.000Z |
import numpy as np
def summarize_results_individual(buildings_district_scale_costs,
buildings_district_scale_emissions,
buildings_building_scale_costs,
buildings_building_scale_emissions):
# initialize values
... | 49.40625 | 97 | 0.755851 | 681 | 4,743 | 4.646109 | 0.07489 | 0.136536 | 0.141593 | 0.138116 | 0.8622 | 0.826802 | 0.738622 | 0.692162 | 0.642225 | 0.55531 | 0 | 0.010963 | 0.192283 | 4,743 | 95 | 98 | 49.926316 | 0.814931 | 0.034577 | 0 | 0.142857 | 0 | 0 | 0.140731 | 0.073977 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014286 | false | 0 | 0.014286 | 0 | 0.042857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f278df723e5dfb4e113ee80e2bcddfcedeedb4fb | 76 | py | Python | test.py | CodeWithSwastik/discord-lib | 28cd537b5b9c9e62cf1b362a476155b91cc2fd41 | [
"MIT"
] | 11 | 2021-07-01T13:30:45.000Z | 2022-02-11T18:00:44.000Z | test.py | Spaxly/discord-lib | 12f381061f7a27f871d1649999a0c1a9454fb132 | [
"MIT"
] | null | null | null | test.py | Spaxly/discord-lib | 12f381061f7a27f871d1649999a0c1a9454fb132 | [
"MIT"
] | 1 | 2021-07-03T23:45:24.000Z | 2021-07-03T23:45:24.000Z | from discordlib import Client
bot = Client("tests/bot.json")
bot.run()
| 15.2 | 31 | 0.697368 | 11 | 76 | 4.818182 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171053 | 76 | 4 | 32 | 19 | 0.84127 | 0 | 0 | 0 | 0 | 0 | 0.194444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f29af98502e4c1dfd52ab6f275f18d2837817184 | 254 | py | Python | seed/routes/helpers/csrf_except.py | erick-rivas/django-reference | 3195de635419a0c2ac8eee92742bb98365f614d8 | [
"MIT"
] | null | null | null | seed/routes/helpers/csrf_except.py | erick-rivas/django-reference | 3195de635419a0c2ac8eee92742bb98365f614d8 | [
"MIT"
] | 11 | 2020-02-11T23:57:45.000Z | 2022-02-17T07:03:39.000Z | seed/routes/helpers/csrf_except.py | erick-rivas/django-reference | 3195de635419a0c2ac8eee92742bb98365f614d8 | [
"MIT"
] | null | null | null | """
__Seed builder__
(Read_only) Routes helper
"""
from django.utils.deprecation import MiddlewareMixin
class CSRFDisableMiddleware(MiddlewareMixin):
def process_request(self, request):
setattr(request, '_dont_enforce_csrf_checks', True) | 23.090909 | 59 | 0.771654 | 27 | 254 | 6.888889 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137795 | 254 | 11 | 59 | 23.090909 | 0.849315 | 0.173228 | 0 | 0 | 0 | 0 | 0.123153 | 0.123153 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
f29f12cda6df67fe8cd5ae79a21cbeaba69d277b | 40 | py | Python | pyalgo/sorting/__init__.py | ksks2211/pyalgo | e8f26361fc404324b267f3923f6a1a5183ba102e | [
"MIT"
] | null | null | null | pyalgo/sorting/__init__.py | ksks2211/pyalgo | e8f26361fc404324b267f3923f6a1a5183ba102e | [
"MIT"
] | null | null | null | pyalgo/sorting/__init__.py | ksks2211/pyalgo | e8f26361fc404324b267f3923f6a1a5183ba102e | [
"MIT"
] | null | null | null | __all__ = ["advancedsort", "basicsort"]
| 20 | 39 | 0.7 | 3 | 40 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 40 | 1 | 40 | 40 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.525 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.