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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19773c912a06ec6954857f22eaa27a2e9fabb016 | 2,268 | py | Python | district42/_schema_visitor.py | nikitanovosibirsk/district42 | 0c13248919fc96bde16b9634a8ea468e4882752a | [
"Apache-2.0"
] | 1 | 2016-09-16T04:09:19.000Z | 2016-09-16T04:09:19.000Z | district42/_schema_visitor.py | nikitanovosibirsk/district42 | 0c13248919fc96bde16b9634a8ea468e4882752a | [
"Apache-2.0"
] | 2 | 2021-06-14T05:53:49.000Z | 2022-02-01T14:26:31.000Z | district42/_schema_visitor.py | nikitanovosibirsk/district42 | 0c13248919fc96bde16b9634a8ea468e4882752a | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractmethod
from typing import TYPE_CHECKING, Any, Generic, TypeVar
if TYPE_CHECKING:
from .types import (
AnySchema,
BoolSchema,
BytesSchema,
ConstSchema,
DictSchema,
FloatSchema,
IntSchema,
ListSchema,
NoneSchema,
... | 30.24 | 93 | 0.65873 | 211 | 2,268 | 6.876777 | 0.350711 | 0.068229 | 0.15162 | 0.248105 | 0.359752 | 0.359752 | 0.359752 | 0 | 0 | 0 | 0 | 0.000577 | 0.236332 | 2,268 | 74 | 94 | 30.648649 | 0.837182 | 0 | 0 | 0.344828 | 0 | 0 | 0.100088 | 0.032187 | 0 | 0 | 0 | 0 | 0.017241 | 1 | 0.206897 | false | 0.172414 | 0.051724 | 0 | 0.293103 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
1983dfa76a343b12c15149bbed58f405f5ecd7d9 | 16 | py | Python | tests/fixtures/test_title_prefix/content_01_expected.py | elifesciences/elife-tools | ee345bf0e6703ef0f7e718355e85730abbdfd117 | [
"MIT"
] | 9 | 2015-04-16T08:13:31.000Z | 2020-05-18T14:03:06.000Z | tests/fixtures/test_title_prefix/content_01_expected.py | elifesciences/elife-tools | ee345bf0e6703ef0f7e718355e85730abbdfd117 | [
"MIT"
] | 310 | 2015-02-11T00:30:09.000Z | 2021-07-14T23:58:50.000Z | tests/fixtures/test_abstract_xml/content_04_expected.py | elifesciences/elife-tools | ee345bf0e6703ef0f7e718355e85730abbdfd117 | [
"MIT"
] | 9 | 2015-02-04T01:21:28.000Z | 2021-06-15T12:50:47.000Z | expected = None
| 8 | 15 | 0.75 | 2 | 16 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 16 | 1 | 16 | 16 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
198b86e5a92c3c45c2a9992e00cff5a462be55dd | 3,499 | py | Python | construct-2.8.12/construct/__init__.py | OStephan29/Codec-Python | 76d651bb23daf1d9307c8b84533d9f24a59cea28 | [
"BSD-3-Clause"
] | 1 | 2022-01-12T15:46:58.000Z | 2022-01-12T15:46:58.000Z | construct-2.8.12/construct/__init__.py | OStephan29/Codec-Python | 76d651bb23daf1d9307c8b84533d9f24a59cea28 | [
"BSD-3-Clause"
] | null | null | null | construct-2.8.12/construct/__init__.py | OStephan29/Codec-Python | 76d651bb23daf1d9307c8b84533d9f24a59cea28 | [
"BSD-3-Clause"
] | 1 | 2021-10-05T08:40:15.000Z | 2021-10-05T08:40:15.000Z | r"""
Construct 2 -- Parsing Made Fun
Homepage:
https://github.com/construct/construct
http://construct.readthedocs.org
Hands-on example:
>>> from construct import *
>>> s = Struct(
... "a" / UBInt8,
... "b" / UBInt16,
... )
>>> print s.parse(b"\x01\x02\x03")
Container:
... | 76.065217 | 1,904 | 0.590454 | 305 | 3,499 | 6.652459 | 0.688525 | 0.038443 | 0.029571 | 0.009857 | 0.017743 | 0.017743 | 0 | 0 | 0 | 0 | 0 | 0.014831 | 0.094313 | 3,499 | 45 | 1,905 | 77.755556 | 0.625434 | 0.260646 | 0 | 0 | 0 | 0.090909 | 0.595811 | 0.062452 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.454545 | 0 | 0.454545 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
19a9cba0cbc4759e72b3190872d4c53863d9a327 | 652 | py | Python | djangocms_alias/constants.py | jonathan-s/djangocms-alias | 9a9f3020aa0a01339164094c2bc1caf190d66428 | [
"BSD-3-Clause"
] | null | null | null | djangocms_alias/constants.py | jonathan-s/djangocms-alias | 9a9f3020aa0a01339164094c2bc1caf190d66428 | [
"BSD-3-Clause"
] | null | null | null | djangocms_alias/constants.py | jonathan-s/djangocms-alias | 9a9f3020aa0a01339164094c2bc1caf190d66428 | [
"BSD-3-Clause"
] | null | null | null | PLUGIN_URL_NAME_PREFIX = 'djangocms_alias'
CREATE_ALIAS_URL_NAME = '{}_create'.format(PLUGIN_URL_NAME_PREFIX)
DELETE_ALIAS_URL_NAME = '{}_delete'.format(PLUGIN_URL_NAME_PREFIX)
DETACH_ALIAS_PLUGIN_URL_NAME = '{}_detach_plugin'.format(PLUGIN_URL_NAME_PREFIX) # noqa: E501
LIST_ALIASES_URL_NAME = '{}_list'.format(PLUGIN... | 59.272727 | 98 | 0.83589 | 97 | 652 | 4.927835 | 0.195876 | 0.248954 | 0.271967 | 0.357741 | 0.468619 | 0.259414 | 0.138075 | 0 | 0 | 0 | 0 | 0.012987 | 0.055215 | 652 | 10 | 99 | 65.2 | 0.762987 | 0.032209 | 0 | 0 | 0 | 0 | 0.186306 | 0.033439 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
19abe1d180602214098b4b35eed65af5524ec2c9 | 230 | py | Python | insta/admin.py | mbeatrice1/instagram | f7fd139b39fc793d5c6b0c3f3f740772c2713f68 | [
"MIT"
] | null | null | null | insta/admin.py | mbeatrice1/instagram | f7fd139b39fc793d5c6b0c3f3f740772c2713f68 | [
"MIT"
] | null | null | null | insta/admin.py | mbeatrice1/instagram | f7fd139b39fc793d5c6b0c3f3f740772c2713f68 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Image,Profile
admin.site.register(Image)
admin.site.register(Profile)
# admin username=bea
#admin password=instagram
#insta acc
#username=bea345 or bea
#password=semu@12345
| 16.428571 | 33 | 0.8 | 33 | 230 | 5.575758 | 0.606061 | 0.130435 | 0.184783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039024 | 0.108696 | 230 | 13 | 34 | 17.692308 | 0.858537 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 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 | 3 |
19af2da371431022145b058de035c93cdd3a8d21 | 358 | py | Python | Assignments/Objects and Classes/Lab/02. Party.py | KaloyankerR/python-fundamentals-repository | b8e69523ea7e6aa352e8398f0202e283374a0f7c | [
"MIT"
] | null | null | null | Assignments/Objects and Classes/Lab/02. Party.py | KaloyankerR/python-fundamentals-repository | b8e69523ea7e6aa352e8398f0202e283374a0f7c | [
"MIT"
] | null | null | null | Assignments/Objects and Classes/Lab/02. Party.py | KaloyankerR/python-fundamentals-repository | b8e69523ea7e6aa352e8398f0202e283374a0f7c | [
"MIT"
] | null | null | null | class Party:
def __init__(self):
self.party_people = []
self.party_people_counter = 0
party = Party()
people = input()
while people != 'End':
party.party_people.append(people)
party.party_people_counter += 1
people = input()
print(f'Going: {", ".join(party.party_people)}')
print(f'T... | 18.842105 | 48 | 0.656425 | 46 | 358 | 4.826087 | 0.391304 | 0.346847 | 0.36036 | 0.207207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006944 | 0.195531 | 358 | 18 | 49 | 19.888889 | 0.763889 | 0 | 0 | 0.166667 | 0 | 0 | 0.212885 | 0.154062 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5ff598a07b3bfe83dbb81d53802dc79e256743fe | 224 | py | Python | New folder/Inheritance.py | piyushparastiwari/python-project | 5dba0ef4e77f1d2528f510327de4224b60b1d4ba | [
"Apache-2.0"
] | null | null | null | New folder/Inheritance.py | piyushparastiwari/python-project | 5dba0ef4e77f1d2528f510327de4224b60b1d4ba | [
"Apache-2.0"
] | null | null | null | New folder/Inheritance.py | piyushparastiwari/python-project | 5dba0ef4e77f1d2528f510327de4224b60b1d4ba | [
"Apache-2.0"
] | null | null | null | from student6 import *
class Second:
def mul(self):
self.z=self.x*self.y
print("Multiplication is: ",self.z)
def div(self):
self.z=self.x/self.y
print("Division is: ",self.z)
| 24.888889 | 44 | 0.558036 | 33 | 224 | 3.787879 | 0.484848 | 0.16 | 0.144 | 0.208 | 0.384 | 0.384 | 0.384 | 0.384 | 0 | 0 | 0 | 0.006369 | 0.299107 | 224 | 8 | 45 | 28 | 0.789809 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
271305434dafe6acd3da09c0e77c626e714ed76d | 450 | py | Python | servo/interface/empty.py | neverware-mirrors/hdctools | dd7f911bb9051e615af7fcb71d921bd481f934fb | [
"BSD-3-Clause"
] | null | null | null | servo/interface/empty.py | neverware-mirrors/hdctools | dd7f911bb9051e615af7fcb71d921bd481f934fb | [
"BSD-3-Clause"
] | null | null | null | servo/interface/empty.py | neverware-mirrors/hdctools | dd7f911bb9051e615af7fcb71d921bd481f934fb | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2020 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""A empty interface. This can be used for accounting purposes."""
import interface
class Empty(interface.Interface):
@staticmethod
def Build(**k... | 21.428571 | 72 | 0.715556 | 62 | 450 | 5.193548 | 0.725806 | 0.031056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01105 | 0.195556 | 450 | 20 | 73 | 22.5 | 0.878453 | 0.584444 | 0 | 0.25 | 0 | 0 | 0.028736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.125 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
272c2b3c3a0cfd4c40edaf6456a5e8dfd7d8af98 | 766 | py | Python | scannerToken.py | tej17584/proyecto3DisenoLenguajes | 6d358e53054322818fe0c02934f52e84d945b5f7 | [
"MIT"
] | null | null | null | scannerToken.py | tej17584/proyecto3DisenoLenguajes | 6d358e53054322818fe0c02934f52e84d945b5f7 | [
"MIT"
] | null | null | null | scannerToken.py | tej17584/proyecto3DisenoLenguajes | 6d358e53054322818fe0c02934f52e84d945b5f7 | [
"MIT"
] | null | null | null | """
Nombre: Alejandro Tejada
Curso: Diseño lenguajes de programacion
Fecha: Abril 2021
Programa: scannerToken.py
Propósito: Esta clase es para guardar los valores de token
V 1.0
"""
class tokenForScanner:
def __init__(self):
self.tipoToken = ""
self.numeracion = ""
self.valor = ""
def... | 20.702703 | 60 | 0.652742 | 87 | 766 | 5.701149 | 0.494253 | 0.108871 | 0.112903 | 0.092742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010545 | 0.25718 | 766 | 36 | 61 | 21.277778 | 0.86116 | 0.225849 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.421053 | false | 0 | 0 | 0.210526 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
273ff63c8ace8dbbe3e45adf85febbe1473c9da2 | 839 | py | Python | applications/tools/photo2cartoon.py | oukohou/PaddleGAN-develop | f574f4a7b51d8b3717c1477db4910b0438635cf7 | [
"Apache-2.0"
] | 48 | 2021-03-17T07:51:24.000Z | 2022-02-12T12:58:30.000Z | applications/tools/photo2cartoon.py | HelloWorldZhW/PaddleGAN-develop | f574f4a7b51d8b3717c1477db4910b0438635cf7 | [
"Apache-2.0"
] | null | null | null | applications/tools/photo2cartoon.py | HelloWorldZhW/PaddleGAN-develop | f574f4a7b51d8b3717c1477db4910b0438635cf7 | [
"Apache-2.0"
] | 10 | 2021-03-23T07:47:17.000Z | 2022-02-12T12:58:31.000Z | # -*- coding: utf-8 -*-
__author__ = 'kohou.wang'
__time__ = '3/17/21'
__email__ = 'oukohou@outlook.com'
# If this runs wrong, don't ask me, I don't know why;
# If this runs right, thank god, and I don't know why.
# Maybe the answer, my friend, is blowing in the wind.
# Well, I'm kidding... Always, Welcome to contact... | 38.136364 | 138 | 0.746126 | 136 | 839 | 4.367647 | 0.610294 | 0.020202 | 0.080808 | 0.121212 | 0.446128 | 0.405724 | 0.405724 | 0.405724 | 0.405724 | 0.405724 | 0 | 0.062834 | 0.108462 | 839 | 21 | 139 | 39.952381 | 0.731283 | 0.438617 | 0 | 0 | 0 | 0.25 | 0.564103 | 0.449883 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.125 | 0 | 0.125 | 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 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
275451eb33128fb6d0028817e342c175e719a5d5 | 19,159 | py | Python | stock/stock_pb2_grpc.py | gobenpark/proto | 0942b9d5f0cb0eec2ab1be7d01ae9fdbaa419adf | [
"BSD-3-Clause"
] | null | null | null | stock/stock_pb2_grpc.py | gobenpark/proto | 0942b9d5f0cb0eec2ab1be7d01ae9fdbaa419adf | [
"BSD-3-Clause"
] | null | null | null | stock/stock_pb2_grpc.py | gobenpark/proto | 0942b9d5f0cb0eec2ab1be7d01ae9fdbaa419adf | [
"BSD-3-Clause"
] | null | null | null | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
from stock import stock_pb2 as stock_dot_stock__pb2
class StockStub(object):
""... | 44.247113 | 100 | 0.649094 | 1,775 | 19,159 | 6.677746 | 0.074366 | 0.041846 | 0.066903 | 0.082342 | 0.871762 | 0.821902 | 0.676791 | 0.572598 | 0.565258 | 0.545938 | 0 | 0.005478 | 0.275902 | 19,159 | 432 | 101 | 44.349537 | 0.848915 | 0.053708 | 0 | 0.538874 | 1 | 0 | 0.06488 | 0.018315 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069705 | false | 0 | 0.008043 | 0.032172 | 0.117962 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2756bd336008fa96035be416e5f71ea19467c31c | 77 | py | Python | problem/10000~19999/11320/11320.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 1 | 2019-04-19T16:37:44.000Z | 2019-04-19T16:37:44.000Z | problem/10000~19999/11320/11320.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 1 | 2019-04-20T11:42:44.000Z | 2019-04-20T11:42:44.000Z | problem/10000~19999/11320/11320.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 3 | 2019-04-19T16:37:47.000Z | 2021-10-25T00:45:00.000Z | for _ in range(int(input())):
a,b=map(int,input().split())
print((a//b)**2) | 25.666667 | 29 | 0.584416 | 15 | 77 | 2.933333 | 0.733333 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.090909 | 77 | 3 | 30 | 25.666667 | 0.614286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
275f98c0f2bae2a4b5fcb89eb1f32d4ea434907b | 137 | py | Python | questions/urls.py | BigBlackWolf/Interview_questions | 6929901f4cf586703cb346a329258aa0c6cb7398 | [
"MIT"
] | 1 | 2020-01-20T21:24:25.000Z | 2020-01-20T21:24:25.000Z | questions/urls.py | BigBlackWolf/Interview_questions | 6929901f4cf586703cb346a329258aa0c6cb7398 | [
"MIT"
] | null | null | null | questions/urls.py | BigBlackWolf/Interview_questions | 6929901f4cf586703cb346a329258aa0c6cb7398 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import PythonQuestions
urlpatterns = [
path('', PythonQuestions.as_view(), name='python')
] | 22.833333 | 54 | 0.737226 | 16 | 137 | 6.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138686 | 137 | 6 | 55 | 22.833333 | 0.847458 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
278c1e5ddd884530a6fb096f2b7deaca52aef4e8 | 60 | py | Python | models/heads/__init__.py | codexponent/smd | e61d31e85d0b9d7bf44826787a22aaf0b252b74e | [
"Apache-2.0"
] | 32 | 2019-11-18T16:23:04.000Z | 2021-05-30T17:35:03.000Z | models/heads/__init__.py | codexponent/smd | e61d31e85d0b9d7bf44826787a22aaf0b252b74e | [
"Apache-2.0"
] | 9 | 2019-11-16T02:28:07.000Z | 2021-09-15T14:15:48.000Z | models/heads/__init__.py | codexponent/smd | e61d31e85d0b9d7bf44826787a22aaf0b252b74e | [
"Apache-2.0"
] | 6 | 2019-12-26T11:40:23.000Z | 2021-03-26T08:03:57.000Z | from .retinahead import RetinaHead
__all__ = ['RetinaHead'] | 20 | 34 | 0.783333 | 6 | 60 | 7.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116667 | 60 | 3 | 35 | 20 | 0.811321 | 0 | 0 | 0 | 0 | 0 | 0.163934 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
27a3750b50ac3384a7161be60adca2c56ee7c08a | 185 | py | Python | signal/Sensors/__init__.py | guanjie0618/mir_robot | 997b96f06545151ce44d35dd7cd32708dc587bb6 | [
"BSD-3-Clause"
] | 1 | 2022-02-16T04:24:34.000Z | 2022-02-16T04:24:34.000Z | signal/Sensors/__init__.py | alan303138/mir_robot | 997b96f06545151ce44d35dd7cd32708dc587bb6 | [
"BSD-3-Clause"
] | null | null | null | signal/Sensors/__init__.py | alan303138/mir_robot | 997b96f06545151ce44d35dd7cd32708dc587bb6 | [
"BSD-3-Clause"
] | 1 | 2022-02-16T04:24:36.000Z | 2022-02-16T04:24:36.000Z | """
Sensor of Library to measure the 5g signal
How to import:
from Sensors.{sensor_package}.lib import device
How to use:
with device() as sensor:
print(sensor.read_power())
""" | 16.818182 | 47 | 0.718919 | 29 | 185 | 4.517241 | 0.724138 | 0.076336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006536 | 0.172973 | 185 | 11 | 48 | 16.818182 | 0.849673 | 0.956757 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
27b976d86093c2c4e91533056ad167cf9c2aa275 | 682 | py | Python | setup/terraform/resources/labs/utils/smm.py | rch/edge2ai-workshop | 32af34e39439d17c2a73ba85e69248e88928a187 | [
"Apache-2.0"
] | 61 | 2019-08-21T12:33:34.000Z | 2022-02-11T14:52:46.000Z | setup/terraform/resources/labs/utils/smm.py | rch/edge2ai-workshop | 32af34e39439d17c2a73ba85e69248e88928a187 | [
"Apache-2.0"
] | 20 | 2019-10-16T15:11:01.000Z | 2021-03-31T05:34:56.000Z | setup/terraform/resources/labs/utils/smm.py | rch/edge2ai-workshop | 32af34e39439d17c2a73ba85e69248e88928a187 | [
"Apache-2.0"
] | 74 | 2019-08-21T12:33:52.000Z | 2022-02-17T03:28:56.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from requests_gssapi import HTTPSPNEGOAuth
from . import *
def _get_port():
return '8587' if is_tls_enabled() else '8585'
def _get_api_url():
return '%s://%s:%s' % (get_url_scheme(), get_hostname(), _get_port())
def _api_request(method, endpoint, expected_co... | 25.259259 | 78 | 0.681818 | 93 | 682 | 4.698925 | 0.408602 | 0.10984 | 0.1373 | 0.064073 | 0.187643 | 0.187643 | 0.187643 | 0 | 0 | 0 | 0 | 0.017731 | 0.173021 | 682 | 26 | 79 | 26.230769 | 0.757092 | 0.06305 | 0 | 0 | 0 | 0 | 0.032967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.133333 | 0.2 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
27ede254cbac02fa4244865b3cd36078837d663d | 2,178 | py | Python | twitterbot.py | Kyogin/twitterbot | 4c576faea7f1927a66e3623e26352fe07ae79455 | [
"MIT"
] | null | null | null | twitterbot.py | Kyogin/twitterbot | 4c576faea7f1927a66e3623e26352fe07ae79455 | [
"MIT"
] | null | null | null | twitterbot.py | Kyogin/twitterbot | 4c576faea7f1927a66e3623e26352fe07ae79455 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
import os
import sys
os.system('cls')
WEB_PAGE = "https://twitter.com/login"
DRIVER_PATH = "DRIVER_LOC"
USER = "SUA_CONTA"
PASSWORD = "SUA_SENHA"
driver = webdriver.Chrome(executable_path=DRIVER_PATH)
driver.get(WEB_PAGE)
time.s... | 34.03125 | 196 | 0.63315 | 332 | 2,178 | 3.873494 | 0.246988 | 0.237947 | 0.216952 | 0.158631 | 0.396579 | 0.372473 | 0.372473 | 0.292379 | 0.27916 | 0.255054 | 0 | 0.025838 | 0.16483 | 2,178 | 63 | 197 | 34.571429 | 0.681143 | 0 | 0 | 0.22807 | 0 | 0.105263 | 0.506661 | 0.278365 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.087719 | 0.087719 | 0 | 0.087719 | 0.22807 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
7e00064943be5056e8df035fe64e07ae929940a4 | 1,753 | py | Python | www/reserve/models.py | FelipeLeal/django_soccer_field_reserve | 20d4f8e047ce1ca8ce2c97a9beea5c34690168f7 | [
"MIT"
] | null | null | null | www/reserve/models.py | FelipeLeal/django_soccer_field_reserve | 20d4f8e047ce1ca8ce2c97a9beea5c34690168f7 | [
"MIT"
] | null | null | null | www/reserve/models.py | FelipeLeal/django_soccer_field_reserve | 20d4f8e047ce1ca8ce2c97a9beea5c34690168f7 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.db import models
# Create your models here.
class FieldType(models.Model):
name = models.CharField(max_length=45)
description = models.TextField()
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
def... | 29.711864 | 71 | 0.723902 | 231 | 1,753 | 5.21645 | 0.255411 | 0.06971 | 0.139419 | 0.165975 | 0.565975 | 0.565975 | 0.548548 | 0.548548 | 0.480498 | 0.480498 | 0 | 0.004818 | 0.171135 | 1,753 | 58 | 72 | 30.224138 | 0.824501 | 0.013691 | 0 | 0.414634 | 0 | 0 | 0.041715 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121951 | false | 0 | 0.04878 | 0.121951 | 0.926829 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
7e036ecac572e0f42c61cc4c82069d688bd6901f | 201 | py | Python | deploy/testdata/example.py | LudditeLabs/autodoc-tool | b4ae7e3b61907e7e9c3a1b534fce055e5860ffab | [
"Apache-2.0"
] | null | null | null | deploy/testdata/example.py | LudditeLabs/autodoc-tool | b4ae7e3b61907e7e9c3a1b534fce055e5860ffab | [
"Apache-2.0"
] | null | null | null | deploy/testdata/example.py | LudditeLabs/autodoc-tool | b4ae7e3b61907e7e9c3a1b534fce055e5860ffab | [
"Apache-2.0"
] | null | null | null | lambda x: xx
def write2(): pass
def write(*args, **kw):
raise NotImplementedError
async def foo(one, *args, **kw):
"""
Args:
args: Test
"""
data = yield from read_data(db)
| 12.5625 | 35 | 0.577114 | 27 | 201 | 4.259259 | 0.740741 | 0.104348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006849 | 0.273632 | 201 | 15 | 36 | 13.4 | 0.780822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.166667 | 0 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
fd77892671cf043aca2cd15cfe27d7acb0b40b94 | 230 | py | Python | leapp/models/error_severity.py | dhodovsk/leapp | bcd6580a19dabd132b3da8bcf2ed61fa8864ef18 | [
"Apache-2.0"
] | 29 | 2019-05-29T05:34:52.000Z | 2022-03-14T19:09:34.000Z | leapp/models/error_severity.py | dhodovsk/leapp | bcd6580a19dabd132b3da8bcf2ed61fa8864ef18 | [
"Apache-2.0"
] | 373 | 2018-11-21T11:41:49.000Z | 2022-03-31T11:40:56.000Z | leapp/models/error_severity.py | dhodovsk/leapp | bcd6580a19dabd132b3da8bcf2ed61fa8864ef18 | [
"Apache-2.0"
] | 27 | 2018-11-26T17:14:15.000Z | 2022-03-10T13:30:50.000Z | class ErrorSeverity(object):
FATAL = 'fatal'
ERROR = 'error'
WARNING = 'warning'
ALLOWED_VALUES = (FATAL, ERROR, WARNING)
@classmethod
def validate(cls, value):
return value in cls.ALLOWED_VALUES
| 20.909091 | 44 | 0.647826 | 25 | 230 | 5.88 | 0.6 | 0.136054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252174 | 230 | 10 | 45 | 23 | 0.854651 | 0 | 0 | 0 | 0 | 0 | 0.073913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0.125 | 0.875 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fd933cf0fa3a2ab50d7bee2864952ac5edc53a6e | 627 | py | Python | Stochastic/index.py | ZhukMax/mitx | 0428e36f2ffdd80b35803f3f4bb2ff3b5bd056c0 | [
"Apache-2.0"
] | null | null | null | Stochastic/index.py | ZhukMax/mitx | 0428e36f2ffdd80b35803f3f4bb2ff3b5bd056c0 | [
"Apache-2.0"
] | null | null | null | Stochastic/index.py | ZhukMax/mitx | 0428e36f2ffdd80b35803f3f4bb2ff3b5bd056c0 | [
"Apache-2.0"
] | null | null | null | import random
def gen_even():
return random.randint(0, 49) * 2
def dist1():
return random.random() * 2 - 1
def dist2():
if random.random() > 0.5:
return random.random()
else:
return random.random() - 1
def dist3():
return int(random.random() * 10)
def dist4():
return ra... | 14.25 | 44 | 0.582137 | 91 | 627 | 3.967033 | 0.417582 | 0.232687 | 0.149584 | 0.110803 | 0.144044 | 0.144044 | 0 | 0 | 0 | 0 | 0 | 0.071584 | 0.264753 | 627 | 43 | 45 | 14.581395 | 0.711497 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.36 | false | 0 | 0.04 | 0.28 | 0.76 | 0.04 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
fd9b1a79634483ee15d0a174e011d61cba4d4b7e | 157 | py | Python | Dictionaries/valid_variable_name_in_sentence.py | petel3/Softuni_education | 4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c | [
"MIT"
] | 2 | 2022-03-05T13:17:12.000Z | 2022-03-05T13:17:16.000Z | Dictionaries/valid_variable_name_in_sentence.py | petel3/Softuni_education | 4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c | [
"MIT"
] | null | null | null | Dictionaries/valid_variable_name_in_sentence.py | petel3/Softuni_education | 4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c | [
"MIT"
] | null | null | null | import re
pattern = r"\b_[A-Za-z]+\b"
text=input()
valid_variables=re.findall(pattern,text)
print(",".join([variables[1:] for variables in valid_variables])) | 31.4 | 65 | 0.732484 | 26 | 157 | 4.307692 | 0.692308 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006849 | 0.070064 | 157 | 5 | 65 | 31.4 | 0.760274 | 0 | 0 | 0 | 0 | 0 | 0.094937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fdcd57cb0a959948e28bbf1c86f027529e44baa4 | 4,769 | py | Python | tests/test_planet.py | tiagoluizrs/start-wars | dfb7f92a1e461618823dc58926062f5a215d9af0 | [
"MIT"
] | null | null | null | tests/test_planet.py | tiagoluizrs/start-wars | dfb7f92a1e461618823dc58926062f5a215d9af0 | [
"MIT"
] | null | null | null | tests/test_planet.py | tiagoluizrs/start-wars | dfb7f92a1e461618823dc58926062f5a215d9af0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from os import path
import json
import unittest
import sys
sys.path.append(path.join(path.dirname(__file__), '..'))
from app import create_app
from config import app_config, app_active
class TestHomeView(unittest.TestCase):
'''
Como todos os 3 casos de teste fazem um get na home "/"
... | 35.589552 | 98 | 0.602852 | 538 | 4,769 | 5.269517 | 0.224907 | 0.07619 | 0.111111 | 0.07619 | 0.682187 | 0.655732 | 0.635273 | 0.601411 | 0.601411 | 0.601411 | 0 | 0.021439 | 0.286014 | 4,769 | 134 | 99 | 35.589552 | 0.81116 | 0.16125 | 0 | 0.633333 | 0 | 0 | 0.147342 | 0.028861 | 0 | 0 | 0 | 0.022388 | 0.466667 | 1 | 0.077778 | false | 0 | 0.066667 | 0 | 0.155556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fdd28bcce75deeed64d308b7f9da3b99419e33a4 | 2,464 | py | Python | lambdata_vdeb/oop_examples.py | VPDeb/LambData | 0e7926456191437514a365d576b694e90f7568ef | [
"MIT"
] | null | null | null | lambdata_vdeb/oop_examples.py | VPDeb/LambData | 0e7926456191437514a365d576b694e90f7568ef | [
"MIT"
] | null | null | null | lambdata_vdeb/oop_examples.py | VPDeb/LambData | 0e7926456191437514a365d576b694e90f7568ef | [
"MIT"
] | null | null | null | """OOP Eaxamples for module 2 """
import pandas as pd
class MyDataFrame(pd.DataFrame):
def num_cells(self):
return self.shape[0] * self.shape[1]
class BareMinimumClass:
pass
class Complex:
def __init__(self, realpart, imagpart): #constructor
"""
Constructor for Complex numbers.
... | 25.936842 | 105 | 0.633117 | 326 | 2,464 | 4.628834 | 0.395706 | 0.033135 | 0.029158 | 0.029821 | 0.108681 | 0.083499 | 0.083499 | 0 | 0 | 0 | 0 | 0.020968 | 0.24513 | 2,464 | 94 | 106 | 26.212766 | 0.790323 | 0.13961 | 0 | 0.076923 | 0 | 0 | 0.131658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.019231 | 0.019231 | 0.134615 | 0.519231 | 0.057692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fdd742382ceb841100cc7fbe8a604f236e9d1858 | 518 | py | Python | src/django-nonrel/tests/regressiontests/urlpatterns_reverse/views.py | adamjmcgrath/glancydesign | 826ede7c639879d5b79ee730eb5e91422768cb02 | [
"BSD-3-Clause"
] | 790 | 2015-01-03T02:13:39.000Z | 2020-05-10T19:53:57.000Z | tests/regressiontests/urlpatterns_reverse/views.py | mradziej/django | 5d38965743a369981c9a738a298f467f854a2919 | [
"BSD-3-Clause"
] | 1,361 | 2015-01-08T23:09:40.000Z | 2020-04-14T00:03:04.000Z | tests/regressiontests/urlpatterns_reverse/views.py | mradziej/django | 5d38965743a369981c9a738a298f467f854a2919 | [
"BSD-3-Clause"
] | 155 | 2015-01-08T22:59:31.000Z | 2020-04-08T08:01:53.000Z | from django.http import HttpResponse
def empty_view(request, *args, **kwargs):
return HttpResponse('')
def kwargs_view(request, arg1=1, arg2=2):
return HttpResponse('')
def absolute_kwargs_view(request, arg1=1, arg2=2):
return HttpResponse('')
class ViewClass(object):
def __call__(self, request, *ar... | 25.9 | 74 | 0.708494 | 69 | 518 | 5.15942 | 0.521739 | 0.123596 | 0.143258 | 0.117978 | 0.449438 | 0.252809 | 0.252809 | 0.252809 | 0.252809 | 0 | 0 | 0.018391 | 0.160232 | 518 | 19 | 75 | 27.263158 | 0.8 | 0 | 0 | 0.307692 | 0 | 0 | 0.096525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0.076923 | 0.307692 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fdee8823fb6e44e96e21999962d75276bcd07549 | 206 | py | Python | supriya/ugens/BEQSuite.py | deeuu/supriya | 14fcb5316eccb4dafbe498932ceff56e1abb9d27 | [
"MIT"
] | null | null | null | supriya/ugens/BEQSuite.py | deeuu/supriya | 14fcb5316eccb4dafbe498932ceff56e1abb9d27 | [
"MIT"
] | null | null | null | supriya/ugens/BEQSuite.py | deeuu/supriya | 14fcb5316eccb4dafbe498932ceff56e1abb9d27 | [
"MIT"
] | null | null | null | from supriya.ugens.Filter import Filter
class BEQSuite(Filter):
"""
Abstract base class of all BEQSuite UGens.
"""
### CLASS VARIABLES ###
__documentation_section__ = "Filter UGens"
| 17.166667 | 46 | 0.669903 | 22 | 206 | 6.045455 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228155 | 206 | 11 | 47 | 18.727273 | 0.836478 | 0.286408 | 0 | 0 | 0 | 0 | 0.096 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fdf6c1c936bf399beb05ff51a32d13bcbdacddf0 | 122 | py | Python | textutil.py | koya-ken/cocoparser | c31f0cc802d2e31da29cf91231d1189eea9674e5 | [
"MIT"
] | null | null | null | textutil.py | koya-ken/cocoparser | c31f0cc802d2e31da29cf91231d1189eea9674e5 | [
"MIT"
] | null | null | null | textutil.py | koya-ken/cocoparser | c31f0cc802d2e31da29cf91231d1189eea9674e5 | [
"MIT"
] | 1 | 2019-10-28T00:56:06.000Z | 2019-10-28T00:56:06.000Z | def dumplist(list_data, filepath):
with open(filepath,'w') as f:
f.writelines(map(lambda x: str(x),list_data)) | 40.666667 | 53 | 0.672131 | 20 | 122 | 4 | 0.75 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172131 | 122 | 3 | 53 | 40.666667 | 0.792079 | 0 | 0 | 0 | 0 | 0 | 0.00813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8bf0e920452b10becf1d4a3b2fa2a6c55a5af4fd | 429 | py | Python | prepare/admin.py | engelsmann/bedom | eeb7eea5c5e908b8a0c744e36a4f9806105c3eb2 | [
"CC0-1.0"
] | 1 | 2020-10-01T06:40:32.000Z | 2020-10-01T06:40:32.000Z | prepare/admin.py | engelsmann/bedom | eeb7eea5c5e908b8a0c744e36a4f9806105c3eb2 | [
"CC0-1.0"
] | 17 | 2020-10-01T11:49:30.000Z | 2022-03-04T16:07:45.000Z | prepare/admin.py | engelsmann/bedom | eeb7eea5c5e908b8a0c744e36a4f9806105c3eb2 | [
"CC0-1.0"
] | null | null | null | from django.contrib import admin
# Register your models here.
from .models import Elev, Emne, FokusGruppe, Forløb, Klasse, Modul, Skole, Video #Adfærd,
admin.site.register(Skole)
admin.site.register(Klasse)
admin.site.register(Elev)
admin.site.register(Emne)
admin.site.register(Forløb)
admin.site.register(Modul)
adm... | 26.8125 | 90 | 0.792541 | 60 | 429 | 5.666667 | 0.316667 | 0.264706 | 0.5 | 0.135294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079254 | 429 | 15 | 91 | 28.6 | 0.860759 | 0.188811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
e33df2154495fe3c63fdbab66f7141be0bc63e30 | 723 | py | Python | validator/rules_src/base32.py | Varun-22/Validator | 2c5caa9323aef35e2796813a357e5a7d6d4a80ba | [
"MIT"
] | 41 | 2020-05-07T15:35:12.000Z | 2021-11-01T03:57:09.000Z | validator/rules_src/base32.py | Varun-22/Validator | 2c5caa9323aef35e2796813a357e5a7d6d4a80ba | [
"MIT"
] | 83 | 2020-05-09T22:11:26.000Z | 2022-03-10T19:06:46.000Z | validator/rules_src/base32.py | Varun-22/Validator | 2c5caa9323aef35e2796813a357e5a7d6d4a80ba | [
"MIT"
] | 25 | 2020-05-27T22:46:01.000Z | 2022-03-04T01:36:11.000Z | from validator.rules_src import Rule
import base64
class Base32(Rule):
"""
The field under validation must be a valid Base32 encoded
Examples:
>>> from validator import validate
>>> reqs = {"data" : "KZAUYSKEIFKE6URAIZKFOII="}
>>> rule = {"data" : "base32"}
>>> validate(reqs, rule)
... | 19.540541 | 61 | 0.5574 | 78 | 723 | 4.974359 | 0.538462 | 0.092784 | 0.072165 | 0.113402 | 0.154639 | 0.154639 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.315353 | 723 | 36 | 62 | 20.083333 | 0.753535 | 0.434302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.071429 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
e36a5bceb51b65a30bf8ceb60b34aa8510e52f46 | 117 | py | Python | t.snake/test_api.py | countercept/snake-charmer | c37da399c6123549f1880c4487038a2281a487e1 | [
"BSD-3-Clause"
] | null | null | null | t.snake/test_api.py | countercept/snake-charmer | c37da399c6123549f1880c4487038a2281a487e1 | [
"BSD-3-Clause"
] | null | null | null | t.snake/test_api.py | countercept/snake-charmer | c37da399c6123549f1880c4487038a2281a487e1 | [
"BSD-3-Clause"
] | 1 | 2018-09-04T09:41:29.000Z | 2018-09-04T09:41:29.000Z | import requests
def test_api_route(regtest, db, url):
r = requests.get(url + '/api')
regtest.write(r.text)
| 16.714286 | 37 | 0.666667 | 18 | 117 | 4.222222 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188034 | 117 | 6 | 38 | 19.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.034188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e383db1ccd0f09d048ab85985251e7161dd14bea | 264 | py | Python | crowd_anki/export/deck_exporter.py | ll-in-anki/CrowdAnki | b25eace61c2ddbc4dad078b83093b291581c0d87 | [
"MIT"
] | 391 | 2016-08-31T21:55:07.000Z | 2022-03-30T16:30:12.000Z | crowd_anki/export/deck_exporter.py | ll-in-anki/CrowdAnki | b25eace61c2ddbc4dad078b83093b291581c0d87 | [
"MIT"
] | 150 | 2016-09-01T00:35:35.000Z | 2022-03-30T23:26:48.000Z | crowd_anki/export/deck_exporter.py | ll-in-anki/CrowdAnki | b25eace61c2ddbc4dad078b83093b291581c0d87 | [
"MIT"
] | 51 | 2016-09-04T17:02:39.000Z | 2022-02-04T11:49:10.000Z | from abc import abstractmethod, ABC
from pathlib import Path
from ..anki.adapters.anki_deck import AnkiDeck
class DeckExporter(ABC):
@abstractmethod
def export_to_directory(self, deck: AnkiDeck, output_dir: Path, copy_media=True) -> Path:
pass
| 22 | 93 | 0.75 | 35 | 264 | 5.514286 | 0.657143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174242 | 264 | 11 | 94 | 24 | 0.885321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
8b64f6d8bf5fcedc878d636bab2ca80208c25b49 | 260 | py | Python | site-packages/pskf/scripts/singlecell/arrays.py | jjokella/pyshemkf | 61a6329f7aa5739a38a68504fd6a44568fcd833b | [
"MIT"
] | 5 | 2019-02-06T10:52:52.000Z | 2021-05-21T09:32:45.000Z | site-packages/pskf/scripts/singlecell/arrays.py | jjokella/pyshemkf | 61a6329f7aa5739a38a68504fd6a44568fcd833b | [
"MIT"
] | null | null | null | site-packages/pskf/scripts/singlecell/arrays.py | jjokella/pyshemkf | 61a6329f7aa5739a38a68504fd6a44568fcd833b | [
"MIT"
] | 1 | 2018-12-04T11:39:10.000Z | 2018-12-04T11:39:10.000Z | ###############################################################################
# Singlecell plot arrays #
###############################################################################
tag = "singlecell"
| 43.333333 | 79 | 0.126923 | 5 | 260 | 6.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246154 | 260 | 5 | 80 | 52 | 0.168367 | 0.084615 | 0 | 0 | 0 | 0 | 0.434783 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8b6933c1d2af6f0b4b7c225a7e478ca7608ed2a7 | 140 | py | Python | webcam/fields.py | NadavK/django-webcam | 80caeae5b39d534285d5ac16cd24c78e499bdce3 | [
"BSD-1-Clause"
] | null | null | null | webcam/fields.py | NadavK/django-webcam | 80caeae5b39d534285d5ac16cd24c78e499bdce3 | [
"BSD-1-Clause"
] | null | null | null | webcam/fields.py | NadavK/django-webcam | 80caeae5b39d534285d5ac16cd24c78e499bdce3 | [
"BSD-1-Clause"
] | null | null | null | from django.db import models
from webcam.picture import CameraPicture
class CameraField(models.FileField):
attr_class = CameraPicture
| 20 | 40 | 0.814286 | 17 | 140 | 6.647059 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135714 | 140 | 6 | 41 | 23.333333 | 0.933884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
475d5ce89dee53753b9d6595bc273e2782c30fb9 | 469 | py | Python | cracking_the_coding_interview_qs/6/generate_prime_numbers_test.py | angelusualle/algorithms | 86286a49db2a755bc57330cb455bcbd8241ea6be | [
"Apache-2.0"
] | null | null | null | cracking_the_coding_interview_qs/6/generate_prime_numbers_test.py | angelusualle/algorithms | 86286a49db2a755bc57330cb455bcbd8241ea6be | [
"Apache-2.0"
] | null | null | null | cracking_the_coding_interview_qs/6/generate_prime_numbers_test.py | angelusualle/algorithms | 86286a49db2a755bc57330cb455bcbd8241ea6be | [
"Apache-2.0"
] | null | null | null | import unittest
from generate_prime_numbers import is_prime, generate_prime_numbers
class Test_Case_Generate_Prime_Numbers(unittest.TestCase):
def test_generate_prime_numbers(self):
ans = generate_prime_numbers(100)
print(len(ans))
for answer in ans:
self.assertTrue(is_prime(ans... | 33.5 | 67 | 0.716418 | 63 | 469 | 5.015873 | 0.396825 | 0.132911 | 0.316456 | 0.199367 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021333 | 0.200426 | 469 | 14 | 68 | 33.5 | 0.821333 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.416667 | 0.083333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4764d71052d6cd2750e216d3b3ed4621bb0eecf3 | 200 | py | Python | test/search/test_sequential.py | dmvieira/algs | bf88d026ecf7210f0a1d601b36d7fc82364bd46f | [
"Apache-2.0"
] | null | null | null | test/search/test_sequential.py | dmvieira/algs | bf88d026ecf7210f0a1d601b36d7fc82364bd46f | [
"Apache-2.0"
] | null | null | null | test/search/test_sequential.py | dmvieira/algs | bf88d026ecf7210f0a1d601b36d7fc82364bd46f | [
"Apache-2.0"
] | null | null | null | import unittest
from test.search import CommonSearch
from src.search.sequential import SequentialSearch
class TestSequentialSearch(unittest.TestCase, CommonSearch):
search_alg = SequentialSearch | 28.571429 | 60 | 0.85 | 21 | 200 | 8.047619 | 0.619048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105 | 200 | 7 | 61 | 28.571429 | 0.944134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
479889d01ff48dbff8d994f130a14b6964d81228 | 3,119 | py | Python | lib/JumpScale/tools/realitycapture/Monitor.py | Jumpscale/jumpscale_core8 | f80ac9b1ab99b833ee7adb17700dcf4ef35f3734 | [
"Apache-2.0"
] | 8 | 2016-04-14T14:04:57.000Z | 2020-06-09T00:24:34.000Z | lib/JumpScale/tools/realitycapture/Monitor.py | Jumpscale/jumpscale_core8 | f80ac9b1ab99b833ee7adb17700dcf4ef35f3734 | [
"Apache-2.0"
] | 418 | 2016-01-25T10:30:00.000Z | 2021-09-08T12:29:13.000Z | lib/JumpScale/tools/realitycapture/Monitor.py | Jumpscale/jumpscale_core8 | f80ac9b1ab99b833ee7adb17700dcf4ef35f3734 | [
"Apache-2.0"
] | 9 | 2016-04-21T07:21:17.000Z | 2022-01-24T10:35:54.000Z |
class Monitor:
def __init__(self, controller, redis_address):
self.controller = controller
self.redis_address = redis_address
def _schedule(self, gid, nid, domain, name, args={}, cron='@every 1m'):
"""
Schedule the given jumpscript (domain/name) to run on the specified node ac... | 28.354545 | 112 | 0.566528 | 366 | 3,119 | 4.79235 | 0.188525 | 0.063854 | 0.04561 | 0.063854 | 0.68301 | 0.632839 | 0.570696 | 0.570696 | 0.54447 | 0.441847 | 0 | 0.003865 | 0.336326 | 3,119 | 109 | 113 | 28.614679 | 0.843478 | 0.543764 | 0 | 0.315789 | 0 | 0 | 0.078857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.473684 | false | 0.315789 | 0 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
47af6878fe66b1b7cb4c4205d2373f6529d55e8c | 1,235 | py | Python | torch2trt/converters/mean.py | Akababa/torch2trt | 03063b74a7eb40f5aac88d49be6b8b5e4e4e92d7 | [
"MIT"
] | 2 | 2020-07-10T06:26:03.000Z | 2020-07-10T07:38:08.000Z | torch2trt/converters/mean.py | Akababa/torch2trt | 03063b74a7eb40f5aac88d49be6b8b5e4e4e92d7 | [
"MIT"
] | 1 | 2020-02-16T09:43:35.000Z | 2020-02-16T09:43:35.000Z | torch2trt/converters/mean.py | Akababa/torch2trt | 03063b74a7eb40f5aac88d49be6b8b5e4e4e92d7 | [
"MIT"
] | null | null | null | from ..conversion_context import *
from torch2trt.module_test import add_module_test
from .binary import convert_binary_reduce
@tensorrt_converter('torch.mean')
@tensorrt_converter('torch.Tensor.mean')
def convert_mean(ctx: ConversionContext):
convert_binary_reduce(ctx, trt.ReduceOperation.AVG)
class Mean(torch... | 30.875 | 69 | 0.693927 | 184 | 1,235 | 4.434783 | 0.228261 | 0.122549 | 0.143382 | 0.176471 | 0.47549 | 0.47549 | 0.47549 | 0.47549 | 0.47549 | 0.47549 | 0 | 0.04291 | 0.131984 | 1,235 | 39 | 70 | 31.666667 | 0.718284 | 0 | 0 | 0.285714 | 0 | 0 | 0.047773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.107143 | 0.142857 | 0.5 | 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 | 0 | 0 | 0 | 3 |
47b236d8cc026d3fe742e870c53c234899032a91 | 997 | py | Python | python/kata/4-kyu/Most frequently used words in a text/main.py | Carlososuna11/codewars-handbook | a0e7c9ac5ad19cfaed3ad463c04616daa3fed82e | [
"MIT"
] | null | null | null | python/kata/4-kyu/Most frequently used words in a text/main.py | Carlososuna11/codewars-handbook | a0e7c9ac5ad19cfaed3ad463c04616daa3fed82e | [
"MIT"
] | null | null | null | python/kata/4-kyu/Most frequently used words in a text/main.py | Carlososuna11/codewars-handbook | a0e7c9ac5ad19cfaed3ad463c04616daa3fed82e | [
"MIT"
] | null | null | null | import codewars_test as test
from solution import top_3_words
test.assert_equals(top_3_words("a a a b c c d d d d e e e e e"), ["e", "d", "a"])
test.assert_equals(top_3_words("e e e e DDD ddd DdD: ddd ddd aa aA Aa, bb cc cC e e e"), ["e", "ddd", "aa"])
test.assert_equals(top_3_words(" //wont won't won't "), ["won... | 62.3125 | 108 | 0.685055 | 192 | 997 | 3.416667 | 0.442708 | 0.036585 | 0.123476 | 0.231707 | 0.352134 | 0.324695 | 0.286585 | 0.286585 | 0.204268 | 0.152439 | 0 | 0.010856 | 0.168506 | 997 | 16 | 109 | 62.3125 | 0.780458 | 0 | 0 | 0 | 0 | 0 | 0.574148 | 0 | 0 | 0 | 0 | 0 | 0.533333 | 1 | 0 | true | 0 | 0.133333 | 0 | 0.133333 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
47df2046f5890aa3e8ba35695a5d75d20fc0fd12 | 166 | py | Python | src/clusto/drivers/locations/zones/basiczone.py | thekad/clusto | c141ea3ef4931c6a21fdf42845c6e9de5ee08caa | [
"BSD-3-Clause"
] | 216 | 2015-01-10T17:03:25.000Z | 2022-03-24T07:23:41.000Z | src/clusto/drivers/locations/zones/basiczone.py | thekad/clusto | c141ea3ef4931c6a21fdf42845c6e9de5ee08caa | [
"BSD-3-Clause"
] | 23 | 2015-01-08T16:51:22.000Z | 2021-03-13T12:56:04.000Z | src/clusto/drivers/locations/zones/basiczone.py | thekad/clusto | c141ea3ef4931c6a21fdf42845c6e9de5ee08caa | [
"BSD-3-Clause"
] | 49 | 2015-01-08T00:13:17.000Z | 2021-09-22T02:01:20.000Z | from clusto.drivers.base import Location
class BasicZone(Location):
"""
Basic zone driver.
"""
_clusto_type = "zone"
_driver_name = "basiczone"
| 16.6 | 40 | 0.656627 | 18 | 166 | 5.833333 | 0.722222 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23494 | 166 | 9 | 41 | 18.444444 | 0.826772 | 0.108434 | 0 | 0 | 0 | 0 | 0.098485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9a14264c28f2af1b1a9608b1960802051178d825 | 199 | py | Python | python/python_course/function_lambda.py | haohaibo/learn | 7a30489e76abeda1465fe610b1c5cf4c4de7e3b6 | [
"MIT"
] | 1 | 2021-02-20T00:14:35.000Z | 2021-02-20T00:14:35.000Z | python/python_course/function_lambda.py | haohaibo/learn | 7a30489e76abeda1465fe610b1c5cf4c4de7e3b6 | [
"MIT"
] | null | null | null | python/python_course/function_lambda.py | haohaibo/learn | 7a30489e76abeda1465fe610b1c5cf4c4de7e3b6 | [
"MIT"
] | null | null | null |
def build_quaratic_function(a,b,c):
"""Returns the function f(x) = ax^2 + bx + c"""
return lambda x: a*x**2 + b*x + c
f = build_quaratic_function(2,3,-5)
print f(0)
print f(1)
print f(2)
| 16.583333 | 51 | 0.613065 | 41 | 199 | 2.878049 | 0.512195 | 0.152542 | 0.355932 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050633 | 0.20603 | 199 | 11 | 52 | 18.090909 | 0.696203 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
9a1ebffed30cf912ebe442153491acb184159708 | 89 | py | Python | python/407.trapping-rain-water-ii.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/407.trapping-rain-water-ii.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/407.trapping-rain-water-ii.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | class Solution:
def trapRainWater(self, heightMap: List[List[int]]) -> int:
| 22.25 | 63 | 0.629213 | 10 | 89 | 5.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235955 | 89 | 3 | 64 | 29.666667 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9a258ae11b27c580434b696cc9475435cdbe3d54 | 343 | py | Python | Python/ToLowerCaseTest.py | TonnyL/Windary | 39f85cdedaaf5b85f7ce842ecef975301fc974cf | [
"MIT"
] | 205 | 2017-11-16T08:38:46.000Z | 2022-03-06T05:50:03.000Z | Python/ToLowerCaseTest.py | santosh241/Windary | 39f85cdedaaf5b85f7ce842ecef975301fc974cf | [
"MIT"
] | 3 | 2018-04-10T10:17:52.000Z | 2020-12-11T08:00:09.000Z | Python/ToLowerCaseTest.py | santosh241/Windary | 39f85cdedaaf5b85f7ce842ecef975301fc974cf | [
"MIT"
] | 28 | 2018-04-10T06:42:42.000Z | 2021-09-14T14:15:39.000Z | from unittest import TestCase
from ToLowerCase import ToLowerCase
class ToLowerCaseTest(TestCase):
def test_toLowerCase(self):
tlc = ToLowerCase()
self.assertEqual(tlc.toLowerCase("Hello"), "hello")
self.assertEqual(tlc.toLowerCase("here"), "here")
self.assertEqual(tlc.toLowerCas... | 26.384615 | 61 | 0.699708 | 35 | 343 | 6.828571 | 0.428571 | 0.23431 | 0.225941 | 0.364017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177843 | 343 | 12 | 62 | 28.583333 | 0.847518 | 0 | 0 | 0 | 0 | 0 | 0.087464 | 0 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9a62732582e41c12d4bb5ca8446a077cc0ece81d | 144 | py | Python | Computer Programming 2021-1 Python/ContenidosMoodle/Practica/asteroides.py | jdramirezl/Teacher-Assistant | 9a79270abbb491967ecc5146969bf4ff1166cf3b | [
"MIT"
] | null | null | null | Computer Programming 2021-1 Python/ContenidosMoodle/Practica/asteroides.py | jdramirezl/Teacher-Assistant | 9a79270abbb491967ecc5146969bf4ff1166cf3b | [
"MIT"
] | null | null | null | Computer Programming 2021-1 Python/ContenidosMoodle/Practica/asteroides.py | jdramirezl/Teacher-Assistant | 9a79270abbb491967ecc5146969bf4ff1166cf3b | [
"MIT"
] | null | null | null | ast = int(input("Ingrese numero de asteroides"))
nom =input("Ingrese nombre de asteroides")
print("Los",ast,"asteroides",nom,"caen del cielo") | 28.8 | 50 | 0.729167 | 21 | 144 | 5 | 0.666667 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104167 | 144 | 5 | 50 | 28.8 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0.572414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7bdd17c8788113a8dcc97e41157c293dcdc8ad86 | 133 | py | Python | trick_sims/SIM_test_simlib/RUN_test/unit_test.py | dexueyang/trick-dup0 | 2d5d5502fa896d3c42eda40ce0ee45e98ec35463 | [
"NASA-1.3"
] | null | null | null | trick_sims/SIM_test_simlib/RUN_test/unit_test.py | dexueyang/trick-dup0 | 2d5d5502fa896d3c42eda40ce0ee45e98ec35463 | [
"NASA-1.3"
] | null | null | null | trick_sims/SIM_test_simlib/RUN_test/unit_test.py | dexueyang/trick-dup0 | 2d5d5502fa896d3c42eda40ce0ee45e98ec35463 | [
"NASA-1.3"
] | 3 | 2021-06-22T11:02:39.000Z | 2021-10-21T00:58:00.000Z |
def main():
my_integ_loop.getIntegrator( trick.Runge_Kutta_2, 4)
trick.stop(300.0)
if __name__ == "__main__":
main()
| 13.3 | 56 | 0.654135 | 19 | 133 | 3.947368 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056604 | 0.203008 | 133 | 9 | 57 | 14.777778 | 0.650943 | 0 | 0 | 0 | 0 | 0 | 0.061069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7bf268022931f1588429d85dc30a2774d20a9c50 | 307 | py | Python | examples/basic_usage/run_skater_and_return _forecast_error.py | iklasky/timemachines | 1820fa9453d31d4daaeff75274a935c7455febe3 | [
"MIT"
] | 253 | 2021-01-08T17:33:30.000Z | 2022-03-21T17:32:36.000Z | examples/basic_usage/run_skater_and_return _forecast_error.py | iklasky/timemachines | 1820fa9453d31d4daaeff75274a935c7455febe3 | [
"MIT"
] | 65 | 2021-01-20T16:43:35.000Z | 2022-03-30T19:07:22.000Z | examples/basic_usage/run_skater_and_return _forecast_error.py | iklasky/timemachines | 1820fa9453d31d4daaeff75274a935c7455febe3 | [
"MIT"
] | 28 | 2021-02-04T14:58:30.000Z | 2022-01-17T04:35:17.000Z | from timemachines.skaters.simple.thinking import thinking_slow_and_slow
from timemachines.skatertools.evaluation.evaluators import hospital_mean_square_error_with_sporadic_fit
if __name__=='__main__':
print(hospital_mean_square_error_with_sporadic_fit(f=thinking_slow_and_slow,n=120,fit_frequency=10)) | 51.166667 | 104 | 0.882736 | 44 | 307 | 5.545455 | 0.613636 | 0.131148 | 0.122951 | 0.155738 | 0.311475 | 0.311475 | 0.311475 | 0 | 0 | 0 | 0 | 0.017182 | 0.052117 | 307 | 6 | 104 | 51.166667 | 0.821306 | 0 | 0 | 0 | 0 | 0 | 0.025974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d0198c94da216652739e6e506cf2686cf61be1e3 | 13,023 | py | Python | qiita_db/test/test_search.py | tanaes/qiita | acfcf6e6d4c4a2c5e5b3e1c53ee5107d0d590791 | [
"BSD-3-Clause"
] | null | null | null | qiita_db/test/test_search.py | tanaes/qiita | acfcf6e6d4c4a2c5e5b3e1c53ee5107d0d590791 | [
"BSD-3-Clause"
] | null | null | null | qiita_db/test/test_search.py | tanaes/qiita | acfcf6e6d4c4a2c5e5b3e1c53ee5107d0d590791 | [
"BSD-3-Clause"
] | null | null | null | # -----------------------------------------------------------------------------
# Copyright (c) 2014--, The Qiita Development Team.
#
# Distributed under the terms of the BSD 3-clause License.
#
# The full license is in the file LICENSE, distributed with this software.
# ------------------------------------------------... | 52.512097 | 79 | 0.548107 | 1,636 | 13,023 | 4.175428 | 0.144866 | 0.022691 | 0.016396 | 0.024594 | 0.754502 | 0.73225 | 0.720246 | 0.686576 | 0.676914 | 0.665642 | 0 | 0.108024 | 0.31191 | 13,023 | 247 | 80 | 52.724696 | 0.65428 | 0.052983 | 0 | 0.538835 | 0 | 0 | 0.447724 | 0.023902 | 0 | 0 | 0 | 0 | 0.174757 | 1 | 0.029126 | false | 0 | 0.019417 | 0 | 0.053398 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d0275e33e5c530e59c3a798802b2ed2bcb9510c5 | 1,617 | py | Python | src/cuia/renderer/text.py | schneiderfelipe/kay | a7bf69e3bbd1b845286667b20eb1fba88faf9ea4 | [
"MIT"
] | 14 | 2021-11-18T14:56:48.000Z | 2022-03-26T08:02:13.000Z | src/cuia/renderer/text.py | getcuia/cuia | 685d258b3cb366d40100e6a563661b307aef5ae3 | [
"MIT"
] | 8 | 2021-11-25T13:47:12.000Z | 2022-03-25T12:01:09.000Z | src/cuia/renderer/text.py | schneiderfelipe/kay | a7bf69e3bbd1b845286667b20eb1fba88faf9ea4 | [
"MIT"
] | null | null | null | """A renderer that writes directly to the terminal."""
from __future__ import annotations
from contextlib import contextmanager
from dataclasses import dataclass
from types import TracebackType
from typing import Iterator, Optional, Text, Type
from ..messages import Event
from .renderer import Renderer
ORD_A = ord... | 26.080645 | 84 | 0.635745 | 182 | 1,617 | 5.554945 | 0.456044 | 0.017804 | 0.025717 | 0.037587 | 0.07913 | 0.07913 | 0.07913 | 0.07913 | 0 | 0 | 0 | 0.024814 | 0.252319 | 1,617 | 61 | 85 | 26.508197 | 0.811414 | 0.337662 | 0 | 0.206897 | 0 | 0 | 0.000999 | 0 | 0 | 0 | 0 | 0.016393 | 0 | 1 | 0.206897 | false | 0 | 0.241379 | 0 | 0.586207 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d0402f1bee556b094723200b8f549a690fa5a0f4 | 174 | py | Python | modules/jenkins/chuck_module.py | msabramo/django-chuck | bbef6171c9b3738460dc05cb77e65ba88fcc5ad8 | [
"BSD-2-Clause"
] | 1 | 2020-05-29T04:27:50.000Z | 2020-05-29T04:27:50.000Z | modules/jenkins/chuck_module.py | msabramo/django-chuck | bbef6171c9b3738460dc05cb77e65ba88fcc5ad8 | [
"BSD-2-Clause"
] | null | null | null | modules/jenkins/chuck_module.py | msabramo/django-chuck | bbef6171c9b3738460dc05cb77e65ba88fcc5ad8 | [
"BSD-2-Clause"
] | null | null | null | depends = ["unittest"]
description = """
Plug and play integration with the Jenkins Coninuous Integration server.
For more information, visit:
http://www.jenkins-ci.org/
""" | 24.857143 | 72 | 0.747126 | 22 | 174 | 5.909091 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126437 | 174 | 7 | 73 | 24.857143 | 0.855263 | 0 | 0 | 0 | 0 | 0 | 0.794286 | 0 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d0540dbb024c48085a7528acbec770c1d71eca16 | 122 | py | Python | src/ClinicalTrialsTracker/model/enum/__init__.py | LeeSean96/GlobalHealthRanking | 4a3f726164705d64b2a09d2016182f88a862d599 | [
"MIT"
] | 3 | 2019-01-20T22:05:26.000Z | 2020-10-23T21:58:09.000Z | src/ClinicalTrialsTracker/model/enum/__init__.py | LeeSean96/GlobalHealthRanking | 4a3f726164705d64b2a09d2016182f88a862d599 | [
"MIT"
] | 3 | 2019-02-17T20:10:39.000Z | 2019-02-28T00:35:51.000Z | src/ClinicalTrialsTracker/model/enum/__init__.py | LeeSean96/GlobalHealthRanking | 4a3f726164705d64b2a09d2016182f88a862d599 | [
"MIT"
] | null | null | null | from .category import Category
from .overall_status import OverallStatus
_all_ = [
'Category',
'OverallStatus',
] | 17.428571 | 41 | 0.729508 | 12 | 122 | 7.166667 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180328 | 122 | 7 | 42 | 17.428571 | 0.86 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d069e41c05a12dbf5271096b83aeac9b5e2bcedf | 241 | py | Python | linear_algebra_by_j_borwnlee/ch_08/playing_with_vector_norms_session.py | pavelexpertov/scribbles | 50ebcd6a686fd32be20d401563db7cc87781a428 | [
"MIT"
] | null | null | null | linear_algebra_by_j_borwnlee/ch_08/playing_with_vector_norms_session.py | pavelexpertov/scribbles | 50ebcd6a686fd32be20d401563db7cc87781a428 | [
"MIT"
] | null | null | null | linear_algebra_by_j_borwnlee/ch_08/playing_with_vector_norms_session.py | pavelexpertov/scribbles | 50ebcd6a686fd32be20d401563db7cc87781a428 | [
"MIT"
] | null | null | null | # coding: utf-8
from numpy import array
from numpy.linalg import norm
from numpy import inf
def print_ls(ar):
print("The array:", ar)
print("l1:", norm(ar, 1))
print("l2:", norm(ar, 2))
print("maxnnorm:", norm(ar, inf))
| 21.909091 | 37 | 0.626556 | 39 | 241 | 3.846154 | 0.512821 | 0.18 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026178 | 0.207469 | 241 | 10 | 38 | 24.1 | 0.759162 | 0.053942 | 0 | 0 | 0 | 0 | 0.110619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5 | 0.625 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 3 |
d0737fb8bdb4d10af263a250b66c06c4b730e6b3 | 263 | py | Python | utils_components/custom.py | BhasherBEL/ProgrammingChallenges | e697c7f7e3d8177b9ee615918f3c78b645b927d0 | [
"MIT"
] | null | null | null | utils_components/custom.py | BhasherBEL/ProgrammingChallenges | e697c7f7e3d8177b9ee615918f3c78b645b927d0 | [
"MIT"
] | 1 | 2020-12-09T12:00:56.000Z | 2020-12-09T12:00:56.000Z | utils_components/custom.py | BhasherBEL/ProgrammingChallenges | e697c7f7e3d8177b9ee615918f3c78b645b927d0 | [
"MIT"
] | 1 | 2020-12-09T11:38:49.000Z | 2020-12-09T11:38:49.000Z | import collections
class Custom:
@staticmethod
def defaultdict(fct, depth=1):
if depth <= 1:
return collections.defaultdict(fct)
else:
return collections.defaultdict(lambda: Custom.defaultdict(fct, depth=depth-1)) | 26.3 | 90 | 0.65019 | 28 | 263 | 6.107143 | 0.5 | 0.245614 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.258555 | 263 | 10 | 90 | 26.3 | 0.861538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.625 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d0ed43513166f006d177fa03cf1e228990d719cd | 793 | py | Python | src/spaceone/core/api/server_info.py | choonho/python-core | 1b174e9fe56b75b2706a9d78e947010514e90f6d | [
"Apache-2.0"
] | null | null | null | src/spaceone/core/api/server_info.py | choonho/python-core | 1b174e9fe56b75b2706a9d78e947010514e90f6d | [
"Apache-2.0"
] | null | null | null | src/spaceone/core/api/server_info.py | choonho/python-core | 1b174e9fe56b75b2706a9d78e947010514e90f6d | [
"Apache-2.0"
] | null | null | null | import logging
from spaceone.core import config
from spaceone.core.locator import Locator
from spaceone.api.core.v1 import server_info_pb2, server_info_pb2_grpc
_LOGGER = logging.getLogger(__name__)
class ServerInfo(server_info_pb2_grpc.ServerInfoServicer):
def __init__(self):
locator = Locator()
... | 26.433333 | 93 | 0.747793 | 101 | 793 | 5.386139 | 0.356436 | 0.110294 | 0.143382 | 0.09375 | 0.084559 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012214 | 0.174023 | 793 | 29 | 94 | 27.344828 | 0.818321 | 0 | 0 | 0.15 | 0 | 0 | 0.01261 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.2 | 0.2 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1902d3dd141754d088d93920e7f116092b24880e | 57 | py | Python | settings/graphene.py | evertrol/det | 5d397010bc9a608dcb38c176bb3f89e4f17ab272 | [
"MIT"
] | null | null | null | settings/graphene.py | evertrol/det | 5d397010bc9a608dcb38c176bb3f89e4f17ab272 | [
"MIT"
] | null | null | null | settings/graphene.py | evertrol/det | 5d397010bc9a608dcb38c176bb3f89e4f17ab272 | [
"MIT"
] | null | null | null | GRAPHENE = {
"SCHEMA": "django_root.schema.schema"
}
| 14.25 | 41 | 0.649123 | 6 | 57 | 6 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175439 | 57 | 3 | 42 | 19 | 0.765957 | 0 | 0 | 0 | 0 | 0 | 0.54386 | 0.438596 | 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 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
190be62ad895351b885401a503dc0e8e37e52a44 | 214 | py | Python | discord_interactions/flask_ext/__init__.py | LiBa001/discord-interactions.py | 7f19e1b33dfdf2fd9d0a95a164fba8820a031bba | [
"MIT"
] | 19 | 2021-01-07T23:57:20.000Z | 2022-01-23T19:49:46.000Z | discord_interactions/flask_ext/__init__.py | LiBa001/discord-interactions-wrapper | 7f19e1b33dfdf2fd9d0a95a164fba8820a031bba | [
"MIT"
] | 4 | 2021-01-09T01:18:31.000Z | 2021-06-11T22:39:45.000Z | discord_interactions/flask_ext/__init__.py | LiBa001/discord-interactions-wrapper | 7f19e1b33dfdf2fd9d0a95a164fba8820a031bba | [
"MIT"
] | 2 | 2021-05-21T01:08:19.000Z | 2021-09-25T03:12:44.000Z | #!/usr/bin/env python
from .interactions import Interactions, CommandData
from .context import (
CommandContext,
AfterCommandContext,
ComponentContext,
AfterComponentContext,
)
from . import utils
| 19.454545 | 51 | 0.757009 | 19 | 214 | 8.526316 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172897 | 214 | 10 | 52 | 21.4 | 0.915254 | 0.093458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.375 | 0 | 0.375 | 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 | 0 | 0 | 0 | 3 |
ef707ed45200e9fd3ac0f24826b8bd82eea4c948 | 152 | py | Python | netrecon/__init__.py | asrozar/python-netrecon | 2c8b409c395a11cecddf5fb1c8a283a25a5e885d | [
"MIT"
] | 1 | 2021-04-29T02:28:58.000Z | 2021-04-29T02:28:58.000Z | netrecon/__init__.py | asrozar/python-netrecon | 2c8b409c395a11cecddf5fb1c8a283a25a5e885d | [
"MIT"
] | null | null | null | netrecon/__init__.py | asrozar/python-netrecon | 2c8b409c395a11cecddf5fb1c8a283a25a5e885d | [
"MIT"
] | null | null | null | # -------------
# netrecon info
# --------------
__name__ = 'netrecon'
__version__ = 0.19
__author__ = 'Avery Rozar: avery.rozar@trolleyesecurity.com'
| 19 | 60 | 0.598684 | 14 | 152 | 5.642857 | 0.785714 | 0.253165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022556 | 0.125 | 152 | 7 | 61 | 21.714286 | 0.571429 | 0.276316 | 0 | 0 | 0 | 0 | 0.5 | 0.301887 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ef7a3b3d7f9932d2844def7c254a39e38940e8c3 | 358 | py | Python | topic_model.py | Negahead/nlp | 215c5beec9a52bf905312e86f8e58305ab5e43de | [
"MIT"
] | null | null | null | topic_model.py | Negahead/nlp | 215c5beec9a52bf905312e86f8e58305ab5e43de | [
"MIT"
] | null | null | null | topic_model.py | Negahead/nlp | 215c5beec9a52bf905312e86f8e58305ab5e43de | [
"MIT"
] | null | null | null | """
Topic modeling is a type of statistical modeling for discovering the abstract 'topics' that occur in
a collection of documents, Latent Dirichlet Allocation is an example of topic model and is used to
classify text in a document to a particular topic. It builds a topic per document model and words per
topic model, m... | 59.666667 | 101 | 0.801676 | 58 | 358 | 4.948276 | 0.637931 | 0.020906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164804 | 358 | 6 | 102 | 59.666667 | 0.959866 | 0.977654 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
efce1476d67419bce1c458f82db6b3fbf32239c4 | 2,004 | py | Python | rbig_jax/transforms/inversecdf.py | alexhepburn/rbig_jax | 706dd60d2049071be0fb3d311c83719121854678 | [
"MIT"
] | null | null | null | rbig_jax/transforms/inversecdf.py | alexhepburn/rbig_jax | 706dd60d2049071be0fb3d311c83719121854678 | [
"MIT"
] | null | null | null | rbig_jax/transforms/inversecdf.py | alexhepburn/rbig_jax | 706dd60d2049071be0fb3d311c83719121854678 | [
"MIT"
] | null | null | null | from typing import Tuple
import jax
import jax.numpy as np
from objax import StateVar
from chex import Array
from rbig_jax.transforms.base import Transform
class InverseGaussCDF(Transform):
def __init__(
self, eps=1e-6,
):
super().__init__()
self.eps = StateVar(np.array(eps))
de... | 23.857143 | 77 | 0.673154 | 247 | 2,004 | 5.331984 | 0.246964 | 0.042521 | 0.069096 | 0.090357 | 0.34776 | 0.345482 | 0.323462 | 0.273349 | 0.223235 | 0.223235 | 0 | 0.007124 | 0.229541 | 2,004 | 83 | 78 | 24.144578 | 0.845855 | 0.080339 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0 | 1 | 0.261905 | false | 0 | 0.142857 | 0.095238 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
efd8a4700f11da0a54bd09077362be1aa390d911 | 772 | py | Python | test.py | alexschiller/evolution | c03b603edf8b2f21e5e6d15674182f58a00d0fd5 | [
"CC0-1.0"
] | null | null | null | test.py | alexschiller/evolution | c03b603edf8b2f21e5e6d15674182f58a00d0fd5 | [
"CC0-1.0"
] | null | null | null | test.py | alexschiller/evolution | c03b603edf8b2f21e5e6d15674182f58a00d0fd5 | [
"CC0-1.0"
] | null | null | null | import math
class memoize:
def __init__(self, fn):
self.fn, self.m = fn, {}
def __call__(self, *k):
if k not in self.m: self.m[k] = self.fn(*k)
return self.m[k]
@memoize
def B(n, k):
return 0 if k < 0 or k > n or n < 0 else (math.factorial(n) / (math.factorial(n - k) * math.factor... | 20.864865 | 110 | 0.46114 | 151 | 772 | 2.304636 | 0.245033 | 0.034483 | 0.057471 | 0.028736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040568 | 0.361399 | 772 | 37 | 111 | 20.864865 | 0.665314 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.034483 | 0.103448 | 0.551724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
efeeb140c553d77e7e7c8f7742a0c6a81e6a89c6 | 127 | py | Python | util/util.py | JsBlueCat/MeshGraph | c7b331f64b70a442d1042351efe4dc4231e8b289 | [
"MIT"
] | 9 | 2020-09-02T08:19:04.000Z | 2022-03-22T07:22:38.000Z | util/util.py | JsBlueCat/MeshGraph | c7b331f64b70a442d1042351efe4dc4231e8b289 | [
"MIT"
] | 4 | 2019-11-01T07:34:10.000Z | 2021-09-12T08:19:47.000Z | util/util.py | JsBlueCat/MeshVertexNet | c7b331f64b70a442d1042351efe4dc4231e8b289 | [
"MIT"
] | 3 | 2019-12-23T14:36:04.000Z | 2021-09-12T04:58:09.000Z | import os
import os.path as osp
import numpy as np
def check_dir(dir):
if not osp.exists(dir):
os.makedirs(dir)
| 12.7 | 27 | 0.669291 | 23 | 127 | 3.652174 | 0.608696 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244094 | 127 | 9 | 28 | 14.111111 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 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 | 0 | 0 | 0 | 3 |
eff7d89dbbc75c2d9be1229d7f9939701af85059 | 221 | py | Python | setup.py | isaacanthony/bio_playground | 1d5a971ec5f99166d3f2d50e342af77c5af9b221 | [
"MIT"
] | null | null | null | setup.py | isaacanthony/bio_playground | 1d5a971ec5f99166d3f2d50e342af77c5af9b221 | [
"MIT"
] | null | null | null | setup.py | isaacanthony/bio_playground | 1d5a971ec5f99166d3f2d50e342af77c5af9b221 | [
"MIT"
] | null | null | null | """setup.py"""
from setuptools import setup, find_packages
setup(
name='dna_playground',
version='0.0.1',
packages=find_packages(),
install_requires=open('requirements.txt').read().strip().split("\n"),
)
| 22.1 | 73 | 0.674208 | 28 | 221 | 5.178571 | 0.785714 | 0.165517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0.131222 | 221 | 9 | 74 | 24.555556 | 0.739583 | 0.036199 | 0 | 0 | 0 | 0 | 0.178744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
efff25a98a3b328110af900bca23702c27ec797a | 4,027 | py | Python | nori/submodule.py | ocsw/nori | 1e6e910f6dff4254cd8fef2542df3ff0fec09d6b | [
"BSD-2-Clause"
] | null | null | null | nori/submodule.py | ocsw/nori | 1e6e910f6dff4254cd8fef2542df3ff0fec09d6b | [
"BSD-2-Clause"
] | null | null | null | nori/submodule.py | ocsw/nori | 1e6e910f6dff4254cd8fef2542df3ff0fec09d6b | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
"""
This is the SUBMODULE submodule for the nori library; see __main__.py
for license and usage information.
DOCSTRING CONTENTS:
-------------------
1) About and Requirements
2) API Variables
3) API Functions
4) API Classes
5) Usage in Scripts
6) Modification Notes
1... | 20.757732 | 72 | 0.335734 | 235 | 4,027 | 5.595745 | 0.468085 | 0.053232 | 0.036502 | 0.031939 | 0.138403 | 0.138403 | 0.138403 | 0.138403 | 0.138403 | 0.138403 | 0 | 0.005148 | 0.180035 | 4,027 | 193 | 73 | 20.865285 | 0.393095 | 0.323814 | 0 | 0.171429 | 0 | 0 | 0.137155 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | true | 0.057143 | 0.228571 | 0 | 0.285714 | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
4bcbcf835042d6b955dc3f8657673123d8efedd0 | 99 | py | Python | moodle/tool/__init__.py | Hardikris/moodlepy | 8f5cb0cb4c2297e10f48396de681f6bb250f7751 | [
"MIT"
] | null | null | null | moodle/tool/__init__.py | Hardikris/moodlepy | 8f5cb0cb4c2297e10f48396de681f6bb250f7751 | [
"MIT"
] | null | null | null | moodle/tool/__init__.py | Hardikris/moodlepy | 8f5cb0cb4c2297e10f48396de681f6bb250f7751 | [
"MIT"
] | null | null | null | from .mobile import BaseMobile
from .tool import Tool
__all__ = [
"BaseMobile",
"Tool",
]
| 12.375 | 30 | 0.656566 | 11 | 99 | 5.545455 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232323 | 99 | 7 | 31 | 14.142857 | 0.802632 | 0 | 0 | 0 | 0 | 0 | 0.141414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4bd3590dfb545ddf96f6319cf706e0cd5e279bf2 | 87 | py | Python | ossim/memory/apps.py | SagarB-97/OS-Simulator | 8b7538947a867523d70df3deee1c740417706962 | [
"MIT"
] | 8 | 2019-03-09T14:53:33.000Z | 2021-06-06T11:22:59.000Z | ossim/memory/apps.py | SagarB-97/OS-Simulator | 8b7538947a867523d70df3deee1c740417706962 | [
"MIT"
] | 1 | 2019-12-01T23:14:27.000Z | 2019-12-01T23:14:27.000Z | ossim/memory/apps.py | SagarB-97/OS-Simulator | 8b7538947a867523d70df3deee1c740417706962 | [
"MIT"
] | 10 | 2017-05-11T13:45:40.000Z | 2020-03-28T06:25:50.000Z | from django.apps import AppConfig
class MemoryConfig(AppConfig):
name = 'memory'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4be4b4199e0edebd34f9aa9484c5b63ae9801101 | 204 | py | Python | async_easy_utils/serializer/exceptions.py | t1waz/rest_utils | 4764781d872e6d5d84333b7b7d39a81512d1f64e | [
"MIT"
] | null | null | null | async_easy_utils/serializer/exceptions.py | t1waz/rest_utils | 4764781d872e6d5d84333b7b7d39a81512d1f64e | [
"MIT"
] | 3 | 2020-04-26T11:02:22.000Z | 2020-06-03T22:26:59.000Z | async_easy_utils/serializer/exceptions.py | t1waz/rest_utils | 4764781d872e6d5d84333b7b7d39a81512d1f64e | [
"MIT"
] | 2 | 2020-04-25T22:09:22.000Z | 2020-04-26T11:23:31.000Z |
class SerializerError(Exception):
def __init__(self, message):
self._message = message
class ValidationError(SerializerError):
pass
class InvalidSerializer(SerializerError):
pass
| 15.692308 | 41 | 0.735294 | 18 | 204 | 8.055556 | 0.555556 | 0.151724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191176 | 204 | 12 | 42 | 17 | 0.878788 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.285714 | 0 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
4be4c0b4df17e8b520d7a30f012b0aede4e238cb | 416 | py | Python | POP1/worksheets/on-lists/ex04/code.py | silvafj/BBK-MSCCS-2017-18 | d97b0f8e7434d19a1a4006989c32c4c1deb93842 | [
"MIT"
] | 1 | 2021-12-29T19:38:56.000Z | 2021-12-29T19:38:56.000Z | POP1/worksheets/on-lists/ex04/code.py | silvafj/BBK-MSCCS-2017-18 | d97b0f8e7434d19a1a4006989c32c4c1deb93842 | [
"MIT"
] | null | null | null | POP1/worksheets/on-lists/ex04/code.py | silvafj/BBK-MSCCS-2017-18 | d97b0f8e7434d19a1a4006989c32c4c1deb93842 | [
"MIT"
] | 2 | 2021-04-08T22:58:03.000Z | 2021-04-09T01:16:51.000Z | n = int(input())
a = [['' for j in range(n)] for i in range(n)]
for i in range(n):
f = 0
for j in range(i, n):
a[i][j] = str(f)
f += 1
f = i
for j in range(i):
a[i][j] = str(f)
f -= 1
for row in a:
print(' '.join(row))
# For the record, I feel dumb because it coul... | 19.809524 | 56 | 0.495192 | 86 | 416 | 2.395349 | 0.360465 | 0.237864 | 0.194175 | 0.213592 | 0.495146 | 0.378641 | 0.378641 | 0.291262 | 0.23301 | 0.23301 | 0 | 0.01087 | 0.336538 | 416 | 20 | 57 | 20.8 | 0.735507 | 0.322115 | 0 | 0.153846 | 0 | 0 | 0.003597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ef0faa4ad58e4caf36a6a13893963bf44a4c6fa5 | 163 | py | Python | c3shop/frontpage/userurls.py | Technikradio/C3FOCSite | 61cc1f198b50c4e4caf1cb0d963d971d764ff80d | [
"BSD-3-Clause"
] | 3 | 2017-10-29T10:03:25.000Z | 2019-02-28T20:04:44.000Z | c3shop/frontpage/userurls.py | Technikradio/C3FOCSite | 61cc1f198b50c4e4caf1cb0d963d971d764ff80d | [
"BSD-3-Clause"
] | 32 | 2017-07-10T10:29:14.000Z | 2019-03-11T22:14:35.000Z | c3shop/frontpage/userurls.py | Technikradio/C3FOCSite | 61cc1f198b50c4e4caf1cb0d963d971d764ff80d | [
"BSD-3-Clause"
] | null | null | null | #
#
#
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^display/(?P<user_id>[0-9]+)$', views.display_user, name="display_user"),
]
| 14.818182 | 83 | 0.656442 | 24 | 163 | 4.333333 | 0.666667 | 0.211538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014388 | 0.147239 | 163 | 10 | 84 | 16.3 | 0.733813 | 0 | 0 | 0 | 0 | 0 | 0.25625 | 0.18125 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ef110120e1a127fece28baf756d59daca3aae1eb | 1,446 | py | Python | karamel/kore.py | CodeAlkemist/Karamel | 5c2c3e8599b9834a6612372824ce8d5aea738f2c | [
"BSD-3-Clause"
] | null | null | null | karamel/kore.py | CodeAlkemist/Karamel | 5c2c3e8599b9834a6612372824ce8d5aea738f2c | [
"BSD-3-Clause"
] | null | null | null | karamel/kore.py | CodeAlkemist/Karamel | 5c2c3e8599b9834a6612372824ce8d5aea738f2c | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2019 Delta Foundry, All rights reserved
import ntpath
import os
import platform
import subprocess
import io
import karamel.util
def hide_file(path):
"""
Simply hides a file if in windows add the hidden attribute if in linux prepend the filename with a .
"""
if platform.system() == 'W... | 24.1 | 117 | 0.685339 | 210 | 1,446 | 4.580952 | 0.438095 | 0.045738 | 0.045738 | 0.049896 | 0.280665 | 0.234927 | 0.234927 | 0.176715 | 0.176715 | 0.176715 | 0 | 0.01674 | 0.215076 | 1,446 | 59 | 118 | 24.508475 | 0.830837 | 0.238589 | 0 | 0 | 0 | 0 | 0.180172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.214286 | 0.107143 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ef43120a62f5bf456b25ad2f73ed989cba598994 | 74 | py | Python | dnstap_receiver/__init__.py | jinmeiib/dnstap-receiver | c5996c1258a2e3c08348046301c33bd0ea1803e4 | [
"MIT"
] | null | null | null | dnstap_receiver/__init__.py | jinmeiib/dnstap-receiver | c5996c1258a2e3c08348046301c33bd0ea1803e4 | [
"MIT"
] | null | null | null | dnstap_receiver/__init__.py | jinmeiib/dnstap-receiver | c5996c1258a2e3c08348046301c33bd0ea1803e4 | [
"MIT"
] | null | null | null | __version__ = "1.4.0"
from dnstap_receiver.receiver import start_receiver | 24.666667 | 51 | 0.824324 | 11 | 74 | 5 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044776 | 0.094595 | 74 | 3 | 51 | 24.666667 | 0.776119 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ef46c7b1e01d9b81d460e807deb919a15299f5d5 | 86 | py | Python | src/tscc/__init__.py | MithunNallana/Time-Scaled-Collision-Cone | 86115c0f3dfd5138d4ac22f33e1a6919be2172b6 | [
"MIT"
] | 1 | 2021-03-23T04:59:23.000Z | 2021-03-23T04:59:23.000Z | src/tscc/__init__.py | MithunNallana/Time-Scaled-Collision-Cone | 86115c0f3dfd5138d4ac22f33e1a6919be2172b6 | [
"MIT"
] | null | null | null | src/tscc/__init__.py | MithunNallana/Time-Scaled-Collision-Cone | 86115c0f3dfd5138d4ac22f33e1a6919be2172b6 | [
"MIT"
] | 1 | 2021-09-16T09:47:00.000Z | 2021-09-16T09:47:00.000Z | from tscc.version import __version__
__all__ = ['model', 'optimization', 'utils']
| 21.5 | 45 | 0.709302 | 9 | 86 | 5.888889 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151163 | 86 | 3 | 46 | 28.666667 | 0.726027 | 0 | 0 | 0 | 0 | 0 | 0.26506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
323c1f3fe2871ff214f3036d233059809f4e80b0 | 136 | py | Python | Modulos/Times/database_conf.py | gabrielfava/asap | be6211190d4acfca7aacef45d7dc467e2237496d | [
"Apache-2.0"
] | 2 | 2018-03-16T19:24:35.000Z | 2018-03-20T01:15:21.000Z | Modulos/Times/database_conf.py | jvalv/asaPY | 97cdc9359d8afeb9747f4372b253b179131d2be4 | [
"Apache-2.0"
] | 1 | 2018-02-24T23:43:15.000Z | 2018-02-24T23:43:15.000Z | Modulos/Times/database_conf.py | gabrielfava/asapy | be6211190d4acfca7aacef45d7dc467e2237496d | [
"Apache-2.0"
] | 1 | 2018-02-28T14:45:52.000Z | 2018-02-28T14:45:52.000Z | mysql = {
'user': 'scott',
'password': 'password',
'host': '127.0.0.1',
'database': 'employees',
'raise_on_warnings': True,
}
| 17 | 28 | 0.573529 | 16 | 136 | 4.75 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053571 | 0.176471 | 136 | 7 | 29 | 19.428571 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0.529412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
323ccab2e2a16efdb8169b03e69cc747fc9b4bc7 | 312 | py | Python | server/app.py | Bombi90/pythondo | 166512f961a0217ce424405020d2bf67cd0dba1c | [
"MIT"
] | null | null | null | server/app.py | Bombi90/pythondo | 166512f961a0217ce424405020d2bf67cd0dba1c | [
"MIT"
] | null | null | null | server/app.py | Bombi90/pythondo | 166512f961a0217ce424405020d2bf67cd0dba1c | [
"MIT"
] | null | null | null | from flask import Flask
import os
application = Flask(__name__, static_url_path='/static')
import hello_route
import index_route
import factorial_route
import uppercase_route
import odd_route
import letterscount_route
if __name__ == "__main__":
application.run(host="0.0.0.0", port=int(os.getenv("PORT")))
| 22.285714 | 64 | 0.791667 | 46 | 312 | 4.934783 | 0.521739 | 0.242291 | 0.026432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014388 | 0.108974 | 312 | 13 | 65 | 24 | 0.802158 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.727273 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3258087eea3c11efba55f3e444e5ef3f1b2a7640 | 259 | py | Python | {{cookiecutter.module_name}}/{{cookiecutter.module_name}}/__init__.py | jptomo/boilerplate-setup.py | 0f6e2ff1a677c69f3199f12dde992216aed04247 | [
"CC0-1.0"
] | null | null | null | {{cookiecutter.module_name}}/{{cookiecutter.module_name}}/__init__.py | jptomo/boilerplate-setup.py | 0f6e2ff1a677c69f3199f12dde992216aed04247 | [
"CC0-1.0"
] | null | null | null | {{cookiecutter.module_name}}/{{cookiecutter.module_name}}/__init__.py | jptomo/boilerplate-setup.py | 0f6e2ff1a677c69f3199f12dde992216aed04247 | [
"CC0-1.0"
] | null | null | null | from __future__ import absolute_import
VERSION = ({% set lst = cookiecutter.version.split('.') %}{{ lst[0] }}, {{ lst[1] }}, {{ lst[2] }}, None)
__version__ = '{0:d}.{1:d}.{2:d}'.format(*VERSION)
if VERSION[3]:
__version__ += '.{3:d}'.format(*VERSION)
| 28.777778 | 105 | 0.594595 | 35 | 259 | 4.028571 | 0.485714 | 0.099291 | 0.198582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035874 | 0.138996 | 259 | 8 | 106 | 32.375 | 0.596413 | 0 | 0 | 0 | 0 | 0 | 0.092664 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3269d930140870008a295ee45ee9a259504d6979 | 795 | py | Python | deepART/torch/base.py | nicholaslaw/deepART | ffd425128bec02ca22ac64a6b55425fc1b29f9ba | [
"MIT"
] | 1 | 2021-05-22T00:34:25.000Z | 2021-05-22T00:34:25.000Z | deepART/torch/base.py | nicholaslaw/deepART | ffd425128bec02ca22ac64a6b55425fc1b29f9ba | [
"MIT"
] | null | null | null | deepART/torch/base.py | nicholaslaw/deepART | ffd425128bec02ca22ac64a6b55425fc1b29f9ba | [
"MIT"
] | null | null | null | import torch
def generateComp(I):
'''
generateComp(I)
Args:
-----------
I : numpy array
'''
Icomp = 1 - I
return Icomp
def load_model(file_path):
'''
file_path: string, file path to save
loads ART model
'''
return joblib.load(open(file_path, 'r'))
def save_mode... | 19.390244 | 62 | 0.603774 | 119 | 795 | 3.915966 | 0.504202 | 0.137339 | 0.060086 | 0.077253 | 0.120172 | 0.120172 | 0.120172 | 0 | 0 | 0 | 0 | 0.015464 | 0.267925 | 795 | 41 | 63 | 19.390244 | 0.785223 | 0.366038 | 0 | 0 | 1 | 0 | 0.004651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
3273d28869bfe7b890a6b067fbfd97d4dc525726 | 134 | py | Python | localedb/urls.py | cuker/django-localedb | e6ff25af28301fc6c4f1a99a6681d2bba2ed35dc | [
"BSD-3-Clause"
] | 2 | 2015-05-18T13:49:30.000Z | 2015-05-18T14:37:26.000Z | localedb/urls.py | cuker/django-localedb | e6ff25af28301fc6c4f1a99a6681d2bba2ed35dc | [
"BSD-3-Clause"
] | null | null | null | localedb/urls.py | cuker/django-localedb | e6ff25af28301fc6c4f1a99a6681d2bba2ed35dc | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls.defaults import *
urlpatterns = patterns('',
(r'^currency-info/$', 'localedb.views.ajax_currency_info'),
)
| 22.333333 | 63 | 0.708955 | 16 | 134 | 5.8125 | 0.875 | 0.258065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11194 | 134 | 5 | 64 | 26.8 | 0.781513 | 0 | 0 | 0 | 0 | 0 | 0.365672 | 0.246269 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
329d3ecb9146579cd01d87092063bd5e2020d00d | 2,256 | py | Python | AutomatedTesting/Gem/PythonTests/atom_renderer/test_Atom_MainSuite_Optimized.py | Hengle/o3de | 453dfd6f34c013b0d7aff52f167fca15a16d0e5b | [
"Apache-2.0",
"MIT"
] | null | null | null | AutomatedTesting/Gem/PythonTests/atom_renderer/test_Atom_MainSuite_Optimized.py | Hengle/o3de | 453dfd6f34c013b0d7aff52f167fca15a16d0e5b | [
"Apache-2.0",
"MIT"
] | null | null | null | AutomatedTesting/Gem/PythonTests/atom_renderer/test_Atom_MainSuite_Optimized.py | Hengle/o3de | 453dfd6f34c013b0d7aff52f167fca15a16d0e5b | [
"Apache-2.0",
"MIT"
] | null | null | null | """
Copyright (c) Contributors to the Open 3D Engine Project.
For complete copyright and license terms please see the LICENSE at the root of this distribution.
SPDX-License-Identifier: Apache-2.0 OR MIT
"""
import pytest
from ly_test_tools.o3de.editor_test import EditorSharedTest, EditorTestSuite
@pytest.mark.xfail... | 51.272727 | 117 | 0.842642 | 229 | 2,256 | 8.004367 | 0.323144 | 0.12275 | 0.11784 | 0.157119 | 0.549373 | 0.387889 | 0.387889 | 0.387889 | 0.387889 | 0.387889 | 0 | 0.002006 | 0.116135 | 2,256 | 43 | 118 | 52.465116 | 0.917252 | 0.088209 | 0 | 0 | 0 | 0 | 0.06735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.44 | 0 | 0.84 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
32b1c6398789583e2ed4808f6cf2972c8d3d274b | 647 | py | Python | uca/common/custom_types.py | Cloudzero/cloudzero-uca-tools | 470164af71008cacb5d7ff2a758f94c058f1763b | [
"BSD-3-Clause"
] | null | null | null | uca/common/custom_types.py | Cloudzero/cloudzero-uca-tools | 470164af71008cacb5d7ff2a758f94c058f1763b | [
"BSD-3-Clause"
] | null | null | null | uca/common/custom_types.py | Cloudzero/cloudzero-uca-tools | 470164af71008cacb5d7ff2a758f94c058f1763b | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2021 CloudZero, Inc. All rights reserved.
# Licensed under the BSD License. See LICENSE file in the project root for full license information.
# Direct all questions to support@cloudzero.com
from datetime import datetime
from typing import NamedTuple
from dateutil import parser
class TimeRange(NamedT... | 28.130435 | 100 | 0.697063 | 90 | 647 | 4.955556 | 0.588889 | 0.013453 | 0.022422 | 0.03139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007767 | 0.204019 | 647 | 22 | 101 | 29.409091 | 0.858252 | 0.309119 | 0 | 0 | 0 | 0 | 0.056433 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.230769 | 0.230769 | 0.923077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
32c68ead2348722ea4cf32a209b26255fb591b36 | 58 | py | Python | multifactor/__init__.py | kb1900/django-multifactor | 2bf71296012d3036a2a25175c12b3fa29710a12a | [
"MIT"
] | null | null | null | multifactor/__init__.py | kb1900/django-multifactor | 2bf71296012d3036a2a25175c12b3fa29710a12a | [
"MIT"
] | null | null | null | multifactor/__init__.py | kb1900/django-multifactor | 2bf71296012d3036a2a25175c12b3fa29710a12a | [
"MIT"
] | null | null | null | default_app_config = 'multifactor.apps.MultifactorConfig'
| 29 | 57 | 0.862069 | 6 | 58 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 58 | 1 | 58 | 58 | 0.872727 | 0 | 0 | 0 | 0 | 0 | 0.586207 | 0.586207 | 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 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
32c70fe4a79aa1c27331c77d9b24ab65f8d6b851 | 1,665 | py | Python | AdvBox/denoisers/base.py | honshj/PaddleSleeve | 1e7e172bed7e2336f8842677a1917b51cc604b19 | [
"Apache-2.0"
] | 41 | 2021-05-10T10:34:23.000Z | 2022-02-24T08:48:16.000Z | AdvBox/denoisers/base.py | honshj/PaddleSleeve | 1e7e172bed7e2336f8842677a1917b51cc604b19 | [
"Apache-2.0"
] | 12 | 2021-06-07T14:22:42.000Z | 2022-03-16T11:56:45.000Z | AdvBox/denoisers/base.py | honshj/PaddleSleeve | 1e7e172bed7e2336f8842677a1917b51cc604b19 | [
"Apache-2.0"
] | 14 | 2021-05-10T10:22:55.000Z | 2022-02-14T01:44:17.000Z | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# 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 app... | 30.272727 | 74 | 0.684084 | 207 | 1,665 | 5.429952 | 0.52657 | 0.053381 | 0.050712 | 0.02847 | 0.11032 | 0.11032 | 0.11032 | 0.11032 | 0.11032 | 0.11032 | 0 | 0.006294 | 0.236637 | 1,665 | 54 | 75 | 30.833333 | 0.878049 | 0.646246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.357143 | 0 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
087652be2e3d9dfc7e9a85738666d345e0391767 | 15,360 | py | Python | tensorflow/hippo.py | tarepan/HiPPO | bc23e2dba13da6c307cb5a4ae248c2d2c56d465f | [
"Apache-2.0"
] | 57 | 2020-08-28T01:23:56.000Z | 2022-01-05T01:49:21.000Z | tensorflow/hippo.py | tarepan/HiPPO | bc23e2dba13da6c307cb5a4ae248c2d2c56d465f | [
"Apache-2.0"
] | 7 | 2020-11-02T06:35:52.000Z | 2021-11-19T20:02:30.000Z | tensorflow/hippo.py | tarepan/HiPPO | bc23e2dba13da6c307cb5a4ae248c2d2c56d465f | [
"Apache-2.0"
] | 15 | 2020-09-05T13:14:48.000Z | 2022-03-01T21:19:48.000Z | import numpy as np
from keras import backend as K
from keras import activations, initializers
from keras.initializers import Constant, Initializer
from keras.layers import Layer
from scipy import signal
from scipy import linalg as la
import math
import tensorflow as tf
def transition(measure, N, **measure_args):
... | 39.283887 | 106 | 0.586263 | 1,812 | 15,360 | 4.742826 | 0.109823 | 0.049919 | 0.027228 | 0.035606 | 0.737957 | 0.72155 | 0.701885 | 0.651385 | 0.637654 | 0.637654 | 0 | 0.009303 | 0.307161 | 15,360 | 390 | 107 | 39.384615 | 0.798252 | 0.062174 | 0 | 0.619048 | 0 | 0 | 0.03506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.028571 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0884c9d436baa0c2ff3c3793b62685b02ecd5e82 | 4,837 | py | Python | main.py | JasonPap/hawaian-hacker | b92d41a692661dbbcbef0d0538a536395e0dcfdd | [
"MIT"
] | null | null | null | main.py | JasonPap/hawaian-hacker | b92d41a692661dbbcbef0d0538a536395e0dcfdd | [
"MIT"
] | null | null | null | main.py | JasonPap/hawaian-hacker | b92d41a692661dbbcbef0d0538a536395e0dcfdd | [
"MIT"
] | null | null | null | import sys
import random
from Password import Password
from PasswordClassifier import PasswordClassifier
import PasswordGen
def classify_and_generate():
wordfile = "input_dictionaries/linkedin.txt"
outputFile = "output_dictionaries/mutations.txt"
if len(sys.argv) != 3:
print "Number of arguments d... | 36.368421 | 117 | 0.582799 | 530 | 4,837 | 5.215094 | 0.218868 | 0.027858 | 0.039074 | 0.023155 | 0.63097 | 0.63097 | 0.63097 | 0.599132 | 0.599132 | 0.599132 | 0 | 0.010773 | 0.328303 | 4,837 | 133 | 118 | 36.368421 | 0.839951 | 0.192888 | 0 | 0.489362 | 1 | 0 | 0.140319 | 0.049434 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.234043 | 0.053191 | null | null | 0.117021 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
089607b6fc381fcaeb95e74cb709f4fd1c9c00e2 | 200 | py | Python | The_Python3_Standard_Library_by_Example/Chapter_1_Text/test_pattern.py | maainul/Paython | c72d7fff3b00bc4f379ca6f9dbef0678f01b55f9 | [
"DOC"
] | null | null | null | The_Python3_Standard_Library_by_Example/Chapter_1_Text/test_pattern.py | maainul/Paython | c72d7fff3b00bc4f379ca6f9dbef0678f01b55f9 | [
"DOC"
] | null | null | null | The_Python3_Standard_Library_by_Example/Chapter_1_Text/test_pattern.py | maainul/Paython | c72d7fff3b00bc4f379ca6f9dbef0678f01b55f9 | [
"DOC"
] | null | null | null | test_patterns = '''
Given source text and a list of pattens,
look for matches for each patterns within the
text and print them to stdout'''
# Look for each pattern in the text and print the results.
| 33.333333 | 58 | 0.76 | 35 | 200 | 4.314286 | 0.657143 | 0.139073 | 0.13245 | 0.198676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19 | 200 | 5 | 59 | 40 | 0.932099 | 0.28 | 0 | 0 | 0 | 0 | 0.830986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
089ad33f5cf836fad7e87dc684a0e39638b12841 | 662 | py | Python | modules/common_params/helpers.py | Arattel/fungera_analysis | 7b8c352920ae80744dd5616ea37fe688499ddc88 | [
"MIT"
] | null | null | null | modules/common_params/helpers.py | Arattel/fungera_analysis | 7b8c352920ae80744dd5616ea37fe688499ddc88 | [
"MIT"
] | null | null | null | modules/common_params/helpers.py | Arattel/fungera_analysis | 7b8c352920ae80744dd5616ea37fe688499ddc88 | [
"MIT"
] | null | null | null | def init_instruction_set(name):
if name == 'base':
from modules.instruction_sets.instruction_sets import base as instructions
elif name in ['jump_directed', 'jump_direction_independent']:
from modules.instruction_sets.instruction_sets import jump_call as instructions
elif name == 'error_corr... | 38.941176 | 94 | 0.752266 | 82 | 662 | 5.841463 | 0.304878 | 0.187891 | 0.137787 | 0.162839 | 0.39666 | 0.294363 | 0.294363 | 0 | 0 | 0 | 0 | 0 | 0.190332 | 662 | 16 | 95 | 41.375 | 0.893657 | 0 | 0 | 0 | 0 | 0 | 0.113293 | 0.039275 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.357143 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
08caec1f2ef79300e0feb687109d15a6a858bf9b | 76 | py | Python | exercises/chapter01/solution_01_01.py | deep-diver/fastai-course | 1a0a39311fba0e1b3f4720a612a17dc7c708d9bb | [
"MIT"
] | null | null | null | exercises/chapter01/solution_01_01.py | deep-diver/fastai-course | 1a0a39311fba0e1b3f4720a612a17dc7c708d9bb | [
"MIT"
] | null | null | null | exercises/chapter01/solution_01_01.py | deep-diver/fastai-course | 1a0a39311fba0e1b3f4720a612a17dc7c708d9bb | [
"MIT"
] | null | null | null | from fastai.data.external import URLs
result = URLs.COCO_TINY
print(result) | 19 | 37 | 0.815789 | 12 | 76 | 5.083333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 76 | 4 | 38 | 19 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
08cea3d0a020319fae15ed4fa317c836ea3e0e06 | 2,480 | py | Python | transrule_ccp.py | sven-oly/LanguageTools | 8c1e0bbae274232064e9796aa401c906797af452 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:11:27.000Z | 2021-12-28T03:58:05.000Z | transrule_ccp.py | sven-oly/LanguageTools | 8c1e0bbae274232064e9796aa401c906797af452 | [
"Apache-2.0"
] | 7 | 2020-12-11T00:44:52.000Z | 2022-03-01T18:00:00.000Z | transrule_ccp.py | sven-oly/LanguageTools | 8c1e0bbae274232064e9796aa401c906797af452 | [
"Apache-2.0"
] | 3 | 2019-06-08T17:46:47.000Z | 2021-09-16T02:03:56.000Z | # Transliteration rules for Chakma ASCII to Chakma
Description = u'Chakma ASCII to Unicode conversion'
TRANS_LIT_RULES = CCP_UNICODE_TRANSLITERATE = u"""
$letter = [\u11103-\u11126];
$evowel = \u1112C;
$virama = \u11133;
\u0000 > \u0020 ; # null
\u000D > \u000D ; # Carriage return
\u0020 > \u0020 ; # sp... | 25.050505 | 60 | 0.525 | 287 | 2,480 | 4.519164 | 0.71777 | 0.027756 | 0.020046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.409091 | 0.281452 | 2,480 | 98 | 61 | 25.306122 | 0.318743 | 0.019355 | 0 | 0.022472 | 0 | 0 | 0.969136 | 0.009054 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
08d956e76dcfeb851f92ee209ff01bf65da1bbce | 556 | py | Python | visitor.py | skydark/matools | c658dd36bf154482dbe344d5cae0686135a59607 | [
"MIT"
] | 1 | 2018-07-12T16:15:50.000Z | 2018-07-12T16:15:50.000Z | visitor.py | skydark/matools | c658dd36bf154482dbe344d5cae0686135a59607 | [
"MIT"
] | null | null | null | visitor.py | skydark/matools | c658dd36bf154482dbe344d5cae0686135a59607 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
class Visitor:
def visit(self, manager):
self.begin_visit(manager)
manager.visit(self)
return self.end_visit(manager)
def begin_visit(self, manager):
pass
def end_visit(self, manager):
pass
def begin_chapter(self, chapter):
pas... | 18.533333 | 49 | 0.600719 | 67 | 556 | 4.850746 | 0.238806 | 0.129231 | 0.172308 | 0.123077 | 0.492308 | 0.196923 | 0 | 0 | 0 | 0 | 0 | 0.002571 | 0.30036 | 556 | 29 | 50 | 19.172414 | 0.832905 | 0.03777 | 0 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.421053 | false | 0.368421 | 0 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
08df8648c4eef0aa8ed9e0bada1a572e60ad5494 | 377 | py | Python | netrd/__init__.py | tlarock/netrd | 933f93dac9542d593c8935b10f152c3550819625 | [
"MIT"
] | null | null | null | netrd/__init__.py | tlarock/netrd | 933f93dac9542d593c8935b10f152c3550819625 | [
"MIT"
] | null | null | null | netrd/__init__.py | tlarock/netrd | 933f93dac9542d593c8935b10f152c3550819625 | [
"MIT"
] | null | null | null | """
netrd
-----
netrd stands for Network Reconstruction and Distances. It is a repository
of different algorithms for constructing a network from time series data,
as well as for comparing two networks. It is the product of the Network
Science Insitute 2019 Collabathon.
"""
from . import distance
from . import recon... | 23.5625 | 73 | 0.782493 | 53 | 377 | 5.566038 | 0.641509 | 0.135593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012739 | 0.167109 | 377 | 15 | 74 | 25.133333 | 0.926752 | 0.708223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3e9c610c1fdaed2dec746fb3ec03dea216e2cc24 | 98 | py | Python | sources/t07/t07ej05.py | workready/pythonbasic | 59bd82caf99244f5e711124e1f6f4dec8de22141 | [
"MIT"
] | null | null | null | sources/t07/t07ej05.py | workready/pythonbasic | 59bd82caf99244f5e711124e1f6f4dec8de22141 | [
"MIT"
] | null | null | null | sources/t07/t07ej05.py | workready/pythonbasic | 59bd82caf99244f5e711124e1f6f4dec8de22141 | [
"MIT"
] | null | null | null | # Ejemplo de enumerate
for bicho in enumerate(['perro', 'gato', 'ornitorrinco']):
print(bicho) | 32.666667 | 58 | 0.693878 | 12 | 98 | 5.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 98 | 3 | 59 | 32.666667 | 0.809524 | 0.204082 | 0 | 0 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
410443846693cd6bc12d65c543ad00a393a6dea0 | 364 | py | Python | test/python/tests/test_collect.py | bh107/bohrium | 5b83e7117285fefc7779ed0e9acb0f8e74c7e068 | [
"Apache-2.0"
] | 236 | 2015-03-31T15:39:30.000Z | 2022-03-24T01:43:14.000Z | test/python/tests/test_collect.py | bh107/bohrium | 5b83e7117285fefc7779ed0e9acb0f8e74c7e068 | [
"Apache-2.0"
] | 324 | 2015-05-27T10:35:38.000Z | 2021-12-10T07:34:10.000Z | test/python/tests/test_collect.py | bh107/bohrium | 5b83e7117285fefc7779ed0e9acb0f8e74c7e068 | [
"Apache-2.0"
] | 41 | 2015-05-26T12:38:42.000Z | 2022-01-10T15:16:37.000Z | import util
class test_collect:
def init(self):
for t in util.TYPES.ALL:
cmd = "a = M.arange(%d, dtype=%s); " % (100, t)
yield cmd
def test_contract(self, cmd):
cmd += "res = a / 180.0 * 3.14"
return cmd
def test_contract_reverse(self, cmd):
cmd += ... | 22.75 | 59 | 0.510989 | 54 | 364 | 3.37037 | 0.555556 | 0.065934 | 0.10989 | 0.197802 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07234 | 0.354396 | 364 | 15 | 60 | 24.266667 | 0.702128 | 0 | 0 | 0.166667 | 0 | 0 | 0.197802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0 | 0.583333 | 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 | 0 | 1 | 0 | 0 | 3 |
411a836d9f0318e5d7d55f0ccba0cf579beefa74 | 582 | py | Python | tools/HackRF/firmware/tools/dumb_crc32.py | Charmve/BLE-Security-Att-Def | 3652d84bf4ac0c694bb3c4c0f611098da9122af0 | [
"BSD-2-Clause"
] | 149 | 2020-10-23T23:31:51.000Z | 2022-03-15T00:25:35.000Z | tools/HackRF/firmware/tools/dumb_crc32.py | Charmve/BLE-Security-Att-Def | 3652d84bf4ac0c694bb3c4c0f611098da9122af0 | [
"BSD-2-Clause"
] | 1 | 2021-04-12T19:24:00.000Z | 2021-04-27T03:11:07.000Z | tools/HackRF/firmware/tools/dumb_crc32.py | Charmve/BLE-Security-Att-Def | 3652d84bf4ac0c694bb3c4c0f611098da9122af0 | [
"BSD-2-Clause"
] | 22 | 2020-11-17T02:52:40.000Z | 2022-03-15T00:26:38.000Z |
class DumbCRC32(object):
def __init__(self):
self._remainder = 0xffffffff
self._reversed_polynomial = 0xedb88320
self._final_xor = 0xffffffff
def update(self, data):
bit_count = len(data) * 8
for bit_n in range(bit_count):
bit_in = data[bit_n >> 3] & (1 << (bit_n & 7))
self._remainder ^= 1 if bit_in... | 25.304348 | 49 | 0.676976 | 85 | 582 | 4.317647 | 0.4 | 0.212534 | 0.114441 | 0.087193 | 0.103542 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046908 | 0.194158 | 582 | 22 | 50 | 26.454545 | 0.735608 | 0 | 0 | 0 | 0 | 0 | 0.006885 | 0 | 0 | 0 | 0.051635 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.111111 | 0.388889 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
411ee33a7787d936a0b086a959598e6d295431f3 | 1,955 | py | Python | GUI/Win32/Control.py | gcewing/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 9 | 2019-07-15T19:03:27.000Z | 2021-11-24T19:50:02.000Z | GUI/Win32/Control.py | mnabeelp/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 3 | 2019-09-11T13:22:10.000Z | 2020-08-19T20:13:00.000Z | GUI/Win32/Control.py | mnabeelp/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 4 | 2020-02-23T16:50:06.000Z | 2022-02-10T07:15:35.000Z | #--------------------------------------------------------------------
#
# PyGUI - Control - Win32
#
#--------------------------------------------------------------------
from math import ceil
import win32con as wc, win32ui as ui
from GUI import export
from GUI.StdColors import black
from GUI.StdFonts import system_f... | 22.215909 | 77 | 0.66445 | 280 | 1,955 | 4.407143 | 0.307143 | 0.056726 | 0.04376 | 0.029173 | 0.054295 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007295 | 0.158568 | 1,955 | 87 | 78 | 22.471264 | 0.742857 | 0.251151 | 0 | 0.057692 | 0 | 0 | 0.005544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.134615 | 0.115385 | 0.634615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f5b33f5548df0aaa78d360b912d414616c6baddf | 9,476 | py | Python | tinkoff/invest/grpc/stoporders_pb2.py | Tinkoff/invest-python | 26ef8cc1e70d144707246e64f29466b4491d4f8c | [
"Apache-2.0"
] | 41 | 2022-01-21T05:38:57.000Z | 2022-03-30T03:54:41.000Z | tinkoff/invest/grpc/stoporders_pb2.py | Tinkoff/invest-python | 26ef8cc1e70d144707246e64f29466b4491d4f8c | [
"Apache-2.0"
] | 20 | 2022-01-24T05:46:02.000Z | 2022-03-31T16:54:04.000Z | tinkoff/invest/grpc/stoporders_pb2.py | Tinkoff/invest-python | 26ef8cc1e70d144707246e64f29466b4491d4f8c | [
"Apache-2.0"
] | 15 | 2022-01-25T06:53:27.000Z | 2022-03-30T03:49:07.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: tinkoff/invest/grpc/stoporders.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool... | 76.419355 | 3,527 | 0.83759 | 1,196 | 9,476 | 6.338629 | 0.198997 | 0.041156 | 0.06015 | 0.069648 | 0.38214 | 0.3117 | 0.289935 | 0.202876 | 0.183221 | 0.160401 | 0 | 0.075332 | 0.046011 | 9,476 | 123 | 3,528 | 77.04065 | 0.763274 | 0.095399 | 0 | 0.148936 | 1 | 0.021277 | 0.505202 | 0.468498 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.085106 | 0 | 0.085106 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f5d0c0c1641217cafe758636d98bda1a598cb74e | 18,127 | py | Python | RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/eigrp/router/routerange/routerange.py | ralfjon/IxNetwork | c0c834fbc465af69c12fd6b7cee4628baba7fff1 | [
"MIT"
] | null | null | null | RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/eigrp/router/routerange/routerange.py | ralfjon/IxNetwork | c0c834fbc465af69c12fd6b7cee4628baba7fff1 | [
"MIT"
] | null | null | null | RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/eigrp/router/routerange/routerange.py | ralfjon/IxNetwork | c0c834fbc465af69c12fd6b7cee4628baba7fff1 | [
"MIT"
] | null | null | null |
# Copyright 1997 - 2018 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, p... | 47.083117 | 335 | 0.73123 | 2,630 | 18,127 | 5.001901 | 0.120152 | 0.023717 | 0.03854 | 0.04447 | 0.740859 | 0.693729 | 0.668339 | 0.668035 | 0.667123 | 0.666515 | 0 | 0.030295 | 0.187841 | 18,127 | 384 | 336 | 47.205729 | 0.863266 | 0.733767 | 0 | 0.15 | 0 | 0 | 0.077145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.335714 | false | 0 | 0.014286 | 0 | 0.535714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f5e0da736a2eb4df9c1cb0333d5d0c81da41e6c4 | 7,399 | py | Python | livestreamer.py | shivam043/LiveStreamer | 505171fd40b3b1a2fa722359c6202a3083627375 | [
"Unlicense"
] | null | null | null | livestreamer.py | shivam043/LiveStreamer | 505171fd40b3b1a2fa722359c6202a3083627375 | [
"Unlicense"
] | null | null | null | livestreamer.py | shivam043/LiveStreamer | 505171fd40b3b1a2fa722359c6202a3083627375 | [
"Unlicense"
] | null | null | null | import webbrowser
import argparse
import sys
"""Storing data"""
list_channel=["Barca TV(SPA)","BBC 1(UK)","BBC 2(UK)","BBC 3(UK)","BBC 4(UK)","BOXNATION(UK)","BRAVO TV(UK)","BRITISH EURO SPORTS 1(UK)","BRITISH EURO SPORTS 2(UK)","BT SPORT 1(UK)","BT SPORT 2(UK)","BT SPORT 3(UK)","BT SPORT ESPN(UK)",
"CANAL+SPO... | 104.211268 | 548 | 0.721314 | 1,141 | 7,399 | 4.636284 | 0.260298 | 0.054253 | 0.05293 | 0.075614 | 0.431947 | 0.244802 | 0.121361 | 0.108129 | 0.07259 | 0 | 0 | 0.032202 | 0.059873 | 7,399 | 71 | 549 | 104.211268 | 0.728292 | 0.002568 | 0 | 0 | 0 | 0.303571 | 0.770854 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089286 | false | 0 | 0.053571 | 0 | 0.196429 | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
eb345452ae432ac55619cbc619d2001ba03be928 | 94 | py | Python | 01_hello/hello.py | rwapple/tiny_python_projects | af3915bb28dcd4df0f50a2c3679a784b9332099e | [
"MIT"
] | null | null | null | 01_hello/hello.py | rwapple/tiny_python_projects | af3915bb28dcd4df0f50a2c3679a784b9332099e | [
"MIT"
] | null | null | null | 01_hello/hello.py | rwapple/tiny_python_projects | af3915bb28dcd4df0f50a2c3679a784b9332099e | [
"MIT"
] | null | null | null | # Rwapple -
#Lesson 1: saying hello
# Chapter one of the book.
Print ('Hello, World!')
| 10.444444 | 28 | 0.62766 | 13 | 94 | 4.538462 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.244681 | 94 | 8 | 29 | 11.75 | 0.816901 | 0.606383 | 0 | 0 | 0 | 0 | 0.464286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
de1c6940989b063848f6d2692740cdcc379a82e4 | 209 | py | Python | intro/part03-20_find_first_substring/src/find_first_substring.py | Hannah-Abi/python-pro-21 | 2ce32c4bf118054329d19afdf83c50561be1ada8 | [
"MIT"
] | null | null | null | intro/part03-20_find_first_substring/src/find_first_substring.py | Hannah-Abi/python-pro-21 | 2ce32c4bf118054329d19afdf83c50561be1ada8 | [
"MIT"
] | null | null | null | intro/part03-20_find_first_substring/src/find_first_substring.py | Hannah-Abi/python-pro-21 | 2ce32c4bf118054329d19afdf83c50561be1ada8 | [
"MIT"
] | null | null | null | # Write your solution here
word = input("Please type in a word: ")
char = input("Please type in a character: ")
index = word.find(char)
if (char in word and index < len(word)-2):
print(word[index:index+3]) | 34.833333 | 44 | 0.684211 | 36 | 209 | 3.972222 | 0.555556 | 0.153846 | 0.20979 | 0.237762 | 0.251748 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011561 | 0.172249 | 209 | 6 | 45 | 34.833333 | 0.815029 | 0.114833 | 0 | 0 | 0 | 0 | 0.277174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
de2521c303d810dd204af3202a81852acba3dce1 | 269 | py | Python | mef_tools/server.py | mselair/mef_tools | ef49df565e19751d9e95d2c2545b1983fcb43e46 | [
"Apache-2.0"
] | null | null | null | mef_tools/server.py | mselair/mef_tools | ef49df565e19751d9e95d2c2545b1983fcb43e46 | [
"Apache-2.0"
] | 2 | 2020-07-29T21:26:31.000Z | 2020-08-13T18:00:56.000Z | mef_tools/server.py | xmival00/MEF_Tools | ef49df565e19751d9e95d2c2545b1983fcb43e46 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020-present, Mayo Clinic Department of Neurology - Laboratory of Bioelectronics Neurophysiology and Engineering
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree. | 53.8 | 124 | 0.806691 | 38 | 269 | 5.710526 | 0.789474 | 0.092166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017621 | 0.156134 | 269 | 5 | 125 | 53.8 | 0.938326 | 0.962825 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
de328308db2fca566fadf518deb6ee575b95935f | 123 | py | Python | throws/__init__.py | thahnen/throws | 0c786307221a055fb9df95e569f1e5382e51e9ed | [
"MIT"
] | 1 | 2021-04-14T09:48:54.000Z | 2021-04-14T09:48:54.000Z | throws/__init__.py | thahnen/throws | 0c786307221a055fb9df95e569f1e5382e51e9ed | [
"MIT"
] | 1 | 2021-04-13T13:04:01.000Z | 2021-04-21T18:47:42.000Z | throws/__init__.py | thahnen/throws | 0c786307221a055fb9df95e569f1e5382e51e9ed | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from .throws import *
__version__ = "1.0.5"
__author__ = "Tobias Hahnen"
| 13.666667 | 28 | 0.634146 | 17 | 123 | 4.117647 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04902 | 0.170732 | 123 | 8 | 29 | 15.375 | 0.637255 | 0.349594 | 0 | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
de3f495676206723636ca2421b124f971436df68 | 313 | py | Python | basics/while_example.py | examplehub/Python | cd9dd9feb6dd65c2e0d545b5154a0f684e5c1e17 | [
"Apache-2.0"
] | 9 | 2020-10-03T06:52:35.000Z | 2021-09-08T03:22:59.000Z | basics/while_example.py | Shubhanshu156/Python-1 | 3bd617843dfae1e9f4855a68a0f9663ea9180da5 | [
"Apache-2.0"
] | 8 | 2020-10-03T06:52:37.000Z | 2021-09-25T08:11:53.000Z | basics/while_example.py | Shubhanshu156/Python-1 | 3bd617843dfae1e9f4855a68a0f9663ea9180da5 | [
"Apache-2.0"
] | 3 | 2020-10-25T08:25:50.000Z | 2021-09-05T11:16:17.000Z | def main():
"""
While example.
>>> i = 1
>>> while i <= 5:
... print(i, end='')
... i += 1
12345
>>> i = 5
>>> while i >= 1:
... print(i, end='')
... i -= 1
54321
"""
if __name__ == "__main__":
from doctest import testmod
testmod()
| 13.608696 | 31 | 0.376997 | 34 | 313 | 3.235294 | 0.5 | 0.072727 | 0.163636 | 0.181818 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087432 | 0.415335 | 313 | 22 | 32 | 14.227273 | 0.513661 | 0.523962 | 0 | 0 | 0 | 0 | 0.086022 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.25 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
de4b7e151b0a5c86ea9f4d2cff97347bc6d79ebf | 135 | py | Python | pyrolite/extensions/__init__.py | bomtuckle/pyrolite | c0af0ade14ff26b4e9fdd5a033b27e73df085c55 | [
"BSD-3-Clause"
] | 69 | 2019-02-25T00:17:53.000Z | 2022-03-31T17:26:48.000Z | pyrolite/extensions/__init__.py | bomtuckle/pyrolite | c0af0ade14ff26b4e9fdd5a033b27e73df085c55 | [
"BSD-3-Clause"
] | 68 | 2018-07-20T09:01:01.000Z | 2022-03-31T16:28:36.000Z | pyrolite/extensions/__init__.py | bomtuckle/pyrolite | c0af0ade14ff26b4e9fdd5a033b27e73df085c55 | [
"BSD-3-Clause"
] | 24 | 2018-10-02T04:32:10.000Z | 2021-11-10T08:24:17.000Z | """
A stub module to house pyrolite extensions,
where they are installed.
"""
from ..util.log import Handle
logger = Handle(__name__)
| 16.875 | 43 | 0.740741 | 19 | 135 | 5.052632 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155556 | 135 | 7 | 44 | 19.285714 | 0.842105 | 0.511111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
de5f51db2eab3c4f33622d682d41732f3bb9ff45 | 1,663 | py | Python | time_strings.py | conradstorz/RiverBot | 45580fc91488d2ed938d65753da78037f56218f8 | [
"Apache-2.0"
] | null | null | null | time_strings.py | conradstorz/RiverBot | 45580fc91488d2ed938d65753da78037f56218f8 | [
"Apache-2.0"
] | null | null | null | time_strings.py | conradstorz/RiverBot | 45580fc91488d2ed938d65753da78037f56218f8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Standardize time strings and datetime objects used in a project.
"""
from datetime import datetime, date
from time import sleep
import pytz
tz_UTC = pytz.timezone("UTC")
tz_LOCAL = pytz.timezone("America/Louisville")
def timefstring(dtobj, tz_name=True):
"""Sta... | 27.716667 | 95 | 0.657246 | 244 | 1,663 | 4.245902 | 0.282787 | 0.096525 | 0.053089 | 0.031853 | 0.092664 | 0.050193 | 0.050193 | 0.050193 | 0.050193 | 0.050193 | 0 | 0.002935 | 0.180397 | 1,663 | 59 | 96 | 28.186441 | 0.757153 | 0.143115 | 0 | 0 | 0 | 0 | 0.396859 | 0.178444 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0 | 0.085714 | 0.2 | 0.571429 | 0.228571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.