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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1dcda00f06d484c429e78cd8348704164d75422d | 507 | py | Python | contesto/__init__.py | kaktaktoa/contesto | c31d10959abf1397182c24216880c487d29ac184 | [
"MIT"
] | null | null | null | contesto/__init__.py | kaktaktoa/contesto | c31d10959abf1397182c24216880c487d29ac184 | [
"MIT"
] | null | null | null | contesto/__init__.py | kaktaktoa/contesto | c31d10959abf1397182c24216880c487d29ac184 | [
"MIT"
] | null | null | null | from contesto.config import config
from contesto.basis.test_case import ContestoTestCase
from contesto.basis.benchmark import BenchmarkBaseCase
from contesto.basis.page import Page, WebPage, MobilePage
from contesto.basis.component import Component, WebComponent, MobileComponent
from contesto.core.locator import *
fro... | 42.25 | 77 | 0.854043 | 68 | 507 | 6.279412 | 0.411765 | 0.28103 | 0.159251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094675 | 507 | 11 | 78 | 46.090909 | 0.930283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1df84d03d4dedda02e3d15a5a6f8e4d3b39b329c | 245 | py | Python | sales/serializers.py | joarkm/olmonopolet-api | 5fb605f53d6fc87c441ae0f72360c524cb0d3fb7 | [
"MIT"
] | 2 | 2020-11-21T13:15:53.000Z | 2021-05-18T19:17:41.000Z | sales/serializers.py | joarkm/olmonopolet-api | 5fb605f53d6fc87c441ae0f72360c524cb0d3fb7 | [
"MIT"
] | 6 | 2021-03-21T19:24:26.000Z | 2021-09-22T19:09:31.000Z | sales/serializers.py | joarkm/olmonopolet-api | 5fb605f53d6fc87c441ae0f72360c524cb0d3fb7 | [
"MIT"
] | 1 | 2021-05-20T21:52:10.000Z | 2021-05-20T21:52:10.000Z | from rest_framework import serializers
from .models import DailySale
class DailySaleSerializer(serializers.ModelSerializer):
class Meta:
fields=('beer_id','store_id','sales_day','beers_sold','last_updated')
model = DailySale | 35 | 77 | 0.755102 | 28 | 245 | 6.392857 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146939 | 245 | 7 | 78 | 35 | 0.856459 | 0 | 0 | 0 | 0 | 0 | 0.186992 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
38078293d27ebd5374a29f80e1845de043a57dc2 | 150 | py | Python | contests_atcoder/abc161/abc161_b.py | takelifetime/competitive-programming | e7cf8ef923ccefad39a1727ca94c610d650fcb76 | [
"BSD-2-Clause"
] | null | null | null | contests_atcoder/abc161/abc161_b.py | takelifetime/competitive-programming | e7cf8ef923ccefad39a1727ca94c610d650fcb76 | [
"BSD-2-Clause"
] | 1 | 2021-01-02T06:36:51.000Z | 2021-01-02T06:36:51.000Z | contests_atcoder/abc161/abc161_b.py | takelifetime/competitive-programming | e7cf8ef923ccefad39a1727ca94c610d650fcb76 | [
"BSD-2-Clause"
] | null | null | null | n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
if a[m-1] * 4 * m < sum(a): print("No")
else: print("Yes") | 21.428571 | 39 | 0.566667 | 29 | 150 | 2.931034 | 0.655172 | 0.141176 | 0.258824 | 0.376471 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0.146667 | 150 | 7 | 40 | 21.428571 | 0.648438 | 0 | 0 | 0 | 0 | 0 | 0.033113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 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 | 4 |
381d918d4ccee3d8d356969cadd9803f3f8a5b54 | 212 | py | Python | tests/fixtures/info2.py | Nitnelav/synpp | b2b2136a99701ce77fd4fea939f8efb521f67c21 | [
"MIT"
] | 6 | 2020-04-01T12:06:20.000Z | 2021-11-02T19:10:27.000Z | tests/fixtures/info2.py | Nitnelav/synpp | b2b2136a99701ce77fd4fea939f8efb521f67c21 | [
"MIT"
] | 26 | 2019-12-08T12:25:39.000Z | 2022-02-28T07:24:56.000Z | tests/fixtures/info2.py | Nitnelav/synpp | b2b2136a99701ce77fd4fea939f8efb521f67c21 | [
"MIT"
] | 8 | 2020-06-19T15:49:46.000Z | 2021-07-06T10:15:37.000Z | def configure(context):
context.stage("tests.fixtures.info1")
def execute(context):
context.set_info("abc", "123")
context.set_info("concat", "123" + context.get_info("tests.fixtures.info1", "uvw"))
| 30.285714 | 87 | 0.693396 | 28 | 212 | 5.142857 | 0.535714 | 0.194444 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042781 | 0.117925 | 212 | 6 | 88 | 35.333333 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0.273585 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3849f17833f0b2721a53c16b7e3526ee3bbdc1fc | 86 | py | Python | setup.py | Yeachan-Heo/HSC2021-AlphaSolar | e572fb2fc44922f454c19396e17537bb706d23c8 | [
"MIT"
] | 13 | 2021-06-11T06:17:23.000Z | 2021-07-19T01:50:36.000Z | setup.py | Yeachan-Heo/HSC2021-AlphaSolar | e572fb2fc44922f454c19396e17537bb706d23c8 | [
"MIT"
] | null | null | null | setup.py | Yeachan-Heo/HSC2021-AlphaSolar | e572fb2fc44922f454c19396e17537bb706d23c8 | [
"MIT"
] | 5 | 2021-06-11T06:32:24.000Z | 2021-06-14T02:16:24.000Z | from setuptools import setup
setup(packages=["alphasolar"], name="alphasolar")
#asdf | 17.2 | 49 | 0.767442 | 10 | 86 | 6.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 86 | 5 | 50 | 17.2 | 0.846154 | 0.046512 | 0 | 0 | 0 | 0 | 0.243902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 4 |
69c0934faedd49900c35f0566f6f4e1dfba19135 | 3,473 | py | Python | tests/test_AdresseParser.py | bmadjic/AdresseParser | b57d15078888056086b643b2b905b336c160bcad | [
"MIT"
] | null | null | null | tests/test_AdresseParser.py | bmadjic/AdresseParser | b57d15078888056086b643b2b905b336c160bcad | [
"MIT"
] | null | null | null | tests/test_AdresseParser.py | bmadjic/AdresseParser | b57d15078888056086b643b2b905b336c160bcad | [
"MIT"
] | null | null | null | from unittest import TestCase
from AdresseParser import AdresseParser
"""Run python -m unittest discover tests"""
class TestAdresseParser(TestCase):
def setUp(self) -> None:
self.adresse_parser = AdresseParser()
self.adresse1 = self.adresse_parser.parse("88 rue de rivoli 75002 paris")
self... | 41.843373 | 81 | 0.656493 | 395 | 3,473 | 5.718987 | 0.118987 | 0.265604 | 0.336432 | 0.095618 | 0.80965 | 0.606463 | 0.094732 | 0.030987 | 0 | 0 | 0 | 0.032347 | 0.163259 | 3,473 | 83 | 82 | 41.843373 | 0.74501 | 0 | 0 | 0 | 0 | 0 | 0.20169 | 0 | 0 | 0 | 0 | 0 | 0.727273 | 1 | 0.109091 | false | 0 | 0.036364 | 0 | 0.163636 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 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 | 4 |
69da23616aa4ddd123da5974448feff50ac1f828 | 2,132 | py | Python | _assignments/intermediate/regex/re_standards_a.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null | _assignments/intermediate/regex/re_standards_a.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null | _assignments/intermediate/regex/re_standards_a.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null | """
* Assignment: RE Standards PESEL
* Complexity: medium
* Lines of code: 0 lines
* Time: 5 min
* Warning: Do no write any code - **discussion only**
English:
TODO: English Translation
X. Run doctests - all must succeed
Polish:
1. Napisz implementację `is_pesel_valid`
a. Temat walidacji Pesel jest... | 30.028169 | 76 | 0.674484 | 308 | 2,132 | 4.616883 | 0.425325 | 0.118143 | 0.151899 | 0.177215 | 0.372714 | 0.372714 | 0.372714 | 0.372714 | 0.372714 | 0.372714 | 0 | 0.048903 | 0.251876 | 2,132 | 70 | 77 | 30.457143 | 0.842633 | 0.918856 | 0 | 0.333333 | 0 | 0 | 0.057143 | 0 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
69dd7e2c77c7bfe28caa6cf3f8c0bfaaec8daa37 | 385 | py | Python | python-serv/core/validator/rule.py | plvhx/efishery-backend-test | 091a51534bc5259993debea2cb55a4f4548f3d07 | [
"BSD-3-Clause"
] | null | null | null | python-serv/core/validator/rule.py | plvhx/efishery-backend-test | 091a51534bc5259993debea2cb55a4f4548f3d07 | [
"BSD-3-Clause"
] | null | null | null | python-serv/core/validator/rule.py | plvhx/efishery-backend-test | 091a51534bc5259993debea2cb55a4f4548f3d07 | [
"BSD-3-Clause"
] | null | null | null | from abc import ABC
class AbstractRule(ABC):
pass
class Rule(AbstractRule):
def __init__(self, name, data_type, required=True):
self.name = name
self.type = data_type
self.required = required
def get_name(self):
return self.name
def get_type(self):
return se... | 17.5 | 55 | 0.633766 | 50 | 385 | 4.7 | 0.36 | 0.102128 | 0.178723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 385 | 21 | 56 | 18.333333 | 0.854545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.071429 | 0.071429 | 0.214286 | 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 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
385d55f31e4d10f3124614234c4211c34607e24d | 537 | py | Python | jsub/manager/error.py | xianghuzhao/jsub | fda16e9a0983410d33e454d9f1c4a94134e49d41 | [
"MIT"
] | 2 | 2017-05-26T07:17:34.000Z | 2019-04-08T05:53:35.000Z | jsub/manager/error.py | xianghuzhao/jsub | fda16e9a0983410d33e454d9f1c4a94134e49d41 | [
"MIT"
] | null | null | null | jsub/manager/error.py | xianghuzhao/jsub | fda16e9a0983410d33e454d9f1c4a94134e49d41 | [
"MIT"
] | 1 | 2019-04-08T06:52:46.000Z | 2019-04-08T06:52:46.000Z | from jsub.error import JsubError
class ExtensionNotFoundError(JsubError):
pass
class BadConfigError(JsubError):
pass
class ConfigNotSetupError(JsubError):
pass
class ExtensionNotSetupError(JsubError):
pass
class RepoNotSetupError(ExtensionNotSetupError):
pass
class ContentNotSetupError(Extensi... | 16.78125 | 54 | 0.806331 | 41 | 537 | 10.560976 | 0.390244 | 0.166282 | 0.166282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141527 | 537 | 31 | 55 | 17.322581 | 0.939262 | 0 | 0 | 0.473684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.473684 | 0.052632 | 0 | 0.526316 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
385dfe1c01c96f781d3e88f713c98961b99b4d9e | 293 | py | Python | GraduationDesign/SSFN_V6_02/Methods/WJ/wj_similarity.py | sivanWu0222/GraduationProject | 3f98d078b763dd84a246999879040c34cfbc5efb | [
"MIT"
] | 12 | 2019-04-27T11:17:16.000Z | 2022-02-27T14:03:12.000Z | GraduationDesign/SSFN_V6_02/Methods/WJ/wj_similarity.py | sivanWu0222/GraduationProject | 3f98d078b763dd84a246999879040c34cfbc5efb | [
"MIT"
] | 1 | 2022-03-21T12:31:29.000Z | 2022-03-26T03:01:14.000Z | GraduationDesign/SSFN_V6_02/Methods/WJ/wj_similarity.py | sivanWu0222/GraduationProject | 3f98d078b763dd84a246999879040c34cfbc5efb | [
"MIT"
] | null | null | null | def wj_similarity(word2vec, sentence1words, sentence2words):
"""
计算句子的WMD距离
:param word2vec: Word2Vec对象
:param sentence1words: 句子1词语列表
:param sentence2words: 句子2词语列表
:return: 两个句子的wj相似度
"""
return word2vec.sentence_similarity(sentence1words, sentence2words)
| 29.3 | 71 | 0.730375 | 24 | 293 | 8.833333 | 0.583333 | 0.264151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050633 | 0.191126 | 293 | 9 | 72 | 32.555556 | 0.843882 | 0.419795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
387784917102d793d93b964d695956b211aaa4e7 | 2,440 | py | Python | tests/test_trio.py | thedjinn/pyee | 94a6d54ccb878748be876e4118292b847bc4a143 | [
"MIT"
] | null | null | null | tests/test_trio.py | thedjinn/pyee | 94a6d54ccb878748be876e4118292b847bc4a143 | [
"MIT"
] | null | null | null | tests/test_trio.py | thedjinn/pyee | 94a6d54ccb878748be876e4118292b847bc4a143 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import pytest
import pytest_trio.plugin # noqa
import trio
from pyee import TrioEventEmitter
class PyeeTestError(Exception):
pass
@pytest.mark.trio
async def test_trio_emit():
"""Test that the trio event emitter can handle wrapping
coroutines
"""
async with TrioEventE... | 21.59292 | 80 | 0.588115 | 293 | 2,440 | 4.750853 | 0.242321 | 0.051724 | 0.04023 | 0.054598 | 0.783764 | 0.747845 | 0.729167 | 0.678161 | 0.678161 | 0.678161 | 0 | 0.006599 | 0.316803 | 2,440 | 112 | 81 | 21.785714 | 0.828434 | 0.010656 | 0 | 0.818182 | 0 | 0 | 0.023935 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 1 | 0.015152 | false | 0.015152 | 0.060606 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3890794cc8ee794c45ba856f259aba682613ddd2 | 2,522 | py | Python | utils.py | karianjahi/recommender_system | 9484a6a779c6ac731046d1519f4dd7c2ae96901e | [
"MIT"
] | null | null | null | utils.py | karianjahi/recommender_system | 9484a6a779c6ac731046d1519f4dd7c2ae96901e | [
"MIT"
] | null | null | null | utils.py | karianjahi/recommender_system | 9484a6a779c6ac731046d1519f4dd7c2ae96901e | [
"MIT"
] | null | null | null | """
UTILS
- Helper functions to use for your recommender funcions, etc
- Data: import files/models here e.g.
- movies: list of movie titles and assigned cluster
- ratings
- user_item_matrix
- item-item matrix
- Models:
- nmf_model: trained sklearn NMF model
"""
import pandas as pd
import numpy as ... | 20.672131 | 75 | 0.57732 | 291 | 2,522 | 4.814433 | 0.37457 | 0.28551 | 0.396146 | 0.485368 | 0.204854 | 0.204854 | 0.159172 | 0.159172 | 0.159172 | 0.159172 | 0 | 0.00526 | 0.246233 | 2,522 | 122 | 76 | 20.672131 | 0.73172 | 0.227994 | 0 | 0.538462 | 0 | 0 | 0.147497 | 0.085197 | 0 | 0 | 0 | 0 | 0.012821 | 1 | 0.076923 | false | 0.025641 | 0.064103 | 0 | 0.179487 | 0.589744 | 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 | 1 | 0 | 4 |
3892c0877416988251b5ed3158a958943ea97c4c | 344 | py | Python | miapy/miapy/plotting/__init__.py | SCAN-NRAD/BrainRegressorCNN | 7917c6a6c4e3728db17ec762c63f8253392e6c04 | [
"BSD-3-Clause"
] | 1 | 2022-02-11T18:49:34.000Z | 2022-02-11T18:49:34.000Z | miapy/miapy/plotting/__init__.py | SCAN-NRAD/BrainRegressorCNN | 7917c6a6c4e3728db17ec762c63f8253392e6c04 | [
"BSD-3-Clause"
] | null | null | null | miapy/miapy/plotting/__init__.py | SCAN-NRAD/BrainRegressorCNN | 7917c6a6c4e3728db17ec762c63f8253392e6c04 | [
"BSD-3-Clause"
] | null | null | null | """
========================================
Image plotting (:mod:`plotting` package)
========================================
This package facilitates the plotting of images for presentation and documentation purposes.
Plotting (:mod:`plotting.plotter`)
----------------------------------
.. automodule:: plotting.pl... | 24.571429 | 92 | 0.491279 | 25 | 344 | 6.76 | 0.68 | 0.130178 | 0.224852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098837 | 344 | 14 | 93 | 24.571429 | 0.545161 | 0.973837 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 4 |
38a2303a599c37b9e68ee26bd177ee9a459a29bc | 665 | py | Python | wagtailschemaorg/templates.py | fredvollmer/wagtail-schema.org | e3f702304b33b040b57e2f18090096c45cc163f8 | [
"BSD-2-Clause"
] | null | null | null | wagtailschemaorg/templates.py | fredvollmer/wagtail-schema.org | e3f702304b33b040b57e2f18090096c45cc163f8 | [
"BSD-2-Clause"
] | null | null | null | wagtailschemaorg/templates.py | fredvollmer/wagtail-schema.org | e3f702304b33b040b57e2f18090096c45cc163f8 | [
"BSD-2-Clause"
] | null | null | null | import json
from django.utils.html import conditional_escape
from django.utils.safestring import mark_safe
from .encoder import JSONLDEncoder
from .registry import registry
def nl(xs):
return mark_safe('\n'.join(map(conditional_escape, xs)))
def ld_for_site(site, request=None):
return nl(map(ld_print_enti... | 25.576923 | 77 | 0.756391 | 99 | 665 | 4.868687 | 0.434343 | 0.049793 | 0.080913 | 0.078838 | 0.145228 | 0.145228 | 0.145228 | 0.145228 | 0 | 0 | 0 | 0 | 0.12782 | 665 | 25 | 78 | 26.6 | 0.831034 | 0 | 0 | 0 | 0 | 0 | 0.07218 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.333333 | 0.2 | 0.866667 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
38ba6b8c0d60a8ce7e19aa11744f570ea58f9efd | 170 | py | Python | backend/coreApi/trips/urls.py | rochdikhalid/kopra-v1 | 1899e6f695ff8b3041aa7b4e24f99cb6f585085c | [
"MIT"
] | 3 | 2021-12-14T12:31:18.000Z | 2021-12-15T08:12:45.000Z | backend/coreApi/trips/urls.py | rochdikhalid/kopra-v1 | 1899e6f695ff8b3041aa7b4e24f99cb6f585085c | [
"MIT"
] | null | null | null | backend/coreApi/trips/urls.py | rochdikhalid/kopra-v1 | 1899e6f695ff8b3041aa7b4e24f99cb6f585085c | [
"MIT"
] | 1 | 2022-01-06T14:41:27.000Z | 2022-01-06T14:41:27.000Z | from django.urls import path
from trips import views
urlpatterns = [
path('api/trips/', views.tripApi),
path('api/trips/<int:id>/', views.tripApi),
]
| 17 | 48 | 0.635294 | 22 | 170 | 4.909091 | 0.545455 | 0.12963 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211765 | 170 | 9 | 49 | 18.888889 | 0.80597 | 0 | 0 | 0 | 0 | 0 | 0.180124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
38be1017e4cfbd80d2ca4337459d6841e9264ef4 | 158 | py | Python | hjz/code_graph/code_tag.py | hantianjz/Code-Graph | 1cfe9a8491ff91f0c1b5f7698365db4819848eeb | [
"MIT"
] | null | null | null | hjz/code_graph/code_tag.py | hantianjz/Code-Graph | 1cfe9a8491ff91f0c1b5f7698365db4819848eeb | [
"MIT"
] | null | null | null | hjz/code_graph/code_tag.py | hantianjz/Code-Graph | 1cfe9a8491ff91f0c1b5f7698365db4819848eeb | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import subprocess
def generate_code_tag():
""" """
def main():
generate_graph(nodes, edges)
if __name__ == "__main__":
main()
| 9.875 | 30 | 0.64557 | 19 | 158 | 4.789474 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007752 | 0.183544 | 158 | 15 | 31 | 10.533333 | 0.697674 | 0.107595 | 0 | 0 | 1 | 0 | 0.06015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
38c1cd62cf086dc7f2571ab29b8751180e7c04e0 | 93 | py | Python | app/apps.py | 6Arin9/wulkanowy-web | a97778f4a3716ca2d3c4cf4d4dd83cfa76e1d050 | [
"Apache-2.0"
] | 16 | 2020-11-23T19:44:41.000Z | 2021-09-29T20:21:07.000Z | app/apps.py | 6Arin9/wulkanowy-web | a97778f4a3716ca2d3c4cf4d4dd83cfa76e1d050 | [
"Apache-2.0"
] | 28 | 2021-01-12T16:22:57.000Z | 2022-02-28T06:04:55.000Z | app/apps.py | 6Arin9/wulkanowy-web | a97778f4a3716ca2d3c4cf4d4dd83cfa76e1d050 | [
"Apache-2.0"
] | 9 | 2021-02-05T19:48:12.000Z | 2021-10-02T18:11:26.000Z | from django.apps import AppConfig
class WulkanowyConfig(AppConfig):
name = 'Wulkanowy'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
38e29aa0999cbc8eb9a5ba124edbf32be3dc2661 | 330 | py | Python | tests/test_regex_utils.py | fareszr/app | 1f3bc693eccb307234e53653f6fa2cb25ddc0647 | [
"MIT"
] | null | null | null | tests/test_regex_utils.py | fareszr/app | 1f3bc693eccb307234e53653f6fa2cb25ddc0647 | [
"MIT"
] | null | null | null | tests/test_regex_utils.py | fareszr/app | 1f3bc693eccb307234e53653f6fa2cb25ddc0647 | [
"MIT"
] | null | null | null | from app.regex_utils import regex_match
def test_regex_match(flask_client):
assert regex_match("prefix.*", "prefix-abcd")
# this generates re2 error "Argument 'pattern' has incorrect type (expected bytes, got PythonRePattern)"
# fallback to re
assert not regex_match("(?!abcd)s(\\.|-)?([a-z0-9]{4,6})"... | 33 | 108 | 0.693939 | 47 | 330 | 4.723404 | 0.765957 | 0.18018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.151515 | 330 | 9 | 109 | 36.666667 | 0.775 | 0.354545 | 0 | 0 | 1 | 0 | 0.261905 | 0.152381 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.25 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
38e9303e1bb9a36263e74f4eef9e66071efad3a8 | 58 | py | Python | tests/loghandler/__init__.py | AISyLab/side-channel-attacks | 83c93b1087c9f16423ece7191c3171d07ed1cdce | [
"MIT"
] | 14 | 2020-04-20T16:22:00.000Z | 2022-01-26T16:52:35.000Z | tests/loghandler/__init__.py | AISyLab/side-channel-attacks | 83c93b1087c9f16423ece7191c3171d07ed1cdce | [
"MIT"
] | 1 | 2021-09-02T13:53:05.000Z | 2021-09-02T14:19:01.000Z | tests/loghandler/__init__.py | AISyLab/side-channel-attacks | 83c93b1087c9f16423ece7191c3171d07ed1cdce | [
"MIT"
] | 6 | 2020-07-02T16:24:18.000Z | 2022-02-07T08:55:20.000Z | # This file is here so Python can always find our modules
| 29 | 57 | 0.775862 | 11 | 58 | 4.090909 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 58 | 1 | 58 | 58 | 0.978261 | 0.948276 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c7f99039f0d47d00a336236fc3d23ee403808fac | 11 | py | Python | webrepl_cfg.py | hauchel/duco | 875cb45bb6339642bcdc2f74e75c1c35aa59fb8b | [
"MIT"
] | 5 | 2021-05-29T17:20:22.000Z | 2021-07-10T09:38:43.000Z | webrepl_cfg.py | hauchel/duco | 875cb45bb6339642bcdc2f74e75c1c35aa59fb8b | [
"MIT"
] | null | null | null | webrepl_cfg.py | hauchel/duco | 875cb45bb6339642bcdc2f74e75c1c35aa59fb8b | [
"MIT"
] | 1 | 2021-12-07T00:53:30.000Z | 2021-12-07T00:53:30.000Z | PASS = 'p'
| 5.5 | 10 | 0.454545 | 2 | 11 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 11 | 1 | 11 | 11 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
c7ff6851a8c7cb3d545a1e5eec532dce1060b071 | 232 | py | Python | one_fm/one_fm/doctype/training_evaluation_form/training_evaluation_form_dashboard.py | askmetoo/One-FM | c93ed63695a3e62ee8129bd9adf563116b749030 | [
"MIT"
] | 16 | 2021-06-14T23:56:47.000Z | 2022-03-22T12:05:06.000Z | one_fm/one_fm/doctype/training_evaluation_form/training_evaluation_form_dashboard.py | askmetoo/One-FM | c93ed63695a3e62ee8129bd9adf563116b749030 | [
"MIT"
] | 119 | 2020-08-17T16:27:45.000Z | 2022-03-28T12:42:56.000Z | one_fm/one_fm/doctype/training_evaluation_form/training_evaluation_form_dashboard.py | askmetoo/One-FM | c93ed63695a3e62ee8129bd9adf563116b749030 | [
"MIT"
] | 12 | 2021-05-16T13:35:40.000Z | 2022-02-21T12:41:04.000Z | from __future__ import unicode_literals
from frappe import _
def get_data():
return {
'fieldname': 'training_evaluation_form',
'transactions': [
{
'items': ['Training Evaluation Form Response']
},
]
}
| 17.846154 | 51 | 0.646552 | 22 | 232 | 6.409091 | 0.772727 | 0.255319 | 0.312057 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241379 | 232 | 12 | 52 | 19.333333 | 0.801136 | 0 | 0 | 0 | 0 | 0 | 0.377273 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | true | 0 | 0.181818 | 0.090909 | 0.363636 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2a261e7faa280fc9f859c3fda281f9cbf7e1c0ed | 603 | py | Python | hastyherald/agent/hhagent/meta.py | vesche/snippets | 7a9d598df99c26c4e0c63669f9f95a94eeed0d08 | [
"Unlicense"
] | 7 | 2016-01-03T19:42:07.000Z | 2018-10-23T14:03:12.000Z | hastyherald/agent/hhagent/meta.py | vesche/snippets | 7a9d598df99c26c4e0c63669f9f95a94eeed0d08 | [
"Unlicense"
] | null | null | null | hastyherald/agent/hhagent/meta.py | vesche/snippets | 7a9d598df99c26c4e0c63669f9f95a94eeed0d08 | [
"Unlicense"
] | 1 | 2018-03-09T08:52:01.000Z | 2018-03-09T08:52:01.000Z | """hhagent.meta"""
BANNER = '''
__ __ ____ _____ ______ __ __ __ __ ___ ____ ____ _ ___
| | | / |/ ___/| || | || | | / _]| \ / || | | \\
| | || o ( \_ | || | || | | / [_ | D )| o || | | \\
| _ || |\__ ||_| |_|| ~ || _ || _]| ... | 46.384615 | 78 | 0.228856 | 11 | 603 | 2.818182 | 0.727273 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009554 | 0.47927 | 603 | 13 | 79 | 46.384615 | 0.089172 | 0.019901 | 0 | 0 | 0 | 0.5 | 0.945392 | 0.071672 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2a39bd04af16a77e9b458ec933e8d92049153f27 | 425 | py | Python | pgquery/__init__.py | deknowny/pgquery | e8f9093f05fc0825886ba443cd648b5653040088 | [
"MIT"
] | 2 | 2021-10-01T21:14:23.000Z | 2022-01-29T19:51:55.000Z | pgquery/__init__.py | deknowny/genorm | e8f9093f05fc0825886ba443cd648b5653040088 | [
"MIT"
] | null | null | null | pgquery/__init__.py | deknowny/genorm | e8f9093f05fc0825886ba443cd648b5653040088 | [
"MIT"
] | null | null | null | __version__ = "0.1.0a0"
from pgquery.builder.actor import BuildingActor
from pgquery.builder.clauses.column import (
Integer,
References,
Serial,
Text,
Varchar,
)
from pgquery.builder.clauses.func import Func
from pgquery.builder.clauses.literal import Literal
from pgquery.builder.clauses.logical i... | 26.5625 | 51 | 0.788235 | 56 | 425 | 5.892857 | 0.464286 | 0.233333 | 0.327273 | 0.378788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010929 | 0.138824 | 425 | 15 | 52 | 28.333333 | 0.89071 | 0 | 0 | 0 | 0 | 0 | 0.016471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
2a3c678ca7b37c361fbb45baee31520af7704235 | 112 | py | Python | modules/2.79/bpy/types/ObjectSolverConstraint.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | modules/2.79/bpy/types/ObjectSolverConstraint.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | modules/2.79/bpy/types/ObjectSolverConstraint.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | class ObjectSolverConstraint:
camera = None
clip = None
object = None
use_active_clip = None
| 12.444444 | 29 | 0.660714 | 12 | 112 | 6 | 0.666667 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294643 | 112 | 8 | 30 | 14 | 0.911392 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 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 | 1 | 0 | 0 | 4 |
2a434e550f7c12fd8bd84bdc8c4d4f5b021278c7 | 327 | py | Python | pysteps/verification/__init__.py | leabeusch/pysteps | 5f162d4b1155e4cfd894c9635eed3f0e823adedd | [
"BSD-3-Clause"
] | null | null | null | pysteps/verification/__init__.py | leabeusch/pysteps | 5f162d4b1155e4cfd894c9635eed3f0e823adedd | [
"BSD-3-Clause"
] | null | null | null | pysteps/verification/__init__.py | leabeusch/pysteps | 5f162d4b1155e4cfd894c9635eed3f0e823adedd | [
"BSD-3-Clause"
] | null | null | null | # -- coding: utf-8 --
"""Methods for verification of deterministic, probabilistic and ensemble forecasts."""
from .interface import get_method
from .detcatscores import *
from .detcontscores import *
from .ensscores import *
from .plots import *
from .probscores import *
from .spatialscores import *
from .salscores im... | 27.25 | 86 | 0.764526 | 38 | 327 | 6.552632 | 0.631579 | 0.240964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003571 | 0.143731 | 327 | 11 | 87 | 29.727273 | 0.885714 | 0.308869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
2a6d9f61e73d8df3b9a745c4bdd586e3fe0af979 | 42 | py | Python | sheets/python/yaml-dump-without-compact-mode.py | zgmarx/cheatsheet | b29e43a55c5c0fae8763a855025d77a8f46e1208 | [
"MIT"
] | 1 | 2020-03-31T11:26:05.000Z | 2020-03-31T11:26:05.000Z | sheets/python/yaml-dump-without-compact-mode.py | zgmarx/cheatsheet | b29e43a55c5c0fae8763a855025d77a8f46e1208 | [
"MIT"
] | null | null | null | sheets/python/yaml-dump-without-compact-mode.py | zgmarx/cheatsheet | b29e43a55c5c0fae8763a855025d77a8f46e1208 | [
"MIT"
] | null | null | null |
yaml.dump(..., default_flow_style=False)
| 14 | 40 | 0.738095 | 6 | 42 | 4.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 42 | 2 | 41 | 21 | 0.74359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
aa49d0989b7347cde26b17cb422ced47a86146e1 | 165 | py | Python | app/models/phone_type.py | olivierpons/evalr | 7c76474ad41769804965a11550501321d7b1889b | [
"MIT"
] | null | null | null | app/models/phone_type.py | olivierpons/evalr | 7c76474ad41769804965a11550501321d7b1889b | [
"MIT"
] | null | null | null | app/models/phone_type.py | olivierpons/evalr | 7c76474ad41769804965a11550501321d7b1889b | [
"MIT"
] | null | null | null | from django.db import models
from app.models.base import BaseModel
class PhoneType(BaseModel):
name = models.CharField(max_length=200, blank=True, null=True)
| 20.625 | 66 | 0.775758 | 24 | 165 | 5.291667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020979 | 0.133333 | 165 | 7 | 67 | 23.571429 | 0.867133 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
aa6b3b1f1f6bc588f92d463ed7d5c0cfdeb40a79 | 233 | py | Python | CodeWars/8 Kyu/Generate user links.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | CodeWars/8 Kyu/Generate user links.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | CodeWars/8 Kyu/Generate user links.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | def generate_link(user):
user = ''.join(('%'+hex(ord(let)).upper()[-2:] if not (let.isalpha() or let.isdigit() or let == '_' or let == '.' or let == '/') else let) for let in user)
return 'http://www.codewars.com/users/'+user | 77.666667 | 159 | 0.592275 | 37 | 233 | 3.675676 | 0.648649 | 0.147059 | 0.102941 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005102 | 0.158798 | 233 | 3 | 160 | 77.666667 | 0.688776 | 0 | 0 | 0 | 1 | 0 | 0.145299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
aa85f29a4571ab733191e121620646482bf09e3a | 96 | py | Python | paintera_tools/curate/__init__.py | wolny/paintera_tools | e55b08b5154991873eaea7bf43448ce9da4ad6e7 | [
"MIT"
] | 1 | 2019-06-23T21:32:15.000Z | 2019-06-23T21:32:15.000Z | paintera_tools/curate/__init__.py | wolny/paintera_tools | e55b08b5154991873eaea7bf43448ce9da4ad6e7 | [
"MIT"
] | null | null | null | paintera_tools/curate/__init__.py | wolny/paintera_tools | e55b08b5154991873eaea7bf43448ce9da4ad6e7 | [
"MIT"
] | 1 | 2019-08-08T11:36:47.000Z | 2019-08-08T11:36:47.000Z | from .splitter import interactive_splitter, batch_splitter
from .postprocess import postprocess
| 32 | 58 | 0.875 | 11 | 96 | 7.454545 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 96 | 2 | 59 | 48 | 0.942529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
aa912151eb510ad9b366a0dc69e79ca67410b687 | 92 | py | Python | datary/requests/__init__.py | Datary/python-sdk | 2790a50e1ad262cbe3210665dc34f497625e923d | [
"MIT"
] | null | null | null | datary/requests/__init__.py | Datary/python-sdk | 2790a50e1ad262cbe3210665dc34f497625e923d | [
"MIT"
] | null | null | null | datary/requests/__init__.py | Datary/python-sdk | 2790a50e1ad262cbe3210665dc34f497625e923d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Datary Requests Module
"""
from .requests import DataryRequests
| 15.333333 | 36 | 0.673913 | 10 | 92 | 6.2 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 0.152174 | 92 | 5 | 37 | 18.4 | 0.782051 | 0.48913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
2ab5d83e96ecc91c1450a7c3270cb6d6153ce97c | 91 | py | Python | hapic/ext/pyramid/__init__.py | raphj/hapic | b169ee901005bbe535e27ec878a051c2c1226e43 | [
"MIT"
] | 20 | 2017-10-13T11:23:33.000Z | 2021-12-09T12:42:06.000Z | hapic/ext/pyramid/__init__.py | raphj/hapic | b169ee901005bbe535e27ec878a051c2c1226e43 | [
"MIT"
] | 130 | 2017-10-10T15:09:13.000Z | 2021-12-30T10:36:08.000Z | hapic/ext/pyramid/__init__.py | raphj/hapic | b169ee901005bbe535e27ec878a051c2c1226e43 | [
"MIT"
] | 7 | 2017-10-17T07:24:42.000Z | 2021-09-16T14:33:17.000Z | # -*- coding: utf-8 -*-
from hapic.ext.pyramid.context import PyramidContext # noqa: F401
| 30.333333 | 66 | 0.703297 | 12 | 91 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 0.142857 | 91 | 2 | 67 | 45.5 | 0.769231 | 0.351648 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
2af97c5cd11784e18d857f8842a259dc728a3fb1 | 162 | py | Python | web/servicecalls/siteservice_gets.py | vacoj/mbodjango | e9a6df563862c587e4cc2c2713ed7f8ea0a6e4e3 | [
"MIT"
] | 8 | 2015-10-27T12:38:54.000Z | 2018-02-23T03:03:24.000Z | web/servicecalls/siteservice_gets.py | vacoj/mbodjango | e9a6df563862c587e4cc2c2713ed7f8ea0a6e4e3 | [
"MIT"
] | 3 | 2015-10-28T22:23:58.000Z | 2016-01-13T04:05:04.000Z | web/servicecalls/siteservice_gets.py | vacoj/mbodjango | e9a6df563862c587e4cc2c2713ed7f8ea0a6e4e3 | [
"MIT"
] | 9 | 2015-09-28T17:32:17.000Z | 2018-02-01T00:01:04.000Z |
from helpers.mbosoap.SiteService import SiteServiceCalls
def GetSessionTypes():
sessiontypes = SiteServiceCalls().GetSessionTypes()
return sessiontypes
| 23.142857 | 56 | 0.802469 | 13 | 162 | 10 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12963 | 162 | 6 | 57 | 27 | 0.921986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
2d6f1376c326e99de84c8d2757528c2becc04be7 | 850 | py | Python | sourced/ml/core/extractors/__init__.py | r0mainK/ml-core | ac17828d58e817e771caf2b2c3de523d527874b8 | [
"Apache-2.0"
] | 13 | 2019-05-30T21:19:06.000Z | 2021-12-22T18:27:55.000Z | sourced/ml/core/extractors/__init__.py | r0mainK/ml-core | ac17828d58e817e771caf2b2c3de523d527874b8 | [
"Apache-2.0"
] | 23 | 2019-04-16T11:45:06.000Z | 2020-04-08T14:47:08.000Z | sourced/ml/core/extractors/__init__.py | r0mainK/ml-core | ac17828d58e817e771caf2b2c3de523d527874b8 | [
"Apache-2.0"
] | 16 | 2019-04-11T14:08:31.000Z | 2021-02-03T19:57:14.000Z | # flake8: noqa
from sourced.ml.core.extractors.helpers import __extractors__, get_names_from_kwargs, \
register_extractor, filter_kwargs, create_extractors_from_args
from sourced.ml.core.extractors.bags_extractor import Extractor, BagsExtractor, RoleIdsExtractor
from sourced.ml.core.extractors.identifiers import Id... | 65.384615 | 96 | 0.878824 | 102 | 850 | 7.147059 | 0.392157 | 0.150892 | 0.178326 | 0.233196 | 0.381344 | 0.085048 | 0 | 0 | 0 | 0 | 0 | 0.001256 | 0.063529 | 850 | 12 | 97 | 70.833333 | 0.914573 | 0.014118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.909091 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
2d77106bf97e6427fb58a99bd1f1430d0b47cccc | 3,965 | py | Python | test.py | MohammadForouhesh/Computational-Political-Science-Papers-Implementations | 403bc6123b4e6f4c30667aa135a5d5a588638209 | [
"MIT"
] | 1 | 2022-02-19T09:52:47.000Z | 2022-02-19T09:52:47.000Z | test.py | Faethe79/tracking-policy-agendas | 1bdc735f37d2d3bdce572fd719f1c7d307db008e | [
"MIT"
] | 5 | 2022-03-12T13:50:30.000Z | 2022-03-14T10:34:11.000Z | test.py | Faethe79/tracking-policy-agendas | 1bdc735f37d2d3bdce572fd719f1c7d307db008e | [
"MIT"
] | 1 | 2022-02-27T10:00:09.000Z | 2022-02-27T10:00:09.000Z | """
UnitTest Module
....................................................................................................
MIT License
Copyright (c) 2021-2023 AUT Iran, Mohammad H Forouhesh
Copyright (c) 2021-2022 MetoData.ai, Mohammad H Forouhesh
............................................................................ | 42.634409 | 121 | 0.650946 | 534 | 3,965 | 4.73221 | 0.215356 | 0.074792 | 0.075979 | 0.113178 | 0.789474 | 0.732489 | 0.732489 | 0.683419 | 0.621686 | 0.621686 | 0 | 0.007867 | 0.198487 | 3,965 | 92 | 122 | 43.097826 | 0.785714 | 0.105675 | 0 | 0.482759 | 0 | 0 | 0.259751 | 0 | 0 | 0 | 0 | 0 | 0.344828 | 1 | 0.275862 | false | 0 | 0.103448 | 0 | 0.448276 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2da751bbaeb1ca599f3c49fa84fbf41ce22a3752 | 221 | py | Python | python_actr/__init__.py | osaaso1/python_actr | f7cb03bcf78310f1a6b68e72d2cef28bd8f83aab | [
"MIT"
] | 3 | 2021-12-11T02:51:51.000Z | 2022-01-23T02:33:18.000Z | python_actr/__init__.py | osaaso1/python_actr | f7cb03bcf78310f1a6b68e72d2cef28bd8f83aab | [
"MIT"
] | 8 | 2022-01-17T22:51:27.000Z | 2022-03-15T00:44:20.000Z | python_actr/__init__.py | osaaso1/python_actr | f7cb03bcf78310f1a6b68e72d2cef28bd8f83aab | [
"MIT"
] | 8 | 2021-12-06T20:16:35.000Z | 2022-03-14T07:21:56.000Z | from .model import Model, log_everything
from .production import ProductionSystem
from .logger import log, finished
from .runner import run, run_with
from .display import display
from .actr import *
from . import version
| 27.625 | 40 | 0.809955 | 31 | 221 | 5.709677 | 0.483871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140271 | 221 | 7 | 41 | 31.571429 | 0.931579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
2da7ea1b35a9a5296e4f8e5e39ea1215a9abc18e | 88 | py | Python | pg_copy/apps.py | amalek215/django-pg-copy | cf910714dcf6a4fcb820074ebbd4b0f09425e388 | [
"BSD-3-Clause"
] | 16 | 2019-03-07T18:22:21.000Z | 2022-02-18T11:15:05.000Z | pg_copy/apps.py | amalek215/django-pg-copy | cf910714dcf6a4fcb820074ebbd4b0f09425e388 | [
"BSD-3-Clause"
] | 2 | 2018-04-17T22:58:23.000Z | 2020-06-26T12:01:14.000Z | pg_copy/apps.py | amalek215/django-pg-copy | cf910714dcf6a4fcb820074ebbd4b0f09425e388 | [
"BSD-3-Clause"
] | 6 | 2018-04-17T21:38:12.000Z | 2022-01-23T21:30:57.000Z | from django.apps import AppConfig
class PgCopyConfig(AppConfig):
name = "pg_copy"
| 14.666667 | 33 | 0.75 | 11 | 88 | 5.909091 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170455 | 88 | 5 | 34 | 17.6 | 0.890411 | 0 | 0 | 0 | 0 | 0 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
2dadd07d8916afa7e7e337da1b04cd245311ecf1 | 67 | py | Python | tests/source/input/import_wordtok_alias.py | tomaarsen/module_dependencies | 4b452bf9dcea28df4ed2e632f33eda627b2363f5 | [
"MIT"
] | 1 | 2022-01-22T17:11:20.000Z | 2022-01-22T17:11:20.000Z | tests/source/input/import_wordtok_alias.py | tomaarsen/module_dependencies | 4b452bf9dcea28df4ed2e632f33eda627b2363f5 | [
"MIT"
] | null | null | null | tests/source/input/import_wordtok_alias.py | tomaarsen/module_dependencies | 4b452bf9dcea28df4ed2e632f33eda627b2363f5 | [
"MIT"
] | null | null | null | from nltk import word_tokenize as word_tknr
tokenizer = word_tknr
| 16.75 | 43 | 0.835821 | 11 | 67 | 4.818182 | 0.727273 | 0.301887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 67 | 3 | 44 | 22.333333 | 0.929825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
2dc0518d3dff01ff0e6c49a1570148ab33823cca | 63 | py | Python | metaclass/Item.py | majianfei/practice | 345f63c2f4118617f0165700e079cb70a32eb4f8 | [
"MIT"
] | 1 | 2019-08-13T15:14:12.000Z | 2019-08-13T15:14:12.000Z | metaclass/Item.py | majianfei/practice | 345f63c2f4118617f0165700e079cb70a32eb4f8 | [
"MIT"
] | null | null | null | metaclass/Item.py | majianfei/practice | 345f63c2f4118617f0165700e079cb70a32eb4f8 | [
"MIT"
] | null | null | null |
class Item():
def func3(self):
print("func3") | 12.6 | 22 | 0.492063 | 7 | 63 | 4.428571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0.349206 | 63 | 5 | 22 | 12.6 | 0.707317 | 0 | 0 | 0 | 0 | 0 | 0.084746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
2dc9c4e05cc218ee7203cc131f414cb8013e506c | 2,614 | py | Python | tests/unit/domain/test_event_publishing.py | ets-labs/newsfeed | 9f59f94e1cd5f24d4b4121929050fc8b304173af | [
"BSD-3-Clause"
] | 10 | 2019-11-07T15:04:02.000Z | 2022-02-19T11:47:40.000Z | tests/unit/domain/test_event_publishing.py | ets-labs/newsfeed | 9f59f94e1cd5f24d4b4121929050fc8b304173af | [
"BSD-3-Clause"
] | 27 | 2019-10-31T16:31:27.000Z | 2020-01-14T15:21:29.000Z | tests/unit/domain/test_event_publishing.py | ets-labs/newsfeed | 9f59f94e1cd5f24d4b4121929050fc8b304173af | [
"BSD-3-Clause"
] | 10 | 2019-11-07T15:08:43.000Z | 2021-12-03T22:31:49.000Z | """Event publishing tests."""
async def test_event_publishing(container):
"""Check event publishing."""
newsfeed_id = '123'
event_dispatcher_service = container.event_dispatcher_service()
event_processor_service = container.event_processor_service()
await _process_event(
event_dispatcher... | 28.107527 | 95 | 0.671002 | 287 | 2,614 | 5.634146 | 0.114983 | 0.148423 | 0.136054 | 0.105133 | 0.820037 | 0.745826 | 0.745826 | 0.693878 | 0.668522 | 0.646877 | 0 | 0.012531 | 0.236802 | 2,614 | 92 | 96 | 28.413043 | 0.797995 | 0.008799 | 0 | 0.6 | 0 | 0 | 0.086664 | 0 | 0 | 0 | 0 | 0 | 0.08 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 4 |
9307bf35dd2fd7ee77bca328781097b1712f3450 | 23 | py | Python | cantools/version.py | sfpetersen/cantools | e6437431914183161c585889097f067f578843d4 | [
"MIT"
] | null | null | null | cantools/version.py | sfpetersen/cantools | e6437431914183161c585889097f067f578843d4 | [
"MIT"
] | null | null | null | cantools/version.py | sfpetersen/cantools | e6437431914183161c585889097f067f578843d4 | [
"MIT"
] | null | null | null | __version__ = '35.4.0'
| 11.5 | 22 | 0.652174 | 4 | 23 | 2.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.130435 | 23 | 1 | 23 | 23 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
930d5b47414d786e77b827dd3107e4cabd5aba96 | 207 | py | Python | weborquesta/music/views.py | miguel-rojorev/weborquesta | d0c98e1acea1346d521deb2ec15ae76d9c855546 | [
"MIT"
] | null | null | null | weborquesta/music/views.py | miguel-rojorev/weborquesta | d0c98e1acea1346d521deb2ec15ae76d9c855546 | [
"MIT"
] | null | null | null | weborquesta/music/views.py | miguel-rojorev/weborquesta | d0c98e1acea1346d521deb2ec15ae76d9c855546 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from .models import Music
# Create your views here.
def music(request):
audios = Music.objects.all()
return render(request, "music/music.html", {'audios':audios}) | 29.571429 | 65 | 0.7343 | 28 | 207 | 5.428571 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144928 | 207 | 7 | 65 | 29.571429 | 0.858757 | 0.111111 | 0 | 0 | 0 | 0 | 0.120219 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9362b63dc77c88ff9a66bbb49db7f78d13980c7d | 199 | py | Python | todo_api/serializers.py | Saknowman/django_setting_sample_project | 3f11103a57628190ed4ab480cba39d4474847040 | [
"MIT"
] | null | null | null | todo_api/serializers.py | Saknowman/django_setting_sample_project | 3f11103a57628190ed4ab480cba39d4474847040 | [
"MIT"
] | 7 | 2020-06-06T00:28:14.000Z | 2022-02-10T11:03:44.000Z | todo_api/serializers.py | Saknowman/django_setting_sample_project | 3f11103a57628190ed4ab480cba39d4474847040 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Task
class TaskSerializer(serializers.ModelSerializer):
class Meta:
model = Task
fields = ['title', 'status'] | 22.111111 | 51 | 0.678392 | 20 | 199 | 6.7 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246231 | 199 | 9 | 52 | 22.111111 | 0.893333 | 0 | 0 | 0 | 0 | 0 | 0.057292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
fac0cfd49abb091ebc16d9f6ab886e7b920930b4 | 191 | py | Python | third_party/phkit/phkit/chinese/pinyin.py | zh794390558/DeepSpeech | 34178893327ad359cb816e55d7c66a10244fa08a | [
"Apache-2.0"
] | null | null | null | third_party/phkit/phkit/chinese/pinyin.py | zh794390558/DeepSpeech | 34178893327ad359cb816e55d7c66a10244fa08a | [
"Apache-2.0"
] | null | null | null | third_party/phkit/phkit/chinese/pinyin.py | zh794390558/DeepSpeech | 34178893327ad359cb816e55d7c66a10244fa08a | [
"Apache-2.0"
] | null | null | null | #!usr/bin/env python
# -*- coding: utf-8 -*-
# author: kuangdd
# date: 2020/2/17
"""
#### pinyin
转为拼音的方法,汉字转拼音,分离声调。
拼音为字母+数字形式,例如pin1。
"""
from ..pinyinkit import text2pinyin, split_pinyin
| 15.916667 | 49 | 0.670157 | 26 | 191 | 4.884615 | 0.961538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060241 | 0.13089 | 191 | 11 | 50 | 17.363636 | 0.704819 | 0.65445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
faca5ef88bb7ecfa9f9dbf44a164934f02e900b4 | 93 | py | Python | opencolorio_config_aces/config/studio/generate/__init__.py | michdolan/OpenColorIO-Config-ACES | 5216c2a184e03529557993b7dc670d351aadddc7 | [
"BSD-3-Clause"
] | 52 | 2020-05-19T05:05:11.000Z | 2022-03-29T20:20:42.000Z | opencolorio_config_aces/config/studio/generate/__init__.py | michdolan/OpenColorIO-Config-ACES | 5216c2a184e03529557993b7dc670d351aadddc7 | [
"BSD-3-Clause"
] | 41 | 2020-05-17T03:18:24.000Z | 2022-03-31T12:02:35.000Z | opencolorio_config_aces/config/studio/generate/__init__.py | michdolan/OpenColorIO-Config-ACES | 5216c2a184e03529557993b7dc670d351aadddc7 | [
"BSD-3-Clause"
] | 12 | 2020-05-18T18:21:57.000Z | 2022-03-29T20:00:55.000Z | # SPDX-License-Identifier: BSD-3-Clause
# Copyright Contributors to the OpenColorIO Project.
| 31 | 52 | 0.806452 | 12 | 93 | 6.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.107527 | 93 | 2 | 53 | 46.5 | 0.891566 | 0.946237 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
faf1d9d0d06a202750017725065478e26d66dc7d | 4,602 | py | Python | antlir/tests/test_unionfind.py | SaurabhAgarwala/antlir | d9513d35d3eaa9d28717a40057a14d099c6ec775 | [
"MIT"
] | 28 | 2020-08-11T16:22:46.000Z | 2022-03-04T15:41:52.000Z | antlir/tests/test_unionfind.py | SaurabhAgarwala/antlir | d9513d35d3eaa9d28717a40057a14d099c6ec775 | [
"MIT"
] | 137 | 2020-08-11T16:07:49.000Z | 2022-02-27T10:59:05.000Z | antlir/tests/test_unionfind.py | SaurabhAgarwala/antlir | d9513d35d3eaa9d28717a40057a14d099c6ec775 | [
"MIT"
] | 10 | 2020-09-10T00:01:28.000Z | 2022-03-08T18:00:28.000Z | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import unittest
from ..unionfind import UnionFind
class TestUnionFind(unittest.TestCase):
def setUp(self):
... | 37.414634 | 81 | 0.671013 | 626 | 4,602 | 4.698083 | 0.153355 | 0.223393 | 0.238694 | 0.269296 | 0.748385 | 0.681741 | 0.661 | 0.602176 | 0.49813 | 0.464128 | 0 | 0.046974 | 0.213603 | 4,602 | 122 | 82 | 37.721311 | 0.765681 | 0.082356 | 0 | 0.494505 | 0 | 0 | 0.001903 | 0 | 0 | 0 | 0 | 0 | 0.450549 | 1 | 0.065934 | false | 0 | 0.021978 | 0 | 0.098901 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
87b209f3a6ca98164e4289ed16e73f9f7fcb2798 | 273 | py | Python | classes/Internal_Rate_Return.py | Fixed-Income-OS/fixedincome-py | 9dc1ef0faf2d26cfacc9d79eed0e2f12cdb5b1fa | [
"Apache-2.0"
] | 4 | 2019-11-25T04:22:59.000Z | 2021-05-18T04:57:16.000Z | classes/Internal_Rate_Return.py | Fixed-Income-OS/fixedincome-py | 9dc1ef0faf2d26cfacc9d79eed0e2f12cdb5b1fa | [
"Apache-2.0"
] | 5 | 2019-11-15T00:29:52.000Z | 2021-06-02T00:37:37.000Z | classes/Internal_Rate_Return.py | Fixed-Income-OS/fixedincome-py | 9dc1ef0faf2d26cfacc9d79eed0e2f12cdb5b1fa | [
"Apache-2.0"
] | 4 | 2020-03-03T20:06:48.000Z | 2022-02-19T02:01:56.000Z | import numpy as np
class InternalRateReturn:
def __init__(self, price, cash_flow):
self.price = price
self.cash_flow = cash_flow
def calculate(self):
self.cash_flow.insert(0, self.price)
return round(np.irr(self.cash_flow) * 100)
| 22.75 | 50 | 0.659341 | 38 | 273 | 4.5 | 0.5 | 0.233918 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019417 | 0.245421 | 273 | 11 | 51 | 24.818182 | 0.81068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
87cb51f6547fdf60661f8e9bb827a71aef585c0c | 290 | py | Python | src/models/composed_lstm.py | clin366/airpollutionnowcast | f9152583eebc4ad747c8d0510460334a5fb23ff9 | [
"MIT"
] | null | null | null | src/models/composed_lstm.py | clin366/airpollutionnowcast | f9152583eebc4ad747c8d0510460334a5fb23ff9 | [
"MIT"
] | 9 | 2020-03-24T18:12:45.000Z | 2022-02-10T00:36:57.000Z | src/models/composed_lstm.py | clin366/airpollutionnowcast | f9152583eebc4ad747c8d0510460334a5fb23ff9 | [
"MIT"
] | null | null | null | '''
Author: Chen Lin
Email: chen.lin@emory.edu
Date created: 2019/9/21
Python Version: 3.6
'''
import sys
sys.path.append('.')
from src.models.composed_model import ComposedModel
from src.models.lstm import LSTMModel
class ComposedLSTM(ComposedModel, LSTMModel):
pass
| 19.333333 | 51 | 0.72069 | 40 | 290 | 5.2 | 0.75 | 0.067308 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0375 | 0.172414 | 290 | 14 | 52 | 20.714286 | 0.829167 | 0.296552 | 0 | 0 | 0 | 0 | 0.005556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
e21109bbcd13b1d8abce2d567e66e0bbf467be0d | 115 | py | Python | b8/paths.py | aliafshar/b8 | 81cdb5c687299e7ecd7b0c8f75e54a19b392d0f2 | [
"Unlicense"
] | 4 | 2020-11-01T22:55:14.000Z | 2022-03-30T16:48:21.000Z | b8/paths.py | aliafshar/b8 | 81cdb5c687299e7ecd7b0c8f75e54a19b392d0f2 | [
"Unlicense"
] | 1 | 2020-11-01T22:49:32.000Z | 2020-11-01T23:02:36.000Z | b8/paths.py | aliafshar/b8 | 81cdb5c687299e7ecd7b0c8f75e54a19b392d0f2 | [
"Unlicense"
] | null | null | null | # (c) 2005-2020 Ali Afshar <aafshar@gmail.com>.
# MIT License. See LICENSE.
# vim: ft=python sw=2 ts=2 sts=2 tw=80
| 28.75 | 47 | 0.678261 | 23 | 115 | 3.391304 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134021 | 0.156522 | 115 | 3 | 48 | 38.333333 | 0.670103 | 0.93913 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
35534aa031751fe671ef7f7a6c91d73c584d08db | 4,782 | py | Python | core/admin/migrations/versions/546b04c886f0_.py | mboogert/Mailu | ebf6d84aabebe854824546df3ea64566107ed004 | [
"MIT"
] | 3,620 | 2016-10-30T14:13:46.000Z | 2022-03-31T18:40:15.000Z | core/admin/migrations/versions/546b04c886f0_.py | mboogert/Mailu | ebf6d84aabebe854824546df3ea64566107ed004 | [
"MIT"
] | 2,113 | 2016-10-27T10:36:52.000Z | 2022-03-31T16:38:26.000Z | core/admin/migrations/versions/546b04c886f0_.py | mboogert/Mailu | ebf6d84aabebe854824546df3ea64566107ed004 | [
"MIT"
] | 815 | 2016-10-29T12:02:00.000Z | 2022-03-31T08:44:28.000Z | """ Fix constraint naming by addint a name to all constraints
Revision ID: 546b04c886f0
Revises: 5aeb5811408e
Create Date: 2018-12-08 16:33:37.757634
"""
# revision identifiers, used by Alembic.
revision = '546b04c886f0'
down_revision = 'cd79ed46d9c2'
from alembic import op, context
import sqlalchemy as sa
def up... | 59.775 | 104 | 0.75366 | 641 | 4,782 | 5.234009 | 0.154446 | 0.100149 | 0.059016 | 0.085842 | 0.802683 | 0.766021 | 0.743964 | 0.639046 | 0.630104 | 0.630104 | 0 | 0.012488 | 0.129235 | 4,782 | 79 | 105 | 60.531646 | 0.793228 | 0.083438 | 0 | 0.310345 | 0 | 0 | 0.218307 | 0.073227 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0.017241 | 0.034483 | 0 | 0.086207 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 4 |
3566d74ed2d08a35c1f17560269150324ee95b0e | 86 | py | Python | binset/apps.py | wh8983298/GreaterWMS | 487e819fcf21a0dca1c74f5b44bc7221353ea3e2 | [
"Apache-2.0"
] | 1,063 | 2020-11-15T12:55:15.000Z | 2022-03-31T14:33:12.000Z | binset/apps.py | ashrafali46/GreaterWMS | 1aed14a8c26c8ac4571db5e6b07ab7e4fa3c7c72 | [
"Apache-2.0"
] | 96 | 2020-11-18T00:06:05.000Z | 2022-03-03T09:05:39.000Z | binset/apps.py | ashrafali46/GreaterWMS | 1aed14a8c26c8ac4571db5e6b07ab7e4fa3c7c72 | [
"Apache-2.0"
] | 349 | 2020-11-15T13:15:30.000Z | 2022-03-31T11:01:15.000Z | from django.apps import AppConfig
class BinsetConfig(AppConfig):
name = 'binset'
| 17.2 | 33 | 0.755814 | 10 | 86 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162791 | 86 | 4 | 34 | 21.5 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
358b15031a69d3752e5b10a1216da08bdf18876b | 103 | py | Python | src/audio_processor/__init__.py | Brian-Pho/RVST598_Speech_Emotion_Recognition | e31d2c948319f0f38515e509545b39f2e0ecac96 | [
"MIT"
] | 2 | 2019-10-25T14:59:16.000Z | 2019-11-22T13:15:28.000Z | src/audio_processor/__init__.py | Brian-Pho/RVST598_Speech-Emotion-Recognition | e31d2c948319f0f38515e509545b39f2e0ecac96 | [
"MIT"
] | null | null | null | src/audio_processor/__init__.py | Brian-Pho/RVST598_Speech-Emotion-Recognition | e31d2c948319f0f38515e509545b39f2e0ecac96 | [
"MIT"
] | null | null | null | """
This package processes audio data into a more usable format for machine learning
applications.
"""
| 20.6 | 80 | 0.776699 | 14 | 103 | 5.714286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15534 | 103 | 4 | 81 | 25.75 | 0.91954 | 0.912621 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
35928f3a83f68b0623531c902c54c5cfd75d99eb | 454 | py | Python | choria_discovery/discovery.py | optiz0r/py-choria-discovery | 3db3e017861479370d40904f0f8e8971faeba737 | [
"Apache-2.0"
] | null | null | null | choria_discovery/discovery.py | optiz0r/py-choria-discovery | 3db3e017861479370d40904f0f8e8971faeba737 | [
"Apache-2.0"
] | null | null | null | choria_discovery/discovery.py | optiz0r/py-choria-discovery | 3db3e017861479370d40904f0f8e8971faeba737 | [
"Apache-2.0"
] | null | null | null | import logging
from choria_external.base import ChoriaExternal
# Ensure the protocol messages are loaded and registered
import choria_discovery.protocol
class Discovery(ChoriaExternal):
""" Base class for External Discovery requests
"""
def discover(self):
""" Implement the node discovery actio... | 21.619048 | 58 | 0.69163 | 50 | 454 | 6.24 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248899 | 454 | 20 | 59 | 22.7 | 0.914956 | 0.409692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0.375 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
35a24a27a7b9b6c0a4d8b126617353c093939585 | 62 | py | Python | src/ralph/deployment/__init__.py | DoNnMyTh/ralph | 97b91639fa68965ad3fd9d0d2652a6545a2a5b72 | [
"Apache-2.0"
] | 1,668 | 2015-01-01T12:51:20.000Z | 2022-03-29T09:05:35.000Z | src/ralph/deployment/__init__.py | hq-git/ralph | e2448caf02d6e5abfd81da2cff92aefe0a534883 | [
"Apache-2.0"
] | 2,314 | 2015-01-02T13:26:26.000Z | 2022-03-29T04:06:03.000Z | src/ralph/deployment/__init__.py | hq-git/ralph | e2448caf02d6e5abfd81da2cff92aefe0a534883 | [
"Apache-2.0"
] | 534 | 2015-01-05T12:40:28.000Z | 2022-03-29T21:10:12.000Z | default_app_config = 'ralph.deployment.apps.DeploymentConfig'
| 31 | 61 | 0.854839 | 7 | 62 | 7.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048387 | 62 | 1 | 62 | 62 | 0.864407 | 0 | 0 | 0 | 0 | 0 | 0.612903 | 0.612903 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
35adeb92c268593776c6216a1b47db4dc988df5e | 378 | py | Python | src/libcask/error.py | ianpreston/cask | 9e1d9c38b5a9b8827547ed963b0018003abbb047 | [
"MIT"
] | 6 | 2016-01-23T23:24:24.000Z | 2022-03-06T04:19:01.000Z | src/libcask/error.py | ianpreston/cask | 9e1d9c38b5a9b8827547ed963b0018003abbb047 | [
"MIT"
] | null | null | null | src/libcask/error.py | ianpreston/cask | 9e1d9c38b5a9b8827547ed963b0018003abbb047 | [
"MIT"
] | null | null | null | class ContainerError(Exception):
pass
class AlreadyRunning(ContainerError):
pass
class NotRunning(ContainerError):
pass
class AlreadyExists(ContainerError):
pass
class AttributeInvalid(ContainerError):
pass
class NoSuchContainer(ContainerError):
pass
class NoSuchImage(ContainerError)... | 12.193548 | 39 | 0.751323 | 32 | 378 | 8.875 | 0.34375 | 0.221831 | 0.485915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 378 | 30 | 40 | 12.6 | 0.922078 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
35b6e519ab315d0ee6a9b9185230ec479fb83e6b | 1,504 | py | Python | apps/homepage/serializers.py | ShAlireza/gamein-backend | cd7db7a06cacb4398fb89d291e7fc796702157a2 | [
"MIT"
] | 5 | 2020-05-26T12:50:29.000Z | 2020-06-09T19:22:16.000Z | apps/homepage/serializers.py | ShAlireza/gamein-backend | cd7db7a06cacb4398fb89d291e7fc796702157a2 | [
"MIT"
] | 7 | 2021-03-30T13:28:52.000Z | 2022-01-13T02:45:23.000Z | apps/homepage/serializers.py | ShAlireza/gamein-backend | cd7db7a06cacb4398fb89d291e7fc796702157a2 | [
"MIT"
] | 1 | 2020-05-29T14:08:05.000Z | 2020-05-29T14:08:05.000Z | from drf_yasg.utils import swagger_serializer_method
from rest_framework import serializers
from .models import *
from rest_framework.serializers import ModelSerializer
class AboutSerializer(ModelSerializer):
class Meta:
model = About
fields = '__all__'
class StatisticsSerializer(ModelSerialize... | 18.120482 | 54 | 0.65625 | 132 | 1,504 | 7.075758 | 0.333333 | 0.278373 | 0.308351 | 0.372591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000919 | 0.276596 | 1,504 | 82 | 55 | 18.341463 | 0.857537 | 0 | 0 | 0.45283 | 0 | 0 | 0.055963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.075472 | 0 | 0.528302 | 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 | 1 | 0 | 0 | 4 |
35d18cab4f5990676a33217f63251faa5f3f2037 | 382 | py | Python | Application/remove_from_blacklist.py | soheyldaliraan/instagram_sub_bot_remover | 8ccf7134c79b8a9c9c09413321f526dd388c5609 | [
"MIT"
] | 27 | 2019-02-10T09:04:36.000Z | 2022-03-07T21:44:26.000Z | Application/remove_from_blacklist.py | soheyldaliraan/instagram_sub_bot_remover | 8ccf7134c79b8a9c9c09413321f526dd388c5609 | [
"MIT"
] | 1 | 2022-03-01T02:45:18.000Z | 2022-03-01T02:45:18.000Z | Application/remove_from_blacklist.py | soheyldaliraan/instagram_sub_bot_remover | 8ccf7134c79b8a9c9c09413321f526dd388c5609 | [
"MIT"
] | 5 | 2019-12-27T07:43:33.000Z | 2022-02-15T19:51:37.000Z | import os
import pandas as pd
import configuration
def remove_from_blacklist(pk):
if os.path.exists(configuration.blacklist_path):
black_dataset = pd.read_csv(configuration.blacklist_path)
black_dataset.drop(black_dataset[black_dataset['pk'] == pk].index, inplace=True)
black_dataset.to_... | 27.285714 | 88 | 0.748691 | 50 | 382 | 5.48 | 0.5 | 0.218978 | 0.284672 | 0.226277 | 0.277372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143979 | 382 | 13 | 89 | 29.384615 | 0.83792 | 0 | 0 | 0 | 0 | 0 | 0.031414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
ea3923e81a3fa7afd6634fb00836d13902e8813d | 171 | py | Python | serious_shop/items/apps.py | ImustAdmit/django-serious-shop | e2145f2315b4afdfe1fc35fb2b6e02adc0df33c5 | [
"MIT"
] | 1 | 2020-09-17T13:40:42.000Z | 2020-09-17T13:40:42.000Z | serious_shop/items/apps.py | ImustAdmit/django-serious-shop | e2145f2315b4afdfe1fc35fb2b6e02adc0df33c5 | [
"MIT"
] | null | null | null | serious_shop/items/apps.py | ImustAdmit/django-serious-shop | e2145f2315b4afdfe1fc35fb2b6e02adc0df33c5 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class ItemsConfig(AppConfig):
name = "items"
verbose_name = _("Items")
| 21.375 | 55 | 0.754386 | 21 | 171 | 5.952381 | 0.714286 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163743 | 171 | 7 | 56 | 24.428571 | 0.874126 | 0 | 0 | 0 | 0 | 0 | 0.05848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ea498d1934f7e64e034ea99a3852ff7fdab2b8dc | 191 | py | Python | docs/examples/compute/digitalocean/instantiate_api_v1.0.py | atsaki/libcloud | ae85479e835494e196e2f6e79aae9a475603d8ac | [
"Apache-2.0"
] | 3 | 2016-06-03T03:40:18.000Z | 2018-09-24T05:28:47.000Z | docs/examples/compute/digitalocean/instantiate_api_v1.0.py | atsaki/libcloud | ae85479e835494e196e2f6e79aae9a475603d8ac | [
"Apache-2.0"
] | 1 | 2015-10-26T21:29:56.000Z | 2015-10-27T17:29:20.000Z | docs/examples/compute/digitalocean/instantiate_api_v1.0.py | atsaki/libcloud | ae85479e835494e196e2f6e79aae9a475603d8ac | [
"Apache-2.0"
] | 3 | 2016-02-08T23:38:18.000Z | 2019-11-05T00:31:34.000Z | from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver
cls = get_driver(Provider.DIGITAL_OCEAN)
driver = cls('client id', 'api key', api_version='v1')
| 31.833333 | 54 | 0.795812 | 28 | 191 | 5.285714 | 0.642857 | 0.162162 | 0.256757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005814 | 0.099476 | 191 | 5 | 55 | 38.2 | 0.854651 | 0 | 0 | 0 | 0 | 0 | 0.094241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 4 |
ea74e5fbf7a46a012c2919a0ff73451f60eaa6a2 | 562 | py | Python | src/sage/rings/complex_field.py | UCD4IDS/sage | 43474c96d533fd396fe29fe0782d44dc7f5164f7 | [
"BSL-1.0"
] | 1,742 | 2015-01-04T07:06:13.000Z | 2022-03-30T11:32:52.000Z | src/sage/rings/complex_field.py | UCD4IDS/sage | 43474c96d533fd396fe29fe0782d44dc7f5164f7 | [
"BSL-1.0"
] | 66 | 2015-03-19T19:17:24.000Z | 2022-03-16T11:59:30.000Z | src/sage/rings/complex_field.py | UCD4IDS/sage | 43474c96d533fd396fe29fe0782d44dc7f5164f7 | [
"BSL-1.0"
] | 495 | 2015-01-10T10:23:18.000Z | 2022-03-24T22:06:11.000Z | r"""
Deprecated in favor of :mod:`sage.rings.complex_mpfr`
TESTS::
sage: from sage.rings.complex_field import ComplexField
doctest:warning
...
DeprecationWarning: the complex_field module is deprecated, please use sage.rings.complex_mpfr
See http://trac.sagemath.org/24483 for details.
sage: Co... | 31.222222 | 98 | 0.763345 | 77 | 562 | 5.480519 | 0.493506 | 0.106635 | 0.189573 | 0.189573 | 0.293839 | 0.293839 | 0.293839 | 0.293839 | 0.293839 | 0.293839 | 0 | 0.025157 | 0.151246 | 562 | 17 | 99 | 33.058824 | 0.859539 | 0.660142 | 0 | 0 | 0 | 0 | 0.404372 | 0.125683 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ea770b71bab0b926d4f77cb36e86c70b6b4b3dbc | 214 | py | Python | TargetNone.py | Bob-Z/RoRBot | d8b45e48bcebc3ed9905fa5ff05fd5e3509fd18f | [
"Apache-2.0"
] | null | null | null | TargetNone.py | Bob-Z/RoRBot | d8b45e48bcebc3ed9905fa5ff05fd5e3509fd18f | [
"Apache-2.0"
] | null | null | null | TargetNone.py | Bob-Z/RoRBot | d8b45e48bcebc3ed9905fa5ff05fd5e3509fd18f | [
"Apache-2.0"
] | null | null | null | class TargetNone:
def __init__(self):
pass
def run(self, position, rotation, speed_ms, rot_diff, target_speed_ms, go_up):
return 0.0, 0.0, 0.0
def reset(self):
self.__init__()
| 21.4 | 82 | 0.616822 | 32 | 214 | 3.71875 | 0.59375 | 0.084034 | 0.10084 | 0.10084 | 0.05042 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.271028 | 214 | 9 | 83 | 23.777778 | 0.724359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0.142857 | 0 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 4 |
ea7c1f7ee251dcd0d9748e2d0e10641305897adc | 173 | py | Python | tests/core/admin-module/test_admin_nodeInfo.py | happyuc-project/webu.py | 5a01124fc84d74df09a33d9dabe88b704cd5b6c6 | [
"MIT"
] | null | null | null | tests/core/admin-module/test_admin_nodeInfo.py | happyuc-project/webu.py | 5a01124fc84d74df09a33d9dabe88b704cd5b6c6 | [
"MIT"
] | null | null | null | tests/core/admin-module/test_admin_nodeInfo.py | happyuc-project/webu.py | 5a01124fc84d74df09a33d9dabe88b704cd5b6c6 | [
"MIT"
] | null | null | null | def test_admin_nodeInfo(webu, skip_if_testrpc):
skip_if_testrpc(webu)
node_info = webu.admin.nodeInfo
assert 'enode' in node_info
assert 'id' in node_info
| 21.625 | 47 | 0.734104 | 27 | 173 | 4.37037 | 0.518519 | 0.20339 | 0.220339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190751 | 173 | 7 | 48 | 24.714286 | 0.842857 | 0 | 0 | 0 | 0 | 0 | 0.040462 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ea8074848d6eefc73108f8591ed9efa5b23d5c40 | 17,682 | py | Python | src/models/transformer_model.py | flowersteam/spatio-temporal-language-transformers | a33a9bc4748586ef08f9768de2aafd76de71823c | [
"MIT"
] | 3 | 2021-11-26T18:04:53.000Z | 2022-01-02T05:28:04.000Z | src/models/transformer_model.py | flowersteam/spatio-temporal-language-transformers | a33a9bc4748586ef08f9768de2aafd76de71823c | [
"MIT"
] | null | null | null | src/models/transformer_model.py | flowersteam/spatio-temporal-language-transformers | a33a9bc4748586ef08f9768de2aafd76de71823c | [
"MIT"
] | null | null | null | """
This module implements the models used for the experiments.
"""
import math
import torch
import torch.nn as nn
from functools import reduce
from src.models.shared import Feedforward
### Helper fns
prod = lambda x, y: x * y
prod_reduce = lambda l: reduce(prod, l, 1)
### Helper modules
class PositionalEncoding(n... | 37.303797 | 97 | 0.621706 | 2,356 | 17,682 | 4.45034 | 0.098896 | 0.059132 | 0.041392 | 0.025751 | 0.767859 | 0.749452 | 0.731998 | 0.714258 | 0.685551 | 0.671149 | 0 | 0.012549 | 0.278928 | 17,682 | 474 | 98 | 37.303797 | 0.809804 | 0.233401 | 0 | 0.663265 | 0 | 0 | 0.002799 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034014 | false | 0 | 0.017007 | 0 | 0.088435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
ea82aa6e4246fdd22e64753ef51e6e4e18ee026c | 279 | py | Python | app/models/content.py | yogeshwaran01/Book-Store | 7b4caa37b4132d8e969798eface3fd56c9721395 | [
"MIT"
] | null | null | null | app/models/content.py | yogeshwaran01/Book-Store | 7b4caa37b4132d8e969798eface3fd56c9721395 | [
"MIT"
] | null | null | null | app/models/content.py | yogeshwaran01/Book-Store | 7b4caa37b4132d8e969798eface3fd56c9721395 | [
"MIT"
] | null | null | null | from app import database as db
class Note(db.Model): # type: ignore
id = db.Column(db.Integer, primary_key=True)
title = db.Column(db.Text())
info = db.Column(db.Text())
link = db.Column(db.Text())
def __repr__(self) -> str:
return f"{self.title}"
| 23.25 | 48 | 0.623656 | 43 | 279 | 3.930233 | 0.627907 | 0.189349 | 0.236686 | 0.248521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218638 | 279 | 11 | 49 | 25.363636 | 0.775229 | 0.043011 | 0 | 0 | 0 | 0 | 0.045283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 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 | 1 | 1 | 0 | 0 | 4 |
578fad38630cb3dc8fb9e479454fd2f2a02a0ad5 | 51 | py | Python | lr1 parser/test.py | arvin2079/java-lexer-with-python | 6d4b163bea139b647c3f8d3d1539eaf706602cc7 | [
"MIT"
] | null | null | null | lr1 parser/test.py | arvin2079/java-lexer-with-python | 6d4b163bea139b647c3f8d3d1539eaf706602cc7 | [
"MIT"
] | null | null | null | lr1 parser/test.py | arvin2079/java-lexer-with-python | 6d4b163bea139b647c3f8d3d1539eaf706602cc7 | [
"MIT"
] | null | null | null | l = ['a', '-', 'C', '----', 'S']
print(''.join(l)) | 17 | 32 | 0.27451 | 7 | 51 | 2 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156863 | 51 | 3 | 33 | 17 | 0.325581 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
579e9f32e6aa0f8ffd97b4d9575834e3f78e74ec | 174 | py | Python | client/launcher.py | MatejKafka/guess-the-song | 58bbefffd7a00b851932fac6c982128a1013c24d | [
"WTFPL"
] | null | null | null | client/launcher.py | MatejKafka/guess-the-song | 58bbefffd7a00b851932fac6c982128a1013c24d | [
"WTFPL"
] | null | null | null | client/launcher.py | MatejKafka/guess-the-song | 58bbefffd7a00b851932fac6c982128a1013c24d | [
"WTFPL"
] | null | null | null | # slight hack - pyinstaller does not allow main file
# as module, this file allows me to use module namespace
from src import __main__
if __name__ == "__main__":
__main__() | 34.8 | 57 | 0.758621 | 26 | 174 | 4.461538 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178161 | 174 | 5 | 58 | 34.8 | 0.811189 | 0.609195 | 0 | 0 | 0 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 4 |
57b99a9e33d5ca32803983d019b3516cd30fdc79 | 2,167 | py | Python | test_project/test_project/formtest/views.py | scott-w/view-helpers | 389fe3599e5b4e5da35f490a33895b220025b2a5 | [
"BSD-3-Clause"
] | 1 | 2015-12-10T17:52:50.000Z | 2015-12-10T17:52:50.000Z | test_project/test_project/formtest/views.py | scott-w/view-helpers | 389fe3599e5b4e5da35f490a33895b220025b2a5 | [
"BSD-3-Clause"
] | null | null | null | test_project/test_project/formtest/views.py | scott-w/view-helpers | 389fe3599e5b4e5da35f490a33895b220025b2a5 | [
"BSD-3-Clause"
] | null | null | null | from django.views.generic import View
from pebble_helpers.views.mixins.form import RedirectReverseMixin
class SuccessUrlView(RedirectReverseMixin, View):
"""View that has a Success Url
"""
success_url = 'testproject-success-plain'
class SuccessUrlArgView(RedirectReverseMixin, View):
"""View that ha... | 22.340206 | 74 | 0.635441 | 235 | 2,167 | 5.719149 | 0.2 | 0.160714 | 0.1875 | 0.214286 | 0.53497 | 0.485119 | 0.485119 | 0.339286 | 0.270833 | 0.16369 | 0 | 0.004954 | 0.25473 | 2,167 | 96 | 75 | 22.572917 | 0.827245 | 0.216428 | 0 | 0.457143 | 0 | 0 | 0.134905 | 0.132286 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0 | 0.057143 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
57ea3d03d3673d8433a77e85aa2a6d72179ed833 | 212 | py | Python | backend/document/domain/exceptions.py | linearcombination/InterleavedResourcesGenerator | 8c2f8ae30304eab5806e516c58158e6c3ddeaa2b | [
"MIT"
] | 1 | 2022-01-10T21:03:26.000Z | 2022-01-10T21:03:26.000Z | backend/document/domain/exceptions.py | linearcombination/InterleavedResourcesGenerator | 8c2f8ae30304eab5806e516c58158e6c3ddeaa2b | [
"MIT"
] | null | null | null | backend/document/domain/exceptions.py | linearcombination/InterleavedResourcesGenerator | 8c2f8ae30304eab5806e516c58158e6c3ddeaa2b | [
"MIT"
] | 1 | 2021-09-10T19:49:59.000Z | 2021-09-10T19:49:59.000Z | """This module provides custom domain exceptions."""
from typing import final
@final
class InvalidDocumentRequestException(Exception):
def __init__(self, message: str):
self.message: str = message
| 21.2 | 52 | 0.740566 | 23 | 212 | 6.652174 | 0.782609 | 0.143791 | 0.183007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169811 | 212 | 9 | 53 | 23.555556 | 0.869318 | 0.216981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
57fcecc2ce3e54b39114eb5ff7eef5166ecf89c3 | 43 | py | Python | Scripts/rm_aspect.py | 9bstudios/mecco_renderMonkey | 6a88a65ec4f9bd76150927df07fad7c85e3a87f4 | [
"MIT"
] | 1 | 2021-04-19T23:43:56.000Z | 2021-04-19T23:43:56.000Z | Scripts/rm_aspect.py | adamohern/mecco_renderMonkey | 6a88a65ec4f9bd76150927df07fad7c85e3a87f4 | [
"MIT"
] | null | null | null | Scripts/rm_aspect.py | adamohern/mecco_renderMonkey | 6a88a65ec4f9bd76150927df07fad7c85e3a87f4 | [
"MIT"
] | 2 | 2019-10-21T15:21:44.000Z | 2021-09-23T15:59:43.000Z | # python
args = lx.args()
lx.out(args[0]) | 8.6 | 16 | 0.604651 | 8 | 43 | 3.25 | 0.625 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.162791 | 43 | 5 | 17 | 8.6 | 0.694444 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 4 |
17c83c2e236a9921f97986d8951d93cf4e3e9ff1 | 779 | py | Python | 03-design-section/designable_web/designable_web/views.py | g2gcio/course-demo | b0d00a6ac7a6a6a17af963cee67cf13dc5941e95 | [
"MIT"
] | 276 | 2016-04-04T20:57:36.000Z | 2022-03-12T02:42:46.000Z | 03-design-section/designable_web/designable_web/views.py | g2gcio/course-demo | b0d00a6ac7a6a6a17af963cee67cf13dc5941e95 | [
"MIT"
] | 37 | 2016-10-13T12:04:27.000Z | 2020-11-22T10:36:53.000Z | 03-design-section/designable_web/designable_web/views.py | g2gcio/course-demo | b0d00a6ac7a6a6a17af963cee67cf13dc5941e95 | [
"MIT"
] | 163 | 2016-10-03T02:10:00.000Z | 2022-03-25T03:43:01.000Z | from pyramid.view import view_config
import designable_web.utils
@view_config(route_name='index', renderer='templates/index.pt')
def index(_):
return extend_model({'project': 'designable_web'})
@view_config(route_name='box', renderer='templates/box_model.pt')
def box_model(_):
return extend_model({})
@vie... | 23.606061 | 71 | 0.748395 | 104 | 779 | 5.269231 | 0.259615 | 0.109489 | 0.136861 | 0.173358 | 0.19708 | 0.19708 | 0.19708 | 0 | 0 | 0 | 0 | 0 | 0.107831 | 779 | 32 | 72 | 24.34375 | 0.788489 | 0 | 0 | 0.2 | 0 | 0 | 0.207959 | 0.056483 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0.25 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
17de6fa86f76256b240f0ebb381df43c9d3066fd | 107 | py | Python | controller/LoadCraft/apps/utils_mq_listener/apps.py | antondmtvch/yah2j | 3ed2e82a2c72b93ad1f11905ff37b79c386b0a58 | [
"MIT"
] | 4 | 2019-12-04T10:39:09.000Z | 2020-02-18T06:57:05.000Z | controller/LoadCraft/apps/utils_mq_listener/apps.py | antondmtvch/yah2j | 3ed2e82a2c72b93ad1f11905ff37b79c386b0a58 | [
"MIT"
] | 37 | 2019-12-18T13:12:50.000Z | 2022-02-10T10:52:37.000Z | controller/LoadCraft/apps/utils_mq_listener/apps.py | antondmtvch/yah2j | 3ed2e82a2c72b93ad1f11905ff37b79c386b0a58 | [
"MIT"
] | 5 | 2019-12-06T10:55:56.000Z | 2020-06-01T19:32:32.000Z | from django.apps import AppConfig
class UtilsMqListenerConfig(AppConfig):
name = 'utils_mq_listener'
| 17.833333 | 39 | 0.794393 | 12 | 107 | 6.916667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140187 | 107 | 5 | 40 | 21.4 | 0.902174 | 0 | 0 | 0 | 0 | 0 | 0.158879 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
17e0d16c450ac6b9ea1068936422fbddc9f95db2 | 92 | py | Python | presalytics/lib/plugins/__init__.py | presalytics/python-client | 5d80b78562126feeeb49af4738e2c1aed12dce3a | [
"MIT"
] | 4 | 2020-02-21T16:30:46.000Z | 2021-01-12T12:22:03.000Z | presalytics/lib/plugins/__init__.py | presalytics/python-client | 5d80b78562126feeeb49af4738e2c1aed12dce3a | [
"MIT"
] | 4 | 2019-12-28T19:30:08.000Z | 2020-03-31T19:27:45.000Z | presalytics/lib/plugins/__init__.py | presalytics/python-client | 5d80b78562126feeeb49af4738e2c1aed12dce3a | [
"MIT"
] | null | null | null | """
Library folder for plugins configured from `presalytics.story.outline.Plugin` class
"""
| 23 | 83 | 0.771739 | 11 | 92 | 6.454545 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 92 | 3 | 84 | 30.666667 | 0.865854 | 0.902174 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
aa02d1114f383df02d21751cb0b4236b1bd6765f | 5,026 | py | Python | scripts/us_bjs/nps/import_data.py | padma-g/data | b65e4e04a759ecc5b0b4df67e8cc290b0ddcadff | [
"Apache-2.0"
] | 1 | 2021-01-01T05:27:56.000Z | 2021-01-01T05:27:56.000Z | scripts/us_bjs/nps/import_data.py | padma-g/data | b65e4e04a759ecc5b0b4df67e8cc290b0ddcadff | [
"Apache-2.0"
] | null | null | null | scripts/us_bjs/nps/import_data.py | padma-g/data | b65e4e04a759ecc5b0b4df67e8cc290b0ddcadff | [
"Apache-2.0"
] | 1 | 2021-01-01T05:27:58.000Z | 2021-01-01T05:27:58.000Z | import pandas as pd
from preprocess_data import preprocess_df
from nps_statvar_writer import write_sv
from absl import flags
from absl import app
FLAGS = flags.FLAGS
flags.DEFINE_string('input_file',
'NPS_1978-2018_Data.tsv',
'file path to tsv file with import data',
... | 50.26 | 157 | 0.767608 | 404 | 5,026 | 9.056931 | 0.316832 | 0.244876 | 0.176551 | 0.163979 | 0.39519 | 0.150314 | 0.150314 | 0.098934 | 0.098934 | 0.036622 | 0 | 0.003831 | 0.169121 | 5,026 | 99 | 158 | 50.767677 | 0.872366 | 0 | 0 | 0.136364 | 0 | 0 | 0.660764 | 0.596697 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034091 | false | 0 | 0.068182 | 0 | 0.102273 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
aa36a5cc8745de8f060a520ebe1650d3bd2afe80 | 580 | py | Python | test_importing/taskflow_import_dag2.py | csprl-nowigence/airflow | f0c3b56ba13de95299ff8193b2d45275183ea575 | [
"Apache-2.0"
] | null | null | null | test_importing/taskflow_import_dag2.py | csprl-nowigence/airflow | f0c3b56ba13de95299ff8193b2d45275183ea575 | [
"Apache-2.0"
] | null | null | null | test_importing/taskflow_import_dag2.py | csprl-nowigence/airflow | f0c3b56ba13de95299ff8193b2d45275183ea575 | [
"Apache-2.0"
] | null | null | null |
import pendulum
from airflow.decorators import dag, task
import test_importing.mylib
@dag(
default_args={
'owner': 'csprl',
},
schedule_interval=None,
start_date=pendulum.datetime(2022, 1, 1, tz='UTC'),
catchup=False,
tags=['debugging', 'learning', 'troubleshooting'],
)
def import_wi... | 20 | 55 | 0.667241 | 69 | 580 | 5.391304 | 0.57971 | 0.174731 | 0.241935 | 0.185484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.206897 | 580 | 28 | 56 | 20.714286 | 0.786957 | 0 | 0 | 0 | 0 | 0 | 0.07772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.428571 | 0 | 0.52381 | 0.142857 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
aa38ea99c20ca8b73b73e9d9e5b550e2a0eb6143 | 225 | py | Python | binance_utils/connection.py | victorvalentee/python-binance-tick-data | 5cd1c37ee7dbe93c398e3f9dc2eed2af198cc28e | [
"MIT"
] | null | null | null | binance_utils/connection.py | victorvalentee/python-binance-tick-data | 5cd1c37ee7dbe93c398e3f9dc2eed2af198cc28e | [
"MIT"
] | null | null | null | binance_utils/connection.py | victorvalentee/python-binance-tick-data | 5cd1c37ee7dbe93c398e3f9dc2eed2af198cc28e | [
"MIT"
] | null | null | null | import binance
from config import BINANCE_API_KEY, BINANCE_API_SECRET
async def connect():
binance_client = binance.Client(BINANCE_API_KEY, BINANCE_API_SECRET)
await binance_client.load()
return binance_client
| 22.5 | 72 | 0.8 | 31 | 225 | 5.451613 | 0.451613 | 0.236686 | 0.153846 | 0.236686 | 0.343195 | 0.343195 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146667 | 225 | 9 | 73 | 25 | 0.880208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
350d2442f3be28cf555f5223b8b68675f3b34327 | 175 | py | Python | rl2048player/__init__.py | aar015/rl-2048-player | 91c67f5d9bf3e4e1ee7ef3c204ff356b449827d8 | [
"MIT"
] | null | null | null | rl2048player/__init__.py | aar015/rl-2048-player | 91c67f5d9bf3e4e1ee7ef3c204ff356b449827d8 | [
"MIT"
] | null | null | null | rl2048player/__init__.py | aar015/rl-2048-player | 91c67f5d9bf3e4e1ee7ef3c204ff356b449827d8 | [
"MIT"
] | null | null | null | '''Package containing all code related to learning algorithms'''
from .agents import QAgent, TD0Agent, SARSAAgent
from .masks import Mask_rxcx4
from .examples import example1
| 35 | 64 | 0.811429 | 23 | 175 | 6.130435 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.125714 | 175 | 4 | 65 | 43.75 | 0.901961 | 0.331429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
351b2d5a1a71bc6f162c992f89bc5da245a2c424 | 100 | py | Python | mdm_inventory/users/serializers/__init__.py | TeamWalls/mdm-backend-django | 4e23f9abc8531eb786d5e6cf958c9ffa8acd6b1d | [
"MIT"
] | null | null | null | mdm_inventory/users/serializers/__init__.py | TeamWalls/mdm-backend-django | 4e23f9abc8531eb786d5e6cf958c9ffa8acd6b1d | [
"MIT"
] | null | null | null | mdm_inventory/users/serializers/__init__.py | TeamWalls/mdm-backend-django | 4e23f9abc8531eb786d5e6cf958c9ffa8acd6b1d | [
"MIT"
] | null | null | null | from .users import (
UserCreateSerializer,
UserUpdateSerializer,
UserDisableSerializer
) | 20 | 25 | 0.76 | 6 | 100 | 12.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19 | 100 | 5 | 26 | 20 | 0.938272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
351f8d0603b8ae7a9a7bb593a8f8d4e78d921ca4 | 22 | py | Python | plaid/version.py | cwatsonplaid/plaid-python | 118200484ca6f24d4dbed4cf00e46f5b4d20f914 | [
"MIT"
] | null | null | null | plaid/version.py | cwatsonplaid/plaid-python | 118200484ca6f24d4dbed4cf00e46f5b4d20f914 | [
"MIT"
] | null | null | null | plaid/version.py | cwatsonplaid/plaid-python | 118200484ca6f24d4dbed4cf00e46f5b4d20f914 | [
"MIT"
] | null | null | null | __version__ = '7.3.0'
| 11 | 21 | 0.636364 | 4 | 22 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0.136364 | 22 | 1 | 22 | 22 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3532d44591878b86460925f680f44872786b8aa6 | 61 | py | Python | sequin/__init__.py | josefdlange/sequin | 496099949444602e5ed988a8d9aed0bf3dc47dd2 | [
"MIT"
] | null | null | null | sequin/__init__.py | josefdlange/sequin | 496099949444602e5ed988a8d9aed0bf3dc47dd2 | [
"MIT"
] | null | null | null | sequin/__init__.py | josefdlange/sequin | 496099949444602e5ed988a8d9aed0bf3dc47dd2 | [
"MIT"
] | null | null | null | from base import SequinEntity, SequinEvent, register_database | 61 | 61 | 0.885246 | 7 | 61 | 7.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081967 | 61 | 1 | 61 | 61 | 0.946429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3533010fb748fc7b5f8658024873ea797cbeb4f1 | 20,819 | py | Python | contest/weekly/229/max_score/py/greedy.py | phunc20/leetcode | 4581f39be565593ad0f5718dd4b0e1c34c209bf3 | [
"MIT"
] | null | null | null | contest/weekly/229/max_score/py/greedy.py | phunc20/leetcode | 4581f39be565593ad0f5718dd4b0e1c34c209bf3 | [
"MIT"
] | null | null | null | contest/weekly/229/max_score/py/greedy.py | phunc20/leetcode | 4581f39be565593ad0f5718dd4b0e1c34c209bf3 | [
"MIT"
] | null | null | null | #class Solution:
# def maximumScore(self, nums: List[int], multipliers: List[int]) -> int:
def maximumScore(nums, multipliers):
"""
Greedy cannot give the best solution.
"""
from random import randomint
def random_pick(H, T):
k = randomint(0,1)
if k % 2:
return H, 0
... | 408.215686 | 15,353 | 0.699073 | 4,941 | 20,819 | 2.943534 | 0.211091 | 0.005294 | 0.007426 | 0.004125 | 0.02324 | 0.015402 | 0.015402 | 0.013339 | 0.013339 | 0.013339 | 0 | 0.676349 | 0.02272 | 20,819 | 50 | 15,354 | 416.38 | 0.038484 | 0.010615 | 0 | 0.230769 | 0 | 0.076923 | 0.012974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.025641 | 0 | 0.128205 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3538b3abe57630da9f9d1b056bf354c3392e9ba5 | 346 | py | Python | pages/admin.py | connorpekovic/djangox | f3790abe3981a82ee6fd3ac134ce87338da4dd94 | [
"MIT"
] | null | null | null | pages/admin.py | connorpekovic/djangox | f3790abe3981a82ee6fd3ac134ce87338da4dd94 | [
"MIT"
] | 5 | 2021-04-08T20:25:22.000Z | 2021-10-03T21:19:50.000Z | pages/admin.py | connorpekovic/djangox | f3790abe3981a82ee6fd3ac134ce87338da4dd94 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Response
# Description: Register your models here. If you want the model to appear in
# the admin screens, you must include it here with these 2 lines of code.
#
# Improvements: Add inline detail.
class ResponceAdmin(admin.ModelAdmin):
pass
admin.site.registe... | 28.833333 | 77 | 0.780347 | 50 | 346 | 5.4 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003436 | 0.15896 | 346 | 12 | 78 | 28.833333 | 0.924399 | 0.520231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
35425877797818acfc9446104f1f4fbff6407793 | 57 | py | Python | gc-ai-notebook-tutorials/src/third_party/python-path-specification/setup.py | kalona/training-data-analyst | fd619ea2c63519463b759393e818078c5a60df15 | [
"Apache-2.0"
] | 11 | 2020-05-19T09:52:35.000Z | 2022-02-25T10:39:56.000Z | gc-ai-notebook-tutorials/src/third_party/python-path-specification/setup.py | kalona/training-data-analyst | fd619ea2c63519463b759393e818078c5a60df15 | [
"Apache-2.0"
] | null | null | null | gc-ai-notebook-tutorials/src/third_party/python-path-specification/setup.py | kalona/training-data-analyst | fd619ea2c63519463b759393e818078c5a60df15 | [
"Apache-2.0"
] | 1 | 2021-07-16T22:42:55.000Z | 2021-07-16T22:42:55.000Z | # encoding: utf-8
from setuptools import setup
setup()
| 9.5 | 28 | 0.736842 | 8 | 57 | 5.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.175439 | 57 | 5 | 29 | 11.4 | 0.87234 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 4 |
354457b01115de740c4d7d5bab8b6817fa17ec98 | 46 | py | Python | src/heatspreader/shell/__init__.py | acticloud/heat-spreader | 89d62f0ba4fe62309029258ff75a66ea6d803e39 | [
"MIT"
] | null | null | null | src/heatspreader/shell/__init__.py | acticloud/heat-spreader | 89d62f0ba4fe62309029258ff75a66ea6d803e39 | [
"MIT"
] | null | null | null | src/heatspreader/shell/__init__.py | acticloud/heat-spreader | 89d62f0ba4fe62309029258ff75a66ea6d803e39 | [
"MIT"
] | null | null | null | from .shell import Shell
__all__ = ["Shell"]
| 11.5 | 24 | 0.695652 | 6 | 46 | 4.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 46 | 3 | 25 | 15.333333 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
3548cd4ec5cc76217fad382dce629c54f556fef2 | 110 | py | Python | aviation/__init__.py | xsvStudios/xH-Cogs | ff207561c73e12631028a967786a1c5e68258996 | [
"MIT"
] | 1 | 2020-07-26T18:28:11.000Z | 2020-07-26T18:28:11.000Z | aviation/__init__.py | xsvStudios/xsvCogs | ff207561c73e12631028a967786a1c5e68258996 | [
"MIT"
] | null | null | null | aviation/__init__.py | xsvStudios/xsvCogs | ff207561c73e12631028a967786a1c5e68258996 | [
"MIT"
] | null | null | null | from .aviation import Aviation
# Setup file to read in the cog
def setup(bot):
bot.add_cog(Aviation(bot)) | 22 | 31 | 0.736364 | 19 | 110 | 4.210526 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172727 | 110 | 5 | 32 | 22 | 0.879121 | 0.263636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
104be773bfee5b3beaa21261e832886eab88ebd2 | 1,337 | py | Python | src/jk_argparsing/textmodel/TBlock.py | jkpubsrc/python-module-jk-argsparsing | 9ef4b907c67fd1df5bd8c378df46ba527ebc2a83 | [
"Apache-2.0"
] | null | null | null | src/jk_argparsing/textmodel/TBlock.py | jkpubsrc/python-module-jk-argsparsing | 9ef4b907c67fd1df5bd8c378df46ba527ebc2a83 | [
"Apache-2.0"
] | null | null | null | src/jk_argparsing/textmodel/TBlock.py | jkpubsrc/python-module-jk-argsparsing | 9ef4b907c67fd1df5bd8c378df46ba527ebc2a83 | [
"Apache-2.0"
] | null | null | null |
class TBlock(object):
################################################################################################################################
## Constructor
################################################################################################################################
#
# Construc... | 27.285714 | 129 | 0.137622 | 32 | 1,337 | 5.5 | 0.5625 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070307 | 1,337 | 48 | 130 | 27.854167 | 0.141593 | 0.059088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
529cc9eb78ab2fd12455f4d5aba851c68761912e | 330 | py | Python | rex/exploit/__init__.py | tiedaoxiaotubie/rex | 049bbce3ab2717cbb4d2f0fc10fe8c0433b39c1d | [
"BSD-2-Clause"
] | 1 | 2021-01-22T11:25:40.000Z | 2021-01-22T11:25:40.000Z | rex/exploit/__init__.py | tiedaoxiaotubie/rex | 049bbce3ab2717cbb4d2f0fc10fe8c0433b39c1d | [
"BSD-2-Clause"
] | null | null | null | rex/exploit/__init__.py | tiedaoxiaotubie/rex | 049bbce3ab2717cbb4d2f0fc10fe8c0433b39c1d | [
"BSD-2-Clause"
] | 1 | 2018-07-17T03:00:20.000Z | 2018-07-17T03:00:20.000Z | from .exceptions import CannotExploit, CannotExplore, NoSuchShellcode
from .shellcodes import Shellcodes
from .shellcode_factory import ShellcodeFactory
from .exploit import Exploit, ExploitException
from .exploit_factory import ExploitFactory
from .cgc_exploit_factory import CGCExploitFactory
from .techniques import T... | 41.25 | 69 | 0.875758 | 35 | 330 | 8.142857 | 0.457143 | 0.136842 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093939 | 330 | 7 | 70 | 47.142857 | 0.953177 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
52f803bd080fe46af55734b645fdc85f40d74ecf | 322 | py | Python | v3/Libraries/builtin/statement/pass.py | TheShellLand/python | a35e9b32bec3a3ff03d6f0f4c2c2cc891180e516 | [
"MIT"
] | null | null | null | v3/Libraries/builtin/statement/pass.py | TheShellLand/python | a35e9b32bec3a3ff03d6f0f4c2c2cc891180e516 | [
"MIT"
] | 1 | 2021-06-01T22:50:19.000Z | 2021-06-01T22:50:19.000Z | v3/Libraries/builtin/statement/pass.py | TheShellLand/python | a35e9b32bec3a3ff03d6f0f4c2c2cc891180e516 | [
"MIT"
] | null | null | null | #!/usr/bin/python
for letter in 'Python':
if letter == 'h':
pass
print 'This is pass block'
print 'Current Letter :', letter
print "Good bye!"
# Current Letter : P
# Current Letter : y
# Current Letter : t
# This is pass block
# Current Letter : h
# Current Letter : o
# Current Letter : n
# Good by... | 17.888889 | 35 | 0.63354 | 47 | 322 | 4.340426 | 0.446809 | 0.446078 | 0.098039 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251553 | 322 | 18 | 36 | 17.888889 | 0.846473 | 0.493789 | 0 | 0 | 0 | 0 | 0.322581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.333333 | 0 | null | null | 0.5 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 4 |
5e21483b927b28fbab71b745198ed9ca86059d00 | 21 | py | Python | vttformatter/__init__.py | georgiewellock/VTT_formatter | 9d97fb313c0c7977c224c65551d154d893fed2d8 | [
"MIT"
] | 2 | 2019-07-10T22:42:02.000Z | 2021-03-18T02:09:51.000Z | vttformatter/__init__.py | georgiewellock/VTT_formatter | 9d97fb313c0c7977c224c65551d154d893fed2d8 | [
"MIT"
] | null | null | null | vttformatter/__init__.py | georgiewellock/VTT_formatter | 9d97fb313c0c7977c224c65551d154d893fed2d8 | [
"MIT"
] | null | null | null | __version__ = '2.11'
| 10.5 | 20 | 0.666667 | 3 | 21 | 3.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0.142857 | 21 | 1 | 21 | 21 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5e220f2439c5fd361155faa613d1d4b2969404cf | 225 | py | Python | clubbi_utils/publisher.py | dev-clubbi/clubbi_utils | 3a3622374daf0927e6b8aedb58266e8792426880 | [
"MIT"
] | null | null | null | clubbi_utils/publisher.py | dev-clubbi/clubbi_utils | 3a3622374daf0927e6b8aedb58266e8792426880 | [
"MIT"
] | 34 | 2021-11-23T14:10:52.000Z | 2022-03-30T22:46:24.000Z | clubbi_utils/publisher.py | dev-clubbi/clubbi_utils | 3a3622374daf0927e6b8aedb58266e8792426880 | [
"MIT"
] | null | null | null | from asyncio import Protocol
from typing import Any, Optional, Dict
class Publisher(Protocol):
async def publish(self, message: Any, attributes: Optional[Dict[str, str]] = None) -> None:
"""Protocol function"""
| 28.125 | 95 | 0.706667 | 28 | 225 | 5.678571 | 0.678571 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177778 | 225 | 7 | 96 | 32.142857 | 0.859459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
eaabd7127a0ffec1afb345fb1cf84a14696e0d35 | 93 | py | Python | apps/documento/apps.py | diegocostacmp/gestao_rh | 5fc6333aa1937ecbd05528ca01f4b9cb5f5eb895 | [
"Linux-OpenIB"
] | null | null | null | apps/documento/apps.py | diegocostacmp/gestao_rh | 5fc6333aa1937ecbd05528ca01f4b9cb5f5eb895 | [
"Linux-OpenIB"
] | 6 | 2020-02-08T21:28:12.000Z | 2022-03-12T00:15:11.000Z | apps/documento/apps.py | diegocostacmp/gestao_rh | 5fc6333aa1937ecbd05528ca01f4b9cb5f5eb895 | [
"Linux-OpenIB"
] | null | null | null | from django.apps import AppConfig
class DocumentoConfig(AppConfig):
name = "documento"
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
eaaf9181ab5fdb6778c4f31963c93427b3e8ad32 | 350 | py | Python | trident/loggers/__init__.py | cronin4392/trident | 1c1eb01bcde861496ce83e265ff071fc9bcb9db2 | [
"MIT"
] | 68 | 2020-11-13T06:40:52.000Z | 2022-03-28T12:40:59.000Z | trident/loggers/__init__.py | cronin4392/trident | 1c1eb01bcde861496ce83e265ff071fc9bcb9db2 | [
"MIT"
] | 1 | 2021-08-15T17:06:35.000Z | 2021-11-10T04:42:52.000Z | trident/loggers/__init__.py | cronin4392/trident | 1c1eb01bcde861496ce83e265ff071fc9bcb9db2 | [
"MIT"
] | 11 | 2020-11-24T13:14:16.000Z | 2021-12-26T07:41:29.000Z | """trident models"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from trident.backend.common import get_backend
if get_backend()=='pytorch':
from . import pytorch_tensorboard as tensorboard
elif get_backend()=='tensorflow':
from . import tensorf... | 31.818182 | 55 | 0.808571 | 43 | 350 | 6.139535 | 0.418605 | 0.113636 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122857 | 350 | 11 | 55 | 31.818182 | 0.859935 | 0.04 | 0 | 0 | 0 | 0 | 0.05136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0.125 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
eaf799c893aca0561a899b7414d4f9b46d90a877 | 274 | py | Python | savu/plugins/savers/base_saver_tools.py | elainehoml/Savu | e4772704606f71d6803d832084e10faa585e7358 | [
"Apache-2.0"
] | 39 | 2015-03-30T14:03:42.000Z | 2022-03-16T16:50:33.000Z | savu/plugins/savers/base_saver_tools.py | elainehoml/Savu | e4772704606f71d6803d832084e10faa585e7358 | [
"Apache-2.0"
] | 670 | 2015-02-11T11:08:09.000Z | 2022-03-21T09:27:57.000Z | savu/plugins/savers/base_saver_tools.py | elainehoml/Savu | e4772704606f71d6803d832084e10faa585e7358 | [
"Apache-2.0"
] | 54 | 2015-02-13T14:09:52.000Z | 2022-01-24T13:57:09.000Z | from savu.plugins.plugin_tools import PluginTools
class BaseSaverTools(PluginTools):
"""A base plugin from which all data saver plugins should inherit.
"""
def define_parameters(self):
"""
out_datasets:
visibility: hidden
""" | 27.4 | 70 | 0.649635 | 29 | 274 | 6.034483 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266423 | 274 | 10 | 71 | 27.4 | 0.870647 | 0.383212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
d83591fa2aa33aa06919cd0f444fbfb320df4f49 | 34 | py | Python | src/Wython.example/expressions/example4.py | JRasmusBm/metaborg-python | ffc47439744be53c3a8f3bf7bbd55fbfc3f9f193 | [
"Apache-2.0"
] | 2 | 2020-09-18T13:10:29.000Z | 2021-09-23T21:04:46.000Z | src/Wython.example/expressions/example4.py | MetaBorgCube/metaborg-python | f16cbfd7840e1c762b947eb743cfad1cdd60c237 | [
"Apache-2.0"
] | 3 | 2018-05-04T21:01:59.000Z | 2018-06-15T20:39:06.000Z | src/Wython.example/expressions/example4.py | JRasmusBm/metaborg-python | ffc47439744be53c3a8f3bf7bbd55fbfc3f9f193 | [
"Apache-2.0"
] | 2 | 2018-05-04T13:51:53.000Z | 2019-03-11T08:09:37.000Z | a = lambda x,y=1+1, z=13: print(x) | 34 | 34 | 0.588235 | 10 | 34 | 2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 0.147059 | 34 | 1 | 34 | 34 | 0.551724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 4 |
dc22ece2b9570973edfc3c4711b8e716b71b8e59 | 132 | py | Python | rebrickable_latest_set_id.py | maczniak/brickstats | ac16a62242a374b15d46ccf4132db445dfa1fd76 | [
"MIT"
] | 1 | 2015-09-10T00:04:23.000Z | 2015-09-10T00:04:23.000Z | rebrickable_latest_set_id.py | maczniak/brickstats | ac16a62242a374b15d46ccf4132db445dfa1fd76 | [
"MIT"
] | null | null | null | rebrickable_latest_set_id.py | maczniak/brickstats | ac16a62242a374b15d46ccf4132db445dfa1fd76 | [
"MIT"
] | null | null | null | rebrickable_latest_set_id = {
620: '620-3',
630: '630-3',
6200: '6200-2',
6202: '6202-2',
6862: '6862-2',
70012: '70012-2',
}
| 14.666667 | 29 | 0.583333 | 22 | 132 | 3.363636 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.472727 | 0.166667 | 132 | 8 | 30 | 16.5 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0.265152 | 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 | 1 | 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 | 4 |
dc2be8649a2b4266ed87a484a715922e4a5e2bf2 | 22 | py | Python | tarbell/__init__.py | write-this-way/flask-tarbell | 0e23e8d90ba66fde1a961ea530c99d94357ff664 | [
"BSD-3-Clause"
] | 1 | 2016-03-12T21:16:46.000Z | 2016-03-12T21:16:46.000Z | tarbell/__init__.py | write-this-way/flask-tarbell | 0e23e8d90ba66fde1a961ea530c99d94357ff664 | [
"BSD-3-Clause"
] | null | null | null | tarbell/__init__.py | write-this-way/flask-tarbell | 0e23e8d90ba66fde1a961ea530c99d94357ff664 | [
"BSD-3-Clause"
] | null | null | null | __VERSION__ = '0.9b4'
| 11 | 21 | 0.681818 | 3 | 22 | 3.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0.136364 | 22 | 1 | 22 | 22 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
dc3bca935497cfe32c4a6635c3656fd20b0c7b9c | 87 | py | Python | rlbox/core/__init__.py | ocraft/rl-sandbox | fba6571545cf040829998ba4cd9009a15ac1bbdd | [
"MIT"
] | 2 | 2019-03-23T17:52:39.000Z | 2019-03-29T17:29:52.000Z | rlbox/core/__init__.py | ocraft/rl-sandbox | fba6571545cf040829998ba4cd9009a15ac1bbdd | [
"MIT"
] | null | null | null | rlbox/core/__init__.py | ocraft/rl-sandbox | fba6571545cf040829998ba4cd9009a15ac1bbdd | [
"MIT"
] | 2 | 2020-05-19T21:32:52.000Z | 2020-09-30T09:28:45.000Z | from .core import AgentProgram, Agent, Environment, Run
from .space import Space, Spec
| 29 | 55 | 0.793103 | 12 | 87 | 5.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 87 | 2 | 56 | 43.5 | 0.92 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
dc50b7c77720dd7fbd8d9a149c2c78f80b685849 | 36 | py | Python | jetbrains-academy/Tic-Tac-Toe/Problems/Poster artist/task.py | robinpatra/ML-Study-3 | 6f401706a8da4cac5e63304ce09ff6ff62756d0b | [
"MIT"
] | null | null | null | jetbrains-academy/Tic-Tac-Toe/Problems/Poster artist/task.py | robinpatra/ML-Study-3 | 6f401706a8da4cac5e63304ce09ff6ff62756d0b | [
"MIT"
] | null | null | null | jetbrains-academy/Tic-Tac-Toe/Problems/Poster artist/task.py | robinpatra/ML-Study-3 | 6f401706a8da4cac5e63304ce09ff6ff62756d0b | [
"MIT"
] | null | null | null | word = input()
print(word.upper())
| 9 | 19 | 0.638889 | 5 | 36 | 4.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 36 | 3 | 20 | 12 | 0.741935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 4 |
dc5bc4ecb5cb7599cee61d33ccd218509963a01a | 169 | py | Python | server/server/__init__.py | LezendarySandwich/Generic-CSP-Solver | 1f0577a92e4ebaabe60f1c7dcac4904872e704f4 | [
"MIT"
] | 1 | 2021-03-06T11:11:59.000Z | 2021-03-06T11:11:59.000Z | server/server/__init__.py | LezendarySandwich/Generic-CSP-Solver | 1f0577a92e4ebaabe60f1c7dcac4904872e704f4 | [
"MIT"
] | null | null | null | server/server/__init__.py | LezendarySandwich/Generic-CSP-Solver | 1f0577a92e4ebaabe60f1c7dcac4904872e704f4 | [
"MIT"
] | null | null | null | from flask import Flask
def create_app():
app = Flask(__name__)
from .api import api as api_blueprint
app.register_blueprint(api_blueprint)
return app
| 18.777778 | 41 | 0.727811 | 24 | 169 | 4.791667 | 0.5 | 0.208696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213018 | 169 | 8 | 42 | 21.125 | 0.864662 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
dca14782d592df99844a7fbfa2c8ba6e8268e3c9 | 139 | py | Python | GCP/sample-notebooks/CrossValScore/CrossValScore/trainer/model.py | SAP-samples/dwc-fedml | 39ea8cefc31741c4ec37eb6c0d70dd48e7c034ba | [
"Apache-2.0"
] | 2 | 2021-11-24T14:58:56.000Z | 2022-01-12T07:32:29.000Z | GCP/sample-notebooks/CrossValScore/CrossValScore/trainer/model.py | SAP-samples/dwc-fedml | 39ea8cefc31741c4ec37eb6c0d70dd48e7c034ba | [
"Apache-2.0"
] | null | null | null | GCP/sample-notebooks/CrossValScore/CrossValScore/trainer/model.py | SAP-samples/dwc-fedml | 39ea8cefc31741c4ec37eb6c0d70dd48e7c034ba | [
"Apache-2.0"
] | 2 | 2021-12-16T15:18:15.000Z | 2022-01-12T07:32:41.000Z | from sklearn.linear_model import LogisticRegression
def get_estimator(flags):
clf = LogisticRegression(max_iter=1000)
return clf
| 19.857143 | 51 | 0.791367 | 17 | 139 | 6.294118 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 0.151079 | 139 | 6 | 52 | 23.166667 | 0.872881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
f4d1bf83aad9bde1e4313739a5920db0de00038b | 52 | py | Python | mudaemod_module/__init__.py | alentoghostflame/StupidAlentoBot | c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba | [
"MIT"
] | 1 | 2021-12-12T02:50:20.000Z | 2021-12-12T02:50:20.000Z | mudaemod_module/__init__.py | alentoghostflame/StupidAlentoBot | c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba | [
"MIT"
] | 17 | 2020-02-07T23:40:36.000Z | 2020-12-22T16:38:44.000Z | mudaemod_module/__init__.py | alentoghostflame/StupidAlentoBot | c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba | [
"MIT"
] | null | null | null | from mudaemod_module.mudaemod import MudaeModModule
| 26 | 51 | 0.903846 | 6 | 52 | 7.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 52 | 1 | 52 | 52 | 0.958333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
7625d7f650f5643c7d2dd0b07f1a6bb4fc6f314d | 223 | py | Python | optimade/server/models/util.py | dietherjohn20/optimade-python-tools | c0c2bbf5851b3c4033a536b978fe633bd84bdf95 | [
"MIT"
] | null | null | null | optimade/server/models/util.py | dietherjohn20/optimade-python-tools | c0c2bbf5851b3c4033a536b978fe633bd84bdf95 | [
"MIT"
] | null | null | null | optimade/server/models/util.py | dietherjohn20/optimade-python-tools | c0c2bbf5851b3c4033a536b978fe633bd84bdf95 | [
"MIT"
] | null | null | null | from typing import cast, Any, Dict, Type
from pydantic import ConstrainedInt, errors
from pydantic.types import OptionalInt
from pydantic.validators import list_validator
class NonnegativeInt(ConstrainedInt):
ge = 0
| 22.3 | 46 | 0.811659 | 28 | 223 | 6.428571 | 0.678571 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005236 | 0.143498 | 223 | 9 | 47 | 24.777778 | 0.937173 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.