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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e012a92e1f872614d01a6331fee5e35c430a31f7 | 261 | py | Python | modules/moduleBase.py | saintaardvark/glouton-satnogs-data-downloader | dc8671340f558b1a21b41b9b04bab05fc15c7809 | [
"MIT"
] | null | null | null | modules/moduleBase.py | saintaardvark/glouton-satnogs-data-downloader | dc8671340f558b1a21b41b9b04bab05fc15c7809 | [
"MIT"
] | null | null | null | modules/moduleBase.py | saintaardvark/glouton-satnogs-data-downloader | dc8671340f558b1a21b41b9b04bab05fc15c7809 | [
"MIT"
] | null | null | null | from infrastructure.satnogClient import SatnogClient
import os
class ModuleBase:
def __init__(self, working_dir):
self.working_dir = working_dir
def runAfterDownload(self, file_name, full_path, observation):
raise NotImplementedError() | 29 | 66 | 0.762452 | 29 | 261 | 6.551724 | 0.689655 | 0.157895 | 0.147368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176245 | 261 | 9 | 67 | 29 | 0.883721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e0251d7f1fc5a3340792a778c923482bb49bcf13 | 316 | py | Python | lite/__init__.py | CleverInsight/sparx-lite | 1b729e8d11292e9737d57e092ee8916999ab1338 | [
"MIT"
] | null | null | null | lite/__init__.py | CleverInsight/sparx-lite | 1b729e8d11292e9737d57e092ee8916999ab1338 | [
"MIT"
] | null | null | null | lite/__init__.py | CleverInsight/sparx-lite | 1b729e8d11292e9737d57e092ee8916999ab1338 | [
"MIT"
] | null | null | null | import os
from tornado.template import Template
__SNIPPET__ = os.path.join(os.path.dirname(os.path.abspath(__file__)), '_snippet')
def T(name, **kw):
t = Template(open(os.path.join(__SNIPPET__, name + '.html'), 'rb').read())
return t.generate(**dict([('template_file', name)] + globals().items() + kw.items()))
| 31.6 | 86 | 0.686709 | 45 | 316 | 4.511111 | 0.533333 | 0.118227 | 0.098522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101266 | 316 | 9 | 87 | 35.111111 | 0.714789 | 0 | 0 | 0 | 0 | 0 | 0.088608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 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 |
e02e416aacee98cfdb91a5328f2267836f5a1229 | 6,862 | py | Python | tests/test_ordering.py | deepio-oc/pabot | ebf1894c6d35b2ddd5c4bca01bceb25189358106 | [
"Apache-2.0"
] | 379 | 2015-02-02T17:47:45.000Z | 2022-03-20T16:51:05.000Z | tests/test_ordering.py | deepio-oc/pabot | ebf1894c6d35b2ddd5c4bca01bceb25189358106 | [
"Apache-2.0"
] | 406 | 2015-02-12T07:41:53.000Z | 2022-03-28T23:35:32.000Z | tests/test_ordering.py | deepio-oc/pabot | ebf1894c6d35b2ddd5c4bca01bceb25189358106 | [
"Apache-2.0"
] | 159 | 2015-01-16T13:42:20.000Z | 2022-03-30T19:48:15.000Z | from robot import __version__ as ROBOT_VERSION
import sys
import tempfile
import textwrap
import unittest
import shutil
import subprocess
class PabotOrderingGroupTest(unittest.TestCase):
def setUp(self):
self.tmpdir = tempfile.mkdtemp()
def tearDown(self):
shutil.rmtree(self.tmpdir)
def ... | 35.189744 | 273 | 0.557418 | 812 | 6,862 | 4.656404 | 0.192118 | 0.055012 | 0.095213 | 0.120603 | 0.747157 | 0.721238 | 0.705898 | 0.687384 | 0.685533 | 0.562021 | 0 | 0.026738 | 0.345963 | 6,862 | 194 | 274 | 35.371134 | 0.815731 | 0 | 0 | 0.404255 | 0 | 0 | 0.108551 | 0 | 0 | 0 | 0 | 0 | 0.276596 | 1 | 0.074468 | false | 0.212766 | 0.074468 | 0 | 0.170213 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e040676396d83dae688cf225c1f4290cf1100f35 | 192 | py | Python | test_print_json.py | huangsen365/boto3-docker | 42d46ce4433dd037006d6b8d01db3fe444b9d8dd | [
"Apache-2.0"
] | null | null | null | test_print_json.py | huangsen365/boto3-docker | 42d46ce4433dd037006d6b8d01db3fe444b9d8dd | [
"Apache-2.0"
] | null | null | null | test_print_json.py | huangsen365/boto3-docker | 42d46ce4433dd037006d6b8d01db3fe444b9d8dd | [
"Apache-2.0"
] | null | null | null | import json
your_json = '["foo", {"bar":["baz", null, 1.0, 2]}]'
parsed = json.loads(your_json)
print(type(your_json))
print(type(parsed))
#print(json.dumps(parsed, indent=4, sort_keys=True)) | 27.428571 | 52 | 0.6875 | 32 | 192 | 4 | 0.625 | 0.1875 | 0.203125 | 0.265625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022857 | 0.088542 | 192 | 7 | 53 | 27.428571 | 0.708571 | 0.265625 | 0 | 0 | 0 | 0 | 0.269504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e074a8e70a88cdf3e39529ffdda1dc94abc0febf | 15,854 | py | Python | gogapi/api.py | tikki/pygogapi | f1b3a811444dc521ea4ad7884104086b52348995 | [
"MIT"
] | 23 | 2017-01-03T21:00:27.000Z | 2022-01-25T22:08:39.000Z | gogapi/api.py | tikki/pygogapi | f1b3a811444dc521ea4ad7884104086b52348995 | [
"MIT"
] | 3 | 2017-06-06T23:08:30.000Z | 2019-01-28T02:20:34.000Z | gogapi/api.py | tikki/pygogapi | f1b3a811444dc521ea4ad7884104086b52348995 | [
"MIT"
] | 8 | 2017-02-10T15:13:32.000Z | 2020-04-18T11:17:15.000Z | import json
import re
import logging
import html.parser
import zlib
import requests
from gogapi import urls
from gogapi.base import NotAuthorizedError, logger
from gogapi.product import Product, Series
from gogapi.search import SearchResult
DEBUG_JSON = False
GOGDATA_RE = re.compile(r"gogData\.?(.*?) = (.+);")
CLIEN... | 32.892116 | 80 | 0.628233 | 2,065 | 15,854 | 4.60678 | 0.155448 | 0.072532 | 0.090192 | 0.101861 | 0.469358 | 0.411017 | 0.37002 | 0.309156 | 0.266898 | 0.213708 | 0 | 0.004235 | 0.255393 | 15,854 | 481 | 81 | 32.960499 | 0.801609 | 0.082503 | 0 | 0.173203 | 0 | 0 | 0.09924 | 0.009661 | 0 | 0 | 0 | 0.002079 | 0 | 1 | 0.261438 | false | 0 | 0.03268 | 0.156863 | 0.558824 | 0.006536 | 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 |
e076824b715f780b36bdb8e03020e256a3cf8b8d | 156 | py | Python | csv_experiment.py | komax/spanningtree-crossingnumber | 444c8809a543905000a63c9d2ff1dcfb31835766 | [
"MIT"
] | 2 | 2019-01-07T22:12:09.000Z | 2020-05-08T06:44:19.000Z | csv_experiment.py | komax/spanningtree-crossingnumber | 444c8809a543905000a63c9d2ff1dcfb31835766 | [
"MIT"
] | null | null | null | csv_experiment.py | komax/spanningtree-crossingnumber | 444c8809a543905000a63c9d2ff1dcfb31835766 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import os
import sys
args = sys.argv[1:]
os.system('python -O -m spanningtree.csv_experiment_statistics ' +
' '.join(args))
| 19.5 | 66 | 0.673077 | 23 | 156 | 4.478261 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007752 | 0.173077 | 156 | 7 | 67 | 22.285714 | 0.790698 | 0.134615 | 0 | 0 | 0 | 0 | 0.395522 | 0.283582 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e077be2cbaa5c0711f376c7e5a696aa0b37ee960 | 1,526 | py | Python | qubiter/device_specific/chip_couplings_ibm.py | yourball/qubiter | 5ef0ea064fa8c9f125f7951a01fbb88504a054a5 | [
"Apache-2.0"
] | 3 | 2019-10-03T04:27:36.000Z | 2021-02-13T17:49:34.000Z | qubiter/device_specific/chip_couplings_ibm.py | yourball/qubiter | 5ef0ea064fa8c9f125f7951a01fbb88504a054a5 | [
"Apache-2.0"
] | null | null | null | qubiter/device_specific/chip_couplings_ibm.py | yourball/qubiter | 5ef0ea064fa8c9f125f7951a01fbb88504a054a5 | [
"Apache-2.0"
] | 2 | 2020-10-07T15:22:19.000Z | 2021-06-07T04:59:58.000Z | def aaa():
# trick sphinx to build link in doc
pass
# retired
ibmqx2_c_to_tars =\
{
0: [1, 2],
1: [2],
2: [],
3: [2, 4],
4: [2]
} # 6 edges
# retired
ibmqx4_c_to_tars =\
{
0: [],
1: [0],
2: [0, 1, 4],
3: [2, 4],
4: []
} # 6 edges
# retired
ibmq16Rus_c_to_tars = \
{
... | 15.895833 | 39 | 0.355177 | 282 | 1,526 | 1.858156 | 0.152482 | 0.030534 | 0.080153 | 0.091603 | 0.148855 | 0.083969 | 0.083969 | 0 | 0 | 0 | 0 | 0.355249 | 0.382045 | 1,526 | 95 | 40 | 16.063158 | 0.200424 | 0.071429 | 0 | 0.105882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011765 | false | 0.011765 | 0 | 0 | 0.011765 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0eb9c920aa1f94bcf5b75523167a5791a71d6de8 | 1,150 | py | Python | modle/__init__.py | Rex0519/NessusToReport | 047dd4a2f749addab3991b0ebc8ab609140c32a7 | [
"Apache-2.0"
] | 244 | 2020-06-27T12:07:52.000Z | 2022-03-30T02:36:27.000Z | modle/__init__.py | Rex0519/NessusToReport | 047dd4a2f749addab3991b0ebc8ab609140c32a7 | [
"Apache-2.0"
] | 23 | 2021-05-20T07:38:55.000Z | 2022-03-13T14:13:01.000Z | modle/__init__.py | Rex0519/NessusToReport | 047dd4a2f749addab3991b0ebc8ab609140c32a7 | [
"Apache-2.0"
] | 74 | 2020-06-27T12:07:53.000Z | 2022-03-11T19:07:45.000Z | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# ------------------------------------------------------------
# File: __init__.py.py
# Created Date: 2020/6/24
# Created Time: 0:12
# Author: Hypdncy
# Author Mail: hypdncy@outlook.com
# Copyright (c) 2020 Hypdncy
# ---------------------------------------------------------... | 39.655172 | 62 | 0.117391 | 31 | 1,150 | 4.225806 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02289 | 0.392174 | 1,150 | 29 | 63 | 39.655172 | 0.164521 | 0.950435 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0ede1b7c3e14b744474c60d6f5f4a702ad5ce8ca | 281 | py | Python | common/__init__.py | whyh/FavourDemo | 1b19882fb2e79dee9c3332594bf45c91e7476eaa | [
"Unlicense"
] | 1 | 2020-09-14T12:10:22.000Z | 2020-09-14T12:10:22.000Z | common/__init__.py | whyh/FavourDemo | 1b19882fb2e79dee9c3332594bf45c91e7476eaa | [
"Unlicense"
] | 4 | 2021-04-30T20:54:31.000Z | 2021-06-02T00:28:04.000Z | common/__init__.py | whyh/FavourDemo | 1b19882fb2e79dee9c3332594bf45c91e7476eaa | [
"Unlicense"
] | null | null | null | from . import (emoji as emj,
keyboards as kb,
telegram as tg,
phrases as phr,
finance as fin,
utils,
glossary,
bots,
gcp,
sed,
db)
| 23.416667 | 31 | 0.33452 | 23 | 281 | 4.086957 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.619217 | 281 | 11 | 32 | 25.545455 | 0.878505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
0eeb15222dc7d564fdca952a76722513fa52548a | 144 | py | Python | tlp/django_app/app/urls.py | munisisazade/create-django-app | f62395af2adaacacc4d3a3857c6570c9647d13a1 | [
"MIT"
] | 14 | 2018-01-08T12:50:10.000Z | 2021-12-26T18:38:14.000Z | tlp/django_app/app/urls.py | munisisazade/create-django-app | f62395af2adaacacc4d3a3857c6570c9647d13a1 | [
"MIT"
] | 10 | 2018-03-01T14:17:05.000Z | 2022-03-11T23:26:11.000Z | tlp/django_app/app/urls.py | munisisazade/create-django-app | f62395af2adaacacc4d3a3857c6570c9647d13a1 | [
"MIT"
] | 4 | 2019-04-09T17:29:34.000Z | 2020-06-07T14:46:23.000Z | from django.conf.urls import url
# from .views import BaseIndexView
urlpatterns = [
# url(r'^$', BaseIndexView.as_view(), name="index"),
] | 20.571429 | 56 | 0.6875 | 18 | 144 | 5.444444 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152778 | 144 | 7 | 57 | 20.571429 | 0.803279 | 0.576389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 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 |
0ef0b2cd3d796c7cb5a1c89e97057d03988cd5cd | 1,436 | py | Python | release/stubs.min/System/Windows/Forms/__init___parts/PaintEventArgs.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | release/stubs.min/System/Windows/Forms/__init___parts/PaintEventArgs.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | release/stubs.min/System/Windows/Forms/__init___parts/PaintEventArgs.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | class PaintEventArgs(EventArgs,IDisposable):
"""
Provides data for the System.Windows.Forms.Control.Paint event.
PaintEventArgs(graphics: Graphics,clipRect: Rectangle)
"""
def Instance(self):
""" This function has been arbitrarily put into the stubs"""
return PaintEventArgs()
def Dispose(self):... | 31.911111 | 215 | 0.699164 | 170 | 1,436 | 5.511765 | 0.376471 | 0.064034 | 0.051227 | 0.060832 | 0.248666 | 0.248666 | 0.248666 | 0.248666 | 0.248666 | 0.248666 | 0 | 0 | 0.169916 | 1,436 | 44 | 216 | 32.636364 | 0.786074 | 0.462396 | 0 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.3125 | 0 | 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 |
162335a5b07a8e07ba6397644e3e4ed7a9f459e2 | 8,442 | py | Python | uproot_methods/common/TVector.py | marinang/uproot-methods | 1d16d51ab7da19b4f31070d24e8fbfed3ae3ec8f | [
"BSD-3-Clause"
] | null | null | null | uproot_methods/common/TVector.py | marinang/uproot-methods | 1d16d51ab7da19b4f31070d24e8fbfed3ae3ec8f | [
"BSD-3-Clause"
] | null | null | null | uproot_methods/common/TVector.py | marinang/uproot-methods | 1d16d51ab7da19b4f31070d24e8fbfed3ae3ec8f | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2018, DIANA-HEP
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list ... | 31.036765 | 91 | 0.650912 | 1,118 | 8,442 | 4.750447 | 0.217352 | 0.076257 | 0.079081 | 0.096592 | 0.531162 | 0.473357 | 0.468085 | 0.457164 | 0.23875 | 0.23875 | 0 | 0.011148 | 0.245558 | 8,442 | 271 | 92 | 31.151292 | 0.822735 | 0.179934 | 0 | 0.305085 | 0 | 0 | 0.023209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.316384 | false | 0 | 0.028249 | 0.231638 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
16286e428c3bbec3fb9fbe61340a4121c6311a63 | 274 | py | Python | tests/attacks/class_test.py | henrik997/privacy-evaluator | f1d0e6c10ff58e582a44243788ab66c1d453bfa0 | [
"MIT"
] | null | null | null | tests/attacks/class_test.py | henrik997/privacy-evaluator | f1d0e6c10ff58e582a44243788ab66c1d453bfa0 | [
"MIT"
] | null | null | null | tests/attacks/class_test.py | henrik997/privacy-evaluator | f1d0e6c10ff58e582a44243788ab66c1d453bfa0 | [
"MIT"
] | null | null | null | import pytest
from privacy_evaluator.attacks.sample_attack import Sample_Attack
"""
This test only test if no error is thrown when calling the function, can be removed in the future
"""
def test_sample_attack():
test = Sample_Attack(0, 0, 0)
test.perform_attack()
| 24.909091 | 97 | 0.762774 | 43 | 274 | 4.697674 | 0.651163 | 0.237624 | 0.158416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0131 | 0.164234 | 274 | 10 | 98 | 27.4 | 0.868996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
162cf5942b39cb55c7afb1cde65c73f78fbc4d55 | 8,182 | py | Python | test/spec/test_spec.py | raghu1121/SLM-Lab | 58e98b6521f581515d04ebacff5226105237ed9b | [
"MIT"
] | 1 | 2021-09-01T11:57:04.000Z | 2021-09-01T11:57:04.000Z | test/spec/test_spec.py | ragtz/SLM-Lab | 42c48af308dfe36401990aca3795bc481cf28c17 | [
"MIT"
] | null | null | null | test/spec/test_spec.py | ragtz/SLM-Lab | 42c48af308dfe36401990aca3795bc481cf28c17 | [
"MIT"
] | null | null | null | from flaky import flaky
from slm_lab.experiment.control import Trial
from slm_lab.experiment.monitor import InfoSpace
from slm_lab.lib import util
from slm_lab.spec import spec_util
import os
import pandas as pd
import pytest
import sys
# helper method to run all tests in test_spec
def run_trial_test(spec_file, spec_... | 36.855856 | 82 | 0.744072 | 1,080 | 8,182 | 5.218519 | 0.077778 | 0.083747 | 0.125621 | 0.167495 | 0.841732 | 0.725869 | 0.493435 | 0.45511 | 0.388396 | 0.388396 | 0 | 0.003695 | 0.106942 | 8,182 | 221 | 83 | 37.022624 | 0.76762 | 0.137253 | 0 | 0.385093 | 0 | 0 | 0.461211 | 0.385621 | 0 | 0 | 0 | 0 | 0.006211 | 1 | 0.124224 | false | 0 | 0.055901 | 0 | 0.180124 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1635645909c86684dc1d01665725f73b3baa25cb | 348 | py | Python | tests/utils/test_clean_accounting_column.py | richardqiu/pyjanitor | aa3150e7b8e2adc4733ea206ea9c3093e21d4025 | [
"MIT"
] | 2 | 2020-09-06T22:11:01.000Z | 2022-03-19T23:57:24.000Z | tests/utils/test_clean_accounting_column.py | richardqiu/pyjanitor | aa3150e7b8e2adc4733ea206ea9c3093e21d4025 | [
"MIT"
] | 1 | 2021-05-17T15:30:04.000Z | 2021-07-29T09:39:56.000Z | tests/utils/test_clean_accounting_column.py | richardqiu/pyjanitor | aa3150e7b8e2adc4733ea206ea9c3093e21d4025 | [
"MIT"
] | 1 | 2020-08-10T20:30:20.000Z | 2020-08-10T20:30:20.000Z | import pytest
from janitor.utils import _clean_accounting_column
@pytest.mark.utils
def test_clean_accounting_column():
test_str = "(1,000)"
assert _clean_accounting_column(test_str) == float(-1000)
@pytest.mark.utils
def test_clean_accounting_column_zeroes():
test_str = "()"
assert _clean_accounti... | 21.75 | 61 | 0.761494 | 48 | 348 | 5.104167 | 0.416667 | 0.306122 | 0.428571 | 0.306122 | 0.657143 | 0.628571 | 0.35102 | 0.35102 | 0 | 0 | 0 | 0.036545 | 0.135057 | 348 | 15 | 62 | 23.2 | 0.777409 | 0 | 0 | 0.2 | 0 | 0 | 0.025862 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
163995382115c67384ddb8a508342f8bf7650216 | 1,164 | py | Python | cyberbrain/frame_tree.py | testinggg-art/Cyberbrain | e38c74c174e23aa386d005b03f09b30aa1b3a0ae | [
"MIT"
] | null | null | null | cyberbrain/frame_tree.py | testinggg-art/Cyberbrain | e38c74c174e23aa386d005b03f09b30aa1b3a0ae | [
"MIT"
] | null | null | null | cyberbrain/frame_tree.py | testinggg-art/Cyberbrain | e38c74c174e23aa386d005b03f09b30aa1b3a0ae | [
"MIT"
] | null | null | null | from __future__ import annotations
from .frame import Frame
from .generated.communication_pb2 import CursorPosition
class FrameTree:
"""A tree to store all frames. For now it's a fake implementation.
Each node in the tree represents a frame that ever exists during program execution.
Caller and callee fr... | 28.390244 | 87 | 0.670103 | 154 | 1,164 | 4.980519 | 0.538961 | 0.054759 | 0.062581 | 0.018253 | 0.178618 | 0.065189 | 0 | 0 | 0 | 0 | 0 | 0.001149 | 0.252577 | 1,164 | 40 | 88 | 29.1 | 0.88046 | 0.421821 | 0 | 0.294118 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.117647 | 1 | 0.176471 | false | 0 | 0.176471 | 0 | 0.588235 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
166f10041a007d09adb3797f8fd4bf54942b5eeb | 1,513 | py | Python | prelude/monads.py | michel-slm/python-prelude | b3ca89ff2bf150f772764f59d2796d2fcce1013d | [
"MIT"
] | 2 | 2015-05-12T16:12:56.000Z | 2020-08-26T20:52:47.000Z | prelude/monads.py | michel-slm/python-prelude | b3ca89ff2bf150f772764f59d2796d2fcce1013d | [
"MIT"
] | null | null | null | prelude/monads.py | michel-slm/python-prelude | b3ca89ff2bf150f772764f59d2796d2fcce1013d | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod
from prelude.typeclasses import Monad
from prelude.decorators import monad_eq, singleton
@monad_eq
class Either(Monad):
__metaclass__ = ABCMeta
@classmethod
def mreturn(cls, val):
return Right(val)
@abstractmethod
def __iter__(self):
pass
c... | 18.9125 | 50 | 0.613351 | 179 | 1,513 | 4.608939 | 0.201117 | 0.110303 | 0.08 | 0.067879 | 0.591515 | 0.591515 | 0.513939 | 0.513939 | 0.513939 | 0.38303 | 0 | 0 | 0.276272 | 1,513 | 79 | 51 | 19.151899 | 0.753425 | 0 | 0 | 0.689655 | 0 | 0 | 0.022472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.344828 | false | 0.034483 | 0.051724 | 0.224138 | 0.758621 | 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 |
16718d7813439bbbc33bc80e98b6e4741d2b5b6c | 261 | py | Python | foodx_devops_tools/azure/__init__.py | Food-X-Technologies/foodx_devops_tools | 57d1bf1304d9c9a386eaffa427f9eb36c410c350 | [
"MIT"
] | 3 | 2021-06-23T20:53:43.000Z | 2022-01-26T14:19:43.000Z | foodx_devops_tools/azure/__init__.py | Food-X-Technologies/foodx_devops_tools | 57d1bf1304d9c9a386eaffa427f9eb36c410c350 | [
"MIT"
] | 33 | 2021-08-09T15:44:51.000Z | 2022-03-03T18:28:02.000Z | foodx_devops_tools/azure/__init__.py | Food-X-Technologies/foodx_devops_tools | 57d1bf1304d9c9a386eaffa427f9eb36c410c350 | [
"MIT"
] | 1 | 2021-06-23T20:53:52.000Z | 2021-06-23T20:53:52.000Z | # Copyright (c) 2021 Food-X Technologies
#
# This file is part of foodx_devops_tools.
#
# You should have received a copy of the MIT License along with
# foodx_devops_tools. If not, see <https://opensource.org/licenses/MIT>.
"""Azure related utilities."""
| 29 | 73 | 0.731801 | 40 | 261 | 4.675 | 0.875 | 0.117647 | 0.171123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018265 | 0.16092 | 261 | 8 | 74 | 32.625 | 0.835616 | 0.927203 | 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 |
1680693e61459262ca19480a0c2453b04b05a5a0 | 992 | py | Python | StorageSystem.py | aaronFritz2302/ZoomAuto | 41af90dc35104bfea970b6b61694e105a625535c | [
"MIT"
] | null | null | null | StorageSystem.py | aaronFritz2302/ZoomAuto | 41af90dc35104bfea970b6b61694e105a625535c | [
"MIT"
] | null | null | null | StorageSystem.py | aaronFritz2302/ZoomAuto | 41af90dc35104bfea970b6b61694e105a625535c | [
"MIT"
] | null | null | null | import sqlite3
from pandas import DataFrame
conn = sqlite3.connect('./data.db',check_same_thread=False)
class DataBase():
cursor = conn.cursor()
def __init__(self):
self.createTable()
def createTable(self):
'''
Creates A Table If it Doesnt Exist
... | 32 | 138 | 0.582661 | 108 | 992 | 5.277778 | 0.509259 | 0.024561 | 0.038596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002865 | 0.296371 | 992 | 31 | 139 | 32 | 0.813754 | 0.113911 | 0 | 0 | 0 | 0.066667 | 0.247436 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0.133333 | 0.133333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
16a2ce4183cf617439f69c8fd39f2dded2cf7d88 | 180 | py | Python | analisador_sintatico/blueprints/api/parsers.py | viniciusandd/uri-analisador-sintatico | b347f4293e4c60bd3b2c838c8cef0d75db2c0bec | [
"MIT"
] | null | null | null | analisador_sintatico/blueprints/api/parsers.py | viniciusandd/uri-analisador-sintatico | b347f4293e4c60bd3b2c838c8cef0d75db2c0bec | [
"MIT"
] | null | null | null | analisador_sintatico/blueprints/api/parsers.py | viniciusandd/uri-analisador-sintatico | b347f4293e4c60bd3b2c838c8cef0d75db2c0bec | [
"MIT"
] | null | null | null | from flask_restful import reqparse
def retornar_parser():
parser = reqparse.RequestParser()
parser.add_argument('sentenca', type=str, required=True)
return parser
| 25.714286 | 64 | 0.738889 | 21 | 180 | 6.190476 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172222 | 180 | 6 | 65 | 30 | 0.872483 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
16a7758cb5092239aa048ae598f5849367159b11 | 647 | py | Python | src/controllers/__init__.py | TonghanWang/NDQ | 575f2e243bac1a567c072dbea8e093aaa4959511 | [
"Apache-2.0"
] | 63 | 2020-02-23T09:37:15.000Z | 2022-01-17T01:30:50.000Z | src/controllers/__init__.py | fringsoo/NDQ | e243ba917e331065e82c6634cb1d756873747be5 | [
"Apache-2.0"
] | 14 | 2020-04-20T02:20:11.000Z | 2022-03-12T00:16:33.000Z | src/controllers/__init__.py | mig-zh/NDQ | 5720e3e8b529724e8d96a9a24c73bca24a11e7f9 | [
"Apache-2.0"
] | 16 | 2020-03-12T02:57:52.000Z | 2021-11-27T13:07:08.000Z | from .basic_controller import BasicMAC
from .cate_broadcast_comm_controller import CateBCommMAC
from .cate_broadcast_comm_controller_full import CateBCommFMAC
from .cate_broadcast_comm_controller_not_IB import CateBCommNIBMAC
from .tar_comm_controller import TarCommMAC
from .cate_pruned_broadcast_comm_controller import... | 46.214286 | 66 | 0.797527 | 75 | 647 | 6.373333 | 0.266667 | 0.217573 | 0.213389 | 0.131799 | 0.194561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153014 | 647 | 13 | 67 | 49.769231 | 0.872263 | 0 | 0 | 0 | 0 | 0 | 0.204019 | 0.171561 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
16abab9c314c051765ffd991fb6c764e6cf24cb5 | 235 | py | Python | solutions/pic_search/webserver/src/service/theardpool.py | naetimus/bootcamp | 0182992df7c54012944b51fe9b70532ab6a0059b | [
"Apache-2.0"
] | 1 | 2020-03-10T07:43:08.000Z | 2020-03-10T07:43:08.000Z | solutions/pic_search/webserver/src/service/theardpool.py | naetimus/bootcamp | 0182992df7c54012944b51fe9b70532ab6a0059b | [
"Apache-2.0"
] | null | null | null | solutions/pic_search/webserver/src/service/theardpool.py | naetimus/bootcamp | 0182992df7c54012944b51fe9b70532ab6a0059b | [
"Apache-2.0"
] | 1 | 2020-04-03T05:24:47.000Z | 2020-04-03T05:24:47.000Z | import threading
from concurrent.futures import ThreadPoolExecutor
from service.train import do_train
def thread_runner(thread_num, func, *args):
executor = ThreadPoolExecutor(thread_num)
f = executor.submit(do_train, *args)
| 26.111111 | 49 | 0.795745 | 30 | 235 | 6.066667 | 0.6 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131915 | 235 | 8 | 50 | 29.375 | 0.892157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.666667 | 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 |
16bf36b1dcc9b129dcd361097fbc1ea1ea920674 | 1,654 | py | Python | pytudes/_2021/educative/grokking_the_coding_interview/fast_and_slow_pointers/_1__linked_list_cycle__easy.py | TeoZosa/pytudes | 4f01ab20f936bb4b3f42d1946180d4a20fd95fbf | [
"Apache-2.0"
] | 1 | 2022-02-08T09:47:35.000Z | 2022-02-08T09:47:35.000Z | pytudes/_2021/educative/grokking_the_coding_interview/fast_and_slow_pointers/_1__linked_list_cycle__easy.py | TeoZosa/pytudes | 4f01ab20f936bb4b3f42d1946180d4a20fd95fbf | [
"Apache-2.0"
] | 62 | 2021-04-02T23:41:16.000Z | 2022-03-25T13:16:10.000Z | pytudes/_2021/educative/grokking_the_coding_interview/fast_and_slow_pointers/_1__linked_list_cycle__easy.py | TeoZosa/pytudes | 4f01ab20f936bb4b3f42d1946180d4a20fd95fbf | [
"Apache-2.0"
] | null | null | null | """https://www.educative.io/courses/grokking-the-coding-interview/N7rwVyAZl6D
Categories:
- Binary
- Bit Manipulation
- Blind 75
See Also:
- pytudes/_2021/leetcode/blind_75/linked_list/_141__linked_list_cycle__easy.py
"""
from pytudes._2021.utils.linked_list import (
ListNode,
NodeType,
... | 23.971014 | 82 | 0.605804 | 228 | 1,654 | 4.254386 | 0.328947 | 0.22268 | 0.22268 | 0.197938 | 0.431959 | 0.391753 | 0.358763 | 0.358763 | 0.358763 | 0.358763 | 0 | 0.023908 | 0.266626 | 1,654 | 68 | 83 | 24.323529 | 0.774938 | 0.484281 | 0 | 0.136364 | 0 | 0 | 0.087883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.227273 | 0.136364 | 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 |
16c04b9a7be2241d66d21a6886d268026e2fdc89 | 258 | py | Python | metric/metric.py | riven314/ENetDepth_TimeAnlysis_Tmp | 29bd864adf91700799d87b449d0c4e389f7028bc | [
"MIT"
] | null | null | null | metric/metric.py | riven314/ENetDepth_TimeAnlysis_Tmp | 29bd864adf91700799d87b449d0c4e389f7028bc | [
"MIT"
] | null | null | null | metric/metric.py | riven314/ENetDepth_TimeAnlysis_Tmp | 29bd864adf91700799d87b449d0c4e389f7028bc | [
"MIT"
] | null | null | null | class Metric(object):
"""Base class for all metrics.
From: https://github.com/pytorch/tnt/blob/master/torchnet/meter/meter.py
"""
def reset(self):
pass
def add(self):
pass
def value(self):
pass
| 18.428571 | 77 | 0.554264 | 32 | 258 | 4.46875 | 0.75 | 0.167832 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.321705 | 258 | 13 | 78 | 19.846154 | 0.817143 | 0.391473 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0.428571 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
16df196ac8b1d19487d9f38ab432516956acf44f | 13,440 | py | Python | test.py | UnKafkaesque/Sentiment-Analysis | bd8517420534bcfe76f2f60a4f178d1dac540075 | [
"MIT"
] | null | null | null | test.py | UnKafkaesque/Sentiment-Analysis | bd8517420534bcfe76f2f60a4f178d1dac540075 | [
"MIT"
] | null | null | null | test.py | UnKafkaesque/Sentiment-Analysis | bd8517420534bcfe76f2f60a4f178d1dac540075 | [
"MIT"
] | null | null | null | import os
import sys
import time
import traceback
import project1_Copy as p1
import numpy as np
verbose = False
def green(s):
return '\033[1;32m%s\033[m' % s
def yellow(s):
return '\033[1;33m%s\033[m' % s
def red(s):
return '\033[1;31m%s\033[m' % s
def log(*m):
print(" ".join(map(str, m)))
def log... | 29.154013 | 165 | 0.564658 | 1,974 | 13,440 | 3.659574 | 0.090172 | 0.064784 | 0.063123 | 0.03613 | 0.780592 | 0.743217 | 0.710963 | 0.691999 | 0.669574 | 0.651163 | 0 | 0.03633 | 0.283185 | 13,440 | 460 | 166 | 29.217391 | 0.713515 | 0 | 0 | 0.629243 | 0 | 0 | 0.12619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060052 | false | 0.044386 | 0.018277 | 0.007833 | 0.208877 | 0.002611 | 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 |
16ebc077aad6a4dd684131dc7271bbdbd5696af9 | 743 | py | Python | test.py | sbcshop/PiRelay-8 | 4d881f259c07cd4fdf3c57431feb1587aaa0e861 | [
"MIT"
] | 2 | 2021-09-07T03:25:00.000Z | 2021-09-07T17:28:46.000Z | test.py | sbcshop/PiRelay-8 | 4d881f259c07cd4fdf3c57431feb1587aaa0e861 | [
"MIT"
] | null | null | null | test.py | sbcshop/PiRelay-8 | 4d881f259c07cd4fdf3c57431feb1587aaa0e861 | [
"MIT"
] | null | null | null | from PiRelay8 import Relay
import time
r1 = Relay("RELAY1")
r2 = Relay("RELAY2")
r3 = Relay("RELAY3")
r4 = Relay("RELAY4")
r5 = Relay("RELAY5")
r6 = Relay("RELAY6")
r7 = Relay("RELAY7")
r8 = Relay("RELAY8")
r1.off()
r2.off()
r3.off()
r4.off()
r5.off()
r6.off()
r7.off()
r8.off()
r1.on()
time.s... | 11.983871 | 27 | 0.572005 | 142 | 743 | 2.992958 | 0.183099 | 0.338824 | 0.376471 | 0.414118 | 0.574118 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121464 | 0.191117 | 743 | 61 | 28 | 12.180328 | 0.585691 | 0 | 0 | 0.64 | 0 | 0 | 0.070381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 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 |
bc4dbd4536189e5c83cb95261570c971ee7df77f | 336 | py | Python | ghostwriter/rolodex/apps.py | bbhunter/Ghostwriter | 1b684ddd119feed9891e83b39c9b314b41d086ca | [
"BSD-3-Clause"
] | 601 | 2019-07-30T17:06:37.000Z | 2022-03-31T00:55:31.000Z | ghostwriter/rolodex/apps.py | chrismaddalena/Ghostwriter | 5a938358450cd0e69a42883b1b18e067644744a8 | [
"BSD-3-Clause"
] | 150 | 2019-08-01T07:20:22.000Z | 2022-03-29T19:18:02.000Z | ghostwriter/rolodex/apps.py | chrismaddalena/Ghostwriter | 5a938358450cd0e69a42883b1b18e067644744a8 | [
"BSD-3-Clause"
] | 126 | 2019-07-30T17:42:49.000Z | 2022-03-21T20:43:35.000Z | """This contains the configuration of the Rolodex application."""
# Django Imports
from django.apps import AppConfig
class RolodexConfig(AppConfig):
name = "ghostwriter.rolodex"
def ready(self):
try:
import ghostwriter.rolodex.signals # noqa F401 isort:skip
except ImportError:
... | 22.4 | 70 | 0.672619 | 36 | 336 | 6.277778 | 0.805556 | 0.159292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011952 | 0.252976 | 336 | 14 | 71 | 24 | 0.888446 | 0.285714 | 0 | 0 | 0 | 0 | 0.081545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.375 | 0 | 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 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
bc5478846dead2384e17349d8f75968c543992de | 407 | py | Python | pkg/maths/maths.py | prateekdegaons1991/experiment-loadtest | b53c70fac5b2f7d37df77844b26f79741c74c1b6 | [
"Apache-2.0"
] | 8 | 2020-04-17T06:34:30.000Z | 2021-12-18T10:54:50.000Z | pkg/maths/maths.py | oumkale/test-python | 1f3d3e42ffbe1bf5ed9df8a0c6038e50129b2c4d | [
"Apache-2.0"
] | 15 | 2020-04-18T06:01:53.000Z | 2022-02-15T08:56:25.000Z | pkg/maths/maths.py | oumkale/test-python | 1f3d3e42ffbe1bf5ed9df8a0c6038e50129b2c4d | [
"Apache-2.0"
] | 12 | 2020-04-17T05:14:27.000Z | 2022-03-29T19:24:20.000Z | #Atoi stands for ASCII to Integer Conversion
def atoi(string):
res = 0
# Iterate through all characters of
# input and update result
for i in range(len(string)):
res = res * 10 + (ord(string[i]) - ord('0'))
return res
#Adjustment contains rule of three for calculating an integer given an... | 27.133333 | 109 | 0.673219 | 60 | 407 | 4.566667 | 0.666667 | 0.065693 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022654 | 0.240786 | 407 | 14 | 110 | 29.071429 | 0.864078 | 0.515971 | 0 | 0 | 0 | 0 | 0.005181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bc5b677ed37d940fc02b036d43d53f7c6322c3f1 | 599 | py | Python | losses/all_lost.py | Liudzz/loss-chapter | 22359b92ca5e155d5af32ef2f22eeddf0483b947 | [
"Apache-2.0"
] | 2 | 2020-07-07T00:03:31.000Z | 2020-07-08T09:58:48.000Z | losses/all_lost.py | Liudzz/loss-chapter | 22359b92ca5e155d5af32ef2f22eeddf0483b947 | [
"Apache-2.0"
] | null | null | null | losses/all_lost.py | Liudzz/loss-chapter | 22359b92ca5e155d5af32ef2f22eeddf0483b947 | [
"Apache-2.0"
] | 2 | 2020-07-08T09:58:56.000Z | 2020-07-11T13:43:53.000Z | """
easy way to use losses
"""
from center_loss import Centerloss
import torch.nn as nn
from FocalLoss import FocalLoss
def center_loss(pred,label,num_calss,feature):
loss = Centerloss(num_calss,feature)
return loss(pred,label)
def Focal_loss(pred,label,num_calss,alaph=None, gamma):
loss = Centerloss(num... | 22.185185 | 55 | 0.729549 | 91 | 599 | 4.692308 | 0.340659 | 0.210773 | 0.213115 | 0.119438 | 0.437939 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01002 | 0.166945 | 599 | 27 | 56 | 22.185185 | 0.845691 | 0 | 0 | 0.277778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bc6e8fa55969e186c06ce2946db2244dfbf09a10 | 7,334 | py | Python | statsmodels/discrete/tests/test_conditional.py | porcpine1967/statsmodels | db4900056d80732ffff2733454fac88781ced8d2 | [
"BSD-3-Clause"
] | null | null | null | statsmodels/discrete/tests/test_conditional.py | porcpine1967/statsmodels | db4900056d80732ffff2733454fac88781ced8d2 | [
"BSD-3-Clause"
] | null | null | null | statsmodels/discrete/tests/test_conditional.py | porcpine1967/statsmodels | db4900056d80732ffff2733454fac88781ced8d2 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
from statsmodels.discrete.conditional_models import (
ConditionalLogit, ConditionalPoisson)
from statsmodels.tools.numdiff import approx_fprime
from numpy.testing import assert_allclose
import pandas as pd
def test_logit_1d():
y = np.r_[0, 1, 0, 1, 0, 1, 0, 1, 1, 1]
g = np.r_[0, 0, 0... | 30.558333 | 78 | 0.587947 | 1,176 | 7,334 | 3.566327 | 0.120748 | 0.018598 | 0.019075 | 0.009537 | 0.802098 | 0.744874 | 0.694087 | 0.648307 | 0.646876 | 0.63114 | 0 | 0.097174 | 0.252113 | 7,334 | 239 | 79 | 30.686192 | 0.667457 | 0.063267 | 0 | 0.564103 | 0 | 0 | 0.01897 | 0 | 0 | 0 | 0 | 0 | 0.160256 | 1 | 0.044872 | false | 0 | 0.032051 | 0 | 0.076923 | 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 |
bc889aea13c53b5ac47e25b4727f37433f19b834 | 322 | py | Python | src/pymortests/benchmarks.py | TiKeil/pymor | 5c6b3b6e1714b5ede11ce7cf03399780ab29d252 | [
"Unlicense"
] | 1 | 2021-08-17T15:55:12.000Z | 2021-08-17T15:55:12.000Z | src/pymortests/benchmarks.py | TreeerT/pymor | e8b18d2d4c4b5998f0bd84f6728e365e0693b753 | [
"Unlicense"
] | 4 | 2022-03-17T10:07:38.000Z | 2022-03-30T12:41:06.000Z | src/pymortests/benchmarks.py | TreeerT/pymor | e8b18d2d4c4b5998f0bd84f6728e365e0693b753 | [
"Unlicense"
] | null | null | null | # This file is part of the pyMOR project (http://www.pymor.org).
# Copyright 2013-2020 pyMOR developers and contributors. All rights reserved.
# License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
from pymortests.base import runmodule
if __name__ == "__main__":
runmodule(filename=__file__... | 32.2 | 77 | 0.76087 | 45 | 322 | 5.177778 | 0.777778 | 0.034335 | 0.085837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.130435 | 322 | 9 | 78 | 35.777778 | 0.796429 | 0.664596 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bcc54625026e4e77ba54fe67d05a342fde131c90 | 185 | py | Python | cluster/density/test.py | michealowen/MachingLearning | 9dcc908f2d3e468390e5abb7f051b449b0ecb455 | [
"Apache-2.0"
] | 2 | 2019-09-11T07:02:25.000Z | 2020-12-17T10:40:02.000Z | cluster/density/test.py | michealowen/MachingLearning | 9dcc908f2d3e468390e5abb7f051b449b0ecb455 | [
"Apache-2.0"
] | null | null | null | cluster/density/test.py | michealowen/MachingLearning | 9dcc908f2d3e468390e5abb7f051b449b0ecb455 | [
"Apache-2.0"
] | null | null | null | class a:
def __init__(self,da):
self.da = da
return
def go(self):
dd()
return None
def dd():
print('ok')
return None
aa = a(1)
aa.go() | 12.333333 | 26 | 0.475676 | 27 | 185 | 3.111111 | 0.518519 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 0.389189 | 185 | 15 | 27 | 12.333333 | 0.734513 | 0 | 0 | 0.166667 | 0 | 0 | 0.010753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.583333 | 0.083333 | 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 |
bcf55731b896385e43f5d67d9f858074f1791555 | 38 | py | Python | for1.py | satyamraj123/set-of-python-programs | c9a20b37cddc555704799e5ff277488b7eff58a9 | [
"Apache-2.0"
] | null | null | null | for1.py | satyamraj123/set-of-python-programs | c9a20b37cddc555704799e5ff277488b7eff58a9 | [
"Apache-2.0"
] | null | null | null | for1.py | satyamraj123/set-of-python-programs | c9a20b37cddc555704799e5ff277488b7eff58a9 | [
"Apache-2.0"
] | null | null | null | fruit='banana'
x=len(fruit)
print(x) | 12.666667 | 15 | 0.684211 | 7 | 38 | 3.714286 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 38 | 3 | 16 | 12.666667 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
bcf8d925c5a3910be4a945e6cce5d1278db5fcb4 | 179 | py | Python | json2yaml.py | cristicalin/tools | b8fe4efb1143a575d102d3a8e368052a4ecdceae | [
"MIT"
] | null | null | null | json2yaml.py | cristicalin/tools | b8fe4efb1143a575d102d3a8e368052a4ecdceae | [
"MIT"
] | 1 | 2016-01-31T12:54:06.000Z | 2016-02-29T13:45:46.000Z | json2yaml.py | cristicalin/tools | b8fe4efb1143a575d102d3a8e368052a4ecdceae | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
import yaml
import json
if __name__ == '__main__':
content = json.load(sys.stdin)
print yaml.dump(content, indent=2, default_flow_style=False)
| 16.272727 | 62 | 0.73743 | 27 | 179 | 4.518519 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0.139665 | 179 | 10 | 63 | 17.9 | 0.785714 | 0.089385 | 0 | 0 | 0 | 0 | 0.049689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.5 | null | null | 0.166667 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bcfdc746f65446c3a274947a1481597ff88c7469 | 5,406 | py | Python | util/submission/templates.py | jeanlucf22/mgmol | 4e79bc32c14c8a47ae18ad0659ea740719c8b77f | [
"BSD-3-Clause-LBNL",
"FSFAP"
] | 25 | 2018-12-29T03:33:01.000Z | 2021-05-08T12:52:27.000Z | util/submission/templates.py | jeanlucf22/mgmol | 4e79bc32c14c8a47ae18ad0659ea740719c8b77f | [
"BSD-3-Clause-LBNL",
"FSFAP"
] | 121 | 2018-12-19T02:38:21.000Z | 2021-12-20T16:29:24.000Z | util/submission/templates.py | jeanlucf22/mgmol | 4e79bc32c14c8a47ae18ad0659ea740719c8b77f | [
"BSD-3-Clause-LBNL",
"FSFAP"
] | 15 | 2019-02-17T05:28:43.000Z | 2022-02-28T05:24:11.000Z | md_template_d144 = """verbosity=0
xcFunctional=PBE
FDtype=4th
[Mesh]
nx=160
ny=80
nz=80
[Domain]
ox=0.
oy=0.
oz=0.
lx=42.4813
ly=21.2406
lz=21.2406
[Potentials]
pseudopotential=pseudo.D_tm_pbe
[Poisson]
solver=@
max_steps_initial=@50
max_steps=@50
reset=@
bcx=periodic
bcy=periodic
bcz=periodic
[Run]
type=MD
[MD]
type=@... | 17.216561 | 119 | 0.663707 | 816 | 5,406 | 4.229167 | 0.243873 | 0.023182 | 0.03767 | 0.027818 | 0.761808 | 0.738337 | 0.689655 | 0.618951 | 0.592872 | 0.592872 | 0 | 0.064318 | 0.18609 | 5,406 | 313 | 120 | 17.271566 | 0.72 | 0 | 0 | 0.748175 | 0 | 0.018248 | 0.823529 | 0.167962 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.014599 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4c0d5b44bfd54d1398052b98c3fc9dbc04be5c4f | 601 | py | Python | app/mod_ecomm/controllers.py | VikrantReddy/Instagram2Shop | 8d9c3f39d277fafb56d10a87a1b62a6df8a74237 | [
"MIT"
] | null | null | null | app/mod_ecomm/controllers.py | VikrantReddy/Instagram2Shop | 8d9c3f39d277fafb56d10a87a1b62a6df8a74237 | [
"MIT"
] | null | null | null | app/mod_ecomm/controllers.py | VikrantReddy/Instagram2Shop | 8d9c3f39d277fafb56d10a87a1b62a6df8a74237 | [
"MIT"
] | null | null | null | from flask import Blueprint, Flask, send_from_directory
from werkzeug.security import check_password_hash, generate_password_hash
from app import db
from app.mod_auth.forms import LoginForm
from app.mod_auth.models import User
mod_ecomm = Blueprint('products', __name__, url_prefix='/products',
... | 33.388889 | 74 | 0.71381 | 78 | 601 | 5.192308 | 0.5 | 0.079012 | 0.125926 | 0.069136 | 0.212346 | 0.212346 | 0.212346 | 0.212346 | 0 | 0 | 0 | 0 | 0.183028 | 601 | 17 | 75 | 35.352941 | 0.824847 | 0 | 0 | 0 | 1 | 0 | 0.089041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.384615 | 0 | 0.615385 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
4c0f174360fe29201e22d16e102aa2c61bad20f2 | 262 | py | Python | production/pygsl-0.9.5/testing/__init__.py | juhnowski/FishingRod | 457e7afb5cab424296dff95e1acf10ebf70d32a9 | [
"MIT"
] | 1 | 2019-07-29T02:53:51.000Z | 2019-07-29T02:53:51.000Z | production/pygsl-0.9.5/testing/__init__.py | juhnowski/FishingRod | 457e7afb5cab424296dff95e1acf10ebf70d32a9 | [
"MIT"
] | 1 | 2021-09-11T14:30:32.000Z | 2021-09-11T14:30:32.000Z | Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pygsl/testing/__init__.py | poojavade/Genomics_Docker | 829b5094bba18bbe03ae97daf925fee40a8476e8 | [
"Apache-2.0"
] | 2 | 2016-12-19T02:27:46.000Z | 2019-07-29T02:53:54.000Z | """
Here you find either new implemented modules or alternate implementations
of already modules. This directory is intended to have a second implementation
beside the main implementation to have a discussion which implementation to
favor on the long run.
"""
| 37.428571 | 78 | 0.80916 | 38 | 262 | 5.578947 | 0.789474 | 0.056604 | 0.066038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160305 | 262 | 6 | 79 | 43.666667 | 0.963636 | 0.965649 | 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 |
4c6a6e28161a83ca0b9ef2212d453c1bc1cfcfd6 | 232 | py | Python | weather/apps.py | chrisjen83/rfb_weather_obs | 8eab16358c5059655d208ef41aa38692fa21776f | [
"Apache-2.0"
] | 1 | 2020-12-05T05:23:26.000Z | 2020-12-05T05:23:26.000Z | weather/apps.py | chrisjen83/rfb_weather_obs | 8eab16358c5059655d208ef41aa38692fa21776f | [
"Apache-2.0"
] | null | null | null | weather/apps.py | chrisjen83/rfb_weather_obs | 8eab16358c5059655d208ef41aa38692fa21776f | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
import logging
logger = logging.getLogger(__name__)
class WeatherConfig(AppConfig):
name = 'weather'
def ready(self):
from forecastUpdater import updater
updater.start()
| 17.846154 | 43 | 0.715517 | 25 | 232 | 6.48 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211207 | 232 | 12 | 44 | 19.333333 | 0.885246 | 0 | 0 | 0 | 0 | 0 | 0.030172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.75 | 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 |
4c6e61959c8414eed50a9b983937c8b1f9cf4b26 | 3,711 | py | Python | flax/core/frozen_dict.py | juliuskunze/flax | 929395cf5c7391bca3e33ef6760ff9591401d19e | [
"Apache-2.0"
] | null | null | null | flax/core/frozen_dict.py | juliuskunze/flax | 929395cf5c7391bca3e33ef6760ff9591401d19e | [
"Apache-2.0"
] | null | null | null | flax/core/frozen_dict.py | juliuskunze/flax | 929395cf5c7391bca3e33ef6760ff9591401d19e | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 The Flax Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 25.770833 | 80 | 0.68041 | 535 | 3,711 | 4.547664 | 0.314019 | 0.00822 | 0.018085 | 0.021373 | 0.044801 | 0.016441 | 0 | 0 | 0 | 0 | 0 | 0.003061 | 0.207761 | 3,711 | 143 | 81 | 25.951049 | 0.82449 | 0.365131 | 0 | 0 | 0 | 0 | 0.036171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.253521 | false | 0 | 0.042254 | 0.126761 | 0.56338 | 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 |
4c752c3e0e33ba7c7da469ab66cb6adfa9bb958a | 669 | py | Python | python/johnstarich/interval.py | JohnStarich/dotfiles | eaa07b09aa02fc2fa2516cebdd3628b4daf506e4 | [
"Apache-2.0"
] | 3 | 2018-02-28T14:22:53.000Z | 2022-01-24T02:38:22.000Z | python/johnstarich/interval.py | JohnStarich/dotfiles | eaa07b09aa02fc2fa2516cebdd3628b4daf506e4 | [
"Apache-2.0"
] | null | null | null | python/johnstarich/interval.py | JohnStarich/dotfiles | eaa07b09aa02fc2fa2516cebdd3628b4daf506e4 | [
"Apache-2.0"
] | null | null | null | import time
class Interval(object):
def __init__(self, delay_time: int):
self.delay_time = delay_time
self.current_time = 0
@staticmethod
def now():
return time.gmtime().tm_sec
def should_run(self) -> bool:
if self.current_time == 0:
self.current_time = In... | 24.777778 | 67 | 0.606876 | 83 | 669 | 4.662651 | 0.337349 | 0.198966 | 0.271318 | 0.082687 | 0.286822 | 0.286822 | 0 | 0 | 0 | 0 | 0 | 0.004255 | 0.297459 | 669 | 26 | 68 | 25.730769 | 0.819149 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.05 | 0.05 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d5bb9bbb0fed4afc892e132a8963124e532f19f2 | 845 | py | Python | zenslackchat/zendesk_webhooks.py | uktrade/zenslackchat | 8071757e1ea20a433783c6a7c47f25b046692682 | [
"MIT"
] | 2 | 2020-12-30T07:46:12.000Z | 2022-02-01T16:37:34.000Z | zenslackchat/zendesk_webhooks.py | uktrade/zenslackchat | 8071757e1ea20a433783c6a7c47f25b046692682 | [
"MIT"
] | 7 | 2021-04-14T16:17:29.000Z | 2022-01-25T11:48:18.000Z | zenslackchat/zendesk_webhooks.py | uktrade/zenslackchat | 8071757e1ea20a433783c6a7c47f25b046692682 | [
"MIT"
] | 1 | 2021-06-06T09:46:47.000Z | 2021-06-06T09:46:47.000Z | from zenslackchat.zendesk_base_webhook import BaseWebHook
from zenslackchat.zendesk_email_to_slack import email_from_zendesk
from zenslackchat.zendesk_comments_to_slack import comments_from_zendesk
class CommentsWebHook(BaseWebHook):
"""Handle Zendesk Comment Events.
"""
def handle_event(self, event, slac... | 33.8 | 72 | 0.744379 | 103 | 845 | 5.854369 | 0.368932 | 0.091211 | 0.106136 | 0.15257 | 0.328358 | 0.328358 | 0.328358 | 0.195688 | 0.195688 | 0.195688 | 0 | 0 | 0.186982 | 845 | 24 | 73 | 35.208333 | 0.877729 | 0.280473 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
d5c5f4f5c79da67180264a12457b76158e4ccc4b | 4,814 | py | Python | tests/test_simple.py | cprogrammer1994/miniglm | 696764ff200dd106dd533264ff45a060d5f7b230 | [
"MIT"
] | 4 | 2017-11-03T14:48:52.000Z | 2019-03-07T03:48:11.000Z | tests/test_simple.py | cprogrammer1994/miniglm | 696764ff200dd106dd533264ff45a060d5f7b230 | [
"MIT"
] | 2 | 2017-11-27T15:40:01.000Z | 2021-01-30T08:40:51.000Z | tests/test_simple.py | cprogrammer1994/miniglm | 696764ff200dd106dd533264ff45a060d5f7b230 | [
"MIT"
] | 3 | 2017-11-27T15:25:07.000Z | 2021-03-02T10:31:30.000Z | import struct
import numpy as np
import pytest
import miniglm
def test_add_vec_vec():
res = miniglm.add((1.0, 2.0, 3.0), (1.5, 1.8, 1.2))
np.testing.assert_almost_equal(res, (2.5, 3.8, 4.2))
assert type(res) is tuple
def test_add_vec_scalar():
res = miniglm.add((1.0, 2.0, 3.0), 0.5)
np.testing... | 28.826347 | 91 | 0.623598 | 958 | 4,814 | 3.007307 | 0.086639 | 0.022215 | 0.156196 | 0.218674 | 0.705311 | 0.687608 | 0.636237 | 0.542867 | 0.454703 | 0.334606 | 0 | 0.130116 | 0.177815 | 4,814 | 166 | 92 | 29 | 0.597777 | 0 | 0 | 0.169643 | 0 | 0 | 0.004985 | 0 | 0 | 0 | 0 | 0 | 0.419643 | 1 | 0.232143 | false | 0 | 0.035714 | 0 | 0.267857 | 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 |
d5d20f7a81be3ee7ffae45e074584da66ec78259 | 210 | py | Python | multistream_select/__init__.py | Projjol/py-multistream-select | 624becaaeefa0a76d6841e27fbf7dea3240d2fe0 | [
"MIT"
] | null | null | null | multistream_select/__init__.py | Projjol/py-multistream-select | 624becaaeefa0a76d6841e27fbf7dea3240d2fe0 | [
"MIT"
] | null | null | null | multistream_select/__init__.py | Projjol/py-multistream-select | 624becaaeefa0a76d6841e27fbf7dea3240d2fe0 | [
"MIT"
] | null | null | null | __version = '0.1.0'
__all__ = ['MultiStreamSelect', 'hexify']
__author__ = 'Natnael Getahun (connect@ngetahun.me)'
__name__ = 'multistream'
from .multistream import MultiStreamSelect
from .utils import hexify
| 26.25 | 52 | 0.766667 | 23 | 210 | 6.391304 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.114286 | 210 | 7 | 53 | 30 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0.361905 | 0.1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d5eae8227c1380d3fce1267b4a1949ca968db82b | 1,041 | py | Python | Utils.py | MartinEngen/NaiveBayesianClassifier | a28813708a4d2adcdcd629e6d4d8b4f438a9c799 | [
"MIT"
] | null | null | null | Utils.py | MartinEngen/NaiveBayesianClassifier | a28813708a4d2adcdcd629e6d4d8b4f438a9c799 | [
"MIT"
] | null | null | null | Utils.py | MartinEngen/NaiveBayesianClassifier | a28813708a4d2adcdcd629e6d4d8b4f438a9c799 | [
"MIT"
] | null | null | null | import os
import re
def get_subfolder_paths(folder_relative_path: str) -> list:
"""
Gets all subfolders of a given path
:param folder_relative_path: Relative path of folder to find subfolders of
:return: list of relative paths to any subfolders
"""
return [f.path for f in os.scandir(folder_rel... | 30.617647 | 83 | 0.659942 | 154 | 1,041 | 4.246753 | 0.409091 | 0.045872 | 0.067278 | 0.061162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002415 | 0.204611 | 1,041 | 33 | 84 | 31.545455 | 0.78744 | 0.178674 | 0 | 0 | 0 | 0 | 0.031288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.105263 | 0.105263 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9104cf33f9cb7c9a9e220cded851c4d2434c8d05 | 49,016 | py | Python | services/object_storage/tests/integ/test_object_storage_bulk_operations.py | honzajavorek/oci-cli | 6ea058afba323c6b3b70e98212ffaebb0d31985e | [
"Apache-2.0"
] | null | null | null | services/object_storage/tests/integ/test_object_storage_bulk_operations.py | honzajavorek/oci-cli | 6ea058afba323c6b3b70e98212ffaebb0d31985e | [
"Apache-2.0"
] | null | null | null | services/object_storage/tests/integ/test_object_storage_bulk_operations.py | honzajavorek/oci-cli | 6ea058afba323c6b3b70e98212ffaebb0d31985e | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
import filecmp
import json
import pytest
import oci
import services.object_storage.src.oci_cli_object_storage as oci_cli_object_storage
import os
import random
import shutil
import six
import string
from tests import util
fr... | 50.118609 | 275 | 0.718643 | 6,536 | 49,016 | 5.057222 | 0.071756 | 0.033884 | 0.017245 | 0.036879 | 0.783506 | 0.754281 | 0.722605 | 0.696587 | 0.667484 | 0.647849 | 0 | 0.004637 | 0.159723 | 49,016 | 977 | 276 | 50.169908 | 0.797897 | 0.091317 | 0 | 0.538881 | 0 | 0 | 0.181217 | 0.032609 | 0 | 0 | 0 | 0 | 0.177353 | 1 | 0.039563 | false | 0 | 0.017735 | 0.001364 | 0.066849 | 0.001364 | 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 |
9111781e785cdbf0e4af0d7fe8d43c637a7447e2 | 126 | py | Python | conans/conan.py | laundry-96/conan | fd938f7220ca042d94c42ec5eb607ee69c6785a3 | [
"MIT"
] | 2 | 2019-01-09T10:01:29.000Z | 2019-01-09T10:01:31.000Z | conans/conan.py | laundry-96/conan | fd938f7220ca042d94c42ec5eb607ee69c6785a3 | [
"MIT"
] | 6 | 2016-03-08T22:06:45.000Z | 2020-06-02T15:22:19.000Z | conans/conan.py | laundry-96/conan | fd938f7220ca042d94c42ec5eb607ee69c6785a3 | [
"MIT"
] | 2 | 2019-08-07T18:15:16.000Z | 2021-08-04T12:33:05.000Z | import sys
from conans.client.command import main
def run():
main(sys.argv[1:])
if __name__ == '__main__':
run()
| 10.5 | 38 | 0.642857 | 18 | 126 | 4.055556 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.214286 | 126 | 11 | 39 | 11.454545 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0.063492 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.333333 | 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 |
91150271775e1bcf188908a5352023d285ea5e40 | 363 | py | Python | src/python_package/__init__.py | microsoft/ai-python-package | 770f5167ebc32b5410739f04c5730e68f84785c9 | [
"MIT"
] | 3 | 2021-12-11T17:02:56.000Z | 2022-02-23T19:45:35.000Z | src/python_package/__init__.py | microsoft/ai-python-package | 770f5167ebc32b5410739f04c5730e68f84785c9 | [
"MIT"
] | 5 | 2022-03-24T13:21:21.000Z | 2022-03-31T13:21:39.000Z | src/python_package/__init__.py | microsoft/python-package-template | 770f5167ebc32b5410739f04c5730e68f84785c9 | [
"MIT"
] | null | null | null | # -------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See LICENSE in project root for information.
# -------------------------------------------------------------
"""Python Package Template"""
from __future__... | 40.333333 | 80 | 0.484848 | 30 | 363 | 5.6 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009404 | 0.121212 | 363 | 8 | 81 | 45.375 | 0.517241 | 0.801653 | 0 | 0 | 0 | 0 | 0.079365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9120f5bc8f814b4692efc7406b81c0fe8103d83e | 7,225 | py | Python | samples/barebone/settings.py | kuasha/peregrine | b3dd92146d26fe9e4ea589868431b590324b47d1 | [
"MIT"
] | 1 | 2018-10-12T15:12:15.000Z | 2018-10-12T15:12:15.000Z | samples/barebone/settings.py | kuasha/peregrine | b3dd92146d26fe9e4ea589868431b590324b47d1 | [
"MIT"
] | null | null | null | samples/barebone/settings.py | kuasha/peregrine | b3dd92146d26fe9e4ea589868431b590324b47d1 | [
"MIT"
] | null | null | null | import os
import logging
from collections import namedtuple
from Crypto.PublicKey import RSA
from tornado import gen
from tornado import concurrent
from cosmos.rbac.object import *
from cosmos.service import OBSERVER_PROCESSOR
DEBUG = True
DB_HOST = "127.0.0.1"
DB_NAME = "cosmos"
DB_PORT = 27017
DB_USER_NAME = None
... | 47.847682 | 1,732 | 0.800969 | 809 | 7,225 | 6.87021 | 0.357231 | 0.012594 | 0.010795 | 0.010076 | 0.114969 | 0.098777 | 0.074847 | 0.055416 | 0.055416 | 0.038143 | 0 | 0.060485 | 0.098408 | 7,225 | 150 | 1,733 | 48.166667 | 0.792754 | 0.050104 | 0 | 0.098039 | 0 | 0.019608 | 0.447745 | 0.365478 | 0 | 0 | 0 | 0.013333 | 0.019608 | 1 | 0.009804 | false | 0.068627 | 0.098039 | 0 | 0.147059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
912b4d4f0a7c8620ff9eef12211953cd7f872472 | 1,633 | py | Python | oxe-api/test/resource/company/test_get_company_taxonomy.py | CybersecurityLuxembourg/openxeco | 8d4e5578bde6a07f5d6d569b16b4de224abf7bf0 | [
"BSD-2-Clause"
] | null | null | null | oxe-api/test/resource/company/test_get_company_taxonomy.py | CybersecurityLuxembourg/openxeco | 8d4e5578bde6a07f5d6d569b16b4de224abf7bf0 | [
"BSD-2-Clause"
] | null | null | null | oxe-api/test/resource/company/test_get_company_taxonomy.py | CybersecurityLuxembourg/openxeco | 8d4e5578bde6a07f5d6d569b16b4de224abf7bf0 | [
"BSD-2-Clause"
] | null | null | null | from test.BaseCase import BaseCase
class TestGetCompanyTaxonomy(BaseCase):
@BaseCase.login
def test_ok(self, token):
self.db.insert({"id": 1, "name": "My Company"}, self.db.tables["Company"])
self.db.insert({"id": 2, "name": "My Company 2"}, self.db.tables["Company"])
self.db.insert({... | 49.484848 | 102 | 0.62278 | 195 | 1,633 | 5.128205 | 0.215385 | 0.12 | 0.12 | 0.07 | 0.88 | 0.813 | 0.766 | 0.45 | 0.2 | 0.2 | 0 | 0.021309 | 0.195346 | 1,633 | 32 | 103 | 51.03125 | 0.739726 | 0 | 0 | 0.333333 | 0 | 0 | 0.238212 | 0.037967 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.083333 | false | 0 | 0.041667 | 0 | 0.166667 | 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 |
9130c59838ca9f05494c451b3ac65479a741bec6 | 265 | py | Python | pyctcdecode/__init__.py | kensho-technologies/pyctcdecode | c33f94bce283ea9af79d30e2b815e3bf34a137c9 | [
"Apache-2.0"
] | 203 | 2021-06-08T22:49:56.000Z | 2022-03-31T11:55:21.000Z | pyctcdecode/__init__.py | kensho-technologies/pyctcdecode | c33f94bce283ea9af79d30e2b815e3bf34a137c9 | [
"Apache-2.0"
] | 40 | 2021-06-11T20:58:07.000Z | 2022-03-23T10:58:27.000Z | pyctcdecode/__init__.py | kensho-technologies/pyctcdecode | c33f94bce283ea9af79d30e2b815e3bf34a137c9 | [
"Apache-2.0"
] | 39 | 2021-06-09T21:03:35.000Z | 2022-03-26T13:14:23.000Z | # Copyright 2021-present Kensho Technologies, LLC.
from .alphabet import Alphabet # noqa
from .decoder import BeamSearchDecoderCTC, build_ctcdecoder # noqa
from .language_model import LanguageModel # noqa
__package_name__ = "pyctcdecode"
__version__ = "0.3.0"
| 29.444444 | 67 | 0.792453 | 31 | 265 | 6.419355 | 0.741935 | 0.080402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030568 | 0.135849 | 265 | 8 | 68 | 33.125 | 0.838428 | 0.237736 | 0 | 0 | 0 | 0 | 0.081218 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 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 |
9130dea9e896e245175b22a313c12b30eff43fdf | 137 | py | Python | wumpus/start_server.py | marky1991/Legend-of-Wumpus | b53f4a520cea274ddb4c40c6ab4f42a68008896f | [
"MIT"
] | null | null | null | wumpus/start_server.py | marky1991/Legend-of-Wumpus | b53f4a520cea274ddb4c40c6ab4f42a68008896f | [
"MIT"
] | null | null | null | wumpus/start_server.py | marky1991/Legend-of-Wumpus | b53f4a520cea274ddb4c40c6ab4f42a68008896f | [
"MIT"
] | null | null | null | from wumpus.server import Server
from circuits import Debugger
s = Server("0.0.0.0", 50551) + Debugger()
s.run()
import sys
sys.exit(1)
| 17.125 | 41 | 0.722628 | 24 | 137 | 4.125 | 0.541667 | 0.060606 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084746 | 0.138686 | 137 | 7 | 42 | 19.571429 | 0.754237 | 0 | 0 | 0 | 0 | 0 | 0.051095 | 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 |
913758ab43b30fce640a96f90c8472af68facfb1 | 117 | py | Python | mmdet/core/ufp/__init__.py | PuAnysh/UFPMP-Det | 6809b4f8de3aa1d013a3f86114bc3e8496d896a9 | [
"Apache-2.0"
] | 9 | 2022-01-18T14:42:39.000Z | 2022-02-14T02:57:02.000Z | mmdet/core/ufp/__init__.py | PuAnysh/UFPMP-Det | 6809b4f8de3aa1d013a3f86114bc3e8496d896a9 | [
"Apache-2.0"
] | 1 | 2022-03-28T11:51:49.000Z | 2022-03-31T14:24:02.000Z | mmdet/core/ufp/__init__.py | PuAnysh/UFPMP-Det | 6809b4f8de3aa1d013a3f86114bc3e8496d896a9 | [
"Apache-2.0"
] | null | null | null | from .spp import *
from .unified_foreground_packing import *
__all__ = [
'phsppog', 'UnifiedForegroundPacking'
]
| 16.714286 | 41 | 0.74359 | 11 | 117 | 7.363636 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 117 | 6 | 42 | 19.5 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.264957 | 0.205128 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
913c83f4f9cee2569debbb5a5301094fbb4ed18e | 1,823 | py | Python | ens/exceptions.py | pjryan93/web3.py | e066452a7b0e78d6cb8a9462532d169de901ef99 | [
"MIT"
] | 326 | 2016-04-29T21:51:06.000Z | 2022-03-31T03:20:54.000Z | ens/exceptions.py | pjryan93/web3.py | e066452a7b0e78d6cb8a9462532d169de901ef99 | [
"MIT"
] | 283 | 2016-04-15T16:41:31.000Z | 2017-11-28T16:41:36.000Z | ens/exceptions.py | pjryan93/web3.py | e066452a7b0e78d6cb8a9462532d169de901ef99 | [
"MIT"
] | 146 | 2016-04-14T16:27:54.000Z | 2021-10-03T13:31:07.000Z | import idna
class AddressMismatch(ValueError):
'''
In order to set up reverse resolution correctly, the ENS name should first
point to the address. This exception is raised if the name does
not currently point to the address.
'''
pass
class InvalidName(idna.IDNAError):
'''
This excep... | 22.7875 | 81 | 0.673066 | 259 | 1,823 | 4.72973 | 0.490347 | 0.058776 | 0.044898 | 0.068571 | 0.146939 | 0.042449 | 0 | 0 | 0 | 0 | 0 | 0.004412 | 0.253977 | 1,823 | 79 | 82 | 23.075949 | 0.896324 | 0.646736 | 0 | 0.473684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.473684 | 0.052632 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
9143ca3c30c3da5376a215dd32db4d9aec05c6ba | 282 | py | Python | config.py | mhmddpkts/Get-Turkish-Words-with-Web-Scraping | 6e344640f6dc512f03a9b59522876ce7b6339a86 | [
"MIT"
] | null | null | null | config.py | mhmddpkts/Get-Turkish-Words-with-Web-Scraping | 6e344640f6dc512f03a9b59522876ce7b6339a86 | [
"MIT"
] | null | null | null | config.py | mhmddpkts/Get-Turkish-Words-with-Web-Scraping | 6e344640f6dc512f03a9b59522876ce7b6339a86 | [
"MIT"
] | null | null | null |
root_URL = "https://tr.wiktionary.org/wiki/Vikis%C3%B6zl%C3%BCk:S%C3%B6zc%C3%BCk_listesi_"
filepath = "words.csv"
#letters=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O",
# "P","R","S","T","U","V","Y","Z"] ##İ,Ç,Ö,Ş,Ü harfleri not work correctly
letters=["C"] | 35.25 | 90 | 0.539007 | 57 | 282 | 2.631579 | 0.859649 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023166 | 0.08156 | 282 | 8 | 91 | 35.25 | 0.552124 | 0.517731 | 0 | 0 | 0 | 0.333333 | 0.659091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e66eceebc9bb0cd90db3c066088340ee6f011e6e | 545 | py | Python | lang/py/cookbook/v2/source/cb2_20_9_exm_1.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_20_9_exm_1.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_20_9_exm_1.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | class Skidoo(object):
''' a mapping which claims to contain all keys, each with a value
of 23; item setting and deletion are no-ops; you can also call
an instance with arbitrary positional args, result is 23. '''
__metaclass__ = MetaInterfaceChecker
__implements__ = IMinimalMapping, ICallabl... | 41.923077 | 70 | 0.702752 | 73 | 545 | 4.863014 | 0.684932 | 0.078873 | 0.073239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018779 | 0.218349 | 545 | 12 | 71 | 45.416667 | 0.814554 | 0.333945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.555556 | false | 0.222222 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
e681d9f0d0bbcd56a55111fcb8b7b0c2f584018e | 142 | py | Python | simulator/cc.py | mcfx/trivm | 5b77ea157c562cfbfe87f7e7d256fb9702f8ceec | [
"MIT"
] | 6 | 2022-02-21T15:49:52.000Z | 2022-02-23T07:16:02.000Z | simulator/cc.py | mcfx/trivm | 5b77ea157c562cfbfe87f7e7d256fb9702f8ceec | [
"MIT"
] | null | null | null | simulator/cc.py | mcfx/trivm | 5b77ea157c562cfbfe87f7e7d256fb9702f8ceec | [
"MIT"
] | null | null | null | import os, sys
fn = sys.argv[1]
if os.system('python compile.py %s __tmp.S' % fn) == 0:
os.system('python asm.py __tmp.S %s' % fn[:-2])
| 20.285714 | 55 | 0.598592 | 28 | 142 | 2.892857 | 0.571429 | 0.197531 | 0.345679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026087 | 0.190141 | 142 | 6 | 56 | 23.666667 | 0.678261 | 0 | 0 | 0 | 0 | 0 | 0.366197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e6a1e01053fb282362b9b417d81cb0cf76a2bbed | 21,947 | py | Python | tryhackme/http.py | GnarLito/tryhackme.py | 20b4dd6a15c13c57e7a7be7f59913b937a992e4b | [
"MIT"
] | null | null | null | tryhackme/http.py | GnarLito/tryhackme.py | 20b4dd6a15c13c57e7a7be7f59913b937a992e4b | [
"MIT"
] | 16 | 2021-11-22T07:51:32.000Z | 2021-12-14T00:07:48.000Z | tryhackme/http.py | GnarLito/tryhackme.py | 20b4dd6a15c13c57e7a7be7f59913b937a992e4b | [
"MIT"
] | null | null | null | import re
import sys
from urllib.parse import quote as _uriquote
import requests
from . import __version__, errors, utils
from .converters import _county_types, _leaderboard_types, _vpn_types, _not_none
from . import checks
from .cog import request_cog
GET='get'
POST='post'
class HTTPClient:
__CSRF_token_regex... | 48.879733 | 196 | 0.645008 | 2,587 | 21,947 | 5.24971 | 0.103981 | 0.045063 | 0.092777 | 0.097195 | 0.581769 | 0.477947 | 0.388116 | 0.290185 | 0.191076 | 0.113688 | 0 | 0.002631 | 0.220668 | 21,947 | 448 | 197 | 48.988839 | 0.791394 | 0.029617 | 0 | 0.163522 | 0 | 0 | 0.091611 | 0.049546 | 0 | 0 | 0 | 0.002232 | 0 | 1 | 0.399371 | false | 0 | 0.025157 | 0.377358 | 0.657233 | 0.003145 | 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 |
e6b9337bdda045910328d8c9cc38338bc1311810 | 406 | py | Python | kairon/shared/sso/base.py | rit1200/kairon | 674a491f6deeae4800825ca93e0726e4fb6e0866 | [
"Apache-2.0"
] | 9 | 2020-04-22T12:49:29.000Z | 2020-06-13T22:23:20.000Z | kairon/shared/sso/base.py | rit1200/kairon | 674a491f6deeae4800825ca93e0726e4fb6e0866 | [
"Apache-2.0"
] | 18 | 2020-04-20T12:39:20.000Z | 2020-05-21T05:10:51.000Z | kairon/shared/sso/base.py | rit1200/kairon | 674a491f6deeae4800825ca93e0726e4fb6e0866 | [
"Apache-2.0"
] | 13 | 2020-04-21T12:12:40.000Z | 2020-05-13T07:27:44.000Z | class BaseSSO:
async def get_redirect_url(self):
"""Returns redirect url for facebook."""
raise NotImplementedError("Provider not implemented")
async def verify(self, request):
"""
Fetches user details using code received in the request.
:param request: starlette req... | 25.375 | 64 | 0.657635 | 42 | 406 | 6.309524 | 0.690476 | 0.060377 | 0.241509 | 0.264151 | 0.34717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263547 | 406 | 15 | 65 | 27.066667 | 0.886288 | 0 | 0 | 0.4 | 0 | 0 | 0.20339 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e6c60d4fe212527f51e4cf099e6d8185c934aa4e | 164 | py | Python | tests/testsoma.py | gtmadureira/Python | 38de6c56fec1d22662f30c1ff4d4f4f411678484 | [
"MIT"
] | 4 | 2020-04-10T05:48:46.000Z | 2021-07-14T10:56:19.000Z | tests/testsoma.py | gtmadureira/Python | 38de6c56fec1d22662f30c1ff4d4f4f411678484 | [
"MIT"
] | 1 | 2020-05-09T21:00:52.000Z | 2020-05-09T21:00:52.000Z | tests/testsoma.py | gtmadureira/Python | 38de6c56fec1d22662f30c1ff4d4f4f411678484 | [
"MIT"
] | null | null | null | import unittest
from hf_src.main import soma
class TestSoma(unittest.TestCase):
def test_retorno_soma_15_30(self):
self.assertEqual(soma(15, 30), 45)
| 20.5 | 42 | 0.743902 | 25 | 164 | 4.68 | 0.72 | 0.102564 | 0.136752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072993 | 0.164634 | 164 | 7 | 43 | 23.428571 | 0.781022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e6dfe1b17aaabced195ba909adb862f6d72a3bd2 | 214 | py | Python | src/main.py | mtnmunuklu/SigmaToExcel | 7d11fda19c0075122928ff5f1dbaab7775d30fe9 | [
"MIT"
] | 10 | 2021-05-26T11:24:27.000Z | 2022-01-14T16:42:25.000Z | src/main.py | mtnmunuklu/SigmaToExcel | 7d11fda19c0075122928ff5f1dbaab7775d30fe9 | [
"MIT"
] | null | null | null | src/main.py | mtnmunuklu/SigmaToExcel | 7d11fda19c0075122928ff5f1dbaab7775d30fe9 | [
"MIT"
] | null | null | null | import sys
sys.path.append("../")
from src.app.sigma import SigmaConverter
if __name__ == "__main__":
sigmaconverter = SigmaConverter()
sigmaconverter.read_from_file()
sigmaconverter.write_to_excel()
| 21.4 | 40 | 0.742991 | 24 | 214 | 6.125 | 0.708333 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140187 | 214 | 9 | 41 | 23.777778 | 0.798913 | 0 | 0 | 0 | 0 | 0 | 0.051402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
e6f5ecde56dec14d70d3fec0b36dc822d497cba7 | 2,230 | py | Python | nervous/utility/config.py | csxeba/nervous | f7aeb9b2ff875835c346c607722fab517ef6df61 | [
"MIT"
] | 1 | 2018-09-24T11:29:19.000Z | 2018-09-24T11:29:19.000Z | nervous/utility/config.py | csxeba/nervous | f7aeb9b2ff875835c346c607722fab517ef6df61 | [
"MIT"
] | null | null | null | nervous/utility/config.py | csxeba/nervous | f7aeb9b2ff875835c346c607722fab517ef6df61 | [
"MIT"
] | null | null | null | import os
class StressedNetConfig:
def __init__(self,
synaptic_environmental_constraint=0.8,
group_environmental_constraint=0.6,
stress_factor=0.8,
save_folder=os.path.expanduser("~/.nervous/models/")):
self._synaptic_environmental_const... | 33.283582 | 98 | 0.673991 | 244 | 2,230 | 5.790984 | 0.180328 | 0.325548 | 0.219391 | 0.12385 | 0.636943 | 0.334749 | 0.334749 | 0.084218 | 0.084218 | 0.069356 | 0 | 0.010708 | 0.246188 | 2,230 | 66 | 99 | 33.787879 | 0.829863 | 0 | 0 | 0.169811 | 0 | 0 | 0.091031 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207547 | false | 0 | 0.018868 | 0.075472 | 0.339623 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fc084ddbb4a5b92a2c3c4c62cd1d09d582bd5892 | 689 | py | Python | skynet-agent/plugins/plugin_api.py | skynetera/skynet | 24a50f2a2eb95b777802934a2b66f162bf4b2d53 | [
"Apache-2.0"
] | 3 | 2016-09-12T08:54:46.000Z | 2016-09-18T07:54:10.000Z | skynet-agent/plugins/plugin_api.py | skynetera/skynet | 24a50f2a2eb95b777802934a2b66f162bf4b2d53 | [
"Apache-2.0"
] | null | null | null | skynet-agent/plugins/plugin_api.py | skynetera/skynet | 24a50f2a2eb95b777802934a2b66f162bf4b2d53 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
__author__ = 'whoami'
"""
@version: 1.0
@author: whoami
@license: Apache Licence 2.0
@contact: skutil@gmail.com
@site: http://www.itweet.cn
@software: PyCharm Community Edition
@file: plugin_api.py
@time: 2015-11-28 下午1:52
"""
from linux import cpu,disk,iostats,loadavg,memory,net... | 17.225 | 63 | 0.71553 | 101 | 689 | 4.693069 | 0.564356 | 0.088608 | 0.164557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027257 | 0.148041 | 689 | 39 | 64 | 17.666667 | 0.780239 | 0.049347 | 0 | 0 | 0 | 0 | 0.013423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4375 | false | 0 | 0.0625 | 0.4375 | 0.9375 | 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 |
fc26055543d8ffb1b618b1328cc4ad7000d27faf | 25,605 | py | Python | S4/S4 Library/generated/protocolbuffers/Localization_pb2.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | 1 | 2021-05-20T19:33:37.000Z | 2021-05-20T19:33:37.000Z | S4/S4 Library/generated/protocolbuffers/Localization_pb2.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | S4/S4 Library/generated/protocolbuffers/Localization_pb2.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | import protocolbuffers.Consts_pb2 as Consts_pb2
from google.protobuf import descriptor, message, reflection
DESCRIPTOR = descriptor.FileDescriptor(name = 'Localization.proto', package = 'EA.Sims4.Network',
serialized_pb = '\n\x12Localization.proto\x12\x10EA.Sims4.Network\x1a\x0cConsts.proto"\x85\n\n\x14Loc... | 218.846154 | 2,866 | 0.754189 | 3,485 | 25,605 | 5.313056 | 0.074605 | 0.070426 | 0.048391 | 0.044556 | 0.764312 | 0.730719 | 0.669097 | 0.588788 | 0.556384 | 0.542558 | 0 | 0.051333 | 0.119742 | 25,605 | 116 | 2,867 | 220.732759 | 0.770132 | 0 | 0 | 0 | 0 | 0.009174 | 0.252099 | 0.21984 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018349 | 0 | 0.100917 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fc2e16e55954bef33913f1502bf7278f77489ed4 | 3,504 | py | Python | release/stubs.min/Autodesk/Revit/DB/__init___parts/GeomCombinationSet.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Autodesk/Revit/DB/__init___parts/GeomCombinationSet.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Autodesk/Revit/DB/__init___parts/GeomCombinationSet.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class GeomCombinationSet(APIObject, IDisposable, IEnumerable):
"""
A set that contains GeomCombination objects.
GeomCombinationSet()
"""
def Clear(self):
"""
Clear(self: GeomCombinationSet)
Removes every item GeomCombination the set,rendering it empty.
"""
pass
... | 22.901961 | 221 | 0.62871 | 364 | 3,504 | 5.865385 | 0.255495 | 0.044965 | 0.044965 | 0.053396 | 0.381265 | 0.290398 | 0.254801 | 0.203279 | 0.185948 | 0.185948 | 0 | 0.000395 | 0.278253 | 3,504 | 152 | 222 | 23.052632 | 0.843812 | 0.556221 | 0 | 0.451613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.451613 | false | 0.451613 | 0 | 0 | 0.548387 | 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 |
fc2e789c677ad0b86e4fb3d988a64d970401e0fa | 401 | py | Python | epio_commands/management/commands/epio_flush_redis.py | idan/pypostbin | 61dd1c0960e8fb6e4460a5623971cbbc78a55ee7 | [
"BSD-3-Clause"
] | 2 | 2015-11-05T08:51:42.000Z | 2016-03-01T22:13:25.000Z | epio_commands/management/commands/epio_flush_redis.py | idan/pypostbin | 61dd1c0960e8fb6e4460a5623971cbbc78a55ee7 | [
"BSD-3-Clause"
] | null | null | null | epio_commands/management/commands/epio_flush_redis.py | idan/pypostbin | 61dd1c0960e8fb6e4460a5623971cbbc78a55ee7 | [
"BSD-3-Clause"
] | null | null | null | import redis
from bundle_config import config
from django.core.management.base import NoArgsCommand
class Command(NoArgsCommand):
help = 'Flushes all keys in redis.'
def handle_noargs(self, **options):
r = redis.Redis(host=config['redis']['host'], port=int(config['redis']['port']), password=config['r... | 30.846154 | 126 | 0.688279 | 51 | 401 | 5.372549 | 0.588235 | 0.120438 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169576 | 401 | 12 | 127 | 33.416667 | 0.822823 | 0 | 0 | 0 | 0 | 0 | 0.199501 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.111111 | 0.333333 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
fc3c853df2b1d6ee609b09518a9278f9e15018c1 | 114 | py | Python | mlbase/lazy.py | n-kats/mlbase | 7d69f259dcaf9608a921523083458fa6d0d6914b | [
"MIT"
] | null | null | null | mlbase/lazy.py | n-kats/mlbase | 7d69f259dcaf9608a921523083458fa6d0d6914b | [
"MIT"
] | 2 | 2018-09-23T18:39:01.000Z | 2018-09-24T18:02:21.000Z | mlbase/lazy.py | n-kats/mlbase | 7d69f259dcaf9608a921523083458fa6d0d6914b | [
"MIT"
] | null | null | null | from mlbase.utils.misc import lazy
tensorflow = lazy("tensorflow")
numpy = lazy("numpy")
gensim = lazy("gensim")
| 19 | 34 | 0.72807 | 15 | 114 | 5.533333 | 0.6 | 0.337349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122807 | 114 | 5 | 35 | 22.8 | 0.83 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fc4af8f087c68aec19d9b595aee4bd3178dfeac2 | 9,119 | py | Python | tutorials/create_table/tests.py | MeGustas-5427/SQL_Tutorials | 627372c2d5d8656d72645830c9a1fae1df278fc7 | [
"Apache-2.0"
] | 13 | 2020-11-05T04:22:51.000Z | 2022-02-27T08:44:50.000Z | tutorials/create_table/tests.py | MeGustas-5427/SQL_Tutorials | 627372c2d5d8656d72645830c9a1fae1df278fc7 | [
"Apache-2.0"
] | null | null | null | tutorials/create_table/tests.py | MeGustas-5427/SQL_Tutorials | 627372c2d5d8656d72645830c9a1fae1df278fc7 | [
"Apache-2.0"
] | 2 | 2020-11-10T10:01:20.000Z | 2021-04-07T02:33:29.000Z | #!/usr/bin/python3
# -*- coding:utf-8 -*-
# __author__ = '__MeGustas__'
from django.test import TestCase
from django.db import connection
from tutorials.create_table.models import *
# Create your tests here.
class TestHealthFile(TestCase):
def setUp(self):
cursor = connection.cursor()
# Popul... | 67.051471 | 154 | 0.665205 | 1,263 | 9,119 | 4.619161 | 0.196358 | 0.095818 | 0.140041 | 0.169523 | 0.70312 | 0.687693 | 0.67398 | 0.67398 | 0.67398 | 0.654782 | 0 | 0.080113 | 0.188288 | 9,119 | 136 | 155 | 67.051471 | 0.708052 | 0.027196 | 0 | 0.440367 | 0 | 0.220183 | 0.17197 | 0.004739 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027523 | false | 0 | 0.027523 | 0 | 0.06422 | 0.045872 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fc515ce56fd34f4315010ae886d6091f5950eab2 | 610 | py | Python | two_qubit_simulator/circuits.py | L-McCormack/two-qubit-simulator | d7115f0630c9931724aa660dba4b89a50db4e2e0 | [
"MIT"
] | null | null | null | two_qubit_simulator/circuits.py | L-McCormack/two-qubit-simulator | d7115f0630c9931724aa660dba4b89a50db4e2e0 | [
"MIT"
] | null | null | null | two_qubit_simulator/circuits.py | L-McCormack/two-qubit-simulator | d7115f0630c9931724aa660dba4b89a50db4e2e0 | [
"MIT"
] | null | null | null | """
Contains the QuantumCircuit class
boom.
"""
class QuantumCircuit(object): # pylint: disable=useless-object-inheritance
""" Implements a quantum circuit.
- - - WRITE DOCUMENTATION HERE - - -
"""
def __init__(self):
""" Initialise a QuantumCircuit object """
pass
def add_ga... | 23.461538 | 74 | 0.598361 | 67 | 610 | 5.298507 | 0.447761 | 0.059155 | 0.084507 | 0.101408 | 0.292958 | 0.292958 | 0.292958 | 0.292958 | 0.292958 | 0.292958 | 0 | 0 | 0.291803 | 610 | 25 | 75 | 24.4 | 0.821759 | 0.498361 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0.444444 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
fc5ae40661fc1b76d02d932d2ea414f59839b072 | 319 | py | Python | packages/micropython-official/v1.10/esp32/stubs/ubinascii.py | TheVinhLuong102/micropy-stubs | 55ff1773008f7c4dfc3d70a403986486226eb6b3 | [
"MIT"
] | 18 | 2019-07-11T13:31:09.000Z | 2022-01-27T06:38:40.000Z | packages/micropython-official/v1.10/esp32/stubs/ubinascii.py | TheVinhLuong102/micropy-stubs | 55ff1773008f7c4dfc3d70a403986486226eb6b3 | [
"MIT"
] | 9 | 2019-09-01T21:44:49.000Z | 2022-02-04T20:55:08.000Z | packages/micropython-official/v1.10/esp32/stubs/ubinascii.py | TheVinhLuong102/micropy-stubs | 55ff1773008f7c4dfc3d70a403986486226eb6b3 | [
"MIT"
] | 6 | 2019-10-08T05:31:21.000Z | 2021-04-22T10:21:01.000Z | """
Module: 'ubinascii' on esp32 1.10.0
"""
# MCU: (sysname='esp32', nodename='esp32', release='1.10.0', version='v1.10 on 2019-01-25', machine='ESP32 module with ESP32')
# Stubber: 1.2.0
def a2b_base64():
pass
def b2a_base64():
pass
def crc32():
pass
def hexlify():
pass
def unhexlify():
pass
| 15.190476 | 126 | 0.623824 | 49 | 319 | 4.020408 | 0.571429 | 0.142132 | 0.040609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155642 | 0.194357 | 319 | 20 | 127 | 15.95 | 0.610895 | 0.551724 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
fc75b91ed00a53eb686038762f01dc7958ac5d5b | 172 | py | Python | molecule_ignite/test/unit/test_driver.py | ragingpastry/molecule-ignite | aaf005cabba9a8c933191458cf8553da9bac581d | [
"MIT"
] | 17 | 2020-02-19T08:16:49.000Z | 2022-02-05T08:16:42.000Z | molecule_ignite/test/unit/test_driver.py | ragingpastry/molecule-ignite | aaf005cabba9a8c933191458cf8553da9bac581d | [
"MIT"
] | 15 | 2020-06-27T10:16:44.000Z | 2022-01-04T10:37:54.000Z | molecule_ignite/test/unit/test_driver.py | ragingpastry/molecule-ignite | aaf005cabba9a8c933191458cf8553da9bac581d | [
"MIT"
] | 11 | 2020-02-18T16:24:29.000Z | 2022-03-28T11:44:51.000Z | from molecule import api
def test_driver_is_detected():
driver_name = __name__.split(".")[0].split("_")[-1]
assert driver_name in [str(d) for d in api.drivers()]
| 24.571429 | 57 | 0.686047 | 27 | 172 | 4 | 0.703704 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013793 | 0.156977 | 172 | 6 | 58 | 28.666667 | 0.731034 | 0 | 0 | 0 | 0 | 0 | 0.011628 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fc92382e8eb5b5b2b839d82c3970e59959dd78f5 | 5,870 | py | Python | tests/share/normalize/test_xml.py | felliott/SHARE | 8fd60ff4749349c9b867f6188650d71f4f0a1a56 | [
"Apache-2.0"
] | 87 | 2015-01-06T18:24:45.000Z | 2021-08-08T07:59:40.000Z | tests/share/normalize/test_xml.py | fortress-biotech/SHARE | 9c5a05dd831447949fa6253afec5225ff8ab5d4f | [
"Apache-2.0"
] | 442 | 2015-01-01T19:16:01.000Z | 2022-03-30T21:10:26.000Z | tests/share/normalize/test_xml.py | fortress-biotech/SHARE | 9c5a05dd831447949fa6253afec5225ff8ab5d4f | [
"Apache-2.0"
] | 67 | 2015-03-10T16:32:58.000Z | 2021-11-12T16:33:41.000Z | import xmltodict
from share.transform.chain import * # noqa
EXAMPLE = '''
<entry>
<id>http://arxiv.org/abs/cond-mat/0102536v1</id>
<updated>2001-02-28T20:12:09Z</updated>
<published>2001-02-28T20:12:09Z</published>
<title>Impact of Electron-Electron Cusp
on Configuration Interaction Energies</t... | 52.410714 | 1,152 | 0.729131 | 783 | 5,870 | 5.449553 | 0.269476 | 0.067495 | 0.042184 | 0.053433 | 0.705648 | 0.690415 | 0.681041 | 0.635575 | 0.635575 | 0.635575 | 0 | 0.025226 | 0.169336 | 5,870 | 111 | 1,153 | 52.882883 | 0.849877 | 0.011244 | 0 | 0.164835 | 0 | 0.153846 | 0.785209 | 0.061541 | 0 | 0 | 0 | 0 | 0.054945 | 1 | 0.010989 | false | 0 | 0.021978 | 0 | 0.208791 | 0.043956 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5d78b08ed15d1550fa9397049ff76029d3869bce | 555 | py | Python | tests/blueprint/test_decorators.py | cuenca-mx/agave | d4719bdbab8e200c98d206475df6adb275e9fdcc | [
"MIT"
] | 3 | 2020-12-11T16:48:44.000Z | 2021-03-29T00:05:57.000Z | tests/blueprint/test_decorators.py | cuenca-mx/agave | d4719bdbab8e200c98d206475df6adb275e9fdcc | [
"MIT"
] | 115 | 2020-08-26T13:26:07.000Z | 2022-03-31T23:58:22.000Z | tests/blueprint/test_decorators.py | cuenca-mx/agave | d4719bdbab8e200c98d206475df6adb275e9fdcc | [
"MIT"
] | null | null | null | from functools import wraps
from agave.blueprints.decorators import copy_attributes
def i_am_test(func):
@wraps(func)
def wrapper(*args, **kwargs):
return func(*args, **kwargs)
wrapper.i_am_test = True
return wrapper
class TestResource:
@i_am_test
def retrieve(self) -> str:
... | 19.821429 | 55 | 0.677477 | 70 | 555 | 5.157143 | 0.428571 | 0.041551 | 0.096953 | 0.099723 | 0.121884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218018 | 555 | 27 | 56 | 20.555556 | 0.831797 | 0 | 0 | 0 | 0 | 0 | 0.041441 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.277778 | false | 0 | 0.111111 | 0.111111 | 0.611111 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5d7ce8af330d95b04a5584c878164fe2af01973b | 8,279 | py | Python | neaten_db.py | Adoni/ZhihuCrawler | c275192ced3a344d7b93b7cfd3ebf87ed179400d | [
"MIT"
] | null | null | null | neaten_db.py | Adoni/ZhihuCrawler | c275192ced3a344d7b93b7cfd3ebf87ed179400d | [
"MIT"
] | null | null | null | neaten_db.py | Adoni/ZhihuCrawler | c275192ced3a344d7b93b7cfd3ebf87ed179400d | [
"MIT"
] | null | null | null | from pymongo import MongoClient
from pyltp import Segmentor
def insert_questions_from_answered_question():
in_db = MongoClient().zhihu.user_answered_questions
out_db = MongoClient().zhihu_network.questions
existed_question_id = set(map(lambda q: q['_id'], out_db.find()))
segmentor = Segmentor()
se... | 39.42381 | 77 | 0.595603 | 1,082 | 8,279 | 4.229205 | 0.107209 | 0.045892 | 0.078671 | 0.065559 | 0.821241 | 0.708698 | 0.685533 | 0.661932 | 0.647072 | 0.636364 | 0 | 0.003716 | 0.252446 | 8,279 | 209 | 78 | 39.61244 | 0.73566 | 0.044208 | 0 | 0.651163 | 0 | 0 | 0.110113 | 0.025946 | 0 | 0 | 0 | 0 | 0.005814 | 1 | 0.069767 | false | 0 | 0.011628 | 0 | 0.081395 | 0.023256 | 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 |
5d861ae24ab41a343997586ea4f68f7cd661d4d3 | 301 | py | Python | tests/data_creator_action.py | michalurbanski/bkgames | 69b1d16ae27d3118dd78449ce7deecbd6e1b95e7 | [
"MIT"
] | null | null | null | tests/data_creator_action.py | michalurbanski/bkgames | 69b1d16ae27d3118dd78449ce7deecbd6e1b95e7 | [
"MIT"
] | null | null | null | tests/data_creator_action.py | michalurbanski/bkgames | 69b1d16ae27d3118dd78449ce7deecbd6e1b95e7 | [
"MIT"
] | null | null | null | from typing import Callable
class DataCreatorAction:
def __init__(self, func: Callable, priority_for_creation: int = 99, priority_for_removal: int = 99):
self.func = func
self.priority_for_creation = priority_for_creation
self.priority_for_removal = priority_for_removal
| 33.444444 | 104 | 0.750831 | 38 | 301 | 5.526316 | 0.421053 | 0.314286 | 0.271429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.189369 | 301 | 8 | 105 | 37.625 | 0.844262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 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 |
5d93683480faf496a5e564f3b162607a289a4f92 | 21,601 | py | Python | koku/reporting/migrations/0099_ocp_performance.py | Vasyka/koku | b5aa9ec41c3b0821e74afe9ff3a5ffaedb910614 | [
"Apache-2.0"
] | 2 | 2022-01-12T03:42:39.000Z | 2022-01-12T03:42:40.000Z | koku/reporting/migrations/0099_ocp_performance.py | Vasyka/koku | b5aa9ec41c3b0821e74afe9ff3a5ffaedb910614 | [
"Apache-2.0"
] | null | null | null | koku/reporting/migrations/0099_ocp_performance.py | Vasyka/koku | b5aa9ec41c3b0821e74afe9ff3a5ffaedb910614 | [
"Apache-2.0"
] | 1 | 2021-07-21T09:33:59.000Z | 2021-07-21T09:33:59.000Z | # Generated by Django 2.2.10 on 2020-02-18 12:51
import django.contrib.postgres.indexes
from django.db import migrations
from django.db import models
class Migration(migrations.Migration):
dependencies = [("reporting", "0098_auto_20200221_2034")]
operations = [
migrations.RunSQL(
"""
dro... | 51.800959 | 173 | 0.734781 | 2,226 | 21,601 | 6.731806 | 0.082659 | 0.1001 | 0.074808 | 0.07027 | 0.917718 | 0.828295 | 0.678946 | 0.575709 | 0.545479 | 0.464531 | 0 | 0.002126 | 0.19425 | 21,601 | 416 | 174 | 51.925481 | 0.858834 | 0.025554 | 0 | 0.65035 | 1 | 0 | 0.299134 | 0.200596 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020979 | 0 | 0.041958 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5da38d402c0b885654d90358b5f682eddb296488 | 672 | py | Python | 03.py | SnowWolf75/aoc-2020 | 1745a6cf46dac097869e5af99194b710e78bed28 | [
"Unlicense"
] | null | null | null | 03.py | SnowWolf75/aoc-2020 | 1745a6cf46dac097869e5af99194b710e78bed28 | [
"Unlicense"
] | null | null | null | 03.py | SnowWolf75/aoc-2020 | 1745a6cf46dac097869e5af99194b710e78bed28 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
import sys, os
import unittest
from lib.common import *
filename = "inputs/2020_12_03_input.txt"
class day03:
def __init__(self):
pass
class day03part1(day03):
def solve(self, args):
pass
class day03part2(day03):
def solve(self, args):
pass
class exampl... | 16.8 | 40 | 0.638393 | 80 | 672 | 5.2 | 0.45 | 0.067308 | 0.0625 | 0.081731 | 0.144231 | 0.144231 | 0.144231 | 0 | 0 | 0 | 0 | 0.082 | 0.255952 | 672 | 39 | 41 | 17.230769 | 0.75 | 0.081845 | 0 | 0.391304 | 0 | 0 | 0.044046 | 0.044046 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304348 | false | 0.130435 | 0.130435 | 0 | 0.652174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5db3dae6928f712e933165c643051e536448b1fb | 359 | py | Python | ois_api_client/v3_0/dto/Lines.py | peterkulik/ois_api_client | 51dabcc9f920f89982c4419bb058f5a88193cee0 | [
"MIT"
] | 7 | 2020-10-22T08:15:29.000Z | 2022-01-27T07:59:39.000Z | ois_api_client/v3_0/dto/Lines.py | peterkulik/ois_api_client | 51dabcc9f920f89982c4419bb058f5a88193cee0 | [
"MIT"
] | null | null | null | ois_api_client/v3_0/dto/Lines.py | peterkulik/ois_api_client | 51dabcc9f920f89982c4419bb058f5a88193cee0 | [
"MIT"
] | null | null | null | from typing import List
from dataclasses import dataclass
from .Line import Line
@dataclass
class Lines:
"""Product / service items
:param merged_item_indicator: Indicates whether the data exchange contains merged line data due to size reduction
:param line: Product / service item
"""
merged_ite... | 22.4375 | 117 | 0.743733 | 47 | 359 | 5.595745 | 0.574468 | 0.106464 | 0.144487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203343 | 359 | 15 | 118 | 23.933333 | 0.91958 | 0.48468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.857143 | 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 |
5db5a1d6975c3995d47712215ed2acd01be9b8ad | 208 | py | Python | application/model/_base.py | keysona/blog | 783e0bdbed1e4d8ec9857ee609b39c9dfb958670 | [
"MIT"
] | null | null | null | application/model/_base.py | keysona/blog | 783e0bdbed1e4d8ec9857ee609b39c9dfb958670 | [
"MIT"
] | null | null | null | application/model/_base.py | keysona/blog | 783e0bdbed1e4d8ec9857ee609b39c9dfb958670 | [
"MIT"
] | null | null | null | from flask_sqlalchemy import SQLAlchemy, Model
# class BaseModel(Model):
# def save(self):
# db.session.add(self)
# db.session.commit(self)
# def delete(self):
# db.session.
db = SQLAlchemy()
| 16 | 46 | 0.673077 | 27 | 208 | 5.148148 | 0.555556 | 0.129496 | 0.280576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 208 | 12 | 47 | 17.333333 | 0.822485 | 0.605769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 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 | 0 | 0 | 3 |
5dcb3695e4bb82f323f1875e14dd30d0eb26c6e3 | 199 | py | Python | stograde/common/run_status.py | babatana/stograde | c1c447e99c44c23cef9dd857e669861f3708ae77 | [
"MIT"
] | null | null | null | stograde/common/run_status.py | babatana/stograde | c1c447e99c44c23cef9dd857e669861f3708ae77 | [
"MIT"
] | null | null | null | stograde/common/run_status.py | babatana/stograde | c1c447e99c44c23cef9dd857e669861f3708ae77 | [
"MIT"
] | null | null | null | from enum import auto, Enum
class RunStatus(Enum):
SUCCESS = auto()
CALLED_PROCESS_ERROR = auto()
FILE_NOT_FOUND = auto()
PROCESS_LOOKUP_ERROR = auto()
TIMEOUT_EXPIRED = auto()
| 19.9 | 33 | 0.683417 | 25 | 199 | 5.16 | 0.64 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221106 | 199 | 9 | 34 | 22.111111 | 0.832258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 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 |
5dd288bce128d196a30c7168a6af79b6e365abd9 | 11,995 | py | Python | saleor-env/lib/python3.7/site-packages/snowballstemmer/nepali_stemmer.py | tadartefactorist/mask | 7967dd4ad39e3d26ac516719faefb40e00a8cbff | [
"BSD-3-Clause"
] | null | null | null | saleor-env/lib/python3.7/site-packages/snowballstemmer/nepali_stemmer.py | tadartefactorist/mask | 7967dd4ad39e3d26ac516719faefb40e00a8cbff | [
"BSD-3-Clause"
] | 1 | 2021-06-01T23:55:30.000Z | 2021-06-01T23:55:30.000Z | venv/lib/python2.7/site-packages/snowballstemmer/nepali_stemmer.py | tvek/DatasciencePythonInitBase | e578b4a3026b55bc2935b200453e511f1731c75e | [
"MIT"
] | null | null | null | # This file was generated automatically by the Snowball to Python compiler
# http://snowballstem.org/
from .basestemmer import BaseStemmer
from .among import Among
class NepaliStemmer(BaseStemmer):
'''
This class was automatically generated by a Snowball to Python compiler
It implements the stemming algo... | 34.970845 | 75 | 0.469362 | 1,514 | 11,995 | 3.64465 | 0.099075 | 0.123958 | 0.135738 | 0.086988 | 0.694998 | 0.585357 | 0.376767 | 0.17597 | 0.10801 | 0.096412 | 0 | 0.239095 | 0.388412 | 11,995 | 342 | 76 | 35.073099 | 0.513086 | 0.085286 | 0 | 0.349206 | 1 | 0 | 0.202606 | 0.101854 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019841 | false | 0.079365 | 0.007937 | 0 | 0.134921 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
5de9426d377676b21fdbfe522c80d5ca38d85f47 | 7,000 | bzl | Python | go/def.bzl | bobg/rules_go | fd11dd2768669dc2cc1f3a11f2b0b81d84e81c32 | [
"Apache-2.0"
] | null | null | null | go/def.bzl | bobg/rules_go | fd11dd2768669dc2cc1f3a11f2b0b81d84e81c32 | [
"Apache-2.0"
] | 1 | 2022-02-18T15:47:32.000Z | 2022-02-18T15:47:32.000Z | go/def.bzl | bobg/rules_go | fd11dd2768669dc2cc1f3a11f2b0b81d84e81c32 | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | 37.037037 | 171 | 0.762143 | 1,024 | 7,000 | 4.892578 | 0.216797 | 0.103393 | 0.057485 | 0.11497 | 0.402196 | 0.376447 | 0.357285 | 0.336128 | 0.330739 | 0.330739 | 0 | 0.002604 | 0.122286 | 7,000 | 188 | 172 | 37.234043 | 0.812826 | 0.278429 | 0 | 0.081967 | 0 | 0.008197 | 0.641272 | 0.530094 | 0 | 0 | 0 | 0.005319 | 0.008197 | 1 | 0.07377 | false | 0.278689 | 0 | 0 | 0.07377 | 0.008197 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
5dfbc6d76c2633ab81a042a9da06802874d69efe | 2,986 | py | Python | mushroom_rl/utils/plots/common_plots.py | PuzeLiu/mushroom-rl | 99942b425e66b4ddcc26009d7105dde23841e95d | [
"MIT"
] | 344 | 2020-01-10T09:45:02.000Z | 2022-03-30T09:48:28.000Z | mushroom_rl/utils/plots/common_plots.py | AmmarFahmy/mushroom-rl | 2625ee7f64d5613b3b9fba00f0b7a39fece88ca5 | [
"MIT"
] | 44 | 2020-01-23T03:00:56.000Z | 2022-03-25T17:14:22.000Z | mushroom_rl/utils/plots/common_plots.py | AmmarFahmy/mushroom-rl | 2625ee7f64d5613b3b9fba00f0b7a39fece88ca5 | [
"MIT"
] | 93 | 2020-01-10T21:17:58.000Z | 2022-03-31T17:58:52.000Z | from mushroom_rl.utils.plots import PlotItemBuffer, DataBuffer
from mushroom_rl.utils.plots.plot_item_buffer import PlotItemBufferLimited
class RewardPerStep(PlotItemBuffer):
"""
Class that represents a plot for the reward at every step.
"""
def __init__(self, plot_buffer):
"""
Constr... | 28.990291 | 79 | 0.609846 | 350 | 2,986 | 4.991429 | 0.214286 | 0.068689 | 0.054379 | 0.057241 | 0.757298 | 0.729823 | 0.729823 | 0.729823 | 0.595879 | 0.482542 | 0 | 0 | 0.304421 | 2,986 | 102 | 80 | 29.27451 | 0.841117 | 0.434695 | 0 | 0.269231 | 0 | 0 | 0.043973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.076923 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b909e91c70f62d03b4cb515c5e970eae1b71dc91 | 585 | py | Python | pycfmodel/model/resources/properties/policy.py | donatoaz/pycfmodel | 1586e290b67d2347493dd4a77d2b0c8ee6c0936b | [
"Apache-2.0"
] | 23 | 2018-06-28T10:45:01.000Z | 2021-05-07T11:12:39.000Z | pycfmodel/model/resources/properties/policy.py | donatoaz/pycfmodel | 1586e290b67d2347493dd4a77d2b0c8ee6c0936b | [
"Apache-2.0"
] | 27 | 2019-03-09T08:33:22.000Z | 2022-03-03T14:59:11.000Z | pycfmodel/model/resources/properties/policy.py | donatoaz/pycfmodel | 1586e290b67d2347493dd4a77d2b0c8ee6c0936b | [
"Apache-2.0"
] | 7 | 2019-03-09T02:18:18.000Z | 2021-07-22T20:33:09.000Z | from pycfmodel.model.resources.properties.policy_document import PolicyDocument
from pycfmodel.model.resources.properties.property import Property
from pycfmodel.model.types import Resolvable, ResolvableStr
class Policy(Property):
"""
Contains information about an attached policy.
Properties:
- Poli... | 32.5 | 118 | 0.788034 | 60 | 585 | 7.65 | 0.466667 | 0.122004 | 0.117647 | 0.215686 | 0.294118 | 0.204793 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138462 | 585 | 17 | 119 | 34.411765 | 0.910714 | 0.411966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f8f18448ffd7145536a1fb795da3a1417cfe03f4 | 255 | py | Python | lm5/input.py | jmcph4/lm5 | cd6f480ad70a3769090eab6ac3f3d47378a965de | [
"MIT"
] | 4 | 2018-09-25T07:29:05.000Z | 2022-02-22T01:56:36.000Z | lm5/input.py | jmcph4/lm5 | cd6f480ad70a3769090eab6ac3f3d47378a965de | [
"MIT"
] | null | null | null | lm5/input.py | jmcph4/lm5 | cd6f480ad70a3769090eab6ac3f3d47378a965de | [
"MIT"
] | 2 | 2018-09-25T07:29:06.000Z | 2021-12-30T07:19:13.000Z | class Input(object):
def __init__(self, type, data):
self.__type = type
self.__data = deepcopy(data)
def __repr__(self):
return repr(self.__data)
def __str__(self):
return str(self.__type) + str(self.__data)
| 21.25 | 50 | 0.611765 | 32 | 255 | 4.1875 | 0.375 | 0.179104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.270588 | 255 | 11 | 51 | 23.181818 | 0.72043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.25 | 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 |
f8f3fc84d2eec11a3d1fe8de179b44f825aeb0e4 | 419 | py | Python | BanditSim/__init__.py | AJB0211/BanditSim | 5426486b40c35492049b09f9b57eb18ad5d6ce63 | [
"MIT"
] | null | null | null | BanditSim/__init__.py | AJB0211/BanditSim | 5426486b40c35492049b09f9b57eb18ad5d6ce63 | [
"MIT"
] | null | null | null | BanditSim/__init__.py | AJB0211/BanditSim | 5426486b40c35492049b09f9b57eb18ad5d6ce63 | [
"MIT"
] | null | null | null | from .multiarmedbandit import MultiArmedBandit
from .eps_greedy_constant_stepsize import EpsilonGreedyConstantStepsize
from .greedy_constant_stepsize import GreedyConstantStepsize
from .epsilon_greedy_average_step import EpsilonGreedyAverageStep
from .greedy_average_step import GreedyAverageStep
from .greedy_bayes_upd... | 38.090909 | 71 | 0.909308 | 43 | 419 | 8.511628 | 0.418605 | 0.081967 | 0.071038 | 0.153005 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073986 | 419 | 10 | 72 | 41.9 | 0.943299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f8f8dae5df2040a52619a0f46630de1b8ffbe445 | 533 | py | Python | heat/initial_data.py | kjetil-lye/ismo_heat | 09776b740a0543e270417af653d2a047c94f1b50 | [
"MIT"
] | null | null | null | heat/initial_data.py | kjetil-lye/ismo_heat | 09776b740a0543e270417af653d2a047c94f1b50 | [
"MIT"
] | 6 | 2020-11-13T19:04:16.000Z | 2022-02-10T02:10:50.000Z | heat/initial_data.py | kjetil-lye/ismo_heat | 09776b740a0543e270417af653d2a047c94f1b50 | [
"MIT"
] | 1 | 2021-03-26T06:53:19.000Z | 2021-03-26T06:53:19.000Z | import numpy
class InitialDataControlSine:
def __init__(self, coefficients):
self.coefficients = coefficients
def __call__(self, x):
u = numpy.zeros_like(x)
for k, coefficient in enumerate(self.coefficients):
u += coefficient * numpy.sin(k * numpy.pi * x)
return... | 28.052632 | 85 | 0.613508 | 69 | 533 | 4.594203 | 0.42029 | 0.201893 | 0.07571 | 0.100946 | 0.375394 | 0.375394 | 0.271293 | 0.271293 | 0 | 0 | 0 | 0.005141 | 0.270169 | 533 | 18 | 86 | 29.611111 | 0.809769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0.083333 | 0.583333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5d0889f3f4e69f4a0ebb469755c280704d4811e2 | 326 | py | Python | test_modules/language_dictionary_test.py | 1goodday/Google-Dictionary-Pronunciation.ankiaddon | 35837802e41d81733aec656fbf4ad1c8e4aeec5e | [
"MIT"
] | 1 | 2021-10-02T13:16:29.000Z | 2021-10-02T13:16:29.000Z | test_modules/language_dictionary_test.py | 1goodday/Google-Dictionary-Pronunciation.ankiaddon | 35837802e41d81733aec656fbf4ad1c8e4aeec5e | [
"MIT"
] | 2 | 2021-09-08T14:08:33.000Z | 2021-10-10T04:35:08.000Z | test_modules/language_dictionary_test.py | 1goodday/Google-Dictionary.ankiaddon | 35837802e41d81733aec656fbf4ad1c8e4aeec5e | [
"MIT"
] | null | null | null | import csv
_iso_639_1_codes_file = open("files/ISO-639-1_Codes.csv", mode='r')
_iso_639_1_codes_dictreader = csv.DictReader(_iso_639_1_codes_file)
_iso_639_1_codes_dict: dict = {}
for _row in _iso_639_1_codes_dictreader:
_iso_639_1_codes_dict[_row['ISO-639-1 Code']] = _row['Language']
print(str(_iso_639_1_codes_... | 32.6 | 68 | 0.794479 | 61 | 326 | 3.606557 | 0.327869 | 0.245455 | 0.286364 | 0.436364 | 0.609091 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120805 | 0.08589 | 326 | 10 | 69 | 32.6 | 0.61745 | 0 | 0 | 0 | 0 | 0 | 0.146789 | 0.076453 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 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 |
5d5caf5c5d1415de34379e45359c322cac37e6ff | 2,766 | py | Python | lib/adv_model.py | chawins/entangle-rep | 3e9e0d6e7536b0de0e35d7f8717f2ccc8e887759 | [
"MIT"
] | 15 | 2019-06-30T12:30:17.000Z | 2021-12-07T20:20:36.000Z | lib/adv_model.py | chawins/entangle-rep | 3e9e0d6e7536b0de0e35d7f8717f2ccc8e887759 | [
"MIT"
] | 2 | 2020-06-11T10:10:52.000Z | 2021-12-21T08:50:33.000Z | lib/adv_model.py | chawins/entangle-rep | 3e9e0d6e7536b0de0e35d7f8717f2ccc8e887759 | [
"MIT"
] | 9 | 2019-07-09T14:52:30.000Z | 2020-10-27T19:18:34.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
class PGDModel(nn.Module):
"""
code adapted from
https://github.com/karandwivedi42/adversarial/blob/master/main.py
"""
def __init__(self, basic_net, config):
super(PGDModel, self).__init__()
self.basic_net = basic_... | 35.012658 | 78 | 0.578453 | 360 | 2,766 | 4.272222 | 0.233333 | 0.062419 | 0.078023 | 0.041612 | 0.748375 | 0.70091 | 0.70091 | 0.673602 | 0.63459 | 0.63459 | 0 | 0.012697 | 0.288142 | 2,766 | 78 | 79 | 35.461538 | 0.76841 | 0.060376 | 0 | 0.631579 | 0 | 0 | 0.063281 | 0 | 0 | 0 | 0 | 0 | 0.035088 | 1 | 0.070175 | false | 0 | 0.052632 | 0 | 0.22807 | 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 |
5d61828a9a51cb5ce1865c213ffd2c5903a688a4 | 47 | py | Python | prereise/gather/solardata/tests/__init__.py | terrywqf/PreREISE | f8052dd37091eaa15024725d5c92a3ef0ee311ee | [
"MIT"
] | null | null | null | prereise/gather/solardata/tests/__init__.py | terrywqf/PreREISE | f8052dd37091eaa15024725d5c92a3ef0ee311ee | [
"MIT"
] | null | null | null | prereise/gather/solardata/tests/__init__.py | terrywqf/PreREISE | f8052dd37091eaa15024725d5c92a3ef0ee311ee | [
"MIT"
] | null | null | null | __all__ = ["mock_pv_info", "test_pv_tracking"]
| 23.5 | 46 | 0.744681 | 7 | 47 | 3.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 47 | 1 | 47 | 47 | 0.627907 | 0 | 0 | 0 | 0 | 0 | 0.595745 | 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 |
5d65f544314984a2fee60579b78ec312b1835ccc | 491 | py | Python | tests/moz_library/rental_books_test.py | mozkzki/moz-library | fb925414405a9fcba8bb7194cf983ba18c920e2f | [
"MIT"
] | null | null | null | tests/moz_library/rental_books_test.py | mozkzki/moz-library | fb925414405a9fcba8bb7194cf983ba18c920e2f | [
"MIT"
] | 35 | 2021-10-09T13:08:33.000Z | 2022-03-29T14:26:59.000Z | tests/moz_library/rental_books_test.py | mozkzki/moz-library | fb925414405a9fcba8bb7194cf983ba18c920e2f | [
"MIT"
] | null | null | null | import pytest
from moz_library.rental_books import RentalBooks
class TestRentalBooks:
@pytest.fixture()
def books1(self):
return RentalBooks()
def test_can_extend_period_1(self, books1):
assert books1._can_extend_period("延長できません") is False
def test_can_extend_period_2(self, books1):
... | 27.277778 | 64 | 0.737271 | 66 | 491 | 5.136364 | 0.439394 | 0.159292 | 0.265487 | 0.141593 | 0.563422 | 0.498525 | 0.498525 | 0 | 0 | 0 | 0 | 0.025 | 0.185336 | 491 | 17 | 65 | 28.882353 | 0.8225 | 0 | 0 | 0 | 0 | 0 | 0.044807 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.333333 | false | 0 | 0.166667 | 0.083333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5d7378673807f7e0283f1553a575bc82a4166826 | 390 | py | Python | utilities.py | armandok/pySLAM-D | ef7398806e021885b29702adf55acbedaf544ce6 | [
"MIT"
] | 10 | 2020-12-24T16:40:46.000Z | 2022-02-01T18:09:13.000Z | utilities.py | armandok/pySLAM-D | ef7398806e021885b29702adf55acbedaf544ce6 | [
"MIT"
] | null | null | null | utilities.py | armandok/pySLAM-D | ef7398806e021885b29702adf55acbedaf544ce6 | [
"MIT"
] | null | null | null | import numpy as np
def rot_to_angle(rot):
return np.arccos(0.5*np.trace(rot)-0.5)
def rot_to_heading(rot):
# This function calculates the heading angle of the rot matrix w.r.t. the y-axis
new_rot = rot[0:3:2, 0:3:2] # remove the mid row and column corresponding to the y-axis
new_rot = new_rot/np.li... | 30 | 92 | 0.694872 | 80 | 390 | 3.2625 | 0.475 | 0.137931 | 0.061303 | 0.084291 | 0.10728 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04717 | 0.184615 | 390 | 12 | 93 | 32.5 | 0.773585 | 0.348718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5d75bb550217d28f2cb95a0798b2a193f98c5dc4 | 190 | py | Python | publication-erdf/flask_service.py | ticapix/automated-tasks | a0c73ad2939c6f1a2d91aea6fd309b5005455191 | [
"Unlicense"
] | null | null | null | publication-erdf/flask_service.py | ticapix/automated-tasks | a0c73ad2939c6f1a2d91aea6fd309b5005455191 | [
"Unlicense"
] | null | null | null | publication-erdf/flask_service.py | ticapix/automated-tasks | a0c73ad2939c6f1a2d91aea6fd309b5005455191 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
from flask import Flask
app = Flask(__name__)
@app.route('/process-email')
def process_email():
return "Hello World!"
if __name__ == "__main__":
app.run()
| 14.615385 | 28 | 0.673684 | 26 | 190 | 4.423077 | 0.730769 | 0.208696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006329 | 0.168421 | 190 | 12 | 29 | 15.833333 | 0.721519 | 0.110526 | 0 | 0 | 0 | 0 | 0.202381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
53713acb71d2f50fa7d7472d8e125a179f1d5d33 | 417 | py | Python | backend/links/sentence.py | dla1635/hyLink | 8f3d1b6b0cad57ce2f6861583eb2b523f9fceee7 | [
"MIT"
] | 1 | 2020-07-17T05:57:47.000Z | 2020-07-17T05:57:47.000Z | backend/links/sentence.py | dla1635/hyLink | 8f3d1b6b0cad57ce2f6861583eb2b523f9fceee7 | [
"MIT"
] | 11 | 2020-06-06T00:30:23.000Z | 2022-02-26T19:59:06.000Z | backend/links/sentence.py | dla1635/hylink | 8f3d1b6b0cad57ce2f6861583eb2b523f9fceee7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from collections import Counter
from konlpy.tag import Okt
class Sentence(object):
okt = Okt()
def __init__(self, text, index=0):
self.index = index
self.text = text.strip()
self.tokens = self.okt.phrases(self.text)
self.bow = Counter(self.tokens)
... | 18.954545 | 49 | 0.611511 | 54 | 417 | 4.5 | 0.481481 | 0.131687 | 0.115226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 0.270983 | 417 | 21 | 50 | 19.857143 | 0.792763 | 0.05036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0.153846 | 0.692308 | 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 |
53898a41d0b3979d97ed59d9bf3e85e1664af2da | 103 | py | Python | programacao basica/7.py | m-brito/Neps-Academy | 0d962fb921d74c5f97f10fcdd8a0f464c0ccdb14 | [
"MIT"
] | null | null | null | programacao basica/7.py | m-brito/Neps-Academy | 0d962fb921d74c5f97f10fcdd8a0f464c0ccdb14 | [
"MIT"
] | null | null | null | programacao basica/7.py | m-brito/Neps-Academy | 0d962fb921d74c5f97f10fcdd8a0f464c0ccdb14 | [
"MIT"
] | null | null | null | bino = int(input())
cino = int(input())
if (bino+cino)%2==0:
print("Bino")
else:
print("Cino")
| 14.714286 | 20 | 0.563107 | 16 | 103 | 3.625 | 0.5625 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.184466 | 103 | 6 | 21 | 17.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.07767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
539b64bd9ed2668ae9a573fa432b5a05793c8032 | 109 | py | Python | test/run/t344.py | timmartin/skulpt | 2e3a3fbbaccc12baa29094a717ceec491a8a6750 | [
"MIT"
] | 2,671 | 2015-01-03T08:23:25.000Z | 2022-03-31T06:15:48.000Z | test/run/t344.py | timmartin/skulpt | 2e3a3fbbaccc12baa29094a717ceec491a8a6750 | [
"MIT"
] | 972 | 2015-01-05T08:11:00.000Z | 2022-03-29T13:47:15.000Z | test/run/t344.py | timmartin/skulpt | 2e3a3fbbaccc12baa29094a717ceec491a8a6750 | [
"MIT"
] | 845 | 2015-01-03T19:53:36.000Z | 2022-03-29T18:34:22.000Z | for ch in "Hello world!":
d = ord(ch)
h = hex(d)
o = oct(d)
b = bin(d)
print ch, d, h, o, b
| 12.111111 | 25 | 0.449541 | 23 | 109 | 2.130435 | 0.608696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.366972 | 109 | 8 | 26 | 13.625 | 0.710145 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
53c5781ea07cd092d5d5320da909512506460ef4 | 184 | py | Python | python/helpers.py | cdacos/astrophysics_with_a_pc | b0017856005a4771fbd89c8137fb320b72b1b633 | [
"FSFAP"
] | null | null | null | python/helpers.py | cdacos/astrophysics_with_a_pc | b0017856005a4771fbd89c8137fb320b72b1b633 | [
"FSFAP"
] | null | null | null | python/helpers.py | cdacos/astrophysics_with_a_pc | b0017856005a4771fbd89c8137fb320b72b1b633 | [
"FSFAP"
] | 1 | 2021-03-14T23:13:28.000Z | 2021-03-14T23:13:28.000Z | import sys
def start_parameter(text, i):
if len(sys.argv) > i:
print('{0}{1}'.format(text, sys.argv[i]))
return float(sys.argv[i])
else:
return float(raw_input(text))
| 20.444444 | 45 | 0.63587 | 31 | 184 | 3.709677 | 0.612903 | 0.182609 | 0.208696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013245 | 0.179348 | 184 | 8 | 46 | 23 | 0.748344 | 0 | 0 | 0 | 0 | 0 | 0.032609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 0.142857 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
53e86b46c3285488d7ebc41a01e6a577e706cb66 | 693 | py | Python | associations/migrations/0001_initial.py | ollc-code/django-back | 205f3adc61f9e62c88dfcc170999cef495cebed7 | [
"MIT"
] | null | null | null | associations/migrations/0001_initial.py | ollc-code/django-back | 205f3adc61f9e62c88dfcc170999cef495cebed7 | [
"MIT"
] | null | null | null | associations/migrations/0001_initial.py | ollc-code/django-back | 205f3adc61f9e62c88dfcc170999cef495cebed7 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2020-11-09 08:56
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Associations',
fields=[
('id', models.AutoF... | 27.72 | 114 | 0.580087 | 70 | 693 | 5.628571 | 0.642857 | 0.152284 | 0.182741 | 0.243655 | 0.137056 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05499 | 0.291486 | 693 | 24 | 115 | 28.875 | 0.747454 | 0.064935 | 0 | 0 | 1 | 0 | 0.082043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.294118 | 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 |
53e96f34f945ecef4aebd95bbb66a14049ee97c2 | 4,631 | py | Python | tests/pds/test_times.py | seignovert/pyvims | a70b5b9b8bc5c37fa43b7db4d15407f312a31849 | [
"BSD-3-Clause"
] | 4 | 2019-09-16T15:50:22.000Z | 2021-04-08T15:32:48.000Z | tests/pds/test_times.py | seignovert/pyvims | a70b5b9b8bc5c37fa43b7db4d15407f312a31849 | [
"BSD-3-Clause"
] | 3 | 2018-05-04T09:28:24.000Z | 2018-12-03T09:00:31.000Z | tests/pds/test_times.py | seignovert/pyvims | a70b5b9b8bc5c37fa43b7db4d15407f312a31849 | [
"BSD-3-Clause"
] | 1 | 2020-10-12T15:14:17.000Z | 2020-10-12T15:14:17.000Z | """Test PDS times modules."""
from datetime import datetime as dt
from pyvims.pds.times import (cassini2utc, cassini_time, dt_date, dt_doy, dt_iso,
dyear, pds_folder, pds_time, utc2cassini)
from pytest import approx, raises
def test_dt_iso():
"""Test parsing ISO time pattern."""
... | 34.559701 | 89 | 0.628374 | 809 | 4,631 | 3.529048 | 0.144623 | 0.089667 | 0.06725 | 0.081961 | 0.527145 | 0.432224 | 0.382837 | 0.349562 | 0.310333 | 0.284764 | 0 | 0.335618 | 0.180954 | 4,631 | 133 | 90 | 34.819549 | 0.414711 | 0.060462 | 0 | 0.170732 | 0 | 0.012195 | 0.367442 | 0.064651 | 0 | 0 | 0 | 0 | 0.585366 | 1 | 0.109756 | false | 0 | 0.036585 | 0 | 0.146341 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
990280dc9a383a0a37cbb821de57615b46aa6a23 | 401 | py | Python | April/Apr_25_2019/builder.py | while1618/DailyCodingProblem | 187909f78281828da543439646cdf52d64c2bd0c | [
"MIT"
] | 1 | 2019-11-17T10:56:28.000Z | 2019-11-17T10:56:28.000Z | April/Apr_25_2019/builder.py | while1618/DailyCodingProblem | 187909f78281828da543439646cdf52d64c2bd0c | [
"MIT"
] | null | null | null | April/Apr_25_2019/builder.py | while1618/DailyCodingProblem | 187909f78281828da543439646cdf52d64c2bd0c | [
"MIT"
] | 1 | 2021-11-02T01:00:37.000Z | 2021-11-02T01:00:37.000Z | # This problem was asked by Facebook.
#
# A builder is looking to build a row of N houses that can be of K different colors.
# He has a goal of minimizing cost while ensuring that no two neighboring houses are of the same color.
#
# Given an N by K matrix where the nth row and kth column represents the cost to build th... | 44.555556 | 116 | 0.763092 | 75 | 401 | 4.08 | 0.68 | 0.045752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206983 | 401 | 8 | 117 | 50.125 | 0.962264 | 0.9601 | 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 |
990aa6cbf16ed34f5030609c03ab43c0f0ed8c2a | 674 | py | Python | data/train/python/990aa6cbf16ed34f5030609c03ab43c0f0ed8c2aurls.py | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/train/python/990aa6cbf16ed34f5030609c03ab43c0f0ed8c2aurls.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/train/python/990aa6cbf16ed34f5030609c03ab43c0f0ed8c2aurls.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | from django.conf.urls.defaults import *
urlpatterns = patterns('pytorque.views',
(r'^$', 'central_dispatch_view'),
(r'^browse$', 'central_dispatch_view'),
(r'^monitor$', 'central_dispatch_view'),
(r'^submit$', 'central_dispatch_view'),
(r'^stat$', 'central_dispatch_view'),
(r'^login/$', 'login... | 33.7 | 58 | 0.569733 | 88 | 674 | 4.227273 | 0.306818 | 0.241935 | 0.306452 | 0.322581 | 0.352151 | 0.241935 | 0.241935 | 0 | 0 | 0 | 0 | 0.025729 | 0.135015 | 674 | 20 | 59 | 33.7 | 0.61235 | 0.290801 | 0 | 0 | 0 | 0 | 0.545648 | 0.363057 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.