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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
84f0c91d3787a7f55982e14883a023001fc168a1 | 1,458 | py | Python | codegenandtransformerapi/models/template.py | farhan-apimatic/2bb956fd-e451-4e82-beb3-5cae661a01be | 2d94aab20aa426e007157dc5eb932cc06d163578 | [
"MIT"
] | null | null | null | codegenandtransformerapi/models/template.py | farhan-apimatic/2bb956fd-e451-4e82-beb3-5cae661a01be | 2d94aab20aa426e007157dc5eb932cc06d163578 | [
"MIT"
] | null | null | null | codegenandtransformerapi/models/template.py | farhan-apimatic/2bb956fd-e451-4e82-beb3-5cae661a01be | 2d94aab20aa426e007157dc5eb932cc06d163578 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
codegenandtransformerapi.models.template
This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io )
"""
class Template(object):
"""Implementation of the 'template' enum.
TODO: type enum description here.
Attributes:
CS_PORT... | 29.755102 | 83 | 0.710562 | 185 | 1,458 | 5.151351 | 0.264865 | 0.125918 | 0.115425 | 0.23085 | 0.488982 | 0.381952 | 0.116474 | 0 | 0 | 0 | 0 | 0.002643 | 0.221536 | 1,458 | 48 | 84 | 30.375 | 0.837004 | 0.541838 | 0 | 0 | 1 | 0 | 0.349265 | 0.126838 | 0 | 0 | 0 | 0.229167 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
84f5d372e68bf481e4f8cefe291952cecedee0e1 | 758 | py | Python | leet/array/maxSubArrayLen.py | peterlamar/python-cp-cheatsheet | f9f854064a3c657c04fab27d0a496401bfa97da1 | [
"Apache-2.0"
] | 140 | 2020-10-21T13:23:52.000Z | 2022-03-31T15:09:45.000Z | leet/array/maxSubArrayLen.py | stacykutyepov/python-cp-cheatsheet | a00a57e1b36433648d1cace331e15ff276cef189 | [
"Apache-2.0"
] | 1 | 2021-07-22T14:01:25.000Z | 2021-07-22T14:01:25.000Z | leet/array/maxSubArrayLen.py | stacykutyepov/python-cp-cheatsheet | a00a57e1b36433648d1cace331e15ff276cef189 | [
"Apache-2.0"
] | 33 | 2020-10-21T14:17:02.000Z | 2022-03-25T11:25:03.000Z | class Solution:
# Maximum Size Subarray Sum Equals k
def maxSubArrayLen(self, nums: List[int], k: int) -> int:
hm = {0:-1}
ps = 0
rtn = 0
for i in range(len(nums)):
ps += nums[i]
if ps not in hm:
hm[ps] = i
if ps - ... | 24.451613 | 61 | 0.378628 | 100 | 758 | 2.87 | 0.3 | 0.055749 | 0.052265 | 0.174216 | 0.655052 | 0.655052 | 0.655052 | 0.655052 | 0.655052 | 0.655052 | 0 | 0.019022 | 0.514512 | 758 | 31 | 62 | 24.451613 | 0.76087 | 0.044855 | 0 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 3 |
ca1faa7733fe1e333435d25ab74a685eb48a367a | 527 | py | Python | tests/model/test_provisioned_worker_pool_properties.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | tests/model/test_provisioned_worker_pool_properties.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | tests/model/test_provisioned_worker_pool_properties.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | from yellowdog_client.model import ProvisionedWorkerPoolProperties
from .test_utils import should_serde
def test_serialize_empty():
obj_in_raw = ProvisionedWorkerPoolProperties()
obj_in_dict = {}
should_serde(obj_in_raw, obj_in_dict, ProvisionedWorkerPoolProperties)
def test_serialize_populated(provis... | 35.133333 | 130 | 0.867173 | 59 | 527 | 7.186441 | 0.372881 | 0.04717 | 0.198113 | 0.292453 | 0.325472 | 0.325472 | 0.325472 | 0.325472 | 0.325472 | 0.325472 | 0 | 0 | 0.089184 | 527 | 14 | 131 | 37.642857 | 0.883333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ca37f2e9d0e94830ad3812be5f68b7b1593f8a98 | 441 | py | Python | fileresponse/asgi.py | ephes/django-fileresponse | 77e93c9dd7274dd9dffa5fbc887a2e8d7896b663 | [
"Apache-2.0"
] | 2 | 2021-06-11T17:53:27.000Z | 2021-08-01T21:19:58.000Z | fileresponse/asgi.py | ephes/django_fileresponse | 77e93c9dd7274dd9dffa5fbc887a2e8d7896b663 | [
"Apache-2.0"
] | null | null | null | fileresponse/asgi.py | ephes/django_fileresponse | 77e93c9dd7274dd9dffa5fbc887a2e8d7896b663 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/02_asgi.ipynb (unless otherwise specified).
__all__ = ['get_asgi_application']
# Cell
import django
from fileresponse.handlers import AsyncFileASGIHandler
def get_asgi_application():
"""
Similar to django.core.asgi.get_asgi_application, but uses AsyncFileASG... | 24.5 | 91 | 0.761905 | 52 | 441 | 6.230769 | 0.711538 | 0.064815 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005376 | 0.156463 | 441 | 18 | 92 | 24.5 | 0.865591 | 0.469388 | 0 | 0 | 1 | 0 | 0.093458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ca40e385983cc9f79e46fafc5c225168fa239a21 | 1,418 | py | Python | restapi/models.py | AymenQ/tarteel.io | a72150bca90b5244580daf172d5f8d738ba98c1b | [
"MIT"
] | null | null | null | restapi/models.py | AymenQ/tarteel.io | a72150bca90b5244580daf172d5f8d738ba98c1b | [
"MIT"
] | null | null | null | restapi/models.py | AymenQ/tarteel.io | a72150bca90b5244580daf172d5f8d738ba98c1b | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.db import models
class DemographicInformation(models.Model):
session_id = models.CharField(max_length=32, blank=True)
# This could be used to store different platforms such as android,
# ios, web if different identification methods are used for each one.... | 48.896552 | 83 | 0.716502 | 176 | 1,418 | 5.613636 | 0.4375 | 0.13664 | 0.163968 | 0.218623 | 0.451417 | 0.37247 | 0.37247 | 0.215587 | 0.215587 | 0.172065 | 0 | 0.016594 | 0.192525 | 1,418 | 28 | 84 | 50.642857 | 0.846288 | 0.110014 | 0 | 0.090909 | 0 | 0 | 0.002385 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.909091 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ca486441cf57c6b1cc42f94e899701204df7f145 | 8,591 | py | Python | sdk/python/pulumi_azure_native/documentdb/__init__.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/documentdb/__init__.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/documentdb/__init__.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
# Export this package's modules as members:
from ._enums import *
from .cassandra_cluster import *
from .cassandra_data_center import *
from .cassandra... | 52.384146 | 96 | 0.752648 | 872 | 8,591 | 7.154817 | 0.167431 | 0.097772 | 0.097612 | 0.10771 | 0.588716 | 0.548165 | 0.381311 | 0.297964 | 0.255329 | 0.255329 | 0 | 0.015902 | 0.172855 | 8,591 | 163 | 97 | 52.705521 | 0.862088 | 0.026889 | 0 | 0 | 1 | 0 | 0.173809 | 0.167944 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02027 | false | 0 | 0.439189 | 0.006757 | 0.668919 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ca52e417e5e79d0ff0db90a8c7add8ca0b539fdd | 1,429 | py | Python | hipotenusa/__init__.py | agucova/cs42 | 83640ee6b8a38437563e476a3bfb3805e54930b8 | [
"MIT"
] | null | null | null | hipotenusa/__init__.py | agucova/cs42 | 83640ee6b8a38437563e476a3bfb3805e54930b8 | [
"MIT"
] | null | null | null | hipotenusa/__init__.py | agucova/cs42 | 83640ee6b8a38437563e476a3bfb3805e54930b8 | [
"MIT"
] | null | null | null | import check50
@check50.check()
def triangulo_1():
"""triangulo_1"""
check50.run("python3 hipotenusa.py").stdin("3\n4", prompt=False).stdout("Hipotenusa: 5", regex=False).exit(0)
@check50.check()
def triangulo_2():
"""triangulo_2"""
check50.run("python3 hipotenusa.py").stdin("6\n8", prompt=False).stdo... | 34.853659 | 119 | 0.685794 | 194 | 1,429 | 4.969072 | 0.226804 | 0.099585 | 0.124481 | 0.19917 | 0.565353 | 0.565353 | 0.283195 | 0.283195 | 0 | 0 | 0 | 0.094237 | 0.10147 | 1,429 | 41 | 120 | 34.853659 | 0.656542 | 0.06648 | 0 | 0.32 | 0 | 0 | 0.258887 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.32 | true | 0 | 0.04 | 0 | 0.36 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ca61afc03fb4605ab810701f6f211d0f3c6ad247 | 92 | py | Python | Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/10.0-Debugging.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/10.0-Debugging.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/10.0-Debugging.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | user_name = input("You name: ")
value = 1
new_string = value + user_name
print(new_string)
| 15.333333 | 31 | 0.717391 | 15 | 92 | 4.133333 | 0.6 | 0.258065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.163043 | 92 | 5 | 32 | 18.4 | 0.792208 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ca680e9124b7394a3ef6a6fbbce2a803a812ef86 | 2,282 | py | Python | pylabnet/network/client_server/hdawg.py | wi11dey/pylabnet | a6e3362f727c45aaa60e61496e858ae92e85574d | [
"MIT"
] | 10 | 2020-01-07T23:28:49.000Z | 2022-02-02T19:09:17.000Z | pylabnet/network/client_server/hdawg.py | wi11dey/pylabnet | a6e3362f727c45aaa60e61496e858ae92e85574d | [
"MIT"
] | 249 | 2019-12-28T19:38:49.000Z | 2022-03-28T16:45:32.000Z | pylabnet/network/client_server/hdawg.py | wi11dey/pylabnet | a6e3362f727c45aaa60e61496e858ae92e85574d | [
"MIT"
] | 5 | 2020-11-17T19:45:10.000Z | 2022-01-04T18:07:04.000Z | from pylabnet.network.core.service_base import ServiceBase
from pylabnet.network.core.client_base import ClientBase
class Service(ServiceBase):
def exposed_set_direct_user_register(self, awg_num, index, value):
return self._module.set_direct_user_register(awg_num, index, value)
def exposed_get_direc... | 31.694444 | 84 | 0.664768 | 316 | 2,282 | 4.588608 | 0.205696 | 0.107586 | 0.09931 | 0.082759 | 0.533793 | 0.437241 | 0.394483 | 0.394483 | 0.296552 | 0.133793 | 0 | 0.011481 | 0.236635 | 2,282 | 71 | 85 | 32.140845 | 0.820896 | 0.336547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0 | 0.083333 | 0.208333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ca6babf1afbb11bee027856f690db0824fbb6124 | 176 | py | Python | tests/test_vcs_verify_read_a_isofill.py | scottwittenburg/vcs | 5b9f17fb78f7ab186fc0132ab81ada043a7ba348 | [
"BSD-3-Clause"
] | 11 | 2018-10-10T03:14:33.000Z | 2022-01-05T14:18:15.000Z | tests/test_vcs_verify_read_a_isofill.py | scottwittenburg/vcs | 5b9f17fb78f7ab186fc0132ab81ada043a7ba348 | [
"BSD-3-Clause"
] | 196 | 2018-03-21T19:44:56.000Z | 2021-12-21T21:56:24.000Z | tests/test_vcs_verify_read_a_isofill.py | scottwittenburg/vcs | 5b9f17fb78f7ab186fc0132ab81ada043a7ba348 | [
"BSD-3-Clause"
] | 5 | 2019-12-09T21:54:45.000Z | 2022-03-20T04:22:14.000Z | import basevcstest
class TestVCSVerify(basevcstest.VCSBaseTest):
def testReadIsofill(self):
iso = self.x.getisofill("a_isofill")
assert(iso.levels != [])
| 22 | 45 | 0.6875 | 18 | 176 | 6.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193182 | 176 | 7 | 46 | 25.142857 | 0.84507 | 0 | 0 | 0 | 0 | 0 | 0.051136 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ca90b206223b3196e31a4df946d959c2f06012dc | 453 | py | Python | examples/myemph.py | fractaledmind/pandocfilters | 0c98ba56450706856197279fdfbd1b25fe1a120d | [
"BSD-3-Clause"
] | 1 | 2020-08-02T19:36:02.000Z | 2020-08-02T19:36:02.000Z | examples/myemph.py | ooharak/pandocfilters | 0c98ba56450706856197279fdfbd1b25fe1a120d | [
"BSD-3-Clause"
] | null | null | null | examples/myemph.py | ooharak/pandocfilters | 0c98ba56450706856197279fdfbd1b25fe1a120d | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from pandocfilters import toJSONFilter, RawInline
"""
Pandoc filter that causes emphasis to be rendered using
the custom macro '\myemph{...}' rather than '\emph{...}'
in latex. Other output formats are unaffected.
"""
def latex(s):
return RawInline('latex', s)
def myemph(k, v, f, meta):
if... | 23.842105 | 56 | 0.660044 | 61 | 453 | 4.770492 | 0.704918 | 0.041237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16777 | 453 | 18 | 57 | 25.166667 | 0.771883 | 0.04415 | 0 | 0 | 0 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ca99d42d9c4e01be67ef8345a7e4851722d76081 | 66 | py | Python | B_Python_and_friends/solutions/ex1_5.py | oercompbiomed/CBM101 | 20010dcb99fbf218c4789eb5918dcff8ceb94898 | [
"MIT"
] | 7 | 2019-07-03T07:41:55.000Z | 2022-02-06T20:25:37.000Z | beginners-guide/solutions/ex1_5.py | oercompbiomed/Seili-2020 | 1f7490d58759098de28494f4580af3c700f57bd4 | [
"MIT"
] | 9 | 2019-03-14T15:15:09.000Z | 2019-08-01T14:18:21.000Z | B_Python_and_friends/solutions/ex1_5.py | oercompbiomed/CBM101 | 20010dcb99fbf218c4789eb5918dcff8ceb94898 | [
"MIT"
] | 11 | 2019-03-12T10:43:11.000Z | 2021-10-05T12:15:00.000Z | n = 15
for i in range(n):
k = (n-i)//2
print(' '*k, '*'*i) | 16.5 | 23 | 0.393939 | 14 | 66 | 1.857143 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 0.30303 | 66 | 4 | 23 | 16.5 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
04a89f286a6a6825c7945ba8a0e993a37329bfb7 | 2,112 | py | Python | Competitive Programming/System Design/Design Parking System.py | shreejitverma/GeeksforGeeks | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-18T05:14:28.000Z | 2022-03-08T07:00:08.000Z | Competitive Programming/System Design/Design Parking System.py | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 6 | 2022-01-13T04:31:04.000Z | 2022-03-12T01:06:16.000Z | Competitive Programming/System Design/Design Parking System.py | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-14T19:53:53.000Z | 2022-02-18T05:14:30.000Z | '''https://leetcode.com/problems/design-parking-system/
1603. Design Parking System
Easy
451217Add to ListShare
Design a parking system for a parking lot. The parking lot has three kinds of parking spaces:
big, medium, and small, with a fixed number of slots for each size.
Implement the ParkingSystem class:
• Parking... | 36.413793 | 114 | 0.680398 | 322 | 2,112 | 4.447205 | 0.319876 | 0.02933 | 0.039106 | 0.047486 | 0.156425 | 0.128492 | 0.120112 | 0.120112 | 0.120112 | 0.120112 | 0 | 0.028888 | 0.22964 | 2,112 | 57 | 115 | 37.052632 | 0.848187 | 0.838542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
04ad3433f7a10fbca597043e5c9985247d01fc41 | 37 | py | Python | mopidy_mopify/mem.py | dirkgroenen/mopidy-mopify | 6651740c3475f2ab76ece7bded8b7f5d2d8cd13e | [
"Apache-2.0"
] | 504 | 2015-01-03T07:10:35.000Z | 2021-09-11T01:09:59.000Z | mopidy_mopify/mem.py | dirkgroenen/mopidy-mopify | 6651740c3475f2ab76ece7bded8b7f5d2d8cd13e | [
"Apache-2.0"
] | 242 | 2015-01-04T02:17:51.000Z | 2022-03-26T21:42:21.000Z | mopidy_mopify/mem.py | dirkgroenen/mopidy-mopify | 6651740c3475f2ab76ece7bded8b7f5d2d8cd13e | [
"Apache-2.0"
] | 67 | 2015-01-04T17:56:49.000Z | 2021-02-11T01:05:05.000Z | queuemanager = None
localfiles = None | 18.5 | 19 | 0.810811 | 4 | 37 | 7.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 37 | 2 | 20 | 18.5 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
04d2edfdd9b810b0a7003b08b1c44dc794aae945 | 358 | py | Python | spyder_terminal/server/rest/__init__.py | mrclary/spyder-terminal | 45b2a3ca1ebe7aad5fe2d18536199dfb57d43264 | [
"MIT"
] | 169 | 2017-03-12T00:42:45.000Z | 2022-03-16T20:03:55.000Z | spyder_terminal/server/rest/__init__.py | mrclary/spyder-terminal | 45b2a3ca1ebe7aad5fe2d18536199dfb57d43264 | [
"MIT"
] | 200 | 2017-01-12T23:51:27.000Z | 2022-03-29T15:20:12.000Z | spyder_terminal/server/rest/__init__.py | mrclary/spyder-terminal | 45b2a3ca1ebe7aad5fe2d18536199dfb57d43264 | [
"MIT"
] | 70 | 2017-01-13T00:08:59.000Z | 2022-03-31T19:05:47.000Z | # -*- coding: utf-8 -*-
"""
rest module.
=========
Provides:
1. Asynchronous execution of JSON services
How to use the documentation
----------------------------
Documentation is available in one form: docstrings provided
with the code
Copyright (c) 2016, Edgar A. Margffoy.
MIT, see LICENSE for more details.
"... | 16.272727 | 59 | 0.650838 | 46 | 358 | 5.021739 | 0.891304 | 0.069264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020202 | 0.170391 | 358 | 21 | 60 | 17.047619 | 0.757576 | 0.871508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
04eb435c52879a2b456b55221e5b633845c7231f | 77 | py | Python | Adapters.indigoPlugin/Contents/Server Plugin/pyrescaler/__init__.py | jdhorne/temperature-converter-indigo-plugin | a6f1c1fc19ce2b3e6d1897fa7dac6c8102bd30e7 | [
"Apache-2.0"
] | 1 | 2017-01-16T19:08:06.000Z | 2017-01-16T19:08:06.000Z | Adapters.indigoPlugin/Contents/Server Plugin/pyrescaler/__init__.py | jdhorne/temperature-converter-indigo-plugin | a6f1c1fc19ce2b3e6d1897fa7dac6c8102bd30e7 | [
"Apache-2.0"
] | 2 | 2016-12-27T16:04:02.000Z | 2019-03-03T19:32:27.000Z | Adapters.indigoPlugin/Contents/Server Plugin/pyrescaler/__init__.py | jdhorne/temperature-converter-indigo-plugin | a6f1c1fc19ce2b3e6d1897fa7dac6c8102bd30e7 | [
"Apache-2.0"
] | null | null | null | __all__ = ["pyrescaler", "temperature_scale", "length_scale", "power_scale"]
| 38.5 | 76 | 0.74026 | 8 | 77 | 6.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077922 | 77 | 1 | 77 | 77 | 0.704225 | 0 | 0 | 0 | 0 | 0 | 0.649351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b6cf75dc1ba30e221852c9d9d7fc84a8af6d7b46 | 227 | py | Python | tools/polly/bin/detail/osx_dev_root.py | Kondr11/LABA7 | 7c5628192f8bac7ea68df725bc0529f8f94302bc | [
"MIT"
] | 861 | 2015-02-03T10:20:11.000Z | 2022-03-13T20:19:12.000Z | tools/polly/bin/detail/osx_dev_root.py | Kondr11/LABA7 | 7c5628192f8bac7ea68df725bc0529f8f94302bc | [
"MIT"
] | 197 | 2015-04-15T20:13:30.000Z | 2021-03-22T14:18:33.000Z | tools/polly/bin/detail/osx_dev_root.py | Kondr11/LABA7 | 7c5628192f8bac7ea68df725bc0529f8f94302bc | [
"MIT"
] | 236 | 2015-03-05T19:52:07.000Z | 2021-12-24T06:02:07.000Z | # Copyright (c) 2015, Ruslan Baratov
# All rights reserved.
import os
import re
def get(osx_version):
dev_dir = re.sub(r'\.', '_', osx_version)
dev_dir = 'OSX_{}_DEVELOPER_DIR'.format(dev_dir)
return os.getenv(dev_dir)
| 20.636364 | 50 | 0.709251 | 36 | 227 | 4.194444 | 0.638889 | 0.15894 | 0.172185 | 0.211921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020725 | 0.14978 | 227 | 10 | 51 | 22.7 | 0.761658 | 0.242291 | 0 | 0 | 0 | 0 | 0.136095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b6d037bda1d8102746031f2586bf9c946dc83973 | 14,517 | py | Python | 99.py | juandarr/ProjectEuler | 951705ac62f550d7fbecdc3f35ab8c38b53b9225 | [
"MIT"
] | null | null | null | 99.py | juandarr/ProjectEuler | 951705ac62f550d7fbecdc3f35ab8c38b53b9225 | [
"MIT"
] | null | null | null | 99.py | juandarr/ProjectEuler | 951705ac62f550d7fbecdc3f35ab8c38b53b9225 | [
"MIT"
] | null | null | null | """
Finds the biggest numeral in an array where each row has the format base, exponent
Author: Juan Rios
"""
import math
pairs = """519432,525806
632382,518061
78864,613712
466580,530130
780495,510032
525895,525320
15991,714883
960290,502358
760018,511029
166800,575487
210884,564478
555151,523163
681146,515199
563395,... | 14.190616 | 91 | 0.845629 | 2,098 | 14,517 | 5.841754 | 0.969018 | 0.004569 | 0.002774 | 0.003101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.890061 | 0.079562 | 14,517 | 1,023 | 91 | 14.190616 | 0.027167 | 0.006888 | 0 | 0 | 0 | 0 | 0.9678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.000985 | false | 0 | 0.000985 | 0 | 0.002956 | 0.000985 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b6e54afef9cdf6ae38ebcd28baa09c706b7f31f3 | 308 | py | Python | Exercicios-Python/CursoEmVideo/ex019.py | bruno1906/ExerciciosPython | af657fb8083bc60b80d35d0d9f66495a2f1e3b43 | [
"MIT"
] | null | null | null | Exercicios-Python/CursoEmVideo/ex019.py | bruno1906/ExerciciosPython | af657fb8083bc60b80d35d0d9f66495a2f1e3b43 | [
"MIT"
] | null | null | null | Exercicios-Python/CursoEmVideo/ex019.py | bruno1906/ExerciciosPython | af657fb8083bc60b80d35d0d9f66495a2f1e3b43 | [
"MIT"
] | null | null | null | from random import choices
n1=str(input('Digite o nome do primeiro aluno:'))
n2=str(input('Digite o nome do segundo aluno:'))
n3=str(input('Digite o nome do terceiro aluno:'))
n4=str(input('Digite o nome do quarto aluno'))
lista=[n1, n2, n3, n4]
e=choices(lista)
print('O aluno escolhido foi {}'.format(e))
| 30.8 | 49 | 0.714286 | 55 | 308 | 4 | 0.454545 | 0.145455 | 0.254545 | 0.272727 | 0.381818 | 0.381818 | 0 | 0 | 0 | 0 | 0 | 0.02974 | 0.126623 | 308 | 9 | 50 | 34.222222 | 0.788104 | 0 | 0 | 0 | 0 | 0 | 0.480519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.125 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8e053093c997b1b0f61bfbe1aaecca51ad6f1a5f | 379 | py | Python | restaurant/admin.py | shankarj67/Django-RESTAPI | 76be6f6f3e07a08fc98788a41c83faf1c03f4770 | [
"MIT"
] | null | null | null | restaurant/admin.py | shankarj67/Django-RESTAPI | 76be6f6f3e07a08fc98788a41c83faf1c03f4770 | [
"MIT"
] | 12 | 2020-03-24T17:46:06.000Z | 2022-02-10T11:27:41.000Z | restaurant/admin.py | shankarj67/Django-RESTAPI | 76be6f6f3e07a08fc98788a41c83faf1c03f4770 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import FoodDetail, OrderDetail
from import_export.admin import ImportExportActionModelAdmin
@admin.register(FoodDetail)
class StartupAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug": ("name",)}
@admin.register(OrderDetail)
class StartupAdmin(admin.ModelAdmin):... | 29.153846 | 60 | 0.783641 | 39 | 379 | 7.512821 | 0.487179 | 0.088737 | 0.150171 | 0.21843 | 0.368601 | 0.368601 | 0.368601 | 0 | 0 | 0 | 0 | 0 | 0.105541 | 379 | 12 | 61 | 31.583333 | 0.864307 | 0 | 0 | 0.222222 | 0 | 0 | 0.07124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8e205c30e23a9fa0118f96915e8ef1a29ad03761 | 443 | py | Python | contrastive_highlights/Interfaces/abstract_interface.py | yotamitai/Contrastive_Highlights | fb485a53a6810b781b15a2e610bf86db97048873 | [
"MIT"
] | null | null | null | contrastive_highlights/Interfaces/abstract_interface.py | yotamitai/Contrastive_Highlights | fb485a53a6810b781b15a2e610bf86db97048873 | [
"MIT"
] | null | null | null | contrastive_highlights/Interfaces/abstract_interface.py | yotamitai/Contrastive_Highlights | fb485a53a6810b781b15a2e610bf86db97048873 | [
"MIT"
] | null | null | null |
class AbstractInterface(object):
def __init__(self, config, output_dir):
self.output_dir = output_dir
self.config = config
def initiate(self):
return
def get_state_action_values(self, agent, state):
return
def get_state_from_obs(self, agent, obs, params=None):
... | 21.095238 | 58 | 0.641084 | 56 | 443 | 4.785714 | 0.410714 | 0.134328 | 0.179104 | 0.126866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.275395 | 443 | 21 | 59 | 21.095238 | 0.834891 | 0 | 0 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0.357143 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8e345aa1250ecae8345a8936df14b24b60f23692 | 416 | py | Python | tests/ea/mutation/mutator/conftest.py | stevenbennett96/stk | 6e5af87625b83e0bfc7243bc42d8c7a860cbeb76 | [
"MIT"
] | 21 | 2018-04-12T16:25:24.000Z | 2022-02-14T23:05:43.000Z | tests/ea/mutation/mutator/conftest.py | stevenbennett96/stk | 6e5af87625b83e0bfc7243bc42d8c7a860cbeb76 | [
"MIT"
] | 8 | 2019-03-19T12:36:36.000Z | 2020-11-11T12:46:00.000Z | tests/ea/mutation/mutator/conftest.py | stevenbennett96/stk | 6e5af87625b83e0bfc7243bc42d8c7a860cbeb76 | [
"MIT"
] | 5 | 2018-08-07T13:00:16.000Z | 2021-11-01T00:55:10.000Z | import pytest
from pytest_lazyfixture import lazy_fixture
# Fixtures must be visible for lazy_fixture() calls.
from .fixtures import * # noqa
@pytest.fixture(
params=(
lazy_fixture('random_building_block'),
lazy_fixture('random_topology_graph'),
lazy_fixture('similar_building_block'),
... | 23.111111 | 52 | 0.713942 | 49 | 416 | 5.755102 | 0.55102 | 0.234043 | 0.180851 | 0.170213 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 416 | 17 | 53 | 24.470588 | 0.839286 | 0.132212 | 0 | 0 | 0 | 0 | 0.217877 | 0.178771 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0.076923 | 0.384615 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8e35360e99021f8d8492b3366e337e75530377b4 | 34 | py | Python | ffptutils/scripts/__init__.py | sekineh/ffptutils-py | 9b57a0e4bbba7a5e8c35a06551264d190cd410b9 | [
"MIT"
] | null | null | null | ffptutils/scripts/__init__.py | sekineh/ffptutils-py | 9b57a0e4bbba7a5e8c35a06551264d190cd410b9 | [
"MIT"
] | 8 | 2020-07-15T07:45:17.000Z | 2021-03-31T20:02:56.000Z | ffptutils/scripts/__init__.py | sekineh/ffptutils-py | 9b57a0e4bbba7a5e8c35a06551264d190cd410b9 | [
"MIT"
] | null | null | null | __all__ = ['csv2ffpt', 'ffpt2csv'] | 34 | 34 | 0.676471 | 3 | 34 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 0.088235 | 34 | 1 | 34 | 34 | 0.548387 | 0 | 0 | 0 | 0 | 0 | 0.457143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8e382f322b86b6ee9db0f4911a13409b7e48c247 | 27,013 | py | Python | lfs/criteria/models/criteria.py | naro/django-lfs | 312404370e497d00aa0f7221dc55a70a20490fb5 | [
"BSD-3-Clause"
] | null | null | null | lfs/criteria/models/criteria.py | naro/django-lfs | 312404370e497d00aa0f7221dc55a70a20490fb5 | [
"BSD-3-Clause"
] | null | null | null | lfs/criteria/models/criteria.py | naro/django-lfs | 312404370e497d00aa0f7221dc55a70a20490fb5 | [
"BSD-3-Clause"
] | null | null | null | # django imports
from django.conf import settings
from django.contrib.auth.models import User
from django.contrib.contenttypes import generic
from django.db import models
from django.utils.translation import ugettext_lazy as _, ugettext
from django.template import RequestContext
from django.template.loader import rende... | 34.107323 | 126 | 0.603635 | 3,122 | 27,013 | 5.084241 | 0.064062 | 0.044604 | 0.031752 | 0.028224 | 0.783847 | 0.760285 | 0.718957 | 0.689221 | 0.6472 | 0.62515 | 0 | 0.002079 | 0.305705 | 27,013 | 791 | 127 | 34.150442 | 0.844255 | 0.172584 | 0 | 0.572614 | 0 | 0 | 0.057693 | 0.00854 | 0 | 0 | 0 | 0 | 0 | 1 | 0.120332 | false | 0 | 0.06639 | 0.014523 | 0.495851 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f3d6746123e9faa6da0b60fdc1f3fd8b724931da | 13,007 | py | Python | tests/test_standard_templates.py | TopOfMinds/dw-generator | 8a33a674c55326eb42c9d9f26d2464738c943087 | [
"Apache-2.0"
] | 5 | 2020-07-13T09:56:22.000Z | 2021-11-11T20:25:07.000Z | tests/test_standard_templates.py | TopOfMinds/dw-generator | 8a33a674c55326eb42c9d9f26d2464738c943087 | [
"Apache-2.0"
] | 15 | 2019-03-06T09:24:00.000Z | 2021-09-26T15:01:23.000Z | tests/test_standard_templates.py | TopOfMinds/dw-generator | 8a33a674c55326eb42c9d9f26d2464738c943087 | [
"Apache-2.0"
] | 4 | 2020-05-28T09:52:39.000Z | 2021-11-11T20:25:10.000Z | import sqlite3
import unittest
from collections import namedtuple
from datetime import datetime
from dwgenerator.dbobjects import Schema, Table, Column, create_typed_table, Hub, Link, Satellite, MetaDataError, MetaDataWarning
from dwgenerator.mappings import TableMappings, ColumnMappings, Mappings
from dwgenerator.tem... | 41.423567 | 129 | 0.662336 | 1,619 | 13,007 | 5.09512 | 0.106856 | 0.052006 | 0.045339 | 0.048006 | 0.805552 | 0.760335 | 0.716329 | 0.630864 | 0.562492 | 0.500788 | 0 | 0.084383 | 0.176367 | 13,007 | 313 | 130 | 41.555911 | 0.685616 | 0.036058 | 0 | 0.486381 | 0 | 0 | 0.254213 | 0.041131 | 0 | 0 | 0 | 0 | 0.07393 | 1 | 0.070039 | false | 0 | 0.027237 | 0 | 0.128405 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f3dc6619a7e28cbef4d870a268877ebf7f9543c6 | 2,237 | py | Python | publications/models.py | tarsisferreira/personalsite | 480ceb773d74ff4427e344ad240a1cdac92bcd36 | [
"MIT"
] | null | null | null | publications/models.py | tarsisferreira/personalsite | 480ceb773d74ff4427e344ad240a1cdac92bcd36 | [
"MIT"
] | null | null | null | publications/models.py | tarsisferreira/personalsite | 480ceb773d74ff4427e344ad240a1cdac92bcd36 | [
"MIT"
] | null | null | null | from django.db import models
class Journal(models.Model):
"""
A journal
"""
journal = models.CharField(max_length=500)
def __unicode__(self):
return self.journal
class Author(models.Model):
"""
A single author
"""
first_name = models.CharField(max_length=20)
last_name =... | 31.957143 | 103 | 0.682611 | 251 | 2,237 | 5.924303 | 0.278884 | 0.110962 | 0.133154 | 0.177539 | 0.349025 | 0.221923 | 0.161399 | 0.161399 | 0.082044 | 0 | 0 | 0.016873 | 0.205186 | 2,237 | 69 | 104 | 32.42029 | 0.81946 | 0.113992 | 0 | 0.227273 | 0 | 0 | 0.049815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.022727 | 0.136364 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6d10dd398a36e9b588eed75acaeb2c4521916194 | 222 | py | Python | fastapi-alembic-sqlmodel-async/app/crud/crud_hero.py | jonra1993/fastapi-alembic-sqlmodel-async | 55c8a127bf17e6e5de95047a54a0ef913511f2d9 | [
"MIT"
] | 15 | 2022-03-07T05:57:01.000Z | 2022-03-25T14:08:56.000Z | fastapi-alembic-sqlmodel-async/app/crud/crud_hero.py | jonra1993/fastapi-alembic-sqlmodel-async | 55c8a127bf17e6e5de95047a54a0ef913511f2d9 | [
"MIT"
] | null | null | null | fastapi-alembic-sqlmodel-async/app/crud/crud_hero.py | jonra1993/fastapi-alembic-sqlmodel-async | 55c8a127bf17e6e5de95047a54a0ef913511f2d9 | [
"MIT"
] | 1 | 2022-03-08T04:54:14.000Z | 2022-03-08T04:54:14.000Z | from app.schemas.hero import IHeroCreate, IHeroUpdate
from app.crud.base_sqlmodel import CRUDBase
from app.models.hero import Hero
class CRUDHero(CRUDBase[Hero, IHeroCreate, IHeroUpdate]):
pass
hero = CRUDHero(Hero)
| 24.666667 | 57 | 0.801802 | 30 | 222 | 5.9 | 0.5 | 0.118644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121622 | 222 | 8 | 58 | 27.75 | 0.907692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.5 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
6d1a920d84653185a0cffe68c76398f5be22ccdc | 171 | py | Python | src/grab/__init__.py | Boomatang/git-grab | fea562245c8073748b3327d966a352aa088a25a4 | [
"MIT"
] | 2 | 2019-09-18T17:56:28.000Z | 2019-10-03T11:54:24.000Z | src/grab/__init__.py | Boomatang/git-grab | fea562245c8073748b3327d966a352aa088a25a4 | [
"MIT"
] | 2 | 2020-10-20T13:22:53.000Z | 2020-11-07T17:02:43.000Z | src/grab/__init__.py | Boomatang/git-grab | fea562245c8073748b3327d966a352aa088a25a4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Top-level package for grab."""
__version__ = "0.4.0"
__releases__ = ["0.4.0", "0.3.0", "0.2.0", "0.1.2", "0.1.1"]
from .api import * # noqa
| 19 | 60 | 0.526316 | 32 | 171 | 2.5625 | 0.59375 | 0.073171 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133803 | 0.169591 | 171 | 8 | 61 | 21.375 | 0.443662 | 0.321637 | 0 | 0 | 0 | 0 | 0.275229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6d21b6ae8e69f52c8227ff7da251f51dfc3df404 | 288 | py | Python | app/auth/__init__.py | bluethon/flasky-learn | db2e966e9b32fa7c0d34472a24c048cc27a0ff39 | [
"MIT"
] | 1 | 2017-10-22T02:36:18.000Z | 2017-10-22T02:36:18.000Z | app/auth/__init__.py | bluethon/flasky-learn | db2e966e9b32fa7c0d34472a24c048cc27a0ff39 | [
"MIT"
] | null | null | null | app/auth/__init__.py | bluethon/flasky-learn | db2e966e9b32fa7c0d34472a24c048cc27a0ff39 | [
"MIT"
] | 2 | 2017-10-26T08:18:57.000Z | 2018-09-04T02:17:38.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2016-04-25 23:12:05
# @Author : Bluethon (j5088794@gmail.com)
# @Link : http://github.com/bluethon
from flask import Blueprint
auth = Blueprint('auth', __name__)
# noinspection PyUnresolvedReferences
from . import views
| 19.2 | 42 | 0.680556 | 37 | 288 | 5.189189 | 0.837838 | 0.135417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091667 | 0.166667 | 288 | 14 | 43 | 20.571429 | 0.708333 | 0.652778 | 0 | 0 | 0 | 0 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 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 | 1 | 1 | 0 | 3 |
6d2baa5ce263d22bc17f215e2f3ea6240c736c9d | 4,209 | py | Python | tests/test_rfc9092.py | CBonnell/pyasn1-alt-modules | cd3773ceaa6ab31b80b0b4013818ac47ee6215b8 | [
"BSD-2-Clause"
] | 2 | 2021-06-15T16:24:39.000Z | 2022-03-28T04:41:59.000Z | tests/test_rfc9092.py | CBonnell/pyasn1-alt-modules | cd3773ceaa6ab31b80b0b4013818ac47ee6215b8 | [
"BSD-2-Clause"
] | null | null | null | tests/test_rfc9092.py | CBonnell/pyasn1-alt-modules | cd3773ceaa6ab31b80b0b4013818ac47ee6215b8 | [
"BSD-2-Clause"
] | 1 | 2022-01-25T16:00:09.000Z | 2022-01-25T16:00:09.000Z | #
# This file is part of pyasn1-alt-modules software.
#
# Created by Russ Housley
# Copyright (c) 2020-2022, Vigil Security, LLC
# License: http://vigilsec.com/pyasn1-alt-modules-license.txt
#
import sys
import unittest
from pyasn1.codec.der.decoder import decode as der_decoder
from pyasn1.codec.der.encoder import enc... | 44.305263 | 73 | 0.834165 | 289 | 4,209 | 12.038062 | 0.560554 | 0.017246 | 0.022995 | 0.017246 | 0.050877 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088415 | 0.107864 | 4,209 | 94 | 74 | 44.776596 | 0.838083 | 0.04229 | 0 | 0.04 | 0 | 0 | 0.590853 | 0.560776 | 0 | 1 | 0 | 0 | 0.16 | 1 | 0.026667 | false | 0 | 0.106667 | 0 | 0.16 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6d3692d52c9d26b0d02fb55b611b45c802bc1e08 | 204 | py | Python | db_storage/urls.py | jskopek/frame | 170e2b6350a67b26ebd446db92dc929bd0b5e61a | [
"MIT"
] | null | null | null | db_storage/urls.py | jskopek/frame | 170e2b6350a67b26ebd446db92dc929bd0b5e61a | [
"MIT"
] | null | null | null | db_storage/urls.py | jskopek/frame | 170e2b6350a67b26ebd446db92dc929bd0b5e61a | [
"MIT"
] | null | null | null | from django.conf.urls import patterns, include, url
from db_storage.views import ImageView
urlpatterns = patterns('',
url(r'^(?P<file_name>[^/]+)$', ImageView.as_view(), name='db_storage_image'),
)
| 29.142857 | 81 | 0.710784 | 28 | 204 | 5 | 0.714286 | 0.128571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112745 | 204 | 6 | 82 | 34 | 0.773481 | 0 | 0 | 0 | 0 | 0 | 0.186275 | 0.107843 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6d4601ba9fbf6c888200ed0c9d0a0c5a450f72ee | 1,704 | py | Python | glue_jupyter/table/tests/test_table.py | ibusko/glue-jupyter | af67da018152a4fa29c54048a9277a8a43fa06b9 | [
"BSD-3-Clause"
] | 57 | 2018-06-18T16:39:42.000Z | 2022-03-12T17:21:09.000Z | glue_jupyter/table/tests/test_table.py | ibusko/glue-jupyter | af67da018152a4fa29c54048a9277a8a43fa06b9 | [
"BSD-3-Clause"
] | 269 | 2018-08-23T13:34:07.000Z | 2022-03-31T15:23:53.000Z | glue_jupyter/table/tests/test_table.py | ibusko/glue-jupyter | af67da018152a4fa29c54048a9277a8a43fa06b9 | [
"BSD-3-Clause"
] | 34 | 2018-08-23T13:42:33.000Z | 2022-02-15T18:23:29.000Z | from glue_jupyter.table import TableViewer
def test_table_filter(app, dataxyz):
table = app.table(data=dataxyz)
assert len(table.layers) == 1
assert table.widget_table is not None
table.widget_table.checked = [1]
table.apply_filter()
assert len(table.layers) == 2
subset = table.layers[1].l... | 37.043478 | 97 | 0.702465 | 249 | 1,704 | 4.670683 | 0.248996 | 0.151333 | 0.22012 | 0.245916 | 0.423044 | 0.321582 | 0.218401 | 0.141015 | 0.075666 | 0.075666 | 0 | 0.014104 | 0.16784 | 1,704 | 45 | 98 | 37.866667 | 0.806065 | 0 | 0 | 0.222222 | 0 | 0 | 0.071009 | 0 | 0 | 0 | 0 | 0 | 0.638889 | 1 | 0.055556 | false | 0 | 0.027778 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6d46c26821ed1dbb5c2ec445a067ea07daf2ff94 | 208 | py | Python | modules/other_ns.py | nam-pi/data_conversion | dbded1b82a831118d6fe5b55e5afa68d17ced41e | [
"MIT"
] | 1 | 2020-10-23T07:16:49.000Z | 2020-10-23T07:16:49.000Z | modules/other_ns.py | nam-pi/data_conversion | dbded1b82a831118d6fe5b55e5afa68d17ced41e | [
"MIT"
] | 1 | 2021-11-02T11:14:22.000Z | 2021-11-02T11:14:22.000Z | modules/other_ns.py | nam-pi/data-conversion | dbded1b82a831118d6fe5b55e5afa68d17ced41e | [
"MIT"
] | 2 | 2020-10-28T07:12:25.000Z | 2021-08-12T11:30:27.000Z | from rdflib import Namespace
class Other_ns:
geonames = Namespace("https://sws.geonames.org/")
gnd = Namespace("https://d-nb.info/gnd/")
wikidata = Namespace("https://www.wikidata.org/entity/")
| 26 | 60 | 0.6875 | 27 | 208 | 5.259259 | 0.666667 | 0.295775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139423 | 208 | 7 | 61 | 29.714286 | 0.793296 | 0 | 0 | 0 | 0 | 0 | 0.379808 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
edd0a2b15f4ca4a787a40cff4b25f538de68cf6c | 2,192 | py | Python | subastas_repo/personas/models.py | diegoduncan21/subastas | 3bae0c9bbb90ad93688b91d6e86bcc64215c0125 | [
"BSD-3-Clause"
] | null | null | null | subastas_repo/personas/models.py | diegoduncan21/subastas | 3bae0c9bbb90ad93688b91d6e86bcc64215c0125 | [
"BSD-3-Clause"
] | null | null | null | subastas_repo/personas/models.py | diegoduncan21/subastas | 3bae0c9bbb90ad93688b91d6e86bcc64215c0125 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from django.db import models
from model_utils import Choices
class Persona(models.Model):
nombres = models.CharField(max_length=100, blank=True, null=True)
apellidos = models.CharField(max_length=100, blank=True, null=True)
razon_social = models.CharField(max_length=100, blank=Tr... | 30.444444 | 77 | 0.614964 | 244 | 2,192 | 5.348361 | 0.241803 | 0.172414 | 0.165517 | 0.22069 | 0.499617 | 0.380843 | 0.295019 | 0.149425 | 0.101149 | 0 | 0 | 0.023314 | 0.276004 | 2,192 | 71 | 78 | 30.873239 | 0.798992 | 0.00958 | 0 | 0.265306 | 0 | 0 | 0.042877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102041 | false | 0 | 0.040816 | 0.102041 | 0.77551 | 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 | 1 | 1 | 0 | 0 | 3 |
edd189d44013bcb694a356838f7e0f2996beff5b | 805 | py | Python | exp_runner/interfaces.py | slipnitskaya/exp-runner | ec60ad47d11767f8948defa3af04ccc67e37b3ce | [
"MIT"
] | 3 | 2019-05-28T11:38:00.000Z | 2021-01-08T11:46:15.000Z | exp_runner/interfaces.py | slipnitskaya/exp-runner | ec60ad47d11767f8948defa3af04ccc67e37b3ce | [
"MIT"
] | null | null | null | exp_runner/interfaces.py | slipnitskaya/exp-runner | ec60ad47d11767f8948defa3af04ccc67e37b3ce | [
"MIT"
] | null | null | null | import abc
from typing import Any
from typing import Dict
from typing import List
from typing import Tuple
from typing import Union
from typing import Iterable
from typing import NoReturn
class Dataset(abc.ABC):
@abc.abstractmethod
def __getitem__(self, index: int) -> Any:
pass
@abc.abstractmet... | 19.166667 | 89 | 0.639752 | 100 | 805 | 5.01 | 0.34 | 0.139721 | 0.223553 | 0.137725 | 0.155689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 805 | 41 | 90 | 19.634146 | 0.842017 | 0 | 0 | 0.344828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0.172414 | 0.275862 | 0 | 0.551724 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
edeb1939471eae1f916ebc1876b267e218820fd0 | 62 | py | Python | sideboard/_version.py | EliAndrewC/sideboard | 81f0099f4c03e7abb5856e046539aa033ecf04f9 | [
"BSD-3-Clause"
] | null | null | null | sideboard/_version.py | EliAndrewC/sideboard | 81f0099f4c03e7abb5856e046539aa033ecf04f9 | [
"BSD-3-Clause"
] | null | null | null | sideboard/_version.py | EliAndrewC/sideboard | 81f0099f4c03e7abb5856e046539aa033ecf04f9 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import unicode_literals
__version__ = '0.1.0'
| 20.666667 | 39 | 0.806452 | 9 | 62 | 4.555556 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054545 | 0.112903 | 62 | 2 | 40 | 31 | 0.690909 | 0 | 0 | 0 | 0 | 0 | 0.080645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
edf327644ecae88ff8cc716942f39389a9cea98d | 181 | py | Python | services/database.py | njncalub/logistiko | 74b1d17bc76538de6f5f70c7eca927780d6b4113 | [
"MIT"
] | null | null | null | services/database.py | njncalub/logistiko | 74b1d17bc76538de6f5f70c7eca927780d6b4113 | [
"MIT"
] | null | null | null | services/database.py | njncalub/logistiko | 74b1d17bc76538de6f5f70c7eca927780d6b4113 | [
"MIT"
] | null | null | null | from core import settings
from data.services import DataService
def get_database():
db = DataService(engine=settings.DATABASE_URL)
return db
db_service = get_database()
| 16.454545 | 50 | 0.767956 | 24 | 181 | 5.625 | 0.625 | 0.162963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165746 | 181 | 10 | 51 | 18.1 | 0.89404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
edf36ceeb307769f6da3fb1bedd44ca3d30e9a68 | 288 | py | Python | splashgen/components/CTAButton.py | ndejong/splashgen | a4015ff12fec6c3ff96c7a6a9699f92d64c67018 | [
"MIT"
] | 246 | 2021-05-18T20:57:58.000Z | 2022-03-29T20:58:12.000Z | splashgen/components/CTAButton.py | ndejong/splashgen | a4015ff12fec6c3ff96c7a6a9699f92d64c67018 | [
"MIT"
] | 6 | 2021-05-25T08:23:00.000Z | 2022-01-23T17:47:30.000Z | splashgen/components/CTAButton.py | ndejong/splashgen | a4015ff12fec6c3ff96c7a6a9699f92d64c67018 | [
"MIT"
] | 13 | 2021-05-20T03:51:24.000Z | 2022-02-06T23:45:36.000Z | from splashgen import Component
class CTAButton(Component):
def __init__(self, link: str, text: str) -> None:
self.link = link
self.text = text
def render(self) -> str:
return f'<a href="{self.link}" class="btn btn-primary btn-lg px-4">{self.text}</a>'
| 26.181818 | 91 | 0.621528 | 42 | 288 | 4.166667 | 0.547619 | 0.137143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004505 | 0.229167 | 288 | 10 | 92 | 28.8 | 0.783784 | 0 | 0 | 0 | 0 | 0.142857 | 0.253472 | 0.072917 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
61047e5557c04f30f8a4d4b8cb4a0f785c0b3e9a | 105 | py | Python | untitled1.py | moeinderakhshan/workshop_practice | dbf8a26e8c1f9915b6a1008aad406af51de2dcae | [
"MIT"
] | null | null | null | untitled1.py | moeinderakhshan/workshop_practice | dbf8a26e8c1f9915b6a1008aad406af51de2dcae | [
"MIT"
] | null | null | null | untitled1.py | moeinderakhshan/workshop_practice | dbf8a26e8c1f9915b6a1008aad406af51de2dcae | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 31 10:25:16 2021
@author: Derakhshan
"""
a=3+5
print(a)
| 10.5 | 35 | 0.590476 | 19 | 105 | 3.263158 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 0.190476 | 105 | 9 | 36 | 11.666667 | 0.552941 | 0.752381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
611802bcec646494dc8e3ce5e6ffccb7e99e5441 | 675 | py | Python | api/migrations/0002_auto_20190805_1603.py | damianomiotek/best_transport_Poland | 601c49402dc738dbdd63b811b4b313dbc5204791 | [
"MIT"
] | null | null | null | api/migrations/0002_auto_20190805_1603.py | damianomiotek/best_transport_Poland | 601c49402dc738dbdd63b811b4b313dbc5204791 | [
"MIT"
] | 2 | 2021-04-30T20:52:32.000Z | 2021-06-10T21:55:38.000Z | api/migrations/0002_auto_20190805_1603.py | damianomiotek/best_transport_Poland | 601c49402dc738dbdd63b811b4b313dbc5204791 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.7 on 2019-08-05 14:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='extendaddress',
name='date',
... | 23.275862 | 50 | 0.54963 | 63 | 675 | 5.793651 | 0.650794 | 0.164384 | 0.205479 | 0.238356 | 0.252055 | 0.252055 | 0 | 0 | 0 | 0 | 0 | 0.046667 | 0.333333 | 675 | 28 | 51 | 24.107143 | 0.764444 | 0.066667 | 0 | 0.454545 | 1 | 0 | 0.092357 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b635ab1d5292317c7aad6855947e10dbda6d7942 | 244 | py | Python | 74-search-a-2d-matrix/74-search-a-2d-matrix.py | felirox/DS-Algos-Python | 835ebc71dec5b2416f73f5b34d2bb50f447e8b27 | [
"MIT"
] | null | null | null | 74-search-a-2d-matrix/74-search-a-2d-matrix.py | felirox/DS-Algos-Python | 835ebc71dec5b2416f73f5b34d2bb50f447e8b27 | [
"MIT"
] | null | null | null | 74-search-a-2d-matrix/74-search-a-2d-matrix.py | felirox/DS-Algos-Python | 835ebc71dec5b2416f73f5b34d2bb50f447e8b27 | [
"MIT"
] | null | null | null | class Solution:
def searchMatrix(self, matrix: List[List[int]], target: int) -> bool:
for row in matrix:
if row[-1]>=target:
if target in row:
return True
return False
| 30.5 | 73 | 0.5 | 28 | 244 | 4.357143 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006944 | 0.409836 | 244 | 8 | 74 | 30.5 | 0.840278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b6569cd1f9c52cac92174c55a0a58a248e30b612 | 97 | py | Python | erec/__init__.py | cajohare/DarkElectronRecoils | ec417bb924be4d980650b71647b2fdeb28246f11 | [
"MIT"
] | null | null | null | erec/__init__.py | cajohare/DarkElectronRecoils | ec417bb924be4d980650b71647b2fdeb28246f11 | [
"MIT"
] | null | null | null | erec/__init__.py | cajohare/DarkElectronRecoils | ec417bb924be4d980650b71647b2fdeb28246f11 | [
"MIT"
] | 1 | 2019-12-10T06:55:02.000Z | 2019-12-10T06:55:02.000Z | __all__ = ["Params","LabFuncs", "AtomicFuncs","HaloFuncs","DMFuncs","NeutrinoFuncs","PlotFuncs"]
| 48.5 | 96 | 0.721649 | 8 | 97 | 8.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041237 | 97 | 1 | 97 | 97 | 0.709677 | 0 | 0 | 0 | 0 | 0 | 0.649485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b679d1f3f2994907a8dd3eb7eca4167cfecef531 | 33,592 | py | Python | prada_bayes_opt/visualization.py | ntienvu/ICDM2017_FBO | 64cca17e760f6162e73faa71d175c6bf7cfed896 | [
"MIT"
] | 4 | 2017-11-19T17:49:58.000Z | 2021-01-01T13:02:15.000Z | prada_bayes_opt/visualization.py | ntienvu/ICDM2017_FBO | 64cca17e760f6162e73faa71d175c6bf7cfed896 | [
"MIT"
] | null | null | null | prada_bayes_opt/visualization.py | ntienvu/ICDM2017_FBO | 64cca17e760f6162e73faa71d175c6bf7cfed896 | [
"MIT"
] | 1 | 2018-02-19T14:16:07.000Z | 2018-02-19T14:16:07.000Z | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 27 23:22:32 2016
@author: Vu
"""
from __future__ import division
import numpy as np
#import mayavi.mlab as mlab
#from scipy.stats import norm
#import matplotlib as plt
from mpl_toolkits.mplot3d import Axes3D
from prada_bayes_opt import PradaBayOptFn
#from p... | 38.700461 | 151 | 0.619493 | 5,260 | 33,592 | 3.813308 | 0.073384 | 0.037092 | 0.02423 | 0.015555 | 0.781833 | 0.73118 | 0.69299 | 0.673148 | 0.652558 | 0.630821 | 0 | 0.058909 | 0.20106 | 33,592 | 868 | 152 | 38.700461 | 0.688464 | 0.196475 | 0 | 0.487298 | 0 | 0 | 0.063785 | 0.008098 | 0 | 0 | 0.000926 | 0 | 0 | 0 | null | null | 0 | 0.025404 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b6b69fbce426825f0cb5202daf371335dce5e7eb | 745 | py | Python | services/traction/acapy_wrapper/models/cred_attr_spec.py | Open-Earth-Foundation/traction | 908b555a7f408a88541b7692d3730e37a297c919 | [
"Apache-2.0"
] | 12 | 2022-01-29T20:30:03.000Z | 2022-03-29T11:46:14.000Z | services/traction/acapy_wrapper/models/cred_attr_spec.py | Open-Earth-Foundation/traction | 908b555a7f408a88541b7692d3730e37a297c919 | [
"Apache-2.0"
] | 38 | 2021-11-22T17:52:50.000Z | 2022-03-31T17:52:00.000Z | services/traction/acapy_wrapper/models/cred_attr_spec.py | Open-Earth-Foundation/traction | 908b555a7f408a88541b7692d3730e37a297c919 | [
"Apache-2.0"
] | 9 | 2021-11-22T18:05:48.000Z | 2022-03-29T11:25:08.000Z | # coding: utf-8
from __future__ import annotations
from datetime import date, datetime # noqa: F401
import re # noqa: F401
from typing import Any, Dict, List, Optional # noqa: F401
from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401
class CredAttrSpec(BaseModel):
"""NOTE: This class is... | 24.833333 | 96 | 0.710067 | 98 | 745 | 5.306122 | 0.540816 | 0.061538 | 0.103846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02226 | 0.216107 | 745 | 29 | 97 | 25.689655 | 0.868151 | 0.497987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fccefecf08450d9516585969ef34b761fbfaa27e | 372 | py | Python | intro.py | rmkaneko/pythonbirds-fatec | 6167b8e88f71dd3659d142e2c736d88f1645cadf | [
"MIT"
] | null | null | null | intro.py | rmkaneko/pythonbirds-fatec | 6167b8e88f71dd3659d142e2c736d88f1645cadf | [
"MIT"
] | null | null | null | intro.py | rmkaneko/pythonbirds-fatec | 6167b8e88f71dd3659d142e2c736d88f1645cadf | [
"MIT"
] | 2 | 2019-09-05T23:59:05.000Z | 2021-10-31T20:41:59.000Z | def p():
"""
Essa funcao faz balh
:return: não retorna nada
"""
print('Renzo'.upper())
print(__name__)
if __name__ == '__main__':
print('Main')
def f(nome, sobrenome='dos Santos', idade=32):
return 'Olá %s %s. Minha idade é: %s' % (nome, sobrenome, idade)
print(f(idade=18, ... | 18.6 | 72 | 0.569892 | 50 | 372 | 4 | 0.58 | 0.13 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.247312 | 372 | 19 | 73 | 19.578947 | 0.7 | 0.123656 | 0 | 0 | 0 | 0 | 0.246711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.111111 | 0.333333 | 0.555556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 3 |
fcd442133600ce82d325cd8ea24cd898d3da86ac | 1,137 | py | Python | tinylocker/utils/account.py | dragmz/tinylock_py | cffd1719a36e12e33e008b613dc19b44fd9249c7 | [
"MIT"
] | 4 | 2022-01-03T22:58:19.000Z | 2022-03-25T21:30:52.000Z | tinylocker/utils/account.py | dragmz/tinylock_py | cffd1719a36e12e33e008b613dc19b44fd9249c7 | [
"MIT"
] | 2 | 2022-01-21T20:48:54.000Z | 2022-02-17T03:37:48.000Z | tinylocker/utils/account.py | dragmz/tinylock_py | cffd1719a36e12e33e008b613dc19b44fd9249c7 | [
"MIT"
] | 4 | 2021-12-03T15:01:46.000Z | 2022-03-29T20:16:43.000Z | from typing import Any, Dict, List
from algosdk import account, mnemonic
from algosdk.v2client.algod import AlgodClient
class Account:
"""Represents a private key and address for an Algorand account"""
def __init__(self, privateKey: str) -> None:
self.sk = privateKey
self.addr = account.addre... | 27.071429 | 70 | 0.669305 | 138 | 1,137 | 5.427536 | 0.413043 | 0.053405 | 0.052069 | 0.045394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003398 | 0.223395 | 1,137 | 41 | 71 | 27.731707 | 0.844847 | 0.076517 | 0 | 0 | 0 | 0 | 0.031609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.115385 | 0.153846 | 0.576923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fcd756631bde6f857bdd7acfc537424b31c30ab7 | 959 | py | Python | CRUDFilters/tests/views.py | timhaley94/django-crud-filters | f099154f7b6d10a124a61d67829c6f520456a46f | [
"MIT"
] | 5 | 2015-10-30T01:21:22.000Z | 2016-07-25T19:12:17.000Z | CRUDFilters/tests/views.py | timhaley94/django-crud-filters | f099154f7b6d10a124a61d67829c6f520456a46f | [
"MIT"
] | 4 | 2015-11-20T15:36:46.000Z | 2016-01-19T00:09:12.000Z | CRUDFilters/tests/views.py | timhaley94/django-crud-filters | f099154f7b6d10a124a61d67829c6f520456a46f | [
"MIT"
] | 4 | 2015-08-08T15:08:01.000Z | 2015-11-19T20:49:54.000Z | from django.http import HttpResponse
from rest_framework import permissions
from CRUDFilters.views import CRUDFilterModelViewSet
from .models import TestClass
from .serializers import TestClassSerializer
class TestClassViewset(CRUDFilterModelViewSet):
serializer_class = TestClassSerializer
crud_model = Test... | 31.966667 | 65 | 0.732013 | 107 | 959 | 6.514019 | 0.373832 | 0.07891 | 0.107604 | 0.150646 | 0.515065 | 0.515065 | 0.515065 | 0.515065 | 0.515065 | 0.515065 | 0 | 0.018844 | 0.169969 | 959 | 29 | 66 | 33.068966 | 0.856784 | 0 | 0 | 0.263158 | 0 | 0 | 0.114703 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.263158 | 0.263158 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fcf563d78c1e0107e6a1d60e9b7ae10db11e246c | 4,512 | py | Python | src/fleets/water_heater_fleet/load_config.py | GMLC-1-4-2/battery_interface | 07ff5c6505aa6ab0a7c0ee144da20303c60baad4 | [
"MIT"
] | 1 | 2020-01-17T15:28:45.000Z | 2020-01-17T15:28:45.000Z | src/fleets/water_heater_fleet/load_config.py | GMLC-1-4-2/battery_interface | 07ff5c6505aa6ab0a7c0ee144da20303c60baad4 | [
"MIT"
] | 1 | 2019-08-19T16:54:42.000Z | 2019-08-20T15:45:17.000Z | src/fleets/water_heater_fleet/load_config.py | GMLC-1-4-2/battery_interface | 07ff5c6505aa6ab0a7c0ee144da20303c60baad4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Feb 19 13:46:46 2019
Description:
Last update:
Version: 1.0
Author: Jeff Maguire (NREL)
"""
import pandas as pd
class LoadConfig(object):
def __init__(self, config_file):
self.config_file = config_file
def str_to_bool(self, s):
if s =... | 49.582418 | 141 | 0.652482 | 593 | 4,512 | 4.801012 | 0.247892 | 0.112399 | 0.147524 | 0.167194 | 0.486477 | 0.478047 | 0.478047 | 0.435546 | 0.414471 | 0.380752 | 0 | 0.015346 | 0.205674 | 4,512 | 91 | 142 | 49.582418 | 0.779018 | 0.275709 | 0 | 0.041667 | 0 | 0 | 0.166051 | 0 | 0 | 0 | 0 | 0.010989 | 0 | 1 | 0.208333 | false | 0 | 0.020833 | 0.083333 | 0.458333 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1e0fa4586faf6dd135b4de2bf51834a9d79adb78 | 225 | py | Python | art-generator/genius.py | GFX-Automated/GFX | 4e258f5092629955fc0cb5cccf6f85e8d0d1bcb5 | [
"CNRI-Python"
] | null | null | null | art-generator/genius.py | GFX-Automated/GFX | 4e258f5092629955fc0cb5cccf6f85e8d0d1bcb5 | [
"CNRI-Python"
] | 3 | 2021-09-07T04:34:06.000Z | 2021-09-07T04:34:44.000Z | art-generator/genius.py | GFX-Automated/GFX | 4e258f5092629955fc0cb5cccf6f85e8d0d1bcb5 | [
"CNRI-Python"
] | null | null | null | #!/bin/bash/python3.8
import os
import lyricsgenius as genius
credentials = {
"id": "",
"secret": "",
"access_token": "",
}
os.environ["GENIUS_ACCESS_TOKEN"] = credentials["access_token"]
GENIUS_ACCESS_TOKEN
| 14.0625 | 63 | 0.666667 | 26 | 225 | 5.538462 | 0.576923 | 0.305556 | 0.236111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010695 | 0.168889 | 225 | 15 | 64 | 15 | 0.759358 | 0.088889 | 0 | 0 | 0 | 0 | 0.251232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1e1836d5d5f32c7fb9b12775eae6eb16b851a0ab | 208 | py | Python | main_tts.py | archity/rg_text_to_sound | acf54e680661d378dbe79ba25b6c966d1ff10f88 | [
"MIT"
] | 1 | 2021-07-11T10:57:11.000Z | 2021-07-11T10:57:11.000Z | main_tts.py | archity/rg_text_to_sound | acf54e680661d378dbe79ba25b6c966d1ff10f88 | [
"MIT"
] | 2 | 2021-02-12T14:16:11.000Z | 2021-10-03T10:58:46.000Z | main_tts.py | archity/rg_text_to_sound | acf54e680661d378dbe79ba25b6c966d1ff10f88 | [
"MIT"
] | 7 | 2021-02-12T14:14:16.000Z | 2021-05-22T15:21:31.000Z | import os, sys
sys.path.append( os.path.join(os.path.dirname(os.path.abspath(__file__)),'tts_websocketserver','src') )
from tts_websocketserver.tts_server import run
if __name__ == '__main__':
run() | 34.666667 | 104 | 0.735577 | 30 | 208 | 4.6 | 0.6 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 208 | 6 | 105 | 34.666667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1e37ed3956c76f3adfdf1ea745d29f6f2db5df7b | 34,146 | py | Python | pysnmp_mibs/P-BRIDGE-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 6 | 2017-04-21T13:48:08.000Z | 2022-01-06T19:42:52.000Z | pysnmp_mibs/P-BRIDGE-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 1 | 2020-05-05T16:42:25.000Z | 2020-05-05T16:42:25.000Z | pysnmp_mibs/P-BRIDGE-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 6 | 2020-02-08T20:28:49.000Z | 2021-09-14T13:36:46.000Z | #
# PySNMP MIB module P-BRIDGE-MIB (http://pysnmp.sf.net)
# ASN.1 source http://mibs.snmplabs.com:80/asn1/P-BRIDGE-MIB
# Produced by pysmi-0.0.7 at Sun Feb 14 00:23:25 2016
# On host bldfarm platform Linux version 4.1.13-100.fc21.x86_64 by user goose
# Using Python version 3.5.0 (default, Jan 5 2016, 17:11:52)
#
( In... | 223.176471 | 3,143 | 0.726849 | 4,040 | 34,146 | 6.142079 | 0.157426 | 0.008544 | 0.009914 | 0.011123 | 0.375433 | 0.319537 | 0.276175 | 0.253284 | 0.224228 | 0.214919 | 0 | 0.051538 | 0.168102 | 34,146 | 152 | 3,144 | 224.644737 | 0.822009 | 0.008786 | 0 | 0 | 0 | 0.201389 | 0.531607 | 0.054851 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.048611 | 0 | 0.069444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1e565c3aaf74f2b2af333cb2966e2513d9f04680 | 1,165 | py | Python | saefportal/users/migrations/0024_auto_20210924_1403.py | harry-consulting/SAEF1 | 055d6e492ba76f90e3248b9da2985fdfe0c6b430 | [
"BSD-2-Clause"
] | null | null | null | saefportal/users/migrations/0024_auto_20210924_1403.py | harry-consulting/SAEF1 | 055d6e492ba76f90e3248b9da2985fdfe0c6b430 | [
"BSD-2-Clause"
] | null | null | null | saefportal/users/migrations/0024_auto_20210924_1403.py | harry-consulting/SAEF1 | 055d6e492ba76f90e3248b9da2985fdfe0c6b430 | [
"BSD-2-Clause"
] | 1 | 2020-12-16T15:02:52.000Z | 2020-12-16T15:02:52.000Z | # Generated by Django 3.1.6 on 2021-09-24 14:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0023_auto_20210924_1400'),
]
operations = [
migrations.RemoveField(
model_name='objectpermission',
name='pe... | 27.738095 | 52 | 0.574249 | 101 | 1,165 | 6.455446 | 0.435644 | 0.069018 | 0.191718 | 0.222393 | 0.638037 | 0.638037 | 0.638037 | 0.56135 | 0.478528 | 0.478528 | 0 | 0.03939 | 0.324464 | 1,165 | 41 | 53 | 28.414634 | 0.789072 | 0.038627 | 0 | 0.628571 | 1 | 0 | 0.145796 | 0.020572 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028571 | 0 | 0.114286 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1e7827204cb6a63ede0ba27ab5b9680e54eeab80 | 1,003 | py | Python | networking-calico/networking_calico/timestamp.py | mikestephen/calico | 6c512191c05097dbfacbd18fb23d1ebff18961fd | [
"Apache-2.0"
] | 3,973 | 2015-07-29T21:13:46.000Z | 2022-03-31T09:27:38.000Z | networking-calico/networking_calico/timestamp.py | mikestephen/calico | 6c512191c05097dbfacbd18fb23d1ebff18961fd | [
"Apache-2.0"
] | 4,584 | 2015-07-29T08:47:22.000Z | 2022-03-31T22:54:26.000Z | networking-calico/networking_calico/timestamp.py | mikestephen/calico | 6c512191c05097dbfacbd18fb23d1ebff18961fd | [
"Apache-2.0"
] | 1,066 | 2015-07-30T06:29:18.000Z | 2022-03-31T20:01:47.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2018 Tigera, Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless re... | 25.717949 | 74 | 0.693918 | 153 | 1,003 | 4.529412 | 0.640523 | 0.08658 | 0.051948 | 0.046176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029925 | 0.200399 | 1,003 | 38 | 75 | 26.394737 | 0.834165 | 0.62014 | 0 | 0.153846 | 0 | 0 | 0.057534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.230769 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1eaa80dba06dcc9373ccfaaed6c06ae019dee1a7 | 1,171 | py | Python | src/nodeList/node/Node.py | mnm-team/pydht | 857823edc73864824832045b83091b2778d3c124 | [
"MIT"
] | 1 | 2019-10-21T15:55:07.000Z | 2019-10-21T15:55:07.000Z | src/nodeList/node/Node.py | crest42/pydht | 857823edc73864824832045b83091b2778d3c124 | [
"MIT"
] | null | null | null | src/nodeList/node/Node.py | crest42/pydht | 857823edc73864824832045b83091b2778d3c124 | [
"MIT"
] | 1 | 2019-10-21T15:55:05.000Z | 2019-10-21T15:55:05.000Z | class Node:
def __init__(self, id: int, virtId: int = 0, capacity: int = 100, master: bool = True, additional={}) -> None:
assert(type(id) == int)
self.id = id
self.virtId = virtId
self.capacity = capacity
self.master = master
self.keyCount = 0
self.additiona... | 23.42 | 114 | 0.577284 | 147 | 1,171 | 4.29932 | 0.244898 | 0.10443 | 0.142405 | 0.150316 | 0.22943 | 0.22943 | 0.22943 | 0 | 0 | 0 | 0 | 0.008505 | 0.297182 | 1,171 | 49 | 115 | 23.897959 | 0.759417 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 1 | 0.388889 | false | 0 | 0 | 0.305556 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1eb3b94b20baf9aaec5e469ee46bd6658813a2d6 | 390 | py | Python | tests/unit_tests/running_modes/reinforcement_learning/reaction_filters/__init__.py | marco-foscato/Lib-INVENT | fe6a65ab7165abd87b25752a6b4208c8703d11f7 | [
"Apache-2.0"
] | 26 | 2021-04-30T23:21:17.000Z | 2022-03-10T06:33:11.000Z | tests/unit_tests/running_modes/reinforcement_learning/reaction_filters/__init__.py | marco-foscato/Lib-INVENT | fe6a65ab7165abd87b25752a6b4208c8703d11f7 | [
"Apache-2.0"
] | 6 | 2021-10-03T08:35:48.000Z | 2022-03-24T09:57:39.000Z | tests/unit_tests/running_modes/reinforcement_learning/reaction_filters/__init__.py | marco-foscato/Lib-INVENT | fe6a65ab7165abd87b25752a6b4208c8703d11f7 | [
"Apache-2.0"
] | 10 | 2021-04-28T14:08:17.000Z | 2022-03-04T04:18:13.000Z | from tests.unit_tests.running_modes.reinforcement_learning.reaction_filters.test_non_selective_reaction_filter import \
TestNonSelectiveReactionFilters, TestNonSelectiveReactionFiltersNoReaction
from tests.unit_tests.running_modes.reinforcement_learning.reaction_filters.test_selective_reaction_filter import \
T... | 78 | 119 | 0.912821 | 35 | 390 | 9.742857 | 0.514286 | 0.052786 | 0.076246 | 0.105572 | 0.410557 | 0.410557 | 0.410557 | 0.410557 | 0.410557 | 0.410557 | 0 | 0 | 0.051282 | 390 | 4 | 120 | 97.5 | 0.921622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1ecfc659f4e821c0660489fb17ee3dc1d24b36e6 | 507 | py | Python | core/modules/dataloaders/__init__.py | FelixFu520/DAO | ac30bad4503408e771bc28c77dd8a20c18c15a05 | [
"MIT"
] | null | null | null | core/modules/dataloaders/__init__.py | FelixFu520/DAO | ac30bad4503408e771bc28c77dd8a20c18c15a05 | [
"MIT"
] | null | null | null | core/modules/dataloaders/__init__.py | FelixFu520/DAO | ac30bad4503408e771bc28c77dd8a20c18c15a05 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Author:FelixFu
# @Date: 2021.4.14
# @GitHub:https://github.com/felixfu520
# @Copy From:
# dataset
from .datasets import MVTecDataset, ClsDataset, DetDataset, SegDataset
# classification
from .ClsDataloader import ClsDataloaderTrain, ClsDataloaderEval
# anomaly
from .AnomalyDataloader impor... | 22.043478 | 70 | 0.798817 | 47 | 507 | 8.617021 | 0.787234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024499 | 0.114398 | 507 | 22 | 71 | 23.045455 | 0.877506 | 0.327416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
94c274001f81ac4d000ab209e4538bc40e1a5973 | 1,252 | py | Python | src/gpcsd/priors.py | natalieklein/gpcsd | 5f05a86a4f4ba9c1a40c3403d49c15d1f8626b75 | [
"MIT"
] | 1 | 2021-10-02T03:47:10.000Z | 2021-10-02T03:47:10.000Z | src/gpcsd/priors.py | natalieklein/gpcsd | 5f05a86a4f4ba9c1a40c3403d49c15d1f8626b75 | [
"MIT"
] | 1 | 2021-10-12T23:16:46.000Z | 2021-10-12T23:16:46.000Z | src/gpcsd/priors.py | natalieklein/gpcsd | 5f05a86a4f4ba9c1a40c3403d49c15d1f8626b75 | [
"MIT"
] | null | null | null | """
Priors for GPCSD parameters.
"""
import autograd.numpy as np
from scipy.stats import invgamma, halfnorm
class GPCSDPrior:
def __init__(self):
pass
class GPCSDInvGammaPrior(GPCSDPrior):
def __init__(self, alpha=1, beta=1):
GPCSDPrior.__init__(self)
self.alpha = alpha
... | 23.185185 | 67 | 0.544728 | 171 | 1,252 | 3.818713 | 0.28655 | 0.096478 | 0.078101 | 0.096478 | 0.171516 | 0.101072 | 0.101072 | 0.101072 | 0.101072 | 0.101072 | 0 | 0.029206 | 0.316294 | 1,252 | 54 | 68 | 23.185185 | 0.733645 | 0.022364 | 0 | 0.432432 | 0 | 0 | 0.032072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.27027 | false | 0.027027 | 0.054054 | 0.108108 | 0.567568 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
94c9ac6a65c02f05841354bb6b33149faa07a5b5 | 794 | py | Python | peek_storage/_private/service/sw_install/PeekSwInstallManager.py | Synerty/peek-storage | b25a67b97e22675cb0d47ddc01796cc34c4e6746 | [
"MIT"
] | null | null | null | peek_storage/_private/service/sw_install/PeekSwInstallManager.py | Synerty/peek-storage | b25a67b97e22675cb0d47ddc01796cc34c4e6746 | [
"MIT"
] | null | null | null | peek_storage/_private/service/sw_install/PeekSwInstallManager.py | Synerty/peek-storage | b25a67b97e22675cb0d47ddc01796cc34c4e6746 | [
"MIT"
] | 1 | 2016-12-12T21:44:39.000Z | 2016-12-12T21:44:39.000Z | from peek_platform import PeekPlatformConfig
from peek_platform.sw_install.PeekSwInstallManagerABC import PeekSwInstallManagerABC
__author__ = 'synerty'
class PeekSwInstallManager(PeekSwInstallManagerABC):
def _stopCode(self):
PeekPlatformConfig.pluginLoader.stopOptionalPlugins()
PeekPlatformCon... | 29.407407 | 84 | 0.784635 | 52 | 794 | 11.788462 | 0.519231 | 0.391517 | 0.052202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153652 | 794 | 26 | 85 | 30.538462 | 0.912202 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.0625 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
94d192aae25132649c947f42c504158d4cc11b98 | 324 | py | Python | source/utils/__init__.py | LukasErlenbach/active_learning_bnn | 1a2410fbed05bc61688983a44b5342af1185e811 | [
"MIT"
] | 2 | 2021-02-26T16:52:48.000Z | 2021-08-20T11:33:03.000Z | source/utils/__init__.py | LukasErlenbach/active_learning_bnn | 1a2410fbed05bc61688983a44b5342af1185e811 | [
"MIT"
] | null | null | null | source/utils/__init__.py | LukasErlenbach/active_learning_bnn | 1a2410fbed05bc61688983a44b5342af1185e811 | [
"MIT"
] | 1 | 2021-11-11T02:09:48.000Z | 2021-11-11T02:09:48.000Z | from .global_variables import set_global_var, get_global_var
from .timing import secs_to_str
from .yaml_load_dump import load_complete_config_yaml, dump_complete_config_yaml
from .default_configs import (
default_al_schedule,
default_train_schedule,
default_net_config,
)
from .plotting import plot_rmse_metr... | 32.4 | 80 | 0.845679 | 48 | 324 | 5.208333 | 0.541667 | 0.072 | 0.144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117284 | 324 | 9 | 81 | 36 | 0.874126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.555556 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a21f1ac62e71e54369c6646afbe26ec946b894be | 3,149 | py | Python | src/stub_libraries/stub_numpy/stub_numpy.py | sunblaze-ucb/privguard-artifact | b1b5f3a16af6ab5f7cb0f0737aba27dd9d76c25b | [
"MIT"
] | 6 | 2021-11-06T00:48:30.000Z | 2021-12-17T04:51:34.000Z | src/stub_libraries/stub_numpy/stub_numpy.py | sunblaze-ucb/privguard-artifact | b1b5f3a16af6ab5f7cb0f0737aba27dd9d76c25b | [
"MIT"
] | null | null | null | src/stub_libraries/stub_numpy/stub_numpy.py | sunblaze-ucb/privguard-artifact | b1b5f3a16af6ab5f7cb0f0737aba27dd9d76c25b | [
"MIT"
] | 1 | 2021-11-02T18:24:43.000Z | 2021-11-02T18:24:43.000Z | # MIT License
# Copyright (c) 2021 sunblaze-ucb
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, p... | 27.382609 | 80 | 0.699905 | 450 | 3,149 | 4.846667 | 0.386667 | 0.037139 | 0.055021 | 0.057772 | 0.239798 | 0.200825 | 0.158184 | 0.087116 | 0.087116 | 0.087116 | 0 | 0.006329 | 0.197205 | 3,149 | 114 | 81 | 27.622807 | 0.856408 | 0.351858 | 0 | 0.235294 | 0 | 0 | 0.022795 | 0.010902 | 0 | 0 | 0 | 0 | 0 | 1 | 0.279412 | false | 0 | 0.132353 | 0.205882 | 0.705882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a223080e27fdde63bd23efc39e7ed892b3f47dc6 | 6,730 | py | Python | pysome/maybe.py | mdagaro/pysome | 7b9f30de1fcd490923338dd497494b2a475ee823 | [
"MIT"
] | null | null | null | pysome/maybe.py | mdagaro/pysome | 7b9f30de1fcd490923338dd497494b2a475ee823 | [
"MIT"
] | null | null | null | pysome/maybe.py | mdagaro/pysome | 7b9f30de1fcd490923338dd497494b2a475ee823 | [
"MIT"
] | null | null | null | from typing import (
Any,
Callable,
cast,
Generic,
Mapping,
NoReturn,
Optional,
TypeVar,
Union,
)
from abc import ABC, abstractmethod
from functools import wraps
import math
import collections
from util import *
__all__ = ["Maybe", "Some", "Nothing", "maybe"]
class Maybe(Generic[... | 27.137097 | 109 | 0.592719 | 819 | 6,730 | 4.498169 | 0.213675 | 0.077633 | 0.032573 | 0.034745 | 0.216884 | 0.150923 | 0.119435 | 0.072747 | 0.058632 | 0.058632 | 0 | 0.001288 | 0.308024 | 6,730 | 247 | 110 | 27.246964 | 0.789779 | 0.222288 | 0 | 0.322785 | 0 | 0 | 0.015509 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21519 | false | 0.031646 | 0.037975 | 0.101266 | 0.683544 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bf604c29ab2a2cb7720c69f7136a2bce22b4b764 | 341 | py | Python | project/server/main/tasks.py | dataesr/harvest-theses | 1725b3ec3a944526fe62941d554bc3de6209cd28 | [
"MIT"
] | null | null | null | project/server/main/tasks.py | dataesr/harvest-theses | 1725b3ec3a944526fe62941d554bc3de6209cd28 | [
"MIT"
] | null | null | null | project/server/main/tasks.py | dataesr/harvest-theses | 1725b3ec3a944526fe62941d554bc3de6209cd28 | [
"MIT"
] | null | null | null | import time
import datetime
import os
import requests
from project.server.main.feed import harvest_and_insert
from project.server.main.logger import get_logger
logger = get_logger(__name__)
def create_task_harvest(arg):
collection_name = arg.get('collection_name')
if collection_name:
harvest_and_inse... | 21.3125 | 55 | 0.800587 | 48 | 341 | 5.354167 | 0.458333 | 0.217899 | 0.132296 | 0.163424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13783 | 341 | 15 | 56 | 22.733333 | 0.87415 | 0 | 0 | 0 | 0 | 0 | 0.044118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.545455 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bf698ceab92c0643a996065de58cd501336dad32 | 1,139 | py | Python | src/megapy/pin.py | aakash-sahai/megapy | 12425622937debb5323486b703361cf77986a478 | [
"MIT"
] | null | null | null | src/megapy/pin.py | aakash-sahai/megapy | 12425622937debb5323486b703361cf77986a478 | [
"MIT"
] | null | null | null | src/megapy/pin.py | aakash-sahai/megapy | 12425622937debb5323486b703361cf77986a478 | [
"MIT"
] | null | null | null | from arduino import ArduinoConnection, ArduinoObject
class DigitalPin(ArduinoObject):
def __init__(self, conn, pin, mode='input'):
ArduinoObject.__init__(self, conn, 'dp' + str(pin), 'pin digital')
self._pin = pin
self._mode = mode
super(DigitalPin, self).create("{} {}".format(mod... | 27.119048 | 75 | 0.639157 | 141 | 1,139 | 4.836879 | 0.205674 | 0.070381 | 0.070381 | 0.070381 | 0.340176 | 0.27566 | 0.184751 | 0.184751 | 0 | 0 | 0 | 0 | 0.230026 | 1,139 | 41 | 76 | 27.780488 | 0.777651 | 0 | 0 | 0.344828 | 0 | 0 | 0.050922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0 | 0.034483 | 0.206897 | 0.758621 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bf6a1a26a59a4d707abd3a4ad96502ed8df838c3 | 440 | py | Python | pysuru/tests/conftest.py | rcmachado/pysuru | 4db98f7dc68282caeb776203df04fc62bf6dcc15 | [
"MIT"
] | null | null | null | pysuru/tests/conftest.py | rcmachado/pysuru | 4db98f7dc68282caeb776203df04fc62bf6dcc15 | [
"MIT"
] | null | null | null | pysuru/tests/conftest.py | rcmachado/pysuru | 4db98f7dc68282caeb776203df04fc62bf6dcc15 | [
"MIT"
] | null | null | null | # coding: utf-8
from pytest import fixture
@fixture
def tsuru_apps_list():
return """[
{
"name": "app1-dev",
"cname": ["app1-dev.cname.example.com"],
"ip": "app1-dev.example.com"
},
{
"name": "app1-prod",
"cname": [],
"ip": "app1-prod.example.com"
... | 18.333333 | 48 | 0.438636 | 45 | 440 | 4.244444 | 0.466667 | 0.209424 | 0.125654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02807 | 0.352273 | 440 | 23 | 49 | 19.130435 | 0.642105 | 0.029545 | 0 | 0.1 | 0 | 0 | 0.811765 | 0.230588 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | true | 0 | 0.05 | 0.05 | 0.15 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bf78a1bb80193bc94cd9bd45890f23e4511421a5 | 817 | py | Python | mastermind_api/game/tests/test_models.py | manuelmamut/mastermind | 898b510de19e2affaac5480fbc38e5ba7c6d38ed | [
"MIT"
] | null | null | null | mastermind_api/game/tests/test_models.py | manuelmamut/mastermind | 898b510de19e2affaac5480fbc38e5ba7c6d38ed | [
"MIT"
] | 1 | 2020-06-05T18:29:07.000Z | 2020-06-05T18:29:07.000Z | mastermind_api/game/tests/test_models.py | manuelmamut/mastermind | 898b510de19e2affaac5480fbc38e5ba7c6d38ed | [
"MIT"
] | null | null | null | from django.test import TestCase
from ..models import Game
class TestGame(TestCase):
"""This is the test for the Game model"""
def setUp(self):
Game.objects.create(codemaker="User 1",
codebreaker="User 2",
peg_1="R",
... | 32.68 | 52 | 0.541004 | 99 | 817 | 4.333333 | 0.373737 | 0.244755 | 0.310023 | 0.205128 | 0.160839 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025926 | 0.339045 | 817 | 24 | 53 | 34.041667 | 0.768519 | 0.04284 | 0 | 0 | 0 | 0 | 0.041237 | 0 | 0 | 0 | 0 | 0 | 0.368421 | 1 | 0.105263 | false | 0 | 0.105263 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bf96e50ad6a3bc710f2bb4dfc2a3f78e6b708fbd | 51,934 | py | Python | pysnmp-with-texts/CISCO-IP-PROTOCOL-FILTER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CISCO-IP-PROTOCOL-FILTER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CISCO-IP-PROTOCOL-FILTER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-IP-PROTOCOL-FILTER-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-IP-PROTOCOL-FILTER-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:02:13 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python vers... | 222.892704 | 3,406 | 0.805465 | 6,484 | 51,934 | 6.45111 | 0.111351 | 0.034139 | 0.059743 | 0.00612 | 0.419135 | 0.312965 | 0.276961 | 0.258672 | 0.232016 | 0.224581 | 0 | 0.032056 | 0.108002 | 51,934 | 232 | 3,407 | 223.853448 | 0.87089 | 0.006739 | 0 | 0.040909 | 0 | 0.222727 | 0.56729 | 0.093204 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.004545 | 0.059091 | 0 | 0.077273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bfa523f9afa1edbfcaff0a2cb68594ae98ca4a97 | 33 | py | Python | fiber/__init__.py | leukeleu/django-fiber-multilingual | 4574fffb953c442ff7981c16ea1d460784e38eab | [
"Apache-2.0"
] | null | null | null | fiber/__init__.py | leukeleu/django-fiber-multilingual | 4574fffb953c442ff7981c16ea1d460784e38eab | [
"Apache-2.0"
] | null | null | null | fiber/__init__.py | leukeleu/django-fiber-multilingual | 4574fffb953c442ff7981c16ea1d460784e38eab | [
"Apache-2.0"
] | null | null | null | __version__ = '1.2-multilingual'
| 16.5 | 32 | 0.757576 | 4 | 33 | 5.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.090909 | 33 | 1 | 33 | 33 | 0.633333 | 0 | 0 | 0 | 0 | 0 | 0.484848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bfa5ba1a0bb6a1fdc673d58741900f60812afd87 | 82 | py | Python | hand.py | shin-sforzando/PAC2020-RPS | ccc65ee95c0d0e0ffce34f07d667f1fd0306d7c5 | [
"MIT"
] | null | null | null | hand.py | shin-sforzando/PAC2020-RPS | ccc65ee95c0d0e0ffce34f07d667f1fd0306d7c5 | [
"MIT"
] | 8 | 2020-08-18T11:51:19.000Z | 2020-08-18T21:42:45.000Z | hand.py | shin-sforzando/PAC2020-RPS | ccc65ee95c0d0e0ffce34f07d667f1fd0306d7c5 | [
"MIT"
] | null | null | null | from enum import Enum
class Hand(Enum):
G = "グー"
C = "チョキ"
P = "パー"
| 10.25 | 21 | 0.5 | 13 | 82 | 3.153846 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.353659 | 82 | 7 | 22 | 11.714286 | 0.773585 | 0 | 0 | 0 | 0 | 0 | 0.085366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
bfa7f0e04f8c7b88980e04c44a452079cbcff6db | 173 | py | Python | app/grandchallenge/cases/image_builders/__init__.py | Tommos0/grand-challenge.org | 187cd857f6a7c9651b7bda8c42c54801f071dd7c | [
"Apache-2.0"
] | null | null | null | app/grandchallenge/cases/image_builders/__init__.py | Tommos0/grand-challenge.org | 187cd857f6a7c9651b7bda8c42c54801f071dd7c | [
"Apache-2.0"
] | null | null | null | app/grandchallenge/cases/image_builders/__init__.py | Tommos0/grand-challenge.org | 187cd857f6a7c9651b7bda8c42c54801f071dd7c | [
"Apache-2.0"
] | null | null | null | from collections import namedtuple
ImageBuilderResult = namedtuple(
"ImageBuilderResult",
("consumed_files", "file_errors_map", "new_images", "new_image_files"),
)
| 24.714286 | 75 | 0.757225 | 17 | 173 | 7.352941 | 0.764706 | 0.448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127168 | 173 | 6 | 76 | 28.833333 | 0.827815 | 0 | 0 | 0 | 0 | 0 | 0.416185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bfb1206c74f32757be3996b3161431f7932fdd25 | 44 | py | Python | commerce/__init__.py | PragmaticMates/django-commerce | b992bf4c81ca6dfaad9ccd423d25fba9d255f159 | [
"Apache-2.0"
] | 4 | 2017-09-08T19:22:19.000Z | 2021-12-21T17:55:29.000Z | commerce/__init__.py | PragmaticMates/django-commerce | b992bf4c81ca6dfaad9ccd423d25fba9d255f159 | [
"Apache-2.0"
] | null | null | null | commerce/__init__.py | PragmaticMates/django-commerce | b992bf4c81ca6dfaad9ccd423d25fba9d255f159 | [
"Apache-2.0"
] | 1 | 2021-10-31T06:31:18.000Z | 2021-10-31T06:31:18.000Z | default_app_config = 'commerce.apps.Config'
| 22 | 43 | 0.818182 | 6 | 44 | 5.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 44 | 1 | 44 | 44 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bfb421ee21e5c572463d68044c0125eb9a2a6037 | 677 | py | Python | baduk/command/remove_dead_stones.py | sarcoma/Baduk | dd99ec81548d56449691db454662f467a840c9d4 | [
"MIT"
] | 3 | 2020-01-25T08:46:31.000Z | 2020-05-20T09:44:27.000Z | baduk/command/remove_dead_stones.py | sarcoma/Baduk | dd99ec81548d56449691db454662f467a840c9d4 | [
"MIT"
] | null | null | null | baduk/command/remove_dead_stones.py | sarcoma/Baduk | dd99ec81548d56449691db454662f467a840c9d4 | [
"MIT"
] | null | null | null | from baduk.command.command_types import UndoableCommand
class RemoveDeadStones(UndoableCommand):
def __init__(self, groups: set, dead_stone_groups: list):
self.groups = groups
self.group = None
self.dead_stone_groups = dead_stone_groups
def execute(self):
if len(self.dead_sto... | 32.238095 | 61 | 0.685377 | 86 | 677 | 5.023256 | 0.360465 | 0.25 | 0.208333 | 0.175926 | 0.305556 | 0.305556 | 0.240741 | 0.240741 | 0.240741 | 0.240741 | 0 | 0.001957 | 0.245199 | 677 | 20 | 62 | 33.85 | 0.843444 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.066667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bfcdc2194496c508c7dd79eb4b946b2afeed4888 | 251 | py | Python | gmaltcli/tests/tools.py | gmalt/hgt2sql | 155e38682dd5ffab61b834efde3032a65ed9d1af | [
"MIT"
] | 5 | 2018-10-18T17:43:19.000Z | 2021-10-01T07:35:37.000Z | gmaltcli/tests/tools.py | gmalt/hgt2sql | 155e38682dd5ffab61b834efde3032a65ed9d1af | [
"MIT"
] | null | null | null | gmaltcli/tests/tools.py | gmalt/hgt2sql | 155e38682dd5ffab61b834efde3032a65ed9d1af | [
"MIT"
] | 3 | 2017-08-28T08:12:51.000Z | 2021-10-02T04:22:40.000Z | class MockCallable(object):
def __init__(self):
self.called = False
self.args = ()
self.kwargs = {}
def __call__(self, *args, **kwargs):
self.called = True
self.args = args
self.kwargs = kwargs
| 22.818182 | 40 | 0.549801 | 27 | 251 | 4.814815 | 0.444444 | 0.184615 | 0.215385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.330677 | 251 | 10 | 41 | 25.1 | 0.77381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bfd368d756bd67d153134656e3849d22eb808577 | 235 | py | Python | setup.py | scikit-hep/mplhep_data | 87271da1c80fc8c37d6eb5c49afb75624b55107e | [
"MIT"
] | null | null | null | setup.py | scikit-hep/mplhep_data | 87271da1c80fc8c37d6eb5c49afb75624b55107e | [
"MIT"
] | 4 | 2021-04-05T13:05:20.000Z | 2021-08-16T10:26:36.000Z | setup.py | scikit-hep/mplhep_data | 87271da1c80fc8c37d6eb5c49afb75624b55107e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2021, Andrzej Novak
#
# Distributed under the 3-clause BSD license, see accompanying file LICENSE
# or https://github.com/Scikit-HEP/mplhep_data for details.
from setuptools import setup
setup()
| 23.5 | 75 | 0.761702 | 35 | 235 | 5.085714 | 0.942857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024631 | 0.13617 | 235 | 9 | 76 | 26.111111 | 0.852217 | 0.791489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
44b227fb0b0679d6635ef7336d9599052f500d84 | 1,021 | py | Python | apps/zblog/api_view/views.py | zhengze/zblogsite | c58ce366c73e4e3526734508dcc6a25f40d91db8 | [
"MIT"
] | 3 | 2015-07-16T07:36:40.000Z | 2015-07-16T07:36:45.000Z | apps/zblog/api_view/views.py | zhengze/zblogsite | c58ce366c73e4e3526734508dcc6a25f40d91db8 | [
"MIT"
] | 10 | 2017-06-05T05:15:20.000Z | 2022-03-11T23:26:23.000Z | apps/zblog/api_view/views.py | zhengze/zblogsite | c58ce366c73e4e3526734508dcc6a25f40d91db8 | [
"MIT"
] | null | null | null | from apps.zblog.models import (Article,
Category,
Tag,
Album,
Photo,
Music
)
from rest_framework import viewsets
from apps.zblog.serializers import (ArticleSerializer,
CategorySerializer,
TagSerializer,
AlbumSerializer,
PhotoSerializer,
MusicSerializer
)
class ArticleViewSe... | 22.688889 | 55 | 0.752204 | 93 | 1,021 | 8.182796 | 0.354839 | 0.157687 | 0.220762 | 0.197109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171401 | 1,021 | 44 | 56 | 23.204545 | 0.899527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
44c11cbb94cf2cdb8d640e7d2d63d8df9c5b4381 | 35,540 | py | Python | decks.py | Nydrath/Mogsamez | 531e8b58191f54c4d2a28aee81eb89dd785f2ac9 | [
"MIT"
] | null | null | null | decks.py | Nydrath/Mogsamez | 531e8b58191f54c4d2a28aee81eb89dd785f2ac9 | [
"MIT"
] | null | null | null | decks.py | Nydrath/Mogsamez | 531e8b58191f54c4d2a28aee81eb89dd785f2ac9 | [
"MIT"
] | null | null | null | # Album: http://imgur.com/a/24ByN
THOTH = [ ["0 - The Fool", "http://i.imgur.com/PQ2nG95.jpg"],
["I - The Magus", "http://i.imgur.com/qItZSaz.jpg"],
["II - The Priestess", "http://i.imgur.com/joRLHGK.jpg"],
["III - The Empress", "http://i.imgur.com/1xiJAUq.jpg"],
... | 110.372671 | 238 | 0.603573 | 4,689 | 35,540 | 4.574536 | 0.237791 | 0.117483 | 0.130909 | 0.094545 | 0.253193 | 0.182424 | 0.113287 | 0.073287 | 0.010443 | 0 | 0 | 0.018846 | 0.232611 | 35,540 | 321 | 239 | 110.716511 | 0.767646 | 0.002701 | 0 | 0 | 0 | 0.244444 | 0.77767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.019048 | 0.006349 | 0 | 0.006349 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
44caa10da85729957639b621c68a9ed4d97a65b8 | 72 | py | Python | CRI_WeeklyMaps/__init__.py | adambreznicky/smudge_python | af7ba221890253ac6fe7f38691b351861f8b3d96 | [
"MIT"
] | 1 | 2017-05-24T02:05:20.000Z | 2017-05-24T02:05:20.000Z | CRI_WeeklyMaps/__init__.py | adambreznicky/smudge_python | af7ba221890253ac6fe7f38691b351861f8b3d96 | [
"MIT"
] | null | null | null | CRI_WeeklyMaps/__init__.py | adambreznicky/smudge_python | af7ba221890253ac6fe7f38691b351861f8b3d96 | [
"MIT"
] | null | null | null | __file__ = '__init__.py'
__date__ = '6/18/2015'
__author__ = 'ABREZNIC'
| 18 | 24 | 0.708333 | 9 | 72 | 3.888889 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.125 | 72 | 3 | 25 | 24 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
44f4a70199928ce314de87025854e1e92b54967f | 8,376 | py | Python | models.py | unt-libraries/serial-set-inventory | 27d7884f396aa2aa90a7179d6423ffd6b5231121 | [
"BSD-3-Clause"
] | null | null | null | models.py | unt-libraries/serial-set-inventory | 27d7884f396aa2aa90a7179d6423ffd6b5231121 | [
"BSD-3-Clause"
] | null | null | null | models.py | unt-libraries/serial-set-inventory | 27d7884f396aa2aa90a7179d6423ffd6b5231121 | [
"BSD-3-Clause"
] | null | null | null | # This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table
# Feel free ... | 31.969466 | 112 | 0.709885 | 1,007 | 8,376 | 5.733863 | 0.222443 | 0.155871 | 0.158989 | 0.211985 | 0.525805 | 0.364046 | 0.280741 | 0.18895 | 0.150675 | 0.132317 | 0 | 0.024815 | 0.191738 | 8,376 | 261 | 113 | 32.091954 | 0.828065 | 0.076767 | 0 | 0.308901 | 1 | 0 | 0.057528 | 0.006219 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.010471 | 0.010471 | 0 | 0.764398 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
780af2b3775ffadf62add3aac6acc3b9de40da6d | 1,298 | py | Python | binary_insertion_sort.py | Vassago55/normal_sort | e174223dd59e895516fc5fe113a4d7071230980e | [
"MIT"
] | null | null | null | binary_insertion_sort.py | Vassago55/normal_sort | e174223dd59e895516fc5fe113a4d7071230980e | [
"MIT"
] | null | null | null | binary_insertion_sort.py | Vassago55/normal_sort | e174223dd59e895516fc5fe113a4d7071230980e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import random
"""
折半插入排序 O(n) = n^2
"""
class BinaryInsertion(object):
def __init__(self, original_list):
self.original_list = original_list
def sort(self):
length = len(self.original_list)
for i in range(1, length):
self.binary(start=0, end=i-1, cu... | 36.055556 | 106 | 0.627119 | 172 | 1,298 | 4.534884 | 0.27907 | 0.261538 | 0.328205 | 0.20641 | 0.338462 | 0.271795 | 0.271795 | 0.271795 | 0.214103 | 0.151282 | 0 | 0.01809 | 0.233436 | 1,298 | 35 | 107 | 37.085714 | 0.765829 | 0.016179 | 0 | 0 | 0 | 0 | 0.0296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.04 | 0 | 0.2 | 0.08 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
783e24e189e6fceb6db7cc8aa3b5aad7733028dd | 1,000 | py | Python | src/spoofbot/util/__init__.py | raember/spoofbot | 64575eb515ae9eb293efa7380830e38ead602efa | [
"MIT"
] | null | null | null | src/spoofbot/util/__init__.py | raember/spoofbot | 64575eb515ae9eb293efa7380830e38ead602efa | [
"MIT"
] | null | null | null | src/spoofbot/util/__init__.py | raember/spoofbot | 64575eb515ae9eb293efa7380830e38ead602efa | [
"MIT"
] | null | null | null | """Utility module for handy features to be used in conjunction with the core modules"""
from .archive import load_flows
from .common import TimelessRequestsCookieJar
from .common import dict_to_dict_list, url_to_query_dict_list
from .common import dict_to_tuple_list, dict_list_to_dict, dict_list_to_tuple_list, \
... | 52.631579 | 111 | 0.833 | 154 | 1,000 | 5.038961 | 0.480519 | 0.051546 | 0.090206 | 0.051546 | 0.056701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114 | 1,000 | 18 | 112 | 55.555556 | 0.875847 | 0.082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.8125 | 0 | 0.8125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
783e92aa95acff601353fe9802d9de68dc5636d6 | 6,479 | py | Python | src/rotary_table_api/rotary_table_messages.py | CebulowyNinja/rotary-table-antenna-measurement | 608f5800376f5dd0fba8bcc23575183d61fb7526 | [
"MIT"
] | 1 | 2022-01-25T09:12:44.000Z | 2022-01-25T09:12:44.000Z | src/rotary_table_api/rotary_table_messages.py | CebulowyNinja/rotary-table-antenna-measurement | 608f5800376f5dd0fba8bcc23575183d61fb7526 | [
"MIT"
] | null | null | null | src/rotary_table_api/rotary_table_messages.py | CebulowyNinja/rotary-table-antenna-measurement | 608f5800376f5dd0fba8bcc23575183d61fb7526 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from typing import Type
import crc8
def round_to(val: float, precision: float):
if val % precision < precision/2:
val -= val % precision
else:
val += precision - val % precision
return val
ADDRESS_LENGTH = 4
PREAMBLE = b"\x5D"
class Request(ABC):
de... | 29.584475 | 100 | 0.634048 | 837 | 6,479 | 4.703704 | 0.14098 | 0.058674 | 0.029718 | 0.030226 | 0.352553 | 0.276607 | 0.207518 | 0.134112 | 0.100584 | 0.05842 | 0 | 0.017453 | 0.257138 | 6,479 | 219 | 101 | 29.584475 | 0.80054 | 0 | 0 | 0.287234 | 0 | 0 | 0.049228 | 0 | 0 | 0 | 0.000926 | 0 | 0 | 1 | 0.255319 | false | 0 | 0.015957 | 0.154255 | 0.574468 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
787e01742fd15ad977651641b011cef964d6e429 | 3,048 | py | Python | data/projects/flutils/tests/unit/moduleutils/test_validate_attr_identifier.py | se2p/artifact-pynguin-ssbse2020 | 32b5f4d27ef1b81e5c541471e98fa6e50f5ce8a6 | [
"CC-BY-4.0"
] | 3 | 2020-08-20T10:27:13.000Z | 2021-11-02T20:28:16.000Z | data/projects/flutils/tests/unit/moduleutils/test_validate_attr_identifier.py | se2p/artifact-pynguin-ssbse2020 | 32b5f4d27ef1b81e5c541471e98fa6e50f5ce8a6 | [
"CC-BY-4.0"
] | null | null | null | data/projects/flutils/tests/unit/moduleutils/test_validate_attr_identifier.py | se2p/artifact-pynguin-ssbse2020 | 32b5f4d27ef1b81e5c541471e98fa6e50f5ce8a6 | [
"CC-BY-4.0"
] | null | null | null | import keyword
import unittest
from unittest.mock import (
Mock,
patch,
)
from flutils.moduleutils import _validate_attr_identifier
class TestValidateAttrIdentifier(unittest.TestCase):
def test_validate_attr_identifier__00(self) -> None:
arg = ''
line = ''
exp = ''
ret = ... | 29.307692 | 65 | 0.566929 | 296 | 3,048 | 5.459459 | 0.195946 | 0.111386 | 0.204208 | 0.070545 | 0.816832 | 0.686881 | 0.686881 | 0.646658 | 0.646658 | 0.646658 | 0 | 0.005865 | 0.32874 | 3,048 | 103 | 66 | 29.592233 | 0.783969 | 0 | 0 | 0.571429 | 0 | 0 | 0.167323 | 0.090223 | 0 | 0 | 0 | 0 | 0.098901 | 1 | 0.065934 | false | 0 | 0.043956 | 0 | 0.120879 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 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 | 3 |
78c706425a000b2b513464d62472eebbf7a2777f | 707 | py | Python | tests/matchers/test_StringMatcher.py | javierseixas/pyJsonAssert | 08065b94f3e78bcae4a40c077a3224dcfc983792 | [
"MIT"
] | null | null | null | tests/matchers/test_StringMatcher.py | javierseixas/pyJsonAssert | 08065b94f3e78bcae4a40c077a3224dcfc983792 | [
"MIT"
] | null | null | null | tests/matchers/test_StringMatcher.py | javierseixas/pyJsonAssert | 08065b94f3e78bcae4a40c077a3224dcfc983792 | [
"MIT"
] | null | null | null | import unittest
from pyjsonassert.matchers import StringMatcher
class TestStringMatcher(unittest.TestCase):
string = "asfasdf"
number_as_string = "12"
number = 12
float = 12.2
boolean = False
def test_should_identify_an_string(self):
assert StringMatcher.match(self.string) is True
... | 27.192308 | 77 | 0.75389 | 93 | 707 | 5.44086 | 0.408602 | 0.187747 | 0.237154 | 0.27668 | 0.474308 | 0.474308 | 0 | 0 | 0 | 0 | 0 | 0.012132 | 0.183876 | 707 | 25 | 78 | 28.28 | 0.864818 | 0 | 0 | 0 | 0 | 0 | 0.01273 | 0 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.1875 | false | 0 | 0.125 | 0 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
152c6cc44be9dfaece395283ee820114c9d51eb7 | 70 | py | Python | jft.py | isimluk/jft | 998a6d4248f6b4757f9e0cb281c9b2cb51d3558f | [
"Unlicense"
] | null | null | null | jft.py | isimluk/jft | 998a6d4248f6b4757f9e0cb281c9b2cb51d3558f | [
"Unlicense"
] | null | null | null | jft.py | isimluk/jft | 998a6d4248f6b4757f9e0cb281c9b2cb51d3558f | [
"Unlicense"
] | null | null | null | #!/bin/python3
from jft import connect
conn = connect()
print(conn)
| 10 | 23 | 0.714286 | 10 | 70 | 5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 0.157143 | 70 | 6 | 24 | 11.666667 | 0.830508 | 0.185714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1540a7df00b19af211d820021e7b658a04600352 | 878 | py | Python | test/test.py | casonadams/nvim-colors | 869de211dc200dc3ae7913a7a0d84801b078c3b7 | [
"MIT"
] | null | null | null | test/test.py | casonadams/nvim-colors | 869de211dc200dc3ae7913a7a0d84801b078c3b7 | [
"MIT"
] | null | null | null | test/test.py | casonadams/nvim-colors | 869de211dc200dc3ae7913a7a0d84801b078c3b7 | [
"MIT"
] | null | null | null | @decorator(param=1)
def f(x):
"""
Syntax Highlighting Demo
@param x Parameter
Semantic highlighting:
Generated spectrum to pick colors for local variables and parameters:
Color#1 SC1.1 SC1.2 SC1.3 SC1.4 Color#2 SC2.1 SC2.2 SC2.3 SC2.4 Color#3
Color#3 SC3.1 SC3.2 SC3.3 SC3.4 Color#4 SC4.1 ... | 23.105263 | 76 | 0.587699 | 144 | 878 | 3.486111 | 0.520833 | 0.047809 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085938 | 0.271071 | 878 | 37 | 77 | 23.72973 | 0.698438 | 0.007973 | 0 | 0.095238 | 1 | 0 | 0.152727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.095238 | 0 | null | null | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
154449c49e24d358d8d87dc63cfbb99b17cf4926 | 1,142 | py | Python | terbilang.py | saih02/terbilang | 7778de00fb2f3567341866d94b1284de24e2bf0b | [
"MIT"
] | 1 | 2021-01-23T13:46:37.000Z | 2021-01-23T13:46:37.000Z | terbilang.py | saih02/terbilang | 7778de00fb2f3567341866d94b1284de24e2bf0b | [
"MIT"
] | null | null | null | terbilang.py | saih02/terbilang | 7778de00fb2f3567341866d94b1284de24e2bf0b | [
"MIT"
] | null | null | null | def hasil(num):
huruf = ['nol', 'satu', 'dua', 'tiga', 'empat', 'lima', 'enam', 'tujuh', 'delapan', 'sembilan', 'sepuluh', 'sebelas']
if num < 12:
temp = ' '+huruf[num]
elif num < 20:
temp = str(hasil(num-10))+' belas'
elif num < 100:
temp = str(hasil(num//10))+' puluh'+st... | 38.066667 | 122 | 0.558669 | 145 | 1,142 | 4.4 | 0.317241 | 0.225705 | 0.258621 | 0.164577 | 0.188088 | 0.134796 | 0 | 0 | 0 | 0 | 0 | 0.180308 | 0.261821 | 1,142 | 30 | 123 | 38.066667 | 0.576512 | 0 | 0 | 0 | 0 | 0 | 0.113106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1555d5135512f2f6ccde033da1490c32f60ec934 | 110 | py | Python | output/models/ms_data/particles/particles_ec020_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ms_data/particles/particles_ec020_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ms_data/particles/particles_ec020_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ms_data.particles.particles_ec020_xsd.particles_ec020 import Doc
__all__ = [
"Doc",
]
| 18.333333 | 83 | 0.772727 | 15 | 110 | 5.133333 | 0.733333 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.127273 | 110 | 5 | 84 | 22 | 0.739583 | 0 | 0 | 0 | 0 | 0 | 0.027273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
158d72cfcf78932df420bc015b106329b32a07ad | 186 | py | Python | command_line/pytest_launcher.py | dials/dx2 | 94a5e2fd048b4133241c5a528ffaf7c504f22f8b | [
"BSD-3-Clause"
] | null | null | null | command_line/pytest_launcher.py | dials/dx2 | 94a5e2fd048b4133241c5a528ffaf7c504f22f8b | [
"BSD-3-Clause"
] | null | null | null | command_line/pytest_launcher.py | dials/dx2 | 94a5e2fd048b4133241c5a528ffaf7c504f22f8b | [
"BSD-3-Clause"
] | null | null | null | # LIBTBX_SET_DISPATCHER_NAME pytest
import sys
import pytest
# modify sys.argv so the command line help shows the right executable name
sys.argv[0] = "pytest"
sys.exit(pytest.main())
| 18.6 | 74 | 0.774194 | 30 | 186 | 4.7 | 0.666667 | 0.099291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006289 | 0.145161 | 186 | 9 | 75 | 20.666667 | 0.880503 | 0.569892 | 0 | 0 | 0 | 0 | 0.077922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ec62d59fbc472101d6b0c74d301e1b75ceb3bbe3 | 6,859 | py | Python | slippy/contact/lubricant_models.py | KDriesen/slippy | 816723fe6ab9f5ed26b14b4fe0f66423649b85e6 | [
"MIT"
] | 12 | 2020-12-06T15:30:06.000Z | 2021-12-14T06:37:15.000Z | slippy/contact/lubricant_models.py | KDriesen/slippy | 816723fe6ab9f5ed26b14b4fe0f66423649b85e6 | [
"MIT"
] | null | null | null | slippy/contact/lubricant_models.py | KDriesen/slippy | 816723fe6ab9f5ed26b14b4fe0f66423649b85e6 | [
"MIT"
] | 5 | 2021-03-18T05:53:11.000Z | 2022-02-16T15:18:43.000Z | """
Common sub models for lubricants
"""
import numpy as np
__all__ = ['constant_array_property', 'roelands', 'barus', 'nd_barus', 'nd_roelands', 'dowson_higginson',
'nd_dowson_higginson']
def constant_array_property(value: float):
""" Produce a closure that returns an index able constant value
... | 30.896396 | 120 | 0.670797 | 987 | 6,859 | 4.549139 | 0.141844 | 0.02049 | 0.03029 | 0.03118 | 0.563252 | 0.521826 | 0.473497 | 0.439198 | 0.388419 | 0.324276 | 0 | 0.020283 | 0.238081 | 6,859 | 221 | 121 | 31.036199 | 0.838883 | 0.680274 | 0 | 0.428571 | 0 | 0 | 0.054348 | 0.013889 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.028571 | 0.2 | 0.828571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ec7787563d6e6172094b8a8fad1b5aac70a8c46f | 1,072 | py | Python | utils.py | lonesword/lottery-ticket-experiments | 611189d9e170a6db221665f06c357fcacaddfde8 | [
"MIT"
] | 6 | 2019-09-02T17:02:28.000Z | 2019-10-29T13:34:29.000Z | utils.py | kevinmartinjos/lottery-ticket-experiments | 611189d9e170a6db221665f06c357fcacaddfde8 | [
"MIT"
] | 1 | 2019-09-30T03:25:32.000Z | 2019-09-30T03:25:32.000Z | utils.py | lonesword/lottery-ticket-experiments | 611189d9e170a6db221665f06c357fcacaddfde8 | [
"MIT"
] | 2 | 2020-11-09T08:29:10.000Z | 2022-01-14T12:15:33.000Z | import torch
def get_zero_count(matrix):
# A utility function to count the number of zeroes in a 2-D matrix
return torch.sum(matrix == 0).item()
def apply_mask_dict_to_weight_dict(mask_dict, weight_dict):
# mask_dict - a dictionary where keys are layer names (string) and values are masks (bytetensor) fo... | 44.666667 | 125 | 0.732276 | 173 | 1,072 | 4.398844 | 0.450867 | 0.04205 | 0.099869 | 0.047306 | 0.09724 | 0.09724 | 0.09724 | 0.09724 | 0 | 0 | 0 | 0.005917 | 0.211754 | 1,072 | 23 | 126 | 46.608696 | 0.894675 | 0.599813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ec7a8726669e986cb345202a27522db2c0d9c43b | 938 | py | Python | code/numpy/numpy-tutorial-master/scripts/test.py | vicb1/python-reference | 8bbb5b14ad0781cbb4b16e260ae1dc772acd6063 | [
"MIT"
] | null | null | null | code/numpy/numpy-tutorial-master/scripts/test.py | vicb1/python-reference | 8bbb5b14ad0781cbb4b16e260ae1dc772acd6063 | [
"MIT"
] | null | null | null | code/numpy/numpy-tutorial-master/scripts/test.py | vicb1/python-reference | 8bbb5b14ad0781cbb4b16e260ae1dc772acd6063 | [
"MIT"
] | null | null | null | Z = [[0,0,0,0,0,0],
[0,0,0,1,0,0],
[0,1,0,1,0,0],
[0,0,1,1,0,0],
[0,0,0,0,0,0],
[0,0,0,0,0,0]]
def compute_neighbours(Z):
shape = len(Z), len(Z[0])
N = [[0,]*(shape[0]) for i in range(shape[1])]
for x in range(1,shape[0]-1):
for y in range(1,shape[1]-1):
N[x][... | 24.684211 | 61 | 0.398721 | 203 | 938 | 1.832512 | 0.133005 | 0.139785 | 0.177419 | 0.193548 | 0.524194 | 0.489247 | 0.489247 | 0.451613 | 0.346774 | 0.322581 | 0 | 0.124797 | 0.342217 | 938 | 37 | 62 | 25.351351 | 0.47812 | 0 | 0 | 0.242424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.151515 | 0.060606 | 0 | 0 | 1 | null | 0 | 0 | 1 | 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 | 3 |
ec857d70f215c13198d9d28e7a372943cc98bb72 | 237 | py | Python | src/charma/countries/__init__.py | mononobi/charma-server | ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced | [
"BSD-3-Clause"
] | 1 | 2020-01-16T23:36:10.000Z | 2020-01-16T23:36:10.000Z | src/charma/countries/__init__.py | mononobi/imovie-server | ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced | [
"BSD-3-Clause"
] | 24 | 2020-06-08T18:27:04.000Z | 2021-06-06T12:01:39.000Z | src/charma/countries/__init__.py | mononobi/charma-server | ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced | [
"BSD-3-Clause"
] | 1 | 2020-12-20T05:29:04.000Z | 2020-12-20T05:29:04.000Z | # -*- coding: utf-8 -*-
"""
countries package.
"""
from pyrin.packaging.base import Package
class CountriesPackage(Package):
"""
countries package class.
"""
NAME = __name__
COMPONENT_NAME = 'countries.component'
| 14.8125 | 42 | 0.649789 | 23 | 237 | 6.478261 | 0.608696 | 0.214765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005348 | 0.21097 | 237 | 15 | 43 | 15.8 | 0.791444 | 0.278481 | 0 | 0 | 0 | 0 | 0.128378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ecab99f0b941bc81acfd79df9f8528c06c3d075a | 2,360 | py | Python | python/venv/lib/python2.7/site-packages/keystoneauth1/tests/unit/keystoneauth_fixtures.py | sjsucohort6/openstack | 8471e6e599c3f52319926a582358358ef84cbadb | [
"MIT"
] | null | null | null | python/venv/lib/python2.7/site-packages/keystoneauth1/tests/unit/keystoneauth_fixtures.py | sjsucohort6/openstack | 8471e6e599c3f52319926a582358358ef84cbadb | [
"MIT"
] | null | null | null | python/venv/lib/python2.7/site-packages/keystoneauth1/tests/unit/keystoneauth_fixtures.py | sjsucohort6/openstack | 8471e6e599c3f52319926a582358358ef84cbadb | [
"MIT"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | 31.466667 | 75 | 0.561017 | 272 | 2,360 | 4.8125 | 0.378676 | 0.122231 | 0.045837 | 0.024446 | 0.323911 | 0.155844 | 0 | 0 | 0 | 0 | 0 | 0.071663 | 0.355508 | 2,360 | 74 | 76 | 31.891892 | 0.788955 | 0.259746 | 0 | 0 | 0 | 0 | 0.680023 | 0.058072 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.576923 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ece3d7283a4bad3b0d546ed174ca15ff91ac12f1 | 481 | py | Python | rpython/translator/goal/targetgcbench.py | kantai/passe-pypy-taint-tracking | b60a3663f8fe89892dc182c8497aab97e2e75d69 | [
"MIT"
] | 2 | 2016-07-06T23:30:20.000Z | 2017-05-30T15:59:31.000Z | rpython/translator/goal/targetgcbench.py | kantai/passe-pypy-taint-tracking | b60a3663f8fe89892dc182c8497aab97e2e75d69 | [
"MIT"
] | null | null | null | rpython/translator/goal/targetgcbench.py | kantai/passe-pypy-taint-tracking | b60a3663f8fe89892dc182c8497aab97e2e75d69 | [
"MIT"
] | 2 | 2020-07-09T08:14:22.000Z | 2021-01-15T18:01:25.000Z | import os, sys
from rpython.translator.goal import gcbench
# _____ Define and setup target ___
def target(*args):
gcbench.ENABLE_THREADS = False # not RPython
return gcbench.entry_point, None
"""
Why is this a stand-alone target?
The above target specifies None as the argument types list.
This is a case ... | 26.722222 | 63 | 0.754678 | 77 | 481 | 4.584416 | 0.701299 | 0.033994 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189189 | 481 | 17 | 64 | 28.294118 | 0.905128 | 0.093555 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
01c1a4a59b9e18cbcb68ca2e648421d832ba4e52 | 171 | py | Python | DMOJ/CCC/ART.py | eddiegz/Personal-C | f7869826216e5c665f8f646502141f0dc680e545 | [
"MIT"
] | 3 | 2021-05-15T08:18:09.000Z | 2021-05-17T04:41:57.000Z | DMOJ/CCC/ART.py | eddiegz/Personal-C | f7869826216e5c665f8f646502141f0dc680e545 | [
"MIT"
] | null | null | null | DMOJ/CCC/ART.py | eddiegz/Personal-C | f7869826216e5c665f8f646502141f0dc680e545 | [
"MIT"
] | null | null | null | N=float(input())
number=0
list1=[]
while True:
co=float(input())
number+=1
list1.append(co)
if number==N:
break
print(list1)
| 13.153846 | 22 | 0.51462 | 22 | 171 | 4 | 0.636364 | 0.227273 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044248 | 0.339181 | 171 | 13 | 23 | 13.153846 | 0.734513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
01c274f841142d06cf3d49b14f3e793afacd68d4 | 2,320 | py | Python | EngLearner/mainsys/models.py | jiangyifan123/EngLearner | a54c205a6e6bf3b2af366b56a7b7f97344fa1466 | [
"bzip2-1.0.6"
] | null | null | null | EngLearner/mainsys/models.py | jiangyifan123/EngLearner | a54c205a6e6bf3b2af366b56a7b7f97344fa1466 | [
"bzip2-1.0.6"
] | null | null | null | EngLearner/mainsys/models.py | jiangyifan123/EngLearner | a54c205a6e6bf3b2af366b56a7b7f97344fa1466 | [
"bzip2-1.0.6"
] | null | null | null | from django.db import models
import time
# Create your models here.
class words(models.Model):
word = models.CharField(max_length = 40, default = '', verbose_name = "单词")
symthm = models.CharField(max_length = 40, default = '', verbose_name = "音标")
chinese = models.CharField(max_length = 100, default = '', ... | 59.487179 | 97 | 0.705603 | 297 | 2,320 | 5.329966 | 0.262626 | 0.152874 | 0.216045 | 0.288061 | 0.66772 | 0.644978 | 0.565382 | 0.565382 | 0.418193 | 0.351232 | 0 | 0.033838 | 0.146552 | 2,320 | 38 | 98 | 61.052632 | 0.765657 | 0.010345 | 0 | 0.242424 | 0 | 0 | 0.052746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
01c45169d0c8404e4ce464327bb2bdba0f2ebe19 | 898 | py | Python | heartful/apps/core/serializers.py | DeWittmm/Heartful | 1e098f934ff15fbd8e3ad435abf807f9d6be5cf5 | [
"MIT"
] | 2 | 2015-02-03T06:58:21.000Z | 2015-02-18T05:45:09.000Z | heartful/apps/core/serializers.py | DeWittmm/Heartful | 1e098f934ff15fbd8e3ad435abf807f9d6be5cf5 | [
"MIT"
] | null | null | null | heartful/apps/core/serializers.py | DeWittmm/Heartful | 1e098f934ff15fbd8e3ad435abf807f9d6be5cf5 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import *
#MARK: User
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('googleid', 'name', 'heartrate', 'spO2', 'age',)
class UserDataSetSerializer(serializers.ModelSerializer):
# user = UserSerializer(man... | 25.657143 | 75 | 0.655902 | 84 | 898 | 6.97619 | 0.511905 | 0.221843 | 0.119454 | 0.238908 | 0.273038 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00142 | 0.216036 | 898 | 34 | 76 | 26.411765 | 0.830966 | 0.083519 | 0 | 0.227273 | 0 | 0 | 0.126829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.590909 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
01e7e854c859aff54ad3fe6f6df3a8345651b43b | 689 | py | Python | pgdocs/command/show.py | VEINHORN/pgdocs | 94255ab1d582ffbb90a6d1572d201fbb9fa2b0f6 | [
"MIT"
] | null | null | null | pgdocs/command/show.py | VEINHORN/pgdocs | 94255ab1d582ffbb90a6d1572d201fbb9fa2b0f6 | [
"MIT"
] | null | null | null | pgdocs/command/show.py | VEINHORN/pgdocs | 94255ab1d582ffbb90a6d1572d201fbb9fa2b0f6 | [
"MIT"
] | null | null | null | """
Shows database objects description
"""
import subprocess
import validator
import psqlcmd as psql
def execute(host, port, database, schema, table):
host, port, database = validator.connection_props(host, port, database)
# print("host={}, port={}, schema={}, db={}, table={}".format(
# host, port, sc... | 29.956522 | 75 | 0.671988 | 86 | 689 | 5.290698 | 0.406977 | 0.140659 | 0.210989 | 0.193407 | 0.296703 | 0.237363 | 0.237363 | 0 | 0 | 0 | 0 | 0.003466 | 0.162554 | 689 | 22 | 76 | 31.318182 | 0.785095 | 0.198839 | 0 | 0 | 0 | 0 | 0.055249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.545455 | 0.090909 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
bf026455e2c4e4e5ce88235785f84ed0dda65aaa | 138 | py | Python | langtojson/__init__.py | Ars2014/langtojson | 71c5834bb572de90020f1df98fdf7718d72ee8a8 | [
"MIT"
] | null | null | null | langtojson/__init__.py | Ars2014/langtojson | 71c5834bb572de90020f1df98fdf7718d72ee8a8 | [
"MIT"
] | 8 | 2021-05-01T06:07:00.000Z | 2021-08-13T13:53:42.000Z | langtojson/__init__.py | Ars2014/langtojson | 71c5834bb572de90020f1df98fdf7718d72ee8a8 | [
"MIT"
] | null | null | null | """Top-level package for LangToJson."""
__author__ = """Arslan Sakhapov"""
__email__ = 'arslan.sakhapov@yandex.ru'
__version__ = '0.1.0'
| 23 | 39 | 0.702899 | 17 | 138 | 5 | 0.823529 | 0.329412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.108696 | 138 | 5 | 40 | 27.6 | 0.666667 | 0.23913 | 0 | 0 | 0 | 0 | 0.454545 | 0.252525 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bf30a81c88d234174a81e28d2d00382a67e37cb8 | 116 | py | Python | notochord/test/__main__.py | jroose/notochord | da9a6ff5d0fabbf0694d0bee1b81a240b66fa006 | [
"MIT"
] | null | null | null | notochord/test/__main__.py | jroose/notochord | da9a6ff5d0fabbf0694d0bee1b81a240b66fa006 | [
"MIT"
] | null | null | null | notochord/test/__main__.py | jroose/notochord | da9a6ff5d0fabbf0694d0bee1b81a240b66fa006 | [
"MIT"
] | null | null | null | import unittest
from . import *
def main():
unittest.main(exit=False)
if __name__ == "__main__":
main()
| 10.545455 | 29 | 0.637931 | 14 | 116 | 4.714286 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224138 | 116 | 10 | 30 | 11.6 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.333333 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
170c1059ce249ee1e178a99e0673d72840dfee63 | 186 | py | Python | pyexlatex/graphics/tikz/library.py | whoopnip/py-ex-latex | 66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6 | [
"MIT"
] | 4 | 2020-06-08T07:17:12.000Z | 2021-11-04T21:39:52.000Z | pyexlatex/graphics/tikz/library.py | nickderobertis/py-ex-latex | 66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6 | [
"MIT"
] | 24 | 2020-02-17T17:20:44.000Z | 2021-12-20T00:10:19.000Z | pyexlatex/graphics/tikz/library.py | nickderobertis/py-ex-latex | 66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6 | [
"MIT"
] | null | null | null | from pyexlatex.models.item import SimpleItem
class TikZLibrary(SimpleItem):
name = 'usetikzlibrary'
def __init__(self, contents):
super().__init__(self.name, contents) | 23.25 | 45 | 0.725806 | 20 | 186 | 6.35 | 0.75 | 0.125984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172043 | 186 | 8 | 45 | 23.25 | 0.824675 | 0 | 0 | 0 | 0 | 0 | 0.074866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.