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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aea7dad91b92ff592563fe72a5286a418a28967b | 216 | py | Python | TranscriptomicPipelines/t_utilities/t_gff_exceptions.py | g-simmons/OCB | 217d9b8eaaefad97c52741b3eac9c18ae1def51a | [
"Apache-2.0"
] | null | null | null | TranscriptomicPipelines/t_utilities/t_gff_exceptions.py | g-simmons/OCB | 217d9b8eaaefad97c52741b3eac9c18ae1def51a | [
"Apache-2.0"
] | null | null | null | TranscriptomicPipelines/t_utilities/t_gff_exceptions.py | g-simmons/OCB | 217d9b8eaaefad97c52741b3eac9c18ae1def51a | [
"Apache-2.0"
] | null | null | null | class FailedToExtractGFF3Attributes(Exception):
pass
class FailedToOutputBEDFile(Exception):
pass
class FailedToOutputGFFFile(Exception):
pass
class InvalidIDSelectionInGFFFile(Exception):
pass | 19.636364 | 47 | 0.787037 | 16 | 216 | 10.625 | 0.4375 | 0.305882 | 0.317647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005495 | 0.157407 | 216 | 11 | 48 | 19.636364 | 0.928571 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 1 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
9d6ac65ba5c2b0c57ee79798d4b8a4d919a78658 | 10,053 | py | Python | gcloud/analysis_statistics/migrations/0001_initial.py | brookylin/bk-sops | 6c0cf78879849921c4ff6ad6bf3bb82dfdf5b973 | [
"Apache-2.0"
] | 881 | 2019-03-25T02:45:42.000Z | 2022-03-30T09:10:49.000Z | gcloud/analysis_statistics/migrations/0001_initial.py | m0re-work/bk-sops | d03ba8a4ee0781c6daaf0dd38a7369dc82669f7d | [
"Apache-2.0"
] | 3,303 | 2019-03-25T04:18:03.000Z | 2022-03-31T11:52:03.000Z | gcloud/analysis_statistics/migrations/0001_initial.py | m0re-work/bk-sops | d03ba8a4ee0781c6daaf0dd38a7369dc82669f7d | [
"Apache-2.0"
] | 395 | 2019-03-25T02:53:36.000Z | 2022-03-31T08:37:28.000Z | # Generated by Django 2.2.24 on 2021-11-01 03:46
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="TaskflowExecutedNodeStatistics",
fields=[
("id"... | 53.473404 | 117 | 0.501144 | 818 | 10,053 | 5.933985 | 0.195599 | 0.158632 | 0.071075 | 0.050886 | 0.798723 | 0.79213 | 0.76679 | 0.735064 | 0.728471 | 0.65925 | 0 | 0.010448 | 0.362081 | 10,053 | 187 | 118 | 53.759358 | 0.746453 | 0.004576 | 0 | 0.638889 | 1 | 0 | 0.194303 | 0.005197 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.005556 | 0 | 0.027778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 | 6 |
9d756bab240dbdf2f2f5c2358b3103e881cf25ec | 8,440 | py | Python | tests/addon/test_async_addon_study.py | dicomgrid/sdk-python | bb12eed311bad73dfb863917df4dc5cbcd91a447 | [
"Apache-2.0"
] | 9 | 2020-04-20T23:45:44.000Z | 2021-04-18T11:22:17.000Z | tests/addon/test_async_addon_study.py | dicomgrid/sdk-python | bb12eed311bad73dfb863917df4dc5cbcd91a447 | [
"Apache-2.0"
] | 13 | 2020-02-08T16:15:05.000Z | 2021-09-13T22:55:28.000Z | tests/addon/test_async_addon_study.py | dicomgrid/sdk-python | bb12eed311bad73dfb863917df4dc5cbcd91a447 | [
"Apache-2.0"
] | 6 | 2020-03-25T17:47:45.000Z | 2021-04-18T11:22:19.000Z | import inspect
from pathlib import Path
import pytest
from dynaconf import settings
@pytest.mark.asyncio
class TestAsyncAddonStudy:
"""Test addon study namespace."""
async def test_upload_dir(
self,
async_api,
async_account,
async_auto_remove,
):
"""Test study upl... | 32.96875 | 75 | 0.59372 | 906 | 8,440 | 5.12362 | 0.102649 | 0.043085 | 0.069798 | 0.046532 | 0.871176 | 0.828738 | 0.822059 | 0.772296 | 0.757863 | 0.737613 | 0 | 0.021766 | 0.325 | 8,440 | 255 | 76 | 33.098039 | 0.793049 | 0.011374 | 0 | 0.688073 | 0 | 0.009174 | 0.042829 | 0.012948 | 0 | 0 | 0 | 0 | 0.059633 | 1 | 0.009174 | false | 0 | 0.018349 | 0 | 0.03211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
9da01d9e1fcce6dbb8327ebcfaf954d5466e6cdd | 92 | py | Python | core/__init__.py | DeveloperNeon/reaction-light | 32a64d76e14be486fc8c766152b777212a7d4217 | [
"MIT"
] | 1 | 2021-06-10T14:50:51.000Z | 2021-06-10T14:50:51.000Z | core/__init__.py | DeveloperNeon/reaction-light | 32a64d76e14be486fc8c766152b777212a7d4217 | [
"MIT"
] | null | null | null | core/__init__.py | DeveloperNeon/reaction-light | 32a64d76e14be486fc8c766152b777212a7d4217 | [
"MIT"
] | null | null | null | from .activity import *
from .database import *
from .github import *
from .schema import *
| 18.4 | 23 | 0.73913 | 12 | 92 | 5.666667 | 0.5 | 0.441176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 92 | 4 | 24 | 23 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
9dd00412e522dd3ff2a0bc82872c210cc53b2c47 | 179 | py | Python | layers/poky/scripts/lib/checklayer/case.py | dtischler/px30-test | 55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f | [
"Apache-2.0"
] | 53 | 2018-02-28T08:51:32.000Z | 2022-02-28T06:49:23.000Z | layers/poky/scripts/lib/checklayer/case.py | dtischler/px30-test | 55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f | [
"Apache-2.0"
] | 27 | 2018-01-25T00:26:53.000Z | 2020-08-09T05:20:04.000Z | layers/poky/scripts/lib/checklayer/case.py | dtischler/px30-test | 55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f | [
"Apache-2.0"
] | 51 | 2018-02-21T04:46:08.000Z | 2022-03-02T04:20:41.000Z | # Copyright (C) 2017 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
from oeqa.core.case import OETestCase
class OECheckLayerTestCase(OETestCase):
pass
| 22.375 | 50 | 0.782123 | 23 | 179 | 6.086957 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0.150838 | 179 | 7 | 51 | 25.571429 | 0.894737 | 0.47486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
9deb4478641d86962eca4050f0a326415639d8e1 | 22 | py | Python | ezmodel/__init__.py | UBC-MDS/ezmodel | 66f7d38c41778c65bbdbec85533c496bb796be47 | [
"MIT"
] | 3 | 2018-02-15T01:31:50.000Z | 2018-03-03T18:56:45.000Z | ezmodel/__init__.py | UBC-MDS/ezmodel | 66f7d38c41778c65bbdbec85533c496bb796be47 | [
"MIT"
] | 15 | 2018-02-15T01:38:55.000Z | 2018-03-24T19:31:51.000Z | ezmodel/__init__.py | UBC-MDS/ezmodel | 66f7d38c41778c65bbdbec85533c496bb796be47 | [
"MIT"
] | null | null | null | from . import ezmodel
| 11 | 21 | 0.772727 | 3 | 22 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 22 | 1 | 22 | 22 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
3b0265ff51f7a7d04bef4bc072a9037cc691452c | 42 | py | Python | edgify/functional/__init__.py | scale-lab/BitTrain | 3a15f96cc32222e3d6fceb00a622521e31745d4c | [
"BSD-3-Clause"
] | 3 | 2021-12-14T23:52:51.000Z | 2021-12-26T19:38:55.000Z | edgify/functional/__init__.py | scale-lab/BitTrain | 3a15f96cc32222e3d6fceb00a622521e31745d4c | [
"BSD-3-Clause"
] | null | null | null | edgify/functional/__init__.py | scale-lab/BitTrain | 3a15f96cc32222e3d6fceb00a622521e31745d4c | [
"BSD-3-Clause"
] | null | null | null | from .linear import *
from .relu import * | 21 | 22 | 0.714286 | 6 | 42 | 5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 42 | 2 | 23 | 21 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
d1c04bb8baa8ece891420d8c97c2de56d0529cd6 | 665 | py | Python | clab/torch/__init__.py | chengjianglong/clab | 504a111a5ffbaa119dc64b30c8f7cb14288923a8 | [
"Apache-2.0"
] | null | null | null | clab/torch/__init__.py | chengjianglong/clab | 504a111a5ffbaa119dc64b30c8f7cb14288923a8 | [
"Apache-2.0"
] | null | null | null | clab/torch/__init__.py | chengjianglong/clab | 504a111a5ffbaa119dc64b30c8f7cb14288923a8 | [
"Apache-2.0"
] | 1 | 2020-10-15T00:03:40.000Z | 2020-10-15T00:03:40.000Z | # -*- coding: utf-8 -*-
"""
python -c "import ubelt._internal as a; a.autogen_init('clab.torch', attrs=False)"
"""
# flake8: noqa
from __future__ import absolute_import, division, print_function, unicode_literals
from clab.torch import criterions
from clab.torch import layers
from clab.torch import filters
from clab.to... | 31.666667 | 82 | 0.807519 | 103 | 665 | 5.087379 | 0.427184 | 0.257634 | 0.347328 | 0.507634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003425 | 0.121805 | 665 | 20 | 83 | 33.25 | 0.893836 | 0.177444 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.066667 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
d1d8ee77c604cf464ea8b3fd653baf5751002534 | 156 | py | Python | pyasyncserver/pipes/__init__.py | agratoth/pyasyncserver | 6125b8de327b2eb22699e7961ad6bef50ab55a70 | [
"MIT"
] | null | null | null | pyasyncserver/pipes/__init__.py | agratoth/pyasyncserver | 6125b8de327b2eb22699e7961ad6bef50ab55a70 | [
"MIT"
] | null | null | null | pyasyncserver/pipes/__init__.py | agratoth/pyasyncserver | 6125b8de327b2eb22699e7961ad6bef50ab55a70 | [
"MIT"
] | null | null | null | from .pipe import Pipe
from .http_pipe import HTTPPipe
from .nats_pipe import NATSPipe
from .directions import PipeDirections
from .helpers import PipePool | 26 | 38 | 0.839744 | 22 | 156 | 5.863636 | 0.5 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 156 | 6 | 39 | 26 | 0.948529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
d1de40e4c2e1cecf4c4718ef17003e430bd9feb2 | 816 | py | Python | Ta-Irikulau/framework/pomdp/model/observation.py | mjtsai1974/DevBlog | f1429e28e7ea618a64f5e111be4d7f42ae616ce8 | [
"MIT"
] | null | null | null | Ta-Irikulau/framework/pomdp/model/observation.py | mjtsai1974/DevBlog | f1429e28e7ea618a64f5e111be4d7f42ae616ce8 | [
"MIT"
] | null | null | null | Ta-Irikulau/framework/pomdp/model/observation.py | mjtsai1974/DevBlog | f1429e28e7ea618a64f5e111be4d7f42ae616ce8 | [
"MIT"
] | null | null | null |
class ObservationModel(object):
def __init__(self):
self._observation_matrix = dict()
def __str__(self):
str = ''
for k, v in self._observation_matrix.items():
str += '{}:{}\n'.format(k, v)
return str
@property
def observation_matrix(self):
retur... | 29.142857 | 91 | 0.610294 | 103 | 816 | 4.61165 | 0.339806 | 0.286316 | 0.309474 | 0.170526 | 0.197895 | 0.197895 | 0.092632 | 0 | 0 | 0 | 0 | 0 | 0.246324 | 816 | 28 | 92 | 29.142857 | 0.772358 | 0.096814 | 0 | 0 | 0 | 0 | 0.03645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.133333 | 0.6 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
d1e162b0dac745f18f723ba55bb2886814b8a042 | 54 | py | Python | csv_combinator/__init__.py | Blanen/csv_combinator | 19335f73f434d11b700ad875ae6e244a9656bed5 | [
"MIT"
] | null | null | null | csv_combinator/__init__.py | Blanen/csv_combinator | 19335f73f434d11b700ad875ae6e244a9656bed5 | [
"MIT"
] | null | null | null | csv_combinator/__init__.py | Blanen/csv_combinator | 19335f73f434d11b700ad875ae6e244a9656bed5 | [
"MIT"
] | null | null | null | from csv_combinator.csv_combinator import Combinator
| 27 | 53 | 0.888889 | 7 | 54 | 6.571429 | 0.571429 | 0.565217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092593 | 54 | 1 | 54 | 54 | 0.938776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
d1e8b9c42dd9fc705161aa6ccfc0c83fdda9fa65 | 34,103 | py | Python | tests/test_base_elements.py | benjaminleroy/cowpatch | 1ef2685de78f3ec10d42271148d20dadf9d2c00c | [
"MIT"
] | null | null | null | tests/test_base_elements.py | benjaminleroy/cowpatch | 1ef2685de78f3ec10d42271148d20dadf9d2c00c | [
"MIT"
] | 10 | 2022-02-21T04:05:40.000Z | 2022-03-26T11:33:12.000Z | tests/test_base_elements.py | benjaminleroy/cowpatch | 1ef2685de78f3ec10d42271148d20dadf9d2c00c | [
"MIT"
] | null | null | null | from pytest_regressions import image_regression
from hypothesis import given, strategies as st, settings
import numpy as np
import cowpatch as cow
from cowpatch.utils import inherits, _flatten_nested_list, \
_transform_size_to_pt
import pytest
import io
import plotnine as p9
import plotnin... | 39.243959 | 92 | 0.544351 | 4,798 | 34,103 | 3.697165 | 0.077115 | 0.018603 | 0.027397 | 0.036304 | 0.81831 | 0.791758 | 0.769378 | 0.736682 | 0.724393 | 0.713625 | 0 | 0.050884 | 0.315397 | 34,103 | 868 | 93 | 39.289171 | 0.708913 | 0.072369 | 0 | 0.558923 | 0 | 0.001684 | 0.219782 | 0.00178 | 0 | 0 | 0 | 0 | 0.102694 | 1 | 0.025253 | false | 0.008418 | 0.020202 | 0 | 0.047138 | 0.003367 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
060096acb0f8ddb5884b9a68c8a2ae60c07396fc | 6,326 | py | Python | tests/invertible_resnet.py | paulhfu/FrEIA | e5694e596503a930395cde843f6523da09b6b6e7 | [
"MIT"
] | 1 | 2021-05-14T03:34:36.000Z | 2021-05-14T03:34:36.000Z | tests/invertible_resnet.py | paulhfu/FrEIA | e5694e596503a930395cde843f6523da09b6b6e7 | [
"MIT"
] | null | null | null | tests/invertible_resnet.py | paulhfu/FrEIA | e5694e596503a930395cde843f6523da09b6b6e7 | [
"MIT"
] | null | null | null | import unittest
import numpy as np
import torch
import torch.nn as nn
import torch.optim
import sys
sys.path.append('../')
from FrEIA.modules import *
from FrEIA.framework import *
class ActNormTest(unittest.TestCase):
def __init__(self, *args):
super().__init__(*args)
self.batch_size = 256
... | 41.077922 | 116 | 0.601328 | 867 | 6,326 | 4.193772 | 0.155709 | 0.055831 | 0.087734 | 0.074807 | 0.866887 | 0.834708 | 0.817107 | 0.815732 | 0.769252 | 0.769252 | 0 | 0.01965 | 0.267942 | 6,326 | 153 | 117 | 41.346405 | 0.765493 | 0.087417 | 0 | 0.471698 | 0 | 0 | 0.032129 | 0 | 0 | 0 | 0 | 0 | 0.075472 | 1 | 0.04717 | false | 0 | 0.075472 | 0 | 0.141509 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
ae46d74f3b7ebd3f6111d974721adce0cc3a286a | 5,694 | py | Python | couch/tests/test_fields.py | madron/django-couch | 21e4c3a0022bdb7cfaff017f72025afbf5220b3b | [
"MIT"
] | null | null | null | couch/tests/test_fields.py | madron/django-couch | 21e4c3a0022bdb7cfaff017f72025afbf5220b3b | [
"MIT"
] | null | null | null | couch/tests/test_fields.py | madron/django-couch | 21e4c3a0022bdb7cfaff017f72025afbf5220b3b | [
"MIT"
] | null | null | null | import pytz
from datetime import datetime
from django.test import override_settings
from django.test import SimpleTestCase
from django.utils import timezone
from .. import exceptions
from .. import fields
class TextFieldTest(SimpleTestCase):
def test_to_json(self):
value = fields.TextField().to_json('Text... | 46.292683 | 101 | 0.654549 | 754 | 5,694 | 4.842175 | 0.143236 | 0.029581 | 0.104081 | 0.049849 | 0.837031 | 0.770748 | 0.746919 | 0.746919 | 0.727746 | 0.709942 | 0 | 0.08083 | 0.204777 | 5,694 | 122 | 102 | 46.672131 | 0.725486 | 0.089919 | 0 | 0.434783 | 0 | 0.01087 | 0.158058 | 0.048365 | 0 | 0 | 0 | 0 | 0.228261 | 1 | 0.163043 | false | 0 | 0.076087 | 0 | 0.271739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
883bb0fe8219df6a1f658ce0cd57579e65be22ef | 126 | py | Python | api/views.py | Bahman-Ahmadi/mail_api | 75d946fc36e23f2772fa675ec125f69ab528e26c | [
"MIT"
] | 2 | 2021-12-06T16:22:21.000Z | 2021-12-07T07:37:17.000Z | api/views.py | Bahman-Ahmadi/mail_api | 75d946fc36e23f2772fa675ec125f69ab528e26c | [
"MIT"
] | null | null | null | api/views.py | Bahman-Ahmadi/mail_api | 75d946fc36e23f2772fa675ec125f69ab528e26c | [
"MIT"
] | null | null | null | from django.shortcuts import render
# Create your views here.
def index(request):
return render(request, f'api/index.html')
| 21 | 42 | 0.769841 | 19 | 126 | 5.105263 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126984 | 126 | 5 | 43 | 25.2 | 0.881818 | 0.18254 | 0 | 0 | 0 | 0 | 0.138614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 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 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
88770fcbb95bdaad15d6a320f9fdae236af207b7 | 1,599 | py | Python | S4/S4 Library/simulation/postures/posture_tunables.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | 1 | 2021-05-20T19:33:37.000Z | 2021-05-20T19:33:37.000Z | S4/S4 Library/simulation/postures/posture_tunables.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | S4/S4 Library/simulation/postures/posture_tunables.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | from postures.posture_cost import TunablePostureCostVariant
from postures.posture_validators import TunablePostureValidatorVariant
from sims4.tuning.tunable import OptionalTunable, TunableTuple, TunableList
class TunableSupportedPostureTransitionData(OptionalTunable):
def __init__(self, *args, **kwargs):
... | 177.666667 | 1,286 | 0.623515 | 171 | 1,599 | 5.760234 | 0.567251 | 0.006091 | 0.038579 | 0.008122 | 0.022335 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000924 | 0.323327 | 1,599 | 8 | 1,287 | 199.875 | 0.909427 | 0 | 0 | 0 | 0 | 0.166667 | 0.676673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
31fff98ed02dcd37f938f1038b71b5268fc1d5ed | 125 | py | Python | cvpl-cms/cms/exceptions.py | robinsax/canvas-plugin-multirepo | 20fd6a3cc42af5f2cde73e3b100d3edeb4e50c01 | [
"Apache-2.0"
] | null | null | null | cvpl-cms/cms/exceptions.py | robinsax/canvas-plugin-multirepo | 20fd6a3cc42af5f2cde73e3b100d3edeb4e50c01 | [
"Apache-2.0"
] | null | null | null | cvpl-cms/cms/exceptions.py | robinsax/canvas-plugin-multirepo | 20fd6a3cc42af5f2cde73e3b100d3edeb4e50c01 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
'''
Package exceptions.
'''
class NoSuchContent(Exception): pass
class ContentSyntaxError(Exception): pass
| 13.888889 | 41 | 0.752 | 13 | 125 | 7.230769 | 0.769231 | 0.276596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 0.12 | 125 | 8 | 42 | 15.625 | 0.845455 | 0.272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
ee02a38de985251928ab46696007ef3a937cc03c | 143 | py | Python | ctypes_generation/extended_structs/_SYMBOL_INFO.py | lucasg/PythonForWindows | 578b4d9193f0daf31b4f522304f1d8fd3346d281 | [
"BSD-3-Clause"
] | null | null | null | ctypes_generation/extended_structs/_SYMBOL_INFO.py | lucasg/PythonForWindows | 578b4d9193f0daf31b4f522304f1d8fd3346d281 | [
"BSD-3-Clause"
] | null | null | null | ctypes_generation/extended_structs/_SYMBOL_INFO.py | lucasg/PythonForWindows | 578b4d9193f0daf31b4f522304f1d8fd3346d281 | [
"BSD-3-Clause"
] | null | null | null | old_SYMBOL_INFO = _SYMBOL_INFO
class _SYMBOL_INFO(old_SYMBOL_INFO):
@property
def tag(self):
return SymTagEnum.mapper[self.Tag] | 28.6 | 42 | 0.741259 | 20 | 143 | 4.9 | 0.55 | 0.408163 | 0.265306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174825 | 143 | 5 | 42 | 28.6 | 0.830508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.2 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
ee0ef75541d443d6c940e88c2a8751ee9ab90933 | 24 | py | Python | terminal/__init__.py | gvb84/term-emu | ef38abb0d45f0368666112642114a24ad2bb15ad | [
"BSD-3-Clause"
] | 5 | 2019-04-17T19:17:59.000Z | 2021-02-17T08:36:28.000Z | terminal/__init__.py | gvb84/term-emu | ef38abb0d45f0368666112642114a24ad2bb15ad | [
"BSD-3-Clause"
] | null | null | null | terminal/__init__.py | gvb84/term-emu | ef38abb0d45f0368666112642114a24ad2bb15ad | [
"BSD-3-Clause"
] | 6 | 2018-12-16T23:38:52.000Z | 2021-07-02T10:56:17.000Z | from . import emulator
| 8 | 22 | 0.75 | 3 | 24 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 24 | 2 | 23 | 12 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ee29deb0a8fb92a7535179aa9654194554095252 | 42 | py | Python | test.py | HengyueLi/PyDictFileEncy | 67ed23c99eda2577e36e43eafd2c6a1823f615c2 | [
"MIT"
] | null | null | null | test.py | HengyueLi/PyDictFileEncy | 67ed23c99eda2577e36e43eafd2c6a1823f615c2 | [
"MIT"
] | null | null | null | test.py | HengyueLi/PyDictFileEncy | 67ed23c99eda2577e36e43eafd2c6a1823f615c2 | [
"MIT"
] | null | null | null | from pydictfileency import PyDictFileEncy
| 21 | 41 | 0.904762 | 4 | 42 | 9.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 42 | 1 | 42 | 42 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ee42eb6a3d4074b264d2d52063a484bfca8b608e | 299 | py | Python | backend/tests/test_polarity.py | DKeen0123/SentiMind | 0ffb702e88879b3e2e02d3d94a703b1f8a785bd3 | [
"MIT"
] | 5 | 2018-04-09T16:47:53.000Z | 2018-07-05T11:03:25.000Z | backend/tests/test_polarity.py | DKeen0123/SentiMind | 0ffb702e88879b3e2e02d3d94a703b1f8a785bd3 | [
"MIT"
] | 2 | 2018-04-09T17:40:40.000Z | 2020-07-07T21:12:07.000Z | backend/tests/test_polarity.py | marcusfgardiner/SentiMind | d14b366ab36190df0bf3c867a149b7260ed1e2e4 | [
"MIT"
] | 3 | 2018-04-12T22:14:55.000Z | 2018-04-17T10:36:58.000Z | from .context import polarity
def test_pos_polarity_result():
assert polarity.polarity_result(0.8) == 'positive'
def test_neg_polarity_result():
assert polarity.polarity_result(-0.8) == 'negative'
def test_neutral_polarity_result():
assert polarity.polarity_result(0) == 'neutral'
| 21.357143 | 55 | 0.752508 | 39 | 299 | 5.461538 | 0.384615 | 0.394366 | 0.28169 | 0.394366 | 0.615023 | 0.615023 | 0.615023 | 0.413146 | 0 | 0 | 0 | 0.019305 | 0.133779 | 299 | 13 | 56 | 23 | 0.803089 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.428571 | true | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c99ea9698482e399619c296762fdbe9797abfcb4 | 6,510 | py | Python | coba/tests/test_environments_formats.py | anrath/coba | 635fd21306f52b27e7f5d78ee05148e6934e3d38 | [
"BSD-3-Clause"
] | null | null | null | coba/tests/test_environments_formats.py | anrath/coba | 635fd21306f52b27e7f5d78ee05148e6934e3d38 | [
"BSD-3-Clause"
] | null | null | null | coba/tests/test_environments_formats.py | anrath/coba | 635fd21306f52b27e7f5d78ee05148e6934e3d38 | [
"BSD-3-Clause"
] | null | null | null | import json
import unittest
from coba.environments.formats import EnvironmentFileFmtV1
from coba.environments.core import SimulatedEnvironment
class EnvironmentFileFmtV1_Tests(unittest.TestCase):
def test_one_simulation(self):
json_txt = """{
"simulations" : [
{ "OpenmlSimulat... | 39.93865 | 111 | 0.61828 | 572 | 6,510 | 6.933566 | 0.097902 | 0.102118 | 0.179778 | 0.090772 | 0.873424 | 0.855774 | 0.812153 | 0.801311 | 0.762229 | 0.719617 | 0 | 0.044053 | 0.232873 | 6,510 | 163 | 112 | 39.93865 | 0.7501 | 0 | 0 | 0.630769 | 0 | 0.007692 | 0.252496 | 0.00384 | 0 | 0 | 0 | 0 | 0.384615 | 1 | 0.076923 | false | 0 | 0.030769 | 0 | 0.115385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
c9c07093d9dd30024a3544b65390abfc817346db | 2,275 | py | Python | tests/contracts/KT1Cx5ohe4r8QgtP647eidHgZBJhr9L5DSJA/test_michelson_coding_KT1Cx5.py | juztin/pytezos-1 | 7e608ff599d934bdcf129e47db43dbdb8fef9027 | [
"MIT"
] | 1 | 2020-08-11T02:31:24.000Z | 2020-08-11T02:31:24.000Z | tests/contracts/KT1Cx5ohe4r8QgtP647eidHgZBJhr9L5DSJA/test_michelson_coding_KT1Cx5.py | juztin/pytezos-1 | 7e608ff599d934bdcf129e47db43dbdb8fef9027 | [
"MIT"
] | 1 | 2020-12-30T16:44:56.000Z | 2020-12-30T16:44:56.000Z | tests/contracts/KT1Cx5ohe4r8QgtP647eidHgZBJhr9L5DSJA/test_michelson_coding_KT1Cx5.py | juztin/pytezos-1 | 7e608ff599d934bdcf129e47db43dbdb8fef9027 | [
"MIT"
] | 1 | 2022-03-20T19:01:00.000Z | 2022-03-20T19:01:00.000Z | from unittest import TestCase
from tests import get_data
from pytezos.michelson.micheline import michelson_to_micheline
from pytezos.michelson.formatter import micheline_to_michelson
class MichelsonCodingTestKT1Cx5(TestCase):
def setUp(self):
self.maxDiff = None
def test_michelson_parse_code_KT... | 42.12963 | 88 | 0.735824 | 222 | 2,275 | 7.247748 | 0.162162 | 0.047856 | 0.068365 | 0.124301 | 0.845245 | 0.845245 | 0.845245 | 0.835301 | 0.821628 | 0.821628 | 0 | 0.067391 | 0.191209 | 2,275 | 53 | 89 | 42.924528 | 0.807065 | 0 | 0 | 0.55814 | 0 | 0 | 0.28 | 0.28 | 0 | 0 | 0 | 0 | 0.139535 | 1 | 0.162791 | false | 0 | 0.093023 | 0 | 0.27907 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
c9e3fe30243476c10915f7f270526901151fc5b7 | 167 | py | Python | app/recipe/admin.py | sazzadrupak/recipe-app-api | 0e108e5446d0d4c47a209df4a92aa6246e811c8f | [
"MIT"
] | null | null | null | app/recipe/admin.py | sazzadrupak/recipe-app-api | 0e108e5446d0d4c47a209df4a92aa6246e811c8f | [
"MIT"
] | null | null | null | app/recipe/admin.py | sazzadrupak/recipe-app-api | 0e108e5446d0d4c47a209df4a92aa6246e811c8f | [
"MIT"
] | null | null | null | from django.contrib import admin
from recipe import models
admin.site.register(models.Tag)
admin.site.register(models.Ingredient)
admin.site.register(models.Recipe)
| 20.875 | 38 | 0.826347 | 24 | 167 | 5.75 | 0.458333 | 0.195652 | 0.369565 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077844 | 167 | 7 | 39 | 23.857143 | 0.896104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
a0208df79d782e9296ccfee15a7e9939a2f8c801 | 42 | py | Python | hello_world.py | rjamesg/profiles-rest-api | 9d270ce64affbd257a007edcd1bbe0134b7679f2 | [
"MIT"
] | null | null | null | hello_world.py | rjamesg/profiles-rest-api | 9d270ce64affbd257a007edcd1bbe0134b7679f2 | [
"MIT"
] | null | null | null | hello_world.py | rjamesg/profiles-rest-api | 9d270ce64affbd257a007edcd1bbe0134b7679f2 | [
"MIT"
] | null | null | null | print("Hello World! We are on Vagrant!")
| 21 | 41 | 0.690476 | 7 | 42 | 4.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 42 | 1 | 42 | 42 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0.756098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
4e426a88b11a6b742b80bb53a5f8f67d668251b7 | 82 | py | Python | 01-Lesson-Plans/02-Python/3/Activities/05-Ins_Imports/Solved/functions.py | tatianegercina/FinTech | b40687aa362d78674e223eb15ecf14bc59f90b62 | [
"ADSL"
] | 1 | 2021-04-13T07:14:34.000Z | 2021-04-13T07:14:34.000Z | 01-Lesson-Plans/02-Python/3/Activities/05-Ins_Imports/Solved/functions.py | tatianegercina/FinTech | b40687aa362d78674e223eb15ecf14bc59f90b62 | [
"ADSL"
] | 2 | 2021-06-02T03:14:19.000Z | 2022-02-11T23:21:24.000Z | 01-Lesson-Plans/02-Python/3/Activities/05-Ins_Imports/Solved/functions.py | tatianegercina/FinTech | b40687aa362d78674e223eb15ecf14bc59f90b62 | [
"ADSL"
] | 1 | 2021-05-07T13:26:50.000Z | 2021-05-07T13:26:50.000Z | def print_hello():
print("hello!")
def print_goodbye():
print("goodbye!") | 16.4 | 21 | 0.634146 | 10 | 82 | 5 | 0.4 | 0.32 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 82 | 5 | 21 | 16.4 | 0.735294 | 0 | 0 | 0 | 0 | 0 | 0.168675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0 | 0.5 | 1 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
4e96f66b91dd4f41805527533c53f8654924a725 | 46 | py | Python | papuanvoices/tests/conftest.py | blurks/papuanvoices | 03f02643d47ce62ab75129ed88af7ceee3681595 | [
"Apache-2.0"
] | null | null | null | papuanvoices/tests/conftest.py | blurks/papuanvoices | 03f02643d47ce62ab75129ed88af7ceee3681595 | [
"Apache-2.0"
] | null | null | null | papuanvoices/tests/conftest.py | blurks/papuanvoices | 03f02643d47ce62ab75129ed88af7ceee3681595 | [
"Apache-2.0"
] | 1 | 2021-11-16T13:36:04.000Z | 2021-11-16T13:36:04.000Z | from papuanvoices import models
import pytest
| 15.333333 | 31 | 0.869565 | 6 | 46 | 6.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 46 | 2 | 32 | 23 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4ed90efc74402e5d0b76964cf1b13b76d720b282 | 78 | py | Python | Calculator_Application/calculations/sub.py | jpweldon/Module_2_Practice | cb546bbfcf5ffb7c6388f854e0eb8873834cfab9 | [
"MIT"
] | null | null | null | Calculator_Application/calculations/sub.py | jpweldon/Module_2_Practice | cb546bbfcf5ffb7c6388f854e0eb8873834cfab9 | [
"MIT"
] | null | null | null | Calculator_Application/calculations/sub.py | jpweldon/Module_2_Practice | cb546bbfcf5ffb7c6388f854e0eb8873834cfab9 | [
"MIT"
] | null | null | null |
# Define a Subtraction Function
def sub(num1, num2):
return num1 - num2
| 13 | 31 | 0.692308 | 11 | 78 | 4.909091 | 0.818182 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.230769 | 78 | 5 | 32 | 15.6 | 0.833333 | 0.371795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
14cad1f2e0afa17c911b2fce48a465fd3e36ed39 | 340 | py | Python | terrascript/profitbricks/d.py | hugovk/python-terrascript | 08fe185904a70246822f5cfbdc9e64e9769ec494 | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | terrascript/profitbricks/d.py | hugovk/python-terrascript | 08fe185904a70246822f5cfbdc9e64e9769ec494 | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | terrascript/profitbricks/d.py | hugovk/python-terrascript | 08fe185904a70246822f5cfbdc9e64e9769ec494 | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | # terrascript/profitbricks/d.py
import terrascript
class profitbricks_datacenter(terrascript.Data):
pass
class profitbricks_location(terrascript.Data):
pass
class profitbricks_image(terrascript.Data):
pass
class profitbricks_resource(terrascript.Data):
pass
class profitbricks_snapshot(terrascr... | 14.782609 | 48 | 0.785294 | 36 | 340 | 7.277778 | 0.361111 | 0.324427 | 0.362595 | 0.366412 | 0.549618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144118 | 340 | 22 | 49 | 15.454545 | 0.900344 | 0.085294 | 0 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.454545 | 0.090909 | 0 | 0.545455 | 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 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
090f4e6e05a6575b5f342af8eea7aa2d2e420946 | 114 | py | Python | external/loaders/loaders/mappers/_nudged/__init__.py | jacnugent/fv3net | 84958651bdd17784fdab98f87ad0d65414c03368 | [
"MIT"
] | 5 | 2021-03-20T22:42:40.000Z | 2021-06-30T18:39:36.000Z | external/loaders/loaders/mappers/_nudged/__init__.py | jacnugent/fv3net | 84958651bdd17784fdab98f87ad0d65414c03368 | [
"MIT"
] | 195 | 2021-09-16T05:47:18.000Z | 2022-03-31T22:03:15.000Z | external/loaders/loaders/mappers/_nudged/__init__.py | ai2cm/fv3net | e62038aee0a97d6207e66baabd8938467838cf51 | [
"MIT"
] | 1 | 2021-06-16T22:04:24.000Z | 2021-06-16T22:04:24.000Z | from ._nudged import (
open_nudge_to_obs,
open_nudge_to_fine,
open_nudge_to_fine_multiple_datasets,
)
| 19 | 41 | 0.77193 | 17 | 114 | 4.470588 | 0.588235 | 0.355263 | 0.434211 | 0.394737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175439 | 114 | 5 | 42 | 22.8 | 0.808511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
091274132c89a6f8a3c04e39228dc741dcff192c | 2,000 | py | Python | pinboard/test_text_transforms.py | bellisk/junkdrawer | 82aed500678ed60be61170c91371a4fc357b0e0c | [
"MIT"
] | null | null | null | pinboard/test_text_transforms.py | bellisk/junkdrawer | 82aed500678ed60be61170c91371a4fc357b0e0c | [
"MIT"
] | null | null | null | pinboard/test_text_transforms.py | bellisk/junkdrawer | 82aed500678ed60be61170c91371a4fc357b0e0c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8
import pytest
from text_transforms import apply_markdown_blockquotes, cleanup_blockquote_whitespace
@pytest.mark.parametrize('description, expected', [
("hello world", "hello world"),
("<blockquote>hello world</blockquote>", "<blockquote>hello world</blockquote>")... | 55.555556 | 119 | 0.709 | 250 | 2,000 | 5.612 | 0.152 | 0.228083 | 0.299359 | 0.256593 | 0.888097 | 0.753386 | 0.679259 | 0.598004 | 0.371347 | 0.155381 | 0 | 0.000562 | 0.11 | 2,000 | 35 | 120 | 57.142857 | 0.78764 | 0.02 | 0 | 0.296296 | 0 | 0 | 0.659857 | 0.122063 | 0 | 0 | 0 | 0 | 0.074074 | 1 | 0.074074 | false | 0 | 0.074074 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
092d632a8428978fd8582b0b57c394066ed46e63 | 1,529 | py | Python | AI_takeoff/customGym/custom_gym/envs/myxpc/actions/top.py | Skillerde6de/Minor-AI-2019_2020 | 57f6aed2d8066e48e2d99c8b97d5839b4f6ae7bc | [
"MIT"
] | 1 | 2021-01-08T08:14:34.000Z | 2021-01-08T08:14:34.000Z | AI_takeoff/customGym/custom_gym/envs/myxpc/actions/top.py | Skillerde6de/Minor-AI-2019_2020 | 57f6aed2d8066e48e2d99c8b97d5839b4f6ae7bc | [
"MIT"
] | 1 | 2020-07-04T20:42:17.000Z | 2020-07-04T20:43:40.000Z | AI_takeoff/customGym/custom_gym/envs/myxpc/actions/top.py | Skillerde6de/Minor-AI-2019_2020 | 57f6aed2d8066e48e2d99c8b97d5839b4f6ae7bc | [
"MIT"
] | null | null | null | from custom_gym.envs.myxpc import xpc2 as xpc
def top_left():
print('top_left')
with xpc.XPlaneConnect() as client:
# Verify connection
try:
# If X-Plane does not respond to the request, a timeout error
# will be raised.
client.getDREF("sim/test/test_float"... | 30.58 | 73 | 0.548725 | 192 | 1,529 | 4.286458 | 0.265625 | 0.087485 | 0.09842 | 0.087485 | 0.863913 | 0.863913 | 0.863913 | 0.863913 | 0.863913 | 0.823815 | 0 | 0.056919 | 0.333551 | 1,529 | 49 | 74 | 31.204082 | 0.750736 | 0.18378 | 0 | 0.617647 | 0 | 0 | 0.189015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.029412 | 0 | 0.205882 | 0.264706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
116dfb0e1da539cb219eba67e8a79452f7f508c4 | 5,654 | py | Python | tests/agent_test.py | Ostorlab/agent_tsunami | 405ca0629a1ac42103d5f04719f3d8b87ddca406 | [
"Apache-2.0"
] | 2 | 2022-03-04T11:56:13.000Z | 2022-03-05T23:07:36.000Z | tests/agent_test.py | Ostorlab/agent_tsunami | 405ca0629a1ac42103d5f04719f3d8b87ddca406 | [
"Apache-2.0"
] | null | null | null | tests/agent_test.py | Ostorlab/agent_tsunami | 405ca0629a1ac42103d5f04719f3d8b87ddca406 | [
"Apache-2.0"
] | null | null | null | """Unittests for agent."""
import pytest
from ostorlab.agent import message
from ostorlab.agent.kb import kb
from ostorlab.agent.mixins import agent_report_vulnerability_mixin
from agent.tsunami import tsunami
def testTsunamiAgent_WhenMessageHaveInvalidIpVersion_ShouldRaiseValueErrorException(tsunami_agent):
""... | 44.519685 | 120 | 0.631411 | 581 | 5,654 | 5.969019 | 0.209983 | 0.008651 | 0.008651 | 0.005767 | 0.8094 | 0.807093 | 0.807093 | 0.805363 | 0.781719 | 0.766724 | 0 | 0.011013 | 0.277326 | 5,654 | 126 | 121 | 44.873016 | 0.837739 | 0.169791 | 0 | 0.636364 | 0 | 0 | 0.170812 | 0.045375 | 0 | 0 | 0 | 0 | 0.056818 | 1 | 0.045455 | false | 0.045455 | 0.056818 | 0 | 0.102273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
11ee5816e7344113fe17ce6358248bce0f83ed3e | 19,503 | py | Python | cottonformation/res/ecr.py | gitter-badger/cottonformation-project | 354f1dce7ea106e209af2d5d818b6033a27c193c | [
"BSD-2-Clause"
] | null | null | null | cottonformation/res/ecr.py | gitter-badger/cottonformation-project | 354f1dce7ea106e209af2d5d818b6033a27c193c | [
"BSD-2-Clause"
] | null | null | null | cottonformation/res/ecr.py | gitter-badger/cottonformation-project | 354f1dce7ea106e209af2d5d818b6033a27c193c | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This module
"""
import attr
import typing
from ..core.model import (
Property, Resource, Tag, GetAtt, TypeHint, TypeCheck,
)
from ..core.constant import AttrMeta
#--- Property declaration ---
@attr.s
class RepositoryLifecyclePolicy(Property):
"""
AWS Object Type = "AWS::ECR:... | 56.043103 | 225 | 0.767215 | 2,003 | 19,503 | 7.385921 | 0.047928 | 0.056239 | 0.043869 | 0.067798 | 0.846897 | 0.841693 | 0.810058 | 0.762336 | 0.762066 | 0.745843 | 0 | 0.000057 | 0.107214 | 19,503 | 347 | 226 | 56.204611 | 0.849586 | 0.35856 | 0 | 0.443787 | 0 | 0 | 0.114421 | 0.082506 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029586 | false | 0 | 0.023669 | 0 | 0.331361 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
ee9beaec517bbad64990f3f3106bc0b86c51696a | 2,080 | py | Python | battles/tests/tests_forms.py | pamella/pokebattle | a90b27d87b12dd079356ad4b5a15a196004e1c5e | [
"MIT"
] | 2 | 2019-02-27T16:11:11.000Z | 2019-12-10T14:01:18.000Z | battles/tests/tests_forms.py | pamella/pokebattle | a90b27d87b12dd079356ad4b5a15a196004e1c5e | [
"MIT"
] | 14 | 2019-02-21T14:36:22.000Z | 2022-02-26T09:49:44.000Z | battles/tests/tests_forms.py | pamella/pokebattle | a90b27d87b12dd079356ad4b5a15a196004e1c5e | [
"MIT"
] | null | null | null | from model_mommy import mommy
from battles.forms import CreateBattleForm, SelectTrainerTeamForm
from battles.tests.tests_helpers import PokeBattleTestCase
class CreateBattleFormTest(PokeBattleTestCase):
def test_pokemon_team_sum_invalid(self):
attr = {
'initial': {
'trainer_c... | 34.098361 | 86 | 0.5125 | 189 | 2,080 | 5.492063 | 0.301587 | 0.069364 | 0.098266 | 0.138728 | 0.77842 | 0.77842 | 0.77842 | 0.77842 | 0.77842 | 0.77842 | 0 | 0.018462 | 0.375 | 2,080 | 60 | 87 | 34.666667 | 0.78 | 0 | 0 | 0.716981 | 0 | 0 | 0.222115 | 0 | 0 | 0 | 0 | 0 | 0.075472 | 1 | 0.037736 | false | 0 | 0.056604 | 0 | 0.132075 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
eeafbdce1107f03d7966ec273d2ca2553756833f | 2,930 | py | Python | complex_venv/lib/python3.7/site-packages/test/test_remove_empty_sahpes.py | lubianat/complex_bot | e0ddabcc0487c52b14fb94950c5a812f0bdb2283 | [
"MIT"
] | 1 | 2021-10-06T00:21:10.000Z | 2021-10-06T00:21:10.000Z | complex_venv/lib/python3.7/site-packages/test/test_remove_empty_sahpes.py | lubianat/complex_bot | e0ddabcc0487c52b14fb94950c5a812f0bdb2283 | [
"MIT"
] | 14 | 2021-01-15T21:51:38.000Z | 2021-11-10T10:08:22.000Z | complex_venv/lib/python3.7/site-packages/test/test_remove_empty_sahpes.py | lubianat/complex_bot | e0ddabcc0487c52b14fb94950c5a812f0bdb2283 | [
"MIT"
] | 1 | 2021-01-18T10:32:56.000Z | 2021-01-18T10:32:56.000Z | import unittest
from shexer.shaper import Shaper
from test.const import G1, BASE_FILES, G1_ALL_CLASSES_NO_COMMENTS
from test.t_utils import file_vs_str_tunned_comparison, number_of_shapes
import os.path as pth
_BASE_DIR = BASE_FILES + "empty_shapes" + pth.sep
class TestRemoveEmptyShapes(unittest.TestCase):
... | 51.403509 | 106 | 0.549829 | 317 | 2,930 | 4.716088 | 0.198738 | 0.048161 | 0.064214 | 0.085619 | 0.833445 | 0.787291 | 0.787291 | 0.787291 | 0.712375 | 0.712375 | 0 | 0.012938 | 0.366894 | 2,930 | 57 | 107 | 51.403509 | 0.792992 | 0 | 0 | 0.7 | 0 | 0 | 0.122087 | 0.017739 | 0 | 0 | 0 | 0 | 0.08 | 1 | 0.08 | false | 0 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
eec19a406637dd86d08d3549bf432eb984f5c749 | 159 | py | Python | apps/base/coinbase.py | silverlogic/bit-tag-api | 22bc1d79b3d48493ff3880f4c976c4e7c8135973 | [
"MIT"
] | null | null | null | apps/base/coinbase.py | silverlogic/bit-tag-api | 22bc1d79b3d48493ff3880f4c976c4e7c8135973 | [
"MIT"
] | null | null | null | apps/base/coinbase.py | silverlogic/bit-tag-api | 22bc1d79b3d48493ff3880f4c976c4e7c8135973 | [
"MIT"
] | null | null | null | from django.conf import settings
from coinbase.wallet.client import Client
coinbase_client = Client(settings.COINBASE_API_KEY, settings.COINBASE_API_SECRET)
| 26.5 | 81 | 0.855346 | 22 | 159 | 5.954545 | 0.5 | 0.244275 | 0.290076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08805 | 159 | 5 | 82 | 31.8 | 0.903448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
eefb432424d517dc189fcac77b9ac5aa8c6dcf86 | 86 | py | Python | apps/libs/__init__.py | panla/fastapi_sockets | 9d425b0835f295245f38c71314bcaba9615d5cb7 | [
"MIT"
] | 2 | 2021-12-28T10:58:33.000Z | 2022-01-14T15:50:43.000Z | apps/libs/__init__.py | panla/fastapi_sockets | 9d425b0835f295245f38c71314bcaba9615d5cb7 | [
"MIT"
] | null | null | null | apps/libs/__init__.py | panla/fastapi_sockets | 9d425b0835f295245f38c71314bcaba9615d5cb7 | [
"MIT"
] | null | null | null | from .middleware import register_middleware
from .exception import register_exception
| 28.666667 | 43 | 0.883721 | 10 | 86 | 7.4 | 0.5 | 0.378378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 86 | 2 | 44 | 43 | 0.948718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
e1034ac12ae11a7bcc86a642943a634a22f68811 | 126 | py | Python | fmd/__init__.py | keshav47/cnn-facial-landmark | 2c4011db2917428ebebf70d7fc9ad59c89002bfc | [
"MIT"
] | null | null | null | fmd/__init__.py | keshav47/cnn-facial-landmark | 2c4011db2917428ebebf70d7fc9ad59c89002bfc | [
"MIT"
] | 1 | 2021-09-07T10:19:43.000Z | 2021-09-07T10:19:43.000Z | fmd/__init__.py | keshav47/cnn-facial-landmark | 2c4011db2917428ebebf70d7fc9ad59c89002bfc | [
"MIT"
] | null | null | null | """Facial landmark dataset toolkit.
Useage: https://github.com/yinguobing/facial-landmark-dataset
"""
from .wflw import WFLW
| 21 | 61 | 0.769841 | 16 | 126 | 6.0625 | 0.75 | 0.28866 | 0.43299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 126 | 5 | 62 | 25.2 | 0.850877 | 0.753968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
e11a78b4569881b504b9569e785ba0326b601d0f | 81 | py | Python | converter/convertDocxToText.py | rsandagon/cv-ner | d7fb6e55b2caa6aff614ffc6d44ce0b3074c4044 | [
"MIT"
] | 4 | 2020-05-24T04:11:35.000Z | 2021-09-14T16:58:02.000Z | converter/convertDocxToText.py | rsandagon/cv-ner | d7fb6e55b2caa6aff614ffc6d44ce0b3074c4044 | [
"MIT"
] | 8 | 2021-03-19T02:09:19.000Z | 2022-03-11T23:53:28.000Z | converter/convertDocxToText.py | rsandagon/cv-ner | d7fb6e55b2caa6aff614ffc6d44ce0b3074c4044 | [
"MIT"
] | 2 | 2020-10-09T12:08:59.000Z | 2020-12-20T22:19:56.000Z | import docx2txt
def convert_docx_to_text(path):
return docx2txt.process(path)
| 13.5 | 31 | 0.814815 | 12 | 81 | 5.25 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.111111 | 81 | 5 | 32 | 16.2 | 0.847222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 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 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
016d7cd0591f5befd0bbac8b9199d8ba989f70b5 | 144,911 | py | Python | loopchain/protos/loopchain_pb2.py | extendjh/loopchain | bb0cd6270677f796d90289fa31d2bb2bc9015f11 | [
"Apache-2.0"
] | 2 | 2017-08-14T00:38:01.000Z | 2021-07-02T06:44:32.000Z | loopchain/protos/loopchain_pb2.py | extendjh/loopchain | bb0cd6270677f796d90289fa31d2bb2bc9015f11 | [
"Apache-2.0"
] | null | null | null | loopchain/protos/loopchain_pb2.py | extendjh/loopchain | bb0cd6270677f796d90289fa31d2bb2bc9015f11 | [
"Apache-2.0"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: loopchain.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as ... | 42.873077 | 7,702 | 0.712865 | 14,992 | 144,911 | 6.68083 | 0.037086 | 0.020447 | 0.01905 | 0.016474 | 0.754341 | 0.732316 | 0.717509 | 0.702044 | 0.655328 | 0.648559 | 0 | 0.021095 | 0.161582 | 144,911 | 3,379 | 7,703 | 42.885765 | 0.803286 | 0.073024 | 0 | 0.681611 | 1 | 0.00035 | 0.177325 | 0.079367 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061296 | false | 0.00035 | 0.004553 | 0 | 0.074256 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
017d1f9358cdad31c3825831d61287d902db0024 | 1,455 | py | Python | tests/test_anonymous.py | psentinelli/filebrowser-safe | 8677982c3d32280f92d2a1499612553a4cbea6c0 | [
"BSD-3-Clause"
] | 25 | 2015-04-11T15:51:50.000Z | 2021-11-01T03:53:35.000Z | tests/test_anonymous.py | psentinelli/filebrowser-safe | 8677982c3d32280f92d2a1499612553a4cbea6c0 | [
"BSD-3-Clause"
] | 88 | 2015-01-06T20:59:10.000Z | 2022-03-29T14:05:10.000Z | tests/test_anonymous.py | psentinelli/filebrowser-safe | 8677982c3d32280f92d2a1499612553a4cbea6c0 | [
"BSD-3-Clause"
] | 85 | 2015-01-06T00:45:22.000Z | 2021-12-18T20:40:46.000Z | from django.test import TestCase
from django.urls import reverse
class FilebrowserAnonymousTestCase(TestCase):
def test_browse(self):
url = reverse("fb_browse")
response = self.client.get(url)
self.assertEqual(302, response.status_code)
self.assertEqual("/admin/login/?next=" + url,... | 35.487805 | 67 | 0.650859 | 177 | 1,455 | 5.237288 | 0.163842 | 0.194175 | 0.090615 | 0.10356 | 0.812298 | 0.764833 | 0.764833 | 0.764833 | 0.764833 | 0.764833 | 0 | 0.015817 | 0.217869 | 1,455 | 40 | 68 | 36.375 | 0.79877 | 0 | 0 | 0.606061 | 0 | 0 | 0.117526 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 1 | 0.181818 | false | 0 | 0.060606 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
6d7e8fa257e87b632f8db45c59eeff9555c5fc3d | 5,617 | py | Python | AjkSpider/tools/db_final.py | Justyer/AnjukeSpider | 495c036a4c2236a11da9b17f75ddffd9f2fab2f6 | [
"MIT"
] | null | null | null | AjkSpider/tools/db_final.py | Justyer/AnjukeSpider | 495c036a4c2236a11da9b17f75ddffd9f2fab2f6 | [
"MIT"
] | null | null | null | AjkSpider/tools/db_final.py | Justyer/AnjukeSpider | 495c036a4c2236a11da9b17f75ddffd9f2fab2f6 | [
"MIT"
] | null | null | null | # import psycopg2
#
# conn = psycopg2.connect(database='lj_db', user='postgres', password='495495', host='127.0.0.1', port='5432')
# cur = conn.cursor()
import pymysql.cursors
conn = pymysql.connect(host='localhost',
user='root',
password='162534',
... | 30.527174 | 111 | 0.589461 | 714 | 5,617 | 4.515406 | 0.161064 | 0.217122 | 0.375 | 0.490385 | 0.765819 | 0.687035 | 0.687035 | 0.687035 | 0.665012 | 0.644231 | 0 | 0.081273 | 0.323126 | 5,617 | 183 | 112 | 30.693989 | 0.766702 | 0.142247 | 0 | 0.625954 | 0 | 0 | 0.89524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007634 | 0.007634 | null | null | 0.007634 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
a3041c6f7b5d29f798e962855bef511409f20e9c | 75 | py | Python | util/__init__.py | metaperl/freegold-focus | 49cf86be57c76b265f711e337f85d8ee2b156301 | [
"MIT"
] | null | null | null | util/__init__.py | metaperl/freegold-focus | 49cf86be57c76b265f711e337f85d8ee2b156301 | [
"MIT"
] | null | null | null | util/__init__.py | metaperl/freegold-focus | 49cf86be57c76b265f711e337f85d8ee2b156301 | [
"MIT"
] | null | null | null | def full_path(p=""):
return os.path.join(os.path.dirname(__file__), p)
| 25 | 53 | 0.68 | 13 | 75 | 3.538462 | 0.692308 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 75 | 2 | 54 | 37.5 | 0.69697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
099040c419923597189bc548a0b6f41cc897df36 | 24 | py | Python | utils/__init__.py | Lars-H/hdt_sampler | c30ab87dbe0c489ed274d52af1af090045cade9d | [
"MIT"
] | null | null | null | utils/__init__.py | Lars-H/hdt_sampler | c30ab87dbe0c489ed274d52af1af090045cade9d | [
"MIT"
] | null | null | null | utils/__init__.py | Lars-H/hdt_sampler | c30ab87dbe0c489ed274d52af1af090045cade9d | [
"MIT"
] | 1 | 2020-11-12T15:07:22.000Z | 2020-11-12T15:07:22.000Z | from .rdf_utils import * | 24 | 24 | 0.791667 | 4 | 24 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 24 | 1 | 24 | 24 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
09e6b4830587e9b61ed1a9b552f158cf1f3a37d7 | 49 | py | Python | utils/losses/__init__.py | rbg-research/Floor-Plan-Detection | c6e63d880e8996eb31eebd70aa7331018392db05 | [
"MIT"
] | 3 | 2022-01-11T16:42:23.000Z | 2022-02-21T09:05:25.000Z | utils/losses/__init__.py | rbg-research/Floor-Plan-Detection | c6e63d880e8996eb31eebd70aa7331018392db05 | [
"MIT"
] | null | null | null | utils/losses/__init__.py | rbg-research/Floor-Plan-Detection | c6e63d880e8996eb31eebd70aa7331018392db05 | [
"MIT"
] | 1 | 2021-11-19T07:01:57.000Z | 2021-11-19T07:01:57.000Z | from floortrans.losses.uncertainty_loss import *
| 24.5 | 48 | 0.857143 | 6 | 49 | 6.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 49 | 1 | 49 | 49 | 0.911111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
09e83c3999ea88dd92d57e165272d1d34c9a854a | 34 | py | Python | env/local/lib/python2.7/site-packages/pyteomics/openms/__init__.py | sdgroeve/Omega_server | e788af5d5e2717c19100a88467c7126c8fcef033 | [
"MIT"
] | 1 | 2018-08-20T08:59:42.000Z | 2018-08-20T08:59:42.000Z | env/local/lib/python2.7/site-packages/pyteomics/openms/__init__.py | sdgroeve/Omega_server | e788af5d5e2717c19100a88467c7126c8fcef033 | [
"MIT"
] | 9 | 2018-02-14T14:24:39.000Z | 2021-12-13T19:45:34.000Z | python_env/lib/python2.7/site-packages/pyteomics/openms/__init__.py | Rappsilber-Laboratory/xiSPEC_ms_parser | 3c8f9ab1a5ca449ddca35be7e5fd1eb58b0fa943 | [
"Apache-2.0"
] | 2 | 2017-12-11T14:47:35.000Z | 2018-02-17T09:56:37.000Z | from . import featurexml, trafoxml | 34 | 34 | 0.823529 | 4 | 34 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 34 | 1 | 34 | 34 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
61dd325a5bbd7a2d4d1490d59970a7329c7efe11 | 56 | py | Python | Chapter04/list_sort.py | PacktPublishing/Secret-Recipes-of-the-Python-Ninja | 805d00c7a54927ba94c9077e9a580508ee3c5e56 | [
"MIT"
] | 13 | 2018-06-21T01:44:49.000Z | 2021-12-01T10:49:53.000Z | Chapter04/list_sort.py | PacktPublishing/Secret-Recipes-of-the-Python-Ninja | 805d00c7a54927ba94c9077e9a580508ee3c5e56 | [
"MIT"
] | null | null | null | Chapter04/list_sort.py | PacktPublishing/Secret-Recipes-of-the-Python-Ninja | 805d00c7a54927ba94c9077e9a580508ee3c5e56 | [
"MIT"
] | 6 | 2018-10-05T08:29:24.000Z | 2022-01-11T14:49:50.000Z | >>> l.sort()
>>> l
[[1, 43], [2, 34], [3, 56], [6, 98]]
| 14 | 36 | 0.321429 | 11 | 56 | 1.636364 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 0.214286 | 56 | 3 | 37 | 18.666667 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1106570e272354757eb2ce10c92335b8486b1215 | 5,263 | py | Python | pendulum/tests/test_realism.py | PabRod/pendulum | 957409d44f6d0bbf31adad1b6778c3fcd8c0fdf3 | [
"MIT"
] | 1 | 2022-02-24T21:02:47.000Z | 2022-02-24T21:02:47.000Z | pendulum/tests/test_realism.py | PabRod/pendulum | 957409d44f6d0bbf31adad1b6778c3fcd8c0fdf3 | [
"MIT"
] | 8 | 2019-07-16T13:34:13.000Z | 2019-08-09T09:20:46.000Z | pendulum/tests/test_realism.py | PabRod/pendulum | 957409d44f6d0bbf31adad1b6778c3fcd8c0fdf3 | [
"MIT"
] | 1 | 2019-07-26T09:09:14.000Z | 2019-07-26T09:09:14.000Z | from pendulum.models import *
from pendulum.models import _format_accelerations
import numpy as np
import pytest
@pytest.mark.parametrize("input, exp_output", [
((0, 0), (0, 0)), # Stable equilibrium
((np.pi, 0), (0, 0)) # Unstable equilibrium
])
def test_dpendulum(input, exp_output):
''' Test the equilib... | 31.327381 | 83 | 0.633099 | 846 | 5,263 | 3.808511 | 0.140662 | 0.029795 | 0.020484 | 0.018622 | 0.870267 | 0.865922 | 0.844507 | 0.80478 | 0.781813 | 0.781813 | 0 | 0.05125 | 0.232567 | 5,263 | 167 | 84 | 31.51497 | 0.746472 | 0.291469 | 0 | 0.580645 | 0 | 0 | 0.029274 | 0 | 0 | 0 | 0 | 0 | 0.139785 | 1 | 0.096774 | false | 0 | 0.043011 | 0 | 0.139785 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
111309dacfa9a9a6f5b8d63238a364a77e6bc248 | 156 | py | Python | Codes/converters.py | Muntaha-Islam0019/Hello-World | a650bd32e039076ea10caea850453fdaa4744975 | [
"MIT"
] | 1 | 2019-12-18T09:59:44.000Z | 2019-12-18T09:59:44.000Z | Codes/converters.py | Muntaha-Islam0019/Hello-World | a650bd32e039076ea10caea850453fdaa4744975 | [
"MIT"
] | null | null | null | Codes/converters.py | Muntaha-Islam0019/Hello-World | a650bd32e039076ea10caea850453fdaa4744975 | [
"MIT"
] | null | null | null | # This code is connected with '18 - Modules.py'
def kgs_to_lbs(weight):
return 2.20462 * weight
def lbs_t_kgs(weight):
return 0.453592 * weight
| 15.6 | 47 | 0.692308 | 26 | 156 | 4 | 0.730769 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 0.211538 | 156 | 9 | 48 | 17.333333 | 0.723577 | 0.288462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
11513e05d23220f9294ce46d5bdbe84362f48720 | 76 | py | Python | src/icupy/number.py | miute/icupy | 253dd666936c23577abd1fdd94bc9cea012017b8 | [
"MIT"
] | null | null | null | src/icupy/number.py | miute/icupy | 253dd666936c23577abd1fdd94bc9cea012017b8 | [
"MIT"
] | null | null | null | src/icupy/number.py | miute/icupy | 253dd666936c23577abd1fdd94bc9cea012017b8 | [
"MIT"
] | null | null | null | """
Module for icu::number namespace
"""
from .icu.number import * # noqa
| 12.666667 | 33 | 0.657895 | 10 | 76 | 5 | 0.8 | 0.36 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 76 | 5 | 34 | 15.2 | 0.806452 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
28f1a2976e4303be5114da583b652ed4711125d0 | 27 | py | Python | vmsshgen/__init__.py | dimon222/py-vmsshgen | 4d5278c7d22e1d4dc217b1ac017377ca5af8b3a3 | [
"Apache-2.0"
] | null | null | null | vmsshgen/__init__.py | dimon222/py-vmsshgen | 4d5278c7d22e1d4dc217b1ac017377ca5af8b3a3 | [
"Apache-2.0"
] | 1 | 2022-03-04T06:35:48.000Z | 2022-03-04T06:35:48.000Z | vmsshgen/__init__.py | dimon222/py-vmsshgen | 4d5278c7d22e1d4dc217b1ac017377ca5af8b3a3 | [
"Apache-2.0"
] | null | null | null | from .vmsshgen import main
| 13.5 | 26 | 0.814815 | 4 | 27 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 27 | 1 | 27 | 27 | 0.956522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
e94090e9c786612ccd50c0f325b5ba2d5cfb5b2f | 11,118 | py | Python | modelmaker/predictor.py | wangjm12138/modelmaker | aa42ce9d504cc13a636b0c9f4ac49b71538c7cda | [
"MIT"
] | null | null | null | modelmaker/predictor.py | wangjm12138/modelmaker | aa42ce9d504cc13a636b0c9f4ac49b71538c7cda | [
"MIT"
] | null | null | null | modelmaker/predictor.py | wangjm12138/modelmaker | aa42ce9d504cc13a636b0c9f4ac49b71538c7cda | [
"MIT"
] | null | null | null | import requests
#from .infers_images_api import *
from .client.api import *
from abc import ABCMeta, abstractmethod
from six import with_metaclass
from json import JSONEncoder
import json
import logging
import os
logging.basicConfig()
LOGGER = logging.getLogger('modelmaker-sdk/Predictor')
LOGGER_LEVEL = os... | 32.132948 | 117 | 0.711009 | 1,500 | 11,118 | 5.072667 | 0.089333 | 0.18097 | 0.070049 | 0.063872 | 0.838086 | 0.807991 | 0.768169 | 0.73873 | 0.73873 | 0.706006 | 0 | 0.002621 | 0.176471 | 11,118 | 345 | 118 | 32.226087 | 0.828419 | 0.46807 | 0 | 0.607477 | 0 | 0 | 0.072221 | 0.004514 | 0 | 0 | 0 | 0 | 0 | 1 | 0.186916 | false | 0 | 0.074766 | 0 | 0.448598 | 0.018692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
3a9ce59ef357f8082e0a5a1745c5d82c5d7946d8 | 34 | py | Python | appyratus/asynchronous/__init__.py | gigaquads/appyratus | 09d88c000e0f3d254f5e1875388ccf87cec4be7c | [
"MIT"
] | 1 | 2021-02-26T15:31:01.000Z | 2021-02-26T15:31:01.000Z | appyratus/asynchronous/__init__.py | gigaquads/appyratus | 09d88c000e0f3d254f5e1875388ccf87cec4be7c | [
"MIT"
] | null | null | null | appyratus/asynchronous/__init__.py | gigaquads/appyratus | 09d88c000e0f3d254f5e1875388ccf87cec4be7c | [
"MIT"
] | null | null | null | from .http import AsyncHttpClient
| 17 | 33 | 0.852941 | 4 | 34 | 7.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 34 | 1 | 34 | 34 | 0.966667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
c90457cff2921decd8ebca2698bdf5105eebafc9 | 180 | py | Python | aws_xray_lambda_segment_shim/exceptions.py | Sam-Martin/aws-xray-sqs-lambda-segment-shim | 5e3fa50d9e5f6ec72e04ce417c0d8db5d95a8246 | [
"MIT"
] | 5 | 2021-08-23T16:06:08.000Z | 2022-03-24T20:55:44.000Z | aws_xray_lambda_segment_shim/exceptions.py | Sam-Martin/aws-xray-sqs-lambda-segment-shim | 5e3fa50d9e5f6ec72e04ce417c0d8db5d95a8246 | [
"MIT"
] | 1 | 2021-11-04T08:06:29.000Z | 2021-11-05T17:19:55.000Z | aws_xray_lambda_segment_shim/exceptions.py | Sam-Martin/aws-xray-sqs-lambda-segment-shim | 5e3fa50d9e5f6ec72e04ce417c0d8db5d95a8246 | [
"MIT"
] | null | null | null | class InvalidTraceHeader(Exception):
"""Thrown if a bad trace header was passed in."""
class InvalidMessageID(Exception):
"""Thrown if a bad message id was passed in."""
| 25.714286 | 53 | 0.711111 | 24 | 180 | 5.333333 | 0.625 | 0.234375 | 0.265625 | 0.28125 | 0.328125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177778 | 180 | 6 | 54 | 30 | 0.864865 | 0.472222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c911f589d4393255f7d75ac32976015e4036986d | 6,294 | py | Python | ActionTree/tests/timing.py | Python3pkg/ActionTree | cfa62a95bf40241e6d6b98f1bfbc1b3748e6fc78 | [
"MIT"
] | 1 | 2021-09-10T19:29:30.000Z | 2021-09-10T19:29:30.000Z | ActionTree/tests/timing.py | Python3pkg/ActionTree | cfa62a95bf40241e6d6b98f1bfbc1b3748e6fc78 | [
"MIT"
] | null | null | null | ActionTree/tests/timing.py | Python3pkg/ActionTree | cfa62a95bf40241e6d6b98f1bfbc1b3748e6fc78 | [
"MIT"
] | 1 | 2017-09-03T21:25:00.000Z | 2017-09-03T21:25:00.000Z | # coding: utf8
# Copyright 2013-2017 Vincent Jacques <vincent@vincent-jacques.net>
from __future__ import division, absolute_import, print_function
import unittest
from ActionTree import *
from . import *
class TimingTestCase(ActionTreeTestCase):
def test_success(self):
a = self._action("a")
... | 40.87013 | 116 | 0.692882 | 884 | 6,294 | 4.633484 | 0.114253 | 0.118652 | 0.197754 | 0.276855 | 0.843018 | 0.82251 | 0.787109 | 0.744385 | 0.631836 | 0.598145 | 0 | 0.005541 | 0.197172 | 6,294 | 153 | 117 | 41.137255 | 0.805066 | 0.036225 | 0 | 0.557522 | 0 | 0 | 0.0033 | 0 | 0 | 0 | 0 | 0.006536 | 0.300885 | 1 | 0.088496 | false | 0 | 0.035398 | 0 | 0.132743 | 0.00885 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
a33063cb9d23553d95922194461fd9f2c2facb7a | 3,980 | py | Python | pyscf/nao/test/test_0018_fermi_energy.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | 3 | 2021-02-28T00:52:53.000Z | 2021-03-01T06:23:33.000Z | pyscf/nao/test/test_0018_fermi_energy.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | 36 | 2018-08-22T19:44:03.000Z | 2020-05-09T10:02:36.000Z | pyscf/nao/test/test_0018_fermi_energy.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | 4 | 2018-02-14T16:28:28.000Z | 2019-08-12T16:40:30.000Z | from __future__ import print_function, division
import os,unittest,numpy as np
from pyscf.nao.m_fermi_dirac import fermi_dirac_occupations
from pyscf.nao.m_fermi_energy import fermi_energy as get_fermi_energy
class KnowValues(unittest.TestCase):
def test_fermi_energy_spin_saturated(self):
""" This is to test ... | 34.912281 | 89 | 0.657789 | 589 | 3,980 | 4.266553 | 0.135823 | 0.170712 | 0.062077 | 0.031834 | 0.88261 | 0.85953 | 0.846001 | 0.830879 | 0.811779 | 0.811779 | 0 | 0.095073 | 0.204523 | 3,980 | 113 | 90 | 35.221239 | 0.698673 | 0.186935 | 0 | 0.671875 | 0 | 0 | 0.002519 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.09375 | false | 0 | 0.0625 | 0 | 0.171875 | 0.015625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
a36d21a5d5d7253acf618bce2f433a993a57f559 | 195 | py | Python | gg/__init__.py | willieLjohnson/pygg | b204e4b6ab01a5156f7b38e99e8077875d038c86 | [
"MIT"
] | null | null | null | gg/__init__.py | willieLjohnson/pygg | b204e4b6ab01a5156f7b38e99e8077875d038c86 | [
"MIT"
] | null | null | null | gg/__init__.py | willieLjohnson/pygg | b204e4b6ab01a5156f7b38e99e8077875d038c86 | [
"MIT"
] | null | null | null | from .display import *
from .game import *
from .ecs import *
from .gen import *
from .player import *
from .structures import *
from .style import *
from .world import *
from .particles import * | 21.666667 | 25 | 0.728205 | 27 | 195 | 5.259259 | 0.407407 | 0.56338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 195 | 9 | 26 | 21.666667 | 0.8875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
a374c049dbdd294680125fd54cc07c232b43e367 | 175 | py | Python | plugins/__init__.py | wolfy1339/Python-IRC-Bot | 87ecacf3968d310dbdd19537914be731abec599b | [
"MIT"
] | 3 | 2016-11-25T17:16:49.000Z | 2017-11-10T02:19:39.000Z | plugins/__init__.py | wolfy1339/Python-IRC-Bot | 87ecacf3968d310dbdd19537914be731abec599b | [
"MIT"
] | 21 | 2016-11-09T15:45:05.000Z | 2017-10-23T16:57:37.000Z | plugins/__init__.py | wolfy1339/Python-IRC-Bot | 87ecacf3968d310dbdd19537914be731abec599b | [
"MIT"
] | null | null | null | # pylint: disable=unused-import
from . import admin
from . import channel
from . import general
from . import Hash
from . import weather
# pylint: enable=unused-import
| 21.875 | 32 | 0.737143 | 23 | 175 | 5.608696 | 0.478261 | 0.387597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188571 | 175 | 7 | 33 | 25 | 0.908451 | 0.331429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
a37bbc62a7634ce8b19720602b18e06425a6e032 | 411 | py | Python | xu/src/python/Request/Model/__init__.py | sonnts996/XuCompa-Request | f343e7bfd1b4263eb76438c96d347c549cc75ce3 | [
"Apache-2.0"
] | null | null | null | xu/src/python/Request/Model/__init__.py | sonnts996/XuCompa-Request | f343e7bfd1b4263eb76438c96d347c549cc75ce3 | [
"Apache-2.0"
] | null | null | null | xu/src/python/Request/Model/__init__.py | sonnts996/XuCompa-Request | f343e7bfd1b4263eb76438c96d347c549cc75ce3 | [
"Apache-2.0"
] | null | null | null | from xu.src.python.Request.Model.APIAnalysis import APIAnalysis
from xu.src.python.Request.Model.APILink import APILink
from xu.src.python.Request.Model.MyFile import MyFile
from xu.src.python.Request.Model.APIConfig import APIConfig
from xu.src.python.Request.Model.APIResponse import APIResponse
from xu.src.python.Req... | 45.666667 | 63 | 0.844282 | 63 | 411 | 5.507937 | 0.222222 | 0.121037 | 0.181556 | 0.302594 | 0.544669 | 0.544669 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07056 | 411 | 8 | 64 | 51.375 | 0.908377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6e997857bc31490a820e7b3003f8aad3a0d956e5 | 2,322 | py | Python | train/read_loss.py | Hypersonichen/Deep-Flow-Prediction | e893da63be2cdd8541cdf0da286d097a721d9686 | [
"Apache-2.0"
] | null | null | null | train/read_loss.py | Hypersonichen/Deep-Flow-Prediction | e893da63be2cdd8541cdf0da286d097a721d9686 | [
"Apache-2.0"
] | null | null | null | train/read_loss.py | Hypersonichen/Deep-Flow-Prediction | e893da63be2cdd8541cdf0da286d097a721d9686 | [
"Apache-2.0"
] | null | null | null |
import numpy as np
import math
from matplotlib import pyplot as plt
for index in range(1):
file="./L1.txt"
f=open(file,"r")
lines=f.readlines()
x = []
#z = []
#theta = []
result=[]
drag = []
drag_visc = []
i=0
for xline in lines:
if i>=1:
# tempx=(f... | 23.454545 | 62 | 0.518519 | 311 | 2,322 | 3.810289 | 0.250804 | 0.101266 | 0.151899 | 0.141772 | 0.813502 | 0.813502 | 0.779747 | 0.779747 | 0.744304 | 0.744304 | 0 | 0.040123 | 0.302326 | 2,322 | 98 | 63 | 23.693878 | 0.691358 | 0.44832 | 0 | 0.695652 | 0 | 0 | 0.047504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.065217 | 0 | 0.065217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
6eb1530f50028ad3233e4d72226150fc6eb9bcc6 | 179 | py | Python | custom/ewsghana/reminders/utils.py | kkrampa/commcare-hq | d64d7cad98b240325ad669ccc7effb07721b4d44 | [
"BSD-3-Clause"
] | 1 | 2020-05-05T13:10:01.000Z | 2020-05-05T13:10:01.000Z | custom/ewsghana/reminders/utils.py | kkrampa/commcare-hq | d64d7cad98b240325ad669ccc7effb07721b4d44 | [
"BSD-3-Clause"
] | 1 | 2022-03-12T01:03:25.000Z | 2022-03-12T01:03:25.000Z | custom/ewsghana/reminders/utils.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | 5 | 2015-11-30T13:12:45.000Z | 2019-07-01T19:27:07.000Z | def user_has_reporting_location(user):
sql_location = user.sql_location
if not sql_location:
return False
return not sql_location.location_type.administrative
| 29.833333 | 56 | 0.77095 | 24 | 179 | 5.416667 | 0.5 | 0.338462 | 0.230769 | 0.353846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184358 | 179 | 5 | 57 | 35.8 | 0.890411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
6edaf5115323077480e06a77c3d846c77fd81d65 | 47 | py | Python | web_parsers/extractors/__init__.py | invanalabs/web-parser | dca9c6354317ec7187f46fd270092372b39f63f8 | [
"Apache-2.0"
] | 1 | 2019-10-06T23:11:32.000Z | 2019-10-06T23:11:32.000Z | web_parsers/extractors/__init__.py | crawlerflow/extraction-engine | dca9c6354317ec7187f46fd270092372b39f63f8 | [
"Apache-2.0"
] | 2 | 2020-03-11T09:33:03.000Z | 2020-03-18T21:12:28.000Z | web_parsers/extractors/__init__.py | crawlerflow/extraction-engine | dca9c6354317ec7187f46fd270092372b39f63f8 | [
"Apache-2.0"
] | null | null | null |
from .python import PythonExtractorManifest
| 9.4 | 43 | 0.829787 | 4 | 47 | 9.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148936 | 47 | 4 | 44 | 11.75 | 0.975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6edd656bf08006916687932ba107a71691b4142f | 184 | py | Python | src/parser/AST/statements/statement.py | ARtoriouSs/sanya-script | bb421ce0f32f99eb4f157ca91809eab37ced1630 | [
"WTFPL"
] | 1 | 2020-09-23T21:20:47.000Z | 2020-09-23T21:20:47.000Z | src/parser/AST/statements/statement.py | ARtoriouSs/sanya-script | bb421ce0f32f99eb4f157ca91809eab37ced1630 | [
"WTFPL"
] | null | null | null | src/parser/AST/statements/statement.py | ARtoriouSs/sanya-script | bb421ce0f32f99eb4f157ca91809eab37ced1630 | [
"WTFPL"
] | null | null | null | import re
class Statement:
def kind(self):
return re.sub(r'(?<!^)(?=[A-Z])', '_', self.__class__.__name__).lower()
def set_line(self, line):
self.line = line
| 20.444444 | 79 | 0.570652 | 25 | 184 | 3.8 | 0.64 | 0.168421 | 0.252632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228261 | 184 | 8 | 80 | 23 | 0.669014 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
28209eb44b84ee3777a3145c726e8abaa5ff544c | 47 | py | Python | declare_qtquick/properties/prop_sheet/__init__.py | likianta/declare-qtquick | 93c2ce49d841ccdeb0272085c5f731139927f0d7 | [
"MIT"
] | 3 | 2021-11-02T03:45:27.000Z | 2022-03-27T05:33:36.000Z | declare_qtquick/properties/prop_sheet/__init__.py | likianta/declare-qtquick | 93c2ce49d841ccdeb0272085c5f731139927f0d7 | [
"MIT"
] | null | null | null | declare_qtquick/properties/prop_sheet/__init__.py | likianta/declare-qtquick | 93c2ce49d841ccdeb0272085c5f731139927f0d7 | [
"MIT"
] | null | null | null | from .base import PropSheet
from .api import *
| 15.666667 | 27 | 0.765957 | 7 | 47 | 5.142857 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 47 | 2 | 28 | 23.5 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
2873be6b9e48712a7daaaf96c24f87f780b2234f | 52 | py | Python | calc.py | TakeshiKishita/python_unittest | f56f47deedaef1d757de305fa3ba3ab1aacd5ae8 | [
"MIT"
] | null | null | null | calc.py | TakeshiKishita/python_unittest | f56f47deedaef1d757de305fa3ba3ab1aacd5ae8 | [
"MIT"
] | null | null | null | calc.py | TakeshiKishita/python_unittest | f56f47deedaef1d757de305fa3ba3ab1aacd5ae8 | [
"MIT"
] | null | null | null | import numpy as np
def sum(a, b):
return a + b | 10.4 | 18 | 0.596154 | 11 | 52 | 2.818182 | 0.818182 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 52 | 5 | 19 | 10.4 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 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 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
2876d58897208467a12ed5b722c16ff5afaa4fa5 | 46 | py | Python | buzzni/ai/reco/mlserving/webframeworks/falcon/__init__.py | BuzzniAILab/mlserving | 8b8add9dbe5cdd6392e0c87ee789492de0a1c70e | [
"MIT"
] | 13 | 2020-08-23T17:35:53.000Z | 2022-02-10T14:14:03.000Z | mlserving/webframeworks/falcon/__init__.py | orlevi111/ganesha | 137cc388806fc98f7768298da01ebeddf03f9464 | [
"MIT"
] | 3 | 2020-08-20T21:09:01.000Z | 2021-06-25T15:33:54.000Z | mlserving/webframeworks/falcon/__init__.py | orlevi111/ganesha | 137cc388806fc98f7768298da01ebeddf03f9464 | [
"MIT"
] | 3 | 2021-04-12T01:56:22.000Z | 2021-10-05T12:50:12.000Z | from .falcon_framework import FalconFramework
| 23 | 45 | 0.891304 | 5 | 46 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 46 | 1 | 46 | 46 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
953ae8228973a8c300036c2d71d528a116379cb5 | 27,127 | py | Python | tests/integration/api_test.py | cruz-f/protrend | b72c17fa1606b4cf5ca6d60c51737b43ba3fdbc1 | [
"MIT"
] | null | null | null | tests/integration/api_test.py | cruz-f/protrend | b72c17fa1606b4cf5ca6d60c51737b43ba3fdbc1 | [
"MIT"
] | 1 | 2022-02-11T18:38:39.000Z | 2022-02-11T18:38:39.000Z | tests/integration/api_test.py | cruz-f/protrend | b72c17fa1606b4cf5ca6d60c51737b43ba3fdbc1 | [
"MIT"
] | null | null | null | import unittest
from django.contrib.auth.models import User
from django.test import TestCase
from neomodel import clear_neo4j_database, db
from data import *
import domain.dpi as dpi
from interfaces.api.urls import router
from ..utils_test_db import disable_throttling
class ApiTest(TestCase):
def setUp(self) ... | 45.438861 | 112 | 0.601062 | 3,050 | 27,127 | 5.18459 | 0.068197 | 0.130905 | 0.068298 | 0.068298 | 0.862012 | 0.844748 | 0.793018 | 0.76317 | 0.739139 | 0.682856 | 0 | 0.049513 | 0.26516 | 27,127 | 596 | 113 | 45.515101 | 0.743754 | 0.018506 | 0 | 0.689805 | 0 | 0 | 0.190967 | 0.030464 | 0 | 0 | 0 | 0.003356 | 0.355748 | 1 | 0.023861 | false | 0 | 0.017354 | 0 | 0.043384 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
9547fec456068c032ec26891ac317db4a533d17a | 14,708 | py | Python | envi/tests/middleware/test_base.py | TeaPow/django-envi | 77f241fd511af510c181cd6b3941447a2065c05c | [
"MIT"
] | 1 | 2018-11-20T23:16:22.000Z | 2018-11-20T23:16:22.000Z | envi/tests/middleware/test_base.py | teapow/django-envi | 77f241fd511af510c181cd6b3941447a2065c05c | [
"MIT"
] | 6 | 2018-01-23T09:43:40.000Z | 2019-06-18T07:06:02.000Z | envi/tests/middleware/test_base.py | TeaPow/django-envi | 77f241fd511af510c181cd6b3941447a2065c05c | [
"MIT"
] | 2 | 2017-12-22T14:16:36.000Z | 2018-11-20T23:16:22.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from mock import MagicMock
from .base import BaseMiddlewareTestCase
from ... import constants
from ...conf import ENVIRONMENT
from ...middleware.base import EnviBaseMiddleware, EnviBaseTemplateMiddleware
KEY_ERROR_FORMAT = "Key: {k} not... | 39.326203 | 109 | 0.678882 | 1,671 | 14,708 | 5.669659 | 0.08857 | 0.031032 | 0.065864 | 0.046654 | 0.836605 | 0.815073 | 0.796496 | 0.773169 | 0.751319 | 0.74847 | 0 | 0.000089 | 0.238306 | 14,708 | 373 | 110 | 39.431635 | 0.845577 | 0.168888 | 0 | 0.695473 | 0 | 0 | 0.037737 | 0.002138 | 0 | 0 | 0 | 0 | 0.098765 | 1 | 0.098765 | false | 0 | 0.024691 | 0 | 0.139918 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
955e310a15f067c907496423b142c6fc53ef1979 | 203 | py | Python | tccli/services/cam/__init__.py | hapsyou/tencentcloud-cli-intl-en | fa8ba71164484f9a2be4b983080a1de08606c0b0 | [
"Apache-2.0"
] | null | null | null | tccli/services/cam/__init__.py | hapsyou/tencentcloud-cli-intl-en | fa8ba71164484f9a2be4b983080a1de08606c0b0 | [
"Apache-2.0"
] | null | null | null | tccli/services/cam/__init__.py | hapsyou/tencentcloud-cli-intl-en | fa8ba71164484f9a2be4b983080a1de08606c0b0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from tccli.services.cam.cam_client import register_arg
from tccli.services.cam.cam_client import get_actions_info
from tccli.services.cam.cam_client import AVAILABLE_VERSION_LIST
| 40.6 | 64 | 0.827586 | 32 | 203 | 5 | 0.53125 | 0.16875 | 0.31875 | 0.375 | 0.65625 | 0.65625 | 0.65625 | 0 | 0 | 0 | 0 | 0.005376 | 0.083744 | 203 | 4 | 65 | 50.75 | 0.854839 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
95e4c7f8a161f752da1e35bc0731078e567bf475 | 1,062 | py | Python | tests/logic/test_token.py | nilsholle/sampledb | 90d7487a3990995ca2ec5dfd8b59d4739d6a9a87 | [
"MIT"
] | 5 | 2020-02-13T15:25:37.000Z | 2021-05-06T21:05:14.000Z | tests/logic/test_token.py | nilsholle/sampledb | 90d7487a3990995ca2ec5dfd8b59d4739d6a9a87 | [
"MIT"
] | 28 | 2019-11-12T14:14:08.000Z | 2022-03-11T16:29:27.000Z | tests/logic/test_token.py | nilsholle/sampledb | 90d7487a3990995ca2ec5dfd8b59d4739d6a9a87 | [
"MIT"
] | 8 | 2019-12-10T15:46:02.000Z | 2021-11-02T12:24:52.000Z | import sampledb
import sampledb.models
def test_generate_token(app):
erg = sampledb.logic.security_tokens.generate_token(['example@example.com'],'invitation',app.config['SECRET_KEY'])
result = sampledb.logic.security_tokens.verify_token(erg,'add_login',app.config['SECRET_KEY'])
# token is wrong
asse... | 37.928571 | 118 | 0.660075 | 133 | 1,062 | 5.097744 | 0.240602 | 0.115044 | 0.185841 | 0.238938 | 0.818584 | 0.758112 | 0.699115 | 0.699115 | 0.699115 | 0.699115 | 0 | 0.005995 | 0.214689 | 1,062 | 27 | 119 | 39.333333 | 0.806954 | 0.02919 | 0 | 0.285714 | 1 | 0 | 0.217137 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 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 | 6 |
251ecc568d58fcc6867797d37f39d0dbd352a75a | 144 | py | Python | CybORG/CybORG/Shared/Actions/ShellActionsFolder/ShellPrivilegeEscalationFolder/__init__.py | rafvasq/cage-challenge-1 | 95affdfa38afc1124f1a1a09c92fbc0ed5b96318 | [
"MIT"
] | 18 | 2021-08-20T15:07:55.000Z | 2022-03-11T12:05:15.000Z | CybORG/CybORG/Shared/Actions/ShellActionsFolder/ShellPrivilegeEscalationFolder/__init__.py | rafvasq/cage-challenge-1 | 95affdfa38afc1124f1a1a09c92fbc0ed5b96318 | [
"MIT"
] | 7 | 2021-11-09T06:46:58.000Z | 2022-03-31T12:35:06.000Z | CybORG/CybORG/Shared/Actions/ShellActionsFolder/ShellPrivilegeEscalationFolder/__init__.py | rafvasq/cage-challenge-1 | 95affdfa38afc1124f1a1a09c92fbc0ed5b96318 | [
"MIT"
] | 13 | 2021-08-17T00:26:31.000Z | 2022-03-29T20:06:45.000Z | from .LinuxKernelPrivilegeEscalation import LinuxKernelPrivilegeEscalation
from .DirtyCowPrivilegeEscalation import DirtyCowPrivilegeEscalation
| 48 | 74 | 0.930556 | 8 | 144 | 16.75 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 144 | 2 | 75 | 72 | 0.985294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
25339e9c382060a2b48f1465faa8e2cd0dedda64 | 2,807 | py | Python | epytope/Data/pssms/smmpmbec/mat/A_29_02_11.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 7 | 2021-02-01T18:11:28.000Z | 2022-01-31T19:14:07.000Z | epytope/Data/pssms/smmpmbec/mat/A_29_02_11.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 22 | 2021-01-02T15:25:23.000Z | 2022-03-14T11:32:53.000Z | epytope/Data/pssms/smmpmbec/mat/A_29_02_11.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 4 | 2021-05-28T08:50:38.000Z | 2022-03-14T11:45:32.000Z | A_29_02_11 = {0: {'A': 0.026, 'C': -0.126, 'E': 0.051, 'D': 0.039, 'G': -0.098, 'F': -0.404, 'I': 0.043, 'H': 0.092, 'K': 0.193, 'M': -0.09, 'L': -0.078, 'N': -0.041, 'Q': 0.219, 'P': 0.219, 'S': 0.081, 'R': 0.25, 'T': 0.097, 'W': -0.184, 'V': 0.021, 'Y': -0.311}, 1: {'A': -0.478, 'C': -0.057, 'E': 0.141, 'D': 0.149, '... | 2,807 | 2,807 | 0.394371 | 679 | 2,807 | 1.62592 | 0.247423 | 0.019928 | 0.009058 | 0.01087 | 0.03442 | 0.021739 | 0.021739 | 0.021739 | 0 | 0 | 0 | 0.37415 | 0.162095 | 2,807 | 1 | 2,807 | 2,807 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0.079416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
2568b5e1e7f625fd3fabd5ae182198507592f981 | 34 | py | Python | preprocess/utils/__init__.py | ishine/EmotionControllableTextToSpeech | 5dcf8afe6a0c1b8d612d6f1d8de315cf419fe594 | [
"MIT"
] | 12 | 2021-07-10T05:18:31.000Z | 2022-03-22T01:04:41.000Z | preprocess/utils/__init__.py | ishine/EmotionControllableTextToSpeech | 5dcf8afe6a0c1b8d612d6f1d8de315cf419fe594 | [
"MIT"
] | null | null | null | preprocess/utils/__init__.py | ishine/EmotionControllableTextToSpeech | 5dcf8afe6a0c1b8d612d6f1d8de315cf419fe594 | [
"MIT"
] | 3 | 2021-06-12T05:34:41.000Z | 2022-03-15T06:44:55.000Z | from utils.utils import * # NOQA
| 17 | 33 | 0.705882 | 5 | 34 | 4.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205882 | 34 | 1 | 34 | 34 | 0.888889 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
c2ac8b228827fc94b094364229a8fc2bc89f932a | 15,316 | py | Python | backend/api/fixtures/operational/0018_add_2013-2016_credit_calculation_values.py | amichard/tfrs | ed3973016cc5c2ae48999d550a23b41a5ddad807 | [
"Apache-2.0"
] | 18 | 2017-05-10T21:55:11.000Z | 2021-03-01T16:41:32.000Z | backend/api/fixtures/operational/0018_add_2013-2016_credit_calculation_values.py | amichard/tfrs | ed3973016cc5c2ae48999d550a23b41a5ddad807 | [
"Apache-2.0"
] | 1,167 | 2017-03-04T00:18:43.000Z | 2022-03-03T22:31:51.000Z | backend/api/fixtures/operational/0018_add_2013-2016_credit_calculation_values.py | amichard/tfrs | ed3973016cc5c2ae48999d550a23b41a5ddad807 | [
"Apache-2.0"
] | 48 | 2017-03-09T17:19:39.000Z | 2022-02-24T16:38:17.000Z | from django.db import transaction
from api.management.data_script import OperationalDataScript
from api.models.CarbonIntensityLimit import CarbonIntensityLimit
from api.models.CompliancePeriod import CompliancePeriod
from api.models.DefaultCarbonIntensity import DefaultCarbonIntensity
from api.models.DefaultCarbonInte... | 39.989556 | 79 | 0.565814 | 1,190 | 15,316 | 7.093277 | 0.120168 | 0.109347 | 0.138609 | 0.108755 | 0.83047 | 0.809857 | 0.809146 | 0.809146 | 0.738538 | 0.665206 | 0 | 0.033463 | 0.360016 | 15,316 | 382 | 80 | 40.094241 | 0.827688 | 0.004766 | 0 | 0.662953 | 0 | 0 | 0.080131 | 0.001379 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016713 | false | 0 | 0.036212 | 0.002786 | 0.064067 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
c2be75367bdb6e902af7dbbd23092ca7ba155d43 | 2,300 | py | Python | trunk/tools/rm_ip_src.py | HESUPING/JmeshBLE-StaticLib | cf0900f004026c7e2e3448ffde07e21d4af8e387 | [
"Apache-2.0"
] | null | null | null | trunk/tools/rm_ip_src.py | HESUPING/JmeshBLE-StaticLib | cf0900f004026c7e2e3448ffde07e21d4af8e387 | [
"Apache-2.0"
] | null | null | null | trunk/tools/rm_ip_src.py | HESUPING/JmeshBLE-StaticLib | cf0900f004026c7e2e3448ffde07e21d4af8e387 | [
"Apache-2.0"
] | 3 | 2019-08-27T17:11:42.000Z | 2021-02-04T06:38:35.000Z | import os
import shutil
path_list = [
'../ip/ahi/src/ahi.c',
'../ip/ahi/src/ahi_task.c',
'../ip/ea/src/ea.c',
'../ip/hci/src/hci.c',
'../ip/hci/src/hci_fc.c',
'../ip/hci/src/hci_msg.c',
'../ip/hci/src/hci_tl.c',
'../ip/hci/src/hci_util.c',
'../ip/ble/hl/src/gap/gapc/gapc.c',
'..... | 35.384615 | 50 | 0.576522 | 453 | 2,300 | 2.834437 | 0.130243 | 0.121495 | 0.21028 | 0.174455 | 0.808411 | 0.716511 | 0.6581 | 0.443925 | 0.040498 | 0 | 0 | 0.008969 | 0.127391 | 2,300 | 65 | 50 | 35.384615 | 0.630792 | 0 | 0 | 0 | 0 | 0 | 0.736202 | 0.703607 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032787 | 0 | 0.032787 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c2dc69b2ec8fd9d3e974a603c7091a19ef916750 | 174 | py | Python | tests/conftest.py | tom-boyes-park/ballchaser | 82be5fa2c14029baf7be7e5cc8e6972ff2b2e9db | [
"MIT"
] | null | null | null | tests/conftest.py | tom-boyes-park/ballchaser | 82be5fa2c14029baf7be7e5cc8e6972ff2b2e9db | [
"MIT"
] | 1 | 2022-03-28T12:07:36.000Z | 2022-03-28T12:07:36.000Z | tests/conftest.py | tom-boyes-park/ballchaser | 82be5fa2c14029baf7be7e5cc8e6972ff2b2e9db | [
"MIT"
] | null | null | null | """ Contains fixtures used in unit tests. """
import pytest
from ballchaser.client import BallChaser
@pytest.fixture()
def ball_chaser():
return BallChaser("abc-123")
| 17.4 | 45 | 0.735632 | 22 | 174 | 5.772727 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02027 | 0.149425 | 174 | 9 | 46 | 19.333333 | 0.837838 | 0.212644 | 0 | 0 | 0 | 0 | 0.054264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0.2 | 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 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
6c7701484482bc04cb9551a8673780abb48592b4 | 20 | py | Python | baidu/__init__.py | Panda-Home/Baidu-Translator | 34b734829e6f7465e28d5c9f9d4bec10cb2b8d84 | [
"MIT"
] | 7 | 2015-07-10T05:10:45.000Z | 2017-02-15T08:46:37.000Z | baidu/__init__.py | Panda-Home/Baidu-Translator | 34b734829e6f7465e28d5c9f9d4bec10cb2b8d84 | [
"MIT"
] | 1 | 2017-05-19T22:52:46.000Z | 2017-05-19T22:52:46.000Z | baidu/__init__.py | OldPanda/Baidu-Translator | 34b734829e6f7465e28d5c9f9d4bec10cb2b8d84 | [
"MIT"
] | 3 | 2015-12-14T12:12:42.000Z | 2017-05-18T06:00:12.000Z | from . import baidu
| 10 | 19 | 0.75 | 3 | 20 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 20 | 1 | 20 | 20 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
66cd164c5042dd5ec7a55f0d648e6be40e41cd17 | 87 | py | Python | cmd/expandybird/test/templates/no_properties.py | sparkprime/helm | 4d7c681ba0aa43b45d122faa998c243422019be4 | [
"Apache-2.0"
] | null | null | null | cmd/expandybird/test/templates/no_properties.py | sparkprime/helm | 4d7c681ba0aa43b45d122faa998c243422019be4 | [
"Apache-2.0"
] | null | null | null | cmd/expandybird/test/templates/no_properties.py | sparkprime/helm | 4d7c681ba0aa43b45d122faa998c243422019be4 | [
"Apache-2.0"
] | null | null | null | """Return empty resources block."""
def GenerateConfig(_):
return """resources:"""
| 14.5 | 35 | 0.666667 | 8 | 87 | 7.125 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 87 | 5 | 36 | 17.4 | 0.76 | 0.333333 | 0 | 0 | 1 | 0 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
dd0cea130ecacbd998af3c7ca9f34de42ae5c20d | 300 | py | Python | konlpy/konlpy/tag/__init__.py | ChoiSeEun/Korean-NLP-Visual | adee5e45f3472b969f45e6e2e991d88df0e49dcd | [
"Apache-2.0"
] | 1 | 2021-11-05T10:18:43.000Z | 2021-11-05T10:18:43.000Z | konlpy/konlpy/tag/__init__.py | ChoiSeEun/Korean-NLP-Visual | adee5e45f3472b969f45e6e2e991d88df0e49dcd | [
"Apache-2.0"
] | 5 | 2021-11-04T10:23:39.000Z | 2021-12-13T13:03:31.000Z | konlpy/konlpy/tag/__init__.py | ChoiSeEun/Korean-NLP-Visual | adee5e45f3472b969f45e6e2e991d88df0e49dcd | [
"Apache-2.0"
] | 2 | 2021-09-29T10:52:05.000Z | 2021-09-29T11:05:33.000Z | from __future__ import absolute_import
import sys
import warnings
from konlpy.tag._hannanum import Hannanum
from konlpy.tag._kkma import Kkma
from konlpy.tag._komoran import Komoran
try:
from konlpy.tag._mecab import Mecab
except ImportError:
pass
from konlpy.tag._twitter import Twitter
| 18.75 | 41 | 0.813333 | 43 | 300 | 5.44186 | 0.395349 | 0.213675 | 0.277778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146667 | 300 | 15 | 42 | 20 | 0.914063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.090909 | 0.818182 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
660c834baa65dbb1203c9cad56f77de2c68010a7 | 27 | py | Python | devel/lib/python2.7/dist-packages/rrt_exploration/msg/__init__.py | pplankton/MRSLAM | 0a16489a2cbd0c2d1511b506c540446cc670bde8 | [
"MIT"
] | 1 | 2021-05-17T11:13:01.000Z | 2021-05-17T11:13:01.000Z | devel/lib/python2.7/dist-packages/rrt_exploration/msg/__init__.py | pplankton/MRSLAM | 0a16489a2cbd0c2d1511b506c540446cc670bde8 | [
"MIT"
] | null | null | null | devel/lib/python2.7/dist-packages/rrt_exploration/msg/__init__.py | pplankton/MRSLAM | 0a16489a2cbd0c2d1511b506c540446cc670bde8 | [
"MIT"
] | null | null | null | from ._PointArray import *
| 13.5 | 26 | 0.777778 | 3 | 27 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 27 | 1 | 27 | 27 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
663582017e45ebc25559ce63cde60fefc1b77662 | 5,588 | py | Python | tests/key_params/test_dss.py | FloLie/openssh_key_parser | 44cdc6c2085069e7c2612841de38f581f8ef226c | [
"MIT"
] | null | null | null | tests/key_params/test_dss.py | FloLie/openssh_key_parser | 44cdc6c2085069e7c2612841de38f581f8ef226c | [
"MIT"
] | null | null | null | tests/key_params/test_dss.py | FloLie/openssh_key_parser | 44cdc6c2085069e7c2612841de38f581f8ef226c | [
"MIT"
] | null | null | null | import pytest
from cryptography.hazmat.primitives.asymmetric import dsa
from openssh_key.key_params import DSSPrivateKeyParams, DSSPublicKeyParams
from openssh_key.pascal_style_byte_stream import PascalStyleFormatInstruction
PARAMS_TEST_CASES = [
{
'cls': DSSPublicKeyParams,
'format_instructions_di... | 31.931429 | 77 | 0.656049 | 544 | 5,588 | 6.404412 | 0.117647 | 0.091848 | 0.028703 | 0.038175 | 0.817164 | 0.817164 | 0.77411 | 0.710103 | 0.710103 | 0.693743 | 0 | 0.002133 | 0.24481 | 5,588 | 174 | 78 | 32.114943 | 0.82346 | 0 | 0 | 0.601307 | 0 | 0 | 0.026306 | 0.00859 | 0 | 0 | 0 | 0 | 0.098039 | 1 | 0.065359 | false | 0 | 0.026144 | 0 | 0.091503 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
b0dc10c62a849f2ff0293b6432ed1a1496b9b6a0 | 20,794 | py | Python | src/modeler/inceptionnetmodel.py | liuweiping2020/pyml | 0b9a7a307b93f9313d7e1bb92b33ae330d681c73 | [
"Apache-2.0"
] | null | null | null | src/modeler/inceptionnetmodel.py | liuweiping2020/pyml | 0b9a7a307b93f9313d7e1bb92b33ae330d681c73 | [
"Apache-2.0"
] | null | null | null | src/modeler/inceptionnetmodel.py | liuweiping2020/pyml | 0b9a7a307b93f9313d7e1bb92b33ae330d681c73 | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
from modeler.tfmodel import TFModel
class InceptionNetModel(TFModel):
def __init__(self):
self.slim = tf.contrib.slim
self.trunc_normal = lambda stddev: tf.truncated_normal_initializer(0.0, stddev)
pass
def add_placeholder(self):
batch_size = 32
... | 62.63253 | 104 | 0.506204 | 2,600 | 20,794 | 3.788462 | 0.075385 | 0.112081 | 0.146396 | 0.117767 | 0.816244 | 0.764264 | 0.751878 | 0.732792 | 0.717157 | 0.717157 | 0 | 0.117782 | 0.37203 | 20,794 | 332 | 105 | 62.63253 | 0.636545 | 0.024526 | 0 | 0.568345 | 0 | 0 | 0.109389 | 0.001037 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021583 | false | 0.010791 | 0.007194 | 0 | 0.043165 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
b0f2574cffd9be886cb958a4c195295adcfeb5dc | 4,572 | py | Python | main.py | njpd57/Proyecto-Ricoloso | cf423460bd21933afa5b761c084d5fcf71b21780 | [
"Apache-2.0"
] | null | null | null | main.py | njpd57/Proyecto-Ricoloso | cf423460bd21933afa5b761c084d5fcf71b21780 | [
"Apache-2.0"
] | null | null | null | main.py | njpd57/Proyecto-Ricoloso | cf423460bd21933afa5b761c084d5fcf71b21780 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3.9
"""
____ _
| _ \ _ __ ___ _ _ ___ ___| |_ ___
| |_) | '__/ _ \| | | |/ _ \/ __| __/ _ \
| __/| | | (_) | |_| | __/ (__| || (_) |
|_| |_| \___/ \__, |\___|\___|\__\___/
|___/
____ _... | 50.8 | 193 | 0.209974 | 122 | 4,572 | 5.868852 | 0.581967 | 0.083799 | 0.125698 | 0.153631 | 0.286313 | 0.177374 | 0.128492 | 0.128492 | 0.128492 | 0 | 0 | 0.026908 | 0.552931 | 4,572 | 89 | 194 | 51.370787 | 0.264188 | 0.619204 | 0 | 0 | 0 | 0.333333 | 0.847251 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0.583333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
b0f92973ac5b228d853c6dc53d5b6bb8bbc50be3 | 120 | py | Python | GPopt/utils/__init__.py | Techtonique/GPopt | 37eb7cbd55679b67b0f0f39dddb310309531e5ca | [
"BSD-3-Clause-Clear"
] | 1 | 2021-07-14T11:56:32.000Z | 2021-07-14T11:56:32.000Z | GPopt/utils/__init__.py | Techtonique/GPopt | 37eb7cbd55679b67b0f0f39dddb310309531e5ca | [
"BSD-3-Clause-Clear"
] | null | null | null | GPopt/utils/__init__.py | Techtonique/GPopt | 37eb7cbd55679b67b0f0f39dddb310309531e5ca | [
"BSD-3-Clause-Clear"
] | null | null | null | from .progress_bar import Progbar
from .nodesimulation import generate_sobol2
__all__ = ["Progbar", "generate_sobol2"]
| 24 | 43 | 0.808333 | 14 | 120 | 6.428571 | 0.642857 | 0.311111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018692 | 0.108333 | 120 | 4 | 44 | 30 | 0.82243 | 0 | 0 | 0 | 1 | 0 | 0.183333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
b040d9104205424c5158e808096d5c47161a331c | 39 | py | Python | src/compas/datastructures/graph/__init__.py | funkchaser/compas | b58de8771484aa0c6068d43df78b1679503215de | [
"MIT"
] | 235 | 2017-11-07T07:33:22.000Z | 2022-03-25T16:20:00.000Z | src/compas/datastructures/graph/__init__.py | funkchaser/compas | b58de8771484aa0c6068d43df78b1679503215de | [
"MIT"
] | 770 | 2017-09-22T13:42:06.000Z | 2022-03-31T21:26:45.000Z | src/compas/datastructures/graph/__init__.py | funkchaser/compas | b58de8771484aa0c6068d43df78b1679503215de | [
"MIT"
] | 99 | 2017-11-06T23:15:28.000Z | 2022-03-25T16:05:36.000Z | from .graph import Graph # noqa: F401
| 19.5 | 38 | 0.717949 | 6 | 39 | 4.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0.205128 | 39 | 1 | 39 | 39 | 0.806452 | 0.25641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
c67c17dae772365779c1d0f21a3813ec49f7d982 | 118 | py | Python | tests/context.py | Sergey190309/211019-JF | 70e6198447181b45f444b3e8a84205e44e4af018 | [
"MIT"
] | null | null | null | tests/context.py | Sergey190309/211019-JF | 70e6198447181b45f444b3e8a84205e44e4af018 | [
"MIT"
] | null | null | null | tests/context.py | Sergey190309/211019-JF | 70e6198447181b45f444b3e8a84205e44e4af018 | [
"MIT"
] | null | null | null | import sys
import os
sys.path.index(0, os.path.abspath(os.path.join((os.path.dirname(__file__), '..'))))
import src
| 16.857143 | 83 | 0.70339 | 20 | 118 | 3.95 | 0.55 | 0.227848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009346 | 0.09322 | 118 | 6 | 84 | 19.666667 | 0.728972 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
c68915543d403e05b5ebd5f855336910b2ff5224 | 44 | py | Python | editorcontainer/rightclickmenu/__init__.py | AutomataRaven/azaharTEA | 2d5a7d96b37bca9b3a914e305e493824a0f60207 | [
"MIT"
] | 5 | 2019-03-10T16:33:21.000Z | 2021-04-07T17:24:32.000Z | editorcontainer/rightclickmenu/__init__.py | Errantgod/azaharTEA | 2d5a7d96b37bca9b3a914e305e493824a0f60207 | [
"MIT"
] | 8 | 2017-02-11T06:21:28.000Z | 2017-02-22T05:50:35.000Z | editorcontainer/rightclickmenu/__init__.py | Errantgod/azaharTEA | 2d5a7d96b37bca9b3a914e305e493824a0f60207 | [
"MIT"
] | 2 | 2019-10-05T20:20:15.000Z | 2020-06-28T18:46:58.000Z | __all__ = ['rightclickmenu.RightClickMenu']
| 22 | 43 | 0.795455 | 3 | 44 | 10.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 44 | 1 | 44 | 44 | 0.756098 | 0 | 0 | 0 | 0 | 0 | 0.659091 | 0.659091 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c6cc7a05fbf040623558bcea004a995a21e68f35 | 2,685 | py | Python | tests/test_vx_or_vy=0.py | leanderkirkeland/2d_propagating_blobs | 1857b951a603c2bc21f84c78ae6ccf64eb58a469 | [
"MIT"
] | null | null | null | tests/test_vx_or_vy=0.py | leanderkirkeland/2d_propagating_blobs | 1857b951a603c2bc21f84c78ae6ccf64eb58a469 | [
"MIT"
] | null | null | null | tests/test_vx_or_vy=0.py | leanderkirkeland/2d_propagating_blobs | 1857b951a603c2bc21f84c78ae6ccf64eb58a469 | [
"MIT"
] | null | null | null | from blobmodel import Model, BlobFactory, Blob
import numpy as np
class CustomBlobFactoryVy0(BlobFactory):
def __init__(self) -> None:
pass
def sample_blobs(
self, Ly: float, T: float, num_blobs: int, blob_shape: str, t_drain: float
) -> list[Blob]:
# set custom parameter distrib... | 22.375 | 82 | 0.532588 | 362 | 2,685 | 3.519337 | 0.209945 | 0.125589 | 0.070644 | 0.10989 | 0.77708 | 0.77708 | 0.77708 | 0.77708 | 0.77708 | 0.722135 | 0 | 0.030268 | 0.360149 | 2,685 | 119 | 83 | 22.563025 | 0.711292 | 0.025698 | 0 | 0.723404 | 0 | 0 | 0.002296 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 1 | 0.06383 | false | 0.021277 | 0.021277 | 0 | 0.12766 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c6e60b0ef37a415c9652bd72fb7d581a064ad1a0 | 21 | py | Python | blendcollection/blendcollection/__init__.py | train-your-deblender/cutout-evaluation | 79009552d1c9072696034fa31f71273975f35749 | [
"BSD-3-Clause"
] | null | null | null | blendcollection/blendcollection/__init__.py | train-your-deblender/cutout-evaluation | 79009552d1c9072696034fa31f71273975f35749 | [
"BSD-3-Clause"
] | null | null | null | blendcollection/blendcollection/__init__.py | train-your-deblender/cutout-evaluation | 79009552d1c9072696034fa31f71273975f35749 | [
"BSD-3-Clause"
] | null | null | null | from .blends import * | 21 | 21 | 0.761905 | 3 | 21 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 21 | 1 | 21 | 21 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
05a864cba2e065764976e0104e18d8899df62434 | 119 | py | Python | test_CaesarCode.py | an-dreaa/SIM-Homework-1 | aec1451b84c391506ef33764121898813f72ace3 | [
"Apache-2.0"
] | null | null | null | test_CaesarCode.py | an-dreaa/SIM-Homework-1 | aec1451b84c391506ef33764121898813f72ace3 | [
"Apache-2.0"
] | null | null | null | test_CaesarCode.py | an-dreaa/SIM-Homework-1 | aec1451b84c391506ef33764121898813f72ace3 | [
"Apache-2.0"
] | null | null | null | from function_CaesarCode import caesar
def test_caesar():
assert caesar('Hslh qhjah lza', 7) == 'alea jacta est'
| 19.833333 | 58 | 0.722689 | 17 | 119 | 4.941176 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0.176471 | 119 | 5 | 59 | 23.8 | 0.846939 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
05e54d29558bf3b3ae4babc24b9a1fb09cb134b4 | 187 | py | Python | tests/_testsite/importerror_app/forum/dummy.py | OneRainbowDev/django-machina | 7354cc50f58dcbe49eecce7e1f019f6fff21d690 | [
"BSD-3-Clause"
] | 1 | 2021-10-08T03:31:24.000Z | 2021-10-08T03:31:24.000Z | tests/_testsite/importerror_app/forum/dummy.py | OneRainbowDev/django-machina | 7354cc50f58dcbe49eecce7e1f019f6fff21d690 | [
"BSD-3-Clause"
] | null | null | null | tests/_testsite/importerror_app/forum/dummy.py | OneRainbowDev/django-machina | 7354cc50f58dcbe49eecce7e1f019f6fff21d690 | [
"BSD-3-Clause"
] | 1 | 2019-04-20T05:26:27.000Z | 2019-04-20T05:26:27.000Z | # -*- coding: utf-8 -*-
# Standard library imports
# Third party imports
from x import bad_import # noqa
# Local application / specific library imports
class Dummy(object):
pass
| 15.583333 | 46 | 0.705882 | 24 | 187 | 5.458333 | 0.833333 | 0.21374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0.203209 | 187 | 11 | 47 | 17 | 0.872483 | 0.620321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 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 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
af268153ce3eb5628d4af8654240f1d7ab29b05d | 141 | py | Python | chapter04/test/test_module01.py | codingEzio/code_python_book_001 | d9dd7a3d40c4c34c2ae8d08222aba989631abd88 | [
"Unlicense"
] | null | null | null | chapter04/test/test_module01.py | codingEzio/code_python_book_001 | d9dd7a3d40c4c34c2ae8d08222aba989631abd88 | [
"Unlicense"
] | null | null | null | chapter04/test/test_module01.py | codingEzio/code_python_book_001 | d9dd7a3d40c4c34c2ae8d08222aba989631abd88 | [
"Unlicense"
] | null | null | null | # type this to run tests
# 'python -m nose FILENAME -v'
# 'nosetests FILENAME -v'
def test_case01():
assert 'aaa'.upper() == 'AAA'
| 17.625 | 33 | 0.617021 | 20 | 141 | 4.3 | 0.85 | 0.209302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018349 | 0.22695 | 141 | 7 | 34 | 20.142857 | 0.770642 | 0.560284 | 0 | 0 | 0 | 0 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.5 | true | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
af57a83f0eb088afcab7e1110461e42ea2c0d52e | 136 | py | Python | ast-transformations-core/src/test/resources/org/jetbrains/research/ml/ast/transformations/comparisonUnification/data/in_1_comparison.py | JetBrains-Research/ast-transformations | 0ab408af3275b520cc87a473f418c4b4dfcb0284 | [
"MIT"
] | 8 | 2021-01-19T21:15:54.000Z | 2022-02-23T19:16:25.000Z | ast-transformations-core/src/test/resources/org/jetbrains/research/ml/ast/transformations/comparisonUnification/data/in_1_comparison.py | JetBrains-Research/ast-transformations | 0ab408af3275b520cc87a473f418c4b4dfcb0284 | [
"MIT"
] | 4 | 2020-11-17T14:28:25.000Z | 2022-02-24T07:54:28.000Z | ast-transformations-core/src/test/resources/org/jetbrains/research/ml/ast/transformations/comparisonUnification/data/in_1_comparison.py | nbirillo/ast-transformations | 717706765a2da29087a0de768fc851698886dd65 | [
"MIT"
] | 1 | 2022-02-23T19:16:30.000Z | 2022-02-23T19:16:30.000Z | _ = 1 < 3
_ = 1 <= 3
_ = 1 < input() and input() > 3
_ = 1 < input() and input() >= 3
_ = 1 < input() and 1 <= input() and input() >= 3
| 22.666667 | 49 | 0.463235 | 22 | 136 | 2.636364 | 0.181818 | 0.137931 | 0.62069 | 0.517241 | 0.948276 | 0.689655 | 0.689655 | 0.689655 | 0.689655 | 0 | 0 | 0.115789 | 0.301471 | 136 | 5 | 50 | 27.2 | 0.494737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
af7db0103645a1926e46acb65be4224b274784b2 | 1,486 | py | Python | content/wagtail_hooks.py | bikramtuladhar/covid-19-procurement-explorer-admin | 9bba473c8b83c8651e3178b6fba01af74d8b27dc | [
"BSD-3-Clause"
] | null | null | null | content/wagtail_hooks.py | bikramtuladhar/covid-19-procurement-explorer-admin | 9bba473c8b83c8651e3178b6fba01af74d8b27dc | [
"BSD-3-Clause"
] | null | null | null | content/wagtail_hooks.py | bikramtuladhar/covid-19-procurement-explorer-admin | 9bba473c8b83c8651e3178b6fba01af74d8b27dc | [
"BSD-3-Clause"
] | null | null | null | from wagtail.core import hooks
@hooks.register("construct_main_menu")
def hide_reports_menu_item(request, menu_items):
menu_items[:] = [item for item in menu_items if item.name != "reports"]
@hooks.register("construct_main_menu")
def hide_settings_menu_item(request, menu_items):
menu_items[:] = [item for it... | 35.380952 | 85 | 0.759758 | 219 | 1,486 | 4.849315 | 0.155251 | 0.20339 | 0.165725 | 0.120527 | 0.857815 | 0.857815 | 0.857815 | 0.753296 | 0.541431 | 0.541431 | 0 | 0 | 0.119112 | 1,486 | 41 | 86 | 36.243902 | 0.811306 | 0 | 0 | 0.32 | 0 | 0 | 0.188425 | 0.087483 | 0 | 0 | 0 | 0 | 0 | 1 | 0.32 | false | 0 | 0.04 | 0 | 0.36 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
afa7c4d432faa321fef3cc83b5707a5bc4b3b72c | 36 | py | Python | pgsql_connector/__init__.py | Ilwapoi/pgsql_connector | b9db727485dcb6bd4dd5634ae0d69e286743fc7c | [
"MIT"
] | null | null | null | pgsql_connector/__init__.py | Ilwapoi/pgsql_connector | b9db727485dcb6bd4dd5634ae0d69e286743fc7c | [
"MIT"
] | null | null | null | pgsql_connector/__init__.py | Ilwapoi/pgsql_connector | b9db727485dcb6bd4dd5634ae0d69e286743fc7c | [
"MIT"
] | null | null | null | from .POSTGRESQL_connection import * | 36 | 36 | 0.861111 | 4 | 36 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 36 | 1 | 36 | 36 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
afb933a9a1b11a300168f54f6dbc5105c8b491c6 | 1,806 | py | Python | tests/utils/test_encrypt_decrypt.py | kdeltared/tcex | 818c0d09256764f871e42d9ca5916f92d941d882 | [
"Apache-2.0"
] | 18 | 2017-01-09T22:17:49.000Z | 2022-01-24T20:46:42.000Z | tests/utils/test_encrypt_decrypt.py | kdeltared/tcex | 818c0d09256764f871e42d9ca5916f92d941d882 | [
"Apache-2.0"
] | 84 | 2017-04-11T13:47:49.000Z | 2022-03-21T20:12:57.000Z | tests/utils/test_encrypt_decrypt.py | kdeltared/tcex | 818c0d09256764f871e42d9ca5916f92d941d882 | [
"Apache-2.0"
] | 43 | 2017-01-05T20:40:26.000Z | 2022-03-31T19:18:02.000Z | """Test the TcEx Utils Module."""
# pylint: disable=no-self-use
class TestBool:
"""Test the TcEx Utils Module."""
def test_utils_encrypt(self, tcex):
"""Test writing a temp file to disk.
Args:
tcex (TcEx, fixture): An instantiated instance of TcEx object.
"""
key ... | 32.836364 | 86 | 0.616279 | 241 | 1,806 | 4.502075 | 0.236515 | 0.04977 | 0.04424 | 0.070046 | 0.910599 | 0.81659 | 0.81659 | 0.81659 | 0.81659 | 0.81659 | 0 | 0.046303 | 0.258583 | 1,806 | 54 | 87 | 33.444444 | 0.764003 | 0.285714 | 0 | 0.571429 | 0 | 0.190476 | 0.245039 | 0.172563 | 0 | 0 | 0 | 0 | 0.190476 | 1 | 0.190476 | false | 0 | 0 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
bb981e8b64818ad0fa1689a93c7582162a9771aa | 2,326 | py | Python | cauldron/test/cli/commands/test_steps_insert.py | JohnnyPeng18/cauldron | 09120c2a4cef65df46f8c0c94f5d79395b3298cd | [
"MIT"
] | 90 | 2016-09-02T15:11:10.000Z | 2022-01-02T11:37:57.000Z | cauldron/test/cli/commands/test_steps_insert.py | JohnnyPeng18/cauldron | 09120c2a4cef65df46f8c0c94f5d79395b3298cd | [
"MIT"
] | 86 | 2016-09-23T16:52:22.000Z | 2022-03-31T21:39:56.000Z | cauldron/test/cli/commands/test_steps_insert.py | JohnnyPeng18/cauldron | 09120c2a4cef65df46f8c0c94f5d79395b3298cd | [
"MIT"
] | 261 | 2016-12-22T05:36:48.000Z | 2021-11-26T12:40:42.000Z | import cauldron
from cauldron.test import support
from cauldron.test.support import scaffolds
class TestStepsInsert(scaffolds.ResultsTest):
"""..."""
def test_before(self):
"""Should properly rename default filenames."""
support.create_project(self, 'candice')
support.add_step(self)
... | 34.205882 | 62 | 0.662511 | 271 | 2,326 | 5.553506 | 0.188192 | 0.079734 | 0.111628 | 0.143522 | 0.869767 | 0.773422 | 0.773422 | 0.773422 | 0.749502 | 0.749502 | 0 | 0.021494 | 0.199914 | 2,326 | 67 | 63 | 34.716418 | 0.787211 | 0.074807 | 0 | 0.636364 | 0 | 0 | 0.037159 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.090909 | false | 0 | 0.068182 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
bbb2cf340e9d1926e2694d66d74a42efdecdfc9c | 167 | py | Python | digdag-cli/src/main/resources/digdag/cli/tasks/__init__.py | komamitsu/digdag | e7de984d92d834d61a0f7a292d4a1a0b8c7456e5 | [
"Apache-2.0"
] | null | null | null | digdag-cli/src/main/resources/digdag/cli/tasks/__init__.py | komamitsu/digdag | e7de984d92d834d61a0f7a292d4a1a0b8c7456e5 | [
"Apache-2.0"
] | null | null | null | digdag-cli/src/main/resources/digdag/cli/tasks/__init__.py | komamitsu/digdag | e7de984d92d834d61a0f7a292d4a1a0b8c7456e5 | [
"Apache-2.0"
] | null | null | null |
class MyWorkflow(object):
def __init__(self):
pass
def step3(self, session_time = None):
print("Step3 of session {0}".format(session_time))
| 18.555556 | 58 | 0.634731 | 21 | 167 | 4.761905 | 0.714286 | 0.22 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.245509 | 167 | 8 | 59 | 20.875 | 0.769841 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.2 | 0 | 0 | 0.6 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
bbc980b88d31cf8f88256beb6a7f3f2befa65e32 | 269 | py | Python | amc_dl/torch_plus/__init__.py | wiaderwek/musebert | 64fb8cf06b0a723a19c26e8bcc44deb6cfe69568 | [
"MIT"
] | 25 | 2020-10-12T06:01:23.000Z | 2022-03-27T11:37:16.000Z | amc_dl/torch_plus/__init__.py | wiaderwek/musebert | 64fb8cf06b0a723a19c26e8bcc44deb6cfe69568 | [
"MIT"
] | 2 | 2021-11-11T01:08:54.000Z | 2022-03-27T11:56:19.000Z | amc_dl/torch_plus/__init__.py | wiaderwek/musebert | 64fb8cf06b0a723a19c26e8bcc44deb6cfe69568 | [
"MIT"
] | 5 | 2020-08-17T06:20:14.000Z | 2022-02-24T04:32:28.000Z | from .module import PytorchModel, TrainingInterface
from .scheduler import ConstantScheduler, TeacherForcingScheduler, \
OptimizerScheduler, ParameterScheduler
from .manager import LogPathManager, DataLoaders, SummaryWriters
from .example import MinExponentialLR
| 33.625 | 68 | 0.851301 | 22 | 269 | 10.409091 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107807 | 269 | 7 | 69 | 38.428571 | 0.954167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.8 | 0 | 0.8 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.