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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
17e54e340775c6340f67c70bcc6465871fdaba9f | 33 | py | Python | app/models.py | syedwaseemjan/RiskManager | c788daf533b125740ccd1fb09acebe023ca286b7 | [
"MIT"
] | null | null | null | app/models.py | syedwaseemjan/RiskManager | c788daf533b125740ccd1fb09acebe023ca286b7 | [
"MIT"
] | null | null | null | app/models.py | syedwaseemjan/RiskManager | c788daf533b125740ccd1fb09acebe023ca286b7 | [
"MIT"
] | null | null | null |
from app.risks.models import *
| 8.25 | 30 | 0.727273 | 5 | 33 | 4.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 33 | 3 | 31 | 11 | 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 |
aa3c777da5f0337d416508245cf072e8a1a05d8c | 9,883 | py | Python | tests/cloudferrylib/os/actions/test_check_networks.py | timbyr/CloudFerry | 2f91b7779087e9ae91e6546a043dab7844ebf3df | [
"Apache-2.0"
] | null | null | null | tests/cloudferrylib/os/actions/test_check_networks.py | timbyr/CloudFerry | 2f91b7779087e9ae91e6546a043dab7844ebf3df | [
"Apache-2.0"
] | null | null | null | tests/cloudferrylib/os/actions/test_check_networks.py | timbyr/CloudFerry | 2f91b7779087e9ae91e6546a043dab7844ebf3df | [
"Apache-2.0"
] | null | null | null | # Copyright 2015: Mirantis Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | 49.169154 | 78 | 0.411818 | 838 | 9,883 | 4.578759 | 0.163484 | 0.072974 | 0.052124 | 0.062028 | 0.744853 | 0.721397 | 0.718269 | 0.710451 | 0.702893 | 0.702893 | 0 | 0.029061 | 0.474249 | 9,883 | 200 | 79 | 49.415 | 0.709392 | 0.06071 | 0 | 0.783133 | 0 | 0 | 0.210078 | 0.10574 | 0 | 0 | 0 | 0 | 0.018072 | 1 | 0.060241 | false | 0 | 0.024096 | 0 | 0.096386 | 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 |
a4d4de84c440bfd1d89b93e16d02d40acec43e3b | 541 | py | Python | Curso-em-video/Aula_51.py | JhonAI13/Curso_python | 27dedb0effa2c26140f46392e993b8e7a27d6eb3 | [
"MIT"
] | null | null | null | Curso-em-video/Aula_51.py | JhonAI13/Curso_python | 27dedb0effa2c26140f46392e993b8e7a27d6eb3 | [
"MIT"
] | null | null | null | Curso-em-video/Aula_51.py | JhonAI13/Curso_python | 27dedb0effa2c26140f46392e993b8e7a27d6eb3 | [
"MIT"
] | null | null | null | """# Desenvolva um programa que leia o primeiro termo e a razão de uma PA. No final,
# mostre os 10 primeiros termos dessa progressão.
p = int(input('Primeiro termo:'))
r = int(input('Razão:'))
for c in range(p,10 * r,r):
print(c, end=' ')
print('Acabou')
"""
# Desenvolva um programa que leia o primeiro termo e a r... | 31.823529 | 84 | 0.652495 | 95 | 541 | 3.715789 | 0.378947 | 0.147309 | 0.113314 | 0.130312 | 0.974504 | 0.906516 | 0.906516 | 0.78187 | 0.78187 | 0.78187 | 0 | 0.020501 | 0.18854 | 541 | 16 | 85 | 33.8125 | 0.783599 | 0.711645 | 0 | 0 | 0 | 0 | 0.189189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
a4db402a835676059ed59937d73517c90edde863 | 84 | py | Python | torchlib/__init__.py | pedrodiamel/kaggle-imaterialist | 8e9dfbc7f09eb8f93b44d7c4c5518911d16176ac | [
"MIT"
] | 2 | 2019-01-27T14:43:20.000Z | 2019-08-22T08:43:55.000Z | torchlib/__init__.py | pedrodiamel/kaggle-imaterialist | 8e9dfbc7f09eb8f93b44d7c4c5518911d16176ac | [
"MIT"
] | null | null | null | torchlib/__init__.py | pedrodiamel/kaggle-imaterialist | 8e9dfbc7f09eb8f93b44d7c4c5518911d16176ac | [
"MIT"
] | null | null | null |
__version__ = "0.0"
from torchlib import netmodels
from torchlib import datasets
| 12 | 30 | 0.785714 | 11 | 84 | 5.636364 | 0.636364 | 0.387097 | 0.580645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.166667 | 84 | 6 | 31 | 14 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.036585 | 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 |
a4dd8c45f82b0da3ad9b048884f5776b3dfd4080 | 225 | py | Python | speakeasyApp/admin.py | bertoko/speakeasyandpurge | fbe6dcb2070922df84888c6fe45e7a1f9e8564b6 | [
"MIT"
] | null | null | null | speakeasyApp/admin.py | bertoko/speakeasyandpurge | fbe6dcb2070922df84888c6fe45e7a1f9e8564b6 | [
"MIT"
] | null | null | null | speakeasyApp/admin.py | bertoko/speakeasyandpurge | fbe6dcb2070922df84888c6fe45e7a1f9e8564b6 | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from .models import CustomUser
admin.site.register(CustomUser, UserAdmin) | 28.125 | 48 | 0.804444 | 30 | 225 | 6.033333 | 0.433333 | 0.165746 | 0.281768 | 0.254144 | 0.309392 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137778 | 225 | 8 | 49 | 28.125 | 0.93299 | 0.115556 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.8 | 0 | 0.8 | 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 |
a4e339dbe5e1ff6f2874a39bc28bb3a244464201 | 27 | py | Python | src/euler_python_package/euler_python/medium/p388.py | wilsonify/euler | 5214b776175e6d76a7c6d8915d0e062d189d9b79 | [
"MIT"
] | null | null | null | src/euler_python_package/euler_python/medium/p388.py | wilsonify/euler | 5214b776175e6d76a7c6d8915d0e062d189d9b79 | [
"MIT"
] | null | null | null | src/euler_python_package/euler_python/medium/p388.py | wilsonify/euler | 5214b776175e6d76a7c6d8915d0e062d189d9b79 | [
"MIT"
] | null | null | null | def problem388():
pass
| 9 | 17 | 0.62963 | 3 | 27 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 0.259259 | 27 | 2 | 18 | 13.5 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
3533c75f86197b12bb7f1f0e1ed29eb6d4cd3579 | 274 | py | Python | litex/build/efinix/__init__.py | suarezvictor/litex | d37ef60e70bd0ce8d28079143b6859d8b928395e | [
"ADSL"
] | 7 | 2018-12-31T06:41:47.000Z | 2021-08-21T14:15:38.000Z | litex/build/efinix/__init__.py | gregdavill/litex | 230ba5f7baff2d6fe98fbb7eecabb48aaea250e4 | [
"ADSL"
] | 1 | 2022-02-11T14:39:50.000Z | 2022-02-11T22:25:57.000Z | litex/build/efinix/__init__.py | gregdavill/litex | 230ba5f7baff2d6fe98fbb7eecabb48aaea250e4 | [
"ADSL"
] | 2 | 2019-03-02T11:09:47.000Z | 2019-06-06T08:42:25.000Z | from litex.build.efinix.programmer import EfinixProgrammer
from litex.build.efinix.dbparser import EfinixDbParser
from litex.build.efinix.ifacewriter import InterfaceWriter, InterfaceWriterBlock, InterfaceWriterXMLBlock
from litex.build.efinix.platform import EfinixPlatform | 68.5 | 105 | 0.886861 | 30 | 274 | 8.1 | 0.5 | 0.148148 | 0.230453 | 0.329218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062044 | 274 | 4 | 106 | 68.5 | 0.945525 | 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 |
102b3f6271578956114606ecfd520d1e85697313 | 1,030 | py | Python | insights/parsers/docker_storage_setup.py | mglantz/insights-core | 6f20bbbe03f53ee786f483b2a28d256ff1ad0fd4 | [
"Apache-2.0"
] | 1 | 2020-02-19T06:36:22.000Z | 2020-02-19T06:36:22.000Z | insights/parsers/docker_storage_setup.py | mglantz/insights-core | 6f20bbbe03f53ee786f483b2a28d256ff1ad0fd4 | [
"Apache-2.0"
] | null | null | null | insights/parsers/docker_storage_setup.py | mglantz/insights-core | 6f20bbbe03f53ee786f483b2a28d256ff1ad0fd4 | [
"Apache-2.0"
] | null | null | null | """
DockerStorageSetup - file ``/etc/sysconfig/docker-storage-setup``
=================================================================
A fairly simple parser to read the contents of the docker storage setup
configuration.
Sample input::
# Edit this file to override any configuration options specified in
# /... | 24.52381 | 71 | 0.661165 | 116 | 1,030 | 5.784483 | 0.543103 | 0.135618 | 0.187779 | 0.074516 | 0.089419 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007092 | 0.178641 | 1,030 | 41 | 72 | 25.121951 | 0.786052 | 0.81068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
105b620b711c43f86be602d7e08d57e1c7b0af0a | 24 | py | Python | mmelemental/models/forcefield/bonded/angles/potentials/__init__.py | ccbiozhaw/mmelemental | 2e3215b3d2291cbc0f346efb05e8ad056516b15d | [
"BSD-3-Clause"
] | 6 | 2020-10-07T22:46:48.000Z | 2021-03-29T22:48:24.000Z | mmelemental/models/forcefield/bonded/angles/potentials/__init__.py | ccbiozhaw/mmelemental | 2e3215b3d2291cbc0f346efb05e8ad056516b15d | [
"BSD-3-Clause"
] | 5 | 2020-11-03T16:37:40.000Z | 2021-04-07T01:35:14.000Z | mmelemental/models/forcefield/bonded/angles/potentials/__init__.py | ccbiozhaw/mmelemental | 2e3215b3d2291cbc0f346efb05e8ad056516b15d | [
"BSD-3-Clause"
] | 2 | 2021-06-07T07:23:11.000Z | 2021-09-04T01:32:58.000Z | from .harmonic import *
| 12 | 23 | 0.75 | 3 | 24 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 24 | 1 | 24 | 24 | 0.9 | 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 |
1083353bbfcaf6f4200a7de5486694de6cdd58bb | 166 | py | Python | main/api/v1/__init__.py | welovecoding/vote4code | be265d553af35dc6c5322ecb3f7d5b3cf7691b75 | [
"MIT"
] | 14 | 2017-05-04T22:04:22.000Z | 2020-09-26T18:55:48.000Z | main/api/v1/__init__.py | lipis/vote4code | be265d553af35dc6c5322ecb3f7d5b3cf7691b75 | [
"MIT"
] | 72 | 2017-05-04T12:08:02.000Z | 2018-02-07T21:28:36.000Z | main/api/v1/__init__.py | lipis/vote4code | be265d553af35dc6c5322ecb3f7d5b3cf7691b75 | [
"MIT"
] | null | null | null | # coding: utf-8
from .auth import *
from .config import *
from .user import *
from .language import *
from .post import *
from .vote import *
from .comment import *
| 16.6 | 23 | 0.704819 | 24 | 166 | 4.875 | 0.5 | 0.512821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 0.192771 | 166 | 9 | 24 | 18.444444 | 0.865672 | 0.078313 | 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 |
10a2e9d7cade0742fc477358b89079afa9a8112c | 25 | py | Python | timefuncs/__init__.py | andyceo/pylibs | df2eec6f9903e27ab02a82688378207eedb1b419 | [
"MIT"
] | 1 | 2019-10-28T08:56:41.000Z | 2019-10-28T08:56:41.000Z | timefuncs/__init__.py | andyceo/pylibs | df2eec6f9903e27ab02a82688378207eedb1b419 | [
"MIT"
] | null | null | null | timefuncs/__init__.py | andyceo/pylibs | df2eec6f9903e27ab02a82688378207eedb1b419 | [
"MIT"
] | null | null | null | from .timefuncs import *
| 12.5 | 24 | 0.76 | 3 | 25 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 25 | 1 | 25 | 25 | 0.904762 | 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 |
10a39d5888d8515b20035103793f5e6765bec528 | 98 | py | Python | app/errors/__init__.py | PsychedelicMonkey/Bloggy | b5178bab0522a85a8b725251c195807fb4322eda | [
"MIT"
] | null | null | null | app/errors/__init__.py | PsychedelicMonkey/Bloggy | b5178bab0522a85a8b725251c195807fb4322eda | [
"MIT"
] | null | null | null | app/errors/__init__.py | PsychedelicMonkey/Bloggy | b5178bab0522a85a8b725251c195807fb4322eda | [
"MIT"
] | null | null | null | from flask import Blueprint
error = Blueprint('error', __name__)
from app.errors import handlers | 19.6 | 36 | 0.795918 | 13 | 98 | 5.692308 | 0.692308 | 0.378378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132653 | 98 | 5 | 37 | 19.6 | 0.870588 | 0 | 0 | 0 | 0 | 0 | 0.050505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
52db161fec44996b4579f3abf73e3b0729a2f803 | 193 | py | Python | my_paths.py | parisChatz/Image-Segmentation | ec6a4b9c5fac722216453848421de921ed595e9d | [
"MIT"
] | null | null | null | my_paths.py | parisChatz/Image-Segmentation | ec6a4b9c5fac722216453848421de921ed595e9d | [
"MIT"
] | null | null | null | my_paths.py | parisChatz/Image-Segmentation | ec6a4b9c5fac722216453848421de921ed595e9d | [
"MIT"
] | null | null | null | directory = 'example skin lesion dataset/org data/'
save_dir = 'example skin lesion dataset/docu/results/'
histograms_path = save_dir + 'histograms/'
gt_path = 'example skin lesion dataset/GT'
| 38.6 | 54 | 0.772021 | 27 | 193 | 5.37037 | 0.518519 | 0.227586 | 0.351724 | 0.496552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124352 | 193 | 4 | 55 | 48.25 | 0.857988 | 0 | 0 | 0 | 0 | 0 | 0.61658 | 0.108808 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
52f9401c0c1edee53a0edb7390a9cbb9e101960d | 125 | py | Python | emission/net/usercache/formatters/ios/filtered_location.py | Andrew-Tan/e-mission-server | 91d59bee86e63d803e401f10f4b6a2502effedda | [
"BSD-3-Clause"
] | null | null | null | emission/net/usercache/formatters/ios/filtered_location.py | Andrew-Tan/e-mission-server | 91d59bee86e63d803e401f10f4b6a2502effedda | [
"BSD-3-Clause"
] | 1 | 2017-08-31T19:54:16.000Z | 2017-08-31T19:54:16.000Z | emission/net/usercache/formatters/ios/filtered_location.py | Andrew-Tan/e-mission-server | 91d59bee86e63d803e401f10f4b6a2502effedda | [
"BSD-3-Clause"
] | null | null | null | import logging
import emission.net.usercache.formatters.ios.location as fil
def format(entry):
return fil.format(entry)
| 20.833333 | 60 | 0.792 | 18 | 125 | 5.5 | 0.777778 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 125 | 5 | 61 | 25 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 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 | 1 | 1 | 0 | 0 | 0 | 6 |
5e1917802ec523c73a4e932d464196c010dd66a5 | 128 | py | Python | src/runclipper.py | techlover10/StochasticSoundscape | 6c86a3e5d671c657361ff8e1e78edc710af40c77 | [
"MIT"
] | 2 | 2017-05-02T10:40:43.000Z | 2017-06-29T09:38:54.000Z | src/runclipper.py | techlover10/StochasticSoundscape | 6c86a3e5d671c657361ff8e1e78edc710af40c77 | [
"MIT"
] | null | null | null | src/runclipper.py | techlover10/StochasticSoundscape | 6c86a3e5d671c657361ff8e1e78edc710af40c77 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
#
# Copyright © 2017 jared <jared@jared-devstation>
#
import sound_clipper
sound_clipper.generate_sounds()
| 14.222222 | 49 | 0.765625 | 17 | 128 | 5.647059 | 0.764706 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04386 | 0.109375 | 128 | 8 | 50 | 16 | 0.789474 | 0.507813 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
d808dc176f94186e9add35c45a48e43be0807a1e | 11,911 | py | Python | main.py | jadujoel/audio-compressor-python | ee37e61a6f03885c36576801121ca096e77940aa | [
"MIT"
] | 1 | 2021-09-17T06:27:59.000Z | 2021-09-17T06:27:59.000Z | main.py | jadujoel/audio-compressor-python | ee37e61a6f03885c36576801121ca096e77940aa | [
"MIT"
] | null | null | null | main.py | jadujoel/audio-compressor-python | ee37e61a6f03885c36576801121ca096e77940aa | [
"MIT"
] | null | null | null | # Author: joel.lof@icloud.com
import sys
import numpy as np
from compressor import Compressor
from plot import AmplitudePlot
from generators import sine, chirp
sys.path.append('sigpy')
from Audio import Audio
def example_one():
# Set compressor parameters
sample_rate = 48000
input_gain = 0
makeup_gain... | 26.293598 | 94 | 0.629418 | 1,342 | 11,911 | 5.365872 | 0.126677 | 0.104152 | 0.068046 | 0.091654 | 0.806555 | 0.786419 | 0.766005 | 0.755173 | 0.730037 | 0.720039 | 0 | 0.036093 | 0.278902 | 11,911 | 452 | 95 | 26.35177 | 0.802305 | 0.117454 | 0 | 0.645833 | 0 | 0 | 0.072357 | 0.015007 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017857 | false | 0 | 0.02381 | 0 | 0.041667 | 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 |
d81a4588eecaf9f141c825733bb8f0c3867fcc9f | 428 | py | Python | app/entity/account_title_list_entity.py | JunFuruya/Ratsnake | ff7fe7f6b56663978d2ee2d94df5d88786a0eaa7 | [
"MIT"
] | null | null | null | app/entity/account_title_list_entity.py | JunFuruya/Ratsnake | ff7fe7f6b56663978d2ee2d94df5d88786a0eaa7 | [
"MIT"
] | 5 | 2018-05-17T04:03:39.000Z | 2021-09-08T01:03:17.000Z | app/entity/account_title_list_entity.py | JunFuruya/Hideout | ff7fe7f6b56663978d2ee2d94df5d88786a0eaa7 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
from app.entity.base_web_entity import BaseWebEntity
class AccountTitleListEntity(BaseWebEntity):
__account_title_entity_list = []
def set_account_title_entity_list(self, account_title_entity_list):
self.__account_title_entity_list = account_title_entity_list
retur... | 28.533333 | 71 | 0.757009 | 53 | 428 | 5.528302 | 0.377358 | 0.286689 | 0.430034 | 0.525597 | 0.430034 | 0.25256 | 0.25256 | 0.25256 | 0.25256 | 0 | 0 | 0.002849 | 0.179907 | 428 | 14 | 72 | 30.571429 | 0.831909 | 0.049065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.875 | 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 |
dc3f8d20bf90084c4bf2b770e45025e239e39c7c | 75 | py | Python | retina/criterion/losses/__init__.py | mike112223/retina | cdad3af8240471619f42e9edd1caf68a0241bea6 | [
"Apache-2.0"
] | null | null | null | retina/criterion/losses/__init__.py | mike112223/retina | cdad3af8240471619f42e9edd1caf68a0241bea6 | [
"Apache-2.0"
] | null | null | null | retina/criterion/losses/__init__.py | mike112223/retina | cdad3af8240471619f42e9edd1caf68a0241bea6 | [
"Apache-2.0"
] | null | null | null | from .smooth_L1_loss import SmoothL1Loss
from .focal_loss import FocalLoss
| 25 | 40 | 0.866667 | 11 | 75 | 5.636364 | 0.727273 | 0.322581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 0.106667 | 75 | 2 | 41 | 37.5 | 0.895522 | 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 |
dc4096ac68cf762f9a42a5ae9e82d3a2f4002541 | 11,375 | py | Python | tests/components/light/test_zwave.py | cyrus19901/home-assistant | f6416746ac23316b6c77f36cb63c2f8983a0ba76 | [
"Apache-2.0"
] | null | null | null | tests/components/light/test_zwave.py | cyrus19901/home-assistant | f6416746ac23316b6c77f36cb63c2f8983a0ba76 | [
"Apache-2.0"
] | null | null | null | tests/components/light/test_zwave.py | cyrus19901/home-assistant | f6416746ac23316b6c77f36cb63c2f8983a0ba76 | [
"Apache-2.0"
] | null | null | null | """Test Z-Wave lights."""
from unittest.mock import patch, MagicMock
import homeassistant.components.zwave
from homeassistant.components.zwave import const
from homeassistant.components.light import (
zwave, ATTR_BRIGHTNESS, ATTR_COLOR_TEMP, ATTR_RGB_COLOR)
from tests.mock.zwave import (
MockNode, MockValue, ... | 35 | 71 | 0.694505 | 1,455 | 11,375 | 5.219244 | 0.090034 | 0.053727 | 0.062681 | 0.06492 | 0.865683 | 0.83487 | 0.816961 | 0.791678 | 0.778641 | 0.749276 | 0 | 0.04099 | 0.193582 | 11,375 | 324 | 72 | 35.108025 | 0.786875 | 0.081495 | 0 | 0.654028 | 0 | 0 | 0.025631 | 0 | 0 | 0 | 0.003095 | 0 | 0.246446 | 1 | 0.085308 | false | 0 | 0.023697 | 0 | 0.113744 | 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 |
dc57302d638b38776798ed3eea424c60c0b0cb89 | 5,604 | py | Python | Backend/tests/test_backend.py | mariomash/Translate | aa33084cefa50bba5247e29172abd3a1a1ac60dd | [
"MIT"
] | null | null | null | Backend/tests/test_backend.py | mariomash/Translate | aa33084cefa50bba5247e29172abd3a1a1ac60dd | [
"MIT"
] | null | null | null | Backend/tests/test_backend.py | mariomash/Translate | aa33084cefa50bba5247e29172abd3a1a1ac60dd | [
"MIT"
] | null | null | null | from fastapi import FastAPI
from fastapi.testclient import TestClient
from starlette.status import HTTP_404_NOT_FOUND, HTTP_422_UNPROCESSABLE_ENTITY
from backend.main import app
client = TestClient(app)
from backend import __version__
def test_version():
assert __version__ == '0.1.0'
def test_read_languages()... | 109.882353 | 4,038 | 0.915418 | 200 | 5,604 | 25.335 | 0.26 | 0.00967 | 0.023683 | 0.028419 | 0.113085 | 0.098086 | 0.098086 | 0.08585 | 0.08585 | 0.08585 | 0 | 0.133771 | 0.048894 | 5,604 | 50 | 4,039 | 112.08 | 0.816886 | 0.005175 | 0 | 0.410256 | 0 | 0 | 0.762289 | 0.743272 | 0 | 1 | 0 | 0 | 0.205128 | 1 | 0.179487 | false | 0 | 0.128205 | 0 | 0.307692 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
dc796de652e381a47a128aa272472cc157aadb12 | 133 | py | Python | farmers_api/farmers/admin.py | tm-kn/farmers-api | f4e3bbac8ce02916c004922359a7346c6e17c83f | [
"BSD-2-Clause"
] | null | null | null | farmers_api/farmers/admin.py | tm-kn/farmers-api | f4e3bbac8ce02916c004922359a7346c6e17c83f | [
"BSD-2-Clause"
] | null | null | null | farmers_api/farmers/admin.py | tm-kn/farmers-api | f4e3bbac8ce02916c004922359a7346c6e17c83f | [
"BSD-2-Clause"
] | null | null | null | from django.contrib import admin
from .models import Farmer
@admin.register(Farmer)
class FarmerAdmin(admin.ModelAdmin):
pass
| 14.777778 | 36 | 0.781955 | 17 | 133 | 6.117647 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 133 | 8 | 37 | 16.625 | 0.912281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
523b6f0261121bb8350ad773bf596b66c56ee8b4 | 151 | py | Python | archive_for_wyko/Pyro-3.6/examples/agent2/serv/objects/computer.py | ArcetriAdaptiveOptics/plico_interferometer_server | e14e240229c802333b2aa5bf6458a079dc950bd2 | [
"MIT"
] | null | null | null | archive_for_wyko/Pyro-3.6/examples/agent2/serv/objects/computer.py | ArcetriAdaptiveOptics/plico_interferometer_server | e14e240229c802333b2aa5bf6458a079dc950bd2 | [
"MIT"
] | 3 | 2022-01-16T01:05:01.000Z | 2022-02-23T14:05:28.000Z | archive_for_wyko/Pyro-3.6/examples/agent2/serv/objects/computer.py | ArcetriAdaptiveOptics/plico_interferometer_server | e14e240229c802333b2aa5bf6458a079dc950bd2 | [
"MIT"
] | 1 | 2022-01-14T14:04:07.000Z | 2022-01-14T14:04:07.000Z |
class computer:
def __init__(self):
pass
def getName(self):
return "Computer"
def getDescription(self):
return "Athlon XP 2400+ game system"
| 16.777778 | 38 | 0.721854 | 20 | 151 | 5.25 | 0.7 | 0.209524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.178808 | 151 | 8 | 39 | 18.875 | 0.814516 | 0 | 0 | 0 | 0 | 0 | 0.233333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0.142857 | 0 | 0.285714 | 0.857143 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 6 |
8719c2fcc210b2a60e8d869bf9fb10de155a1bcd | 133 | py | Python | CodeWars/Python/7 kyu/Highest and Lowest/main.py | opastushkov/codewars-solutions | 0132a24259a4e87f926048318332dcb4d94858ca | [
"MIT"
] | null | null | null | CodeWars/Python/7 kyu/Highest and Lowest/main.py | opastushkov/codewars-solutions | 0132a24259a4e87f926048318332dcb4d94858ca | [
"MIT"
] | null | null | null | CodeWars/Python/7 kyu/Highest and Lowest/main.py | opastushkov/codewars-solutions | 0132a24259a4e87f926048318332dcb4d94858ca | [
"MIT"
] | null | null | null | def high_and_low(numbers):
return str(max([int(x) for x in numbers.split()])) + ' ' + str(min([int(x) for x in numbers.split()])) | 66.5 | 106 | 0.631579 | 24 | 133 | 3.416667 | 0.583333 | 0.097561 | 0.170732 | 0.195122 | 0.536585 | 0.536585 | 0.536585 | 0 | 0 | 0 | 0 | 0 | 0.150376 | 133 | 2 | 106 | 66.5 | 0.725664 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
873c6791f79b5bee58e5061ecd0cb9dacc3c9c44 | 3,029 | py | Python | Source Codes/Assignment3/networks.py | amir-souri/ML-Exam2020 | 8feb614ce8171c2c8e88b0fa385db8b679b68748 | [
"MIT"
] | null | null | null | Source Codes/Assignment3/networks.py | amir-souri/ML-Exam2020 | 8feb614ce8171c2c8e88b0fa385db8b679b68748 | [
"MIT"
] | null | null | null | Source Codes/Assignment3/networks.py | amir-souri/ML-Exam2020 | 8feb614ce8171c2c8e88b0fa385db8b679b68748 | [
"MIT"
] | null | null | null | import torch
import torch.nn.functional as F
from torch import nn
class MLP_Net0(nn.Module):
def __init__(self):
super(MLP_Net0, self).__init__()
self.linear1 = nn.Linear(in_features=784, out_features=21)
self.linear2 = nn.Linear(in_features=21, out_features=10)
def forward(self, x):
... | 36.059524 | 78 | 0.618356 | 493 | 3,029 | 3.586207 | 0.121704 | 0.019231 | 0.081448 | 0.062217 | 0.872172 | 0.863688 | 0.816742 | 0.720023 | 0.720023 | 0.677036 | 0 | 0.065744 | 0.236712 | 3,029 | 84 | 79 | 36.059524 | 0.698962 | 0 | 0 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.042857 | 0 | 0.328571 | 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 |
87508ce70d453beb34eee181dafa956cc2a17769 | 808 | py | Python | tests/test_utils.py | tnoff/market-tool | 8269cc04587baa2d7bb0d663b3ed79f37ba23c8b | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/test_utils.py | tnoff/market-tool | 8269cc04587baa2d7bb0d663b3ed79f37ba23c8b | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/test_utils.py | tnoff/market-tool | 8269cc04587baa2d7bb0d663b3ed79f37ba23c8b | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | import unittest
from market_tool import utils
class TestUtils(unittest.TestCase):
def test_round_decimal(self):
self.assertEqual(utils.round_decimal(12.12, 1), 12.1)
self.assertEqual(utils.round_decimal(12.14, 1), 12.1)
self.assertEqual(utils.round_decimal(12.15, 1), 12.2)
self.ass... | 36.727273 | 62 | 0.680693 | 126 | 808 | 4.253968 | 0.190476 | 0.268657 | 0.410448 | 0.51306 | 0.776119 | 0.776119 | 0.776119 | 0.425373 | 0.291045 | 0 | 0 | 0.137931 | 0.174505 | 808 | 21 | 63 | 38.47619 | 0.665667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.733333 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
877b1f1f6460968073bbe30dadcad12688c546d3 | 283 | py | Python | easydb_client/__init__.py | prototype-project/easydb-python-client | 6d701bf5544202c5155843fbcd2cfee0c2e8c56c | [
"Apache-2.0"
] | 3 | 2018-02-05T10:40:49.000Z | 2018-02-06T12:11:04.000Z | easydb_client/__init__.py | prototype-project/easydb-python-client | 6d701bf5544202c5155843fbcd2cfee0c2e8c56c | [
"Apache-2.0"
] | null | null | null | easydb_client/__init__.py | prototype-project/easydb-python-client | 6d701bf5544202c5155843fbcd2cfee0c2e8c56c | [
"Apache-2.0"
] | null | null | null | from .easydb import create_space
from .easydb import get_space
from .easydb import space_exists
from .easydb import remove_space
from .easydb import ElementNotFound
from .easydb import InvalidElementFormat
from .easydb import SpaceNotFound
from . import inmemory
from . import query | 28.3 | 40 | 0.840989 | 38 | 283 | 6.157895 | 0.342105 | 0.299145 | 0.478632 | 0.269231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127208 | 283 | 10 | 41 | 28.3 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
5e70e02a4864a671771424c0891afefaafaba5f3 | 9,979 | py | Python | tests/keras/legacy/models_test.py | nils-werner/keras | 78f26df8fb2b8aa5c6262aef44a494a8335a9c6e | [
"MIT"
] | 30 | 2017-04-11T04:17:22.000Z | 2020-09-08T08:18:37.000Z | tests/keras/legacy/models_test.py | nils-werner/keras | 78f26df8fb2b8aa5c6262aef44a494a8335a9c6e | [
"MIT"
] | null | null | null | tests/keras/legacy/models_test.py | nils-werner/keras | 78f26df8fb2b8aa5c6262aef44a494a8335a9c6e | [
"MIT"
] | 21 | 2017-03-27T08:06:11.000Z | 2020-06-18T09:35:07.000Z | from __future__ import absolute_import
from __future__ import print_function
import pytest
import os
import numpy as np
from keras.models import Sequential
from keras.layers import Dense, Activation
from keras.legacy.layers import Merge
from keras.utils import np_utils
from keras.utils.test_utils import get_test_data,... | 34.292096 | 152 | 0.694358 | 1,437 | 9,979 | 4.535839 | 0.091162 | 0.042191 | 0.025775 | 0.044185 | 0.81436 | 0.786744 | 0.773857 | 0.754679 | 0.724762 | 0.696686 | 0 | 0.009524 | 0.168754 | 9,979 | 290 | 153 | 34.410345 | 0.776251 | 0.016635 | 0 | 0.591549 | 0 | 0 | 0.055539 | 0.027667 | 0 | 0 | 0 | 0 | 0.023474 | 1 | 0.032864 | false | 0 | 0.051643 | 0 | 0.089202 | 0.014085 | 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 |
0d9c6c7b9a5fdcb3aa8c07de885d1b2164091c8a | 3,613 | py | Python | match/models.py | AerysNan/ChallengeHub | 3ddf1131a01149c2589ef63130deee19030857db | [
"MIT"
] | 1 | 2020-09-17T02:05:38.000Z | 2020-09-17T02:05:38.000Z | match/models.py | youkaichao/ChallengeHub | 3ddf1131a01149c2589ef63130deee19030857db | [
"MIT"
] | null | null | null | match/models.py | youkaichao/ChallengeHub | 3ddf1131a01149c2589ef63130deee19030857db | [
"MIT"
] | 1 | 2019-01-04T07:55:34.000Z | 2019-01-04T07:55:34.000Z | from django.db import models
from django.utils import timezone
from useraction.models import User
from basic.models import Group, Competition
from typing import Dict, Any
# Create your models here.
class InvitationStatus:
DEFAULT = 0
ACCEPTED = 1
REJECTED = 2
CANCELLED = 3
class MessageType:
... | 34.084906 | 85 | 0.639358 | 402 | 3,613 | 5.614428 | 0.20398 | 0.028356 | 0.04342 | 0.065131 | 0.751883 | 0.751883 | 0.751883 | 0.750111 | 0.750111 | 0.727071 | 0 | 0.00146 | 0.241904 | 3,613 | 106 | 86 | 34.084906 | 0.822563 | 0.006643 | 0 | 0.574713 | 0 | 0 | 0.120959 | 0.028707 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.057471 | 0.022989 | 0.574713 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
0da8d35a9898f42c827528dd711b0e4f60edeac5 | 87 | py | Python | tests/test_package.py | moreal/DMS-api | 9624e28764ec4535002677671e10a09d762d19a8 | [
"MIT"
] | null | null | null | tests/test_package.py | moreal/DMS-api | 9624e28764ec4535002677671e10a09d762d19a8 | [
"MIT"
] | null | null | null | tests/test_package.py | moreal/DMS-api | 9624e28764ec4535002677671e10a09d762d19a8 | [
"MIT"
] | 1 | 2018-09-29T14:35:20.000Z | 2018-09-29T14:35:20.000Z | import dms.v2
def test_can_access_requests_attribute():
dms.v2.packages.requests
| 14.5 | 41 | 0.793103 | 13 | 87 | 5 | 0.769231 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0.126437 | 87 | 5 | 42 | 17.4 | 0.828947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0dcd0fbf8c68e094e8b96128ed3181021d960e94 | 200 | py | Python | datahub/company/tasks/__init__.py | uktrade/data-hub-api-actions-test | a72439dfeb34e4179491db42fea290b9c2afadb1 | [
"MIT"
] | null | null | null | datahub/company/tasks/__init__.py | uktrade/data-hub-api-actions-test | a72439dfeb34e4179491db42fea290b9c2afadb1 | [
"MIT"
] | 16 | 2020-04-01T15:25:35.000Z | 2020-04-14T14:07:30.000Z | datahub/company/tasks/__init__.py | uktrade/data-hub-api-actions-test | a72439dfeb34e4179491db42fea290b9c2afadb1 | [
"MIT"
] | null | null | null | from datahub.company.tasks.company import automatic_company_archive
from datahub.company.tasks.contact import update_contact_consent
__all__ = ('automatic_company_archive', 'update_contact_consent')
| 40 | 67 | 0.865 | 25 | 200 | 6.44 | 0.44 | 0.136646 | 0.223602 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065 | 200 | 4 | 68 | 50 | 0.860963 | 0 | 0 | 0 | 0 | 0 | 0.235 | 0.235 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0dec8d606c7dbfb5db44187fa29c7d58593ae8b3 | 29 | py | Python | zinv/modules/collectors/__init__.py | shane-breeze/zinv-analysis | 496abf9cb0e77831d580be417bcad7845c347704 | [
"MIT"
] | 1 | 2019-02-06T12:15:42.000Z | 2019-02-06T12:15:42.000Z | zinv/modules/collectors/__init__.py | shane-breeze/zinv-analysis | 496abf9cb0e77831d580be417bcad7845c347704 | [
"MIT"
] | 12 | 2019-03-27T15:52:34.000Z | 2020-02-06T12:09:37.000Z | zinv/modules/collectors/__init__.py | shane-breeze/zinv-analysis | 496abf9cb0e77831d580be417bcad7845c347704 | [
"MIT"
] | 1 | 2019-03-14T17:23:33.000Z | 2019-03-14T17:23:33.000Z | from .HDF5 import HDF5Reader
| 14.5 | 28 | 0.827586 | 4 | 29 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0.137931 | 29 | 1 | 29 | 29 | 0.88 | 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 |
217068b5c458de55bbfa25989b4197d123e8704f | 34 | py | Python | abots/db/__init__.py | aewens/abots | c462ab1be33f2bf9fb9b9afd4c280423aa53952f | [
"BSD-3-Clause"
] | null | null | null | abots/db/__init__.py | aewens/abots | c462ab1be33f2bf9fb9b9afd4c280423aa53952f | [
"BSD-3-Clause"
] | null | null | null | abots/db/__init__.py | aewens/abots | c462ab1be33f2bf9fb9b9afd4c280423aa53952f | [
"BSD-3-Clause"
] | null | null | null | from abots.db.sqlite import SQLite | 34 | 34 | 0.852941 | 6 | 34 | 4.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 34 | 1 | 34 | 34 | 0.935484 | 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 |
21d0027139c5d2d83680e79eb30fcdb95a7af7d2 | 30 | py | Python | .idea/VirtualEnvironment/Lib/site-packages/tests/outcomes/imports/test_import_relative/main.py | Vladpetr/NewsPortal | cd4127fbc09d9c8f5e65c8ae699856c6d380a320 | [
"Apache-2.0"
] | null | null | null | .idea/VirtualEnvironment/Lib/site-packages/tests/outcomes/imports/test_import_relative/main.py | Vladpetr/NewsPortal | cd4127fbc09d9c8f5e65c8ae699856c6d380a320 | [
"Apache-2.0"
] | 5 | 2021-04-08T22:02:15.000Z | 2022-02-10T14:53:45.000Z | .idea/VirtualEnvironment/Lib/site-packages/tests/outcomes/imports/test_import_relative/main.py | Vladpetr/NewsPortal | cd4127fbc09d9c8f5e65c8ae699856c6d380a320 | [
"Apache-2.0"
] | null | null | null | from .main2 import x
print(x)
| 10 | 20 | 0.733333 | 6 | 30 | 3.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.166667 | 30 | 2 | 21 | 15 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 6 |
0dfb53be59269d1fcc3d2dd90e260ae88190fd32 | 13,039 | py | Python | seg1d/examples/ex_sine_noise.py | cadop/seg1d | f5de3949da1fee71110435c5700c4774a03fedb1 | [
"MIT"
] | 9 | 2020-05-12T18:15:40.000Z | 2021-09-24T13:11:21.000Z | seg1d/examples/ex_sine_noise.py | cadop/seg1d | f5de3949da1fee71110435c5700c4774a03fedb1 | [
"MIT"
] | 8 | 2020-06-29T19:44:36.000Z | 2020-08-11T13:38:03.000Z | seg1d/examples/ex_sine_noise.py | cadop/seg1d | f5de3949da1fee71110435c5700c4774a03fedb1 | [
"MIT"
] | 4 | 2020-08-11T10:59:20.000Z | 2021-03-29T17:53:04.000Z | '''
In this example, the attributes of the segmentation algorithm will be
demonstrated through a sine wave with added noise. In this example, the
seed used for the random noise is the same in both the target and reference,
although a different SNR is used.
.. plot::
:context: close-figs
First we import `... | 37.576369 | 201 | 0.634328 | 1,977 | 13,039 | 4.150228 | 0.145675 | 0.089823 | 0.064839 | 0.006825 | 0.856429 | 0.848873 | 0.848873 | 0.838147 | 0.830347 | 0.830347 | 0 | 0.10902 | 0.217731 | 13,039 | 347 | 202 | 37.576369 | 0.695392 | 0.791702 | 0 | 0.630137 | 0 | 0 | 0.057528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013699 | false | 0 | 0.054795 | 0 | 0.068493 | 0.082192 | 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 |
df0057f7eb917192d8ddaf94d323c33e108caf80 | 90 | py | Python | main.py | bangyen/matics | a6c41c80052fd054b184f2cc6e9a14d303362687 | [
"MIT"
] | null | null | null | main.py | bangyen/matics | a6c41c80052fd054b184f2cc6e9a14d303362687 | [
"MIT"
] | null | null | null | main.py | bangyen/matics | a6c41c80052fd054b184f2cc6e9a14d303362687 | [
"MIT"
] | null | null | null | from class1 import *
from class2 import *
from matrices import *
from statistics import *
| 18 | 24 | 0.777778 | 12 | 90 | 5.833333 | 0.5 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.177778 | 90 | 4 | 25 | 22.5 | 0.918919 | 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 |
df2b3c5c74501155dd0c3b075d8a0c1d326b035e | 749 | py | Python | pvlib/__init__.py | SaraLatif99/pvlib-python | b91d178868d193afd56f8e3b013661a473d699c3 | [
"BSD-3-Clause"
] | null | null | null | pvlib/__init__.py | SaraLatif99/pvlib-python | b91d178868d193afd56f8e3b013661a473d699c3 | [
"BSD-3-Clause"
] | null | null | null | pvlib/__init__.py | SaraLatif99/pvlib-python | b91d178868d193afd56f8e3b013661a473d699c3 | [
"BSD-3-Clause"
] | null | null | null | from pvlib.version import __version__ # noqa: F401
from pvlib import tools # noqa: F401
from pvlib import atmosphere # noqa: F401
from pvlib import clearsky # noqa: F401
# from pvlib import forecast # noqa: F401
from pvlib import irradiance # noqa: F401
from pvlib import location # noqa: F401
from pvlib import s... | 39.421053 | 51 | 0.755674 | 109 | 749 | 5.155963 | 0.211009 | 0.288256 | 0.362989 | 0.514235 | 0.69573 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089404 | 0.193591 | 749 | 18 | 52 | 41.611111 | 0.84106 | 0.301736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
10c72f1ad0480b82b561c3d21e5ad5989ab7082f | 192 | py | Python | insta/admin.py | MishaelRatemo/instagram_clone_django | 69178147b80749cd98353bc6ff6e4b860fbe06e0 | [
"MIT"
] | null | null | null | insta/admin.py | MishaelRatemo/instagram_clone_django | 69178147b80749cd98353bc6ff6e4b860fbe06e0 | [
"MIT"
] | null | null | null | insta/admin.py | MishaelRatemo/instagram_clone_django | 69178147b80749cd98353bc6ff6e4b860fbe06e0 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Post,Profile, Comment,Like
admin.site.register(Profile)
admin.site.register(Post)
admin.site.register(Comment)
admin.site.register(Like)
| 21.333333 | 46 | 0.8125 | 28 | 192 | 5.571429 | 0.428571 | 0.230769 | 0.435897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078125 | 192 | 8 | 47 | 24 | 0.881356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 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 |
10c755ea1e452528084cd75a968b1f372fbc41ae | 129 | py | Python | rate_dactra/main/hooks.py | thatweirdcoder/taqyeem-dactra | 4605f173045f859f740a5e4861495d50b34e6079 | [
"Apache-2.0"
] | null | null | null | rate_dactra/main/hooks.py | thatweirdcoder/taqyeem-dactra | 4605f173045f859f740a5e4861495d50b34e6079 | [
"Apache-2.0"
] | null | null | null | rate_dactra/main/hooks.py | thatweirdcoder/taqyeem-dactra | 4605f173045f859f740a5e4861495d50b34e6079 | [
"Apache-2.0"
] | 1 | 2019-07-28T13:28:01.000Z | 2019-07-28T13:28:01.000Z | from . import main
from .. import models
@main.before_app_first_request
def before_first_request():
models.db.create_all()
| 16.125 | 30 | 0.767442 | 19 | 129 | 4.894737 | 0.631579 | 0.215054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139535 | 129 | 7 | 31 | 18.428571 | 0.837838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.6 | 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 |
10d17f18407e10f1650648dd578b251cc30aa481 | 8,819 | py | Python | app_blue_points/webse/app_module/routes.py | mariobp-NHH/Sustainable_Energy_Web1_v2 | bdf235c76fbbf260cb524f6c7756b82f1f0800fa | [
"MIT"
] | null | null | null | app_blue_points/webse/app_module/routes.py | mariobp-NHH/Sustainable_Energy_Web1_v2 | bdf235c76fbbf260cb524f6c7756b82f1f0800fa | [
"MIT"
] | null | null | null | app_blue_points/webse/app_module/routes.py | mariobp-NHH/Sustainable_Energy_Web1_v2 | bdf235c76fbbf260cb524f6c7756b82f1f0800fa | [
"MIT"
] | 1 | 2022-01-21T17:49:24.000Z | 2022-01-21T17:49:24.000Z | import os
import secrets
import json
from datetime import timedelta, datetime
from PIL import Image
from flask import render_template, url_for, flash, redirect, request, abort, jsonify, Blueprint
from webse import app, db, bcrypt
from webse.app_module.forms import ChatFormUpdate
from webse.app_module.forms impo... | 43.658416 | 144 | 0.636353 | 1,140 | 8,819 | 4.59386 | 0.092105 | 0.128318 | 0.042964 | 0.033607 | 0.885049 | 0.869391 | 0.831774 | 0.754631 | 0.717586 | 0.692381 | 0 | 0.03544 | 0.248101 | 8,819 | 201 | 145 | 43.875622 | 0.754336 | 0.008618 | 0 | 0.657459 | 0 | 0 | 0.130466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016575 | false | 0 | 0.066298 | 0.005525 | 0.143646 | 0.01105 | 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 |
10de68a04238b824bd95d20007b5d6a217e82129 | 46,526 | py | Python | tests/bin/check_tron_jobs_test.py | Yelp/Tron | d60b015163418bf66f638e4c12337289ad8c040a | [
"Apache-2.0"
] | 190 | 2015-01-01T17:40:46.000Z | 2022-02-02T09:32:03.000Z | tests/bin/check_tron_jobs_test.py | Yelp/Tron | d60b015163418bf66f638e4c12337289ad8c040a | [
"Apache-2.0"
] | 237 | 2015-01-14T19:25:01.000Z | 2022-03-15T18:33:29.000Z | tests/bin/check_tron_jobs_test.py | Yelp/Tron | d60b015163418bf66f638e4c12337289ad8c040a | [
"Apache-2.0"
] | 40 | 2015-01-22T07:54:15.000Z | 2022-03-03T08:01:29.000Z | import time
from unittest import mock
from unittest.mock import patch
from unittest.mock import PropertyMock
import pytest
from testifycompat import assert_equal
from testifycompat import TestCase
from tron.bin import check_tron_jobs
from tron.bin.check_tron_jobs import State
@pytest.fixture(autouse=True)
def mock_... | 41.430098 | 111 | 0.463999 | 5,065 | 46,526 | 4.053702 | 0.056663 | 0.076369 | 0.063705 | 0.066823 | 0.87483 | 0.852913 | 0.829193 | 0.783411 | 0.766511 | 0.751705 | 0 | 0.053218 | 0.37521 | 46,526 | 1,122 | 112 | 41.467023 | 0.653101 | 0.019881 | 0 | 0.593899 | 0 | 0 | 0.223571 | 0.029766 | 0 | 0 | 0 | 0 | 0.07245 | 1 | 0.037178 | false | 0 | 0.00858 | 0 | 0.047664 | 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 |
8023669ea3473f175396b83b43308af2a32715a4 | 6,281 | py | Python | upload_split_file/test/test_error_in_file.py | uktrade/fadmin2 | 0f774400fb816c9ca30e30b25ae542135966e185 | [
"MIT"
] | null | null | null | upload_split_file/test/test_error_in_file.py | uktrade/fadmin2 | 0f774400fb816c9ca30e30b25ae542135966e185 | [
"MIT"
] | 6 | 2022-01-17T16:14:53.000Z | 2022-03-30T08:31:56.000Z | upload_split_file/test/test_error_in_file.py | uktrade/fadmin2 | 0f774400fb816c9ca30e30b25ae542135966e185 | [
"MIT"
] | null | null | null | import os
from upload_split_file.split_actuals import PAY_CODE
from upload_file.models import FileUpload
from upload_split_file.import_project_percentage import (
upload_project_percentage_from_file,
)
from upload_split_file.test.test_utils import (
COST_CENTRE_CODE_INDEX,
NAC_CODE_INDEX,
PROGRAMME_C... | 36.097701 | 84 | 0.632224 | 703 | 6,281 | 5.172119 | 0.128023 | 0.089109 | 0.114411 | 0.056106 | 0.842959 | 0.834433 | 0.809956 | 0.809956 | 0.79978 | 0.766502 | 0 | 0.011494 | 0.307435 | 6,281 | 173 | 85 | 36.306358 | 0.824368 | 0 | 0 | 0.532468 | 0 | 0 | 0.049514 | 0.013374 | 0 | 0 | 0 | 0 | 0.032468 | 1 | 0.045455 | false | 0 | 0.038961 | 0 | 0.090909 | 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 |
8030d82d755d02d0afb24e8be99445291ca2fd01 | 27 | py | Python | lessons/geom2d/__init__.py | alexzoo/python | accbe2dff8ca48be23a80451d3ea846ec69defd6 | [
"Apache-2.0"
] | null | null | null | lessons/geom2d/__init__.py | alexzoo/python | accbe2dff8ca48be23a80451d3ea846ec69defd6 | [
"Apache-2.0"
] | null | null | null | lessons/geom2d/__init__.py | alexzoo/python | accbe2dff8ca48be23a80451d3ea846ec69defd6 | [
"Apache-2.0"
] | null | null | null | from geom2d.Point import *
| 13.5 | 26 | 0.777778 | 4 | 27 | 5.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 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 |
3386b5d8ace708fafbcb93c7d0b1d54123ca64ee | 24 | py | Python | apps/files/__init__.py | jin-hao-chen/filegoback | 830e77f92776c78bc758bdd8b74b254569050f58 | [
"MIT"
] | null | null | null | apps/files/__init__.py | jin-hao-chen/filegoback | 830e77f92776c78bc758bdd8b74b254569050f58 | [
"MIT"
] | null | null | null | apps/files/__init__.py | jin-hao-chen/filegoback | 830e77f92776c78bc758bdd8b74b254569050f58 | [
"MIT"
] | null | null | null | from .models import File | 24 | 24 | 0.833333 | 4 | 24 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 24 | 1 | 24 | 24 | 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 |
33c3487e0ea5e0ffefecf942fad67b11bc8bff12 | 6,348 | py | Python | tests/unit/test_providers__tvmaze.py | Krazybug/mnamer | d4e7f344053cd203a1a86561a1e822fd180375dd | [
"MIT"
] | null | null | null | tests/unit/test_providers__tvmaze.py | Krazybug/mnamer | d4e7f344053cd203a1a86561a1e822fd180375dd | [
"MIT"
] | null | null | null | tests/unit/test_providers__tvmaze.py | Krazybug/mnamer | d4e7f344053cd203a1a86561a1e822fd180375dd | [
"MIT"
] | 1 | 2020-04-13T21:13:49.000Z | 2020-04-13T21:13:49.000Z | import pytest
from mnamer.exceptions import MnamerNotFoundException
from mnamer.metadata import MetadataEpisode
from mnamer.providers import TvMaze
from tests import *
@pytest.fixture(scope="session")
def provider():
return TvMaze()
@pytest.mark.parametrize("meta", EPISODE_META.values(), ids=list(EPISODE_META)... | 36.693642 | 79 | 0.741178 | 815 | 6,348 | 5.56319 | 0.06135 | 0.07521 | 0.060212 | 0.149978 | 0.942876 | 0.94067 | 0.931848 | 0.917953 | 0.904279 | 0.856859 | 0 | 0.001098 | 0.139256 | 6,348 | 172 | 80 | 36.906977 | 0.828697 | 0 | 0 | 0.551181 | 0 | 0 | 0.041273 | 0 | 0 | 0 | 0 | 0 | 0.188976 | 1 | 0.173228 | false | 0 | 0.03937 | 0.007874 | 0.220472 | 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 |
33d64178f91d85712b306ab05e3e3b8642835bfb | 11,755 | py | Python | _pentesting/CVE-2017-3248-exploit.py | Shimenrock/Shimenrock.github.io | 933a5a670274c8ba853a436bff8fb120c19bc822 | [
"MIT"
] | null | null | null | _pentesting/CVE-2017-3248-exploit.py | Shimenrock/Shimenrock.github.io | 933a5a670274c8ba853a436bff8fb120c19bc822 | [
"MIT"
] | 2 | 2020-02-20T22:47:31.000Z | 2022-03-26T02:19:56.000Z | _pentesting/CVE-2017-3248-exploit.py | Shimenrock/shimenrock.github.io | 933a5a670274c8ba853a436bff8fb120c19bc822 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
from argparse import RawTextHelpFormatter
import socket, argparse, subprocess, ssl, os.path
# HELP_MESSAGE =
# --------------------------------------------------------------------------------------
# Developped by bobsecq: quentin.hardy@protonmail.com (quentin.hard... | 78.366667 | 2,965 | 0.803743 | 996 | 11,755 | 9.396586 | 0.279116 | 0.010258 | 0.020194 | 0.005984 | 0.137194 | 0.096698 | 0.057378 | 0.04509 | 0.036542 | 0.036542 | 0 | 0.349093 | 0.085921 | 11,755 | 150 | 2,966 | 78.366667 | 0.521917 | 0.135517 | 0 | 0.130435 | 0 | 0.043478 | 0.626505 | 0.439205 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0 | 0.021739 | null | null | 0.23913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1d2e0a98bd03107c0b78c8b1aa21f7707748170c | 30 | py | Python | models/__init__.py | kant/yolov1-pytorch | c80d91b4e254f70dbf6a707f162112aea336c261 | [
"MIT"
] | null | null | null | models/__init__.py | kant/yolov1-pytorch | c80d91b4e254f70dbf6a707f162112aea336c261 | [
"MIT"
] | null | null | null | models/__init__.py | kant/yolov1-pytorch | c80d91b4e254f70dbf6a707f162112aea336c261 | [
"MIT"
] | null | null | null | from .model import build_model | 30 | 30 | 0.866667 | 5 | 30 | 5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 30 | 1 | 30 | 30 | 0.925926 | 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 |
1d5c8d3f1b8470a35406e137e8a0011eff5a07bf | 100 | py | Python | terrascript/random/__init__.py | amlodzianowski/python-terrascript | 1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49 | [
"BSD-2-Clause"
] | null | null | null | terrascript/random/__init__.py | amlodzianowski/python-terrascript | 1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49 | [
"BSD-2-Clause"
] | null | null | null | terrascript/random/__init__.py | amlodzianowski/python-terrascript | 1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49 | [
"BSD-2-Clause"
] | null | null | null | # terrascript/random/__init__.py
import terrascript
class random(terrascript.Provider):
pass
| 12.5 | 35 | 0.78 | 11 | 100 | 6.727273 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14 | 100 | 7 | 36 | 14.285714 | 0.860465 | 0.3 | 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 |
1da107efa9eb0b4125cae2863a0b0c95c4f90208 | 83 | py | Python | JOHAN_LOPEZ.py | jose-121/RECTANGULO | 1f692caa279ce4346a34306d0cfc7b629c028742 | [
"MIT"
] | null | null | null | JOHAN_LOPEZ.py | jose-121/RECTANGULO | 1f692caa279ce4346a34306d0cfc7b629c028742 | [
"MIT"
] | null | null | null | JOHAN_LOPEZ.py | jose-121/RECTANGULO | 1f692caa279ce4346a34306d0cfc7b629c028742 | [
"MIT"
] | 1 | 2018-09-26T00:05:28.000Z | 2018-09-26T00:05:28.000Z | def calcular (importe,descuento):
return importe - (importe * descuento / 100)
| 27.666667 | 48 | 0.710843 | 9 | 83 | 6.555556 | 0.666667 | 0.542373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044118 | 0.180723 | 83 | 2 | 49 | 41.5 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 1 | 0.5 | 2 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 6 |
d524b5bc7662243ad0041e0e781b51daef9a97c1 | 6,889 | py | Python | src/backend/tasks_io/handlers/tests/frc_api_event_alliances_test.py | bovlb/the-blue-alliance | 29389649d96fe060688f218d463e642dcebfd6cc | [
"MIT"
] | null | null | null | src/backend/tasks_io/handlers/tests/frc_api_event_alliances_test.py | bovlb/the-blue-alliance | 29389649d96fe060688f218d463e642dcebfd6cc | [
"MIT"
] | null | null | null | src/backend/tasks_io/handlers/tests/frc_api_event_alliances_test.py | bovlb/the-blue-alliance | 29389649d96fe060688f218d463e642dcebfd6cc | [
"MIT"
] | null | null | null | import datetime
from typing import Dict, Optional
from unittest import mock
from freezegun import freeze_time
from google.appengine.ext import testbed
from werkzeug.test import Client
from backend.common.consts.event_type import EventType
from backend.common.models.alliance import EventAlliance
from backend.common.mo... | 32.961722 | 85 | 0.739149 | 913 | 6,889 | 5.299014 | 0.135816 | 0.083919 | 0.103348 | 0.052088 | 0.83857 | 0.817073 | 0.798884 | 0.798884 | 0.798884 | 0.773667 | 0 | 0.030864 | 0.153433 | 6,889 | 208 | 86 | 33.120192 | 0.798697 | 0.007693 | 0 | 0.666667 | 0 | 0 | 0.147958 | 0.104639 | 0 | 0 | 0 | 0 | 0.232704 | 1 | 0.09434 | false | 0 | 0.069182 | 0 | 0.163522 | 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 |
d52ede538e56d1f504f77040f331c8ea8e093785 | 48,447 | py | Python | darts/tests/test_datasets.py | leyp1/darts | edeb1810f0a5e63ddef2b6db2a997c6c9428c51d | [
"Apache-2.0"
] | 1 | 2022-02-28T13:52:19.000Z | 2022-02-28T13:52:19.000Z | darts/tests/test_datasets.py | leyp1/darts | edeb1810f0a5e63ddef2b6db2a997c6c9428c51d | [
"Apache-2.0"
] | null | null | null | darts/tests/test_datasets.py | leyp1/darts | edeb1810f0a5e63ddef2b6db2a997c6c9428c51d | [
"Apache-2.0"
] | null | null | null | import numpy as np
import pandas as pd
from darts import TimeSeries
from darts.logging import get_logger
from darts.tests.base_test_class import DartsBaseTestClass
from darts.utils.timeseries_generation import gaussian_timeseries
logger = get_logger(__name__)
try:
from darts.utils.data import ( # noqa: F401
... | 42.238012 | 113 | 0.555349 | 5,229 | 48,447 | 4.988526 | 0.047045 | 0.046924 | 0.038375 | 0.043857 | 0.930688 | 0.923979 | 0.906345 | 0.897604 | 0.848764 | 0.82488 | 0 | 0.074271 | 0.332446 | 48,447 | 1,146 | 114 | 42.274869 | 0.73229 | 0.079799 | 0 | 0.670282 | 0 | 0 | 0.011869 | 0 | 0 | 0 | 0 | 0 | 0.210412 | 1 | 0.015184 | false | 0 | 0.009761 | 0 | 0.02603 | 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 |
d5a02fa70ea8b9207391ef4d4ac850a1083f63d6 | 12,690 | py | Python | tests/unit/modules/readers/test_EventFunctions.py | shane-breeze/zinv-analysis | 496abf9cb0e77831d580be417bcad7845c347704 | [
"MIT"
] | 1 | 2019-02-06T12:15:42.000Z | 2019-02-06T12:15:42.000Z | tests/unit/modules/readers/test_EventFunctions.py | shane-breeze/zinv-analysis | 496abf9cb0e77831d580be417bcad7845c347704 | [
"MIT"
] | 12 | 2019-03-27T15:52:34.000Z | 2020-02-06T12:09:37.000Z | tests/unit/modules/readers/test_EventFunctions.py | shane-breeze/zinv-analysis | 496abf9cb0e77831d580be417bcad7845c347704 | [
"MIT"
] | 1 | 2019-03-14T17:23:33.000Z | 2019-03-14T17:23:33.000Z | import pytest
import mock
import numpy as np
import awkward as awk
from zinv.modules.readers import EventFunctions
class DummyEvent(object):
def __init__(self):
self.iblock = 0
self.nsig = 0
self.source = ''
self.cache = {}
self.attribute_variation_sources = ["unclust"]
... | 33.394737 | 92 | 0.490544 | 1,475 | 12,690 | 4.168136 | 0.111186 | 0.013338 | 0.012199 | 0.086532 | 0.827912 | 0.796357 | 0.77326 | 0.745283 | 0.679408 | 0.665257 | 0 | 0.082253 | 0.307329 | 12,690 | 379 | 93 | 33.48285 | 0.617179 | 0.002994 | 0 | 0.725146 | 0 | 0 | 0.078498 | 0 | 0 | 0 | 0 | 0 | 0.046784 | 1 | 0.064327 | false | 0 | 0.01462 | 0.01462 | 0.154971 | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
639803bafcf2786445a138ba1c19358ba9811f60 | 138 | py | Python | tests/integration/files/file/base/_grains/test_custom_grains.py | guoxiaod/salt | 2cd6c03b40932be137e6e8a672967b59025a2d34 | [
"Apache-2.0"
] | 2 | 2018-11-08T02:59:24.000Z | 2021-01-04T00:30:50.000Z | tests/integration/files/file/base/_grains/test_custom_grains.py | guoxiaod/salt | 2cd6c03b40932be137e6e8a672967b59025a2d34 | [
"Apache-2.0"
] | 4 | 2020-09-04T10:19:34.000Z | 2020-11-09T12:55:59.000Z | tests/integration/files/file/base/_grains/test_custom_grains.py | guoxiaod/salt | 2cd6c03b40932be137e6e8a672967b59025a2d34 | [
"Apache-2.0"
] | 5 | 2017-06-16T23:48:13.000Z | 2021-04-08T17:43:48.000Z | def test(grains):
if 'os' in grains:
return {'custom_grain_test': 'itworked'}
return {'custom_grain_test': 'itdidntwork'}
| 27.6 | 48 | 0.652174 | 17 | 138 | 5.058824 | 0.647059 | 0.27907 | 0.395349 | 0.488372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202899 | 138 | 4 | 49 | 34.5 | 0.781818 | 0 | 0 | 0 | 0 | 0 | 0.398551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
63a7792993139aa0cffb9e08bf9937c28d6faac9 | 25 | py | Python | contrib/tools/python/src/Lib/plat-mac/Carbon/CarbonEvt.py | HeyLey/catboost | f472aed90604ebe727537d9d4a37147985e10ec2 | [
"Apache-2.0"
] | 6,989 | 2017-07-18T06:23:18.000Z | 2022-03-31T15:58:36.000Z | python/src/Lib/plat-mac/Carbon/CarbonEvt.py | weiqiangzheng/sl4a | d3c17dca978cbeee545e12ea240a9dbf2a6999e9 | [
"Apache-2.0"
] | 1,978 | 2017-07-18T09:17:58.000Z | 2022-03-31T14:28:43.000Z | python/src/Lib/plat-mac/Carbon/CarbonEvt.py | weiqiangzheng/sl4a | d3c17dca978cbeee545e12ea240a9dbf2a6999e9 | [
"Apache-2.0"
] | 1,228 | 2017-07-18T09:03:13.000Z | 2022-03-29T05:57:40.000Z | from _CarbonEvt import *
| 12.5 | 24 | 0.8 | 3 | 25 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 25 | 1 | 25 | 25 | 0.904762 | 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 |
63aa8368ff835a3e055adcb0a98f67397580420d | 1,849 | py | Python | monk/pytorch/transforms/return_transform.py | abhi-kumar/monk_kaggle_bengali_ai | 12a6c654446e887706c1a8bed82fccf8a98ce356 | [
"Apache-2.0"
] | null | null | null | monk/pytorch/transforms/return_transform.py | abhi-kumar/monk_kaggle_bengali_ai | 12a6c654446e887706c1a8bed82fccf8a98ce356 | [
"Apache-2.0"
] | 9 | 2020-01-28T21:40:39.000Z | 2022-02-10T01:24:06.000Z | monk/pytorch/transforms/return_transform.py | abhi-kumar/monk_kaggle_bengali_ai | 12a6c654446e887706c1a8bed82fccf8a98ce356 | [
"Apache-2.0"
] | null | null | null | from pytorch.transforms.imports import *
from system.imports import *
@accepts(dict, post_trace=True)
@TraceFunction(trace_args=False, trace_rv=False)
def set_transform_trainval(system_dict):
if(not system_dict["local"]["normalize"]):
if(not system_dict["local"]["applied_train_tensor"]):
syste... | 59.645161 | 182 | 0.703083 | 219 | 1,849 | 5.643836 | 0.173516 | 0.226537 | 0.218447 | 0.182039 | 0.908576 | 0.875405 | 0.742718 | 0.512136 | 0.512136 | 0.512136 | 0 | 0 | 0.108707 | 1,849 | 31 | 183 | 59.645161 | 0.75 | 0 | 0 | 0.32 | 0 | 0 | 0.278919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.08 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
63d05a25fc4fb0012a4a0a2a4e12217da4bfe071 | 42 | py | Python | src/mergedictionaries/write/__init__.py | nasqueron/merge-dictionaries | 657fb61165e33ad7dbb6f9641c6cf10752acf9e6 | [
"BSD-2-Clause"
] | null | null | null | src/mergedictionaries/write/__init__.py | nasqueron/merge-dictionaries | 657fb61165e33ad7dbb6f9641c6cf10752acf9e6 | [
"BSD-2-Clause"
] | null | null | null | src/mergedictionaries/write/__init__.py | nasqueron/merge-dictionaries | 657fb61165e33ad7dbb6f9641c6cf10752acf9e6 | [
"BSD-2-Clause"
] | null | null | null | from . import git
from . import jetbrains
| 14 | 23 | 0.761905 | 6 | 42 | 5.333333 | 0.666667 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 42 | 2 | 24 | 21 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
8961573594a0c091b05baa1d50cb3bd974713871 | 9,113 | py | Python | autopycoin/losses/losses_test.py | AutocoinLab/autopycoin | d091292517c3429d5cc2dfeb513c644b506af9cf | [
"Apache-2.0"
] | 3 | 2021-09-26T14:04:25.000Z | 2022-02-10T09:52:00.000Z | autopycoin/losses/losses_test.py | AutocoinLab/autopycoin | d091292517c3429d5cc2dfeb513c644b506af9cf | [
"Apache-2.0"
] | 24 | 2021-09-26T14:04:27.000Z | 2022-02-11T13:32:06.000Z | autopycoin/losses/losses_test.py | AutocoinLab/autopycoin | d091292517c3429d5cc2dfeb513c644b506af9cf | [
"Apache-2.0"
] | null | null | null | # pylint: skip-file
"""Tests for autopycoin loss functions."""
import numpy as np
import tensorflow as tf
from tensorflow import test
from tensorflow.python.keras import combinations
from tensorflow.python.keras.utils import losses_utils
from . import losses
@combinations.generate(combinations.combine(mode=["eage... | 43.189573 | 86 | 0.578514 | 1,352 | 9,113 | 3.762574 | 0.079882 | 0.017299 | 0.042658 | 0.030077 | 0.888343 | 0.853352 | 0.814822 | 0.775899 | 0.734421 | 0.710438 | 0 | 0.097554 | 0.246351 | 9,113 | 210 | 87 | 43.395238 | 0.643128 | 0.006035 | 0 | 0.579545 | 0 | 0 | 0.00464 | 0 | 0 | 0 | 0 | 0 | 0.130682 | 1 | 0.113636 | false | 0 | 0.034091 | 0 | 0.159091 | 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 |
8983e7360ab6125baca6f8e30e6801c5e87a844b | 43 | py | Python | src/userspace_lib/pru_speak/__init__.py | LinoSamuel/PRU-SPEAK | 8ffeb5bde13b002ed0403c5969b8c9d9fa44058a | [
"MIT"
] | 14 | 2015-06-10T10:47:29.000Z | 2021-11-25T10:15:30.000Z | src/userspace_lib/pru_speak/__init__.py | LinoSamuel/PRU-SPEAK | 8ffeb5bde13b002ed0403c5969b8c9d9fa44058a | [
"MIT"
] | null | null | null | src/userspace_lib/pru_speak/__init__.py | LinoSamuel/PRU-SPEAK | 8ffeb5bde13b002ed0403c5969b8c9d9fa44058a | [
"MIT"
] | 3 | 2015-06-27T19:32:27.000Z | 2021-11-09T18:45:03.000Z | from pruspeak import pruspeak as pru_speak
| 21.5 | 42 | 0.860465 | 7 | 43 | 5.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139535 | 43 | 1 | 43 | 43 | 0.972973 | 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 |
981eb1ba94d386f4ac3cdc1a45821b90db2d0880 | 925 | py | Python | frille-lang/lib/python3.6/site-packages/srsly/tests/test_pickle_api.py | frillecode/CDS-spring-2021-language | a0b2116044cd20d4a34b98f23bd2663256c90c5d | [
"MIT"
] | 10 | 2021-05-31T07:18:08.000Z | 2022-03-19T09:20:11.000Z | frille-lang/lib/python3.6/site-packages/srsly/tests/test_pickle_api.py | frillecode/CDS-spring-2021-language | a0b2116044cd20d4a34b98f23bd2663256c90c5d | [
"MIT"
] | 3 | 2021-06-08T21:06:32.000Z | 2022-01-13T02:22:38.000Z | frille-lang/lib/python3.6/site-packages/srsly/tests/test_pickle_api.py | frillecode/CDS-spring-2021-language | a0b2116044cd20d4a34b98f23bd2663256c90c5d | [
"MIT"
] | 2 | 2021-12-09T07:23:21.000Z | 2022-03-31T06:13:10.000Z | # coding: utf8
from __future__ import unicode_literals
from .._pickle_api import pickle_dumps, pickle_loads
def test_pickle_dumps():
data = {"hello": "world", "test": 123}
expected = [
b"\x80\x04\x95\x1e\x00\x00\x00\x00\x00\x00\x00}\x94(\x8c\x05hello\x94\x8c\x05world\x94\x8c\x04test\x94K{u.",
... | 37 | 116 | 0.668108 | 150 | 925 | 4.013333 | 0.313333 | 0.209302 | 0.224252 | 0.239203 | 0.362126 | 0.320598 | 0.320598 | 0.320598 | 0.320598 | 0.320598 | 0 | 0.203797 | 0.145946 | 925 | 24 | 117 | 38.541667 | 0.558228 | 0.012973 | 0 | 0 | 0 | 0.222222 | 0.497256 | 0.451153 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
982e0a507177bc8a8c751a07e32c1e3289c919a1 | 5,406 | py | Python | pkgs/ops-pkg/src/genie/libs/ops/vxlan/iosxe/tests/vxlan_output.py | patrickboertje/genielibs | 61c37aacf3dd0f499944555e4ff940f92f53dacb | [
"Apache-2.0"
] | 1 | 2022-01-16T10:00:24.000Z | 2022-01-16T10:00:24.000Z | pkgs/ops-pkg/src/genie/libs/ops/vxlan/iosxe/tests/vxlan_output.py | patrickboertje/genielibs | 61c37aacf3dd0f499944555e4ff940f92f53dacb | [
"Apache-2.0"
] | null | null | null | pkgs/ops-pkg/src/genie/libs/ops/vxlan/iosxe/tests/vxlan_output.py | patrickboertje/genielibs | 61c37aacf3dd0f499944555e4ff940f92f53dacb | [
"Apache-2.0"
] | null | null | null | '''
Vxlan Genie Ops Object Outputs for IOSXE.
'''
class VxlanOutput(object):
# 'vxlan' Ops output
ShowRunInterface = {
"interfaces": {
"nve1": {
"member_vni": {
"20011": {
"ingress_replication": {
'ena... | 29.703297 | 55 | 0.261746 | 366 | 5,406 | 3.702186 | 0.224044 | 0.023616 | 0.070849 | 0.085609 | 0.782288 | 0.760148 | 0.760148 | 0.760148 | 0.702583 | 0.532103 | 0 | 0.089332 | 0.573437 | 5,406 | 182 | 56 | 29.703297 | 0.498265 | 0.013319 | 0 | 0.637427 | 0 | 0 | 0.247561 | 0.008035 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.02924 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7f410565f34bf7563bd69a61552980c8ab805656 | 30,869 | py | Python | tests/test_Molecule.py | JacksonBurns/molSim | 069dc9e75160f33a00b7a1c5a355ec33f54eda09 | [
"MIT"
] | null | null | null | tests/test_Molecule.py | JacksonBurns/molSim | 069dc9e75160f33a00b7a1c5a355ec33f54eda09 | [
"MIT"
] | null | null | null | tests/test_Molecule.py | JacksonBurns/molSim | 069dc9e75160f33a00b7a1c5a355ec33f54eda09 | [
"MIT"
] | null | null | null | """ Test the methods of the Molecule class """
from os import remove, mkdir
import os.path
from shutil import rmtree
import unittest
import numpy as np
import pandas as pd
import rdkit
from rdkit.Chem import MolFromSmiles
from rdkit.Chem.rdmolfiles import MolToPDBFile
from molSim.chemical_datastructures import Molecu... | 54.442681 | 87 | 0.568726 | 3,119 | 30,869 | 5.335043 | 0.067329 | 0.022356 | 0.03768 | 0.040565 | 0.830829 | 0.783774 | 0.757752 | 0.728005 | 0.721514 | 0.695192 | 0 | 0.001588 | 0.367456 | 30,869 | 566 | 88 | 54.538869 | 0.850609 | 0.004049 | 0 | 0.630268 | 0 | 0 | 0.210394 | 0.007615 | 0 | 0 | 0 | 0 | 0.185824 | 1 | 0.045977 | false | 0 | 0.022989 | 0 | 0.08046 | 0.045977 | 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 |
7f6c05f16f8054e19393fe9bcd084435b0676e4d | 39 | py | Python | profiling.py | david-salac/python-memory-profiling | d212dff77940f832615b5e5c7e5ce40e9c2ea0b6 | [
"MIT"
] | 2 | 2020-04-16T14:03:19.000Z | 2020-06-05T12:02:36.000Z | profiling.py | david-salac/python-memory-profiling | d212dff77940f832615b5e5c7e5ce40e9c2ea0b6 | [
"MIT"
] | null | null | null | profiling.py | david-salac/python-memory-profiling | d212dff77940f832615b5e5c7e5ce40e9c2ea0b6 | [
"MIT"
] | null | null | null | from application import a
print(a(9))
| 9.75 | 25 | 0.74359 | 7 | 39 | 4.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.153846 | 39 | 3 | 26 | 13 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 6 |
7f96cf346a3f37e95ad27ba93fb934a8024c0960 | 67 | py | Python | Section 8/module1.py | PacktPublishing/Learning-Python-v- | 30fb28dfaaa18815f1b4c0b683e8839da223b195 | [
"MIT"
] | 1 | 2021-10-05T19:45:43.000Z | 2021-10-05T19:45:43.000Z | Section 8/module1.py | PacktPublishing/Learning-Python-v- | 30fb28dfaaa18815f1b4c0b683e8839da223b195 | [
"MIT"
] | null | null | null | Section 8/module1.py | PacktPublishing/Learning-Python-v- | 30fb28dfaaa18815f1b4c0b683e8839da223b195 | [
"MIT"
] | 2 | 2020-09-25T19:56:46.000Z | 2021-09-02T11:14:28.000Z | def sum1(a,b):
c = a+b
return c
def mul1(a,b):
c = a*b
return c | 11.166667 | 14 | 0.567164 | 18 | 67 | 2.111111 | 0.388889 | 0.210526 | 0.157895 | 0.210526 | 0.631579 | 0.631579 | 0.631579 | 0 | 0 | 0 | 0 | 0.04 | 0.253731 | 67 | 6 | 15 | 11.166667 | 0.72 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
7faa199bedfc89442b27ddda3172900682a60c92 | 5,745 | py | Python | tests/test_fdc_round.py | Commonists/wm_metrics | 4837861fa8a17b13618d701cddef9c3ef199ea96 | [
"MIT"
] | 3 | 2015-06-29T21:17:22.000Z | 2016-01-22T11:39:52.000Z | tests/test_fdc_round.py | Commonists/wm_metrics | 4837861fa8a17b13618d701cddef9c3ef199ea96 | [
"MIT"
] | 9 | 2015-02-09T07:42:44.000Z | 2018-06-16T12:57:00.000Z | tests/test_fdc_round.py | Commonists/wm_metrics | 4837861fa8a17b13618d701cddef9c3ef199ea96 | [
"MIT"
] | 4 | 2015-07-02T23:17:39.000Z | 2020-09-10T08:18:47.000Z | """Unit tests for fdc.indicator."""
import unittest
from wm_metrics.fdc.round import Round
from wm_metrics.helpers import period
class TestFdcRound(unittest.TestCase):
"""Test methods from wm_metrics.fdc.indicator."""
def test_init(self):
fdc_round = Round(2014, 2015, 1)
self.assertIsInstan... | 38.046358 | 80 | 0.697476 | 689 | 5,745 | 5.499274 | 0.119013 | 0.067564 | 0.07601 | 0.10029 | 0.813935 | 0.793349 | 0.780945 | 0.713909 | 0.685141 | 0.609132 | 0 | 0.131208 | 0.197389 | 5,745 | 150 | 81 | 38.3 | 0.690523 | 0.035683 | 0 | 0.509091 | 0 | 0 | 0.113064 | 0 | 0 | 0 | 0 | 0 | 0.245455 | 1 | 0.236364 | false | 0 | 0.027273 | 0 | 0.290909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
f69b57fdfd12b52753f178b6ddde03bed30d1805 | 12,439 | py | Python | polliwog/plane/test_plane.py | lace/polliwog | 7744ce171738e4739e391fcff4f4689d9f177196 | [
"BSD-2-Clause"
] | 18 | 2019-05-03T02:08:12.000Z | 2022-03-24T11:49:59.000Z | polliwog/plane/test_plane.py | lace/polliwog | 7744ce171738e4739e391fcff4f4689d9f177196 | [
"BSD-2-Clause"
] | 76 | 2019-04-03T15:24:01.000Z | 2022-03-01T14:07:04.000Z | polliwog/plane/test_plane.py | lace/polliwog | 7744ce171738e4739e391fcff4f4689d9f177196 | [
"BSD-2-Clause"
] | 3 | 2019-11-04T16:22:07.000Z | 2022-03-09T08:50:52.000Z | import math
import numpy as np
import pytest
from vg.compat import v2 as vg
from ._plane_object import Plane
from .test_functions import assert_plane_equation_satisfies_points
def test_validation():
with pytest.raises(ValueError):
Plane(np.array([0, 10, 0]), np.array([1e-9, 1e-9, 1e-9]))
def test_repr()... | 30.487745 | 88 | 0.618619 | 2,065 | 12,439 | 3.569976 | 0.069249 | 0.060228 | 0.060635 | 0.04612 | 0.846853 | 0.800733 | 0.732773 | 0.722599 | 0.704286 | 0.690857 | 0 | 0.082589 | 0.207653 | 12,439 | 407 | 89 | 30.562654 | 0.665381 | 0.037624 | 0 | 0.443262 | 0 | 0 | 0.003347 | 0 | 0 | 0 | 0 | 0 | 0.198582 | 1 | 0.085106 | false | 0 | 0.021277 | 0 | 0.106383 | 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 |
f6a8e29c028e433014e268c97672b9c89f480566 | 213 | py | Python | automatization_of_data_mining_project/prediction_module/__init__.py | Sale1996/automatization_of_data_mining_project | 223aec59231586563a3b125bff064f8420630a8f | [
"MIT"
] | null | null | null | automatization_of_data_mining_project/prediction_module/__init__.py | Sale1996/automatization_of_data_mining_project | 223aec59231586563a3b125bff064f8420630a8f | [
"MIT"
] | null | null | null | automatization_of_data_mining_project/prediction_module/__init__.py | Sale1996/automatization_of_data_mining_project | 223aec59231586563a3b125bff064f8420630a8f | [
"MIT"
] | null | null | null | from prediction_module.classes.facade_predictor import FacadePredictor
from prediction_module.depedency_injector.container import Container
PredictorFactory: FacadePredictor = Container.facade_predictions_module
| 42.6 | 71 | 0.906103 | 22 | 213 | 8.5 | 0.590909 | 0.149733 | 0.213904 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061033 | 213 | 4 | 72 | 53.25 | 0.935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
f6cf1f1a498c9da1c74dd79d8fdffd460225680c | 85 | py | Python | config_manager/tests/test_config_manager.py | tbeckham/DeploymentManager | c1b2ba47d1732859ff458eb934da671fb0dad37f | [
"Apache-2.0"
] | null | null | null | config_manager/tests/test_config_manager.py | tbeckham/DeploymentManager | c1b2ba47d1732859ff458eb934da671fb0dad37f | [
"Apache-2.0"
] | null | null | null | config_manager/tests/test_config_manager.py | tbeckham/DeploymentManager | c1b2ba47d1732859ff458eb934da671fb0dad37f | [
"Apache-2.0"
] | null | null | null | from config_manager.eucalyptus import Eucalyptus
def test_init():
Eucalyptus()
| 14.166667 | 48 | 0.776471 | 10 | 85 | 6.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152941 | 85 | 5 | 49 | 17 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
10067c96bdc07746b33b43121a387bfea2589857 | 114 | py | Python | api/admin.py | Keaiii3/WeCloud | 83e4d68f2b6ba61058a41ef680cf8a305961c20d | [
"Apache-2.0"
] | null | null | null | api/admin.py | Keaiii3/WeCloud | 83e4d68f2b6ba61058a41ef680cf8a305961c20d | [
"Apache-2.0"
] | null | null | null | api/admin.py | Keaiii3/WeCloud | 83e4d68f2b6ba61058a41ef680cf8a305961c20d | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
# Register your models here.
from api import models
admin.register(models.User) | 19 | 32 | 0.807018 | 17 | 114 | 5.411765 | 0.647059 | 0.282609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 114 | 6 | 33 | 19 | 0.929293 | 0.22807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
101a338cd5986f7516394ca20ce800ce378db190 | 128,943 | py | Python | etl/parsers/etw/Microsoft_Windows_Application_Server_Applications.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 104 | 2020-03-04T14:31:31.000Z | 2022-03-28T02:59:36.000Z | etl/parsers/etw/Microsoft_Windows_Application_Server_Applications.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 7 | 2020-04-20T09:18:39.000Z | 2022-03-19T17:06:19.000Z | etl/parsers/etw/Microsoft_Windows_Application_Server_Applications.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 16 | 2020-03-05T18:55:59.000Z | 2022-03-01T10:19:28.000Z | # -*- coding: utf-8 -*-
"""
Microsoft-Windows-Application Server-Applications
GUID : c651f5f6-1c0d-492e-8ae1-b4efd7c9d503
"""
from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct
from etl.utils import WString, CString, SystemTime, Guid
from etl.dtyp... | 30.788682 | 123 | 0.699914 | 14,177 | 128,943 | 6.128377 | 0.047189 | 0.088764 | 0.149789 | 0.183076 | 0.935786 | 0.935269 | 0.92964 | 0.92964 | 0.605373 | 0.605373 | 0 | 0.131046 | 0.181359 | 128,943 | 4,187 | 124 | 30.796035 | 0.692027 | 0.0009 | 0 | 0.529668 | 0 | 0 | 0.226661 | 0.139717 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001243 | 0 | 0.300093 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
63d7a59c761fc3004fa97e848533b47eb282dff1 | 28 | py | Python | magicwand-data-generator/magicwand/magicwand_components/suts/mw_apache_wp/__init__.py | gregpaton08/magicwand-datatool | c1352d8ea6da23a619a7107ab04dc3ff62212228 | [
"MIT"
] | 22 | 2020-11-30T18:27:55.000Z | 2022-03-02T12:13:29.000Z | magicwand-data-generator/magicwand/magicwand_components/suts/mw_apache_wp/__init__.py | gregpaton08/magicwand-datatool | c1352d8ea6da23a619a7107ab04dc3ff62212228 | [
"MIT"
] | 7 | 2020-11-30T18:34:10.000Z | 2021-02-11T13:52:49.000Z | magicwand-data-generator/magicwand/magicwand_components/suts/mw_apache_wp/__init__.py | gregpaton08/magicwand-datatool | c1352d8ea6da23a619a7107ab04dc3ff62212228 | [
"MIT"
] | 2 | 2021-01-26T20:25:22.000Z | 2021-05-30T07:32:31.000Z | from .mw_apache_wp import *
| 14 | 27 | 0.785714 | 5 | 28 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 28 | 1 | 28 | 28 | 0.833333 | 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 |
121582d181f4cd638aa34fcbb4e0199d59b59098 | 25 | py | Python | dgnx/algorithms/__init__.py | Raitonvortex/DGNX | 93caeef1914157b9bb48f1c6282b07f0a1a672ac | [
"BSD-2-Clause"
] | null | null | null | dgnx/algorithms/__init__.py | Raitonvortex/DGNX | 93caeef1914157b9bb48f1c6282b07f0a1a672ac | [
"BSD-2-Clause"
] | null | null | null | dgnx/algorithms/__init__.py | Raitonvortex/DGNX | 93caeef1914157b9bb48f1c6282b07f0a1a672ac | [
"BSD-2-Clause"
] | null | null | null | from .algorithms import * | 25 | 25 | 0.8 | 3 | 25 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 25 | 1 | 25 | 25 | 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 |
124501dffabdbc87f54db7f261612a54a5acec38 | 48 | py | Python | python/exemples/student.py | plgitlogin/demo | 6642b8d27ca78b608d59c717e1d53d4182858bea | [
"CC0-1.0"
] | null | null | null | python/exemples/student.py | plgitlogin/demo | 6642b8d27ca78b608d59c717e1d53d4182858bea | [
"CC0-1.0"
] | 8 | 2019-05-19T06:34:40.000Z | 2019-06-11T13:20:01.000Z | python/exemples/student.py | plgitlogin/demo | 6642b8d27ca78b608d59c717e1d53d4182858bea | [
"CC0-1.0"
] | null | null | null | print("hello")
def binop(g,f):
return g * f
| 6.857143 | 15 | 0.583333 | 9 | 48 | 3.111111 | 0.777778 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229167 | 48 | 6 | 16 | 8 | 0.756757 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 0.666667 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
126b063f32093057139ac125e65d2961e2a78f0e | 71 | py | Python | public/B64.py | dscdtc/ApiTester | 7db88e5b1b8509d34ec5b95c761db194596abdab | [
"Apache-2.0"
] | null | null | null | public/B64.py | dscdtc/ApiTester | 7db88e5b1b8509d34ec5b95c761db194596abdab | [
"Apache-2.0"
] | null | null | null | public/B64.py | dscdtc/ApiTester | 7db88e5b1b8509d34ec5b95c761db194596abdab | [
"Apache-2.0"
] | null | null | null | import base64
def encode(data):
return base64.b64encode(data)
| 14.2 | 34 | 0.704225 | 9 | 71 | 5.555556 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 0.211268 | 71 | 4 | 35 | 17.75 | 0.785714 | 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 |
126c4c3f0f47eca5c35c6accab1bdca73c113761 | 213 | py | Python | transfer/instance_weighting/__init__.py | Steefano/transfer | 1ed557411a0ea464ab3279bd6413c9fe9e276291 | [
"MIT"
] | 2 | 2020-12-10T20:14:16.000Z | 2020-12-10T21:27:00.000Z | transfer/instance_weighting/__init__.py | Steefano/transfer | 1ed557411a0ea464ab3279bd6413c9fe9e276291 | [
"MIT"
] | null | null | null | transfer/instance_weighting/__init__.py | Steefano/transfer | 1ed557411a0ea464ab3279bd6413c9fe9e276291 | [
"MIT"
] | null | null | null | from ._classes import KernelMeanMatching
from ._classes import KullbackLeiblerImportance
from ._classes import TwoStageWeighting
__all__ = ["KernelMeanMatching", "KullbackLeiblerImportance", "TwoStageWeighting"]
| 35.5 | 82 | 0.849765 | 16 | 213 | 10.875 | 0.4375 | 0.189655 | 0.293103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084507 | 213 | 5 | 83 | 42.6 | 0.892308 | 0 | 0 | 0 | 0 | 0 | 0.28169 | 0.117371 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
126f588d46266060a63f1f027fd3d4faff0990a7 | 2,387 | py | Python | python_tutor/09_two-dimensional_arrays/diagonal.py | ctatuk/pylearn | 29566b75c14f867bd7e8fc19c236e9be4f9f5203 | [
"Apache-2.0"
] | null | null | null | python_tutor/09_two-dimensional_arrays/diagonal.py | ctatuk/pylearn | 29566b75c14f867bd7e8fc19c236e9be4f9f5203 | [
"Apache-2.0"
] | 2 | 2020-05-16T14:46:50.000Z | 2020-06-20T16:35:37.000Z | python_tutor/09_two-dimensional_arrays/diagonal.py | ctatuk/pylearn | 29566b75c14f867bd7e8fc19c236e9be4f9f5203 | [
"Apache-2.0"
] | 2 | 2020-05-03T09:13:55.000Z | 2020-09-23T11:58:01.000Z | def diagonal(n):
'''
Source https://pythontutor.ru/lessons/2d_arrays/problems/diagonals/
Condition
Given the number n. Create an n × n array and fill it in accordance with the following rule.
The numbers 0 should be written on the main diagonal. On the two diagonals adjacent to the main, the nu... | 33.152778 | 124 | 0.622539 | 382 | 2,387 | 3.879581 | 0.159686 | 0.080972 | 0.048583 | 0.044534 | 0.873144 | 0.845479 | 0.845479 | 0.785425 | 0.766532 | 0.766532 | 0 | 0.020408 | 0.281525 | 2,387 | 71 | 125 | 33.619718 | 0.841399 | 0.552576 | 0 | 0.387097 | 0 | 0 | 0.008028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0 | 0 | 0.129032 | 0.16129 | 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 |
d62633103fb5d39b0958fb18fa2004251acd4326 | 13,742 | py | Python | business/views.py | phassans/hungryhour-admin | a808ad2a8ff6228246808d2eecbf9c1994c86083 | [
"BSD-3-Clause"
] | null | null | null | business/views.py | phassans/hungryhour-admin | a808ad2a8ff6228246808d2eecbf9c1994c86083 | [
"BSD-3-Clause"
] | 8 | 2020-02-12T02:02:48.000Z | 2022-02-10T08:38:41.000Z | business/views.py | phassans/hungryhour-admin | a808ad2a8ff6228246808d2eecbf9c1994c86083 | [
"BSD-3-Clause"
] | null | null | null | from django.views.generic import TemplateView, View
from django.shortcuts import render, redirect
import requests
import json
from django.http import JsonResponse, HttpResponseRedirect
import datetime
from django.contrib import messages
from .mixins import UserRequiredMixin
class LoginView(View):
template_name = ... | 44.472492 | 123 | 0.613302 | 1,461 | 13,742 | 5.6564 | 0.097194 | 0.069216 | 0.054211 | 0.043562 | 0.835915 | 0.803243 | 0.773112 | 0.759197 | 0.738141 | 0.715513 | 0 | 0.004829 | 0.246471 | 13,742 | 308 | 124 | 44.616883 | 0.79324 | 0 | 0 | 0.6139 | 0 | 0 | 0.194877 | 0.042497 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07722 | false | 0 | 0.030888 | 0.011583 | 0.274131 | 0.092664 | 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 |
d631b24f1c9290d93e035fb2abc73eb5f87af8e5 | 330 | py | Python | bitmovin_api_sdk/encoding/configurations/video/h264/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 11 | 2019-07-03T10:41:16.000Z | 2022-02-25T21:48:06.000Z | bitmovin_api_sdk/encoding/configurations/video/h264/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 8 | 2019-11-23T00:01:25.000Z | 2021-04-29T12:30:31.000Z | bitmovin_api_sdk/encoding/configurations/video/h264/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 13 | 2020-01-02T14:58:18.000Z | 2022-03-26T12:10:30.000Z | from bitmovin_api_sdk.encoding.configurations.video.h264.h264_api import H264Api
from bitmovin_api_sdk.encoding.configurations.video.h264.customdata.customdata_api import CustomdataApi
from bitmovin_api_sdk.encoding.configurations.video.h264.h264_video_configuration_list_query_params import H264VideoConfigurationListQu... | 82.5 | 144 | 0.915152 | 41 | 330 | 7.04878 | 0.414634 | 0.124567 | 0.155709 | 0.186851 | 0.536332 | 0.536332 | 0.536332 | 0.536332 | 0.366782 | 0 | 0 | 0.066038 | 0.036364 | 330 | 3 | 145 | 110 | 0.842767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
d65af770b902a1264fdceb9877b549572b3dfa69 | 34,614 | py | Python | pddl/grammar/pddl22Lexer.py | taskplanning/otpl | c7bec2a5e6bb3efd68db37abac29f7f195f5e560 | [
"BSD-3-Clause"
] | 11 | 2020-07-03T14:00:56.000Z | 2022-02-21T14:32:25.000Z | pddl/grammar/pddl22Lexer.py | taskplanning/otpl | c7bec2a5e6bb3efd68db37abac29f7f195f5e560 | [
"BSD-3-Clause"
] | 2 | 2020-07-03T13:59:51.000Z | 2020-07-06T15:40:45.000Z | pddl/grammar/pddl22Lexer.py | taskplanning/otpl | c7bec2a5e6bb3efd68db37abac29f7f195f5e560 | [
"BSD-3-Clause"
] | 3 | 2020-07-03T14:00:41.000Z | 2020-11-27T16:38:04.000Z | # Generated from pddl22.g4 by ANTLR 4.9
from antlr4 import *
from io import StringIO
from typing.io import TextIO
import sys
def serializedATN():
with StringIO() as buf:
buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2S")
buf.write("\u03b1\b\1\4\2\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\... | 63.981516 | 103 | 0.575056 | 7,935 | 34,614 | 2.468053 | 0.153623 | 0.126736 | 0.04473 | 0.046773 | 0.205984 | 0.134804 | 0.109784 | 0.097529 | 0.093393 | 0.089205 | 0 | 0.372155 | 0.141966 | 34,614 | 540 | 104 | 64.1 | 0.287239 | 0.001069 | 0 | 0.003831 | 1 | 0.703065 | 0.660544 | 0.626732 | 0.001916 | 0 | 0 | 0 | 0 | 1 | 0.003831 | false | 0 | 0.007663 | 0 | 0.185824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c38bea9e2585c3f52c13e22851355b7b3c460b21 | 73 | py | Python | src/tushareData/tushareToken.py | EasyStock/Bull | 388537b389646c3c315ec51de9c3856012b1f644 | [
"Apache-2.0"
] | null | null | null | src/tushareData/tushareToken.py | EasyStock/Bull | 388537b389646c3c315ec51de9c3856012b1f644 | [
"Apache-2.0"
] | null | null | null | src/tushareData/tushareToken.py | EasyStock/Bull | 388537b389646c3c315ec51de9c3856012b1f644 | [
"Apache-2.0"
] | null | null | null | TUSHAR_TOKEN = '7c752594bc9e33aad08aec1742fc3e527e9fd60cedb67da440d6ca28' | 73 | 73 | 0.931507 | 3 | 73 | 22.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.43662 | 0.027397 | 73 | 1 | 73 | 73 | 0.507042 | 0 | 0 | 0 | 0 | 0 | 0.756757 | 0.756757 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
c3a7d45d87bda17a40f95aceacc1f4af5a04a7eb | 10,725 | py | Python | subrepos/wtsi-hgi.python-sequencescape-db/sequencescape/tests/sqlalchemy/test_model_converters.py | wtsi-hgi/openstack-tenant-cleanup | d998016f44c54666f76f90d8d3efa90e12730fff | [
"MIT"
] | null | null | null | subrepos/wtsi-hgi.python-sequencescape-db/sequencescape/tests/sqlalchemy/test_model_converters.py | wtsi-hgi/openstack-tenant-cleanup | d998016f44c54666f76f90d8d3efa90e12730fff | [
"MIT"
] | 7 | 2016-03-03T13:29:44.000Z | 2016-03-15T14:30:48.000Z | subrepos/wtsi-hgi.python-sequencescape-db/sequencescape/tests/sqlalchemy/test_model_converters.py | wtsi-hgi/openstack-tenant-cleanup | d998016f44c54666f76f90d8d3efa90e12730fff | [
"MIT"
] | null | null | null | import unittest
from typing import List
from sequencescape import NamedModel
from sequencescape.models import Sample, Study, Library, Well, MultiplexedLibrary
from sequencescape._sqlalchemy._models import SQLAlchemySample, SQLAlchemyStudy, SQLAlchemyLibrary, \
SQLAlchemyWell, SQLAlchemyMultiplexedLibrary
from seq... | 48.75 | 114 | 0.759347 | 1,218 | 10,725 | 6.292282 | 0.075534 | 0.140919 | 0.194154 | 0.234603 | 0.822286 | 0.726253 | 0.718424 | 0.697025 | 0.654358 | 0.585595 | 0 | 0.002665 | 0.16028 | 10,725 | 219 | 115 | 48.972603 | 0.848323 | 0.045967 | 0 | 0.630303 | 0 | 0 | 0.005528 | 0 | 0 | 0 | 0 | 0.004566 | 0.49697 | 1 | 0.157576 | false | 0 | 0.042424 | 0 | 0.236364 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c3ae8742511a9814bb49674961aefc36aa2d99c0 | 260 | py | Python | Reader/TrainingFileReader.py | NunoXu/UnbabelChallenge2016 | 680131bb80e1cb0a8d52033b3e75d0ed0e0eb70a | [
"MIT"
] | null | null | null | Reader/TrainingFileReader.py | NunoXu/UnbabelChallenge2016 | 680131bb80e1cb0a8d52033b3e75d0ed0e0eb70a | [
"MIT"
] | 5 | 2021-03-31T18:23:08.000Z | 2022-01-13T00:38:59.000Z | Reader/TrainingFileReader.py | NunoXu/UnbabelChallenge2016 | 680131bb80e1cb0a8d52033b3e75d0ed0e0eb70a | [
"MIT"
] | null | null | null | def next_sentence(file_name):
with open(file_name, 'r') as file:
for line in file:
yield {'classification': int(line[0]),
'sentence': line[2:]}
def load_training_file(file_name):
return next_sentence(file_name)
| 26 | 50 | 0.615385 | 35 | 260 | 4.342857 | 0.571429 | 0.210526 | 0.210526 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010471 | 0.265385 | 260 | 9 | 51 | 28.888889 | 0.78534 | 0 | 0 | 0 | 0 | 0 | 0.088462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.428571 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 6 |
7f111ac1384400b6a1264d3b6336a4cab2be789e | 179 | py | Python | preview_image_widget/apps.py | LaLogiaDePython/django-preview-image-widget | 3b63c0e00a8583a5596a033d76310f10c6ae128d | [
"MIT"
] | 1 | 2020-03-07T13:43:03.000Z | 2020-03-07T13:43:03.000Z | preview_image_widget/apps.py | LaLogiaDePython/django-preview-image-widget | 3b63c0e00a8583a5596a033d76310f10c6ae128d | [
"MIT"
] | null | null | null | preview_image_widget/apps.py | LaLogiaDePython/django-preview-image-widget | 3b63c0e00a8583a5596a033d76310f10c6ae128d | [
"MIT"
] | 1 | 2020-03-27T09:00:03.000Z | 2020-03-27T09:00:03.000Z | from django.apps import AppConfig
class MenuAppConfig(AppConfig):
name = 'preview_image_widget'
label = 'preview_image_widget'
verbose_name = 'Preview Image Widget'
| 22.375 | 41 | 0.75419 | 21 | 179 | 6.190476 | 0.619048 | 0.276923 | 0.415385 | 0.338462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173184 | 179 | 7 | 42 | 25.571429 | 0.878378 | 0 | 0 | 0 | 0 | 0 | 0.335196 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
6132b47b290c4fc27ddcf0ba54e5cc45cf3ddc98 | 36,616 | py | Python | backend/Hinkskalle/tests/routes/oras/test_push.py | h3kker/hinkskalle | 609ab67468b7be0e84cf6044ffb5938afcaa0813 | [
"MIT"
] | 4 | 2021-08-07T02:45:40.000Z | 2022-02-16T09:43:11.000Z | backend/Hinkskalle/tests/routes/oras/test_push.py | h3kker/hinkskalle | 609ab67468b7be0e84cf6044ffb5938afcaa0813 | [
"MIT"
] | 11 | 2021-12-17T15:34:18.000Z | 2022-03-31T08:58:12.000Z | backend/Hinkskalle/tests/routes/oras/test_push.py | h3kker/hinkskalle | 609ab67468b7be0e84cf6044ffb5938afcaa0813 | [
"MIT"
] | 1 | 2021-08-07T02:45:49.000Z | 2021-08-07T02:45:49.000Z | from Hinkskalle.models.Image import Image
from unittest import mock
import tempfile
from Hinkskalle.models.Container import Container
from Hinkskalle.models.Entity import Entity
from Hinkskalle.models.Collection import Collection
from Hinkskalle.models.Tag import Tag
import datetime
import os.path
import json
from Hin... | 41.703872 | 256 | 0.703217 | 4,680 | 36,616 | 5.314957 | 0.055342 | 0.057289 | 0.041972 | 0.054032 | 0.863552 | 0.834606 | 0.796977 | 0.756091 | 0.723004 | 0.698762 | 0 | 0.019837 | 0.147777 | 36,616 | 878 | 257 | 41.703872 | 0.777279 | 0.005571 | 0 | 0.658602 | 0 | 0.018817 | 0.199088 | 0.15643 | 0 | 0 | 0 | 0 | 0.189516 | 1 | 0.060484 | false | 0 | 0.018817 | 0 | 0.080645 | 0.002688 | 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 |
615feefddbbf1ff92c1fa7db283e16c76ad2291f | 79 | py | Python | tests/regressiontests/app_loading/not_installed/models.py | mradziej/django | 5d38965743a369981c9a738a298f467f854a2919 | [
"BSD-3-Clause"
] | 1 | 2016-05-09T15:03:04.000Z | 2016-05-09T15:03:04.000Z | tests/regressiontests/app_loading/not_installed/models.py | mradziej/django | 5d38965743a369981c9a738a298f467f854a2919 | [
"BSD-3-Clause"
] | null | null | null | tests/regressiontests/app_loading/not_installed/models.py | mradziej/django | 5d38965743a369981c9a738a298f467f854a2919 | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
class NotInstalledModel(models.Model):
pass
| 13.166667 | 38 | 0.772152 | 10 | 79 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164557 | 79 | 5 | 39 | 15.8 | 0.924242 | 0 | 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 |
61b28cbc2e358476b8c3a6dcc9c13d9867debce8 | 23 | py | Python | Rasp/nrf/lib_nrf24/__init__.py | CarlosPena00/Mobbi | 6c08b5d8b4886e8e06bdb447749892e305051d42 | [
"MIT"
] | null | null | null | Rasp/nrf/lib_nrf24/__init__.py | CarlosPena00/Mobbi | 6c08b5d8b4886e8e06bdb447749892e305051d42 | [
"MIT"
] | null | null | null | Rasp/nrf/lib_nrf24/__init__.py | CarlosPena00/Mobbi | 6c08b5d8b4886e8e06bdb447749892e305051d42 | [
"MIT"
] | null | null | null | from lib_nrf24 import * | 23 | 23 | 0.826087 | 4 | 23 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.130435 | 23 | 1 | 23 | 23 | 0.8 | 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 |
f62be436b6e04afa4f6bcd2ecb747a196251ef85 | 26 | py | Python | cryptoran/packages/signature/__init__.py | orancanoren/Public-Key-Crypto | 718273a7376ade4ce4a9188d20255bfb303aa8d6 | [
"MIT"
] | 8 | 2018-06-13T12:49:31.000Z | 2021-12-03T16:29:58.000Z | cryptoran/packages/signature/__init__.py | orancanoren/Public-Key-Crypto | 718273a7376ade4ce4a9188d20255bfb303aa8d6 | [
"MIT"
] | 2 | 2018-06-13T15:42:48.000Z | 2018-07-16T15:19:44.000Z | cryptoran/packages/signature/__init__.py | orancanoren/Public-Key-Crypto | 718273a7376ade4ce4a9188d20255bfb303aa8d6 | [
"MIT"
] | 1 | 2018-08-14T07:31:04.000Z | 2018-08-14T07:31:04.000Z | from .RSAsig import RSAsig | 26 | 26 | 0.846154 | 4 | 26 | 5.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 26 | 1 | 26 | 26 | 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 |
f62c61e0a5ae9e6ca8ffb09493983379c441fb22 | 292 | py | Python | install/lib/python2.7/dist-packages/sound_play/msg/__init__.py | AmaldevHari/Assistant | a9776dd26f402455c22176d8e8d02c15296023f2 | [
"MIT"
] | null | null | null | install/lib/python2.7/dist-packages/sound_play/msg/__init__.py | AmaldevHari/Assistant | a9776dd26f402455c22176d8e8d02c15296023f2 | [
"MIT"
] | null | null | null | install/lib/python2.7/dist-packages/sound_play/msg/__init__.py | AmaldevHari/Assistant | a9776dd26f402455c22176d8e8d02c15296023f2 | [
"MIT"
] | null | null | null | from ._SoundRequest import *
from ._SoundRequestAction import *
from ._SoundRequestActionFeedback import *
from ._SoundRequestActionGoal import *
from ._SoundRequestActionResult import *
from ._SoundRequestFeedback import *
from ._SoundRequestGoal import *
from ._SoundRequestResult import *
| 32.444444 | 42 | 0.835616 | 24 | 292 | 9.833333 | 0.416667 | 0.29661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109589 | 292 | 8 | 43 | 36.5 | 0.907692 | 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 |
f6569c484240c7883caea83155e1a678ad2e6f23 | 224 | py | Python | pvsystemprofiler/algorithms/latitude/estimation.py | slacgismo/pv-system-profiler | 5ab663cd186511605bbb1e6aa387c8b897e47d83 | [
"BSD-2-Clause"
] | 4 | 2020-08-18T14:28:44.000Z | 2021-10-14T13:17:03.000Z | pvsystemprofiler/algorithms/latitude/estimation.py | slacgismo/pv-system-profiler | 5ab663cd186511605bbb1e6aa387c8b897e47d83 | [
"BSD-2-Clause"
] | 10 | 2020-04-14T18:57:03.000Z | 2021-09-14T15:26:24.000Z | pvsystemprofiler/algorithms/latitude/estimation.py | slacgismo/pv-system-profiler | 5ab663cd186511605bbb1e6aa387c8b897e47d83 | [
"BSD-2-Clause"
] | null | null | null | from pvsystemprofiler.algorithms.latitude.calculation import calculate_latitude
def estimate_latitude(hours_daylight, delta):
latitude_estimate = calculate_latitude(hours_daylight, delta)
return latitude_estimate
| 28 | 79 | 0.84375 | 24 | 224 | 7.583333 | 0.541667 | 0.186813 | 0.230769 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 224 | 7 | 80 | 32 | 0.91 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
f66f5c173d55337886611bee39a6a33e4e172eea | 249 | py | Python | tests/test_init.py | kalaspuff/carloscar-cli | d31d5ab619efa6bc2e95394feb99cc5fa4d181c2 | [
"MIT"
] | null | null | null | tests/test_init.py | kalaspuff/carloscar-cli | d31d5ab619efa6bc2e95394feb99cc5fa4d181c2 | [
"MIT"
] | null | null | null | tests/test_init.py | kalaspuff/carloscar-cli | d31d5ab619efa6bc2e95394feb99cc5fa4d181c2 | [
"MIT"
] | null | null | null | import carloscar
def test_init() -> None:
assert carloscar
assert isinstance(carloscar.__version_info__, tuple)
assert carloscar.__version_info__
assert isinstance(carloscar.__version__, str)
assert len(carloscar.__version__)
| 22.636364 | 56 | 0.767068 | 27 | 249 | 6.37037 | 0.481481 | 0.372093 | 0.290698 | 0.372093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164659 | 249 | 10 | 57 | 24.9 | 0.826923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.714286 | 1 | 0.142857 | true | 0 | 0.142857 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
f672ced498f2d880b4a9027dd64ccb88247105b6 | 23 | py | Python | __init__.py | SalomeLeduc/vosk-kalliope | 213e5aca3633d20acc31ac8e218405094501f8f5 | [
"Apache-2.0"
] | 4 | 2020-04-24T15:52:11.000Z | 2021-01-04T15:08:47.000Z | __init__.py | SalomeLeduc/vosk-kalliope | 213e5aca3633d20acc31ac8e218405094501f8f5 | [
"Apache-2.0"
] | null | null | null | __init__.py | SalomeLeduc/vosk-kalliope | 213e5aca3633d20acc31ac8e218405094501f8f5 | [
"Apache-2.0"
] | null | null | null | from .vosk import Vosk
| 11.5 | 22 | 0.782609 | 4 | 23 | 4.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 23 | 1 | 23 | 23 | 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 |
9c88cdbc74a9933d30a02bb138c761c5fc93a636 | 1,400 | py | Python | tests/test_multithread.py | pseeth/soxbindings | 5c2a37969a796a2762c23f6c09c8893538ce396c | [
"MIT"
] | 42 | 2020-05-27T10:00:48.000Z | 2022-03-29T05:29:23.000Z | tests/test_multithread.py | pseeth/soxbindings | 5c2a37969a796a2762c23f6c09c8893538ce396c | [
"MIT"
] | 7 | 2020-07-15T19:27:00.000Z | 2022-01-20T10:46:37.000Z | tests/test_multithread.py | pseeth/soxbindings | 5c2a37969a796a2762c23f6c09c8893538ce396c | [
"MIT"
] | 3 | 2020-07-15T21:11:48.000Z | 2021-10-05T19:46:40.000Z | from multiprocessing.dummy import Pool as ThreadPool
import numpy as np
import soxbindings as sox
from soxbindings import sox_context
@sox_context()
def test_multithreading():
y1 = np.zeros((4000, 1))
y2 = np.zeros((3000, 1))
def do_transform(y):
tfm = sox.Transformer()
tfm.vol(0.5)
... | 25.454545 | 67 | 0.629286 | 197 | 1,400 | 4.243655 | 0.28934 | 0.114833 | 0.057416 | 0.0311 | 0.732057 | 0.732057 | 0.732057 | 0.732057 | 0.732057 | 0.732057 | 0 | 0.052174 | 0.260714 | 1,400 | 55 | 68 | 25.454545 | 0.755556 | 0.036429 | 0 | 0.75 | 0 | 0 | 0.005948 | 0 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.25 | 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 |
9ca689aa772c31f950b2dcb1d40647e098b752f1 | 224 | py | Python | setup.py | jfaccioni/clovars | 64e24286a2dc185490384aeb08027d88eb9462c4 | [
"MIT"
] | null | null | null | setup.py | jfaccioni/clovars | 64e24286a2dc185490384aeb08027d88eb9462c4 | [
"MIT"
] | null | null | null | setup.py | jfaccioni/clovars | 64e24286a2dc185490384aeb08027d88eb9462c4 | [
"MIT"
] | null | null | null | from setuptools import setup
import toml
PYPROJECT_DATA = toml.load('pyproject.toml')
NAME = PYPROJECT_DATA['tool']['poetry']['name']
VERSION = PYPROJECT_DATA['tool']['poetry']['version']
setup(name=NAME, version=VERSION)
| 24.888889 | 53 | 0.745536 | 29 | 224 | 5.655172 | 0.413793 | 0.237805 | 0.207317 | 0.280488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084821 | 224 | 8 | 54 | 28 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.200893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 6 |
9ccb8901c7e5d48651627796228ea5de3b057e28 | 6,614 | py | Python | test/pytest/test_nr_do.py | dmulyalin/salt-nornir | 2fbbe136f5a462e7981ce638a3dd15463de63d18 | [
"MIT"
] | 12 | 2020-08-24T10:44:59.000Z | 2022-03-23T03:41:20.000Z | test/pytest/test_nr_do.py | dmulyalin/salt-nornir | 2fbbe136f5a462e7981ce638a3dd15463de63d18 | [
"MIT"
] | 3 | 2021-02-15T20:55:20.000Z | 2021-09-26T22:50:02.000Z | test/pytest/test_nr_do.py | dmulyalin/salt-nornir | 2fbbe136f5a462e7981ce638a3dd15463de63d18 | [
"MIT"
] | 1 | 2021-05-23T15:47:10.000Z | 2021-05-23T15:47:10.000Z | import logging
import pprint
log = logging.getLogger(__name__)
try:
import salt.client
from salt.exceptions import CommandExecutionError
HAS_SALT = True
except:
HAS_SALT = False
raise SystemExit("SALT Nonrir Tests - failed importing SALT libraries")
if HAS_SALT:
# initiate execution modules... | 27.67364 | 83 | 0.578923 | 867 | 6,614 | 4.204152 | 0.106113 | 0.096022 | 0.139095 | 0.09465 | 0.878189 | 0.860082 | 0.841701 | 0.841701 | 0.819753 | 0.777503 | 0 | 0.025484 | 0.234654 | 6,614 | 239 | 84 | 27.67364 | 0.694587 | 0.036287 | 0 | 0.671875 | 0 | 0 | 0.240848 | 0.046033 | 0 | 0 | 0 | 0 | 0.260417 | 1 | 0.078125 | false | 0 | 0.026042 | 0 | 0.104167 | 0.005208 | 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 |
1410f4b066266bccf63eb6fdb9431df77b762cae | 39 | py | Python | sipwhitelist/__init__.py | automationator/sipwhitelist | 0f4ee967dda910925ebe0295a0045c539973b09c | [
"Apache-2.0"
] | null | null | null | sipwhitelist/__init__.py | automationator/sipwhitelist | 0f4ee967dda910925ebe0295a0045c539973b09c | [
"Apache-2.0"
] | null | null | null | sipwhitelist/__init__.py | automationator/sipwhitelist | 0f4ee967dda910925ebe0295a0045c539973b09c | [
"Apache-2.0"
] | 2 | 2019-12-06T19:55:44.000Z | 2021-02-19T19:16:16.000Z | from .sipwhitelist import SIPWhitelist
| 19.5 | 38 | 0.871795 | 4 | 39 | 8.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 39 | 1 | 39 | 39 | 0.971429 | 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 |
1afc733c61b47d64fb9b889e0dcf6380092c352a | 3,801 | py | Python | test/tests.py | oliverbestmann/go-websocket-publish | 732a846ecada27bdb282a191add2fd7ebf691660 | [
"Apache-2.0"
] | null | null | null | test/tests.py | oliverbestmann/go-websocket-publish | 732a846ecada27bdb282a191add2fd7ebf691660 | [
"Apache-2.0"
] | null | null | null | test/tests.py | oliverbestmann/go-websocket-publish | 732a846ecada27bdb282a191add2fd7ebf691660 | [
"Apache-2.0"
] | null | null | null | from contextlib import closing
import pytest
from helpers import *
def test_404_if_stream_does_not_exists():
with pytest.raises(websocket.WebSocketBadStatusException) as err:
client_ws("/streams/" + random_stream())
assert err.value.status_code == 404
def test_401_if_stream_exists_and_invalid_tok... | 31.413223 | 79 | 0.690345 | 481 | 3,801 | 5.191268 | 0.176715 | 0.129756 | 0.1666 | 0.122547 | 0.807369 | 0.795755 | 0.752503 | 0.718062 | 0.700841 | 0.669604 | 0 | 0.009747 | 0.190213 | 3,801 | 120 | 80 | 31.675 | 0.801494 | 0.016575 | 0 | 0.623377 | 0 | 0 | 0.097483 | 0 | 0 | 0 | 0 | 0 | 0.116883 | 1 | 0.116883 | false | 0 | 0.038961 | 0 | 0.155844 | 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 |
1afdccad79fe6909227eb589b04b1934034b872e | 5,395 | py | Python | tests/rulesets/sample_rules2.py | wandsdn/ofsolver | 64795a84220416b1a2e4df13198c6529995b7f53 | [
"Apache-2.0"
] | 1 | 2020-04-10T07:22:19.000Z | 2020-04-10T07:22:19.000Z | tests/rulesets/sample_rules2.py | wandsdn/ofsolver | 64795a84220416b1a2e4df13198c6529995b7f53 | [
"Apache-2.0"
] | null | null | null | tests/rulesets/sample_rules2.py | wandsdn/ofsolver | 64795a84220416b1a2e4df13198c6529995b7f53 | [
"Apache-2.0"
] | null | null | null | from ryu.ofproto import ofproto_v1_3
from ryu.ofproto import ofproto_v1_3_parser as parser
import pickle
"""
Make the rules for a simple L2 L3 pipeline
+----------+ +------------+
| ETH, IP | ---> | TCP filter |
| etc | +------------+
+----------+
The opposite of sample.
"""
flow... | 29.162162 | 78 | 0.526784 | 478 | 5,395 | 5.757322 | 0.144351 | 0.011628 | 0.047238 | 0.118096 | 0.919695 | 0.919695 | 0.883358 | 0.861555 | 0.861555 | 0.861555 | 0 | 0.060322 | 0.367006 | 5,395 | 184 | 79 | 29.320652 | 0.745534 | 0.006117 | 0 | 0.680723 | 0 | 0 | 0.017084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018072 | 0 | 0.018072 | 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 |
21028940b0afa66b49e435da6af260851f8deee0 | 104 | py | Python | bitmovin_api_sdk/encoding/configurations/video/h264/customdata/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 11 | 2019-07-03T10:41:16.000Z | 2022-02-25T21:48:06.000Z | bitmovin_api_sdk/encoding/configurations/video/h264/customdata/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 8 | 2019-11-23T00:01:25.000Z | 2021-04-29T12:30:31.000Z | bitmovin_api_sdk/encoding/configurations/video/h264/customdata/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 13 | 2020-01-02T14:58:18.000Z | 2022-03-26T12:10:30.000Z | from bitmovin_api_sdk.encoding.configurations.video.h264.customdata.customdata_api import CustomdataApi
| 52 | 103 | 0.903846 | 13 | 104 | 7 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03 | 0.038462 | 104 | 1 | 104 | 104 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
212fa6ccfa33185011b70c2e143b04ac594b0d69 | 17,606 | py | Python | resilient-sdk/tests/unit/test_util/test_sdk_validate_helpers.py | ibmresilient/resilient-python-api | 85e0ff684a88f744645c0ace414f51d769bcc3c2 | [
"MIT"
] | 28 | 2017-12-22T00:26:59.000Z | 2022-01-22T14:51:33.000Z | resilient-sdk/tests/unit/test_util/test_sdk_validate_helpers.py | ibmresilient/resilient-python-api | 85e0ff684a88f744645c0ace414f51d769bcc3c2 | [
"MIT"
] | 18 | 2018-03-06T19:04:20.000Z | 2022-03-21T15:06:30.000Z | resilient-sdk/tests/unit/test_util/test_sdk_validate_helpers.py | ibmresilient/resilient-python-api | 85e0ff684a88f744645c0ace414f51d769bcc3c2 | [
"MIT"
] | 28 | 2018-05-01T17:53:22.000Z | 2022-03-28T09:56:59.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# (c) Copyright IBM Corp. 2010, 2020. All Rights Reserved.
import difflib
import os
import mock
import pkg_resources
from mock import patch
from resilient_sdk.util import (constants, sdk_validate_configs,
sdk_validate_helpers)
from resilien... | 43.364532 | 133 | 0.762808 | 2,404 | 17,606 | 5.205907 | 0.096506 | 0.055374 | 0.035158 | 0.073831 | 0.847143 | 0.820455 | 0.807671 | 0.787535 | 0.782022 | 0.775469 | 0 | 0.008319 | 0.160229 | 17,606 | 405 | 134 | 43.471605 | 0.838147 | 0.089913 | 0 | 0.683794 | 0 | 0.003953 | 0.129254 | 0.084397 | 0 | 0 | 0 | 0 | 0.300395 | 1 | 0.090909 | false | 0.023715 | 0.047431 | 0 | 0.13834 | 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 |
2131f682432961f4af8d6e4951530e1de5893320 | 94 | py | Python | src/fecc_tokens/EOF.py | castor91/fecc | bc46059c0d7a428d15b95050b70dec374b4bea28 | [
"MIT"
] | 1 | 2018-02-04T14:48:15.000Z | 2018-02-04T14:48:15.000Z | src/fecc_tokens/EOF.py | castor91/fecc | bc46059c0d7a428d15b95050b70dec374b4bea28 | [
"MIT"
] | null | null | null | src/fecc_tokens/EOF.py | castor91/fecc | bc46059c0d7a428d15b95050b70dec374b4bea28 | [
"MIT"
] | null | null | null | class EOF:
def __init__(self):
pass
def __str__(self):
return 'EOF'
| 11.75 | 23 | 0.531915 | 11 | 94 | 3.818182 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.37234 | 94 | 7 | 24 | 13.428571 | 0.711864 | 0 | 0 | 0 | 0 | 0 | 0.031915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.2 | 0 | 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 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 6 |
213f6efe9493542e5cda7ce10960c43d0cecc655 | 202 | py | Python | qcodes/data/__init__.py | riju-pal/QCoDeS_riju | 816e76809160e9af457f6ef6d4aca1b0dd5eea82 | [
"MIT"
] | 223 | 2016-10-29T15:00:24.000Z | 2022-03-20T06:53:34.000Z | qcodes/data/__init__.py | M1racleShih/Qcodes | c03029a6968e16379155aadc8b083a02e01876a6 | [
"MIT"
] | 3,406 | 2016-10-25T10:44:50.000Z | 2022-03-31T09:47:35.000Z | qcodes/data/__init__.py | nikhartman/Qcodes | 042c5e25ab9e40b20c316b4055c4842844834d1e | [
"MIT"
] | 263 | 2016-10-25T11:35:36.000Z | 2022-03-31T08:53:20.000Z | from .location import FormatLocation
from .data_array import DataArray
from .format import Formatter
from .gnuplot_format import GNUPlotFormat
from .hdf5_format import HDF5Format
from .io import DiskIO
| 28.857143 | 41 | 0.851485 | 27 | 202 | 6.259259 | 0.555556 | 0.213018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.118812 | 202 | 6 | 42 | 33.666667 | 0.938202 | 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 |
215c473bf0e4a5fcef245f175717a9e4ebb6edcf | 197 | py | Python | backend/backend/main.py | ABitMoreDepth/dnsmasq-viewer | 841f352d4b11ec218f0cb6a943e1fb4311599d17 | [
"MIT"
] | null | null | null | backend/backend/main.py | ABitMoreDepth/dnsmasq-viewer | 841f352d4b11ec218f0cb6a943e1fb4311599d17 | [
"MIT"
] | 2 | 2019-10-23T23:01:34.000Z | 2021-06-01T22:42:51.000Z | backend/backend/main.py | ABitMoreDepth/dnsmasq-viewer | 841f352d4b11ec218f0cb6a943e1fb4311599d17 | [
"MIT"
] | null | null | null | '''
Entrypoints for the backend API Server.
'''
from backend.api.api import APP
def main():
''' Default entrypoint for the backend server.
'''
APP.serve('0.0.0.0', 5000, debug=True)
| 16.416667 | 50 | 0.64467 | 29 | 197 | 4.37931 | 0.62069 | 0.047244 | 0.204724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050955 | 0.203046 | 197 | 11 | 51 | 17.909091 | 0.757962 | 0.441624 | 0 | 0 | 0 | 0 | 0.072917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 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.