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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5009f7da66f6e63e2db54c0c3b7128421b2a8194 | 596 | py | Python | src/globus_cli/constants.py | sirosen/temp-cli-test | 416fd3fea17b4c7c2cf35d6ccde63cb5719a1af6 | [
"Apache-2.0"
] | 47 | 2016-04-21T19:51:17.000Z | 2022-02-25T14:13:30.000Z | src/globus_cli/constants.py | sirosen/temp-cli-test | 416fd3fea17b4c7c2cf35d6ccde63cb5719a1af6 | [
"Apache-2.0"
] | 421 | 2016-04-20T18:45:24.000Z | 2022-03-14T14:50:41.000Z | src/globus_cli/constants.py | sirosen/temp-cli-test | 416fd3fea17b4c7c2cf35d6ccde63cb5719a1af6 | [
"Apache-2.0"
] | 20 | 2016-09-10T20:25:27.000Z | 2021-10-06T16:02:47.000Z | """
This module is used to define constants used throughout the code.
It should not depend on any other part of the globus-cli codebase.
(If you need to import something else, maybe it's not simple enough to be a constant...)
"""
__all__ = ["EXPLICIT_NULL"]
class _ExplicitNullClass:
"""
Magic sentinel value... | 22.923077 | 88 | 0.708054 | 81 | 596 | 5.012346 | 0.777778 | 0.029557 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223154 | 596 | 25 | 89 | 23.84 | 0.87689 | 0.620805 | 0 | 0 | 0 | 0 | 0.087179 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.285714 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
501eb39c07b319bc55ef0596e494297651c3e113 | 237 | py | Python | legal-report/ssf_legal_report.py | mindthegab/contrib-toolbox | 5ed82e6cb427ecaf0a77fd1be0093304bdf3784d | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2016-06-14T21:25:00.000Z | 2016-06-14T21:25:00.000Z | legal-report/ssf_legal_report.py | mindthegab/contrib-toolbox | 5ed82e6cb427ecaf0a77fd1be0093304bdf3784d | [
"ECL-2.0",
"Apache-2.0"
] | 7 | 2016-05-26T14:15:43.000Z | 2018-04-11T00:09:24.000Z | legal-report/ssf_legal_report.py | mindthegab/contrib-toolbox | 5ed82e6cb427ecaf0a77fd1be0093304bdf3784d | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2016-05-26T22:35:59.000Z | 2022-02-09T03:21:48.000Z | from legal_report_utils import loadConfig, checkGithubOrg
# Prerequisites:
# - Python 2.7+
# - git available on command-line
# - Apache Maven
# - Leiningen
# - npm install -g license-report
config = loadConfig()
checkGithubOrg(config)
| 19.75 | 57 | 0.751055 | 28 | 237 | 6.285714 | 0.857143 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00995 | 0.151899 | 237 | 11 | 58 | 21.545455 | 0.865672 | 0.50211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
50201fdf0615fcaa22e22c8d4f1ba42f579bba87 | 117 | py | Python | sm/settings.py | NinaCalvi/OKBC | e25ad0296137ed354593c74509b077a22f60425e | [
"MIT"
] | 6 | 2020-07-06T14:31:18.000Z | 2021-09-13T10:15:14.000Z | sm/settings.py | NinaCalvi/OKBC | e25ad0296137ed354593c74509b077a22f60425e | [
"MIT"
] | 2 | 2021-09-12T17:49:09.000Z | 2021-09-14T15:28:54.000Z | sm/settings.py | NinaCalvi/OKBC | e25ad0296137ed354593c74509b077a22f60425e | [
"MIT"
] | 1 | 2021-06-07T01:46:44.000Z | 2021-06-07T01:46:44.000Z | import torch
cuda=False
def set_settings(args):
global cuda
cuda=args.cuda and torch.cuda.is_available() | 19.5 | 52 | 0.726496 | 18 | 117 | 4.611111 | 0.666667 | 0.216867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188034 | 117 | 6 | 52 | 19.5 | 0.873684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
503330fabb56549f18452db02a63ac505843a166 | 250 | py | Python | spinta/backends/mongo/helpers.py | atviriduomenys/spinta | 77a10e201f8cdc63143fce7996fd0898acb1ff58 | [
"MIT"
] | 2 | 2019-03-14T06:41:14.000Z | 2019-03-26T11:48:14.000Z | spinta/backends/mongo/helpers.py | sirex/spinta | 77a10e201f8cdc63143fce7996fd0898acb1ff58 | [
"MIT"
] | 44 | 2019-04-05T15:52:45.000Z | 2022-03-30T07:41:33.000Z | spinta/backends/mongo/helpers.py | sirex/spinta | 77a10e201f8cdc63143fce7996fd0898acb1ff58 | [
"MIT"
] | 1 | 2019-04-01T09:54:27.000Z | 2019-04-01T09:54:27.000Z | from spinta.utils.schema import NA
from spinta.components import DataSubItem, Action
def inserting(data: DataSubItem):
return (
data.root.action == Action.INSERT or
(data.root.action == Action.UPSERT and data.saved is NA)
)
| 25 | 64 | 0.7 | 33 | 250 | 5.30303 | 0.606061 | 0.114286 | 0.16 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208 | 250 | 9 | 65 | 27.777778 | 0.883838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
504a8ce1cbeccd16814262aef9462b54d5115c97 | 124 | py | Python | func_nesting.py | oushu1zhangxiangxuan1/pylayground | 22590b10a5de7e07149e4a6029a094d51d2e48a4 | [
"Apache-2.0"
] | null | null | null | func_nesting.py | oushu1zhangxiangxuan1/pylayground | 22590b10a5de7e07149e4a6029a094d51d2e48a4 | [
"Apache-2.0"
] | null | null | null | func_nesting.py | oushu1zhangxiangxuan1/pylayground | 22590b10a5de7e07149e4a6029a094d51d2e48a4 | [
"Apache-2.0"
] | null | null | null |
def outer():
def inner():
print(out_var)
out_var = 10
inner()
if "__main__" == __name__:
outer() | 11.272727 | 26 | 0.524194 | 15 | 124 | 3.666667 | 0.666667 | 0.218182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024096 | 0.330645 | 124 | 11 | 27 | 11.272727 | 0.638554 | 0 | 0 | 0 | 0 | 0 | 0.065041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.285714 | 0.142857 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5053caa50c0717fd8beb048c4ff6591cb65746e4 | 24,165 | py | Python | code/plot_fig3_vs_mag_single_NL_beta_gamma_delta.py | plazas/wfirst-detectors-vnl | db77f55cc3fe540092061319355731e45cd0071e | [
"MIT"
] | 3 | 2016-01-07T19:30:43.000Z | 2020-07-16T09:57:03.000Z | code/plot_fig3_vs_mag_single_NL_beta_gamma_delta.py | plazas/wfirst-detectors-vnl | db77f55cc3fe540092061319355731e45cd0071e | [
"MIT"
] | null | null | null | code/plot_fig3_vs_mag_single_NL_beta_gamma_delta.py | plazas/wfirst-detectors-vnl | db77f55cc3fe540092061319355731e45cd0071e | [
"MIT"
] | null | null | null | #!/usr/bin/python
import numpy as np
import os
import sys
import math
import matplotlib
matplotlib.use('Pdf')
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import make_axes_locatable
from matplotlib.backends.backend_pdf import PdfPages
import matplotlib.font_manager as fm
## 6-1-15
## Simple code to e... | 74.814241 | 489 | 0.770867 | 3,991 | 24,165 | 4.437985 | 0.152593 | 0.065041 | 0.044715 | 0.027778 | 0.514962 | 0.48724 | 0.407125 | 0.389849 | 0.376807 | 0.376807 | 0 | 0.331291 | 0.067908 | 24,165 | 322 | 490 | 75.046584 | 0.45507 | 0.079247 | 0 | 0.409692 | 0 | 0 | 0.041576 | 0.000992 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066079 | null | null | 0.004405 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5057dd8eabab3dcef28627c2ec4fc30e3dfa2f71 | 3,973 | py | Python | categorical_embedder/embedders/core/aux/loss_factory.py | erelcan/categorical-embedder | 376b8779500af2aa459c879f8e525f2ef25d6b31 | [
"Apache-2.0"
] | 3 | 2020-12-19T10:52:58.000Z | 2021-06-08T09:06:44.000Z | ts_embedder/embedders/core/aux/loss_factory.py | erelcan/ts-embedder | 2fe73c70aa8a7bb8a232b3a66730b55d30db4694 | [
"Apache-2.0"
] | null | null | null | ts_embedder/embedders/core/aux/loss_factory.py | erelcan/ts-embedder | 2fe73c70aa8a7bb8a232b3a66730b55d30db4694 | [
"Apache-2.0"
] | null | null | null | from keras import losses
from keras import backend as K
def get_loss_function(loss_info):
if "discriminative" in loss_info:
loss_dict = {}
for name, info in loss_info.items():
loss_dict[name] = _create_loss_function(info)
return loss_dict
else:
return _create_loss_f... | 38.95098 | 129 | 0.736219 | 582 | 3,973 | 4.584192 | 0.158076 | 0.052474 | 0.047226 | 0.078711 | 0.488006 | 0.372189 | 0.27961 | 0.244378 | 0.125187 | 0.125187 | 0 | 0.00542 | 0.164108 | 3,973 | 102 | 130 | 38.95098 | 0.797952 | 0.038258 | 0 | 0.058824 | 0 | 0 | 0.051611 | 0.006812 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.029412 | 0.117647 | 0.558824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5059569f4930e68d4889d23224edd63602d570a1 | 79 | py | Python | bioimageit_viewer/__init__.py | bioimageit/bioimageit_viewer | 49e8baf650047f3724b62b8866bd5cf07c3fa859 | [
"BSD-2-Clause"
] | null | null | null | bioimageit_viewer/__init__.py | bioimageit/bioimageit_viewer | 49e8baf650047f3724b62b8866bd5cf07c3fa859 | [
"BSD-2-Clause"
] | null | null | null | bioimageit_viewer/__init__.py | bioimageit/bioimageit_viewer | 49e8baf650047f3724b62b8866bd5cf07c3fa859 | [
"BSD-2-Clause"
] | null | null | null | from bioimageit_viewer.viewer import BiMultiViewer
__all__ = ['BiMultiViewer'] | 26.333333 | 50 | 0.835443 | 8 | 79 | 7.625 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088608 | 79 | 3 | 51 | 26.333333 | 0.847222 | 0 | 0 | 0 | 0 | 0 | 0.1625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
acaaaf90386a6e4f4da0240899629fbf56c4e6d2 | 669 | py | Python | apps/controllerx/controllerx.py | htvekov/controllerx | 97feb0ee925165c44aed963dee3e2e05b722c504 | [
"MIT"
] | null | null | null | apps/controllerx/controllerx.py | htvekov/controllerx | 97feb0ee925165c44aed963dee3e2e05b722c504 | [
"MIT"
] | null | null | null | apps/controllerx/controllerx.py | htvekov/controllerx | 97feb0ee925165c44aed963dee3e2e05b722c504 | [
"MIT"
] | null | null | null | """
Bring full functionality to light and media player controllers.
From turning devices on/off to changing the color lights.
https://github.com/xaviml/controllerx
"""
from cx_core import (
CallServiceController,
Controller,
CoverController,
CustomCoverController,
CustomLightController,
CustomM... | 25.730769 | 63 | 0.781764 | 73 | 669 | 7.054795 | 0.589041 | 0.093204 | 0.176699 | 0.221359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156951 | 669 | 25 | 64 | 26.76 | 0.913121 | 0.239163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.421053 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
acc25711b196a0a836207da26837583f7aad3c47 | 248 | py | Python | src/database/migration/config.py | dalmarcogd/challenge_acai | cab0dc04762e3c03bf285c31557c0371c45cdf96 | [
"Apache-2.0"
] | null | null | null | src/database/migration/config.py | dalmarcogd/challenge_acai | cab0dc04762e3c03bf285c31557c0371c45cdf96 | [
"Apache-2.0"
] | null | null | null | src/database/migration/config.py | dalmarcogd/challenge_acai | cab0dc04762e3c03bf285c31557c0371c45cdf96 | [
"Apache-2.0"
] | null | null | null | from alembic.config import Config
from settings import BASE_DIR, DATABASE_URI
alembic_cfg = Config()
alembic_cfg.set_main_option("script_location", f"{BASE_DIR}/src/database/migration")
alembic_cfg.set_main_option("sqlalchemy.url", DATABASE_URI)
| 31 | 84 | 0.826613 | 37 | 248 | 5.216216 | 0.540541 | 0.15544 | 0.134715 | 0.176166 | 0.238342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072581 | 248 | 7 | 85 | 35.428571 | 0.83913 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0.133065 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
acd552f4cf011183dfb2db8b738c0ad222a82766 | 754 | gyp | Python | binding.gyp | p8952/node-native-input | b68efcd4fff233d75a69dc0d424287806b7938a3 | [
"MIT"
] | 1 | 2018-10-15T10:58:12.000Z | 2018-10-15T10:58:12.000Z | binding.gyp | p8952/node-native-input | b68efcd4fff233d75a69dc0d424287806b7938a3 | [
"MIT"
] | null | null | null | binding.gyp | p8952/node-native-input | b68efcd4fff233d75a69dc0d424287806b7938a3 | [
"MIT"
] | 1 | 2018-10-15T10:58:38.000Z | 2018-10-15T10:58:38.000Z | {
"targets": [
{
"target_name": "nodeNativeInput",
"sources": [
"src/nodeNativeInput.cpp",
"src/getOne/getOne.cpp",
"src/getTwo/getTwo.cpp",
"src/getThree/getThree.cpp"
],
"include_dirs": ["<!(node -e \"require('nan')\")"],
"conditions": [
["OS... | 21.542857 | 57 | 0.367374 | 48 | 754 | 5.666667 | 0.5625 | 0.066176 | 0.231618 | 0.169118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.415119 | 754 | 34 | 58 | 22.176471 | 0.61678 | 0 | 0 | 0.235294 | 0 | 0 | 0.388594 | 0.119363 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
acdcc62cdbda03f6db177ae86f854bf67dae066b | 23,865 | py | Python | pyrgg/test.py | sepandhaghighi/pyggen | 7d98b2ac7ad0b4767a5c68bc5febefd0e7af32c4 | [
"MIT"
] | 164 | 2017-04-26T00:17:06.000Z | 2022-02-10T17:26:37.000Z | pyrgg/test.py | sepandhaghighi/pyggen | 7d98b2ac7ad0b4767a5c68bc5febefd0e7af32c4 | [
"MIT"
] | 103 | 2017-07-29T03:05:44.000Z | 2022-03-07T01:26:51.000Z | pyrgg/test.py | sepandhaghighi/pyggen | 7d98b2ac7ad0b4767a5c68bc5febefd0e7af32c4 | [
"MIT"
] | 29 | 2017-05-27T11:08:47.000Z | 2021-11-13T01:35:42.000Z | # -*- coding: utf-8 -*-
"""Test file."""
"""
>>> from pyrgg import *
>>> import pyrgg.params
>>> import random
>>> import os
>>> import json
>>> import yaml
>>> import pickle
>>> pyrgg.params.PYRGG_TEST_MODE = True
>>> get_precision(2)
0
>>> get_precision(2.2)
1
>>> get_precision(2.22)
2
>>> get_precision(2.223)
3
>>> ... | 17.573638 | 801 | 0.61035 | 5,188 | 23,865 | 2.752506 | 0.062837 | 0.029692 | 0.027311 | 0.027381 | 0.565826 | 0.548529 | 0.532003 | 0.462675 | 0.455952 | 0.448529 | 0 | 0.297744 | 0.178965 | 23,865 | 1,357 | 802 | 17.586588 | 0.43105 | 0.001383 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
acf90149ae1d5391921c145661fb813109951569 | 4,638 | py | Python | digital_storage_calculator/data_units/decimal_based_on_bytes_units.py | GonnaFlyMethod/digital-storage-calculator | f5e6d3614711651c8fbc04cca9862e50d4f71ff9 | [
"MIT"
] | null | null | null | digital_storage_calculator/data_units/decimal_based_on_bytes_units.py | GonnaFlyMethod/digital-storage-calculator | f5e6d3614711651c8fbc04cca9862e50d4f71ff9 | [
"MIT"
] | null | null | null | digital_storage_calculator/data_units/decimal_based_on_bytes_units.py | GonnaFlyMethod/digital-storage-calculator | f5e6d3614711651c8fbc04cca9862e50d4f71ff9 | [
"MIT"
] | null | null | null | class Kilobyte:
def __init__(self, value_kilobytes: int):
self._value_kilobytes = value_kilobytes
self.one_kilobyte_in_bits = 8000
self._value_bits = self._convert_into_bits(value_kilobytes)
self.id = "KB"
def _convert_into_bits(self, value_kilobytes: int) -> int:
return value_kilobytes * self.one_kilobyt... | 27.939759 | 63 | 0.769728 | 703 | 4,638 | 4.600285 | 0.073969 | 0.133581 | 0.074212 | 0.054422 | 0.67718 | 0.622758 | 0.535869 | 0.311998 | 0.138837 | 0.138837 | 0 | 0.005772 | 0.140793 | 4,638 | 165 | 64 | 28.109091 | 0.805772 | 0 | 0 | 0.133929 | 0 | 0 | 0.00345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0 | 0.285714 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4a1a3e2c6893239df24704738369b2576f43eb47 | 1,754 | py | Python | Credential.py | Ruterana/password_locker | eadc92b506bea9607c395fe5027b8cc61722a6a3 | [
"MIT"
] | null | null | null | Credential.py | Ruterana/password_locker | eadc92b506bea9607c395fe5027b8cc61722a6a3 | [
"MIT"
] | null | null | null | Credential.py | Ruterana/password_locker | eadc92b506bea9607c395fe5027b8cc61722a6a3 | [
"MIT"
] | null | null | null | class Credential:
"""
Class that generates new instances of Credentials .
"""
Credential_list = [] # Empty User list
def __init__(self,Account,user_name,password):
# docstring removed for simplicity
self.Account= Account
self.user_name = user_name
self.password ... | 27.84127 | 92 | 0.611745 | 185 | 1,754 | 5.675676 | 0.313514 | 0.133333 | 0.048571 | 0.064762 | 0.24381 | 0.121905 | 0.121905 | 0.121905 | 0.121905 | 0.121905 | 0 | 0 | 0.327822 | 1,754 | 63 | 93 | 27.84127 | 0.890585 | 0.376283 | 0 | 0.291667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.083333 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
4a1ac93ecbdafca5f1a19f9acf5ffa8f6e6f4bef | 1,455 | py | Python | venv/lib/python3.8/site-packages/tensorflow/_api/v2/compat/v1/autograph/__init__.py | JIANG-CX/data_labeling | 8d2470bbb537dfc09ed2f7027ed8ee7de6447248 | [
"MIT"
] | 1 | 2021-05-24T10:08:51.000Z | 2021-05-24T10:08:51.000Z | venv/lib/python3.8/site-packages/tensorflow/_api/v2/compat/v1/autograph/__init__.py | JIANG-CX/data_labeling | 8d2470bbb537dfc09ed2f7027ed8ee7de6447248 | [
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/tensorflow/_api/v2/compat/v1/autograph/__init__.py | JIANG-CX/data_labeling | 8d2470bbb537dfc09ed2f7027ed8ee7de6447248 | [
"MIT"
] | null | null | null | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
"""Conversion of eager-style Python into TensorFlow graph code.
NOTE: In TensorFlow 2.0, AutoGraph is automatically applied when using
`tf.function`. This module contains lower-level APIs f... | 45.46875 | 143 | 0.823368 | 219 | 1,455 | 5.369863 | 0.538813 | 0.081633 | 0.106293 | 0.098639 | 0.158163 | 0.158163 | 0.158163 | 0.158163 | 0 | 0 | 0 | 0.003879 | 0.114089 | 1,455 | 31 | 144 | 46.935484 | 0.908456 | 0.713402 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.875 | 0 | 0.875 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4a24ce592bf9a1ad1bfa8597f12822f88adc0326 | 635 | py | Python | pyridge/preprocess/log.py | cperales/PyRidge | b0029fae9e24a4e5c364bbd8fc3791eab15baa75 | [
"MIT"
] | 8 | 2019-03-09T13:47:23.000Z | 2022-01-29T03:51:00.000Z | pyridge/preprocess/log.py | cperales/pyridge | 74a9aa83c1687e5362b0fd02f526281ad6837b75 | [
"MIT"
] | 1 | 2018-10-19T18:46:53.000Z | 2018-10-19T18:46:53.000Z | pyridge/preprocess/log.py | cperales/PyRidge | b0029fae9e24a4e5c364bbd8fc3791eab15baa75 | [
"MIT"
] | 3 | 2020-08-26T10:08:20.000Z | 2021-11-13T11:42:23.000Z | from pyridge.generic.scaler import Scaler
import numpy as np
class LogScaler(Scaler):
"""
Scaler for that transform the values in a logaritmic
scaler.
"""
def __init__(self):
self.min_: np.float
def get_params(self):
return {'min_': self.min_}
def fit(self, values):
... | 22.678571 | 56 | 0.623622 | 86 | 635 | 4.453488 | 0.383721 | 0.091384 | 0.148825 | 0.067885 | 0.219321 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 0.259843 | 635 | 27 | 57 | 23.518519 | 0.804255 | 0.094488 | 0 | 0 | 0 | 0 | 0.007207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0.1875 | 0.8125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c57bcc6acb9c43631696838c26641dc6013708ae | 2,393 | py | Python | torch2trt/converters/div.py | Akababa/torch2trt | 03063b74a7eb40f5aac88d49be6b8b5e4e4e92d7 | [
"MIT"
] | 2 | 2020-07-10T06:26:03.000Z | 2020-07-10T07:38:08.000Z | torch2trt/converters/div.py | Akababa/torch2trt | 03063b74a7eb40f5aac88d49be6b8b5e4e4e92d7 | [
"MIT"
] | 1 | 2020-02-16T09:43:35.000Z | 2020-02-16T09:43:35.000Z | torch2trt/converters/div.py | Akababa/torch2trt | 03063b74a7eb40f5aac88d49be6b8b5e4e4e92d7 | [
"MIT"
] | null | null | null | from ..conversion_context import *
from torch2trt.module_test import add_module_test
from .binary import convert_binary_elementwise
@tensorrt_converter('torch.div')
@tensorrt_converter('torch.Tensor.__div__') # py2
@tensorrt_converter('torch.Tensor.__idiv__') # py2
@tensorrt_converter('torch.Tensor.__truediv__') #... | 25.189474 | 91 | 0.692018 | 324 | 2,393 | 4.737654 | 0.169753 | 0.099674 | 0.12899 | 0.145928 | 0.704886 | 0.587622 | 0.587622 | 0.477524 | 0.392834 | 0.38241 | 0 | 0.040939 | 0.162975 | 2,393 | 94 | 92 | 25.457447 | 0.725412 | 0.012954 | 0 | 0.311475 | 0 | 0 | 0.091798 | 0.070973 | 0 | 0 | 0 | 0 | 0 | 1 | 0.311475 | false | 0 | 0.04918 | 0.147541 | 0.606557 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c5a7343637bd12ccc731a64fda6bcafb70eed6da | 16,144 | py | Python | admin_application/reserve.py | freeze1/My_copy_of_Hotel_Reservation | 4af612acb0220135707a73e4624d7c816a1103df | [
"MIT"
] | 14 | 2015-12-19T19:41:41.000Z | 2021-03-19T07:03:38.000Z | admin_application/reserve.py | freeze1/My_copy_of_Hotel_Reservation | 4af612acb0220135707a73e4624d7c816a1103df | [
"MIT"
] | null | null | null | admin_application/reserve.py | freeze1/My_copy_of_Hotel_Reservation | 4af612acb0220135707a73e4624d7c816a1103df | [
"MIT"
] | 17 | 2015-12-20T05:19:03.000Z | 2021-09-29T04:12:38.000Z | #!/usr/bin/python
from Tkinter import *
import tkMessageBox,Tkinter,comm
import util
# The main window which shows all the hotels with that particular facility
class book(util.window):
# Name of the thing is required like room, banquet etc
def __init__(self, server, name):
self.server = server
self.name = name
... | 35.248908 | 209 | 0.626301 | 2,572 | 16,144 | 3.856532 | 0.119751 | 0.02964 | 0.019054 | 0.013711 | 0.761972 | 0.728299 | 0.708842 | 0.67164 | 0.658232 | 0.628088 | 0 | 0.052511 | 0.213206 | 16,144 | 457 | 210 | 35.326039 | 0.728389 | 0.040387 | 0 | 0.647887 | 0 | 0.005634 | 0.127544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04507 | false | 0.005634 | 0.008451 | 0 | 0.067606 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c5ce2b6234a6c764b1388631e4cae4cdeb3cde41 | 500 | py | Python | com/blueberr/python/study/day2/list_test2.py | CoderHongKong/python-study | 4e13359e3546b67d555a79adee63422cac7968c2 | [
"Apache-2.0"
] | null | null | null | com/blueberr/python/study/day2/list_test2.py | CoderHongKong/python-study | 4e13359e3546b67d555a79adee63422cac7968c2 | [
"Apache-2.0"
] | null | null | null | com/blueberr/python/study/day2/list_test2.py | CoderHongKong/python-study | 4e13359e3546b67d555a79adee63422cac7968c2 | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
#!/usr/bin/env python
#-------------------------------------------------------------------------------
# Name:
# Purpose:
#
# Author: hekai
#-------------------------------------------------------------------------------
arrs = ['a', 'b', 'c', ['x', 'y'],'d', 'e']
print(arrs)
# 浅拷贝
a... | 20.833333 | 80 | 0.356 | 53 | 500 | 3.283019 | 0.566038 | 0.258621 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.13 | 500 | 23 | 81 | 21.73913 | 0.388506 | 0.488 | 0 | 0 | 0 | 0 | 0.077236 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.615385 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
c5d5f844dc7b6d549c2e35fed6864c15335bb942 | 185 | py | Python | Chapter_2/SCU_2.7.py | charliealpha094/Introduction-to-Python-Programming-for-Business-and-Social-Sciences-Applications | 52c4612b0d80da3311411bc7aee1d98f75de3d95 | [
"MIT"
] | null | null | null | Chapter_2/SCU_2.7.py | charliealpha094/Introduction-to-Python-Programming-for-Business-and-Social-Sciences-Applications | 52c4612b0d80da3311411bc7aee1d98f75de3d95 | [
"MIT"
] | null | null | null | Chapter_2/SCU_2.7.py | charliealpha094/Introduction-to-Python-Programming-for-Business-and-Social-Sciences-Applications | 52c4612b0d80da3311411bc7aee1d98f75de3d95 | [
"MIT"
] | null | null | null | # Done by Carlos Amaral (16/09/2020)
# SCU_2.7 - Modify a User-Defined Function
def my_function(x, y):
return (x+y)/2
x = 4
y = 5
print("The average is: ", my_function(x,y))
| 12.333333 | 43 | 0.632432 | 36 | 185 | 3.166667 | 0.722222 | 0.052632 | 0.192982 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089655 | 0.216216 | 185 | 14 | 44 | 13.214286 | 0.696552 | 0.405405 | 0 | 0 | 0 | 0 | 0.152381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.2 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
c5de3484c9384a40139f9092736b15d7e18061b5 | 50,010 | py | Python | sandbox-singlepage/data_prep_blockgrp.py | epcw/housing_equity | 074da171880fb445765662a98a816d13779f160f | [
"MIT"
] | null | null | null | sandbox-singlepage/data_prep_blockgrp.py | epcw/housing_equity | 074da171880fb445765662a98a816d13779f160f | [
"MIT"
] | null | null | null | sandbox-singlepage/data_prep_blockgrp.py | epcw/housing_equity | 074da171880fb445765662a98a816d13779f160f | [
"MIT"
] | 1 | 2021-07-19T20:25:02.000Z | 2021-07-19T20:25:02.000Z | import pandas as pd
import geopandas as gp
from geopy import distance
import json
import csv
#set root directory for data files
#ROOTDIR = '/home/ubuntu/housing_equity/sandbox-singlepage/' #production
ROOTDIR = '' #local
#read in shapefile (needs to be in GeoJSON format)
#with open('/home/ubuntu/dash/data/washingtong... | 84.05042 | 1,173 | 0.767287 | 7,771 | 50,010 | 4.442157 | 0.048385 | 0.044293 | 0.054751 | 0.052289 | 0.831025 | 0.769554 | 0.688789 | 0.619902 | 0.548725 | 0.520365 | 0 | 0.082325 | 0.071666 | 50,010 | 594 | 1,174 | 84.191919 | 0.661224 | 0.05057 | 0 | 0.042553 | 0 | 0 | 0.430014 | 0.251906 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004255 | false | 0 | 0.012766 | 0 | 0.021277 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c5df8b7ad170b27ba879a52b84d09f449761877e | 29 | py | Python | cachebuster/tests.py | ossobv/django-cachebuster | 2e48e5c4c94fb60c0ccb3b9bd52b5803162e2180 | [
"BSD-3-Clause"
] | null | null | null | cachebuster/tests.py | ossobv/django-cachebuster | 2e48e5c4c94fb60c0ccb3b9bd52b5803162e2180 | [
"BSD-3-Clause"
] | null | null | null | cachebuster/tests.py | ossobv/django-cachebuster | 2e48e5c4c94fb60c0ccb3b9bd52b5803162e2180 | [
"BSD-3-Clause"
] | null | null | null | __author__ = 'James Addison'
| 14.5 | 28 | 0.758621 | 3 | 29 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 29 | 1 | 29 | 29 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0.448276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c5f4396c9c2a4bc1df9d0de095d61c8098c8d796 | 805 | py | Python | assignment1/assignment1/sigmoid.py | lars4/Machine-Learning | 04156b51608c3d19cde9643dad9367e7ceaace21 | [
"MIT"
] | null | null | null | assignment1/assignment1/sigmoid.py | lars4/Machine-Learning | 04156b51608c3d19cde9643dad9367e7ceaace21 | [
"MIT"
] | null | null | null | assignment1/assignment1/sigmoid.py | lars4/Machine-Learning | 04156b51608c3d19cde9643dad9367e7ceaace21 | [
"MIT"
] | null | null | null | from numpy import exp
def sigmoid(z):
"""
Computes the sigmoid of z element-wise.
Args:
z: An np.array of arbitrary shape
Returns:
g: An np.array of the same shape as z
"""
g = None
#######################################################################
# TODO: ... | 28.75 | 75 | 0.239752 | 56 | 805 | 3.446429 | 0.571429 | 0.103627 | 0.124352 | 0.134715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003891 | 0.361491 | 805 | 27 | 76 | 29.814815 | 0.371595 | 0.392547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6804c4cf60f22bd8e1138677cca8ce98dba893f1 | 141 | py | Python | Python/chapter1.py | thebiebs/python-practise-exercises | 28db498f35ec6f9bdd437f54c91990027f4b9436 | [
"MIT"
] | null | null | null | Python/chapter1.py | thebiebs/python-practise-exercises | 28db498f35ec6f9bdd437f54c91990027f4b9436 | [
"MIT"
] | null | null | null | Python/chapter1.py | thebiebs/python-practise-exercises | 28db498f35ec6f9bdd437f54c91990027f4b9436 | [
"MIT"
] | null | null | null | # Autonr : Biswadeep Roy
# import os
''' thiple single quote is used to
do multiple line comments'''
print("Hello world")
| 10.846154 | 35 | 0.624113 | 18 | 141 | 4.888889 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.283688 | 141 | 12 | 36 | 11.75 | 0.871287 | 0.638298 | 0 | 0 | 0 | 0 | 0.37931 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
680b387b1517d20d6c712efab67f23a5cb553a13 | 1,148 | py | Python | tests/gates/rx/test_constructor.py | edyounis/QFactor | 8ce255b432157e2a0d4e91e0a8c4be0ef4f60a74 | [
"BSD-3-Clause-LBNL"
] | 3 | 2020-12-15T17:14:13.000Z | 2020-12-17T11:35:37.000Z | tests/gates/rx/test_constructor.py | edyounis/qFactor | 8ce255b432157e2a0d4e91e0a8c4be0ef4f60a74 | [
"BSD-3-Clause-LBNL"
] | null | null | null | tests/gates/rx/test_constructor.py | edyounis/qFactor | 8ce255b432157e2a0d4e91e0a8c4be0ef4f60a74 | [
"BSD-3-Clause-LBNL"
] | null | null | null | import scipy
import numpy as np
import unittest as ut
from qfactor import get_distance
from qfactor.gates import RxGate
class TestRxGateConstructor ( ut.TestCase ):
def test_rxgate_constructor_invalid ( self ):
self.assertRaises( TypeError, RxGate, 1, 0 )
self.assertRaises( TypeError, RxGate, ... | 32.8 | 64 | 0.616725 | 151 | 1,148 | 4.569536 | 0.324503 | 0.185507 | 0.253623 | 0.314493 | 0.310145 | 0.217391 | 0.217391 | 0.217391 | 0.163768 | 0.163768 | 0 | 0.034843 | 0.25 | 1,148 | 34 | 65 | 33.764706 | 0.766551 | 0 | 0 | 0 | 0 | 0 | 0.008718 | 0 | 0 | 0 | 0 | 0 | 0.48 | 1 | 0.08 | false | 0 | 0.2 | 0 | 0.32 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6818bcf80778fa40f78accee9577156d7b677201 | 1,016 | py | Python | tests/api/test_api.py | ludeeus/HARM | 9c4f69d7cd7c240c2aa66c150723536b533b9f2f | [
"MIT"
] | 456 | 2019-03-02T22:46:27.000Z | 2019-10-23T18:34:23.000Z | tests/api/test_api.py | ludeeus/HARM | 9c4f69d7cd7c240c2aa66c150723536b533b9f2f | [
"MIT"
] | 573 | 2019-03-02T18:42:28.000Z | 2019-10-24T07:52:38.000Z | tests/api/test_api.py | ludeeus/harm | 55794176fccf55321780decf9ef354e91a41d1b9 | [
"MIT"
] | 275 | 2019-05-22T06:27:25.000Z | 2019-10-23T11:42:51.000Z | import os
from homeassistant.core import HomeAssistant
import pytest
from custom_components.hacs.websocket import (
acknowledge_critical_repository,
get_critical_repositories,
hacs_config,
hacs_removed,
hacs_repositories,
hacs_repository,
hacs_repository_data,
hacs_settings,
hacs_s... | 30.787879 | 96 | 0.720472 | 126 | 1,016 | 5.579365 | 0.293651 | 0.113798 | 0.230441 | 0.227596 | 0.341394 | 0.311522 | 0.169275 | 0 | 0 | 0 | 0 | 0.010465 | 0.153543 | 1,016 | 32 | 97 | 31.75 | 0.806977 | 0 | 0 | 0 | 0 | 0 | 0.036417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.148148 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a84c93910e0067ef22094363b9104b41671748b4 | 2,872 | py | Python | cexapi.py | binary-signal/Ethereum-Tracker | c7f57114e9f4d0772d2aae37a4d058c4a595525e | [
"BSD-2-Clause"
] | null | null | null | cexapi.py | binary-signal/Ethereum-Tracker | c7f57114e9f4d0772d2aae37a4d058c4a595525e | [
"BSD-2-Clause"
] | null | null | null | cexapi.py | binary-signal/Ethereum-Tracker | c7f57114e9f4d0772d2aae37a4d058c4a595525e | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Author: t0pep0
import hmac
import hashlib
import time
import json
import requests
class API(object):
__username = ''
__api_key = ''
__api_secret = ''
__nonce_v = ''
# Init class
def __init__(self, username, api_key, api_secret):
self.__username = username
... | 34.60241 | 94 | 0.581476 | 352 | 2,872 | 4.485795 | 0.292614 | 0.062065 | 0.074098 | 0.096897 | 0.166561 | 0.137429 | 0.137429 | 0.100697 | 0 | 0 | 0 | 0.014016 | 0.279596 | 2,872 | 82 | 95 | 35.02439 | 0.749154 | 0.095404 | 0 | 0 | 0 | 0 | 0.0964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0 | 0.083333 | 0.15 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a855b0f2caaa009080c63d609278957a43507fa9 | 4,484 | py | Python | Fujitsu/benchmarks/resnet/implementations/mxnet/3rdparty/tvm/tests/python/relay/test_op_level4.py | mengkai94/training_results_v0.6 | 43dc3e250f8da47b5f8833197d74cb8cf1004fc9 | [
"Apache-2.0"
] | 64 | 2021-05-02T14:42:34.000Z | 2021-05-06T01:35:03.000Z | Fujitsu/benchmarks/resnet/implementations/mxnet/3rdparty/tvm/tests/python/relay/test_op_level4.py | mengkai94/training_results_v0.6 | 43dc3e250f8da47b5f8833197d74cb8cf1004fc9 | [
"Apache-2.0"
] | 23 | 2019-07-29T05:21:52.000Z | 2020-08-31T18:51:42.000Z | Fujitsu/benchmarks/resnet/implementations/mxnet/3rdparty/tvm/tests/python/relay/test_op_level4.py | mengkai94/training_results_v0.6 | 43dc3e250f8da47b5f8833197d74cb8cf1004fc9 | [
"Apache-2.0"
] | 51 | 2019-07-12T05:10:25.000Z | 2021-07-28T16:19:06.000Z | import tvm
import numpy as np
from tvm import relay
from tvm.relay.ir_pass import infer_type
from tvm.relay.ir_builder import IRBuilder, func_type
from tvm.relay.ir_builder import scalar_type, convert, tensor_type
from tvm.relay.env import Environment
def assert_has_type(expr, typ, env=Environment({})):
checked_ex... | 33.714286 | 97 | 0.557984 | 631 | 4,484 | 3.790808 | 0.126783 | 0.016304 | 0.053512 | 0.060201 | 0.758361 | 0.713211 | 0.713211 | 0.671405 | 0.671405 | 0.671405 | 0 | 0.035032 | 0.299732 | 4,484 | 132 | 98 | 33.969697 | 0.726752 | 0.041258 | 0 | 0.666667 | 0 | 0 | 0.026166 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.085714 | false | 0.047619 | 0.066667 | 0 | 0.152381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a86962e651316a79f083b17d24ecf32b3747966f | 3,210 | py | Python | cishouseholds/pipeline/survey_responses_version_1_ETL.py | ONS-SST/cis_households | e475df5929e6763a46cd05aff1f7e960ccbe8e21 | [
"MIT"
] | null | null | null | cishouseholds/pipeline/survey_responses_version_1_ETL.py | ONS-SST/cis_households | e475df5929e6763a46cd05aff1f7e960ccbe8e21 | [
"MIT"
] | 252 | 2021-05-19T11:12:43.000Z | 2022-03-02T10:39:10.000Z | cishouseholds/pipeline/survey_responses_version_1_ETL.py | ONS-SST/cis_households | e475df5929e6763a46cd05aff1f7e960ccbe8e21 | [
"MIT"
] | null | null | null | from pyspark.sql import DataFrame
from cishouseholds.edit import update_column_values_from_map
def transform_survey_responses_version_1_delta(df: DataFrame) -> DataFrame:
"""
Call functions to process input for iqvia version 1 survey deltas.
"""
df = update_column_values_from_map(
df=df,
... | 82.307692 | 234 | 0.681308 | 458 | 3,210 | 4.742358 | 0.213974 | 0.073665 | 0.119705 | 0.084715 | 0.792818 | 0.755525 | 0.714088 | 0.649171 | 0.593002 | 0.592081 | 0 | 0.041582 | 0.235826 | 3,210 | 38 | 235 | 84.473684 | 0.843865 | 0.090966 | 0 | 0 | 0 | 0.096774 | 0.736039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.064516 | 0 | 0.129032 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a8839f47f0607984bb6bf33ad2644bd86b6beb66 | 142 | py | Python | app/Http/python/report/report.py | asavadorndeja/sttools | 97154c20abfc9181420de82585af9a44b2e7f50a | [
"MIT"
] | null | null | null | app/Http/python/report/report.py | asavadorndeja/sttools | 97154c20abfc9181420de82585af9a44b2e7f50a | [
"MIT"
] | null | null | null | app/Http/python/report/report.py | asavadorndeja/sttools | 97154c20abfc9181420de82585af9a44b2e7f50a | [
"MIT"
] | null | null | null | from docx import Document
document = Document()
paragraph = document.add_paragraph('Lorem ipsum dolor sit amet.')
document.save('test.docx')
| 23.666667 | 65 | 0.774648 | 19 | 142 | 5.736842 | 0.684211 | 0.293578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112676 | 142 | 5 | 66 | 28.4 | 0.865079 | 0 | 0 | 0 | 0 | 0 | 0.253521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a88c4ef527adf6b8ae1d513fbe9ac0efdd5e0f50 | 132 | py | Python | tests/port_tests/local_minimum_list_tests/test_initialization.py | synapticarbors/wagyu | b98354611dceda8888f2951e9704f843a4e88c27 | [
"MIT"
] | 1 | 2021-01-20T05:49:13.000Z | 2021-01-20T05:49:13.000Z | tests/port_tests/local_minimum_list_tests/test_initialization.py | synapticarbors/wagyu | b98354611dceda8888f2951e9704f843a4e88c27 | [
"MIT"
] | 1 | 2020-11-20T18:21:24.000Z | 2020-11-20T18:21:37.000Z | tests/port_tests/local_minimum_list_tests/test_initialization.py | synapticarbors/wagyu | b98354611dceda8888f2951e9704f843a4e88c27 | [
"MIT"
] | 2 | 2020-11-20T18:17:31.000Z | 2021-01-20T14:58:22.000Z | from wagyu.local_minimum import LocalMinimumList
def test_basic() -> None:
result = LocalMinimumList()
assert not result
| 16.5 | 48 | 0.742424 | 15 | 132 | 6.4 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189394 | 132 | 7 | 49 | 18.857143 | 0.897196 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a8acf5cdaf0becf37a0b507e99ea7dbc51b7249b | 1,514 | py | Python | carball/analysis/stats/stats_list.py | Druthyn/carball | 924ba75d2a60d069a5722a3d2a98814765d79197 | [
"Apache-2.0"
] | null | null | null | carball/analysis/stats/stats_list.py | Druthyn/carball | 924ba75d2a60d069a5722a3d2a98814765d79197 | [
"Apache-2.0"
] | null | null | null | carball/analysis/stats/stats_list.py | Druthyn/carball | 924ba75d2a60d069a5722a3d2a98814765d79197 | [
"Apache-2.0"
] | null | null | null | from typing import List
from ...analysis.stats.possession.ball_distances import BallDistanceStat
from ...analysis.stats.tendencies.hit_counts import HitCountStat
from ...analysis.stats.ball_forward.distance_hit_ball_forward import DistanceStats
from ...analysis.stats.boost.boost import BoostStat
from ...analysis.stats... | 34.409091 | 82 | 0.669089 | 166 | 1,514 | 6.018072 | 0.361446 | 0.096096 | 0.136136 | 0.068068 | 0.18018 | 0.18018 | 0.18018 | 0.18018 | 0.18018 | 0.18018 | 0 | 0 | 0.23712 | 1,514 | 43 | 83 | 35.209302 | 0.864935 | 0.19683 | 0 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | true | 0 | 0.310345 | 0 | 0.62069 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a8bb61012c18672e5e35e12db9b92f5f395a5092 | 63 | py | Python | pipeline/__init__.py | BioroboticsLab/deeppipeline | 7e60e410b3a1f4d8a65924033f13dbf0ecdd3e94 | [
"Apache-2.0"
] | 4 | 2017-02-27T16:21:09.000Z | 2020-12-10T13:42:23.000Z | pipeline/__init__.py | BioroboticsLab/deeppipeline | 7e60e410b3a1f4d8a65924033f13dbf0ecdd3e94 | [
"Apache-2.0"
] | 5 | 2016-04-30T16:39:04.000Z | 2016-07-19T13:24:10.000Z | pipeline/__init__.py | BioroboticsLab/deeppipeline | 7e60e410b3a1f4d8a65924033f13dbf0ecdd3e94 | [
"Apache-2.0"
] | 4 | 2016-12-29T04:33:22.000Z | 2020-02-04T15:26:10.000Z | from pipeline.pipeline import Pipeline
__all__ = ["Pipeline"]
| 15.75 | 38 | 0.777778 | 7 | 63 | 6.428571 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126984 | 63 | 3 | 39 | 21 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a8d17cff9d03c9b5f0bbfc31454729949c4905b3 | 486 | py | Python | main/admin.py | SkyFlame00/assf | 807b409716f7cff0e322eb47ffc79532a437d566 | [
"MIT"
] | null | null | null | main/admin.py | SkyFlame00/assf | 807b409716f7cff0e322eb47ffc79532a437d566 | [
"MIT"
] | null | null | null | main/admin.py | SkyFlame00/assf | 807b409716f7cff0e322eb47ffc79532a437d566 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import *
#admin.site.unregister(User)
admin.site.register(User)
admin.site.register(University)
admin.site.register(Student)
admin.site.register(SubjectArea)
admin.site.register(Competency)
admin.site.register(UniversityProgram)
admin.site.register(Company)
admin.site.reg... | 27 | 41 | 0.837449 | 60 | 486 | 6.783333 | 0.35 | 0.287469 | 0.501229 | 0.103194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047325 | 486 | 17 | 42 | 28.588235 | 0.87905 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a8d1a0d2a446a497847c615a74555505a5c4576c | 67 | py | Python | download/gnosis/util/__init__.py | DavidMertz/gnosis-web | df5ab0d470a02ed6c51c971f2b40f1dcdc7d7350 | [
"CC0-1.0"
] | 3 | 2018-09-29T14:14:28.000Z | 2022-01-05T03:45:50.000Z | library/CanFestival/objdictgen/gnosis/util/__init__.py | Lembed/STM32duino-gcc-Projects | 67829e9cd1388601daf9815b0561da557e0b9f82 | [
"MIT"
] | 1 | 2017-06-17T08:15:28.000Z | 2017-06-17T08:15:28.000Z | library/CanFestival/objdictgen/gnosis/util/__init__.py | Lembed/STM32duino-gcc-Projects | 67829e9cd1388601daf9815b0561da557e0b9f82 | [
"MIT"
] | 1 | 2019-12-08T15:11:55.000Z | 2019-12-08T15:11:55.000Z | __doc__ = """Utilities for manipulating text and XML documents"""
| 22.333333 | 65 | 0.746269 | 8 | 67 | 5.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 67 | 2 | 66 | 33.5 | 0.807018 | 0 | 0 | 0 | 0 | 0 | 0.742424 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a8d4cb7ba4b4a2da6c7cceb6a066b8d3f629af23 | 2,610 | py | Python | guillotina/json/serialize_value.py | rboixaderg/guillotina | fcae65c2185222272f3b8fee4bc2754e81e0e983 | [
"BSD-2-Clause"
] | 173 | 2017-03-10T18:26:12.000Z | 2022-03-03T06:48:56.000Z | guillotina/json/serialize_value.py | rboixaderg/guillotina | fcae65c2185222272f3b8fee4bc2754e81e0e983 | [
"BSD-2-Clause"
] | 921 | 2017-03-08T14:04:43.000Z | 2022-03-30T10:28:56.000Z | guillotina/json/serialize_value.py | rboixaderg/guillotina | fcae65c2185222272f3b8fee4bc2754e81e0e983 | [
"BSD-2-Clause"
] | 60 | 2017-03-16T19:59:44.000Z | 2022-03-03T06:48:59.000Z | # -*- coding: utf-8 -*-
from datetime import date
from datetime import datetime
from datetime import time
from datetime import timedelta
from decimal import Decimal
from guillotina import configure
from guillotina.component import query_adapter
from guillotina.i18n import Message
from guillotina.interfaces import IValu... | 23.097345 | 109 | 0.749042 | 320 | 2,610 | 5.959375 | 0.25625 | 0.102779 | 0.176193 | 0.121657 | 0.251704 | 0.207656 | 0.207656 | 0.207656 | 0.146827 | 0.146827 | 0 | 0.003636 | 0.157088 | 2,610 | 112 | 110 | 23.303571 | 0.863182 | 0.036398 | 0 | 0.162162 | 0 | 0 | 0.022709 | 0 | 0 | 0 | 0 | 0.008929 | 0 | 1 | 0.202703 | false | 0 | 0.148649 | 0.162162 | 0.608108 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a8d736adfea0f5cf1f91ed53d809275e9235e323 | 616 | py | Python | maths/binary_exponentiation.py | KirilBangachev/Python | 7ad45a46e02edda86a45969de8768f26ef44b306 | [
"MIT"
] | 3 | 2019-10-11T20:50:59.000Z | 2020-01-21T02:10:10.000Z | maths/binary_exponentiation.py | KirilBangachev/Python | 7ad45a46e02edda86a45969de8768f26ef44b306 | [
"MIT"
] | 1 | 2019-09-01T06:43:06.000Z | 2019-09-01T06:44:55.000Z | maths/binary_exponentiation.py | KirilBangachev/Python | 7ad45a46e02edda86a45969de8768f26ef44b306 | [
"MIT"
] | 3 | 2020-08-05T02:33:42.000Z | 2020-10-13T02:47:01.000Z | """Binary Exponentiation."""
# Author : Junth Basnet
# Time Complexity : O(logn)
def binary_exponentiation(a, n):
if (n == 0):
return 1
elif (n % 2 == 1):
return binary_exponentiation(a, n - 1) * a
else:
b = binary_exponentiation(a, n / 2)
return b * b
if __name__ == ... | 21.241379 | 53 | 0.568182 | 73 | 616 | 4.630137 | 0.520548 | 0.295858 | 0.186391 | 0.195266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013453 | 0.275974 | 616 | 28 | 54 | 22 | 0.744395 | 0.11526 | 0 | 0 | 0 | 0 | 0.137546 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.25 | 0.125 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
764500292880b940ffedf37330fd4fdeaba8b412 | 267 | py | Python | rename_to_project_and_finish/software/light_software.py | vasetousa/OOP | e4fedc497dd149c9800613ea11846e0e770d122c | [
"MIT"
] | null | null | null | rename_to_project_and_finish/software/light_software.py | vasetousa/OOP | e4fedc497dd149c9800613ea11846e0e770d122c | [
"MIT"
] | null | null | null | rename_to_project_and_finish/software/light_software.py | vasetousa/OOP | e4fedc497dd149c9800613ea11846e0e770d122c | [
"MIT"
] | null | null | null | from rename_to_project_and_finish.software.software import Software
class LightSoftware(Software):
def __init__(self, name, capacity_consumption, memory_consumption):
super().__init__(name, "Light", capacity_consumption * 1.5, memory_consumption * 0.5)
| 38.142857 | 93 | 0.782772 | 33 | 267 | 5.848485 | 0.666667 | 0.196891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017094 | 0.123596 | 267 | 6 | 94 | 44.5 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0.018727 | 0 | 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 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7650577452e0cf4ff18f847e249769d2b41e28d9 | 229,370 | py | Python | pysnmp-with-texts/Nortel-MsCarrier-MscPassport-AtmNetworkingMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/Nortel-MsCarrier-MscPassport-AtmNetworkingMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/Nortel-MsCarrier-MscPassport-AtmNetworkingMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module Nortel-MsCarrier-MscPassport-AtmNetworkingMIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-MsCarrier-MscPassport-AtmNetworkingMIB
# Produced by pysmi-0.3.4 at Wed May 1 14:29:08 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by... | 183.496 | 13,983 | 0.803549 | 26,314 | 229,370 | 7.004256 | 0.053926 | 0.051826 | 0.090695 | 0.009419 | 0.591693 | 0.475151 | 0.458939 | 0.446351 | 0.419863 | 0.393614 | 0 | 0.051183 | 0.093779 | 229,370 | 1,249 | 13,984 | 183.642914 | 0.835519 | 0.001674 | 0 | 0 | 0 | 0.095008 | 0.376453 | 0.068911 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066023 | 0.008052 | 0 | 0.008052 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
765f9f230cd6637c94f6d617e46c42003ae62808 | 7,940 | py | Python | client/untitled8forget_password.py | seaase/sqlserver- | e31ccbe43c13e3758b59388771577c484920e67d | [
"Apache-2.0"
] | null | null | null | client/untitled8forget_password.py | seaase/sqlserver- | e31ccbe43c13e3758b59388771577c484920e67d | [
"Apache-2.0"
] | null | null | null | client/untitled8forget_password.py | seaase/sqlserver- | e31ccbe43c13e3758b59388771577c484920e67d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'untitled8forget_password_.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
import cookielib
import json
import urllib2
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidget... | 43.867403 | 92 | 0.638665 | 875 | 7,940 | 5.665143 | 0.227429 | 0.050837 | 0.071011 | 0.0581 | 0.249344 | 0.094008 | 0.020173 | 0.020173 | 0.020173 | 0 | 0 | 0.04696 | 0.235642 | 7,940 | 181 | 93 | 43.867403 | 0.769814 | 0.028212 | 0 | 0.063694 | 1 | 0 | 0.06748 | 0.00545 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.082803 | 0.044586 | null | null | 0.019108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
767dcd3d317250256f72fac9cfaf7e74e116c49c | 212 | py | Python | faceRegonization/views.py | jeremykid/FunAlgorithm | 0ee34f130574d2a42ce995a1a44545a7368f9add | [
"MIT"
] | null | null | null | faceRegonization/views.py | jeremykid/FunAlgorithm | 0ee34f130574d2a42ce995a1a44545a7368f9add | [
"MIT"
] | null | null | null | faceRegonization/views.py | jeremykid/FunAlgorithm | 0ee34f130574d2a42ce995a1a44545a7368f9add | [
"MIT"
] | null | null | null | def my_view(request):
if request.method == 'POST':
import set_gpio
#Do your stuff ,calling whatever you want from set_gpio.py
return "1"#Something, normally a HTTPResponse, using django"" | 35.333333 | 66 | 0.683962 | 30 | 212 | 4.733333 | 0.9 | 0.098592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006098 | 0.226415 | 212 | 6 | 67 | 35.333333 | 0.859756 | 0.504717 | 0 | 0 | 0 | 0 | 0.048077 | 0 | 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 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
76832d61e4a10b1f36ba9b2a0925fb5737021c78 | 1,239 | py | Python | series_tiempo_ar_api/apps/analytics/migrations/0012_auto_20190124_1117.py | datosgobar/series-tiempo-ar-api | 6b553c573f6e8104f8f3919efe79089b7884280c | [
"MIT"
] | 28 | 2017-12-16T20:30:52.000Z | 2021-08-11T17:35:04.000Z | series_tiempo_ar_api/apps/analytics/migrations/0012_auto_20190124_1117.py | datosgobar/series-tiempo-ar-api | 6b553c573f6e8104f8f3919efe79089b7884280c | [
"MIT"
] | 446 | 2017-11-16T15:21:40.000Z | 2021-06-10T20:14:21.000Z | series_tiempo_ar_api/apps/analytics/migrations/0012_auto_20190124_1117.py | datosgobar/series-tiempo-ar-api | 6b553c573f6e8104f8f3919efe79089b7884280c | [
"MIT"
] | 12 | 2018-08-23T16:13:32.000Z | 2022-03-01T23:12:28.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2019-01-24 14:17
from __future__ import unicode_literals
import builtins
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('analytics', '0011_auto_20190123_1530'),
]
operations = [
mi... | 28.813953 | 125 | 0.588378 | 108 | 1,239 | 6.574074 | 0.601852 | 0.06338 | 0.197183 | 0.180282 | 0.219718 | 0.219718 | 0 | 0 | 0 | 0 | 0 | 0.040184 | 0.297014 | 1,239 | 42 | 126 | 29.5 | 0.774971 | 0.054883 | 0 | 0.371429 | 1 | 0 | 0.182363 | 0.019692 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.228571 | 0 | 0.314286 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
769c3e39c92e07a33491de093807aa7916f7b562 | 749 | py | Python | core/migrations/0012_facets_ordering.py | kingsdigitallab/egomedia-django | 7347fc96ca52ac195b388e43204d0a0faab0c88f | [
"MIT"
] | null | null | null | core/migrations/0012_facets_ordering.py | kingsdigitallab/egomedia-django | 7347fc96ca52ac195b388e43204d0a0faab0c88f | [
"MIT"
] | 10 | 2021-04-06T18:17:44.000Z | 2022-03-01T12:21:40.000Z | core/migrations/0012_facets_ordering.py | kingsdigitallab/egomedia-django | 7347fc96ca52ac195b388e43204d0a0faab0c88f | [
"MIT"
] | null | null | null | # Generated by Django 2.1.5 on 2019-02-07 12:53
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0011_add_researcherpage_facets'),
]
operations = [
migrations.AlterModelOptions(
name='discipline',
options={'orderi... | 24.966667 | 76 | 0.543391 | 60 | 749 | 6.7 | 0.6 | 0.268657 | 0.308458 | 0.149254 | 0.253731 | 0.253731 | 0 | 0 | 0 | 0 | 0 | 0.036965 | 0.313752 | 749 | 29 | 77 | 25.827586 | 0.745136 | 0.06008 | 0 | 0.478261 | 1 | 0 | 0.196581 | 0.042735 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
76ab30d445f38b5284e8d136416629a76379a3dd | 29 | py | Python | package/__init__.py | nebasam/Datafetch | 3842c99c390e6262e290bdf3896b31ba72021c67 | [
"MIT"
] | null | null | null | package/__init__.py | nebasam/Datafetch | 3842c99c390e6262e290bdf3896b31ba72021c67 | [
"MIT"
] | 5 | 2021-08-22T09:41:52.000Z | 2021-08-24T07:35:29.000Z | package/__init__.py | nebasam/Datafetch | 3842c99c390e6262e290bdf3896b31ba72021c67 | [
"MIT"
] | null | null | null | # version
__version__ = 0.01 | 9.666667 | 18 | 0.724138 | 4 | 29 | 4.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0.172414 | 29 | 3 | 18 | 9.666667 | 0.583333 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
76ab5652d1bee271e69a49cd81b5b2c4d3ea4be0 | 340 | py | Python | class_only_design/__init__.py | chaburkland/class-only-design | 3c49795458d80ffab080af51dde44b31a4633702 | [
"MIT"
] | 5 | 2020-07-08T09:29:17.000Z | 2022-03-07T11:52:53.000Z | class_only_design/__init__.py | chaburkland/class-only-design | 3c49795458d80ffab080af51dde44b31a4633702 | [
"MIT"
] | 2 | 2018-08-22T21:12:44.000Z | 2018-09-20T00:08:40.000Z | class_only_design/__init__.py | InvestmentSystems/class_only_design | 3724ebd9ffeb244a926e2f2033a7a3c9e8430021 | [
"MIT"
] | 1 | 2020-02-10T18:32:46.000Z | 2020-02-10T18:32:46.000Z | # -*- coding: utf-8 -*-
"""Top-level package for Class Only."""
__author__ = """Tom Rutherford"""
__email__ = "foreverwintr@gmail.com"
__version__ = "0.3.0"
from class_only_design.api import ClassOnly
from class_only_design.api import Namespace
from class_only_design.api import constant
from class_only_design.consta... | 26.153846 | 48 | 0.773529 | 48 | 340 | 5.0625 | 0.583333 | 0.185185 | 0.213992 | 0.312757 | 0.345679 | 0.345679 | 0 | 0 | 0 | 0 | 0 | 0.013289 | 0.114706 | 340 | 12 | 49 | 28.333333 | 0.79402 | 0.164706 | 0 | 0 | 0 | 0 | 0.147482 | 0.079137 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 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 | 0 | 0 | 0 | 3 |
76b8f1979e1c7076dc386642b3bdfb94d3dfdd64 | 234 | py | Python | katas/beta/another_one_down_survival_of_fittest.py | the-zebulan/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 40 | 2016-03-09T12:26:20.000Z | 2022-03-23T08:44:51.000Z | katas/beta/another_one_down_survival_of_fittest.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | null | null | null | katas/beta/another_one_down_survival_of_fittest.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 36 | 2016-11-07T19:59:58.000Z | 2022-03-31T11:18:27.000Z | def remove_smallest(n, lst):
if n <= 0:
return lst
elif n > len(lst):
return []
dex = [b[1] for b in sorted((a, i) for i, a in enumerate(lst))[:n]]
return [c for i, c in enumerate(lst) if i not in dex]
| 29.25 | 71 | 0.547009 | 44 | 234 | 2.886364 | 0.477273 | 0.07874 | 0.220472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.307692 | 234 | 7 | 72 | 33.428571 | 0.771605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4f108cae5082e44b7199955fbd9665d371aaec3a | 1,779 | py | Python | world/load_busstop.py | homata/geodjango-hands-on | 3ecee17c0f14122a72aacc71f187011f0b112d08 | [
"Apache-2.0"
] | 13 | 2018-12-02T07:40:08.000Z | 2022-03-13T09:04:34.000Z | world/load_busstop.py | homata/geodjango-hands-on | 3ecee17c0f14122a72aacc71f187011f0b112d08 | [
"Apache-2.0"
] | 3 | 2020-06-05T19:24:35.000Z | 2021-06-10T20:58:57.000Z | download/source_code/world/load_busstop.py | homata/geodjango-book | 94842892bb5f4ea053b8366189e89a36bf7505c5 | [
"Apache-2.0"
] | 6 | 2018-06-24T10:07:32.000Z | 2019-08-12T09:46:18.000Z | # -*- coding: utf-8 -*-
import os
from django.contrib.gis.utils import LayerMapping
from world.models import Busstop
# Modelとファイルのカラムのマッピング
mapping = {
'p11_001' : 'P11_001' ,
'p11_002' : 'P11_002',
'p11_003_1' : 'P11_003_1',
'p11_003_2' : 'P11_003_2',
'p11_003_3' : 'P11_003_3',
'p1... | 30.672414 | 99 | 0.602586 | 295 | 1,779 | 3.084746 | 0.20339 | 0.250549 | 0.01978 | 0.021978 | 0.606593 | 0 | 0 | 0 | 0 | 0 | 0 | 0.375635 | 0.224845 | 1,779 | 57 | 100 | 31.210526 | 0.284264 | 0.02923 | 0 | 0 | 0 | 0 | 0.471471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0 | 0.06 | 0 | 0.08 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4f2e1ee4de7cb22626da8030ea8a9272f98b1887 | 143 | py | Python | CodeWars/6 Kyu/ASCII Fun #2 - Funny Dots.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | CodeWars/6 Kyu/ASCII Fun #2 - Funny Dots.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | CodeWars/6 Kyu/ASCII Fun #2 - Funny Dots.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | def dot(n,m):
r=['+'+'---+'*n]
for _ in range(m):
r.append('|'+' o |'*n)
r.append('+'+'---+'*n)
return '\n'.join(r) | 23.833333 | 30 | 0.356643 | 21 | 143 | 2.380952 | 0.571429 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27972 | 143 | 6 | 31 | 23.833333 | 0.485437 | 0 | 0 | 0 | 0 | 0 | 0.118056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4f324d9591817ae7e76ed952da3ba2d089be20d7 | 752 | py | Python | Example/sk/IrisClassifier.py | napoler/tkit-bentoml-frameworks-expand | 64da36bbfb740ae28fe591086087ebac7d78e51f | [
"Apache-2.0"
] | 1 | 2021-12-17T03:13:34.000Z | 2021-12-17T03:13:34.000Z | Example/sk/IrisClassifier.py | napoler/tkit-bentoml-frameworks-expand | 64da36bbfb740ae28fe591086087ebac7d78e51f | [
"Apache-2.0"
] | null | null | null | Example/sk/IrisClassifier.py | napoler/tkit-bentoml-frameworks-expand | 64da36bbfb740ae28fe591086087ebac7d78e51f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
作者: terrychan
Blog: https://terrychan.org
# 说明:
"""
import bentoml
from bentoml import web_static_content
from bentoml.adapters import DataframeInput
from bentoml.frameworks.sklearn import SklearnModelArtifact
# @save_to_dir("test.py") # 测试保存文件
@bentoml.env(infer_pip_packages=True)
@bentom... | 19.789474 | 59 | 0.667553 | 82 | 752 | 5.926829 | 0.670732 | 0.067901 | 0.065844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003289 | 0.191489 | 752 | 37 | 60 | 20.324324 | 0.796053 | 0.202128 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.307692 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
4f60aaf734523156a890b237eaf31d3d6056e7d1 | 289 | py | Python | sp/shell/server.py | florianm93/studium | 21e40e053dfa3f30ab0b508c42c9d4827a312a50 | [
"MIT"
] | null | null | null | sp/shell/server.py | florianm93/studium | 21e40e053dfa3f30ab0b508c42c9d4827a312a50 | [
"MIT"
] | null | null | null | sp/shell/server.py | florianm93/studium | 21e40e053dfa3f30ab0b508c42c9d4827a312a50 | [
"MIT"
] | null | null | null | from SimpleXMLRPCServer import SimpleXMLRPCServer
class Funcs:
def add(self, x, y):
return x + y
def sub(self, x, y):
return x - y
server = SimpleXMLRPCServer(("localhost", 8000))
server.register_instance(Funcs())
server.serve_forever()
| 22.230769 | 49 | 0.622837 | 33 | 289 | 5.393939 | 0.575758 | 0.044944 | 0.067416 | 0.134831 | 0.157303 | 0.157303 | 0 | 0 | 0 | 0 | 0 | 0.019139 | 0.276817 | 289 | 12 | 50 | 24.083333 | 0.832536 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.222222 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4f8d0f880fbc20e5c097be5277625bf19daea6dd | 1,208 | py | Python | FreeTAKServer/controllers/services/API/tests.py | logikal/FreeTakServer | c0916ce65781b5c60079d6440e52db8fc6ee0467 | [
"MIT"
] | null | null | null | FreeTAKServer/controllers/services/API/tests.py | logikal/FreeTakServer | c0916ce65781b5c60079d6440e52db8fc6ee0467 | [
"MIT"
] | null | null | null | FreeTAKServer/controllers/services/API/tests.py | logikal/FreeTakServer | c0916ce65781b5c60079d6440e52db8fc6ee0467 | [
"MIT"
] | null | null | null | import unittest
import threading
class Tests(unittest.TestCase):
def test_service_info(self):
from multiprocessing import Pipe
from FreeTAKServer.model.ServiceObjects.FTS import FTS
pipe1, pipe2 = Pipe(True)
from FreeTAKServer.controllers.services.API import RestAPI
RestAPI.... | 40.266667 | 135 | 0.570364 | 106 | 1,208 | 6.386792 | 0.471698 | 0.125554 | 0.165436 | 0.212703 | 0.25997 | 0.25997 | 0.25997 | 0.177253 | 0 | 0 | 0 | 0.006219 | 0.334437 | 1,208 | 30 | 136 | 40.266667 | 0.835821 | 0 | 0 | 0.115385 | 0 | 0 | 0.084367 | 0.01737 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.038462 | 0.346154 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4f8d669c620b55368b3dde1ed4523e8739d5464c | 336 | py | Python | app/blueprints/api/v1/api.py | SimonSkade/labplaner | 5ca73237713faa0d423374fdcf0bf1185ebc11f8 | [
"Apache-2.0"
] | 1 | 2021-06-06T17:56:44.000Z | 2021-06-06T17:56:44.000Z | app/blueprints/api/v1/api.py | SimonSkade/labplaner | 5ca73237713faa0d423374fdcf0bf1185ebc11f8 | [
"Apache-2.0"
] | null | null | null | app/blueprints/api/v1/api.py | SimonSkade/labplaner | 5ca73237713faa0d423374fdcf0bf1185ebc11f8 | [
"Apache-2.0"
] | null | null | null | from flask import Blueprint, request, jsonify, render_template
from app.models.user import User, UserSchema
from app import db
bp = Blueprint('api', __name__)
user_schema = UserSchema()
users_schema = UserSchema(many=True)
@bp.route('/', methods=['GET'])
def index():
return render_template('api/v1/index.html', ... | 24 | 63 | 0.738095 | 47 | 336 | 5.106383 | 0.617021 | 0.116667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006803 | 0.125 | 336 | 13 | 64 | 25.846154 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0.089286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0.111111 | 0.555556 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
4fa480357fe18fc44f4b067d7dddb0da42dd9435 | 84 | py | Python | embedding_encoder/__init__.py | r-sosa-gh/embedding-encoder | f8200124dbf2e37eec0aa35b4eaf809ee1869785 | [
"MIT"
] | 16 | 2022-03-25T15:25:34.000Z | 2022-03-31T18:17:20.000Z | embedding_encoder/__init__.py | r-sosa-gh/embedding-encoder | f8200124dbf2e37eec0aa35b4eaf809ee1869785 | [
"MIT"
] | 7 | 2022-01-26T01:16:08.000Z | 2022-03-23T00:53:51.000Z | embedding_encoder/__init__.py | r-sosa-gh/embedding-encoder | f8200124dbf2e37eec0aa35b4eaf809ee1869785 | [
"MIT"
] | 3 | 2022-01-12T16:01:29.000Z | 2022-01-12T17:01:12.000Z | from embedding_encoder.core import EmbeddingEncoder
__all__ = ["EmbeddingEncoder"]
| 21 | 51 | 0.833333 | 8 | 84 | 8.125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 84 | 3 | 52 | 28 | 0.855263 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
96c421f732ab71871a092202481b35d009b37b1a | 1,623 | py | Python | tests/preprocess/test_preprocess__KernelDensity.py | kamilazdybal/PCAfold | 251ca0dc8c8f98976266b94147504247ddd09bd2 | [
"MIT"
] | 1 | 2022-02-01T08:57:18.000Z | 2022-02-01T08:57:18.000Z | tests/preprocess/test_preprocess__KernelDensity.py | kamilazdybal/PCAfold | 251ca0dc8c8f98976266b94147504247ddd09bd2 | [
"MIT"
] | null | null | null | tests/preprocess/test_preprocess__KernelDensity.py | kamilazdybal/PCAfold | 251ca0dc8c8f98976266b94147504247ddd09bd2 | [
"MIT"
] | 1 | 2022-03-13T13:19:56.000Z | 2022-03-13T13:19:56.000Z | import unittest
import numpy as np
from PCAfold import preprocess
from PCAfold import reduction
from PCAfold import analysis
class Preprocess(unittest.TestCase):
def test_preprocess__KernelDensity__allowed_calls(self):
X = np.random.rand(100,20)
try:
kerneld = preprocess.KernelDensit... | 27.508475 | 80 | 0.55268 | 152 | 1,623 | 5.802632 | 0.269737 | 0.234694 | 0.238095 | 0.246032 | 0.72449 | 0.685941 | 0.513605 | 0.463719 | 0.463719 | 0.386621 | 0 | 0.021941 | 0.269871 | 1,623 | 58 | 81 | 27.982759 | 0.722363 | 0.096734 | 0 | 0.575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225 | 1 | 0.05 | false | 0 | 0.125 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
96d2bb044c390731b1e2f1e708489a0c310e59cd | 417 | py | Python | cdd/tests/test_pkg_utils.py | SamuelMarks/docstring2class | a70745134bcb069fffdf1d9210c17129925c8fd5 | [
"Apache-2.0",
"MIT"
] | 4 | 2021-05-28T14:50:58.000Z | 2022-03-01T23:22:14.000Z | cdd/tests/test_pkg_utils.py | SamuelMarks/docstring2class | a70745134bcb069fffdf1d9210c17129925c8fd5 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-02-19T04:13:38.000Z | 2021-02-19T04:13:38.000Z | cdd/tests/test_pkg_utils.py | SamuelMarks/docstring2class | a70745134bcb069fffdf1d9210c17129925c8fd5 | [
"Apache-2.0",
"MIT"
] | 3 | 2020-09-09T21:23:09.000Z | 2021-02-13T07:53:07.000Z | """ Tests for pkg utils """
from unittest import TestCase
from cdd.pkg_utils import relative_filename
from cdd.tests.utils_for_tests import unittest_main
class TestPkgUtils(TestCase):
"""Test class for pkg utils"""
def test_relative_filename(self) -> None:
"""Tests relative_filename ident"""
... | 21.947368 | 59 | 0.719424 | 52 | 417 | 5.576923 | 0.423077 | 0.22069 | 0.075862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184652 | 417 | 18 | 60 | 23.166667 | 0.852941 | 0.177458 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
96dcc54db89e44f1ba7c1d9d3c9010c7621e5110 | 171 | py | Python | localflavor_forms/urls.py | ankurchopra87/django-localflavor-forms | bd8e42171ad3e1805549e3c52be1c3427bf5b47d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | localflavor_forms/urls.py | ankurchopra87/django-localflavor-forms | bd8e42171ad3e1805549e3c52be1c3427bf5b47d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | localflavor_forms/urls.py | ankurchopra87/django-localflavor-forms | bd8e42171ad3e1805549e3c52be1c3427bf5b47d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | from django.contrib import admin
from django.urls import path
from . import views
urlpatterns = [
path('<str:country_code>/', views.get_address_form, name='home'),
]
| 21.375 | 69 | 0.736842 | 24 | 171 | 5.125 | 0.708333 | 0.162602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140351 | 171 | 7 | 70 | 24.428571 | 0.836735 | 0 | 0 | 0 | 0 | 0 | 0.134503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8c169b1b03c09729601eaf8006d8ce375c223baa | 29,962 | py | Python | python/dns.py | burakbudanur/dnsbox | 13ae8b76c54bd45a7bd7902aa88097be783415d4 | [
"MIT"
] | 1 | 2022-02-18T08:11:15.000Z | 2022-02-18T08:11:15.000Z | python/dns.py | burakbudanur/dnsbox | 13ae8b76c54bd45a7bd7902aa88097be783415d4 | [
"MIT"
] | 2 | 2021-07-20T12:19:11.000Z | 2021-07-21T20:29:59.000Z | python/dns.py | burakbudanur/dnsbox | 13ae8b76c54bd45a7bd7902aa88097be783415d4 | [
"MIT"
] | 4 | 2020-12-12T08:18:37.000Z | 2022-03-03T14:52:53.000Z | #!/usr/bin/env python3
"""
This is a module that keeps functions common to all utilities.
"""
from os import makedirs
from pathlib import Path
from struct import pack, unpack
from sys import exit
import numpy as np
from matplotlib import rcParams
from numpy.lib import NumpyVersion
figuresDirName = "figures"
Ly = 4... | 32.079229 | 88 | 0.500935 | 4,228 | 29,962 | 3.501656 | 0.070719 | 0.041337 | 0.034043 | 0.032421 | 0.765957 | 0.749139 | 0.726781 | 0.698548 | 0.690172 | 0.676528 | 0 | 0.059287 | 0.314331 | 29,962 | 933 | 89 | 32.113612 | 0.661361 | 0.060577 | 0 | 0.619614 | 0 | 0 | 0.028713 | 0.006519 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038633 | false | 0 | 0.011887 | 0 | 0.08321 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8c19a3c12ecabd65e74e10b6b6f1d5e7e624cace | 510 | py | Python | tests/test_open.py | dimitri-justeau/rasterio | dda4b823473ba3cb27038e00ee7aa82f867f2a55 | [
"BSD-3-Clause"
] | 1 | 2020-03-17T10:17:57.000Z | 2020-03-17T10:17:57.000Z | tests/test_open.py | dimitri-justeau/rasterio | dda4b823473ba3cb27038e00ee7aa82f867f2a55 | [
"BSD-3-Clause"
] | null | null | null | tests/test_open.py | dimitri-justeau/rasterio | dda4b823473ba3cb27038e00ee7aa82f867f2a55 | [
"BSD-3-Clause"
] | 2 | 2019-09-03T12:18:04.000Z | 2020-03-17T10:18:07.000Z | import pytest
import rasterio
def test_open_bad_path():
with pytest.raises(TypeError):
rasterio.open(3.14)
def test_open_bad_mode_1():
with pytest.raises(TypeError):
rasterio.open("tests/data/RGB.byte.tif", mode=3.14)
def test_open_bad_mode_2():
with pytest.raises(ValueError):
... | 22.173913 | 71 | 0.692157 | 77 | 510 | 4.402597 | 0.324675 | 0.082596 | 0.129794 | 0.165192 | 0.690265 | 0.690265 | 0.581121 | 0.457227 | 0.353982 | 0.353982 | 0 | 0.025822 | 0.164706 | 510 | 22 | 72 | 23.181818 | 0.769953 | 0 | 0 | 0.214286 | 0 | 0 | 0.143137 | 0.135294 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | true | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8c4ff4e9a6672d0ccac9e9f56d8ec8c97011b488 | 4,674 | py | Python | mottak-arkiv-service/tests/connectors/mailgun/test_models.py | omBratteng/mottak | b7d2e1d063b31c2ad89c66e5414297612f91ebe9 | [
"Apache-2.0"
] | 4 | 2021-03-05T15:39:24.000Z | 2021-09-15T06:11:45.000Z | mottak-arkiv-service/tests/connectors/mailgun/test_models.py | omBratteng/mottak | b7d2e1d063b31c2ad89c66e5414297612f91ebe9 | [
"Apache-2.0"
] | 631 | 2020-04-27T10:39:18.000Z | 2022-03-31T14:51:38.000Z | mottak-arkiv-service/tests/connectors/mailgun/test_models.py | omBratteng/mottak | b7d2e1d063b31c2ad89c66e5414297612f91ebe9 | [
"Apache-2.0"
] | 3 | 2020-02-20T15:48:03.000Z | 2021-12-16T22:50:40.000Z | import json
import base64
import uuid
from app.connectors.mailgun.models import InvitasjonUploadUrl, InvitasjonEmail
MAILGUN_DOMAIN = 'sandbox7cbdab032f7b4321af274439b1f353a2.mailgun.org'
TO = ['kriwal@arkivverket.no']
BASE64_URL = 'dpldr://eyJyZWZlcmVuY2UiOiAiMThkZGVkYjYtYThjOC00ZTI4LWIzNTUtZmM4MDJlMzlhNTg4IiwgInVwbG... | 88.188679 | 1,528 | 0.764014 | 514 | 4,674 | 6.873541 | 0.336576 | 0.006227 | 0.006793 | 0.006793 | 0.323521 | 0.193886 | 0.180866 | 0.180866 | 0.156807 | 0.156807 | 0 | 0.068974 | 0.12837 | 4,674 | 52 | 1,529 | 89.884615 | 0.798233 | 0.06119 | 0 | 0 | 0 | 0.0625 | 0.736697 | 0.434001 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.09375 | false | 0 | 0.125 | 0 | 0.25 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4fb562b573aae6a5d79b7e4155c87b2e196fa890 | 395 | py | Python | tests/test_image_approval_polls.py | carlosmarca/polls-trump-covid | 8e484f1560d8379716daefb2b56b0374eb23c44b | [
"MIT"
] | 1 | 2021-06-14T14:35:38.000Z | 2021-06-14T14:35:38.000Z | tests/test_image_approval_polls.py | carlosmarca/polls-trump-covid | 8e484f1560d8379716daefb2b56b0374eb23c44b | [
"MIT"
] | null | null | null | tests/test_image_approval_polls.py | carlosmarca/polls-trump-covid | 8e484f1560d8379716daefb2b56b0374eb23c44b | [
"MIT"
] | null | null | null | import unittest
from filtered_csv import filtered_df
from image_approval_polls import create_approval_bar
class TestImageApprovalPolls(unittest.TestCase):
def test_create_approval_bar(self):
df_1 = filtered_df("data/covid_approval_polls.csv")
df_new = create_approval_bar(df_1)
n = sum(df_... | 30.384615 | 59 | 0.756962 | 56 | 395 | 5 | 0.5 | 0.15 | 0.182143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024316 | 0.167089 | 395 | 12 | 60 | 32.916667 | 0.826748 | 0 | 0 | 0 | 0 | 0 | 0.073418 | 0.073418 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4fb9b6a33610518509b8f1e7f2ed589c9afe0799 | 512 | py | Python | code_cesar.py | elig-45/cryptologie | 5cb9555ef7c7572b5988800b6718316ff09d0e11 | [
"MIT"
] | null | null | null | code_cesar.py | elig-45/cryptologie | 5cb9555ef7c7572b5988800b6718316ff09d0e11 | [
"MIT"
] | null | null | null | code_cesar.py | elig-45/cryptologie | 5cb9555ef7c7572b5988800b6718316ff09d0e11 | [
"MIT"
] | null | null | null | def dechiffrer(message, cle_chiffrement):
int(cle_chiffrement)
resultat = ""
for lettre in message:
resultat = resultat + chr(ord(lettre) - cle_chiffrement)
return resultat
def chiffrer(message, cle_chiffrement):
return dechiffrer(message, -cle_chiffrement)
if __name__ == "__ma... | 34.133333 | 80 | 0.673828 | 56 | 512 | 5.928571 | 0.535714 | 0.210843 | 0.189759 | 0.186747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012225 | 0.201172 | 512 | 15 | 81 | 34.133333 | 0.799511 | 0 | 0 | 0 | 0 | 0 | 0.172345 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0 | 0.083333 | 0.333333 | 0.083333 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4fcae1bc7f4c58f37c02b287e7d546f371d1836f | 1,119 | py | Python | setup.py | misialq/paycheck | efa6bbd199cb9c87369aae42a2b5961d548e04f9 | [
"BSD-3-Clause"
] | null | null | null | setup.py | misialq/paycheck | efa6bbd199cb9c87369aae42a2b5961d548e04f9 | [
"BSD-3-Clause"
] | null | null | null | setup.py | misialq/paycheck | efa6bbd199cb9c87369aae42a2b5961d548e04f9 | [
"BSD-3-Clause"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='paycheck',
version='0.0.3',
author='Ben Kaehler',
author_email='kaehler@gmail.com',
description='Tools for testing q2-clawback',
scripts=['paycheck/assets/run_traceable_dada_paired.R'],
license='BSD-3-Clause',
packages=find_packag... | 37.3 | 71 | 0.699732 | 121 | 1,119 | 6.115702 | 0.471074 | 0.158108 | 0.141892 | 0.140541 | 0.183784 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005476 | 0.184093 | 1,119 | 29 | 72 | 38.586207 | 0.805038 | 0 | 0 | 0 | 0 | 0 | 0.612154 | 0.489723 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.035714 | 0 | 0.035714 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4fcdf8102536a0b74bdc4ad0e0c036b247347c25 | 238 | py | Python | apps/interfacemocks/serializers.py | op896898466/apitest | 6c60514fda01776a9c39b930732bf09b1e8cd0f9 | [
"Apache-2.0"
] | 3 | 2020-09-25T03:01:38.000Z | 2021-08-16T05:48:43.000Z | apps/interfacemocks/serializers.py | op896898466/apitest | 6c60514fda01776a9c39b930732bf09b1e8cd0f9 | [
"Apache-2.0"
] | 8 | 2020-09-25T02:56:06.000Z | 2022-02-27T10:12:32.000Z | apps/interfacemocks/serializers.py | op896898466/apitest | 6c60514fda01776a9c39b930732bf09b1e8cd0f9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from rest_framework import serializers
from .models import Interfacemocks
class InterfacemocksSerializer(serializers.ModelSerializer):
class Meta:
model = Interfacemocks
fields = '__all__'
| 18.307692 | 60 | 0.718487 | 22 | 238 | 7.545455 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005263 | 0.201681 | 238 | 12 | 61 | 19.833333 | 0.868421 | 0.088235 | 0 | 0 | 0 | 0 | 0.03271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8b040a80e12a0e4feb039e0f4cbcfd9e1a068064 | 157 | py | Python | fantaland_app/apps.py | yaping0816/fantaland_api | 12de524f08bdc177634a4545eb11b64b9330501a | [
"MIT"
] | null | null | null | fantaland_app/apps.py | yaping0816/fantaland_api | 12de524f08bdc177634a4545eb11b64b9330501a | [
"MIT"
] | null | null | null | fantaland_app/apps.py | yaping0816/fantaland_api | 12de524f08bdc177634a4545eb11b64b9330501a | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class FantalandAppConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'fantaland_app'
| 22.428571 | 56 | 0.77707 | 18 | 157 | 6.611111 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140127 | 157 | 6 | 57 | 26.166667 | 0.881481 | 0 | 0 | 0 | 0 | 0 | 0.267516 | 0.184713 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8b0d20a79fc1281c4d0682f6a342b46d94fdb445 | 6,274 | py | Python | element/migrations/0002_auto_20190521_1519.py | weirdaze/tauto | e5a635628cd92998212cf3ae74aef2f0436430f5 | [
"MIT"
] | null | null | null | element/migrations/0002_auto_20190521_1519.py | weirdaze/tauto | e5a635628cd92998212cf3ae74aef2f0436430f5 | [
"MIT"
] | 6 | 2021-03-19T16:01:33.000Z | 2022-03-12T00:54:23.000Z | element/migrations/0002_auto_20190521_1519.py | weirdaze/tauto | e5a635628cd92998212cf3ae74aef2f0436430f5 | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2019-05-21 15:19
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
migrations.swappable... | 47.172932 | 151 | 0.585432 | 611 | 6,274 | 5.87725 | 0.175123 | 0.0401 | 0.047062 | 0.061543 | 0.751601 | 0.751601 | 0.63325 | 0.63325 | 0.63325 | 0.6313 | 0 | 0.016055 | 0.275263 | 6,274 | 132 | 152 | 47.530303 | 0.773697 | 0.006854 | 0 | 0.65873 | 1 | 0 | 0.106117 | 0.02376 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.031746 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8b0da55d6d365c65952ed687839427fb6275e5b5 | 360 | py | Python | python-server/setup.py | MobMonRob/Strand-Zaubertrick-mit-Waermebildkamera-Studien | d30e0f59e2bb0de0d24e74b76bd78fb1fc38a500 | [
"Apache-2.0"
] | null | null | null | python-server/setup.py | MobMonRob/Strand-Zaubertrick-mit-Waermebildkamera-Studien | d30e0f59e2bb0de0d24e74b76bd78fb1fc38a500 | [
"Apache-2.0"
] | null | null | null | python-server/setup.py | MobMonRob/Strand-Zaubertrick-mit-Waermebildkamera-Studien | d30e0f59e2bb0de0d24e74b76bd78fb1fc38a500 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
setup(
name='python_remote_processor',
version='0.1',
description='',
package_dir={'': 'src'},
packages=['python_remote_processor'],
install_requires=['llvmlite',
'numba',
'numpy',
'opencv-contrib-pyt... | 24 | 46 | 0.502778 | 29 | 360 | 6.034483 | 0.827586 | 0.137143 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008696 | 0.361111 | 360 | 14 | 47 | 25.714286 | 0.752174 | 0 | 0 | 0 | 0 | 0 | 0.269444 | 0.186111 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8b311d84eec5d0eb18c4e0b282e17ebf77a722ef | 960 | py | Python | utils/state.py | DeWa/PiBooth | 2b2c1b85976bd36257d61e5d6461b52275f72241 | [
"MIT"
] | 1 | 2019-04-22T16:01:32.000Z | 2019-04-22T16:01:32.000Z | utils/state.py | DeWaster/PiBooth | 2b2c1b85976bd36257d61e5d6461b52275f72241 | [
"MIT"
] | 6 | 2021-03-18T21:38:58.000Z | 2022-03-11T23:35:31.000Z | utils/state.py | DeWaster/PiBooth | 2b2c1b85976bd36257d61e5d6461b52275f72241 | [
"MIT"
] | 1 | 2022-02-26T20:44:02.000Z | 2022-02-26T20:44:02.000Z | class State:
state = {}
@staticmethod
def init():
State.state = {
"lowres_frames": None,
"highres_frames": None,
"photopath": "",
"frame": 0,
"current_photo": None,
"share_code": "",
"preview_image_width": 0,
... | 22.325581 | 46 | 0.479167 | 91 | 960 | 4.923077 | 0.417582 | 0.245536 | 0.196429 | 0.223214 | 0.220982 | 0.151786 | 0 | 0 | 0 | 0 | 0 | 0.010363 | 0.396875 | 960 | 42 | 47 | 22.857143 | 0.763385 | 0 | 0 | 0.216216 | 0 | 0 | 0.152083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0 | 0 | 0 | 0.324324 | 0.081081 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8c973a97a9d83f1d1d9a2de482a3e6a3942fd083 | 51 | py | Python | programs/__init__.py | michael-xander/communique-webapp | 85b450d7f6d0313c5e5ef53a262a850b7e93c3d6 | [
"MIT"
] | null | null | null | programs/__init__.py | michael-xander/communique-webapp | 85b450d7f6d0313c5e5ef53a262a850b7e93c3d6 | [
"MIT"
] | null | null | null | programs/__init__.py | michael-xander/communique-webapp | 85b450d7f6d0313c5e5ef53a262a850b7e93c3d6 | [
"MIT"
] | null | null | null | default_app_config = 'programs.apps.ProgramsConfig' | 51 | 51 | 0.862745 | 6 | 51 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 51 | 1 | 51 | 51 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.538462 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8cb5d17f2c4ba03db1c97906ce683dee795fb860 | 840 | py | Python | affinity_pdbdataset/utility/PDB_container.py | Reimilia/Affinity_pdbdataset | 26538e9f6efff2251d36a5e1caa6689d1293241c | [
"MIT"
] | null | null | null | affinity_pdbdataset/utility/PDB_container.py | Reimilia/Affinity_pdbdataset | 26538e9f6efff2251d36a5e1caa6689d1293241c | [
"MIT"
] | null | null | null | affinity_pdbdataset/utility/PDB_container.py | Reimilia/Affinity_pdbdataset | 26538e9f6efff2251d36a5e1caa6689d1293241c | [
"MIT"
] | null | null | null |
class PDB_container:
'''
Use to read a pdb file from a cocrystal structure and parse
it for further use
Note this class cannot write any files and we do not want any
files to be added by this class
This is good for IO management although the code might be hard to
understand
'''
... | 17.87234 | 70 | 0.621429 | 117 | 840 | 4.247863 | 0.470085 | 0.112676 | 0.15493 | 0.078471 | 0.185111 | 0.1167 | 0 | 0 | 0 | 0 | 0 | 0 | 0.329762 | 840 | 46 | 71 | 18.26087 | 0.882771 | 0.327381 | 0 | 0.47619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0.47619 | 0 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
8cdd623deba84f746be842320145b9dd4b48be44 | 350 | py | Python | tests/test_app.py | miikapo/fastapi-crud | d8517d93068b0e71fb114a695a41f48570387b9a | [
"Apache-2.0"
] | 5 | 2021-11-02T20:13:41.000Z | 2022-03-19T00:01:53.000Z | tests/test_app.py | miikapo/fastapi-crud | d8517d93068b0e71fb114a695a41f48570387b9a | [
"Apache-2.0"
] | null | null | null | tests/test_app.py | miikapo/fastapi-crud | d8517d93068b0e71fb114a695a41f48570387b9a | [
"Apache-2.0"
] | null | null | null | from fastapi.testclient import TestClient
def test_index(test_client: TestClient):
r = test_client.get("/")
assert r.status_code == 200
assert r.json() == {"status": "OK"}
def test_read_companies_empty(test_client: TestClient):
r = test_client.get("/companies")
assert r.status_code == 200
as... | 25 | 55 | 0.671429 | 47 | 350 | 4.787234 | 0.425532 | 0.177778 | 0.177778 | 0.186667 | 0.577778 | 0.577778 | 0.577778 | 0.275556 | 0 | 0 | 0 | 0.020833 | 0.177143 | 350 | 13 | 56 | 26.923077 | 0.760417 | 0 | 0 | 0.222222 | 0 | 0 | 0.065714 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8ce9abe4e606c47c8045a25651accc352892ea25 | 2,255 | py | Python | ecpy/fields/Field.py | andynuma/time-release-encryption-py3 | a5c48d07fae8121b59100d4cd79d3e38402d928c | [
"MIT"
] | 48 | 2016-03-30T07:20:49.000Z | 2022-01-27T10:48:43.000Z | ecpy/fields/Field.py | andynuma/time-release-encryption-py3 | a5c48d07fae8121b59100d4cd79d3e38402d928c | [
"MIT"
] | 11 | 2017-03-26T11:03:20.000Z | 2021-06-01T15:54:03.000Z | ecpy/fields/Field.py | andynuma/time-release-encryption-py3 | a5c48d07fae8121b59100d4cd79d3e38402d928c | [
"MIT"
] | 12 | 2016-06-05T19:09:26.000Z | 2021-04-18T04:23:20.000Z | from ..rings.CommutativeRing import CommutativeRing, CommutativeRingElement
class Field(CommutativeRing):
def __init__(s, element_class):
CommutativeRing.__init__(s, element_class)
def _inv(s, a):
raise NotImplementedError()
def _mod(s, a, b):
raise NotImplementedError()
def _div(s, a, b):
... | 22.107843 | 76 | 0.609756 | 359 | 2,255 | 3.440111 | 0.172702 | 0.097166 | 0.116599 | 0.051012 | 0.390283 | 0.331984 | 0.304453 | 0.239676 | 0.239676 | 0.182996 | 0 | 0.005214 | 0.23459 | 2,255 | 101 | 77 | 22.326733 | 0.710313 | 0 | 0 | 0.181818 | 0 | 0 | 0.004437 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.298701 | false | 0 | 0.025974 | 0.207792 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
50694bb281664f99da72dbeb75de94ab7e0ba11f | 100 | py | Python | zoj/1001.py | zirui/challenges | e3d8f2c29685c9c7ecbe32127fe29476675b5131 | [
"MIT"
] | null | null | null | zoj/1001.py | zirui/challenges | e3d8f2c29685c9c7ecbe32127fe29476675b5131 | [
"MIT"
] | null | null | null | zoj/1001.py | zirui/challenges | e3d8f2c29685c9c7ecbe32127fe29476675b5131 | [
"MIT"
] | null | null | null | import sys
for line in sys.stdin:
a, b = line.split()
ans = int(a) + int(b)
print ans
| 12.5 | 25 | 0.56 | 18 | 100 | 3.111111 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.31 | 100 | 7 | 26 | 14.285714 | 0.811594 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5079a06f1827129279c0c31a01ad02811dd9cdb2 | 153 | py | Python | tezpie/p2p/messages/ack_message.py | dakk/tezpie | 04af3ff899ee2f58f5cda010583ca09f9c9d287b | [
"MIT"
] | 2 | 2020-09-26T09:51:12.000Z | 2020-09-26T10:09:28.000Z | tezpie/p2p/messages/ack_message.py | dakk/tezpie | 04af3ff899ee2f58f5cda010583ca09f9c9d287b | [
"MIT"
] | null | null | null | tezpie/p2p/messages/ack_message.py | dakk/tezpie | 04af3ff899ee2f58f5cda010583ca09f9c9d287b | [
"MIT"
] | null | null | null | from ...proto import Encoder
AckMessage = Encoder('AckMessage', [
{ 'type': 'u8be', 'name': 'status' }
])
AckMessage.ACK = 0x00
AckMessage.NACK = 0xFF | 19.125 | 37 | 0.666667 | 17 | 153 | 6 | 0.764706 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.150327 | 153 | 8 | 38 | 19.125 | 0.746154 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0.051948 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
508268549745d04934bd4cafd5a8a97dd1d27c5f | 197 | py | Python | Project/App/forms.py | cs-fullstack-2019-spring/django-mini-project5-rdunavant | 57426c6757fd4f08f61a259f8c87df8756147982 | [
"Apache-2.0"
] | null | null | null | Project/App/forms.py | cs-fullstack-2019-spring/django-mini-project5-rdunavant | 57426c6757fd4f08f61a259f8c87df8756147982 | [
"Apache-2.0"
] | null | null | null | Project/App/forms.py | cs-fullstack-2019-spring/django-mini-project5-rdunavant | 57426c6757fd4f08f61a259f8c87df8756147982 | [
"Apache-2.0"
] | null | null | null | from django import forms
class RecipeModel(forms.ModelForm):
class Meta:
exclude = ["userTableForeignKey"]
fields = ["picture", "name", "description", "date", "creator", "edit"] | 39.4 | 78 | 0.654822 | 19 | 197 | 6.789474 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192893 | 197 | 5 | 78 | 39.4 | 0.811321 | 0 | 0 | 0 | 0 | 0 | 0.282828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
5091cdf10cd88cdb3b76607a781d01ecf33a24f5 | 93 | py | Python | python/basic_data_types/tuples.py | scouvreur/hackerrank | 93a52ed6a744ce41fd215d8007435a682228fa01 | [
"MIT"
] | 1 | 2021-01-28T14:23:24.000Z | 2021-01-28T14:23:24.000Z | python/basic_data_types/tuples.py | scouvreur/hackerrank | 93a52ed6a744ce41fd215d8007435a682228fa01 | [
"MIT"
] | null | null | null | python/basic_data_types/tuples.py | scouvreur/hackerrank | 93a52ed6a744ce41fd215d8007435a682228fa01 | [
"MIT"
] | null | null | null | n = int(input())
integer_tuple = tuple(map(int, input().split()))
print(hash(integer_tuple))
| 23.25 | 48 | 0.698925 | 14 | 93 | 4.5 | 0.642857 | 0.253968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086022 | 93 | 3 | 49 | 31 | 0.741176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5092ee063107347172dea54671e779e32a9373c6 | 84 | py | Python | esercizi/listaFor.py | gdv/python-alfabetizzazione | d87561222de8a230db11d8529c49cf1702aec326 | [
"MIT"
] | null | null | null | esercizi/listaFor.py | gdv/python-alfabetizzazione | d87561222de8a230db11d8529c49cf1702aec326 | [
"MIT"
] | null | null | null | esercizi/listaFor.py | gdv/python-alfabetizzazione | d87561222de8a230db11d8529c49cf1702aec326 | [
"MIT"
] | 1 | 2019-03-26T11:14:33.000Z | 2019-03-26T11:14:33.000Z | lista = [7, 3.0 + 5, 'pippo', 2 +1j]
for elemento in lista :
print elemento
| 10.5 | 36 | 0.571429 | 14 | 84 | 3.428571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.285714 | 84 | 7 | 37 | 12 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0.060976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
50a5d5b371e77b9a7b0ec716de0dcc084efde5c5 | 87 | py | Python | audesc/__init__.py | RainOfAshes/audesc | 037d461c9cd256abcc9981fa62fdb8c25ebf36a0 | [
"MIT"
] | null | null | null | audesc/__init__.py | RainOfAshes/audesc | 037d461c9cd256abcc9981fa62fdb8c25ebf36a0 | [
"MIT"
] | null | null | null | audesc/__init__.py | RainOfAshes/audesc | 037d461c9cd256abcc9981fa62fdb8c25ebf36a0 | [
"MIT"
] | null | null | null | from .describers import (
WaveDescriber,
FlacDescriber,
MP3Describer
)
| 14.5 | 25 | 0.666667 | 6 | 87 | 9.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.275862 | 87 | 5 | 26 | 17.4 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
50bb547cb0b25d36bf98f00cc60161cadf13763f | 447 | py | Python | {{cookiecutter.directory_name}}/apps/core/querysets/soft_delete.py | zurek11/django-project-template | 04dbdc87e4fd3ac14d235b3a6d5626f9f1ec2f61 | [
"MIT"
] | null | null | null | {{cookiecutter.directory_name}}/apps/core/querysets/soft_delete.py | zurek11/django-project-template | 04dbdc87e4fd3ac14d235b3a6d5626f9f1ec2f61 | [
"MIT"
] | null | null | null | {{cookiecutter.directory_name}}/apps/core/querysets/soft_delete.py | zurek11/django-project-template | 04dbdc87e4fd3ac14d235b3a6d5626f9f1ec2f61 | [
"MIT"
] | 2 | 2021-05-19T10:13:54.000Z | 2022-03-17T11:54:15.000Z | from django.db.models import QuerySet
from django.utils import timezone
class SoftDeleteQuerySet(QuerySet):
def delete(self):
return super(SoftDeleteQuerySet, self).update(deleted_at=timezone.now(), is_deleted=True)
def hard_delete(self):
return super(SoftDeleteQuerySet, self).delete()
d... | 26.294118 | 97 | 0.718121 | 56 | 447 | 5.642857 | 0.482143 | 0.126582 | 0.101266 | 0.132911 | 0.272152 | 0.272152 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183445 | 447 | 16 | 98 | 27.9375 | 0.865753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.181818 | 0.363636 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
50c2aa2c33e2f3f693095203a0f654662b2d32a0 | 624 | py | Python | tests/test_counter_limit_source.py | Arfius/requests-counter | 053ce84de2ffb88a54487a21757dd992e1b5b901 | [
"MIT"
] | null | null | null | tests/test_counter_limit_source.py | Arfius/requests-counter | 053ce84de2ffb88a54487a21757dd992e1b5b901 | [
"MIT"
] | null | null | null | tests/test_counter_limit_source.py | Arfius/requests-counter | 053ce84de2ffb88a54487a21757dd992e1b5b901 | [
"MIT"
] | null | null | null | from requests_counter.reqcounter import ReqCounter
import pytest
origin_allowed = ["origin_1", "origin_2"]
@pytest.mark.asyncio
async def test_check_origin_in():
cl = ReqCounter('redis://localhost')
await cl.setup_source(origin_allowed)
res = await cl.check_source("origin_1")
await cl.destroy_all()
... | 24.96 | 50 | 0.724359 | 89 | 624 | 4.842697 | 0.370787 | 0.12993 | 0.078886 | 0.102088 | 0.770302 | 0.770302 | 0.770302 | 0.770302 | 0.584687 | 0.584687 | 0 | 0.009634 | 0.168269 | 624 | 24 | 51 | 26 | 0.820809 | 0 | 0 | 0.526316 | 0 | 0 | 0.107372 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
50cec153b126270fd9ef368280797071a3ee4a8d | 2,236 | py | Python | deuce/drivers/storage/blocks/disk/diskstoragedriver.py | TheSriram/deuce | 9e8a7a342275aa02d0a59953b5a8c96ffb760b51 | [
"Apache-2.0"
] | null | null | null | deuce/drivers/storage/blocks/disk/diskstoragedriver.py | TheSriram/deuce | 9e8a7a342275aa02d0a59953b5a8c96ffb760b51 | [
"Apache-2.0"
] | null | null | null | deuce/drivers/storage/blocks/disk/diskstoragedriver.py | TheSriram/deuce | 9e8a7a342275aa02d0a59953b5a8c96ffb760b51 | [
"Apache-2.0"
] | null | null | null | from pecan import conf
from deuce.drivers.storage.blocks import BlockStorageDriver
import os
import io
import shutil
class DiskStorageDriver(BlockStorageDriver):
"""A driver for storing blocks onto local disk
IMPORTANT: This driver should not be considered
secure and therefore should not be ran in
... | 31.055556 | 69 | 0.682916 | 326 | 2,236 | 4.395706 | 0.257669 | 0.092812 | 0.175855 | 0.200977 | 0.494766 | 0.494766 | 0.478018 | 0.412421 | 0.326588 | 0.326588 | 0 | 0 | 0.232111 | 2,236 | 71 | 70 | 31.492958 | 0.834595 | 0.144454 | 0 | 0.275 | 0 | 0 | 0.002151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.025 | 0.575 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
50cee4d951c2f762a5a95f2caf26269dacd77fd4 | 17,235 | py | Python | submodules/tensorflow-fcn/NNet.py | zhuanjiao2222/MultiAi | d53f1bd15ba591218c2209e3d14765c8d3f06707 | [
"MIT"
] | null | null | null | submodules/tensorflow-fcn/NNet.py | zhuanjiao2222/MultiAi | d53f1bd15ba591218c2209e3d14765c8d3f06707 | [
"MIT"
] | null | null | null | submodules/tensorflow-fcn/NNet.py | zhuanjiao2222/MultiAi | d53f1bd15ba591218c2209e3d14765c8d3f06707 | [
"MIT"
] | null | null | null | from network import Network
import tensorflow as tf
class NEWNet_BN(Network):
def setup(self, is_training, num_classes):
(self.feed('data')
# qianbo - +
# .interp(s_factor=0.5, name='data_sub2')
.conv(3, 3, 32*2, 2, 2, biased=False, padding='SAME', relu=False, name='conv... | 53.859375 | 103 | 0.593734 | 2,494 | 17,235 | 3.807538 | 0.042101 | 0.090038 | 0.130055 | 0.122157 | 0.887426 | 0.858677 | 0.735257 | 0.610046 | 0.379949 | 0.345409 | 0 | 0.106068 | 0.24839 | 17,235 | 319 | 104 | 54.028213 | 0.626988 | 0.075544 | 0 | 0.02381 | 0 | 0 | 0.236733 | 0.067404 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003968 | false | 0 | 0.007937 | 0 | 0.015873 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
50e687a34102d32cb07c18e8afdb8a819da9c4b8 | 1,033 | py | Python | setup.py | liumengjun/django-fast-test | 1996fc284872ae61f8d1634ecaa27a8030d8b8d7 | [
"MIT"
] | null | null | null | setup.py | liumengjun/django-fast-test | 1996fc284872ae61f8d1634ecaa27a8030d8b8d7 | [
"MIT"
] | null | null | null | setup.py | liumengjun/django-fast-test | 1996fc284872ae61f8d1634ecaa27a8030d8b8d7 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
from django_fast_test import __version__ as version_str
setup(
name = "django-fast-test",
version = version_str,
license = "MIT",
description = "Django fast test command.",
author = "Mengjun Liu",
author_email = "mengjun18@gmail.com",
url = "ht... | 27.918919 | 59 | 0.588577 | 101 | 1,033 | 5.891089 | 0.554455 | 0.159664 | 0.210084 | 0.17479 | 0.090756 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016064 | 0.276864 | 1,033 | 36 | 60 | 28.694444 | 0.780455 | 0 | 0 | 0.09375 | 0 | 0 | 0.478219 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
50f92a592946d1897b5fc6bb541c6bc8fe13164b | 581 | py | Python | toontown/distributed/DistributedTimerAI.py | CrankySupertoon01/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 1 | 2021-02-13T22:40:50.000Z | 2021-02-13T22:40:50.000Z | toontown/distributed/DistributedTimerAI.py | CrankySupertoonArchive/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 1 | 2018-07-28T20:07:04.000Z | 2018-07-30T18:28:34.000Z | toontown/distributed/DistributedTimerAI.py | CrankySupertoonArchive/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 2 | 2019-12-02T01:39:10.000Z | 2021-02-13T22:41:00.000Z | from direct.directnotify import DirectNotifyGlobal
from direct.distributed.DistributedObjectAI import DistributedObjectAI
from direct.distributed.ClockDelta import *
import time
class DistributedTimerAI(DistributedObjectAI):
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedTimerAI")
def __init... | 32.277778 | 78 | 0.776248 | 53 | 581 | 8.358491 | 0.471698 | 0.06772 | 0.094808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004065 | 0.153184 | 581 | 17 | 79 | 34.176471 | 0.896341 | 0 | 0 | 0 | 0 | 0 | 0.030981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.307692 | 0.076923 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0f9a936b19e68c743f212d7c29b6877da2eaaa94 | 868 | py | Python | testsuite/tests/NA17-007__line_length/run_test.py | AdaCore/style_checker | 17108ebfc44375498063ecdad6c6e4430458e60a | [
"CNRI-Python"
] | 2 | 2017-10-22T18:04:26.000Z | 2020-03-06T11:07:41.000Z | testsuite/tests/NA17-007__line_length/run_test.py | AdaCore/style_checker | 17108ebfc44375498063ecdad6c6e4430458e60a | [
"CNRI-Python"
] | null | null | null | testsuite/tests/NA17-007__line_length/run_test.py | AdaCore/style_checker | 17108ebfc44375498063ecdad6c6e4430458e60a | [
"CNRI-Python"
] | 4 | 2018-05-22T12:08:54.000Z | 2020-12-14T15:25:27.000Z | def test_length_ko_1_adb(style_checker):
"""Check length-ko-1.adb
"""
style_checker.set_year(2006)
p = style_checker.run_style_checker('gnat', 'length-ko-1.adb')
style_checker.assertNotEqual(p.status, 0, p.image)
style_checker.assertRunOutputEqual(p, """\
length-ko-1.adb:50:80: (style) this line... | 31 | 66 | 0.707373 | 135 | 868 | 4.281481 | 0.244444 | 0.373702 | 0.134948 | 0.083045 | 0.82872 | 0.811419 | 0.607266 | 0.562284 | 0.562284 | 0.562284 | 0 | 0.039136 | 0.146313 | 868 | 27 | 67 | 32.148148 | 0.740891 | 0.079493 | 0 | 0.411765 | 0 | 0 | 0.136247 | 0.028278 | 0 | 0 | 0 | 0 | 0.352941 | 1 | 0.176471 | false | 0 | 0 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0f9f0370e2f0099a0b8d46f70c478d5ea2b7fa71 | 758 | py | Python | utils/metrics.py | aarshpatel/Modeling-Affect-Intensity | 163bdcc6dea6345c1bf3344f625ad1bcaa531081 | [
"MIT"
] | 1 | 2017-11-23T19:28:39.000Z | 2017-11-23T19:28:39.000Z | utils/metrics.py | aarshpatel/Modeling-Affect-Intensity | 163bdcc6dea6345c1bf3344f625ad1bcaa531081 | [
"MIT"
] | null | null | null | utils/metrics.py | aarshpatel/Modeling-Affect-Intensity | 163bdcc6dea6345c1bf3344f625ad1bcaa531081 | [
"MIT"
] | 1 | 2018-11-29T06:16:03.000Z | 2018-11-29T06:16:03.000Z | """ Implementation of various evaluation metrics """
from sklearn.metrics import mean_squared_error
from sklearn.metrics import make_scorer
import scipy
import math
def rmse(y_true, y_pred):
""" Root mean squared error """
return math.sqrt(mean_squared_error(y_true, y_pred))
def mse(y_true, y_pred):
""" ... | 31.583333 | 73 | 0.779683 | 114 | 758 | 4.894737 | 0.359649 | 0.053763 | 0.064516 | 0.107527 | 0.103943 | 0.103943 | 0.103943 | 0.103943 | 0 | 0 | 0 | 0.001511 | 0.126649 | 758 | 23 | 74 | 32.956522 | 0.84139 | 0.228232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.307692 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0fc916e41ac3c141599cbd5ee161fb2929bcdb19 | 316 | py | Python | 17. Decorators - Lab/class_as_decorator_demo.py | elenaborisova/Python-OOP | 584882c08f84045b12322917f0716c7c7bd9befc | [
"MIT"
] | 1 | 2021-03-27T16:56:30.000Z | 2021-03-27T16:56:30.000Z | 17. Decorators - Lab/class_as_decorator_demo.py | elenaborisova/Python-OOP | 584882c08f84045b12322917f0716c7c7bd9befc | [
"MIT"
] | null | null | null | 17. Decorators - Lab/class_as_decorator_demo.py | elenaborisova/Python-OOP | 584882c08f84045b12322917f0716c7c7bd9befc | [
"MIT"
] | 1 | 2021-03-15T14:50:39.000Z | 2021-03-15T14:50:39.000Z | from time import sleep
class delay_decorator:
def __init__(self, func):
self.func = func
def __call__(self, *args, **kwargs):
sleep(2)
result = self.func(*args, **kwargs)
return result
@delay_decorator
def say_hi(name):
return f"Hi, {name}!"
print(say_hi("Elena"))
| 15.8 | 43 | 0.613924 | 42 | 316 | 4.333333 | 0.547619 | 0.131868 | 0.186813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004255 | 0.256329 | 316 | 19 | 44 | 16.631579 | 0.770213 | 0 | 0 | 0 | 0 | 0 | 0.050633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0.083333 | 0.583333 | 0.083333 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0fca9a724179c83c04a94a27f104ee5ada465fc6 | 10,845 | py | Python | models/unet_encoder.py | milesgray/CALAE | a2ab2f7d9ee17cc6c24ff6ac370b0373537079ac | [
"Apache-2.0"
] | null | null | null | models/unet_encoder.py | milesgray/CALAE | a2ab2f7d9ee17cc6c24ff6ac370b0373537079ac | [
"Apache-2.0"
] | null | null | null | models/unet_encoder.py | milesgray/CALAE | a2ab2f7d9ee17cc6c24ff6ac370b0373537079ac | [
"Apache-2.0"
] | null | null | null | import math
from typing import Dict
import torch
from torch import nn
from torch.nn import functional as F
from torchvision.models.resnet import BasicBlock
from ..utils.latent_projecting import Latents, CodeLatents
class UNetLikeEncoder(nn.Module):
def __init__(self, image_size: int, latent_size: int, num_inpu... | 40.924528 | 178 | 0.670908 | 1,491 | 10,845 | 4.537223 | 0.078471 | 0.061789 | 0.07864 | 0.04878 | 0.793496 | 0.759497 | 0.715595 | 0.669623 | 0.628529 | 0.610495 | 0 | 0.011633 | 0.231166 | 10,845 | 264 | 179 | 41.079545 | 0.799712 | 0 | 0 | 0.556701 | 0 | 0 | 0.01669 | 0 | 0 | 0 | 0 | 0 | 0.020619 | 1 | 0.097938 | false | 0 | 0.036082 | 0 | 0.226804 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ba1cf8189ced67f1716c32cbf3a83be4b68add52 | 153 | py | Python | src/click_validators.py | AbdulrhmnGhanem/notion-tools | 727372e9be2d956fe1bbd138e5bfada3516f31d0 | [
"MIT"
] | 2 | 2022-01-01T13:02:58.000Z | 2022-01-01T14:37:54.000Z | src/click_validators.py | AbdulrhmnGhanem/notion-tools | 727372e9be2d956fe1bbd138e5bfada3516f31d0 | [
"MIT"
] | 8 | 2022-01-30T22:44:51.000Z | 2022-02-11T07:16:55.000Z | src/click_validators.py | AbdulrhmnGhanem/notion-tools | 727372e9be2d956fe1bbd138e5bfada3516f31d0 | [
"MIT"
] | null | null | null | import click
def positive_num(ctx, param, value):
if value < 1:
raise click.BadParameter("Should be a positive integer!")
return value
| 19.125 | 65 | 0.679739 | 21 | 153 | 4.904762 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 0.235294 | 153 | 7 | 66 | 21.857143 | 0.871795 | 0 | 0 | 0 | 0 | 0 | 0.189542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
ba2bc37e87181bef1284aee61adac79eb25ecc46 | 670 | py | Python | venv/Lib/site-packages/werkzeug/wrappers/__init__.py | jodieritchie/MLHPortfolio | 66d23165c1c3277a6b7320af1cfc353a07385e7a | [
"MIT"
] | 1 | 2021-06-18T16:32:10.000Z | 2021-06-18T16:32:10.000Z | venv/Lib/site-packages/werkzeug/wrappers/__init__.py | jodieritchie/MLHPortfolio | 66d23165c1c3277a6b7320af1cfc353a07385e7a | [
"MIT"
] | null | null | null | venv/Lib/site-packages/werkzeug/wrappers/__init__.py | jodieritchie/MLHPortfolio | 66d23165c1c3277a6b7320af1cfc353a07385e7a | [
"MIT"
] | 1 | 2021-06-20T19:28:37.000Z | 2021-06-20T19:28:37.000Z | from .accept import AcceptMixin
from .auth import AuthorizationMixin
from .auth import WWWAuthenticateMixin
from .base_request import BaseRequest
from .base_response import BaseResponse
from .common_descriptors import CommonRequestDescriptorsMixin
from .common_descriptors import CommonResponseDescriptorsMixin
fr... | 39.411765 | 63 | 0.850746 | 73 | 670 | 7.739726 | 0.369863 | 0.092035 | 0.090265 | 0.095575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125373 | 670 | 16 | 64 | 41.875 | 0.964164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e84157bd41714720c0adb89b81058cbce6d14845 | 1,736 | py | Python | tests/flask/test_blueprint.py | isp1r0/vulnpy | 4709b77bdcd858931d4238490538c77eaa2cc74e | [
"MIT"
] | null | null | null | tests/flask/test_blueprint.py | isp1r0/vulnpy | 4709b77bdcd858931d4238490538c77eaa2cc74e | [
"MIT"
] | null | null | null | tests/flask/test_blueprint.py | isp1r0/vulnpy | 4709b77bdcd858931d4238490538c77eaa2cc74e | [
"MIT"
] | null | null | null | import pytest
from flask import Flask
from vulnpy.flask.blueprint import vulnerable_blueprint
@pytest.fixture
def client():
app = Flask(__name__)
app.register_blueprint(vulnerable_blueprint)
with app.test_client() as client:
yield client
def test_home(client):
response = client.get("/vulnpy... | 28 | 84 | 0.728111 | 239 | 1,736 | 5.029289 | 0.196653 | 0.052413 | 0.14975 | 0.133943 | 0.78619 | 0.72629 | 0.68802 | 0.6198 | 0.603161 | 0.603161 | 0 | 0.012795 | 0.144585 | 1,736 | 61 | 85 | 28.459016 | 0.796633 | 0 | 0 | 0.275 | 0 | 0 | 0.222926 | 0.184908 | 0 | 0 | 0 | 0 | 0.225 | 1 | 0.25 | false | 0 | 0.075 | 0 | 0.325 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e850b0f03e8c9ef53d3100be89ab6c1da84f5385 | 229 | py | Python | toshell/utils.py | mtg-to/pairings-manager | d84a57c2446e1790097e215243348e1b086d215f | [
"MIT"
] | 1 | 2021-03-15T13:44:10.000Z | 2021-03-15T13:44:10.000Z | toshell/utils.py | mtg-to/pairings-manager | d84a57c2446e1790097e215243348e1b086d215f | [
"MIT"
] | null | null | null | toshell/utils.py | mtg-to/pairings-manager | d84a57c2446e1790097e215243348e1b086d215f | [
"MIT"
] | 2 | 2021-03-16T14:51:10.000Z | 2021-03-18T20:28:16.000Z | class ExitMixin():
def do_exit(self, _):
'''
Exit the shell.
'''
print(self._exit_msg)
return True
def do_EOF(self, params):
print()
return self.do_exit(params)
| 15.266667 | 35 | 0.50655 | 26 | 229 | 4.230769 | 0.538462 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.379913 | 229 | 14 | 36 | 16.357143 | 0.774648 | 0.065502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.714286 | 0.285714 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e86b2c9e6be9cc2f55dc945d378162f30a9e5009 | 389 | py | Python | paste/paste/models/__init__.py | hbjydev/pastr | dd902e93261a529468b4429f792fcddfc8de1c1c | [
"BSD-3-Clause"
] | null | null | null | paste/paste/models/__init__.py | hbjydev/pastr | dd902e93261a529468b4429f792fcddfc8de1c1c | [
"BSD-3-Clause"
] | null | null | null | paste/paste/models/__init__.py | hbjydev/pastr | dd902e93261a529468b4429f792fcddfc8de1c1c | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2021 Hayden Young. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
from typing import Any, Optional
from pydantic import BaseModel
from paste.models.paste import Pastes, Paste_Pydantic, PasteIn_Pydantic
class APIResponse(BaseModel... | 27.785714 | 71 | 0.771208 | 57 | 389 | 5.22807 | 0.754386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012422 | 0.172237 | 389 | 13 | 72 | 29.923077 | 0.913043 | 0.377892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e8b1194597f7e23e0f612746f9affecf6680cda3 | 271 | py | Python | test_suite/testenv.py | austince/starlark | 44b6bb5efdaa148c185c6ca773518e7aff57c072 | [
"Apache-2.0"
] | 1 | 2021-12-12T07:16:40.000Z | 2021-12-12T07:16:40.000Z | test_suite/testenv.py | austince/starlark | 44b6bb5efdaa148c185c6ca773518e7aff57c072 | [
"Apache-2.0"
] | null | null | null | test_suite/testenv.py | austince/starlark | 44b6bb5efdaa148c185c6ca773518e7aff57c072 | [
"Apache-2.0"
] | null | null | null | STARLARK_BINARY_PATH = {
"java": "external/io_bazel/src/main/java/net/starlark/java/cmd/Starlark",
"go": "external/net_starlark_go/cmd/starlark/*/starlark",
"rust": "external/starlark-rust/target/debug/starlark-repl",
}
STARLARK_TESTDATA_PATH = "test_suite/"
| 38.714286 | 77 | 0.738007 | 36 | 271 | 5.333333 | 0.527778 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092251 | 271 | 6 | 78 | 45.166667 | 0.780488 | 0 | 0 | 0 | 0 | 0 | 0.664207 | 0.586716 | 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 | 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 | 3 |
e8ba9e9287d41e18eaa0e44c4176eae5bff85437 | 952 | py | Python | classy_vision/heads/identity_head.py | jdsgomes/ClassyVision-1 | 309d4f12431c6b4d8540010a781dc2aa25fe88e7 | [
"MIT"
] | null | null | null | classy_vision/heads/identity_head.py | jdsgomes/ClassyVision-1 | 309d4f12431c6b4d8540010a781dc2aa25fe88e7 | [
"MIT"
] | null | null | null | classy_vision/heads/identity_head.py | jdsgomes/ClassyVision-1 | 309d4f12431c6b4d8540010a781dc2aa25fe88e7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from typing import Any, Dict
from classy_vision.heads import ClassyHead, register_head
@register_head("identity")
... | 28 | 75 | 0.670168 | 124 | 952 | 5.072581 | 0.620968 | 0.023847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001403 | 0.25105 | 952 | 33 | 76 | 28.848485 | 0.880785 | 0.563025 | 0 | 0 | 0 | 0 | 0.085546 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
2cdbb7018fa9479026b032b640cc01c086a0256e | 124 | py | Python | FirstStepsInPython/Fundamentals/Exercice/Data Types and Variables/05. Print Part of the ASCII Table.py | Pittor052/SoftUni-Studies | 1ee6341082f6ccfa45b3e82824c37722bcf2fb31 | [
"MIT"
] | null | null | null | FirstStepsInPython/Fundamentals/Exercice/Data Types and Variables/05. Print Part of the ASCII Table.py | Pittor052/SoftUni-Studies | 1ee6341082f6ccfa45b3e82824c37722bcf2fb31 | [
"MIT"
] | null | null | null | FirstStepsInPython/Fundamentals/Exercice/Data Types and Variables/05. Print Part of the ASCII Table.py | Pittor052/SoftUni-Studies | 1ee6341082f6ccfa45b3e82824c37722bcf2fb31 | [
"MIT"
] | 1 | 2021-10-07T18:30:42.000Z | 2021-10-07T18:30:42.000Z | start = int(input())
stop = int(input())
result = ""
for number in range(start, stop + 1):
print(chr(number), end=" ")
| 17.714286 | 37 | 0.596774 | 18 | 124 | 4.111111 | 0.722222 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0.193548 | 124 | 6 | 38 | 20.666667 | 0.73 | 0 | 0 | 0 | 0 | 0 | 0.00813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2ce5ba1536918857f85fbf182688ef7f79b58f44 | 322 | py | Python | scripts/template.py | Srujan-DiagonalMatrix/flaskTutorial | ee670c3d332b9a81683c1f3d7cba033361bf3b60 | [
"MIT"
] | null | null | null | scripts/template.py | Srujan-DiagonalMatrix/flaskTutorial | ee670c3d332b9a81683c1f3d7cba033361bf3b60 | [
"MIT"
] | null | null | null | scripts/template.py | Srujan-DiagonalMatrix/flaskTutorial | ee670c3d332b9a81683c1f3d7cba033361bf3b60 | [
"MIT"
] | null | null | null | from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template('template.html')
@app.route('/user/<user>/<int:depo>')
def hello_name(user,depo):
return render_template('template.html', name=user, deposit=depo)
if __name__=='__main__':
app.run(debug=True... | 23 | 68 | 0.71118 | 45 | 322 | 4.733333 | 0.488889 | 0.197183 | 0.187793 | 0.262911 | 0.300469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118012 | 322 | 13 | 69 | 24.769231 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.180124 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.2 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
2ce61cfea424ca333b3b2df2081de01237ed6edd | 174 | py | Python | ExerciciosPython/Desafios/desafio057.py | xaviergthiago/PycharmProjects | 191e645223036fa800b32102f37e182eabe0e35c | [
"MIT"
] | null | null | null | ExerciciosPython/Desafios/desafio057.py | xaviergthiago/PycharmProjects | 191e645223036fa800b32102f37e182eabe0e35c | [
"MIT"
] | null | null | null | ExerciciosPython/Desafios/desafio057.py | xaviergthiago/PycharmProjects | 191e645223036fa800b32102f37e182eabe0e35c | [
"MIT"
] | null | null | null | sexo=str
while (sexo != 'F') and (sexo != 'M'):
sexo = (input("Digite o sexo: "))
if (sexo != 'F') and (sexo != 'M'):
print('Opção inválida, tente novamente') | 34.8 | 48 | 0.528736 | 24 | 174 | 3.833333 | 0.625 | 0.108696 | 0.173913 | 0.26087 | 0.282609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241379 | 174 | 5 | 48 | 34.8 | 0.69697 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2ce67ae751f609a1499c9e61021a36d8558e53ad | 1,153 | py | Python | aiotdlib/api/types/message_calendar.py | mostafa-arshadi/aiotdlib | 59f430a65dfb424fc69d471a0d7bcd77ad7acf08 | [
"MIT"
] | 37 | 2021-05-04T10:41:41.000Z | 2022-03-30T13:48:05.000Z | aiotdlib/api/types/message_calendar.py | mostafa-arshadi/aiotdlib | 59f430a65dfb424fc69d471a0d7bcd77ad7acf08 | [
"MIT"
] | 13 | 2021-07-17T19:54:51.000Z | 2022-02-26T06:50:00.000Z | aiotdlib/api/types/message_calendar.py | mostafa-arshadi/aiotdlib | 59f430a65dfb424fc69d471a0d7bcd77ad7acf08 | [
"MIT"
] | 7 | 2021-09-22T21:27:11.000Z | 2022-02-20T02:33:19.000Z | # =============================================================================== #
# #
# This file has been generated automatically!! Do not change this manually! #
# ... | 34.939394 | 102 | 0.509107 | 94 | 1,153 | 6.117021 | 0.62766 | 0.052174 | 0.048696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.290546 | 1,153 | 32 | 103 | 36.03125 | 0.702934 | 0.588899 | 0 | 0 | 1 | 0 | 0.047733 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0.090909 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2cebae38779d96dd4a89862f8e8be1d16cb643da | 1,422 | py | Python | flaskd3/domains/repositoryif/object_repository.py | hohihohi/flask_ddd_sample | 34bd1af4614577be0a6b410250f2d58d2c6f3b93 | [
"MIT"
] | null | null | null | flaskd3/domains/repositoryif/object_repository.py | hohihohi/flask_ddd_sample | 34bd1af4614577be0a6b410250f2d58d2c6f3b93 | [
"MIT"
] | null | null | null | flaskd3/domains/repositoryif/object_repository.py | hohihohi/flask_ddd_sample | 34bd1af4614577be0a6b410250f2d58d2c6f3b93 | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod
# NOTE: domain service concern with domain and business logic, so call them and has responsibility.
class ObjectRepositoryIF(metaclass=ABCMeta):
# find object source by id from database. This method should return object or None
@abstractmethod
def find_by_id(self, i... | 31.6 | 99 | 0.710267 | 189 | 1,422 | 5.291005 | 0.259259 | 0.096 | 0.144 | 0.192 | 0.603 | 0.433 | 0.393 | 0.393 | 0.211 | 0.211 | 0 | 0 | 0.244023 | 1,422 | 44 | 100 | 32.318182 | 0.930233 | 0.535162 | 0 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0.307692 | 0.038462 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
2cf2747ff5797a58fe94bbd513ce919c254edbb4 | 180 | py | Python | tests/test_filing.py | kfarr3/edgar3 | 0207a2946550b55ccf280ab14cb52e38a315d107 | [
"MIT"
] | 1 | 2019-04-17T19:31:08.000Z | 2019-04-17T19:31:08.000Z | tests/test_filing.py | kfarr3/edgar3 | 0207a2946550b55ccf280ab14cb52e38a315d107 | [
"MIT"
] | null | null | null | tests/test_filing.py | kfarr3/edgar3 | 0207a2946550b55ccf280ab14cb52e38a315d107 | [
"MIT"
] | null | null | null | from edgar3 import filing
def test_filing():
with open("tests/raw_filing.txt", "r") as fin:
fil = filing.Filing(fin.read())
assert isinstance(fil, filing.Filing)
| 22.5 | 50 | 0.672222 | 26 | 180 | 4.576923 | 0.692308 | 0.151261 | 0.252101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006897 | 0.194444 | 180 | 7 | 51 | 25.714286 | 0.813793 | 0 | 0 | 0 | 0 | 0 | 0.116667 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.