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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
74d59e48d760c2bdd824f63462307dcc9124fac9 | 131 | py | Python | tfidf_matcher/__init__.py | stungkit/tfidf_matcher | 24182504d21f1eb978839b700f1c402c6288df2f | [
"MIT"
] | 13 | 2020-02-24T18:29:15.000Z | 2021-12-28T09:41:35.000Z | tfidf_matcher/__init__.py | stungkit/tfidf_matcher | 24182504d21f1eb978839b700f1c402c6288df2f | [
"MIT"
] | null | null | null | tfidf_matcher/__init__.py | stungkit/tfidf_matcher | 24182504d21f1eb978839b700f1c402c6288df2f | [
"MIT"
] | 3 | 2020-07-21T04:32:45.000Z | 2021-10-21T11:00:56.000Z | # AUTHOR: Louis Tsiattalou
# DESCRIPTION: Init for tfidf_matcher package.
from .ngrams import ngrams
from .matcher import matcher
| 21.833333 | 46 | 0.801527 | 17 | 131 | 6.117647 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145038 | 131 | 5 | 47 | 26.2 | 0.928571 | 0.526718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
2d079a19d871b67d7ba2ce209923cccc01b9ff8d | 242 | py | Python | ecart/serializer.py | micael-grilo/E-Cart | 76e86b4c7ea5bd2becda23ef8c69470c86630c5e | [
"MIT"
] | 5 | 2016-09-20T21:33:29.000Z | 2018-10-10T06:07:45.000Z | ecart/serializer.py | micael-grilo/E-Cart | 76e86b4c7ea5bd2becda23ef8c69470c86630c5e | [
"MIT"
] | 1 | 2016-05-03T07:54:54.000Z | 2016-05-03T13:16:48.000Z | ecart/serializer.py | micael-grilo/E-Cart | 76e86b4c7ea5bd2becda23ef8c69470c86630c5e | [
"MIT"
] | 3 | 2016-09-18T14:54:49.000Z | 2020-01-08T18:19:51.000Z | import json
class Serializer(object):
"""docstring for Serializer"""
@staticmethod
def dumps(data_obj):
return json.dumps(data_obj)
@staticmethod
def loads(data_string):
return json.loads(data_string)
| 16.133333 | 38 | 0.665289 | 28 | 242 | 5.607143 | 0.535714 | 0.191083 | 0.152866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239669 | 242 | 14 | 39 | 17.285714 | 0.853261 | 0.099174 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.25 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
2d1815bfd6d647756ab866fe6efa2fc1a8f472f8 | 15,759 | py | Python | fn_portal/filters/FishAttr_filters.py | AdamCottrill/FishNetPortal | 4e58e05f52346ac1ab46698a03d4229c74828406 | [
"MIT"
] | null | null | null | fn_portal/filters/FishAttr_filters.py | AdamCottrill/FishNetPortal | 4e58e05f52346ac1ab46698a03d4229c74828406 | [
"MIT"
] | null | null | null | fn_portal/filters/FishAttr_filters.py | AdamCottrill/FishNetPortal | 4e58e05f52346ac1ab46698a03d4229c74828406 | [
"MIT"
] | null | null | null | import django_filters
from .common_filters import NumberInFilter, ValueInFilter, GeomFilter, GeoFilterSet
class FishAttrFilters(GeoFilterSet):
"""A filter set that contains filters that are common to all the FN125 child
tables - FN125Lamprey, FN125Tag, Fn126, and FN127. Filtersets for those class
inheri... | 37.255319 | 88 | 0.724475 | 1,898 | 15,759 | 5.301897 | 0.076396 | 0.118951 | 0.171818 | 0.157408 | 0.845474 | 0.797476 | 0.780284 | 0.708636 | 0.655172 | 0.568021 | 0 | 0.006203 | 0.181547 | 15,759 | 422 | 89 | 37.343602 | 0.773996 | 0.031664 | 0 | 0.156863 | 0 | 0 | 0.268925 | 0.180684 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.005602 | 0 | 0.380952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2d2277cdda5d2b5e047ce9495c3c9bd5671495c6 | 136 | py | Python | core/handlers/main_db_handler.py | Tampan793/Watermark-Bot | e872f85675e7cdaeeae5efcb1a0af59625d554f5 | [
"MIT"
] | null | null | null | core/handlers/main_db_handler.py | Tampan793/Watermark-Bot | e872f85675e7cdaeeae5efcb1a0af59625d554f5 | [
"MIT"
] | null | null | null | core/handlers/main_db_handler.py | Tampan793/Watermark-Bot | e872f85675e7cdaeeae5efcb1a0af59625d554f5 | [
"MIT"
] | null | null | null | # (c) @M4SK3R1N
from configs import Config
from core.database import Database
db = Database(Config.DATABASE_URL, Config.BOT_USERNAME)
| 19.428571 | 55 | 0.794118 | 19 | 136 | 5.578947 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02521 | 0.125 | 136 | 6 | 56 | 22.666667 | 0.865546 | 0.095588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
2d281bc3b188a3528fb07c6f83aec0f80d042987 | 385 | py | Python | app/http/pili_service.py | sy264115809/techshow | 7d9c8d003b6a652684b140b601061ac59dc44892 | [
"MIT"
] | null | null | null | app/http/pili_service.py | sy264115809/techshow | 7d9c8d003b6a652684b140b601061ac59dc44892 | [
"MIT"
] | null | null | null | app/http/pili_service.py | sy264115809/techshow | 7d9c8d003b6a652684b140b601061ac59dc44892 | [
"MIT"
] | 1 | 2021-09-14T18:01:39.000Z | 2021-09-14T18:01:39.000Z | # coding=utf-8
from pili import *
from flask import current_app
def _hub():
credentials = Credentials(current_app.config['PILI_ACCESS_KEY'], current_app.config['PILI_SECRET_KEY'])
return Hub(credentials, current_app.config['PILI_HUB_NAME'])
def get_stream(stream_id):
return _hub().get_stream(stream_id)
... | 22.647059 | 107 | 0.755844 | 55 | 385 | 4.927273 | 0.418182 | 0.147601 | 0.177122 | 0.221402 | 0.228782 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002976 | 0.127273 | 385 | 16 | 108 | 24.0625 | 0.803571 | 0.031169 | 0 | 0 | 0 | 0 | 0.115903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.222222 | 0.222222 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
2d458b40385031e7f090e9d9647595375cf582aa | 2,684 | py | Python | stubs.min/System/Windows/Media/__init___parts/FontFamilyConverter.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | 1 | 2017-07-25T14:30:18.000Z | 2017-07-25T14:30:18.000Z | stubs.min/System/Windows/Media/__init___parts/FontFamilyConverter.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | stubs.min/System/Windows/Media/__init___parts/FontFamilyConverter.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | class FontFamilyConverter(TypeConverter):
"""
Converts instances of the System.String type to and from System.Windows.Media.FontFamily instances.
FontFamilyConverter()
"""
def CanConvertFrom(self,*__args):
"""
CanConvertFrom(self: FontFamilyConverter,td: ITypeDescriptorContext,t: Type) -> bool
... | 39.470588 | 139 | 0.726528 | 317 | 2,684 | 6.126183 | 0.227129 | 0.073635 | 0.101957 | 0.158599 | 0.513388 | 0.513388 | 0.444387 | 0.38311 | 0.360453 | 0.247168 | 0 | 0 | 0.209389 | 2,684 | 67 | 140 | 40.059701 | 0.915174 | 0.84389 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0.444444 | 0 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
74211c834b2dd1dade05058e46154bf5ab314dc4 | 709 | py | Python | supabase_client/supebase_exceptions.py | keosariel/supabase-client | 0a0e1dfe00ed6171d65f8c022ce23a6e90216616 | [
"MIT"
] | 6 | 2021-08-07T20:51:09.000Z | 2022-03-03T18:18:42.000Z | supabase_client/supebase_exceptions.py | keosariel/supabase-client | 0a0e1dfe00ed6171d65f8c022ce23a6e90216616 | [
"MIT"
] | null | null | null | supabase_client/supebase_exceptions.py | keosariel/supabase-client | 0a0e1dfe00ed6171d65f8c022ce23a6e90216616 | [
"MIT"
] | 2 | 2021-08-11T03:35:35.000Z | 2022-03-15T14:53:42.000Z | class SupabaseError(Exception):
"""Base class for all supabase errors
:param message: A human-readable error message string.
"""
def __init__(self, message):
Exception.__init__(self, message)
class ClientConnectorError(SupabaseError):
def __init__(self, message):
SupabaseError... | 24.448276 | 62 | 0.717913 | 69 | 709 | 6.797101 | 0.318841 | 0.170576 | 0.319829 | 0.191898 | 0.535181 | 0.535181 | 0.535181 | 0.535181 | 0.535181 | 0.409382 | 0 | 0 | 0.190409 | 709 | 28 | 63 | 25.321429 | 0.817073 | 0.126939 | 0 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
746d2dd92129a5cba7d3203cc33cfadd617835cd | 127 | py | Python | wandering-warriors/modules/__init__.py | python-discord/code-jam-6 | a7eb3b1256ae113c93f0337892c667768e8bc199 | [
"MIT"
] | 76 | 2020-01-17T12:09:48.000Z | 2022-03-26T19:17:26.000Z | wandering-warriors/modules/__init__.py | 1nf1del/code-jam-6 | a7eb3b1256ae113c93f0337892c667768e8bc199 | [
"MIT"
] | 17 | 2020-01-21T23:13:34.000Z | 2020-02-07T00:07:04.000Z | wandering-warriors/modules/__init__.py | 1nf1del/code-jam-6 | a7eb3b1256ae113c93f0337892c667768e8bc199 | [
"MIT"
] | 91 | 2020-01-17T12:01:06.000Z | 2022-03-22T20:38:59.000Z | from .abacus import Abacus
from .draw_pad import DrawPad
from .ledger import Ledger
__all__ = ('Abacus', 'DrawPad', 'Ledger')
| 21.166667 | 41 | 0.748031 | 17 | 127 | 5.294118 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141732 | 127 | 5 | 42 | 25.4 | 0.825688 | 0 | 0 | 0 | 0 | 0 | 0.149606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
778378ad2cae07b1eae7fe45253c50b387c8c03b | 256 | py | Python | animations/color/list.py | LeLuxNet/GridPy | 5f4d02d2b254be1f0682b724a96a99009a415308 | [
"MIT"
] | null | null | null | animations/color/list.py | LeLuxNet/GridPy | 5f4d02d2b254be1f0682b724a96a99009a415308 | [
"MIT"
] | 1 | 2020-05-09T15:48:41.000Z | 2020-05-21T20:14:21.000Z | animations/color/list.py | LeLuxNet/GridPy | 5f4d02d2b254be1f0682b724a96a99009a415308 | [
"MIT"
] | null | null | null | from animations.color import base
class ListGenerator(base.IndexColorGeneration):
def __init__(self, colors):
super().__init__(len(colors))
self.colors = colors
def generate_index(self, index):
return self.colors[index]
| 21.333333 | 47 | 0.691406 | 29 | 256 | 5.793103 | 0.586207 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210938 | 256 | 11 | 48 | 23.272727 | 0.831683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
77a564e8a33b0b8bdb5861341a41f636b8f577fb | 389 | py | Python | test/test_nesting.py | zauberzeug/binding | 8b09b15e3675c68850b81d7253f1eb24245ee76b | [
"MIT"
] | 1 | 2022-01-07T03:22:19.000Z | 2022-01-07T03:22:19.000Z | test/test_nesting.py | zauberzeug/binding | 8b09b15e3675c68850b81d7253f1eb24245ee76b | [
"MIT"
] | null | null | null | test/test_nesting.py | zauberzeug/binding | 8b09b15e3675c68850b81d7253f1eb24245ee76b | [
"MIT"
] | null | null | null | from binding import BindableProperty
class A:
x = BindableProperty()
def __init__(self, x):
self.x = x
def bind_x_to(self, target):
self.x.bind_to(target, nesting=1)
class B:
y = BindableProperty()
def __init__(self, y):
self.y = y
def test_nesting():
a = A(1)... | 12.966667 | 41 | 0.562982 | 62 | 389 | 3.306452 | 0.33871 | 0.073171 | 0.22439 | 0.263415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018657 | 0.311054 | 389 | 29 | 42 | 13.413793 | 0.746269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.25 | false | 0 | 0.0625 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
77b89c8c2551fa8fcc0927345358401aa9bd99ab | 191 | py | Python | Merlin_Motion_Control.py | TomQD-94/merlin-motion-control | 506ef612812be04074a9c01793c86c951578c67c | [
"MIT"
] | 1 | 2022-02-21T11:12:49.000Z | 2022-02-21T11:12:49.000Z | Merlin_Motion_Control.py | TomQD-94/merlin-motion-control | 506ef612812be04074a9c01793c86c951578c67c | [
"MIT"
] | null | null | null | Merlin_Motion_Control.py | TomQD-94/merlin-motion-control | 506ef612812be04074a9c01793c86c951578c67c | [
"MIT"
] | 1 | 2021-04-27T08:35:41.000Z | 2021-04-27T08:35:41.000Z | #!/Users/richard/anaconda3/bin/python3
"""Launch app using Anaconda 3."""
from views.interface import MerlinMotionControlApp
if __name__ == "__main__":
MerlinMotionControlApp().run()
| 19.1 | 50 | 0.748691 | 20 | 191 | 6.75 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.120419 | 191 | 9 | 51 | 21.222222 | 0.785714 | 0.34555 | 0 | 0 | 0 | 0 | 0.067227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
77ed35b54ba191d21237cd5df4a01654fd2c195e | 14 | py | Python | utokenize/testdata/comment_intra.py | MaxTurchin/pycopy-lib | d7a69fc2a28031e2ca475c29239f715c1809d8cc | [
"PSF-2.0"
] | 126 | 2019-07-19T14:42:41.000Z | 2022-03-21T22:22:19.000Z | utokenize/testdata/comment_intra.py | MaxTurchin/pycopy-lib | d7a69fc2a28031e2ca475c29239f715c1809d8cc | [
"PSF-2.0"
] | 38 | 2019-08-28T01:46:31.000Z | 2022-03-17T05:46:51.000Z | utokenize/testdata/comment_intra.py | MaxTurchin/pycopy-lib | d7a69fc2a28031e2ca475c29239f715c1809d8cc | [
"PSF-2.0"
] | 55 | 2019-08-02T09:32:33.000Z | 2021-12-22T11:25:51.000Z | foo # comment
| 7 | 13 | 0.714286 | 2 | 14 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 14 | 1 | 14 | 14 | 0.909091 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7adab11f81fe9641b079dc6d9cfecadb798ccba4 | 165 | py | Python | ergo/contrib/utils/utils.py | bmillwood/ergo | 34be736f1979ad7f1f130bb90728270cb58dbfe8 | [
"MIT"
] | 93 | 2020-04-16T03:49:55.000Z | 2022-03-26T14:56:29.000Z | ergo/contrib/utils/utils.py | bmillwood/ergo | 34be736f1979ad7f1f130bb90728270cb58dbfe8 | [
"MIT"
] | 326 | 2020-03-25T17:49:11.000Z | 2021-03-25T03:19:51.000Z | ergo/contrib/utils/utils.py | bmillwood/ergo | 34be736f1979ad7f1f130bb90728270cb58dbfe8 | [
"MIT"
] | 26 | 2020-03-25T03:18:58.000Z | 2022-03-18T21:19:11.000Z | from datetime import timedelta
def daterange(start_date, end_date):
for n in range(int((end_date - start_date).days)):
yield start_date + timedelta(n)
| 23.571429 | 54 | 0.715152 | 25 | 165 | 4.52 | 0.64 | 0.238938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187879 | 165 | 6 | 55 | 27.5 | 0.843284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
bb1ea86265c925701352fac69e22fd621159f5e6 | 42 | py | Python | tests/scope.py | ZYAZP/python2 | 7dc3b62eff51e1decb4a408122e77630fdc1687d | [
"MIT"
] | 1,062 | 2015-11-18T01:04:33.000Z | 2022-03-29T07:13:30.000Z | tests/scope.py | ArrowSides/onelinerizer | 7dc3b62eff51e1decb4a408122e77630fdc1687d | [
"MIT"
] | 26 | 2015-11-17T06:58:07.000Z | 2022-01-15T18:11:16.000Z | tests/scope.py | ArrowSides/onelinerizer | 7dc3b62eff51e1decb4a408122e77630fdc1687d | [
"MIT"
] | 100 | 2015-11-17T09:01:22.000Z | 2021-09-12T13:58:28.000Z | x = 2
def foo():
x = 1
foo()
print x
| 6 | 10 | 0.452381 | 9 | 42 | 2.111111 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.380952 | 42 | 6 | 11 | 7 | 0.653846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
bb4daa67b3a7c1bebded6811d734bba3fae430ae | 105 | py | Python | wcics/mail/errors.py | CS-Center/CS-Center | 3cd09f29d214406e6618fc67b9faf59a18f3f11b | [
"MIT"
] | null | null | null | wcics/mail/errors.py | CS-Center/CS-Center | 3cd09f29d214406e6618fc67b9faf59a18f3f11b | [
"MIT"
] | 6 | 2019-12-06T18:06:28.000Z | 2021-12-01T20:19:05.000Z | wcics/mail/errors.py | CS-Center/CS-Center | 3cd09f29d214406e6618fc67b9faf59a18f3f11b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
class MailError(Exception):
def __init__(self, addrs):
self.failed = addrs | 21 | 28 | 0.647619 | 13 | 105 | 4.923077 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011628 | 0.180952 | 105 | 5 | 29 | 21 | 0.732558 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
246e6304dc03101d69f37d5890c1e8f95b162696 | 45 | py | Python | api/__init__.py | jbrownrs/issue-376-GDS-link | e8cce1b79f46b98a7d24b2da5eca48430fd904a3 | [
"MIT"
] | 5 | 2019-01-07T17:22:34.000Z | 2020-10-08T15:03:12.000Z | api/__init__.py | jbrownrs/issue-376-GDS-link | e8cce1b79f46b98a7d24b2da5eca48430fd904a3 | [
"MIT"
] | 203 | 2017-12-14T09:51:56.000Z | 2018-08-28T14:04:08.000Z | api/__init__.py | jbrownrs/issue-376-GDS-link | e8cce1b79f46b98a7d24b2da5eca48430fd904a3 | [
"MIT"
] | 5 | 2018-10-22T11:36:01.000Z | 2020-07-20T05:47:49.000Z | """
Implement a REST-ful API interface.
"""
| 9 | 35 | 0.644444 | 6 | 45 | 4.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177778 | 45 | 4 | 36 | 11.25 | 0.783784 | 0.777778 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
24c3a238ceec7c76992abc6bdae457799345c1bc | 974 | py | Python | kaznet/apps/main/serializers/__init__.py | onaio/kaznet-web | 53da428d5e62e40c5d38d84c3f3ee06071dd779b | [
"Apache-2.0"
] | 1 | 2019-10-03T12:18:15.000Z | 2019-10-03T12:18:15.000Z | kaznet/apps/main/serializers/__init__.py | onaio/kaznet-web | 53da428d5e62e40c5d38d84c3f3ee06071dd779b | [
"Apache-2.0"
] | 63 | 2018-10-31T12:57:36.000Z | 2020-04-27T20:18:22.000Z | kaznet/apps/main/serializers/__init__.py | onaio/kaznet-web | 53da428d5e62e40c5d38d84c3f3ee06071dd779b | [
"Apache-2.0"
] | 3 | 2019-08-05T09:10:03.000Z | 2020-01-05T21:24:49.000Z | """
Init module for main serializers
"""
from kaznet.apps.main.serializers.bounty import BountySerializer # noqa
from kaznet.apps.main.serializers.client import ClientSerializer # noqa
from kaznet.apps.main.serializers.contenttype import KaznetContentTypeSerializer # noqa
from kaznet.apps.main.serializers.locations ... | 64.933333 | 93 | 0.750513 | 90 | 974 | 8.111111 | 0.344444 | 0.205479 | 0.172603 | 0.221918 | 0.39589 | 0.316438 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189938 | 974 | 14 | 94 | 69.571429 | 0.925222 | 0.085216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.818182 | 0 | 0.818182 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
24d907fd34d41b9eae0d2f44c555b225bcd543cc | 907 | py | Python | p004_test.py | pbgnz/project-euler | 8ab4549101f7a3ac2a478eb6193b2b67920c8102 | [
"MIT"
] | null | null | null | p004_test.py | pbgnz/project-euler | 8ab4549101f7a3ac2a478eb6193b2b67920c8102 | [
"MIT"
] | 1 | 2021-04-13T12:47:07.000Z | 2021-04-14T20:27:04.000Z | p004_test.py | escobot/project-euler | 8ab4549101f7a3ac2a478eb6193b2b67920c8102 | [
"MIT"
] | null | null | null | import unittest
from p004 import solution, is_palindrome
class MyTestCase(unittest.TestCase):
def test_is_palindrome_zero(self):
self.assertEqual(is_palindrome("o"), True)
def test_is_palindrome_positive_even(self):
self.assertEqual(is_palindrome("osso"), True)
def test_is_palindrome_po... | 25.914286 | 55 | 0.713341 | 114 | 907 | 5.333333 | 0.333333 | 0.217105 | 0.25 | 0.15625 | 0.475329 | 0.328947 | 0 | 0 | 0 | 0 | 0 | 0.034899 | 0.178611 | 907 | 34 | 56 | 26.676471 | 0.781208 | 0 | 0 | 0 | 0 | 0 | 0.029801 | 0 | 0 | 0 | 0 | 0 | 0.380952 | 1 | 0.380952 | false | 0 | 0.095238 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
24df5f944ef32039cea2fd9aa8fbbb72111acef6 | 96 | py | Python | django/AIST_survey/apps.py | aistairc/voteclustering_aist | f1ee7409698a05a99ce40cdccbe4c2b1f8f81b4c | [
"MIT"
] | null | null | null | django/AIST_survey/apps.py | aistairc/voteclustering_aist | f1ee7409698a05a99ce40cdccbe4c2b1f8f81b4c | [
"MIT"
] | null | null | null | django/AIST_survey/apps.py | aistairc/voteclustering_aist | f1ee7409698a05a99ce40cdccbe4c2b1f8f81b4c | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class AistSurveyConfig(AppConfig):
name = 'AIST_survey'
| 16 | 34 | 0.770833 | 11 | 96 | 6.636364 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 96 | 5 | 35 | 19.2 | 0.901235 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7011b2ae0614609670b4e97d7fc81ec2fb09c3bb | 455 | py | Python | tests/test_numpy.py | python-pipe/hellp | 51fd7c9143ee8ce6392b9b877036ad4347ad29a5 | [
"MIT"
] | 123 | 2018-07-31T19:17:27.000Z | 2022-03-18T15:29:07.000Z | tests/test_numpy.py | python-pipe/hellp | 51fd7c9143ee8ce6392b9b877036ad4347ad29a5 | [
"MIT"
] | 11 | 2019-05-01T18:01:59.000Z | 2022-01-01T06:43:36.000Z | tests/test_numpy.py | python-pipe/hellp | 51fd7c9143ee8ce6392b9b877036ad4347ad29a5 | [
"MIT"
] | 4 | 2019-06-07T12:03:53.000Z | 2021-05-10T20:29:44.000Z | from sspipe import p, px
import numpy as np
def test_scalar_rhs():
assert np.int32(1) | p(lambda x: x + 1) | (px == 2)
def test_scalar_lhs():
assert 2 | px + np.int32(1)
def test_rhs():
assert np.array([1, 2]) | p(lambda x: x.sum()) | (px == 3)
def test_rhs_px():
assert np.array([1, 2]) | (px.su... | 16.851852 | 62 | 0.558242 | 84 | 455 | 2.904762 | 0.297619 | 0.172131 | 0.106557 | 0.07377 | 0.122951 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061224 | 0.246154 | 455 | 26 | 63 | 17.5 | 0.650146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.428571 | true | 0 | 0.142857 | 0 | 0.571429 | 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 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
7049b0e74f2f6f27ca826c944b216b0e20f61a74 | 1,125 | py | Python | backend/mysite/student/serializers.py | sun0225SUN/Student-Data-Vision | 94b2fbaef425cb2b51b3295059b1b7acca85cfcd | [
"MIT"
] | 2 | 2022-02-16T12:57:45.000Z | 2022-02-24T14:09:00.000Z | backend/mysite/student/serializers.py | sun0225SUN/Student-Data-Vision | 94b2fbaef425cb2b51b3295059b1b7acca85cfcd | [
"MIT"
] | null | null | null | backend/mysite/student/serializers.py | sun0225SUN/Student-Data-Vision | 94b2fbaef425cb2b51b3295059b1b7acca85cfcd | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import * # Student, StarInfo, SexInfo, GeoInfo, AnhuiGeoInfo, ProvinceInfo
class SexInfoSerializer(serializers.ModelSerializer):
class Meta:
model = SexInfo
fields = ['name', 'value']
# 星座信息序列化器
class StarInfoSerializer(serializer... | 21.634615 | 89 | 0.641778 | 91 | 1,125 | 7.923077 | 0.340659 | 0.252427 | 0.300971 | 0.339806 | 0.474341 | 0.307906 | 0.307906 | 0 | 0 | 0 | 0 | 0.004878 | 0.271111 | 1,125 | 51 | 90 | 22.058824 | 0.87439 | 0.089778 | 0 | 0.6 | 0 | 0 | 0.050672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
709423185bdfdebb688bc7d5a18f61d78ced662c | 22 | py | Python | bifrost_min_read_check/__init__.py | ssi-dk/bifrost_min_read_check | 120951280c4ca7dab07c59d73e677b701e2a5cca | [
"MIT"
] | null | null | null | bifrost_min_read_check/__init__.py | ssi-dk/bifrost_min_read_check | 120951280c4ca7dab07c59d73e677b701e2a5cca | [
"MIT"
] | 1 | 2020-08-21T07:14:36.000Z | 2020-08-21T07:14:36.000Z | bifrost_min_read_check/__init__.py | ssi-dk/bifrost_min_read_check | 120951280c4ca7dab07c59d73e677b701e2a5cca | [
"MIT"
] | null | null | null | __version__ = 'v2_2_8' | 22 | 22 | 0.772727 | 4 | 22 | 2.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 0.090909 | 22 | 1 | 22 | 22 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
70974016c8294426ef58c0a0a53fcfaf197aee1a | 332 | py | Python | HW3/YaRa1312/Pleshyvtseva PythonCore HW 3.3.py | kolyasalubov/Lv-677.PythonCore | c9f9107c734a61e398154a90b8a3e249276c2704 | [
"MIT"
] | null | null | null | HW3/YaRa1312/Pleshyvtseva PythonCore HW 3.3.py | kolyasalubov/Lv-677.PythonCore | c9f9107c734a61e398154a90b8a3e249276c2704 | [
"MIT"
] | null | null | null | HW3/YaRa1312/Pleshyvtseva PythonCore HW 3.3.py | kolyasalubov/Lv-677.PythonCore | c9f9107c734a61e398154a90b8a3e249276c2704 | [
"MIT"
] | 6 | 2022-02-22T22:30:49.000Z | 2022-03-28T12:51:19.000Z | #3.3
user_ineteger_1 = int(input("Enter an integer: "))
user_integer_2 = int(input("Enter an other integer or the same as the first one: "))
def sameOrNot(user_ineteger_1, user_integer_2):
if (user_ineteger_1 ^ user_integer_2):
print("Not Same")
else:
print("Same")
sameOrNot(user_ineteger_1, use... | 36.888889 | 84 | 0.713855 | 54 | 332 | 4.092593 | 0.425926 | 0.217195 | 0.235294 | 0.230769 | 0.420814 | 0.420814 | 0.307692 | 0 | 0 | 0 | 0 | 0.036364 | 0.171687 | 332 | 9 | 85 | 36.888889 | 0.767273 | 0.009036 | 0 | 0 | 0 | 0 | 0.25228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.25 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
56149181b9ac3f4c3f13a262ec51ccae2f8c900c | 193 | py | Python | django_amenities/apps.py | okfde/django-amenities | a5522e33e27deb93a2ed49f89a6d9222fc146523 | [
"MIT"
] | 1 | 2020-09-17T12:27:04.000Z | 2020-09-17T12:27:04.000Z | django_amenities/apps.py | okfde/django-amenities | a5522e33e27deb93a2ed49f89a6d9222fc146523 | [
"MIT"
] | null | null | null | django_amenities/apps.py | okfde/django-amenities | a5522e33e27deb93a2ed49f89a6d9222fc146523 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class AmenitiesConfig(AppConfig):
name = 'django_amenities'
verbose_name = _("Amenities App")
| 24.125 | 54 | 0.777202 | 23 | 193 | 6.304348 | 0.695652 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150259 | 193 | 7 | 55 | 27.571429 | 0.884146 | 0 | 0 | 0 | 0 | 0 | 0.150259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
56415df55959a03e911d73640e65d94b304b6856 | 161 | py | Python | pybamm/models/submodels/thermal/__init__.py | manjunathnilugal/PyBaMM | 65d5cba534b4f163670e753714964aaa75d6a2d2 | [
"BSD-3-Clause"
] | 330 | 2019-04-17T11:36:57.000Z | 2022-03-28T16:49:55.000Z | pybamm/models/submodels/thermal/__init__.py | masoodtamaddon/PyBaMM | a31e2095600bb92e913598ac4d02b2b6b77b31c1 | [
"BSD-3-Clause"
] | 1,530 | 2019-03-26T18:13:03.000Z | 2022-03-31T16:12:53.000Z | pybamm/models/submodels/thermal/__init__.py | masoodtamaddon/PyBaMM | a31e2095600bb92e913598ac4d02b2b6b77b31c1 | [
"BSD-3-Clause"
] | 178 | 2019-03-27T13:48:04.000Z | 2022-03-31T09:30:11.000Z | from .base_thermal import BaseThermal
from .isothermal import Isothermal
from .lumped import Lumped
from .x_full import OneDimensionalX
from . import pouch_cell
| 26.833333 | 37 | 0.84472 | 22 | 161 | 6.045455 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124224 | 161 | 5 | 38 | 32.2 | 0.943262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
566e601ac7f314a0c7263784d0d159ced84a93ad | 201 | py | Python | src/expression_evaluator/operators/basic/in_operator.py | Xett/expression_evaluator | eca895d79f015843a262e9636b86c6dd3d06a69d | [
"MIT"
] | null | null | null | src/expression_evaluator/operators/basic/in_operator.py | Xett/expression_evaluator | eca895d79f015843a262e9636b86c6dd3d06a69d | [
"MIT"
] | null | null | null | src/expression_evaluator/operators/basic/in_operator.py | Xett/expression_evaluator | eca895d79f015843a262e9636b86c6dd3d06a69d | [
"MIT"
] | null | null | null | from expression_evaluator.token import *
class InOperator(BasicOperator):
symbols = ['in']
priority = PriorityLevel.String
@classmethod
def _function(cls, a, b):
return a in b | 22.333333 | 40 | 0.681592 | 23 | 201 | 5.869565 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228856 | 201 | 9 | 41 | 22.333333 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.857143 | 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 | 1 | 1 | 0 | 0 | 4 |
5677a8de826460d6b3962eb6561558b2f7259736 | 244 | py | Python | cachex/decorator/CacheParameters.py | malversoft/cachex | 8b4d5086c9553c50e91470a2e9a635bf22cde68d | [
"MIT"
] | null | null | null | cachex/decorator/CacheParameters.py | malversoft/cachex | 8b4d5086c9553c50e91470a2e9a635bf22cde68d | [
"MIT"
] | null | null | null | cachex/decorator/CacheParameters.py | malversoft/cachex | 8b4d5086c9553c50e91470a2e9a635bf22cde68d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .CacheDefaults import CacheDefaults
from ..caches.AbstractCacheParameters import AbstractCacheParameters
class CacheParameters(AbstractCacheParameters):
"""Decorator parameters."""
_defaults = CacheDefaults()
| 22.181818 | 68 | 0.786885 | 19 | 244 | 10.052632 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004587 | 0.106557 | 244 | 10 | 69 | 24.4 | 0.87156 | 0.180328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
56835f197330807710a910c73580f2e27a16947f | 8,934 | py | Python | examples/temp_bubbles/plot_sweep_results.py | SamuelBrand1/covid-19-in-households-public | a0740d85f8f9fb1ae67dbd9c5a92f1085e4d9ea1 | [
"Apache-2.0"
] | null | null | null | examples/temp_bubbles/plot_sweep_results.py | SamuelBrand1/covid-19-in-households-public | a0740d85f8f9fb1ae67dbd9c5a92f1085e4d9ea1 | [
"Apache-2.0"
] | null | null | null | examples/temp_bubbles/plot_sweep_results.py | SamuelBrand1/covid-19-in-households-public | a0740d85f8f9fb1ae67dbd9c5a92f1085e4d9ea1 | [
"Apache-2.0"
] | null | null | null | '''This plots the bubble results
'''
from pickle import load
from numpy import array, atleast_2d, hstack, where, zeros
from matplotlib.pyplot import close, subplots
from examples.temp_bubbles.common import DataObject
from seaborn import heatmap
no_i_vals = 3
no_j_vals = 3
peaks_1 = zeros((no_i_vals,no_j_vals))
peaks_... | 42.542857 | 130 | 0.71323 | 1,482 | 8,934 | 3.978408 | 0.087719 | 0.067164 | 0.027476 | 0.026119 | 0.785278 | 0.765604 | 0.752374 | 0.714552 | 0.679444 | 0.658243 | 0 | 0.043744 | 0.137676 | 8,934 | 209 | 131 | 42.746411 | 0.721573 | 0.008059 | 0 | 0.373418 | 0 | 0 | 0.097583 | 0.006551 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.031646 | 0 | 0.031646 | 0.012658 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
56868508641f95c8037312c6e71d709a9b56a1e6 | 229 | py | Python | mmdet/models/utils/builder.py | SuhyunL/Fashion-Object-Detection | 5870189a65f7c5d009beb763c34fefd029b9cce5 | [
"Apache-2.0"
] | 326 | 2021-05-06T01:15:09.000Z | 2022-03-30T14:52:13.000Z | mmdet/models/utils/builder.py | MCG-NJU/AdaMixer | 7cd998826da5f38e698cebb9a619bc322462a5db | [
"MIT"
] | 39 | 2021-05-20T02:54:40.000Z | 2022-03-31T09:16:46.000Z | mmdet/models/utils/builder.py | MCG-NJU/AdaMixer | 7cd998826da5f38e698cebb9a619bc322462a5db | [
"MIT"
] | 46 | 2021-05-08T22:25:27.000Z | 2022-03-28T08:11:51.000Z | from mmcv.utils import Registry, build_from_cfg
TRANSFORMER = Registry('Transformer')
def build_transformer(cfg, default_args=None):
"""Builder for Transformer."""
return build_from_cfg(cfg, TRANSFORMER, default_args)
| 25.444444 | 57 | 0.772926 | 29 | 229 | 5.862069 | 0.517241 | 0.105882 | 0.141176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126638 | 229 | 8 | 58 | 28.625 | 0.85 | 0.104803 | 0 | 0 | 0 | 0 | 0.055276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
568b420e2b194c6e850383a0e1263c01a6a582cb | 299 | py | Python | nilearn/decoding/__init__.py | sahahn/nilearn | 642399137b923e273b396a1c33aa06b8081089b7 | [
"BSD-2-Clause"
] | null | null | null | nilearn/decoding/__init__.py | sahahn/nilearn | 642399137b923e273b396a1c33aa06b8081089b7 | [
"BSD-2-Clause"
] | null | null | null | nilearn/decoding/__init__.py | sahahn/nilearn | 642399137b923e273b396a1c33aa06b8081089b7 | [
"BSD-2-Clause"
] | null | null | null | """
Decoding tools and algorithms.
"""
from .searchlight import SearchLight
from .space_net import SpaceNetClassifier, SpaceNetRegressor
from .decoder import Decoder, DecoderRegressor
__all__ = ['SearchLight', 'SpaceNetClassifier', 'SpaceNetRegressor', 'Decoder',
'DecoderRegressor']
| 23 | 79 | 0.762542 | 25 | 299 | 8.92 | 0.56 | 0.313901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140468 | 299 | 12 | 80 | 24.916667 | 0.867704 | 0.100334 | 0 | 0 | 0 | 0 | 0.264368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
568b4f13f51fbd3e746104f8badc5ad0334c142c | 379 | py | Python | acq4/devices/MockPressureControl.py | campagnola/acq4 | 09699c07d8949950f6df149cf17892aaa3a37402 | [
"MIT"
] | 47 | 2015-01-05T16:18:10.000Z | 2022-03-16T13:09:30.000Z | acq4/devices/MockPressureControl.py | acq4/acq4 | c77636a76d68ffa1bc7dbd41edc522e523b909b8 | [
"MIT"
] | 48 | 2015-04-19T16:51:41.000Z | 2022-03-31T14:48:16.000Z | acq4/devices/MockPressureControl.py | acq4/acq4 | c77636a76d68ffa1bc7dbd41edc522e523b909b8 | [
"MIT"
] | 32 | 2015-01-15T14:11:49.000Z | 2021-07-15T13:44:52.000Z | from acq4.devices.PressureControl import PressureControl
class MockPressureControl(PressureControl):
def _setPressure(self, p):
self.pressure = p
def getPressure(self):
return getattr(self, "pressure", 10)
def _setSource(self, source):
self.source = source
def getSource(self... | 23.6875 | 56 | 0.680739 | 41 | 379 | 6.243902 | 0.512195 | 0.117188 | 0.132813 | 0.164063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.218997 | 379 | 15 | 57 | 25.266667 | 0.851351 | 0 | 0 | 0 | 0 | 0 | 0.036939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.1 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
3b17829d2a52135864702c72229a5562364d0705 | 130 | py | Python | src/cascade/input_data/configuration/sex.py | adolgert/cascade | 2084e07c9ee5e901dd407b817220de882c7246a3 | [
"MIT"
] | null | null | null | src/cascade/input_data/configuration/sex.py | adolgert/cascade | 2084e07c9ee5e901dd407b817220de882c7246a3 | [
"MIT"
] | null | null | null | src/cascade/input_data/configuration/sex.py | adolgert/cascade | 2084e07c9ee5e901dd407b817220de882c7246a3 | [
"MIT"
] | null | null | null | SEX_ID_TO_NAME = {
1: "male",
2: "female",
3: "both",
}
SEX_NAME_TO_ID = {v: k for (k, v) in SEX_ID_TO_NAME.items()}
| 16.25 | 60 | 0.561538 | 25 | 130 | 2.56 | 0.6 | 0.15625 | 0.21875 | 0.34375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030612 | 0.246154 | 130 | 7 | 61 | 18.571429 | 0.622449 | 0 | 0 | 0 | 0 | 0 | 0.107692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3b1a2bad79b0569b3ffa94c11cc30ebadfab7c45 | 139 | py | Python | python/dragonradio/dragonradio/net/__init__.py | drexelwireless/dragonradio | 885abd68d56af709e7a53737352641908005c45b | [
"MIT"
] | 8 | 2020-12-05T20:30:54.000Z | 2022-01-22T13:32:14.000Z | python/dragonradio/dragonradio/net/__init__.py | drexelwireless/dragonradio | 885abd68d56af709e7a53737352641908005c45b | [
"MIT"
] | 3 | 2020-10-28T22:15:27.000Z | 2021-01-27T14:43:41.000Z | python/dragonradio/dragonradio/net/__init__.py | drexelwireless/dragonradio | 885abd68d56af709e7a53737352641908005c45b | [
"MIT"
] | null | null | null | # Copyright 2021 Drexel University
# Author: Geoffrey Mainland <mainland@drexel.edu>
try:
from _dragonradio.net import *
except:
pass
| 17.375 | 49 | 0.76259 | 17 | 139 | 6.176471 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034188 | 0.158273 | 139 | 7 | 50 | 19.857143 | 0.863248 | 0.57554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
3b2dfadc0723866c776dd2e832a0bd0837f7b239 | 246 | py | Python | run/depla/experiment/__init__.py | KinakomochiBotan/depla | e2c530f7fe5fc8fe185f0f789738fa7fc52bdeca | [
"MIT"
] | null | null | null | run/depla/experiment/__init__.py | KinakomochiBotan/depla | e2c530f7fe5fc8fe185f0f789738fa7fc52bdeca | [
"MIT"
] | null | null | null | run/depla/experiment/__init__.py | KinakomochiBotan/depla | e2c530f7fe5fc8fe185f0f789738fa7fc52bdeca | [
"MIT"
] | null | null | null | from .experiment import Experiment
from .experiment1 import Experiment1
from .experiment2 import Experiment21, Experiment22, Experiment23
from .experiment3 import Experiment31, Experiment32, Experiment33, Experiment34, Experiment35, Experiment36
| 49.2 | 107 | 0.861789 | 23 | 246 | 9.217391 | 0.652174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098655 | 0.093496 | 246 | 4 | 108 | 61.5 | 0.852018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3b70e4c1e7bc801d960c67b7f02acbf422800456 | 11,178 | py | Python | consensus_and_profile.py | ivanmilevtues/BioInformatic | 5cb8f3a51f08d6a39732ec2feecc531e11f97797 | [
"MIT"
] | null | null | null | consensus_and_profile.py | ivanmilevtues/BioInformatic | 5cb8f3a51f08d6a39732ec2feecc531e11f97797 | [
"MIT"
] | null | null | null | consensus_and_profile.py | ivanmilevtues/BioInformatic | 5cb8f3a51f08d6a39732ec2feecc531e11f97797 | [
"MIT"
] | null | null | null | import pprint
def parse_input(data):
result = {}
for el in data.split('>'):
if el =='\n':
continue
result[el[:14]] = el[14:].strip().replace('\n', '')
pprint.pprint(result)
return result
def make_profile(data):
dna_strings = []
for _, v in data.items():
... | 47.364407 | 60 | 0.926552 | 379 | 11,178 | 27.200528 | 0.580475 | 0.005238 | 0.00582 | 0.007566 | 0.017169 | 0.013774 | 0.009021 | 0.007275 | 0 | 0 | 0 | 0.004918 | 0.054124 | 11,178 | 235 | 61 | 47.565957 | 0.970113 | 0.002326 | 0 | 0.009259 | 0 | 0 | 0.882232 | 0.852094 | 0 | 1 | 0 | 0 | 0 | 1 | 0.018519 | false | 0 | 0.00463 | 0 | 0.027778 | 0.027778 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3b78751e748e0c28eb4574bc2ceb68edf1932467 | 209 | py | Python | doc/_themes/__init__.py | embedded-devops/Flask-MQTT | bc3a625f14fb4ec8290bf151072c147497f3a0a0 | [
"MIT"
] | 64 | 2016-12-10T16:55:32.000Z | 2021-01-25T02:15:01.000Z | doc/_themes/__init__.py | embedded-devops/Flask-MQTT | bc3a625f14fb4ec8290bf151072c147497f3a0a0 | [
"MIT"
] | 2 | 2017-09-22T09:36:16.000Z | 2021-03-22T17:15:52.000Z | doc/_themes/__init__.py | embedded-devops/Flask-MQTT | bc3a625f14fb4ec8290bf151072c147497f3a0a0 | [
"MIT"
] | 10 | 2016-12-11T03:19:36.000Z | 2021-05-02T14:53:16.000Z | import os
__version__ = '1.0.1'
def get_path():
return os.path.abspath(os.path.dirname(__file__))
def setup(app):
return {
'version': __version__,
'parallel_read_safe': True
}
| 13.933333 | 53 | 0.62201 | 27 | 209 | 4.259259 | 0.666667 | 0.104348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018987 | 0.244019 | 209 | 14 | 54 | 14.928571 | 0.708861 | 0 | 0 | 0 | 0 | 0 | 0.143541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.222222 | 0.555556 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
3b99148cfdeb90a765f839391c5a34781f128d17 | 185 | py | Python | app/schemas.py | ev-horrosh/fastapi-project | 4e38f5eb7573b8d70add47dd52fc973e9fed07b9 | [
"MIT"
] | null | null | null | app/schemas.py | ev-horrosh/fastapi-project | 4e38f5eb7573b8d70add47dd52fc973e9fed07b9 | [
"MIT"
] | null | null | null | app/schemas.py | ev-horrosh/fastapi-project | 4e38f5eb7573b8d70add47dd52fc973e9fed07b9 | [
"MIT"
] | null | null | null | from re import S
from pydantic import BaseModel
from typing import Optional
class User(BaseModel):
first_name:str
last_name:str
age:int
sex:Optional[str]=None
| 16.818182 | 30 | 0.708108 | 27 | 185 | 4.777778 | 0.666667 | 0.108527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237838 | 185 | 11 | 31 | 16.818182 | 0.914894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.375 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
8e5772016ce9d093b9d855bc35d35474f74a9187 | 101 | py | Python | abstract-codegen/src/atmfjstc/lib/abstract_codegen/ast/__init__.py | goc9000/python-library | 0a4a09278df6e84061baedda8997071e2201103f | [
"MIT"
] | null | null | null | abstract-codegen/src/atmfjstc/lib/abstract_codegen/ast/__init__.py | goc9000/python-library | 0a4a09278df6e84061baedda8997071e2201103f | [
"MIT"
] | null | null | null | abstract-codegen/src/atmfjstc/lib/abstract_codegen/ast/__init__.py | goc9000/python-library | 0a4a09278df6e84061baedda8997071e2201103f | [
"MIT"
] | null | null | null | """
This package groups all the built-in node classes offered by the `abstract_codegen` package.
"""
| 25.25 | 92 | 0.752475 | 15 | 101 | 5 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148515 | 101 | 3 | 93 | 33.666667 | 0.872093 | 0.910891 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8e6099119f26b536e38e505e34fc237bd2e59cfb | 152 | py | Python | chapter-14/shakespearebot-waypoint/bot/models.py | GeSup/Hands-on-JavaScript-for-Python-Developers | a4d779e3e46797754252e97ec0e517c9e42682c6 | [
"MIT"
] | 41 | 2019-04-30T14:55:48.000Z | 2022-03-27T21:59:56.000Z | chapter-14/shakespearebot-waypoint/bot/models.py | GeSup/Hands-on-JavaScript-for-Python-Developers | a4d779e3e46797754252e97ec0e517c9e42682c6 | [
"MIT"
] | 10 | 2020-05-27T22:54:38.000Z | 2020-10-13T21:52:24.000Z | chapter-14/shakespearebot-waypoint/bot/models.py | GeSup/Hands-on-JavaScript-for-Python-Developers | a4d779e3e46797754252e97ec0e517c9e42682c6 | [
"MIT"
] | 24 | 2019-05-07T21:02:11.000Z | 2021-10-31T23:44:14.000Z | from django.db import models
class Text(models.Model):
PlayerLine = models.CharField(max_length=1000)
def __str__(self):
return self.PlayerLine | 25.333333 | 48 | 0.769737 | 21 | 152 | 5.333333 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030534 | 0.138158 | 152 | 6 | 49 | 25.333333 | 0.824427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
8e67c9cb778e91d2cab352898b79d1683798c293 | 144 | py | Python | Externals/micromegas_4.3.5/Packages/smodels-v1.1.0patch1/smodels/tools/__init__.py | yuanfangtardis/vscode_project | 2d78a85413cc85789cc4fee8ec991eb2a0563ef8 | [
"Apache-2.0"
] | null | null | null | Externals/micromegas_4.3.5/Packages/smodels-v1.1.0patch1/smodels/tools/__init__.py | yuanfangtardis/vscode_project | 2d78a85413cc85789cc4fee8ec991eb2a0563ef8 | [
"Apache-2.0"
] | null | null | null | Externals/micromegas_4.3.5/Packages/smodels-v1.1.0patch1/smodels/tools/__init__.py | yuanfangtardis/vscode_project | 2d78a85413cc85789cc4fee8ec991eb2a0563ef8 | [
"Apache-2.0"
] | 1 | 2022-01-15T12:22:30.000Z | 2022-01-15T12:22:30.000Z | """
.. module:: tools.__init__
:synopsis: This package contains tools for handling results obtained with the
main SModelS code.
"""
| 20.571429 | 81 | 0.6875 | 17 | 144 | 5.588235 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215278 | 144 | 6 | 82 | 24 | 0.840708 | 0.930556 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8e7e2fd82b90a62a490603dc24f1988ca7e27fb8 | 31 | py | Python | networth/__init__.py | Hedde/django-networth | 496311e31f3b49202bda9c0b2997ee4508cc9477 | [
"MIT"
] | null | null | null | networth/__init__.py | Hedde/django-networth | 496311e31f3b49202bda9c0b2997ee4508cc9477 | [
"MIT"
] | 3 | 2020-02-12T00:02:35.000Z | 2021-06-10T19:38:41.000Z | networth/__init__.py | Hedde/django-networth | 496311e31f3b49202bda9c0b2997ee4508cc9477 | [
"MIT"
] | null | null | null | __author__ = 'heddevanderheide' | 31 | 31 | 0.83871 | 2 | 31 | 11 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 31 | 1 | 31 | 31 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8e92b7bf4f6465a749d963319c6412e27abe7160 | 111 | py | Python | src/ToolChainSCDG/procedures/linux/custom_package/gen_simproc4v.py | AnonymousSEMA/SEMA-ToolChain | 05d6a7e43e10d4b1f6c5dfb70fbabeab3d4daf82 | [
"BSD-2-Clause"
] | null | null | null | src/ToolChainSCDG/procedures/linux/custom_package/gen_simproc4v.py | AnonymousSEMA/SEMA-ToolChain | 05d6a7e43e10d4b1f6c5dfb70fbabeab3d4daf82 | [
"BSD-2-Clause"
] | null | null | null | src/ToolChainSCDG/procedures/linux/custom_package/gen_simproc4v.py | AnonymousSEMA/SEMA-ToolChain | 05d6a7e43e10d4b1f6c5dfb70fbabeab3d4daf82 | [
"BSD-2-Clause"
] | null | null | null | import angr
class gen_simproc4v(angr.SimProcedure):
def run(self, arg1, ar2, arg3, arg4):
return
| 15.857143 | 41 | 0.675676 | 15 | 111 | 4.933333 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05814 | 0.225225 | 111 | 6 | 42 | 18.5 | 0.802326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
8eb1436051dd71a0f14169c0a3e3c5db3f38a647 | 95 | py | Python | Bio-StrongHold/src/Partial_Permutations.py | crf1111/Bio-Informatics-Learning | 2ccc02d7a23584c12aee44c5620160cdcaf70bd4 | [
"MIT"
] | 1 | 2018-10-10T19:03:52.000Z | 2018-10-10T19:03:52.000Z | Bio-StrongHold/src/Partial_Permutations.py | crf1111/Bio-Informatics-Learning | 2ccc02d7a23584c12aee44c5620160cdcaf70bd4 | [
"MIT"
] | null | null | null | Bio-StrongHold/src/Partial_Permutations.py | crf1111/Bio-Informatics-Learning | 2ccc02d7a23584c12aee44c5620160cdcaf70bd4 | [
"MIT"
] | null | null | null | from math import factorial
n = 86
k = 8
res = factorial(n)/factorial(n-k)%1e6
print int(res)
| 11.875 | 37 | 0.694737 | 18 | 95 | 3.666667 | 0.666667 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064103 | 0.178947 | 95 | 7 | 38 | 13.571429 | 0.782051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d930bd7e55bef5a0a588be2aeede17fbaa44f754 | 745 | py | Python | exastolog/test/test_toy3.py | sysbio-curie/pyExaStoLog | a8474823c1b5ef1642339b022675e0d60e340073 | [
"BSD-3-Clause"
] | 2 | 2020-11-17T15:00:01.000Z | 2021-07-02T07:14:15.000Z | exastolog/test/test_toy3.py | sysbio-curie/pyExaStoLog | a8474823c1b5ef1642339b022675e0d60e340073 | [
"BSD-3-Clause"
] | null | null | null | exastolog/test/test_toy3.py | sysbio-curie/pyExaStoLog | a8474823c1b5ef1642339b022675e0d60e340073 | [
"BSD-3-Clause"
] | 1 | 2020-07-07T13:36:44.000Z | 2020-07-07T13:36:44.000Z | from unittest import TestCase
from ..Model import Model
from ..Simulation import Simulation
from os.path import dirname, join
import numpy as np
import math
class TestToy3(TestCase):
def test_toy3(self):
model = Model(join(dirname(__file__), "../../notebooks/model_files/toy3.bnet"))
... | 33.863636 | 87 | 0.632215 | 95 | 745 | 4.863158 | 0.410526 | 0.227273 | 0.292208 | 0.25974 | 0.294372 | 0.227273 | 0.227273 | 0.227273 | 0.227273 | 0.227273 | 0 | 0.041237 | 0.218792 | 745 | 22 | 88 | 33.863636 | 0.752577 | 0 | 0 | 0.125 | 0 | 0 | 0.069705 | 0.049598 | 0 | 0 | 0 | 0 | 0.3125 | 1 | 0.0625 | false | 0 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
d955bd3b6a1f98f5c7cc4debf622f8e2f6c5f9cd | 104 | py | Python | goutdotcom/treatment/apps.py | Spiewart/goutdotcom | 0916155732a72fcb8c8a2fb0f4dd81efef618af8 | [
"MIT"
] | null | null | null | goutdotcom/treatment/apps.py | Spiewart/goutdotcom | 0916155732a72fcb8c8a2fb0f4dd81efef618af8 | [
"MIT"
] | null | null | null | goutdotcom/treatment/apps.py | Spiewart/goutdotcom | 0916155732a72fcb8c8a2fb0f4dd81efef618af8 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class TreatmentConfig(AppConfig):
name = 'goutdotcom.treatment'
| 17.333333 | 33 | 0.778846 | 11 | 104 | 7.363636 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 104 | 5 | 34 | 20.8 | 0.910112 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
d9724df91f0d1e509249a814becdf43525ed1c7c | 182 | py | Python | Contest/ABC051/c/main.py | mpses/AtCoder | 9c101fcc0a1394754fcf2385af54b05c30a5ae2a | [
"CC0-1.0"
] | null | null | null | Contest/ABC051/c/main.py | mpses/AtCoder | 9c101fcc0a1394754fcf2385af54b05c30a5ae2a | [
"CC0-1.0"
] | null | null | null | Contest/ABC051/c/main.py | mpses/AtCoder | 9c101fcc0a1394754fcf2385af54b05c30a5ae2a | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
sx, sy, tx, ty = map(int, input().split())
x, y = tx - sx, ty - sy
print("R"*x + "U"*-~y + "L"*-~x + "D"*-~y + "R" + "U"*y + "R"*-~x + "D"*-~y + "L"*-~x + "U") | 45.5 | 92 | 0.401099 | 37 | 182 | 1.972973 | 0.513514 | 0.054795 | 0.082192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006849 | 0.197802 | 182 | 4 | 92 | 45.5 | 0.493151 | 0.115385 | 0 | 0 | 0 | 0 | 0.062112 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d9913fd01e1b721da362c3a1ba14143f873c7a20 | 5,450 | py | Python | knoema/source_data/get_indic_id.py | zmmyc/ksh | 5869908714ea87a297a8fc19ecafd7d3cf15e889 | [
"MIT"
] | 1 | 2022-03-30T06:50:42.000Z | 2022-03-30T06:50:42.000Z | knoema/source_data/get_indic_id.py | zmmyc/ksh | 5869908714ea87a297a8fc19ecafd7d3cf15e889 | [
"MIT"
] | null | null | null | knoema/source_data/get_indic_id.py | zmmyc/ksh | 5869908714ea87a297a8fc19ecafd7d3cf15e889 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import requests, json
from bs4 import BeautifulSoup
from mspider.spider import MSpider
class Get_indic_idSpider(MSpider):
def __init__(self):
self.name = "get_count_id"
self.indics = ['GDP', 'GDP-based-on-PPP', 'Real-GDP-growth', 'GDP-per-capita', 'GDP-per-capita-based-on-P... | 147.297297 | 4,232 | 0.728807 | 697 | 5,450 | 5.651363 | 0.420373 | 0.026403 | 0.018279 | 0.022848 | 0.075654 | 0.021325 | 0 | 0 | 0 | 0 | 0 | 0.004984 | 0.079633 | 5,450 | 37 | 4,233 | 147.297297 | 0.780303 | 0.008624 | 0 | 0 | 0 | 0 | 0.691111 | 0.476111 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0.035714 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
794e90ebf4066373e9e80503d5223bdfcb0a3273 | 580 | py | Python | lab8/point.py | kuzkov/computational-geometry | 4411231a8097e618e03b3ef0ad5836e49e837216 | [
"MIT"
] | 1 | 2021-04-04T07:34:14.000Z | 2021-04-04T07:34:14.000Z | lab8/point.py | kuzkov/computational-geometry | 4411231a8097e618e03b3ef0ad5836e49e837216 | [
"MIT"
] | null | null | null | lab8/point.py | kuzkov/computational-geometry | 4411231a8097e618e03b3ef0ad5836e49e837216 | [
"MIT"
] | 1 | 2021-02-18T09:50:10.000Z | 2021-02-18T09:50:10.000Z | import math
import numpy as np
from vector import Vector
import segment as segment_lib
class Point(Vector):
def direction(self, segment):
det = np.linalg.det([
segment.as_vector().as_array(),
segment_lib.Segment(segment.p1, self).as_vector().as_array()
])
return 1 i... | 25.217391 | 91 | 0.631034 | 84 | 580 | 4.261905 | 0.416667 | 0.067039 | 0.055866 | 0.083799 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021077 | 0.263793 | 580 | 22 | 92 | 26.363636 | 0.81733 | 0.037931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0.058824 | 0.235294 | 0.117647 | 0.705882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
7975367638974979532191242ae89eeddc64e809 | 4,418 | py | Python | jacket/compute/opts.py | bopopescu/jacket | d7ad3147fcb43131098c2a5210847634ff5fb325 | [
"Apache-2.0"
] | null | null | null | jacket/compute/opts.py | bopopescu/jacket | d7ad3147fcb43131098c2a5210847634ff5fb325 | [
"Apache-2.0"
] | null | null | null | jacket/compute/opts.py | bopopescu/jacket | d7ad3147fcb43131098c2a5210847634ff5fb325 | [
"Apache-2.0"
] | 2 | 2016-08-10T02:21:49.000Z | 2020-07-24T01:57:21.000Z | # Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy
# of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the Li... | 40.53211 | 85 | 0.716614 | 538 | 4,418 | 5.762082 | 0.247212 | 0.26 | 0.183871 | 0.033548 | 0.144516 | 0.086452 | 0 | 0 | 0 | 0 | 0 | 0.002506 | 0.187189 | 4,418 | 108 | 86 | 40.907407 | 0.860763 | 0.125396 | 0 | 0.086957 | 0 | 0 | 0.028045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01087 | true | 0 | 0.413043 | 0.01087 | 0.434783 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
79ce0327616efa9691f6ae8fe41ab9246d6bf9e6 | 143 | py | Python | tests/redirects_tests/urls.py | Yoann-Vie/esgi-hearthstone | 115d03426c7e8e80d89883b78ac72114c29bed12 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | tests/redirects_tests/urls.py | Yoann-Vie/esgi-hearthstone | 115d03426c7e8e80d89883b78ac72114c29bed12 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | tests/redirects_tests/urls.py | Yoann-Vie/esgi-hearthstone | 115d03426c7e8e80d89883b78ac72114c29bed12 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import url
from django.http import HttpResponse
urlpatterns = [
url(r'^$', lambda req: HttpResponse('OK')),
]
| 20.428571 | 48 | 0.678322 | 18 | 143 | 5.388889 | 0.722222 | 0.206186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188811 | 143 | 6 | 49 | 23.833333 | 0.836207 | 0 | 0 | 0 | 0 | 0 | 0.029197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
8db775d1dd9bd4e0cb2fd047201ecfb22122ee56 | 247 | py | Python | toughradius/common/__init__.py | capitek-wangsj/toughradius | ee0e6c20d32262ff7a6ace653af5a78340db62a2 | [
"Apache-2.0"
] | null | null | null | toughradius/common/__init__.py | capitek-wangsj/toughradius | ee0e6c20d32262ff7a6ace653af5a78340db62a2 | [
"Apache-2.0"
] | null | null | null | toughradius/common/__init__.py | capitek-wangsj/toughradius | ee0e6c20d32262ff7a6ace653af5a78340db62a2 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
class ObjectDict(dict):
def __getattr__(self, name):
try:
return self[name]
except KeyError:
raise AttributeError(name)
def __setattr__(self, name, value):
self[name] = value | 24.7 | 39 | 0.587045 | 27 | 247 | 5.074074 | 0.666667 | 0.233577 | 0.189781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005917 | 0.315789 | 247 | 10 | 40 | 24.7 | 0.804734 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8ddd3e9119c32c0e18dc330a4330c6e053f331a5 | 427 | py | Python | app/blueprints/seo_arizona/errors.py | Anioko/TestApp | 95fa8d27ca8e7a074e62f92609427a378844e621 | [
"MIT"
] | null | null | null | app/blueprints/seo_arizona/errors.py | Anioko/TestApp | 95fa8d27ca8e7a074e62f92609427a378844e621 | [
"MIT"
] | 1 | 2021-06-02T01:53:47.000Z | 2021-06-02T01:53:47.000Z | app/blueprints/seo_arizona/errors.py | Anioko/TestApp | 95fa8d27ca8e7a074e62f92609427a378844e621 | [
"MIT"
] | null | null | null | from flask import render_template
from app.blueprints.seo_arizona.views import seo_arizona
@seo_arizona.app_errorhandler(403)
def forbidden(_):
return render_template('errors/403.html'), 403
@seo_arizona.app_errorhandler(404)
def page_not_found(_):
return render_template('errors/404.html'), 404
@seo_ariz... | 22.473684 | 56 | 0.789227 | 60 | 427 | 5.3 | 0.416667 | 0.157233 | 0.122642 | 0.235849 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070681 | 0.105386 | 427 | 18 | 57 | 23.722222 | 0.76178 | 0 | 0 | 0 | 0 | 0 | 0.105386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0.272727 | 0.727273 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
8dde19fedd80853c00291936adb295b97fcd76bc | 1,315 | py | Python | tests.py | rudradatta/Flames | 3692564ef1c3493eb2e1586be47ca997ede97cb4 | [
"BSD-3-Clause"
] | null | null | null | tests.py | rudradatta/Flames | 3692564ef1c3493eb2e1586be47ca997ede97cb4 | [
"BSD-3-Clause"
] | null | null | null | tests.py | rudradatta/Flames | 3692564ef1c3493eb2e1586be47ca997ede97cb4 | [
"BSD-3-Clause"
] | null | null | null | import flames
import unittest
class TestFlamesMethods(unittest.TestCase):
def test_flames_count(self):
self.assertEqual(flames.flames_count('abhi','abhi'),0)
self.assertEqual(flames.flames_count('abhi','a'),3)
self.assertEqual(flames.flames_count('abhi','asd'),5)
def test_flames... | 35.540541 | 68 | 0.657034 | 157 | 1,315 | 5.343949 | 0.248408 | 0.321812 | 0.450536 | 0.386174 | 0.756853 | 0.510131 | 0.1764 | 0.1764 | 0.1764 | 0.1764 | 0 | 0.015639 | 0.173384 | 1,315 | 36 | 69 | 36.527778 | 0.75621 | 0 | 0 | 0 | 0 | 0 | 0.082953 | 0 | 0 | 0 | 0 | 0 | 0.692308 | 1 | 0.115385 | false | 0 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8de28136620ecc67d3f38af5cae41d8092c4a0be | 165 | py | Python | src/wayscript/errors.py | wayscript/wayscript-python | 55abcf4f22869fccf6dbc7853444b70339683f2a | [
"MIT"
] | 17 | 2019-04-17T18:48:51.000Z | 2022-01-28T08:47:07.000Z | src/wayscript/errors.py | Plataformaalgoritmica/wayscript-python | a0ddaf849b879631c2bab3ab1ea0878e3df10812 | [
"MIT"
] | 1 | 2019-11-13T18:11:00.000Z | 2019-11-13T18:13:13.000Z | src/wayscript/errors.py | Plataformaalgoritmica/wayscript-python | a0ddaf849b879631c2bab3ab1ea0878e3df10812 | [
"MIT"
] | 9 | 2020-01-09T23:06:39.000Z | 2022-01-01T12:02:51.000Z | """
WayScript Errors
"""
class MissingCredentialsError(Exception):
"""Error thrown when a workspace integration does not have requisite credentials"""
pass
| 20.625 | 87 | 0.745455 | 17 | 165 | 7.235294 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163636 | 165 | 7 | 88 | 23.571429 | 0.891304 | 0.569697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
8def1e2453ca4173ec7af3b63bf0b6b393ac0493 | 349 | py | Python | polymorhism/pol_testing/abc_class.py | borko81/SU_OOP_2021 | 8c38682bd4a2b032ca09f85b0a579be152223a59 | [
"MIT"
] | null | null | null | polymorhism/pol_testing/abc_class.py | borko81/SU_OOP_2021 | 8c38682bd4a2b032ca09f85b0a579be152223a59 | [
"MIT"
] | null | null | null | polymorhism/pol_testing/abc_class.py | borko81/SU_OOP_2021 | 8c38682bd4a2b032ca09f85b0a579be152223a59 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
class Abstract(ABC):
PRICE = 0
@abstractmethod
def __init__(self, name, age):
self.name = name
self.age = age
@abstractmethod
def show_name_capitalize(self):
return self.name.title()
@abstractmethod
def show_price(self):
... | 19.388889 | 35 | 0.644699 | 41 | 349 | 5.219512 | 0.414634 | 0.238318 | 0.196262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003937 | 0.272206 | 349 | 18 | 36 | 19.388889 | 0.838583 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.153846 | 0.615385 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
8defe0931ec33c13ad662fc15043aa6c6f5e4581 | 3,209 | py | Python | programa educativo de matematica.py | lucaslk122/Programa-de-matematica-basica-para-criancas | bd62ea8c1dd339290483b45b1a6f4a31a5c7e366 | [
"MIT"
] | null | null | null | programa educativo de matematica.py | lucaslk122/Programa-de-matematica-basica-para-criancas | bd62ea8c1dd339290483b45b1a6f4a31a5c7e366 | [
"MIT"
] | null | null | null | programa educativo de matematica.py | lucaslk122/Programa-de-matematica-basica-para-criancas | bd62ea8c1dd339290483b45b1a6f4a31a5c7e366 | [
"MIT"
] | null | null | null | 3# -*- coding: utf-8 -*-
"""
Created on Thu May 28 14:31:02 2020
@author: Lucas
"""
import random
acertos = 0
erros = 0
perguntas = 0
print("Programa educativo matematico")
print("""Digite a opção desejada
[1] para Soma
[2] para subtração
[3] para divisão
[4] para multiplicação""")
opção = int... | 35.263736 | 83 | 0.591773 | 375 | 3,209 | 5.064 | 0.242667 | 0.126382 | 0.058978 | 0.071617 | 0.758294 | 0.758294 | 0.724592 | 0.704581 | 0.63981 | 0.611374 | 0 | 0.043346 | 0.281084 | 3,209 | 91 | 84 | 35.263736 | 0.779801 | 0.006544 | 0 | 0.630952 | 0 | 0 | 0.354859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.011905 | 0 | 0.011905 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8df8715160af657554f13c94d21120b38964b96a | 244 | py | Python | tgbot/routers/user/__init__.py | djimboy/tgbot_template_djimbo | 71ef5e1a600d4ca952d84efde238359c7af82dcd | [
"MIT"
] | null | null | null | tgbot/routers/user/__init__.py | djimboy/tgbot_template_djimbo | 71ef5e1a600d4ca952d84efde238359c7af82dcd | [
"MIT"
] | null | null | null | tgbot/routers/user/__init__.py | djimboy/tgbot_template_djimbo | 71ef5e1a600d4ca952d84efde238359c7af82dcd | [
"MIT"
] | null | null | null | # - *- coding: utf- 8 - *-
from aiogram import Router
from tgbot.routers.user.user_menu import router_user_menu
# Подключение хендлеров для юзера
def setup_user_handlers(user_router: Router):
user_router.include_router(router_user_menu)
| 24.4 | 57 | 0.786885 | 35 | 244 | 5.2 | 0.542857 | 0.131868 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004717 | 0.131148 | 244 | 9 | 58 | 27.111111 | 0.853774 | 0.229508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5c0da5f77a085661e96a680ab4f4aace5c39d144 | 34 | py | Python | venv-lib/lib/python3.7/__future__.py | migmaciasdiaz/venvs | bcdbb75931cb27fc4b5b30f12fc44be85952157e | [
"MIT"
] | 2 | 2020-03-30T14:17:10.000Z | 2020-10-04T12:33:00.000Z | venv-lib/lib/python3.7/__future__.py | migmaciasdiaz/venvs | bcdbb75931cb27fc4b5b30f12fc44be85952157e | [
"MIT"
] | 1 | 2020-11-24T03:31:13.000Z | 2020-11-24T03:31:13.000Z | venv/lib/python3.7/__future__.py | wensu425/aws-eb-webapp | 4b149c75c11fe5b33c9a080313ec336fabb45824 | [
"MIT"
] | 1 | 2021-05-04T09:18:22.000Z | 2021-05-04T09:18:22.000Z | /usr/lib64/python3.7/__future__.py | 34 | 34 | 0.823529 | 6 | 34 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 0 | 34 | 1 | 34 | 34 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5c0dcc445a82edfdc35b31cc9c086ddb8671e374 | 294 | py | Python | pyez/get_config.py | rsmekala/junosautomation | b76b3e8ce34048e3460cb071d0aeef176ab3836f | [
"Apache-2.0"
] | 117 | 2016-08-22T15:52:28.000Z | 2022-01-08T00:53:28.000Z | pyez/get_config.py | rsmekala/junosautomation | b76b3e8ce34048e3460cb071d0aeef176ab3836f | [
"Apache-2.0"
] | 12 | 2017-10-28T09:44:44.000Z | 2018-11-21T15:12:42.000Z | pyez/get_config.py | rsmekala/junosautomation | b76b3e8ce34048e3460cb071d0aeef176ab3836f | [
"Apache-2.0"
] | 78 | 2016-08-19T05:35:28.000Z | 2022-03-13T07:16:27.000Z | from jnpr.junos import Device
from lxml import etree
dev = Device(host='xxxx', user='demo', password='demo123', gather_facts=False)
dev.open()
cnf = dev.rpc.get_config()
#cnf = dev.rpc.get_config(filter_xml=etree.XML('<configuration><interfaces/></configuration>'))
print etree.tostring(cnf)
| 29.4 | 95 | 0.751701 | 43 | 294 | 5.046512 | 0.651163 | 0.0553 | 0.082949 | 0.110599 | 0.165899 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011152 | 0.085034 | 294 | 9 | 96 | 32.666667 | 0.795539 | 0.319728 | 0 | 0 | 0 | 0 | 0.075377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.166667 | 0.333333 | null | null | 0.166667 | 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 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
5c19e95ecbd605cd5bbe2f492605c45f95815362 | 53 | py | Python | pindividual.py | IsSveshuD/lab_3 | 9e4f4a649d30b9a4b11997fbce426f44fa9fcfd1 | [
"MIT"
] | null | null | null | pindividual.py | IsSveshuD/lab_3 | 9e4f4a649d30b9a4b11997fbce426f44fa9fcfd1 | [
"MIT"
] | null | null | null | pindividual.py | IsSveshuD/lab_3 | 9e4f4a649d30b9a4b11997fbce426f44fa9fcfd1 | [
"MIT"
] | null | null | null | a, b = map(int, input().split())
print((a%b)*(b%a)+1) | 26.5 | 32 | 0.528302 | 12 | 53 | 2.333333 | 0.666667 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.09434 | 53 | 2 | 33 | 26.5 | 0.5625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
308e63c76843dc2c83c6e852f8d1de8f5c88dc24 | 236 | py | Python | thirdweb/modules/__init__.py | princetonwong/python-sdk | f35181d97620e29d055498fca75f3702f3bb2449 | [
"Apache-2.0"
] | 1 | 2022-02-18T16:59:12.000Z | 2022-02-18T16:59:12.000Z | thirdweb/modules/__init__.py | princetonwong/python-sdk | f35181d97620e29d055498fca75f3702f3bb2449 | [
"Apache-2.0"
] | null | null | null | thirdweb/modules/__init__.py | princetonwong/python-sdk | f35181d97620e29d055498fca75f3702f3bb2449 | [
"Apache-2.0"
] | null | null | null | """All Modules"""
from .nft import NftModule as NftModuleV2
from .nft_v1 import *
from .nft_types import *
from .currency import *
from .market import *
from .pack import *
from .collection import CollectionModule
from .bundle import *
| 23.6 | 41 | 0.762712 | 32 | 236 | 5.5625 | 0.5 | 0.280899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0.152542 | 236 | 9 | 42 | 26.222222 | 0.88 | 0.04661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
30a588158c50b26b948593296dc5a892bedb5ede | 101 | py | Python | scripts/fastapi/escuelas.py | HighDeFing/thesis_v4 | 2dc9288af75a8b51fe54ed66f520e8aa8a0ab3c7 | [
"Apache-2.0"
] | null | null | null | scripts/fastapi/escuelas.py | HighDeFing/thesis_v4 | 2dc9288af75a8b51fe54ed66f520e8aa8a0ab3c7 | [
"Apache-2.0"
] | null | null | null | scripts/fastapi/escuelas.py | HighDeFing/thesis_v4 | 2dc9288af75a8b51fe54ed66f520e8aa8a0ab3c7 | [
"Apache-2.0"
] | null | null | null | import json
f = open('Thesis_v3/scripts/fastapi/web/static/data/escuelas.json')
data = json.load(f)
| 20.2 | 67 | 0.752475 | 17 | 101 | 4.411765 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0.089109 | 101 | 4 | 68 | 25.25 | 0.804348 | 0 | 0 | 0 | 0 | 0 | 0.544554 | 0.544554 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
30b5e4e7800e589009301f09b9320ccd7cff9745 | 256 | py | Python | services/helpers.py | jonti09/postgresql-manager | b41dab209b3b655c71c5e0f36699e63ddba1ad06 | [
"MIT"
] | null | null | null | services/helpers.py | jonti09/postgresql-manager | b41dab209b3b655c71c5e0f36699e63ddba1ad06 | [
"MIT"
] | null | null | null | services/helpers.py | jonti09/postgresql-manager | b41dab209b3b655c71c5e0f36699e63ddba1ad06 | [
"MIT"
] | null | null | null | from configparser import ConfigParser
import boto3
class S3Client:
@staticmethod
def get_client(config: ConfigParser):
return boto3.Session(
profile_name=config.get('S3', 'profile', fallback='default')
).client('s3')
| 21.333333 | 72 | 0.671875 | 27 | 256 | 6.296296 | 0.666667 | 0.211765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025126 | 0.222656 | 256 | 11 | 73 | 23.272727 | 0.829146 | 0 | 0 | 0 | 0 | 0 | 0.070313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 0.625 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
30cae5fcba520d2336e9de37bde53bf9f641c26d | 1,593 | py | Python | src/Controllers/CEOControl.py | shulip/ShoppingMallSystem | 01e5a04a8353ca319ed2dc002fc358f6e44c33dd | [
"MIT"
] | null | null | null | src/Controllers/CEOControl.py | shulip/ShoppingMallSystem | 01e5a04a8353ca319ed2dc002fc358f6e44c33dd | [
"MIT"
] | null | null | null | src/Controllers/CEOControl.py | shulip/ShoppingMallSystem | 01e5a04a8353ca319ed2dc002fc358f6e44c33dd | [
"MIT"
] | 1 | 2021-04-22T15:14:21.000Z | 2021-04-22T15:14:21.000Z | #######################################################
#
# CEOControl.py
# Python implementation of the Class CEOControl
# Generated by Enterprise Architect
# Created on: 16-5��-2019 12:06:10
# Original author: ����
#
#######################################################
from Models.Statement import Statement... | 24.890625 | 75 | 0.640301 | 188 | 1,593 | 5.12234 | 0.340426 | 0.049844 | 0.057113 | 0.046729 | 0.19107 | 0 | 0 | 0 | 0 | 0 | 0.003766 | 0.011876 | 0.207156 | 1,593 | 64 | 76 | 24.890625 | 0.745843 | 0.096045 | 0 | 0.157895 | 1 | 0 | 0.012112 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.342105 | false | 0.210526 | 0.105263 | 0.078947 | 0.552632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
30f4e2ae84a31284f08d9dd4f970283a7dda20d5 | 40,407 | py | Python | pysnmp_mibs/ROHC-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 6 | 2017-04-21T13:48:08.000Z | 2022-01-06T19:42:52.000Z | pysnmp_mibs/ROHC-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 1 | 2020-05-05T16:42:25.000Z | 2020-05-05T16:42:25.000Z | pysnmp_mibs/ROHC-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 6 | 2020-02-08T20:28:49.000Z | 2021-09-14T13:36:46.000Z | #
# PySNMP MIB module ROHC-MIB (http://pysnmp.sf.net)
# ASN.1 source http://mibs.snmplabs.com:80/asn1/ROHC-MIB
# Produced by pysmi-0.0.7 at Sun Feb 14 00:27:00 2016
# On host bldfarm platform Linux version 4.1.13-100.fc21.x86_64 by user goose
# Using Python version 3.5.0 (default, Jan 5 2016, 17:11:52)
#
( Integer, O... | 246.384146 | 3,124 | 0.740144 | 5,111 | 40,407 | 5.850323 | 0.128351 | 0.008093 | 0.011036 | 0.009498 | 0.480151 | 0.43945 | 0.369887 | 0.343667 | 0.312163 | 0.29484 | 0 | 0.040076 | 0.163239 | 40,407 | 163 | 3,125 | 247.895706 | 0.844281 | 0.007226 | 0 | 0.019608 | 0 | 0.30719 | 0.568543 | 0.033436 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.065359 | 0.052288 | 0 | 0.104575 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
a50bf5796e4acbc1519350c7c0f92a9d2b1f20f3 | 24 | py | Python | aldryn_django_cms/__init__.py | vladimir-bezrukov/Aldryn-Django-cms | 0edac2ee0d14fada9e960afe99750b343ceeb706 | [
"BSD-3-Clause"
] | 1 | 2021-11-04T17:46:35.000Z | 2021-11-04T17:46:35.000Z | aldryn_django_cms/__init__.py | vladimir-bezrukov/Aldryn-Django-cms | 0edac2ee0d14fada9e960afe99750b343ceeb706 | [
"BSD-3-Clause"
] | null | null | null | aldryn_django_cms/__init__.py | vladimir-bezrukov/Aldryn-Django-cms | 0edac2ee0d14fada9e960afe99750b343ceeb706 | [
"BSD-3-Clause"
] | null | null | null | __version__ = '3.6.0.1'
| 12 | 23 | 0.625 | 5 | 24 | 2.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 0.125 | 24 | 1 | 24 | 24 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0.291667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a50cd6a066649f21e84260aa02f2b64721a82778 | 1,188 | py | Python | src/jemo/plugins/base.py | jazzycamel/jemo | 172a28cb9c4f75efeaf7640ce6b77d720f6e713e | [
"MIT"
] | null | null | null | src/jemo/plugins/base.py | jazzycamel/jemo | 172a28cb9c4f75efeaf7640ce6b77d720f6e713e | [
"MIT"
] | null | null | null | src/jemo/plugins/base.py | jazzycamel/jemo | 172a28cb9c4f75efeaf7640ce6b77d720f6e713e | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from typing import Callable
class PluginBase(ABC):
def __init__(self, *, name: str, port: int) -> None:
self._name = name
self._port = port
self._latest_action = "off"
def __getattribute__(self, name: str) -> Callable:
if name in ("on", "off... | 24.75 | 73 | 0.588384 | 141 | 1,188 | 4.631206 | 0.340426 | 0.073507 | 0.098009 | 0.078101 | 0.088821 | 0.088821 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29798 | 1,188 | 47 | 74 | 25.276596 | 0.782974 | 0.022727 | 0 | 0.277778 | 0 | 0 | 0.044866 | 0.028473 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0.083333 | 0.055556 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
eb59a61061f97223ab1d4a63d1d6e26c9e3f3922 | 64 | py | Python | tests/helpers/test_model_interface.py | sebastian-lapuschkin/Quantus | c3b8a9fb2018f34bd89ba38efa2b2b8c38128b3f | [
"MIT"
] | null | null | null | tests/helpers/test_model_interface.py | sebastian-lapuschkin/Quantus | c3b8a9fb2018f34bd89ba38efa2b2b8c38128b3f | [
"MIT"
] | null | null | null | tests/helpers/test_model_interface.py | sebastian-lapuschkin/Quantus | c3b8a9fb2018f34bd89ba38efa2b2b8c38128b3f | [
"MIT"
] | null | null | null | """No identified need to test model interface functionality."""
| 32 | 63 | 0.765625 | 8 | 64 | 6.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 64 | 1 | 64 | 64 | 0.875 | 0.890625 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
eb9dfa5d0a36f0ca4db0ee5aca27a1643f342549 | 257 | py | Python | matdat/__init__.py | Fumipo-Theta/matdat | cb55acd346acef5f192d71c835b8fbe5c957cc55 | [
"BSD-2-Clause"
] | null | null | null | matdat/__init__.py | Fumipo-Theta/matdat | cb55acd346acef5f192d71c835b8fbe5c957cc55 | [
"BSD-2-Clause"
] | null | null | null | matdat/__init__.py | Fumipo-Theta/matdat | cb55acd346acef5f192d71c835b8fbe5c957cc55 | [
"BSD-2-Clause"
] | null | null | null | from .figure import Figure
from .subplot import Subplot
from .subplot_time import SubplotTime
from .csv_reader import CsvReader, matchCsv
from .excel_reader import ExcelReader
from .get_path import getFileList, PathList
from .save_plot import actionSavePNG
| 32.125 | 43 | 0.848249 | 35 | 257 | 6.085714 | 0.542857 | 0.103286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116732 | 257 | 7 | 44 | 36.714286 | 0.938326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ebb6654546e2771ea9a8d0a98c2ca7dabc9a83dc | 230 | py | Python | scrapyu/__init__.py | lin-zone/scrapyu | abcb8eed2ea02121b74017e007c57c0d3762342d | [
"MIT"
] | 1 | 2021-01-05T09:11:42.000Z | 2021-01-05T09:11:42.000Z | scrapyu/__init__.py | lin-zone/scrapyu | abcb8eed2ea02121b74017e007c57c0d3762342d | [
"MIT"
] | null | null | null | scrapyu/__init__.py | lin-zone/scrapyu | abcb8eed2ea02121b74017e007c57c0d3762342d | [
"MIT"
] | null | null | null | __version__ = '0.1.12'
from ._useragent import UserAgentMiddleware
from ._markdown import MarkdownPipeline
from ._cookies import FirefoxCookiesMiddleware
from ._mongodb import MongoDBPipeline
from ._redis import RedisDupeFilter
| 25.555556 | 46 | 0.847826 | 24 | 230 | 7.75 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019512 | 0.108696 | 230 | 8 | 47 | 28.75 | 0.887805 | 0 | 0 | 0 | 0 | 0 | 0.026087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.833333 | 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 | 1 | 0 | 0 | 4 |
ebd3c4127f7770e12f634b24cbfe903d62dc536d | 57 | py | Python | LUCI/LuciConvenience.py | benjaminvigneron/LUCI | 227bb1e0b87aa06012b2809d9af7767a261e0f00 | [
"MIT"
] | null | null | null | LUCI/LuciConvenience.py | benjaminvigneron/LUCI | 227bb1e0b87aa06012b2809d9af7767a261e0f00 | [
"MIT"
] | null | null | null | LUCI/LuciConvenience.py | benjaminvigneron/LUCI | 227bb1e0b87aa06012b2809d9af7767a261e0f00 | [
"MIT"
] | null | null | null | """
A hodge-podge of convenience functions for luci
"""
| 11.4 | 47 | 0.701754 | 8 | 57 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175439 | 57 | 4 | 48 | 14.25 | 0.851064 | 0.824561 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ccdd11c45e65428dfc4eae76238a33996803a95a | 12,491 | py | Python | py/manipulation/props/parametric_object/parametric_object_test.py | LaudateCorpus1/dm_robotics | 647bc810788c74972c1684a8d2e4d2dfd2791485 | [
"Apache-2.0"
] | null | null | null | py/manipulation/props/parametric_object/parametric_object_test.py | LaudateCorpus1/dm_robotics | 647bc810788c74972c1684a8d2e4d2dfd2791485 | [
"Apache-2.0"
] | 1 | 2021-10-05T16:07:56.000Z | 2021-10-05T16:07:56.000Z | py/manipulation/props/parametric_object/parametric_object_test.py | LaudateCorpus1/dm_robotics | 647bc810788c74972c1684a8d2e4d2dfd2791485 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 DeepMind Technologies Limited.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 41.636667 | 80 | 0.629173 | 1,558 | 12,491 | 4.903081 | 0.105905 | 0.134049 | 0.064537 | 0.048959 | 0.807566 | 0.775101 | 0.737138 | 0.693415 | 0.67679 | 0.608195 | 0 | 0.052193 | 0.193179 | 12,491 | 299 | 81 | 41.77592 | 0.705795 | 0.063966 | 0 | 0.558333 | 0 | 0 | 0.081076 | 0.007799 | 0 | 0 | 0 | 0 | 0.254167 | 1 | 0.045833 | false | 0 | 0.0125 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ccdea5fc87e2dce7da82287cb335d1d1997b89b2 | 125 | py | Python | barbearia/email_config.py | FabioMarquesArao/OPE_BARBEARIA | 867e7d4b67d9d70b6056b2d817cd3d2561ca7131 | [
"MIT"
] | null | null | null | barbearia/email_config.py | FabioMarquesArao/OPE_BARBEARIA | 867e7d4b67d9d70b6056b2d817cd3d2561ca7131 | [
"MIT"
] | null | null | null | barbearia/email_config.py | FabioMarquesArao/OPE_BARBEARIA | 867e7d4b67d9d70b6056b2d817cd3d2561ca7131 | [
"MIT"
] | null | null | null | EMAIL_ADDRESS = 'domfigarobarbearia@gmail.com'
EMAIL_PASSWORD = 'barbeariadomfigaro'
HEROKU_PASSWORD = "Barbeariadomfigaro!" | 31.25 | 46 | 0.832 | 11 | 125 | 9.181818 | 0.727273 | 0.514851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072 | 125 | 4 | 47 | 31.25 | 0.87069 | 0 | 0 | 0 | 0 | 0 | 0.515873 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.666667 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
ccfb1aaf66833ea1e34ee0d93d00ff4476230fb8 | 4,890 | py | Python | tests/test_filesystem_paths.py | NinjasCL-archive/masonite-fs | 333c11d19927f9cf371d12bb87af88b0ca3dd698 | [
"MIT"
] | 2 | 2018-08-18T01:15:33.000Z | 2018-08-18T17:28:08.000Z | tests/test_filesystem_paths.py | NinjasCL-archive/masonite-fs | 333c11d19927f9cf371d12bb87af88b0ca3dd698 | [
"MIT"
] | null | null | null | tests/test_filesystem_paths.py | NinjasCL-archive/masonite-fs | 333c11d19927f9cf371d12bb87af88b0ca3dd698 | [
"MIT"
] | null | null | null | # coding: utf-8
from the import expect
from filesystem import paths
from filesystem.paths import root
class TestFilesystemPaths:
def setup_method(self):
pass
def test_that_root_exists(self):
expect(paths.ROOT).to.be.NOT.empty
def test_that_app_is_correct(self):
expect(paths.AP... | 37.045455 | 91 | 0.740082 | 724 | 4,890 | 4.667127 | 0.063536 | 0.080793 | 0.126961 | 0.213673 | 0.872152 | 0.592483 | 0.204498 | 0.023972 | 0 | 0 | 0 | 0.000239 | 0.144581 | 4,890 | 131 | 92 | 37.328244 | 0.807554 | 0.004908 | 0 | 0 | 0 | 0 | 0.051409 | 0.008637 | 0 | 0 | 0 | 0 | 0 | 1 | 0.47619 | false | 0.011905 | 0.035714 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
6913dde4acd202b7bb00fc51376d6dcff16b4ba7 | 100 | py | Python | q025.py | sjf/project_euler | 8514710e2018136ba8a087ae58cba35370700f6f | [
"MIT"
] | null | null | null | q025.py | sjf/project_euler | 8514710e2018136ba8a087ae58cba35370700f6f | [
"MIT"
] | null | null | null | q025.py | sjf/project_euler | 8514710e2018136ba8a087ae58cba35370700f6f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
f=1
fprev=1
n=2
while f < 10**999:
f,fprev = f + fprev,f
n += 1
print(n) | 11.111111 | 23 | 0.58 | 23 | 100 | 2.521739 | 0.565217 | 0.206897 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 0.22 | 100 | 9 | 24 | 11.111111 | 0.615385 | 0.21 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
69157e91f425c2893ef06beb1c157d48d39855f1 | 198 | py | Python | docsie_universal_importer/providers/google_cloud_storage/urls.py | Zarif99/test-universal | 062972ed64d9f048de702ab1edf4025cffca2abb | [
"BSD-3-Clause"
] | null | null | null | docsie_universal_importer/providers/google_cloud_storage/urls.py | Zarif99/test-universal | 062972ed64d9f048de702ab1edf4025cffca2abb | [
"BSD-3-Clause"
] | null | null | null | docsie_universal_importer/providers/google_cloud_storage/urls.py | Zarif99/test-universal | 062972ed64d9f048de702ab1edf4025cffca2abb | [
"BSD-3-Clause"
] | null | null | null | from docsie_universal_importer.providers.base.urls import default_urlpatterns
from .import_provider import GoogleCloudStorageProvider
urlpatterns = default_urlpatterns(GoogleCloudStorageProvider)
| 33 | 77 | 0.89899 | 19 | 198 | 9.105263 | 0.631579 | 0.208092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065657 | 198 | 5 | 78 | 39.6 | 0.935135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
691961c351775c6d1643e0e7e934a4b430e01308 | 35 | py | Python | tests/__init__.py | anrputina/oadds | f2e058f48a9edfbdd9ee7229b4f303cdd4543190 | [
"MIT"
] | 5 | 2020-12-25T19:38:32.000Z | 2021-06-12T20:39:05.000Z | tests/__init__.py | anrputina/ods-anomalydetection | f2e058f48a9edfbdd9ee7229b4f303cdd4543190 | [
"MIT"
] | 63 | 2020-08-04T12:08:09.000Z | 2020-10-09T12:08:09.000Z | tests/__init__.py | anrputina/ods-anomalydetection | f2e058f48a9edfbdd9ee7229b4f303cdd4543190 | [
"MIT"
] | null | null | null | """Unit test package for oadds."""
| 17.5 | 34 | 0.657143 | 5 | 35 | 4.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 35 | 1 | 35 | 35 | 0.766667 | 0.8 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
15c48e2d345be8eb45daabb4d97935eaab12b990 | 17,156 | py | Python | tests/commons/big_query/copy_job_async/copy_job/test_copy_job_service.py | Morgenz/bbq | f0fd3f626841c610aee80ad08a61123b7cccb775 | [
"Apache-2.0"
] | 41 | 2018-05-08T11:54:37.000Z | 2022-02-09T21:19:17.000Z | tests/commons/big_query/copy_job_async/copy_job/test_copy_job_service.py | Morgenz/bbq | f0fd3f626841c610aee80ad08a61123b7cccb775 | [
"Apache-2.0"
] | 139 | 2018-06-07T13:45:21.000Z | 2021-04-30T20:44:06.000Z | tests/commons/big_query/copy_job_async/copy_job/test_copy_job_service.py | Morgenz/bbq | f0fd3f626841c610aee80ad08a61123b7cccb775 | [
"Apache-2.0"
] | 5 | 2019-09-11T12:28:24.000Z | 2022-02-04T21:38:29.000Z | import unittest
from apiclient.errors import HttpError
from google.appengine.ext import testbed, ndb
from mock import patch, Mock
from src.commons.big_query.copy_job_async.copy_job.copy_job_request \
import CopyJobRequest
from src.commons.big_query.copy_job_async.copy_job.copy_job_service \
import CopyJobServ... | 42.152334 | 124 | 0.570354 | 1,684 | 17,156 | 5.328385 | 0.108076 | 0.037446 | 0.053048 | 0.060849 | 0.772206 | 0.747019 | 0.743898 | 0.708347 | 0.671124 | 0.654519 | 0 | 0.007199 | 0.344136 | 17,156 | 406 | 125 | 42.256158 | 0.79026 | 0.007403 | 0 | 0.585014 | 0 | 0 | 0.120214 | 0.022584 | 0 | 0 | 0 | 0 | 0.0317 | 1 | 0.028818 | false | 0.005764 | 0.034582 | 0 | 0.066282 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
15caae15c5cee5107dd04fd63976ca50c1febedb | 79 | py | Python | braandket/kernel/__init__.py | ZhengKeli/BraAndKet | f47cdbdb4c5040dd071815378138ac376c205f14 | [
"MIT"
] | 1 | 2022-01-13T13:18:41.000Z | 2022-01-13T13:18:41.000Z | braandket/kernel/__init__.py | ZhengKeli/BraAndKet | f47cdbdb4c5040dd071815378138ac376c205f14 | [
"MIT"
] | null | null | null | braandket/kernel/__init__.py | ZhengKeli/BraAndKet | f47cdbdb4c5040dd071815378138ac376c205f14 | [
"MIT"
] | 2 | 2020-11-06T20:16:13.000Z | 2020-12-01T12:56:03.000Z | from .abstract import Kernel
from .auto import AutoKernel
from .numpy import *
| 19.75 | 28 | 0.797468 | 11 | 79 | 5.727273 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151899 | 79 | 3 | 29 | 26.333333 | 0.940299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
15fe23beb9c7568305a1094a355c8b8ff59b537e | 294 | py | Python | arc/setupc.py | m-schleier/ARC-Alkali-Rydberg-Calculator | eabba3bc9ac2e37ba3a8dbba18d39771dcbbb9fd | [
"BSD-3-Clause"
] | 53 | 2016-12-13T11:57:07.000Z | 2022-03-23T20:25:36.000Z | arc/setupc.py | m-schleier/ARC-Alkali-Rydberg-Calculator | eabba3bc9ac2e37ba3a8dbba18d39771dcbbb9fd | [
"BSD-3-Clause"
] | 78 | 2016-12-21T11:56:03.000Z | 2022-03-15T21:01:30.000Z | arc/setupc.py | m-schleier/ARC-Alkali-Rydberg-Calculator | eabba3bc9ac2e37ba3a8dbba18d39771dcbbb9fd | [
"BSD-3-Clause"
] | 39 | 2016-12-20T07:17:50.000Z | 2022-03-02T17:27:44.000Z | from distutils.core import setup, Extension
from numpy.distutils.misc_util import get_numpy_include_dirs
setup(ext_modules=[Extension("arc_c_extensions", ["arc_c_extensions.c"],
extra_compile_args = ['-Wall', '-O3'],
include_dirs=get_numpy_include_dirs())])
| 42 | 72 | 0.707483 | 38 | 294 | 5.078947 | 0.578947 | 0.170984 | 0.15544 | 0.196891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004132 | 0.176871 | 294 | 6 | 73 | 49 | 0.793388 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c62dbdcf249b0771af08bd01ce1cb984ad5302f1 | 81 | py | Python | Dog_model/Dog/apps.py | cs-fullstack-2019-fall/django-models-cw-Deltonjr2 | 3fc667bed19201b75016798bd367d0bde9cb6c00 | [
"Apache-2.0"
] | null | null | null | Dog_model/Dog/apps.py | cs-fullstack-2019-fall/django-models-cw-Deltonjr2 | 3fc667bed19201b75016798bd367d0bde9cb6c00 | [
"Apache-2.0"
] | null | null | null | Dog_model/Dog/apps.py | cs-fullstack-2019-fall/django-models-cw-Deltonjr2 | 3fc667bed19201b75016798bd367d0bde9cb6c00 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class DogConfig(AppConfig):
name = 'Dog'
| 13.5 | 33 | 0.728395 | 10 | 81 | 5.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 81 | 5 | 34 | 16.2 | 0.893939 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
c6568e3f6207ae8a99ee488f843417b0e24ee7fa | 255 | py | Python | auth/serializers.py | sling254/the-hood | ce169abbdc368e1a7e92896abdf8237136456290 | [
"MIT"
] | null | null | null | auth/serializers.py | sling254/the-hood | ce169abbdc368e1a7e92896abdf8237136456290 | [
"MIT"
] | null | null | null | auth/serializers.py | sling254/the-hood | ce169abbdc368e1a7e92896abdf8237136456290 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from hood.models import UserProfile
class UserProfileSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = UserProfile
fields = ('bio', 'birth_date','picture','email','picture') | 36.428571 | 68 | 0.752941 | 25 | 255 | 7.6 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152941 | 255 | 7 | 69 | 36.428571 | 0.87963 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
d67252401050d3b5004b1ab15ef96c5d2e1fedcf | 76 | py | Python | tests/app/controller/webhook/github/events/__init__.py | angeleneleow/rocket2 | 649f49a94d123e78bfd014189e8fede31fa007f6 | [
"MIT"
] | null | null | null | tests/app/controller/webhook/github/events/__init__.py | angeleneleow/rocket2 | 649f49a94d123e78bfd014189e8fede31fa007f6 | [
"MIT"
] | null | null | null | tests/app/controller/webhook/github/events/__init__.py | angeleneleow/rocket2 | 649f49a94d123e78bfd014189e8fede31fa007f6 | [
"MIT"
] | null | null | null | """Contain the tests for the handlers of each supported GitHub webhook."""
| 38 | 75 | 0.75 | 11 | 76 | 5.181818 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 76 | 1 | 76 | 76 | 0.890625 | 0.894737 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d67ed600e6c41963e2d457d2e537a8860f022e80 | 1,292 | py | Python | models/base.py | IlyaBizyaev/Im2Vec | 4fff000c84500c6e977c502519497e27e1f946f2 | [
"Apache-2.0"
] | null | null | null | models/base.py | IlyaBizyaev/Im2Vec | 4fff000c84500c6e977c502519497e27e1f946f2 | [
"Apache-2.0"
] | null | null | null | models/base.py | IlyaBizyaev/Im2Vec | 4fff000c84500c6e977c502519497e27e1f946f2 | [
"Apache-2.0"
] | null | null | null | from abc import abstractmethod
from typing import Any, List
import torch
def interpolate_vectors(v1: torch.Tensor, v2: torch.Tensor, n: int) -> torch.Tensor:
step = (v2 - v1) / (n - 1)
return torch.stack([v1 + i * step for i in range(n)], dim=0)
def reparameterize(mu: torch.Tensor, log_var: torch.Tensor) -... | 28.711111 | 84 | 0.648607 | 177 | 1,292 | 4.655367 | 0.40678 | 0.200243 | 0.07767 | 0.106796 | 0.20267 | 0.20267 | 0.17233 | 0 | 0 | 0 | 0 | 0.011 | 0.226006 | 1,292 | 44 | 85 | 29.363636 | 0.813 | 0.170279 | 0 | 0.28 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.32 | false | 0.08 | 0.12 | 0 | 0.56 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
d6a8edcb5b2dcf22573395513ba3203eee17a175 | 15 | py | Python | assist/__init__.py | jmlopez-rod/assist | 6fb1c76dc3b0dc441faa7347285343e2e529651a | [
"BSD-2-Clause"
] | 1 | 2015-10-30T23:33:11.000Z | 2015-10-30T23:33:11.000Z | assist/__init__.py | jmlopez-rod/assist | 6fb1c76dc3b0dc441faa7347285343e2e529651a | [
"BSD-2-Clause"
] | null | null | null | assist/__init__.py | jmlopez-rod/assist | 6fb1c76dc3b0dc441faa7347285343e2e529651a | [
"BSD-2-Clause"
] | null | null | null | """Assist
"""
| 3.75 | 9 | 0.4 | 1 | 15 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 15 | 3 | 10 | 5 | 0.5 | 0.4 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d6cc317a27628be12980edb90d20e0b73593f693 | 205 | py | Python | data/copy_license.py | dashingsoft/pyarmor-server | 8ac1995d3a0b4ca4592a2a9fa255a7a420f36bc7 | [
"MIT"
] | 28 | 2020-07-02T22:12:32.000Z | 2022-03-30T03:21:34.000Z | data/copy_license.py | dashingsoft/pyarmor-server | 8ac1995d3a0b4ca4592a2a9fa255a7a420f36bc7 | [
"MIT"
] | 3 | 2020-03-09T09:43:48.000Z | 2020-10-19T05:23:37.000Z | data/copy_license.py | dashingsoft/pyarmor-server | 8ac1995d3a0b4ca4592a2a9fa255a7a420f36bc7 | [
"MIT"
] | 13 | 2020-04-27T13:31:00.000Z | 2022-01-16T05:49:06.000Z | import sys
from os.path import join, dirname
with open(join(dirname(sys.executable), 'license.lic'), 'rb') as fs:
with open(join(sys._MEIPASS, 'license.lic'), 'wb') as fd:
fd.write(fs.read())
| 29.285714 | 68 | 0.663415 | 33 | 205 | 4.090909 | 0.606061 | 0.162963 | 0.177778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160976 | 205 | 6 | 69 | 34.166667 | 0.784884 | 0 | 0 | 0 | 0 | 0 | 0.127451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 0.4 | 0 | 0.4 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
d6e578f9bf5ed9349829616902ed52c6a3a8e2e9 | 177 | py | Python | get_version.py | sbacchio/tuneit | 8d4771acbb56e07336e2aae66160a1f62777cb01 | [
"BSD-3-Clause"
] | null | null | null | get_version.py | sbacchio/tuneit | 8d4771acbb56e07336e2aae66160a1f62777cb01 | [
"BSD-3-Clause"
] | null | null | null | get_version.py | sbacchio/tuneit | 8d4771acbb56e07336e2aae66160a1f62777cb01 | [
"BSD-3-Clause"
] | null | null | null | "Usage: python -m get_version ./setup.py"
import setuptools
import sys
setuptools.setup = lambda *args, version=None, **kwargs: print(version)
exec(open(sys.argv[1]).read())
| 19.666667 | 71 | 0.728814 | 26 | 177 | 4.923077 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006369 | 0.112994 | 177 | 8 | 72 | 22.125 | 0.808917 | 0.220339 | 0 | 0 | 0 | 0 | 0.220339 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ba74d6985832776a9d24326b66b17b4e74388e84 | 10,385 | py | Python | tests/reports/test_controls_reporter.py | FoxoTech/methylcheck | 881d14d78e6086aab184716e0b79cdf87e9be8bf | [
"MIT"
] | 2 | 2019-10-13T21:42:14.000Z | 2019-10-16T19:08:49.000Z | tests/reports/test_controls_reporter.py | FoxoTech/methylcheck | 881d14d78e6086aab184716e0b79cdf87e9be8bf | [
"MIT"
] | 11 | 2021-04-08T16:14:54.000Z | 2022-03-09T00:22:13.000Z | tests/reports/test_controls_reporter.py | LifeEGX/methQC | 2b4f960e7e5c7baca9dc778ca05ee332e2f27653 | [
"MIT"
] | 1 | 2020-01-09T14:26:02.000Z | 2020-01-09T14:26:02.000Z | from pathlib import Path
import pandas as pd
import numpy as np
import logging
#patching
import unittest
try:
# python 3.4+ should use builtin unittest.mock not mock package
from unittest.mock import patch
except ImportError:
from mock import patch
#app
import methylcheck
import methylprep
TESTPATH = 'te... | 68.774834 | 375 | 0.658739 | 1,716 | 10,385 | 3.884615 | 0.156177 | 0.074107 | 0.058656 | 0.086259 | 0.765077 | 0.752925 | 0.727873 | 0.707021 | 0.693369 | 0.686919 | 0 | 0.184053 | 0.177564 | 10,385 | 150 | 376 | 69.233333 | 0.596417 | 0.20674 | 0 | 0.470085 | 0 | 0.042735 | 0.225213 | 0.051644 | 0 | 0 | 0 | 0 | 0.094017 | 1 | 0.059829 | false | 0.017094 | 0.08547 | 0 | 0.179487 | 0.008547 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
baaba6a98acb8b308d5a161ba06afe454b488903 | 93 | py | Python | tests/conftest.py | Andy-Wilkinson/ChemMLToolk | 83efc7ea66d2def860a3e04ccd70d77fb689fddc | [
"MIT"
] | 1 | 2019-10-30T03:43:24.000Z | 2019-10-30T03:43:24.000Z | tests/conftest.py | Andy-Wilkinson/ChemMLToolk | 83efc7ea66d2def860a3e04ccd70d77fb689fddc | [
"MIT"
] | 2 | 2021-11-28T21:09:30.000Z | 2021-11-28T21:09:39.000Z | tests/conftest.py | Andy-Wilkinson/ChemMLToolkit | 83efc7ea66d2def860a3e04ccd70d77fb689fddc | [
"MIT"
] | null | null | null | import tensorflow as tf
if tf.__version__.startswith('1.'):
tf.enable_eager_execution()
| 18.6 | 35 | 0.752688 | 13 | 93 | 4.923077 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.129032 | 93 | 4 | 36 | 23.25 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.021505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
baaddc9bb45e6aae722ae9541eaec5a520d340ca | 189 | py | Python | parse/forms.py | damiso15/excel_microservice | 4c1b57ad6b5d1afb455d55ea97981b8ecc7c28f6 | [
"MIT"
] | null | null | null | parse/forms.py | damiso15/excel_microservice | 4c1b57ad6b5d1afb455d55ea97981b8ecc7c28f6 | [
"MIT"
] | 5 | 2021-03-30T14:07:01.000Z | 2021-09-22T19:30:11.000Z | parse/forms.py | damiso15/excel_microservice | 4c1b57ad6b5d1afb455d55ea97981b8ecc7c28f6 | [
"MIT"
] | null | null | null | # from django import forms
# from .models import ExcelUpload
#
#
# class ExcelUploadForm(forms.ModelForm):
# class Meta:
# model = ExcelUpload
# fields = ('document', )
| 21 | 41 | 0.640212 | 18 | 189 | 6.722222 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248677 | 189 | 8 | 42 | 23.625 | 0.852113 | 0.910053 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
babe558239c679b8bcf9e3c1eea23a5feb8f7bcc | 10,697 | py | Python | tests/test_graph.py | zheng-gao/ez_code | fbf48990291aa57d6436d4548b0a6c25dfb8f82d | [
"MIT"
] | null | null | null | tests/test_graph.py | zheng-gao/ez_code | fbf48990291aa57d6436d4548b0a6c25dfb8f82d | [
"MIT"
] | null | null | null | tests/test_graph.py | zheng-gao/ez_code | fbf48990291aa57d6436d4548b0a6c25dfb8f82d | [
"MIT"
] | null | null | null | from fixture.utils import equal_list, equal_dict
from ezcode.graph import NegativeCycleExist
from ezcode.graph.directed import DirectedGraph
from ezcode.graph.undirected import UndirectedGraph
def test_undirected_graph():
"""
A ------ C
| /|\
| / | \
| / | \
| / | E
... | 40.518939 | 205 | 0.444237 | 1,608 | 10,697 | 2.840174 | 0.060323 | 0.016641 | 0.065689 | 0.087585 | 0.78279 | 0.749726 | 0.733742 | 0.70681 | 0.668272 | 0.613532 | 0 | 0.064802 | 0.314761 | 10,697 | 263 | 206 | 40.673004 | 0.558254 | 0.04319 | 0 | 0.416667 | 0 | 0 | 0.133626 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 1 | 0.033333 | false | 0 | 0.022222 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
243d8aae60e65abfff3ef3919928ba2a9f7df693 | 159 | py | Python | deui/html/view/nav_element.py | urushiyama/DeUI | 14530d2dae7d96a3dee30759f85e02239fb433c5 | [
"MIT"
] | 1 | 2021-10-17T01:54:18.000Z | 2021-10-17T01:54:18.000Z | deui/html/view/nav_element.py | urushiyama/DeUI | 14530d2dae7d96a3dee30759f85e02239fb433c5 | [
"MIT"
] | null | null | null | deui/html/view/nav_element.py | urushiyama/DeUI | 14530d2dae7d96a3dee30759f85e02239fb433c5 | [
"MIT"
] | null | null | null | from .element import Element
class Navigation(Element):
"""
Represents navigation link section.
"""
def __str__(self):
return "nav"
| 14.454545 | 39 | 0.628931 | 16 | 159 | 6 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27044 | 159 | 10 | 40 | 15.9 | 0.827586 | 0.220126 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
2441847130be3f39e5967ae0ebdadf4d608571ad | 374 | py | Python | exercicios/01.py | paulo123araujo/minicurso-python | 31cd0a168c9cd692a675a9af5172460a11c38916 | [
"MIT"
] | null | null | null | exercicios/01.py | paulo123araujo/minicurso-python | 31cd0a168c9cd692a675a9af5172460a11c38916 | [
"MIT"
] | null | null | null | exercicios/01.py | paulo123araujo/minicurso-python | 31cd0a168c9cd692a675a9af5172460a11c38916 | [
"MIT"
] | null | null | null | numeros = input("Digite dois números: ").split(" ")
num1 = float(numeros[0])
num2 = float(numeros[1])
# print(f"{num1} + {num2} = {num1 + num2}")
print("%.2f + %.2f = %.2f" %(num1, num2, (num1 + num2)))
# print(num1, "+", num2, "=", num1 + num2)
print(num1, "-", num2, "=", num1 - num2)
print(num1, "*", num2, "=", n... | 24.933333 | 56 | 0.537433 | 48 | 374 | 4.1875 | 0.291667 | 0.477612 | 0.358209 | 0.477612 | 0.60199 | 0.497512 | 0.497512 | 0.497512 | 0.497512 | 0.497512 | 0 | 0.100324 | 0.173797 | 374 | 14 | 57 | 26.714286 | 0.550162 | 0.219251 | 0 | 0 | 0 | 0 | 0.159722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
79f61a5d75644c8b4cf9fd950bb95e70f2f7c3a4 | 176 | py | Python | configs/flownet/flownets_8x1_slong_flyingchairs_384x448.py | hologerry/mmflow | 40caf064851bd95317424e31cc137c0007a2bece | [
"Apache-2.0"
] | 481 | 2021-11-16T07:04:23.000Z | 2022-03-31T22:21:21.000Z | configs/flownet/flownets_8x1_slong_flyingchairs_384x448.py | hologerry/mmflow | 40caf064851bd95317424e31cc137c0007a2bece | [
"Apache-2.0"
] | 72 | 2021-11-16T12:25:55.000Z | 2022-03-28T13:10:45.000Z | configs/flownet/flownets_8x1_slong_flyingchairs_384x448.py | hologerry/mmflow | 40caf064851bd95317424e31cc137c0007a2bece | [
"Apache-2.0"
] | 48 | 2021-11-16T06:48:46.000Z | 2022-03-30T12:46:40.000Z | _base_ = [
'../_base_/models/flownets.py',
'../_base_/datasets/flyingchairs_384x448.py',
'../_base_/schedules/schedule_s_long.py', '../_base_/default_runtime.py'
]
| 29.333333 | 76 | 0.676136 | 20 | 176 | 5.25 | 0.65 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.113636 | 176 | 5 | 77 | 35.2 | 0.634615 | 0 | 0 | 0 | 0 | 0 | 0.772727 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0309958523ceb32502c420f13cb24f00e9e388b5 | 428 | py | Python | mpfmc/tests/_test_Template.py | arthurlutz/mpf-mc | 6f4aac5d48eb07dd5aa6612985a7567af8577ce2 | [
"MIT"
] | 16 | 2016-01-07T18:17:55.000Z | 2022-03-27T14:29:42.000Z | mpfmc/tests/_test_Template.py | arthurlutz/mpf-mc | 6f4aac5d48eb07dd5aa6612985a7567af8577ce2 | [
"MIT"
] | 308 | 2016-04-10T18:33:40.000Z | 2021-11-17T21:38:49.000Z | mpfmc/tests/_test_Template.py | arthurlutz/mpf-mc | 6f4aac5d48eb07dd5aa6612985a7567af8577ce2 | [
"MIT"
] | 39 | 2016-02-23T23:49:20.000Z | 2021-11-08T04:50:12.000Z | # How to add a test:
# Copy this file
# Rename TestTemplate to TestWhatever in line 9
# Rename machine path and config file in lines 11 and 14
from mpfmc.tests.MpfMcTestCase import MpfMcTestCase
class TestTemplate(MpfMcTestCase):
def get_machine_path(self):
return 'tests/machine_files/test_template'
... | 23.777778 | 56 | 0.733645 | 60 | 428 | 5.1 | 0.6 | 0.071895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 0.205607 | 428 | 17 | 57 | 25.176471 | 0.885294 | 0.313084 | 0 | 0 | 0 | 0 | 0.176471 | 0.114187 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.125 | 0.125 | 0.25 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
0358f73562d2122131efd6aa840de358e08667b3 | 4,060 | py | Python | accounting/migrations/0001_initial.py | bobjiangps/django-blog | 6afd36fa96c5a027546575b362b0a481c5d7c1a5 | [
"MIT"
] | 3 | 2019-10-25T13:08:04.000Z | 2020-01-05T11:29:18.000Z | accounting/migrations/0001_initial.py | bobjiangps/django-blog | 6afd36fa96c5a027546575b362b0a481c5d7c1a5 | [
"MIT"
] | 9 | 2020-05-10T10:13:56.000Z | 2022-03-11T23:33:52.000Z | accounting/migrations/0001_initial.py | bobjiangps/django-blog | 6afd36fa96c5a027546575b362b0a481c5d7c1a5 | [
"MIT"
] | 3 | 2019-02-11T02:55:51.000Z | 2020-01-05T11:29:20.000Z | # Generated by Django 2.2.13 on 2021-01-22 17:41
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Account'... | 45.617978 | 150 | 0.57069 | 400 | 4,060 | 5.66 | 0.21 | 0.066254 | 0.047703 | 0.084806 | 0.746025 | 0.746025 | 0.713781 | 0.69258 | 0.69258 | 0.607774 | 0 | 0.018188 | 0.282266 | 4,060 | 88 | 151 | 46.136364 | 0.758751 | 0.01133 | 0 | 0.580247 | 1 | 0 | 0.117149 | 0.005484 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.08642 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0371b2e5e808a3335687f6bb1d019e4b4c60e31e | 1,610 | py | Python | 01_Modelos_Supervisionados/1.2_Analise_Discriminante_Linear_e_Quadratica/1.2.3_Formulacao_Matematica_de_Reducao_de_Dimensionalidade_LDA.py | BrunoBertti/Scikit_Learning | 4b9e10ff7909f3728ac1e8bba19f5fd779340bc4 | [
"MIT"
] | null | null | null | 01_Modelos_Supervisionados/1.2_Analise_Discriminante_Linear_e_Quadratica/1.2.3_Formulacao_Matematica_de_Reducao_de_Dimensionalidade_LDA.py | BrunoBertti/Scikit_Learning | 4b9e10ff7909f3728ac1e8bba19f5fd779340bc4 | [
"MIT"
] | null | null | null | 01_Modelos_Supervisionados/1.2_Analise_Discriminante_Linear_e_Quadratica/1.2.3_Formulacao_Matematica_de_Reducao_de_Dimensionalidade_LDA.py | BrunoBertti/Scikit_Learning | 4b9e10ff7909f3728ac1e8bba19f5fd779340bc4 | [
"MIT"
] | null | null | null | ########## 1.2.3. Formulação matemática de redução de dimensionalidade LDA ##########
# Primeiro note que K significa que \mu_k são vetores em \mathcal{R}^d, e eles estão em um subespaço afim H de dimensão no máximo K - 1 (2 pontos estão em uma linha, 3 pontos estão em um plano, etc.) ).
# Como mencionado ac... | 161 | 479 | 0.778261 | 262 | 1,610 | 4.755725 | 0.519084 | 0.012039 | 0.024077 | 0.045746 | 0.048154 | 0.048154 | 0 | 0 | 0 | 0 | 0 | 0.006015 | 0.173913 | 1,610 | 10 | 480 | 161 | 0.930827 | 0.968323 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.1 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cef85293a8bebf5de04a9c7c28c2ecb0f768bbf3 | 129 | py | Python | alcor/models/__init__.py | wolvespack/alcor | dcc6b029ab7e6eb96b65b7b996cf335c3b030649 | [
"MIT"
] | 2 | 2017-05-02T11:36:46.000Z | 2017-05-02T14:01:16.000Z | alcor/models/__init__.py | wolvespack/alcor | dcc6b029ab7e6eb96b65b7b996cf335c3b030649 | [
"MIT"
] | 14 | 2017-10-15T20:13:23.000Z | 2017-12-03T17:00:30.000Z | alcor/models/__init__.py | wolvespack/alcor | dcc6b029ab7e6eb96b65b7b996cf335c3b030649 | [
"MIT"
] | null | null | null | from .group import Group
from .star import (STAR_PARAMETERS_NAMES,
GalacticDiskType,
Star)
| 25.8 | 41 | 0.581395 | 12 | 129 | 6.083333 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.372093 | 129 | 4 | 42 | 32.25 | 0.901235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3004b0eda50f3f009063212317a8fd0157f3b144 | 369 | py | Python | tools/configen/example/gen/configen/samples/user/conf/User.py | wpc/hydra | 43b8a0f06eaf80f75810cc249e1eaa8a211e39c4 | [
"MIT"
] | 1 | 2021-02-23T00:00:20.000Z | 2021-02-23T00:00:20.000Z | tools/configen/example/gen/configen/samples/user/conf/User.py | wpc/hydra | 43b8a0f06eaf80f75810cc249e1eaa8a211e39c4 | [
"MIT"
] | null | null | null | tools/configen/example/gen/configen/samples/user/conf/User.py | wpc/hydra | 43b8a0f06eaf80f75810cc249e1eaa8a211e39c4 | [
"MIT"
] | null | null | null | # Generated by configen, do not edit.
# See https://github.com/facebookresearch/hydra/tree/master/tools/configen
# fmt: off
# isort:skip_file
# flake8: noqa
from dataclasses import dataclass
from typing import *
from omegaconf import MISSING
@dataclass
class UserConf:
_target_: str = "configen.samples.user.User... | 20.5 | 74 | 0.742547 | 49 | 369 | 5.530612 | 0.77551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003247 | 0.165312 | 369 | 17 | 75 | 21.705882 | 0.876623 | 0.395664 | 0 | 0 | 1 | 0 | 0.119816 | 0.119816 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.375 | 0 | 0.875 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
302af14bd5d8ff0171af453caa11c3079af12cfe | 227 | py | Python | docker_compose/tweet_collector/config.py | lenaromanenko/twitter_sentiment_analysis | ac642ee4a6c2af01bd413326ff0bae406c2e2efe | [
"MIT"
] | 1 | 2021-03-23T10:27:06.000Z | 2021-03-23T10:27:06.000Z | docker_compose/tweet_collector/config.py | lenaromanenko/twitter_sentiment_analysis | ac642ee4a6c2af01bd413326ff0bae406c2e2efe | [
"MIT"
] | null | null | null | docker_compose/tweet_collector/config.py | lenaromanenko/twitter_sentiment_analysis | ac642ee4a6c2af01bd413326ff0bae406c2e2efe | [
"MIT"
] | 1 | 2021-05-31T15:39:30.000Z | 2021-05-31T15:39:30.000Z | import os
API_KEY = os.getenv('API_KEY')
API_SECRET = os.getenv('API_SECRET')
ACCESS_TOKEN = os.getenv('ACCESS_TOKEN')
ACCESS_TOKEN_SECRET = os.getenv('ACCESS_TOKEN_SECRET')
POSTGRES_PASSWORD = os.getenv('POSTGRES_PASSWORD')
| 25.222222 | 54 | 0.784141 | 34 | 227 | 4.882353 | 0.294118 | 0.240964 | 0.13253 | 0.228916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0837 | 227 | 8 | 55 | 28.375 | 0.798077 | 0 | 0 | 0 | 0 | 0 | 0.286344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.