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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bf99ea429931bf400f6df16dd43bb5ff519cff71 | 1,650 | py | Python | vyper/errors.py | ykgk518/vyper | 5670b019858a319fed390e4a46a9c208c30ff9c7 | [
"MIT"
] | null | null | null | vyper/errors.py | ykgk518/vyper | 5670b019858a319fed390e4a46a9c208c30ff9c7 | [
"MIT"
] | null | null | null | vyper/errors.py | ykgk518/vyper | 5670b019858a319fed390e4a46a9c208c30ff9c7 | [
"MIT"
] | null | null | null | class ConfigFileNotFoundError(Exception):
"""Denotes failing to find configuration file."""
def __init__(self, message, locations, *args):
self.message = message
self.locations = ", ".join(str(l) for l in locations)
super(ConfigFileNotFoundError, self).__init__(message, locations,
... | 35.869565 | 76 | 0.669697 | 170 | 1,650 | 6.217647 | 0.3 | 0.124882 | 0.041627 | 0.068117 | 0.412488 | 0.247871 | 0.247871 | 0.247871 | 0.214759 | 0 | 0 | 0.003934 | 0.229697 | 1,650 | 45 | 77 | 36.666667 | 0.827695 | 0.187273 | 0 | 0.407407 | 0 | 0 | 0.097542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.296296 | false | 0 | 0 | 0.148148 | 0.592593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bfb1c3e5e233e08c88340377099097d0f5ecd8fa | 91 | py | Python | Chapter02/Activity2.01/juggler/projectm/apps.py | PacktPublishing/Web-Development-Projects-with-Django | 531bc4d58d614888cc81b7fd6f8ec859f5a65217 | [
"MIT"
] | 97 | 2021-03-01T12:54:30.000Z | 2022-03-28T02:57:26.000Z | Chapter02/Activity2.01/juggler/projectm/apps.py | PacktPublishing/Web-Development-Projects-with-Django | 531bc4d58d614888cc81b7fd6f8ec859f5a65217 | [
"MIT"
] | 81 | 2020-08-27T04:56:04.000Z | 2022-03-12T00:53:40.000Z | Chapter02/Activity2.01/juggler/projectm/apps.py | PacktPublishing/Web-Development-Projects-with-Django | 531bc4d58d614888cc81b7fd6f8ec859f5a65217 | [
"MIT"
] | 163 | 2020-12-25T14:38:38.000Z | 2022-03-30T10:31:40.000Z | from django.apps import AppConfig
class ProjectmConfig(AppConfig):
name = 'projectm'
| 15.166667 | 33 | 0.758242 | 10 | 91 | 6.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164835 | 91 | 5 | 34 | 18.2 | 0.907895 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bfcdae50b50083c18f4bb3b8f164a609f4ee0096 | 9 | py | Python | library/python/pytest/context.py | jochenater/catboost | de2786fbc633b0d6ea6a23b3862496c6151b95c2 | [
"Apache-2.0"
] | 6,989 | 2017-07-18T06:23:18.000Z | 2022-03-31T15:58:36.000Z | library/python/pytest/context.py | birichie/catboost | de75c6af12cf490700e76c22072fbdc15b35d679 | [
"Apache-2.0"
] | 1,978 | 2017-07-18T09:17:58.000Z | 2022-03-31T14:28:43.000Z | library/python/pytest/context.py | birichie/catboost | de75c6af12cf490700e76c22072fbdc15b35d679 | [
"Apache-2.0"
] | 1,228 | 2017-07-18T09:03:13.000Z | 2022-03-29T05:57:40.000Z | Ctx = {}
| 4.5 | 8 | 0.333333 | 1 | 9 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 9 | 1 | 9 | 9 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bfd626e5b10cb78b3223428ac8a2e54f82ab5f41 | 153 | py | Python | classic_tetris_project/test_helper/factories/pages.py | Madv0x/classic-tetris-project | cfd8c39376ad42e6ec57055d88d79916b3debe10 | [
"MIT"
] | 17 | 2019-11-23T12:56:06.000Z | 2022-02-05T21:48:00.000Z | classic_tetris_project/test_helper/factories/pages.py | Madv0x/classic-tetris-project | cfd8c39376ad42e6ec57055d88d79916b3debe10 | [
"MIT"
] | 43 | 2019-10-03T20:16:11.000Z | 2022-03-12T00:24:52.000Z | classic_tetris_project/test_helper/factories/pages.py | Madv0x/classic-tetris-project | cfd8c39376ad42e6ec57055d88d79916b3debe10 | [
"MIT"
] | 17 | 2020-02-09T01:55:01.000Z | 2021-11-12T21:16:50.000Z | import factory
from classic_tetris_project.models import *
class PageFactory(factory.django.DjangoModelFactory):
class Meta:
model = Page
| 17 | 53 | 0.75817 | 17 | 153 | 6.705882 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183007 | 153 | 8 | 54 | 19.125 | 0.912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
44ab45c372fd14dc160850942559a820c29eca6b | 1,128 | py | Python | encuestas/views.py | codo-a-codo-python-2018-team2/tpo2-backend | 859f088cdb08b9155e4b9a6aa82e589fc946f00f | [
"MIT"
] | 4 | 2021-07-05T22:36:21.000Z | 2021-07-28T17:26:06.000Z | encuestas/views.py | codo-a-codo-python-2018-team2/tpo2-backend | 859f088cdb08b9155e4b9a6aa82e589fc946f00f | [
"MIT"
] | 15 | 2021-07-14T20:05:11.000Z | 2021-07-18T00:40:54.000Z | encuestas/views.py | codo-a-codo-python-2018-team2/tpo2-backend | 859f088cdb08b9155e4b9a6aa82e589fc946f00f | [
"MIT"
] | 4 | 2021-07-12T20:04:54.000Z | 2021-07-15T02:01:51.000Z | from django.http import HttpResponse
from django.shortcuts import render
# Create your views here.
def home(request):
return render(request, "base.html")
def update(data):
pass
def create(data):
pass
def delete(data):
pass
def read(data):
return HttpResponse("READ Hello world from Django f... | 19.789474 | 76 | 0.689716 | 151 | 1,128 | 5.119205 | 0.370861 | 0.100906 | 0.129366 | 0.112549 | 0.274256 | 0.274256 | 0.274256 | 0.219922 | 0.219922 | 0.087969 | 0 | 0.00452 | 0.215426 | 1,128 | 56 | 77 | 20.142857 | 0.868927 | 0.033688 | 0 | 0.09375 | 0 | 0 | 0.25023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0.09375 | 0.0625 | 0.1875 | 0.59375 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
44aeb2a98d1c0f03eda867ff88cfe7687d9983ef | 592 | py | Python | mriqc/interfaces/__init__.py | cbinyu/mriqc | 471d7bb8a6f1611bec813fd62175ea74494552af | [
"BSD-3-Clause"
] | null | null | null | mriqc/interfaces/__init__.py | cbinyu/mriqc | 471d7bb8a6f1611bec813fd62175ea74494552af | [
"BSD-3-Clause"
] | null | null | null | mriqc/interfaces/__init__.py | cbinyu/mriqc | 471d7bb8a6f1611bec813fd62175ea74494552af | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
""" mriqc nipype interfaces """
from __future__ import print_function, division, absolute_import, unicode_literals
from .anatomical import \
StructuralQC, ... | 39.466667 | 82 | 0.765203 | 75 | 592 | 5.946667 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011628 | 0.128378 | 592 | 14 | 83 | 42.285714 | 0.852713 | 0.298986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.875 | 0 | 0.875 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
44b6b67076a2918fc3088334181af40564a9a915 | 1,542 | py | Python | illumio/rules/ruleset.py | dsommerville-illumio/illumio-py | 30e9ee4237b142a62579839ed8a21f2eb35c8b09 | [
"Apache-2.0"
] | 1 | 2022-01-18T04:55:16.000Z | 2022-01-18T04:55:16.000Z | illumio/rules/ruleset.py | dsommerville-illumio/illumio-py | 30e9ee4237b142a62579839ed8a21f2eb35c8b09 | [
"Apache-2.0"
] | null | null | null | illumio/rules/ruleset.py | dsommerville-illumio/illumio-py | 30e9ee4237b142a62579839ed8a21f2eb35c8b09 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""This module provides classes related to policy rule sets.
Copyright:
(c) 2022 Illumio
License:
Apache2, see LICENSE for more details.
"""
from dataclasses import dataclass
from typing import List
from illumio.util import MutableObject, pce_api
from illumio.policyobjects import Lab... | 29.653846 | 80 | 0.600519 | 169 | 1,542 | 5.35503 | 0.449704 | 0.035359 | 0.046409 | 0.066298 | 0.076243 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007867 | 0.258106 | 1,542 | 51 | 81 | 30.235294 | 0.783217 | 0.648508 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.461538 | 0 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7826564fe6180ebfa9648f8c7f71f35f8d3ce912 | 824 | py | Python | factory/cars/models.py | avara1986/graphql-django | 57b9bcb479842e243488a59cb4db4f523c2877ce | [
"MIT"
] | null | null | null | factory/cars/models.py | avara1986/graphql-django | 57b9bcb479842e243488a59cb4db4f523c2877ce | [
"MIT"
] | null | null | null | factory/cars/models.py | avara1986/graphql-django | 57b9bcb479842e243488a59cb4db4f523c2877ce | [
"MIT"
] | null | null | null | from django.db import models
class Car(models.Model):
# name = models.CharField(max_length=100)
model = models.ForeignKey(
'Model',
on_delete=models.CASCADE,
related_name='cars'
)
color = models.CharField(max_length=100, null=True)
def __str__(self):
return "{} ({}... | 23.542857 | 68 | 0.629854 | 97 | 824 | 5.14433 | 0.309278 | 0.08016 | 0.144289 | 0.192385 | 0.639279 | 0.58517 | 0.456914 | 0.388778 | 0 | 0 | 0 | 0.018838 | 0.226942 | 824 | 34 | 69 | 24.235294 | 0.764521 | 0.04733 | 0 | 0.291667 | 0 | 0 | 0.049808 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.041667 | 0.125 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
785960861729eeb02ac0f6dc2bbedf5a680eaead | 946 | py | Python | src/chalky/shortcuts/bg.py | stephen-bunn/chalk | 8bcaaab309cc4f4b5eee019bce08e2765d72cf02 | [
"0BSD"
] | 2 | 2020-12-24T16:38:55.000Z | 2021-12-09T21:54:56.000Z | src/chalky/shortcuts/bg.py | stephen-bunn/chalk | 8bcaaab309cc4f4b5eee019bce08e2765d72cf02 | [
"0BSD"
] | null | null | null | src/chalky/shortcuts/bg.py | stephen-bunn/chalk | 8bcaaab309cc4f4b5eee019bce08e2765d72cf02 | [
"0BSD"
] | null | null | null | # -*- encoding: utf-8 -*-
# Copyright (c) 2020 Stephen Bunn <stephen@bunn.io>
# ISC License <https://choosealicense.com/licenses/isc>
"""Predefined background (bg) chalk colors."""
from ..chalk import Chalk
from ..color import Color
black = Chalk(background=Color.BLACK)
red = Chalk(background=Color.RED)
green = Chal... | 35.037037 | 55 | 0.789641 | 126 | 946 | 5.809524 | 0.253968 | 0.327869 | 0.437158 | 0.248634 | 0.092896 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00578 | 0.085624 | 946 | 26 | 56 | 36.384615 | 0.840462 | 0.178647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7867540febaf01ebf0a1265c880d0e90cd7c9702 | 262 | py | Python | manufacturers/__init__.py | pmaigutyak/mp-shop | 14ea67f71fd91a282d2070414924708214fc6464 | [
"0BSD"
] | 2 | 2018-03-14T11:32:36.000Z | 2021-09-25T14:31:36.000Z | manufacturers/__init__.py | pmaigutyak/mp-shop | 14ea67f71fd91a282d2070414924708214fc6464 | [
"0BSD"
] | null | null | null | manufacturers/__init__.py | pmaigutyak/mp-shop | 14ea67f71fd91a282d2070414924708214fc6464 | [
"0BSD"
] | null | null | null |
from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class ManufacturersAppConfig(AppConfig):
name = 'manufacturers'
verbose_name = _('Manufacturers')
default_app_config = 'manufacturers.ManufacturersAppConfig'
| 20.153846 | 59 | 0.79771 | 26 | 262 | 7.807692 | 0.692308 | 0.098522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133588 | 262 | 12 | 60 | 21.833333 | 0.894273 | 0 | 0 | 0 | 0 | 0 | 0.237548 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
78813325f60f46599577965ee7582342a5290dfa | 688 | py | Python | src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/pacman/model/abstract_classes/abstract_partitioned_partition_n_keys_map.py | Roboy/LSM_SpiNNaker_MyoArm | 04fa1eaf78778edea3ba3afa4c527d20c491718e | [
"BSD-3-Clause"
] | 2 | 2020-11-01T13:22:11.000Z | 2020-11-01T13:22:20.000Z | src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/pacman/model/abstract_classes/abstract_partitioned_partition_n_keys_map.py | Roboy/LSM_SpiNNaker_MyoArm | 04fa1eaf78778edea3ba3afa4c527d20c491718e | [
"BSD-3-Clause"
] | null | null | null | src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/pacman/model/abstract_classes/abstract_partitioned_partition_n_keys_map.py | Roboy/LSM_SpiNNaker_MyoArm | 04fa1eaf78778edea3ba3afa4c527d20c491718e | [
"BSD-3-Clause"
] | null | null | null | from abc import ABCMeta
from abc import abstractmethod
from six import add_metaclass
@add_metaclass(ABCMeta)
class AbstractPartitionedPartitionNKeysMap(object):
""" A map that provides the number of keys required by each partition
"""
@abstractmethod
def n_keys_for_partition(self, partition):
... | 31.272727 | 107 | 0.699128 | 83 | 688 | 5.698795 | 0.53012 | 0.07611 | 0.093023 | 0.12685 | 0.171247 | 0.171247 | 0.118393 | 0 | 0 | 0 | 0 | 0 | 0.241279 | 688 | 21 | 108 | 32.761905 | 0.90613 | 0.543605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
7899c2c86824b17dd02e734e6662974d4d0848d2 | 540 | py | Python | AutoDiff/scalarCalculation/operators/square.py | Phutoast/SimpleAutoDiff | 7fc930266b33887bc9a94130a95746e2e253df92 | [
"MIT"
] | null | null | null | AutoDiff/scalarCalculation/operators/square.py | Phutoast/SimpleAutoDiff | 7fc930266b33887bc9a94130a95746e2e253df92 | [
"MIT"
] | null | null | null | AutoDiff/scalarCalculation/operators/square.py | Phutoast/SimpleAutoDiff | 7fc930266b33887bc9a94130a95746e2e253df92 | [
"MIT"
] | null | null | null | from .scalarOperator import ScalarOperator
class Square(ScalarOperator):
def __init__(self, operation1, name="Square"):
self.operation1 = operation1
self.name = name
def forward(self):
return self.operation1.forward() * self.operation1.forward()
def backward(self, grad):
s... | 30 | 70 | 0.677778 | 62 | 540 | 5.806452 | 0.306452 | 0.311111 | 0.175 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023419 | 0.209259 | 540 | 17 | 71 | 31.764706 | 0.819672 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.076923 | 0.538462 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
78a17ba088300d56363f764f87002d32f907b253 | 2,959 | py | Python | atest/testdata/keywords/type_conversion/AnnotationsWithTyping.py | rdagum/robotframework | b7069d505374e9f09a140ed5a9727d2a40716446 | [
"ECL-2.0",
"Apache-2.0"
] | 7,073 | 2015-01-01T17:19:16.000Z | 2022-03-31T22:01:29.000Z | atest/testdata/keywords/type_conversion/AnnotationsWithTyping.py | imust6226/robotframework | 08c56fef2ebc64d682c7f99acd77c480d8d0e028 | [
"ECL-2.0",
"Apache-2.0"
] | 2,412 | 2015-01-02T09:29:05.000Z | 2022-03-31T13:10:46.000Z | atest/testdata/keywords/type_conversion/AnnotationsWithTyping.py | rticau/robotframework | 33ee46dfacd5173c0a38d89c1a60abf6a747c8c0 | [
"ECL-2.0",
"Apache-2.0"
] | 2,298 | 2015-01-03T02:47:15.000Z | 2022-03-31T02:00:16.000Z | from typing import (List, Sequence, MutableSequence,
Dict, Mapping, MutableMapping,
Set, MutableSet)
try:
from typing import TypedDict
except ImportError:
from typing_extensions import TypedDict
from robot.api.deco import not_keyword
TypedDict = not_keyword(TypedDict)
... | 25.730435 | 84 | 0.73437 | 341 | 2,959 | 6.102639 | 0.173021 | 0.138395 | 0.211437 | 0.296012 | 0.552138 | 0.552138 | 0.552138 | 0.531475 | 0.310908 | 0.065353 | 0 | 0 | 0.163569 | 2,959 | 114 | 85 | 25.95614 | 0.840808 | 0 | 0 | 0.333333 | 0 | 0 | 0.012504 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 1 | 0.365079 | false | 0.015873 | 0.079365 | 0 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
78a490b28a266580ae2c75229f26507300a4da54 | 268 | py | Python | multicloud_storage/http.py | onXmaps/multicloud-storage | 185828404dd18473a1cc8404766641cdebc63f76 | [
"Apache-2.0"
] | null | null | null | multicloud_storage/http.py | onXmaps/multicloud-storage | 185828404dd18473a1cc8404766641cdebc63f76 | [
"Apache-2.0"
] | null | null | null | multicloud_storage/http.py | onXmaps/multicloud-storage | 185828404dd18473a1cc8404766641cdebc63f76 | [
"Apache-2.0"
] | null | null | null | from enum import Enum
try:
from typing import Literal
except ImportError:
from typing_extensions import Literal
class HttpMethod(Enum):
"""HttpMethod is an enum class for HTTP Methods."""
GET: Literal["GET"] = "GET"
PUT: Literal["PUT"] = "PUT"
| 19.142857 | 55 | 0.682836 | 35 | 268 | 5.2 | 0.514286 | 0.10989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212687 | 268 | 13 | 56 | 20.615385 | 0.862559 | 0.16791 | 0 | 0 | 0 | 0 | 0.0553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
78bfb00f6a5f20cfee23e5cb918db059b79c18dd | 368 | py | Python | tasks/cyclic-one-time-pad/flask/app/forms.py | HackerDom/qctf-starter-2018 | f4eef0fd41d777661b9fbcc61dcee9709d9f6268 | [
"MIT"
] | 8 | 2018-03-15T12:07:11.000Z | 2020-12-01T15:02:46.000Z | tasks/cyclic-one-time-pad/flask/app/forms.py | HackerDom/qctf-starter-2018 | f4eef0fd41d777661b9fbcc61dcee9709d9f6268 | [
"MIT"
] | 17 | 2020-01-28T22:17:42.000Z | 2022-03-11T23:18:09.000Z | tasks/cyclic-one-time-pad/flask/app/forms.py | HackerDom/qctf-starter-2018 | f4eef0fd41d777661b9fbcc61dcee9709d9f6268 | [
"MIT"
] | 2 | 2018-11-26T18:54:27.000Z | 2018-12-05T17:37:32.000Z | from flask_wtf import FlaskForm
from wtforms import TextField, TextAreaField, RadioField
from wtforms.validators import Required, Length
class EncryptForm(FlaskForm):
data_format = RadioField('data_format', choices=[('plain','Plain'), ('base64', 'Base64')], validators = [Required()])
data = TextAreaField('data... | 46 | 121 | 0.744565 | 40 | 368 | 6.775 | 0.525 | 0.081181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02454 | 0.11413 | 368 | 7 | 122 | 52.571429 | 0.806748 | 0 | 0 | 0 | 0 | 0 | 0.100543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
152772444df7d24a3e49977aa55102ebb43fa659 | 73 | py | Python | pytorch/pcdet/ops/voxels/__init__.py | chasingw/pointpillars_pytorch_trt | 941075a23d86991393ea71ddbeb916ca80b73400 | [
"Apache-2.0"
] | 45 | 2021-04-30T04:52:39.000Z | 2022-03-30T07:09:59.000Z | pytorch/pcdet/ops/voxels/__init__.py | chasingw/pointpillars_pytorch_trt | 941075a23d86991393ea71ddbeb916ca80b73400 | [
"Apache-2.0"
] | 17 | 2021-05-27T10:15:32.000Z | 2022-01-15T08:45:53.000Z | pytorch/pcdet/ops/voxels/__init__.py | chasingw/pointpillars_pytorch_trt | 941075a23d86991393ea71ddbeb916ca80b73400 | [
"Apache-2.0"
] | 15 | 2021-05-24T05:43:17.000Z | 2022-03-02T02:53:56.000Z | from .voxel_generator import VoxelGenerator
__all__ = ['VoxelGenerator'] | 24.333333 | 43 | 0.821918 | 7 | 73 | 7.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09589 | 73 | 3 | 44 | 24.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.189189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
153cfea76b81f2fe18308a321470bb8ddfd5a798 | 91 | py | Python | blackdog/apps.py | UncleGoogle/dafipost | 5e19d6a69dde9b7e5267bbdba680906bdb5e56eb | [
"MIT"
] | null | null | null | blackdog/apps.py | UncleGoogle/dafipost | 5e19d6a69dde9b7e5267bbdba680906bdb5e56eb | [
"MIT"
] | 1 | 2021-02-08T01:44:32.000Z | 2021-02-08T01:44:32.000Z | blackdog/apps.py | UncleGoogle/dafipost | 5e19d6a69dde9b7e5267bbdba680906bdb5e56eb | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class BlackdogConfig(AppConfig):
name = 'blackdog'
| 15.166667 | 33 | 0.758242 | 10 | 91 | 6.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164835 | 91 | 5 | 34 | 18.2 | 0.907895 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
153ea265d3c3baffa683088f71df173393facf8a | 289 | py | Python | Topics/Methods and attributes/Lightbulb/main.py | the-rennegade/jet-brains-coffee-machine | cd7c395d748e951b2fd9c724a8121d0f076a4633 | [
"MIT"
] | null | null | null | Topics/Methods and attributes/Lightbulb/main.py | the-rennegade/jet-brains-coffee-machine | cd7c395d748e951b2fd9c724a8121d0f076a4633 | [
"MIT"
] | null | null | null | Topics/Methods and attributes/Lightbulb/main.py | the-rennegade/jet-brains-coffee-machine | cd7c395d748e951b2fd9c724a8121d0f076a4633 | [
"MIT"
] | null | null | null | class Lightbulb:
def __init__(self):
self.state = "off"
def change_state(self):
if self.state == "off":
self.state = "on"
print("Turning the light on")
else:
self.state = "off"
print("Turning the light off")
| 24.083333 | 42 | 0.50519 | 33 | 289 | 4.272727 | 0.454545 | 0.255319 | 0.255319 | 0.283688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.377163 | 289 | 11 | 43 | 26.272727 | 0.783333 | 0 | 0 | 0.2 | 0 | 0 | 0.179931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.3 | 0.2 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
15526d277b73fe9fa260e9ae08c1595eb57dfb8c | 44,287 | py | Python | global_buffer/design/global_buffer.py | StanfordAHA/garnet | 103424e597af0af258fe6e7e6f966b9f8bb69fe9 | [
"BSD-3-Clause"
] | 56 | 2018-12-15T02:47:57.000Z | 2022-03-25T23:50:40.000Z | global_buffer/design/global_buffer.py | StanfordAHA/garnet | 103424e597af0af258fe6e7e6f966b9f8bb69fe9 | [
"BSD-3-Clause"
] | 525 | 2018-07-27T20:35:54.000Z | 2022-03-28T23:52:20.000Z | global_buffer/design/global_buffer.py | StanfordAHA/garnet | 103424e597af0af258fe6e7e6f966b9f8bb69fe9 | [
"BSD-3-Clause"
] | 11 | 2019-01-26T06:41:10.000Z | 2021-03-28T08:02:26.000Z | from kratos import Generator, always_ff, posedge, always_comb, clock_en, clog2, const, concat
from kratos.util import to_magma
from global_buffer.design.glb_tile import GlbTile
from global_buffer.design.glb_cfg_ifc import GlbConfigInterface
from global_buffer.design.global_buffer_parameter import GlobalBufferParams
fro... | 61.001377 | 118 | 0.630478 | 6,720 | 44,287 | 3.610268 | 0.018452 | 0.063188 | 0.059849 | 0.072544 | 0.945138 | 0.889164 | 0.802729 | 0.645645 | 0.519599 | 0.387618 | 0 | 0.019014 | 0.277982 | 44,287 | 725 | 119 | 61.085517 | 0.739711 | 0.001761 | 0 | 0.143533 | 0 | 0 | 0.072503 | 0.034091 | 0 | 0 | 0 | 0.001379 | 0 | 1 | 0.023659 | false | 0.018927 | 0.011041 | 0 | 0.037855 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1572b9d932a227e0f1af308a706b226074c2084e | 223 | py | Python | Control/IController.py | ace964/Azubot | b77416d6152efdc3a806ee590bac2272629bab5a | [
"MIT"
] | 1 | 2018-07-12T10:14:40.000Z | 2018-07-12T10:14:40.000Z | Control/IController.py | ace964/Azubot | b77416d6152efdc3a806ee590bac2272629bab5a | [
"MIT"
] | null | null | null | Control/IController.py | ace964/Azubot | b77416d6152efdc3a806ee590bac2272629bab5a | [
"MIT"
] | null | null | null | """
Interface for Controllers
functionality described in ps4.py ord xbox.py
"""
class IController:
def start(self):
raise NotImplementedError
def getActions(self):
raise NotImplementedError
| 20.272727 | 49 | 0.690583 | 23 | 223 | 6.695652 | 0.782609 | 0.116883 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005917 | 0.242152 | 223 | 10 | 50 | 22.3 | 0.905325 | 0.318386 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1584a1bc2e17f61c4173cce02e535e03e917f85d | 53 | py | Python | data/studio21_generated/introductory/4302/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/4302/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/4302/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | def better_than_average(class_points, your_points):
| 26.5 | 51 | 0.849057 | 8 | 53 | 5.125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075472 | 53 | 2 | 52 | 26.5 | 0.836735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
15924953c2e4ae2608a0cc8522236b8362983f00 | 16,706 | py | Python | query_research/query_research_handler.py | sjuenger/WikiMETA | 13ed293b4bda8ff0fc10b532907ca35c24a12616 | [
"MIT"
] | null | null | null | query_research/query_research_handler.py | sjuenger/WikiMETA | 13ed293b4bda8ff0fc10b532907ca35c24a12616 | [
"MIT"
] | null | null | null | query_research/query_research_handler.py | sjuenger/WikiMETA | 13ed293b4bda8ff0fc10b532907ca35c24a12616 | [
"MIT"
] | null | null | null | import query_research.transform_data.transform_data_handler as transform_data_handler
import query_research.scenario_detection_unit as scenario_detection_unit
import query_research.properties_counter as properties_counter
import query_research.statistical_information_handler as statistical_information_handler
import qu... | 57.212329 | 127 | 0.584999 | 1,447 | 16,706 | 6.239115 | 0.093296 | 0.051839 | 0.093155 | 0.061143 | 0.800399 | 0.761852 | 0.72253 | 0.66615 | 0.597585 | 0.42778 | 0 | 0.01185 | 0.363522 | 16,706 | 291 | 128 | 57.408935 | 0.837205 | 0.042799 | 0 | 0.422727 | 0 | 0 | 0.199049 | 0.130195 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004545 | false | 0 | 0.036364 | 0 | 0.040909 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
159fe5158d0dcf5a3a393dd47e3f68d9f23e12b4 | 408 | py | Python | tests/test_compiler.py | sheecegardezi/RobotChallenge | afce5d48d0f4bfe6e14e824be0c3f20b01337b3f | [
"Apache-2.0"
] | null | null | null | tests/test_compiler.py | sheecegardezi/RobotChallenge | afce5d48d0f4bfe6e14e824be0c3f20b01337b3f | [
"Apache-2.0"
] | 2 | 2022-03-02T15:25:00.000Z | 2022-03-03T05:18:12.000Z | tests/test_compiler.py | sheecegardezi/RobotChallenge | afce5d48d0f4bfe6e14e824be0c3f20b01337b3f | [
"Apache-2.0"
] | null | null | null | from robotchallenge.Compiler.compiler import Compiler
from robotchallenge.Compiler.compiler import CompilerError
def test_compiler():
try:
compiler = Compiler("INVALID_CMD")
compiler.compile()
assert False, "Should not reach here"
except CompilerError:
assert True, "Should rea... | 22.666667 | 58 | 0.698529 | 44 | 408 | 6.227273 | 0.590909 | 0.175182 | 0.189781 | 0.248175 | 0.291971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218137 | 408 | 17 | 59 | 24 | 0.858934 | 0 | 0 | 0 | 0 | 0 | 0.178922 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.083333 | false | 0.083333 | 0.166667 | 0 | 0.25 | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
15a5b07fedafafc8e67ebfb5816d001133fca794 | 296 | py | Python | config_sample.py | juanino/weatherstation | a59234d3e780957a0632584a0dc3e8c89c755822 | [
"MIT"
] | null | null | null | config_sample.py | juanino/weatherstation | a59234d3e780957a0632584a0dc3e8c89c755822 | [
"MIT"
] | null | null | null | config_sample.py | juanino/weatherstation | a59234d3e780957a0632584a0dc3e8c89c755822 | [
"MIT"
] | null | null | null | # rename this file to config.py
# change with your info from adafruit.io
ADAFRUIT_IO_USERNAME = "XXXX"
ADAFRUIT_IO_KEY = "aio_XXXXXXXXXXXXXXXXXXXXXXXXXXXX"
APIURL="https://api.openweathermap.org/data/2.5/weather?lat=41.XXXXXX&lon=-73.XXXXXX&appid=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&units=imperial"
| 49.333333 | 139 | 0.820946 | 41 | 296 | 5.804878 | 0.878049 | 0.12605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.067568 | 296 | 5 | 140 | 59.2 | 0.84058 | 0.22973 | 0 | 0 | 0 | 0.333333 | 0.737778 | 0.142222 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
15b392fed00c2a51fde89f366114f39fb02a3508 | 1,302 | py | Python | src/server/server.py | Irsutoro/sesame | 142959a6e4c814c72f480b0252a028d8586b77da | [
"MIT"
] | null | null | null | src/server/server.py | Irsutoro/sesame | 142959a6e4c814c72f480b0252a028d8586b77da | [
"MIT"
] | null | null | null | src/server/server.py | Irsutoro/sesame | 142959a6e4c814c72f480b0252a028d8586b77da | [
"MIT"
] | null | null | null | import peewee as pw
import hashlib
import os
from base64 import b64decode, b64encode
from typing import List
class Server:
def __init__(self, database: pw.Database, base_model: pw.Model):
self.database = None
self.base_model = base_model
self.connect_to_database(database)
def create_t... | 28.933333 | 93 | 0.683564 | 155 | 1,302 | 5.503226 | 0.322581 | 0.084408 | 0.045721 | 0.051583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010913 | 0.225806 | 1,302 | 45 | 94 | 28.933333 | 0.835317 | 0 | 0 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.257143 | false | 0.085714 | 0.142857 | 0.028571 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
ec7dc26d09ac44452b689a851285b05d5cd4e6ad | 697 | py | Python | Oving6/card_deck.py | JakubMroz4/PythonUiS | fc4f8ff15f280e07e21d55df31f9dfb81cf5a6cd | [
"MIT"
] | null | null | null | Oving6/card_deck.py | JakubMroz4/PythonUiS | fc4f8ff15f280e07e21d55df31f9dfb81cf5a6cd | [
"MIT"
] | null | null | null | Oving6/card_deck.py | JakubMroz4/PythonUiS | fc4f8ff15f280e07e21d55df31f9dfb81cf5a6cd | [
"MIT"
] | 1 | 2021-04-26T14:32:52.000Z | 2021-04-26T14:32:52.000Z | from card import Card
import random
class CardDeck:
cards: list
def __init__(self):
self.cards = []
for i in range(1, 14):
self.cards.append(Card("Club", i))
self.cards.append(Card("Diamond", i))
self.cards.append(Card("Heart", i))
self.cards.ap... | 21.78125 | 49 | 0.536585 | 89 | 697 | 4.067416 | 0.337079 | 0.248619 | 0.165746 | 0.209945 | 0.165746 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0.332855 | 697 | 31 | 50 | 22.483871 | 0.767742 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.083333 | 0.041667 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ec7ed378c2b87d37e8b3cf022e951a830a7b3c50 | 1,365 | py | Python | SRC/common/IO/pixelgroupparam.py | usnistgov/OOF3D | 4fd423a48aea9c5dc207520f02de53ae184be74c | [
"X11"
] | 31 | 2015-04-01T15:59:36.000Z | 2022-03-18T20:21:47.000Z | SRC/common/IO/pixelgroupparam.py | usnistgov/OOF3D | 4fd423a48aea9c5dc207520f02de53ae184be74c | [
"X11"
] | 3 | 2015-02-06T19:30:24.000Z | 2017-05-25T14:14:31.000Z | SRC/common/IO/pixelgroupparam.py | usnistgov/OOF3D | 4fd423a48aea9c5dc207520f02de53ae184be74c | [
"X11"
] | 7 | 2015-01-23T15:19:22.000Z | 2021-06-09T09:03:59.000Z | # -*- python -*-
# This software was produced by NIST, an agency of the U.S. government,
# and by statute is not subject to copyright in the United States.
# Recipients of this software assume all responsibilities associated
# with its operation, modification and maintenance. However, to
# facilitate maintenance we as... | 39 | 190 | 0.772894 | 172 | 1,365 | 6.127907 | 0.546512 | 0.052182 | 0.045541 | 0.062619 | 0.28463 | 0.239089 | 0.16888 | 0.16888 | 0.16888 | 0.16888 | 0 | 0 | 0.147985 | 1,365 | 34 | 191 | 40.147059 | 0.906277 | 0.443956 | 0 | 0.230769 | 0 | 0.076923 | 0.33244 | 0.171582 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.230769 | 0.230769 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ec9b96ae1653b158cdbe45e4dc4eb4ef67dbb03d | 358 | py | Python | homeworks/210215/hw_1/returning_values_from_decorated_functions.py | ObukhovVladislav/python-adv | ffab71d28e54d2c9b9c53c5fec453873242291f3 | [
"Apache-2.0"
] | null | null | null | homeworks/210215/hw_1/returning_values_from_decorated_functions.py | ObukhovVladislav/python-adv | ffab71d28e54d2c9b9c53c5fec453873242291f3 | [
"Apache-2.0"
] | null | null | null | homeworks/210215/hw_1/returning_values_from_decorated_functions.py | ObukhovVladislav/python-adv | ffab71d28e54d2c9b9c53c5fec453873242291f3 | [
"Apache-2.0"
] | 1 | 2021-03-29T05:44:02.000Z | 2021-03-29T05:44:02.000Z | # from decorators import do_twice
#
#
# @do_twice
def return_greeting(name):
print("Создание приветствия")
return f"Hi {name}"
hi_vlad = return_greeting("Vlad")
def do_twice(func):
def wrapper_do_twice(*args, **kwargs):
func(*args, **kwargs)
return func(*args, **kwargs)
return wrapp... | 16.272727 | 42 | 0.670391 | 47 | 358 | 4.87234 | 0.404255 | 0.152838 | 0.157205 | 0.174672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198324 | 358 | 21 | 43 | 17.047619 | 0.797909 | 0.114525 | 0 | 0 | 0 | 0 | 0.11859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0 | 0.6 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ec9c4a5e7a842f7335bf3471003bae1f04cda881 | 4,985 | py | Python | upload_gamelog.py | jcferrara/fantasy-football-start-or-sit | 4c3ac7be9f086863912f0181bf2dafb87d8cd4d1 | [
"MIT"
] | null | null | null | upload_gamelog.py | jcferrara/fantasy-football-start-or-sit | 4c3ac7be9f086863912f0181bf2dafb87d8cd4d1 | [
"MIT"
] | null | null | null | upload_gamelog.py | jcferrara/fantasy-football-start-or-sit | 4c3ac7be9f086863912f0181bf2dafb87d8cd4d1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Sep 2 19:47:52 2021
@author: JustinFerrara
"""
import pandas as pd
import pymysql
def upload_gamelog(data):
try:
db = pymysql.connect(host = host_name,
user = user_name,
... | 35.863309 | 107 | 0.392578 | 417 | 4,985 | 4.414868 | 0.302158 | 0.038023 | 0.055405 | 0.0717 | 0.045627 | 0.045627 | 0.019555 | 0.019555 | 0.019555 | 0.019555 | 0 | 0.021694 | 0.519157 | 4,985 | 138 | 108 | 36.123188 | 0.74635 | 0.020662 | 0 | 0 | 0 | 0.019048 | 0.785582 | 0.079688 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009524 | false | 0.180952 | 0.028571 | 0 | 0.038095 | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ecabf53a4a1d6faca514dcc9efdac505c2bebd47 | 338 | py | Python | test/_utils.py | rrobertsrgare/server-client-python | 3f4db45584fb352e9f21c870027a2302cb824909 | [
"CC0-1.0",
"MIT"
] | 1 | 2019-08-09T20:19:12.000Z | 2019-08-09T20:19:12.000Z | test/_utils.py | jorwoods/server-client-python | fefd6f18d8a6617829c6323879d2c3ed77a4cda6 | [
"CC0-1.0",
"MIT"
] | 1 | 2021-02-24T00:26:46.000Z | 2021-02-24T00:26:46.000Z | test/_utils.py | jorwoods/server-client-python | fefd6f18d8a6617829c6323879d2c3ed77a4cda6 | [
"CC0-1.0",
"MIT"
] | 1 | 2021-02-17T18:39:10.000Z | 2021-02-17T18:39:10.000Z | import os.path
TEST_ASSET_DIR = os.path.join(os.path.dirname(__file__), 'assets')
def asset(filename):
return os.path.join(TEST_ASSET_DIR, filename)
def read_xml_asset(filename):
with open(asset(filename), 'rb') as f:
return f.read().decode('utf-8')
def read_xml_assets(*args):
return map(read... | 19.882353 | 66 | 0.704142 | 54 | 338 | 4.148148 | 0.462963 | 0.107143 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003497 | 0.153846 | 338 | 16 | 67 | 21.125 | 0.77972 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.222222 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ecde0c77c9550d187f80e7e69b05bef9177bb610 | 137 | py | Python | backend/schemas/comment_like_schema.py | heshikirihasebe/fastapi-instagram-clone | 7bc265a62160171c5c5c1b2f18b3c86833cb64e7 | [
"MIT"
] | 1 | 2022-02-08T19:35:22.000Z | 2022-02-08T19:35:22.000Z | backend/schemas/comment_like_schema.py | heshikirihasebe/fastapi-instagram-clone | 7bc265a62160171c5c5c1b2f18b3c86833cb64e7 | [
"MIT"
] | null | null | null | backend/schemas/comment_like_schema.py | heshikirihasebe/fastapi-instagram-clone | 7bc265a62160171c5c5c1b2f18b3c86833cb64e7 | [
"MIT"
] | null | null | null | from pydantic import BaseModel
class RequestSchema(BaseModel):
comment_id: int
class ResponseSchema(BaseModel):
is_liked: bool
| 17.125 | 32 | 0.781022 | 16 | 137 | 6.5625 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160584 | 137 | 7 | 33 | 19.571429 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ecf470a19606b4ce4d78fa6432cb082e866f7c5b | 1,945 | py | Python | dm_control/suite/primitives.py | wpumacay/dm_control | e13b6941470cd6be618b0cc004b8ea20d69429fe | [
"Apache-2.0"
] | null | null | null | dm_control/suite/primitives.py | wpumacay/dm_control | e13b6941470cd6be618b0cc004b8ea20d69429fe | [
"Apache-2.0"
] | null | null | null | dm_control/suite/primitives.py | wpumacay/dm_control | e13b6941470cd6be618b0cc004b8ea20d69429fe | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 The dm_control Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 30.390625 | 78 | 0.737789 | 268 | 1,945 | 5.16791 | 0.470149 | 0.038989 | 0.046931 | 0.023105 | 0.034657 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007203 | 0.143445 | 1,945 | 63 | 79 | 30.873016 | 0.82413 | 0.431877 | 0 | 0 | 0 | 0 | 0.028037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0.034483 | 0.344828 | 0.034483 | 0.724138 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
01bcf4694fddcd3d9ff256f4ba1b66e70b47f1f3 | 174 | py | Python | src/chapter3/exercise 2.py | group5BCS1/BCS-2021 | 696b53bdfc46799b4a527604fbd6cd6cfb3982eb | [
"MIT"
] | null | null | null | src/chapter3/exercise 2.py | group5BCS1/BCS-2021 | 696b53bdfc46799b4a527604fbd6cd6cfb3982eb | [
"MIT"
] | null | null | null | src/chapter3/exercise 2.py | group5BCS1/BCS-2021 | 696b53bdfc46799b4a527604fbd6cd6cfb3982eb | [
"MIT"
] | null | null | null | try:
hours = int(input("enter hours :"))
rate=int(input("enter rate :"))
pay = int(hours * rate)
print("pay")
except:
print("Error, enter numeric input!") | 24.857143 | 40 | 0.591954 | 23 | 174 | 4.478261 | 0.478261 | 0.15534 | 0.252427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224138 | 174 | 7 | 40 | 24.857143 | 0.762963 | 0 | 0 | 0 | 0 | 0 | 0.314286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
01c02fb18c5d46f5a90f4f02fe24f31004bb3225 | 379 | py | Python | pages/themes/beginners/OOP_advanced/examples/method_overriding.py | ProgressBG-Python-Course/ProgressBG-VC2-Python | 03b892a42ee1fad3d4f97e328e06a4b1573fd356 | [
"MIT"
] | null | null | null | pages/themes/beginners/OOP_advanced/examples/method_overriding.py | ProgressBG-Python-Course/ProgressBG-VC2-Python | 03b892a42ee1fad3d4f97e328e06a4b1573fd356 | [
"MIT"
] | null | null | null | pages/themes/beginners/OOP_advanced/examples/method_overriding.py | ProgressBG-Python-Course/ProgressBG-VC2-Python | 03b892a42ee1fad3d4f97e328e06a4b1573fd356 | [
"MIT"
] | null | null | null | class Person():
"""docstring for Person"""
def __init__(self, name, age):
self.name = name
self.age = age
def __str__(self):
return "{} is {} years old".format(self.name, self.age)
class Employee(Person):
def __str__(self):
return "{} is employee".format(self.name)
maria = Person("Maria", 20... | 18.95 | 59 | 0.646438 | 52 | 379 | 4.480769 | 0.403846 | 0.137339 | 0.094421 | 0.137339 | 0.154506 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.187335 | 379 | 19 | 60 | 19.947368 | 0.743506 | 0.05277 | 0 | 0.153846 | 0 | 0 | 0.122159 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0.153846 | 0.538462 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
01c0efdc2aa9327183caece60d6ad9e5fee6b366 | 87 | py | Python | rpi_d3m_primitives/featSelect/profiler.py | naiyuyin/rpi_d3m_primitives | f95553bee90916d241885d28fb71c8167116d9fa | [
"MIT"
] | 1 | 2019-05-02T21:05:27.000Z | 2019-05-02T21:05:27.000Z | rpi_d3m_primitives/featSelect/profiler.py | naiyuyin/rpi_d3m_primitives | f95553bee90916d241885d28fb71c8167116d9fa | [
"MIT"
] | 1 | 2021-03-18T15:52:27.000Z | 2021-03-26T17:54:04.000Z | rpi_d3m_primitives/featSelect/profiler.py | naiyuyin/rpi_d3m_primitives | f95553bee90916d241885d28fb71c8167116d9fa | [
"MIT"
] | null | null | null | import pstats
p = pstats.Stats('times.txt')
p.sort_stats('cumtime').print_stats(20) | 21.75 | 39 | 0.724138 | 14 | 87 | 4.357143 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.103448 | 87 | 4 | 39 | 21.75 | 0.75641 | 0 | 0 | 0 | 0 | 0 | 0.188235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
01ca27d91088dd7bec765bb28f0e768dd211fabc | 499 | py | Python | UnitTests/ProxyTest.py | Valentijn1995/Kn0ckKn0ck | 6339f7f0e02c9b63f62539784ec6719b3c94de72 | [
"MIT"
] | null | null | null | UnitTests/ProxyTest.py | Valentijn1995/Kn0ckKn0ck | 6339f7f0e02c9b63f62539784ec6719b3c94de72 | [
"MIT"
] | null | null | null | UnitTests/ProxyTest.py | Valentijn1995/Kn0ckKn0ck | 6339f7f0e02c9b63f62539784ec6719b3c94de72 | [
"MIT"
] | null | null | null | from Proxies.DebugProxy import DebugProxy
from Proxies.Proxy import ProxyError
from Proxies.Protocols.NoProtocol import NoProtocol
from unittest import TestCase
class TestProxy(TestCase):
def setUp(self):
self._proxy = DebugProxy(False)
def test_send_error(self):
with self.assertRaises(Proxy... | 26.263158 | 57 | 0.719439 | 58 | 499 | 6.068966 | 0.431034 | 0.09375 | 0.073864 | 0.096591 | 0.272727 | 0.272727 | 0.272727 | 0.272727 | 0 | 0 | 0 | 0 | 0.198397 | 499 | 18 | 58 | 27.722222 | 0.88 | 0 | 0 | 0.153846 | 0 | 0 | 0.024048 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.230769 | false | 0 | 0.307692 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
01cea2af1f36f82d33231118be8f61a9bbdc3f63 | 218 | py | Python | python/physical/unit/bakers.py | afrl-quantum/physical | 71de3f7895b9bc1a1e9969701ad6980c5676b294 | [
"MIT"
] | 1 | 2020-10-01T21:21:54.000Z | 2020-10-01T21:21:54.000Z | python/physical/unit/bakers.py | afrl-quantum/physical | 71de3f7895b9bc1a1e9969701ad6980c5676b294 | [
"MIT"
] | null | null | null | python/physical/unit/bakers.py | afrl-quantum/physical | 71de3f7895b9bc1a1e9969701ad6980c5676b294 | [
"MIT"
] | 2 | 2018-03-21T15:53:27.000Z | 2018-07-26T09:29:37.000Z | from ..const import const
class bakers(const):
def __init__(self,prefix,unit):
const.__init__(self,prefix + 'bakers')
self.dozen = 13.0
self.doz = self.dozen
self.dz = self.dozen
| 19.818182 | 46 | 0.610092 | 29 | 218 | 4.310345 | 0.517241 | 0.216 | 0.224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0.270642 | 218 | 10 | 47 | 21.8 | 0.767296 | 0 | 0 | 0 | 0 | 0 | 0.02765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
01d1643ad620c5a4e0ab1873d5c574b82879369d | 216 | py | Python | apis_core/apis_entities/templatetags/apis_templatetags.py | sviatoplok/apis-core | c23718af2a51598e32684b9b954b594ceef1f0f7 | [
"MIT"
] | 1 | 2019-09-02T09:14:06.000Z | 2019-09-02T09:14:06.000Z | apis_core/apis_entities/templatetags/apis_templatetags.py | sviatoplok/apis-core | c23718af2a51598e32684b9b954b594ceef1f0f7 | [
"MIT"
] | null | null | null | apis_core/apis_entities/templatetags/apis_templatetags.py | sviatoplok/apis-core | c23718af2a51598e32684b9b954b594ceef1f0f7 | [
"MIT"
] | null | null | null | from django import template
register = template.Library()
@register.inclusion_tag('apis_entities/apis_create_entities.html', takes_context=True)
def apis_create_entities(context):
values = {}
return values
| 24 | 86 | 0.787037 | 27 | 216 | 6.037037 | 0.666667 | 0.122699 | 0.220859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12037 | 216 | 8 | 87 | 27 | 0.857895 | 0 | 0 | 0 | 0 | 0 | 0.180556 | 0.180556 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
01d4a78a88187074b1fbd9f890bf0b1570c7abb4 | 989 | py | Python | tests/test_editor_window.py | alexey4petrov/reinteract | 3e17f469467d065ff0d1f7970815bb49e21ca457 | [
"BSD-2-Clause"
] | 1 | 2020-11-11T05:20:35.000Z | 2020-11-11T05:20:35.000Z | tests/test_editor_window.py | alexey4petrov/reinteract | 3e17f469467d065ff0d1f7970815bb49e21ca457 | [
"BSD-2-Clause"
] | null | null | null | tests/test_editor_window.py | alexey4petrov/reinteract | 3e17f469467d065ff0d1f7970815bb49e21ca457 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
########################################################################
#
# Copyright 2008-2009 Owen Taylor
#
# This file is part of Reinteract and distributed under the terms
# of the BSD license. See the file COPYING in the Reinteract
# distribution for full details.
#
########################... | 30.90625 | 91 | 0.364004 | 66 | 989 | 5.227273 | 0.712121 | 0.098551 | 0.110145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009206 | 0.121335 | 989 | 31 | 92 | 31.903226 | 0.387802 | 0.469161 | 0 | 0 | 0 | 0 | 0.026667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
01edbcc02dfa60cf6c6773bc7f71934bc01189de | 6,898 | py | Python | src/osyris/core/array.py | osyris-project/osyris | bff42d864a7d5d248f7023216e32fe97bc06dca6 | [
"BSD-3-Clause"
] | 2 | 2022-02-08T14:41:19.000Z | 2022-02-08T14:41:51.000Z | src/osyris/core/array.py | osyris-project/osyris | bff42d864a7d5d248f7023216e32fe97bc06dca6 | [
"BSD-3-Clause"
] | 20 | 2022-01-24T09:34:14.000Z | 2022-03-30T20:01:39.000Z | src/osyris/core/array.py | osyris-project/osyris | bff42d864a7d5d248f7023216e32fe97bc06dca6 | [
"BSD-3-Clause"
] | null | null | null | # SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2022 Osyris contributors (https://github.com/osyris-project/osyris)
import numpy as np
from pint.quantity import Quantity
from pint.errors import DimensionalityError
from .base import Base
from .tools import value_to_string
from .. import units
APPLY_OP_TO_UNIT =... | 29.991304 | 84 | 0.592201 | 860 | 6,898 | 4.423256 | 0.169767 | 0.089905 | 0.074921 | 0.093849 | 0.293375 | 0.272082 | 0.1898 | 0.116193 | 0.096215 | 0.054679 | 0 | 0.004143 | 0.300087 | 6,898 | 229 | 85 | 30.122271 | 0.783761 | 0.017251 | 0 | 0.125 | 0 | 0 | 0.027155 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.244318 | false | 0.005682 | 0.034091 | 0.1875 | 0.568182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
01fd886cb003ce0ab587b3fc0b869e26c98aa84f | 631 | py | Python | problem/models/status.py | pwqbot/eoj3 | 46be6a6f192798e74eab7b327bb8df7ca73575d9 | [
"MIT"
] | 107 | 2017-03-15T11:53:45.000Z | 2019-09-06T11:23:44.000Z | problem/models/status.py | OS-EDU/eoj3 | f117dcd4e3cea7d150c3e3794e7255e00d486c88 | [
"MIT"
] | 27 | 2019-09-24T12:44:48.000Z | 2022-03-11T23:18:21.000Z | problem/models/status.py | OS-EDU/eoj3 | f117dcd4e3cea7d150c3e3794e7255e00d486c88 | [
"MIT"
] | 25 | 2019-10-11T10:39:12.000Z | 2022-03-18T05:15:57.000Z | from django.db import models
from account.models import User
class UserStatus(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name="submission_status")
contest_id = models.PositiveIntegerField(db_index=True)
total_count = models.PositiveIntegerField()
total_list = models.TextF... | 33.210526 | 92 | 0.784469 | 78 | 631 | 6.141026 | 0.5 | 0.217119 | 0.194154 | 0.150313 | 0.175365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115689 | 631 | 18 | 93 | 35.055556 | 0.858423 | 0 | 0 | 0 | 0 | 0 | 0.049128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.928571 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
bf13d7b06159163175095faeb002b38702211e0b | 2,799 | py | Python | kikimr/public/api/grpc/ydb_export_v1_pb2_grpc.py | MihanixA/ydb-python-sdk | d1b93c6d2409a87c350acd604915576891d1e4f3 | [
"Apache-2.0"
] | 19 | 2019-07-01T08:25:29.000Z | 2022-01-26T14:46:51.000Z | kikimr/public/api/grpc/ydb_export_v1_pb2_grpc.py | MihanixA/ydb-python-sdk | d1b93c6d2409a87c350acd604915576891d1e4f3 | [
"Apache-2.0"
] | 5 | 2019-07-02T13:36:42.000Z | 2021-09-14T06:46:48.000Z | kikimr/public/api/grpc/ydb_export_v1_pb2_grpc.py | MihanixA/ydb-python-sdk | d1b93c6d2409a87c350acd604915576891d1e4f3 | [
"Apache-2.0"
] | 10 | 2019-06-07T10:36:19.000Z | 2021-10-15T08:58:11.000Z | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from kikimr.public.api.protos import ydb_export_pb2 as kikimr_dot_public_dot_api_dot_protos_dot_ydb__export__pb2
class ExportServiceStub(object):
# missing associated documentation comment in .proto file
pass
def __init__(self, ... | 42.409091 | 125 | 0.78528 | 335 | 2,799 | 6.110448 | 0.268657 | 0.057157 | 0.058622 | 0.07914 | 0.724475 | 0.724475 | 0.694187 | 0.617 | 0.617 | 0.617 | 0 | 0.00964 | 0.147553 | 2,799 | 65 | 126 | 43.061538 | 0.848282 | 0.157556 | 0 | 0.243902 | 1 | 0 | 0.09398 | 0.045474 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0.04878 | 0.04878 | 0 | 0.195122 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bf13dd6f3eb3e631d63b8f42c16662040632e2a7 | 3,333 | py | Python | aurora.py | miriad/nanoleaf-aurora-python | d05088f16f229b4f33d4d82c97d2add4a16894dd | [
"Apache-2.0"
] | null | null | null | aurora.py | miriad/nanoleaf-aurora-python | d05088f16f229b4f33d4d82c97d2add4a16894dd | [
"Apache-2.0"
] | null | null | null | aurora.py | miriad/nanoleaf-aurora-python | d05088f16f229b4f33d4d82c97d2add4a16894dd | [
"Apache-2.0"
] | null | null | null | # aurora.py - Nanoleaf Aurora python library
#
# Copyright 2017 Zachary Cornelius
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | 30.577982 | 102 | 0.626163 | 452 | 3,333 | 4.424779 | 0.267699 | 0.07 | 0.091 | 0.085 | 0.3935 | 0.273 | 0.1765 | 0.034 | 0.034 | 0.034 | 0 | 0.007943 | 0.244524 | 3,333 | 108 | 103 | 30.861111 | 0.786338 | 0.185119 | 0 | 0.285714 | 0 | 0 | 0.127778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.271429 | false | 0 | 0.042857 | 0.142857 | 0.585714 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bf2eb22f2faeb74dacca055961c338188be8c5ba | 123 | py | Python | tests/syntax/assign_to_debug2.py | matan-h/friendly | 3ab0fc6541c837271e8865e247750007acdd18fb | [
"MIT"
] | 287 | 2019-04-08T13:18:29.000Z | 2021-03-14T19:10:21.000Z | tests/syntax/assign_to_debug2.py | matan-h/friendly | 3ab0fc6541c837271e8865e247750007acdd18fb | [
"MIT"
] | 191 | 2019-04-08T14:39:18.000Z | 2021-03-14T22:14:56.000Z | tests/syntax/assign_to_debug2.py | matan-h/friendly | 3ab0fc6541c837271e8865e247750007acdd18fb | [
"MIT"
] | 9 | 2019-04-08T12:54:08.000Z | 2020-11-20T02:26:27.000Z | """Should raise SyntaxError: cannot assign to __debug__ in Py 3.8
and assignment to keyword before."""
a.__debug__ = 1
| 24.6 | 65 | 0.731707 | 19 | 123 | 4.315789 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029703 | 0.178862 | 123 | 4 | 66 | 30.75 | 0.782178 | 0.780488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bf3959165cfb6c5f3c2f6e23ef5118b2f1dfcfaf | 5,968 | py | Python | tests/measurement_test.py | GerasimovRM/influxalchemy | c6527dc99f18f58da0d2f6602759be40f24d4b44 | [
"MIT"
] | 42 | 2016-08-16T11:36:10.000Z | 2022-02-14T15:50:53.000Z | tests/measurement_test.py | GerasimovRM/influxalchemy | c6527dc99f18f58da0d2f6602759be40f24d4b44 | [
"MIT"
] | 10 | 2017-02-01T16:16:06.000Z | 2022-01-21T23:25:22.000Z | tests/measurement_test.py | GerasimovRM/influxalchemy | c6527dc99f18f58da0d2f6602759be40f24d4b44 | [
"MIT"
] | 6 | 2016-10-26T13:10:21.000Z | 2021-02-19T10:27:07.000Z | """ InfluxAlchemy Measurements. """
from datetime import datetime
from influxalchemy.measurement import Measurement
from influxalchemy.meta import Tag
from influxalchemy.meta import TagExp
from influxalchemy.operations import EQ
from influxalchemy.operations import NE
from influxalchemy.operations import GT
from influ... | 24.260163 | 71 | 0.603552 | 785 | 5,968 | 4.489172 | 0.081529 | 0.150965 | 0.183882 | 0.199773 | 0.668558 | 0.623156 | 0.55647 | 0.494608 | 0.452327 | 0.372872 | 0 | 0.013693 | 0.216823 | 5,968 | 245 | 72 | 24.359184 | 0.740265 | 0.004524 | 0 | 0.356725 | 0 | 0 | 0.108377 | 0 | 0 | 0 | 0 | 0 | 0.216374 | 1 | 0.204678 | false | 0 | 0.070175 | 0 | 0.28655 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1726d2567e3a91f86f1caaf7fd11dbe6ea6a1494 | 161 | py | Python | np/reference/ch6code/pseudoinversion.py | focusunsink/study_python | 322326642db54df8725793d70a95d21ac40b6507 | [
"MIT"
] | null | null | null | np/reference/ch6code/pseudoinversion.py | focusunsink/study_python | 322326642db54df8725793d70a95d21ac40b6507 | [
"MIT"
] | null | null | null | np/reference/ch6code/pseudoinversion.py | focusunsink/study_python | 322326642db54df8725793d70a95d21ac40b6507 | [
"MIT"
] | null | null | null | import numpy as np
A = np.mat("4 11 14;8 7 -2")
print "A\n", A
pseudoinv = np.linalg.pinv(A)
print "Pseudo inverse\n", pseudoinv
print "Check", A * pseudoinv
| 16.1 | 35 | 0.664596 | 31 | 161 | 3.451613 | 0.645161 | 0.186916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 0.180124 | 161 | 9 | 36 | 17.888889 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.236025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
173952435220a93ec84a74af4558313a84362688 | 1,460 | py | Python | tfsnippet/modules/container/lambda_.py | 897615138/tfsnippet-jill | 2fc898a4def866c8d3c685168df1fa22083bb143 | [
"MIT"
] | null | null | null | tfsnippet/modules/container/lambda_.py | 897615138/tfsnippet-jill | 2fc898a4def866c8d3c685168df1fa22083bb143 | [
"MIT"
] | null | null | null | tfsnippet/modules/container/lambda_.py | 897615138/tfsnippet-jill | 2fc898a4def866c8d3c685168df1fa22083bb143 | [
"MIT"
] | 1 | 2020-02-08T15:33:41.000Z | 2020-02-08T15:33:41.000Z | from ..base import Module
__all__ = ['Lambda']
class Lambda(Module):
"""
Wrapping arbitrary function into a neural network :class:`Module`.
This class wraps an arbitrary function or lambda expression into
a neural network :class:`Module`, reusing the variables created
within the specified functi... | 30.416667 | 79 | 0.608219 | 160 | 1,460 | 5.43125 | 0.49375 | 0.037975 | 0.025316 | 0.041427 | 0.193326 | 0.193326 | 0.126582 | 0.126582 | 0.126582 | 0 | 0 | 0.002915 | 0.295205 | 1,460 | 47 | 80 | 31.06383 | 0.841594 | 0.678767 | 0 | 0 | 0 | 0 | 0.019108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1741c93e41409ac97a6de4b0f30609e899e5373a | 703 | py | Python | app_portfolio_projects/models.py | MichaelDoctor/Portfolio | 41d9104ef6d34f8eb146230b19038b445351c713 | [
"MIT"
] | null | null | null | app_portfolio_projects/models.py | MichaelDoctor/Portfolio | 41d9104ef6d34f8eb146230b19038b445351c713 | [
"MIT"
] | 4 | 2021-06-09T18:02:18.000Z | 2022-01-13T03:06:24.000Z | app_portfolio_projects/models.py | MichaelDoctor/Portfolio | 41d9104ef6d34f8eb146230b19038b445351c713 | [
"MIT"
] | null | null | null | from django.db import models
from datetime import datetime
class Project(models.Model):
class_name = models.CharField(
max_length=150,
default='col-lg-3 col-md-4 portfolio-item isotope-item'
)
img = models.ImageField(upload_to='photos/%Y/%m/%d/')
title = models.CharField(max_length=100... | 30.565217 | 70 | 0.688478 | 94 | 703 | 5.010638 | 0.553191 | 0.11465 | 0.191083 | 0.254777 | 0.171975 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.189189 | 703 | 22 | 71 | 31.954545 | 0.792982 | 0 | 0 | 0 | 0 | 0 | 0.091038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0.055556 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
174fe247d922831acdf4549e52f6dd777b13736b | 165 | py | Python | settings.py | ChunGaoY/vehicle-distance | b7a92a8f602b652bf34957f37071ebe70de92b81 | [
"MIT"
] | 60 | 2018-11-25T10:53:31.000Z | 2021-09-05T09:55:34.000Z | settings.py | fuhao7i/Vehicle-Distance-Detection | b7a92a8f602b652bf34957f37071ebe70de92b81 | [
"MIT"
] | 3 | 2019-05-02T13:21:53.000Z | 2021-06-04T07:39:12.000Z | settings.py | fuhao7i/Vehicle-Distance-Detection | b7a92a8f602b652bf34957f37071ebe70de92b81 | [
"MIT"
] | 30 | 2019-03-25T08:19:13.000Z | 2021-09-13T08:51:02.000Z | CALIB_FILE_NAME = "calib.p"
PERSPECTIVE_FILE_NAME = "projection.p"
VIDEO_SIZE = 1280, 720
ORIGINAL_SIZE = 1280, 720
MODEL_SIZE = 608., 608.
UNWARPED_SIZE = 500, 600 | 23.571429 | 38 | 0.757576 | 26 | 165 | 4.5 | 0.615385 | 0.136752 | 0.188034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0.133333 | 165 | 7 | 39 | 23.571429 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0.114458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
175f6fea998cd851b5d19f586682721957c2e453 | 191 | py | Python | moto/transcribe/urls.py | orenmazor/moto | 4778377e8ecaf729d26602a2c5202b72c1438503 | [
"Apache-2.0"
] | 1 | 2021-12-12T04:23:06.000Z | 2021-12-12T04:23:06.000Z | moto/transcribe/urls.py | orenmazor/moto | 4778377e8ecaf729d26602a2c5202b72c1438503 | [
"Apache-2.0"
] | 4 | 2017-09-30T07:52:52.000Z | 2021-12-13T06:56:55.000Z | moto/transcribe/urls.py | orenmazor/moto | 4778377e8ecaf729d26602a2c5202b72c1438503 | [
"Apache-2.0"
] | 2 | 2021-11-24T08:05:43.000Z | 2021-11-25T16:18:48.000Z | from __future__ import unicode_literals
from .responses import TranscribeResponse
url_bases = ["https?://transcribe.(.+).amazonaws.com"]
url_paths = {"{0}/$": TranscribeResponse.dispatch}
| 23.875 | 54 | 0.759162 | 20 | 191 | 6.9 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00578 | 0.094241 | 191 | 7 | 55 | 27.285714 | 0.791908 | 0 | 0 | 0 | 0 | 0 | 0.225131 | 0.198953 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
176a76bbe9888382d9a3abc774dede79b852884a | 180 | py | Python | setup.py | artizirk/noby | 162716086fdaea53f08c623ae17751be29201246 | [
"MIT"
] | 1 | 2017-07-01T13:19:22.000Z | 2017-07-01T13:19:22.000Z | setup.py | artizirk/noby | 162716086fdaea53f08c623ae17751be29201246 | [
"MIT"
] | 5 | 2017-09-08T08:33:21.000Z | 2019-02-05T09:03:58.000Z | setup.py | artizirk/noby | 162716086fdaea53f08c623ae17751be29201246 | [
"MIT"
] | 2 | 2018-06-25T10:06:12.000Z | 2021-03-09T17:03:18.000Z | #!/usr/bin/env python
from setuptools import setup
from noby import __version__
setup(
version = __version__,
entry_points = {'console_scripts': ['noby = noby:main']}
)
| 16.363636 | 60 | 0.705556 | 22 | 180 | 5.318182 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177778 | 180 | 10 | 61 | 18 | 0.790541 | 0.111111 | 0 | 0 | 0 | 0 | 0.194969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
178953a7d7f87958ac58bb8129f5bfe80890531e | 80 | py | Python | .history/ClassFiles/DataTypes/Number_20201230220753.py | minefarmer/Comprehensive-Python | f97b9b83ec328fc4e4815607e6a65de90bb8de66 | [
"Unlicense"
] | null | null | null | .history/ClassFiles/DataTypes/Number_20201230220753.py | minefarmer/Comprehensive-Python | f97b9b83ec328fc4e4815607e6a65de90bb8de66 | [
"Unlicense"
] | null | null | null | .history/ClassFiles/DataTypes/Number_20201230220753.py | minefarmer/Comprehensive-Python | f97b9b83ec328fc4e4815607e6a65de90bb8de66 | [
"Unlicense"
] | null | null | null | """ Number Data types
Integers(int)
Floating Point(float)
Integer
"""
| 10 | 29 | 0.6375 | 9 | 80 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2375 | 80 | 7 | 30 | 11.428571 | 0.836066 | 0.7625 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
178999d8d0f76b6ef43110aa3fd5e40618498d28 | 531 | py | Python | qcloudsdkcam/ListGroupsForUserRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdkcam/ListGroupsForUserRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdkcam/ListGroupsForUserRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from qcloudsdkcore.request import Request
class ListGroupsForUserRequest(Request):
def __init__(self):
super(ListGroupsForUserRequest, self).__init__(
'cam', 'qcloudcliV1', 'ListGroupsForUser', 'cam.api.qcloud.com')
def get_page(self):
return self.get_para... | 24.136364 | 76 | 0.634652 | 65 | 531 | 4.938462 | 0.415385 | 0.074766 | 0.087227 | 0.105919 | 0.161994 | 0.161994 | 0 | 0 | 0 | 0 | 0 | 0.004819 | 0.218456 | 531 | 21 | 77 | 25.285714 | 0.768675 | 0.039548 | 0 | 0 | 0 | 0 | 0.120079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0.076923 | 0.153846 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bd6b63a4491d0865f3aaac155b3d650c899ee9d4 | 658 | py | Python | language/python_rasa/personal/example_core/second/bot.py | Wabri/Notes | a194fbecf97f5b45157049693ae1741ec7f0a60b | [
"MIT"
] | 9 | 2018-06-26T11:36:51.000Z | 2021-07-26T10:47:42.000Z | language/python_rasa/personal/example_core/second/bot.py | Wabri/Notes | a194fbecf97f5b45157049693ae1741ec7f0a60b | [
"MIT"
] | 3 | 2018-06-27T14:41:28.000Z | 2018-07-12T08:08:47.000Z | language/python_rasa/personal/example_core/second/bot.py | Wabri/Notes | a194fbecf97f5b45157049693ae1741ec7f0a60b | [
"MIT"
] | 2 | 2019-05-09T09:17:48.000Z | 2021-07-26T10:47:44.000Z | from rasa_core import utils
from rasa_core.actions import Action
from rasa_core.agent import Agent
from rasa_core.events import SlotSet
from rasa_core.interpreter import RasaNLUInterpreter
class RestaurantAPI(object):
def search(self, info):
return "papi's pizza place"
class ActionSearchRestaurants(Action... | 32.9 | 71 | 0.746201 | 78 | 658 | 6.153846 | 0.551282 | 0.083333 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174772 | 658 | 19 | 72 | 34.631579 | 0.883978 | 0 | 0 | 0 | 0 | 0 | 0.121581 | 0.037994 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.3125 | 0.125 | 0.8125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
bd8d007c562528c72a6e2ea38f1cdd6e42955e00 | 321 | py | Python | solutions/python3/732.py | sm2774us/amazon_interview_prep_2021 | f580080e4a6b712b0b295bb429bf676eb15668de | [
"MIT"
] | 42 | 2020-08-02T07:03:49.000Z | 2022-03-26T07:50:15.000Z | solutions/python3/732.py | ajayv13/leetcode | de02576a9503be6054816b7444ccadcc0c31c59d | [
"MIT"
] | null | null | null | solutions/python3/732.py | ajayv13/leetcode | de02576a9503be6054816b7444ccadcc0c31c59d | [
"MIT"
] | 40 | 2020-02-08T02:50:24.000Z | 2022-03-26T15:38:10.000Z | class MyCalendarThree:
def __init__(self):
self.times = []
def book(self, start, end):
bisect.insort(self.times, (start, 1))
bisect.insort(self.times, (end, -1))
res = cur = 0
for _, x in self.times:
cur += x
res = max(res, cur)
return re... | 24.692308 | 45 | 0.507788 | 40 | 321 | 3.95 | 0.5 | 0.227848 | 0.202532 | 0.265823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 0.364486 | 321 | 13 | 46 | 24.692308 | 0.759804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bd9928f8fbdba56af3a044655219e0495f9c037d | 57 | py | Python | make/photon/prepare/migrations/__init__.py | mjthomp95/harbor | d82dfaf11e3a4f52ed1d54c32b884a79290d477d | [
"Apache-2.0"
] | 1 | 2019-06-06T02:39:40.000Z | 2019-06-06T02:39:40.000Z | make/photon/prepare/migrations/__init__.py | koulq/harbor | fdb82ae4fa1d5e8987caa076feb7a61f5baae902 | [
"Apache-2.0"
] | null | null | null | make/photon/prepare/migrations/__init__.py | koulq/harbor | fdb82ae4fa1d5e8987caa076feb7a61f5baae902 | [
"Apache-2.0"
] | null | null | null | import os
MIGRATION_BASE_DIR = os.path.dirname(__file__) | 19 | 46 | 0.824561 | 9 | 57 | 4.555556 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087719 | 57 | 3 | 46 | 19 | 0.788462 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bda67452945e02b8b6136af05f8303db562d88ee | 583 | py | Python | tests/test_webapp.py | patymori/packtools | ab6e2e2de1c9fcb25feabc55e571b8eddcbf3d14 | [
"BSD-2-Clause"
] | 8 | 2017-05-26T23:21:13.000Z | 2019-11-23T17:38:17.000Z | tests/test_webapp.py | patymori/packtools | ab6e2e2de1c9fcb25feabc55e571b8eddcbf3d14 | [
"BSD-2-Clause"
] | 198 | 2015-01-26T16:34:03.000Z | 2022-03-12T00:14:44.000Z | tests/test_webapp.py | patymori/packtools | ab6e2e2de1c9fcb25feabc55e571b8eddcbf3d14 | [
"BSD-2-Clause"
] | 13 | 2015-04-03T13:39:49.000Z | 2021-09-12T11:58:39.000Z | import unittest
import os
from flask_testing import TestCase
from packtools.webapp import app
class TestWebAppTests(TestCase):
def create_app(self):
return app.create_app("packtools.webapp.config.default.TestingConfig")
def test_packtools_stylechecker(self):
response = self.client.get("/... | 22.423077 | 78 | 0.722127 | 71 | 583 | 5.816901 | 0.507042 | 0.072639 | 0.077482 | 0.106538 | 0.227603 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004124 | 0.168096 | 583 | 25 | 79 | 23.32 | 0.847423 | 0 | 0 | 0 | 0 | 0 | 0.203098 | 0.077453 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.230769 | false | 0 | 0.307692 | 0.076923 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
bdaaad946f1b2ea96476d1fb7bf5639f8b9584bc | 527 | py | Python | July 2021/Count Vowels Permutation.py | parikshitgupta1/leetcode | eba6c11740dc7597204af127c0f4c2163376294f | [
"MIT"
] | null | null | null | July 2021/Count Vowels Permutation.py | parikshitgupta1/leetcode | eba6c11740dc7597204af127c0f4c2163376294f | [
"MIT"
] | null | null | null | July 2021/Count Vowels Permutation.py | parikshitgupta1/leetcode | eba6c11740dc7597204af127c0f4c2163376294f | [
"MIT"
] | null | null | null | class Solution:
def countVowelPermutation(self, n: int) -> int:
mod = 10**9 + 7
dp = [[0] * 5 for _ in range(n)]
for j in range(5):
dp[0][j] = 1
for i in range(1, n):
dp[i][0] = (dp[i-1][1] + dp[i-1][2] + dp[i-1][4]) % mod
dp[i][1] = (dp[i-1][0]... | 31 | 67 | 0.381404 | 99 | 527 | 2.020202 | 0.252525 | 0.225 | 0.22 | 0.1 | 0.31 | 0.27 | 0.27 | 0 | 0 | 0 | 0 | 0.107784 | 0.366224 | 527 | 16 | 68 | 32.9375 | 0.491018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bdd284e9c4e203861c2d0f8ae9f348617a8b36ef | 184 | py | Python | rabbitmq_client/exceptions.py | latonaio/rabbitmq-python-client | 2e5146756b13016a6f6ccbe7f687fce79568841a | [
"MIT"
] | 8 | 2021-10-01T07:10:58.000Z | 2021-11-13T06:14:21.000Z | rabbitmq_client/exceptions.py | latonaio/rabbitmq-python-client | 2e5146756b13016a6f6ccbe7f687fce79568841a | [
"MIT"
] | null | null | null | rabbitmq_client/exceptions.py | latonaio/rabbitmq-python-client | 2e5146756b13016a6f6ccbe7f687fce79568841a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
class RabbitmqClientError(Exception):
pass
class RabbitmqConnectionError(RabbitmqClientError):
pass
class QueueNotFoundError(RabbitmqClientError):
pass
| 14.153846 | 51 | 0.782609 | 15 | 184 | 9.6 | 0.6 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006173 | 0.119565 | 184 | 12 | 52 | 15.333333 | 0.882716 | 0.11413 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
bdd2e61d28268488ae73ba6d84ed974430a42926 | 1,094 | py | Python | cliva_fl/utils/validation_buffer.py | DataManagementLab/thesis-fl_client-side_validation | 0f6a35d08966133e6a8c13a110b9307d91f2d9cb | [
"MIT"
] | null | null | null | cliva_fl/utils/validation_buffer.py | DataManagementLab/thesis-fl_client-side_validation | 0f6a35d08966133e6a8c13a110b9307d91f2d9cb | [
"MIT"
] | null | null | null | cliva_fl/utils/validation_buffer.py | DataManagementLab/thesis-fl_client-side_validation | 0f6a35d08966133e6a8c13a110b9307d91f2d9cb | [
"MIT"
] | null | null | null |
from cliva_fl.utils import ValidationSet
class ValidationBuffer:
def __init__(self, epoch, buffer_size):
self.epoch = epoch
self.buffer_size = buffer_size
self.buffer = dict()
def set_init_model_state(self, model):
self.init_model_state_dict = { k: v.detach().clone().cpu(... | 26.047619 | 107 | 0.613346 | 145 | 1,094 | 4.455172 | 0.317241 | 0.154799 | 0.108359 | 0.083591 | 0.102167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.28245 | 1,094 | 41 | 108 | 26.682927 | 0.82293 | 0 | 0 | 0 | 0 | 0 | 0.043001 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0.392857 | false | 0 | 0.035714 | 0.25 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bdd508385184a646cb52dea1ab5be8b54294a5e6 | 77 | py | Python | login.py | xingchenyues/python18 | 49bf34ed98050f7be512f6cbbd43045ad0fdc888 | [
"MIT"
] | null | null | null | login.py | xingchenyues/python18 | 49bf34ed98050f7be512f6cbbd43045ad0fdc888 | [
"MIT"
] | null | null | null | login.py | xingchenyues/python18 | 49bf34ed98050f7be512f6cbbd43045ad0fdc888 | [
"MIT"
] | null | null | null | def login():
return 'login info'
a = 18
num1 = 30
num2 = 10
num2 = 20
| 5.923077 | 20 | 0.571429 | 13 | 77 | 3.384615 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207547 | 0.311688 | 77 | 12 | 21 | 6.416667 | 0.622642 | 0 | 0 | 0 | 0 | 0 | 0.12987 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.166667 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
bdff2d438944d8aa88f687cc39b8e841091e0dc9 | 4,541 | py | Python | backend/data_import/pipeline/label.py | stungkit/doccano | 922d5f0e2f6ced6cd0d5ca7cafa0ae57cf07bea9 | [
"MIT"
] | 2,082 | 2018-05-09T07:16:21.000Z | 2019-12-01T16:41:50.000Z | backend/data_import/pipeline/label.py | stungkit/doccano | 922d5f0e2f6ced6cd0d5ca7cafa0ae57cf07bea9 | [
"MIT"
] | 365 | 2018-07-31T13:49:05.000Z | 2019-11-29T11:25:17.000Z | backend/data_import/pipeline/label.py | admariner/doccano | 922d5f0e2f6ced6cd0d5ca7cafa0ae57cf07bea9 | [
"MIT"
] | 476 | 2018-08-17T06:43:57.000Z | 2019-12-01T09:47:08.000Z | import abc
import uuid
from typing import Any, Optional
from pydantic import UUID4, BaseModel, ConstrainedStr, NonNegativeInt, root_validator
from .label_types import LabelTypes
from examples.models import Example
from label_types.models import CategoryType, LabelType, RelationType, SpanType
from labels.models import... | 30.682432 | 97 | 0.676283 | 544 | 4,541 | 5.470588 | 0.167279 | 0.05914 | 0.047043 | 0.036962 | 0.483199 | 0.46707 | 0.407594 | 0.315188 | 0.299059 | 0.233871 | 0 | 0.003123 | 0.2244 | 4,541 | 147 | 98 | 30.891156 | 0.841851 | 0 | 0 | 0.363636 | 0 | 0 | 0.029068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209091 | false | 0 | 0.118182 | 0.145455 | 0.663636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
da20dcff16fdb5aed074c40b7419e7ef2e8ce9ba | 241 | py | Python | release/scripts/mgear/animbits/cache_manager/__init__.py | yamahigashi/mgear4 | d439a69bbdc0ec727cded924a616b14194dfbe00 | [
"MIT"
] | 72 | 2020-09-28T20:00:59.000Z | 2022-03-25T14:35:14.000Z | release/scripts/mgear/animbits/cache_manager/__init__.py | Mikfr83/mgear4 | 2fa28080027f1004e8e0139ccf93f7ec2448b1fd | [
"MIT"
] | 101 | 2020-09-28T19:53:53.000Z | 2022-03-31T01:44:41.000Z | release/scripts/mgear/animbits/cache_manager/__init__.py | Mikfr83/mgear4 | 2fa28080027f1004e8e0139ccf93f7ec2448b1fd | [
"MIT"
] | 32 | 2020-10-09T10:49:45.000Z | 2022-03-31T08:27:37.000Z | """ ANIMATION CACHE MANAGER
mGear's animation cache manager is a tool that allows generating a Alembic GPU
cache representation of references rigs inside Autodesk Maya.
:module: mgear.animbits.cache_manager.__init__
"""
__version__ = 1.0
| 24.1 | 78 | 0.79668 | 34 | 241 | 5.382353 | 0.764706 | 0.196721 | 0.229508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009662 | 0.141079 | 241 | 9 | 79 | 26.777778 | 0.874396 | 0.883817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
da217da852a1f46c24a82a6831deb8486ccbca7a | 522 | py | Python | src/sima/simo/soilfriction.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/simo/soilfriction.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/simo/soilfriction.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | # Generated with SoilFriction
#
from enum import Enum
from enum import auto
class SoilFriction(Enum):
""""""
OPEN_COMPARTMENT = auto()
SOIL_FRACTURE = auto()
OPEN_COMPARTMENT_HORSLIDING = auto()
def label(self):
if self == SoilFriction.OPEN_COMPARTMENT:
return "Open compartmen... | 29 | 60 | 0.668582 | 54 | 522 | 6.314815 | 0.37037 | 0.26393 | 0.158358 | 0.129032 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252874 | 522 | 18 | 61 | 29 | 0.874359 | 0.051724 | 0 | 0 | 1 | 0 | 0.131687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.769231 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
da3ca6db7224a5e99109c8982546475cfbb82a2c | 156 | py | Python | fesom2_prefect/__init__.py | pgierz/fesom2_prefect | 504fd975ca84fa4e439ce56bebb5aee42bb6dbb3 | [
"MIT"
] | null | null | null | fesom2_prefect/__init__.py | pgierz/fesom2_prefect | 504fd975ca84fa4e439ce56bebb5aee42bb6dbb3 | [
"MIT"
] | null | null | null | fesom2_prefect/__init__.py | pgierz/fesom2_prefect | 504fd975ca84fa4e439ce56bebb5aee42bb6dbb3 | [
"MIT"
] | null | null | null | """fesom2_prefect - Prefect 1.0 Workflows For FESOM 2"""
__version__ = "0.1.0"
__author__ = "Paul Gierz <paul.gierz@awi.de>"
from . import compile_fesom2
| 22.285714 | 56 | 0.717949 | 24 | 156 | 4.25 | 0.708333 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059701 | 0.141026 | 156 | 6 | 57 | 26 | 0.701493 | 0.320513 | 0 | 0 | 0 | 0 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
da4ecc1bca77282c0063c5b2345d6a284338c670 | 1,154 | py | Python | components/topmenu/dropmenu.py | Solomon1999/kivystudio | 1eeee68b1437bf4d26f6bb222dc6c127ca67ee58 | [
"MIT"
] | 1 | 2020-02-18T17:41:07.000Z | 2020-02-18T17:41:07.000Z | components/topmenu/dropmenu.py | Solomon1999/kivystudio | 1eeee68b1437bf4d26f6bb222dc6c127ca67ee58 | [
"MIT"
] | null | null | null | components/topmenu/dropmenu.py | Solomon1999/kivystudio | 1eeee68b1437bf4d26f6bb222dc6c127ca67ee58 | [
"MIT"
] | null | null | null | from kivy.uix.dropdown import DropDown
from kivy.uix.behaviors import ButtonBehavior
from kivy.uix.boxlayout import BoxLayout
from kivy.lang import Builder
from kivystudio.behaviors import HoverBehavior
from kivystudio.widgets.dropdown import DropDownBase
import os
filepath = os.path.dirname(__file__)
Builder.load_fi... | 20.607143 | 59 | 0.682842 | 138 | 1,154 | 5.398551 | 0.311594 | 0.075168 | 0.088591 | 0.12349 | 0.27651 | 0.27651 | 0.27651 | 0.27651 | 0.27651 | 0.27651 | 0 | 0 | 0.213172 | 1,154 | 55 | 60 | 20.981818 | 0.820485 | 0 | 0 | 0.432432 | 0 | 0 | 0.009532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.297297 | false | 0.216216 | 0.189189 | 0 | 0.621622 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
da527eee402053793a4ed8f9b2a12009e60d0029 | 461 | py | Python | tensorbox/__init__.py | SvenGronauer/tensorbox | 8ca0da9a8fe345572bccdbda55bcd75f1bc1b28c | [
"MIT"
] | null | null | null | tensorbox/__init__.py | SvenGronauer/tensorbox | 8ca0da9a8fe345572bccdbda55bcd75f1bc1b28c | [
"MIT"
] | null | null | null | tensorbox/__init__.py | SvenGronauer/tensorbox | 8ca0da9a8fe345572bccdbda55bcd75f1bc1b28c | [
"MIT"
] | null | null | null | from gym.envs.registration import register
""" Register custom environments at OpenAI Gym
"""
register(
id='Sawtooth-v0',
entry_point='tensorbox.data_driven_control.sawtooth_env:SawtoothWaveEnv',
max_episode_steps=512,
)
register(
id='PT1System-v0',
entry_point='tensorbox.data_driven_control.cont... | 21.952381 | 77 | 0.767896 | 55 | 461 | 6.181818 | 0.545455 | 0.088235 | 0.105882 | 0.185294 | 0.417647 | 0.417647 | 0.417647 | 0.305882 | 0.305882 | 0 | 0 | 0.024752 | 0.123644 | 461 | 20 | 78 | 23.05 | 0.816832 | 0 | 0 | 0.214286 | 0 | 0 | 0.508516 | 0.423358 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
da68599db1b2b538f99b3e6d36625939515b56a7 | 301 | py | Python | custom_auth_user/user/commands/register_command.py | westofpluto/django_custom_auth_user | e8dd1bbbdf943982d68a3183b4931a34b2b2c3f5 | [
"MIT"
] | null | null | null | custom_auth_user/user/commands/register_command.py | westofpluto/django_custom_auth_user | e8dd1bbbdf943982d68a3183b4931a34b2b2c3f5 | [
"MIT"
] | null | null | null | custom_auth_user/user/commands/register_command.py | westofpluto/django_custom_auth_user | e8dd1bbbdf943982d68a3183b4931a34b2b2c3f5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8
def register(user_store, email, username, first_name, last_name, password):
"""
Register command
"""
return user_store.create(
email=email,
username=username,
first_name=first_name,
last_name=last_name,
password=password)
| 20.066667 | 75 | 0.624585 | 34 | 301 | 5.294118 | 0.470588 | 0.15 | 0.2 | 0.188889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004545 | 0.269103 | 301 | 14 | 76 | 21.5 | 0.813636 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.285714 | 0 | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
da7b72b5f2f0de1286212b0ee73492ee8a5b6c0e | 323 | py | Python | examples/play_tvz.py | Yousazoe/oxBot | f677595c97369ac0548329f074cd44b916a84848 | [
"MIT"
] | null | null | null | examples/play_tvz.py | Yousazoe/oxBot | f677595c97369ac0548329f074cd44b916a84848 | [
"MIT"
] | null | null | null | examples/play_tvz.py | Yousazoe/oxBot | f677595c97369ac0548329f074cd44b916a84848 | [
"MIT"
] | null | null | null | from examples.zerg.zerg_rush import ZergRushBot
from sc2 import maps
from sc2.data import Race
from sc2.main import run_game
from sc2.player import Bot, Human
def main():
run_game(maps.get("Abyssal Reef LE"), [Human(Race.Terran), Bot(Race.Zerg, ZergRushBot())], realtime=True)
if __name__ == "__main__":
main... | 23.071429 | 109 | 0.736842 | 50 | 323 | 4.54 | 0.52 | 0.123348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.145511 | 323 | 13 | 110 | 24.846154 | 0.807971 | 0 | 0 | 0 | 0 | 0 | 0.071207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.555556 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
da7d97d2654f6237585d311d4f1e8a33d9255ff3 | 3,113 | py | Python | Wateks/filter_functions.py | jziemer1996/Wateks | 362dc46abf4ab428d6ccce7a61ad879eddc07ef1 | [
"MIT"
] | null | null | null | Wateks/filter_functions.py | jziemer1996/Wateks | 362dc46abf4ab428d6ccce7a61ad879eddc07ef1 | [
"MIT"
] | null | null | null | Wateks/filter_functions.py | jziemer1996/Wateks | 362dc46abf4ab428d6ccce7a61ad879eddc07ef1 | [
"MIT"
] | null | null | null | # ----------------------------------------FILTER FUNCTIONS MODULE----------------------------------- #
# Module to filter the preprocessed raster stacks to minimize the influence of soil moisture a.s.o.
# It is highly recommended to execute this module before analyzing the raster stack!
# Make use of small filter size... | 43.236111 | 118 | 0.640218 | 430 | 3,113 | 4.602326 | 0.288372 | 0.050531 | 0.052552 | 0.039414 | 0.679131 | 0.679131 | 0.679131 | 0.645781 | 0.645781 | 0.622537 | 0 | 0.015114 | 0.21362 | 3,113 | 72 | 119 | 43.236111 | 0.793301 | 0.773209 | 0 | 0.571429 | 0 | 0 | 0.019268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
16f8578dccd9954dbd3b085c7b1d34bb1fc12bb0 | 153 | py | Python | project/base/models.py | iMerica/dj-models-demo | f03837e1d26c5bc8de836937074df172c409b404 | [
"MIT"
] | null | null | null | project/base/models.py | iMerica/dj-models-demo | f03837e1d26c5bc8de836937074df172c409b404 | [
"MIT"
] | null | null | null | project/base/models.py | iMerica/dj-models-demo | f03837e1d26c5bc8de836937074df172c409b404 | [
"MIT"
] | null | null | null | from djmodels.db import models
class Person(models.Model):
name = models.CharField(max_length=50)
age = models.PositiveIntegerField(default=1)
| 21.857143 | 48 | 0.75817 | 20 | 153 | 5.75 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022901 | 0.143791 | 153 | 6 | 49 | 25.5 | 0.854962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
16f98334081be427e864a05eb1f539f993125806 | 432 | py | Python | bugtests/test125.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | bugtests/test125.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | bugtests/test125.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | """
Check reload of module.
"""
import support
src = """
def fun2():
return %s
"""
def mk(v):
f = open("test125m.py", "w")
f.write(src % v)
f.close()
mk("1")
import test125m
from test125m import fun2
support.compare(fun2(), "1")
import time
time.sleep(2)
mk("2")
reload(test125m)
support.compar... | 11.076923 | 37 | 0.622685 | 63 | 432 | 4.269841 | 0.412698 | 0.208178 | 0.200743 | 0.163569 | 0.297398 | 0.297398 | 0.297398 | 0 | 0 | 0 | 0 | 0.090909 | 0.185185 | 432 | 38 | 38 | 11.368421 | 0.673295 | 0.053241 | 0 | 0.190476 | 0 | 0 | 0.1125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.238095 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e52d61a4c3bcd02e9f551f0f66c7b5bdf56abfc5 | 488 | py | Python | cli/utils.py | Exia-Aix-2016/Data-Project | f8f40cb001dbd74e630b42b930532a364ae0aa5d | [
"MIT"
] | null | null | null | cli/utils.py | Exia-Aix-2016/Data-Project | f8f40cb001dbd74e630b42b930532a364ae0aa5d | [
"MIT"
] | null | null | null | cli/utils.py | Exia-Aix-2016/Data-Project | f8f40cb001dbd74e630b42b930532a364ae0aa5d | [
"MIT"
] | null | null | null | from PyInquirer import Validator, ValidationError
class NumberValidator(Validator):
def validate(self, document):
try:
int(document.text)
except ValueError:
raise ValidationError(
message='Please enter a number',
cursor_position=len(document.... | 22.181818 | 73 | 0.641393 | 55 | 488 | 5.672727 | 0.690909 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268443 | 488 | 21 | 74 | 23.238095 | 0.87395 | 0.036885 | 0 | 0 | 0 | 0 | 0.053419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.230769 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e56ee79a471a4876911430d9c6d1d9700b957b1d | 468 | py | Python | backend/users/tests/utils.py | kindziora/doccano | 68eac2e7d3a9cf720997074fba36ed2c151571b4 | [
"MIT"
] | null | null | null | backend/users/tests/utils.py | kindziora/doccano | 68eac2e7d3a9cf720997074fba36ed2c151571b4 | [
"MIT"
] | null | null | null | backend/users/tests/utils.py | kindziora/doccano | 68eac2e7d3a9cf720997074fba36ed2c151571b4 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from rest_framework.authtoken.models import Token
def make_user(username: str = "bob"):
user_model = get_user_model()
user, _ = user_model.objects.get_or_create(username=username, password="pass")
return user
def get_user(id: int):
user_model = get_user_m... | 31.2 | 82 | 0.745726 | 73 | 468 | 4.520548 | 0.369863 | 0.190909 | 0.109091 | 0.09697 | 0.127273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147436 | 468 | 15 | 83 | 31.2 | 0.827068 | 0 | 0 | 0.166667 | 0 | 0 | 0.014925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.083333 | 0.166667 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
e57ab65df21c3a0ad9c6c12c12d8d6ce90d2e99d | 640 | py | Python | homewizard_energy/errors.py | DCSBL/python-homewizard-energy | e3b08f8f5327e41f1cc2a0389b527ae9e94da80e | [
"Apache-2.0"
] | 1 | 2022-02-28T14:06:08.000Z | 2022-02-28T14:06:08.000Z | homewizard_energy/errors.py | DCSBL/python-homewizard-energy | e3b08f8f5327e41f1cc2a0389b527ae9e94da80e | [
"Apache-2.0"
] | 32 | 2022-02-11T04:38:57.000Z | 2022-03-30T04:43:11.000Z | homewizard_energy/errors.py | DCSBL/python-homewizard-energy | e3b08f8f5327e41f1cc2a0389b527ae9e94da80e | [
"Apache-2.0"
] | 1 | 2022-03-14T08:44:08.000Z | 2022-03-14T08:44:08.000Z | """python-homewizard-energy errors."""
class HomeWizardEnergyException(Exception):
"""Base error for python-homewizard-energy."""
class RequestError(HomeWizardEnergyException):
"""Unable to fulfill request.
Raised when host or API cannot be reached.
"""
class InvalidStateError(HomeWizardEnergyExc... | 25.6 | 76 | 0.74375 | 70 | 640 | 6.8 | 0.6 | 0.084034 | 0.220588 | 0.159664 | 0.205882 | 0.205882 | 0.205882 | 0 | 0 | 0 | 0 | 0 | 0.157813 | 640 | 24 | 77 | 26.666667 | 0.883117 | 0.503125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e5b986b666f713cf7cd7e743ede00ca7199e5886 | 543 | py | Python | store/utils/constants.py | rodrigoarenas456/Backend_Python | 7f787723bb29637be8f4513f073a56d90e6a3316 | [
"MIT"
] | 1 | 2021-07-23T04:53:26.000Z | 2021-07-23T04:53:26.000Z | store/utils/constants.py | rodrigo-arenas/Backend_Python | 7f787723bb29637be8f4513f073a56d90e6a3316 | [
"MIT"
] | 1 | 2020-06-14T23:38:57.000Z | 2020-06-14T23:38:57.000Z | store/utils/constants.py | rodrigo-arenas/Backend_Python | 7f787723bb29637be8f4513f073a56d90e6a3316 | [
"MIT"
] | null | null | null | # Generate key with openssl rand -hex 32
JWT_SECRET_KEY = "46e5c95a2d980476afb2d679b37bb2c8990c25b4ea1075514f67f62f77daf306"
JWT_ALGORITHM = "HS256"
JWT_EXPIRATION_MINUTES = 15
# TODO: Move to environment variables
DB_HOST = 'localhost'
DB_NAME = 'bookstore'
DB_USER = 'postgres'
DB_PASSWORD = 'postgres'
DB_PORT = 5432... | 22.625 | 83 | 0.782689 | 71 | 543 | 5.647887 | 0.492958 | 0.074813 | 0.074813 | 0.109726 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121849 | 0.123389 | 543 | 23 | 84 | 23.608696 | 0.720588 | 0.13628 | 0 | 0 | 1 | 0 | 0.381974 | 0.137339 | 0 | 0 | 0 | 0.043478 | 0 | 1 | 0 | false | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e5c88a0025a9d579379f6ae8e1bf14b1bcc4f393 | 171 | py | Python | tests/timezones/urls.py | bpeschier/django | f54c0ec06e390dc5bce95fdccbcb51d6423da4f9 | [
"BSD-3-Clause"
] | null | null | null | tests/timezones/urls.py | bpeschier/django | f54c0ec06e390dc5bce95fdccbcb51d6423da4f9 | [
"BSD-3-Clause"
] | null | null | null | tests/timezones/urls.py | bpeschier/django | f54c0ec06e390dc5bce95fdccbcb51d6423da4f9 | [
"BSD-3-Clause"
] | 1 | 2019-11-25T15:01:05.000Z | 2019-11-25T15:01:05.000Z | from django.conf.urls import include, url
from . import admin as tz_admin # NOQA: register tz_admin
urlpatterns = [
url(r'^admin/', include(tz_admin.site.urls)),
]
| 21.375 | 58 | 0.71345 | 26 | 171 | 4.576923 | 0.576923 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163743 | 171 | 7 | 59 | 24.428571 | 0.832168 | 0.134503 | 0 | 0 | 0 | 0 | 0.047945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e5e09e6a1c6e9499683ec54b6dac83f509faf222 | 63,900 | py | Python | tasks/crypto/numeric/task/secret.py | keltecc/ctfcup-2020-quals | a8d3702b3449c4e459e80aea781bed85175fee02 | [
"MIT"
] | null | null | null | tasks/crypto/numeric/task/secret.py | keltecc/ctfcup-2020-quals | a8d3702b3449c4e459e80aea781bed85175fee02 | [
"MIT"
] | null | null | null | tasks/crypto/numeric/task/secret.py | keltecc/ctfcup-2020-quals | a8d3702b3449c4e459e80aea781bed85175fee02 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.7
import numpy as np
key = np.matrix([
[8534, 9129, 9740, 3384, 3110, 16129, 15401, 12987, 3753, 12697, 10306, 9469, 14973, 15168, 3567, 4454, 13392, 1261, 12089, 8777, 5854, 6955, 12953, 5847, 1667, 2847, 12872, 5088, 6779, 502, 11055, 16209, 11007, 15250, 12842, 3324, 16223, 8843, 10701,... | 591.666667 | 652 | 0.677246 | 10,012 | 63,900 | 4.322413 | 0.747703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.808327 | 0.162958 | 63,900 | 107 | 653 | 597.196262 | 0.000767 | 0.00036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.009709 | 0 | 0.009709 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e5e2b191812e3848da4d017234d62614f7a5925f | 1,248 | py | Python | BOJ11800.py | INYEONGKIM/BOJ | 5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc | [
"MIT"
] | 2 | 2019-03-05T15:42:46.000Z | 2019-07-24T15:52:36.000Z | BOJ11800.py | INYEONGKIM/BOJ | 5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc | [
"MIT"
] | null | null | null | BOJ11800.py | INYEONGKIM/BOJ | 5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc | [
"MIT"
] | null | null | null | n=int(input());r=""
for i in range(1,n+1):
s=input().strip()
if s=="5 6" or s=="6 5":
r+="Case "+str(i)+": Sheesh Beesh\n"
else:
a=[int(k) for k in s.split()]
a.sort(reverse=True)
if a[0]==a[1]:
if a[0]==1:
r+="Case "+str(i)+": Habb Yakk\n"
... | 29.714286 | 52 | 0.282051 | 158 | 1,248 | 2.227848 | 0.278481 | 0.113636 | 0.181818 | 0.204545 | 0.136364 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 0.042017 | 0.523237 | 1,248 | 41 | 53 | 30.439024 | 0.54958 | 0 | 0 | 0.121951 | 0 | 0 | 0.120192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.02439 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e5fbf57c70916767996825a3c2fe2fba0aebf5ad | 294 | py | Python | lab0/student_code.py | YaelBenShalom/Intro-to-AI | 37df1fc9316544338b8acfa5264316c4d5ce5915 | [
"MIT"
] | null | null | null | lab0/student_code.py | YaelBenShalom/Intro-to-AI | 37df1fc9316544338b8acfa5264316c4d5ce5915 | [
"MIT"
] | null | null | null | lab0/student_code.py | YaelBenShalom/Intro-to-AI | 37df1fc9316544338b8acfa5264316c4d5ce5915 | [
"MIT"
] | null | null | null | def order(data):
# new_data = []
for i in range(len(data)):
for j in range(len(data) - 1):
if (data[j] > data[j + 1]):
temp_data_j = data[j]
data[j] = data[j + 1]
data[j + 1] = temp_data_j
return data
| 24.5 | 42 | 0.421769 | 42 | 294 | 2.833333 | 0.333333 | 0.336134 | 0.302521 | 0.336134 | 0.428571 | 0.378151 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.442177 | 294 | 11 | 43 | 26.727273 | 0.70122 | 0.044218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f9025cc207b024bd75ec0f503ac992e842fd018e | 848 | py | Python | loader/__init__.py | MikeLagunes/centroids-triplet-network | e6430c0b090ef04a31738502d056f9169fd70393 | [
"MIT"
] | null | null | null | loader/__init__.py | MikeLagunes/centroids-triplet-network | e6430c0b090ef04a31738502d056f9169fd70393 | [
"MIT"
] | null | null | null | loader/__init__.py | MikeLagunes/centroids-triplet-network | e6430c0b090ef04a31738502d056f9169fd70393 | [
"MIT"
] | null | null | null | import json
from loader.cnn_household import cnn_household
from loader.triplet_resnet_household_softmax import triplet_resnet_household_softmax
from loader.cnn_core50 import cnn_core50
from loader.triplet_resnet_core50_softmax import triplet_resnet_core50_softmax
def get_loader(name):
"""get_loader
:param ... | 24.228571 | 84 | 0.738208 | 109 | 848 | 5.330275 | 0.192661 | 0.179002 | 0.151463 | 0.199656 | 0.130809 | 0.130809 | 0.130809 | 0.130809 | 0.130809 | 0 | 0 | 0.02276 | 0.170991 | 848 | 34 | 85 | 24.941176 | 0.803698 | 0.149764 | 0 | 0 | 0 | 0 | 0.151163 | 0.088663 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.333333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f908502920597ba157459fbecb55b8fb06e72a4c | 446 | py | Python | wagtail/documents/signal_handlers.py | wlcrs/wagtail | 8afbc6c3eccef9eb0f09ed56c54cd36779451882 | [
"BSD-3-Clause"
] | 3 | 2019-05-14T13:43:08.000Z | 2021-11-09T11:27:18.000Z | wagtail/documents/signal_handlers.py | denza/wagtail | 3939397850f2c73d3f960cea5cc9c2cfae2d005d | [
"BSD-3-Clause"
] | 163 | 2019-06-14T20:45:06.000Z | 2022-03-23T01:41:07.000Z | wagtail/documents/signal_handlers.py | denza/wagtail | 3939397850f2c73d3f960cea5cc9c2cfae2d005d | [
"BSD-3-Clause"
] | 1 | 2021-05-11T00:05:26.000Z | 2021-05-11T00:05:26.000Z | from django.db import transaction
from django.db.models.signals import post_delete
from wagtail.documents.models import get_document_model
def post_delete_file_cleanup(instance, **kwargs):
# Pass false so FileField doesn't save the model.
transaction.on_commit(lambda: instance.file.delete(False))
def regis... | 29.733333 | 66 | 0.802691 | 62 | 446 | 5.532258 | 0.564516 | 0.116618 | 0.069971 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121076 | 446 | 14 | 67 | 31.857143 | 0.875 | 0.105381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f92297e66062159f370ea1db59deb0882116ec70 | 170 | py | Python | zocalo_dls/__init__.py | jacobfilik/python-zocalo-dls | 57e73ff613ea1ac516b015edb37ea472c15200e2 | [
"BSD-3-Clause"
] | null | null | null | zocalo_dls/__init__.py | jacobfilik/python-zocalo-dls | 57e73ff613ea1ac516b015edb37ea472c15200e2 | [
"BSD-3-Clause"
] | null | null | null | zocalo_dls/__init__.py | jacobfilik/python-zocalo-dls | 57e73ff613ea1ac516b015edb37ea472c15200e2 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import, division, print_function
import logging
__version__ = "0.2.0"
logging.getLogger("zocalo_dls").addHandler(logging.NullHandler())
| 24.285714 | 65 | 0.811765 | 21 | 170 | 6.047619 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.082353 | 170 | 6 | 66 | 28.333333 | 0.794872 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f928f15006f9ec95c517b7886236786861dacafa | 2,116 | py | Python | tests/test_metadata.py | proio-org/py-proio | aa5202baf3ca958771b081f984a99927551a128c | [
"BSD-3-Clause"
] | 1 | 2018-10-02T07:50:35.000Z | 2018-10-02T07:50:35.000Z | tests/test_metadata.py | proio-org/py-proio | aa5202baf3ca958771b081f984a99927551a128c | [
"BSD-3-Clause"
] | 4 | 2018-08-29T22:10:25.000Z | 2018-09-26T20:31:28.000Z | tests/test_metadata.py | proio-org/py-proio | aa5202baf3ca958771b081f984a99927551a128c | [
"BSD-3-Clause"
] | 1 | 2020-04-06T12:08:48.000Z | 2020-04-06T12:08:48.000Z | import io
import pytest
import proio
def test_header1():
buf = io.BytesIO(b'')
with proio.Writer(fileobj = buf) as writer:
event = proio.Event()
writer.push(event)
writer.push(event)
writer.flush()
writer.push(event)
buf.seek(0, 0)
with proio.Reader(fileobj = ... | 31.117647 | 52 | 0.595463 | 261 | 2,116 | 4.773946 | 0.16092 | 0.11236 | 0.0939 | 0.076244 | 0.838684 | 0.724719 | 0.691814 | 0.691814 | 0.627608 | 0.627608 | 0 | 0.043093 | 0.254253 | 2,116 | 67 | 53 | 31.58209 | 0.746515 | 0 | 0 | 0.655172 | 0 | 0 | 0.080378 | 0 | 0 | 0 | 0 | 0 | 0.258621 | 1 | 0.034483 | false | 0 | 0.051724 | 0 | 0.086207 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
008fba76401f61e8dc0ea4e76fbbb97a270231e8 | 259 | py | Python | data_models/zoom_activity_data_model.py | panther-labs/panther-cli | 4e5c0a21570e1a02dada990fd91e324416afac96 | [
"MIT"
] | 4 | 2019-10-17T19:33:29.000Z | 2019-10-21T15:23:30.000Z | data_models/zoom_activity_data_model.py | jacknagz/panther-analysis | fceab78ba5624136776596ee1b25fa0dc8a02a42 | [
"Apache-2.0"
] | null | null | null | data_models/zoom_activity_data_model.py | jacknagz/panther-analysis | fceab78ba5624136776596ee1b25fa0dc8a02a42 | [
"Apache-2.0"
] | null | null | null | import panther_event_type_helpers as event_type
def get_event_type(event):
if event.get("type") == "Sign in":
return event_type.SUCCESSFUL_LOGIN
if event.get("type") == "Sign out":
return event_type.SUCCESSFUL_LOGOUT
return None
| 25.9 | 47 | 0.702703 | 37 | 259 | 4.648649 | 0.459459 | 0.261628 | 0.116279 | 0.162791 | 0.209302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.200772 | 259 | 9 | 48 | 28.777778 | 0.830918 | 0 | 0 | 0 | 0 | 0 | 0.088803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.714286 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
009a4611ff0b925eb4d8cad017fff525cf9121b1 | 83 | py | Python | tests/helpers.py | SebastiaanZ/aoc-2019 | e1fe4630b0f375be0b79398e07e23b9c0196efbb | [
"MIT"
] | 3 | 2019-12-02T19:38:14.000Z | 2020-01-28T00:06:09.000Z | tests/helpers.py | SebastiaanZ/aoc-2019 | e1fe4630b0f375be0b79398e07e23b9c0196efbb | [
"MIT"
] | 6 | 2020-03-24T17:58:40.000Z | 2022-03-12T00:18:45.000Z | tests/helpers.py | SebastiaanZ/aoc-2019 | e1fe4630b0f375be0b79398e07e23b9c0196efbb | [
"MIT"
] | null | null | null | import collections
Puzzle = collections.namedtuple("Puzzle", ("data", "answer"))
| 16.6 | 61 | 0.722892 | 8 | 83 | 7.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108434 | 83 | 4 | 62 | 20.75 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0.192771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
009dac2a08665ca4b87073c1b59cffd0ddf1eab2 | 63 | py | Python | python/testData/refactoring/rename/renameLocalWithComprehension2_after.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/refactoring/rename/renameLocalWithComprehension2_after.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/refactoring/rename/renameLocalWithComprehension2_after.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | bar = 2
elements = [x for x in range(5) if x == bar]
print bar
| 15.75 | 44 | 0.619048 | 14 | 63 | 2.785714 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 0.253968 | 63 | 3 | 45 | 21 | 0.787234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
00b6b87379e6f00b03f8138b4d0a28007e01a2f5 | 879 | py | Python | notebook/list_flatten_timeit.py | puyopop/python-snippets | 9d70aa3b2a867dd22f5a5e6178a5c0c5081add73 | [
"MIT"
] | 1 | 2020-07-18T17:58:43.000Z | 2020-07-18T17:58:43.000Z | notebook/list_flatten_timeit.py | puyopop/python-snippets | 9d70aa3b2a867dd22f5a5e6178a5c0c5081add73 | [
"MIT"
] | null | null | null | notebook/list_flatten_timeit.py | puyopop/python-snippets | 9d70aa3b2a867dd22f5a5e6178a5c0c5081add73 | [
"MIT"
] | null | null | null | import itertools
l_2d_5 = [[0, 1, 2]] * 5
print(l_2d_5)
# [[0, 1, 2], [0, 1, 2], [0, 1, 2], [0, 1, 2], [0, 1, 2]]
%%timeit
list(itertools.chain.from_iterable(l_2d_5))
# 711 ns ± 21.2 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
%%timeit
sum(l_2d_5, [])
# 448 ns ± 10.8 ns per loop (mean ± std. dev. of... | 25.852941 | 76 | 0.631399 | 192 | 879 | 2.833333 | 0.244792 | 0.055147 | 0.044118 | 0.132353 | 0.715074 | 0.715074 | 0.595588 | 0.595588 | 0.380515 | 0.334559 | 0 | 0.200849 | 0.195677 | 879 | 33 | 77 | 26.636364 | 0.551627 | 0.558589 | 0 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
00b75d7c6b8b5487e5f4facc5c4b54803d9443c1 | 599 | py | Python | pymongo/pymongo_connect.py | yunzhang599/Python3_Package_Examples | 3e479925f3f6818bf35e46123f720839acf075eb | [
"MIT"
] | 1 | 2019-11-16T05:06:01.000Z | 2019-11-16T05:06:01.000Z | pymongo/pymongo_connect.py | yunzhang599/Python3_Package_Examples | 3e479925f3f6818bf35e46123f720839acf075eb | [
"MIT"
] | null | null | null | pymongo/pymongo_connect.py | yunzhang599/Python3_Package_Examples | 3e479925f3f6818bf35e46123f720839acf075eb | [
"MIT"
] | null | null | null |
# full pymongo documentation
# http://api.mongodb.org/python/current/
import pymongo
client = pymongo.MongoClient("localhost", 27017)
db = client.test
print db.name
print db.my_collection
db.my_collection.save({"x": 10})
db.my_collection.save({"x": 8})
db.my_collection.save({"x": 11})
db.my_collection... | 22.185185 | 71 | 0.684474 | 93 | 599 | 4.290323 | 0.408602 | 0.090226 | 0.315789 | 0.180451 | 0.350877 | 0.20802 | 0.20802 | 0.140351 | 0 | 0 | 0 | 0.023576 | 0.15025 | 599 | 26 | 72 | 23.038462 | 0.760314 | 0.108514 | 0 | 0.133333 | 0 | 0 | 0.03373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
00c4474d6af6fbe8b3af5359f2123d3f04acf127 | 2,826 | py | Python | edabit/longest_substring.py | sci-c0/python-misc-problems | a0827cc9cd290ca142bba3b7dda307234da63c3c | [
"BSD-3-Clause"
] | null | null | null | edabit/longest_substring.py | sci-c0/python-misc-problems | a0827cc9cd290ca142bba3b7dda307234da63c3c | [
"BSD-3-Clause"
] | null | null | null | edabit/longest_substring.py | sci-c0/python-misc-problems | a0827cc9cd290ca142bba3b7dda307234da63c3c | [
"BSD-3-Clause"
] | null | null | null | """
Original Problem: https://edabit.com/challenge/RB6iWFrCd6rXWH3vi
"""
import re
from utils import Test
def remainder(divisor):
def _find_rem(dividend):
return dividend % divisor
return _find_rem
def span_len(span: tuple[int, int]) -> int:
return span[1] - span[0]
def longest_substring(d... | 42.179104 | 92 | 0.738854 | 302 | 2,826 | 6.688742 | 0.360927 | 0.166337 | 0.158416 | 0.227723 | 0.371287 | 0.032673 | 0.032673 | 0 | 0 | 0 | 0 | 0.299549 | 0.13765 | 2,826 | 66 | 93 | 42.818182 | 0.529339 | 0.117481 | 0 | 0 | 0 | 0 | 0.305331 | 0.251616 | 0 | 0 | 0 | 0 | 0.47619 | 1 | 0.095238 | false | 0.02381 | 0.047619 | 0.047619 | 0.261905 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
00c9e630e719edcf1a4930bc16475771f1103db7 | 2,614 | py | Python | src/metrics.py | AIRI-Institute/DeepCT | 8e23fda101bd4a2bce2c98c5a73d97072a3892de | [
"Apache-2.0"
] | null | null | null | src/metrics.py | AIRI-Institute/DeepCT | 8e23fda101bd4a2bce2c98c5a73d97072a3892de | [
"Apache-2.0"
] | null | null | null | src/metrics.py | AIRI-Institute/DeepCT | 8e23fda101bd4a2bce2c98c5a73d97072a3892de | [
"Apache-2.0"
] | null | null | null | import functools
import numpy as np
import scipy.stats
import sklearn.metrics as metrics
# Metric helpers which convert float values to binary (0/1).
# Regression metrics helper functions.
def _to_binary(x: np.ndarray, threshold=0.5) -> np.ndarray:
return np.where(x > threshold, 1, 0).astype(int)
def binary_i... | 31.493976 | 87 | 0.713083 | 386 | 2,614 | 4.562176 | 0.199482 | 0.073822 | 0.062465 | 0.051107 | 0.384441 | 0.356048 | 0.307212 | 0.307212 | 0.291312 | 0.20954 | 0 | 0.012517 | 0.174828 | 2,614 | 82 | 88 | 31.878049 | 0.803894 | 0.087223 | 0 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.078431 | 0.176471 | 0.54902 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
da9d6cf099aeb2bcd0ee3647198432bf96f4ff40 | 16,147 | py | Python | test/test_parse_pronoun_data.py | phseiff/gender-render | 51db02193b46b38284290c4f5bde500208bf1605 | [
"MIT"
] | 24 | 2021-01-08T00:32:50.000Z | 2022-03-06T11:20:26.000Z | test/test_parse_pronoun_data.py | phseiff/gender-render | 51db02193b46b38284290c4f5bde500208bf1605 | [
"MIT"
] | 6 | 2021-01-08T00:19:25.000Z | 2021-03-22T16:27:40.000Z | test/test_parse_pronoun_data.py | phseiff/gender-render | 51db02193b46b38284290c4f5bde500208bf1605 | [
"MIT"
] | null | null | null |
import unittest
import warnings
import src.parse_pronoun_data as ppd
import src.errors as err
import src.warnings as ws
# pairs of valid json and its parsed version:
VALID_JSON_1 = """{"foo": "bar"}""", {"foo": "bar"}
VALID_JSON_2 = """{"foo": 1, "bar": ["a", "b"]}""", {"foo": 1, "bar": ["a", "b"]}
VALID_JSON_3 = ... | 54.921769 | 120 | 0.603084 | 2,042 | 16,147 | 4.576885 | 0.112635 | 0.111278 | 0.077038 | 0.119837 | 0.762786 | 0.732292 | 0.71346 | 0.68532 | 0.631393 | 0.60443 | 0 | 0.004702 | 0.222952 | 16,147 | 293 | 121 | 55.109215 | 0.740177 | 0.191924 | 0 | 0.44086 | 0 | 0.005376 | 0.129571 | 0 | 0 | 0 | 0 | 0 | 0.392473 | 1 | 0.032258 | false | 0 | 0.026882 | 0 | 0.064516 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
da9e090f052456fd45f6f5506237319270ee1cfb | 1,069 | py | Python | orm/data_base.py | caoziyao/orm | 24121b8b10910c121a5dff19c6fd9f25ec7f425c | [
"MIT"
] | 1 | 2016-10-30T14:41:39.000Z | 2016-10-30T14:41:39.000Z | orm/data_base.py | caoziyao/orm | 24121b8b10910c121a5dff19c6fd9f25ec7f425c | [
"MIT"
] | null | null | null | orm/data_base.py | caoziyao/orm | 24121b8b10910c121a5dff19c6fd9f25ec7f425c | [
"MIT"
] | null | null | null | # coding: utf-8
"""
@author: csy
@license: (C) Copyright 2017-2018
@contact: wyzycao@gmail.com
@time: 2018/11/22
@desc:
"""
import pymysql
from sqlalchemy import create_engine, exc, inspect, text
from sqlalchemy.ext.declarative import declarative_base
from orm.connection import Connection
class Database(object):
... | 20.169811 | 59 | 0.585594 | 120 | 1,069 | 5.05 | 0.516667 | 0.049505 | 0.059406 | 0.049505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.300281 | 1,069 | 52 | 60 | 20.557692 | 0.787433 | 0.190833 | 0 | 0 | 0 | 0 | 0.034806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0.052632 | 0.210526 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
daa22a10e3b85c5aa358215cdbd70d7d7e9b7377 | 786 | py | Python | 4/4-3/test_index.py | softwaretestbook/apitest_book | 29f640363ab6ef301ea685196b43805a4ed5a3d4 | [
"Apache-2.0"
] | null | null | null | 4/4-3/test_index.py | softwaretestbook/apitest_book | 29f640363ab6ef301ea685196b43805a4ed5a3d4 | [
"Apache-2.0"
] | null | null | null | 4/4-3/test_index.py | softwaretestbook/apitest_book | 29f640363ab6ef301ea685196b43805a4ed5a3d4 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
@File : test_index.py
@Time : 2021/09/28 14:10:13
@Author : CrissChan
@Version : 1.0
@Site : https://blog.csdn.net/crisschan
@Desc : 主页接口
'''
from unittest import TestCase
import unittest
from unittest.main import main
import requests
class Te... | 24.5625 | 81 | 0.637405 | 103 | 786 | 4.728155 | 0.631068 | 0.049281 | 0.057495 | 0.078029 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050162 | 0.21374 | 786 | 31 | 82 | 25.354839 | 0.737864 | 0.321883 | 0 | 0 | 0 | 0 | 0.122605 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.214286 | false | 0 | 0.285714 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
dabdc67d7f67d1d84f3b0c3755029b9e81f0d469 | 582 | py | Python | src/OrderedStage.py | sergey-serebryakov/mpipe | 5a1804cf64271931f0cd3e4fff3e2b38291212dd | [
"MIT"
] | null | null | null | src/OrderedStage.py | sergey-serebryakov/mpipe | 5a1804cf64271931f0cd3e4fff3e2b38291212dd | [
"MIT"
] | null | null | null | src/OrderedStage.py | sergey-serebryakov/mpipe | 5a1804cf64271931f0cd3e4fff3e2b38291212dd | [
"MIT"
] | null | null | null | """Implements OrderedStage class."""
from .Stage import Stage
from .OrderedWorker import OrderedWorker
class OrderedStage(Stage):
"""A specialized :class:`~mpipe.Stage`,
internally creating :class:`~mpipe.OrderedWorker` objects."""
def __init__(self, target, size=1, disable_result=False):
"""Cons... | 36.375 | 72 | 0.678694 | 60 | 582 | 6.416667 | 0.533333 | 0.051948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002155 | 0.202749 | 582 | 15 | 73 | 38.8 | 0.827586 | 0.343643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
dad9445df7e4b260a45a10454891d017658def3a | 417 | py | Python | lib/cork/backends.py | jimeggleston/wombatwiki | 5e0d7c8e6e4037de4040585b91fd5f8db7293b36 | [
"MIT"
] | null | null | null | lib/cork/backends.py | jimeggleston/wombatwiki | 5e0d7c8e6e4037de4040585b91fd5f8db7293b36 | [
"MIT"
] | null | null | null | lib/cork/backends.py | jimeggleston/wombatwiki | 5e0d7c8e6e4037de4040585b91fd5f8db7293b36 | [
"MIT"
] | null | null | null | # Cork - Authentication module for tyyhe Bottle web framework
# Copyright (C) 2013 Federico Ceratto and others, see AUTHORS file.
# Released under LGPLv3+ license, see LICENSE.txt
#
# Backends API - used to make backends available for importing
#
from json_backend import JsonBackend
from mongodb_backend import MongoDBB... | 37.909091 | 67 | 0.827338 | 54 | 417 | 6.314815 | 0.759259 | 0.152493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0.136691 | 417 | 10 | 68 | 41.7 | 0.933333 | 0.561151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
daf9c059842880d542a5a00badf6026bbe5bed0e | 901 | py | Python | src/onegov/activity/matching/__init__.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | src/onegov/activity/matching/__init__.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | src/onegov/activity/matching/__init__.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | from onegov.activity.matching.core import deferred_acceptance
from onegov.activity.matching.core import deferred_acceptance_from_database
from onegov.activity.matching.interfaces import MatchableBooking
from onegov.activity.matching.interfaces import MatchableOccasion
from onegov.activity.matching.score import PreferAd... | 37.541667 | 75 | 0.824639 | 89 | 901 | 8.213483 | 0.224719 | 0.136799 | 0.246238 | 0.355677 | 0.571819 | 0.571819 | 0.153215 | 0.153215 | 0.153215 | 0 | 0 | 0 | 0.105438 | 901 | 23 | 76 | 39.173913 | 0.906948 | 0 | 0 | 0 | 0 | 0 | 0.198668 | 0.062153 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9710c05effdef623c2a69d678143df5d4b732310 | 242 | py | Python | Python/libraries/recognizers-choice/recognizers_choice/choice/constants.py | AhmedLeithy/Recognizers-Text | f5426e38a09d3974fc0979b7803a4cd17258ea62 | [
"MIT"
] | 688 | 2019-05-08T02:56:21.000Z | 2022-03-30T07:26:15.000Z | Python/libraries/recognizers-choice/recognizers_choice/choice/constants.py | AhmedLeithy/Recognizers-Text | f5426e38a09d3974fc0979b7803a4cd17258ea62 | [
"MIT"
] | 840 | 2019-05-07T07:00:02.000Z | 2022-03-30T14:52:11.000Z | Python/libraries/recognizers-choice/recognizers_choice/choice/constants.py | AhmedLeithy/Recognizers-Text | f5426e38a09d3974fc0979b7803a4cd17258ea62 | [
"MIT"
] | 283 | 2019-05-07T07:52:12.000Z | 2022-03-27T02:27:58.000Z | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
class Constants:
SYS_BOOLEAN: str = "boolean"
SYS_BOOLEAN_TRUE: str = "boolean-true"
SYS_BOOLEAN_FALSE: str = "boolean-false"
| 30.25 | 61 | 0.702479 | 30 | 242 | 5.5 | 0.633333 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206612 | 242 | 7 | 62 | 34.571429 | 0.859375 | 0.371901 | 0 | 0 | 0 | 0 | 0.22695 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
971d9136995da82d92f3987e0fb85559762fcc29 | 215 | py | Python | tuitse/widget.py | i3thuan5/TuiTse-TsuSin | b2e12d0565ca2a5c09af0e9f91048233724d8d6c | [
"MIT"
] | null | null | null | tuitse/widget.py | i3thuan5/TuiTse-TsuSin | b2e12d0565ca2a5c09af0e9f91048233724d8d6c | [
"MIT"
] | 4 | 2020-02-17T02:46:07.000Z | 2021-10-14T06:52:11.000Z | tuitse/widget.py | i3thuan5/TuiTse-TsuSin | b2e12d0565ca2a5c09af0e9f91048233724d8d6c | [
"MIT"
] | null | null | null | import json
from tuitse.html import tuitse_html
class KiamTsaNuaUi():
def 檢查結果(self, obj):
if not obj.檢查:
return ''
tinliat = json.loads(obj.檢查)
return tuitse_html(tinliat)
| 19.545455 | 36 | 0.618605 | 28 | 215 | 4.678571 | 0.607143 | 0.229008 | 0.167939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.293023 | 215 | 10 | 37 | 21.5 | 0.861842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9730533de3f0de6931d99c4b0e666601660c28ee | 11,625 | py | Python | mare/evaluation/evaluation_strategies.py | MSLars/mare | a1cd3c231b9262d6597ab81ae23068ae64982c38 | [
"MIT"
] | null | null | null | mare/evaluation/evaluation_strategies.py | MSLars/mare | a1cd3c231b9262d6597ab81ae23068ae64982c38 | [
"MIT"
] | null | null | null | mare/evaluation/evaluation_strategies.py | MSLars/mare | a1cd3c231b9262d6597ab81ae23068ae64982c38 | [
"MIT"
] | 1 | 2021-12-04T00:00:52.000Z | 2021-12-04T00:00:52.000Z | # JSON Structure:
#
# {
# "relations": [
# {
# "name": name,
# "ents": [
# {
# "name": role,
# "start": start,
# "end": end
# "mandatory": true (optional, just for gold)
# ... | 29.135338 | 87 | 0.584946 | 1,340 | 11,625 | 4.745522 | 0.068657 | 0.034125 | 0.036798 | 0.050322 | 0.767416 | 0.731247 | 0.702626 | 0.658751 | 0.634219 | 0.60434 | 0 | 0.002748 | 0.311398 | 11,625 | 399 | 88 | 29.135338 | 0.79163 | 0.040258 | 0 | 0.602076 | 0 | 0 | 0.062837 | 0.004854 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065744 | false | 0 | 0.00692 | 0.017301 | 0.141869 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.