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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9468fa992f1d93e90a6356695511ce12c0bc14c9 | 2,268 | py | Python | alipay/aop/api/domain/ApInvoiceBillLinkOrderRequest.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/domain/ApInvoiceBillLinkOrderRequest.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/domain/ApInvoiceBillLinkOrderRequest.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.MultiCurrencyMoneyOpenApi import MultiCurrencyMoneyOpenApi
class ApInvoiceBillLinkOrderRequest(object):
def __init__(self):
self._amt = None
self._daily_bill_... | 30.24 | 91 | 0.631834 | 273 | 2,268 | 4.912088 | 0.168498 | 0.100671 | 0.201342 | 0.11484 | 0.315436 | 0.187174 | 0.187174 | 0.122297 | 0 | 0 | 0 | 0.000612 | 0.279982 | 2,268 | 74 | 92 | 30.648649 | 0.820576 | 0.018519 | 0 | 0.118644 | 0 | 0 | 0.087309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152542 | false | 0 | 0.050847 | 0.050847 | 0.322034 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9469a3bdfd318d763c11d4b79d6a0ecb45dddac3 | 2,429 | py | Python | packages/pyright-internal/src/tests/samples/paramSpec4.py | Jasha10/pyright | 0ce0cfa10fe7faa41071a2cc417bb449cf8276fe | [
"MIT"
] | 3,934 | 2019-03-22T09:26:41.000Z | 2019-05-06T21:03:08.000Z | packages/pyright-internal/src/tests/samples/paramSpec4.py | Jasha10/pyright | 0ce0cfa10fe7faa41071a2cc417bb449cf8276fe | [
"MIT"
] | 107 | 2019-03-24T04:09:37.000Z | 2019-05-06T17:00:04.000Z | packages/pyright-internal/src/tests/samples/paramSpec4.py | Jasha10/pyright | 0ce0cfa10fe7faa41071a2cc417bb449cf8276fe | [
"MIT"
] | 119 | 2019-03-23T10:48:04.000Z | 2019-05-06T08:57:56.000Z | # This sample tests the type checker's handling of ParamSpec
# and Concatenate as described in PEP 612.
from typing import Callable, Concatenate, ParamSpec, TypeVar
P = ParamSpec("P")
R = TypeVar("R")
class Request:
...
def with_request(f: Callable[Concatenate[Request, P], R]) -> Callable[P, R]:
def inner... | 22.081818 | 79 | 0.638534 | 374 | 2,429 | 4.09893 | 0.264706 | 0.086758 | 0.082192 | 0.091324 | 0.447489 | 0.379648 | 0.289628 | 0.155251 | 0.130463 | 0.130463 | 0 | 0.02359 | 0.1972 | 2,429 | 109 | 80 | 22.284404 | 0.762564 | 0.27501 | 0 | 0.244898 | 0 | 0 | 0.052722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.306122 | false | 0 | 0.020408 | 0.040816 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
946a9bbf73f7a8589ecadf54336221a9a2b26b53 | 590 | py | Python | src/Actions/While.py | willfleetw/Joy | 9fcc83994af2c03359c0b729ce3ed63106febec7 | [
"MIT"
] | 2 | 2021-09-06T01:38:51.000Z | 2022-02-18T20:51:52.000Z | src/Actions/While.py | willfleetw/Joy | 9fcc83994af2c03359c0b729ce3ed63106febec7 | [
"MIT"
] | null | null | null | src/Actions/While.py | willfleetw/Joy | 9fcc83994af2c03359c0b729ce3ed63106febec7 | [
"MIT"
] | null | null | null | from Actions.Action import Action
from Actions.Condition import ConditionEvaluator, ConditionSet
class While(Action, ConditionEvaluator):
_actions: list[Action]
def __init__(self, condition_sets: list[ConditionSet] = [], actions: list[Action] = []) -> None:
self._condition_sets = condition_sets
... | 32.777778 | 100 | 0.679661 | 64 | 590 | 5.96875 | 0.359375 | 0.104712 | 0.089005 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222034 | 590 | 18 | 101 | 32.777778 | 0.832244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
946c0273eda6bebc0d634f2073d05bcf80320874 | 1,184 | py | Python | manage.py | Semprini/cbe-telco | c0385c2572a4059a2882c2c40fe79f6a5f807f6c | [
"Apache-2.0"
] | 1 | 2019-02-26T21:15:47.000Z | 2019-02-26T21:15:47.000Z | manage.py | Semprini/cbe-telco | c0385c2572a4059a2882c2c40fe79f6a5f807f6c | [
"Apache-2.0"
] | null | null | null | manage.py | Semprini/cbe-telco | c0385c2572a4059a2882c2c40fe79f6a5f807f6c | [
"Apache-2.0"
] | 2 | 2017-05-12T22:38:42.000Z | 2021-07-16T13:51:40.000Z | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "utilities.settings")
if len(sys.argv) == 5 and sys.argv[1] == "createsuperuser":
# when used as python manage.py createsuperuser <username> <email> <password>
import django
... | 39.466667 | 92 | 0.648649 | 149 | 1,184 | 5.033557 | 0.389262 | 0.112 | 0.032 | 0.029333 | 0.496 | 0.496 | 0.432 | 0.432 | 0.373333 | 0.373333 | 0 | 0.014349 | 0.234797 | 1,184 | 29 | 93 | 40.827586 | 0.813466 | 0.149493 | 0 | 0.434783 | 0 | 0 | 0.12749 | 0.021912 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.304348 | 0 | 0.304348 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
946c9aa74f128fa89dd60a74aa929284121397d9 | 699 | py | Python | dataset/test.py | DavidZechm/BikeSight | 573cb6c22d2b723841e0044d6f83115f2b4d7b21 | [
"MIT"
] | null | null | null | dataset/test.py | DavidZechm/BikeSight | 573cb6c22d2b723841e0044d6f83115f2b4d7b21 | [
"MIT"
] | null | null | null | dataset/test.py | DavidZechm/BikeSight | 573cb6c22d2b723841e0044d6f83115f2b4d7b21 | [
"MIT"
] | null | null | null | import cv2
def click_event(event, x, y, flags, param):
global img
if event == cv2.EVENT_LBUTTONDOWN:
print(x,y)
cv2.circle(img, (x, y), 10, (0, 0, 255), -1)
cv2.imshow('image', img)
if event == cv2.EVENT_RBUTTONDBLCLK:
img = cv2.imread(img_path)
print("cleaned")
... | 25.888889 | 80 | 0.60515 | 95 | 699 | 4.378947 | 0.452632 | 0.086538 | 0.134615 | 0.163462 | 0.177885 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064886 | 0.250358 | 699 | 27 | 81 | 25.888889 | 0.729008 | 0.014306 | 0 | 0.363636 | 0 | 0 | 0.139332 | 0.092888 | 0 | 0 | 0.005806 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.045455 | 0 | 0.090909 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
946d5840ceda46225448517074a527abc0aba092 | 545 | py | Python | pyjobs/core/migrations/0015_job_ad_interested.py | Mdslino/PyJobs | d2496d58067503c3304a6c59052238b1f097472b | [
"BSD-3-Clause"
] | 132 | 2017-10-27T23:54:47.000Z | 2022-03-15T12:10:10.000Z | pyjobs/core/migrations/0015_job_ad_interested.py | Mdslino/PyJobs | d2496d58067503c3304a6c59052238b1f097472b | [
"BSD-3-Clause"
] | 129 | 2017-09-05T04:22:50.000Z | 2022-03-12T01:06:49.000Z | pyjobs/core/migrations/0015_job_ad_interested.py | Mdslino/PyJobs | d2496d58067503c3304a6c59052238b1f097472b | [
"BSD-3-Clause"
] | 82 | 2017-10-28T00:14:04.000Z | 2021-07-27T20:00:40.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-11-04 18:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("core", "0014_auto_20180511_2122")]
operations = [
migrations.AddField(
mode... | 24.772727 | 75 | 0.60367 | 59 | 545 | 5.389831 | 0.813559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088083 | 0.291743 | 545 | 21 | 76 | 25.952381 | 0.735751 | 0.126606 | 0 | 0 | 1 | 0 | 0.181818 | 0.048626 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
946eaaa0a7837d6edf0dc98edda25aec20c9fc06 | 648 | py | Python | src/protocols/create_water_container/protocol.py | scottbecker/delve_tx_public | 387c461775e8a1f2c862fffe4b8fe1ce5178abc9 | [
"MIT"
] | 2 | 2016-10-20T17:43:08.000Z | 2016-11-01T17:18:58.000Z | src/protocols/create_water_container/protocol.py | scottbecker/delve_tx_public | 387c461775e8a1f2c862fffe4b8fe1ce5178abc9 | [
"MIT"
] | null | null | null | src/protocols/create_water_container/protocol.py | scottbecker/delve_tx_public | 387c461775e8a1f2c862fffe4b8fe1ce5178abc9 | [
"MIT"
] | null | null | null | from __future__ import print_function
from transcriptic_tools.utils import ml, ul
from transcriptic_tools.harness import run
from transcriptic_tools.custom_protocol import CustomProtocol as Protocol
from autoprotocol.protocol import Container
def main(p, params):
assert isinstance(p, Protocol)
#create... | 34.105263 | 83 | 0.737654 | 78 | 648 | 5.807692 | 0.538462 | 0.10596 | 0.139073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16821 | 648 | 18 | 84 | 36 | 0.840445 | 0.027778 | 0 | 0 | 0 | 0 | 0.140127 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.083333 | false | 0 | 0.416667 | 0 | 0.5 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9471ac0abc19b69570775016de2881320c55a339 | 1,659 | py | Python | grip/model/test/test_dependency.py | Eugeny/grip | 76a2397a3ae7a2b599bba91b0dd8bf8999f91e38 | [
"MIT"
] | 16 | 2018-02-27T22:29:40.000Z | 2022-03-13T00:07:24.000Z | grip/model/test/test_dependency.py | Eugeny/grip | 76a2397a3ae7a2b599bba91b0dd8bf8999f91e38 | [
"MIT"
] | 2 | 2018-02-28T14:28:55.000Z | 2018-04-07T10:26:29.000Z | grip/model/test/test_dependency.py | Eugeny/grip | 76a2397a3ae7a2b599bba91b0dd8bf8999f91e38 | [
"MIT"
] | null | null | null | import pkg_resources
import unittest
from grip.model import Dependency, Version, Package
class TestDependency(unittest.TestCase):
def test_ctor_str(self):
dep = Dependency('django==2.0')
self.assertEqual(dep.name, 'django')
self.assertTrue(dep.matches_version('2.0'))
self.assertFal... | 33.857143 | 62 | 0.627486 | 213 | 1,659 | 4.788732 | 0.244131 | 0.061765 | 0.133333 | 0.088235 | 0.418627 | 0.326471 | 0.294118 | 0.207843 | 0.207843 | 0.207843 | 0 | 0.023901 | 0.218204 | 1,659 | 48 | 63 | 34.5625 | 0.762529 | 0 | 0 | 0.15 | 0 | 0 | 0.102471 | 0.015672 | 0 | 0 | 0 | 0 | 0.425 | 1 | 0.175 | false | 0 | 0.075 | 0 | 0.275 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9473e8b2a3f2e49046f7f7539bfbde1d08677f5e | 744 | py | Python | spongeauth/accounts/migrations/0004_create_dummy_group.py | felixoi/SpongeAuth | d44ee52d0b35b2e1909c7bf6bad29aa7b4835b26 | [
"MIT"
] | 10 | 2016-11-18T12:37:24.000Z | 2022-03-04T09:25:25.000Z | spongeauth/accounts/migrations/0004_create_dummy_group.py | felixoi/SpongeAuth | d44ee52d0b35b2e1909c7bf6bad29aa7b4835b26 | [
"MIT"
] | 794 | 2016-11-19T18:34:37.000Z | 2022-03-31T16:49:11.000Z | spongeauth/accounts/migrations/0004_create_dummy_group.py | PowerNukkit/OreAuth | 96a2926c9601fce6fac471bdb997077f07e8bf9a | [
"MIT"
] | 11 | 2016-11-26T22:30:17.000Z | 2022-03-16T17:20:14.000Z | # -*- coding: utf-8 -*-
# Creates "Dummy" group, used to flag dummy accounts created by API.
from __future__ import unicode_literals
from django.db import migrations
def forwards_func(apps, schema_editor):
Group = apps.get_model("accounts", "Group")
db_alias = schema_editor.connection.alias
Group.objects... | 29.76 | 68 | 0.740591 | 96 | 744 | 5.5 | 0.46875 | 0.090909 | 0.05303 | 0.075758 | 0.409091 | 0.409091 | 0.409091 | 0.409091 | 0.409091 | 0.409091 | 0 | 0.00774 | 0.13172 | 744 | 24 | 69 | 31 | 0.809598 | 0.11828 | 0 | 0.307692 | 0 | 0 | 0.102603 | 0.035222 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
947ab38813087f722d3824b4dfacd19636a50398 | 2,752 | py | Python | task1/clean.py | Save404/captcha | 70bf55285f2cf6102bac7995c9f782b640bd9f53 | [
"MIT"
] | 3 | 2018-01-16T13:24:05.000Z | 2018-06-02T07:39:32.000Z | task1/clean.py | save404/captcha | 70bf55285f2cf6102bac7995c9f782b640bd9f53 | [
"MIT"
] | null | null | null | task1/clean.py | save404/captcha | 70bf55285f2cf6102bac7995c9f782b640bd9f53 | [
"MIT"
] | 1 | 2018-03-28T10:52:21.000Z | 2018-03-28T10:52:21.000Z | #-*- coding: utf-8 -*-
import os
from PIL import Image, ImageDraw, ImageEnhance
def denoise(img):
im = Image.open(img)
enhancer = ImageEnhance.Contrast(im)
im = enhancer.enhance(3)
im = im.convert('1')
data = im.getdata()
w, h = im.size
for x in range(1, w-1):
l = []
... | 25.719626 | 67 | 0.350291 | 344 | 2,752 | 2.77907 | 0.200581 | 0.073222 | 0.066946 | 0.037657 | 0.412134 | 0.330544 | 0.330544 | 0.330544 | 0.330544 | 0.330544 | 0 | 0.058113 | 0.518532 | 2,752 | 106 | 68 | 25.962264 | 0.663396 | 0.009811 | 0 | 0.423529 | 0 | 0 | 0.016073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023529 | false | 0 | 0.023529 | 0 | 0.058824 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
947f2c4af2604b6301b6fc28e121b99a95ebeadb | 6,068 | py | Python | src/python/Tools/vcfcallerinfo.py | Steven-N-Hart/hap.py | d418d4fda2dc17533bb4313ec0acda4c01884b37 | [
"BSL-1.0"
] | null | null | null | src/python/Tools/vcfcallerinfo.py | Steven-N-Hart/hap.py | d418d4fda2dc17533bb4313ec0acda4c01884b37 | [
"BSL-1.0"
] | null | null | null | src/python/Tools/vcfcallerinfo.py | Steven-N-Hart/hap.py | d418d4fda2dc17533bb4313ec0acda4c01884b37 | [
"BSL-1.0"
] | null | null | null | # coding=utf-8
#
# Copyright (c) 2010-2015 Illumina, Inc.
# All rights reserved.
#
# This file is distributed under the simplified BSD license.
# The full text can be found here (and in LICENSE.txt in the root folder of
# this distribution):
#
# https://github.com/sequencing/licenses/blob/master/Simplified-BSD-License.... | 34.282486 | 89 | 0.426664 | 576 | 6,068 | 4.454861 | 0.3125 | 0.038971 | 0.021434 | 0.0265 | 0.291115 | 0.268511 | 0.228761 | 0.201871 | 0.201871 | 0.201871 | 0 | 0.01058 | 0.454845 | 6,068 | 176 | 90 | 34.477273 | 0.765115 | 0.105307 | 0 | 0.5 | 0 | 0 | 0.109827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036232 | false | 0.072464 | 0.043478 | 0.007246 | 0.101449 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
948bc490494902a2f6524d9e1ead5cfdd6930061 | 4,712 | py | Python | ElevatorBot_old/slashCommands/externalWebsites.py | LukasSchmid97/destinyBloodoakStats | 1420802ce01c3435ad5c283f44eb4531d9b22c38 | [
"MIT"
] | 3 | 2019-10-19T11:24:50.000Z | 2021-01-29T12:02:17.000Z | ElevatorBot_old/slashCommands/externalWebsites.py | LukasSchmid97/destinyBloodoakStats | 1420802ce01c3435ad5c283f44eb4531d9b22c38 | [
"MIT"
] | 29 | 2019-10-14T12:26:10.000Z | 2021-07-28T20:50:29.000Z | ElevatorBot_old/slashCommands/externalWebsites.py | LukasSchmid97/destinyBloodoakStats | 1420802ce01c3435ad5c283f44eb4531d9b22c38 | [
"MIT"
] | 2 | 2019-10-13T17:11:09.000Z | 2020-05-13T15:29:04.000Z | from discord.ext import commands
from discord_slash import cog_ext, SlashContext, ButtonStyle
from discord_slash.utils import manage_components
from discord_slash.utils.manage_commands import create_option, create_choice
from ElevatorBot.backendNetworking.destinyPlayer import DestinyPlayer
from ElevatorBot.backendNetw... | 52.355556 | 127 | 0.612903 | 491 | 4,712 | 5.716904 | 0.230143 | 0.120413 | 0.0684 | 0.111151 | 0.262558 | 0.262558 | 0.241895 | 0.241895 | 0.225151 | 0.114001 | 0 | 0.002872 | 0.261036 | 4,712 | 89 | 128 | 52.94382 | 0.802987 | 0.768464 | 0 | 0 | 0 | 0 | 0.005888 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.538462 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
948e456be912aa86619eca7800f3e55007d51b07 | 780 | py | Python | apps/panel/migrations/0004_log.py | ivall/IVmonitor | 8a217cb3cc00a44d7c577ec61a90c77cc7c22959 | [
"MIT"
] | 190 | 2021-02-06T10:47:54.000Z | 2022-02-15T23:45:07.000Z | apps/panel/migrations/0004_log.py | ivall/IVmonitor | 8a217cb3cc00a44d7c577ec61a90c77cc7c22959 | [
"MIT"
] | null | null | null | apps/panel/migrations/0004_log.py | ivall/IVmonitor | 8a217cb3cc00a44d7c577ec61a90c77cc7c22959 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2021-02-05 09:15
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('panel', '0003_auto_20210205_0955'),
]
operations = [
migrations.CreateModel(
... | 31.2 | 125 | 0.623077 | 85 | 780 | 5.611765 | 0.682353 | 0.050314 | 0.0587 | 0.092243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054329 | 0.244872 | 780 | 24 | 126 | 32.5 | 0.755518 | 0.057692 | 0 | 0 | 1 | 0 | 0.106412 | 0.031378 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8469a5028532c8888aebd60c89fadfa359695022 | 842 | py | Python | setup.py | jneight/pydup | 6c8920ce15a0e7dfec76853f4cfdaa210073127f | [
"Apache-2.0"
] | 1 | 2015-06-24T07:35:36.000Z | 2015-06-24T07:35:36.000Z | setup.py | jneight/pydup | 6c8920ce15a0e7dfec76853f4cfdaa210073127f | [
"Apache-2.0"
] | null | null | null | setup.py | jneight/pydup | 6c8920ce15a0e7dfec76853f4cfdaa210073127f | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
from setuptools import setup, find_packages
setup(
name='pydup',
version='0.11',
install_requires=[],
url='https://github.com/jneight/pydup',
description='Simple implementation of LSH Algorithm',
packages=find_packages(),
include_package_data=True... | 32.384615 | 65 | 0.584323 | 78 | 842 | 6.230769 | 0.75641 | 0.117284 | 0.154321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015228 | 0.2981 | 842 | 25 | 66 | 33.68 | 0.807107 | 0.014252 | 0 | 0 | 0 | 0 | 0.464976 | 0.031401 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8469c0cd336aa56f902dc651305fc03f45d64e8d | 1,510 | py | Python | app/core/tests/test_admin.py | avinashgundala/recipe-app-api | acaf1dc792300a68b026d4f84ef407e478dcecb7 | [
"MIT"
] | 1 | 2019-08-25T14:16:14.000Z | 2019-08-25T14:16:14.000Z | app/core/tests/test_admin.py | avinashgundala/recipe-app-api | acaf1dc792300a68b026d4f84ef407e478dcecb7 | [
"MIT"
] | null | null | null | app/core/tests/test_admin.py | avinashgundala/recipe-app-api | acaf1dc792300a68b026d4f84ef407e478dcecb7 | [
"MIT"
] | null | null | null | from django.test import TestCase,Client
from django.contrib.auth import get_user_model
from django.urls import reverse
class AdminSiteTest(TestCase):
"""testing admin site interface"""
def setup(self):
"""setting up superuser and user for admin page access"""
self.client = Client()
self... | 35.116279 | 68 | 0.598013 | 173 | 1,510 | 5.075145 | 0.352601 | 0.056948 | 0.041002 | 0.06492 | 0.386105 | 0.234624 | 0.136674 | 0.136674 | 0.136674 | 0.136674 | 0 | 0.015933 | 0.293377 | 1,510 | 42 | 69 | 35.952381 | 0.806935 | 0.106623 | 0 | 0.166667 | 0 | 0 | 0.095994 | 0.036281 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.133333 | false | 0.066667 | 0.1 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8469ff4ef5443b9f302da22089ff3f5ca989178d | 2,421 | py | Python | spatialpooch/_vector.py | achapkowski/spatial-pooch | e2525678d1b5f6acadfb53de43d8a10cf30d6ec9 | [
"Apache-2.0"
] | 1 | 2020-04-02T16:44:03.000Z | 2020-04-02T16:44:03.000Z | spatialpooch/_vector.py | achapkowski/spatial-pooch | e2525678d1b5f6acadfb53de43d8a10cf30d6ec9 | [
"Apache-2.0"
] | null | null | null | spatialpooch/_vector.py | achapkowski/spatial-pooch | e2525678d1b5f6acadfb53de43d8a10cf30d6ec9 | [
"Apache-2.0"
] | null | null | null | import os
import importlib
import pooch
from pooch import Unzip
from ._spooch import SPATIALPOOCH as _GOODBOY
###########################################################################
allowed_formats = {
"pandas" : False,
"numpy" : False,
"string" : True,
"sedf" : False
}
##########################... | 39.688525 | 75 | 0.498967 | 257 | 2,421 | 4.560311 | 0.276265 | 0.059727 | 0.046928 | 0.055461 | 0.400171 | 0.326792 | 0.280717 | 0.210751 | 0.180034 | 0.180034 | 0 | 0 | 0.160264 | 2,421 | 61 | 76 | 39.688525 | 0.576488 | 0.225114 | 0 | 0.116279 | 0 | 0 | 0.130703 | 0.05857 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116279 | false | 0 | 0.255814 | 0 | 0.55814 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
84701bd60cf1ec712e2c6f158410202e8b6dfec6 | 1,174 | py | Python | examen_2_sim02/p5/p5.py | Munoz-Rojas-Adriana/Computacion_para_Ingenieria | 4f695887966a94b6c422d100c2c4ec4a94d1e80e | [
"Apache-2.0"
] | null | null | null | examen_2_sim02/p5/p5.py | Munoz-Rojas-Adriana/Computacion_para_Ingenieria | 4f695887966a94b6c422d100c2c4ec4a94d1e80e | [
"Apache-2.0"
] | null | null | null | examen_2_sim02/p5/p5.py | Munoz-Rojas-Adriana/Computacion_para_Ingenieria | 4f695887966a94b6c422d100c2c4ec4a94d1e80e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 17 00:39:13 2022
@author: ACER
"""
Clase Vehiculo :
def __init__ ( self , color , marca ):
uno mismo color = color
uno mismo marca = marca
def mostrarse ( self ):
print ( f"la marca { self . marca } y color { self . color } " )
... | 29.35 | 102 | 0.593697 | 132 | 1,174 | 5.075758 | 0.401515 | 0.083582 | 0.065672 | 0.071642 | 0.198507 | 0.167164 | 0 | 0 | 0 | 0 | 0 | 0.022059 | 0.30494 | 1,174 | 40 | 103 | 29.35 | 0.79902 | 0 | 0 | 0.083333 | 0 | 0 | 0.156309 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
84792bf28d61bc9a6d65435f1daab2b85a79a5bb | 8,296 | py | Python | opts.py | YBZh/Label-Propagation-with-Augmented-Anchors | 83c6d0ecaa1c7f79a7dfbbd9fe0cd367c695ead8 | [
"MIT"
] | 18 | 2020-07-18T15:34:19.000Z | 2021-06-07T01:32:52.000Z | opts.py | Gorilla-Lab-SCUT/Label-Propagation-with-Augmented-Anchors | 83c6d0ecaa1c7f79a7dfbbd9fe0cd367c695ead8 | [
"MIT"
] | null | null | null | opts.py | Gorilla-Lab-SCUT/Label-Propagation-with-Augmented-Anchors | 83c6d0ecaa1c7f79a7dfbbd9fe0cd367c695ead8 | [
"MIT"
] | 4 | 2020-10-05T08:00:32.000Z | 2021-03-26T19:29:58.000Z | import argparse
def opts():
parser = argparse.ArgumentParser(description='Train alexnet on the cub200 dataset',
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('--data_path_source', type=str, default='',
help='Root of tra... | 71.517241 | 140 | 0.67418 | 1,110 | 8,296 | 4.891892 | 0.236036 | 0.11768 | 0.222284 | 0.055985 | 0.35709 | 0.309392 | 0.227256 | 0.187477 | 0.163536 | 0.140331 | 0 | 0.014395 | 0.162608 | 8,296 | 115 | 141 | 72.13913 | 0.767238 | 0.00663 | 0 | 0.031579 | 0 | 0 | 0.381924 | 0.002794 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010526 | false | 0 | 0.010526 | 0 | 0.031579 | 0.031579 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8485a76f0f185c67ac4884b84816e76848a22a12 | 924 | py | Python | aws/context.py | robertcsapo/aws-lambda-python-local | 4dff9b3916983d4f3948aa703f63506c8fc0a74e | [
"MIT"
] | null | null | null | aws/context.py | robertcsapo/aws-lambda-python-local | 4dff9b3916983d4f3948aa703f63506c8fc0a74e | [
"MIT"
] | null | null | null | aws/context.py | robertcsapo/aws-lambda-python-local | 4dff9b3916983d4f3948aa703f63506c8fc0a74e | [
"MIT"
] | null | null | null | import uuid
from datetime import date
import os
import humanize
class Context:
def __init__(self, function_name, function_version):
self.function_name = function_name
self.function_version = function_version
self.invoked_function_arn = "arn:aws:lambda:eu-north-1:000000000000:function:{}".f... | 38.5 | 130 | 0.695887 | 121 | 924 | 5.049587 | 0.446281 | 0.11784 | 0.104746 | 0.08347 | 0.09329 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045093 | 0.183983 | 924 | 23 | 131 | 40.173913 | 0.765252 | 0 | 0 | 0.1 | 0 | 0 | 0.170996 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
848df6cdb5591c1c782ed4f52b780428ed07f179 | 8,224 | py | Python | contas/forms.py | Setti7/itaipu | 1e97a485a5afbedc3d2614e1175e9413d8a228bb | [
"MIT"
] | 1 | 2019-01-13T01:35:02.000Z | 2019-01-13T01:35:02.000Z | contas/forms.py | Setti7/itaipu | 1e97a485a5afbedc3d2614e1175e9413d8a228bb | [
"MIT"
] | 13 | 2019-01-13T00:00:06.000Z | 2022-03-11T23:38:54.000Z | contas/forms.py | Setti7/itaipu | 1e97a485a5afbedc3d2614e1175e9413d8a228bb | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth import (
password_validation,
)
from django.contrib.sites.shortcuts import get_current_site
from django.core.mail import send_mail
from django.forms import widgets
from django.template import loader
from django.utils.encoding import force_bytes
from django.utils.htt... | 31.875969 | 121 | 0.603234 | 906 | 8,224 | 5.289183 | 0.232892 | 0.039023 | 0.040693 | 0.026294 | 0.287354 | 0.234349 | 0.167362 | 0.119366 | 0.119366 | 0.119366 | 0 | 0.008315 | 0.283439 | 8,224 | 258 | 122 | 31.875969 | 0.804853 | 0.011308 | 0 | 0.259067 | 0 | 0 | 0.128631 | 0.021787 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056995 | false | 0.11399 | 0.062176 | 0 | 0.295337 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
84909ff99f6980e308d08a716482de609078b34e | 1,993 | py | Python | dissononce/processing/impl/cipherstate.py | dineshks1/dissononce | 154297aba0e9fdedad9279278f748bd8e4f790c6 | [
"MIT"
] | 34 | 2019-04-18T03:35:51.000Z | 2022-03-20T13:35:04.000Z | dissononce/processing/impl/cipherstate.py | dineshks1/dissononce | 154297aba0e9fdedad9279278f748bd8e4f790c6 | [
"MIT"
] | 2 | 2019-04-24T06:42:33.000Z | 2019-07-17T19:40:40.000Z | dissononce/processing/impl/cipherstate.py | dineshks1/dissononce | 154297aba0e9fdedad9279278f748bd8e4f790c6 | [
"MIT"
] | 16 | 2019-05-02T08:29:17.000Z | 2021-12-06T22:50:37.000Z | class CipherState(object):
def __init__(self, cipher):
"""
:param cipher:
:type cipher: dissononce.cipher.Cipher
"""
self._cipher = cipher
self._key = None
self._nonce = 0
@property
def cipher(self):
return self._cipher
def initialize_key... | 26.223684 | 96 | 0.567988 | 231 | 1,993 | 4.761905 | 0.290043 | 0.063636 | 0.04 | 0.021818 | 0.189091 | 0.116364 | 0 | 0 | 0 | 0 | 0 | 0.003033 | 0.338184 | 1,993 | 75 | 97 | 26.573333 | 0.830933 | 0.3713 | 0 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0 | 0 | 0.068966 | 0.517241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
849afac22d53ce8ae08c84828c01649662768d0e | 9,537 | py | Python | bin/fetch_operon_genbank_restapi.py | grimmlab/transcriptional-translational-coupling | 3dec2d7c25973b4c37f1810468d4778726f96f0f | [
"MIT"
] | null | null | null | bin/fetch_operon_genbank_restapi.py | grimmlab/transcriptional-translational-coupling | 3dec2d7c25973b4c37f1810468d4778726f96f0f | [
"MIT"
] | null | null | null | bin/fetch_operon_genbank_restapi.py | grimmlab/transcriptional-translational-coupling | 3dec2d7c25973b4c37f1810468d4778726f96f0f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#!/usr/bin/python3
__author__ = "Richa Bharti, Dominik Grimm"
__copyright__ = "Copyright 2019-2022"
__license__ = "MIT"
__version__ = "0.1.0"
__maintainer__ = "Richa Bharti, Dominik Grimm"
__email__ = "richabharti74@gmail.com"
__status__ = "Dev"
import requests
import json
impor... | 38.611336 | 1,182 | 0.666876 | 1,340 | 9,537 | 4.529104 | 0.270149 | 0.01071 | 0.0145 | 0.013182 | 0.22409 | 0.177459 | 0.110397 | 0.096886 | 0.066568 | 0.057011 | 0 | 0.031908 | 0.198176 | 9,537 | 246 | 1,183 | 38.768293 | 0.761737 | 0.290762 | 0 | 0.186047 | 0 | 0.007752 | 0.294318 | 0.021985 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.100775 | 0 | 0.100775 | 0.069767 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
84a441724b741d9ed91f44d75d8e23c6930ecb9d | 791 | py | Python | compressor/simple/seven.py | httpwg/compression-test | 27b2c0ed33dabeab08cbe3c9e35e1ded73fe4507 | [
"BSD-3-Clause"
] | 11 | 2015-03-14T21:03:10.000Z | 2019-04-16T09:03:38.000Z | compressor/simple/seven.py | httpwg/compression-test | 27b2c0ed33dabeab08cbe3c9e35e1ded73fe4507 | [
"BSD-3-Clause"
] | 1 | 2020-03-14T04:17:49.000Z | 2020-03-14T04:17:49.000Z | compressor/simple/seven.py | httpwg/compression-test | 27b2c0ed33dabeab08cbe3c9e35e1ded73fe4507 | [
"BSD-3-Clause"
] | 4 | 2015-03-16T23:55:29.000Z | 2020-03-14T01:31:04.000Z | #!/usr/bin/env python
"""
Serialise ASCII as seven bits.
Yes, I threw up a bit too.
"""
from bitarray import bitarray
def encode(text):
ba = bitarray()
out = bitarray()
ba.fromstring(text)
s = 0
while s < len(ba):
byte = ba[s:s+8]
out.extend(byte[1:8])
s += 8
# print out
return out.tobytes(... | 17.977273 | 56 | 0.587863 | 127 | 791 | 3.598425 | 0.433071 | 0.035011 | 0.056893 | 0.091904 | 0.157549 | 0.056893 | 0 | 0 | 0 | 0 | 0 | 0.018062 | 0.230089 | 791 | 43 | 57 | 18.395349 | 0.732348 | 0.039191 | 0 | 0.266667 | 0 | 0 | 0.065029 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0 | null | null | 0 | 0.066667 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
84a4433188dc415bc41ca6719a6acc6df32cf9a3 | 6,726 | py | Python | setup.py | andsor/pyggcq | 672b10bdeaa79d82cb4a1bf50169196334b162de | [
"Apache-2.0"
] | 1 | 2016-10-31T10:29:23.000Z | 2016-10-31T10:29:23.000Z | setup.py | andsor/pyggcq | 672b10bdeaa79d82cb4a1bf50169196334b162de | [
"Apache-2.0"
] | 3 | 2015-02-15T16:13:27.000Z | 2015-02-16T08:47:51.000Z | setup.py | andsor/pyggcq | 672b10bdeaa79d82cb4a1bf50169196334b162de | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Setup file for ggcq.
This file was generated with PyScaffold 1.2, a tool that easily
puts up a scaffold for your new Python project. Learn more under:
http://pyscaffold.readthedocs.org/
"""
import inspect
import os
import sys
from distutils.cmd import ... | 31.283721 | 79 | 0.618198 | 751 | 6,726 | 5.348868 | 0.343542 | 0.024396 | 0.017426 | 0.020911 | 0.124471 | 0.094598 | 0.094598 | 0.094598 | 0.074683 | 0.074683 | 0 | 0.004029 | 0.261968 | 6,726 | 214 | 80 | 31.429907 | 0.805197 | 0.114481 | 0 | 0.104575 | 1 | 0 | 0.167793 | 0.007435 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084967 | false | 0.006536 | 0.098039 | 0.006536 | 0.27451 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
84a4be0287efed8b787c4c7b5ae35db8b3832686 | 12,688 | py | Python | audb/core/info.py | audeering/audb | 6174d8c03676dd3a868572393c3cb8c295da6f04 | [
"MIT"
] | 1 | 2022-03-17T10:36:23.000Z | 2022-03-17T10:36:23.000Z | audb/core/info.py | audeering/audb | 6174d8c03676dd3a868572393c3cb8c295da6f04 | [
"MIT"
] | 143 | 2021-04-07T13:00:00.000Z | 2022-03-29T08:53:59.000Z | audb/core/info.py | audeering/audb | 6174d8c03676dd3a868572393c3cb8c295da6f04 | [
"MIT"
] | null | null | null | import typing
import pandas as pd
import audformat
from audb.core import define
from audb.core.api import (
dependencies,
latest_version,
)
from audb.core.load import (
database_cache_folder,
load_header,
)
def author(
name: str,
*,
version: str = None,
cache_root: s... | 22.985507 | 93 | 0.584489 | 1,523 | 12,688 | 4.776756 | 0.103743 | 0.122474 | 0.075052 | 0.046735 | 0.723849 | 0.686735 | 0.678351 | 0.678351 | 0.678351 | 0.668179 | 0 | 0.012654 | 0.308638 | 12,688 | 551 | 94 | 23.027223 | 0.816689 | 0.526639 | 0 | 0.652174 | 0 | 0 | 0.000201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108696 | false | 0 | 0.032609 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
84ac26b57039c9020c777516e0106f0a2c771bef | 1,161 | py | Python | src/controls/array_control.py | furbrain/CVExplorer | 1283e3320ef7bb610b1044543614dd1b96740e52 | [
"MIT"
] | null | null | null | src/controls/array_control.py | furbrain/CVExplorer | 1283e3320ef7bb610b1044543614dd1b96740e52 | [
"MIT"
] | null | null | null | src/controls/array_control.py | furbrain/CVExplorer | 1283e3320ef7bb610b1044543614dd1b96740e52 | [
"MIT"
] | null | null | null | from typing import Optional, TYPE_CHECKING
import wx
if TYPE_CHECKING:
from gui.pane import FunctionPane
# noinspection PyPep8Naming
class ArrayControl(wx.ComboBox):
# noinspection PyShadowingBuiltins
def __init__(self, parent, id):
from functions import Function
choices = list(Function.g... | 30.552632 | 80 | 0.656331 | 133 | 1,161 | 5.616541 | 0.428571 | 0.028112 | 0.029451 | 0.045515 | 0.077644 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003452 | 0.251507 | 1,161 | 37 | 81 | 31.378378 | 0.856157 | 0.049957 | 0 | 0.071429 | 0 | 0 | 0.054545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.214286 | 0.035714 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
84b0aff615cce4f1aaab81f8e0340b9200499fa1 | 629 | py | Python | leetcode/LCP_40.py | zhaipro/acm | b12a33ddcc19460491bec275f7ef77760bafaa9f | [
"MIT"
] | null | null | null | leetcode/LCP_40.py | zhaipro/acm | b12a33ddcc19460491bec275f7ef77760bafaa9f | [
"MIT"
] | 1 | 2019-07-13T13:51:58.000Z | 2020-01-03T01:35:55.000Z | leetcode/LCP_40.py | zhaipro/acm | b12a33ddcc19460491bec275f7ef77760bafaa9f | [
"MIT"
] | 1 | 2020-01-15T05:31:05.000Z | 2020-01-15T05:31:05.000Z | class Solution:
def maxmiumScore(self, cards: List[int], cnt: int) -> int:
cards.sort()
r = sum(cards[-cnt:])
if r % 2 == 0:
return r
r0 = 0
r1 = 0
try:
x0 = next(x for x in cards[-cnt:] if x % 2 == 0)
y1 = next(x for x in cards[-cn... | 28.590909 | 67 | 0.399046 | 95 | 629 | 2.642105 | 0.326316 | 0.159363 | 0.12749 | 0.143426 | 0.38247 | 0.38247 | 0.38247 | 0.38247 | 0.38247 | 0.38247 | 0 | 0.083832 | 0.468998 | 629 | 21 | 68 | 29.952381 | 0.667665 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.095238 | 0 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
84b1afdc5e38293a0c0bfa6eb004d8bcfbe0eb8a | 786 | py | Python | backend/models.py | nhatnxn/layout_GateGCN | 66ead2482fc5148668cfc776e0a3ac03d916e897 | [
"MIT"
] | 17 | 2021-11-08T09:39:32.000Z | 2022-03-15T02:14:40.000Z | backend/models.py | nhatnxn/layout_GateGCN | 66ead2482fc5148668cfc776e0a3ac03d916e897 | [
"MIT"
] | 1 | 2021-11-11T15:36:36.000Z | 2021-11-15T07:44:58.000Z | backend/models.py | nhatnxn/layout_GateGCN | 66ead2482fc5148668cfc776e0a3ac03d916e897 | [
"MIT"
] | 2 | 2022-01-18T07:10:45.000Z | 2022-02-25T09:37:49.000Z | import torch
from vietocr.tool.config import Cfg
from vietocr.tool.predictor import Predictor
import configs as cf
from models.saliency.u2net import U2NETP
from backend.text_detect.craft_utils import get_detector
def load_text_detect():
text_detector = get_detector(cf.text_detection_weights_path, cf.device)
... | 25.354839 | 84 | 0.744275 | 110 | 786 | 5.109091 | 0.427273 | 0.05694 | 0.053381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00905 | 0.156489 | 786 | 30 | 85 | 26.2 | 0.838612 | 0 | 0 | 0 | 0 | 0 | 0.062341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
84b42a1c4c057982b3d64328604ad7e21949593f | 2,182 | py | Python | shadon/testsToken.py | subbc/devops_jkweb | 168ca786ecb77bec499eacf9710e63b3c46b1e34 | [
"Apache-2.0"
] | null | null | null | shadon/testsToken.py | subbc/devops_jkweb | 168ca786ecb77bec499eacf9710e63b3c46b1e34 | [
"Apache-2.0"
] | null | null | null | shadon/testsToken.py | subbc/devops_jkweb | 168ca786ecb77bec499eacf9710e63b3c46b1e34 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/evn python
# -*- coding:utf-8 -*-
from shadon.tsetsHttp import testsHttp
from shadon.testsConfig import testsConfig
import os
class testsToken():
def __init__(self):
self.url = '/oauth/authorizationServer/accessToken'
self.mytestsConfig = testsConfig()
self.mytestsConfig.getCon... | 35.770492 | 221 | 0.634739 | 239 | 2,182 | 5.661088 | 0.317992 | 0.18847 | 0.048041 | 0.059128 | 0.211382 | 0.211382 | 0.159645 | 0.159645 | 0.159645 | 0.109387 | 0 | 0.000595 | 0.230064 | 2,182 | 61 | 222 | 35.770492 | 0.804762 | 0.026123 | 0 | 0.148936 | 0 | 0 | 0.139491 | 0.017908 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085106 | false | 0.191489 | 0.06383 | 0 | 0.191489 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
84b8e52431e5b086b1c8231ef21a6d92898257ae | 1,755 | py | Python | scripts/test_velocity.py | done-jithinlal/ubiquity_motor | fae8a005d27aadc17ff4f648b815e09864f5834a | [
"BSD-3-Clause"
] | null | null | null | scripts/test_velocity.py | done-jithinlal/ubiquity_motor | fae8a005d27aadc17ff4f648b815e09864f5834a | [
"BSD-3-Clause"
] | null | null | null | scripts/test_velocity.py | done-jithinlal/ubiquity_motor | fae8a005d27aadc17ff4f648b815e09864f5834a | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# VELOCITY can be positive (driving forward) or negative (driving backward)
VELOCITY = 0.2
# Initial turn angle (Z axis)
ANGLE = 0.0
import rospy
from geometry_msgs.msg import Twist,Point
from nav_msgs.msg import Odometry
rospy.init_node('slow_motion', anonymous=True)
last_t = None
last_pos ... | 22.792208 | 106 | 0.594872 | 226 | 1,755 | 4.424779 | 0.424779 | 0.042 | 0.026 | 0.038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022091 | 0.226211 | 1,755 | 77 | 107 | 22.792208 | 0.714286 | 0.098006 | 0 | 0 | 0 | 0 | 0.162761 | 0.077264 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.022222 | 0.066667 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
84bf5b6a5c8fe165893bd3db712a69df68e62900 | 2,816 | py | Python | helpers/team_manipulator.py | enterstudio/the-blue-alliance | b53f752fe1f059b4b6f91c841e1865a6c6b81268 | [
"MIT"
] | null | null | null | helpers/team_manipulator.py | enterstudio/the-blue-alliance | b53f752fe1f059b4b6f91c841e1865a6c6b81268 | [
"MIT"
] | null | null | null | helpers/team_manipulator.py | enterstudio/the-blue-alliance | b53f752fe1f059b4b6f91c841e1865a6c6b81268 | [
"MIT"
] | null | null | null | import logging
from google.appengine.api import search
from helpers.cache_clearer import CacheClearer
from helpers.location_helper import LocationHelper
from helpers.manipulator_base import ManipulatorBase
from helpers.search_helper import SearchHelper
class TeamManipulator(ManipulatorBase):
"""
Handle Team... | 35.2 | 107 | 0.617188 | 333 | 2,816 | 5.015015 | 0.384384 | 0.046108 | 0.054491 | 0.050898 | 0.223952 | 0.167665 | 0.167665 | 0.167665 | 0.167665 | 0 | 0 | 0.004073 | 0.302557 | 2,816 | 79 | 108 | 35.64557 | 0.846232 | 0.121449 | 0 | 0.12766 | 0 | 0 | 0.061175 | 0.012524 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12766 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
84c03be821086dec35c0a9c4f3e3f0898bc2b86e | 1,867 | py | Python | lcm/lcm/nf_pm/serializers/create_thresho_id_request.py | onap/vfc-gvnfm-vnflcm | e3127fee0fdb5bf193fddc74a69312363a6d20eb | [
"Apache-2.0"
] | 1 | 2019-04-02T03:15:20.000Z | 2019-04-02T03:15:20.000Z | lcm/lcm/nf_pm/serializers/create_thresho_id_request.py | onap/vfc-gvnfm-vnflcm | e3127fee0fdb5bf193fddc74a69312363a6d20eb | [
"Apache-2.0"
] | null | null | null | lcm/lcm/nf_pm/serializers/create_thresho_id_request.py | onap/vfc-gvnfm-vnflcm | e3127fee0fdb5bf193fddc74a69312363a6d20eb | [
"Apache-2.0"
] | 1 | 2021-10-15T15:26:47.000Z | 2021-10-15T15:26:47.000Z | # Copyright (c) 2019, CMCC Technologies Co., Ltd.
#
# 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 ... | 53.342857 | 109 | 0.665774 | 201 | 1,867 | 6.124378 | 0.547264 | 0.048741 | 0.05524 | 0.068237 | 0.112916 | 0.091795 | 0.063363 | 0 | 0 | 0 | 0 | 0.005878 | 0.271023 | 1,867 | 34 | 110 | 54.911765 | 0.898604 | 0.305303 | 0 | 0 | 0 | 0 | 0.201091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
84c0fd4b8d55211031cbbf83a4719e95f07d033c | 927 | py | Python | hummingbot/strategy/dev_0_hello_world/start.py | cardosofede/hummingbot | d1df085bb879a06a7dc77d4fdc8ff6f13d8726ca | [
"Apache-2.0"
] | 542 | 2021-12-17T22:34:31.000Z | 2022-03-31T14:36:23.000Z | hummingbot/strategy/dev_0_hello_world/start.py | cardosofede/hummingbot | d1df085bb879a06a7dc77d4fdc8ff6f13d8726ca | [
"Apache-2.0"
] | 291 | 2021-12-17T20:07:53.000Z | 2022-03-31T11:07:23.000Z | hummingbot/strategy/dev_0_hello_world/start.py | cardosofede/hummingbot | d1df085bb879a06a7dc77d4fdc8ff6f13d8726ca | [
"Apache-2.0"
] | 220 | 2021-12-17T12:41:23.000Z | 2022-03-31T23:03:22.000Z | #!/usr/bin/env python
from hummingbot.strategy.dev_0_hello_world.dev_0_hello_world_config_map import dev_0_hello_world_config_map
from hummingbot.strategy.dev_0_hello_world import HelloWorldStrategy
def start(self):
try:
exchange = dev_0_hello_world_config_map.get("exchange").value.lower()
tradin... | 38.625 | 107 | 0.645092 | 109 | 927 | 5.12844 | 0.385321 | 0.050089 | 0.112701 | 0.175313 | 0.350626 | 0.350626 | 0.268336 | 0 | 0 | 0 | 0 | 0.01034 | 0.269687 | 927 | 23 | 108 | 40.304348 | 0.815362 | 0.021575 | 0 | 0 | 0 | 0 | 0.067329 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
84d3886c329b97b8935339c3760c8f6c8ebfed11 | 27,197 | py | Python | ryu/app/network_awareness/shortest_forwarding.py | lzppp/mylearning | ec8e3756faacfa0195a0eee0f2305501d36e06c8 | [
"Apache-2.0"
] | null | null | null | ryu/app/network_awareness/shortest_forwarding.py | lzppp/mylearning | ec8e3756faacfa0195a0eee0f2305501d36e06c8 | [
"Apache-2.0"
] | null | null | null | ryu/app/network_awareness/shortest_forwarding.py | lzppp/mylearning | ec8e3756faacfa0195a0eee0f2305501d36e06c8 | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2016 Li Cheng at Beijing University of Posts
# and Telecommunications. www.muzixing.com
#
# 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/licens... | 42.628527 | 141 | 0.526676 | 3,143 | 27,197 | 4.347439 | 0.134267 | 0.016467 | 0.021004 | 0.024151 | 0.414154 | 0.359924 | 0.322673 | 0.301449 | 0.270785 | 0.26493 | 0 | 0.010852 | 0.373203 | 27,197 | 637 | 142 | 42.695447 | 0.790696 | 0.088833 | 0 | 0.225974 | 0 | 0 | 0.080877 | 0.009166 | 0 | 0 | 0 | 0.00157 | 0 | 0 | null | null | 0.002597 | 0.088312 | null | null | 0.007792 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
84d48152d5aa13cd1fce17d59c99df4335c171bf | 517 | py | Python | translation.py | ogg17/fb2translate | 93307f811269ed7d173bc469a0d823df8e725644 | [
"MIT"
] | null | null | null | translation.py | ogg17/fb2translate | 93307f811269ed7d173bc469a0d823df8e725644 | [
"MIT"
] | null | null | null | translation.py | ogg17/fb2translate | 93307f811269ed7d173bc469a0d823df8e725644 | [
"MIT"
] | null | null | null | import translators as ts
class BookType(enum.Enum):
fb2 = 0
epub = 1
class TranslateType(enum.Enum):
google = 0
yandex = 1
def text_translate(translate_type, text):
trans_text = ''
if translate_type == TranslateType.google:
trans_text = ts.google(text, from_language='en', to_languag... | 27.210526 | 96 | 0.700193 | 73 | 517 | 4.712329 | 0.424658 | 0.104651 | 0.151163 | 0.104651 | 0.267442 | 0.267442 | 0.267442 | 0.267442 | 0.267442 | 0.267442 | 0 | 0.01199 | 0.193424 | 517 | 19 | 97 | 27.210526 | 0.81295 | 0 | 0 | 0 | 0 | 0 | 0.015444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
84db330d18b75328cae45e745cdf8271e19a063f | 290 | py | Python | 650/main.py | JanaSabuj/Leetcode-solutions | 78d10926b15252a969df598fbf1f9b69b2760b79 | [
"MIT"
] | 13 | 2019-10-12T14:36:32.000Z | 2021-06-08T04:26:30.000Z | 650/main.py | JanaSabuj/Leetcode-solutions | 78d10926b15252a969df598fbf1f9b69b2760b79 | [
"MIT"
] | 1 | 2020-02-29T14:02:39.000Z | 2020-02-29T14:02:39.000Z | 650/main.py | JanaSabuj/Leetcode-solutions | 78d10926b15252a969df598fbf1f9b69b2760b79 | [
"MIT"
] | 3 | 2020-02-08T12:04:28.000Z | 2020-03-17T11:53:00.000Z | class Solution:
def minSteps(self, n: int) -> int:
sum = 0
# prime factorise
for i in range(2, int(sqrt(n)) + 1):
while n % i == 0:
n//= i;
sum += i
if n > 1:
sum += n
return sum | 24.166667 | 45 | 0.362069 | 36 | 290 | 2.916667 | 0.583333 | 0.038095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036232 | 0.524138 | 290 | 12 | 46 | 24.166667 | 0.724638 | 0.051724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
84de77b1e5ed1633f5732d4de5fdd9b3e40ff0a4 | 4,588 | py | Python | neural_network.py | will-cromar/needy | e5a86b8804b82cfb256500a227d1de6f4891fae9 | [
"MIT"
] | 4 | 2015-12-02T15:59:28.000Z | 2015-12-04T03:28:27.000Z | neural_network.py | will-cromar/needy | e5a86b8804b82cfb256500a227d1de6f4891fae9 | [
"MIT"
] | null | null | null | neural_network.py | will-cromar/needy | e5a86b8804b82cfb256500a227d1de6f4891fae9 | [
"MIT"
] | null | null | null | # Luke
from pybrain.datasets import SupervisedDataSet
from pybrain.tools.shortcuts import buildNetwork
from pybrain.supervised.trainers import BackpropTrainer
from pybrain.structure.modules import TanhLayer
from normalizer import normalize
from normalizer import denormalize
from price_parsing import *
from neural_netw... | 46.343434 | 193 | 0.742153 | 564 | 4,588 | 6.028369 | 0.319149 | 0.037059 | 0.057647 | 0.038824 | 0.233235 | 0.167353 | 0.122941 | 0.026471 | 0.026471 | 0 | 0 | 0.006976 | 0.187663 | 4,588 | 98 | 194 | 46.816327 | 0.905286 | 0.151918 | 0 | 0.12963 | 0 | 0 | 0.076653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.259259 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
84ee674ab5df5813c331f449992075b7dd472b73 | 691 | py | Python | miniworld/model/spatial/Node/DefaultNode.py | miniworld-project/miniworld_core | c591bad232b78eae99e8f55cb1b907c1e228484b | [
"MIT"
] | 5 | 2019-05-11T14:57:15.000Z | 2021-07-05T00:35:25.000Z | miniworld/model/spatial/Node/DefaultNode.py | miniworld-project/miniworld_core | c591bad232b78eae99e8f55cb1b907c1e228484b | [
"MIT"
] | 27 | 2017-03-17T07:11:02.000Z | 2019-05-26T23:36:56.000Z | miniworld/model/spatial/Node/DefaultNode.py | miniworld-project/miniworld_core | c591bad232b78eae99e8f55cb1b907c1e228484b | [
"MIT"
] | 6 | 2017-05-03T12:11:33.000Z | 2020-04-03T11:44:27.000Z | # encoding: utf-8
from miniworld.model.spatial.MovementPattern.RandomWalk import RandomWalk
from .AbstractNode import AbstractNode
__author__ = "Patrick Lampe"
__email__ = "uni at lampep.de"
class DefaultNode(AbstractNode):
"""
Attributes
----------
crnt_movement_pattern : Abstract... | 26.576923 | 82 | 0.693198 | 69 | 691 | 6.463768 | 0.550725 | 0.168161 | 0.127803 | 0.09417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001845 | 0.21563 | 691 | 25 | 83 | 27.64 | 0.821033 | 0.263386 | 0 | 0 | 0 | 0 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.090909 | 0.181818 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
84f9f841c1fe09aad0b864538fe8f2aa76fd1b32 | 714 | py | Python | Projects/Online Workouts/w3resource/Basic - Part-I/program-135.py | ivenpoker/Python-Projects | 2975e1bd687ec8dbcc7a4842c13466cb86292679 | [
"MIT"
] | 1 | 2019-09-23T15:51:45.000Z | 2019-09-23T15:51:45.000Z | Projects/Online Workouts/w3resource/Basic - Part-I/program-135.py | ivenpoker/Python-Projects | 2975e1bd687ec8dbcc7a4842c13466cb86292679 | [
"MIT"
] | 5 | 2021-02-08T20:47:19.000Z | 2022-03-12T00:35:44.000Z | Projects/Online Workouts/w3resource/Basic - Part-I/program-135.py | ivenpoker/Python-Projects | 2975e1bd687ec8dbcc7a4842c13466cb86292679 | [
"MIT"
] | null | null | null | # !/usr/bin/env python3
#######################################################################################
# #
# Program purpose: Print a variable without spaces between values. #
# Program Author : Happi... | 47.6 | 87 | 0.2493 | 37 | 714 | 4.594595 | 0.891892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020619 | 0.456583 | 714 | 14 | 88 | 51 | 0.417526 | 0.445378 | 0 | 0 | 0 | 0 | 0.308642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
17010c2dd800ad3fdfb5e5a7159d540018db499b | 9,105 | py | Python | ex_discrete_convolution.py | ZEXINLIU/Univariate_ttr_examples | 2de4e65d34641174ad00b06d62101dda848c7699 | [
"MIT"
] | null | null | null | ex_discrete_convolution.py | ZEXINLIU/Univariate_ttr_examples | 2de4e65d34641174ad00b06d62101dda848c7699 | [
"MIT"
] | null | null | null | ex_discrete_convolution.py | ZEXINLIU/Univariate_ttr_examples | 2de4e65d34641174ad00b06d62101dda848c7699 | [
"MIT"
] | null | null | null | import numpy as np
from UncertainSCI.ttr import predict_correct_discrete, stieltjes_discrete, \
aPC, hankel_deter, mod_cheb, lanczos_stable
from UncertainSCI.utils.compute_moment import compute_moment_discrete
from UncertainSCI.families import JacobiPolynomials
from UncertainSCI.utils.verify_orthonormal import ... | 27.507553 | 76 | 0.576167 | 1,521 | 9,105 | 3.337278 | 0.224195 | 0.024823 | 0.024823 | 0.026005 | 0.339835 | 0.334515 | 0.281718 | 0.196217 | 0.169819 | 0.135934 | 0 | 0.242479 | 0.266227 | 9,105 | 330 | 77 | 27.590909 | 0.517288 | 0.107414 | 0 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052174 | false | 0 | 0.06087 | 0.017391 | 0.182609 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca052855dae94ae49b901206ffa68288e3011ad6 | 300 | py | Python | pacman-arch/test/pacman/tests/upgrade074.py | Maxython/pacman-for-termux | 3b208eb9274cbfc7a27fca673ea8a58f09ebad47 | [
"MIT"
] | 23 | 2021-05-21T19:11:06.000Z | 2022-03-31T18:14:20.000Z | source/pacman-6.0.1/test/pacman/tests/upgrade074.py | Scottx86-64/dotfiles-1 | 51004b1e2b032664cce6b553d2052757c286087d | [
"Unlicense"
] | 11 | 2021-05-21T12:08:44.000Z | 2021-12-21T08:30:08.000Z | source/pacman-6.0.1/test/pacman/tests/upgrade074.py | Scottx86-64/dotfiles-1 | 51004b1e2b032664cce6b553d2052757c286087d | [
"Unlicense"
] | 1 | 2021-09-26T08:44:40.000Z | 2021-09-26T08:44:40.000Z | self.description = "pkg2<2.0 dependency (satisfy)"
p = pmpkg("pkg1")
p.depends = ["pkg2<2.0"]
self.addpkg(p)
lp = pmpkg("pkg2", "1.9b-3")
self.addpkg2db("local", lp)
self.args = "-U %s" % p.filename()
self.addrule("PACMAN_RETCODE=0")
self.addrule("PKG_EXIST=pkg1")
self.addrule("PKG_EXIST=pkg2")
| 20 | 50 | 0.67 | 49 | 300 | 4.040816 | 0.55102 | 0.166667 | 0.060606 | 0.191919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055762 | 0.103333 | 300 | 14 | 51 | 21.428571 | 0.680297 | 0 | 0 | 0 | 0 | 0 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca09e09d5776eebe3a2c72b51564a6b8d9ba07b4 | 3,012 | py | Python | openedx_export_plugins/exporters/base.py | appsembler/openedx-export-plugins | b9d810509e7967047e9054d8b68c5fe3893c8f26 | [
"Apache-2.0"
] | 1 | 2021-03-11T22:06:23.000Z | 2021-03-11T22:06:23.000Z | openedx_export_plugins/exporters/base.py | appsembler/openedx-export-plugins | b9d810509e7967047e9054d8b68c5fe3893c8f26 | [
"Apache-2.0"
] | 2 | 2020-07-03T19:40:22.000Z | 2021-08-16T23:35:07.000Z | openedx_export_plugins/exporters/base.py | appsembler/openedx-export-plugins | b9d810509e7967047e9054d8b68c5fe3893c8f26 | [
"Apache-2.0"
] | null | null | null | """
Define an Exporter Plugin class providing
additional options to xmodule lib ExportManager
"""
import datetime
from lxml import etree
from xmodule.modulestore import xml_exporter
from .. import app_settings
from . import resolvers
class PluggableCourseExportManager(xml_exporter.CourseExportManager):
"""
... | 35.023256 | 141 | 0.688911 | 353 | 3,012 | 5.733711 | 0.436261 | 0.031621 | 0.023715 | 0.023715 | 0.136858 | 0.086957 | 0.061265 | 0.061265 | 0.061265 | 0.061265 | 0 | 0.000434 | 0.23506 | 3,012 | 85 | 142 | 35.435294 | 0.878038 | 0.329349 | 0 | 0.153846 | 0 | 0 | 0.007151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.128205 | 0 | 0.435897 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca0f0e224c0888416f0136aeccf6ec4aa1ab346a | 3,397 | py | Python | balsam/job_sources/JobInterface.py | hep-cce/hpc-edge-service | 57f2b9252d21d478eabe06cbdced5b623f08c75f | [
"BSD-3-Clause"
] | null | null | null | balsam/job_sources/JobInterface.py | hep-cce/hpc-edge-service | 57f2b9252d21d478eabe06cbdced5b623f08c75f | [
"BSD-3-Clause"
] | null | null | null | balsam/job_sources/JobInterface.py | hep-cce/hpc-edge-service | 57f2b9252d21d478eabe06cbdced5b623f08c75f | [
"BSD-3-Clause"
] | null | null | null | from common_core.MessageInterface import MessageInterface
from balsam_core.BalsamJobMessage import BalsamJobMessage
from balsam_core.job_sources.StatusMessage import StatusMessage
import logging,time,sys
logger = logging.getLogger(__name__)
class NoMoreJobs(Exception): pass
class JobListener:
''' opens message int... | 31.453704 | 124 | 0.622608 | 388 | 3,397 | 5.265464 | 0.329897 | 0.022026 | 0.029369 | 0.030837 | 0.191875 | 0.191875 | 0.16838 | 0.135095 | 0.135095 | 0.118453 | 0 | 0.00334 | 0.294966 | 3,397 | 107 | 125 | 31.747664 | 0.849687 | 0.096556 | 0 | 0.078947 | 0 | 0 | 0.106489 | 0.009983 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013158 | 0.052632 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca1b9a4e4c52931d9771b8bb45c5e056a164efae | 2,160 | py | Python | src/main/python/get_ip_ranges/source.py | jbowdre/SWIPAMforvRA8 | 80638898f36e208c36d7c5e498ad4e75ebe9a8db | [
"Apache-2.0"
] | null | null | null | src/main/python/get_ip_ranges/source.py | jbowdre/SWIPAMforvRA8 | 80638898f36e208c36d7c5e498ad4e75ebe9a8db | [
"Apache-2.0"
] | null | null | null | src/main/python/get_ip_ranges/source.py | jbowdre/SWIPAMforvRA8 | 80638898f36e208c36d7c5e498ad4e75ebe9a8db | [
"Apache-2.0"
] | null | null | null | """
Modified by John Bowdre to support Solarwinds IPAM
Initial release: 11/10/2020
Copyright (c) 2020 VMware, Inc.
This product is licensed to you under the Apache License, Version 2.0 (the "License").
You may not use this product except in compliance with the License.
This product may include a number of subcompone... | 37.894737 | 385 | 0.726389 | 275 | 2,160 | 5.618182 | 0.509091 | 0.012945 | 0.028479 | 0.025243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010011 | 0.167593 | 2,160 | 56 | 386 | 38.571429 | 0.849277 | 0.232407 | 0 | 0 | 0 | 0.030303 | 0.353939 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0.060606 | 0.151515 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ca22461956a0badb1be735c28e8e9c493095dd30 | 4,187 | py | Python | plugins/modules/saos8_facts.py | ciena/ciena.saos8 | c4d4b710fa3f1b14ebc19cc446e6f104ba8f6f2c | [
"Apache-2.0"
] | 2 | 2021-07-19T23:55:59.000Z | 2021-10-18T19:35:50.000Z | plugins/modules/saos8_facts.py | ciena/ciena.saos8 | c4d4b710fa3f1b14ebc19cc446e6f104ba8f6f2c | [
"Apache-2.0"
] | null | null | null | plugins/modules/saos8_facts.py | ciena/ciena.saos8 | c4d4b710fa3f1b14ebc19cc446e6f104ba8f6f2c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright 2019 Red Hat
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
"""
The module file for saos8_facts
"""
DOCUMENTATION = """
module: s... | 29.695035 | 101 | 0.749463 | 570 | 4,187 | 5.354386 | 0.329825 | 0.029489 | 0.041284 | 0.033421 | 0.322084 | 0.310288 | 0.259502 | 0.220839 | 0.220839 | 0.220839 | 0 | 0.012839 | 0.181514 | 4,187 | 140 | 102 | 29.907143 | 0.877736 | 0.051349 | 0 | 0.245455 | 0 | 0.009091 | 0.722435 | 0.07163 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009091 | false | 0 | 0.045455 | 0 | 0.054545 | 0.009091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca2447eb1fd11399913b9664c74f8bad6b7b0c4e | 2,886 | py | Python | scripts/howde_allsome_stats.py | rsharris/HowDeSBT-multi_make_bf | 4f45e27a9b70a8c470f80ede086c58c2683774f9 | [
"MIT"
] | 5 | 2018-12-20T00:15:30.000Z | 2022-03-21T11:33:54.000Z | scripts/howde_allsome_stats.py | rsharris/HowDeSBT-multi_make_bf | 4f45e27a9b70a8c470f80ede086c58c2683774f9 | [
"MIT"
] | 1 | 2020-02-05T22:28:47.000Z | 2020-02-05T22:28:47.000Z | scripts/howde_allsome_stats.py | rsharris/HowDeSBT-multi_make_bf | 4f45e27a9b70a8c470f80ede086c58c2683774f9 | [
"MIT"
] | 4 | 2020-06-12T11:44:21.000Z | 2021-05-02T21:37:40.000Z | #!/usr/bin/env python
"""
Compute some special stats in a howdesbt allsome tree.
"""
from sys import argv,stdin,stdout,stderr,exit
from howde_tree_parse import read_howde_tree_file
def usage(s=None):
message = """
usage: cat annotated_tree_file | howde_allsome_stats [options]
--table print the... | 28.294118 | 75 | 0.623354 | 387 | 2,886 | 4.594315 | 0.359173 | 0.050619 | 0.07874 | 0.011249 | 0.100112 | 0.069741 | 0.032621 | 0.032621 | 0.006749 | 0.006749 | 0 | 0.064174 | 0.24948 | 2,886 | 101 | 76 | 28.574257 | 0.756694 | 0.025988 | 0 | 0.088235 | 0 | 0.014706 | 0.415665 | 0.081239 | 0 | 0 | 0 | 0 | 0.044118 | 0 | null | null | 0 | 0.029412 | null | null | 0.088235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca2a0c78d9ad8c5c52cd298cbf86037b52dff0f0 | 1,785 | py | Python | sso/tests/test_access_log.py | uktrade/staff-sso | c23da74415befdaed60649a9a940b1ba8331581e | [
"MIT"
] | 7 | 2018-07-30T16:18:52.000Z | 2022-03-21T12:58:20.000Z | sso/tests/test_access_log.py | uktrade/staff-sso | c23da74415befdaed60649a9a940b1ba8331581e | [
"MIT"
] | 55 | 2017-06-26T12:49:01.000Z | 2022-03-09T15:48:49.000Z | sso/tests/test_access_log.py | uktrade/staff-sso | c23da74415befdaed60649a9a940b1ba8331581e | [
"MIT"
] | 1 | 2020-05-28T07:17:26.000Z | 2020-05-28T07:17:26.000Z | import json
import pytest
from freezegun import freeze_time
from sso.core.logging import create_x_access_log
from sso.tests.factories.user import UserFactory
class TestAppAccessLog:
@pytest.mark.django_db
@freeze_time("2017-06-22 15:50:00.000000+00:00")
def test_user_info_is_logged(self, rf, mocker):
... | 30.775862 | 65 | 0.572549 | 220 | 1,785 | 4.436364 | 0.3 | 0.061475 | 0.040984 | 0.04918 | 0.707992 | 0.661885 | 0.608607 | 0.608607 | 0.608607 | 0.608607 | 0 | 0.071707 | 0.281232 | 1,785 | 57 | 66 | 31.315789 | 0.68901 | 0 | 0 | 0.565217 | 0 | 0 | 0.236415 | 0.0493 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0.043478 | false | 0 | 0.108696 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
ca2a59a23fd925bcedb6702e2d89e9bd5c6431f9 | 1,623 | py | Python | euler/problem_45.py | jcthomassie/euler | 97e23a1976d40fec7c9c9136f82bdcb145a35f1f | [
"MIT"
] | null | null | null | euler/problem_45.py | jcthomassie/euler | 97e23a1976d40fec7c9c9136f82bdcb145a35f1f | [
"MIT"
] | 12 | 2020-11-18T00:15:52.000Z | 2021-07-04T18:21:03.000Z | euler/problem_45.py | jcthomassie/euler | 97e23a1976d40fec7c9c9136f82bdcb145a35f1f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Triangular, pentagonal, and hexagonal
=====================================
https://projecteuler.net/problem=45
Triangle, pentagonal, and hexagonal numbers are generated by the following
formulae:
Triangle Tn=n(n+1)/2 1, 3, 6, 10, 15, ...
Pentagonal Pn=n(3n−1)/2 1, 5, 12, 22, 35, ...... | 27.05 | 78 | 0.614911 | 216 | 1,623 | 4.537037 | 0.425926 | 0.014286 | 0.067347 | 0.045918 | 0.243878 | 0.032653 | 0.032653 | 0 | 0 | 0 | 0 | 0.05259 | 0.226741 | 1,623 | 59 | 79 | 27.508475 | 0.726693 | 0.460875 | 0 | 0.214286 | 1 | 0 | 0.016447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.25 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca329d2a2b3e06577ad00b10e630e7eb36491ca3 | 518 | py | Python | HandsOnDemo/DSS Example Code/models/FieldOperation.py | Patrick-iOS/DevelopWithDeere2019-Mannheim | 3763c93bde81eaae147d3894a960a0e3981afcf9 | [
"MIT"
] | 1 | 2019-12-11T10:34:06.000Z | 2019-12-11T10:34:06.000Z | HandsOnDemo/DSS Example Code/models/FieldOperation.py | Patrick-iOS/DevelopWithDeere2019-Mannheim | 3763c93bde81eaae147d3894a960a0e3981afcf9 | [
"MIT"
] | null | null | null | HandsOnDemo/DSS Example Code/models/FieldOperation.py | Patrick-iOS/DevelopWithDeere2019-Mannheim | 3763c93bde81eaae147d3894a960a0e3981afcf9 | [
"MIT"
] | null | null | null | import json
class FieldOperation(object):
def __init__(self, d):
if type(d) is str:
d = json.loads(d)
self.from_dict(d)
def from_dict(self, d):
self.__dict__ = {}
for key, value in d.items():
if type(value) is dict:
value ... | 21.583333 | 46 | 0.505792 | 53 | 518 | 4.679245 | 0.509434 | 0.040323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.382239 | 518 | 23 | 47 | 22.521739 | 0.775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.055556 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ca3b8709e5cc9a4a338c89712a1d866de7afd995 | 953 | py | Python | scraper/storage_spiders/thayroicom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | null | null | null | scraper/storage_spiders/thayroicom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 10 | 2020-02-11T23:34:28.000Z | 2022-03-11T23:16:12.000Z | scraper/storage_spiders/thayroicom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 3 | 2018-08-05T14:54:25.000Z | 2021-06-07T01:49:59.000Z | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//h1[@class='post-title entry-title item_name']",
'price' : "//div[@class='prod_pricebox_price_final']/span[@id='special_price_box']",... | 35.296296 | 88 | 0.640084 | 117 | 953 | 5.051282 | 0.649573 | 0.050761 | 0.07445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004848 | 0.134313 | 953 | 26 | 89 | 36.653846 | 0.711515 | 0.125918 | 0 | 0 | 1 | 0 | 0.479518 | 0.280723 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca3dd3d53dedf19a9ae3c63e6746b2fc6fc3d229 | 5,398 | py | Python | leetcode/course_schedule.py | dxmahata/codinginterviews | 1e74fd7d18febd918542ef8b33f9059218a4ab12 | [
"Apache-2.0"
] | null | null | null | leetcode/course_schedule.py | dxmahata/codinginterviews | 1e74fd7d18febd918542ef8b33f9059218a4ab12 | [
"Apache-2.0"
] | null | null | null | leetcode/course_schedule.py | dxmahata/codinginterviews | 1e74fd7d18febd918542ef8b33f9059218a4ab12 | [
"Apache-2.0"
] | null | null | null | """
There are a total of n courses you have to take, labeled from 0 to n - 1.
Some courses may have prerequisites, for example to take course 0 you have to first
take course 1, which is expressed as a pair: [0,1]
Given the total number of courses and a list of prerequisite pairs, is it possible
for you to finish al... | 27.824742 | 91 | 0.572249 | 708 | 5,398 | 4.176554 | 0.180791 | 0.047345 | 0.056814 | 0.027054 | 0.167738 | 0.069665 | 0.069665 | 0.069665 | 0.048022 | 0.048022 | 0 | 0.01343 | 0.337903 | 5,398 | 194 | 92 | 27.824742 | 0.813934 | 0.173027 | 0 | 0.058333 | 0 | 0 | 0.012223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0 | 0 | 0.091667 | 0.408333 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca3fe604c10eac7e869f50c3d12339c792838c1d | 1,729 | py | Python | anaf/core/api/views.py | tovmeod/anaf | 80e4a00532ce6f4ce76c5ffc858ff90c759a9879 | [
"BSD-3-Clause"
] | 2 | 2016-03-15T13:17:26.000Z | 2017-03-22T15:39:01.000Z | anaf/core/api/views.py | tovmeod/anaf | 80e4a00532ce6f4ce76c5ffc858ff90c759a9879 | [
"BSD-3-Clause"
] | 4 | 2021-03-19T21:42:58.000Z | 2022-03-11T23:13:07.000Z | anaf/core/api/views.py | tovmeod/anaf | 80e4a00532ce6f4ce76c5ffc858ff90c759a9879 | [
"BSD-3-Clause"
] | 4 | 2016-08-31T16:55:41.000Z | 2020-04-22T18:48:54.000Z | from rest_framework import viewsets
from anaf.core.rendering import API_RENDERERS
from anaf.core.models import User as Profile, AccessEntity, Group, Perspective, Object, Module
import serializers
from anaf.viewsets import AnafViewSet
class CoreBaseViewSet(AnafViewSet):
module = 'anaf.core'
class ProfileView(Co... | 25.80597 | 94 | 0.739734 | 186 | 1,729 | 6.790323 | 0.295699 | 0.052257 | 0.071259 | 0.099762 | 0.590657 | 0.261283 | 0.178939 | 0.10768 | 0.10768 | 0.10768 | 0 | 0 | 0.18797 | 1,729 | 66 | 95 | 26.19697 | 0.899573 | 0.209948 | 0 | 0.137931 | 0 | 0 | 0.007059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.172414 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ca41f3d07dc383e48e03f92741936101581cb59c | 2,555 | py | Python | services/web/server/src/simcore_service_webserver/storage_api.py | GitHK/osparc-simcore-forked | 5b01a28d1b8028afcf9a735e1d46a73daa13686e | [
"MIT"
] | null | null | null | services/web/server/src/simcore_service_webserver/storage_api.py | GitHK/osparc-simcore-forked | 5b01a28d1b8028afcf9a735e1d46a73daa13686e | [
"MIT"
] | 17 | 2020-10-15T16:06:05.000Z | 2022-03-21T18:48:21.000Z | services/web/server/src/simcore_service_webserver/storage_api.py | GitHK/osparc-simcore-forked | 5b01a28d1b8028afcf9a735e1d46a73daa13686e | [
"MIT"
] | null | null | null | """ Storage subsystem's API: responsible of communication with storage service
"""
import logging
from pprint import pformat
from aiohttp import web
from yarl import URL
from servicelib.rest_responses import unwrap_envelope
from .storage_config import get_client_session, get_storage_config
log = logging.getLogger(... | 29.709302 | 91 | 0.689237 | 335 | 2,555 | 5.002985 | 0.328358 | 0.03222 | 0.038186 | 0.045346 | 0.266706 | 0.22494 | 0.194511 | 0.153938 | 0.153938 | 0.153938 | 0 | 0.003018 | 0.221918 | 2,555 | 85 | 92 | 30.058824 | 0.84004 | 0.156947 | 0 | 0.145455 | 0 | 0 | 0.106124 | 0.043011 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.018182 | false | 0 | 0.109091 | 0 | 0.163636 | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca59fdae545da00e7c8dac0996834e0759036bab | 2,464 | py | Python | .ipynb_checkpoints/generate_docs-checkpoint.py | EricCacciavillani/eFlow | 19a4f7c08037ae1925eb098c43f802df46d52b05 | [
"MIT"
] | 1 | 2019-10-16T13:42:19.000Z | 2019-10-16T13:42:19.000Z | .ipynb_checkpoints/generate_docs-checkpoint.py | EricCacciavillani/eFlow | 19a4f7c08037ae1925eb098c43f802df46d52b05 | [
"MIT"
] | 14 | 2020-02-03T22:13:55.000Z | 2022-03-12T00:12:27.000Z | .ipynb_checkpoints/generate_docs-checkpoint.py | EricCacciavillani/eFlow | 19a4f7c08037ae1925eb098c43f802df46d52b05 | [
"MIT"
] | null | null | null | # Import libs
import os
return getmarkdown(mod)
# Taken from utils.sys_utils
def get_all_directories_from_path(directory_path):
"""
directory_path:
Given path that already exists.
Returns:
Returns back a set a directories with the provided path.
"""
dirs_in_paths = []
for (di... | 25.402062 | 73 | 0.574269 | 295 | 2,464 | 4.545763 | 0.271186 | 0.03654 | 0.035794 | 0.04698 | 0.240119 | 0.174497 | 0.140194 | 0.082028 | 0.082028 | 0.082028 | 0 | 0.001237 | 0.34375 | 2,464 | 97 | 74 | 25.402062 | 0.828077 | 0.075081 | 0 | 0.27451 | 0 | 0 | 0.048498 | 0.01845 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.019608 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca635f53e04cda37ad8cf7ea40ae784330ffc05e | 1,984 | py | Python | src/pbn_api/migrations/0027_przemapuj_rok_publikacji.py | iplweb/django-bpp | 85f183a99d8d5027ae4772efac1e4a9f21675849 | [
"BSD-3-Clause"
] | 1 | 2017-04-27T19:50:02.000Z | 2017-04-27T19:50:02.000Z | src/pbn_api/migrations/0027_przemapuj_rok_publikacji.py | mpasternak/django-bpp | 434338821d5ad1aaee598f6327151aba0af66f5e | [
"BSD-3-Clause"
] | 41 | 2019-11-07T00:07:02.000Z | 2022-02-27T22:09:39.000Z | src/pbn_api/migrations/0027_przemapuj_rok_publikacji.py | iplweb/bpp | f027415cc3faf1ca79082bf7bacd4be35b1a6fdf | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.0.14 on 2021-08-17 22:16
import warnings
from django.core.paginator import Paginator
from django.db import migrations
from bpp.util import pbar
def value(elem, *path, return_none=False):
v = None
if elem.versions:
for _elem in elem.versions:
if _elem["current"]:
... | 23.903614 | 84 | 0.591734 | 258 | 1,984 | 4.337209 | 0.379845 | 0.044683 | 0.028597 | 0.042895 | 0.103664 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028405 | 0.307964 | 1,984 | 82 | 85 | 24.195122 | 0.786599 | 0.035786 | 0 | 0.033898 | 1 | 0 | 0.094764 | 0.012042 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084746 | false | 0 | 0.067797 | 0.016949 | 0.288136 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca7480fe73dd4c0f06018ac23856899099703c3b | 959 | py | Python | fast_autoGrad/autoGrad.py | juliaprocess/ml_libs | 52cac5d64b55a12dfbdad1c768cdd8d79d5789f5 | [
"MIT"
] | 4 | 2021-01-12T22:02:57.000Z | 2021-04-02T15:24:18.000Z | fast_autoGrad/autoGrad.py | juliaprocess/ml_libs | 52cac5d64b55a12dfbdad1c768cdd8d79d5789f5 | [
"MIT"
] | null | null | null | fast_autoGrad/autoGrad.py | juliaprocess/ml_libs | 52cac5d64b55a12dfbdad1c768cdd8d79d5789f5 | [
"MIT"
] | 1 | 2017-07-30T23:49:27.000Z | 2017-07-30T23:49:27.000Z | #!/usr/bin/env python
#This example show how to use pytorch to
#solve a convex optimization problem
# Optimize x^T A x + b^T x
# A = [1 0;0 2] , b = [1, 2] , solution = -[1/2 1/2]
import torch
from torch.autograd import Variable
import numpy as np
from minConf_PQN import *
dtype = torch.FloatTensor
#dtype = torch.... | 21.795455 | 62 | 0.687174 | 174 | 959 | 3.718391 | 0.402299 | 0.012365 | 0.064915 | 0.074189 | 0.148377 | 0.068006 | 0 | 0 | 0 | 0 | 0 | 0.034314 | 0.149114 | 959 | 43 | 63 | 22.302326 | 0.758578 | 0.240876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.238095 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca79272bc86c0c65943fb0c6bdca2190c14f1f10 | 243 | py | Python | LC/557c.py | szhu3210/LeetCode_Solutions | 64747eb172c2ecb3c889830246f3282669516e10 | [
"MIT"
] | 2 | 2018-02-24T17:20:02.000Z | 2018-02-24T17:25:43.000Z | LC/557c.py | szhu3210/LeetCode_Solutions | 64747eb172c2ecb3c889830246f3282669516e10 | [
"MIT"
] | null | null | null | LC/557c.py | szhu3210/LeetCode_Solutions | 64747eb172c2ecb3c889830246f3282669516e10 | [
"MIT"
] | null | null | null | class Solution(object):
def reverseWords(self, s):
"""
:type s: str
:rtype: str
"""
words = s.split(' ')
words = map(lambda x: x[::-1], words)
res = ' '.join(words)
return res | 24.3 | 45 | 0.44856 | 27 | 243 | 4.037037 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 0.390947 | 243 | 10 | 46 | 24.3 | 0.72973 | 0.098765 | 0 | 0 | 0 | 0 | 0.010638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca810dc502de9d1e02c7cb77831fedffae5b87c7 | 1,849 | py | Python | main.py | ovshake/cobra | 1ddc805debf12433f1cc5c101aa0a154d34ab2ab | [
"MIT"
] | 22 | 2020-05-10T21:22:26.000Z | 2021-12-22T14:38:38.000Z | main.py | ovshake/cobra | 1ddc805debf12433f1cc5c101aa0a154d34ab2ab | [
"MIT"
] | 5 | 2020-06-17T10:26:11.000Z | 2021-07-16T06:57:53.000Z | main.py | ovshake/cobra | 1ddc805debf12433f1cc5c101aa0a154d34ab2ab | [
"MIT"
] | 4 | 2020-05-30T06:14:19.000Z | 2021-06-21T08:57:58.000Z | def main(config):
from COBRA import Solver
solver = Solver(config)
cudnn.benchmark = True
return solver.train()
if __name__ == '__main__':
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--compute_all', type=bool, default=False)
parser.add_argument('--mode', type=str, default='train')
... | 36.254902 | 160 | 0.736614 | 274 | 1,849 | 4.80292 | 0.354015 | 0.129939 | 0.245441 | 0.077508 | 0.294833 | 0.294833 | 0.294833 | 0.137538 | 0 | 0 | 0 | 0.030594 | 0.098432 | 1,849 | 50 | 161 | 36.98 | 0.758848 | 0.048134 | 0 | 0 | 0 | 0 | 0.133675 | 0.012514 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.162791 | 0 | 0.209302 | 0.023256 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca86c471e8f544c7e0a8191ce40ad74da982d188 | 6,219 | py | Python | deeplearning4j-core/src/main/resources/scripts/plot.py | atssada/deeplearning4j | b1ffaddb67b6cf89ee97d40db931dd95f6cab742 | [
"Apache-2.0"
] | 2 | 2017-05-29T08:51:50.000Z | 2018-02-28T22:16:27.000Z | deeplearning4j-core/src/main/resources/scripts/plot.py | atssada/deeplearning4j | b1ffaddb67b6cf89ee97d40db931dd95f6cab742 | [
"Apache-2.0"
] | 1 | 2021-08-02T17:26:06.000Z | 2021-08-02T17:26:06.000Z | deeplearning4j-core/src/main/resources/scripts/plot.py | atssada/deeplearning4j | b1ffaddb67b6cf89ee97d40db931dd95f6cab742 | [
"Apache-2.0"
] | 3 | 2015-12-18T01:50:42.000Z | 2020-01-15T15:02:56.000Z | import math
from matplotlib.pyplot import hist, title, subplot, scatter, plot
import matplotlib.pyplot as plt
import numpy as np
from PIL import Image
import seaborn # improves matplotlib look and feel
import sys
import time
'''
Optimization Methods Visualalization
Graph tools to help visualize how optimization is pe... | 36.582353 | 194 | 0.631291 | 856 | 6,219 | 4.397196 | 0.218458 | 0.036132 | 0.019129 | 0.01594 | 0.364506 | 0.301275 | 0.28746 | 0.285335 | 0.246546 | 0.223167 | 0 | 0.016482 | 0.229297 | 6,219 | 169 | 195 | 36.798817 | 0.76883 | 0.529989 | 0 | 0.162162 | 0 | 0 | 0.10073 | 0 | 0 | 0 | 0 | 0.005917 | 0 | 0 | null | null | 0 | 0.108108 | null | null | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca8ac685635b7fac61c787ef2d05f1472c14f8e2 | 28,883 | py | Python | mendeley/client_library.py | ScholarTools/ST_mendeley_python | 6a0dd3732958b9f9af7d3a0582bf8d380350fdbf | [
"MIT"
] | null | null | null | mendeley/client_library.py | ScholarTools/ST_mendeley_python | 6a0dd3732958b9f9af7d3a0582bf8d380350fdbf | [
"MIT"
] | 8 | 2021-02-08T20:39:22.000Z | 2021-11-02T18:43:59.000Z | mendeley/client_library.py | ScholarTools/ST_mendeley_python | 6a0dd3732958b9f9af7d3a0582bf8d380350fdbf | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
The goal of this code is to support hosting a client library. This module
should in the end function similarly to the Mendeley Desktop.
Syncing
-------------------------------------------
Jim's next goals
----------------
1) Handle deleted IDs - needs an API update
2) Me... | 32.416386 | 108 | 0.546931 | 3,366 | 28,883 | 4.524955 | 0.181224 | 0.018777 | 0.019959 | 0.007353 | 0.177861 | 0.126584 | 0.09113 | 0.076554 | 0.064211 | 0.055019 | 0 | 0.013493 | 0.345705 | 28,883 | 891 | 109 | 32.416386 | 0.792465 | 0.262127 | 0 | 0.160428 | 0 | 0 | 0.077233 | 0.00121 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.066845 | false | 0.010695 | 0.048128 | 0.005348 | 0.192513 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca97e5b7b83077f97ae6fc765702e4e2bb1a43e5 | 1,177 | py | Python | benwaonline_auth/schemas.py | goosechooser/benwaonline-auth | d43a53d144da1f337c8847eb7b6d8ab3d752ec17 | [
"MIT"
] | null | null | null | benwaonline_auth/schemas.py | goosechooser/benwaonline-auth | d43a53d144da1f337c8847eb7b6d8ab3d752ec17 | [
"MIT"
] | 5 | 2018-03-14T13:06:38.000Z | 2020-06-05T02:09:19.000Z | benwaonline_auth/schemas.py | goosechooser/benwaonline-auth | d43a53d144da1f337c8847eb7b6d8ab3d752ec17 | [
"MIT"
] | null | null | null | from marshmallow import Schema, fields, post_load
from benwaonline_auth.models import User, Token, Client
class UserSchema(Schema):
user_id = fields.Str()
refresh_token = fields.Nested("TokenSchema", exclude=("user",))
created_on = fields.DateTime()
@post_load
def make_user(self, data, **kwargs):... | 28.02381 | 67 | 0.681393 | 140 | 1,177 | 5.542857 | 0.357143 | 0.104381 | 0.061856 | 0.05799 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190314 | 1,177 | 41 | 68 | 28.707317 | 0.814271 | 0 | 0 | 0.15625 | 0 | 0 | 0.06627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.0625 | 0.09375 | 0.90625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ca9d2ca491b29ffebd390031793890f0158b2557 | 3,308 | py | Python | filesystem/test/testbasefile.py | redmond-penguin/musicplayer | 1b342b885e6e97d073b92e624d0ae5dc38f7c687 | [
"BSD-3-Clause"
] | null | null | null | filesystem/test/testbasefile.py | redmond-penguin/musicplayer | 1b342b885e6e97d073b92e624d0ae5dc38f7c687 | [
"BSD-3-Clause"
] | null | null | null | filesystem/test/testbasefile.py | redmond-penguin/musicplayer | 1b342b885e6e97d073b92e624d0ae5dc38f7c687 | [
"BSD-3-Clause"
] | null | null | null | import unittest
from filesystem.basefile import BaseFile
import os
class TestBaseFile(unittest.TestCase):
def setUp(self):
os.mknod("/tmp/testfile")
if not os.path.isfile("/tmp/testfile"):
raise Exception("Cannot create /tmp/testfile")
self.file = BaseFile("/tmp/testfile")
... | 33.755102 | 86 | 0.650242 | 389 | 3,308 | 5.341902 | 0.197943 | 0.100096 | 0.040423 | 0.06641 | 0.512031 | 0.438884 | 0.308951 | 0.231954 | 0.231954 | 0.1641 | 0 | 0.00903 | 0.230048 | 3,308 | 97 | 87 | 34.103093 | 0.806832 | 0 | 0 | 0.269231 | 0 | 0 | 0.069831 | 0 | 0 | 0 | 0 | 0 | 0.294872 | 1 | 0.217949 | false | 0 | 0.038462 | 0 | 0.269231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0460cf877ec64e45a5528edf3108f4a26d592475 | 964 | py | Python | natlas-server/app/auth/email.py | pryorda/natlas | 048b5597c0ad77d1a95eadf8859e1122a9eb3d3a | [
"Apache-2.0"
] | null | null | null | natlas-server/app/auth/email.py | pryorda/natlas | 048b5597c0ad77d1a95eadf8859e1122a9eb3d3a | [
"Apache-2.0"
] | 8 | 2020-08-10T08:49:20.000Z | 2020-09-27T12:17:16.000Z | natlas-server/app/auth/email.py | pryorda/natlas | 048b5597c0ad77d1a95eadf8859e1122a9eb3d3a | [
"Apache-2.0"
] | null | null | null | from flask import render_template, current_app, flash
from app.email import send_email
from app.models import User
def validate_email(addr):
validemail = User.validate_email(addr)
if not validemail:
flash(
f"{addr} does not appear to be a valid, deliverable email address.",
"da... | 28.352941 | 84 | 0.606846 | 110 | 964 | 5.136364 | 0.463636 | 0.047788 | 0.060177 | 0.067257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.279046 | 964 | 33 | 85 | 29.212121 | 0.81295 | 0 | 0 | 0 | 0 | 0 | 0.256224 | 0.046681 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.068966 | 0.103448 | 0 | 0.241379 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0469ba6c6f56a1a07c07b6c1d348d70794295884 | 394 | py | Python | src/waldur_core/structure/migrations/0007_customer_blocked.py | geant-multicloud/MCMS-mastermind | 81333180f5e56a0bc88d7dad448505448e01f24e | [
"MIT"
] | 26 | 2017-10-18T13:49:58.000Z | 2021-09-19T04:44:09.000Z | src/waldur_core/structure/migrations/0007_customer_blocked.py | geant-multicloud/MCMS-mastermind | 81333180f5e56a0bc88d7dad448505448e01f24e | [
"MIT"
] | 14 | 2018-12-10T14:14:51.000Z | 2021-06-07T10:33:39.000Z | src/waldur_core/structure/migrations/0007_customer_blocked.py | geant-multicloud/MCMS-mastermind | 81333180f5e56a0bc88d7dad448505448e01f24e | [
"MIT"
] | 32 | 2017-09-24T03:10:45.000Z | 2021-10-16T16:41:09.000Z | # Generated by Django 1.11.18 on 2019-03-04 10:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('structure', '0006_customer_backend_id'),
]
operations = [
migrations.AddField(
model_name='customer',
name='blocked... | 21.888889 | 53 | 0.609137 | 41 | 394 | 5.756098 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073944 | 0.279188 | 394 | 17 | 54 | 23.176471 | 0.757042 | 0.119289 | 0 | 0 | 1 | 0 | 0.13913 | 0.069565 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
046f986c259ae8e088974b2fb0f94248a55628fd | 12,275 | py | Python | src/aspire/utils/matrix.py | janden/ASPIRE-Python | 5bcf831881fd0e42630c3b99671c5ed08de260ea | [
"MIT"
] | null | null | null | src/aspire/utils/matrix.py | janden/ASPIRE-Python | 5bcf831881fd0e42630c3b99671c5ed08de260ea | [
"MIT"
] | null | null | null | src/aspire/utils/matrix.py | janden/ASPIRE-Python | 5bcf831881fd0e42630c3b99671c5ed08de260ea | [
"MIT"
] | null | null | null | """
Utilties for arrays/n-dimensional matrices.
"""
import numpy as np
from scipy.linalg import eigh
from aspire.utils import ensure
from aspire.utils.matlab_compat import m_reshape
SQRT2 = np.sqrt(2)
SQRT2_R = 1/SQRT2
def unroll_dim(X, dim):
# TODO: dim is still 1-indexed like in MATLAB to reduce headaches fo... | 33.722527 | 120 | 0.638371 | 2,041 | 12,275 | 3.766291 | 0.146987 | 0.008586 | 0.017562 | 0.009366 | 0.459217 | 0.401067 | 0.363211 | 0.344868 | 0.307142 | 0.282295 | 0 | 0.023246 | 0.236008 | 12,275 | 363 | 121 | 33.815427 | 0.796438 | 0.485295 | 0 | 0.292994 | 0 | 0 | 0.117259 | 0 | 0 | 0 | 0 | 0.013774 | 0 | 1 | 0.127389 | false | 0 | 0.025478 | 0 | 0.299363 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0471b845c4dfbde3ccea55b13d7cc57f2f8b27ce | 2,147 | py | Python | cv/blog/models.py | Trianglium/artist-cv | 5a742a3998ba8778b2b6ddde2c3f88ff3cc85124 | [
"MIT"
] | 2 | 2022-01-29T00:45:58.000Z | 2022-01-30T22:05:18.000Z | cv/blog/models.py | Trianglium/artist-cv | 5a742a3998ba8778b2b6ddde2c3f88ff3cc85124 | [
"MIT"
] | 14 | 2022-01-30T17:58:46.000Z | 2022-02-23T14:42:10.000Z | cv/blog/models.py | Trianglium/artist-cv | 5a742a3998ba8778b2b6ddde2c3f88ff3cc85124 | [
"MIT"
] | null | null | null | from django.db import models
from django.conf import settings
from django.contrib.contenttypes.fields import GenericRelation
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from base.models import BaseContent, BaseArticle, BaseComment
from cked... | 35.783333 | 102 | 0.740568 | 271 | 2,147 | 5.671587 | 0.402214 | 0.032531 | 0.036435 | 0.04164 | 0.190631 | 0.151594 | 0.098243 | 0.098243 | 0.066363 | 0 | 0 | 0.001687 | 0.171868 | 2,147 | 60 | 103 | 35.783333 | 0.862767 | 0.107126 | 0 | 0.093023 | 0 | 0 | 0.089435 | 0.013075 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116279 | false | 0 | 0.209302 | 0.093023 | 0.837209 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0472daa6bc79608d80396675fcd87c290db3dcd3 | 6,556 | py | Python | troposphere_mate/cloudformation.py | MacHu-GWU/troposphere_mate-project | 426721170a46f0c6cdf4ca965efffdfdd8654189 | [
"MIT"
] | 10 | 2019-07-08T14:52:16.000Z | 2021-10-15T22:18:22.000Z | troposphere_mate/cloudformation.py | MacHu-GWU/troposphere_mate-project | 426721170a46f0c6cdf4ca965efffdfdd8654189 | [
"MIT"
] | 1 | 2019-07-08T00:36:50.000Z | 2019-07-08T00:36:50.000Z | troposphere_mate/cloudformation.py | MacHu-GWU/troposphere_mate-project | 426721170a46f0c6cdf4ca965efffdfdd8654189 | [
"MIT"
] | 2 | 2020-03-22T14:44:54.000Z | 2020-08-05T02:08:01.000Z | # -*- coding: utf-8 -*-
"""
This code is auto generated from troposphere_mate.code_generator.__init__.py scripts.
"""
import sys
if sys.version_info.major >= 3 and sys.version_info.minor >= 5: # pragma: no cover
from typing import Union, List, Any
import troposphere.cloudformation
from troposphere.cloudformati... | 35.247312 | 85 | 0.564063 | 555 | 6,556 | 6.482883 | 0.174775 | 0.110061 | 0.084491 | 0.083102 | 0.419956 | 0.273207 | 0.198722 | 0.198722 | 0.142023 | 0.142023 | 0 | 0.000704 | 0.349603 | 6,556 | 185 | 86 | 35.437838 | 0.843105 | 0.149939 | 0 | 0.4375 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04375 | false | 0.0125 | 0.04375 | 0 | 0.13125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
047b8231dc6efe3bee0b2db4eccde2e19a251afb | 275 | py | Python | api/src/routes/healthcheck.py | rbipin/cidr-ip-calculator | 7eedb086a99cb44214478aa6fecd3b8e0f22d834 | [
"MIT"
] | null | null | null | api/src/routes/healthcheck.py | rbipin/cidr-ip-calculator | 7eedb086a99cb44214478aa6fecd3b8e0f22d834 | [
"MIT"
] | null | null | null | api/src/routes/healthcheck.py | rbipin/cidr-ip-calculator | 7eedb086a99cb44214478aa6fecd3b8e0f22d834 | [
"MIT"
] | null | null | null | from fastapi import APIRouter
from src.controllers import healthcheck
router = APIRouter(
prefix="/healthcheck",
tags=["healthcheck"]
)
@router.get("", name="Health check", response_model=str)
async def runGetHealthCheck():
return healthcheck.getHealthCheck()
| 21.153846 | 56 | 0.745455 | 29 | 275 | 7.034483 | 0.758621 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138182 | 275 | 12 | 57 | 22.916667 | 0.860759 | 0 | 0 | 0 | 0 | 0 | 0.127273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0487fc48520b7ec1775d23b30a33c986a52eba49 | 980 | py | Python | tests/__init__.py | shizhao/pywikibot-core | 8441a1cd0e8dd5d3701f1c5e26077e40a40937ee | [
"MIT"
] | null | null | null | tests/__init__.py | shizhao/pywikibot-core | 8441a1cd0e8dd5d3701f1c5e26077e40a40937ee | [
"MIT"
] | null | null | null | tests/__init__.py | shizhao/pywikibot-core | 8441a1cd0e8dd5d3701f1c5e26077e40a40937ee | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# (C) Pywikipedia bot team, 2007
#
# Distributed under the terms of the MIT license.
#
__version__ = '$Id: 0487fc48520b7ec1775d23b30a33c986a52eba49 $'
import os
import pywikibot.data.api
from pywikibot.data.api import Request as _original_Request
from pywikibot.data.api import CachedRequest
... | 24.5 | 67 | 0.687755 | 119 | 980 | 5.394958 | 0.504202 | 0.101246 | 0.124611 | 0.062305 | 0.174455 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04359 | 0.204082 | 980 | 39 | 68 | 25.128205 | 0.779487 | 0.103061 | 0 | 0 | 0 | 0 | 0.063073 | 0.045872 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.173913 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0489607cd11a3429dbc30ef7f08641595d7f934f | 9,467 | py | Python | gpio_device_tools/config.py | alexeiken/gpio-device-tools | 64e67ed43b000a0c272b789a49ff9a25e2a33ab5 | [
"MIT"
] | null | null | null | gpio_device_tools/config.py | alexeiken/gpio-device-tools | 64e67ed43b000a0c272b789a49ff9a25e2a33ab5 | [
"MIT"
] | null | null | null | gpio_device_tools/config.py | alexeiken/gpio-device-tools | 64e67ed43b000a0c272b789a49ff9a25e2a33ab5 | [
"MIT"
] | null | null | null | import ConfigParser
import os
import re
# date format
dt_format = "%Y-%m-%dT%H:%M:%S"
# boolean states
_boolean_states = {'1': True, 'yes': True, 'y': True, 'true': True, 't': True, 'on': True, 'high': True,
'0': False, 'no': False, 'n': False, 'false': False, 'f': False, 'off': False, 'low': False... | 29.677116 | 111 | 0.552551 | 1,045 | 9,467 | 4.822967 | 0.174163 | 0.029167 | 0.026786 | 0.044643 | 0.371032 | 0.294444 | 0.248413 | 0.248413 | 0.234921 | 0.234921 | 0 | 0.005939 | 0.341925 | 9,467 | 318 | 112 | 29.77044 | 0.80305 | 0.020492 | 0 | 0.340517 | 0 | 0 | 0.113492 | 0.002843 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.012931 | 0.012931 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
048c8afcaa8961b8b5fe6e886b4026f71bf9ae5f | 282 | py | Python | subfinder/subfinder_gevent.py | ttimasdf/subfinder | d175df495b1784f536844016f37ea04d26925477 | [
"MIT"
] | 3 | 2019-09-16T04:59:55.000Z | 2020-07-16T13:34:57.000Z | subfinder/subfinder_gevent.py | ttimasdf/subfinder | d175df495b1784f536844016f37ea04d26925477 | [
"MIT"
] | null | null | null | subfinder/subfinder_gevent.py | ttimasdf/subfinder | d175df495b1784f536844016f37ea04d26925477 | [
"MIT"
] | 2 | 2019-08-29T08:46:54.000Z | 2019-08-30T14:44:55.000Z | # -*- coding: utf8 -*-
""" SunFinder 的协程版本
"""
from __future__ import unicode_literals
from gevent.pool import Pool
from .subfinder import SubFinder
class SubFinderGevent(SubFinder):
""" SubFinder Thread version
"""
def _init_pool(self):
self.pool = Pool(10)
| 18.8 | 39 | 0.687943 | 32 | 282 | 5.84375 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013274 | 0.198582 | 282 | 14 | 40 | 20.142857 | 0.814159 | 0.237589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0492b4a20126d11565b9bb38f8b4051d59843c51 | 931 | py | Python | leetcode/ag_213.py | baobei813214232/common-alglib | 303e4edc5f7c1b5e9a2a6ebc4742d7bae61c5d31 | [
"MIT"
] | 4 | 2017-05-02T09:47:48.000Z | 2019-05-01T06:26:26.000Z | leetcode/ag_213.py | xiaolongnk/Alglib | 303e4edc5f7c1b5e9a2a6ebc4742d7bae61c5d31 | [
"MIT"
] | null | null | null | leetcode/ag_213.py | xiaolongnk/Alglib | 303e4edc5f7c1b5e9a2a6ebc4742d7bae61c5d31 | [
"MIT"
] | 1 | 2021-01-31T07:21:53.000Z | 2021-01-31T07:21:53.000Z | import copy
class Solution(object):
def roobbb(self, nums):
dp = []
for i in range(0,len(nums)):
dp.append(0)
if len(nums) == 0: return 0
if len(nums) == 1: return nums[0]
if len(nums) == 2: return max(nums[0],nums[1])
last = len(nums)-1
... | 22.166667 | 54 | 0.444683 | 136 | 931 | 3.044118 | 0.272059 | 0.096618 | 0.108696 | 0.096618 | 0.246377 | 0.183575 | 0.183575 | 0.183575 | 0.183575 | 0.183575 | 0 | 0.057041 | 0.397422 | 931 | 41 | 55 | 22.707317 | 0.680927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
04986f47adfdc8eba93ee31dee38e566587c748d | 893 | py | Python | xinshuo_io/test/images_io/test_load_image.py | xinshuoweng/cv_ml_tool | 1918b9e37ec5fb8148b8a089f226a4864d67b153 | [
"MIT"
] | 31 | 2020-03-05T12:27:21.000Z | 2022-03-07T04:00:18.000Z | xinshuo_io/test/images_io/test_load_image.py | xinshuoweng/cv_ml_tool | 1918b9e37ec5fb8148b8a089f226a4864d67b153 | [
"MIT"
] | null | null | null | xinshuo_io/test/images_io/test_load_image.py | xinshuoweng/cv_ml_tool | 1918b9e37ec5fb8148b8a089f226a4864d67b153 | [
"MIT"
] | 12 | 2020-07-06T05:06:58.000Z | 2021-11-18T14:43:20.000Z | # Author: Xinshuo Weng
# email: xinshuo.weng@gmail.com
import numpy as np
import init_paths
from images_io import load_image
from xinshuo_visualization import visualize_image
def test_load_image():
image_path = '../lena.png'
print('basic')
img = load_image(image_path)
assert img.shape == (512, 512, 3)
print('... | 24.805556 | 55 | 0.731243 | 137 | 893 | 4.518248 | 0.408759 | 0.116317 | 0.135703 | 0.174475 | 0.434572 | 0.323102 | 0.323102 | 0.323102 | 0.323102 | 0.323102 | 0 | 0.061039 | 0.137738 | 893 | 36 | 56 | 24.805556 | 0.742857 | 0.055991 | 0 | 0.24 | 0 | 0 | 0.1522 | 0 | 0 | 0 | 0 | 0 | 0.16 | 1 | 0.04 | false | 0 | 0.16 | 0 | 0.2 | 0.24 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
049a73b7cd89ff2640484b3f83beac657dfc370d | 1,311 | py | Python | app/thirdparty/dropbox_upload.py | aroranipun04/CloudCV-Old | c17f5be8a221532c77d413b6afc6bd0be5e4f788 | [
"MIT"
] | 11 | 2016-02-29T21:12:58.000Z | 2016-07-06T22:29:22.000Z | app/thirdparty/dropbox_upload.py | aroranipun04/CloudCV-Old | c17f5be8a221532c77d413b6afc6bd0be5e4f788 | [
"MIT"
] | 9 | 2015-06-12T22:37:41.000Z | 2016-02-09T21:47:21.000Z | app/thirdparty/dropbox_upload.py | aroranipun04/CloudCV-Old | c17f5be8a221532c77d413b6afc6bd0be5e4f788 | [
"MIT"
] | 16 | 2016-02-23T03:22:02.000Z | 2016-07-09T18:46:34.000Z | __author__ = 'dexter'
import dropbox
import os
import sys
path = os.environ.get('CLOUDCVPATH')
if path not in sys.path:
sys.path.append(path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
def upload_files_to_dropbox(userid, jobid, result_path, dropbox_token=None):
try:
response = ''
if ... | 32.775 | 79 | 0.576659 | 157 | 1,311 | 4.643312 | 0.43949 | 0.068587 | 0.049383 | 0.065844 | 0.208505 | 0.137174 | 0.137174 | 0.098765 | 0 | 0 | 0 | 0 | 0.314264 | 1,311 | 39 | 80 | 33.615385 | 0.810901 | 0 | 0 | 0.0625 | 0 | 0 | 0.154844 | 0.016781 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.09375 | null | null | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
049feb59021789e697bb2b7cae1a4e8737b86206 | 6,253 | py | Python | workflow/__main__.py | trecvt-oss/workflow | ff26cd85551cad49d4c1a407a66afd6c0b459967 | [
"Unlicense"
] | 183 | 2015-01-06T14:19:38.000Z | 2022-01-06T09:47:33.000Z | workflow/__main__.py | trecvt-oss/workflow | ff26cd85551cad49d4c1a407a66afd6c0b459967 | [
"Unlicense"
] | null | null | null | workflow/__main__.py | trecvt-oss/workflow | ff26cd85551cad49d4c1a407a66afd6c0b459967 | [
"Unlicense"
] | 45 | 2015-01-13T19:22:26.000Z | 2021-02-18T01:23:13.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
# License: 3-clause BSD License
# Author: Massimo Di Pierro <massimo.dipierro@gmail.com>
# Read-more: https://github.com/mdipierro/workflow
import sys, os, shelve, glob, time, shlex, subprocess, logging, re, optparse
re_line = re.compile('(?P<n>\w+):\s*(?P<p>.+?)\s*(\[(?P<dt... | 44.347518 | 98 | 0.519111 | 707 | 6,253 | 4.512023 | 0.257426 | 0.026332 | 0.037618 | 0.022571 | 0.156426 | 0.119749 | 0.065204 | 0.053292 | 0.031348 | 0 | 0 | 0.011215 | 0.329762 | 6,253 | 140 | 99 | 44.664286 | 0.74994 | 0.027667 | 0 | 0.085938 | 0 | 0.007813 | 0.140412 | 0.028642 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.007813 | null | null | 0.023438 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
04a05264893e66acceaea6c61d3b44d18661461d | 4,525 | py | Python | chapter9/django_admin/app01/admin.py | MMingLeung/Python_Study | 4ff1d02d2b6dd54e96f7179fa000548936b691e7 | [
"MIT"
] | 3 | 2017-12-27T14:08:17.000Z | 2018-02-10T13:01:08.000Z | chapter9/django_admin/app01/admin.py | MMingLeung/Python_Study | 4ff1d02d2b6dd54e96f7179fa000548936b691e7 | [
"MIT"
] | 4 | 2017-05-24T10:37:05.000Z | 2021-06-10T18:35:32.000Z | chapter9/django_admin/app01/admin.py | MMingLeung/Python_Study | 4ff1d02d2b6dd54e96f7179fa000548936b691e7 | [
"MIT"
] | 1 | 2018-02-14T19:05:30.000Z | 2018-02-14T19:05:30.000Z | from django.contrib import admin
from django.http import HttpResponse
from app01 import models
from django.utils.safestring import mark_safe
from types import FunctionType
# Register your models here.
from django.forms import widgets
from django.utils.html import format_html
from django.forms import ModelForm, fields
#... | 22.40099 | 93 | 0.610166 | 466 | 4,525 | 5.757511 | 0.459227 | 0.036526 | 0.025345 | 0.03429 | 0.05069 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004353 | 0.238453 | 4,525 | 201 | 94 | 22.512438 | 0.774231 | 0.36442 | 0 | 0 | 0 | 0 | 0.078848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081967 | false | 0 | 0.131148 | 0.016393 | 0.704918 | 0.032787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
04b10f8a934afb6accfa50afadd54d26b455983e | 3,618 | py | Python | nose_config.py | alazanman/py_epg_tests | 550f21315cb121fa1d158087ecd63e70a74b23ba | [
"Apache-2.0"
] | null | null | null | nose_config.py | alazanman/py_epg_tests | 550f21315cb121fa1d158087ecd63e70a74b23ba | [
"Apache-2.0"
] | null | null | null | nose_config.py | alazanman/py_epg_tests | 550f21315cb121fa1d158087ecd63e70a74b23ba | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# from nose.tools import *
# import nose
# from nose import *
# import pytest
import nose
import json
import os.path
import importlib
import jsonpickle
from time import sleep
from fixture.app import Application
from fixture.db import DbFixture
from fixture.rest import RestApi
config_file = Non... | 32.017699 | 158 | 0.68712 | 511 | 3,618 | 4.639922 | 0.183953 | 0.08857 | 0.041333 | 0.042176 | 0.404892 | 0.377056 | 0.288486 | 0.172923 | 0.172923 | 0.105441 | 0 | 0.000997 | 0.168049 | 3,618 | 113 | 159 | 32.017699 | 0.786711 | 0.306247 | 0 | 0.111111 | 0 | 0 | 0.080515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.041667 | 0.125 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
04b2698f4a3a0bec953a8c7599c93b52305dac00 | 2,942 | py | Python | Project 1 - Data Modeling with PostgreSQL/sql_queries.py | gitHub882000/Data-Engineering-Nanodegree | 9a55b8a77fd50392bdecc9dfada0b9588e0a8fce | [
"MIT"
] | 2 | 2022-03-08T11:27:51.000Z | 2022-03-08T11:58:43.000Z | Project 1 - Data Modeling with PostgreSQL/sql_queries.py | gitHub882000/Data-Engineering-Nanodegree | 9a55b8a77fd50392bdecc9dfada0b9588e0a8fce | [
"MIT"
] | null | null | null | Project 1 - Data Modeling with PostgreSQL/sql_queries.py | gitHub882000/Data-Engineering-Nanodegree | 9a55b8a77fd50392bdecc9dfada0b9588e0a8fce | [
"MIT"
] | null | null | null | # DROP TABLES
songplay_table_drop = "DROP TABLE IF EXISTS songplays;"
user_table_drop = "DROP TABLE IF EXISTS users;"
song_table_drop = "DROP TABLE IF EXISTS songs;"
artist_table_drop = "DROP TABLE IF EXISTS artists;"
time_table_drop = "DROP TABLE IF EXISTS time;"
# CREATE TABLES
songplay_table_create = ("""
CREATE ... | 26.267857 | 124 | 0.711081 | 445 | 2,942 | 4.492135 | 0.166292 | 0.025013 | 0.030015 | 0.030015 | 0.202601 | 0.202601 | 0.137569 | 0.055028 | 0.017009 | 0 | 0 | 0.000415 | 0.181509 | 2,942 | 112 | 125 | 26.267857 | 0.829734 | 0.021414 | 0 | 0.235955 | 0 | 0.022472 | 0.757481 | 0.007307 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
04bcf60958aac2c2f9be7ab1a172dd2112774dc4 | 2,538 | py | Python | code/Experiments/Tutorials/nn-from-scratch/Stanford_linearClassifier.py | matthijsvk/convNets | 7e65db7857a4e6abfbcab264953eb7741319de6c | [
"Apache-2.0"
] | 53 | 2017-04-18T10:06:20.000Z | 2021-12-29T21:26:07.000Z | code/Experiments/Tutorials/nn-from-scratch/Stanford_linearClassifier.py | matthijsvk/convNets | 7e65db7857a4e6abfbcab264953eb7741319de6c | [
"Apache-2.0"
] | null | null | null | code/Experiments/Tutorials/nn-from-scratch/Stanford_linearClassifier.py | matthijsvk/convNets | 7e65db7857a4e6abfbcab264953eb7741319de6c | [
"Apache-2.0"
] | 20 | 2017-05-03T03:27:09.000Z | 2022-03-24T07:07:45.000Z | import numpy as np
from sklearn import datasets, linear_model
import matplotlib.pyplot as plt
N = 100 # number of points per class
D = 2 # dimensionality
K = 3 # number of classes
X = np.zeros((N*K,D)) # data matrix (each row = single example)
y = np.zeros(N*K, dtype='uint8') # class labels
for j in xrange(K):
ix = ... | 29.511628 | 77 | 0.632782 | 448 | 2,538 | 3.515625 | 0.34375 | 0.034921 | 0.017143 | 0.032381 | 0.063492 | 0.063492 | 0.045714 | 0.045714 | 0.045714 | 0.045714 | 0 | 0.029078 | 0.200552 | 2,538 | 86 | 78 | 29.511628 | 0.747166 | 0.249409 | 0 | 0.074074 | 0 | 0 | 0.02605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
04be3bdfdab6f6ae6d89f39194d541851f2e7568 | 7,014 | py | Python | articles/imp/genfigs/flights_pdp.py | parrt/stratx | c190ecc32ac7b8dd3f5532a5d5b0de34a3693a22 | [
"MIT"
] | 54 | 2019-07-17T04:59:39.000Z | 2022-03-18T15:25:00.000Z | articles/imp/genfigs/flights_pdp.py | parrt/stratx | c190ecc32ac7b8dd3f5532a5d5b0de34a3693a22 | [
"MIT"
] | 5 | 2019-07-27T16:18:37.000Z | 2020-12-02T20:16:49.000Z | articles/imp/genfigs/flights_pdp.py | parrt/stratx | c190ecc32ac7b8dd3f5532a5d5b0de34a3693a22 | [
"MIT"
] | 13 | 2019-08-08T22:17:50.000Z | 2022-02-11T10:19:23.000Z | from sklearn.utils import resample
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import normalize
from sklearn.ensemble import RandomForestRegressor
from timeit import default_timer as timer
from sklearn.utils import resample
import shap
from support import *
from stratx.featimp impo... | 32.623256 | 136 | 0.531651 | 843 | 7,014 | 4.161329 | 0.221827 | 0.008552 | 0.059863 | 0.022235 | 0.478905 | 0.391106 | 0.308723 | 0.253706 | 0.204675 | 0.171038 | 0 | 0.037417 | 0.333191 | 7,014 | 215 | 137 | 32.623256 | 0.712636 | 0.723838 | 0 | 0.086957 | 0 | 0 | 0.085985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.304348 | 0 | 0.304348 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
04bf2c96c0b64921bdc8bf33ebf6acde2c0f0d8b | 7,521 | py | Python | planner/web/api.py | anzodev/planner | cfad4d57eb5765dbeac7b8808c90e55539633cac | [
"MIT"
] | null | null | null | planner/web/api.py | anzodev/planner | cfad4d57eb5765dbeac7b8808c90e55539633cac | [
"MIT"
] | null | null | null | planner/web/api.py | anzodev/planner | cfad4d57eb5765dbeac7b8808c90e55539633cac | [
"MIT"
] | null | null | null | import logging
from flask import Blueprint
from flask import Flask
from flask import Response
from flask import abort
from flask import current_app
from flask import g
from flask import redirect
from flask import render_template
from flask import request
from flask import url_for
from werkzeug.exceptions import HTTPEx... | 29.03861 | 97 | 0.591278 | 900 | 7,521 | 4.705556 | 0.162222 | 0.054309 | 0.041558 | 0.056671 | 0.458323 | 0.385832 | 0.317592 | 0.280992 | 0.249587 | 0.241322 | 0 | 0.006827 | 0.298896 | 7,521 | 258 | 98 | 29.151163 | 0.796321 | 0.013429 | 0 | 0.394089 | 0 | 0 | 0.119719 | 0.009448 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.054187 | 0.093596 | 0.009852 | 0.256158 | 0.024631 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
04c23906cf93b1c2e66440db5b5da336fa82eae2 | 2,341 | py | Python | puppeteer/fileops.py | haani-niyaz/puppeteer | d8b75d8020ca1ba660d595013215bac612a28990 | [
"MIT"
] | 25 | 2019-02-16T00:59:40.000Z | 2022-02-07T03:00:03.000Z | puppeteer/fileops.py | haani-niyaz/puppeteer | d8b75d8020ca1ba660d595013215bac612a28990 | [
"MIT"
] | 10 | 2018-12-10T00:43:25.000Z | 2019-10-12T23:42:38.000Z | puppeteer/fileops.py | haani-niyaz/puppeteer | d8b75d8020ca1ba660d595013215bac612a28990 | [
"MIT"
] | 1 | 2019-04-24T06:57:32.000Z | 2019-04-24T06:57:32.000Z | import os
import yaml
class FileOps(object):
def __init__(self, path):
"""Set path to file
Args:
path (str): file path
"""
self._infile = path
def _validate_path(self):
"""Validate path to file
Raises:
YAMLFileError: notify user that the file does not exist
"""
... | 23.646465 | 85 | 0.635626 | 308 | 2,341 | 4.720779 | 0.337662 | 0.055021 | 0.020633 | 0.037139 | 0.206327 | 0.206327 | 0.165062 | 0.110041 | 0.064649 | 0.064649 | 0 | 0.004009 | 0.254165 | 2,341 | 98 | 86 | 23.887755 | 0.828751 | 0 | 0 | 0.153846 | 0 | 0 | 0.097597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025641 | 0.051282 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
04d5bf4d5eed039697d4e42ad18bf989c37d5b77 | 7,977 | py | Python | newrelic.py | devopstguru/aws-infra | 463091f0aaf9be0e20a028b82a1bcc1f90d152ef | [
"Apache-2.0"
] | 3 | 2019-10-10T13:24:43.000Z | 2021-04-25T23:36:59.000Z | newrelic.py | devopstguru/aws-infra | 463091f0aaf9be0e20a028b82a1bcc1f90d152ef | [
"Apache-2.0"
] | 2 | 2017-04-27T16:59:43.000Z | 2017-12-20T16:41:38.000Z | newrelic.py | devopstguru/aws-infra | 463091f0aaf9be0e20a028b82a1bcc1f90d152ef | [
"Apache-2.0"
] | 5 | 2017-04-28T22:03:48.000Z | 2021-08-18T01:11:15.000Z | #!/usr/bin/python
from os import environ
import requests
import click
import databag
import base64
admin_key = environ.get("NEWRELIC_API_KEY")
def create_synthetics_monitor(monitor_name, monitor_url, monitor_type="BROWSER", monitor_frequency=15):
"""
Source: https://docs.newrelic.com/docs/apis/synthetics-rest-api... | 39.102941 | 302 | 0.718942 | 1,119 | 7,977 | 4.920465 | 0.161752 | 0.03923 | 0.029967 | 0.033963 | 0.509807 | 0.476934 | 0.455685 | 0.439702 | 0.391391 | 0.35652 | 0 | 0.010976 | 0.143412 | 7,977 | 204 | 303 | 39.102941 | 0.794819 | 0.031842 | 0 | 0.31677 | 0 | 0 | 0.306309 | 0.016679 | 0 | 0 | 0 | 0 | 0.006211 | 0 | null | null | 0.006211 | 0.031056 | null | null | 0.149068 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
04d74d1c368ce39aa64570273464283ecf98b2c5 | 15,755 | py | Python | tests/test_blue_dot.py | webknjaz/BlueDot | 6e6af1b39dc4d2b3e7e2aa0313c10d046c445c7c | [
"MIT"
] | null | null | null | tests/test_blue_dot.py | webknjaz/BlueDot | 6e6af1b39dc4d2b3e7e2aa0313c10d046c445c7c | [
"MIT"
] | null | null | null | tests/test_blue_dot.py | webknjaz/BlueDot | 6e6af1b39dc4d2b3e7e2aa0313c10d046c445c7c | [
"MIT"
] | null | null | null | from bluedot import MockBlueDot, BlueDotSwipe, BlueDotRotation
from time import sleep
from threading import Event, Thread
def test_default_values():
mbd = MockBlueDot()
assert mbd.device == "hci0"
assert mbd.port == 1
assert mbd.running
assert mbd.print_messages
assert mbd.double_press_time ==... | 28.961397 | 103 | 0.704348 | 2,266 | 15,755 | 4.65534 | 0.069726 | 0.08105 | 0.044838 | 0.057067 | 0.684425 | 0.618068 | 0.523367 | 0.477581 | 0.416817 | 0.387714 | 0 | 0.023734 | 0.200381 | 15,755 | 544 | 104 | 28.961397 | 0.813621 | 0.04297 | 0 | 0.513447 | 0 | 0 | 0.00811 | 0 | 0 | 0 | 0 | 0 | 0.511002 | 1 | 0.06357 | false | 0 | 0.00978 | 0 | 0.075795 | 0.012225 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
04db3abf4815b6d3cd02e5017ae728602807bc70 | 1,459 | py | Python | aiakos/urls.py | aiakos/aiakos | a591e7ef13ab9e8e14b4d3569d43fce694c4150a | [
"BSD-2-Clause",
"MIT"
] | 4 | 2017-04-28T19:09:17.000Z | 2018-07-03T04:43:54.000Z | aiakos/urls.py | aiakos/aiakos | a591e7ef13ab9e8e14b4d3569d43fce694c4150a | [
"BSD-2-Clause",
"MIT"
] | 2 | 2020-06-05T17:46:47.000Z | 2021-06-10T17:22:58.000Z | aiakos/urls.py | aiakos/aiakos | a591e7ef13ab9e8e14b4d3569d43fce694c4150a | [
"BSD-2-Clause",
"MIT"
] | 2 | 2017-08-14T07:15:14.000Z | 2019-03-04T14:02:05.000Z | """project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based views... | 35.585366 | 80 | 0.760795 | 222 | 1,459 | 4.918919 | 0.369369 | 0.07326 | 0.054945 | 0.021978 | 0.151099 | 0.107143 | 0.068681 | 0.068681 | 0 | 0 | 0 | 0.015492 | 0.115147 | 1,459 | 40 | 81 | 36.475 | 0.830364 | 0.45305 | 0 | 0 | 0 | 0 | 0.122619 | 0.032143 | 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 | 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 | 1 |
04e13231c42d23b28cae28d31e3cf23aa8a8255f | 58,749 | py | Python | piper/test/test_verbs.py | miketarpey/piper | d1620727889228d61fbe448f4747cef9351ede59 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | piper/test/test_verbs.py | miketarpey/piper | d1620727889228d61fbe448f4747cef9351ede59 | [
"BSD-2-Clause-FreeBSD"
] | 24 | 2021-02-03T17:06:13.000Z | 2021-04-02T13:09:13.000Z | piper/test/test_verbs.py | miketarpey/piper | d1620727889228d61fbe448f4747cef9351ede59 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | from piper.custom import to_julian
from piper.factory import dummy_dataframe
from piper.factory import sample_column_clean_text
from piper.factory import sample_data
from piper.factory import sample_phone_sales
from piper.factory import sample_sales
from piper.factory import simple_series
from piper.verbs import across... | 26.777119 | 94 | 0.635245 | 7,844 | 58,749 | 4.459332 | 0.065783 | 0.043426 | 0.050001 | 0.043855 | 0.79279 | 0.718803 | 0.670774 | 0.618057 | 0.572772 | 0.537179 | 0 | 0.03854 | 0.216055 | 58,749 | 2,193 | 95 | 26.78933 | 0.720905 | 0.102112 | 0 | 0.535294 | 0 | 0 | 0.159497 | 0.004808 | 0 | 0 | 0 | 0 | 0.126891 | 1 | 0.128571 | false | 0 | 0.04958 | 0.005042 | 0.184034 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
04e826c6e8bb0ea34e740fa7c34d594c359f965c | 388 | py | Python | setup.py | michellab/bgflow | 46c1f6035a7baabcbaee015603d08b8ce63d9717 | [
"MIT"
] | 42 | 2021-04-22T13:32:00.000Z | 2022-03-31T12:26:12.000Z | setup.py | michellab/bgflow | 46c1f6035a7baabcbaee015603d08b8ce63d9717 | [
"MIT"
] | 29 | 2021-05-09T01:02:43.000Z | 2022-02-21T18:30:42.000Z | setup.py | michellab/bgflow | 46c1f6035a7baabcbaee015603d08b8ce63d9717 | [
"MIT"
] | 14 | 2021-05-03T11:37:20.000Z | 2022-03-09T15:49:54.000Z | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="bgflow",
version="0.1",
description="Boltzmann Generators in PyTorch",
author="Jonas, Koehler, Frank Noe, Leon Klein, Andreas Krämer",
author_email="jonas.koehler@fu-berlin.de",
url="https://www.mi.fu-berlin.de/en/m... | 27.714286 | 77 | 0.703608 | 55 | 388 | 4.909091 | 0.818182 | 0.088889 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0.14433 | 388 | 13 | 78 | 29.846154 | 0.807229 | 0.051546 | 0 | 0 | 0 | 0.1 | 0.504087 | 0.070845 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
04e8b954480fc57754ea4f358419648e7afc692f | 1,364 | py | Python | notevault/configmanager.py | Sebastian-Hojas/sortnote | b311630e9b5ddc996e73e405f9033c7484f2fc91 | [
"MIT"
] | 1 | 2016-09-25T06:42:47.000Z | 2016-09-25T06:42:47.000Z | notevault/configmanager.py | Sebastian-Hojas/sortnote | b311630e9b5ddc996e73e405f9033c7484f2fc91 | [
"MIT"
] | null | null | null | notevault/configmanager.py | Sebastian-Hojas/sortnote | b311630e9b5ddc996e73e405f9033c7484f2fc91 | [
"MIT"
] | null | null | null | import os
class ConfigManager:
def __init__(self, path, dryrun, verbose):
self.path = path
self.dryrun = dryrun
self.verbose = verbose
self.config = []
try:
with open(self.path, 'r') as f:
self.config = [line.strip('\n').strip('\r') for line in f.... | 29.652174 | 103 | 0.547654 | 160 | 1,364 | 4.64375 | 0.36875 | 0.148048 | 0.036339 | 0.060565 | 0.347241 | 0.20323 | 0.169583 | 0.169583 | 0.169583 | 0.169583 | 0 | 0 | 0.329179 | 1,364 | 46 | 104 | 29.652174 | 0.812022 | 0.012463 | 0 | 0.324324 | 0 | 0 | 0.060178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027027 | null | null | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
04f1a9f0e6e77c705badc1e6e41ec998b06bdcd7 | 574 | py | Python | networking/netmiko/main.py | maciej233/PYTHON | 7e635a2250890f1a293983b3988bdcc5f5e71ccf | [
"MIT"
] | null | null | null | networking/netmiko/main.py | maciej233/PYTHON | 7e635a2250890f1a293983b3988bdcc5f5e71ccf | [
"MIT"
] | null | null | null | networking/netmiko/main.py | maciej233/PYTHON | 7e635a2250890f1a293983b3988bdcc5f5e71ccf | [
"MIT"
] | null | null | null | #!/home/maciej/environments/networking/bin/python python3
from netmiko import ConnectHandler
r1 = {'device_type': 'cisco_ios', 'host': '172.26.1.1', 'username': 'cisco', 'password': 'cisco'}
net_connect = ConnectHandler(**r1)
prompt = net_connect.find_prompt()
output_int = net_connect.send_command('show ip int brief'... | 31.888889 | 97 | 0.731707 | 80 | 574 | 5.0375 | 0.525 | 0.099256 | 0.074442 | 0.08933 | 0.282878 | 0.282878 | 0.133995 | 0 | 0 | 0 | 0 | 0.051923 | 0.094077 | 574 | 17 | 98 | 33.764706 | 0.723077 | 0.097561 | 0 | 0 | 0 | 0 | 0.303675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.181818 | 0.090909 | 0 | 0.090909 | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
04f813212be92b453780c29e41ac9a4da14f7ce7 | 1,646 | py | Python | src/card/types.py | Urumasi/tgc-server | 5e1c10bd477827cf473c2eaad9f10fca37449f90 | [
"MIT"
] | null | null | null | src/card/types.py | Urumasi/tgc-server | 5e1c10bd477827cf473c2eaad9f10fca37449f90 | [
"MIT"
] | null | null | null | src/card/types.py | Urumasi/tgc-server | 5e1c10bd477827cf473c2eaad9f10fca37449f90 | [
"MIT"
] | null | null | null | from enum import Enum
class CardType(Enum):
NONE = 0
ARTIFACT = 1
BATTLEFIELD = 2
CREATURE = 3
EVENT = 4
EQUIPMENT = 5
HUMAN = CREATURE # Why does this exist...
class CardSubtype(Enum):
NONE = 0
ABOMINATION = 1
ANOMALY = 2
ARMOUR = 3
ATMOSPHERICS = 4
CAT = 5
... | 15.67619 | 46 | 0.557108 | 203 | 1,646 | 4.472906 | 0.625616 | 0.052863 | 0.059471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 0.378493 | 1,646 | 104 | 47 | 15.826923 | 0.766373 | 0.013366 | 0 | 0.065934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.010989 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
04f83c509e783a44487a9c45fe0e04c5b21b006b | 5,175 | py | Python | old-scripts/cluster-mgmt/bin/cho-failover.py | opennetworkinglab/spring-open | 7e8a3af4a21674d198ffac462918e79e93f3c348 | [
"Apache-2.0"
] | 6 | 2015-01-30T20:44:32.000Z | 2021-11-09T10:56:04.000Z | old-scripts/cluster-mgmt/bin/cho-failover.py | opennetworkinglab/spring-open | 7e8a3af4a21674d198ffac462918e79e93f3c348 | [
"Apache-2.0"
] | null | null | null | old-scripts/cluster-mgmt/bin/cho-failover.py | opennetworkinglab/spring-open | 7e8a3af4a21674d198ffac462918e79e93f3c348 | [
"Apache-2.0"
] | 5 | 2017-04-27T02:27:51.000Z | 2020-12-29T05:23:35.000Z | #! /usr/bin/env python
import json
import sys
import os
import re
from check_status import *
import time
basename=os.getenv("ONOS_CLUSTER_BASENAME")
operation=['switch all', 'onos stop 8', 'onos stop 7', 'onos stop 6', 'onos stop 5', 'onos start 5;onos start 6;onos start 7;onos start 8', 'switch local']
nr_controlle... | 27.380952 | 157 | 0.610242 | 784 | 5,175 | 3.934949 | 0.205357 | 0.027229 | 0.02269 | 0.032415 | 0.358509 | 0.306645 | 0.272934 | 0.258023 | 0.240519 | 0.200972 | 0 | 0.017875 | 0.210821 | 5,175 | 188 | 158 | 27.526596 | 0.737512 | 0.009082 | 0 | 0.284768 | 0 | 0 | 0.238783 | 0.029653 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039735 | null | null | 0.05298 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca00015d1e9bf8084574d3288a9d45c5ac32ebec | 406 | py | Python | Action/action_enum.py | arunimasundar/Supervised-Learning-of-Procedures | 3ae012cf4ee24a11f7cd35fd2ce04817c9eaa298 | [
"Apache-2.0"
] | null | null | null | Action/action_enum.py | arunimasundar/Supervised-Learning-of-Procedures | 3ae012cf4ee24a11f7cd35fd2ce04817c9eaa298 | [
"Apache-2.0"
] | null | null | null | Action/action_enum.py | arunimasundar/Supervised-Learning-of-Procedures | 3ae012cf4ee24a11f7cd35fd2ce04817c9eaa298 | [
"Apache-2.0"
] | null | null | null | from enum import Enum
class Actions(Enum):
"""
Actions enum
"""
# framewise_recognition.h5
# squat = 0
# stand = 1
# walk = 2
# wave = 3
# framewise_recognition_under_scene.h5
# stand = 0
# walk = 1
# operate = 2
# fall_down = 3
# run = 4
# squat
squa... | 13.533333 | 42 | 0.53202 | 49 | 406 | 4.306122 | 0.55102 | 0.104265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066406 | 0.369458 | 406 | 29 | 43 | 14 | 0.757813 | 0.472906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ca006d6ef754adf08916ee4b3df1053a9bf8f9d6 | 5,899 | py | Python | tappmq/tappmq.py | isysd/tappmq | bd6158bc5c9a0fb3328ecce8d3a1547a0b9a1d69 | [
"MIT"
] | null | null | null | tappmq/tappmq.py | isysd/tappmq | bd6158bc5c9a0fb3328ecce8d3a1547a0b9a1d69 | [
"MIT"
] | 1 | 2016-08-17T18:20:37.000Z | 2016-08-17T18:20:37.000Z | tappmq/tappmq.py | isysd/tappmq | bd6158bc5c9a0fb3328ecce8d3a1547a0b9a1d69 | [
"MIT"
] | null | null | null | """
A simple message queue for TAPPs using Redis.
"""
import json
import time
from sqlalchemy_models import create_session_engine, setup_database, util, exchange as em, user as um, wallet as wm
from tapp_config import setup_redis, get_config, setup_logging
def subscription_handler(channel, client, mykey=None, auth=Fa... | 35.751515 | 115 | 0.611968 | 758 | 5,899 | 4.703166 | 0.257256 | 0.029173 | 0.029173 | 0.012342 | 0.121459 | 0.098457 | 0.092006 | 0.085273 | 0.077419 | 0.060028 | 0 | 0.002143 | 0.288184 | 5,899 | 164 | 116 | 35.969512 | 0.846868 | 0.249534 | 0 | 0.193548 | 0 | 0 | 0.064282 | 0 | 0 | 0 | 0 | 0.012195 | 0 | 1 | 0.11828 | false | 0.010753 | 0.043011 | 0 | 0.258065 | 0.021505 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b6c2880c0817a78243a9c53cc837159bd974ded1 | 2,247 | py | Python | oo/carro.py | SergioVenicio21/pythonbirds | ac060d279846e09dea7407c9391c125f02769065 | [
"MIT"
] | null | null | null | oo/carro.py | SergioVenicio21/pythonbirds | ac060d279846e09dea7407c9391c125f02769065 | [
"MIT"
] | null | null | null | oo/carro.py | SergioVenicio21/pythonbirds | ac060d279846e09dea7407c9391c125f02769065 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
EX:
>>> motor = Motor()
>>> direcao = Direcao()
>>> carro = Carro(direcao, motor)
>>> carro.acelerar()
>>> print(carro.calcular_direcao())
norte
>>> carro.virar_direita()
>>> print(carro.calcular_direcao())
leste
>>> carro.virar_dir... | 21.605769 | 52 | 0.597686 | 246 | 2,247 | 5.268293 | 0.174797 | 0.061728 | 0.069444 | 0.096451 | 0.415895 | 0.314043 | 0.236883 | 0.13966 | 0.068673 | 0.068673 | 0 | 0.005373 | 0.254562 | 2,247 | 103 | 53 | 21.815534 | 0.768358 | 0.273253 | 0 | 0.283019 | 0 | 0 | 0.05234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.264151 | false | 0 | 0 | 0.056604 | 0.415094 | 0.037736 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b6d35aeea13d7f6eb12ae16611e274cb01c0863f | 13,140 | py | Python | home_board/compositor.py | kdickerson/homeBoard | 9e62e27622f5085a10cc59bacc9cbaaaecf31061 | [
"MIT"
] | 7 | 2019-05-05T17:24:33.000Z | 2022-02-28T21:21:17.000Z | home_board/compositor.py | kdickerson/homeBoard | 9e62e27622f5085a10cc59bacc9cbaaaecf31061 | [
"MIT"
] | 7 | 2019-01-13T15:59:22.000Z | 2022-03-02T01:45:50.000Z | home_board/compositor.py | kdickerson/homeBoard | 9e62e27622f5085a10cc59bacc9cbaaaecf31061 | [
"MIT"
] | null | null | null | # Generate in image from the provided weather, calendar, special_events data
import logging
import os
from PIL import Image, ImageDraw, ImageFont
from .util import local_file
EPD_WIDTH = 640
EPD_HEIGHT = 384
BLACK = 0
WHITE = 255
RED = 128
COLUMN_WIDTH = 160
COLUMNS = [0, COLUMN_WIDTH, COLUMN_WIDTH * 2, COLUMN_WIDT... | 37.329545 | 121 | 0.616058 | 1,617 | 13,140 | 4.771181 | 0.148423 | 0.028516 | 0.020739 | 0.020739 | 0.387168 | 0.312249 | 0.283733 | 0.183798 | 0.085936 | 0.064938 | 0 | 0.015167 | 0.242314 | 13,140 | 351 | 122 | 37.435897 | 0.758839 | 0.047945 | 0 | 0.220339 | 1 | 0 | 0.15663 | 0.012332 | 0.00339 | 0 | 0 | 0 | 0 | 1 | 0.037288 | false | 0 | 0.013559 | 0.00678 | 0.071186 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b6dc3ac9df283624a1405485fe8e1841b1415c9e | 1,118 | py | Python | sorting.py | ivanbgd/Quick3-Sort-Py | 68f17e9631066e8bdd90fea0b096fd0d4c2da0a7 | [
"MIT"
] | 1 | 2021-04-08T14:56:09.000Z | 2021-04-08T14:56:09.000Z | sorting.py | ivanbgd/Quick3-Sort-Py | 68f17e9631066e8bdd90fea0b096fd0d4c2da0a7 | [
"MIT"
] | null | null | null | sorting.py | ivanbgd/Quick3-Sort-Py | 68f17e9631066e8bdd90fea0b096fd0d4c2da0a7 | [
"MIT"
] | null | null | null | import sys
import random
def partition3(a, l, r):
x = a[l]
j, o = l, l
for i in range(l+1, r+1):
if a[i] < x:
o += 1
a[i], a[o] = a[o], a[i]
a[j], a[o] = a[o], a[j]
j += 1
elif a[i] == x:
o += 1
a[i], a[o] = a[o], a[i]
... | 22.36 | 67 | 0.447227 | 207 | 1,118 | 2.338164 | 0.289855 | 0.045455 | 0.03719 | 0.173554 | 0.245868 | 0.053719 | 0.053719 | 0.053719 | 0.053719 | 0.053719 | 0 | 0.070707 | 0.380143 | 1,118 | 50 | 68 | 22.36 | 0.627706 | 0.137746 | 0 | 0.153846 | 0 | 0 | 0.020833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.051282 | 0 | 0.153846 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b6e54606912a3ce57d5234f3e530ed78f1c4fe65 | 1,233 | py | Python | aio_databases/backends/_dummy.py | klen/aio-databases | 395edcc810598e1639ccd9727aecb4d97cf04df9 | [
"MIT"
] | 6 | 2021-08-13T16:17:47.000Z | 2022-02-04T01:22:02.000Z | aio_databases/backends/_dummy.py | klen/aio-databases | 395edcc810598e1639ccd9727aecb4d97cf04df9 | [
"MIT"
] | null | null | null | aio_databases/backends/_dummy.py | klen/aio-databases | 395edcc810598e1639ccd9727aecb4d97cf04df9 | [
"MIT"
] | null | null | null | import typing as t
from . import ABCDatabaseBackend, ABCConnection
from .common import Transaction
class Connection(ABCConnection):
transaction_cls = Transaction
async def _execute(self, query: str, *params, **options) -> t.Any:
return None
async def _executemany(self, query: str, *params, **o... | 24.176471 | 95 | 0.633414 | 150 | 1,233 | 5.133333 | 0.366667 | 0.114286 | 0.127273 | 0.14026 | 0.357143 | 0.357143 | 0.284416 | 0.246753 | 0.246753 | 0.246753 | 0 | 0.001078 | 0.247364 | 1,233 | 50 | 96 | 24.66 | 0.828664 | 0.025142 | 0 | 0.322581 | 0 | 0 | 0.008361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.129032 | 0.096774 | 0 | 0.483871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b6edbdb48109388e174711acac21f84bdd1ed311 | 1,303 | py | Python | twentiment/auth.py | katykennington/twentiment | 9e40cd0b112a7c66b4a88fb4a39b29470a60d82b | [
"MIT"
] | null | null | null | twentiment/auth.py | katykennington/twentiment | 9e40cd0b112a7c66b4a88fb4a39b29470a60d82b | [
"MIT"
] | null | null | null | twentiment/auth.py | katykennington/twentiment | 9e40cd0b112a7c66b4a88fb4a39b29470a60d82b | [
"MIT"
] | null | null | null | """
This module is about authentication
"""
import tweepy
try:
from twentiment import secrets
except ImportError:
secrets = None
class AuthenticationError(ValueError):
pass
def authenticate(consumer_key=None, consumer_secret=None, access_token=None, access_secret=None) -> tweepy.OAuthHandler:
"""P... | 31.02381 | 120 | 0.72218 | 153 | 1,303 | 5.954248 | 0.372549 | 0.096597 | 0.093304 | 0.100988 | 0.217344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216424 | 1,303 | 42 | 121 | 31.02381 | 0.892262 | 0.322333 | 0 | 0 | 0 | 0 | 0.082725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.1875 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b6ef68b86cf8d55f6c3fcc929377ec6d5ff08970 | 527 | py | Python | src/djshop/apps/sale/migrations/0002_sale_operation_number.py | diegojromerolopez/djshop | 3fe623532228006e96269bd0f21c7b7d380c3a1a | [
"MIT"
] | null | null | null | src/djshop/apps/sale/migrations/0002_sale_operation_number.py | diegojromerolopez/djshop | 3fe623532228006e96269bd0f21c7b7d380c3a1a | [
"MIT"
] | 1 | 2017-05-08T17:05:00.000Z | 2018-04-04T11:55:30.000Z | src/djshop/apps/sale/migrations/0002_sale_operation_number.py | diegojromerolopez/djshop | 3fe623532228006e96269bd0f21c7b7d380c3a1a | [
"MIT"
] | 2 | 2017-04-25T10:32:57.000Z | 2020-05-04T16:12:08.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-05-09 15:47
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sale', '0001_initial'),
]
operations = [
migrations.AddField(
mod... | 23.954545 | 100 | 0.626186 | 58 | 527 | 5.5 | 0.741379 | 0.050157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 0.259962 | 527 | 21 | 101 | 25.095238 | 0.75641 | 0.125237 | 0 | 0 | 1 | 0 | 0.124454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b6fc85c6fabed1b9292da5904e46e866bfbea373 | 5,871 | py | Python | sdk/python/v1beta1/kubeflow/katib/models/v1beta1_source_spec.py | ujjwalsh/katib | eb4207af3688210e783e3b0aafa826014f897c4e | [
"Apache-2.0"
] | 2 | 2021-06-24T13:21:01.000Z | 2021-06-24T13:29:28.000Z | sdk/python/v1beta1/kubeflow/katib/models/v1beta1_source_spec.py | ujjwalsh/katib | eb4207af3688210e783e3b0aafa826014f897c4e | [
"Apache-2.0"
] | 669 | 2021-01-25T10:26:46.000Z | 2022-03-31T22:01:58.000Z | sdk/python/v1beta1/kubeflow/katib/models/v1beta1_source_spec.py | ujjwalsh/katib | eb4207af3688210e783e3b0aafa826014f897c4e | [
"Apache-2.0"
] | 1 | 2021-09-10T06:56:10.000Z | 2021-09-10T06:56:10.000Z | # coding: utf-8
"""
Katib
Swagger description for Katib # noqa: E501
OpenAPI spec version: v1beta1-0.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from kubeflow.katib.models.v1beta1_file_system_path import V1beta1File... | 32.983146 | 219 | 0.61659 | 707 | 5,871 | 4.954738 | 0.222065 | 0.057094 | 0.079931 | 0.069369 | 0.459321 | 0.393092 | 0.375963 | 0.302883 | 0.247217 | 0.206109 | 0 | 0.033413 | 0.291432 | 5,871 | 177 | 220 | 33.169492 | 0.808654 | 0.405553 | 0 | 0.063291 | 1 | 0 | 0.055536 | 0.007244 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151899 | false | 0 | 0.075949 | 0 | 0.379747 | 0.025316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.