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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7c33f5d3965a82500aea5886528fb587cb1905ba | 447 | py | Python | src/utils/helpers.py | solnsumei/claims-management | 0a9db243e954fbe390f6f81f64eabd6efa4dcc81 | [
"MIT"
] | null | null | null | src/utils/helpers.py | solnsumei/claims-management | 0a9db243e954fbe390f6f81f64eabd6efa4dcc81 | [
"MIT"
] | null | null | null | src/utils/helpers.py | solnsumei/claims-management | 0a9db243e954fbe390f6f81f64eabd6efa4dcc81 | [
"MIT"
] | null | null | null | from datetime import datetime
from .enums import InvoiceStatus
updatable_statuses = [InvoiceStatus.Pending, InvoiceStatus.Verified, InvoiceStatus.Approved]
deletable_statuses = [InvoiceStatus.New, InvoiceStatus.Pending, InvoiceStatus.Cancelled]
upload_folder = "invoices"
def get_claim_folder(date):
return f"{d... | 21.285714 | 92 | 0.771812 | 55 | 447 | 6.127273 | 0.581818 | 0.053412 | 0.195846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123043 | 447 | 20 | 93 | 22.35 | 0.859694 | 0 | 0 | 0.181818 | 0 | 0 | 0.071588 | 0.053691 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.181818 | 0.181818 | 0.090909 | 0.545455 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
7c5195ca5d93f31509fde4ada71cfb110f229bb4 | 206 | py | Python | settings.py | mrrizal/kinesis-learn | d483c9328628b2600f730d5fab1d04e863218161 | [
"Unlicense"
] | 1 | 2019-12-20T09:36:46.000Z | 2019-12-20T09:36:46.000Z | settings.py | mrrizal/kinesis-learn | d483c9328628b2600f730d5fab1d04e863218161 | [
"Unlicense"
] | 1 | 2021-06-02T00:50:39.000Z | 2021-06-02T00:50:39.000Z | settings.py | mrrizal/kinesis-learn | d483c9328628b2600f730d5fab1d04e863218161 | [
"Unlicense"
] | null | null | null | import os
from dotenv import load_dotenv
load_dotenv()
AWS_ACCESS_KEY_ID = os.getenv('AWS_ACCESS_KEY_ID')
AWS_SECRET_KEY = os.getenv('AWS_SECRET_KEY')
AWS_DEFAULT_REGION = os.getenv('AWS_DEFAULT_REGION')
| 22.888889 | 52 | 0.815534 | 35 | 206 | 4.342857 | 0.371429 | 0.157895 | 0.217105 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087379 | 206 | 8 | 53 | 25.75 | 0.808511 | 0 | 0 | 0 | 0 | 0 | 0.237864 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
7c6c07404fba19f3ece5545744b038dd5d7b1909 | 2,576 | py | Python | maintenance_mode/settings.py | fpolacov/django-maintenance-mode | ddd222513531165915e32c7e34be1dfbed2b58ce | [
"MIT"
] | null | null | null | maintenance_mode/settings.py | fpolacov/django-maintenance-mode | ddd222513531165915e32c7e34be1dfbed2b58ce | [
"MIT"
] | null | null | null | maintenance_mode/settings.py | fpolacov/django-maintenance-mode | ddd222513531165915e32c7e34be1dfbed2b58ce | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.conf import settings
from django.utils.module_loading import import_module
import os
if not hasattr(settings, 'MAINTENANCE_MODE'):
settings.MAINTENANCE_MODE = None
if not hasattr(settings, 'MAINTENANCE_MODE_GET_CLIENT_IP_ADDRESS'):
settings.MAINTENANCE_MODE_GET_CLIENT_IP... | 38.447761 | 90 | 0.814829 | 330 | 2,576 | 5.912121 | 0.184848 | 0.299846 | 0.436187 | 0.184521 | 0.802153 | 0.652486 | 0.403895 | 0.311635 | 0 | 0 | 0 | 0.003051 | 0.109472 | 2,576 | 66 | 91 | 39.030303 | 0.847428 | 0.008152 | 0 | 0 | 0 | 0 | 0.26557 | 0.256169 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7c6d7c9f30b07aa9eec30f106252cd38674fbe53 | 152 | py | Python | test.py | cldf-datasets/rantanenurageo | 8c78b96aece7175277e9083e4e1516a12f7751aa | [
"CC-BY-4.0"
] | null | null | null | test.py | cldf-datasets/rantanenurageo | 8c78b96aece7175277e9083e4e1516a12f7751aa | [
"CC-BY-4.0"
] | null | null | null | test.py | cldf-datasets/rantanenurageo | 8c78b96aece7175277e9083e4e1516a12f7751aa | [
"CC-BY-4.0"
] | null | null | null | import sys
import csv
csv.field_size_limit(sys.maxsize)
def test_valid(cldf_dataset, cldf_logger):
assert cldf_dataset.validate(log=cldf_logger)
| 16.888889 | 49 | 0.809211 | 24 | 152 | 4.833333 | 0.666667 | 0.189655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111842 | 152 | 8 | 50 | 19 | 0.859259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7c95728d02b2e8f0a5075dfef693767d3f21e86f | 317 | py | Python | openghg/store/__init__.py | openghg/openghg | 9a05dd6fe3cee6123898b8f390cfaded08dbb408 | [
"Apache-2.0"
] | 5 | 2021-03-02T09:04:07.000Z | 2022-01-25T09:58:16.000Z | openghg/store/__init__.py | openghg/openghg | 9a05dd6fe3cee6123898b8f390cfaded08dbb408 | [
"Apache-2.0"
] | 229 | 2020-09-30T15:08:39.000Z | 2022-03-31T14:23:55.000Z | openghg/store/__init__.py | openghg/openghg | 9a05dd6fe3cee6123898b8f390cfaded08dbb408 | [
"Apache-2.0"
] | null | null | null | from ._emissions import Emissions
from ._eulerian_model import EulerianModel
from ._footprints import Footprints
from ._obsmobile import ObsMobile
from ._obssurface import ObsSurface
from ._metstore import METStore
from ._recombination import recombine_datasets, recombine_multisite
from ._segment import assign_data
| 35.222222 | 67 | 0.867508 | 37 | 317 | 7.108108 | 0.459459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104101 | 317 | 8 | 68 | 39.625 | 0.926056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7c9bfb3905e751cb52fa58342258a2c61bcb7b8f | 107 | py | Python | src/util/getTranscript.py | huytran2khust/liantra | 04120d4e1877bd8b9a0bba8fcf89e2c4fa7a1518 | [
"MIT"
] | null | null | null | src/util/getTranscript.py | huytran2khust/liantra | 04120d4e1877bd8b9a0bba8fcf89e2c4fa7a1518 | [
"MIT"
] | 2 | 2021-09-21T09:08:39.000Z | 2022-01-22T11:28:01.000Z | src/util/getTranscript.py | huytd2k/liantra | 04120d4e1877bd8b9a0bba8fcf89e2c4fa7a1518 | [
"MIT"
] | null | null | null | from youtube_transcript_api import YouTubeTranscriptApi
YouTubeTranscriptApi.get_transcript('arj7oStGLkU') | 35.666667 | 55 | 0.906542 | 10 | 107 | 9.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009804 | 0.046729 | 107 | 3 | 56 | 35.666667 | 0.911765 | 0 | 0 | 0 | 0 | 0 | 0.101852 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
7ce252a22c11c18ac7b00ae1b4cc15fa7cb25bd9 | 1,802 | py | Python | nbdev_template/data.py | sachinruk/keraTorch | 9fde2c820a6b0b67cbed9990f1b6d8a8e389ccf8 | [
"Apache-2.0"
] | 4 | 2020-04-14T02:25:10.000Z | 2020-07-09T03:14:25.000Z | nbdev_template/data.py | sachinruk/keraTorch | 9fde2c820a6b0b67cbed9990f1b6d8a8e389ccf8 | [
"Apache-2.0"
] | 3 | 2020-04-22T06:49:33.000Z | 2022-02-26T07:06:30.000Z | nbdev_template/data.py | sachinruk/keraTorch | 9fde2c820a6b0b67cbed9990f1b6d8a8e389ccf8 | [
"Apache-2.0"
] | 1 | 2020-06-18T14:21:05.000Z | 2020-06-18T14:21:05.000Z | # AUTOGENERATED! DO NOT EDIT! File to edit: data.ipynb (unless otherwise specified).
__all__ = ['Data', 'TrainData', 'TestData', 'create_db']
# Cell
import torch
from torch.utils.data import Dataset, DataLoader
from fastai.data_block import DataBunch, DatasetType
from sklearn.model_selection import train_test_split
... | 22.810127 | 84 | 0.625971 | 264 | 1,802 | 3.950758 | 0.284091 | 0.038351 | 0.034516 | 0.043145 | 0.252157 | 0.232023 | 0.209971 | 0.209971 | 0.209971 | 0.180249 | 0 | 0.005117 | 0.240844 | 1,802 | 79 | 85 | 22.810127 | 0.75731 | 0.158713 | 0 | 0.282051 | 1 | 0 | 0.025535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25641 | false | 0 | 0.102564 | 0.153846 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
7ce5cc56081ec14198c967a55585d6748a980bad | 70 | py | Python | authlib/specs/rfc7518/jws_algorithms.py | tk193192/authlib | 4c60a628f64c6d385a06ea55e416092726b94d07 | [
"BSD-3-Clause"
] | 2 | 2021-04-26T18:17:37.000Z | 2021-04-28T21:39:45.000Z | authlib/specs/rfc7518/jws_algorithms.py | tk193192/authlib | 4c60a628f64c6d385a06ea55e416092726b94d07 | [
"BSD-3-Clause"
] | 4 | 2021-03-19T08:17:59.000Z | 2021-06-10T19:34:36.000Z | authlib/specs/rfc7518/jws_algorithms.py | tk193192/authlib | 4c60a628f64c6d385a06ea55e416092726b94d07 | [
"BSD-3-Clause"
] | 2 | 2021-05-24T20:34:12.000Z | 2022-03-26T07:46:17.000Z | from authlib.jose import JWS_ALGORITHMS
__all__ = ['JWS_ALGORITHMS']
| 17.5 | 39 | 0.8 | 9 | 70 | 5.555556 | 0.777778 | 0.52 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 70 | 3 | 40 | 23.333333 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
6b300d7d324deab797edf61006cd3812cac4ae03 | 223 | py | Python | jupyter/DEBUG/MATH.py | colinsheppard/beam | d823c34bb6ce64a680675864618c76309322ec3d | [
"BSD-3-Clause-LBNL"
] | null | null | null | jupyter/DEBUG/MATH.py | colinsheppard/beam | d823c34bb6ce64a680675864618c76309322ec3d | [
"BSD-3-Clause-LBNL"
] | null | null | null | jupyter/DEBUG/MATH.py | colinsheppard/beam | d823c34bb6ce64a680675864618c76309322ec3d | [
"BSD-3-Clause-LBNL"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[5]:
1 + 1 * 2
# In[4]:
20 // 3 + 20 // 7 ** 2
# In[2]:
import random
4 + random.randint(10, 100)
# In[5]:
import random
4 + random.randint(10, 100)
# In[ ]:
| 6.027027 | 27 | 0.497758 | 38 | 223 | 2.921053 | 0.526316 | 0.054054 | 0.234234 | 0.342342 | 0.594595 | 0.594595 | 0.594595 | 0.594595 | 0 | 0 | 0 | 0.170886 | 0.29148 | 223 | 36 | 28 | 6.194444 | 0.531646 | 0.309417 | 0 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
860dddce693f6b331df7819fedd5b27a87806f53 | 222 | py | Python | lino_book/projects/anna/lib/__init__.py | lino-framework/lino_book | 4eab916832cd8f48ff1b9fc8c2789f0b437da0f8 | [
"BSD-2-Clause"
] | 3 | 2016-08-25T05:58:09.000Z | 2019-12-05T11:13:45.000Z | lino_book/projects/anna/lib/__init__.py | lino-framework/lino_book | 4eab916832cd8f48ff1b9fc8c2789f0b437da0f8 | [
"BSD-2-Clause"
] | 18 | 2016-11-12T21:38:58.000Z | 2019-12-03T17:54:38.000Z | lino_book/projects/anna/lib/__init__.py | lino-framework/lino_book | 4eab916832cd8f48ff1b9fc8c2789f0b437da0f8 | [
"BSD-2-Clause"
] | 9 | 2016-10-15T11:12:33.000Z | 2021-09-22T04:37:37.000Z | # -*- coding: UTF-8 -*-
# Copyright 2016 Rumma & Ko Ltd
# License: BSD (see file COPYING for details)
"""Fixtures specific for Lino Care.
.. autosummary::
:toctree:
tickets
"""
from lino_xl.lib.tickets import *
| 14.8 | 45 | 0.657658 | 29 | 222 | 5 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028249 | 0.202703 | 222 | 14 | 46 | 15.857143 | 0.79096 | 0.774775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
862d4ef6a76ace5bba6dc244731eae9033303c04 | 198 | py | Python | pmca/usb/driver/windows/__init__.py | kratz00/Sony-PMCA-RE | d646defa2b4755b4006e3def648272b0e22569cd | [
"MIT"
] | 1,313 | 2015-05-13T22:31:44.000Z | 2022-03-31T07:34:01.000Z | pmca/usb/driver/windows/__init__.py | kratz00/Sony-PMCA-RE | d646defa2b4755b4006e3def648272b0e22569cd | [
"MIT"
] | 289 | 2015-05-30T17:31:49.000Z | 2022-03-31T09:33:48.000Z | pmca/usb/driver/windows/__init__.py | kratz00/Sony-PMCA-RE | d646defa2b4755b4006e3def648272b0e22569cd | [
"MIT"
] | 176 | 2015-07-08T06:30:28.000Z | 2022-03-27T20:15:22.000Z | import re
def parseDeviceId(id):
match = re.search('(#|\\\\)vid_([a-f0-9]{4})&pid_([a-f0-9]{4})(&|#|\\\\)', id, re.IGNORECASE)
return [int(match.group(i), 16) if match else None for i in [2, 3]]
| 33 | 94 | 0.585859 | 36 | 198 | 3.166667 | 0.722222 | 0.052632 | 0.070175 | 0.087719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057471 | 0.121212 | 198 | 5 | 95 | 39.6 | 0.597701 | 0 | 0 | 0 | 0 | 0.25 | 0.267677 | 0.267677 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
864c8c6f4c77e199e755d6f4f5ef1336ab39c211 | 40 | py | Python | bot/conversation_handlers/stage_constants.py | gerbigtim/coaching_bot | 5b4ef6e207a5017f7b4274d8238550b4988d0a6e | [
"MIT"
] | null | null | null | bot/conversation_handlers/stage_constants.py | gerbigtim/coaching_bot | 5b4ef6e207a5017f7b4274d8238550b4988d0a6e | [
"MIT"
] | null | null | null | bot/conversation_handlers/stage_constants.py | gerbigtim/coaching_bot | 5b4ef6e207a5017f7b4274d8238550b4988d0a6e | [
"MIT"
] | null | null | null | GENDER, PHOTO, LOCATION, BIO = range(4)
| 20 | 39 | 0.7 | 6 | 40 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.15 | 40 | 1 | 40 | 40 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8659c6b99cf0e0795f02accba211283214a75d3a | 1,986 | py | Python | Python/Scheduling/OptionalTest.py | IdkwhatImD0ing/AlgorithmPractice | 2d8d68a6d0168e873d61d1e3873e882bcdaf003f | [
"MIT"
] | null | null | null | Python/Scheduling/OptionalTest.py | IdkwhatImD0ing/AlgorithmPractice | 2d8d68a6d0168e873d61d1e3873e882bcdaf003f | [
"MIT"
] | null | null | null | Python/Scheduling/OptionalTest.py | IdkwhatImD0ing/AlgorithmPractice | 2d8d68a6d0168e873d61d1e3873e882bcdaf003f | [
"MIT"
] | null | null | null | from OptionalScheduling import AND_OR_Scheduler
from nose.tools import assert_equal, assert_true
from nose.tools import assert_false, assert_almost_equal
from Scheduling import DependencyScheduler
from collections import defaultdict
import networkx as nx # Library for displaying graphs.
import matplotlib.pyplot as plt
... | 31.03125 | 56 | 0.700906 | 340 | 1,986 | 3.85 | 0.167647 | 0.159664 | 0.183346 | 0.160428 | 0.753247 | 0.701299 | 0.586707 | 0.546218 | 0.546218 | 0.546218 | 0 | 0.012311 | 0.100201 | 1,986 | 64 | 57 | 31.03125 | 0.720201 | 0.072004 | 0 | 0.672727 | 0 | 0 | 0.046815 | 0 | 0 | 0 | 0 | 0 | 0.436364 | 1 | 0 | false | 0 | 0.127273 | 0 | 0.127273 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
866c77bcb817f30420b6c8a643ca91f40708db01 | 233 | py | Python | tests/helpers/django_project/api/version.py | nicoddemus/dependencies | 74180e2c6098d8ad03bc53c5703bdf8dc61c3ed9 | [
"BSD-2-Clause"
] | null | null | null | tests/helpers/django_project/api/version.py | nicoddemus/dependencies | 74180e2c6098d8ad03bc53c5703bdf8dc61c3ed9 | [
"BSD-2-Clause"
] | null | null | null | tests/helpers/django_project/api/version.py | nicoddemus/dependencies | 74180e2c6098d8ad03bc53c5703bdf8dc61c3ed9 | [
"BSD-2-Clause"
] | null | null | null | from rest_framework.versioning import BaseVersioning
from django_project.api.exceptions import VersionError
class DenyVersion(BaseVersioning):
def determine_version(self, request, *args, **kwargs):
raise VersionError
| 23.3 | 58 | 0.793991 | 25 | 233 | 7.28 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141631 | 233 | 9 | 59 | 25.888889 | 0.91 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
86900698e4351b8acae488b0ae7d6c793b476344 | 171 | py | Python | PythonModulo1/ex030.py | BossNX/ExerciciosDePython | 27c79d284794f65f94d3a07de11429d665ec92da | [
"MIT"
] | null | null | null | PythonModulo1/ex030.py | BossNX/ExerciciosDePython | 27c79d284794f65f94d3a07de11429d665ec92da | [
"MIT"
] | null | null | null | PythonModulo1/ex030.py | BossNX/ExerciciosDePython | 27c79d284794f65f94d3a07de11429d665ec92da | [
"MIT"
] | null | null | null | número = int(input('Digite um número qualquer: '))
if número % 2 == 0:
print('O número {} é PAR'.format(número))
else:
print('O número {} é ÍMPAR'.format(número))
| 28.5 | 50 | 0.631579 | 26 | 171 | 4.153846 | 0.615385 | 0.111111 | 0.222222 | 0.240741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014388 | 0.187135 | 171 | 5 | 51 | 34.2 | 0.76259 | 0 | 0 | 0 | 0 | 0 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
86acf378e4e8a1e553c006da8f7b89da1ff07e0a | 390 | py | Python | FileOperation/IgnoreErroAndNotRelative.py | xiaopingzhong/AlgorithmAndDataStructure | ec385235f56b2ca42974f2f6067f708ab4f693fc | [
"Apache-2.0"
] | null | null | null | FileOperation/IgnoreErroAndNotRelative.py | xiaopingzhong/AlgorithmAndDataStructure | ec385235f56b2ca42974f2f6067f708ab4f693fc | [
"Apache-2.0"
] | null | null | null | FileOperation/IgnoreErroAndNotRelative.py | xiaopingzhong/AlgorithmAndDataStructure | ec385235f56b2ca42974f2f6067f708ab4f693fc | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
************************************************
@Time : 2019-06-13 01:11
@Author : zxp
@Project : AlgorithmAndDataStructure
@File : IgnoreErroAndNotRelative.py
@Description: ==================================
忽略错误文件,忽略没有对应Gt的图像,转而读取下一行
@license: (C) Copyrigh... | 27.857143 | 48 | 0.441026 | 29 | 390 | 5.931034 | 0.965517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061047 | 0.117949 | 390 | 13 | 49 | 30 | 0.438953 | 0.969231 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
86e720510586e7ef4006f835e5e213b162984813 | 8,793 | py | Python | nova/tests/functional/libvirt/test_shared_resource_provider.py | Nexenta/nova | ccecb507ff4bdcdd23d90e7b5b02a22c5a46ecc3 | [
"Apache-2.0"
] | 1 | 2020-08-14T02:20:59.000Z | 2020-08-14T02:20:59.000Z | nova/tests/functional/libvirt/test_shared_resource_provider.py | Nexenta/nova | ccecb507ff4bdcdd23d90e7b5b02a22c5a46ecc3 | [
"Apache-2.0"
] | 2 | 2021-03-31T20:04:16.000Z | 2021-12-13T20:45:03.000Z | nova/tests/functional/libvirt/test_shared_resource_provider.py | Nexenta/nova | ccecb507ff4bdcdd23d90e7b5b02a22c5a46ecc3 | [
"Apache-2.0"
] | 1 | 2020-07-24T02:31:45.000Z | 2020-07-24T02:31:45.000Z | # Copyright (C) 2018 NTT DATA, Inc
# 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 require... | 41.476415 | 79 | 0.644376 | 1,091 | 8,793 | 4.912924 | 0.217232 | 0.044776 | 0.026866 | 0.01791 | 0.721455 | 0.711381 | 0.705597 | 0.705597 | 0.696269 | 0.679478 | 0 | 0.020274 | 0.270784 | 8,793 | 211 | 80 | 41.672986 | 0.815658 | 0.273854 | 0 | 0.596774 | 0 | 0 | 0.122326 | 0.039613 | 0 | 0 | 0 | 0.009479 | 0.120968 | 1 | 0.040323 | false | 0 | 0.048387 | 0 | 0.104839 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
86eb4e35798400b6a3278590f1268b683a2ec734 | 229 | py | Python | scripts/UCSC Phys 133/meter.py | jcschindler01/scope_util | cf463ce730521ecc3877f7eca8ae461cd9fbac3e | [
"MIT"
] | null | null | null | scripts/UCSC Phys 133/meter.py | jcschindler01/scope_util | cf463ce730521ecc3877f7eca8ae461cd9fbac3e | [
"MIT"
] | null | null | null | scripts/UCSC Phys 133/meter.py | jcschindler01/scope_util | cf463ce730521ecc3877f7eca8ae461cd9fbac3e | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import scope_utilities.vector_impedance_meter as vm
save_directory = "C:/electronics/vector_impedance_meter/datasets/"
vm.meter(save_directory=save_directory)
| 17.615385 | 67 | 0.786026 | 31 | 229 | 5.548387 | 0.580645 | 0.226744 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152838 | 229 | 12 | 68 | 19.083333 | 0.886598 | 0 | 0 | 0 | 0 | 0 | 0.220657 | 0.220657 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
8104a19f3b3b1972b86390ad376b77946aeb1708 | 350 | py | Python | code401challengespython/insertion_sort/test_insertion_sort.py | danhuyle508/data-structures-and-algorithms | 476f32ebcde0350390e36d32e5dc7911ac9bab09 | [
"MIT"
] | null | null | null | code401challengespython/insertion_sort/test_insertion_sort.py | danhuyle508/data-structures-and-algorithms | 476f32ebcde0350390e36d32e5dc7911ac9bab09 | [
"MIT"
] | null | null | null | code401challengespython/insertion_sort/test_insertion_sort.py | danhuyle508/data-structures-and-algorithms | 476f32ebcde0350390e36d32e5dc7911ac9bab09 | [
"MIT"
] | null | null | null | from insertion_sort import insertion_sort
def test_insertion_sort_one():
arr =[4,1,5,6,3]
assert insertion_sort(arr) == [1,3,4,5,6,]
def test_insertion_sort_two():
arr =[20,11,14,17,19]
assert insertion_sort(arr) == [11,14,17,19,20]
def test_insertion_sort_empty():
arr =[]
assert insertion_sor... | 29.166667 | 54 | 0.677143 | 59 | 350 | 3.779661 | 0.389831 | 0.466368 | 0.215247 | 0.269058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103093 | 0.168571 | 350 | 12 | 54 | 29.166667 | 0.66323 | 0 | 0 | 0 | 0 | 0 | 0.039886 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.3 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d49f1e1c0d9908d1b949f8d8dc3bec4fddd6ff38 | 1,642 | py | Python | examples/contact_area_analysis.py | ContactEngineering/ContactMechanics | eaa08a5d43c6934f0eb0fc628ee6095d0981f70c | [
"MIT"
] | 3 | 2021-11-08T16:15:21.000Z | 2021-12-04T02:05:27.000Z | examples/contact_area_analysis.py | ContactEngineering/ContactMechanics | eaa08a5d43c6934f0eb0fc628ee6095d0981f70c | [
"MIT"
] | 14 | 2021-06-17T14:07:07.000Z | 2022-03-11T11:55:44.000Z | examples/contact_area_analysis.py | ContactEngineering/ContactMechanics | eaa08a5d43c6934f0eb0fc628ee6095d0981f70c | [
"MIT"
] | 1 | 2021-09-10T22:20:41.000Z | 2021-09-10T22:20:41.000Z | import numpy as np
import io
import matplotlib.pyplot as plt
import SurfaceTopography.Uniform.GeometryAnalysis as CAA
with io.StringIO(
"""
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0... | 38.186047 | 81 | 0.604141 | 435 | 1,642 | 2.227586 | 0.124138 | 0.408669 | 0.557276 | 0.672859 | 0.627451 | 0.627451 | 0.627451 | 0.590299 | 0.590299 | 0.584107 | 0 | 0.25 | 0.303289 | 1,642 | 42 | 82 | 39.095238 | 0.597028 | 0 | 0 | 0 | 0 | 0 | 0.107256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.190476 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d4aa1d4591d563ca0f894d8bedfb49be13d01dc3 | 54 | py | Python | example/frogpanel/__init__.py | andytwoods/django-debug-toolbar-hack | 99d28a596d89844b0bbe2eba4cd34ef391322ab6 | [
"BSD-3-Clause"
] | null | null | null | example/frogpanel/__init__.py | andytwoods/django-debug-toolbar-hack | 99d28a596d89844b0bbe2eba4cd34ef391322ab6 | [
"BSD-3-Clause"
] | null | null | null | example/frogpanel/__init__.py | andytwoods/django-debug-toolbar-hack | 99d28a596d89844b0bbe2eba4cd34ef391322ab6 | [
"BSD-3-Clause"
] | null | null | null | from example.frogpanel.panel import FrogPanel # noqa
| 27 | 53 | 0.814815 | 7 | 54 | 6.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12963 | 54 | 1 | 54 | 54 | 0.93617 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
d4b45dff861ea1010e5fc6190ce43888942ce4c2 | 231 | py | Python | django/app/ideas/admin.py | ajyong/docker-by-example | 45c19c7e7a8809aa435875d1e17fe2d8f1da9ec6 | [
"MIT"
] | 2 | 2019-01-22T16:49:46.000Z | 2022-03-14T04:16:23.000Z | django/app/ideas/admin.py | ajyong/docker-by-example | 45c19c7e7a8809aa435875d1e17fe2d8f1da9ec6 | [
"MIT"
] | 1 | 2022-02-10T08:03:11.000Z | 2022-02-10T08:03:11.000Z | django/app/ideas/admin.py | ajyong/docker-by-example | 45c19c7e7a8809aa435875d1e17fe2d8f1da9ec6 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Idea
@admin.register(Idea)
class IdeaAdmin(admin.ModelAdmin):
list_display = ('id', 'name', 'projected_revenue', 'created', 'modified',)
list_display_links = ('name',)
| 25.666667 | 78 | 0.718615 | 28 | 231 | 5.785714 | 0.714286 | 0.135802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134199 | 231 | 8 | 79 | 28.875 | 0.81 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
d4ea84f86fb0d68a52baa3c7c8daa5e6660eca8d | 124 | py | Python | pyball/models/division.py | SebastianDang/PyBall | d1965aa01477b5ee0db9c0463ec584a7e3997395 | [
"MIT"
] | 74 | 2018-03-04T22:58:46.000Z | 2021-07-06T12:28:50.000Z | pyball/models/division.py | SebastianDang/PyBall | d1965aa01477b5ee0db9c0463ec584a7e3997395 | [
"MIT"
] | 18 | 2018-03-10T19:17:54.000Z | 2020-01-04T15:42:47.000Z | pyball/models/division.py | SebastianDang/PyBall | d1965aa01477b5ee0db9c0463ec584a7e3997395 | [
"MIT"
] | 13 | 2018-03-06T02:39:38.000Z | 2020-01-17T04:38:53.000Z | from dataclasses import dataclass
@dataclass
class Division:
id: int = None
name: str = None
link: str = None
| 13.777778 | 33 | 0.669355 | 16 | 124 | 5.1875 | 0.75 | 0.168675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266129 | 124 | 8 | 34 | 15.5 | 0.912088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
d4f9cced80c8234b9c7b37278cecca63d59e96de | 21 | py | Python | console/django_scantron/__init__.py | tothi/scantron | 4bad7a73e51e2784e810167ec3efed48d2cc7715 | [
"Apache-2.0"
] | null | null | null | console/django_scantron/__init__.py | tothi/scantron | 4bad7a73e51e2784e810167ec3efed48d2cc7715 | [
"Apache-2.0"
] | null | null | null | console/django_scantron/__init__.py | tothi/scantron | 4bad7a73e51e2784e810167ec3efed48d2cc7715 | [
"Apache-2.0"
] | null | null | null | __version__ = "1.37"
| 10.5 | 20 | 0.666667 | 3 | 21 | 3.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0.142857 | 21 | 1 | 21 | 21 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d4fea4d37ba994b7a0ec7d92c7d7e4f26734b2a7 | 178 | py | Python | alarmbutton_backend/alarmbutton/urls.py | Anton-Kyrychek/redbuttonbackend | e6e23f7df7b249b5c3bbd4b5a0df7bd96701dec4 | [
"MIT"
] | null | null | null | alarmbutton_backend/alarmbutton/urls.py | Anton-Kyrychek/redbuttonbackend | e6e23f7df7b249b5c3bbd4b5a0df7bd96701dec4 | [
"MIT"
] | null | null | null | alarmbutton_backend/alarmbutton/urls.py | Anton-Kyrychek/redbuttonbackend | e6e23f7df7b249b5c3bbd4b5a0df7bd96701dec4 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import *
urlpatterns = [
path('', button),
path('reg_code_check/', reg_code_check),
# path('get_buttons/', get_buttons),
]
| 17.8 | 44 | 0.662921 | 23 | 178 | 4.869565 | 0.565217 | 0.125 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185393 | 178 | 9 | 45 | 19.777778 | 0.772414 | 0.191011 | 0 | 0 | 0 | 0 | 0.105634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
076bcd070cb76c6ce08b3c638f64649439653895 | 111 | py | Python | apps/registro_hora_extra/apps.py | jdochoas99/gestao_rh | a3cf360d1dd9d825cf10768505bed235002d9fdf | [
"MIT"
] | 1 | 2020-11-08T16:44:20.000Z | 2020-11-08T16:44:20.000Z | apps/registro_hora_extra/apps.py | jdochoas99/gestao_rh | a3cf360d1dd9d825cf10768505bed235002d9fdf | [
"MIT"
] | 7 | 2020-03-01T19:08:18.000Z | 2021-09-22T18:39:28.000Z | apps/registro_hora_extra/apps.py | jdochoas99/gestao_rh | a3cf360d1dd9d825cf10768505bed235002d9fdf | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class RegistroHoraExtraConfig(AppConfig):
name = 'registro_hora_extra'
| 18.5 | 41 | 0.801802 | 12 | 111 | 7.25 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 111 | 5 | 42 | 22.2 | 0.90625 | 0 | 0 | 0 | 0 | 0 | 0.171171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0787df513d8cff63dbc5b71ffe082440ff833fbe | 86 | py | Python | thinkami_reusable_app/widgets.py | thinkAmi-sandbox/Django_form_sample | 79344495ca1d6120bd932471dd3c5edd7c2995d8 | [
"Unlicense"
] | 1 | 2016-04-12T05:58:29.000Z | 2016-04-12T05:58:29.000Z | thinkami_reusable_app/widgets.py | thinkAmi-sandbox/Django_form_sample | 79344495ca1d6120bd932471dd3c5edd7c2995d8 | [
"Unlicense"
] | null | null | null | thinkami_reusable_app/widgets.py | thinkAmi-sandbox/Django_form_sample | 79344495ca1d6120bd932471dd3c5edd7c2995d8 | [
"Unlicense"
] | null | null | null | from django import forms
class DateInput(forms.DateInput):
input_type = 'date' | 21.5 | 34 | 0.732558 | 11 | 86 | 5.636364 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 86 | 4 | 35 | 21.5 | 0.885714 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
07f9c8462dd77c24ab6f3ef9ef6295f54773f2cb | 764 | py | Python | setup.py | dddpt/dhs-scraper | fceb44bf0cb333c4de5e81b3c4abb0655a432c87 | [
"Apache-2.0"
] | 1 | 2022-01-09T23:02:19.000Z | 2022-01-09T23:02:19.000Z | setup.py | dddpt/dhs-scraper | fceb44bf0cb333c4de5e81b3c4abb0655a432c87 | [
"Apache-2.0"
] | null | null | null | setup.py | dddpt/dhs-scraper | fceb44bf0cb333c4de5e81b3c4abb0655a432c87 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
setup(
name='dhs_scraper',
version='0.2.0',
description='A Scraper for the Historical Dictionary of Switzerland (DHS)',
url='https://github.com/dddpt/dhs-scraper',
author='Didier Dupertuis',
license='Apache License 2.0',
packages=['dhs_scraper'],
install... | 29.384615 | 79 | 0.589005 | 87 | 764 | 5.126437 | 0.597701 | 0.213004 | 0.280269 | 0.29148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04363 | 0.25 | 764 | 25 | 80 | 30.56 | 0.734729 | 0 | 0 | 0.083333 | 0 | 0 | 0.554974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ed53a2d7f5738fcbb0b0f1bc32708ab5690d3ec1 | 282 | py | Python | timeflux/nodes/sequence.py | HerySon/timeflux | 01a5a27a3368afe8b0c1da475f84618e11ffec3b | [
"MIT"
] | 123 | 2019-01-09T08:57:39.000Z | 2022-03-18T18:59:51.000Z | timeflux/nodes/sequence.py | HerySon/timeflux | 01a5a27a3368afe8b0c1da475f84618e11ffec3b | [
"MIT"
] | 43 | 2019-03-08T10:16:39.000Z | 2021-06-14T17:17:18.000Z | timeflux/nodes/sequence.py | HerySon/timeflux | 01a5a27a3368afe8b0c1da475f84618e11ffec3b | [
"MIT"
] | 18 | 2019-03-26T08:51:21.000Z | 2021-10-14T23:10:33.000Z | """timeflux.nodes.sequence: generate a sequence"""
from timeflux.core.node import Node
class Sequence(Node):
def __init__(self):
"""Generate a sequence"""
self._current = 0
def update(self):
self.o.set([self._current])
self._current += 1
| 20.142857 | 50 | 0.624113 | 35 | 282 | 4.828571 | 0.542857 | 0.195266 | 0.201183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009346 | 0.241135 | 282 | 13 | 51 | 21.692308 | 0.780374 | 0.22695 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
ed692381317231ed1e397872c7b0ee8217273b3f | 42 | py | Python | docs/requirements.txt.py | vituocgia/wshop-core | 5f6d1ec9e9158f13aab136c5bd901c41e69a1dba | [
"BSD-3-Clause"
] | null | null | null | docs/requirements.txt.py | vituocgia/wshop-core | 5f6d1ec9e9158f13aab136c5bd901c41e69a1dba | [
"BSD-3-Clause"
] | null | null | null | docs/requirements.txt.py | vituocgia/wshop-core | 5f6d1ec9e9158f13aab136c5bd901c41e69a1dba | [
"BSD-3-Clause"
] | null | null | null | XX XXXXXXXXXXXXX
XX XXXXXXXXXXXXXXXXXXX
| 14 | 23 | 0.857143 | 4 | 42 | 9 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 42 | 2 | 24 | 21 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ed71f901d9247de62974ba3fbc4f6a4ed2b4a848 | 132 | py | Python | baekjoon/python/printNReverse.py | yskang/AlgorithmPractice | 31b76e38b4c2f1e3e29fb029587662a745437912 | [
"MIT"
] | null | null | null | baekjoon/python/printNReverse.py | yskang/AlgorithmPractice | 31b76e38b4c2f1e3e29fb029587662a745437912 | [
"MIT"
] | 1 | 2019-11-04T06:44:04.000Z | 2019-11-04T06:46:55.000Z | baekjoon/python/printNReverse.py | yskang/AlgorithmPractice | 31b76e38b4c2f1e3e29fb029587662a745437912 | [
"MIT"
] | null | null | null | # Print N reverse
# https://www.acmicpc.net/problem/2742
print('\n'.join(list(map(str, [x for x in range(int(input()), 0, -1)]))))
| 26.4 | 73 | 0.636364 | 24 | 132 | 3.5 | 0.875 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 0.113636 | 132 | 4 | 74 | 33 | 0.666667 | 0.393939 | 0 | 0 | 0 | 0 | 0.025974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
ed80e10af3d3979bdf38509ff25073f2e5b92de4 | 869 | py | Python | dipferromagtheory/linewidth/kubo.py | LukasBeddrich/dipferromagtheory | f59f6db41d0054385fd011d382f965e087fc6977 | [
"MIT"
] | 1 | 2021-10-14T12:22:42.000Z | 2021-10-14T12:22:42.000Z | dipferromagtheory/linewidth/kubo.py | LukasBeddrich/dipferromagtheory | f59f6db41d0054385fd011d382f965e087fc6977 | [
"MIT"
] | null | null | null | dipferromagtheory/linewidth/kubo.py | LukasBeddrich/dipferromagtheory | f59f6db41d0054385fd011d382f965e087fc6977 | [
"MIT"
] | null | null | null | """
Implements all the Kubo relaxation functions.
"""
import numpy as np
#------------------------------------------------------------------------------
from .susceptibility import Chi
#------------------------------------------------------------------------------
class Kubo():
"""
"""
def __init__(self,... | 20.690476 | 79 | 0.408516 | 79 | 869 | 4.392405 | 0.392405 | 0.100865 | 0.230548 | 0.121037 | 0.397695 | 0.397695 | 0.397695 | 0.397695 | 0.397695 | 0.397695 | 0 | 0 | 0.29229 | 869 | 42 | 80 | 20.690476 | 0.564228 | 0.32336 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.266667 | false | 0.066667 | 0.133333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
71fbad88cab7d1108903530cfb626222b96b1acb | 14,651 | py | Python | search/rm_search/ofa/nas/efficiency_predictor/latency_lookup_table.py | Ascend-Research/BlockProfile | 94a0f065e3632c204af77b736b944d30562468f9 | [
"MIT"
] | 2 | 2021-06-09T05:34:44.000Z | 2021-12-22T00:57:07.000Z | search/rm_search/ofa/nas/efficiency_predictor/latency_lookup_table.py | Ascend-Research/BlockProfile | 94a0f065e3632c204af77b736b944d30562468f9 | [
"MIT"
] | null | null | null | search/rm_search/ofa/nas/efficiency_predictor/latency_lookup_table.py | Ascend-Research/BlockProfile | 94a0f065e3632c204af77b736b944d30562468f9 | [
"MIT"
] | null | null | null | # Once for All: Train One Network and Specialize it for Efficient Deployment
# Han Cai, Chuang Gan, Tianzhe Wang, Zhekai Zhang, Song Han
# International Conference on Learning Representations (ICLR), 2020.
import yaml
from search.rm_search.ofa.utils import download_url, make_divisible, MyNetwork
__all__ = ['count_con... | 37.760309 | 108 | 0.69026 | 2,094 | 14,651 | 4.529131 | 0.097421 | 0.048714 | 0.031527 | 0.039857 | 0.789751 | 0.772459 | 0.752952 | 0.746942 | 0.697385 | 0.679249 | 0 | 0.01732 | 0.17637 | 14,651 | 387 | 109 | 37.857881 | 0.768625 | 0.090233 | 0 | 0.616725 | 0 | 0 | 0.159211 | 0.003389 | 0 | 0 | 0 | 0 | 0.006969 | 1 | 0.066202 | false | 0.003484 | 0.006969 | 0 | 0.132404 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
71fcf89a495444f09bea0fa61f506ccbc82e857c | 35 | py | Python | my_classes/Tuples/.history/name_tuples_20210721185526.py | minefarmer/deep-Dive-1 | b0675b853180c5b5781888266ea63a3793b8d855 | [
"Unlicense"
] | null | null | null | my_classes/Tuples/.history/name_tuples_20210721185526.py | minefarmer/deep-Dive-1 | b0675b853180c5b5781888266ea63a3793b8d855 | [
"Unlicense"
] | null | null | null | my_classes/Tuples/.history/name_tuples_20210721185526.py | minefarmer/deep-Dive-1 | b0675b853180c5b5781888266ea63a3793b8d855 | [
"Unlicense"
] | null | null | null | """ Tuple as Data Structure
""" | 7 | 28 | 0.571429 | 4 | 35 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257143 | 35 | 5 | 29 | 7 | 0.769231 | 0.657143 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9c112156c4513486e8baa8df7ace9446b7d06b19 | 50 | py | Python | python/caty/template/core/__init__.py | hidaruma/caty | f71d2ab0a001ea4f7a96a6e02211187ebbf54773 | [
"MIT"
] | null | null | null | python/caty/template/core/__init__.py | hidaruma/caty | f71d2ab0a001ea4f7a96a6e02211187ebbf54773 | [
"MIT"
] | null | null | null | python/caty/template/core/__init__.py | hidaruma/caty | f71d2ab0a001ea4f7a96a6e02211187ebbf54773 | [
"MIT"
] | null | null | null | from caty.template.core.vm import VirtualMachine
| 16.666667 | 48 | 0.84 | 7 | 50 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 50 | 2 | 49 | 25 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
9c1c3d0c3b993833faf3623c812cf4a116088532 | 348 | py | Python | config/proxy.py | linex-cd/puf | 6da93b485b4881c12975d5af1715480a7bffc45c | [
"Apache-2.0"
] | 5 | 2018-01-02T10:27:52.000Z | 2018-05-01T16:01:01.000Z | config/proxy.py | linex-cd/puf | 6da93b485b4881c12975d5af1715480a7bffc45c | [
"Apache-2.0"
] | null | null | null | config/proxy.py | linex-cd/puf | 6da93b485b4881c12975d5af1715480a7bffc45c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
system_proxies = None;
disable_proxies = {'http': None, 'https': None};
proxies_protocol = "http";
proxies_protocol = "socks5";
defined_proxies = {
'http': proxies_protocol+'://127.0.0.1:8888',
'https': proxies_protocol+'://127.0.0.1:8888',
};
proxies = system_proxies;
if __name_... | 17.4 | 49 | 0.643678 | 44 | 348 | 4.727273 | 0.477273 | 0.288462 | 0.182692 | 0.182692 | 0.240385 | 0.240385 | 0.240385 | 0 | 0 | 0 | 0 | 0.074576 | 0.152299 | 348 | 20 | 50 | 17.4 | 0.630508 | 0.071839 | 0 | 0 | 0 | 0 | 0.218069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
9c267b8e26b6887484ca3e1c5f28fc8d09e2adb2 | 51,943 | py | Python | pyscf/pbc/dft/numint.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | 2 | 2019-05-28T05:25:56.000Z | 2019-11-09T02:16:43.000Z | pyscf/pbc/dft/numint.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | 2 | 2019-09-16T17:58:31.000Z | 2019-09-22T17:26:01.000Z | pyscf/pbc/dft/numint.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | 1 | 2019-11-09T02:13:16.000Z | 2019-11-09T02:13:16.000Z | #!/usr/bin/env python
# Copyright 2014-2018 The PySCF Developers. 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
#
# U... | 41.355892 | 95 | 0.545637 | 7,371 | 51,943 | 3.699362 | 0.074345 | 0.014523 | 0.007041 | 0.012102 | 0.799069 | 0.763606 | 0.734964 | 0.701592 | 0.693304 | 0.658097 | 0 | 0.030061 | 0.337793 | 51,943 | 1,255 | 96 | 41.388845 | 0.762683 | 0.231889 | 0 | 0.673519 | 0 | 0 | 0.015093 | 0 | 0 | 0 | 0.000411 | 0.000797 | 0.002418 | 1 | 0.050786 | false | 0 | 0.01451 | 0.01451 | 0.129383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9c4e78aa793fe9e71558ddf4e79b4cbb63bb97b7 | 92 | py | Python | Chapter10/url_response_header.py | add54/ADMIN_SYS_PYTHON | 5a6d9705537c8663c8f7b0f45d29ccc87b6096e7 | [
"MIT"
] | 116 | 2018-12-21T01:05:47.000Z | 2022-03-23T21:41:41.000Z | Chapter10/url_response_header.py | add54/ADMIN_SYS_PYTHON | 5a6d9705537c8663c8f7b0f45d29ccc87b6096e7 | [
"MIT"
] | 2 | 2021-03-31T19:36:19.000Z | 2021-06-10T22:29:26.000Z | Chapter10/url_response_header.py | add54/ADMIN_SYS_PYTHON | 5a6d9705537c8663c8f7b0f45d29ccc87b6096e7 | [
"MIT"
] | 147 | 2018-12-19T14:10:32.000Z | 2022-03-20T11:03:20.000Z | import urllib.request
x = urllib.request.urlopen('https://www.imdb.com/')
print(x.info())
| 15.333333 | 51 | 0.706522 | 14 | 92 | 4.642857 | 0.785714 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 92 | 5 | 52 | 18.4 | 0.77381 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
9c7a8b5bba8a18f6762dd43740cf9efc305e6a7b | 201 | py | Python | algo_trading/signal_detector/apps.py | qz-fordham/algo-trading-microservice | 8778daeb90250f7c5c0e772c24d4912326850a37 | [
"MIT"
] | 1 | 2022-02-12T08:10:27.000Z | 2022-02-12T08:10:27.000Z | algo_trading/signal_detector/apps.py | qz-fordham/algo-trading-microservice | 8778daeb90250f7c5c0e772c24d4912326850a37 | [
"MIT"
] | null | null | null | algo_trading/signal_detector/apps.py | qz-fordham/algo-trading-microservice | 8778daeb90250f7c5c0e772c24d4912326850a37 | [
"MIT"
] | 1 | 2022-02-11T03:43:41.000Z | 2022-02-11T03:43:41.000Z | from django.apps import AppConfig
class SignalDetectorConfig(AppConfig):
"""
Configure app name due to it has model and need to be added into settings.py
"""
name = 'signal_detector'
| 22.333333 | 80 | 0.711443 | 27 | 201 | 5.259259 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218905 | 201 | 8 | 81 | 25.125 | 0.904459 | 0.378109 | 0 | 0 | 0 | 0 | 0.137615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
92ce567a2d03afe77e50b04ee28d7bb3a797f2dc | 83 | py | Python | api/models.py | taqueci/nomoney | 940879ffff0d17724709e642d9c1911ac4e996ce | [
"MIT"
] | null | null | null | api/models.py | taqueci/nomoney | 940879ffff0d17724709e642d9c1911ac4e996ce | [
"MIT"
] | 2 | 2020-06-06T13:08:38.000Z | 2022-02-10T14:51:16.000Z | api/models.py | taqueci/nomoney | 940879ffff0d17724709e642d9c1911ac4e996ce | [
"MIT"
] | null | null | null | # Copyright (C) Takeshi Nakamura. All rights reserved.
# Create your models here.
| 20.75 | 54 | 0.746988 | 11 | 83 | 5.636364 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168675 | 83 | 3 | 55 | 27.666667 | 0.898551 | 0.927711 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
92de015a4f1a2cf3c6c026cc1d2d5af106ab1733 | 81 | py | Python | orangecontrib/wonder/__init__.py | WONDER-project/OASYS1-WONDER | cf6e3620f95c0b14c5c33d13161f615f2ac23b14 | [
"Unlicense"
] | null | null | null | orangecontrib/wonder/__init__.py | WONDER-project/OASYS1-WONDER | cf6e3620f95c0b14c5c33d13161f615f2ac23b14 | [
"Unlicense"
] | null | null | null | orangecontrib/wonder/__init__.py | WONDER-project/OASYS1-WONDER | cf6e3620f95c0b14c5c33d13161f615f2ac23b14 | [
"Unlicense"
] | null | null | null | # namespace declaration
__import__("pkg_resources").declare_namespace(__name__)
| 20.25 | 55 | 0.839506 | 8 | 81 | 7.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061728 | 81 | 3 | 56 | 27 | 0.763158 | 0.259259 | 0 | 0 | 0 | 0 | 0.22807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
92e7f1fff1ffc27760a1647b704ce8ce49e912e8 | 296 | py | Python | cluster_tools/transformations/__init__.py | constantinpape/cluster_tools | a7e88545b58f8315723bc47583916e1900a7892d | [
"MIT"
] | 28 | 2018-12-09T22:11:52.000Z | 2022-02-01T16:48:23.000Z | cluster_tools/transformations/__init__.py | constantinpape/cluster_tools | a7e88545b58f8315723bc47583916e1900a7892d | [
"MIT"
] | 16 | 2019-01-27T10:59:33.000Z | 2022-01-11T09:09:24.000Z | cluster_tools/transformations/__init__.py | constantinpape/cluster_tools | a7e88545b58f8315723bc47583916e1900a7892d | [
"MIT"
] | 11 | 2018-12-09T22:11:56.000Z | 2021-08-08T20:10:13.000Z | from .transformation_workflows import (AffineTransformationWorkflow,
LinearTransformationWorkflow,
TransformixCoordinateTransformationWorkflow,
TransformixTransformationWorkflow)
| 59.2 | 83 | 0.560811 | 8 | 296 | 20.625 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.418919 | 296 | 4 | 84 | 74 | 0.959302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
13228fa60e5b42fe5b6db9799fb66a062e19c2d2 | 330 | py | Python | make_simples.py | seanandrews/dsalt | 797c6c085b6cd0c82fa2a7c8b47d39d49815e7a6 | [
"MIT"
] | 2 | 2021-04-28T23:12:09.000Z | 2021-05-11T19:56:07.000Z | make_simples.py | seanandrews/dsalt | 797c6c085b6cd0c82fa2a7c8b47d39d49815e7a6 | [
"MIT"
] | null | null | null | make_simples.py | seanandrews/dsalt | 797c6c085b6cd0c82fa2a7c8b47d39d49815e7a6 | [
"MIT"
] | 1 | 2021-08-11T19:07:23.000Z | 2021-08-11T19:07:23.000Z | import os, sys
import numpy as np
from csalt.synthesize import make_data
from csalt.dmr import *
make_data('simple2-default')
foo = img_cube('simple2-default')
#bar = dmr('simple2-default')
#poo = img_cube('simple2-default', cubetype='MOD', makemask=False)
#pee = img_cube('simple2-default', cubetype='RES', makemask=... | 20.625 | 66 | 0.739394 | 48 | 330 | 4.979167 | 0.520833 | 0.292887 | 0.175732 | 0.263598 | 0.242678 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017123 | 0.115152 | 330 | 15 | 67 | 22 | 0.80137 | 0.478788 | 0 | 0 | 0 | 0 | 0.180723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
134c897b4b60e462e9d81b33bba0f33350d862ae | 178 | py | Python | landing_page/models.py | luisjorge129/Real-Empire-Studio-Website | 47722e89167d7d1db7585f433fa3e6facb9b7207 | [
"MIT"
] | null | null | null | landing_page/models.py | luisjorge129/Real-Empire-Studio-Website | 47722e89167d7d1db7585f433fa3e6facb9b7207 | [
"MIT"
] | null | null | null | landing_page/models.py | luisjorge129/Real-Empire-Studio-Website | 47722e89167d7d1db7585f433fa3e6facb9b7207 | [
"MIT"
] | null | null | null | from django.db import models
from core.models import TimeStampedModel
# Create your models here.
class Subscribe(TimeStampedModel):
email = models.EmailField(unique=True)
| 19.777778 | 42 | 0.792135 | 22 | 178 | 6.409091 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140449 | 178 | 8 | 43 | 22.25 | 0.921569 | 0.134831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
134ebafde80cb62688d0b4a2b4024f6d4cb44557 | 64 | py | Python | ttracker/model/actions/float_mana.py | lmeilibr/ttracker | a06cc0876fb1898cc45b168d7d87f37089900dae | [
"MIT"
] | null | null | null | ttracker/model/actions/float_mana.py | lmeilibr/ttracker | a06cc0876fb1898cc45b168d7d87f37089900dae | [
"MIT"
] | null | null | null | ttracker/model/actions/float_mana.py | lmeilibr/ttracker | a06cc0876fb1898cc45b168d7d87f37089900dae | [
"MIT"
] | null | null | null | class FloatMana:
def __init__(self, content):
pass
| 12.8 | 32 | 0.625 | 7 | 64 | 5.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.296875 | 64 | 4 | 33 | 16 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
13559eea2d4f5a217d75e528685261402aaadf11 | 41,699 | py | Python | assets/catalogue.py | Ishayahu/MJCC-tasks | 68ea00dab543e6e4e0f6cf6b6683f3719bb6f3c0 | [
"MIT"
] | 1 | 2017-09-25T09:36:46.000Z | 2017-09-25T09:36:46.000Z | assets/catalogue.py | Ishayahu/MJCC-tasks | 68ea00dab543e6e4e0f6cf6b6683f3719bb6f3c0 | [
"MIT"
] | 40 | 2015-05-29T11:25:15.000Z | 2015-08-13T10:28:17.000Z | assets/catalogue.py | Ishayahu/MJCC-tasks | 68ea00dab543e6e4e0f6cf6b6683f3719bb6f3c0 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
# coding=<utf8>
# Оперативная память
ROM_form_factors = (('SIMM', 'SIMM'), ('DIMM', 'DIMM'), ('FB-DIMM', 'FB-DIMM'), ('SODIMM', 'SODIMM'), ('MicroDIMM', 'MicroDIMM'), ('RIMM', 'RIMM'))
ROM_type=(('DDR', 'DDR'), ('DDR2', 'DDR2'), ('DDR3', 'DDR3'), ('RDRAM', 'RDRAM'), ('SDRAM', 'SDRAM'))
ROM_firm... | 548.671053 | 5,418 | 0.579079 | 5,128 | 41,699 | 4.695008 | 0.25624 | 0.019438 | 0.02542 | 0.033893 | 0.216273 | 0.176524 | 0.135778 | 0.111563 | 0.10417 | 0.098355 | 0 | 0.104213 | 0.099547 | 41,699 | 75 | 5,419 | 555.986667 | 0.536993 | 0.003909 | 0 | 0 | 0 | 0.235294 | 0.630304 | 0.089968 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
136666bf70ede41ff7b5d9a5cdfa5ec3cdbba499 | 313 | py | Python | web/anuncios/views.py | Hercita/EXAMEN_FINAL | 8c6b1bf1b3f12089c7fd9d5c6195cbfeb9574179 | [
"CC0-1.0"
] | null | null | null | web/anuncios/views.py | Hercita/EXAMEN_FINAL | 8c6b1bf1b3f12089c7fd9d5c6195cbfeb9574179 | [
"CC0-1.0"
] | null | null | null | web/anuncios/views.py | Hercita/EXAMEN_FINAL | 8c6b1bf1b3f12089c7fd9d5c6195cbfeb9574179 | [
"CC0-1.0"
] | null | null | null | from django.shortcuts import render
from anuncios.models import Anuncio
# Create your views here.
def anuncios(request):
anuncios = Anuncio.objects.filter(status='publicado')
return render(request,'anuncios/index.html',{'anuncios':anuncios})
def home(request):
return render(request,"web/index.html") | 34.777778 | 70 | 0.763578 | 40 | 313 | 5.975 | 0.575 | 0.125523 | 0.158996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115016 | 313 | 9 | 71 | 34.777778 | 0.862816 | 0.073482 | 0 | 0 | 0 | 0 | 0.17301 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
136f09fada94189c64f402e34b48231c22930159 | 178 | py | Python | tests/utils.py | blazewicz/graphql-server-core | ad392b5406d90ae59080fc10799f8ab204c898c5 | [
"MIT"
] | null | null | null | tests/utils.py | blazewicz/graphql-server-core | ad392b5406d90ae59080fc10799f8ab204c898c5 | [
"MIT"
] | null | null | null | tests/utils.py | blazewicz/graphql-server-core | ad392b5406d90ae59080fc10799f8ab204c898c5 | [
"MIT"
] | null | null | null | def as_dicts(results):
"""Convert execution results to a list of tuples of dicts for better comparison."""
return [result.to_dict(dict_class=dict) for result in results]
| 44.5 | 87 | 0.747191 | 28 | 178 | 4.642857 | 0.678571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162921 | 178 | 3 | 88 | 59.333333 | 0.872483 | 0.432584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
13a65eaa8207c8b6d54927b4d7c39686b2417468 | 72 | py | Python | jianshu/start.py | hahahaha666/pythonpachong | 2cc8303a4baecea4bbc631e90718c49815e41133 | [
"MIT"
] | null | null | null | jianshu/start.py | hahahaha666/pythonpachong | 2cc8303a4baecea4bbc631e90718c49815e41133 | [
"MIT"
] | null | null | null | jianshu/start.py | hahahaha666/pythonpachong | 2cc8303a4baecea4bbc631e90718c49815e41133 | [
"MIT"
] | null | null | null | from scrapy import cmdline
cmdline.execute("scrapy crawl js".split()) | 36 | 42 | 0.763889 | 10 | 72 | 5.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 72 | 2 | 42 | 36 | 0.873016 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b9320ab7954f6cd61a1dca85a7f5703889696807 | 142 | py | Python | mappa/models/mappa/grupo.py | guionardo/escoteiros-mappa | e4b119d14920658cc30c89294d6bb8a34d34f684 | [
"MIT"
] | null | null | null | mappa/models/mappa/grupo.py | guionardo/escoteiros-mappa | e4b119d14920658cc30c89294d6bb8a34d34f684 | [
"MIT"
] | 2 | 2020-08-11T23:19:31.000Z | 2020-08-11T23:39:35.000Z | mappa/models/mappa/grupo.py | guionardo/escoteiros-mappa | e4b119d14920658cc30c89294d6bb8a34d34f684 | [
"MIT"
] | 2 | 2021-07-10T08:03:32.000Z | 2021-07-10T08:12:49.000Z | from base_model import BaseModel
class GrupoModel(BaseModel):
codigo: int
codigoRegiao: str
nome: str
codigoModalidade: int
| 15.777778 | 32 | 0.725352 | 16 | 142 | 6.375 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225352 | 142 | 8 | 33 | 17.75 | 0.927273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
b97d4157ecf084d92ae8388ef708720151ac37b6 | 217 | py | Python | scripts/item/consume_2438671.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 54 | 2019-04-16T23:24:48.000Z | 2021-12-18T11:41:50.000Z | scripts/item/consume_2438671.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 3 | 2019-05-19T15:19:41.000Z | 2020-04-27T16:29:16.000Z | scripts/item/consume_2438671.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 49 | 2020-11-25T23:29:16.000Z | 2022-03-26T16:20:24.000Z | # Created by MechAviv
# High Noon Damage Skin | (2438671)
if sm.addDamageSkin(2438671):
sm.chat("'High Noon Damage Skin' Damage Skin has been added to your account's damage skin collection.")
sm.consumeItem() | 43.4 | 108 | 0.732719 | 32 | 217 | 4.96875 | 0.65625 | 0.251572 | 0.176101 | 0.226415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077778 | 0.170507 | 217 | 5 | 109 | 43.4 | 0.805556 | 0.24424 | 0 | 0 | 0 | 0 | 0.574074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b9871d03c73758b1f7b2d2ce1eca4ccfe4f3c6c3 | 152 | py | Python | ej7.py | planetacomputer/pythonsecurity | 5b808512afae5bc221715f37f91a0294f4800f19 | [
"MIT"
] | null | null | null | ej7.py | planetacomputer/pythonsecurity | 5b808512afae5bc221715f37f91a0294f4800f19 | [
"MIT"
] | null | null | null | ej7.py | planetacomputer/pythonsecurity | 5b808512afae5bc221715f37f91a0294f4800f19 | [
"MIT"
] | null | null | null | f = open("months.txt")
next = f.readline()
items = []
while next != "":
print(next)
items.append(len(next))
next = f.readline()
print items | 16.888889 | 27 | 0.598684 | 21 | 152 | 4.333333 | 0.52381 | 0.10989 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 152 | 9 | 28 | 16.888889 | 0.758333 | 0 | 0 | 0.25 | 0 | 0 | 0.065359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.25 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b99756b778539c5d05b8a9f3edded5f59cbcc3ef | 838 | py | Python | src/garage/torch/__init__.py | maciejwolczyk/garage-1 | c78843115a51d63f86bca0f3518d8f68fb81bce3 | [
"MIT"
] | null | null | null | src/garage/torch/__init__.py | maciejwolczyk/garage-1 | c78843115a51d63f86bca0f3518d8f68fb81bce3 | [
"MIT"
] | null | null | null | src/garage/torch/__init__.py | maciejwolczyk/garage-1 | c78843115a51d63f86bca0f3518d8f68fb81bce3 | [
"MIT"
] | 1 | 2020-07-02T16:02:22.000Z | 2020-07-02T16:02:22.000Z | """PyTorch-backed modules and algorithms."""
from garage.torch._functions import compute_advantages
from garage.torch._functions import dict_np_to_torch
from garage.torch._functions import filter_valids
from garage.torch._functions import flatten_batch
from garage.torch._functions import global_device
from garage.torch... | 44.105263 | 79 | 0.831742 | 121 | 838 | 5.322314 | 0.272727 | 0.170807 | 0.256211 | 0.409938 | 0.540373 | 0.121118 | 0.121118 | 0.121118 | 0 | 0 | 0 | 0 | 0.090692 | 838 | 18 | 80 | 46.555556 | 0.845144 | 0.045346 | 0 | 0 | 0 | 0 | 0.198992 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6875 | 0 | 0.6875 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
b99bd1c7c9b2cd3e05cbbb493f6bb166bc1b7f53 | 82 | py | Python | apps.py | sursum/buckanjaren | 945454add4169fd7eef3ee372f3672de2f623ce6 | [
"MIT"
] | null | null | null | apps.py | sursum/buckanjaren | 945454add4169fd7eef3ee372f3672de2f623ce6 | [
"MIT"
] | 6 | 2021-02-08T20:20:47.000Z | 2022-03-11T23:19:29.000Z | apps.py | sursum/buckanjaren | 945454add4169fd7eef3ee372f3672de2f623ce6 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class BucConfig(AppConfig):
name = 'buc'
| 13.666667 | 33 | 0.719512 | 10 | 82 | 5.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195122 | 82 | 6 | 34 | 13.666667 | 0.893939 | 0 | 0 | 0 | 0 | 0 | 0.036145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b9d71910a35b738d81e58ebac3076fc1c48d77eb | 296 | py | Python | utils/env_vars.py | yu-iskw/elementary | 6677fbfed60b88727dd453cbb4e3e34fb5d72738 | [
"Apache-2.0"
] | 282 | 2022-02-01T11:43:04.000Z | 2022-03-31T15:31:15.000Z | utils/env_vars.py | yu-iskw/elementary | 6677fbfed60b88727dd453cbb4e3e34fb5d72738 | [
"Apache-2.0"
] | 17 | 2021-09-27T12:15:20.000Z | 2022-01-30T10:38:39.000Z | utils/env_vars.py | yu-iskw/elementary | 6677fbfed60b88727dd453cbb4e3e34fb5d72738 | [
"Apache-2.0"
] | 12 | 2022-02-01T16:20:20.000Z | 2022-03-28T18:10:35.000Z | import os
def is_flight_mode_on() -> bool:
return is_env_var_on('FLIGHTMODE')
def is_debug_mode_on() -> bool:
return is_env_var_on('DEBUG')
def is_env_var_on(env_var) -> bool:
if os.getenv(env_var) == '1':
print(env_var, ' is on!')
return True
return False
| 16.444444 | 38 | 0.641892 | 49 | 296 | 3.510204 | 0.387755 | 0.209302 | 0.139535 | 0.174419 | 0.302326 | 0.302326 | 0.302326 | 0.302326 | 0 | 0 | 0 | 0.004405 | 0.233108 | 296 | 17 | 39 | 17.411765 | 0.753304 | 0 | 0 | 0 | 0 | 0 | 0.077703 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0.2 | 0.8 | 0.1 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
b9f6e165ad82958981e471a17ec5b5f3639d137c | 221 | py | Python | py/tests/testPetriDish/test_PetriDish.py | zcemycl/algoTest | 9518fb2b60fd83c85aeb2ab809ff647aaf643f0a | [
"MIT"
] | 1 | 2022-01-26T16:33:45.000Z | 2022-01-26T16:33:45.000Z | py/tests/testPetriDish/test_PetriDish.py | zcemycl/algoTest | 9518fb2b60fd83c85aeb2ab809ff647aaf643f0a | [
"MIT"
] | null | null | null | py/tests/testPetriDish/test_PetriDish.py | zcemycl/algoTest | 9518fb2b60fd83c85aeb2ab809ff647aaf643f0a | [
"MIT"
] | 1 | 2022-01-26T16:35:44.000Z | 2022-01-26T16:35:44.000Z |
import unittest
from parameterized import parameterized as p
from solns.petriDish.petriDish import *
class UnitTest_PetriDish(unittest.TestCase):
@p.expand([
[]
])
def test_naive(self):
pass
| 18.416667 | 44 | 0.692308 | 25 | 221 | 6.04 | 0.64 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226244 | 221 | 11 | 45 | 20.090909 | 0.883041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.333333 | 0 | 0.555556 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
6a3316aa9fc91619d484ef583e55fcfec5c46624 | 191 | py | Python | server/rest/views/__init__.py | nking1232/html5-msoy | 6e026f1989b15310ad67c050beb69a168c3bdd5f | [
"MIT"
] | null | null | null | server/rest/views/__init__.py | nking1232/html5-msoy | 6e026f1989b15310ad67c050beb69a168c3bdd5f | [
"MIT"
] | null | null | null | server/rest/views/__init__.py | nking1232/html5-msoy | 6e026f1989b15310ad67c050beb69a168c3bdd5f | [
"MIT"
] | 2 | 2020-12-18T19:19:38.000Z | 2020-12-18T19:53:56.000Z | from .session import SessionView
from .login import LoginView
from .signup import SignupView
from .rooms import RoomsView
from .profiles import ProfilesView
from .cors_serve import cors_serve | 31.833333 | 34 | 0.848168 | 26 | 191 | 6.153846 | 0.538462 | 0.1125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120419 | 191 | 6 | 35 | 31.833333 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
6a49ccf4165bd2b248fc471fe1df7dcad7da30d0 | 844 | py | Python | main.py | claudiotorresarbe/endereco | 301252cf5abd5accaa2e7cd59b5a1b67af4cd164 | [
"MIT"
] | null | null | null | main.py | claudiotorresarbe/endereco | 301252cf5abd5accaa2e7cd59b5a1b67af4cd164 | [
"MIT"
] | null | null | null | main.py | claudiotorresarbe/endereco | 301252cf5abd5accaa2e7cd59b5a1b67af4cd164 | [
"MIT"
] | null | null | null | from endereco import Endereco
data = Endereco('59082310')
print(data.mensagem())
print(data.total())
print(data.resultados())
print(data.resultados()[0]['uf'])
print(data.resultados()[0]['localidade'])
print(data.resultados()[0]['locNoSem'])
print(data.resultados()[0]['locNu'])
print(data.resultados(... | 31.259259 | 56 | 0.700237 | 96 | 844 | 6.15625 | 0.270833 | 0.28934 | 0.546531 | 0.541455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030496 | 0.067536 | 844 | 26 | 57 | 32.461538 | 0.720457 | 0 | 0 | 0 | 0 | 0 | 0.223716 | 0.055012 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.047619 | 0.904762 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
dbe7b6d5b0f3f09e66edd4ec4107929699ec0e66 | 141 | py | Python | flask_wow/templates/app_tmp/app_name/__init__.py | ganquan881205/Flask-Wow | 9a00cf2cf0a58bb99fee9e05b15194ab4bc6d5e3 | [
"BSD-3-Clause"
] | 3 | 2020-06-08T02:57:43.000Z | 2020-06-08T03:31:32.000Z | flask_wow/templates/app_tmp/app_name/__init__.py | ganquan881205/Flask-Wow | 9a00cf2cf0a58bb99fee9e05b15194ab4bc6d5e3 | [
"BSD-3-Clause"
] | null | null | null | flask_wow/templates/app_tmp/app_name/__init__.py | ganquan881205/Flask-Wow | 9a00cf2cf0a58bb99fee9e05b15194ab4bc6d5e3 | [
"BSD-3-Clause"
] | null | null | null | from flask import Blueprint
from .views import Hello
bp = Blueprint('bp', __name__)
bp.add_url_rule('/', view_func=Hello.as_view('hello')) | 20.142857 | 54 | 0.744681 | 22 | 141 | 4.409091 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113475 | 141 | 7 | 54 | 20.142857 | 0.776 | 0 | 0 | 0 | 0 | 0 | 0.056338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
e009ea574c154525e4dd40299cbd8c1e8fbb9435 | 7,044 | py | Python | app/migrations/0001_initial.py | raptor419/AMRTrack-AIIMS | 7e917d208b407cc2fe4e129f8bc60b7cb315e00d | [
"MIT"
] | null | null | null | app/migrations/0001_initial.py | raptor419/AMRTrack-AIIMS | 7e917d208b407cc2fe4e129f8bc60b7cb315e00d | [
"MIT"
] | null | null | null | app/migrations/0001_initial.py | raptor419/AMRTrack-AIIMS | 7e917d208b407cc2fe4e129f8bc60b7cb315e00d | [
"MIT"
] | null | null | null | # Generated by Django 2.1.1 on 2020-11-08 16:10
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Hospital',
fields=[
('id', models.AutoField... | 57.737705 | 114 | 0.569989 | 581 | 7,044 | 6.827883 | 0.2358 | 0.37207 | 0.516763 | 0.537434 | 0.430048 | 0.118477 | 0.039829 | 0.039829 | 0.039829 | 0.039829 | 0 | 0.023605 | 0.272288 | 7,044 | 121 | 115 | 58.214876 | 0.750293 | 0.006388 | 0 | 0.105263 | 1 | 0 | 0.17093 | 0.040589 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.008772 | 0 | 0.04386 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e01c8ef53b73569817f64dcd76fcd94490df4064 | 283 | py | Python | pyefun/wxefun/component/Image.py | nuo010/pyefun | c1c4dfcfd382a67df005a66958da95aa13c30686 | [
"Apache-2.0"
] | 94 | 2021-05-19T04:09:29.000Z | 2022-03-27T04:02:30.000Z | pyefun/wxefun/component/Image.py | 1431241631/pyefun | ac2290d4bcc8de16c195d2782f3eacd26e5e6ed4 | [
"Apache-2.0"
] | 11 | 2021-05-22T06:44:19.000Z | 2021-12-27T11:16:06.000Z | pyefun/wxefun/component/Image.py | 1431241631/pyefun | ac2290d4bcc8de16c195d2782f3eacd26e5e6ed4 | [
"Apache-2.0"
] | 21 | 2021-05-22T21:08:09.000Z | 2022-02-24T02:39:06.000Z | import wx.lib.agw.floatspin as floatspin
from .wxControl import *
class 图片操作(wx.Image, 公用方法):
pass
def 设置宽度高度(self, width, height, quality=0):
return 图片操作(self.Scale(width, height, quality))
def 取位图(self, depth=-1):
return self.ConvertToBitmap(depth)
| 21.769231 | 55 | 0.678445 | 39 | 283 | 4.923077 | 0.666667 | 0.114583 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008889 | 0.204947 | 283 | 12 | 56 | 23.583333 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0.25 | 0.25 | 0.875 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 4 |
e0210ead1900fb0055dd06f4dc884bd49421183b | 58 | py | Python | debug_serv.py | usermuser/chelhack | aa6c1a2f6f45e79a01aed2308676415c49228425 | [
"Apache-2.0"
] | null | null | null | debug_serv.py | usermuser/chelhack | aa6c1a2f6f45e79a01aed2308676415c49228425 | [
"Apache-2.0"
] | 8 | 2019-12-26T17:34:23.000Z | 2022-02-26T20:48:37.000Z | debug_serv.py | usermuser/chelhack | aa6c1a2f6f45e79a01aed2308676415c49228425 | [
"Apache-2.0"
] | 1 | 2019-11-30T05:50:53.000Z | 2019-11-30T05:50:53.000Z | from waitress import serve
serve(api-v1, listen='*:8080')
| 19.333333 | 30 | 0.741379 | 9 | 58 | 4.777778 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096154 | 0.103448 | 58 | 2 | 31 | 29 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e069ac1a0d004b32c82e4147a7acacaff4a6bf04 | 517 | py | Python | basic/views.py | sanjarbek16/libercen | bccfdfbfbe6dde6c97ee12cf9caca99e5e5136ca | [
"MIT"
] | 2 | 2020-06-21T11:17:37.000Z | 2020-11-01T18:40:20.000Z | basic/views.py | sanjarbek16/libercen | bccfdfbfbe6dde6c97ee12cf9caca99e5e5136ca | [
"MIT"
] | null | null | null | basic/views.py | sanjarbek16/libercen | bccfdfbfbe6dde6c97ee12cf9caca99e5e5136ca | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from common.decorators import ajax_required
# Welcome page view
def welcome(request):
return render(request, 'basic/welcome.html',)
# privacy policy
def policy(request):
return render(request, 'basic/privacy-polic... | 22.478261 | 60 | 0.704062 | 63 | 517 | 5.68254 | 0.380952 | 0.100559 | 0.159218 | 0.201117 | 0.173184 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199226 | 517 | 23 | 61 | 22.478261 | 0.864734 | 0.061896 | 0 | 0 | 0 | 0 | 0.138716 | 0.05176 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.214286 | 0.142857 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
e070cd546596d4e39a1adf80e04158965281214e | 3,691 | py | Python | tests/db_table_test.py | davvid/skeletor | 2673ce418145ec0b594f2993cba7fd889fdaa349 | [
"BSD-3-Clause"
] | 2 | 2016-07-28T06:42:36.000Z | 2018-10-30T08:19:55.000Z | tests/db_table_test.py | davvid/skeletor | 2673ce418145ec0b594f2993cba7fd889fdaa349 | [
"BSD-3-Clause"
] | null | null | null | tests/db_table_test.py | davvid/skeletor | 2673ce418145ec0b594f2993cba7fd889fdaa349 | [
"BSD-3-Clause"
] | null | null | null | import unittest
from tests import testlib
from skeletor.db import table
class DBTableTestCase(unittest.TestCase):
def setUp(self):
self.name = 'test'
self.email = 'test@example.com'
self.context = testlib.create_database(self)
self.table = table.Table('users')
def test_new_... | 35.152381 | 80 | 0.636684 | 482 | 3,691 | 4.773859 | 0.103734 | 0.167319 | 0.164276 | 0.189048 | 0.790526 | 0.758801 | 0.701434 | 0.698392 | 0.661452 | 0.650152 | 0 | 0.003792 | 0.214034 | 3,691 | 104 | 81 | 35.490385 | 0.789383 | 0 | 0 | 0.417722 | 0 | 0 | 0.047142 | 0 | 0 | 0 | 0 | 0 | 0.253165 | 1 | 0.126582 | false | 0 | 0.037975 | 0 | 0.177215 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e073cb600e6d7e293d488ebb12f47bc1559840dc | 295 | py | Python | ex2.py | wf539/LearnPythonHardWay | 854fb5324465f49d163c901c6e2eee5788df172a | [
"MIT"
] | null | null | null | ex2.py | wf539/LearnPythonHardWay | 854fb5324465f49d163c901c6e2eee5788df172a | [
"MIT"
] | null | null | null | ex2.py | wf539/LearnPythonHardWay | 854fb5324465f49d163c901c6e2eee5788df172a | [
"MIT"
] | null | null | null | # A comment, so you can read your program later.
# Anything after the # is ignored by Python.
print "I could have code like this." # And the comment after is ignored.
# You could also use a comment to "disable" or comment out a piece of code:
# print "This won't run."
print "This will run."
| 29.5 | 75 | 0.715254 | 53 | 295 | 3.981132 | 0.679245 | 0.075829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20678 | 295 | 9 | 76 | 32.777778 | 0.901709 | 0.745763 | 0 | 0 | 0 | 0 | 0.617647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 1 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
0eefcba7526a23d2afdfd64156ae27ec0f5a3b12 | 154 | py | Python | mkdocs_github_dashboard/__init__.py | OUXT-Polaris/mkdocs_github_dashboard | 121d2cc0740c945ada34b8f2a0f7a9b01b36312c | [
"Apache-2.0"
] | 1 | 2021-12-07T14:09:04.000Z | 2021-12-07T14:09:04.000Z | mkdocs_github_dashboard/__init__.py | OUXT-Polaris/mkdocs_github_dashboard | 121d2cc0740c945ada34b8f2a0f7a9b01b36312c | [
"Apache-2.0"
] | null | null | null | mkdocs_github_dashboard/__init__.py | OUXT-Polaris/mkdocs_github_dashboard | 121d2cc0740c945ada34b8f2a0f7a9b01b36312c | [
"Apache-2.0"
] | null | null | null | """Top-level package for mkdocs-github-dashboard."""
__author__ = """mkdocs-github-dashboard"""
__email__ = 'ms.kataoka@gmail.com'
__version__ = '0.1.0'
| 25.666667 | 52 | 0.714286 | 20 | 154 | 4.9 | 0.8 | 0.244898 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021429 | 0.090909 | 154 | 5 | 53 | 30.8 | 0.678571 | 0.298701 | 0 | 0 | 0 | 0 | 0.470588 | 0.22549 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
16110a6b2cfb8d175e8fe75cf237ee322614407f | 258 | py | Python | python/src/main/python/pyalink/alink/stream/display_utils/abstract_display_service.py | wenwei8268/Alink | c00702538c95a32403985ebd344eb6aeb81749a7 | [
"Apache-2.0"
] | null | null | null | python/src/main/python/pyalink/alink/stream/display_utils/abstract_display_service.py | wenwei8268/Alink | c00702538c95a32403985ebd344eb6aeb81749a7 | [
"Apache-2.0"
] | null | null | null | python/src/main/python/pyalink/alink/stream/display_utils/abstract_display_service.py | wenwei8268/Alink | c00702538c95a32403985ebd344eb6aeb81749a7 | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractmethod
class AbstractDisplayService(ABC):
@abstractmethod
def accept_items(self, items):
raise Exception("Not implemented.")
@abstractmethod
def stop(self):
raise Exception("Not implemented.")
| 19.846154 | 43 | 0.693798 | 26 | 258 | 6.846154 | 0.576923 | 0.191011 | 0.191011 | 0.314607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217054 | 258 | 12 | 44 | 21.5 | 0.881188 | 0 | 0 | 0.5 | 0 | 0 | 0.124031 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
16267d89f5d749ebc156b05b6baeedf634ed6e6a | 164 | py | Python | neurotic/testing/fixtures.py | necromuralist/Neurotic-Networking | 20f46dec5d890bd57abd802b6ebf219f0e8e7611 | [
"MIT"
] | null | null | null | neurotic/testing/fixtures.py | necromuralist/Neurotic-Networking | 20f46dec5d890bd57abd802b6ebf219f0e8e7611 | [
"MIT"
] | 3 | 2021-01-11T01:42:31.000Z | 2021-11-10T19:44:25.000Z | neurotic/testing/fixtures.py | necromuralist/Neurotic-Networking | 20f46dec5d890bd57abd802b6ebf219f0e8e7611 | [
"MIT"
] | null | null | null | import pytest
class Katamari:
"""A holder of things"""
@pytest.fixture
def katamari():
"""fixture to generate a Katamari object"""
return Katamari()
| 14.909091 | 47 | 0.670732 | 20 | 164 | 5.5 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207317 | 164 | 10 | 48 | 16.4 | 0.846154 | 0.341463 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.8 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
164374e385b97e4247fac322ddb17d9fb1e7e0c7 | 803 | py | Python | smartpms/config/smartpms.py | vignesharumainayagam/smartpms-latest | 9a106bdfb9dc039a57e4616e1b0981ba5fcf3ebf | [
"MIT"
] | null | null | null | smartpms/config/smartpms.py | vignesharumainayagam/smartpms-latest | 9a106bdfb9dc039a57e4616e1b0981ba5fcf3ebf | [
"MIT"
] | null | null | null | smartpms/config/smartpms.py | vignesharumainayagam/smartpms-latest | 9a106bdfb9dc039a57e4616e1b0981ba5fcf3ebf | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"label": _("Vessel"),
"items": [
{
"type": "doctype",
"name": "Vessel"
},
]
},
{
"label": _("Masters"),
"items": [
{
"type": "doctype",
"name": "Functional Block"
},
... | 13.610169 | 39 | 0.418431 | 58 | 803 | 5.62069 | 0.482759 | 0.236196 | 0.322086 | 0.184049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.373599 | 803 | 58 | 40 | 13.844828 | 0.648111 | 0 | 0 | 0.192308 | 0 | 0 | 0.3375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | true | 0 | 0.038462 | 0.019231 | 0.076923 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1661c96e5e9f895fe06313fe664ad35b057de5a6 | 252 | py | Python | models/likes.py | JesperKauppinen/paint-webapp | 772ac2b071c3cb1a984673c2f55f1de8d7692d2f | [
"MIT"
] | null | null | null | models/likes.py | JesperKauppinen/paint-webapp | 772ac2b071c3cb1a984673c2f55f1de8d7692d2f | [
"MIT"
] | 4 | 2021-11-27T04:02:58.000Z | 2021-12-02T16:43:07.000Z | models/likes.py | JesperKauppinen/paint-webapp | 772ac2b071c3cb1a984673c2f55f1de8d7692d2f | [
"MIT"
] | null | null | null | from . import db
class Likes(db.Model):
__tablename__ = 'likes'
id = db.Column(db.Integer, primary_key=True)
user_id = db.Column(db.Integer, db.ForeignKey('users.id'))
artwork_id = db.Column(db.Integer, db.ForeignKey('artworks.id'))
| 25.2 | 68 | 0.686508 | 37 | 252 | 4.486486 | 0.486486 | 0.072289 | 0.180723 | 0.216867 | 0.487952 | 0.373494 | 0.373494 | 0 | 0 | 0 | 0 | 0 | 0.15873 | 252 | 9 | 69 | 28 | 0.783019 | 0 | 0 | 0 | 0 | 0 | 0.095618 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
1664da716517f8370b3bacbda5fb0937db565bc2 | 231 | py | Python | Easy/find-n-unique-integers-sum-up-to-zero.py | BrynjarGeir/LeetCode | dbd57e645c5398dec538b6466215b61491c8d1d9 | [
"MIT"
] | null | null | null | Easy/find-n-unique-integers-sum-up-to-zero.py | BrynjarGeir/LeetCode | dbd57e645c5398dec538b6466215b61491c8d1d9 | [
"MIT"
] | null | null | null | Easy/find-n-unique-integers-sum-up-to-zero.py | BrynjarGeir/LeetCode | dbd57e645c5398dec538b6466215b61491c8d1d9 | [
"MIT"
] | null | null | null | class Solution:
def sumZero(self, n: int) -> List[int]:
ans = []
for i in range(n//2):
ans.append(i+1)
ans.append(-i-1)
if n % 2 != 0:
ans.append(0)
return ans | 25.666667 | 43 | 0.4329 | 33 | 231 | 3.030303 | 0.575758 | 0.27 | 0.2 | 0.22 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044776 | 0.419913 | 231 | 9 | 44 | 25.666667 | 0.701493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1668eae29621fd8db128fcf48b44c911b38a9b6e | 53,115 | py | Python | ismore/ismore_bmi_lib.py | srsummerson/bmi_python | 7eca891f078ce15b2b9cf85f1309346d6fb9fccb | [
"Apache-2.0"
] | null | null | null | ismore/ismore_bmi_lib.py | srsummerson/bmi_python | 7eca891f078ce15b2b9cf85f1309346d6fb9fccb | [
"Apache-2.0"
] | 12 | 2020-07-31T18:58:31.000Z | 2022-02-10T14:36:00.000Z | ismore/ismore_bmi_lib.py | srsummerson/bmi_python | 7eca891f078ce15b2b9cf85f1309346d6fb9fccb | [
"Apache-2.0"
] | 4 | 2020-03-06T15:39:00.000Z | 2021-05-26T17:03:21.000Z | '''
BMI code specific to the ISMORE project
'''
import numpy as np
from riglib.stereo_opengl import ik
from riglib.bmi import feedback_controllers
from riglib.bmi.state_space_models import State, StateSpace, offset_state, _gen_A
from riglib.bmi.assist import Assister
from riglib.bmi.clda import Learner, FeedbackContro... | 41.142525 | 145 | 0.591754 | 6,988 | 53,115 | 4.226388 | 0.060675 | 0.026952 | 0.030067 | 0.027358 | 0.779779 | 0.742297 | 0.709995 | 0.690018 | 0.668552 | 0.64722 | 0 | 0.046647 | 0.252113 | 53,115 | 1,290 | 146 | 41.174419 | 0.696833 | 0.201902 | 0 | 0.501543 | 0 | 0 | 0.033696 | 0.002347 | 0 | 0 | 0 | 0.00155 | 0 | 0 | null | null | 0.012346 | 0.020062 | null | null | 0.006173 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
16b88bd0e3151002d508f0086e766d996a11eac0 | 125 | py | Python | WebScrapingWithPython/SomeCode/Wiki.py | broccolii/LearnPython | fd48062d065d5475f5197836942b87db976f1de8 | [
"MIT"
] | null | null | null | WebScrapingWithPython/SomeCode/Wiki.py | broccolii/LearnPython | fd48062d065d5475f5197836942b87db976f1de8 | [
"MIT"
] | null | null | null | WebScrapingWithPython/SomeCode/Wiki.py | broccolii/LearnPython | fd48062d065d5475f5197836942b87db976f1de8 | [
"MIT"
] | null | null | null | from urllib.request import urlopen
from bs4 import BeautifulSoup
html = urlopen("http://en.wikipedia.org/wiki/kevin_bacon")
| 25 | 58 | 0.8 | 18 | 125 | 5.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 0.096 | 125 | 4 | 59 | 31.25 | 0.867257 | 0 | 0 | 0 | 0 | 0 | 0.32 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
bc41679ce17c43ca6334413d5f67f9a25fb22b80 | 282 | py | Python | neurolab/data/__init__.py | udday2014/HebbianLearning | e0d17e53e3db8ce54b8fdd901702d2d6e0633732 | [
"MIT"
] | 6 | 2020-01-08T05:36:09.000Z | 2022-02-09T21:07:04.000Z | neurolab/data/__init__.py | GabrieleLagani/HebbianPCA | 2736bb3017fa30ad2c160c891d42361bc5894df5 | [
"MIT"
] | null | null | null | neurolab/data/__init__.py | GabrieleLagani/HebbianPCA | 2736bb3017fa30ad2c160c891d42361bc5894df5 | [
"MIT"
] | 2 | 2022-03-04T08:28:44.000Z | 2022-03-16T19:00:34.000Z | from .data import *
from .custaugm import *
from .mnist import *
from .smallnorb import *
from .eth80 import *
from .stl10 import *
from .cifar10 import *
from .cifar100 import *
from .tinyimagenet import *
from .caltech101 import *
from .caltech256 import *
from .imagenet import * | 23.5 | 27 | 0.748227 | 36 | 282 | 5.861111 | 0.388889 | 0.521327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06383 | 0.166667 | 282 | 12 | 28 | 23.5 | 0.834043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
bc4552cebcdad390ad26e38d1cac9fdb99e9fb21 | 8,995 | py | Python | sdk/python/pulumi_azure_native/apimanagement/v20170301/__init__.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/apimanagement/v20170301/__init__.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/apimanagement/v20170301/__init__.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | null | null | null | # 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! ***
# Export this package's modules as members:
from ._enums import *
from .api import *
from .api_diagnostic import *
from .api_diagnostic_logger import *... | 49.972222 | 104 | 0.701056 | 972 | 8,995 | 6.359054 | 0.133745 | 0.119722 | 0.155315 | 0.213558 | 0.553794 | 0.457208 | 0.436499 | 0.436499 | 0.436499 | 0.436499 | 0 | 0.044845 | 0.204225 | 8,995 | 179 | 105 | 50.251397 | 0.818664 | 0.022568 | 0 | 0 | 1 | 0 | 0.225219 | 0.220781 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018072 | false | 0 | 0.463855 | 0.006024 | 0.73494 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
bc517ab5b846e6136072448bb655177e1efa57fc | 86 | py | Python | DEV-CONN/DC_project/DC_app/apps.py | stali1234/dev-conn | 55c0ada5b44902c092ffa4250d5561d8b5f3dd11 | [
"Apache-2.0"
] | 2 | 2020-10-08T05:44:30.000Z | 2021-01-02T02:41:13.000Z | DEV-CONN/DC_project/DC_app/apps.py | rayansailani/DEV-CONN | 9ee97ee7c2e7bcb5651ffa7c94b85b16532b19a5 | [
"Apache-2.0"
] | 5 | 2021-03-19T02:01:15.000Z | 2022-03-12T00:24:05.000Z | DEV-CONN/DC_project/DC_app/apps.py | rayansailani/DEV-CONN | 9ee97ee7c2e7bcb5651ffa7c94b85b16532b19a5 | [
"Apache-2.0"
] | 3 | 2020-07-27T16:44:41.000Z | 2020-09-03T15:26:22.000Z | from django.apps import AppConfig
class DcAppConfig(AppConfig):
name = 'DC_app'
| 14.333333 | 33 | 0.744186 | 11 | 86 | 5.727273 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174419 | 86 | 5 | 34 | 17.2 | 0.887324 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
bc702a15df9e69fbf5c71a796bacdf33181a0c2e | 1,206 | py | Python | user.py | Sundaybrian/python-pass-locker | 62c52a17ff1bbe97cd453fbf38b93ff17f02ed6d | [
"MIT"
] | null | null | null | user.py | Sundaybrian/python-pass-locker | 62c52a17ff1bbe97cd453fbf38b93ff17f02ed6d | [
"MIT"
] | null | null | null | user.py | Sundaybrian/python-pass-locker | 62c52a17ff1bbe97cd453fbf38b93ff17f02ed6d | [
"MIT"
] | null | null | null |
class User:
'''
Class that generates a new instance of a passlocker user
__init__method that helps us to define properties for our objects
Args:
name:New user name
password:New user password
'''
user_list=[]
def __init__(self,name,password):
self.na... | 21.157895 | 96 | 0.572139 | 148 | 1,206 | 4.560811 | 0.405405 | 0.059259 | 0.032593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.366501 | 1,206 | 56 | 97 | 21.535714 | 0.883508 | 0.435323 | 0 | 0.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
bc71a7bfdcf617047e464095fa4065f3696b996c | 60 | py | Python | execicios/ex047/Tparaes.py | Israel97f/Exercicios-de-Python | 5d3054187977deeb3fadbd7bb1cdee035c609a61 | [
"MIT"
] | null | null | null | execicios/ex047/Tparaes.py | Israel97f/Exercicios-de-Python | 5d3054187977deeb3fadbd7bb1cdee035c609a61 | [
"MIT"
] | null | null | null | execicios/ex047/Tparaes.py | Israel97f/Exercicios-de-Python | 5d3054187977deeb3fadbd7bb1cdee035c609a61 | [
"MIT"
] | null | null | null | for c in range(2, 50, 2):
print('\033[36m{}'.format(c))
| 20 | 33 | 0.55 | 12 | 60 | 2.75 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183673 | 0.183333 | 60 | 2 | 34 | 30 | 0.489796 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
bc807a7b4a85abe6e70fd0d228a90dc018aa7635 | 495 | py | Python | MADDPG/maddpg-master/maddpg/__init__.py | lqy0057/MADDPG-Congestion-Control-Based-on-OMNET- | 495f817b3e7342a66315848a0a50acb569dba863 | [
"MIT"
] | 3 | 2020-07-11T14:44:28.000Z | 2020-08-27T03:35:00.000Z | MADDPG/maddpg-master/maddpg/__init__.py | QuanyiLi/MADDPG-Congestion-Control-Based-on-OMNETPP | 495f817b3e7342a66315848a0a50acb569dba863 | [
"MIT"
] | null | null | null | MADDPG/maddpg-master/maddpg/__init__.py | QuanyiLi/MADDPG-Congestion-Control-Based-on-OMNETPP | 495f817b3e7342a66315848a0a50acb569dba863 | [
"MIT"
] | null | null | null | class AgentTrainer(object):#作为MADDPGtrainer的父类,以下函数在子类中被重构
def __init__(self, name, model, obs_shape, act_space, args):
raise NotImplemented()
def action(self, obs):
raise NotImplemented()#如果这个方法行不通就找别的方法来完成https://www.jianshu.com/p/a8613baefa30
def process_experience(self, obs, act, rew, ... | 33 | 87 | 0.69899 | 53 | 495 | 6.377358 | 0.622642 | 0.281065 | 0.195266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015113 | 0.19798 | 495 | 15 | 88 | 33 | 0.836272 | 0.173737 | 0 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.454545 | false | 0 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
bc8427c20aead97423ed8cfaf63fa56bb0af2671 | 67 | py | Python | VacationPy/api_keys.py | supraja2710/python-api-challenge | 2fc1dd541f8516c16b1f61e385ca74223893556a | [
"ADSL"
] | null | null | null | VacationPy/api_keys.py | supraja2710/python-api-challenge | 2fc1dd541f8516c16b1f61e385ca74223893556a | [
"ADSL"
] | null | null | null | VacationPy/api_keys.py | supraja2710/python-api-challenge | 2fc1dd541f8516c16b1f61e385ca74223893556a | [
"ADSL"
] | null | null | null | # Google API Key
g_key = "AIzaSyAJC6CU7i-v4drBB3zR630wB6FgxucUFf8"
| 22.333333 | 49 | 0.820896 | 7 | 67 | 7.714286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 0.104478 | 67 | 2 | 50 | 33.5 | 0.75 | 0.208955 | 0 | 0 | 0 | 0 | 0.764706 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
bc8e0ed94d6e8e7485a7c4db7ef6cd101fd0c3a0 | 132 | py | Python | Easy/461. Hamming Distance/solution (3).py | czs108/LeetCode-Solutions | 889f5b6a573769ad077a6283c058ed925d52c9ec | [
"MIT"
] | 3 | 2020-05-09T12:55:09.000Z | 2022-03-11T18:56:05.000Z | Easy/461. Hamming Distance/solution (3).py | czs108/LeetCode-Solutions | 889f5b6a573769ad077a6283c058ed925d52c9ec | [
"MIT"
] | null | null | null | Easy/461. Hamming Distance/solution (3).py | czs108/LeetCode-Solutions | 889f5b6a573769ad077a6283c058ed925d52c9ec | [
"MIT"
] | 1 | 2022-03-11T18:56:16.000Z | 2022-03-11T18:56:16.000Z | # 461. Hamming Distance
class Solution:
def hammingDistance(self, x: int, y: int) -> int:
return bin(x ^ y).count('1') | 22 | 53 | 0.613636 | 19 | 132 | 4.263158 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039604 | 0.234848 | 132 | 6 | 54 | 22 | 0.762376 | 0.159091 | 0 | 0 | 0 | 0 | 0.009091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
bc93d094534321665a4f11464278c77f0d9d1b52 | 81 | py | Python | webapp/dog_breed_app.py | abdullahtarek/dog_breed_webapp | 1c64a0c45bb8e2d993255bd98144e96b5163fde1 | [
"MIT"
] | null | null | null | webapp/dog_breed_app.py | abdullahtarek/dog_breed_webapp | 1c64a0c45bb8e2d993255bd98144e96b5163fde1 | [
"MIT"
] | 10 | 2020-09-26T00:58:17.000Z | 2022-03-12T00:25:13.000Z | webapp/dog_breed_app.py | abdullahtarek/dog_breed_webapp | 1c64a0c45bb8e2d993255bd98144e96b5163fde1 | [
"MIT"
] | null | null | null | from dog_breed_web_app import app
app.run(host='0.0.0.0', port=6006, debug=True)
| 27 | 46 | 0.753086 | 18 | 81 | 3.222222 | 0.722222 | 0.103448 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 0.08642 | 81 | 2 | 47 | 40.5 | 0.675676 | 0 | 0 | 0 | 0 | 0 | 0.08642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
bcad16f68022b6e30f70455f9d812f7d1838bc13 | 126 | py | Python | python/testData/quickFixes/PyRenameElementQuickFixTest/renameAwaitClassInPy36.py | aviator737x/intellij-community | 12beb125a6931dd204262eca358be63510af0476 | [
"Apache-2.0"
] | null | null | null | python/testData/quickFixes/PyRenameElementQuickFixTest/renameAwaitClassInPy36.py | aviator737x/intellij-community | 12beb125a6931dd204262eca358be63510af0476 | [
"Apache-2.0"
] | null | null | null | python/testData/quickFixes/PyRenameElementQuickFixTest/renameAwaitClassInPy36.py | aviator737x/intellij-community | 12beb125a6931dd204262eca358be63510af0476 | [
"Apache-2.0"
] | null | null | null | class <warning descr="Python version 3.7 does not allow 'async' and 'await' as names">a<caret>wait</warning>(object):
pass | 63 | 117 | 0.722222 | 21 | 126 | 4.333333 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018349 | 0.134921 | 126 | 2 | 118 | 63 | 0.816514 | 0 | 0 | 0 | 0 | 0 | 0.488189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.5 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
4c2da3b8fe105f07ffe28c98e0ebcb2b37c60149 | 1,030 | py | Python | src/Solution_class.py | themihabyte/operations_research_course_work | 88cb3455775e4720fc5071c20ad1a115b510555e | [
"MIT"
] | null | null | null | src/Solution_class.py | themihabyte/operations_research_course_work | 88cb3455775e4720fc5071c20ad1a115b510555e | [
"MIT"
] | null | null | null | src/Solution_class.py | themihabyte/operations_research_course_work | 88cb3455775e4720fc5071c20ad1a115b510555e | [
"MIT"
] | null | null | null | class Solution:
labs = []
def __init__(self, T):
self.z = 0
self.x = []
for i in range(T):
self.x.append(0)
def calculate_z(self):
if len(self.labs) == 0:
return 0
self.z = 0
for i in range(len(self.labs)):
for j in range(s... | 24.52381 | 58 | 0.482524 | 142 | 1,030 | 3.295775 | 0.246479 | 0.08547 | 0.128205 | 0.162393 | 0.318376 | 0.318376 | 0.241453 | 0.185897 | 0 | 0 | 0 | 0.011058 | 0.385437 | 1,030 | 42 | 59 | 24.52381 | 0.728278 | 0 | 0 | 0.121212 | 0 | 0 | 0.017459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0 | 0 | 0.151515 | 0.606061 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
4c73aa9b59b60445be1a0a7301a6e906f9eb5b38 | 484 | py | Python | static_province.py | byscut/azrael-py27 | 76eaa29556a9f58e7425e5c0fefeddb5332a923e | [
"WTFPL"
] | null | null | null | static_province.py | byscut/azrael-py27 | 76eaa29556a9f58e7425e5c0fefeddb5332a923e | [
"WTFPL"
] | null | null | null | static_province.py | byscut/azrael-py27 | 76eaa29556a9f58e7425e5c0fefeddb5332a923e | [
"WTFPL"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 2017/11/23 上午10:01
# @Author : Azrael.Bai
# @File : static_province.py
province_dict={}
with open('/Users/haizhi/province.data') as f:
for line in f.readlines():
province = line.strip().replace('省','')
if province_dict.has_key(province):
provinc... | 26.888889 | 65 | 0.615702 | 64 | 484 | 4.53125 | 0.609375 | 0.248276 | 0.206897 | 0.193103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04065 | 0.237603 | 484 | 17 | 66 | 28.470588 | 0.745257 | 0.21281 | 0 | 0 | 0 | 0 | 0.074468 | 0.071809 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.1 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4c77e6a9df20d1e1e2cfe8d7405bd6fe92dba1af | 1,641 | py | Python | daskperiment/backend/redis.py | takumiohym/daskperiment | 292752f29a9f77b948b2a5050122109b8f4fe148 | [
"BSD-3-Clause"
] | null | null | null | daskperiment/backend/redis.py | takumiohym/daskperiment | 292752f29a9f77b948b2a5050122109b8f4fe148 | [
"BSD-3-Clause"
] | null | null | null | daskperiment/backend/redis.py | takumiohym/daskperiment | 292752f29a9f77b948b2a5050122109b8f4fe148 | [
"BSD-3-Clause"
] | 1 | 2021-03-24T07:32:20.000Z | 2021-03-24T07:32:20.000Z | from daskperiment.backend.base import _NoSQLBackend
from daskperiment.util.log import get_logger
logger = get_logger(__name__)
class RedisBackend(_NoSQLBackend):
_SEP = ':'
def __init__(self, experiment_id, uri):
super().__init__(experiment_id)
import redis
if isinstance(uri, red... | 26.047619 | 78 | 0.586837 | 191 | 1,641 | 4.863874 | 0.350785 | 0.107643 | 0.103337 | 0.054898 | 0.17761 | 0.06028 | 0 | 0 | 0 | 0 | 0 | 0.00353 | 0.309567 | 1,641 | 62 | 79 | 26.467742 | 0.816417 | 0.045704 | 0 | 0.121951 | 0 | 0 | 0.03135 | 0.016635 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0.243902 | false | 0 | 0.121951 | 0.121951 | 0.609756 | 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 | 1 | 1 | 0 | 0 | 4 |
d5d36d225572c57c79fe0cdb5edf50f0d8965944 | 1,414 | py | Python | tuplex/python/tuplex/utils/framework.py | rahulyesantharao/tuplex | 03733a57ccb5a3770eecaf1c3adcfb520ed82138 | [
"Apache-2.0"
] | 778 | 2021-06-30T03:40:43.000Z | 2022-03-28T20:40:20.000Z | tuplex/python/tuplex/utils/framework.py | rahulyesantharao/tuplex | 03733a57ccb5a3770eecaf1c3adcfb520ed82138 | [
"Apache-2.0"
] | 41 | 2021-07-05T17:55:56.000Z | 2022-03-31T15:27:19.000Z | tuplex/python/tuplex/utils/framework.py | rahulyesantharao/tuplex | 03733a57ccb5a3770eecaf1c3adcfb520ed82138 | [
"Apache-2.0"
] | 39 | 2021-07-01T02:40:33.000Z | 2022-03-30T21:46:55.000Z | #!/usr/bin/env python3
#----------------------------------------------------------------------------------------------------------------------#
# #
# Tuplex: Blazing... | 74.421053 | 120 | 0.25389 | 61 | 1,414 | 5.885246 | 0.803279 | 0.094708 | 0.150418 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026275 | 0.542433 | 1,414 | 19 | 121 | 74.421053 | 0.528594 | 0.893211 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
d5defc6018511349fcfd86809da6aa5192b0d2e1 | 1,763 | py | Python | question.py | SunzeY/AutoTest_UI | cfa63e6e68b29af4d63808a3416f9d8da993a7a1 | [
"MIT"
] | null | null | null | question.py | SunzeY/AutoTest_UI | cfa63e6e68b29af4d63808a3416f9d8da993a7a1 | [
"MIT"
] | null | null | null | question.py | SunzeY/AutoTest_UI | cfa63e6e68b29af4d63808a3416f9d8da993a7a1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 2021-07-31 19:34
# @Author : Ze Yi Sun
# @Site : BUAA
# @File : question.py
# @Software: PyCharm
class Question(object):
def __init__(self, statement: str):
self.statement = statement
def show(self):
return "None"
def check_correctness(self, answer: str) -... | 24.150685 | 61 | 0.614294 | 198 | 1,763 | 5.232323 | 0.232323 | 0.163127 | 0.147683 | 0.07722 | 0.730695 | 0.708494 | 0.678571 | 0.643822 | 0.513514 | 0.513514 | 0 | 0.010367 | 0.288712 | 1,763 | 72 | 62 | 24.486111 | 0.815789 | 0.066931 | 0 | 0.693878 | 0 | 0 | 0.008547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.306122 | false | 0 | 0 | 0.142857 | 0.693878 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
d5f05c43fea0d065e32eba6b8cc15742ef5e287b | 134 | py | Python | ratings/forms.py | dimalik/reading_group | 5324468c7d31a648654fab820e283d13a76d1b93 | [
"MIT"
] | null | null | null | ratings/forms.py | dimalik/reading_group | 5324468c7d31a648654fab820e283d13a76d1b93 | [
"MIT"
] | null | null | null | ratings/forms.py | dimalik/reading_group | 5324468c7d31a648654fab820e283d13a76d1b93 | [
"MIT"
] | null | null | null | from django import forms
from ratings.models import Rating
class RatingForm(forms.ModelForm):
class Meta:
model = Rating | 19.142857 | 34 | 0.738806 | 17 | 134 | 5.823529 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208955 | 134 | 7 | 35 | 19.142857 | 0.933962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
d5f0e575408911d69b55fbfa2378db0a60670231 | 302 | py | Python | models/user_models.py | htrismicristo/finanzapp_api | 3d3ed061256c1908664f3d20dd8fe67bd765e9a1 | [
"MIT"
] | null | null | null | models/user_models.py | htrismicristo/finanzapp_api | 3d3ed061256c1908664f3d20dd8fe67bd765e9a1 | [
"MIT"
] | null | null | null | models/user_models.py | htrismicristo/finanzapp_api | 3d3ed061256c1908664f3d20dd8fe67bd765e9a1 | [
"MIT"
] | null | null | null | from pydantic import BaseModel
class UserIn(BaseModel):
username: str
password: str
budget = 0
# class UserSign(BaseModel):
# username: str
# password: str
# budget: int
class UserOut(BaseModel):
username: str
budget: str
class Config:
orm_mode = True
| 14.380952 | 30 | 0.639073 | 34 | 302 | 5.647059 | 0.529412 | 0.265625 | 0.3125 | 0.291667 | 0.385417 | 0.385417 | 0 | 0 | 0 | 0 | 0 | 0.00463 | 0.284768 | 302 | 20 | 31 | 15.1 | 0.884259 | 0.258278 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.1 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
d5f557de8e80f90297a1982d4ba6ecfa764cad2d | 2,765 | py | Python | build/android/pylib/host_driven/tests_annotations.py | nagineni/chromium-crosswalk | 5725642f1c67d0f97e8613ec1c3e8107ab53fdf8 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 19 | 2015-02-19T21:08:27.000Z | 2021-11-19T07:16:49.000Z | build/android/pylib/host_driven/tests_annotations.py | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 8 | 2015-08-31T06:39:59.000Z | 2021-12-04T14:53:28.000Z | build/android/pylib/host_driven/tests_annotations.py | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 10 | 2015-08-28T16:44:03.000Z | 2019-07-17T17:37:34.000Z | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Annotations for host-driven tests."""
import os
class AnnotatedFunctions(object):
"""A container for annotated methods."""
_ANNOTATED = {}
@... | 29.414894 | 78 | 0.746112 | 294 | 2,765 | 6.85034 | 0.302721 | 0.065541 | 0.10427 | 0.170804 | 0.119166 | 0.051639 | 0.051639 | 0.051639 | 0 | 0 | 0 | 0.002179 | 0.169982 | 2,765 | 93 | 79 | 29.731183 | 0.875381 | 0.311031 | 0 | 0.073171 | 0 | 0 | 0.05097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.292683 | false | 0 | 0.02439 | 0.170732 | 0.658537 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
9122c7e7b6bbe16f615517347236ec0291cf9539 | 313 | py | Python | scripts/SDL_Interface/InterfaceGenerator.py | jasonoscar88/Photon-v2 | 90649196c436261d28cc2300511b78ac88236448 | [
"MIT"
] | 88 | 2017-01-21T18:20:16.000Z | 2021-12-21T02:32:04.000Z | scripts/SDL_Interface/InterfaceGenerator.py | jasonoscar88/Photon-v2 | 90649196c436261d28cc2300511b78ac88236448 | [
"MIT"
] | 72 | 2017-07-28T10:00:35.000Z | 2021-11-09T18:36:23.000Z | scripts/SDL_Interface/InterfaceGenerator.py | jasonoscar88/Photon-v2 | 90649196c436261d28cc2300511b78ac88236448 | [
"MIT"
] | 8 | 2017-03-19T12:19:10.000Z | 2020-05-19T15:15:05.000Z | from SDLInterface import SDLInterface
from abc import abstractmethod
class InterfaceGenerator:
def __init__(self):
pass
@abstractmethod
def add_interface(self, sdl_interface: SDLInterface):
pass
@abstractmethod
def generate(self, output_directory):
pass
@abstractmethod
def name(self):
pass
| 14.227273 | 54 | 0.779553 | 35 | 313 | 6.771429 | 0.514286 | 0.227848 | 0.265823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159744 | 313 | 21 | 55 | 14.904762 | 0.901141 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.285714 | 0.142857 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
9129c87b62d778a7d0cd03c3055272683eddb7c5 | 1,324 | py | Python | pyhandle/tests/testcases/utilconfig_unit_test.py | merretbuurman/PYHANDLE | 3c621eda80e26fdec945d4d42f6b62d0dcc70726 | [
"Apache-2.0"
] | 7 | 2017-11-22T14:43:09.000Z | 2020-12-10T05:46:51.000Z | pyhandle/tests/testcases/utilconfig_unit_test.py | merretbuurman/PYHANDLE | 3c621eda80e26fdec945d4d42f6b62d0dcc70726 | [
"Apache-2.0"
] | 18 | 2017-05-10T10:29:12.000Z | 2021-02-10T23:16:27.000Z | pyhandle/tests/testcases/utilconfig_unit_test.py | merretbuurman/PYHANDLE | 3c621eda80e26fdec945d4d42f6b62d0dcc70726 | [
"Apache-2.0"
] | 13 | 2017-05-24T12:55:27.000Z | 2021-09-26T20:07:28.000Z |
import sys
if sys.version_info < (2, 7):
import unittest2 as unittest
else:
import unittest
from pyhandle.util import get_valid_https_verify
class UtilConfigTestCase(unittest.TestCase):
def test_valid_https_verify_bool_true(self):
"""Test return bool True when getting bool True"""
self.... | 36.777778 | 78 | 0.73565 | 184 | 1,324 | 4.983696 | 0.217391 | 0.167939 | 0.226827 | 0.145038 | 0.729553 | 0.729553 | 0.65867 | 0.535442 | 0.342421 | 0.163577 | 0 | 0.002752 | 0.176737 | 1,324 | 35 | 79 | 37.828571 | 0.838532 | 0.237915 | 0 | 0 | 0 | 0 | 0.040942 | 0 | 0 | 0 | 0 | 0 | 0.315789 | 1 | 0.315789 | false | 0 | 0.210526 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
912b4f2d69fb92433909676a4ce0dc333ef2737c | 1,668 | py | Python | minitasks/cs111-splitting-up-stub.py | jfarrell-bsu/CS111-resources | d1744f088d789a4512ee1cf6102e4767d483d69f | [
"MIT"
] | null | null | null | minitasks/cs111-splitting-up-stub.py | jfarrell-bsu/CS111-resources | d1744f088d789a4512ee1cf6102e4767d483d69f | [
"MIT"
] | null | null | null | minitasks/cs111-splitting-up-stub.py | jfarrell-bsu/CS111-resources | d1744f088d789a4512ee1cf6102e4767d483d69f | [
"MIT"
] | null | null | null | #
# Author:
# Date:
# Description:
#
#
# Single string containing CSV formatted song data
# "artist,album,title,duration"
# Note: Duration is specified in seconds
#
singleSongCSV = "Jimmy Buffett,Songs You Know by Heart,Cheeseburger in Paradise,172"
#
# List of strings containing CSV formatted song data
#
songList... | 30.888889 | 98 | 0.68705 | 236 | 1,668 | 4.855932 | 0.419492 | 0.146597 | 0.207679 | 0.244328 | 0.47993 | 0.427574 | 0.427574 | 0.157068 | 0.097731 | 0.097731 | 0 | 0.032685 | 0.229616 | 1,668 | 53 | 99 | 31.471698 | 0.859144 | 0.299161 | 0 | 0 | 0 | 0 | 0.747147 | 0.040386 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.066667 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e6b4ff33b54d0983636ccfcdaadcbd00da865cbb | 4,878 | py | Python | rdfframes/test_queries/test_nested_queries.py | qcri/RDFframe | 2a50105479051c134cc5eddc9e20d55b755ef765 | [
"MIT"
] | 13 | 2019-07-06T00:10:11.000Z | 2022-02-20T02:14:16.000Z | rdfframes/test_queries/test_nested_queries.py | qcri/RDFrame | 2a50105479051c134cc5eddc9e20d55b755ef765 | [
"MIT"
] | 1 | 2019-05-20T08:51:42.000Z | 2019-05-20T08:51:42.000Z | rdfframes/test_queries/test_nested_queries.py | qcri/RDFframe | 2a50105479051c134cc5eddc9e20d55b755ef765 | [
"MIT"
] | 3 | 2020-04-17T10:50:37.000Z | 2022-03-23T01:30:16.000Z | import time
from rdfframes.knowledge_graph import KnowledgeGraph
from rdfframes.dataset.rdfpredicate import PredicateDirection
def test_expand_after_group_by():
start = time.time()
# create a knowledge graph to store the graph uri and prefixes
graph = KnowledgeGraph('twitter', 'https://twitter.com',
... | 44.752294 | 105 | 0.578516 | 567 | 4,878 | 4.797178 | 0.223986 | 0.084926 | 0.041176 | 0.036029 | 0.821691 | 0.755515 | 0.709559 | 0.697059 | 0.683088 | 0.633824 | 0 | 0.015228 | 0.273063 | 4,878 | 108 | 106 | 45.166667 | 0.751833 | 0.156827 | 0 | 0.675 | 0 | 0 | 0.277344 | 0 | 0 | 0 | 0 | 0.009259 | 0 | 1 | 0.025 | false | 0 | 0.0375 | 0 | 0.0625 | 0.1375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e6f16dfe048462cd44d456353e1f549f2d167aff | 244 | py | Python | apps/comun/admin.py | WilliamColmenares/Access_control | 6c4d07a55307fe9f876a796d3e7273188b7569d4 | [
"MIT"
] | 2 | 2017-06-22T13:50:56.000Z | 2021-09-16T14:07:50.000Z | apps/comun/admin.py | WilliamColmenares/Access_control | 6c4d07a55307fe9f876a796d3e7273188b7569d4 | [
"MIT"
] | null | null | null | apps/comun/admin.py | WilliamColmenares/Access_control | 6c4d07a55307fe9f876a796d3e7273188b7569d4 | [
"MIT"
] | 2 | 2017-06-08T17:18:29.000Z | 2021-04-17T22:20:34.000Z | from django.contrib import admin
from apps.comun.models import Direccion, Asentamiento, Municipio, Entidad
admin.site.register(Direccion)
admin.site.register(Asentamiento)
admin.site.register(Municipio)
admin.site.register(Entidad)
| 24.4 | 74 | 0.79918 | 30 | 244 | 6.5 | 0.466667 | 0.184615 | 0.348718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110656 | 244 | 9 | 75 | 27.111111 | 0.898618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
fc11e541379ec9f34a5fc7d103f848e06093282b | 2,395 | py | Python | src/iemws/models/obhistory.py | akrherz/iem-json-services | 13fa3d7434c1ff3d0379f3b921d30ea79423dae8 | [
"Apache-2.0"
] | null | null | null | src/iemws/models/obhistory.py | akrherz/iem-json-services | 13fa3d7434c1ff3d0379f3b921d30ea79423dae8 | [
"Apache-2.0"
] | null | null | null | src/iemws/models/obhistory.py | akrherz/iem-json-services | 13fa3d7434c1ff3d0379f3b921d30ea79423dae8 | [
"Apache-2.0"
] | null | null | null | """Models for currents API."""
# pylint: disable=no-name-in-module
from typing import List
from pydantic import BaseModel, Field
class ObHistoryDataItem(BaseModel):
"""Data Schema."""
utc_valid: str = Field(..., title="UTC Timestamp")
local_valid: str = Field(..., title="Local Station Timestamp")
tm... | 48.877551 | 79 | 0.63048 | 315 | 2,395 | 4.761905 | 0.371429 | 0.213333 | 0.19 | 0.096 | 0.274667 | 0.274667 | 0.182667 | 0.084 | 0 | 0 | 0 | 0.019507 | 0.186639 | 2,395 | 48 | 80 | 49.895833 | 0.750513 | 0.043841 | 0 | 0 | 0 | 0 | 0.354881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.054054 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
fc2d156b4a7cd5e699f8b8655096e544d140f34a | 1,099 | py | Python | 2020/day15_test.py | natbodington/advent_of_code | aa246c76730a1d5ca29ec632a265b31b0c752d94 | [
"MIT"
] | null | null | null | 2020/day15_test.py | natbodington/advent_of_code | aa246c76730a1d5ca29ec632a265b31b0c752d94 | [
"MIT"
] | null | null | null | 2020/day15_test.py | natbodington/advent_of_code | aa246c76730a1d5ca29ec632a265b31b0c752d94 | [
"MIT"
] | null | null | null | import day15
ITERS = 2020
def test_example1():
intro_seq = [0, 3, 6]
final_move = day15.play_game(intro_seq, ITERS)
assert final_move == 436, f"Error: {final_move}"
def test_example2():
intro_seq = [1, 3, 2]
final_move = day15.play_game(intro_seq, ITERS)
assert final_move == 1, f"Error: {f... | 21.54902 | 53 | 0.657871 | 172 | 1,099 | 3.918605 | 0.19186 | 0.280415 | 0.145401 | 0.186944 | 0.724036 | 0.724036 | 0.52819 | 0.52819 | 0.52819 | 0.52819 | 0 | 0.074627 | 0.207461 | 1,099 | 50 | 54 | 21.98 | 0.699196 | 0 | 0 | 0.233333 | 0 | 0 | 0.121019 | 0 | 0 | 0 | 0 | 0 | 0.233333 | 1 | 0.233333 | false | 0 | 0.033333 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fc3ce069b6138b270e53b0a042262cabf49d19d4 | 125 | py | Python | firewall/app/main/utils/custom_exception.py | vivitek/box | 82b8f9fec3b92b38b8587e18bdfeb08d50708d03 | [
"CC-BY-4.0"
] | 2 | 2020-05-28T14:39:46.000Z | 2020-06-19T18:38:46.000Z | firewall/app/main/utils/custom_exception.py | vivitek/deep-thought | 9f0e3ec1e1c1dbc14466ec8ebd24ae83e6fcee94 | [
"CC-BY-4.0"
] | 35 | 2020-06-19T18:43:47.000Z | 2021-04-02T13:23:30.000Z | firewall/app/main/utils/custom_exception.py | vivitek/box | 82b8f9fec3b92b38b8587e18bdfeb08d50708d03 | [
"CC-BY-4.0"
] | 1 | 2020-09-01T16:08:49.000Z | 2020-09-01T16:08:49.000Z | class CustomException(Exception):
def __init__(self, reason, code):
self.reason = reason
self.code = code | 31.25 | 37 | 0.656 | 14 | 125 | 5.571429 | 0.571429 | 0.25641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248 | 125 | 4 | 38 | 31.25 | 0.829787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fc40491e62252c460c727a4b317ce0604d58ea00 | 722 | py | Python | ml-agents-envs/mlagents/envs/base_unity_environment.py | Model2TypeE/ml-agents | f1fb5be3698df60b6e32df4051ccc17fa86e4668 | [
"Apache-2.0"
] | 11 | 2019-04-12T13:17:11.000Z | 2021-01-26T16:19:32.000Z | ml-agents-envs/mlagents/envs/base_unity_environment.py | Datguypotato/ml-agents | 4ea5986b985f36d0a61246247d4b561a9b689288 | [
"Apache-2.0"
] | null | null | null | ml-agents-envs/mlagents/envs/base_unity_environment.py | Datguypotato/ml-agents | 4ea5986b985f36d0a61246247d4b561a9b689288 | [
"Apache-2.0"
] | 7 | 2021-02-01T10:17:40.000Z | 2021-12-17T16:44:32.000Z | from abc import ABC, abstractmethod
from typing import Dict
from mlagents.envs import AllBrainInfo, BrainParameters
class BaseUnityEnvironment(ABC):
@abstractmethod
def step(self, vector_action=None, memory=None, text_action=None, value=None) -> AllBrainInfo:
pass
@abstractmethod
def reset(s... | 21.235294 | 98 | 0.6759 | 77 | 722 | 6.25974 | 0.454545 | 0.211618 | 0.161826 | 0.180498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242382 | 722 | 33 | 99 | 21.878788 | 0.88117 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0.24 | 0.12 | 0 | 0.4 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.