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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bd63af2c1e4834bbb9ff2fad3ed5df71b5da1e4b | 466 | py | Python | business_register/migrations/0090_auto_20210423_1455.py | OlexandrTopuzov/Data_converter | 0ac2319ccaae790af35ab2202724c65d83d32ecc | [
"MIT"
] | null | null | null | business_register/migrations/0090_auto_20210423_1455.py | OlexandrTopuzov/Data_converter | 0ac2319ccaae790af35ab2202724c65d83d32ecc | [
"MIT"
] | null | null | null | business_register/migrations/0090_auto_20210423_1455.py | OlexandrTopuzov/Data_converter | 0ac2319ccaae790af35ab2202724c65d83d32ecc | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2021-04-23 14:55
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('business_register', '0089_auto_20210419_1240'),
]
operations = [
migrations.RemoveField(
model_name='companysanction',
name=... | 21.181818 | 57 | 0.592275 | 45 | 466 | 5.955556 | 0.733333 | 0.156716 | 0.19403 | 0.223881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095385 | 0.302575 | 466 | 21 | 58 | 22.190476 | 0.729231 | 0.096567 | 0 | 0.4 | 1 | 0 | 0.212411 | 0.054893 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 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 |
bda5f424c720a7fa248c5c20f416a40ad9c2a278 | 1,321 | py | Python | tests/test_minnx.py | johnyf/gr1py | debbd78eb6788d2bec4752d76a2bc38972971d4b | [
"BSD-3-Clause"
] | 9 | 2015-10-09T00:29:58.000Z | 2022-03-27T15:24:27.000Z | tests/test_minnx.py | johnyf/gr1py | debbd78eb6788d2bec4752d76a2bc38972971d4b | [
"BSD-3-Clause"
] | 4 | 2015-11-16T03:16:48.000Z | 2020-02-24T09:21:07.000Z | tests/test_minnx.py | johnyf/gr1py | debbd78eb6788d2bec4752d76a2bc38972971d4b | [
"BSD-3-Clause"
] | 4 | 2015-12-28T21:16:22.000Z | 2021-03-04T21:25:00.000Z | from gr1py.minnx import DiGraph
class DiGraph_test(object):
def setUp(self):
self.G = DiGraph()
def tearDown(self):
self.G = None
def test_add_remove_nodes(self):
assert self.G.number_of_nodes() == 0
self.G.add_node(0)
assert self.G.number_of_nodes() == 1
... | 33.025 | 70 | 0.603331 | 224 | 1,321 | 3.321429 | 0.151786 | 0.188172 | 0.206989 | 0.274194 | 0.731183 | 0.626344 | 0.590054 | 0.520161 | 0.407258 | 0.326613 | 0 | 0.046606 | 0.252839 | 1,321 | 39 | 71 | 33.871795 | 0.707194 | 0 | 0 | 0.242424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.454545 | 1 | 0.151515 | false | 0 | 0.030303 | 0 | 0.212121 | 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 |
bdef8f63123654c93904c1703b39aa8b2ab95984 | 145 | py | Python | core/apps.py | fbsamples/cp_reference | 028b384767d06158a64be8cbb1af613e2f3c881e | [
"MIT"
] | 2 | 2021-09-05T04:21:33.000Z | 2021-11-03T20:56:46.000Z | core/apps.py | fbsamples/cp_reference | 028b384767d06158a64be8cbb1af613e2f3c881e | [
"MIT"
] | null | null | null | core/apps.py | fbsamples/cp_reference | 028b384767d06158a64be8cbb1af613e2f3c881e | [
"MIT"
] | null | null | null | # Copyright 2004-present, Facebook. All Rights Reserved.
from django.apps import AppConfig
class SampleAppConfig(AppConfig):
name = 'core'
| 20.714286 | 56 | 0.765517 | 17 | 145 | 6.529412 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03252 | 0.151724 | 145 | 6 | 57 | 24.166667 | 0.869919 | 0.372414 | 0 | 0 | 0 | 0 | 0.044944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bdf2bc374991462ea7fcc103bfc6157dc069d3df | 18 | py | Python | pii_generator/production_config.py | AvinashRajPurohit/pii-data-generator | 92482575de2c093f2f49282fe3377924d6a6370d | [
"MIT"
] | 1 | 2021-12-14T23:19:12.000Z | 2021-12-14T23:19:12.000Z | pii_generator/production_config.py | AvinashRajPurohit/pii-data-generator | 92482575de2c093f2f49282fe3377924d6a6370d | [
"MIT"
] | null | null | null | pii_generator/production_config.py | AvinashRajPurohit/pii-data-generator | 92482575de2c093f2f49282fe3377924d6a6370d | [
"MIT"
] | null | null | null | PRODUCTION = True
| 9 | 17 | 0.777778 | 2 | 18 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 18 | 1 | 18 | 18 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
da14c36fc3e459ba35d2ad3b69daa46caff19865 | 798 | py | Python | pywsl/utils/comcalc.py | t-sakai-kure/PNU-Classification | 79a5bf104a53cb6d3498918e435bd88ac5331543 | [
"MIT"
] | 101 | 2018-03-19T04:15:45.000Z | 2022-03-11T01:11:50.000Z | pywsl/utils/comcalc.py | t-sakai-kure/PNU-Classification | 79a5bf104a53cb6d3498918e435bd88ac5331543 | [
"MIT"
] | 8 | 2018-05-31T06:51:41.000Z | 2020-04-03T12:54:04.000Z | pywsl/utils/comcalc.py | t-sakai-kure/PNU-Classification | 79a5bf104a53cb6d3498918e435bd88ac5331543 | [
"MIT"
] | 25 | 2018-03-21T06:00:32.000Z | 2022-03-10T05:10:09.000Z | """
Common calculation.
"""
import numpy as np
#import check
def cv_index(n, n_fold):
index = (np.arange(n, dtype=np.int)*n_fold)//n
return index[np.random.permutation(n)]
def squared_dist(x, c):
# assert x.shape[1] == c.shape[1], "Dimension must be the same."
return np.sum(x**2, axis=1, keepdims=... | 17.733333 | 67 | 0.571429 | 149 | 798 | 2.912752 | 0.389262 | 0.023041 | 0.02765 | 0.036866 | 0.16129 | 0.078341 | 0.0553 | 0.0553 | 0 | 0 | 0 | 0.029851 | 0.244361 | 798 | 44 | 68 | 18.136364 | 0.689884 | 0.135338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.05 | 0.15 | 0.55 | 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 |
da1ee8899091f26638d1e8957e3e526058d84062 | 2,376 | py | Python | src/main.py | cbn-alpin/gefiproj-api | 35e3f00dd71bcdd9ad751307ac379aa78d1545cf | [
"MIT"
] | 2 | 2020-10-15T15:16:08.000Z | 2020-11-06T10:41:13.000Z | src/main.py | cbn-alpin/gefiproj-api | 35e3f00dd71bcdd9ad751307ac379aa78d1545cf | [
"MIT"
] | 1 | 2020-11-14T19:40:14.000Z | 2020-11-14T19:40:14.000Z | src/main.py | cbn-alpin/gefiproj-api | 35e3f00dd71bcdd9ad751307ac379aa78d1545cf | [
"MIT"
] | null | null | null | # Python libraries
from flask import render_template, jsonify
from flask_cors import CORS
# External libraries
from flask_migrate import Migrate
from src.api import create_api, db
from src.api.amounts.resources import resources as amounts_ressources
from src.api.expenses.resources import resources as expenses_ressour... | 34.941176 | 106 | 0.829545 | 314 | 2,376 | 6.082803 | 0.280255 | 0.051309 | 0.068063 | 0.163351 | 0.287958 | 0.046073 | 0 | 0 | 0 | 0 | 0 | 0.002824 | 0.10564 | 2,376 | 67 | 107 | 35.462687 | 0.896 | 0.106481 | 0 | 0 | 0 | 0 | 0.072443 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0.045455 | false | 0 | 0.386364 | 0.045455 | 0.477273 | 0.272727 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
da61807c95189499683a2aaf815909ebdb205051 | 245 | py | Python | test/test_example_app.py | silx-kit/h5grove | 97dbbfd86c9498744ff387b49e6aa484d2f78cbb | [
"MIT"
] | 2 | 2022-02-04T18:56:52.000Z | 2022-02-18T04:46:18.000Z | test/test_example_app.py | silx-kit/h5grove | 97dbbfd86c9498744ff387b49e6aa484d2f78cbb | [
"MIT"
] | 19 | 2021-06-29T13:03:30.000Z | 2022-03-25T12:58:16.000Z | test/test_example_app.py | silx-kit/h5grove | 97dbbfd86c9498744ff387b49e6aa484d2f78cbb | [
"MIT"
] | null | null | null | import pytest
import base_test
class TestExampleAppEndpoints(base_test.BaseTestEndpoints):
"""Test endpoints of example app run as subprocess"""
@pytest.fixture
def server(self, subprocess_server):
yield subprocess_server
| 22.272727 | 59 | 0.759184 | 28 | 245 | 6.5 | 0.678571 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17551 | 245 | 10 | 60 | 24.5 | 0.90099 | 0.191837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | 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 |
da69c8a79f07a9e91470b01766307e725c9782ef | 99 | py | Python | agc/agc012/agc012a.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | 1 | 2019-08-21T00:49:34.000Z | 2019-08-21T00:49:34.000Z | agc/agc012/agc012a.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | agc/agc012/agc012a.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | N = int(input())
a = list(map(int, input().split()))
a.sort(reverse=True)
print(sum(a[1::2][:N]))
| 16.5 | 35 | 0.585859 | 19 | 99 | 3.052632 | 0.736842 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 0.10101 | 99 | 5 | 36 | 19.8 | 0.629213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
da6d2b7d0b99d7bf45c0e5d3b63d1791939f629b | 3,802 | py | Python | python/ppx/Sample.py | etalumis/ppx | 27b4d4eec12ff37ee7dc06d436c3d8f297794937 | [
"BSD-2-Clause"
] | null | null | null | python/ppx/Sample.py | etalumis/ppx | 27b4d4eec12ff37ee7dc06d436c3d8f297794937 | [
"BSD-2-Clause"
] | null | null | null | python/ppx/Sample.py | etalumis/ppx | 27b4d4eec12ff37ee7dc06d436c3d8f297794937 | [
"BSD-2-Clause"
] | 1 | 2019-09-05T21:31:15.000Z | 2019-09-05T21:31:15.000Z | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: ppx
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
class Sample(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffe... | 39.604167 | 147 | 0.702262 | 449 | 3,802 | 5.85078 | 0.238307 | 0.03997 | 0.083746 | 0.066997 | 0.355539 | 0.342596 | 0.267606 | 0.185383 | 0.152646 | 0.152646 | 0 | 0.012052 | 0.19253 | 3,802 | 96 | 148 | 39.604167 | 0.843648 | 0.149921 | 0 | 0.191176 | 1 | 0 | 0.006279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.338235 | false | 0 | 0.058824 | 0.029412 | 0.720588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
da8b5bfa5f13842b91613f1ca471166993348c53 | 228 | py | Python | template/src/package-name/__main__.py | craigahobbs/python-template | 76c246a8ddb232b36578a377ce309470f43c7a54 | [
"MIT"
] | null | null | null | template/src/package-name/__main__.py | craigahobbs/python-template | 76c246a8ddb232b36578a377ce309470f43c7a54 | [
"MIT"
] | null | null | null | template/src/package-name/__main__.py | craigahobbs/python-template | 76c246a8ddb232b36578a377ce309470f43c7a54 | [
"MIT"
] | null | null | null | # Licensed under the MIT License
# https://github.com/{{github}}/{{package}}/blob/main/LICENSE
"""
{{package}} top-level script environment
"""
from .main import main
if __name__ == '__main__': # pragma: no cover
main()
| 17.538462 | 61 | 0.671053 | 29 | 228 | 5 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153509 | 228 | 12 | 62 | 19 | 0.751295 | 0.653509 | 0 | 0 | 0 | 0 | 0.115942 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
da9305561b9289cd9e52729a47766c67a83c97c3 | 2,184 | py | Python | 优化算法/AA.py | shao1chuan/pythonbook | cd9877d04e1e11422d38cc051e368d3d9ce2ab45 | [
"MulanPSL-1.0"
] | 95 | 2020-10-11T04:45:46.000Z | 2022-02-25T01:50:40.000Z | 优化算法/AA.py | shao1chuan/pythonbook | cd9877d04e1e11422d38cc051e368d3d9ce2ab45 | [
"MulanPSL-1.0"
] | null | null | null | 优化算法/AA.py | shao1chuan/pythonbook | cd9877d04e1e11422d38cc051e368d3d9ce2ab45 | [
"MulanPSL-1.0"
] | 30 | 2020-11-05T09:01:00.000Z | 2022-03-08T05:58:55.000Z | #coding:utf-8
# https://mp.weixin.qq.com/s/ac-CgZj-avmPBraVvQUuBQ
from __future__ import print_function
import numpy as np
import matplotlib.pyplot as plt
class Function():
def __init__(self):
self.points_x = np.linspace(-20, 20, 1000)
self.points_y = self.f(self.points_x)
def f(self,x):
... | 28 | 86 | 0.49359 | 357 | 2,184 | 2.929972 | 0.238095 | 0.017208 | 0.031549 | 0.013384 | 0.468451 | 0.439771 | 0.365201 | 0.328872 | 0.302103 | 0.254302 | 0 | 0.05864 | 0.266026 | 2,184 | 77 | 87 | 28.363636 | 0.593886 | 0.672619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.230769 | 0.230769 | 0.846154 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e50d9f5debe92508e38ea7fc2bfe2ea44ae328a1 | 417 | py | Python | crdt/big_cheese.py | Sushant/cheeses | 695aa753db872db92e1534f9f74b9adb129a9470 | [
"MIT"
] | 8 | 2017-11-03T15:34:17.000Z | 2021-03-23T15:49:42.000Z | crdt/big_cheese.py | Sushant/cheeses | 695aa753db872db92e1534f9f74b9adb129a9470 | [
"MIT"
] | null | null | null | crdt/big_cheese.py | Sushant/cheeses | 695aa753db872db92e1534f9f74b9adb129a9470 | [
"MIT"
] | null | null | null | import copy
import json
import uuid
class BigCheese(object):
def __repr__(self):
return self.to_json()
def to_dict(self):
return {}
def to_json(self):
return json.dumps(self.to_dict())
def clone(self):
return copy.deepcopy(self)
@staticmethod
def tag():
... | 17.375 | 41 | 0.601918 | 52 | 417 | 4.673077 | 0.423077 | 0.164609 | 0.106996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003356 | 0.285372 | 417 | 24 | 42 | 17.375 | 0.812081 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.333333 | 0.888889 | 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 |
e5172732b5446ef70cc20c791156c839100d1687 | 70 | py | Python | child/child/__init__.py | kevincon/poetry_editable_dep_script_bug_repro | a7bf04282a649026790dcea0a12fd34a18f09a1e | [
"MIT"
] | null | null | null | child/child/__init__.py | kevincon/poetry_editable_dep_script_bug_repro | a7bf04282a649026790dcea0a12fd34a18f09a1e | [
"MIT"
] | null | null | null | child/child/__init__.py | kevincon/poetry_editable_dep_script_bug_repro | a7bf04282a649026790dcea0a12fd34a18f09a1e | [
"MIT"
] | null | null | null | __version__ = '0.1.0'
def cli():
print("Hello from child CLI!")
| 11.666667 | 34 | 0.6 | 11 | 70 | 3.454545 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054545 | 0.214286 | 70 | 5 | 35 | 14 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0.371429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e5470233f9fba92153525b7f1cf20f6ad81596c3 | 140 | py | Python | Codeup/6068.py | lkc263/Algorithm_Study_Python | 5b9a74ecf7e864c861df2280a1bf4b393b0fcbca | [
"MIT"
] | null | null | null | Codeup/6068.py | lkc263/Algorithm_Study_Python | 5b9a74ecf7e864c861df2280a1bf4b393b0fcbca | [
"MIT"
] | null | null | null | Codeup/6068.py | lkc263/Algorithm_Study_Python | 5b9a74ecf7e864c861df2280a1bf4b393b0fcbca | [
"MIT"
] | null | null | null |
score = int(input())
if score >= 90:
print("A")
elif score >= 70:
print("B")
elif score >= 40:
print("C")
else:
print("D") | 12.727273 | 20 | 0.514286 | 21 | 140 | 3.428571 | 0.666667 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058252 | 0.264286 | 140 | 11 | 21 | 12.727273 | 0.640777 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
e54e96f918d05336d9d8c91cd4692bdf7035a10a | 259 | gyp | Python | Ghost-Server-Host/binding.gyp | mlugg/Portal2-GhostServer-Hoster | 26b5f4724786270c519bb2fdb5bcf53d23f73a79 | [
"Apache-2.0"
] | null | null | null | Ghost-Server-Host/binding.gyp | mlugg/Portal2-GhostServer-Hoster | 26b5f4724786270c519bb2fdb5bcf53d23f73a79 | [
"Apache-2.0"
] | null | null | null | Ghost-Server-Host/binding.gyp | mlugg/Portal2-GhostServer-Hoster | 26b5f4724786270c519bb2fdb5bcf53d23f73a79 | [
"Apache-2.0"
] | 1 | 2022-02-12T21:42:34.000Z | 2022-02-12T21:42:34.000Z | {
"targets": [
{
"target_name": "addon",
"sources": ["./main_node.cpp", "./GhostServer/GhostServer/networkmanager.cpp"],
"libraries": ["-lsfml-network", "-lsfml-system", "-lpthread"],
}
]
}
| 25.9 | 92 | 0.467181 | 18 | 259 | 6.611111 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.328185 | 259 | 9 | 93 | 28.777778 | 0.683908 | 0 | 0 | 0 | 0 | 0 | 0.536 | 0.176 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e56337068ebdb50eb6502fb44412801fbbb064f7 | 354 | py | Python | agents/agent.py | BenGHolmes/AlphaFour | 21fd34dfaca2899f5a17f323e964e5dab9f1e100 | [
"MIT"
] | 1 | 2021-08-05T04:09:15.000Z | 2021-08-05T04:09:15.000Z | agents/agent.py | BenGHolmes/AlphaFour | 21fd34dfaca2899f5a17f323e964e5dab9f1e100 | [
"MIT"
] | null | null | null | agents/agent.py | BenGHolmes/AlphaFour | 21fd34dfaca2899f5a17f323e964e5dab9f1e100 | [
"MIT"
] | null | null | null | import numpy as np
class Agent(object):
"""Generic Agent class. To be used as a parent class for different implementations."""
def __init__(self) -> None:
pass
def get_move(self, game_board: np.ndarray) -> np.ndarray:
raise NotImplementedError
def handle_invalid_move(self) -> None:
... | 23.6 | 90 | 0.680791 | 45 | 354 | 5.177778 | 0.666667 | 0.06867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234463 | 354 | 14 | 91 | 25.285714 | 0.859779 | 0.225989 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.125 | 0.125 | 0 | 0.625 | 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 |
e5869d961fdf886a42b3d324e359eb4fbf925d55 | 838 | py | Python | setup.py | ShishKabab/django-simplecontent | db19eeb85818aba5b0181c3ff26137b33a375969 | [
"BSD-3-Clause"
] | null | null | null | setup.py | ShishKabab/django-simplecontent | db19eeb85818aba5b0181c3ff26137b33a375969 | [
"BSD-3-Clause"
] | null | null | null | setup.py | ShishKabab/django-simplecontent | db19eeb85818aba5b0181c3ff26137b33a375969 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from distutils.core import setup
setup(
name = "django-simplecontent",
version = "0.1a2",
author = "Vincent den Boer",
author_email = "vincent@shishkabab.net",
description = "A simple way to test static content and templates and writing them to disk when you're finished",
#download_url = TO... | 34.916667 | 116 | 0.724344 | 93 | 838 | 6.451613 | 0.741935 | 0.19 | 0.096667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004155 | 0.138425 | 838 | 23 | 117 | 36.434783 | 0.82687 | 0.047733 | 0 | 0 | 0 | 0 | 0.683417 | 0.148241 | 0 | 0 | 0 | 0.043478 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 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 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e5d29efad04bb91d71e7e14c2787efc6bea67577 | 401 | py | Python | normalizing_flows/flows/identity.py | TanguyUrvoy/normalizing-flows | e485fe0875c117517353a9ab40e19ff951561cfc | [
"MIT"
] | 15 | 2019-10-26T11:00:02.000Z | 2021-05-24T08:39:31.000Z | normalizing_flows/flows/identity.py | TanguyUrvoy/normalizing-flows | e485fe0875c117517353a9ab40e19ff951561cfc | [
"MIT"
] | 2 | 2021-03-26T16:01:13.000Z | 2021-06-09T11:49:48.000Z | normalizing_flows/flows/identity.py | TanguyUrvoy/normalizing-flows | e485fe0875c117517353a9ab40e19ff951561cfc | [
"MIT"
] | 8 | 2020-01-10T21:50:39.000Z | 2022-03-16T21:01:25.000Z | import tensorflow as tf
from .transform import Transform
class Identity(Transform):
def __init__(self, input_shape=None, name='id', *args, **kwargs):
super().__init__(*args, input_shape=input_shape, name=name, has_constant_ldj=True, **kwargs)
def _forward(self, z, *args, **kwargs):
... | 33.416667 | 100 | 0.645885 | 55 | 401 | 4.436364 | 0.509091 | 0.122951 | 0.07377 | 0.122951 | 0.196721 | 0.196721 | 0.196721 | 0.196721 | 0 | 0 | 0 | 0.012739 | 0.216958 | 401 | 12 | 101 | 33.416667 | 0.764331 | 0 | 0 | 0.222222 | 0 | 0 | 0.004975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.222222 | 0.222222 | 0.888889 | 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 |
e5d8339683b71dd24c30278e044c4cc91e5c3ec2 | 5,771 | py | Python | tests/test_to_xml.py | kapyshin/paka.cmark | e297fe3ca1855c40ba81f61ae7aa5989a4cce3ad | [
"BSD-3-Clause"
] | 22 | 2017-01-10T09:25:50.000Z | 2020-08-21T01:13:51.000Z | tests/test_to_xml.py | PavloKapyshin/paka.cmark | e297fe3ca1855c40ba81f61ae7aa5989a4cce3ad | [
"BSD-3-Clause"
] | 5 | 2017-03-01T11:09:38.000Z | 2018-10-24T23:16:21.000Z | tests/test_to_xml.py | kapyshin/paka.cmark | e297fe3ca1855c40ba81f61ae7aa5989a4cce3ad | [
"BSD-3-Clause"
] | 7 | 2017-01-07T15:48:25.000Z | 2020-11-15T00:58:59.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import textwrap
import unittest
class ToXMLTest(unittest.TestCase):
SAMPLE = (
"Проверяем *CommonMark*.\n\nВставляем `код`.\nИ другие "
"[штуки](javascript:pwned).\n\n<p>Test of <em>XML</em>.</p>\n\n"
"Проверка---\"test\" --... | 41.517986 | 120 | 0.509444 | 628 | 5,771 | 4.656051 | 0.154459 | 0.093023 | 0.186047 | 0.129959 | 0.754104 | 0.734268 | 0.662791 | 0.614911 | 0.602599 | 0.584815 | 0 | 0.030505 | 0.324034 | 5,771 | 138 | 121 | 41.818841 | 0.718534 | 0.003639 | 0 | 0.64 | 0 | 0.104 | 0.825157 | 0.27627 | 0 | 0 | 0 | 0 | 0.008 | 1 | 0.056 | false | 0 | 0.032 | 0 | 0.104 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e5f13c37af3846e2ce60b04b1aecd25bf60d8a48 | 806 | py | Python | SuperHeroApp/views.py | cs-fullstack-2019-spring/django-fields-widgets-cw-ChelsGreg | 7c98ec32e04524f9c2529d9cff4231a520ccd39b | [
"Apache-2.0"
] | null | null | null | SuperHeroApp/views.py | cs-fullstack-2019-spring/django-fields-widgets-cw-ChelsGreg | 7c98ec32e04524f9c2529d9cff4231a520ccd39b | [
"Apache-2.0"
] | null | null | null | SuperHeroApp/views.py | cs-fullstack-2019-spring/django-fields-widgets-cw-ChelsGreg | 7c98ec32e04524f9c2529d9cff4231a520ccd39b | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
from .forms import SuperForm
# Create your views here.
# For form function
def index(request):
# if information is entered
if(request.method =="POST"):
superForm = SuperForm(request.POST)
# so info has to be entered
if superForm.is_valid():
... | 26.866667 | 81 | 0.653846 | 97 | 806 | 5.42268 | 0.453608 | 0.045627 | 0.057034 | 0.176806 | 0.144487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24938 | 806 | 30 | 82 | 26.866667 | 0.869421 | 0.258065 | 0 | 0 | 0 | 0 | 0.157895 | 0.125637 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.133333 | 0.133333 | 0.533333 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f9036ee370849426d8bf809a14f5759ea3364b40 | 598 | py | Python | analysis/selected_articles/termine_types.py | pesobreiro/SLRDropout | e10de84e6a45952f654db671d684ca14e0c5ae06 | [
"MIT"
] | 1 | 2021-03-14T16:25:59.000Z | 2021-03-14T16:25:59.000Z | analysis/selected_articles/termine_types.py | pesobreiro/SLRDropout | e10de84e6a45952f654db671d684ca14e0c5ae06 | [
"MIT"
] | null | null | null | analysis/selected_articles/termine_types.py | pesobreiro/SLRDropout | e10de84e6a45952f654db671d684ca14e0c5ae06 | [
"MIT"
] | null | null | null | ##################################################
# file: termine_types.py
#
# schema types generated by "ZSI.generate.wsdl2python.WriteServiceModule"
# /usr/bin/wsdl2py http://www.nactem.ac.uk/software/termine/webservice/termine.wsdl
#
##################################################
import ZSI
import ZSI.TCcom... | 27.181818 | 92 | 0.563545 | 53 | 598 | 6.339623 | 0.679245 | 0.089286 | 0.14881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00738 | 0.093645 | 598 | 21 | 93 | 28.47619 | 0.612546 | 0.401338 | 0 | 0 | 1 | 0 | 0.058201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f9108ae04c3c2381a2c64821166ce4af28081a8d | 50 | py | Python | PycharmProjects/cursoemVideo/aula009a.py | Pablodias147/Python3-Curso | 486db10e9ffb69aa60aaf36f32d764c1b5585c8b | [
"MIT"
] | null | null | null | PycharmProjects/cursoemVideo/aula009a.py | Pablodias147/Python3-Curso | 486db10e9ffb69aa60aaf36f32d764c1b5585c8b | [
"MIT"
] | null | null | null | PycharmProjects/cursoemVideo/aula009a.py | Pablodias147/Python3-Curso | 486db10e9ffb69aa60aaf36f32d764c1b5585c8b | [
"MIT"
] | null | null | null | frase = 'Curso em video python'
print(frase[:21])
| 16.666667 | 31 | 0.7 | 8 | 50 | 4.375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 0.14 | 50 | 2 | 32 | 25 | 0.767442 | 0 | 0 | 0 | 0 | 0 | 0.42 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
f9244597a020de65310e25e9ee9ebf0c2c2c0727 | 267 | py | Python | src/conduit/profile/__init__.py | teamniteo/pyramid-realworld-example-app | f1fed0d0592b1c6e9a4feb6b162cffd4605f5f44 | [
"MIT"
] | 25 | 2019-05-29T07:29:11.000Z | 2021-11-30T10:17:42.000Z | src/conduit/profile/__init__.py | teamniteo/pyramid-realworld-example-app | f1fed0d0592b1c6e9a4feb6b162cffd4605f5f44 | [
"MIT"
] | 73 | 2019-04-22T11:19:26.000Z | 2021-09-23T16:34:07.000Z | src/conduit/profile/__init__.py | teamniteo/pyramid-realworld-example-app | f1fed0d0592b1c6e9a4feb6b162cffd4605f5f44 | [
"MIT"
] | 30 | 2019-04-22T10:34:31.000Z | 2021-07-07T18:35:18.000Z | """User profiles."""
from pyramid.config import Configurator
def includeme(config: Configurator) -> None:
"""Pyramid knob."""
config.add_route("profile", "/api/profiles/{username}")
config.add_route("profile.follow", "/api/profiles/{username}/follow")
| 26.7 | 73 | 0.696629 | 30 | 267 | 6.133333 | 0.566667 | 0.097826 | 0.152174 | 0.228261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11985 | 267 | 9 | 74 | 29.666667 | 0.782979 | 0.104869 | 0 | 0 | 0 | 0 | 0.333333 | 0.241228 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
005f2ac2551d3fc6f4d43139125ef8b678d56c04 | 996 | py | Python | mmrazor/models/builder.py | hunto/mmrazor | e1483b4f4ca69de98130b01a27a6dd7ed44bda4f | [
"Apache-2.0"
] | 553 | 2021-12-23T11:43:35.000Z | 2022-03-31T01:04:20.000Z | mmrazor/models/builder.py | hunto/mmrazor | e1483b4f4ca69de98130b01a27a6dd7ed44bda4f | [
"Apache-2.0"
] | 113 | 2021-12-23T12:09:06.000Z | 2022-03-30T10:13:42.000Z | mmrazor/models/builder.py | hunto/mmrazor | e1483b4f4ca69de98130b01a27a6dd7ed44bda4f | [
"Apache-2.0"
] | 76 | 2021-12-23T11:48:39.000Z | 2022-03-29T11:24:35.000Z | # Copyright (c) OpenMMLab. All rights reserved.
from mmcv.cnn import MODELS as MMCV_MODELS
from mmcv.utils import Registry
MODELS = Registry('models', parent=MMCV_MODELS)
ALGORITHMS = MODELS
MUTABLES = MODELS
DISTILLERS = MODELS
LOSSES = MODELS
OPS = MODELS
PRUNERS = MODELS
QUANTIZERS = MODELS
ARCHITECTURES = MODELS
... | 17.785714 | 47 | 0.693775 | 123 | 996 | 5.536585 | 0.300813 | 0.093979 | 0.113069 | 0.164464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178715 | 996 | 55 | 48 | 18.109091 | 0.832518 | 0.167671 | 0 | 0 | 0 | 0 | 0.007614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
006bde20031617b8aa84fdd1150aa65127a5e4d7 | 256 | py | Python | tests/bad_module/my_module.py | jepler/circup | 751578094b9e79410fb01805a4a51f14b2ee368a | [
"MIT",
"MIT-0",
"Unlicense"
] | 53 | 2020-02-24T13:16:28.000Z | 2022-03-19T22:59:03.000Z | tests/bad_module/my_module.py | jepler/circup | 751578094b9e79410fb01805a4a51f14b2ee368a | [
"MIT",
"MIT-0",
"Unlicense"
] | 104 | 2019-09-25T12:14:36.000Z | 2022-03-11T22:07:21.000Z | tests/bad_module/my_module.py | jepler/circup | 751578094b9e79410fb01805a4a51f14b2ee368a | [
"MIT",
"MIT-0",
"Unlicense"
] | 27 | 2019-10-02T01:08:13.000Z | 2022-03-14T23:25:36.000Z | # SPDX-FileCopyrightText: 2019 Nicholas Tollervey, written for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""A simple directory based Python module that's missing metadata."""
def hello():
"""A hello function"""
return "Hello, World!"
| 23.272727 | 82 | 0.722656 | 31 | 256 | 5.967742 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018605 | 0.160156 | 256 | 10 | 83 | 25.6 | 0.84186 | 0.746094 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0071c901cb4ab020df19062d3320f5c05396f739 | 156 | py | Python | python_modules/dagster-graphql/dagster_graphql/schema/paging.py | asamoal/dagster | 08fad28e4b608608ce090ce2e8a52c2cf9dd1b64 | [
"Apache-2.0"
] | null | null | null | python_modules/dagster-graphql/dagster_graphql/schema/paging.py | asamoal/dagster | 08fad28e4b608608ce090ce2e8a52c2cf9dd1b64 | [
"Apache-2.0"
] | null | null | null | python_modules/dagster-graphql/dagster_graphql/schema/paging.py | asamoal/dagster | 08fad28e4b608608ce090ce2e8a52c2cf9dd1b64 | [
"Apache-2.0"
] | null | null | null | # pylint: disable=missing-graphene-docstring
import graphene
class GrapheneCursor(graphene.Int, graphene.Scalar):
class Meta:
name = "Cursor"
| 19.5 | 52 | 0.730769 | 17 | 156 | 6.705882 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173077 | 156 | 7 | 53 | 22.285714 | 0.883721 | 0.269231 | 0 | 0 | 0 | 0 | 0.053571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
00b7033641f30c8cc70611cbb28cad1014c3afc0 | 252 | py | Python | ex007.py | ChrysWillians/exercicios-python3 | 354c8684cbc9de0c734e6a40e76e2f613845de96 | [
"MIT"
] | 1 | 2021-09-26T01:08:36.000Z | 2021-09-26T01:08:36.000Z | ex007.py | ChrysWillians/exercicios-python3 | 354c8684cbc9de0c734e6a40e76e2f613845de96 | [
"MIT"
] | null | null | null | ex007.py | ChrysWillians/exercicios-python3 | 354c8684cbc9de0c734e6a40e76e2f613845de96 | [
"MIT"
] | null | null | null | n1 = float(input('Primeira nota do aluno:'))
n2 = float(input('Segunda nota do aluno:'))
n3 = float(input('Terceira nota do aluno:'))
m = (n1 + n2 + n3) / 3
print('A média entre {:.1f} e {:.1f} e {:.1f} é de {:.1f}'.format(n1, n2, n3, m))
| 25.2 | 82 | 0.563492 | 43 | 252 | 3.302326 | 0.511628 | 0.211268 | 0.232394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070707 | 0.214286 | 252 | 9 | 83 | 28 | 0.646465 | 0 | 0 | 0 | 0 | 0 | 0.493724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
00bf06f72cb99b6bd6b1d820c3c29ef18a1ea7d9 | 17,274 | py | Python | extras/constants.py | dch0ph/pNMRsim | 2420e618c7bff9b38b43e7c2ac684c5c28b61787 | [
"MIT"
] | null | null | null | extras/constants.py | dch0ph/pNMRsim | 2420e618c7bff9b38b43e7c2ac684c5c28b61787 | [
"MIT"
] | null | null | null | extras/constants.py | dch0ph/pNMRsim | 2420e618c7bff9b38b43e7c2ac684c5c28b61787 | [
"MIT"
] | null | null | null | speed_light_si = 299792458.0
electron_mass_si = 9.10938215e-31
elementary_charge_si = 1.602176487e-19
mu_0_si = 4.0*math.pi*1e-7
epsilon_0_si = 1.0/(mu_0_si*speed_light_si**2)
planck_si = 6.62606896e-34
hbar_si = planck_si / (2.0 * math.pi)
fine_structure_si = elementary_charge_si**2/(4.0*math.pi*epsilon_0_si*hbar_si*s... | 39.438356 | 5,614 | 0.383987 | 2,816 | 17,274 | 2.330966 | 0.220881 | 0.051493 | 0.003656 | 0.008531 | 0.116849 | 0.110451 | 0.082267 | 0.052102 | 0.042352 | 0.037172 | 0 | 0.317539 | 0.312145 | 17,274 | 437 | 5,615 | 39.528604 | 0.234893 | 0.044807 | 0 | 0.226506 | 0 | 0 | 0.078524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012048 | false | 0 | 0 | 0.007229 | 0.028916 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
00e321066353fcd607b817e450355bb91dbd7a8b | 16,856 | py | Python | datasets/cifar.py | ChiragCD/NR-GAN | fc455c6219b09bc8bf605715504b78b2bb801e48 | [
"MIT"
] | 54 | 2020-04-17T03:05:50.000Z | 2022-03-07T20:30:35.000Z | datasets/cifar.py | ChiragCD/NR-GAN | fc455c6219b09bc8bf605715504b78b2bb801e48 | [
"MIT"
] | 8 | 2020-08-24T03:42:42.000Z | 2022-03-12T00:21:33.000Z | datasets/cifar.py | ChiragCD/NR-GAN | fc455c6219b09bc8bf605715504b78b2bb801e48 | [
"MIT"
] | 14 | 2020-06-01T10:21:08.000Z | 2021-12-30T07:24:22.000Z | import cv2
import numpy as np
import torchvision.datasets as datasets
class CIFAR10Noise(datasets.CIFAR10):
"""CIFAR10 Dataset with noise.
Args:
clip (bool): If True, clips a value between 0 and 1 (default: True).
seed (int): Random seed (default: 0).
This is a subclass of the `CIFAR10`... | 39.568075 | 79 | 0.61616 | 2,035 | 16,856 | 4.871744 | 0.072236 | 0.154327 | 0.076256 | 0.038128 | 0.759734 | 0.730986 | 0.706879 | 0.688925 | 0.667137 | 0.658564 | 0 | 0.022254 | 0.290876 | 16,856 | 425 | 80 | 39.661176 | 0.807161 | 0.271239 | 0 | 0.646825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003968 | 1 | 0.095238 | false | 0 | 0.011905 | 0 | 0.198413 | 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 |
00ee6764d6a9fbce4f957e99bce61f2e3cf5f6a4 | 1,063 | py | Python | src/registration/views.py | vladimir-grigoriev/python_curse | 2ec55f453f29892bfbd8ba2d4f0712f7c0263ec2 | [
"Apache-2.0"
] | null | null | null | src/registration/views.py | vladimir-grigoriev/python_curse | 2ec55f453f29892bfbd8ba2d4f0712f7c0263ec2 | [
"Apache-2.0"
] | null | null | null | src/registration/views.py | vladimir-grigoriev/python_curse | 2ec55f453f29892bfbd8ba2d4f0712f7c0263ec2 | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render, reverse
from django.views.generic import CreateView
from django.contrib.auth.models import Group
from .forms import RegistrationUserForm
from django.urls import reverse_lazy
from django.contrib.auth import get_user_model, authenticate, login
from django.contrib.messages.views import... | 37.964286 | 98 | 0.761054 | 127 | 1,063 | 6.228346 | 0.440945 | 0.075853 | 0.064475 | 0.053097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001115 | 0.156162 | 1,063 | 27 | 99 | 39.37037 | 0.880713 | 0 | 0 | 0 | 0 | 0 | 0.086548 | 0.028222 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.090909 | 0.363636 | 0 | 0.681818 | 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 |
da9be3ea279e47395569c1de88bc5271ef7edfba | 801 | py | Python | server/lib/python3.9/site-packages/stripe/api_resources/issuing/dispute.py | ejanicas-stripe/hotel | a0d0a7e1ae14b509a5c9d05d17603b99399cb752 | [
"MIT"
] | 1,078 | 2015-01-06T03:35:05.000Z | 2022-03-25T13:25:48.000Z | server/lib/python3.9/site-packages/stripe/api_resources/issuing/dispute.py | ejanicas-stripe/hotel | a0d0a7e1ae14b509a5c9d05d17603b99399cb752 | [
"MIT"
] | 558 | 2015-01-07T19:05:02.000Z | 2022-03-28T22:19:24.000Z | server/lib/python3.9/site-packages/stripe/api_resources/issuing/dispute.py | ejanicas-stripe/hotel | a0d0a7e1ae14b509a5c9d05d17603b99399cb752 | [
"MIT"
] | 382 | 2015-01-04T14:06:09.000Z | 2022-03-16T04:52:04.000Z | # File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
f... | 33.375 | 69 | 0.776529 | 91 | 801 | 6.626374 | 0.483516 | 0.082919 | 0.086235 | 0.145937 | 0.238806 | 0.238806 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147316 | 801 | 23 | 70 | 34.826087 | 0.88287 | 0.044944 | 0 | 0 | 1 | 0 | 0.047182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.333333 | 0 | 0.555556 | 0.055556 | 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 |
daa6c0b04caa01fcd84ca50e1f9475540e3563e9 | 285 | py | Python | 2.py | diogoleitao/maths | 9dc12d16f978decec7360577d85aa975d6e5352a | [
"MIT"
] | null | null | null | 2.py | diogoleitao/maths | 9dc12d16f978decec7360577d85aa975d6e5352a | [
"MIT"
] | null | null | null | 2.py | diogoleitao/maths | 9dc12d16f978decec7360577d85aa975d6e5352a | [
"MIT"
] | null | null | null | def a():
n = 1
while n < 10**9:
st = str(n)
if len(st) % 2 == 0:
s1 = st[:int(len(st)/2)]
s2 = st[int(len(st)/2):int(2*len(st)/2)]
if int(s1)**2+int(s2)**2 == int(st):
print n
n += 1
else:
n += 1
else:
n = 10*n
a()
| 17.8125 | 46 | 0.378947 | 54 | 285 | 2 | 0.333333 | 0.185185 | 0.222222 | 0.185185 | 0.203704 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115607 | 0.392982 | 285 | 15 | 47 | 19 | 0.508671 | 0 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
daafdffb978ab9e1beef2d997470b092181e0fc1 | 2,653 | py | Python | django_extras/tests/core/validators.py | gem/django-extras | d692e87891fe4cb79726437d3185628c1a9e2f33 | [
"BSD-3-Clause"
] | 18 | 2015-08-22T08:59:48.000Z | 2020-10-08T17:15:23.000Z | django_extras/tests/core/validators.py | gem/django-extras | d692e87891fe4cb79726437d3185628c1a9e2f33 | [
"BSD-3-Clause"
] | 4 | 2018-01-06T23:19:20.000Z | 2020-10-09T02:22:45.000Z | django_extras/tests/core/validators.py | gem/django-extras | d692e87891fe4cb79726437d3185628c1a9e2f33 | [
"BSD-3-Clause"
] | 9 | 2015-06-15T17:28:03.000Z | 2021-08-29T07:26:50.000Z | from django import test
from django_extras.core import validators
class ColorValidatorTestCase(test.TestCase):
def test_hash(self):
validators.validate_color('#123')
validators.validate_color('#abc')
validators.validate_color('#45d')
validators.validate_color('#6789ef')
val... | 37.366197 | 72 | 0.670939 | 335 | 2,653 | 5.095522 | 0.164179 | 0.400703 | 0.296426 | 0.360867 | 0.648506 | 0.475103 | 0.406561 | 0.155829 | 0.052724 | 0.052724 | 0 | 0.089539 | 0.174896 | 2,653 | 70 | 73 | 37.9 | 0.69027 | 0 | 0 | 0.109091 | 0 | 0 | 0.191554 | 0.007919 | 0 | 0 | 0 | 0 | 0.018182 | 1 | 0.2 | false | 0 | 0.036364 | 0 | 0.290909 | 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 |
dab4ef26fa6223d9d3e120fdb10357e0aade1279 | 326 | py | Python | backend/categorias/models.py | JoaoAPS/AlugaInstrumentos | f4001f439c4f96c4de2b194ce268b9d7f95e4512 | [
"MIT"
] | null | null | null | backend/categorias/models.py | JoaoAPS/AlugaInstrumentos | f4001f439c4f96c4de2b194ce268b9d7f95e4512 | [
"MIT"
] | null | null | null | backend/categorias/models.py | JoaoAPS/AlugaInstrumentos | f4001f439c4f96c4de2b194ce268b9d7f95e4512 | [
"MIT"
] | null | null | null | from django.db import models
class Categoria(models.Model):
"""Categoria que um equipamento pode ter"""
name = models.CharField('nome', max_length=64)
is_instrument = models.BooleanField()
def __str__(self):
return self.name
def __repr__(self):
return "<Categoria: " + str(self) ... | 21.733333 | 50 | 0.650307 | 39 | 326 | 5.179487 | 0.692308 | 0.069307 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007905 | 0.223926 | 326 | 14 | 51 | 23.285714 | 0.790514 | 0.113497 | 0 | 0 | 0 | 0 | 0.060071 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
daef8a5f293dcc3bb3552901663446caab89c98a | 444 | py | Python | python/python demo/time60.py | guweimo/Previous-exercises | 2c8017d2724dc0ba4cb1d952e2e4338424585cb7 | [
"MIT"
] | null | null | null | python/python demo/time60.py | guweimo/Previous-exercises | 2c8017d2724dc0ba4cb1d952e2e4338424585cb7 | [
"MIT"
] | null | null | null | python/python demo/time60.py | guweimo/Previous-exercises | 2c8017d2724dc0ba4cb1d952e2e4338424585cb7 | [
"MIT"
] | null | null | null | class Time60(object):
'Time60 - track hours and minutes'
def __init__(self, hr, min):
self.hr = hr
self.min = min
def __str__(self):
return '%d:%d' %(self.hr, self.min)
__repr__ = __str__
def __add__(self, other):
return self.__class__(self.hr + other.hr, self.min... | 22.2 | 71 | 0.574324 | 60 | 444 | 3.783333 | 0.316667 | 0.132159 | 0.15859 | 0.114537 | 0.246696 | 0.246696 | 0.246696 | 0.246696 | 0 | 0 | 0 | 0.012862 | 0.29955 | 444 | 19 | 72 | 23.368421 | 0.717042 | 0.072072 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.642857 | 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 |
daf6b43f68544b7e378f5cca6ddb127bad1df87e | 342 | py | Python | jsuite/count.py | schatten/jsuite | 1dfd16cafc434ecbbec7c831d6189ea4998fad4c | [
"MIT"
] | 4 | 2017-11-27T16:25:57.000Z | 2021-07-26T22:23:54.000Z | jsuite/count.py | TypesetIO/jsuite | 1dfd16cafc434ecbbec7c831d6189ea4998fad4c | [
"MIT"
] | 2 | 2021-03-22T16:56:19.000Z | 2021-12-13T19:35:45.000Z | jsuite/count.py | schatten/jsuite | 1dfd16cafc434ecbbec7c831d6189ea4998fad4c | [
"MIT"
] | 1 | 2018-03-09T17:26:25.000Z | 2018-03-09T17:26:25.000Z | import logging
logger = logging.getLogger('jsuite')
def of_type_in_body(etree, type):
xpath_query = './body//%s' %(type)
return len(etree.findall(xpath_query))
def of_type(etree, type):
xpath_query = './/%s' %(type)
return len(etree.findall(xpath_query))
def of_xpath(etree, xpath_query):
return len(etree.... | 22.8 | 40 | 0.719298 | 51 | 342 | 4.607843 | 0.333333 | 0.255319 | 0.178723 | 0.268085 | 0.480851 | 0.480851 | 0.348936 | 0.348936 | 0.348936 | 0.348936 | 0 | 0 | 0.122807 | 342 | 14 | 41 | 24.428571 | 0.783333 | 0 | 0 | 0.3 | 0 | 0 | 0.061404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0.1 | 0.7 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9750936f364d9f59c1559f2643d8c517f85b74c1 | 122 | py | Python | django_outlook/default_settings.py | weijia/django-outlook | 3f6b22e3ec34890c9b84699a22b2e39b8cadc723 | [
"MIT"
] | null | null | null | django_outlook/default_settings.py | weijia/django-outlook | 3f6b22e3ec34890c9b84699a22b2e39b8cadc723 | [
"MIT"
] | 2 | 2018-12-26T19:10:02.000Z | 2021-11-15T17:47:55.000Z | django_outlook/default_settings.py | weijia/django-outlook | 3f6b22e3ec34890c9b84699a22b2e39b8cadc723 | [
"MIT"
] | null | null | null | INSTALLED_APPS += (
"django_mailbox",
# "social",
'reversion',
# "social_django",
'django_outlook',
)
| 15.25 | 22 | 0.57377 | 10 | 122 | 6.6 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254098 | 122 | 7 | 23 | 17.428571 | 0.725275 | 0.213115 | 0 | 0 | 0 | 0 | 0.397849 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9782c2f45d33fca385a81a01a1370076a6fcd990 | 171 | py | Python | issue/forms.py | arkarhtethan/django-library-management-system | f505b85f9609e62e30d4459f8028a6b5418fbf7d | [
"MIT"
] | 1 | 2022-01-17T06:28:44.000Z | 2022-01-17T06:28:44.000Z | issue/forms.py | arkarhtethan/django-library-management-system | f505b85f9609e62e30d4459f8028a6b5418fbf7d | [
"MIT"
] | 10 | 2020-06-05T22:48:54.000Z | 2022-03-11T23:57:22.000Z | issue/forms.py | arkarhtethan/django-library-management-system | f505b85f9609e62e30d4459f8028a6b5418fbf7d | [
"MIT"
] | 1 | 2020-06-05T11:23:57.000Z | 2020-06-05T11:23:57.000Z | from django import forms
from .models import Issue
class IssueAddForm(forms.ModelForm):
class Meta:
model = Issue
exclude = ["return_date"] | 17.1 | 36 | 0.643275 | 19 | 171 | 5.736842 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.28655 | 171 | 10 | 37 | 17.1 | 0.893443 | 0 | 0 | 0 | 0 | 0 | 0.063953 | 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 |
9796dabcd028c04525777b687c33249cb9071957 | 6,235 | py | Python | PROJ/STOCHASTIC_VOL/Helper_Functions/get_variance_grid_boundaries.py | mattslezak-shell/PROJ_Option_Pricing_Matlab | 6105bd00ba3471802180c122fdf81e90833a91c4 | [
"MIT"
] | null | null | null | PROJ/STOCHASTIC_VOL/Helper_Functions/get_variance_grid_boundaries.py | mattslezak-shell/PROJ_Option_Pricing_Matlab | 6105bd00ba3471802180c122fdf81e90833a91c4 | [
"MIT"
] | null | null | null | PROJ/STOCHASTIC_VOL/Helper_Functions/get_variance_grid_boundaries.py | mattslezak-shell/PROJ_Option_Pricing_Matlab | 6105bd00ba3471802180c122fdf81e90833a91c4 | [
"MIT"
] | 1 | 2022-01-07T15:31:45.000Z | 2022-01-07T15:31:45.000Z | # Generated with SMOP 0.41-beta
try:
from smop.libsmop import *
except ImportError:
raise ImportError('File compiled with `smop3`, please install `smop3` to run it.') from None
# get_variance_grid_boundaries.m
@function
def get_variance_grid_boundaries(model=None,modparam=None,t=None,gamma=None,... | 45.181159 | 201 | 0.586848 | 890 | 6,235 | 3.91573 | 0.170787 | 0.168723 | 0.2066 | 0.344333 | 0.626399 | 0.589957 | 0.546915 | 0.498709 | 0.242468 | 0.242468 | 0 | 0.043924 | 0.280674 | 6,235 | 138 | 202 | 45.181159 | 0.73311 | 0.372253 | 0 | 0.472222 | 1 | 0 | 0.018578 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013889 | false | 0.013889 | 0.041667 | 0 | 0.069444 | 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 |
97a3c79561542f72ce949810f358cbfba9f8022f | 262 | py | Python | src/autodj/annotation/style/reload_in_python3.py | Jadenyifanhe/Automated-DJ | a066ca4c98a8dd61433cf31967e7c40a86b4695d | [
"MIT"
] | null | null | null | src/autodj/annotation/style/reload_in_python3.py | Jadenyifanhe/Automated-DJ | a066ca4c98a8dd61433cf31967e7c40a86b4695d | [
"MIT"
] | null | null | null | src/autodj/annotation/style/reload_in_python3.py | Jadenyifanhe/Automated-DJ | a066ca4c98a8dd61433cf31967e7c40a86b4695d | [
"MIT"
] | 1 | 2022-02-05T10:48:10.000Z | 2022-02-05T10:48:10.000Z | import os
import pickle
from sklearn.externals import joblib
with open('song_theme_pca_model_pickle.pkl', 'rb') as f:
theme_pca = pickle.load(f, encoding='latin1')
print(theme_pca)
joblib.dump(theme_pca, os.path.join('song_theme_pca_model_python3.pkl'))
| 21.833333 | 72 | 0.774809 | 43 | 262 | 4.465116 | 0.581395 | 0.208333 | 0.125 | 0.177083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 0.10687 | 262 | 11 | 73 | 23.818182 | 0.811966 | 0 | 0 | 0 | 0 | 0 | 0.270992 | 0.240458 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0.142857 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
97a49c3e34ac3c7a24a67c94f5e582dc76c06fd7 | 470 | py | Python | Scripts/ubuntu-iso-download-script.py | qyu0303/PythonFiles | aebe78059789b8e0a14573a5b9259a82122a3cdc | [
"bzip2-1.0.6"
] | null | null | null | Scripts/ubuntu-iso-download-script.py | qyu0303/PythonFiles | aebe78059789b8e0a14573a5b9259a82122a3cdc | [
"bzip2-1.0.6"
] | null | null | null | Scripts/ubuntu-iso-download-script.py | qyu0303/PythonFiles | aebe78059789b8e0a14573a5b9259a82122a3cdc | [
"bzip2-1.0.6"
] | null | null | null | #!E:\pythonRelated\python3\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'ubuntu-iso-download==20.1','console_scripts','ubuntu-iso-download'
__requires__ = 'ubuntu-iso-download==20.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|... | 36.153846 | 98 | 0.678723 | 66 | 470 | 4.545455 | 0.515152 | 0.15 | 0.283333 | 0.19 | 0.406667 | 0.34 | 0.34 | 0.34 | 0.34 | 0.34 | 0 | 0.029412 | 0.131915 | 470 | 12 | 99 | 39.166667 | 0.705882 | 0.278723 | 0 | 0 | 0 | 0 | 0.353846 | 0.224615 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
97aad371083071abe7d37b700295c8a476dadefc | 828 | py | Python | pymtl3/stdlib/queues/enq_deq_ifcs.py | kevinyuan/pymtl3 | 5949e6a4acc625c0ccbbb25be3af1d0db683df3c | [
"BSD-3-Clause"
] | 152 | 2020-06-03T02:34:11.000Z | 2022-03-30T04:16:45.000Z | pymtl3/stdlib/queues/enq_deq_ifcs.py | kevinyuan/pymtl3 | 5949e6a4acc625c0ccbbb25be3af1d0db683df3c | [
"BSD-3-Clause"
] | 139 | 2019-05-29T00:37:09.000Z | 2020-05-17T16:49:26.000Z | pymtl3/stdlib/queues/enq_deq_ifcs.py | kevinyuan/pymtl3 | 5949e6a4acc625c0ccbbb25be3af1d0db683df3c | [
"BSD-3-Clause"
] | 22 | 2020-05-18T13:42:05.000Z | 2022-03-11T08:37:51.000Z | """
========================================================================
EnqDeqIfc.py
========================================================================
RTL implementation of deq and enq interface.
Author: Yanghui Ou
Date: Mar 21, 2019
"""
from pymtl3 import *
from pymtl3.stdlib.ifcs import GiveIfcFL, Give... | 25.875 | 75 | 0.34058 | 46 | 828 | 6.130435 | 0.673913 | 0.070922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010624 | 0.09058 | 828 | 31 | 76 | 26.709677 | 0.363878 | 0.672705 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.4 | 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 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
97d22b59f87d2ce5aafb9e45bc3be5482d2ee826 | 300 | py | Python | src/_slivertestproject/app/models.py | jarcoal/django-sliver | 09a0835ac31f1e8e297e84c594e31fa7cc5474a5 | [
"BSD-3-Clause"
] | 6 | 2015-07-12T14:30:04.000Z | 2020-05-05T08:30:30.000Z | src/_slivertestproject/app/models.py | jarcoal/django-sliver | 09a0835ac31f1e8e297e84c594e31fa7cc5474a5 | [
"BSD-3-Clause"
] | 3 | 2019-11-25T19:42:53.000Z | 2019-11-26T09:13:54.000Z | src/_slivertestproject/app/models.py | jarcoal/django-sliver | 09a0835ac31f1e8e297e84c594e31fa7cc5474a5 | [
"BSD-3-Clause"
] | 2 | 2017-02-22T21:56:52.000Z | 2017-04-17T00:30:55.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from django.db import models
class Person(models.Model):
name = models.CharField(max_length=256)
| 21.428571 | 43 | 0.786667 | 41 | 300 | 5.268293 | 0.658537 | 0.185185 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.133333 | 300 | 13 | 44 | 23.076923 | 0.815385 | 0.14 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.714286 | 0 | 1 | 0.142857 | 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 |
8afd22f4eb912c19e78502f57304d647c116c6d3 | 547 | py | Python | packages/core/minos-microservice-networks/minos/networks/testing/brokers/publishers/queues.py | minos-framework/minos-python | 9a6ad6783361f3d8a497a088808b55ea7a938c6c | [
"MIT"
] | 247 | 2022-01-24T14:55:30.000Z | 2022-03-25T12:06:17.000Z | packages/core/minos-microservice-networks/minos/networks/testing/brokers/publishers/queues.py | minos-framework/minos-python | 9a6ad6783361f3d8a497a088808b55ea7a938c6c | [
"MIT"
] | 168 | 2022-01-24T14:54:31.000Z | 2022-03-31T09:31:09.000Z | packages/core/minos-microservice-networks/minos/networks/testing/brokers/publishers/queues.py | minos-framework/minos-python | 9a6ad6783361f3d8a497a088808b55ea7a938c6c | [
"MIT"
] | 21 | 2022-02-06T17:25:58.000Z | 2022-03-27T04:50:29.000Z | from minos.common.testing import (
MockedDatabaseClient,
)
from minos.networks import (
BrokerPublisherQueueDatabaseOperationFactory,
)
from ..collections import (
MockedBrokerQueueDatabaseOperationFactory,
)
class MockedBrokerPublisherQueueDatabaseOperationFactory(
BrokerPublisherQueueDatabaseOperat... | 24.863636 | 100 | 0.840951 | 27 | 547 | 17 | 0.592593 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107861 | 547 | 21 | 101 | 26.047619 | 0.940574 | 0.036563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.266667 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c100f059174e5fa24bf79ac75852b0dc55be9fce | 229 | py | Python | lesson-5/ex7.py | alirsamar/intro-ml | 36450b26b7ea09472ccdd2a0abce51b6c3889a20 | [
"MIT"
] | null | null | null | lesson-5/ex7.py | alirsamar/intro-ml | 36450b26b7ea09472ccdd2a0abce51b6c3889a20 | [
"MIT"
] | null | null | null | lesson-5/ex7.py | alirsamar/intro-ml | 36450b26b7ea09472ccdd2a0abce51b6c3889a20 | [
"MIT"
] | null | null | null | # Missing POIs 1
import pickle
enron_data = pickle.load(open("../ud120-projects/final_project/final_project_dataset.pkl", "r"))
print sum(1 for x in enron_data.values() if x['total_payments'] == 'NaN') * 100 / len(enron_data)
| 28.625 | 97 | 0.724891 | 37 | 229 | 4.297297 | 0.756757 | 0.169811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039604 | 0.117904 | 229 | 7 | 98 | 32.714286 | 0.747525 | 0.061135 | 0 | 0 | 0 | 0 | 0.352113 | 0.267606 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c10984283dada818a293c37e4c78fe08698a071f | 188 | py | Python | Lecture/Lecture12/L12_Fib_gen.py | 404nofound/CS521-Info-Str-Python | 2ead691c519f29713419e79d600a2d2a1c87d1c1 | [
"Apache-2.0"
] | null | null | null | Lecture/Lecture12/L12_Fib_gen.py | 404nofound/CS521-Info-Str-Python | 2ead691c519f29713419e79d600a2d2a1c87d1c1 | [
"Apache-2.0"
] | null | null | null | Lecture/Lecture12/L12_Fib_gen.py | 404nofound/CS521-Info-Str-Python | 2ead691c519f29713419e79d600a2d2a1c87d1c1 | [
"Apache-2.0"
] | null | null | null | from itertools import islice
def fib():
prev, curr = 0, 1
while True:
yield curr
prev, curr = curr, prev + curr
f = fib()
print(list(islice(f, 0, 10)))
| 17.090909 | 39 | 0.542553 | 27 | 188 | 3.777778 | 0.62963 | 0.235294 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040323 | 0.340426 | 188 | 10 | 40 | 18.8 | 0.782258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0.125 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c119d219e8c150e4748bc7a004f462ac2275be4f | 99 | py | Python | dice.py | Lioncat2002/computerProjPy | accb584443796967a4c3f0e8afce3d39e44cb113 | [
"MIT"
] | null | null | null | dice.py | Lioncat2002/computerProjPy | accb584443796967a4c3f0e8afce3d39e44cb113 | [
"MIT"
] | null | null | null | dice.py | Lioncat2002/computerProjPy | accb584443796967a4c3f0e8afce3d39e44cb113 | [
"MIT"
] | null | null | null | '''10.WAP to output a random number between 1 and 6'''
import random
x=random.randint(1,6)
print(x) | 24.75 | 54 | 0.727273 | 20 | 99 | 3.6 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 0.131313 | 99 | 4 | 55 | 24.75 | 0.767442 | 0.484848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c1201877440a29b52378d5a377b94844e90bbe59 | 1,272 | py | Python | unitconverter/unitconverter/unitconverter.py | mdenesfe/Unit-Converter | ae7db399b7bac78459ac7eedee3d670b1a26f5e3 | [
"MIT"
] | null | null | null | unitconverter/unitconverter/unitconverter.py | mdenesfe/Unit-Converter | ae7db399b7bac78459ac7eedee3d670b1a26f5e3 | [
"MIT"
] | null | null | null | unitconverter/unitconverter/unitconverter.py | mdenesfe/Unit-Converter | ae7db399b7bac78459ac7eedee3d670b1a26f5e3 | [
"MIT"
] | null | null | null |
num1 = input('Değer Giriniz: ')
unit1 = input('Hangi Birimden Dönüştürmek İstersiniz?')
unit2 = input('Hangi Birime Dönüştürmek İstersiniz?')
if unit1 == "cm" and unit2 == "m":
ans = float(num1)/100
print(ans)
elif unit1 == "mm" and unit2 == "cm":
ans = float(num1)/10
print(ans)
elif unit1 ... | 28.266667 | 56 | 0.559748 | 188 | 1,272 | 3.797872 | 0.202128 | 0.156863 | 0.235294 | 0.285714 | 0.763305 | 0.726891 | 0.568627 | 0.411765 | 0.142857 | 0.142857 | 0 | 0.1 | 0.261006 | 1,272 | 45 | 57 | 28.266667 | 0.657447 | 0 | 0 | 0.372093 | 0 | 0 | 0.118078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.27907 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c12c5f4b91a3dda90dc42f6d04a6aec2402d9a95 | 384 | py | Python | megalinter/tests/test_megalinter/linters/latex_chktex_test.py | private-forks/mega-linter | e22555d5dd18f6e7c32057b87b366d22f61a115d | [
"MIT"
] | null | null | null | megalinter/tests/test_megalinter/linters/latex_chktex_test.py | private-forks/mega-linter | e22555d5dd18f6e7c32057b87b366d22f61a115d | [
"MIT"
] | 37 | 2021-05-12T06:28:04.000Z | 2022-03-31T10:14:51.000Z | megalinter/tests/test_megalinter/linters/latex_chktex_test.py | private-forks/mega-linter | e22555d5dd18f6e7c32057b87b366d22f61a115d | [
"MIT"
] | null | null | null | # !/usr/bin/env python3
"""
Unit tests for LATEX linter chktex
This class has been automatically generated by .automation/build.py, please do not update it manually
"""
from unittest import TestCase
from megalinter.tests.test_megalinter.LinterTestRoot import LinterTestRoot
class latex_chktex_test(TestCase, LinterTe... | 25.6 | 101 | 0.786458 | 50 | 384 | 5.94 | 0.72 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00303 | 0.140625 | 384 | 14 | 102 | 27.428571 | 0.89697 | 0.414063 | 0 | 0 | 1 | 0 | 0.050691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c1660a3cb4258073e97ac912133e00c05d14b7d0 | 1,495 | py | Python | pyomni/object/base.py | taxpon/pyomni | 74e256b6fc9cf0f4bcfc575bb8ed702f573a967f | [
"MIT"
] | 12 | 2015-12-20T13:13:22.000Z | 2022-01-29T05:32:35.000Z | pyomni/object/base.py | taxpon/pyomni | 74e256b6fc9cf0f4bcfc575bb8ed702f573a967f | [
"MIT"
] | 1 | 2020-09-15T15:59:07.000Z | 2020-09-15T15:59:07.000Z | pyomni/object/base.py | taxpon/pyomni | 74e256b6fc9cf0f4bcfc575bb8ed702f573a967f | [
"MIT"
] | 2 | 2016-04-20T15:59:57.000Z | 2019-06-16T12:42:10.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import datetime
class OmniObjectBase(object):
def __init__(self, task_id=None, added=None,
modified=None, name=None, rank=None,
order="parallel", completed_by_children=False):
"""Create OmniObjectBase instanc... | 23.730159 | 80 | 0.615385 | 172 | 1,495 | 5.093023 | 0.273256 | 0.114155 | 0.143836 | 0.03653 | 0.142694 | 0.0879 | 0.0879 | 0.0879 | 0.0879 | 0 | 0 | 0.00191 | 0.299666 | 1,495 | 62 | 81 | 24.112903 | 0.834766 | 0.159197 | 0 | 0.307692 | 0 | 0 | 0.00764 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25641 | false | 0 | 0.051282 | 0.230769 | 0.564103 | 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 |
c17750940dc72da119fcf531d2012f0c7fa2498e | 214 | py | Python | 1_beginner/chapter1/solutions/write_comments.py | code4tomorrow/Python | 035b6f5d8fd635a16caaff78bcd3f582663dadc3 | [
"MIT"
] | 4 | 2021-03-01T00:32:45.000Z | 2021-05-21T22:01:52.000Z | 1_beginner/chapter1/solutions/write_comments.py | code4tomorrow/Python | 035b6f5d8fd635a16caaff78bcd3f582663dadc3 | [
"MIT"
] | 29 | 2020-09-12T22:56:04.000Z | 2021-09-25T17:08:42.000Z | 1_beginner/chapter1/solutions/write_comments.py | code4tomorrow/Python | 035b6f5d8fd635a16caaff78bcd3f582663dadc3 | [
"MIT"
] | 7 | 2021-02-25T01:50:55.000Z | 2022-02-28T00:00:42.000Z | # Write Comments
# Write 3 comments about anything you want,
# like your daily routine or your favorite music artist.
# I wake up at 8 AM and eat breakfast
# My favorite artist is Sara Bareilles
# Python is cool!
| 26.75 | 56 | 0.757009 | 36 | 214 | 4.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011696 | 0.200935 | 214 | 7 | 57 | 30.571429 | 0.935673 | 0.934579 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c1ac0b25e3c7cbdd9c485dac206407e7bc87dfa8 | 954 | py | Python | prosrs/__init__.py | compdyn/ProSRS | d9f8f1992af9ebd8570795ed231ee59cb6901e8b | [
"NCSA"
] | 2 | 2019-03-03T22:32:18.000Z | 2019-03-04T14:51:01.000Z | prosrs/__init__.py | compdyn/ProSRS | d9f8f1992af9ebd8570795ed231ee59cb6901e8b | [
"NCSA"
] | null | null | null | prosrs/__init__.py | compdyn/ProSRS | d9f8f1992af9ebd8570795ed231ee59cb6901e8b | [
"NCSA"
] | null | null | null | """
Copyright (C) 2019 Chenchao Shou
Licensed under Illinois Open Source License (see the file LICENSE). For more information
about the license, see http://otm.illinois.edu/disclose-protect/illinois-open-source-license.
"""
from .problem.problem import Problem
from .problem.benchmark import benchmark
from .optimizer.... | 47.7 | 300 | 0.790356 | 137 | 954 | 5.467153 | 0.605839 | 0.056075 | 0.048064 | 0.066756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007353 | 0.144654 | 954 | 20 | 300 | 47.7 | 0.910539 | 0.302935 | 0 | 0 | 0 | 0.083333 | 0.410959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.833333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c1acdaef1de49c57443f1c0a9abbf3da8f18bc94 | 24 | py | Python | nssrc/com/citrix/netscaler/nitro/resource/config/ulfd/__init__.py | guardicore/nitro-python | 5346a5086134aead80968f15a41ff527adaa0ec1 | [
"Apache-2.0"
] | null | null | null | nssrc/com/citrix/netscaler/nitro/resource/config/ulfd/__init__.py | guardicore/nitro-python | 5346a5086134aead80968f15a41ff527adaa0ec1 | [
"Apache-2.0"
] | null | null | null | nssrc/com/citrix/netscaler/nitro/resource/config/ulfd/__init__.py | guardicore/nitro-python | 5346a5086134aead80968f15a41ff527adaa0ec1 | [
"Apache-2.0"
] | null | null | null | __all__ = ['ulfdserver'] | 24 | 24 | 0.708333 | 2 | 24 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 24 | 1 | 24 | 24 | 0.590909 | 0 | 0 | 0 | 0 | 0 | 0.4 | 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 |
c1b1f2b5c4aaf146896b52f17a28d687dbc9848a | 95 | py | Python | bouser/web/cors.py | MarsStirner/bouser | 33bf759448fec4340581f1cc44e7b0b23a2c4e7a | [
"0BSD"
] | null | null | null | bouser/web/cors.py | MarsStirner/bouser | 33bf759448fec4340581f1cc44e7b0b23a2c4e7a | [
"0BSD"
] | null | null | null | bouser/web/cors.py | MarsStirner/bouser | 33bf759448fec4340581f1cc44e7b0b23a2c4e7a | [
"0BSD"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = 'viruzzz-kun'
class OptionsFinish(Exception):
pass
| 11.875 | 31 | 0.642105 | 10 | 95 | 5.7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.189474 | 95 | 7 | 32 | 13.571429 | 0.727273 | 0.221053 | 0 | 0 | 0 | 0 | 0.152778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
c1d296a1a152570fb5da22c5e854311ef5eea088 | 231 | py | Python | project_name/__init__.py | JakubTesarek/python_template_project | 12f9aeaaf7fa0a540acb29a3d130b6b35b8534ac | [
"Apache-2.0"
] | null | null | null | project_name/__init__.py | JakubTesarek/python_template_project | 12f9aeaaf7fa0a540acb29a3d130b6b35b8534ac | [
"Apache-2.0"
] | null | null | null | project_name/__init__.py | JakubTesarek/python_template_project | 12f9aeaaf7fa0a540acb29a3d130b6b35b8534ac | [
"Apache-2.0"
] | null | null | null | """Template python project"""
def factorial(n: int) -> int: # pylint: disable=invalid-name
"""Calculates factorial
Example:
>>> factorial(10)
3628800
"""
return [1, 0][n > 1] or factorial(n-1) * n
| 21 | 60 | 0.571429 | 28 | 231 | 4.714286 | 0.678571 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076471 | 0.264069 | 231 | 10 | 61 | 23.1 | 0.7 | 0.510823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c1d9ae577d1a05acc37ae60ff3f58ef96a84547d | 1,992 | py | Python | core/devices/device.py | TheGentlemanOctopus/oracle | 2857b9c1886548d9aefcb480ce6e77169ee9e7ef | [
"MIT"
] | null | null | null | core/devices/device.py | TheGentlemanOctopus/oracle | 2857b9c1886548d9aefcb480ce6e77169ee9e7ef | [
"MIT"
] | 6 | 2018-05-13T14:44:20.000Z | 2018-07-10T10:12:08.000Z | core/devices/device.py | TheGentlemanOctopus/oracle | 2857b9c1886548d9aefcb480ce6e77169ee9e7ef | [
"MIT"
] | null | null | null | from multiprocessing import Process, Queue, Lock
from Queue import Empty
from core.utilities import logging_handler_setup
class Device(object):
layout_type = "Layout"
def __init__(self):
# Output queue
self.out_queue = Queue()
# Input Queue
self.in_queue = Queue()
# M... | 26.918919 | 91 | 0.600402 | 260 | 1,992 | 4.442308 | 0.403846 | 0.038961 | 0.031169 | 0.027706 | 0.093506 | 0.093506 | 0.093506 | 0.093506 | 0.093506 | 0.093506 | 0 | 0 | 0.325301 | 1,992 | 73 | 92 | 27.287671 | 0.859375 | 0.317771 | 0 | 0.060606 | 0 | 0 | 0.043515 | 0 | 0 | 0 | 0 | 0.013699 | 0 | 1 | 0.212121 | false | 0 | 0.090909 | 0 | 0.515152 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c1ec89bb4a31b1bcedc93cb1252c8c14579f3608 | 790 | py | Python | course_flow/admin.py | SALTISES4/CourseFlow | a55b5966acd6babf688224ec2f57b2ff59545272 | [
"Apache-2.0"
] | null | null | null | course_flow/admin.py | SALTISES4/CourseFlow | a55b5966acd6babf688224ec2f57b2ff59545272 | [
"Apache-2.0"
] | 2 | 2021-04-20T17:38:27.000Z | 2021-12-12T21:38:27.000Z | course_flow/admin.py | SALTISES4/CourseFlow | a55b5966acd6babf688224ec2f57b2ff59545272 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import (
Node,
Column,
Week,
Activity,
Course,
Program,
NodeWeek,
NodeLink,
WeekWorkflow,
ColumnWorkflow,
Workflow,
Project,
WorkflowProject,
Outcome,
OutcomeNode,
OutcomeOutcome,
)
admin.site.register(N... | 20.25641 | 36 | 0.751899 | 88 | 790 | 6.75 | 0.272727 | 0.242424 | 0.457912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141772 | 790 | 38 | 37 | 20.789474 | 0.876106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.057143 | 0 | 0.057143 | 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 |
c1fa28578d4cd2b199fdd7514ceceb9bedacd4d4 | 304,732 | py | Python | bl3save/__init__.py | DataCluster0/wonderlands-cli-saveedit | 91c7cf30289d62b5d51963da39f80d85c8cb97c5 | [
"Zlib"
] | 78 | 2020-04-05T19:49:31.000Z | 2022-03-09T10:01:40.000Z | bl3save/__init__.py | DataCluster0/wonderlands-cli-saveedit | 91c7cf30289d62b5d51963da39f80d85c8cb97c5 | [
"Zlib"
] | 24 | 2020-04-10T16:22:09.000Z | 2022-03-26T11:46:55.000Z | bl3save/__init__.py | DataCluster0/wonderlands-cli-saveedit | 91c7cf30289d62b5d51963da39f80d85c8cb97c5 | [
"Zlib"
] | 19 | 2020-04-10T17:32:56.000Z | 2022-03-27T22:23:05.000Z |
# Copyright (c) 2020-2021 CJ Kucera (cj@apocalyptech.com)
#
# This software is provided 'as-is', without any express or implied warranty.
# In no event will the authors be held liable for any damages arising from
# the use of this software.
#
# Permission is granted to anyone to use this software for any purpose,
# ... | 103.897716 | 650 | 0.814864 | 32,773 | 304,732 | 7.19748 | 0.077442 | 0.047108 | 0.050271 | 0.052458 | 0.710424 | 0.653659 | 0.573068 | 0.407477 | 0.333746 | 0.262626 | 0 | 0.031416 | 0.085902 | 304,732 | 2,932 | 651 | 103.933151 | 0.815394 | 0.021199 | 0 | 0.014029 | 0 | 0 | 0.848292 | 0.789359 | 0 | 0 | 0.008683 | 0.000682 | 0 | 1 | 0.000719 | false | 0.001799 | 0 | 0 | 0.001439 | 0.00036 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c1fa66bafd1f9ca2ea81c45e38f11bbeea53034e | 449 | py | Python | yandex/Lecture_2/Contest/H/main.py | Xrenya/algorithms | aded82cacde2f4f2114241907861251e0e2e5638 | [
"MIT"
] | 1 | 2021-11-28T15:03:32.000Z | 2021-11-28T15:03:32.000Z | yandex/Lecture_2/Contest/H/main.py | Xrenya/algorithms | aded82cacde2f4f2114241907861251e0e2e5638 | [
"MIT"
] | null | null | null | yandex/Lecture_2/Contest/H/main.py | Xrenya/algorithms | aded82cacde2f4f2114241907861251e0e2e5638 | [
"MIT"
] | null | null | null | import numpy as np
x = [2, 4, 0, 3, 1]
# Solution: i-th order statistic
# Rewrite it in function
max_1 = np.partition(np.asarray(x), k)[len(x)-1])
max_2 = np.partition(np.asarray(x), k)[len(x)-2])
max_2 = np.partition(np.asarray(x), k)[len(x)-3])
min_1 = np.partition(np.asarray(x), k)[0])
min_2 = np.partition(np.as... | 24.944444 | 49 | 0.652561 | 98 | 449 | 2.816327 | 0.285714 | 0.072464 | 0.235507 | 0.362319 | 0.655797 | 0.655797 | 0.481884 | 0.311594 | 0.217391 | 0.217391 | 0 | 0.070496 | 0.146993 | 449 | 17 | 50 | 26.411765 | 0.650131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.181818 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
de15a7c3c247b4e9f3b21a01c82584b3dce9603d | 287 | py | Python | wikipendium/sitemap.py | iver56/wikipendium.no | a1b9bd50a40ea599e247b901c9502c0ba1adf264 | [
"Apache-2.0"
] | null | null | null | wikipendium/sitemap.py | iver56/wikipendium.no | a1b9bd50a40ea599e247b901c9502c0ba1adf264 | [
"Apache-2.0"
] | null | null | null | wikipendium/sitemap.py | iver56/wikipendium.no | a1b9bd50a40ea599e247b901c9502c0ba1adf264 | [
"Apache-2.0"
] | null | null | null | from django.contrib.sitemaps import Sitemap
from wikipendium.wiki.models import Article
class ArticleSitemap(Sitemap):
changefreq = "daily"
def items(self):
return Article.get_all_newest_contents_all_languages()
def lastmod(self, obj):
return obj.updated
| 22.076923 | 62 | 0.738676 | 35 | 287 | 5.914286 | 0.742857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188153 | 287 | 12 | 63 | 23.916667 | 0.888412 | 0 | 0 | 0 | 0 | 0 | 0.017422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a9d924ddd3de220a4b10d4a2a584969e3eaece90 | 5,274 | py | Python | src/utilities.py | ds4dm/branch-search-trees | b0cec513c026b52a00b666f7471d6f4abaf6e1ce | [
"MIT"
] | 36 | 2020-12-24T07:09:09.000Z | 2022-03-27T07:01:37.000Z | src/utilities.py | linjc16/TBranT | cc051e386775da87f25964f98547c29dde841362 | [
"MIT"
] | 7 | 2021-03-04T07:58:39.000Z | 2021-12-31T02:43:54.000Z | src/utilities.py | linjc16/TBranT | cc051e386775da87f25964f98547c29dde841362 | [
"MIT"
] | 13 | 2021-01-25T07:35:23.000Z | 2022-03-27T07:01:36.000Z | """ Utilities. """
def init_params(model, scip_limits, scip_params):
"""
:param model: scip.Model(), model instantiation
:param scip_limits: dict, specifying SCIP parameter limits
:param scip_params: dict, specifying SCIP parameter setting
:return: -
Initialize SCIP parameters for the mode... | 57.956044 | 93 | 0.673303 | 549 | 5,274 | 6.433515 | 0.253188 | 0.262741 | 0.397508 | 0.23188 | 0.567667 | 0.225368 | 0.225368 | 0.225368 | 0 | 0 | 0 | 0.015599 | 0.197763 | 5,274 | 90 | 94 | 58.6 | 0.819192 | 0.164771 | 0 | 0 | 0 | 0 | 0.391254 | 0.317376 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014706 | false | 0 | 0 | 0 | 0.014706 | 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 |
a9eee29e22bc8b85b3756e35c9b2e7420a6071d7 | 2,836 | py | Python | test/3028/if_test.py | dburkart/check-sieve | 667f0e9670e8820e37a8162ec09e794e6e4f1cb4 | [
"MIT"
] | 20 | 2015-09-06T04:16:04.000Z | 2022-03-24T16:34:56.000Z | test/3028/if_test.py | dburkart/mail-sieve-verifier | cb51fda06c933dd1e1d0ded05ccba9bedbe67e7f | [
"MIT"
] | 24 | 2015-06-14T01:44:30.000Z | 2015-09-05T17:25:11.000Z | test/3028/if_test.py | dburkart/mail-sieve-verifier | cb51fda06c933dd1e1d0ded05ccba9bedbe67e7f | [
"MIT"
] | 3 | 2015-09-08T05:24:08.000Z | 2019-04-01T00:15:29.000Z | import unittest
import checksieve
class TestIf(unittest.TestCase):
def test_simple_if(self):
sieve = 'if header :contains :comparator "i;octet" "Subject" "MAKE MONEY FAST" { discard; }'
self.assertFalse(checksieve.parse_string(sieve, False))
def test_bogus_test(self):
sieve = 'if bogu... | 28.938776 | 146 | 0.53914 | 271 | 2,836 | 5.509225 | 0.206642 | 0.113195 | 0.16075 | 0.156731 | 0.776289 | 0.776289 | 0.712659 | 0.681849 | 0.681849 | 0.681849 | 0 | 0 | 0.344852 | 2,836 | 97 | 147 | 29.237113 | 0.803552 | 0 | 0 | 0.488095 | 0 | 0.035714 | 0.587095 | 0.017278 | 0 | 0 | 0 | 0 | 0.107143 | 1 | 0.107143 | false | 0 | 0.02381 | 0 | 0.142857 | 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 |
a9f16c31101cdd251d11f0f4527228a82b4ff080 | 1,504 | py | Python | test.py | lucasb-eyer/DeepFried | b1a8c8c9c39748a2c5505025b54bb279c9208b2c | [
"MIT"
] | 3 | 2016-01-08T23:45:44.000Z | 2020-02-13T18:45:13.000Z | test.py | lucasb-eyer/DeepFried | b1a8c8c9c39748a2c5505025b54bb279c9208b2c | [
"MIT"
] | 18 | 2015-03-05T22:48:51.000Z | 2015-10-29T16:27:42.000Z | test.py | lucasb-eyer/DeepFried | b1a8c8c9c39748a2c5505025b54bb279c9208b2c | [
"MIT"
] | 1 | 2018-06-11T14:39:51.000Z | 2018-06-11T14:39:51.000Z | #!/usr/bin/env python3
import numpy as _np
import theano as _th
import DeepFried.util as _u
from DeepFried.layers import Layer
def mk_train_output_fn(model):
"""
Creates a theano function that computes the output of a forward pass
of the training version of given `model`.
This is exactly what will b... | 25.491525 | 76 | 0.65625 | 215 | 1,504 | 4.44186 | 0.372093 | 0.033508 | 0.027225 | 0.041885 | 0.510995 | 0.510995 | 0.510995 | 0.510995 | 0.510995 | 0.510995 | 0 | 0.000876 | 0.240691 | 1,504 | 58 | 77 | 25.931034 | 0.835377 | 0.294548 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.107143 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a9f533a39f41f8b5235d06e3959129313f0beb00 | 21,800 | py | Python | iceweather/stations.py | mideind/iceweather | ca0f3b6eb7d9c7910b586a42a7d2ddeb2b6591bb | [
"BSD-3-Clause"
] | null | null | null | iceweather/stations.py | mideind/iceweather | ca0f3b6eb7d9c7910b586a42a7d2ddeb2b6591bb | [
"BSD-3-Clause"
] | null | null | null | iceweather/stations.py | mideind/iceweather | ca0f3b6eb7d9c7910b586a42a7d2ddeb2b6591bb | [
"BSD-3-Clause"
] | null | null | null | """
iceweather: Look up information about Icelandic weather (observations, forecasts,
human readable descriptive texts, etc.) using vedur.is xmlweather API.
Copyright (c) 2019-2021 Miðeind ehf.
Original author: Sveinbjorn Thordarson
BSD 3-clause License (see License.txt).
"""
from typing import... | 68.987342 | 88 | 0.529679 | 2,948 | 21,800 | 3.916893 | 0.400611 | 0.042868 | 0.001559 | 0.002078 | 0.025461 | 0.016974 | 0.012298 | 0.012298 | 0.012298 | 0 | 0 | 0.250124 | 0.168303 | 21,800 | 315 | 89 | 69.206349 | 0.386741 | 0.022706 | 0 | 0 | 0 | 0 | 0.318197 | 0.001034 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.003344 | 0 | 0.003344 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e72c619b2957704fbdd47f45b5200fdb6fda83eb | 145 | py | Python | train/__init__.py | johnson7788/table-detect | 9ef8a5a549c6b76734be176cb9c033269d6ad968 | [
"MIT"
] | 6 | 2021-04-14T12:14:15.000Z | 2021-12-01T07:26:45.000Z | train/__init__.py | jtliutw/YoloUnet-table-detectcut | 67a9bf2386f6f9b87357332e51ad75cd44c7a5d3 | [
"MIT"
] | 2 | 2021-09-09T03:03:28.000Z | 2022-01-07T09:38:35.000Z | train/__init__.py | jtliutw/YoloUnet-table-detectcut | 67a9bf2386f6f9b87357332e51ad75cd44c7a5d3 | [
"MIT"
] | 4 | 2021-05-27T06:30:01.000Z | 2022-03-14T03:13:48.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Sep 10 02:52:45 2020
@author: chineseocr
"""
import sys
sys.path.append('.')
| 13.181818 | 35 | 0.627586 | 23 | 145 | 3.956522 | 0.956522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114754 | 0.158621 | 145 | 10 | 36 | 14.5 | 0.631148 | 0.682759 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e72cbf1b55bee00a0d876bfc70bc632a35164c68 | 797 | py | Python | main.py | Advik-B/YoutubeVideo-Downloader | c098b426472555a0035f48e8231518e08829b39a | [
"MIT"
] | 2 | 2021-09-30T04:30:14.000Z | 2021-10-11T09:56:17.000Z | main.py | Advik-B/YoutubeVideo-Downloader | c098b426472555a0035f48e8231518e08829b39a | [
"MIT"
] | 3 | 2021-09-29T11:46:45.000Z | 2021-09-30T04:30:34.000Z | main.py | Advik-B/YoutubeVideo-Downloader | c098b426472555a0035f48e8231518e08829b39a | [
"MIT"
] | null | null | null | from threading import Thread
from platform import system
from subprocess import run
from time import sleep
import os
try:
from functions import *
from search import *
from sounds import *
from PIL import Image
except ModuleNotFoundError:
run('python -m pip install -r requirements.txt' , shell=True)
... | 24.151515 | 74 | 0.662484 | 104 | 797 | 5.086538 | 0.5 | 0.113422 | 0.071834 | 0.086957 | 0.26087 | 0.26087 | 0.26087 | 0.26087 | 0.26087 | 0.26087 | 0 | 0 | 0.239649 | 797 | 33 | 75 | 24.151515 | 0.871287 | 0.095358 | 0 | 0.444444 | 0 | 0 | 0.104312 | 0 | 0 | 0 | 0 | 0.030303 | 0 | 1 | 0.074074 | false | 0 | 0.481481 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e72fa8047c9ff6a71611279a924c7dcca00d7e07 | 1,168 | py | Python | apiserver/workflows/WorkflowContext.py | baloise/oim-api | 6c2ee8214e5e0aefa8e1d5188b17b78cf85794f8 | [
"Apache-2.0"
] | 1 | 2021-05-28T08:09:51.000Z | 2021-05-28T08:09:51.000Z | apiserver/workflows/WorkflowContext.py | baloise/oimapi | 6c2ee8214e5e0aefa8e1d5188b17b78cf85794f8 | [
"Apache-2.0"
] | 12 | 2021-05-28T08:12:59.000Z | 2021-05-31T19:47:01.000Z | apiserver/workflows/WorkflowContext.py | baloise/oimapi | 6c2ee8214e5e0aefa8e1d5188b17b78cf85794f8 | [
"Apache-2.0"
] | null | null | null | from models.orders import Person
from models.orders import OrderItem
from typing import List
class WorkflowContextItem:
def __init__(self, changeno: str, item: OrderItem):
self.wfitem = {'id': item.id, 'changeno': changeno}
def getItemId(self) -> str:
return self.wfitem['id']
def getItem... | 25.955556 | 59 | 0.640411 | 131 | 1,168 | 5.610687 | 0.259542 | 0.081633 | 0.043537 | 0.059864 | 0.062585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263699 | 1,168 | 44 | 60 | 26.545455 | 0.854651 | 0 | 0 | 0 | 0 | 0 | 0.017123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.09375 | 0.15625 | 0.6875 | 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 |
e75ad4fb89f64fb549c470de0487b530160f8187 | 487 | py | Python | rest_framework_nr/exceptions.py | telegents/django-rest-framework-nr | 601d029d3a01bb8e1e3e633aaabe9da8f071f4db | [
"MIT"
] | null | null | null | rest_framework_nr/exceptions.py | telegents/django-rest-framework-nr | 601d029d3a01bb8e1e3e633aaabe9da8f071f4db | [
"MIT"
] | null | null | null | rest_framework_nr/exceptions.py | telegents/django-rest-framework-nr | 601d029d3a01bb8e1e3e633aaabe9da8f071f4db | [
"MIT"
] | null | null | null | from rest_framework.exceptions import status, APIException
class ConflictError(APIException):
"""
Base class for REST framework exceptions.
Subclasses should provide `.status_code` and `.default_detail` properties.
"""
status_code = status.HTTP_409_CONFLICT
default_detail = u'A database conflic... | 28.647059 | 78 | 0.724846 | 58 | 487 | 5.810345 | 0.586207 | 0.115727 | 0.136499 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0.199179 | 487 | 16 | 79 | 30.4375 | 0.85641 | 0.238193 | 0 | 0 | 0 | 0 | 0.082857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e7b48878df2596187c988632edba9588064381e8 | 535 | py | Python | tests/test_core.py | voidpp/vcp | 235b46b311342460a0ef62fead75b3bc8d3ac60c | [
"MIT"
] | 2 | 2015-09-17T15:00:14.000Z | 2018-04-06T07:31:17.000Z | tests/test_core.py | voidpp/vcp | 235b46b311342460a0ef62fead75b3bc8d3ac60c | [
"MIT"
] | null | null | null | tests/test_core.py | voidpp/vcp | 235b46b311342460a0ef62fead75b3bc8d3ac60c | [
"MIT"
] | null | null | null |
import unittest
from vcp import VCP
class FakeConfigLoader(object):
def __init__(self, config):
self.config = config
def load(self, filename):
self.filename = filename
return self.config
def save(self, filename):
pass
class TestCore(unittest.TestCase):
def test_bu... | 21.4 | 52 | 0.663551 | 62 | 535 | 5.596774 | 0.467742 | 0.086455 | 0.10951 | 0.126801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004902 | 0.237383 | 535 | 24 | 53 | 22.291667 | 0.845588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.25 | false | 0.0625 | 0.125 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
e7cb66ad55af6cbffb68210dc28a5df4ee100121 | 20,377 | py | Python | azure-keyvault/azure/keyvault/key_vault_client.py | azuresdkci1x/azure-sdk-for-python-1722 | e08fa6606543ce0f35b93133dbb78490f8e6bcc9 | [
"MIT"
] | 1 | 2018-11-09T06:16:34.000Z | 2018-11-09T06:16:34.000Z | azure-keyvault/azure/keyvault/key_vault_client.py | azuresdkci1x/azure-sdk-for-python-1722 | e08fa6606543ce0f35b93133dbb78490f8e6bcc9 | [
"MIT"
] | null | null | null | azure-keyvault/azure/keyvault/key_vault_client.py | azuresdkci1x/azure-sdk-for-python-1722 | e08fa6606543ce0f35b93133dbb78490f8e6bcc9 | [
"MIT"
] | 1 | 2018-11-09T06:17:41.000Z | 2018-11-09T06:17:41.000Z | #---------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#---------------------------------------------------------------------... | 68.609428 | 227 | 0.768906 | 2,497 | 20,377 | 5.801762 | 0.086504 | 0.078967 | 0.056326 | 0.059364 | 0.672603 | 0.612204 | 0.576862 | 0.536136 | 0.461862 | 0.424795 | 0 | 0.002034 | 0.131226 | 20,377 | 296 | 228 | 68.841216 | 0.816302 | 0.064583 | 0 | 0.074257 | 0 | 0 | 0.041519 | 0.016713 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222772 | false | 0.014851 | 0.059406 | 0.148515 | 0.514851 | 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 |
e7cc940aa4944054f6f703ba6a0185093ecf7980 | 809 | py | Python | parlai/agents/programr/parser/template/nodes/word.py | roholazandie/ParlAI | 32352cab81ecb666aefd596232c5ed9f33cbaeb9 | [
"MIT"
] | null | null | null | parlai/agents/programr/parser/template/nodes/word.py | roholazandie/ParlAI | 32352cab81ecb666aefd596232c5ed9f33cbaeb9 | [
"MIT"
] | null | null | null | parlai/agents/programr/parser/template/nodes/word.py | roholazandie/ParlAI | 32352cab81ecb666aefd596232c5ed9f33cbaeb9 | [
"MIT"
] | null | null | null | from parlai.agents.programr.parser.template.nodes.base import TemplateNode
from parlai.agents.programr.utils.logging.ylogger import YLogger
from parlai.agents.programr.utils.text.text import TextUtils
class TemplateWordNode(TemplateNode):
def __init__(self, word):
TemplateNode.__init__(self)
self... | 26.096774 | 82 | 0.663782 | 103 | 809 | 5.058252 | 0.38835 | 0.153551 | 0.092131 | 0.138196 | 0.111324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23115 | 809 | 30 | 83 | 26.966667 | 0.837621 | 0 | 0 | 0.090909 | 0 | 0 | 0.033375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.136364 | 0.136364 | 0.681818 | 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 |
e7d0a4835e09abb865f79da49f883febbe1d1a7f | 3,618 | py | Python | sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql_flexibleservers/models/_my_sql_management_client_enums.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-09T08:59:13.000Z | 2022-03-09T08:59:13.000Z | sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql_flexibleservers/models/_my_sql_management_client_enums.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql_flexibleservers/models/_my_sql_management_client_enums.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 28.714286 | 94 | 0.674682 | 362 | 3,618 | 6.649171 | 0.444751 | 0.081014 | 0.209389 | 0.226838 | 0.319485 | 0.237225 | 0.122559 | 0.122559 | 0.078521 | 0 | 0 | 0.003731 | 0.185185 | 3,618 | 125 | 95 | 28.944 | 0.812754 | 0.300442 | 0 | 0.183333 | 0 | 0 | 0.151997 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
99bc407a981c0c04ea32db3f5f1cd38a044edfc9 | 409 | py | Python | colibris/skeleton/__packagename__/app.py | AMecea/colibris | 068b7cbc4ed328dd9f3b4c40c5227b026589b028 | [
"BSD-3-Clause"
] | 6 | 2019-06-22T19:36:10.000Z | 2021-11-16T08:07:21.000Z | colibris/skeleton/__packagename__/app.py | AMecea/colibris | 068b7cbc4ed328dd9f3b4c40c5227b026589b028 | [
"BSD-3-Clause"
] | 34 | 2019-07-07T18:01:41.000Z | 2020-11-01T16:14:58.000Z | colibris/skeleton/__packagename__/app.py | AMecea/colibris | 068b7cbc4ed328dd9f3b4c40c5227b026589b028 | [
"BSD-3-Clause"
] | 2 | 2020-09-01T13:07:17.000Z | 2021-07-29T12:16:29.000Z |
from colibris import app
from colibris import persist
def init(web_app, loop):
# Add your coroutines to the loop here.
pass
def get_health():
# Determine whether your service is currently healthy.
# Raise app.HealthException() in case of any problem.
if not persist.connectivity_check():
... | 20.45 | 71 | 0.718826 | 53 | 409 | 5.490566 | 0.716981 | 0.082474 | 0.123711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215159 | 409 | 19 | 72 | 21.526316 | 0.906542 | 0.347188 | 0 | 0 | 0 | 0 | 0.156489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0.25 | 0 | 0.625 | 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 |
99dbd20e2900f86b33db3b363d9933545c6a5294 | 16,043 | py | Python | InceptionModel.py | PashaIanko/Covid19Classifier | ee75a2b17babb8c9701351dfaa6052afa083168f | [
"MIT"
] | null | null | null | InceptionModel.py | PashaIanko/Covid19Classifier | ee75a2b17babb8c9701351dfaa6052afa083168f | [
"MIT"
] | 1 | 2022-01-27T13:30:38.000Z | 2022-01-27T13:30:38.000Z | InceptionModel.py | PashaIanko/Covid19Classifier | ee75a2b17babb8c9701351dfaa6052afa083168f | [
"MIT"
] | null | null | null | from tensorflow.keras.layers import Input
from tensorflow.keras.layers import Conv2D
from tensorflow.keras.layers import BatchNormalization
from tensorflow.keras.layers import Activation
from tensorflow.keras.layers import MaxPooling2D
from tensorflow.keras.layers import AveragePooling2D
from tensorflow.keras.layers im... | 44.440443 | 104 | 0.545659 | 1,932 | 16,043 | 4.311077 | 0.082816 | 0.016088 | 0.103734 | 0.084524 | 0.794093 | 0.715572 | 0.705247 | 0.689879 | 0.63405 | 0.633569 | 0 | 0.067115 | 0.332232 | 16,043 | 360 | 105 | 44.563889 | 0.710352 | 0.082528 | 0 | 0.292373 | 0 | 0 | 0.085111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042373 | false | 0 | 0.063559 | 0 | 0.139831 | 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 |
99ef484fc884da47ab6473d952485ecc28d658e7 | 81 | py | Python | mimiron/core/constants.py | Nirovision/mimiron | adba1e762b1ae272c833f1843b179f3438f20774 | [
"MIT"
] | 3 | 2017-02-26T20:34:22.000Z | 2017-02-26T23:28:28.000Z | mimiron/core/constants.py | Nirovision/mimiron | adba1e762b1ae272c833f1843b179f3438f20774 | [
"MIT"
] | null | null | null | mimiron/core/constants.py | Nirovision/mimiron | adba1e762b1ae272c833f1843b179f3438f20774 | [
"MIT"
] | 1 | 2017-02-27T00:15:12.000Z | 2017-02-27T00:15:12.000Z | # -*- coding: utf-8 -*-
COMMIT_AUTHOR_NAME = 'Mimiron'
COMMIT_AUTHOR_EMAIL = ''
| 16.2 | 30 | 0.666667 | 10 | 81 | 5 | 0.8 | 0.48 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.148148 | 81 | 4 | 31 | 20.25 | 0.710145 | 0.259259 | 0 | 0 | 0 | 0 | 0.12069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
99ef7b0c61b06dc13cd7e50e96fbde3e96c59c26 | 2,567 | py | Python | SS_MTI/RadiationPattern.py | nienkebrinkman/SS_MTI | 2632214f7df9caaa53d33432193ba0602470d21a | [
"BSD-3-Clause"
] | null | null | null | SS_MTI/RadiationPattern.py | nienkebrinkman/SS_MTI | 2632214f7df9caaa53d33432193ba0602470d21a | [
"BSD-3-Clause"
] | null | null | null | SS_MTI/RadiationPattern.py | nienkebrinkman/SS_MTI | 2632214f7df9caaa53d33432193ba0602470d21a | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
def R_P(take_off_angle, strike, dip, rake, az):
""" Radiation pattern for P"""
inc = np.deg2rad(take_off_angle)
SR = Fault_geom_SR(dip, rake)
QR = Fault_geom_QR(strike, dip, rake, az)
PR = Fault_geom_PR(strike, dip, rake, az)
RP = SR * (3 * np.cos(inc) ** 2 - 1) - QR * np.s... | 27.021053 | 96 | 0.595247 | 428 | 2,567 | 3.446262 | 0.100467 | 0.064407 | 0.114576 | 0.132203 | 0.858983 | 0.84678 | 0.800678 | 0.64339 | 0.612203 | 0.591864 | 0 | 0.018154 | 0.248929 | 2,567 | 94 | 97 | 27.308511 | 0.746888 | 0.101286 | 0 | 0.465517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.017241 | 0 | 0.293103 | 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 |
99fa2ed8d527b797bbaa2771854a9ad5c66166ea | 809 | py | Python | recommenders/similarity/similarity.py | edervishaj/spotify-recsys-challenge | 4077201ac7e4ed9da433bd10a92c183614182437 | [
"Apache-2.0"
] | 3 | 2018-10-12T20:19:57.000Z | 2019-12-11T01:11:38.000Z | recommenders/similarity/similarity.py | kiminh/spotify-recsys-challenge | 5e7844a77ce3c26658400f161d2d74d682f30e69 | [
"Apache-2.0"
] | null | null | null | recommenders/similarity/similarity.py | kiminh/spotify-recsys-challenge | 5e7844a77ce3c26658400f161d2d74d682f30e69 | [
"Apache-2.0"
] | 4 | 2018-10-27T20:30:18.000Z | 2020-10-14T07:43:27.000Z | import scipy.sparse as sp
import numpy as np
from recommenders.similarity.tversky import tversky_similarity as tversky
from recommenders.similarity.dot_product import dot_product as dot
from recommenders.similarity.cosine import cosine_similarity as cosine
from recommenders.similarity.jaccard import jaccard_similarity ... | 40.45 | 106 | 0.84796 | 108 | 809 | 6.175926 | 0.259259 | 0.167916 | 0.272864 | 0.098951 | 0.158921 | 0.158921 | 0.158921 | 0 | 0 | 0 | 0 | 0.017882 | 0.10136 | 809 | 19 | 107 | 42.578947 | 0.899587 | 0 | 0 | 0 | 0 | 0 | 0.067985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.555556 | 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 |
82008c4e7f044544c059b870be56380b5f85dfa5 | 1,310 | py | Python | lib/rabbitmq-dotnet-client-rabbitmq_v3_4_4/docs/pyle2-fcfcf7e/web/__init__.py | CymaticLabs/Unity3d.Amqp | 42ca5de66fcda21ef6a4040bade99118b2ad6374 | [
"MIT"
] | 83 | 2017-03-15T12:43:25.000Z | 2022-03-31T12:38:44.000Z | lib/rabbitmq-dotnet-client-rabbitmq_v3_4_4/docs/pyle2-fcfcf7e/web/__init__.py | CymaticLabs/Unity3d.Amqp | 42ca5de66fcda21ef6a4040bade99118b2ad6374 | [
"MIT"
] | 18 | 2017-03-20T14:12:58.000Z | 2021-07-28T09:11:55.000Z | lib/rabbitmq-dotnet-client-rabbitmq_v3_4_4/docs/pyle2-fcfcf7e/web/__init__.py | CymaticLabs/Unity3d.Amqp | 42ca5de66fcda21ef6a4040bade99118b2ad6374 | [
"MIT"
] | 25 | 2017-04-01T01:40:02.000Z | 2022-02-20T11:08:12.000Z | #!/usr/bin/env python
from __future__ import generators
"""web.py: makes web apps (http://webpy.org)"""
__version__ = "0.2"
__revision__ = "$Rev: 62 $"
__author__ = "Aaron Swartz <me@aaronsw.com>"
__license__ = "public domain"
__contributors__ = "see http://webpy.org/changes"
# todo:
# - some sort of accounts syste... | 21.129032 | 74 | 0.648092 | 161 | 1,310 | 5.074534 | 0.496894 | 0.097919 | 0.029376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00597 | 0.232824 | 1,310 | 61 | 75 | 21.47541 | 0.806965 | 0.045038 | 0 | 0.088889 | 0 | 0 | 0.109076 | 0 | 0 | 0 | 0 | 0.016393 | 0 | 0 | null | null | 0.044444 | 0.377778 | null | null | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
82008d78b9263f71f40fd1c9ddadf904fcffb552 | 2,916 | py | Python | stubs.min/System/ComponentModel/__init___parts/LookupBindingPropertiesAttribute.py | ricardyn/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | 1 | 2021-02-02T13:39:16.000Z | 2021-02-02T13:39:16.000Z | stubs.min/System/ComponentModel/__init___parts/LookupBindingPropertiesAttribute.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | stubs.min/System/ComponentModel/__init___parts/LookupBindingPropertiesAttribute.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | class LookupBindingPropertiesAttribute(Attribute,_Attribute):
"""
Specifies the properties that support lookup-based binding. This class cannot be inherited.
LookupBindingPropertiesAttribute()
LookupBindingPropertiesAttribute(dataSource: str,displayMember: str,valueMember: str,lookupMember: str)
"""
d... | 37.384615 | 215 | 0.736626 | 327 | 2,916 | 6.370031 | 0.262997 | 0.057609 | 0.149784 | 0.046087 | 0.511762 | 0.471435 | 0.385022 | 0.385022 | 0.329333 | 0.329333 | 0 | 0 | 0.170439 | 2,916 | 77 | 216 | 37.87013 | 0.8611 | 0.421125 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0.315789 | 0 | 0 | 0.631579 | 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 |
8200b273d8b08975a43c75c5ac3d8fbf8e459d7f | 540 | py | Python | workerInfra/domain/outputInterface.py | jtom38/newsbot.worker | 6f5d93c474d21542f1af20e3b2537f26e2bcbbc3 | [
"MIT"
] | 1 | 2021-09-23T16:19:46.000Z | 2021-09-23T16:19:46.000Z | workerInfra/domain/outputInterface.py | jtom38/newsbot.worker | 6f5d93c474d21542f1af20e3b2537f26e2bcbbc3 | [
"MIT"
] | 10 | 2021-09-26T05:53:11.000Z | 2022-01-07T00:38:46.000Z | workerInfra/domain/outputInterface.py | jtom38/newsbot.worker | 6f5d93c474d21542f1af20e3b2537f26e2bcbbc3 | [
"MIT"
] | null | null | null | from abc import ABC, abstractclassmethod
from workerInfra.domain.loggerInterface import LoggerInterface
class OutputInterface(ABC):
_logger: LoggerInterface
@abstractclassmethod
def init(self) -> None:
raise NotImplementedError
@abstractclassmethod
def buildMessage(self) -> None:
... | 23.478261 | 62 | 0.72963 | 44 | 540 | 8.931818 | 0.454545 | 0.223919 | 0.099237 | 0.244275 | 0.412214 | 0.412214 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212963 | 540 | 22 | 63 | 24.545455 | 0.924706 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
820c7d905c75a9bf0c722b17e164de4be9770109 | 1,922 | py | Python | tests/opytimizer/core/test_optimizer.py | anukaal/opytimizer | 5f1ccc0da80e6a4cabd99578fa24cf4f6466f9b9 | [
"Apache-2.0"
] | 528 | 2018-10-01T20:00:09.000Z | 2022-03-27T11:15:31.000Z | tests/opytimizer/core/test_optimizer.py | anukaal/opytimizer | 5f1ccc0da80e6a4cabd99578fa24cf4f6466f9b9 | [
"Apache-2.0"
] | 17 | 2019-10-30T00:47:03.000Z | 2022-03-21T11:39:28.000Z | tests/opytimizer/core/test_optimizer.py | anukaal/opytimizer | 5f1ccc0da80e6a4cabd99578fa24cf4f6466f9b9 | [
"Apache-2.0"
] | 35 | 2018-10-01T20:03:23.000Z | 2022-03-20T03:54:15.000Z | import sys
import numpy as np
from opytimizer.core import function, optimizer
from opytimizer.spaces import search
def test_optimizer_algorithm():
new_optimizer = optimizer.Optimizer()
assert new_optimizer.algorithm == 'Optimizer'
def test_optimizer_algorithm_setter():
new_optimizer = optimizer.Optim... | 20.891304 | 83 | 0.689386 | 227 | 1,922 | 5.559471 | 0.23348 | 0.247227 | 0.126783 | 0.237718 | 0.504754 | 0.504754 | 0.310618 | 0.217908 | 0.096672 | 0 | 0 | 0.011952 | 0.216441 | 1,922 | 91 | 84 | 21.120879 | 0.826029 | 0 | 0 | 0.333333 | 0 | 0 | 0.015609 | 0 | 0 | 0 | 0 | 0 | 0.12963 | 1 | 0.203704 | false | 0 | 0.074074 | 0.018519 | 0.296296 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
821b4747db4ee500f7cf682858808d94b88a7396 | 90 | py | Python | src/generate_profile/constants.py | NREL/EFFORT | b83e425d038c60f13b4c8da5b9c7caaf6b5f64d7 | [
"BSD-3-Clause"
] | null | null | null | src/generate_profile/constants.py | NREL/EFFORT | b83e425d038c60f13b4c8da5b9c7caaf6b5f64d7 | [
"BSD-3-Clause"
] | null | null | null | src/generate_profile/constants.py | NREL/EFFORT | b83e425d038c60f13b4c8da5b9c7caaf6b5f64d7 | [
"BSD-3-Clause"
] | null | null | null |
LOG_FORMAT = '%(asctime)s: %(levelname)s: %(message)s'
DATE_FORMAT = '%Y-%m-%d %H:%M:%S' | 22.5 | 54 | 0.588889 | 16 | 90 | 3.1875 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 90 | 4 | 55 | 22.5 | 0.6375 | 0 | 0 | 0 | 0 | 0 | 0.622222 | 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 |
823b70be48555ee0ff7a540a61106e788df97e25 | 13,150 | py | Python | data/datasets.py | shirgur/UMIS | d3be2fe6adc05843aa3d5dde2733ca43b3e5b149 | [
"Apache-2.0"
] | 67 | 2019-08-19T06:14:41.000Z | 2022-01-18T02:04:18.000Z | data/datasets.py | shirgur/UMIS | d3be2fe6adc05843aa3d5dde2733ca43b3e5b149 | [
"Apache-2.0"
] | 8 | 2019-10-31T13:11:26.000Z | 2022-02-21T14:53:43.000Z | data/datasets.py | shirgur/UMIS | d3be2fe6adc05843aa3d5dde2733ca43b3e5b149 | [
"Apache-2.0"
] | 13 | 2019-10-06T14:05:24.000Z | 2020-04-30T08:46:15.000Z | import torch
from torch.utils.data import Dataset
import glob
import tifffile as T
from libtiff import TIFF
import numpy as np
def range_normalize(v):
v = (v - v.mean(axis=(1, 2), keepdims=True)) / (v.std(axis=(1, 2), keepdims=True) + 1e-12)
v_min, v_max = v.min(axis=(1, 2), keepdims=True), v.max(axis=(1, 2),... | 40.091463 | 108 | 0.496198 | 1,748 | 13,150 | 3.520595 | 0.059497 | 0.197433 | 0.063373 | 0.038024 | 0.809555 | 0.772668 | 0.692883 | 0.667046 | 0.626909 | 0.620572 | 0 | 0.049205 | 0.349354 | 13,150 | 327 | 109 | 40.214067 | 0.670056 | 0.002966 | 0 | 0.487455 | 0 | 0 | 0.012895 | 0.007325 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028674 | false | 0 | 0.021505 | 0.007168 | 0.078853 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
414ba430299c48d124ac96bbd6e592ab4ddfe913 | 485 | py | Python | src/library/drivers.py | Rezwanul-Haque/web_scraping_with_bs4_selenium | c445200aa2f63a73f1e413151d5de9c671b74443 | [
"MIT"
] | null | null | null | src/library/drivers.py | Rezwanul-Haque/web_scraping_with_bs4_selenium | c445200aa2f63a73f1e413151d5de9c671b74443 | [
"MIT"
] | null | null | null | src/library/drivers.py | Rezwanul-Haque/web_scraping_with_bs4_selenium | c445200aa2f63a73f1e413151d5de9c671b74443 | [
"MIT"
] | null | null | null | class Drivers:
pass
def CreatePhantomjsDriver(driver_path):
try:
from selenium import webdriver
# create a phantom js driver
PHANTOMJS_DRIVER = webdriver.PhantomJS(executable_path=driver_path)
return PHANTOMJS_DRIVER
except ImportError as exc:
raise ImportError(
... | 21.086957 | 77 | 0.661856 | 56 | 485 | 5.642857 | 0.714286 | 0.063291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292784 | 485 | 22 | 78 | 22.045455 | 0.921283 | 0.053608 | 0 | 0 | 0 | 0 | 0.247241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.333333 | 0 | 0.583333 | 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 |
415468ea89cf6715ef28bf6788f4e5ebe6d33b52 | 109 | py | Python | django-server/src/apps/games/apps.py | martinogden/24hdujeu | cc35d82982b3157bb9eb5737db49c318d3b7fa32 | [
"Unlicense"
] | 1 | 2016-07-19T11:30:01.000Z | 2016-07-19T11:30:01.000Z | django-server/src/apps/games/apps.py | martinogden/24hdujeu | cc35d82982b3157bb9eb5737db49c318d3b7fa32 | [
"Unlicense"
] | null | null | null | django-server/src/apps/games/apps.py | martinogden/24hdujeu | cc35d82982b3157bb9eb5737db49c318d3b7fa32 | [
"Unlicense"
] | null | null | null | from django.apps import AppConfig
class Games(AppConfig):
name = 'games'
verbose_name = '24h du Jeu' | 21.8 | 33 | 0.706422 | 15 | 109 | 5.066667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022989 | 0.201835 | 109 | 5 | 34 | 21.8 | 0.850575 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
41655e6118313bc4327de7220402132ef0fcf70a | 708 | py | Python | pygate_grpc/exceptions.py | pygate/gRPC-client | 257f996c476f5fef3e8d9f73586ffff76a09986e | [
"MIT"
] | 23 | 2020-07-07T05:44:00.000Z | 2022-01-29T18:16:57.000Z | pygate_grpc/exceptions.py | pygate/gRPC-client | 257f996c476f5fef3e8d9f73586ffff76a09986e | [
"MIT"
] | 28 | 2020-07-07T08:29:15.000Z | 2021-02-25T00:25:20.000Z | pygate_grpc/exceptions.py | pygate/gRPC-client | 257f996c476f5fef3e8d9f73586ffff76a09986e | [
"MIT"
] | 2 | 2020-09-30T16:30:07.000Z | 2020-12-01T15:35:03.000Z | from grpc._channel import _MultiThreadedRendezvous
class GRPCNotAvailableException(Exception):
def __init__(self, err, *args, **kwargs):
super().__init__(*args, **kwargs)
self.original_err = err
class GRPCTimeoutException(_MultiThreadedRendezvous):
def __init__(self, err, *args, **kwargs):
... | 27.230769 | 53 | 0.661017 | 72 | 708 | 5.833333 | 0.291667 | 0.142857 | 0.178571 | 0.1 | 0.621429 | 0.502381 | 0.502381 | 0.502381 | 0.502381 | 0.502381 | 0 | 0 | 0.220339 | 708 | 25 | 54 | 28.32 | 0.76087 | 0 | 0 | 0.529412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.058824 | 0.117647 | 0.647059 | 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 |
416efda4a0dfb9cfb4756570cfab24a640bbacbe | 362 | py | Python | app/models/horarios.py | RaimundoLima/Zivot | d11e22cccaa1e25bb11244c1178cfd374e386a79 | [
"Apache-2.0",
"bzip2-1.0.6"
] | null | null | null | app/models/horarios.py | RaimundoLima/Zivot | d11e22cccaa1e25bb11244c1178cfd374e386a79 | [
"Apache-2.0",
"bzip2-1.0.6"
] | null | null | null | app/models/horarios.py | RaimundoLima/Zivot | d11e22cccaa1e25bb11244c1178cfd374e386a79 | [
"Apache-2.0",
"bzip2-1.0.6"
] | null | null | null | from .base import Base
from sqlalchemy import Boolean,Date,DateTime,Time,ForeignKey,Column, Integer, Numeric, Binary, String,VARCHAR,Float
from sqlalchemy.orm import relationship
class Horarios(Base):
id_agenda=Column(ForeignKey('agenda.id'),nullable=False)
horario_inicio=Column(Time(),nullable=False)
hora... | 40.222222 | 115 | 0.78453 | 47 | 362 | 5.978723 | 0.574468 | 0.13879 | 0.142349 | 0.163701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104972 | 362 | 9 | 116 | 40.222222 | 0.867284 | 0 | 0 | 0 | 0 | 0 | 0.024793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 1 | 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 |
417c5fac3653bca66c51b08bdb5a5395bac44fe3 | 211 | py | Python | backend/domain/contracts/schemas/new_order.py | uesleicarvalhoo/Ecommerce | 1d8d0f0c522dcd27fd90e315989b6fa93caf62b8 | [
"MIT"
] | null | null | null | backend/domain/contracts/schemas/new_order.py | uesleicarvalhoo/Ecommerce | 1d8d0f0c522dcd27fd90e315989b6fa93caf62b8 | [
"MIT"
] | null | null | null | backend/domain/contracts/schemas/new_order.py | uesleicarvalhoo/Ecommerce | 1d8d0f0c522dcd27fd90e315989b6fa93caf62b8 | [
"MIT"
] | null | null | null | from typing import List, Protocol
from uuid import UUID
class NewOrderItem(Protocol):
id: UUID
amount: int
class NewOrder(Protocol):
client_id: UUID
items: List[NewOrderItem]
amount: int
| 15.071429 | 33 | 0.7109 | 27 | 211 | 5.518519 | 0.518519 | 0.080537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222749 | 211 | 13 | 34 | 16.230769 | 0.908537 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
41c044084ef0552ffb995de2e37106bb33a857d5 | 2,481 | py | Python | activations.py | olenive/DeepHyperNEAT | 01636762473c71ab19825a756cd26e70d7928afc | [
"Apache-2.0"
] | 51 | 2019-02-01T19:43:37.000Z | 2022-03-16T09:07:03.000Z | activations.py | olenive/DeepHyperNEAT | 01636762473c71ab19825a756cd26e70d7928afc | [
"Apache-2.0"
] | 3 | 2020-05-28T16:36:00.000Z | 2021-09-30T18:24:40.000Z | activations.py | olenive/DeepHyperNEAT | 01636762473c71ab19825a756cd26e70d7928afc | [
"Apache-2.0"
] | 35 | 2019-02-08T02:00:31.000Z | 2022-03-01T23:17:00.000Z | '''
Container for activation functions.
Largely copied from neat-python. (Copyright 2015-2017, CodeReclaimers, LLC.)
'''
import math
import types
import numpy as np
def softmax(x):
e_x = np.exp(x - np.max(x))
return e_x / e_x.sum()
def sigmoid_activation(x):
return 1 / (1+math.exp(-x))
def tanh_activati... | 26.115789 | 94 | 0.645304 | 340 | 2,481 | 4.579412 | 0.320588 | 0.063584 | 0.076429 | 0.01413 | 0.095055 | 0.030829 | 0.030829 | 0.030829 | 0.030829 | 0 | 0 | 0.02529 | 0.234986 | 2,481 | 95 | 95 | 26.115789 | 0.795047 | 0.120516 | 0 | 0.030769 | 0 | 0 | 0.071929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.261538 | false | 0.015385 | 0.046154 | 0.107692 | 0.553846 | 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 |
68da4f687bccdaf598b5bcd54672e11bc16a3ef7 | 225 | py | Python | perm_security/__init__.py | TheJoeSmo/perm-security | 2fd8ceb4fc72cce5889f55731056665a887399e1 | [
"MIT"
] | null | null | null | perm_security/__init__.py | TheJoeSmo/perm-security | 2fd8ceb4fc72cce5889f55731056665a887399e1 | [
"MIT"
] | null | null | null | perm_security/__init__.py | TheJoeSmo/perm-security | 2fd8ceb4fc72cce5889f55731056665a887399e1 | [
"MIT"
] | null | null | null | def validate(a, b) -> bool:
"""Determines if a class is valid against another"""
return a.__validate__(b)
from .MemberAdapter import *
from .Permission import *
from .TokenStrategy import *
from .Token import Token
| 22.5 | 56 | 0.72 | 30 | 225 | 5.266667 | 0.633333 | 0.189873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182222 | 225 | 9 | 57 | 25 | 0.858696 | 0.204444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.666667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
68e571a96bb96643e75950f06017dde1d6a6a886 | 217 | py | Python | setup.py | trentsummerfield/safepoint2csv | ba7e42f49b44d8c222287cbd5adaef5da4ffc21a | [
"Unlicense"
] | null | null | null | setup.py | trentsummerfield/safepoint2csv | ba7e42f49b44d8c222287cbd5adaef5da4ffc21a | [
"Unlicense"
] | null | null | null | setup.py | trentsummerfield/safepoint2csv | ba7e42f49b44d8c222287cbd5adaef5da4ffc21a | [
"Unlicense"
] | null | null | null | from setuptools import setup
setup(
name='safepoint2csv',
version='1.0.0',
packages=['safepoint2csv'],
entry_points={
'console_scripts': ['safepoint2csv = safepoint2csv.__main__:main']
})
| 21.7 | 74 | 0.658986 | 21 | 217 | 6.52381 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04023 | 0.198157 | 217 | 9 | 75 | 24.111111 | 0.747126 | 0 | 0 | 0 | 0 | 0 | 0.410138 | 0.124424 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 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 |
68fcd2c3e1b5d81c49565998dd998d385fa0ad6d | 7,873 | py | Python | rubiks-cube-NxNxN-solver/rubikscubennnsolver/RubiksCube222.py | sliu54/mathworks-hackday-2020 | cc033c437e9630f3d7f848853768bd3e793b370d | [
"BSD-2-Clause"
] | null | null | null | rubiks-cube-NxNxN-solver/rubikscubennnsolver/RubiksCube222.py | sliu54/mathworks-hackday-2020 | cc033c437e9630f3d7f848853768bd3e793b370d | [
"BSD-2-Clause"
] | null | null | null | rubiks-cube-NxNxN-solver/rubikscubennnsolver/RubiksCube222.py | sliu54/mathworks-hackday-2020 | cc033c437e9630f3d7f848853768bd3e793b370d | [
"BSD-2-Clause"
] | null | null | null | from rubikscubennnsolver import RubiksCube, SolveError
import logging
log = logging.getLogger(__name__)
moves_222 = (
"U", "U'", "U2",
"L", "L'", "L2",
"F", "F'", "F2",
"R", "R'", "R2",
"B", "B'", "B2",
"D", "D'", "D2",
)
solved_222 = "UUUURRRRFFFFDDDDLLLLBBBB"
class RubiksCube222(RubiksCub... | 51.123377 | 2,706 | 0.429696 | 1,474 | 7,873 | 2.278833 | 0.130258 | 0.027389 | 0.023817 | 0.025007 | 0.350104 | 0.314379 | 0.23638 | 0.224769 | 0.184579 | 0.183983 | 0 | 0.341338 | 0.359964 | 7,873 | 153 | 2,707 | 51.457516 | 0.325263 | 0.111266 | 0 | 0.126316 | 0 | 0 | 0.025205 | 0.003517 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042105 | false | 0 | 0.021053 | 0.021053 | 0.105263 | 0.010526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
68fefcc25250221a5601c96003f0209fd35352ce | 335 | py | Python | app/blueprints/registry_api/blueprint.py | IGSN/isgn-registry-mvp | ad603de8bb7c2e98704bc14c9cc39aa90eb45e99 | [
"MIT"
] | null | null | null | app/blueprints/registry_api/blueprint.py | IGSN/isgn-registry-mvp | ad603de8bb7c2e98704bc14c9cc39aa90eb45e99 | [
"MIT"
] | null | null | null | app/blueprints/registry_api/blueprint.py | IGSN/isgn-registry-mvp | ad603de8bb7c2e98704bc14c9cc39aa90eb45e99 | [
"MIT"
] | 1 | 2021-12-13T06:53:33.000Z | 2021-12-13T06:53:33.000Z | """ file: blueprint.py (igsn-registry-api)
author: Jess Robertson, jessrobertson@icloud.com
date: July 2019
description: IGSN Registry API
"""
# pylint: disable=C0103
from flask import Blueprint
from flask_rest_jsonapi import Api
blueprint = Blueprint('igsn_registry_api', __name__)
api = Api(bluep... | 25.769231 | 53 | 0.743284 | 42 | 335 | 5.738095 | 0.595238 | 0.149378 | 0.186722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.164179 | 335 | 13 | 54 | 25.769231 | 0.832143 | 0.492537 | 0 | 0 | 0 | 0 | 0.112583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.75 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 3 |
ec15c3db6ce1e546d7f9d58eb40b4aebe1498b7a | 1,877 | py | Python | tests/test_main_redirects.py | ElijahPepe/stats.wwdt.me_v5 | 9b3d9d284fbdebbf6b3e7de5ef9fed8f709e48bc | [
"Apache-2.0"
] | null | null | null | tests/test_main_redirects.py | ElijahPepe/stats.wwdt.me_v5 | 9b3d9d284fbdebbf6b3e7de5ef9fed8f709e48bc | [
"Apache-2.0"
] | 1 | 2022-03-22T20:34:45.000Z | 2022-03-22T20:34:45.000Z | tests/test_main_redirects.py | ElijahPepe/stats.wwdt.me_v5 | 9b3d9d284fbdebbf6b3e7de5ef9fed8f709e48bc | [
"Apache-2.0"
] | 1 | 2022-03-14T23:25:18.000Z | 2022-03-14T23:25:18.000Z | # -*- coding: utf-8 -*-
# vim: set noai syntax=python ts=4 sw=4:
#
# Copyright (c) 2018-2022 Linh Pham
# stats.wwdt.me is released under the terms of the Apache License 2.0
"""Testing Main Redirects Module and Blueprint Views"""
import pytest
def test_favicon(client):
"""Testing main_redirects.favicon"""
resp... | 26.069444 | 69 | 0.700586 | 238 | 1,877 | 5.390756 | 0.281513 | 0.196415 | 0.155885 | 0.168355 | 0.485581 | 0.485581 | 0.485581 | 0.433359 | 0.356976 | 0.356976 | 0 | 0.030888 | 0.172083 | 1,877 | 71 | 70 | 26.43662 | 0.794723 | 0.257326 | 0 | 0.552632 | 0 | 0 | 0.06348 | 0 | 0 | 0 | 0 | 0 | 0.473684 | 1 | 0.236842 | false | 0 | 0.026316 | 0 | 0.263158 | 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 |
ec39319a5c6bb3feb383b10935debd6f20555953 | 79 | py | Python | URI/1 - INICIANTE/Python/1017 - GastoCombustivel.py | william-james-pj/LogicaProgramacao | 629f746e34da2e829dc7ea2e489ac36bb1b1fb13 | [
"MIT"
] | 1 | 2020-04-14T16:48:16.000Z | 2020-04-14T16:48:16.000Z | URI/1 - INICIANTE/Python/1017 - GastoCombustivel.py | william-james-pj/LogicaProgramacao | 629f746e34da2e829dc7ea2e489ac36bb1b1fb13 | [
"MIT"
] | null | null | null | URI/1 - INICIANTE/Python/1017 - GastoCombustivel.py | william-james-pj/LogicaProgramacao | 629f746e34da2e829dc7ea2e489ac36bb1b1fb13 | [
"MIT"
] | null | null | null | t = int(input())
v = int(input())
l = float((t*v)/12)
print('{:.3f}'.format(l)) | 19.75 | 25 | 0.531646 | 15 | 79 | 2.8 | 0.666667 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042857 | 0.113924 | 79 | 4 | 25 | 19.75 | 0.557143 | 0 | 0 | 0 | 0 | 0 | 0.075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
ec43ced93b760c607e6275504d18afa67cdfd923 | 489 | py | Python | serverClasses/websocketDIr/SessionTicketStore.py | palomalo/RedRoomDiscussion | 5637cfbe37f29e91c8a047b4c05058b302302ef6 | [
"FSFAP"
] | 1 | 2020-03-26T20:53:57.000Z | 2020-03-26T20:53:57.000Z | serverClasses/websocketDIr/SessionTicketStore.py | palomalo/RedRoomDiscussion | 5637cfbe37f29e91c8a047b4c05058b302302ef6 | [
"FSFAP"
] | null | null | null | serverClasses/websocketDIr/SessionTicketStore.py | palomalo/RedRoomDiscussion | 5637cfbe37f29e91c8a047b4c05058b302302ef6 | [
"FSFAP"
] | null | null | null | from typing import Callable, Deque, Dict, List, Optional, Union, cast
from aioquic.tls import SessionTicket
class SessionTicketStore:
"""
Simple in-memory store for session tickets.
"""
def __init__(self) -> None:
self.tickets: Dict[bytes, SessionTicket] = {}
def add(self, ticket: Sessio... | 27.166667 | 69 | 0.674847 | 57 | 489 | 5.719298 | 0.561404 | 0.101227 | 0.092025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212679 | 489 | 17 | 70 | 28.764706 | 0.846753 | 0.087935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | 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 |
ec45954c4b99974563d06cad041e25d3e3677699 | 11,799 | py | Python | 2015/2015_18a.py | davidxiao93/Advent-of-Code | 29503100ae4eb46b048fc3ab68ff0181c6f00ee5 | [
"MIT"
] | null | null | null | 2015/2015_18a.py | davidxiao93/Advent-of-Code | 29503100ae4eb46b048fc3ab68ff0181c6f00ee5 | [
"MIT"
] | null | null | null | 2015/2015_18a.py | davidxiao93/Advent-of-Code | 29503100ae4eb46b048fc3ab68ff0181c6f00ee5 | [
"MIT"
] | null | null | null | input = """####.#.##.###.#.#.##.#..###.#..#.#.#..##....#.###...##..###.##.#.#.#.##...##..#..#....#.#.##..#...##
.##...##.##.######.#.#.##...#.#.#.#.#...#.##.#..#.#.####...#....#....###.#.#.#####....#.#.##.#.#.##.
###.##..#..#####.......#.########...#.####.###....###.###...#...####.######.#..#####.#.###....####..
....#.... | 71.078313 | 111 | 0.072464 | 243 | 11,799 | 3.399177 | 0.213992 | 0.119855 | 0.094431 | 0.067797 | 0.276029 | 0.171913 | 0.171913 | 0.113801 | 0.113801 | 0.113801 | 0 | 0.002262 | 0.063226 | 11,799 | 165 | 112 | 71.509091 | 0.072469 | 0.001949 | 0 | 0.059211 | 0 | 0 | 0.859521 | 0.849329 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032895 | false | 0.006579 | 0 | 0 | 0.039474 | 0.026316 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ec48da9cdf6d539fb10c0cf29246ddd806aa9afa | 161 | py | Python | 2018/Day15/setup.py | dh256/adventofcode | 428eec13f4cbf153333a0e359bcff23070ef6d27 | [
"MIT"
] | null | null | null | 2018/Day15/setup.py | dh256/adventofcode | 428eec13f4cbf153333a0e359bcff23070ef6d27 | [
"MIT"
] | null | null | null | 2018/Day15/setup.py | dh256/adventofcode | 428eec13f4cbf153333a0e359bcff23070ef6d27 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='day15',
author='David Hanley',
packages=['day15'],
description='Advent of Code 2018 Day 15 Solution'
) | 20.125 | 53 | 0.677019 | 20 | 161 | 5.45 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078125 | 0.204969 | 161 | 8 | 54 | 20.125 | 0.773438 | 0 | 0 | 0 | 0 | 0 | 0.351852 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ec4f13a3f2482e5dcd4ba71356d8e0880b761f84 | 328 | py | Python | test.py | wmacevoy/db1-wmacevoy | 0972ac406079b9f49bb3f844e07544248272304b | [
"MIT"
] | null | null | null | test.py | wmacevoy/db1-wmacevoy | 0972ac406079b9f49bb3f844e07544248272304b | [
"MIT"
] | null | null | null | test.py | wmacevoy/db1-wmacevoy | 0972ac406079b9f49bb3f844e07544248272304b | [
"MIT"
] | 1 | 2021-12-14T07:06:59.000Z | 2021-12-14T07:06:59.000Z | #!/usr/bin/env python
import sample
import location
import collector
import test_googleform2isoformat
import test_csvimport
def test():
sample.test_sample()
location.test_location()
collector.test_collector()
test_googleform2isoformat.test_googleform2isodatetime
test_csvimport.test_csvimport_row()... | 20.5 | 57 | 0.801829 | 37 | 328 | 6.837838 | 0.378378 | 0.15415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01049 | 0.128049 | 328 | 16 | 58 | 20.5 | 0.874126 | 0.060976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | true | 0 | 0.5 | 0 | 0.583333 | 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 |
6b540ae0dbb27a00d72bce488d443c7a44e1b73f | 51 | py | Python | vedro/plugins/slicer/__init__.py | iri6e4k0/vedro | dd51c16400993d0fe1fd34bba57edff710ac2638 | [
"Apache-2.0"
] | 2 | 2021-08-24T12:49:30.000Z | 2022-01-23T07:21:25.000Z | vedro/plugins/slicer/__init__.py | iri6e4k0/vedro | dd51c16400993d0fe1fd34bba57edff710ac2638 | [
"Apache-2.0"
] | 20 | 2015-12-09T11:04:23.000Z | 2022-03-20T09:18:17.000Z | vedro/plugins/slicer/__init__.py | iri6e4k0/vedro | dd51c16400993d0fe1fd34bba57edff710ac2638 | [
"Apache-2.0"
] | 3 | 2015-12-09T07:31:23.000Z | 2022-01-28T11:03:24.000Z | from ._slicer import Slicer
__all__ = ("Slicer",)
| 12.75 | 27 | 0.705882 | 6 | 51 | 5.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156863 | 51 | 3 | 28 | 17 | 0.72093 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.