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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
90aea83101d8643fb627bac0217a5a6fd1cebe23 | 280 | py | Python | zephyrus_sc2_parser/__init__.py | dermorz/zephyrus-sc2-parser | fdcc298ced9f2f8194d4c864ef2943382214c0bd | [
"MIT"
] | 28 | 2020-03-11T14:07:12.000Z | 2022-03-24T23:53:08.000Z | zephyrus_sc2_parser/__init__.py | dermorz/zephyrus-sc2-parser | fdcc298ced9f2f8194d4c864ef2943382214c0bd | [
"MIT"
] | 19 | 2020-06-25T11:59:43.000Z | 2022-03-27T23:11:00.000Z | zephyrus_sc2_parser/__init__.py | dermorz/zephyrus-sc2-parser | fdcc298ced9f2f8194d4c864ef2943382214c0bd | [
"MIT"
] | 4 | 2020-06-24T21:12:15.000Z | 2021-11-19T15:27:35.000Z | import logging
from logging import NullHandler
from zephyrus_sc2_parser.parser import parse_replay
logging.getLogger(__name__).addHandler(NullHandler())
# to prevent unknown event warnings
util_logger = logging.getLogger(f'{__name__}.utils')
util_logger.setLevel(logging.ERROR)
| 28 | 53 | 0.835714 | 36 | 280 | 6.138889 | 0.638889 | 0.144796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003891 | 0.082143 | 280 | 9 | 54 | 31.111111 | 0.856031 | 0.117857 | 0 | 0 | 0 | 0 | 0.065306 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
90b598a3e85c0003c20b1f9d672b64601fe42650 | 609 | py | Python | Unittest/test_phonebook.py | ahaile505/PythonUnitTesting | a0b1099ad2aa5130e6a6dd8abbb1a570f8e0e0f6 | [
"MIT"
] | null | null | null | Unittest/test_phonebook.py | ahaile505/PythonUnitTesting | a0b1099ad2aa5130e6a6dd8abbb1a570f8e0e0f6 | [
"MIT"
] | null | null | null | Unittest/test_phonebook.py | ahaile505/PythonUnitTesting | a0b1099ad2aa5130e6a6dd8abbb1a570f8e0e0f6 | [
"MIT"
] | null | null | null |
import unittest
from phonebook import PhoneBook
class PhoneBookTest(unittest.TestCase):
def setUp(self):
self.phonebook = PhoneBook()
def tearDown(self):
pass
def test_lookup_by_name(self):
self.phonebook.add("Bob", "1234")
number = self.phonebook.lookup("Bob")
... | 22.555556 | 55 | 0.665025 | 69 | 609 | 5.724638 | 0.463768 | 0.164557 | 0.086076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016913 | 0.223317 | 609 | 26 | 56 | 23.423077 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.039604 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.294118 | false | 0.058824 | 0.117647 | 0 | 0.470588 | 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 | 0 | 0 | 0 | 2 |
90b6cb39a08d423966c609f7b150d91ff086205f | 439 | py | Python | website/canvas/management/commands/rethumbnail_images.py | bopopescu/drawquest-web | 8d8f9149b6efeb65202809a5f8916386f58a1b3b | [
"BSD-3-Clause"
] | 61 | 2015-11-10T17:13:46.000Z | 2021-08-06T17:58:30.000Z | website/canvas/management/commands/rethumbnail_images.py | bopopescu/drawquest-web | 8d8f9149b6efeb65202809a5f8916386f58a1b3b | [
"BSD-3-Clause"
] | 13 | 2015-11-11T07:49:41.000Z | 2021-06-09T03:45:31.000Z | website/canvas/management/commands/rethumbnail_images.py | bopopescu/drawquest-web | 8d8f9149b6efeb65202809a5f8916386f58a1b3b | [
"BSD-3-Clause"
] | 18 | 2015-11-11T04:50:04.000Z | 2021-08-20T00:57:11.000Z | from django.core.management.base import BaseCommand, CommandError
from canvas.thumbnailer import update_all_content
from canvas.models import Content
from canvas.upload import get_fs
from configuration import Config
from django.conf import settings
class Command(BaseCommand):
args = ''
help = 'Recreates all th... | 29.266667 | 65 | 0.774487 | 58 | 439 | 5.741379 | 0.568966 | 0.09009 | 0.096096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148064 | 439 | 14 | 66 | 31.357143 | 0.890374 | 0 | 0 | 0 | 0 | 0 | 0.06621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.545455 | 0 | 0.909091 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
90b971004a855bce91e00f8f8346ca9ab2c8e144 | 2,381 | py | Python | morfessorcognate/constructions/base.py | Waino/morfessor-cognates | ef214eae484d92e6e66dd53a62d012567b1e3033 | [
"BSD-2-Clause"
] | 2 | 2019-07-29T13:33:04.000Z | 2019-11-01T11:42:35.000Z | morfessorcognate/constructions/base.py | Waino/morfessor-cognates | ef214eae484d92e6e66dd53a62d012567b1e3033 | [
"BSD-2-Clause"
] | null | null | null | morfessorcognate/constructions/base.py | Waino/morfessor-cognates | ef214eae484d92e6e66dd53a62d012567b1e3033 | [
"BSD-2-Clause"
] | 1 | 2019-04-17T08:14:14.000Z | 2019-04-17T08:14:14.000Z | import re
class BaseConstructionMethods(object):
def __init__(self, force_splits=None, nosplit_re=None):
self._force_splits = set(force_splits) if force_splits is not None else set()
self._nosplit = re.compile(nosplit_re, re.UNICODE) if nosplit_re is not None else None
def force_split_locatio... | 28.345238 | 102 | 0.599748 | 284 | 2,381 | 4.90493 | 0.235915 | 0.086145 | 0.107681 | 0.03733 | 0.151472 | 0.119167 | 0 | 0 | 0 | 0 | 0 | 0.008663 | 0.321294 | 2,381 | 83 | 103 | 28.686747 | 0.853342 | 0.039479 | 0 | 0.28125 | 0 | 0 | 0.003535 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 1 | 0.203125 | false | 0 | 0.015625 | 0.109375 | 0.375 | 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 | 0 | 0 | 0 | 2 |
90c3d3aa3d6a53659ffa0122ca5c9b18bbecc9de | 893 | py | Python | wpkit/services/CloudOS.py | Peiiii/wpkit | 23a07548be766b559b80e3114ecc24e3f2f65ea5 | [
"MIT"
] | null | null | null | wpkit/services/CloudOS.py | Peiiii/wpkit | 23a07548be766b559b80e3114ecc24e3f2f65ea5 | [
"MIT"
] | null | null | null | wpkit/services/CloudOS.py | Peiiii/wpkit | 23a07548be766b559b80e3114ecc24e3f2f65ea5 | [
"MIT"
] | null | null | null | import threading
def run_server1(import_name,host,port=80):
import wpkit
from wpkit.web.applications.all import BluePan
from wpkit.web import MyBlueprint
app = wpkit.web.get_default_app(import_name)
bp_pan = pan.BluePan(import_name)
app.add_blueprint(bp_pan)
print(app.url_map)
print(a... | 28.806452 | 75 | 0.717805 | 134 | 893 | 4.537313 | 0.350746 | 0.131579 | 0.115132 | 0.059211 | 0.082237 | 0.082237 | 0.082237 | 0 | 0 | 0 | 0 | 0.042384 | 0.154535 | 893 | 31 | 76 | 28.806452 | 0.762914 | 0 | 0 | 0.16 | 0 | 0 | 0.021253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.52 | 0 | 0.64 | 0.2 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
90c55abcd014981c5d4ab62f822178ab7cc2f5e3 | 33,354 | py | Python | test_files/uctable_N.py | garrettluu/js-adler32 | b40011c6f76bb2a0b78126fc8412ff380c905dcd | [
"Apache-2.0"
] | 224 | 2015-01-07T06:06:33.000Z | 2022-03-29T08:52:49.000Z | test_files/uctable_N.py | stof/js-adler32 | b7700fd5fa4c1ecfb4e67d20ed0248154940fcdb | [
"Apache-2.0"
] | 18 | 2015-05-06T22:30:17.000Z | 2022-03-30T18:15:51.000Z | test_files/uctable_N.py | stof/js-adler32 | b7700fd5fa4c1ecfb4e67d20ed0248154940fcdb | [
"Apache-2.0"
] | 38 | 2015-01-28T03:34:17.000Z | 2022-02-10T03:28:14.000Z | uctable = [ [ 48 ],
[ 49 ],
[ 50 ],
[ 51 ],
[ 52 ],
[ 53 ],
[ 54 ],
[ 55 ],
[ 56 ],
[ 57 ],
[ 194, 178 ],
[ 194, 179 ],
[ 194, 185 ],
[ 194, 188 ],
[ 194, 189 ],
[ 194, 190 ],
[ 217, 160 ],
[ 217, 161 ],
[ 217, 162 ],
[ 217, 163 ],
[ 217, 164 ],
[ 217, 165 ],
[ 217, 166 ],
... | 23.259414 | 26 | 0.445224 | 4,952 | 33,354 | 2.998788 | 0.017367 | 0.132929 | 0.038788 | 0.001616 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.654771 | 0.320351 | 33,354 | 1,433 | 27 | 23.275646 | 0.000309 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
90cdee84fa927e670dab02c3e23806e7a224c6ba | 127 | py | Python | zeroml/__init__.py | i008/zeroml | 849258d34606698aba44c5f0028254025755e8ff | [
"MIT"
] | null | null | null | zeroml/__init__.py | i008/zeroml | 849258d34606698aba44c5f0028254025755e8ff | [
"MIT"
] | null | null | null | zeroml/__init__.py | i008/zeroml | 849258d34606698aba44c5f0028254025755e8ff | [
"MIT"
] | null | null | null | """Top-level package for zeroml."""
__author__ = """kuba cieslik"""
__email__ = 'kubacieslik@gmail.com'
__version__ = '0.3.3'
| 21.166667 | 35 | 0.685039 | 16 | 127 | 4.6875 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026786 | 0.11811 | 127 | 5 | 36 | 25.4 | 0.642857 | 0.228346 | 0 | 0 | 0 | 0 | 0.413043 | 0.228261 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
90d65b3d778c9b4451f5dac01f537c0caa751192 | 1,233 | py | Python | Ska/engarchive/lazy.py | jmodelcxc/eng_archive | 04017f062ef1ab023a58b6d9e5bde19992c8398c | [
"BSD-3-Clause"
] | null | null | null | Ska/engarchive/lazy.py | jmodelcxc/eng_archive | 04017f062ef1ab023a58b6d9e5bde19992c8398c | [
"BSD-3-Clause"
] | 64 | 2015-02-25T20:25:41.000Z | 2022-03-26T23:39:03.000Z | Ska/engarchive/lazy.py | jmodelcxc/eng_archive | 04017f062ef1ab023a58b6d9e5bde19992c8398c | [
"BSD-3-Clause"
] | 4 | 2016-01-28T19:48:53.000Z | 2021-02-04T16:38:03.000Z | class LazyDict(dict):
def __init__(self, load_func, *args, **kwargs):
self._load_func = load_func
self._args = args
self._kwargs = kwargs
self._loaded = False
super().__init__()
def load(self):
if not self._loaded:
self.update(self._load_func(*self._a... | 25.163265 | 81 | 0.5515 | 139 | 1,233 | 4.510791 | 0.302158 | 0.140351 | 0.1563 | 0.212121 | 0.14673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.332522 | 1,233 | 48 | 82 | 25.6875 | 0.761847 | 0.054339 | 0 | 0.236842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.236842 | false | 0 | 0 | 0 | 0.473684 | 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 | 0 | 0 | 0 | 2 |
90e41f31d865ffd02f6ac0d878d3eb7163ca29b8 | 192 | py | Python | allocate/__init__.py | BraeWebb/allocate | b68d7eb63623002bad2e445729d5904c4b7cadb5 | [
"MIT"
] | null | null | null | allocate/__init__.py | BraeWebb/allocate | b68d7eb63623002bad2e445729d5904c4b7cadb5 | [
"MIT"
] | 13 | 2020-02-06T11:24:20.000Z | 2020-07-27T07:37:49.000Z | allocate/__init__.py | BraeWebb/allocate | b68d7eb63623002bad2e445729d5904c4b7cadb5 | [
"MIT"
] | null | null | null | """
Tutor allocation algorithm for allocating tutors to the optimal sessions.
"""
__author__ = "Henry O'Brien, Brae Webb"
__all__ = ['allocation', 'doodle', 'model', 'solver', 'csvalidator']
| 27.428571 | 73 | 0.713542 | 22 | 192 | 5.863636 | 0.954545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135417 | 192 | 6 | 74 | 32 | 0.777108 | 0.380208 | 0 | 0 | 0 | 0 | 0.558559 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
90e49c6f0f7df62bd0819c21270fba853167f6b1 | 230 | py | Python | will_it_saturate/django/async_settings.py | ephes/will_it_saturate | dafcfcb3aa2785b885f0533aff221ec2f38f0278 | [
"Apache-2.0"
] | 1 | 2021-06-11T17:58:27.000Z | 2021-06-11T17:58:27.000Z | will_it_saturate/django/async_settings.py | ephes/will_it_saturate | dafcfcb3aa2785b885f0533aff221ec2f38f0278 | [
"Apache-2.0"
] | null | null | null | will_it_saturate/django/async_settings.py | ephes/will_it_saturate | dafcfcb3aa2785b885f0533aff221ec2f38f0278 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: 15_django_async_settings.ipynb (unless otherwise specified).
__all__ = ['ROOT_URLCONF']
# Cell
# dont_test
from .settings import *
ROOT_URLCONF = "will_it_saturate.django.async_urls" | 23 | 104 | 0.778261 | 32 | 230 | 5.1875 | 0.8125 | 0.13253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00995 | 0.126087 | 230 | 10 | 105 | 23 | 0.81592 | 0.508696 | 0 | 0 | 1 | 0 | 0.418182 | 0.309091 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
90e62467b0e0a22392dc01f6011f308075aa3ac0 | 485 | py | Python | nasa/warnings.py | wrap-api/python-nasa | 575d86afa8782d7681e3f97f38451964bffa1ac8 | [
"MIT"
] | null | null | null | nasa/warnings.py | wrap-api/python-nasa | 575d86afa8782d7681e3f97f38451964bffa1ac8 | [
"MIT"
] | 8 | 2021-11-08T04:08:16.000Z | 2021-11-15T02:09:15.000Z | nasa/warnings.py | wrap-api/python-nasa | 575d86afa8782d7681e3f97f38451964bffa1ac8 | [
"MIT"
] | null | null | null | from typing import Text
class BaseNASAWarning(Warning):
CODE: Text = "NASA-WARN-001"
def __init__(self, message: Text) -> None:
coded_message: Text = f"{self.CODE} - {message}"
super().__init__(coded_message)
class InvalidInputWarning(BaseNASAWarning):
CODE: Text = "NASA-WARN-002"
cla... | 22.045455 | 56 | 0.703093 | 53 | 485 | 6.245283 | 0.471698 | 0.096677 | 0.145015 | 0.193353 | 0.280967 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030075 | 0.17732 | 485 | 21 | 57 | 23.095238 | 0.799499 | 0 | 0 | 0 | 0 | 0 | 0.154639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
90e8ab4b94e586021c07981c5b4b03e666f5fa1f | 1,944 | py | Python | opensfm/geometry.py | leejaeyong7/OpenSfM | 893354cdd2f131782407d7d0be88c8fe92911b6f | [
"BSD-2-Clause"
] | 1 | 2020-10-24T11:12:54.000Z | 2020-10-24T11:12:54.000Z | opensfm/geometry.py | leejaeyong7/OpenSfM | 893354cdd2f131782407d7d0be88c8fe92911b6f | [
"BSD-2-Clause"
] | 3 | 2021-06-08T22:22:02.000Z | 2022-03-12T00:47:52.000Z | opensfm/geometry.py | leejaeyong7/OpenSfM | 893354cdd2f131782407d7d0be88c8fe92911b6f | [
"BSD-2-Clause"
] | 2 | 2020-08-04T19:08:34.000Z | 2020-08-18T15:32:45.000Z | from __future__ import division
import cv2
import numpy as np
from opensfm import transformations
def rotation_from_angle_axis(angle_axis):
return cv2.Rodrigues(np.asarray(angle_axis))[0]
def rotation_from_ptr(pan, tilt, roll):
"""Camera rotation matrix from pan, tilt and roll."""
R1 = rotation_from_a... | 29.014925 | 73 | 0.686214 | 319 | 1,944 | 3.971787 | 0.188088 | 0.187845 | 0.110497 | 0.143646 | 0.549329 | 0.395422 | 0.395422 | 0.395422 | 0.355959 | 0.355959 | 0 | 0.032932 | 0.187757 | 1,944 | 66 | 74 | 29.454545 | 0.769474 | 0.169753 | 0 | 0.078947 | 0 | 0 | 0.005092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.105263 | 0.026316 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
90f73c6f14025f223869453bd4954c9ddef1e84c | 4,147 | py | Python | Code/InnoSchedule/tests/reg_tests.py | Eng-MFQ/InnoCalendar | 06837d689027428d91a7c5fe8923a26b14aadffd | [
"MIT"
] | null | null | null | Code/InnoSchedule/tests/reg_tests.py | Eng-MFQ/InnoCalendar | 06837d689027428d91a7c5fe8923a26b14aadffd | [
"MIT"
] | null | null | null | Code/InnoSchedule/tests/reg_tests.py | Eng-MFQ/InnoCalendar | 06837d689027428d91a7c5fe8923a26b14aadffd | [
"MIT"
] | 1 | 2019-11-28T10:55:37.000Z | 2019-11-28T10:55:37.000Z | import datetime
from unittest.mock import MagicMock, patch, Mock
from nose.tools import assert_equal
from parameterized import parameterized
import unittest
from telebot.types import Message, User, Chat
from modules.core.source import attach_core_module
from modules.schedule import permanent
from modules.schedule.so... | 46.595506 | 94 | 0.647215 | 467 | 4,147 | 5.524625 | 0.201285 | 0.048837 | 0.086822 | 0.062016 | 0.743411 | 0.719767 | 0.70814 | 0.660078 | 0.598837 | 0.598837 | 0 | 0.037259 | 0.236315 | 4,147 | 88 | 95 | 47.125 | 0.777392 | 0 | 0 | 0.581081 | 0 | 0 | 0.182059 | 0.146853 | 0 | 0 | 0 | 0 | 0.067568 | 1 | 0.067568 | false | 0 | 0.121622 | 0 | 0.202703 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
29050bb995546f9e5545c3a653d834b0ab173735 | 1,606 | py | Python | software_Non_AI/systemcontrols/systemcontrol.py | KKshitiz/J.A.R.V.I.S | 620cffec86991c948839a5f9ceaceb59e0a69e78 | [
"MIT"
] | 5 | 2020-08-29T12:58:40.000Z | 2022-01-23T14:20:02.000Z | software_Non_AI/systemcontrols/systemcontrol.py | KKshitiz/J.A.R.V.I.S | 620cffec86991c948839a5f9ceaceb59e0a69e78 | [
"MIT"
] | null | null | null | software_Non_AI/systemcontrols/systemcontrol.py | KKshitiz/J.A.R.V.I.S | 620cffec86991c948839a5f9ceaceb59e0a69e78 | [
"MIT"
] | 5 | 2020-08-30T19:22:44.000Z | 2021-11-19T03:35:08.000Z | from datetime import date
from key import Key
from sys import path
# path.insert(1,'C:\\Users\\skili\\Documents\\GitHub\\J.A.R.V.I.S\\nlp')
#this misc feature is made for windows systems, some functions may not work
#this module handles basic media control features
def mute():
try:
Key.mute()
except... | 15.745098 | 75 | 0.579701 | 181 | 1,606 | 5.116022 | 0.38674 | 0.097192 | 0.275378 | 0.280778 | 0.069114 | 0.069114 | 0 | 0 | 0 | 0 | 0 | 0.000924 | 0.326276 | 1,606 | 102 | 76 | 15.745098 | 0.854898 | 0.140722 | 0 | 0.620253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189873 | false | 0 | 0.037975 | 0 | 0.417722 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
290567e2cd39df6e62afae05c30712bf41f29a0c | 2,045 | py | Python | pyzx/graph/graph.py | mnm-team/pyzx-heuristics | 636ca151f325087c0e6ce8ed1e2ee1cb896cab56 | [
"Apache-2.0"
] | 219 | 2018-07-04T09:50:27.000Z | 2022-03-30T11:39:53.000Z | pyzx/graph/graph.py | mnm-team/pyzx-heuristics | 636ca151f325087c0e6ce8ed1e2ee1cb896cab56 | [
"Apache-2.0"
] | 74 | 2018-07-17T13:56:49.000Z | 2022-03-30T16:11:56.000Z | pyzx/graph/graph.py | mnm-team/pyzx-heuristics | 636ca151f325087c0e6ce8ed1e2ee1cb896cab56 | [
"Apache-2.0"
] | 73 | 2018-07-10T13:58:38.000Z | 2022-02-15T14:59:45.000Z | # PyZX - Python library for quantum circuit rewriting
# and optimization using the ZX-calculus
# Copyright (C) 2018 - Aleks Kissinger and John van de Wetering
# 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 ... | 30.522388 | 85 | 0.733985 | 301 | 2,045 | 4.946844 | 0.45515 | 0.040296 | 0.017461 | 0.021491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00472 | 0.171149 | 2,045 | 66 | 86 | 30.984848 | 0.873746 | 0.560391 | 0 | 0.25 | 0 | 0 | 0.102679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0.0625 | 0.34375 | 0 | 0.4375 | 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 | 0 | 0 | 0 | 2 |
2909e1c228332071a6db4659aff74543d32b4a5f | 519 | py | Python | Aulasatualizada/execicio_curso em video/execicio_Analise_de_dados_em_Tuplas.py | swellington231/AulaPaython | 7b72ddec4d85f4660c0c395de07a133993aa2c70 | [
"MIT"
] | null | null | null | Aulasatualizada/execicio_curso em video/execicio_Analise_de_dados_em_Tuplas.py | swellington231/AulaPaython | 7b72ddec4d85f4660c0c395de07a133993aa2c70 | [
"MIT"
] | null | null | null | Aulasatualizada/execicio_curso em video/execicio_Analise_de_dados_em_Tuplas.py | swellington231/AulaPaython | 7b72ddec4d85f4660c0c395de07a133993aa2c70 | [
"MIT"
] | null | null | null | num = (int(input('Digite um numero: ')),
int(input('Digite outro numero: ')),
int(input('Digite mais um numero: ')),
int(input('Digite o ultimo numero: ')))
print(f'Os numero digitados foram: {num}')
print(f'O numero 9 apareceu {num.count(9)} vezes')
if 3 in num:
print(f'\nO numero 3 foi dig... | 32.4375 | 82 | 0.603083 | 86 | 519 | 3.639535 | 0.523256 | 0.102236 | 0.178914 | 0.191693 | 0.140575 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019901 | 0.225434 | 519 | 15 | 83 | 34.6 | 0.758706 | 0 | 0 | 0 | 0 | 0.071429 | 0.546332 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 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 | 0 | 0 | 1 | 0 | 2 |
290dca7ac8b4603691f218b7c746412909047984 | 1,497 | py | Python | test_files/test_interpolation.py | slash-segmentation/DP2 | 6f768e4b8a75a3ab2bf1359ae94704332426a4d6 | [
"Unlicense"
] | null | null | null | test_files/test_interpolation.py | slash-segmentation/DP2 | 6f768e4b8a75a3ab2bf1359ae94704332426a4d6 | [
"Unlicense"
] | null | null | null | test_files/test_interpolation.py | slash-segmentation/DP2 | 6f768e4b8a75a3ab2bf1359ae94704332426a4d6 | [
"Unlicense"
] | null | null | null | #http://www.scipy.org/Cookbook/Interpolation
from scipy import ogrid, sin, mgrid, ndimage, array
import numpy
x,y = ogrid[-1:1:3j,-1:1:3j]
fvals = sin(x)*sin(y)
newx,newy = mgrid[-1:1:6j,-1:1:6j]
x0 = x[0,0]
y0 = y[0,0]
dx = x[1,0] - x0
dy = y[0,1] - y0
# make indicies go from 0 to n-1 considering n is number of ro... | 23.390625 | 112 | 0.636607 | 250 | 1,497 | 3.788 | 0.332 | 0.063358 | 0.133052 | 0.079197 | 0.139388 | 0.025343 | 0.025343 | 0 | 0 | 0 | 0 | 0.066331 | 0.204409 | 1,497 | 63 | 113 | 23.761905 | 0.728799 | 0.404142 | 0 | 0 | 0 | 0 | 0.060364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.470588 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
290f9c61154a9c9fd6b73ca7ff66fb7eb1dfbfdc | 1,140 | py | Python | generator.py | citrus1998/Non-Saturating-GAN | 2b6fc6c5a84977916d4e27c31ccfca7ce4c35821 | [
"MIT"
] | null | null | null | generator.py | citrus1998/Non-Saturating-GAN | 2b6fc6c5a84977916d4e27c31ccfca7ce4c35821 | [
"MIT"
] | null | null | null | generator.py | citrus1998/Non-Saturating-GAN | 2b6fc6c5a84977916d4e27c31ccfca7ce4c35821 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
class Generator(nn.Module) :
# gray => n_channel = 1, color => n_channel = 3
def __init__(self, z_dim = 100, g_n_channel = 64, n_channel = 3) :
super(Generator, self).__init__()
self.layers = nn.Sequential(
nn.ConvTranspose2d(z_di... | 35.625 | 87 | 0.55614 | 161 | 1,140 | 3.689441 | 0.236025 | 0.228956 | 0.19697 | 0.148148 | 0.537037 | 0.537037 | 0.513468 | 0.461279 | 0.461279 | 0.171717 | 0 | 0.056774 | 0.320175 | 1,140 | 31 | 88 | 36.774194 | 0.709677 | 0.039474 | 0 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.086957 | 0.043478 | 0.26087 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2917d6056f1a8b753aa0271541877960ebb72dae | 1,935 | py | Python | tensorflow/contrib/kernel_methods/python/mappers/dense_kernel_mapper.py | uve/tensorflow | e08079463bf43e5963acc41da1f57e95603f8080 | [
"Apache-2.0"
] | null | null | null | tensorflow/contrib/kernel_methods/python/mappers/dense_kernel_mapper.py | uve/tensorflow | e08079463bf43e5963acc41da1f57e95603f8080 | [
"Apache-2.0"
] | null | null | null | tensorflow/contrib/kernel_methods/python/mappers/dense_kernel_mapper.py | uve/tensorflow | e08079463bf43e5963acc41da1f57e95603f8080 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 The TensorFlow 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... | 32.79661 | 81 | 0.692506 | 252 | 1,935 | 5.238095 | 0.543651 | 0.045455 | 0.036364 | 0.024242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005131 | 0.194315 | 1,935 | 58 | 82 | 33.362069 | 0.841565 | 0.667183 | 0 | 0.235294 | 0 | 0 | 0.058252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.117647 | 0.294118 | 0 | 0.588235 | 0.058824 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
291e415954915adfd28205baebffe3ba7fa8c0cd | 3,797 | py | Python | consent.py | yawgmoth/NVHanabi | d87d17ec3326bffa29e6f2525227e7e79945a728 | [
"BSD-3-Clause"
] | null | null | null | consent.py | yawgmoth/NVHanabi | d87d17ec3326bffa29e6f2525227e7e79945a728 | [
"BSD-3-Clause"
] | null | null | null | consent.py | yawgmoth/NVHanabi | d87d17ec3326bffa29e6f2525227e7e79945a728 | [
"BSD-3-Clause"
] | null | null | null |
consent = """<center><table width="800px"><tr><td>
<font size="16"><b>University of Costa Rica<br/> </font>
INFORMED CONSENT FORM for RESEARCH<br/></b>
<b>Title of Study:</b> Hanabi AI Agents<br/>
<b>Principal Investigator:</b> Dr. Markus Eger <br/>
<h2>What are some general things you should know about re... | 88.302326 | 576 | 0.762444 | 671 | 3,797 | 4.314456 | 0.33234 | 0.034197 | 0.026598 | 0.02487 | 0.179275 | 0.136097 | 0.116062 | 0.116062 | 0.102936 | 0.080138 | 0 | 0.009277 | 0.176718 | 3,797 | 43 | 577 | 88.302326 | 0.916827 | 0 | 0 | 0 | 0 | 0.357143 | 0.995472 | 0.039158 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
292b0fff0a1c5514dcb3ed5cdc8beaf3e6cb6ba6 | 322 | py | Python | operators/readers/csv/reader_json.py | OrcaWorkflows/orca | 77e849812a439cdfd1755c95915a9de2af12095f | [
"Apache-2.0"
] | null | null | null | operators/readers/csv/reader_json.py | OrcaWorkflows/orca | 77e849812a439cdfd1755c95915a9de2af12095f | [
"Apache-2.0"
] | null | null | null | operators/readers/csv/reader_json.py | OrcaWorkflows/orca | 77e849812a439cdfd1755c95915a9de2af12095f | [
"Apache-2.0"
] | null | null | null | from readers.base.reader_strategy import ReaderStrategy
import pandas as pd
import io
import json
class ReaderJSON(ReaderStrategy):
def read_file(self, file: io.BytesIO):
json_data = json.loads(file.read())
return json_data
def read_file_as_pandas(self, file):
return pd.read_json(file... | 23 | 55 | 0.726708 | 46 | 322 | 4.913043 | 0.478261 | 0.061947 | 0.097345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195652 | 322 | 13 | 56 | 24.769231 | 0.872587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.1 | 0.9 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
292c94ecab96fb9cbd65e1e1a1728b661546558e | 1,312 | py | Python | sdk/python/pulumi_azure_native/automanage/v20200630preview/_enums.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | 31 | 2020-09-21T09:41:01.000Z | 2021-02-26T13:21:59.000Z | sdk/python/pulumi_azure_native/automanage/v20200630preview/_enums.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | 231 | 2020-09-21T09:38:45.000Z | 2021-03-01T11:16:03.000Z | sdk/python/pulumi_azure_native/automanage/v20200630preview/_enums.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | 4 | 2020-09-29T14:14:59.000Z | 2021-02-10T20:38:16.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from enum import Enum
__all__ = [
'ConfigurationProfile',
'EnableRealTimeProtection',
'ResourceIdentityType',
'RunScheduledScan',
... | 24.296296 | 151 | 0.682165 | 147 | 1,312 | 5.993197 | 0.564626 | 0.039728 | 0.086266 | 0.104427 | 0.270148 | 0.127128 | 0.088536 | 0 | 0 | 0 | 0 | 0.000977 | 0.219512 | 1,312 | 53 | 152 | 24.754717 | 0.857422 | 0.356707 | 0 | 0.173913 | 1 | 0 | 0.298956 | 0.031332 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.695652 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
293619452892e01e35482d91ba6f91688bb63d7c | 452 | py | Python | CrackingCodingInterview/2.1_remove_duplicates.py | HeyIamJames/CodingInterviewPractice | ea7f849e4eba9c4c7269b52aa7be48e7995c0f37 | [
"MIT"
] | null | null | null | CrackingCodingInterview/2.1_remove_duplicates.py | HeyIamJames/CodingInterviewPractice | ea7f849e4eba9c4c7269b52aa7be48e7995c0f37 | [
"MIT"
] | null | null | null | CrackingCodingInterview/2.1_remove_duplicates.py | HeyIamJames/CodingInterviewPractice | ea7f849e4eba9c4c7269b52aa7be48e7995c0f37 | [
"MIT"
] | null | null | null | #remove duplicates from an unsorted linked list
def foo(linkedlist):
current_node = linkedlist.head
while current_node is not None:
checker_node = current_node
while checker_node.next is not None:
if checker_node.next.value == current_node.value:
checker_node.next =... | 32.285714 | 61 | 0.659292 | 57 | 452 | 5 | 0.385965 | 0.270175 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285398 | 452 | 13 | 62 | 34.769231 | 0.882353 | 0.10177 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
295304b863733aeca90fac96c4ea0082dfc8e3ad | 7,970 | py | Python | lexer.py | andyv/sse | 61878eb77b5a48595e0f571c37826bccae16e1f5 | [
"BSD-2-Clause"
] | null | null | null | lexer.py | andyv/sse | 61878eb77b5a48595e0f571c37826bccae16e1f5 | [
"BSD-2-Clause"
] | null | null | null | lexer.py | andyv/sse | 61878eb77b5a48595e0f571c37826bccae16e1f5 | [
"BSD-2-Clause"
] | null | null | null |
# (C) 2014 Andrew Vaught
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
# 2. R... | 25.960912 | 80 | 0.587327 | 1,084 | 7,970 | 4.20203 | 0.261993 | 0.084523 | 0.111965 | 0.037541 | 0.188804 | 0.124698 | 0.089791 | 0.056202 | 0.039517 | 0.039517 | 0 | 0.010288 | 0.317064 | 7,970 | 306 | 81 | 26.045752 | 0.826566 | 0.299247 | 0 | 0.285714 | 0 | 0 | 0.044272 | 0.013372 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.086957 | 0.018634 | null | null | 0.037267 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
296f3d08d7bf630899e3dd3bf6901a45985662f1 | 241 | py | Python | examples/ariadne_django/api/queries.py | danhitchcock/neo4j-graphql-py | 195b78f61aaf6f9c5c5b2d06f4a52380dcd1e076 | [
"Apache-2.0"
] | 17 | 2020-08-19T08:41:55.000Z | 2022-03-10T08:26:58.000Z | examples/ariadne_django/api/queries.py | danhitchcock/neo4j-graphql-py | 195b78f61aaf6f9c5c5b2d06f4a52380dcd1e076 | [
"Apache-2.0"
] | 10 | 2021-03-30T14:10:30.000Z | 2022-01-03T14:20:48.000Z | examples/ariadne_django/api/queries.py | danhitchcock/neo4j-graphql-py | 195b78f61aaf6f9c5c5b2d06f4a52380dcd1e076 | [
"Apache-2.0"
] | 7 | 2020-09-16T22:49:53.000Z | 2021-12-17T22:33:56.000Z | from ariadne import QueryType
from neo4j_graphql_py import neo4j_graphql
query = QueryType()
@query.field('Movie')
@query.field('MoviesByYear')
def resolve(obj, info, **kwargs):
return neo4j_graphql(obj, info.context, info, **kwargs)
| 21.909091 | 59 | 0.755187 | 32 | 241 | 5.5625 | 0.5625 | 0.202247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014151 | 0.120332 | 241 | 10 | 60 | 24.1 | 0.825472 | 0 | 0 | 0 | 0 | 0 | 0.070539 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 0.571429 | 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 | 0 | 1 | 0 | 0 | 0 | 2 |
2971fb3466b99b14843329d05bb505162364a44b | 500 | py | Python | hacker-rank/algorithms/strings/two-strings/two-strings.py | palash24/algorithms | 0e46cbaa3f2826b6ff9d4ebd150b5e2330e66859 | [
"MIT"
] | 113 | 2016-09-13T13:39:08.000Z | 2021-12-26T09:02:18.000Z | hacker-rank/algorithms/strings/two-strings/two-strings.py | palash24/algorithms | 0e46cbaa3f2826b6ff9d4ebd150b5e2330e66859 | [
"MIT"
] | null | null | null | hacker-rank/algorithms/strings/two-strings/two-strings.py | palash24/algorithms | 0e46cbaa3f2826b6ff9d4ebd150b5e2330e66859 | [
"MIT"
] | 49 | 2016-08-27T07:55:25.000Z | 2022-03-17T15:54:18.000Z | #!/usr/bin/env python
import sys
def char_set(string):
chars = {}
for c in string:
chars[c] = True
return chars
def test_case():
A = sys.stdin.readline().strip()
B = sys.stdin.readline().strip()
bCharSet = char_set(B)
for c in A:
if (c in bCharSet):
print("YE... | 15.625 | 36 | 0.52 | 68 | 500 | 3.647059 | 0.514706 | 0.03629 | 0.193548 | 0.169355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005988 | 0.332 | 500 | 31 | 37 | 16.129032 | 0.736527 | 0.04 | 0 | 0 | 0 | 0 | 0.02714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.045455 | 0 | 0.272727 | 0.090909 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
29783e686a3cab60f96af292d5f2a8cf3ba1bdd9 | 326 | py | Python | tools.train.py | ferferga/MMM-NEXT-FacialRecognition | 90159182de2a944b041581e16b707c4551385690 | [
"MIT"
] | 47 | 2018-02-01T09:19:02.000Z | 2021-11-05T13:43:29.000Z | tools.train.py | ferferga/MMM-NEXT-FacialRecognition | 90159182de2a944b041581e16b707c4551385690 | [
"MIT"
] | 37 | 2018-02-10T23:21:22.000Z | 2021-09-18T11:43:45.000Z | tools.train.py | ferferga/MMM-NEXT-FacialRecognition | 90159182de2a944b041581e16b707c4551385690 | [
"MIT"
] | 18 | 2018-02-01T04:13:04.000Z | 2021-10-20T07:41:46.000Z | #!/usr/bin/env python
# coding: utf8
"""MMMM-Facial-Recognition-OCV3 - MagicMirror Module
The MIT License (MIT)
Copyright (c) 2018 Mathieu Goulène (MIT License)
Based on work by Paul-Vincent Roll (Copyright 2016) (MIT License)
"""
from lib.tools.train import ToolsTrain
if __name__ == '__main__':
ToolsTrain().tr... | 21.733333 | 65 | 0.730061 | 45 | 326 | 5.111111 | 0.822222 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035971 | 0.147239 | 326 | 14 | 66 | 23.285714 | 0.791367 | 0.677914 | 0 | 0 | 0 | 0 | 0.082474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 2 |
2983c216c060d97ee739cde0d096fd7eaf031890 | 667 | py | Python | transcode/filters/video/keyframes/qkeyframes.py | shersonb/python-transcode | db42e82f019ef4c3b7f59f34587576205e19eb96 | [
"MIT"
] | 1 | 2020-06-25T01:00:15.000Z | 2020-06-25T01:00:15.000Z | transcode/filters/video/keyframes/qkeyframes.py | shersonb/python-transcode | db42e82f019ef4c3b7f59f34587576205e19eb96 | [
"MIT"
] | null | null | null | transcode/filters/video/keyframes/qkeyframes.py | shersonb/python-transcode | db42e82f019ef4c3b7f59f34587576205e19eb96 | [
"MIT"
] | null | null | null | from transcode.pyqtgui.qframetablecolumn import BaseColumn
from PyQt5.QtCore import Qt
class KeyFrameCol(BaseColumn):
headerdisplay = "K"
display = ""
width = 48
flags = Qt.ItemIsEnabled | Qt.ItemIsSelectable | Qt.ItemIsUserCheckable
def __init__(self, forcekeyframes):
self.forcekeyframes... | 26.68 | 75 | 0.664168 | 71 | 667 | 6.183099 | 0.535211 | 0.205011 | 0.05467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010121 | 0.25937 | 667 | 24 | 76 | 27.791667 | 0.878543 | 0 | 0 | 0.111111 | 0 | 0 | 0.001499 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.111111 | 0.055556 | 0.722222 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
2984f144fe952c084402df958ee3dcd34487ed2e | 239 | bzl | Python | extra_deps.bzl | hxtk/rules_anchore | 604ab3d9509113b8d20a371725636ff0ddb3e1fd | [
"Apache-2.0"
] | 1 | 2022-01-10T20:26:06.000Z | 2022-01-10T20:26:06.000Z | extra_deps.bzl | hxtk/rules_anchore | 604ab3d9509113b8d20a371725636ff0ddb3e1fd | [
"Apache-2.0"
] | 6 | 2021-12-29T13:45:58.000Z | 2022-01-07T01:10:07.000Z | extra_deps.bzl | hxtk/rules_anchore | 604ab3d9509113b8d20a371725636ff0ddb3e1fd | [
"Apache-2.0"
] | null | null | null | load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
def anchore_extra_deps(configure_go=True):
if configure_go:
go_rules_dependencies()
go_register_toolchains(version = "1.17.1")
| 34.142857 | 90 | 0.74477 | 34 | 239 | 4.794118 | 0.558824 | 0.04908 | 0.245399 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019324 | 0.133891 | 239 | 6 | 91 | 39.833333 | 0.768116 | 0 | 0 | 0 | 0 | 0 | 0.334728 | 0.309623 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4624fcbbf181c27e4e153a5be253ea1eec373ecb | 2,530 | py | Python | norm/executable/expression/argument.py | reasoned-ai/norm | 5e45d5917ce8745c9a757a0c6b5e689ea0cac19f | [
"Apache-2.0"
] | 8 | 2019-07-22T08:57:20.000Z | 2021-03-26T13:51:02.000Z | norm/executable/expression/argument.py | xumiao/norm | 5e45d5917ce8745c9a757a0c6b5e689ea0cac19f | [
"Apache-2.0"
] | null | null | null | norm/executable/expression/argument.py | xumiao/norm | 5e45d5917ce8745c9a757a0c6b5e689ea0cac19f | [
"Apache-2.0"
] | 1 | 2019-11-16T13:37:35.000Z | 2019-11-16T13:37:35.000Z | from norm.grammar.literals import COP
from norm.executable import Projection
from norm.executable.constant import Constant
from norm.executable.expression import NormExpression
from typing import Union
import logging
logger = logging.getLogger(__name__)
class ArgumentExpr(NormExpression):
def __init__(self, var... | 42.166667 | 107 | 0.665217 | 271 | 2,530 | 6.132841 | 0.232472 | 0.109507 | 0.097473 | 0.084236 | 0.188327 | 0.129964 | 0.129964 | 0.129964 | 0.129964 | 0.129964 | 0 | 0 | 0.262451 | 2,530 | 59 | 108 | 42.881356 | 0.890675 | 0.227273 | 0 | 0.166667 | 0 | 0 | 0.005972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138889 | false | 0 | 0.333333 | 0.083333 | 0.611111 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4631b8da6150299ffd856101738cfbe592fa50af | 263 | py | Python | src/hataraku/urls.py | HNJ755329/Hatarako | 253d107db7a15caaf63794d9b8a4acc99168fba0 | [
"MIT"
] | null | null | null | src/hataraku/urls.py | HNJ755329/Hatarako | 253d107db7a15caaf63794d9b8a4acc99168fba0 | [
"MIT"
] | null | null | null | src/hataraku/urls.py | HNJ755329/Hatarako | 253d107db7a15caaf63794d9b8a4acc99168fba0 | [
"MIT"
] | null | null | null |
from django.urls import path
from . import views
urlpatterns = [
path("", views.hataraku_index, name="hataraku_index"),
path("result", views.hataraku_result, name="hataraku_result"),
path("<uuid:uuid>/", views.hataraku_uuid, name="hataraku_uuid"),
] | 29.222222 | 68 | 0.711027 | 33 | 263 | 5.484848 | 0.363636 | 0.21547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129278 | 263 | 9 | 69 | 29.222222 | 0.790393 | 0 | 0 | 0 | 0 | 0 | 0.228137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4638439d203bf03e33cbbf7989255a7d6a8ad7bf | 2,099 | py | Python | healthvaultlib/exceptions.py | orcasgit/python-healthvault | 0a97ed15614efb4429ead781458582901d0a2627 | [
"MIT"
] | 4 | 2016-03-04T14:50:04.000Z | 2019-08-13T22:34:04.000Z | healthvaultlib/exceptions.py | orcasgit/python-healthvault | 0a97ed15614efb4429ead781458582901d0a2627 | [
"MIT"
] | 1 | 2016-09-18T20:16:35.000Z | 2016-09-18T20:43:56.000Z | healthvaultlib/exceptions.py | orcasgit/python-healthvault | 0a97ed15614efb4429ead781458582901d0a2627 | [
"MIT"
] | 3 | 2018-02-20T08:41:45.000Z | 2022-01-31T21:20:10.000Z | from healthvaultlib.status_codes import HealthVaultStatus
def _get_exception_class_for(code):
"""Given a status code from healthvault, return the most appropriate exception class
to raise for it.
Returns a class so the exception can be constructed from the proper place
in the code instead of here.
... | 36.189655 | 88 | 0.735112 | 257 | 2,099 | 5.914397 | 0.447471 | 0.019737 | 0.014474 | 0.019737 | 0.034211 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005357 | 0.199619 | 2,099 | 57 | 89 | 36.824561 | 0.899405 | 0.540257 | 0 | 0.157895 | 0 | 0 | 0.004706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.157895 | 0.052632 | 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 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
463c160e120491fa647da9db2ad986cad9278d7f | 187 | py | Python | week5/opcionais/maximo.py | jotavev/usp-computer-science-python | 82aaa410f245e339c25e4a2b1a61e410259d0f8c | [
"MIT"
] | 1 | 2020-06-10T03:39:07.000Z | 2020-06-10T03:39:07.000Z | week5/opcionais/maximo.py | jotavev/usp-computer-science-python | 82aaa410f245e339c25e4a2b1a61e410259d0f8c | [
"MIT"
] | null | null | null | week5/opcionais/maximo.py | jotavev/usp-computer-science-python | 82aaa410f245e339c25e4a2b1a61e410259d0f8c | [
"MIT"
] | null | null | null | def maximo(a, b, c):
if a > b and a > c:
return a
elif b > c and b > a:
return b
elif c > a and c > b:
return c
elif a == b == c:
return a
| 18.7 | 25 | 0.417112 | 35 | 187 | 2.228571 | 0.257143 | 0.076923 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.481283 | 187 | 9 | 26 | 20.777778 | 0.804124 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4648aeea1b4931e74805e05e34b17915cd53ab9c | 2,602 | py | Python | test/unit/test_jvm_service_status.py | elabeca/service-manager | 67f4da08900ae629a171a01b7f89c322697d6e33 | [
"Apache-2.0"
] | null | null | null | test/unit/test_jvm_service_status.py | elabeca/service-manager | 67f4da08900ae629a171a01b7f89c322697d6e33 | [
"Apache-2.0"
] | null | null | null | test/unit/test_jvm_service_status.py | elabeca/service-manager | 67f4da08900ae629a171a01b7f89c322697d6e33 | [
"Apache-2.0"
] | null | null | null | from mock import *
import unittest
from hamcrest import *
from service.smjvmservice import SmJvmService
from smcontext import ServiceManagerException
from smprocess import SmProcess
class JvmServiceMock(SmJvmService):
def __init__(self, context, service_name):
SmJvmService.__init__(self, context, servic... | 37.710145 | 115 | 0.703689 | 306 | 2,602 | 5.748366 | 0.27451 | 0.068789 | 0.063673 | 0.088687 | 0.541217 | 0.500853 | 0.460489 | 0.460489 | 0.460489 | 0.460489 | 0 | 0.005172 | 0.182552 | 2,602 | 69 | 116 | 37.710145 | 0.821815 | 0 | 0 | 0.326923 | 0 | 0.019231 | 0.123703 | 0.089896 | 0 | 0 | 0 | 0 | 0.134615 | 1 | 0.25 | false | 0.115385 | 0.115385 | 0.019231 | 0.423077 | 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 | 0 | 0 | 0 | 2 |
464b332a1ed50e0918c134ba7910ce1ce63d2897 | 1,524 | py | Python | root/os/DSAA/DataStructuresAndAlgorithms/python/chutils/chutils/chweb/flask_app.py | chyidl/chyidlTutorial | a033e0a57abf84fdbb61e57736822f9126db6ff7 | [
"MIT"
] | 5 | 2018-10-17T05:57:39.000Z | 2021-07-05T15:38:24.000Z | root/os/DSAA/DataStructuresAndAlgorithms/python/chutils/chutils/chweb/flask_app.py | chyidl/chyidlTutorial | a033e0a57abf84fdbb61e57736822f9126db6ff7 | [
"MIT"
] | 2 | 2021-04-14T00:48:43.000Z | 2021-04-14T02:20:50.000Z | root/os/DSAA/DataStructuresAndAlgorithms/python/chutils/chutils/chweb/flask_app.py | chyidl/chyidlTutorial | a033e0a57abf84fdbb61e57736822f9126db6ff7 | [
"MIT"
] | 3 | 2019-03-02T14:36:19.000Z | 2022-03-18T10:12:09.000Z | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
#
# flask_app.py
# chweb
#
# 🎂"Here's to the crazy ones. The misfits. The rebels.
# The troublemakers. The round pegs in the square holes.
# The ones who see things differently. They're not found
# of rules. And they have no respect for the status quo.
# You can quote th... | 26.736842 | 79 | 0.697507 | 226 | 1,524 | 4.623894 | 0.553097 | 0.066986 | 0.076555 | 0.03445 | 0.097608 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01281 | 0.180446 | 1,524 | 56 | 80 | 27.214286 | 0.822258 | 0.505906 | 0 | 0 | 0 | 0 | 0.182573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0.157895 | 0.105263 | 0.105263 | 0.473684 | 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 | 0 | 1 | 0 | 0 | 0 | 2 |
46504354a6f71165725540147230875f7e7d4326 | 1,061 | py | Python | lib_rovpp/tests/yaml_system_tests/superprefix_prefix_graph_13_02/test_superprefix_prefix_08.py | jfuruness/lib_rovpp | 67032c2dc296fa1804a8305d8cb671339b8e45e0 | [
"BSD-3-Clause"
] | 1 | 2021-09-27T14:20:12.000Z | 2021-09-27T14:20:12.000Z | lib_rovpp/tests/yaml_system_tests/superprefix_prefix_graph_13_02/test_superprefix_prefix_08.py | jfuruness/lib_rovpp | 67032c2dc296fa1804a8305d8cb671339b8e45e0 | [
"BSD-3-Clause"
] | null | null | null | lib_rovpp/tests/yaml_system_tests/superprefix_prefix_graph_13_02/test_superprefix_prefix_08.py | jfuruness/lib_rovpp | 67032c2dc296fa1804a8305d8cb671339b8e45e0 | [
"BSD-3-Clause"
] | 1 | 2021-10-01T16:30:33.000Z | 2021-10-01T16:30:33.000Z | from pathlib import Path
from lib_bgp_simulator import BaseGraphSystemTester
from lib_bgp_simulator import BGPSimpleAS
from lib_bgp_simulator import ROVSimpleAS
from lib_bgp_simulator import Graph013
from ..unstable import Unstable
from ....as_classes import ROVPPV1SimpleAS
from ....as_classes import ROVPPV2SimpleAS
... | 27.921053 | 69 | 0.833176 | 90 | 1,061 | 9.622222 | 0.411111 | 0.032333 | 0.046189 | 0.08776 | 0.115473 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046088 | 0.120641 | 1,061 | 37 | 70 | 28.675676 | 0.882101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
46511f19c141addedb85daa3f97c439e09afe09e | 8,723 | py | Python | tests/tasks/tasks/instr/test_transfer_pulse_sequence_task.py | Exopy/ecpy_hqc_legacy | 3e31a8865d130907a82005e6cd78d99c6da7a951 | [
"BSD-3-Clause"
] | null | null | null | tests/tasks/tasks/instr/test_transfer_pulse_sequence_task.py | Exopy/ecpy_hqc_legacy | 3e31a8865d130907a82005e6cd78d99c6da7a951 | [
"BSD-3-Clause"
] | 34 | 2015-12-14T22:06:57.000Z | 2018-02-07T08:40:47.000Z | tests/tasks/tasks/instr/test_transfer_pulse_sequence_task.py | Exopy/ecpy_hqc_legacy | 3e31a8865d130907a82005e6cd78d99c6da7a951 | [
"BSD-3-Clause"
] | 6 | 2018-04-20T14:48:54.000Z | 2021-06-23T22:25:17.000Z | ## -*- coding: utf-8 -*-
## =============================================================================
## module : test_transfer_pulse_sequence_task.py
## author : Matthieu Dartiailh
## license : MIT license
## =============================================================================
#"""
#"""
#from nose.tools i... | 39.65 | 80 | 0.64072 | 1,009 | 8,723 | 5.353816 | 0.172448 | 0.071085 | 0.032581 | 0.006664 | 0.597927 | 0.538134 | 0.493151 | 0.479082 | 0.463162 | 0.463162 | 0 | 0.018835 | 0.202683 | 8,723 | 219 | 81 | 39.83105 | 0.757872 | 0.948527 | 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 | 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 | 2 |
4659ffa25a9065d0f39415a26b03f5b31bf42afe | 487 | py | Python | ex012.py | heltonsdl/python-3---curso-em-video | 2bb0408ec041628323443cf902fca593f7575941 | [
"MIT"
] | null | null | null | ex012.py | heltonsdl/python-3---curso-em-video | 2bb0408ec041628323443cf902fca593f7575941 | [
"MIT"
] | null | null | null | ex012.py | heltonsdl/python-3---curso-em-video | 2bb0408ec041628323443cf902fca593f7575941 | [
"MIT"
] | null | null | null | valor = float(input('Quanto custa o produto? R$'))
avista = valor - (valor *10/100)
parcelado = valor + ( valor *12/100)
#desc = valor - novo
#print ( 'O valor com o desconto de 5% fica de R$ {}.' .format(desc))
print (' O poduto que custava R$ {}, com o desconto de 10% do pagamento avista sai a R$ {} e com o acresci... | 54.111111 | 173 | 0.673511 | 83 | 487 | 3.951807 | 0.46988 | 0.036585 | 0.073171 | 0.085366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040404 | 0.186858 | 487 | 9 | 174 | 54.111111 | 0.787879 | 0.178645 | 0 | 0 | 0 | 0.25 | 0.516667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
466697f06f74981ca5f4ccced2217db514bafbeb | 487 | py | Python | test.py | sparseinference/argmaxnet | ff1e090a662d384f2ba4349494c9630079d2545b | [
"MIT"
] | null | null | null | test.py | sparseinference/argmaxnet | ff1e090a662d384f2ba4349494c9630079d2545b | [
"MIT"
] | null | null | null | test.py | sparseinference/argmaxnet | ff1e090a662d384f2ba4349494c9630079d2545b | [
"MIT"
] | null | null | null | """
File: test.py
By: Peter Caven, peter@sparseinference.com
Description:
Test the net.
"""
from argmaxnet import ArgMaxNet
import os
#=================================================================
modelPath = os.path.expanduser('~/models/argmaxnet/ArgMaxNet : StackDepth=3, Block(10,60),[111][0.02220].model')
#... | 22.136364 | 112 | 0.474333 | 47 | 487 | 4.914894 | 0.659574 | 0.12987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056054 | 0.084189 | 487 | 21 | 113 | 23.190476 | 0.461883 | 0.50924 | 0 | 0 | 0 | 0.166667 | 0.343612 | 0.268722 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
466cfc85b33947f233f1267002ff2b4d9e2b3812 | 212 | py | Python | _solved/solutions/case-trump-vote09.py | DuongVit/scipy2018-geospatial-data | 603b69be540bcc7a47b652173b41240df9862a0a | [
"BSD-3-Clause"
] | 333 | 2018-06-17T03:40:25.000Z | 2022-03-11T15:35:43.000Z | _solved/solutions/case-trump-vote09.py | DuongVit/scipy2018-geospatial-data | 603b69be540bcc7a47b652173b41240df9862a0a | [
"BSD-3-Clause"
] | 22 | 2018-06-15T23:19:27.000Z | 2020-03-23T11:08:55.000Z | _solved/solutions/case-trump-vote09.py | DuongVit/scipy2018-geospatial-data | 603b69be540bcc7a47b652173b41240df9862a0a | [
"BSD-3-Clause"
] | 197 | 2018-06-15T18:34:53.000Z | 2022-02-27T11:33:15.000Z | f = plt.figure(figsize=(6,6))
plt.scatter(pres.swing_full, lp.weights.lag_spatial(w, pres.swing_full))
plt.plot((-.3,.1),(-.3,.1), color='k')
plt.title('$I = {:.3f} \ \ (p < {:.3f})$'.format(moran.I,moran.p_sim)) | 53 | 72 | 0.617925 | 39 | 212 | 3.25641 | 0.666667 | 0.141732 | 0.204724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040609 | 0.070755 | 212 | 4 | 73 | 53 | 0.604061 | 0 | 0 | 0 | 0 | 0 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4671c2bf61391fb09fb7ef694e8f0a69c2e47eba | 670 | py | Python | server/utils/logger.py | dsalfran/flask-vue-template | 00bec85c0a66632e24c3db49567975c6d29540de | [
"MIT"
] | 1 | 2020-03-06T19:48:04.000Z | 2020-03-06T19:48:04.000Z | server/utils/logger.py | dsalfran/flask-vue-template | 00bec85c0a66632e24c3db49567975c6d29540de | [
"MIT"
] | 5 | 2020-06-08T15:57:47.000Z | 2022-02-27T00:47:58.000Z | server/utils/logger.py | dsalfran/flask-vue-template | 00bec85c0a66632e24c3db49567975c6d29540de | [
"MIT"
] | null | null | null | """This module abstracts logging configuration"""
# ---------------------------------------------
# System modules
# ---------------------------------------------
import logging
# ---------------------------------------------
# External dependencies
# ---------------------------------------------
# -------------------... | 30.454545 | 57 | 0.402985 | 37 | 670 | 7.162162 | 0.621622 | 0.120755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064179 | 670 | 21 | 58 | 31.904762 | 0.422648 | 0.629851 | 0 | 0 | 0 | 0 | 0.060086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
4686560084a145b3c7c2d80796910b9d08813e8d | 650 | py | Python | tests/plugins/test_vidio.py | hymer-up/streamlink | f09bf6e04cddc78eceb9ded655f716ef3ee4b84f | [
"BSD-2-Clause"
] | 5 | 2017-03-21T19:43:17.000Z | 2018-10-03T14:04:29.000Z | tests/plugins/test_vidio.py | hymer-up/streamlink | f09bf6e04cddc78eceb9ded655f716ef3ee4b84f | [
"BSD-2-Clause"
] | 7 | 2016-10-13T23:29:31.000Z | 2018-06-28T14:04:32.000Z | tests/plugins/test_vidio.py | bumplzz69/streamlink | 34abc43875d7663ebafa241573dece272e93d88b | [
"BSD-2-Clause"
] | 2 | 2016-11-24T18:37:33.000Z | 2017-03-21T19:43:49.000Z | import unittest
from streamlink.plugins.vidio import Vidio
class TestPluginVidio(unittest.TestCase):
def test_can_handle_url(self):
# should match
self.assertTrue(Vidio.can_handle_url('https://www.vidio.com/live/204-sctv-tv-stream'))
self.assertTrue(Vidio.can_handle_url('https://www.vidio... | 40.625 | 128 | 0.721538 | 92 | 650 | 4.956522 | 0.445652 | 0.118421 | 0.157895 | 0.186404 | 0.537281 | 0.537281 | 0.434211 | 0.434211 | 0.361842 | 0.361842 | 0 | 0.024779 | 0.130769 | 650 | 15 | 129 | 43.333333 | 0.782301 | 0.043077 | 0 | 0 | 0 | 0.111111 | 0.337641 | 0 | 0 | 0 | 0 | 0 | 0.555556 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4689c2d071a25a4a5162d88f9f7b3b803771726f | 130 | py | Python | Robofont-scripts/select/unsel Alternates.py | casasin/RobofontTools | c473b4346e66a14c4f490e4504c04f9384e1153f | [
"MIT"
] | 5 | 2015-05-21T14:25:40.000Z | 2019-11-16T22:41:00.000Z | Robofont-scripts/select/unsel Glyph with Extension.py | casasin/RobofontTools | c473b4346e66a14c4f490e4504c04f9384e1153f | [
"MIT"
] | null | null | null | Robofont-scripts/select/unsel Glyph with Extension.py | casasin/RobofontTools | c473b4346e66a14c4f490e4504c04f9384e1153f | [
"MIT"
] | null | null | null | # unselectGlyphsWithExtension.py
f = CurrentFont()
for gname in f.selection:
if '.' in gname:
f[gname].selected = 0
| 16.25 | 32 | 0.653846 | 16 | 130 | 5.3125 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0.230769 | 130 | 7 | 33 | 18.571429 | 0.84 | 0.230769 | 0 | 0 | 0 | 0 | 0.010204 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
468d4828614802e2c56c1470c8f00a538b8f67f9 | 439 | py | Python | cmsplugin_filer_utils/__init__.py | rescale/cmsplugin-filer | cd9e4cfbf937b59cad43401fe9440037f7e84f28 | [
"BSD-3-Clause"
] | null | null | null | cmsplugin_filer_utils/__init__.py | rescale/cmsplugin-filer | cd9e4cfbf937b59cad43401fe9440037f7e84f28 | [
"BSD-3-Clause"
] | null | null | null | cmsplugin_filer_utils/__init__.py | rescale/cmsplugin-filer | cd9e4cfbf937b59cad43401fe9440037f7e84f28 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from django.db import models
class FilerPluginManager(models.Manager):
def __init__(self, select_related=None):
self._select_related = select_related
super(FilerPluginManager, self).__init__()
def get_query_set(self):
qs = super(FilerPluginManager, self).get_qu... | 29.266667 | 60 | 0.681093 | 52 | 439 | 5.346154 | 0.461538 | 0.280576 | 0.244604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002907 | 0.216401 | 439 | 14 | 61 | 31.357143 | 0.805233 | 0.047836 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
46943e266d16f83ef787d86d3e638c00d1d01b17 | 2,034 | py | Python | pyfixit2/image.py | Dynnammo/pyfixit | d0b18819b43acb1dc6c1b515da83f1fe157c686c | [
"WTFPL"
] | 1 | 2019-08-21T12:27:36.000Z | 2019-08-21T12:27:36.000Z | pyfixit2/image.py | Dynnammo/pyfixit | d0b18819b43acb1dc6c1b515da83f1fe157c686c | [
"WTFPL"
] | null | null | null | pyfixit2/image.py | Dynnammo/pyfixit | d0b18819b43acb1dc6c1b515da83f1fe157c686c | [
"WTFPL"
] | 1 | 2019-12-08T20:30:28.000Z | 2019-12-08T20:30:28.000Z |
import requests
from .base import Base
from .constants import API_BASE_URL
class Image(Base):
'''An image that has been uploaded to the site.
:var int id: The id of this image. Ex: ``26674``.
:var int height: *(Lazy)* Height in pixels. Ex: ``1200``.
:var int width: *(Lazy)* Width in pixels. Ex: ``160... | 33.9 | 79 | 0.606195 | 271 | 2,034 | 4.476015 | 0.339483 | 0.032976 | 0.086562 | 0.098104 | 0.210223 | 0.094806 | 0 | 0 | 0 | 0 | 0 | 0.008856 | 0.278269 | 2,034 | 59 | 80 | 34.474576 | 0.817439 | 0.572763 | 0 | 0 | 0 | 0 | 0.057285 | 0 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.217391 | false | 0 | 0.130435 | 0.086957 | 0.565217 | 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 | 0 | 0 | 0 | 2 |
469518d8ca99179163d60303bf41572a02b8167f | 682 | py | Python | python-mip/mip_helper/mip_helper/models.py | woken-ml/python-base-docker-images | 00afb12cf41b1d70f3fd964c5761c5a52b5b3d88 | [
"Apache-2.0"
] | 5 | 2018-03-01T08:18:22.000Z | 2019-10-09T14:20:52.000Z | python-mip/mip_helper/mip_helper/models.py | woken-ml/python-base-docker-images | 00afb12cf41b1d70f3fd964c5761c5a52b5b3d88 | [
"Apache-2.0"
] | 13 | 2018-03-18T17:47:49.000Z | 2019-02-13T11:45:06.000Z | python-mip/mip_helper/mip_helper/models.py | woken-ml/python-base-docker-images | 00afb12cf41b1d70f3fd964c5761c5a52b5b3d88 | [
"Apache-2.0"
] | 3 | 2017-05-31T07:42:05.000Z | 2019-10-25T01:27:59.000Z | #!/usr/bin/env python3
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, String, DateTime
from sqlalchemy.sql import func
from sqlalchemy.dialects.postgresql import JSONB
Base = declarative_base()
class JobResult(Base):
__tablename__ = 'job_result'
job_id = Column(Stri... | 27.28 | 59 | 0.731672 | 86 | 682 | 5.651163 | 0.488372 | 0.222222 | 0.092593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029772 | 0.162757 | 682 | 24 | 60 | 28.416667 | 0.821366 | 0.030792 | 0 | 0 | 0 | 0 | 0.015152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.235294 | 0 | 0.941176 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
46952c8bffa6edd26ee106b4a601c41e2ff7c8d7 | 268 | py | Python | Tutorials/01. 10 Days of Statistics/002. Day 0 - Weighted Mean.py | Snehakri022/HackerrankPractice | 15c2da0bfb4bce744b345c4a3613ae9a769f2676 | [
"MIT"
] | 831 | 2018-05-12T19:06:09.000Z | 2022-03-31T19:33:54.000Z | Tutorials/01. 10 Days of Statistics/002. Day 0 - Weighted Mean.py | Snehakri022/HackerrankPractice | 15c2da0bfb4bce744b345c4a3613ae9a769f2676 | [
"MIT"
] | 2 | 2019-06-17T14:58:56.000Z | 2021-03-05T23:49:59.000Z | Tutorials/01. 10 Days of Statistics/002. Day 0 - Weighted Mean.py | Snehakri022/HackerrankPractice | 15c2da0bfb4bce744b345c4a3613ae9a769f2676 | [
"MIT"
] | 457 | 2018-06-11T07:01:57.000Z | 2022-03-28T11:08:34.000Z | # Problem: https://www.hackerrank.com/challenges/s10-weighted-mean/problem
# Score: 30
n = int(input())
arr = list(map(int, input().split()))
weights = list(map(int, input().split()))
print(round(sum([arr[x]*weights[x] for x in range(len(arr))]) / sum(weights), 1))
| 29.777778 | 81 | 0.66791 | 43 | 268 | 4.162791 | 0.651163 | 0.134078 | 0.111732 | 0.167598 | 0.223464 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020747 | 0.100746 | 268 | 8 | 82 | 33.5 | 0.721992 | 0.30597 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4695d2ccf582b6ff954038693f2be61713fb5128 | 2,069 | py | Python | recipe_tagger/foodcategory.py | TurconiAndrea/recipe-tagger | b5227a2a8a3575ac18b4c47e792353fba8841132 | [
"MIT"
] | 1 | 2021-12-27T17:34:47.000Z | 2021-12-27T17:34:47.000Z | recipe_tagger/foodcategory.py | TurconiAndrea/recipe-tagger | b5227a2a8a3575ac18b4c47e792353fba8841132 | [
"MIT"
] | null | null | null | recipe_tagger/foodcategory.py | TurconiAndrea/recipe-tagger | b5227a2a8a3575ac18b4c47e792353fba8841132 | [
"MIT"
] | null | null | null | """
Module containg all the necessary class for the package.
FoodCategory is a Enum class representing the category of ingredient.
CategorySynset is a class representing the wordnet synset of a category.
"""
from enum import Enum
from nltk.corpus import wordnet
class FoodCategory(Enum):
"""
Enum class used ... | 25.54321 | 72 | 0.637506 | 259 | 2,069 | 5.092664 | 0.320463 | 0.157695 | 0.148597 | 0.275967 | 0.389689 | 0.372252 | 0.372252 | 0 | 0 | 0 | 0 | 0.06254 | 0.242629 | 2,069 | 80 | 73 | 25.8625 | 0.779196 | 0.240213 | 0 | 0 | 0 | 0 | 0.290193 | 0.290193 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.040816 | 0 | 0.693878 | 0.020408 | 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 | 0 | 1 | 0 | 0 | 2 |
46972a73fb0a5e01523e03f32bed0dcde02554cf | 636 | py | Python | blog/models.py | abdukhashimov/django-rest-test-1 | d438be36a7892001e121e0fa3e6df504c23aeab0 | [
"MIT"
] | null | null | null | blog/models.py | abdukhashimov/django-rest-test-1 | d438be36a7892001e121e0fa3e6df504c23aeab0 | [
"MIT"
] | null | null | null | blog/models.py | abdukhashimov/django-rest-test-1 | d438be36a7892001e121e0fa3e6df504c23aeab0 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth import get_user_model
class Category(models.Model):
title = models.CharField(max_length=255)
def __str__(self):
if len(str(self.title)) > 20:
return self.title[:20]
return self.title
class Post(models.Model):
title = mode... | 26.5 | 74 | 0.663522 | 82 | 636 | 4.963415 | 0.402439 | 0.132678 | 0.108108 | 0.167076 | 0.511057 | 0.511057 | 0.511057 | 0.511057 | 0.299754 | 0.299754 | 0 | 0.028226 | 0.220126 | 636 | 23 | 75 | 27.652174 | 0.792339 | 0 | 0 | 0.470588 | 0 | 0 | 0.004717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.882353 | 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 | 0 | 1 | 0 | 0 | 2 |
469765462a7b28bf668f0b29cf186c599dd173dd | 335 | py | Python | Book/chap6/Supporting Materials/quadsolns.py | lorenghoh/pyman | 9b4ddd52c5577fc85e2601ae3128f398f0eb673c | [
"CC0-1.0"
] | 3 | 2020-04-30T19:50:11.000Z | 2020-10-17T02:07:00.000Z | Book/chap6/Supporting Materials/quadsolns.py | lorenghoh/pyman | 9b4ddd52c5577fc85e2601ae3128f398f0eb673c | [
"CC0-1.0"
] | 35 | 2020-04-21T04:25:31.000Z | 2021-11-06T22:49:44.000Z | Book/chap6/Supporting Materials/quadsolns.py | lorenghoh/pyman | 9b4ddd52c5577fc85e2601ae3128f398f0eb673c | [
"CC0-1.0"
] | 11 | 2020-04-21T04:33:48.000Z | 2020-10-23T21:12:12.000Z | a = float(raw_input("What is the coefficients a? "))
b = float(raw_input("What is the coefficients b? "))
c = float(raw_input("What is the coefficients c? "))
d = b*b - 4.*a*c
if d >= 0.0:
print("Solutions are real")
elif b == 0.0:
print("Solutions are imaginary")
else:
print("Solutions are complex")
pri... | 23.928571 | 52 | 0.647761 | 56 | 335 | 3.821429 | 0.410714 | 0.11215 | 0.182243 | 0.238318 | 0.654206 | 0.476636 | 0.476636 | 0 | 0 | 0 | 0 | 0.018315 | 0.185075 | 335 | 14 | 53 | 23.928571 | 0.765568 | 0 | 0 | 0 | 0 | 0 | 0.46131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.363636 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
46a251324b0e540256e0de589d985b10ccf3f4d5 | 51 | py | Python | python/benchmarks/comparison/__init__.py | tbvanderwoude/research-project | 1c5cb09a424a0db83f18dae3278ecb7ad6866d2c | [
"Apache-2.0",
"MIT"
] | null | null | null | python/benchmarks/comparison/__init__.py | tbvanderwoude/research-project | 1c5cb09a424a0db83f18dae3278ecb7ad6866d2c | [
"Apache-2.0",
"MIT"
] | null | null | null | python/benchmarks/comparison/__init__.py | tbvanderwoude/research-project | 1c5cb09a424a0db83f18dae3278ecb7ad6866d2c | [
"Apache-2.0",
"MIT"
] | null | null | null | __all__ = ["EPEAStar", "CBM", "AStarODID", "ICTS"]
| 25.5 | 50 | 0.607843 | 5 | 51 | 5.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 51 | 1 | 51 | 51 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0.470588 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
46a6623a8ddd42fd11a30d7ade6634159399939a | 1,884 | py | Python | propeller/paddle/data/feature_column.py | JZZ-NOTE/ERNIE | ff89c2a6baef9fd662a5b847224ca39e67d6ad11 | [
"Apache-2.0"
] | 3,712 | 2019-07-19T08:40:57.000Z | 2022-03-31T08:52:43.000Z | propeller/paddle/data/feature_column.py | JZZ-NOTE/ERNIE | ff89c2a6baef9fd662a5b847224ca39e67d6ad11 | [
"Apache-2.0"
] | 541 | 2019-07-21T08:57:11.000Z | 2022-03-22T12:13:28.000Z | propeller/paddle/data/feature_column.py | JZZ-NOTE/ERNIE | ff89c2a6baef9fd662a5b847224ca39e67d6ad11 | [
"Apache-2.0"
] | 857 | 2019-07-19T08:40:52.000Z | 2022-03-30T03:23:27.000Z | # Copyright (c) 2019 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... | 31.932203 | 126 | 0.707537 | 252 | 1,884 | 5.107143 | 0.511905 | 0.04662 | 0.037296 | 0.024864 | 0.107226 | 0.107226 | 0.049728 | 0 | 0 | 0 | 0 | 0.005424 | 0.217091 | 1,884 | 58 | 127 | 32.482759 | 0.867119 | 0.430998 | 0 | 0.137931 | 0 | 0 | 0.01382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.586207 | 0 | 0.758621 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
46a6a7637ef1e46f27bc4a05db0dddfb2d495768 | 1,002 | py | Python | backend_server/operations_test.py | rishavgiri6/News4U | d426eba97039a3d1afd90ecd14c454856b91f9d8 | [
"Unlicense"
] | 2 | 2021-08-02T09:41:42.000Z | 2021-08-10T05:26:52.000Z | backend_server/operations_test.py | rishavgiri6/News4U | d426eba97039a3d1afd90ecd14c454856b91f9d8 | [
"Unlicense"
] | null | null | null | backend_server/operations_test.py | rishavgiri6/News4U | d426eba97039a3d1afd90ecd14c454856b91f9d8 | [
"Unlicense"
] | null | null | null | import operations
def test_getOneNews_basic():
news = operations.getOneNews()
print(news)
assert news is not None
print('test_getOneNews_basic passed!')
def test_getNewsSummariesForUser_basic():
news = operations.getNewsSummariesForUser('test', 1)
assert len(news) > 0
print('test_getNewsSu... | 34.551724 | 72 | 0.759481 | 122 | 1,002 | 5.860656 | 0.286885 | 0.226573 | 0.07972 | 0.05035 | 0.206993 | 0.092308 | 0.092308 | 0.092308 | 0.092308 | 0 | 0 | 0.01524 | 0.148703 | 1,002 | 28 | 73 | 35.785714 | 0.822978 | 0.046906 | 0 | 0 | 0 | 0 | 0.157398 | 0.098636 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0.142857 | 0.047619 | 0 | 0.190476 | 0.190476 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
46aa44448e2130ff8a32352c01d4353b460c9459 | 838 | py | Python | corehq/apps/hqcase/management/commands/ptop_generate_mapping.py | SEL-Columbia/commcare-hq | 992ee34a679c37f063f86200e6df5a197d5e3ff6 | [
"BSD-3-Clause"
] | 1 | 2015-02-10T23:26:39.000Z | 2015-02-10T23:26:39.000Z | corehq/apps/hqcase/management/commands/ptop_generate_mapping.py | SEL-Columbia/commcare-hq | 992ee34a679c37f063f86200e6df5a197d5e3ff6 | [
"BSD-3-Clause"
] | null | null | null | corehq/apps/hqcase/management/commands/ptop_generate_mapping.py | SEL-Columbia/commcare-hq | 992ee34a679c37f063f86200e6df5a197d5e3ff6 | [
"BSD-3-Clause"
] | null | null | null | from django.core.management.base import NoArgsCommand, BaseCommand
import sys
from dimagi.utils.modules import to_function
class MappingOutputCommand(BaseCommand):
help="Generate mapping JSON of our ES indexed types. Generic"
option_list = NoArgsCommand.option_list + (
)
doc_class_str = None
d... | 29.928571 | 75 | 0.643198 | 112 | 838 | 4.678571 | 0.544643 | 0.10687 | 0.091603 | 0.057252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008143 | 0.267303 | 838 | 27 | 76 | 31.037037 | 0.845277 | 0.073986 | 0 | 0 | 1 | 0 | 0.115285 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157895 | null | null | 0.052632 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d3b51cab9d06dfc73bac6c37f6f9024091020dcb | 348 | py | Python | greydot/runtest.py | TralahM/greydot-api | 34982c34bf878b2728e934147ca4ea38a78523e4 | [
"MIT"
] | null | null | null | greydot/runtest.py | TralahM/greydot-api | 34982c34bf878b2728e934147ca4ea38a78523e4 | [
"MIT"
] | null | null | null | greydot/runtest.py | TralahM/greydot-api | 34982c34bf878b2728e934147ca4ea38a78523e4 | [
"MIT"
] | null | null | null | import tests
def run():
print("Testing airtime...")
tests.test_airtime()
print("Testing b2c...")
tests.test_b2c()
print("Testing wallet...")
tests.test_wallet()
print("Testing signup...")
tests.test_signup()
print("Testing sms...")
tests.test_sms()
print("DONE")
if __name... | 17.4 | 31 | 0.594828 | 40 | 348 | 4.85 | 0.4 | 0.309278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00738 | 0.221264 | 348 | 19 | 32 | 18.315789 | 0.708487 | 0 | 0 | 0 | 0 | 0 | 0.264368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | true | 0 | 0.066667 | 0 | 0.133333 | 0.4 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d3ba47ccfbc6c0360afdfcfb198970eb94b414df | 6,601 | py | Python | darling_ansible/python_venv/lib/python3.7/site-packages/oci/os_management/models/installable_package_summary.py | revnav/sandbox | f9c8422233d093b76821686b6c249417502cf61d | [
"Apache-2.0"
] | null | null | null | darling_ansible/python_venv/lib/python3.7/site-packages/oci/os_management/models/installable_package_summary.py | revnav/sandbox | f9c8422233d093b76821686b6c249417502cf61d | [
"Apache-2.0"
] | null | null | null | darling_ansible/python_venv/lib/python3.7/site-packages/oci/os_management/models/installable_package_summary.py | revnav/sandbox | f9c8422233d093b76821686b6c249417502cf61d | [
"Apache-2.0"
] | 1 | 2020-06-25T03:12:58.000Z | 2020-06-25T03:12:58.000Z | # coding: utf-8
# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 29.207965 | 245 | 0.634752 | 697 | 6,601 | 5.870875 | 0.186514 | 0.045455 | 0.227273 | 0.119746 | 0.546188 | 0.417889 | 0.31305 | 0.242424 | 0.18915 | 0.133431 | 0 | 0.003866 | 0.294652 | 6,601 | 225 | 246 | 29.337778 | 0.875 | 0.528102 | 0 | 0.084507 | 0 | 0 | 0.08489 | 0.009338 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225352 | false | 0 | 0.028169 | 0.028169 | 0.408451 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d3c1466a5b16aa396a7a1626545f7b8b035076b7 | 8,690 | py | Python | pgoapi/protos/pogoprotos/data/battle/battle_action_pb2.py | z3cr3t/api | 960c0c10a76e1f46e99de7f8de8644b00cf95d0d | [
"MIT"
] | null | null | null | pgoapi/protos/pogoprotos/data/battle/battle_action_pb2.py | z3cr3t/api | 960c0c10a76e1f46e99de7f8de8644b00cf95d0d | [
"MIT"
] | null | null | null | pgoapi/protos/pogoprotos/data/battle/battle_action_pb2.py | z3cr3t/api | 960c0c10a76e1f46e99de7f8de8644b00cf95d0d | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pogoprotos/data/battle/battle_action.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.... | 53.641975 | 1,105 | 0.763061 | 1,175 | 8,690 | 5.302979 | 0.145532 | 0.051356 | 0.096293 | 0.057776 | 0.676135 | 0.629915 | 0.565078 | 0.508907 | 0.47681 | 0.447761 | 0 | 0.041458 | 0.128423 | 8,690 | 161 | 1,106 | 53.975155 | 0.781225 | 0.029229 | 0 | 0.5 | 1 | 0.007042 | 0.239932 | 0.20849 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.06338 | 0 | 0.06338 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d3d134d90f334e2d6c04f1ab6a5b7792c4af3943 | 1,228 | py | Python | list_1/common_end.py | nhutnamhcmus/coding-bat-solutions | 5f780a4027a6c3523a72961db1bad547c997fdc6 | [
"MIT"
] | 1 | 2020-09-19T18:02:13.000Z | 2020-09-19T18:02:13.000Z | list_1/common_end.py | nhutnamhcmus/coding-bat-solutions | 5f780a4027a6c3523a72961db1bad547c997fdc6 | [
"MIT"
] | null | null | null | list_1/common_end.py | nhutnamhcmus/coding-bat-solutions | 5f780a4027a6c3523a72961db1bad547c997fdc6 | [
"MIT"
] | null | null | null | # =======================================================================================================================================
# VNU-HCM, University of Science
# Department Computer Science, Faculty of Information Technology
# Authors: Nhut-Nam Le (Tich Phan Suy Rong)
# © 2020
import unittest
"""
Given 2 a... | 29.238095 | 154 | 0.557818 | 188 | 1,228 | 3.521277 | 0.367021 | 0.122357 | 0.120846 | 0.132931 | 0.356495 | 0.311178 | 0.311178 | 0.267372 | 0.196375 | 0.099698 | 0 | 0.06 | 0.185668 | 1,228 | 41 | 155 | 29.95122 | 0.598 | 0.226384 | 0 | 0 | 0 | 0 | 0.01203 | 0 | 0 | 0 | 0 | 0 | 0.3125 | 1 | 0.375 | false | 0 | 0.0625 | 0.0625 | 0.5625 | 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 | 0 | 1 | 0 | 0 | 2 |
d3d878d702bcf7bcfd8acd07db854f4a75346a71 | 4,335 | py | Python | env/lib/python3.8/site-packages/arcade/csscolor/__init__.py | iodaniel/cse210-project | abc7a4e64d35707d04900f8535961fc57ed8f4e1 | [
"MIT"
] | 1 | 2021-07-11T02:51:52.000Z | 2021-07-11T02:51:52.000Z | env/lib/python3.8/site-packages/arcade/csscolor/__init__.py | iodaniel/cse210-project | abc7a4e64d35707d04900f8535961fc57ed8f4e1 | [
"MIT"
] | null | null | null | env/lib/python3.8/site-packages/arcade/csscolor/__init__.py | iodaniel/cse210-project | abc7a4e64d35707d04900f8535961fc57ed8f4e1 | [
"MIT"
] | null | null | null | """
This module pre-defines colors as defined by the W3C CSS standard:
https://www.w3.org/TR/2018/PR-css-color-3-20180315/
"""
ALICE_BLUE = (240, 248, 255)
ANTIQUE_WHITE = (250, 235, 215)
AQUA = (0, 255, 255)
AQUAMARINE = (127, 255, 212)
AZURE = (240, 255, 255)
BEIGE = (245, 245, 220)
BISQUE = (255, 228, 19... | 28.333333 | 67 | 0.617993 | 714 | 4,335 | 3.606443 | 0.359944 | 0.020971 | 0.00699 | 0.010097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.346243 | 0.207843 | 4,335 | 152 | 68 | 28.519737 | 0.403611 | 0.02722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d3e09bb779bbf2e537d4d07524acb538a4e20b56 | 636 | py | Python | Lib/site-packages/easyprocess/examples/cmd.py | caiyongji/tf2.3.1-py3.7.9-full-built | ace4efcbf05b2b494388739718a18c13eab83c71 | [
"CNRI-Python-GPL-Compatible"
] | 1 | 2021-06-07T17:07:58.000Z | 2021-06-07T17:07:58.000Z | Lib/site-packages/easyprocess/examples/cmd.py | caiyongji/tf2.3.1-py3.7.9-full-built | ace4efcbf05b2b494388739718a18c13eab83c71 | [
"CNRI-Python-GPL-Compatible"
] | null | null | null | Lib/site-packages/easyprocess/examples/cmd.py | caiyongji/tf2.3.1-py3.7.9-full-built | ace4efcbf05b2b494388739718a18c13eab83c71 | [
"CNRI-Python-GPL-Compatible"
] | 1 | 2022-03-31T06:46:19.000Z | 2022-03-31T06:46:19.000Z | import sys
from easyprocess import EasyProcess
python = sys.executable
print("-- Run program, wait for it to complete, get stdout:")
s = EasyProcess([python, "-c", "print(3)"]).call().stdout
print(s)
print("-- Run program, wait for it to complete, get stderr:")
s = EasyProcess([python, "-c", "import sys;sys.stderr.... | 28.909091 | 84 | 0.680818 | 95 | 636 | 4.547368 | 0.357895 | 0.157407 | 0.138889 | 0.175926 | 0.342593 | 0.342593 | 0.284722 | 0.284722 | 0.284722 | 0.199074 | 0 | 0.007181 | 0.124214 | 636 | 21 | 85 | 30.285714 | 0.768402 | 0 | 0 | 0.266667 | 0 | 0 | 0.441824 | 0.044025 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.6 | 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 | 0 | 0 | 1 | 0 | 2 |
d3f0263c1029fc8074ff0ba2ade5f3885f319e79 | 478 | py | Python | frappe-bench/apps/erpnext/erpnext/patches/v7_1/save_stock_settings.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | 1 | 2021-04-29T14:55:29.000Z | 2021-04-29T14:55:29.000Z | frappe-bench/apps/erpnext/erpnext/patches/v7_1/save_stock_settings.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | null | null | null | frappe-bench/apps/erpnext/erpnext/patches/v7_1/save_stock_settings.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | 1 | 2021-04-29T14:39:01.000Z | 2021-04-29T14:39:01.000Z | from __future__ import unicode_literals
import frappe
def execute():
stock_settings = frappe.get_doc('Stock Settings')
if stock_settings.default_warehouse \
and not frappe.db.exists("Warehouse", stock_settings.default_warehouse):
stock_settings.default_warehouse = None
if stock_settings.stock_uom and not... | 29.875 | 87 | 0.797071 | 65 | 478 | 5.523077 | 0.4 | 0.362117 | 0.167131 | 0.24234 | 0.423398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119247 | 478 | 15 | 88 | 31.866667 | 0.852732 | 0 | 0 | 0 | 0 | 0 | 0.054393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d3f6428fa096b6d7b677fce82fdf4af97411d396 | 1,194 | py | Python | moozy_admin/models.py | meetthecoder/moozy | e21dab01f2aab4c5a4b2c4151f8408138cf681a5 | [
"MIT"
] | null | null | null | moozy_admin/models.py | meetthecoder/moozy | e21dab01f2aab4c5a4b2c4151f8408138cf681a5 | [
"MIT"
] | null | null | null | moozy_admin/models.py | meetthecoder/moozy | e21dab01f2aab4c5a4b2c4151f8408138cf681a5 | [
"MIT"
] | null | null | null | from django.db import models
from user.models import RestaurantUser
class FoodCategory(models.Model):
"""Admin Food Category"""
name = models.CharField(max_length=50, verbose_name='Name')
image = models.ImageField(upload_to="media/food_category/", verbose_name='Image')
def __str__(self):
retu... | 30.615385 | 119 | 0.68928 | 147 | 1,194 | 5.360544 | 0.333333 | 0.111675 | 0.091371 | 0.121827 | 0.496193 | 0.463198 | 0.40736 | 0.364213 | 0.364213 | 0.200508 | 0 | 0.009091 | 0.170854 | 1,194 | 38 | 120 | 31.421053 | 0.786869 | 0.041039 | 0 | 0.333333 | 0 | 0 | 0.114463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.083333 | 0.125 | 0.833333 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
d3f7920f049abb12f76555efe08c640adcfd2dc8 | 2,555 | py | Python | arpwatch/tests.py | manens/nadine | 4938afa2d2c69ae5ac54f4360b081d10521a0a2f | [
"Apache-2.0"
] | null | null | null | arpwatch/tests.py | manens/nadine | 4938afa2d2c69ae5ac54f4360b081d10521a0a2f | [
"Apache-2.0"
] | null | null | null | arpwatch/tests.py | manens/nadine | 4938afa2d2c69ae5ac54f4360b081d10521a0a2f | [
"Apache-2.0"
] | null | null | null | import json
import traceback
from datetime import datetime, timedelta, date
from django.test import TestCase
from django.core import management
from django.contrib.auth.models import User
from django.conf import settings
from django.db import IntegrityError
from django.utils.timezone import localtime, now
from . impo... | 44.051724 | 583 | 0.710763 | 362 | 2,555 | 4.903315 | 0.439227 | 0.040563 | 0.013521 | 0.040563 | 0.157746 | 0.124507 | 0.083944 | 0.083944 | 0.057465 | 0.057465 | 0 | 0.021941 | 0.19726 | 2,555 | 57 | 584 | 44.824561 | 0.843491 | 0.27593 | 0 | 0.146341 | 0 | 0 | 0.042818 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 1 | 0.097561 | false | 0 | 0.463415 | 0 | 0.585366 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d3fed7ed81beeaa3a86c2d0c1c23666a6ddc070f | 1,418 | py | Python | fedot/core/utilities/grouped_condition.py | vishalbelsare/FEDOT | 3a6f06b29cf2f173008d119f7cb5dc705a45f695 | [
"BSD-3-Clause"
] | null | null | null | fedot/core/utilities/grouped_condition.py | vishalbelsare/FEDOT | 3a6f06b29cf2f173008d119f7cb5dc705a45f695 | [
"BSD-3-Clause"
] | null | null | null | fedot/core/utilities/grouped_condition.py | vishalbelsare/FEDOT | 3a6f06b29cf2f173008d119f7cb5dc705a45f695 | [
"BSD-3-Clause"
] | null | null | null | from typing import Optional, List, Callable, Tuple, Iterable
from fedot.core.log import default_log, Log
ConditionType = Callable[[], bool]
ConditionEntryType = Tuple[ConditionType, Optional[str]]
class GroupedCondition:
"""Represents sequence of ordinary conditions with logging.
All composed conditions are... | 36.358974 | 107 | 0.692525 | 174 | 1,418 | 5.448276 | 0.448276 | 0.018987 | 0.021097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217207 | 1,418 | 38 | 108 | 37.315789 | 0.854054 | 0.266573 | 0 | 0 | 0 | 0 | 0.015795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.090909 | 0.090909 | 0.545455 | 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 | 0 | 1 | 0 | 0 | 2 |
31051398c9d6c13d69a8a95ba8cbe1cfc6ef0869 | 393 | py | Python | pointers/pointers.py | lootek/govspy | 0f8a6d01115965581533340ede96f6f1439fc5b3 | [
"CNRI-Python"
] | 106 | 2015-02-16T09:09:37.000Z | 2022-03-16T14:34:29.000Z | pointers/pointers.py | lootek/govspy | 0f8a6d01115965581533340ede96f6f1439fc5b3 | [
"CNRI-Python"
] | 13 | 2017-02-20T01:34:45.000Z | 2022-03-11T10:48:58.000Z | pointers/pointers.py | lootek/govspy | 0f8a6d01115965581533340ede96f6f1439fc5b3 | [
"CNRI-Python"
] | 13 | 2016-02-25T01:24:24.000Z | 2020-11-10T01:27:56.000Z | # There is no equivalent to pointers in python
def upit(str):
return str.upper()
def uplist(mylist):
for i in range(len(mylist)):
mylist[i] = mylist[i].upper()
name = "peter"
upit(name)
print name # peter
name = upit(name)
print name # PETER
# but you can do a useless cheat and make it mutable
na... | 17.863636 | 52 | 0.664122 | 63 | 393 | 4.142857 | 0.555556 | 0.137931 | 0.149425 | 0.206897 | 0.168582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21374 | 393 | 21 | 53 | 18.714286 | 0.84466 | 0.287532 | 0 | 0.214286 | 0 | 0 | 0.036496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.214286 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
310e667de61bbe3cf0a6de6c2bc197d46ec22650 | 10,244 | py | Python | datahub/oauth/admin/test/test_views.py | uktrade/data-hub-api-actions-test | a72439dfeb34e4179491db42fea290b9c2afadb1 | [
"MIT"
] | null | null | null | datahub/oauth/admin/test/test_views.py | uktrade/data-hub-api-actions-test | a72439dfeb34e4179491db42fea290b9c2afadb1 | [
"MIT"
] | 16 | 2020-04-01T15:25:35.000Z | 2020-04-14T14:07:30.000Z | datahub/oauth/admin/test/test_views.py | uktrade/data-hub-api-actions-test | a72439dfeb34e4179491db42fea290b9c2afadb1 | [
"MIT"
] | null | null | null | from secrets import token_urlsafe
from unittest.mock import patch
from urllib.parse import urlencode, urljoin
import pytest
from django.conf import settings
from django.urls import reverse
from rest_framework import status
from datahub.company.test.factories import AdviserFactory
from datahub.oauth.admin.test.utils i... | 36.716846 | 97 | 0.749121 | 1,371 | 10,244 | 5.280817 | 0.121809 | 0.037983 | 0.028867 | 0.035221 | 0.778315 | 0.729834 | 0.708011 | 0.679696 | 0.622928 | 0.575414 | 0 | 0.00855 | 0.143694 | 10,244 | 278 | 98 | 36.848921 | 0.816803 | 0.092347 | 0 | 0.526596 | 0 | 0 | 0.217656 | 0.116438 | 0 | 0 | 0 | 0 | 0.196809 | 1 | 0.069149 | false | 0 | 0.053191 | 0 | 0.12234 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3114c95298775d8514f82e0e3ad111b6b19976c1 | 1,770 | py | Python | to_functions/inline_functions.py | pedrovdsc/romervaldo | f767570ab9fa9e9a0eddbcff104dfc765908f5d9 | [
"MIT"
] | 3 | 2020-06-23T00:10:35.000Z | 2020-08-03T19:09:44.000Z | to_functions/inline_functions.py | pedrovdsc/romervaldo | f767570ab9fa9e9a0eddbcff104dfc765908f5d9 | [
"MIT"
] | 13 | 2020-06-23T00:43:47.000Z | 2020-08-12T02:03:59.000Z | to_functions/inline_functions.py | pedrovdsc/romervaldo | f767570ab9fa9e9a0eddbcff104dfc765908f5d9 | [
"MIT"
] | null | null | null | import telegram
from telegram import InlineQueryResultArticle, InputTextMessageContent
from telegram.ext import InlineQueryHandler
from googletrans import Translator
translator = Translator()
def inline_to_language(update, context):
query = update.inline_query.query
if not query:
return
results = ... | 31.607143 | 102 | 0.641808 | 147 | 1,770 | 7.605442 | 0.29932 | 0.069767 | 0.198569 | 0.209302 | 0.567979 | 0.375671 | 0.375671 | 0.375671 | 0 | 0 | 0 | 0 | 0.263842 | 1,770 | 55 | 103 | 32.181818 | 0.85802 | 0 | 0 | 0.226415 | 0 | 0 | 0.057627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.075472 | 0 | 0.113208 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
312333692b65940f044dfbebd837a3431811debb | 305 | py | Python | src/textbook/rosalind_ba9g.py | cowboysmall/rosalind | 021e4392a8fc946b97bbf86bbb8227b28bb5e462 | [
"MIT"
] | null | null | null | src/textbook/rosalind_ba9g.py | cowboysmall/rosalind | 021e4392a8fc946b97bbf86bbb8227b28bb5e462 | [
"MIT"
] | null | null | null | src/textbook/rosalind_ba9g.py | cowboysmall/rosalind | 021e4392a8fc946b97bbf86bbb8227b28bb5e462 | [
"MIT"
] | null | null | null | import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '../tools'))
import files
import arrays
def main(argv):
text = files.read_line(argv[0])
sa = arrays.suffix_array(text)
print ', '.join(str(v[0]) for v in sa)
if __name__ == "__main__":
main(sys.argv[1:])
| 16.944444 | 68 | 0.652459 | 49 | 305 | 3.77551 | 0.591837 | 0.064865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011952 | 0.177049 | 305 | 17 | 69 | 17.941176 | 0.7251 | 0 | 0 | 0 | 0 | 0 | 0.059016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.363636 | null | null | 0.090909 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
312862c0d55bef6b9e39735f25e9b04d706ee117 | 340 | py | Python | onnx_verify.py | thaint2901/deep_sort_pytorch | 547215c8456f02238c520f88e08ae08b004a9194 | [
"MIT"
] | null | null | null | onnx_verify.py | thaint2901/deep_sort_pytorch | 547215c8456f02238c520f88e08ae08b004a9194 | [
"MIT"
] | null | null | null | onnx_verify.py | thaint2901/deep_sort_pytorch | 547215c8456f02238c520f88e08ae08b004a9194 | [
"MIT"
] | 1 | 2021-12-17T09:11:46.000Z | 2021-12-17T09:11:46.000Z | import onnxruntime as rt
sess = rt.InferenceSession("pretrained/original_ckpt.onnx")
print("====INPUT====")
for i in sess.get_inputs():
print("Name: {}, Shape: {}, Dtype: {}".format(i.name, i.shape, i.type))
print("====OUTPUT====")
for i in sess.get_outputs():
print("Name: {}, Shape: {}, Dtype: {}".format(i.nam... | 42.5 | 75 | 0.629412 | 49 | 340 | 4.306122 | 0.489796 | 0.037915 | 0.056872 | 0.094787 | 0.511848 | 0.388626 | 0.388626 | 0.388626 | 0.388626 | 0.388626 | 0 | 0 | 0.117647 | 340 | 8 | 76 | 42.5 | 0.703333 | 0 | 0 | 0.25 | 0 | 0 | 0.340176 | 0.085044 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
31327d86717a95195a24172db1cef745eb5f5905 | 853 | py | Python | phonebook/admin.py | ROLOBOOK/PhoneBookAPI | 70536248b5a76c21ac3e21f620a572f42a7996dc | [
"MIT"
] | null | null | null | phonebook/admin.py | ROLOBOOK/PhoneBookAPI | 70536248b5a76c21ac3e21f620a572f42a7996dc | [
"MIT"
] | null | null | null | phonebook/admin.py | ROLOBOOK/PhoneBookAPI | 70536248b5a76c21ac3e21f620a572f42a7996dc | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import PhoneNumber, Employee, Organization
class PhoneNumberAdmin(admin.ModelAdmin):
list_display = ('phone_number', 'phone_type', 'employee',)
admin.site.register(PhoneNumber, PhoneNumberAdmin)
class EmployeeAdmin(admin.ModelAdmin):
list_display = ('full_name... | 28.433333 | 92 | 0.751465 | 98 | 853 | 6.357143 | 0.387755 | 0.088283 | 0.091493 | 0.125201 | 0.064205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127784 | 853 | 29 | 93 | 29.413793 | 0.837366 | 0 | 0 | 0 | 0 | 0 | 0.153576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0.133333 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
314cf90ea2b6d93acde98ecd19dc3b3f52660600 | 371 | py | Python | problems/problem-0097/problem_0097.py | bkaid/project-euler | d3d91086ff109e2737237a8ecf32cfbef58949ca | [
"MIT"
] | null | null | null | problems/problem-0097/problem_0097.py | bkaid/project-euler | d3d91086ff109e2737237a8ecf32cfbef58949ca | [
"MIT"
] | null | null | null | problems/problem-0097/problem_0097.py | bkaid/project-euler | d3d91086ff109e2737237a8ecf32cfbef58949ca | [
"MIT"
] | null | null | null | import time
import math
def project_euler_97():
return (28433 * pow(2, 7830457) + 1) % 10**10
if __name__ == '__main__':
print('Project Euler #97')
print('Find the last ten digits of 28433×2^7830457 + 1.')
START_TIME = time.time()
print('Result: {}'.format(project_euler_97()))
print('Elapsed t... | 28.538462 | 70 | 0.652291 | 54 | 371 | 4.240741 | 0.555556 | 0.157205 | 0.183406 | 0.165939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125413 | 0.183288 | 371 | 12 | 71 | 30.916667 | 0.627063 | 0 | 0 | 0 | 0 | 0 | 0.28841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0.1 | 0.4 | 0.4 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
31543e140eaa36083065fff266c3ed75465d19ee | 1,949 | py | Python | tests/test_api_votes.py | jacebrowning/crowdsorter | 1c847f1f0284fc810ec1f2dd501acb4dbfa16bbb | [
"MIT"
] | 2 | 2020-05-09T23:46:23.000Z | 2021-03-23T18:40:26.000Z | tests/test_api_votes.py | jacebrowning/crowdsorter | 1c847f1f0284fc810ec1f2dd501acb4dbfa16bbb | [
"MIT"
] | 1 | 2020-10-18T17:15:49.000Z | 2020-11-11T18:25:05.000Z | tests/test_api_votes.py | jacebrowning/crowdsorter | 1c847f1f0284fc810ec1f2dd501acb4dbfa16bbb | [
"MIT"
] | 1 | 2021-03-23T18:41:16.000Z | 2021-03-23T18:41:16.000Z | # pylint: disable=unused-variable,unused-argument,expression-not-assigned,singleton-comparison
import pytest
from expecter import expect
from .utils import load
def describe_votes():
@pytest.fixture
def url():
return "/api/collections/_c/votes/"
def describe_GET():
def it_returns_a_pr... | 29.984615 | 94 | 0.574654 | 209 | 1,949 | 5.220096 | 0.344498 | 0.049496 | 0.093492 | 0.126489 | 0.514207 | 0.462878 | 0.413382 | 0.318973 | 0.238313 | 0.238313 | 0 | 0.014535 | 0.293997 | 1,949 | 64 | 95 | 30.453125 | 0.778343 | 0.057978 | 0 | 0.357143 | 0 | 0 | 0.158211 | 0.048009 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0.261905 | false | 0 | 0.071429 | 0.02381 | 0.357143 | 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 | 0 | 0 | 0 | 2 |
315a8fb72ed591df83c6f13b8b856c5cb31b17c5 | 10,520 | py | Python | ansys/mapdl/core/_commands/solution/solid_surface_loads.py | JourneyG/pymapdl | 23fdc008c151c0546504e4ef8257a64f5f169100 | [
"MIT"
] | 1 | 2021-07-28T00:42:53.000Z | 2021-07-28T00:42:53.000Z | ansys/mapdl/core/_commands/solution/solid_surface_loads.py | JourneyG/pymapdl | 23fdc008c151c0546504e4ef8257a64f5f169100 | [
"MIT"
] | null | null | null | ansys/mapdl/core/_commands/solution/solid_surface_loads.py | JourneyG/pymapdl | 23fdc008c151c0546504e4ef8257a64f5f169100 | [
"MIT"
] | null | null | null | class SolidSurfaceLoads:
def sfa(self, area="", lkey="", lab="", value="", value2="", **kwargs):
"""Specifies surface loads on the selected areas.
APDL Command: SFA
Parameters
----------
area
Area to which surface load applies. If ALL, apply load to all
... | 39.848485 | 90 | 0.603802 | 1,359 | 10,520 | 4.674025 | 0.18543 | 0.036367 | 0.014326 | 0.02204 | 0.607053 | 0.530699 | 0.462689 | 0.400504 | 0.354219 | 0.312185 | 0 | 0.008007 | 0.323289 | 10,520 | 263 | 91 | 40 | 0.884253 | 0.75038 | 0 | 0.304348 | 0 | 0 | 0.15748 | 0.098863 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304348 | false | 0 | 0 | 0 | 0.652174 | 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 | 0 | 1 | 0 | 0 | 2 |
315db34bc3557f995f2d3c7d8c414923e32eaade | 1,196 | py | Python | rlp/exceptions.py | vaporyco/pyrlp | bdef65842a310d610e277096b403d284999ecbaa | [
"MIT"
] | null | null | null | rlp/exceptions.py | vaporyco/pyrlp | bdef65842a310d610e277096b403d284999ecbaa | [
"MIT"
] | null | null | null | rlp/exceptions.py | vaporyco/pyrlp | bdef65842a310d610e277096b403d284999ecbaa | [
"MIT"
] | null | null | null | class RLPException(Exception):
"""Base class for exceptions raised by this package."""
pass
class EncodingError(RLPException):
"""Exception raised if encoding fails.
:ivar obj: the object that could not be encoded
"""
def __init__(self, message, obj):
super(EncodingError, self).__ini... | 24.916667 | 71 | 0.682274 | 135 | 1,196 | 5.807407 | 0.303704 | 0.133929 | 0.137755 | 0.147959 | 0.290816 | 0.290816 | 0.165816 | 0.089286 | 0.089286 | 0 | 0 | 0 | 0.225753 | 1,196 | 47 | 72 | 25.446809 | 0.846652 | 0.35786 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.055556 | 0 | 0 | 0.5 | 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 | 0 | 0 | 0 | 2 |
3161f190c7747d0dc726464f9d4fdd9af62d395e | 2,505 | py | Python | boids/test/test_flight.py | CDTjamie/The_Boids | 4380d1b883ea4d0d6b8ddb4f18c65fed66c26173 | [
"MIT"
] | null | null | null | boids/test/test_flight.py | CDTjamie/The_Boids | 4380d1b883ea4d0d6b8ddb4f18c65fed66c26173 | [
"MIT"
] | null | null | null | boids/test/test_flight.py | CDTjamie/The_Boids | 4380d1b883ea4d0d6b8ddb4f18c65fed66c26173 | [
"MIT"
] | null | null | null |
from nose.tools import assert_raises, assert_equal
from boids.flock import Flock
from boids.flight import Flight
import yaml
import os
def test_init():
_ROOT = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(_ROOT,'config_correct.yaml')) as config_file:
config = yaml.load(config_file... | 45.545455 | 172 | 0.74012 | 333 | 2,505 | 5.177177 | 0.162162 | 0.081207 | 0.073086 | 0.066705 | 0.803944 | 0.737819 | 0.655452 | 0.655452 | 0.655452 | 0.562645 | 0 | 0.008958 | 0.153293 | 2,505 | 55 | 173 | 45.545455 | 0.803866 | 0 | 0 | 0.533333 | 0 | 0 | 0.13014 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.044444 | false | 0 | 0.111111 | 0 | 0.155556 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
316a3c041ba006c4b4566cc6e71d05b1fa960d92 | 6,747 | py | Python | src/the_tale/the_tale/game/heroes/preferences.py | SilentWrangler/the-tale | a121128edd2a9e36133eb047946ccb9593801ea6 | [
"BSD-3-Clause"
] | null | null | null | src/the_tale/the_tale/game/heroes/preferences.py | SilentWrangler/the-tale | a121128edd2a9e36133eb047946ccb9593801ea6 | [
"BSD-3-Clause"
] | null | null | null | src/the_tale/the_tale/game/heroes/preferences.py | SilentWrangler/the-tale | a121128edd2a9e36133eb047946ccb9593801ea6 | [
"BSD-3-Clause"
] | null | null | null |
import smart_imports
smart_imports.all()
class _PreferencesMetaclass(type):
@classmethod
def create_preference_getter(cls, preference):
def getter(self):
return self._get(preference)
getter.__name__ = preference.base_name
return getter
def __new__(mcs, name, bases... | 33.40099 | 137 | 0.683118 | 862 | 6,747 | 5.029002 | 0.155452 | 0.029988 | 0.016609 | 0.030681 | 0.371857 | 0.303345 | 0.277509 | 0.248443 | 0.229066 | 0.16955 | 0 | 0.001552 | 0.236253 | 6,747 | 201 | 138 | 33.567164 | 0.839705 | 0.001038 | 0 | 0.18705 | 0 | 0 | 0.0095 | 0.003562 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208633 | false | 0 | 0.014388 | 0.086331 | 0.539568 | 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 | 0 | 1 | 0 | 0 | 2 |
317b892e652bfd10802a162a31ad10f57e84242c | 1,561 | py | Python | setup.py | aicenter/roadmap-processing | 4cd42efe48fa43459d9302c9722ac166a6da7387 | [
"MIT"
] | 14 | 2017-08-21T09:22:22.000Z | 2021-03-13T07:05:41.000Z | setup.py | aicenter/roadmap-processing | 4cd42efe48fa43459d9302c9722ac166a6da7387 | [
"MIT"
] | 16 | 2017-08-21T11:17:42.000Z | 2019-10-01T15:03:22.000Z | setup.py | aicenter/roadmap-processing | 4cd42efe48fa43459d9302c9722ac166a6da7387 | [
"MIT"
] | 6 | 2017-08-21T09:28:21.000Z | 2020-07-13T16:02:22.000Z | #
# Copyright (c) 2021 Czech Technical University in Prague.
#
# This file is part of Roadmaptools
# (see https://github.com/aicenter/roadmap-processing).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free So... | 41.078947 | 118 | 0.713645 | 215 | 1,561 | 5.153488 | 0.64186 | 0.029783 | 0.032491 | 0.051444 | 0.16065 | 0.16065 | 0.061372 | 0 | 0 | 0 | 0 | 0.008507 | 0.171685 | 1,561 | 37 | 119 | 42.189189 | 0.848415 | 0.540038 | 0 | 0 | 0 | 0 | 0.428981 | 0.077475 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.0625 | 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 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
317cb3676880a8702fc2ab7b98aff25c16a4d4dd | 785 | py | Python | solutions/python/80.remove-duplicates-from-sorted-array-ii.py | znculee/leetcode | 56420e28806c6cedc84fb0e65a6522a52af90672 | [
"CC0-1.0"
] | 1 | 2020-10-16T01:38:28.000Z | 2020-10-16T01:38:28.000Z | solutions/python/80.remove-duplicates-from-sorted-array-ii.py | znculee/leetcode | 56420e28806c6cedc84fb0e65a6522a52af90672 | [
"CC0-1.0"
] | null | null | null | solutions/python/80.remove-duplicates-from-sorted-array-ii.py | znculee/leetcode | 56420e28806c6cedc84fb0e65a6522a52af90672 | [
"CC0-1.0"
] | null | null | null | # 80. Remove Duplicates from Sorted Array II
from typing import List
class Solution:
def removeDuplicates(self, nums: List[int]) -> int:
if len(nums) == 0: return 0
i = 0
for num in nums:
if i < 2 or num > nums[i-2]:
nums[i] = num
i += 1
... | 20.128205 | 55 | 0.533758 | 116 | 785 | 3.543103 | 0.318966 | 0.024331 | 0.223844 | 0.262774 | 0.474453 | 0.474453 | 0.474453 | 0.474453 | 0.474453 | 0.474453 | 0 | 0.047187 | 0.298089 | 785 | 38 | 56 | 20.657895 | 0.69873 | 0.053503 | 0 | 0.269231 | 0 | 0 | 0.116059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.038462 | 0 | 0.192308 | 0.153846 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
31886dfda97a0058caae1e3674aec8b02a39e380 | 361 | py | Python | inkscape-figures/.config/inkscape-figures/config.py | Elyk8/dotrice | 68924c7d1e3026ab94edd8c4f35c4ae30cf28f0c | [
"BSD-3-Clause"
] | null | null | null | inkscape-figures/.config/inkscape-figures/config.py | Elyk8/dotrice | 68924c7d1e3026ab94edd8c4f35c4ae30cf28f0c | [
"BSD-3-Clause"
] | null | null | null | inkscape-figures/.config/inkscape-figures/config.py | Elyk8/dotrice | 68924c7d1e3026ab94edd8c4f35c4ae30cf28f0c | [
"BSD-3-Clause"
] | null | null | null | def latex_template(name, title):
return '\n'.join((r"\begin{figure}[H]",
r" \centering",
rf" \incfig[0.8]{{{name}}}",
rf" \caption{{{title}}}",
rf" \label{{fig:{name}}}",
r" \vspace{-0.5cm}",... | 40.111111 | 53 | 0.34072 | 33 | 361 | 3.69697 | 0.69697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020619 | 0.462604 | 361 | 8 | 54 | 45.125 | 0.608247 | 0 | 0 | 0 | 0 | 0 | 0.379501 | 0.060942 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0.125 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
319d33f74661319df6d5280a8a475e2532c1fdec | 241 | py | Python | individual/individual 1/zzz.py | Mirror-Shard/L2.13 | 160c33f653875830b6a7d324b0dc05d846679534 | [
"MIT"
] | null | null | null | individual/individual 1/zzz.py | Mirror-Shard/L2.13 | 160c33f653875830b6a7d324b0dc05d846679534 | [
"MIT"
] | null | null | null | individual/individual 1/zzz.py | Mirror-Shard/L2.13 | 160c33f653875830b6a7d324b0dc05d846679534 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Замыкание функций которое увеличивает аргумент на 3
def func(a):
# Функция, несмотря на отсутсвие аргументов, успешно вычисляет а+3
def mul():
return a + 3
return mul()
| 20.083333 | 70 | 0.647303 | 33 | 241 | 4.727273 | 0.787879 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027174 | 0.236515 | 241 | 11 | 71 | 21.909091 | 0.820652 | 0.6639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
31af20c6c87aa8a8c4683c3582f14ab000e0abc1 | 893 | py | Python | 3-mouth04/day06/mysite6/mysite6/views.py | gary-gggggg/gary | d8ba30ea4bc2b662a2d6a87d247f813e5680d63e | [
"Apache-2.0"
] | 4 | 2021-02-01T10:28:11.000Z | 2021-02-01T10:34:40.000Z | 3-mouth04/day06/mysite6/mysite6/views.py | gary-gggggg/gary | d8ba30ea4bc2b662a2d6a87d247f813e5680d63e | [
"Apache-2.0"
] | null | null | null | 3-mouth04/day06/mysite6/mysite6/views.py | gary-gggggg/gary | d8ba30ea4bc2b662a2d6a87d247f813e5680d63e | [
"Apache-2.0"
] | null | null | null | from django.http import HttpResponse
def set_cookies(request):
resp = HttpResponse('set cookies successfully')
resp.set_cookie('uname', 'giaoid673248932', 60)
return resp
def get_cookies(request):
uname = request.COOKIES.get('uname', 'default value')
result = f'uname is {uname}'
return HttpR... | 24.135135 | 58 | 0.707727 | 106 | 893 | 5.886792 | 0.273585 | 0.115385 | 0.057692 | 0.096154 | 0.205128 | 0.108974 | 0.108974 | 0.108974 | 0 | 0 | 0 | 0.017711 | 0.178052 | 893 | 36 | 59 | 24.805556 | 0.832425 | 0 | 0 | 0.166667 | 0 | 0 | 0.240761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.041667 | 0 | 0.541667 | 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 | 0 | 1 | 0 | 0 | 2 |
31b68dd3066032f370848f6e25c83d507d62c29a | 10,891 | py | Python | iiitd_policy_chatbot/bert/bm25_bert.py | kracr/iiitd-chatbot | c52df5f1c5e402c3427d577091cc03b29ce5ec87 | [
"Apache-2.0"
] | null | null | null | iiitd_policy_chatbot/bert/bm25_bert.py | kracr/iiitd-chatbot | c52df5f1c5e402c3427d577091cc03b29ce5ec87 | [
"Apache-2.0"
] | null | null | null | iiitd_policy_chatbot/bert/bm25_bert.py | kracr/iiitd-chatbot | c52df5f1c5e402c3427d577091cc03b29ce5ec87 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""bm25_bert.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1gGMMyFBKSJvZNuYsNRGcewX76rpctCOI
Importing required modules
"""
import nltk
import itertools
import os
from gensim.summarization.bm25 import BM25
from transfor... | 37.297945 | 144 | 0.638325 | 1,438 | 10,891 | 4.764951 | 0.229485 | 0.010508 | 0.013135 | 0.012259 | 0.447315 | 0.408056 | 0.397256 | 0.397256 | 0.390251 | 0.390251 | 0 | 0.012138 | 0.251125 | 10,891 | 292 | 145 | 37.297945 | 0.827979 | 0.299605 | 0 | 0.109827 | 1 | 0.00578 | 0.200927 | 0.007417 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115607 | false | 0.156069 | 0.092486 | 0 | 0.306358 | 0.017341 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
31cd09c98bad4af7e705b344d8fa9f8e310666d8 | 769 | py | Python | unsupervised_learning/0x01-clustering/11-main.py | kyeeh/holbertonschool-machine_learning | 8e4894c2b036ec7f4750de5bf99b95aee5b94449 | [
"MIT"
] | null | null | null | unsupervised_learning/0x01-clustering/11-main.py | kyeeh/holbertonschool-machine_learning | 8e4894c2b036ec7f4750de5bf99b95aee5b94449 | [
"MIT"
] | null | null | null | unsupervised_learning/0x01-clustering/11-main.py | kyeeh/holbertonschool-machine_learning | 8e4894c2b036ec7f4750de5bf99b95aee5b94449 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import matplotlib.pyplot as plt
import numpy as np
gmm = __import__('11-gmm').gmm
if __name__ == '__main__':
np.random.seed(11)
a = np.random.multivariate_normal([30, 40], [[75, 5], [5, 75]], size=10000)
b = np.random.multivariate_normal([5, 25], [[16, 10], [10, 16]], size=750)
c... | 33.434783 | 80 | 0.574772 | 131 | 769 | 3.251908 | 0.442748 | 0.112676 | 0.187793 | 0.244131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119548 | 0.195059 | 769 | 22 | 81 | 34.954545 | 0.568659 | 0.027308 | 0 | 0 | 0 | 0 | 0.02008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.157895 | 0.210526 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
31d65085d3e94fc32301078a9e991914e51d7917 | 1,027 | py | Python | kivy_tutorial_1.py | Khajaalmedki/Kivy_trial | 76ebf8dc8ba7d9ae33c8460d3c71a5a71d62ed4a | [
"Apache-2.0"
] | null | null | null | kivy_tutorial_1.py | Khajaalmedki/Kivy_trial | 76ebf8dc8ba7d9ae33c8460d3c71a5a71d62ed4a | [
"Apache-2.0"
] | null | null | null | kivy_tutorial_1.py | Khajaalmedki/Kivy_trial | 76ebf8dc8ba7d9ae33c8460d3c71a5a71d62ed4a | [
"Apache-2.0"
] | null | null | null | from kivy.app import App
from kivy.uix.widget import Widget
from kivy.uix.floatlayout import FloatLayout
from kivy.uix.popup import Popup
from kivy.uix.screenmanager import ScreenManager , Screen
from kivy.lang import Builder
from kivy.properties import ObjectProperty
from kivy.config import Config
Config.set... | 22.326087 | 59 | 0.709834 | 129 | 1,027 | 5.503876 | 0.44186 | 0.101408 | 0.061972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012165 | 0.199611 | 1,027 | 46 | 60 | 22.326087 | 0.851582 | 0.023369 | 0 | 0.1 | 0 | 0 | 0.051148 | 0.02714 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.1 | 0.3 | 0.033333 | 0.733333 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
31d6b39ceb3a1b9359f0804688856af99d4cb2a3 | 1,064 | py | Python | backend/services/amazon/stores.py | ukibbb/goodmood-inc | 006b3bb91125df15480b08832403ee22b10537ac | [
"MIT"
] | null | null | null | backend/services/amazon/stores.py | ukibbb/goodmood-inc | 006b3bb91125df15480b08832403ee22b10537ac | [
"MIT"
] | null | null | null | backend/services/amazon/stores.py | ukibbb/goodmood-inc | 006b3bb91125df15480b08832403ee22b10537ac | [
"MIT"
] | null | null | null | from abc import ABC
from dataclasses import dataclass
from services.stores import (CANADA_STORES, EUR_STORES, GBP_STORES, MXN_STORES,
US_STORES)
class Stores(ABC):
pass
@dataclass
class UnitedStatesStores(Stores):
"""
Dataclass for united states amazon marketplaces .
""... | 18.033898 | 79 | 0.670113 | 115 | 1,064 | 6.069565 | 0.313043 | 0.100287 | 0.179083 | 0.15043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240602 | 1,064 | 58 | 80 | 18.344828 | 0.863861 | 0.202068 | 0 | 0.192308 | 0 | 0 | 0.019182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.038462 | 0.115385 | 0 | 0.730769 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
31e7dd3ecfdd6db7bdcdbcfdb868d6f78bda1964 | 1,939 | py | Python | openapi_server/controllers/cart_controller.py | Atadzhan/sample-python-cfd | 5100bef299108f2d9c1879313d27c1860307e376 | [
"MIT"
] | 2 | 2021-11-28T16:17:10.000Z | 2022-01-18T02:18:50.000Z | openapi_server/controllers/cart_controller.py | Atadzhan/sample-python-cfd | 5100bef299108f2d9c1879313d27c1860307e376 | [
"MIT"
] | 3 | 2021-01-07T16:30:12.000Z | 2021-11-18T10:04:02.000Z | openapi_server/controllers/cart_controller.py | Atadzhan/sample-python-cfd | 5100bef299108f2d9c1879313d27c1860307e376 | [
"MIT"
] | 24 | 2020-12-07T21:11:13.000Z | 2022-03-28T23:35:29.000Z | import connexion
import six
from sqlalchemy import exc
from sqlalchemy.sql.functions import mode
from openapi_server.models.error import Error # noqa: E501
from openapi_server.models.menu_item import MenuItem # noqa: E501
from openapi_server import util
from openapi_server.database import models
from sqlalchemy.exc... | 29.378788 | 89 | 0.683342 | 272 | 1,939 | 4.746324 | 0.341912 | 0.055771 | 0.052672 | 0.060418 | 0.142525 | 0.103796 | 0 | 0 | 0 | 0 | 0 | 0.028782 | 0.2295 | 1,939 | 65 | 90 | 29.830769 | 0.835341 | 0.3672 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.321429 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
9ec3f898565d20a153caeacc1776470c4fe56e4e | 961 | py | Python | selenuim_frame.py | whitecat-22/selenium_frame | f4f956f0a9ba7fbadfc4d733d2f70b21c83f4223 | [
"MIT"
] | null | null | null | selenuim_frame.py | whitecat-22/selenium_frame | f4f956f0a9ba7fbadfc4d733d2f70b21c83f4223 | [
"MIT"
] | null | null | null | selenuim_frame.py | whitecat-22/selenium_frame | f4f956f0a9ba7fbadfc4d733d2f70b21c83f4223 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.options import Options # 追加
import time
options = Options() # 追加
driver = webdriver.Chrome(executable_path='C:\Program Files\chromedriver\chromedriver.exe', optio... | 33.137931 | 177 | 0.768991 | 127 | 961 | 5.732283 | 0.535433 | 0.065934 | 0.086538 | 0.074176 | 0.07967 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013953 | 0.105099 | 961 | 28 | 178 | 34.321429 | 0.832558 | 0.402706 | 0 | 0 | 0 | 0 | 0.134409 | 0.062724 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.384615 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
9ec61b6e1e69f65141e3578dc32c0ede51b3d222 | 306 | py | Python | Coin/test.py | skyriv213/Project_Clone | b873861e25f2550460e5c545997c6f0ab6b7cedd | [
"MIT"
] | null | null | null | Coin/test.py | skyriv213/Project_Clone | b873861e25f2550460e5c545997c6f0ab6b7cedd | [
"MIT"
] | null | null | null | Coin/test.py | skyriv213/Project_Clone | b873861e25f2550460e5c545997c6f0ab6b7cedd | [
"MIT"
] | null | null | null | import pyupbit
access = "ZHzEZMrzgVXsPbTjJnSGM8GUgY5UMST3K1ua8D5y" # 본인 값으로 변경
secret = "x6Zqr3ykxvxuTxgJIDHBix4nKAQqYBAbdJpsUPR9" # 본인 값으로 변경
upbit = pyupbit.Upbit(access, secret)
print(upbit.get_balance("KRW-SNT")) # KRW-XRP 조회
print(upbit.get_balance("KRW")) # 보유 현금 조회
| 30.6 | 72 | 0.696078 | 34 | 306 | 6.205882 | 0.558824 | 0.047393 | 0.066351 | 0.189573 | 0.218009 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040984 | 0.202614 | 306 | 9 | 73 | 34 | 0.82377 | 0.127451 | 0 | 0 | 0 | 0 | 0.344828 | 0.306513 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9ef66747b03d487b1c4eafda14398347c61a3b97 | 592 | py | Python | src/py4vasp/control/__init__.py | vasp-dev/py4vasp | 576c5c23d740b11687e37b6dd332165bc339cf16 | [
"Apache-2.0"
] | 27 | 2022-02-18T18:43:17.000Z | 2022-03-29T22:05:41.000Z | src/py4vasp/control/__init__.py | vasp-dev/py4vasp | 576c5c23d740b11687e37b6dd332165bc339cf16 | [
"Apache-2.0"
] | 3 | 2022-02-18T18:52:33.000Z | 2022-03-28T13:26:59.000Z | src/py4vasp/control/__init__.py | vasp-dev/py4vasp | 576c5c23d740b11687e37b6dd332165bc339cf16 | [
"Apache-2.0"
] | 4 | 2022-02-07T12:21:23.000Z | 2022-03-13T21:36:03.000Z | # Copyright © VASP Software GmbH,
# Licensed under the Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""Setup input data for VASP calculations.
VASP requires several input files to execute. We provide some simple helper classes and
routines to generate these files from python. You can also use the ro... | 34.823529 | 87 | 0.783784 | 93 | 592 | 4.860215 | 0.634409 | 0.035398 | 0.039823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007905 | 0.14527 | 592 | 16 | 88 | 37 | 0.883399 | 0.608108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.714286 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
7305d371daa3ec5eff358284391d9be4363ef4a6 | 1,486 | py | Python | PyProjManCore/proj_stats.py | aawadall/PyProjMan | 49b341b79db5fba45ae347a760d05dea7a49df40 | [
"MIT"
] | 5 | 2017-09-06T00:06:12.000Z | 2021-01-20T23:04:47.000Z | PyProjManCore/proj_stats.py | aawadall/PyProjMan | 49b341b79db5fba45ae347a760d05dea7a49df40 | [
"MIT"
] | 80 | 2017-09-03T18:06:40.000Z | 2017-09-21T17:50:26.000Z | PyProjManCore/proj_stats.py | aawadall/PyProjMan | 49b341b79db5fba45ae347a760d05dea7a49df40 | [
"MIT"
] | 3 | 2017-09-05T19:18:58.000Z | 2017-09-16T19:56:21.000Z | from PyProjManCore.task import Task
class ProjStats:
"""Project Statistics Object, used for reporting purposes"""
def __init__(self, name=None):
"""empty object"""
self._project_name = name
self._first_task = None
self._last_task = None
self._task_count = 0
self... | 21.536232 | 64 | 0.621803 | 180 | 1,486 | 4.866667 | 0.188889 | 0.082192 | 0.089041 | 0.043379 | 0.050228 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000947 | 0.289367 | 1,486 | 68 | 65 | 21.852941 | 0.828598 | 0.045087 | 0 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.02 | 0.12 | 0.46 | 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 | 0 | 0 | 0 | 2 |
7306859ada5841ec8edcec37d72ea2f31d03ab4f | 6,857 | py | Python | ros/src/waypoint_updater/waypoint_updater.py | waelterm/Udacity_Project9-SystemIntegration | e652b7d72415cd33706bcd398f2fbe7d17e1fdb4 | [
"MIT"
] | null | null | null | ros/src/waypoint_updater/waypoint_updater.py | waelterm/Udacity_Project9-SystemIntegration | e652b7d72415cd33706bcd398f2fbe7d17e1fdb4 | [
"MIT"
] | 10 | 2020-01-28T23:01:15.000Z | 2022-03-12T00:00:25.000Z | ros/src/waypoint_updater/waypoint_updater.py | waelterm/Udacity_Project9-SystemIntegration | e652b7d72415cd33706bcd398f2fbe7d17e1fdb4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import rospy
import numpy as np
from geometry_msgs.msg import PoseStamped
from styx_msgs.msg import Lane, Waypoint
from scipy.spatial import KDTree
import math
from std_msgs.msg import Int32
'''
This node will publish waypoints from the car's current position to some `x` distance ahead.
As ment... | 39.866279 | 175 | 0.671576 | 926 | 6,857 | 4.781857 | 0.24406 | 0.03523 | 0.023713 | 0.019196 | 0.204381 | 0.110208 | 0.071364 | 0.034327 | 0.034327 | 0.034327 | 0 | 0.011858 | 0.249818 | 6,857 | 171 | 176 | 40.099415 | 0.84895 | 0.172816 | 0 | 0.064815 | 0 | 0 | 0.024303 | 0 | 0 | 0 | 0 | 0.011696 | 0 | 0 | null | null | 0.018519 | 0.064815 | null | null | 0.009259 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
73214773919180a13a452308191d6501eb3c81f2 | 135 | py | Python | src/moderate/predict-the-number/solutions/python/solution.py | rdtsc/codeeval-solutions | d5c06baf89125e9e9f4b163ee57e5a8f7e73e717 | [
"MIT"
] | null | null | null | src/moderate/predict-the-number/solutions/python/solution.py | rdtsc/codeeval-solutions | d5c06baf89125e9e9f4b163ee57e5a8f7e73e717 | [
"MIT"
] | null | null | null | src/moderate/predict-the-number/solutions/python/solution.py | rdtsc/codeeval-solutions | d5c06baf89125e9e9f4b163ee57e5a8f7e73e717 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
with open(sys.argv[1]) as file:
for n in(int(n) for n in file):
print(bin(n).count('1') % 3)
| 16.875 | 33 | 0.614815 | 28 | 135 | 2.964286 | 0.678571 | 0.096386 | 0.144578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036697 | 0.192593 | 135 | 7 | 34 | 19.285714 | 0.724771 | 0.155556 | 0 | 0 | 0 | 0 | 0.00885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7326b1ffc9b8c36d05209357480fd1f774f20075 | 1,817 | py | Python | health-insurance-lead-prediction/src/preprocess/custom.py | sudhirln92/analytics-vidhya-competitions | 2e284f1ae7e3ddd4d810714db0b8eca5770756ee | [
"MIT"
] | null | null | null | health-insurance-lead-prediction/src/preprocess/custom.py | sudhirln92/analytics-vidhya-competitions | 2e284f1ae7e3ddd4d810714db0b8eca5770756ee | [
"MIT"
] | null | null | null | health-insurance-lead-prediction/src/preprocess/custom.py | sudhirln92/analytics-vidhya-competitions | 2e284f1ae7e3ddd4d810714db0b8eca5770756ee | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Feb 28 09:13:14 2021
@author: sudhir
"""
# =============================================================================
# Import library
# =============================================================================
import pandas as pd
import numpy a... | 23.294872 | 79 | 0.450193 | 157 | 1,817 | 5.159236 | 0.471338 | 0.039506 | 0.046914 | 0.05679 | 0.316049 | 0.316049 | 0.316049 | 0.316049 | 0.316049 | 0.316049 | 0 | 0.010402 | 0.206384 | 1,817 | 77 | 80 | 23.597403 | 0.551318 | 0.526142 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.173913 | 0.086957 | 0.695652 | 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 | 0 | 1 | 0 | 0 | 2 |
733a2cf70272defa599076f290441de12a9cca30 | 2,403 | py | Python | machine-learning/nlp/text-paraphrasing/paraphrasing_with_transformers_pythoncode.py | hollyyph/ObjectDirection1 | c2bf47432f1c1cbf73155d59016e8f184a309ac1 | [
"MIT"
] | 3 | 2022-02-04T08:24:30.000Z | 2022-03-07T16:05:01.000Z | machine-learning/nlp/text-paraphrasing/paraphrasing_with_transformers_pythoncode.py | RorisangMalebye/pythoncode-tutorials | 87cbf87088905f8bc09fdc87292a4367df0e9c08 | [
"MIT"
] | 3 | 2022-01-25T00:08:22.000Z | 2022-03-11T21:22:03.000Z | machine-learning/nlp/text-paraphrasing/paraphrasing_with_transformers_pythoncode.py | RorisangMalebye/pythoncode-tutorials | 87cbf87088905f8bc09fdc87292a4367df0e9c08 | [
"MIT"
] | 1 | 2022-02-04T19:04:51.000Z | 2022-02-04T19:04:51.000Z | # -*- coding: utf-8 -*-
"""Paraphrasing-with-Transformers_PythonCode.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1bPfvSF7bJqDfw9ZMgfIZPd1Bk-fW7AJY
"""
!pip install transformers sentencepiece
from transformers import *
# models we gonna use ... | 35.865672 | 190 | 0.786101 | 313 | 2,403 | 5.881789 | 0.456869 | 0.054318 | 0.048886 | 0.060837 | 0.263444 | 0.18088 | 0.142857 | 0.05975 | 0.05975 | 0.05975 | 0 | 0.017159 | 0.126925 | 2,403 | 66 | 191 | 36.409091 | 0.860343 | 0.095298 | 0 | 0.052632 | 1 | 0.026316 | 0.342333 | 0.095772 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.026316 | 0.052632 | null | null | 0.105263 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7340ca1584ed96ce9eed3fe5894ea1b59667a110 | 959 | py | Python | covid_graphs/setup.py | michalburger1/COVID-19-simulation | ea063ac61c7042fd3896650fb0a8bb20587a3eeb | [
"Unlicense"
] | null | null | null | covid_graphs/setup.py | michalburger1/COVID-19-simulation | ea063ac61c7042fd3896650fb0a8bb20587a3eeb | [
"Unlicense"
] | null | null | null | covid_graphs/setup.py | michalburger1/COVID-19-simulation | ea063ac61c7042fd3896650fb0a8bb20587a3eeb | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
from setuptools import find_namespace_packages, setup
setup(
name="covid_graphs",
version="1.0",
description="COVID-19 graph plotting",
install_requires=[
"click",
"click_pathlib",
"dash",
"Flask",
"numpy",
"pandas",
"proto... | 27.4 | 79 | 0.602711 | 101 | 959 | 5.386139 | 0.544554 | 0.222426 | 0.082721 | 0.073529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009915 | 0.263816 | 959 | 34 | 80 | 28.205882 | 0.760623 | 0.021898 | 0 | 0 | 0 | 0 | 0.453575 | 0.302028 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.032258 | 0 | 0.032258 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7349a76967a256a551b5dcf858527d957159cfae | 4,014 | py | Python | certbot-dns-google/certbot_dns_google/__init__.py | mausinixterra/letsencrypt | 2d4f36cc9fedafa91b9877ec2ec1f9f83da4ecd3 | [
"Apache-2.0"
] | 2 | 2018-10-03T15:33:57.000Z | 2020-06-09T20:28:29.000Z | certbot-dns-google/certbot_dns_google/__init__.py | schu/certbot | f3b23662f1fddedcea702c6ea5b54d5f97d1b0a8 | [
"Apache-2.0"
] | 808 | 2018-11-09T05:14:26.000Z | 2021-08-03T05:26:10.000Z | certbot-dns-google/certbot_dns_google/__init__.py | schu/certbot | f3b23662f1fddedcea702c6ea5b54d5f97d1b0a8 | [
"Apache-2.0"
] | 3 | 2018-02-09T21:05:38.000Z | 2019-06-10T00:39:00.000Z | """
The `~certbot_dns_google.dns_google` plugin automates the process of
completing a ``dns-01`` challenge (`~acme.challenges.DNS01`) by creating, and
subsequently removing, TXT records using the Google Cloud DNS API.
Named Arguments
---------------
======================================== =========================... | 38.596154 | 88 | 0.664425 | 499 | 4,014 | 5.322645 | 0.388778 | 0.040663 | 0.037651 | 0.027108 | 0.178464 | 0.165663 | 0.143072 | 0.143072 | 0.143072 | 0.128012 | 0 | 0.005646 | 0.20578 | 4,014 | 103 | 89 | 38.970874 | 0.827478 | 0.994768 | 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 | 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 | 2 |
7363b9ba7dce18a152971e0cad6209884eb0aa76 | 369 | py | Python | haemapod/handlers/events/bounding_box.py | globalspin/haemapod | 990440d7c8f369bc5082f0aae5867a0a150613f1 | [
"MIT"
] | null | null | null | haemapod/handlers/events/bounding_box.py | globalspin/haemapod | 990440d7c8f369bc5082f0aae5867a0a150613f1 | [
"MIT"
] | 1 | 2015-03-24T21:25:45.000Z | 2015-03-24T21:25:45.000Z | haemapod/handlers/events/bounding_box.py | globalspin/haemapod | 990440d7c8f369bc5082f0aae5867a0a150613f1 | [
"MIT"
] | null | null | null | from model import Event
from geo.geomodel import geotypes
def get(handler, response):
lat1 = handler.request.get('lat1')
lon1 = handler.request.get('lng1')
lat2 = handler.request.get('lat2')
lon2 = handler.request.get('lng2')
response.events = Event.bounding_box_fetch(
Event.all(),
geotypes.Box(float... | 28.384615 | 66 | 0.710027 | 51 | 369 | 5.098039 | 0.470588 | 0.215385 | 0.261538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037618 | 0.135501 | 369 | 12 | 67 | 30.75 | 0.777429 | 0 | 0 | 0 | 0 | 0 | 0.04336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b4076d994b1ee1f6d360fd4a1433e0e7ea105704 | 2,980 | py | Python | tests/unit/hypernode_vagrant_runner/vagrant/set_up/test_create_hypernode_vagrant.py | vdloo/hypernode-vagrant-runner | 241b9612769b74b536a43f4e6821003c5f1ea2c3 | [
"MIT"
] | null | null | null | tests/unit/hypernode_vagrant_runner/vagrant/set_up/test_create_hypernode_vagrant.py | vdloo/hypernode-vagrant-runner | 241b9612769b74b536a43f4e6821003c5f1ea2c3 | [
"MIT"
] | null | null | null | tests/unit/hypernode_vagrant_runner/vagrant/set_up/test_create_hypernode_vagrant.py | vdloo/hypernode-vagrant-runner | 241b9612769b74b536a43f4e6821003c5f1ea2c3 | [
"MIT"
] | null | null | null | from hypernode_vagrant_runner.settings import HYPERNODE_VAGRANT_DEFAULT_PHP_VERSION
from hypernode_vagrant_runner.vagrant import create_hypernode_vagrant
from tests.testcase import TestCase
class TestCreateHypernodeVagrant(TestCase):
def setUp(self):
self.try_sudo = self.set_up_patch(
'hyperno... | 39.733333 | 96 | 0.764094 | 354 | 2,980 | 5.864407 | 0.158192 | 0.277457 | 0.180154 | 0.100193 | 0.75578 | 0.590077 | 0.440751 | 0.36368 | 0.328516 | 0.28131 | 0 | 0.001635 | 0.179195 | 2,980 | 74 | 97 | 40.27027 | 0.847097 | 0 | 0 | 0.196429 | 0 | 0 | 0.134228 | 0.132215 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.160714 | false | 0 | 0.053571 | 0 | 0.232143 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b41db37cbbfec2aa0b565f4b305cb2103fd47e96 | 157 | py | Python | zadanie/primer/prim 2.py | Adrenaline1a/demo-2.13 | ef72aa50ff8291c64ee3c90d8091e79cc452c4e3 | [
"MIT"
] | null | null | null | zadanie/primer/prim 2.py | Adrenaline1a/demo-2.13 | ef72aa50ff8291c64ee3c90d8091e79cc452c4e3 | [
"MIT"
] | null | null | null | zadanie/primer/prim 2.py | Adrenaline1a/demo-2.13 | ef72aa50ff8291c64ee3c90d8091e79cc452c4e3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import math, datetime
if __name__ == '__main__':
math.cos(math.pi / 4)
datetime.date(2017, 3, 21)
| 14.272727 | 30 | 0.605096 | 23 | 157 | 3.782609 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0.203822 | 157 | 10 | 31 | 15.7 | 0.616 | 0.273885 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b422fdbf47c42376bcbca91d68f5ddba3802c93e | 1,709 | py | Python | bento/__init__.py | abadger/Bento | 3f1ddefd8d21decbc018d097d3ec5da4dc9364df | [
"BSD-3-Clause"
] | 1 | 2015-10-25T13:08:36.000Z | 2015-10-25T13:08:36.000Z | bento/__init__.py | abadger/Bento | 3f1ddefd8d21decbc018d097d3ec5da4dc9364df | [
"BSD-3-Clause"
] | null | null | null | bento/__init__.py | abadger/Bento | 3f1ddefd8d21decbc018d097d3ec5da4dc9364df | [
"BSD-3-Clause"
] | null | null | null | """
Bento, a pythonic packaging solution for python software.
Bento is a packaging solution which aims at being simple and extensible, using
as little magic as possible. Packages are described in a bento.info file which
has a straightforward syntax, and the packaging is driven through bentomaker,
the command line inte... | 37.152174 | 78 | 0.749561 | 249 | 1,709 | 4.931727 | 0.51004 | 0.051303 | 0.027687 | 0.030945 | 0.134365 | 0.12215 | 0.12215 | 0 | 0 | 0 | 0 | 0.00361 | 0.189585 | 1,709 | 45 | 79 | 37.977778 | 0.883032 | 0.506144 | 0 | 0 | 0 | 0 | 0.051435 | 0 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.