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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bd08982bcc4692244ff83ef046ae6dc82c4489af | 35,642 | py | Python | spark_fhir_schemas/stu3/complex_types/medicationrequest.py | icanbwell/SparkFhirSchemas | 8c828313c39850b65f8676e67f526ee92b7d624e | [
"Apache-2.0"
] | 2 | 2020-10-31T23:25:01.000Z | 2021-06-09T14:12:42.000Z | spark_fhir_schemas/stu3/complex_types/medicationrequest.py | icanbwell/SparkFhirSchemas | 8c828313c39850b65f8676e67f526ee92b7d624e | [
"Apache-2.0"
] | null | null | null | spark_fhir_schemas/stu3/complex_types/medicationrequest.py | icanbwell/SparkFhirSchemas | 8c828313c39850b65f8676e67f526ee92b7d624e | [
"Apache-2.0"
] | null | null | null | from typing import Union, List, Optional
from pyspark.sql.types import StructType, StructField, StringType, ArrayType, DataType
# This file is auto-generated by generate_schema so do not edit manually
# noinspection PyPep8Naming
class MedicationRequestSchema:
"""
An order or request for both supply of the me... | 52.108187 | 111 | 0.558078 | 3,351 | 35,642 | 5.735303 | 0.13011 | 0.06556 | 0.041365 | 0.062438 | 0.853895 | 0.846662 | 0.846662 | 0.82741 | 0.819137 | 0.809928 | 0 | 0.002636 | 0.403962 | 35,642 | 683 | 112 | 52.18448 | 0.902043 | 0.340722 | 0 | 0.732143 | 1 | 0 | 0.024453 | 0.002034 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002232 | false | 0 | 0.03125 | 0 | 0.040179 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
9526539c5b7d7479924cdfd05109651ccbaa5924 | 11,103 | py | Python | localedb/mockup.py | cuker/django-localedb | e6ff25af28301fc6c4f1a99a6681d2bba2ed35dc | [
"BSD-3-Clause"
] | 2 | 2015-05-18T13:49:30.000Z | 2015-05-18T14:37:26.000Z | localedb/mockup.py | cuker/django-localedb | e6ff25af28301fc6c4f1a99a6681d2bba2ed35dc | [
"BSD-3-Clause"
] | null | null | null | localedb/mockup.py | cuker/django-localedb | e6ff25af28301fc6c4f1a99a6681d2bba2ed35dc | [
"BSD-3-Clause"
] | null | null | null | CURRENCY_DATA = {
('de_DE.UTF-8', -57.049999999999997, True, True, True): u'-EUR 57,05',
('de_DE.UTF-8', -57.000050000000002, False, False, False): u'-57,00',
('de_DE.UTF-8', -57.000050000000002, True, False, False): u'-Eu57,00',
('de_DE.UTF-8', -57.000050000000002, True, False, True): u'-EUR 57,00',
('de_DE.UTF-8... | 58.13089 | 99 | 0.598577 | 1,903 | 11,103 | 3.40515 | 0.060431 | 0.088889 | 0.112037 | 0.142593 | 0.88071 | 0.834259 | 0.808179 | 0.734259 | 0.607716 | 0.341204 | 0 | 0.249322 | 0.169504 | 11,103 | 190 | 100 | 58.436842 | 0.453422 | 0 | 0 | 0 | 0 | 0 | 0.273194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.01087 | null | null | 0.016304 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1f00826f57b68e1d97cf3b41af887a773f02c6a7 | 169 | py | Python | DEODR/pytorch/__init__.py | Vozf/DEODR | e56cacffa4026170a6a0df01103de537e66e2111 | [
"BSD-2-Clause"
] | 1 | 2021-04-02T16:48:44.000Z | 2021-04-02T16:48:44.000Z | DEODR/pytorch/__init__.py | Vozf/DEODR | e56cacffa4026170a6a0df01103de537e66e2111 | [
"BSD-2-Clause"
] | null | null | null | DEODR/pytorch/__init__.py | Vozf/DEODR | e56cacffa4026170a6a0df01103de537e66e2111 | [
"BSD-2-Clause"
] | null | null | null | from .triangulated_mesh_pytorch import *
from .differentiable_renderer_pytorch import *
from .laplacian_rigid_energy_pytorch import *
from .mesh_fitter_pytorch import *
| 33.8 | 46 | 0.857988 | 21 | 169 | 6.47619 | 0.52381 | 0.382353 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094675 | 169 | 4 | 47 | 42.25 | 0.888889 | 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 | 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 | 7 |
2f0f47daa8f0c22ca30b503a5cbec1db19d1c8a6 | 183,158 | py | Python | tutorial.py | mooneyse/deep-fields-scripts | b0d9a5e8051742a1ebbbafd0e966043d1f74ff18 | [
"MIT"
] | null | null | null | tutorial.py | mooneyse/deep-fields-scripts | b0d9a5e8051742a1ebbbafd0e966043d1f74ff18 | [
"MIT"
] | null | null | null | tutorial.py | mooneyse/deep-fields-scripts | b0d9a5e8051742a1ebbbafd0e966043d1f74ff18 | [
"MIT"
] | null | null | null | {
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Blazars at low frequencies"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"* The bulk velocity is $ v $.\n",
"* The bulk Lorentz factor is $$ \\gamma = \\frac{1}{\\sqrt{1 - \\beta^{2}}} $$ where ... | 452.241975 | 91,224 | 0.935329 | 6,622 | 183,158 | 25.845666 | 0.757475 | 0.000421 | 0.000561 | 0.000982 | 0.010634 | 0.006871 | 0.005784 | 0.00541 | 0.003985 | 0.003436 | 0 | 0.146756 | 0.019666 | 183,158 | 404 | 91,225 | 453.361386 | 0.806428 | 0 | 0 | 0.331683 | 0 | 0.094059 | 0.981448 | 0.929574 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.019802 | 0 | 0.019802 | 0.007426 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2f1f5b6cf2e43a8d5da9acbfbbe00753b977d75b | 14,347 | py | Python | DFL168A/GPS.py | Dafulai/DFL168A_python | 95825a27f2c145afbd02c207c3d622d6a77ceff2 | [
"MIT"
] | null | null | null | DFL168A/GPS.py | Dafulai/DFL168A_python | 95825a27f2c145afbd02c207c3d622d6a77ceff2 | [
"MIT"
] | null | null | null | DFL168A/GPS.py | Dafulai/DFL168A_python | 95825a27f2c145afbd02c207c3d622d6a77ceff2 | [
"MIT"
] | null | null | null | import time
import DFL168A
def getGPSinfo():
Latitude=0.0
Longitude=0.0
Speed=0.0
Time='' #format:hh:mm::ss
Date='' #format:dd/mm/yyyy
DFL168A.Ser4DFL168A.timeout=DFL168A.GPSTimeOut+0.05
if not DFL168A.ATCommand('ATDEV1SIGBSOF1'):
DFL168A.Ser4DFL168A.timeout=DFL168A.TimeOut... | 41.706395 | 71 | 0.574963 | 1,729 | 14,347 | 4.736264 | 0.053788 | 0.032238 | 0.073269 | 0.070338 | 0.94859 | 0.944926 | 0.938454 | 0.938454 | 0.934791 | 0.922091 | 0 | 0.081645 | 0.305081 | 14,347 | 344 | 72 | 41.706395 | 0.739719 | 0.127762 | 0 | 0.903654 | 0 | 0 | 0.055271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006645 | false | 0 | 0.006645 | 0 | 0.146179 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
c8408dd90c203ca0eac052d0508313b61347e486 | 312 | py | Python | temboo/core/Library/Zendesk/ActivityStream/__init__.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 7 | 2016-03-07T02:07:21.000Z | 2022-01-21T02:22:41.000Z | temboo/core/Library/Zendesk/ActivityStream/__init__.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | null | null | null | temboo/core/Library/Zendesk/ActivityStream/__init__.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 8 | 2016-06-14T06:01:11.000Z | 2020-04-22T09:21:44.000Z | from temboo.Library.Zendesk.ActivityStream.ListActivity import ListActivity, ListActivityInputSet, ListActivityResultSet, ListActivityChoreographyExecution
from temboo.Library.Zendesk.ActivityStream.ShowActivity import ShowActivity, ShowActivityInputSet, ShowActivityResultSet, ShowActivityChoreographyExecution
| 104 | 155 | 0.910256 | 22 | 312 | 12.909091 | 0.636364 | 0.070423 | 0.119718 | 0.169014 | 0.267606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044872 | 312 | 2 | 156 | 156 | 0.95302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 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 | 8 |
c0f26e58fa607e08fa839330c5c47ae27aa35c47 | 191 | py | Python | utils/ops/__init__.py | lartpang/ZoomNet | 1f329e80db5469eaf6a513ec384cd19bafdaece2 | [
"MIT"
] | 37 | 2022-03-05T09:19:35.000Z | 2022-03-30T02:16:50.000Z | utils/ops/__init__.py | lartpang/ZoomNet | 1f329e80db5469eaf6a513ec384cd19bafdaece2 | [
"MIT"
] | 1 | 2022-03-29T18:36:49.000Z | 2022-03-30T04:18:48.000Z | utils/ops/__init__.py | lartpang/ZoomNet | 1f329e80db5469eaf6a513ec384cd19bafdaece2 | [
"MIT"
] | 4 | 2022-03-08T04:37:04.000Z | 2022-03-22T22:49:43.000Z | # -*- coding: utf-8 -*-
# @Time : 2020/12/19
# @Author : Lart Pang
# @GitHub : https://github.com/lartpang
from .array_ops import *
from .module_ops import *
from .tensor_ops import *
| 19.1 | 40 | 0.643979 | 27 | 191 | 4.444444 | 0.740741 | 0.225 | 0.216667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058442 | 0.193717 | 191 | 9 | 41 | 21.222222 | 0.720779 | 0.539267 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
8d0bb463c7bfe9d872037bc427f47b9db4ed8a8f | 118 | py | Python | mystique/clients/ResNet50.py | EduardaChagas/Cybersecurity-FL | 52db1a31e71e021f2ce57231a27341c4c080ad3b | [
"MIT"
] | 4 | 2021-07-14T08:45:13.000Z | 2021-08-24T15:36:51.000Z | mystique/clients/ResNet50.py | EduardaChagas/Cybersecurity-FL | 52db1a31e71e021f2ce57231a27341c4c080ad3b | [
"MIT"
] | null | null | null | mystique/clients/ResNet50.py | EduardaChagas/Cybersecurity-FL | 52db1a31e71e021f2ce57231a27341c4c080ad3b | [
"MIT"
] | 3 | 2021-07-22T08:24:13.000Z | 2021-12-08T09:20:39.000Z | from resnet import ResNetSplit, BasicBlock
def ResNetSplitClient():
return ResNetSplit(BasicBlock, [3, 4, 6, 3])
| 23.6 | 48 | 0.745763 | 14 | 118 | 6.285714 | 0.785714 | 0.477273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.152542 | 118 | 4 | 49 | 29.5 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0.333333 | 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 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 8 |
2384a1d0ad530bc56c04e6993f0c4b1eb5d39648 | 8,210 | py | Python | fuzzy_system/obstacle_avoidance_controller.py | mohameddhameem/fuzzy-robot | f5fee20edca4395a161d6a4973c19349d5082078 | [
"MIT"
] | null | null | null | fuzzy_system/obstacle_avoidance_controller.py | mohameddhameem/fuzzy-robot | f5fee20edca4395a161d6a4973c19349d5082078 | [
"MIT"
] | null | null | null | fuzzy_system/obstacle_avoidance_controller.py | mohameddhameem/fuzzy-robot | f5fee20edca4395a161d6a4973c19349d5082078 | [
"MIT"
] | null | null | null | import skfuzzy.control as ctrl
from fuzzy_system.moo_fuzzy_controller import MooFuzzyController
class ObstacleAvoidanceController(MooFuzzyController):
def validate(self, values):
t = 1.5
temp = super().validate(values)
temp2 = (values["input_dl"] <= t or values["input_df"] <= t or values... | 74.636364 | 107 | 0.540804 | 1,295 | 8,210 | 3.208494 | 0.040927 | 0.45704 | 0.173285 | 0.257762 | 0.918652 | 0.918652 | 0.918652 | 0.918412 | 0.918412 | 0.916005 | 0 | 0.00063 | 0.226553 | 8,210 | 109 | 108 | 75.321101 | 0.653701 | 0.075883 | 0 | 0.410526 | 0 | 0 | 0.04579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031579 | false | 0 | 0.021053 | 0.021053 | 0.094737 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 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 | 8 |
23af4f21c373ca60f73f18d41939acf5700217a3 | 745 | py | Python | steps/step40.py | choiking10/mytorch | 67140b608b14e2ec6ecca1638705af91d2d71b6b | [
"MIT"
] | null | null | null | steps/step40.py | choiking10/mytorch | 67140b608b14e2ec6ecca1638705af91d2d71b6b | [
"MIT"
] | null | null | null | steps/step40.py | choiking10/mytorch | 67140b608b14e2ec6ecca1638705af91d2d71b6b | [
"MIT"
] | null | null | null | import numpy as np
from mytorch import as_variable
def ex1():
x0 = as_variable(np.array([1, 2, 3]))
x1 = as_variable(np.array([10]))
y = x0 + x1
y.backward()
print(y)
print(x0.grad, x1.grad)
def ex2():
x0 = as_variable(np.array([1, 2, 3]))
x1 = as_variable(np.array([10]))
y = x... | 15.204082 | 41 | 0.546309 | 125 | 745 | 3.184 | 0.184 | 0.226131 | 0.241206 | 0.341709 | 0.826633 | 0.826633 | 0.826633 | 0.826633 | 0.826633 | 0.826633 | 0 | 0.095064 | 0.265772 | 745 | 48 | 42 | 15.520833 | 0.632541 | 0 | 0 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.176471 | 0.235294 | 0 | 0 | 0 | null | 1 | 1 | 1 | 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 | 9 |
23b7e1e330d3b3f64f9e82b209d7b9cf3e8d1193 | 997 | py | Python | tests/arn_test.py | VynOpenSource/boto-assume-role-with-mfa | ca1c09a51c8d0ba809a1e034ce1e1ed867c8ee0a | [
"MIT"
] | null | null | null | tests/arn_test.py | VynOpenSource/boto-assume-role-with-mfa | ca1c09a51c8d0ba809a1e034ce1e1ed867c8ee0a | [
"MIT"
] | null | null | null | tests/arn_test.py | VynOpenSource/boto-assume-role-with-mfa | ca1c09a51c8d0ba809a1e034ce1e1ed867c8ee0a | [
"MIT"
] | null | null | null | import unittest
from boto_assume_role_with_mfa.arn import ARN
class ARNTest(unittest.TestCase):
def test_admin_role_arn(self):
role_arn = ARN("arn:aws:iam::123456789012:role/administrator")
self.assertEqual(role_arn.account, "123456789012")
self.assertEqual(role_arn.resource_type, "role"... | 39.88 | 79 | 0.726179 | 127 | 997 | 5.464567 | 0.228346 | 0.151297 | 0.246398 | 0.285303 | 0.806916 | 0.755043 | 0.755043 | 0.755043 | 0.755043 | 0.698847 | 0 | 0.085511 | 0.155466 | 997 | 24 | 80 | 41.541667 | 0.738717 | 0 | 0 | 0.444444 | 0 | 0 | 0.255767 | 0.194584 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.166667 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
23f8d89aed42a8da83c5cd22a0131f06139e0cb5 | 10,571 | py | Python | indico/modules/events/registration/privacy_test.py | pedroo21/indico | 41b33b6ba82e4fb1f70844b19c79b5dce0d4173d | [
"MIT"
] | null | null | null | indico/modules/events/registration/privacy_test.py | pedroo21/indico | 41b33b6ba82e4fb1f70844b19c79b5dce0d4173d | [
"MIT"
] | null | null | null | indico/modules/events/registration/privacy_test.py | pedroo21/indico | 41b33b6ba82e4fb1f70844b19c79b5dce0d4173d | [
"MIT"
] | null | null | null | # This file is part of Indico.
# Copyright (C) 2002 - 2022 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from datetime import datetime, timedelta
import pytest
from pytz import utc
from indico.modules.events.f... | 49.629108 | 119 | 0.81506 | 1,093 | 10,571 | 7.587374 | 0.10064 | 0.092608 | 0.109972 | 0.232365 | 0.889304 | 0.879658 | 0.864223 | 0.864223 | 0.855541 | 0.846859 | 0 | 0.004428 | 0.124113 | 10,571 | 212 | 120 | 49.863208 | 0.891241 | 0.01892 | 0 | 0.818713 | 0 | 0 | 0.011 | 0.004921 | 0 | 0 | 0 | 0 | 0.479532 | 1 | 0.02924 | false | 0 | 0.02924 | 0.005848 | 0.064327 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
f1b905541f950fe2b35d1038963b33b475fd7133 | 49 | py | Python | turnout_election_schemes/schemes/singletransferablevote/__init__.py | devfort/turnout-election-schemes | d9097f6f6241ebc8f5b17b03f09d2bc34189f2cc | [
"MIT"
] | null | null | null | turnout_election_schemes/schemes/singletransferablevote/__init__.py | devfort/turnout-election-schemes | d9097f6f6241ebc8f5b17b03f09d2bc34189f2cc | [
"MIT"
] | null | null | null | turnout_election_schemes/schemes/singletransferablevote/__init__.py | devfort/turnout-election-schemes | d9097f6f6241ebc8f5b17b03f09d2bc34189f2cc | [
"MIT"
] | null | null | null | from .scheme import SingleTransferableVoteScheme
| 24.5 | 48 | 0.897959 | 4 | 49 | 11 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 49 | 1 | 49 | 49 | 0.977778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
f1f1008e566381e6540880fd6256ee3a8500e1be | 3,551 | py | Python | CGS/gnn/CGS/get_model.py | Junyoungpark/CGS | a0230d9898f13d1456f8d706b97a93d814b51e64 | [
"MIT"
] | 24 | 2021-06-05T05:01:23.000Z | 2022-03-19T20:03:29.000Z | CGS/gnn/CGS/get_model.py | Junyoungpark/CGS | a0230d9898f13d1456f8d706b97a93d814b51e64 | [
"MIT"
] | null | null | null | CGS/gnn/CGS/get_model.py | Junyoungpark/CGS | a0230d9898f13d1456f8d706b97a93d814b51e64 | [
"MIT"
] | 2 | 2021-06-18T05:45:53.000Z | 2022-03-04T10:34:05.000Z | from CGS.gnn.CGS.CGS import CGS, GraphTaskCGS
from CGS.nn.MLP import MLP
from CGS.nn.MPNN import AttnMPNN
from CGS.utils.gnn_utils import BasicReadout
def get_model(num_heads: int,
gamma: float,
num_hidden_gn: int,
nf_dim: int,
ef_dim: int,
sol_dim... | 36.234694 | 62 | 0.489158 | 384 | 3,551 | 4.132813 | 0.15625 | 0.126024 | 0.065532 | 0.035287 | 0.849401 | 0.849401 | 0.849401 | 0.849401 | 0.849401 | 0.849401 | 0 | 0.01203 | 0.438186 | 3,551 | 97 | 63 | 36.608247 | 0.783459 | 0 | 0 | 0.870588 | 0 | 0 | 0.032385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023529 | false | 0 | 0.047059 | 0 | 0.094118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
f1f6a340705c6da30c1a4b06505fc42604947a48 | 92 | py | Python | parameters_8080.py | chitohugo/MassiveSMS | 05b528de146498531c967aff1ee4fe72720febb3 | [
"BSD-3-Clause"
] | null | null | null | parameters_8080.py | chitohugo/MassiveSMS | 05b528de146498531c967aff1ee4fe72720febb3 | [
"BSD-3-Clause"
] | null | null | null | parameters_8080.py | chitohugo/MassiveSMS | 05b528de146498531c967aff1ee4fe72720febb3 | [
"BSD-3-Clause"
] | null | null | null | password="pbkdf2(1000,20,sha512)$860470d7e88047b1$c6fe79dcbdbe05a26715d6a19c43190bc4949ee9"
| 46 | 91 | 0.891304 | 7 | 92 | 11.714286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.505495 | 0.01087 | 92 | 1 | 92 | 92 | 0.395604 | 0 | 0 | 0 | 0 | 0 | 0.869565 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
9e2bf575e425898e4d900a95504876cf339d4a74 | 6,934 | py | Python | meiduo_mall/apps/oauth/views.py | joinik/meiduo_mall | 08da8e789941ee0bb4d9cd658c4faaa4f9f0f67a | [
"MIT"
] | null | null | null | meiduo_mall/apps/oauth/views.py | joinik/meiduo_mall | 08da8e789941ee0bb4d9cd658c4faaa4f9f0f67a | [
"MIT"
] | null | null | null | meiduo_mall/apps/oauth/views.py | joinik/meiduo_mall | 08da8e789941ee0bb4d9cd658c4faaa4f9f0f67a | [
"MIT"
] | null | null | null | import json
from django.contrib.auth import login
from django.http import JsonResponse
from django.shortcuts import render
# Create your views here.
from django.views import View
from QQLoginTool.QQtool import OAuthQQ
from apps.oauth.models import OAuthQQUser
from apps.oauth.utils import generate_access_token, check... | 31.09417 | 94 | 0.588261 | 749 | 6,934 | 5.325768 | 0.214953 | 0.052143 | 0.049637 | 0.027074 | 0.807972 | 0.801705 | 0.801705 | 0.801705 | 0.801705 | 0.801705 | 0 | 0.009971 | 0.30574 | 6,934 | 223 | 95 | 31.09417 | 0.818654 | 0.190943 | 0 | 0.734513 | 0 | 0 | 0.067304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053097 | false | 0.035398 | 0.097345 | 0 | 0.274336 | 0.123894 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
c87230b597aa54b7d6f8a90ea3d55663f3298692 | 3,877 | py | Python | tests/dataset/distribution/test_buyer_repetition.py | open-contracting/pelican-backend | dee9afb48f7485f94544bcfbb977558d638098cd | [
"BSD-3-Clause"
] | 1 | 2021-07-21T15:23:22.000Z | 2021-07-21T15:23:22.000Z | tests/dataset/distribution/test_buyer_repetition.py | open-contracting/pelican-backend | dee9afb48f7485f94544bcfbb977558d638098cd | [
"BSD-3-Clause"
] | 40 | 2021-06-29T23:53:14.000Z | 2022-02-23T20:14:11.000Z | tests/dataset/distribution/test_buyer_repetition.py | open-contracting/pelican-backend | dee9afb48f7485f94544bcfbb977558d638098cd | [
"BSD-3-Clause"
] | null | null | null | from dataset.distribution import buyer_repetition
from tests import is_subset_dict
item_unset = {"ocid": "0"}
def test_undefined():
scope = {}
result = buyer_repetition.get_result(scope)
assert result["result"] is None
assert result["value"] is None
assert result["meta"] == {"reason": "no data it... | 32.855932 | 119 | 0.598917 | 490 | 3,877 | 4.559184 | 0.146939 | 0.085944 | 0.112802 | 0.128917 | 0.823635 | 0.823635 | 0.823635 | 0.80752 | 0.784244 | 0.751119 | 0 | 0.043261 | 0.224916 | 3,877 | 117 | 120 | 33.136752 | 0.700166 | 0 | 0 | 0.537634 | 0 | 0 | 0.217694 | 0.02373 | 0 | 0 | 0 | 0 | 0.193548 | 1 | 0.032258 | false | 0.096774 | 0.021505 | 0 | 0.053763 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
c8a7f62881b8f22972c3d7d6a87b23386afc9ad7 | 41,413 | py | Python | inst/python/rfmt/rparsetab.py | sorawee/rfmt | 640525ce57843c61598310adcd428a0dfe214d66 | [
"Apache-2.0"
] | 91 | 2015-08-08T09:08:37.000Z | 2022-03-22T08:23:02.000Z | inst/python/rfmt/rparsetab.py | sorawee/rfmt | 640525ce57843c61598310adcd428a0dfe214d66 | [
"Apache-2.0"
] | 3 | 2016-05-27T12:45:53.000Z | 2022-03-21T08:37:09.000Z | inst/python/rfmt/rparsetab.py | sorawee/rfmt | 640525ce57843c61598310adcd428a0dfe214d66 | [
"Apache-2.0"
] | 23 | 2015-08-07T05:05:43.000Z | 2022-03-21T08:31:33.000Z | # Copyright 2015 Google 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 by applicable la... | 360.113043 | 22,555 | 0.688093 | 9,720 | 41,413 | 2.87644 | 0.039609 | 0.051504 | 0.056654 | 0.082406 | 0.836833 | 0.82528 | 0.812762 | 0.791373 | 0.786938 | 0.778855 | 0 | 0.359729 | 0.017482 | 41,413 | 114 | 22,556 | 363.27193 | 0.32741 | 0.015478 | 0 | 0.021739 | 0 | 0.793478 | 0.380346 | 0.3033 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
c8ffd1f79e349e6d54543dfdcd1d8eaf2b658efd | 5,390 | py | Python | csdmpy/numpy_wrapper/apodize.py | deepanshs/csdmpy | bd4e138b10694491113b10177a89305697f1752c | [
"BSD-3-Clause"
] | 7 | 2021-07-07T09:55:20.000Z | 2022-01-22T06:34:17.000Z | csdmpy/numpy_wrapper/apodize.py | deepanshs/csdmpy | bd4e138b10694491113b10177a89305697f1752c | [
"BSD-3-Clause"
] | 16 | 2021-06-09T06:28:27.000Z | 2022-03-01T18:12:33.000Z | csdmpy/numpy_wrapper/apodize.py | deepanshs/csdmpy | bd4e138b10694491113b10177a89305697f1752c | [
"BSD-3-Clause"
] | 1 | 2020-01-03T17:04:16.000Z | 2020-01-03T17:04:16.000Z | # -*- coding: utf-8 -*-
"""
A wrapper to the Numpy functions used to apodize the components along a given
dimension. If :math:`x` is the coordinates along the dimension, the apodization
function follows,
.. math::
y = function(a x),
where :math:`a` is the argument of the function. The dimensionality of :math... | 39.057971 | 86 | 0.660668 | 744 | 5,390 | 4.716398 | 0.114247 | 0.082645 | 0.043887 | 0.056996 | 0.834711 | 0.834711 | 0.825591 | 0.825591 | 0.825591 | 0.825591 | 0 | 0.001996 | 0.256401 | 5,390 | 137 | 87 | 39.343066 | 0.873503 | 0.748794 | 0 | 0 | 0 | 0 | 0.029326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0 | 0.083333 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 8 |
a8108bd1add60b7a125bf076c43fee0116201b91 | 4,045 | py | Python | backend/apps/info/migrations/0001_initial.py | offurface/logistic-company | 1e98b1191fd9ee63fbd9d6c2eef1354822e53d14 | [
"MIT"
] | null | null | null | backend/apps/info/migrations/0001_initial.py | offurface/logistic-company | 1e98b1191fd9ee63fbd9d6c2eef1354822e53d14 | [
"MIT"
] | null | null | null | backend/apps/info/migrations/0001_initial.py | offurface/logistic-company | 1e98b1191fd9ee63fbd9d6c2eef1354822e53d14 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.8 on 2019-12-18 10:06
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Client',
fields=[
('id', models.AutoField(a... | 44.944444 | 114 | 0.569098 | 393 | 4,045 | 5.679389 | 0.198473 | 0.123208 | 0.137097 | 0.182796 | 0.811828 | 0.787634 | 0.787634 | 0.787634 | 0.759857 | 0.759857 | 0 | 0.02773 | 0.286774 | 4,045 | 89 | 115 | 45.449438 | 0.745927 | 0.011125 | 0 | 0.670732 | 1 | 0 | 0.102801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.012195 | 0 | 0.060976 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
b52f46274cff46186a06e9a4674792f8a7cc75ad | 100 | py | Python | QuickDemos/random_number_module_demo.py | owenbres01/CMPT-120L-910-20F | c9840f5316688f023b7cca555ffc97ccb429aae8 | [
"MIT"
] | 1 | 2020-08-25T23:50:45.000Z | 2020-08-25T23:50:45.000Z | QuickDemos/random_number_module_demo.py | owenbres01/CMPT-120L-910-20F | c9840f5316688f023b7cca555ffc97ccb429aae8 | [
"MIT"
] | 1 | 2020-09-18T01:20:58.000Z | 2020-09-18T01:20:58.000Z | QuickDemos/random_number_module_demo.py | owenbres01/CMPT-120L-910-20F | c9840f5316688f023b7cca555ffc97ccb429aae8 | [
"MIT"
] | 21 | 2020-08-25T03:52:56.000Z | 2020-09-09T01:32:45.000Z | import random_number
print(random_number.random_number10())
print(random_number.random_number100()) | 25 | 39 | 0.86 | 13 | 100 | 6.230769 | 0.461538 | 0.444444 | 0.419753 | 0.567901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052083 | 0.04 | 100 | 4 | 39 | 25 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.666667 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 8 |
b533dcf7ef9d00467cf6498c3c38aea923c35a9c | 5,488 | py | Python | test.py | alsugiharto/auto-meetup-rsvp | 59c393c0caec556d3fe357117e616e0e947a3a04 | [
"MIT"
] | null | null | null | test.py | alsugiharto/auto-meetup-rsvp | 59c393c0caec556d3fe357117e616e0e947a3a04 | [
"MIT"
] | null | null | null | test.py | alsugiharto/auto-meetup-rsvp | 59c393c0caec556d3fe357117e616e0e947a3a04 | [
"MIT"
] | 2 | 2021-03-12T14:39:28.000Z | 2022-03-11T03:11:04.000Z | import unittest
import time
import auto_meetup_rsvp_bot
# Test variables
# You need to find several meetup groups with the following criteria
GROUP_NAME_NO_EVENT = ""
GROUP_NAME_MULTI_EVENTS = ""
GROUP_NAME_ONE_AVAILABLE = ""
GROUP_NAME_ONE_CANNOT_GO = ""
GROUP_NAME_ONE_ALREADY_RSVP = ""
# difficult to find a group wi... | 34.955414 | 75 | 0.703717 | 727 | 5,488 | 4.850069 | 0.115543 | 0.130459 | 0.182643 | 0.221781 | 0.805729 | 0.767158 | 0.750142 | 0.750142 | 0.750142 | 0.750142 | 0 | 0.008111 | 0.236152 | 5,488 | 156 | 76 | 35.179487 | 0.833015 | 0.186042 | 0 | 0.573171 | 0 | 0 | 0.001813 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 1 | 0.134146 | false | 0 | 0.036585 | 0 | 0.182927 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 8 |
b583170312f4445956849a9776c057ab5e473936 | 223 | py | Python | ToolsNLP/__init__.py | 9en/ToolsNLP | 05bcbfd83857b87fe19fbe561013717589b21171 | [
"MIT"
] | null | null | null | ToolsNLP/__init__.py | 9en/ToolsNLP | 05bcbfd83857b87fe19fbe561013717589b21171 | [
"MIT"
] | 1 | 2019-09-01T02:38:38.000Z | 2019-09-01T06:12:50.000Z | ToolsNLP/__init__.py | 9en/ToolsNLP | 05bcbfd83857b87fe19fbe561013717589b21171 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from ToolsNLP.mecab_wrapper import MecabWrapper
from ToolsNLP.mecab_wrapper import TokenizerSentiment
from ToolsNLP.mecab_wrapper import Tokenizer
from ToolsNLP.topic_model import TopicModelWrapper
| 31.857143 | 53 | 0.843049 | 27 | 223 | 6.814815 | 0.518519 | 0.26087 | 0.277174 | 0.391304 | 0.48913 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004975 | 0.098655 | 223 | 6 | 54 | 37.166667 | 0.910448 | 0.09417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
b5b174cb5fd882e734b5ede1bb127e45a6bd50c7 | 30,124 | py | Python | twitter_api/guest_access_tweepy/guest_access_twitter_flask.py | glciampaglia/infodiversity-mock-social-media | d7b56d236dfd910a1ea760a4d6fb37121eecf565 | [
"MIT"
] | 1 | 2021-01-18T21:18:38.000Z | 2021-01-18T21:18:38.000Z | twitter_api/guest_access_tweepy/guest_access_twitter_flask.py | glciampaglia/infodiversity-mock-social-media | d7b56d236dfd910a1ea760a4d6fb37121eecf565 | [
"MIT"
] | 93 | 2020-12-08T14:37:57.000Z | 2021-10-07T13:32:10.000Z | twitter_api/guest_access_tweepy/guest_access_twitter_flask.py | glciampaglia/infodiversity-mock-social-media | d7b56d236dfd910a1ea760a4d6fb37121eecf565 | [
"MIT"
] | null | null | null | """ Read the credentials from credentials.txt and place them into the `cred` dictionary """
import os
import re
import numpy as np
import datetime
import json
import Cardinfo
import requests
from flask import Flask, render_template, request, url_for, jsonify
from requests_oauthlib import OAuth1Session
from configparser... | 36.163265 | 142 | 0.680653 | 4,208 | 30,124 | 4.615732 | 0.091017 | 0.024713 | 0.041188 | 0.021418 | 0.891881 | 0.8683 | 0.842661 | 0.838542 | 0.837203 | 0.830871 | 0 | 0.012913 | 0.174778 | 30,124 | 833 | 143 | 36.163265 | 0.768414 | 0.151341 | 0 | 0.828986 | 0 | 0 | 0.194156 | 0.009088 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005797 | false | 0 | 0.017391 | 0 | 0.028986 | 0.02029 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
a94e59ac44d1fe3562afde682f2f3a4656f5c95e | 145,260 | py | Python | startup/95-sample-custom.py | tacaswell/profile_collection-1 | aca17c69fd0482901de9d48b1609b3156eb90f17 | [
"BSD-3-Clause"
] | null | null | null | startup/95-sample-custom.py | tacaswell/profile_collection-1 | aca17c69fd0482901de9d48b1609b3156eb90f17 | [
"BSD-3-Clause"
] | 6 | 2017-05-09T15:25:14.000Z | 2021-01-22T21:28:43.000Z | startup/95-sample-custom.py | tacaswell/profile_collection-1 | aca17c69fd0482901de9d48b1609b3156eb90f17 | [
"BSD-3-Clause"
] | 2 | 2018-08-30T18:45:21.000Z | 2021-12-31T02:01:08.000Z | ################################################################################
# Code for customer-made holders and sample stages,
# Samples include :
# 1. SampleTSAXS_Generic : TSAXS/TWAXS
# 2. SampleGISAXS_Generic : GISAXS/GIWAXS
# 3. SampleXR_WAXS : XR and th-2th scan
# 4. SampleCDSAXS_Generic : CD SAXS/GISAXS
#... | 41.538462 | 257 | 0.542689 | 16,837 | 145,260 | 4.506207 | 0.05381 | 0.042071 | 0.011427 | 0.013602 | 0.835919 | 0.817071 | 0.804985 | 0.786137 | 0.774644 | 0.764152 | 0 | 0.030079 | 0.350468 | 145,260 | 3,497 | 258 | 41.538462 | 0.774035 | 0.159053 | 0 | 0.713639 | 0 | 0.000646 | 0.067994 | 0.006097 | 0 | 0 | 0 | 0.003146 | 0 | 1 | 0.054299 | false | 0.001293 | 0 | 0.000646 | 0.074984 | 0.054945 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
a97465f7d0a8b81a94c39ab477a2dedb9d8e980a | 146,658 | py | Python | pyboto3/workdocs.py | gehad-shaat/pyboto3 | 4a0c2851a8bc04fb1c71c36086f7bb257e48181d | [
"MIT"
] | 91 | 2016-12-31T11:38:37.000Z | 2021-09-16T19:33:23.000Z | pyboto3/workdocs.py | gehad-shaat/pyboto3 | 4a0c2851a8bc04fb1c71c36086f7bb257e48181d | [
"MIT"
] | 7 | 2017-01-02T18:54:23.000Z | 2020-08-11T13:54:02.000Z | pyboto3/workdocs.py | gehad-shaat/pyboto3 | 4a0c2851a8bc04fb1c71c36086f7bb257e48181d | [
"MIT"
] | 26 | 2016-12-31T13:11:00.000Z | 2022-03-03T21:01:12.000Z | '''
The MIT License (MIT)
Copyright (c) 2016 WavyCloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, p... | 27.063665 | 850 | 0.641861 | 14,293 | 146,658 | 6.562163 | 0.046176 | 0.021643 | 0.08265 | 0.019106 | 0.863007 | 0.838741 | 0.819006 | 0.80506 | 0.794729 | 0.784675 | 0 | 0.00951 | 0.257906 | 146,658 | 5,418 | 851 | 27.06866 | 0.852289 | 0.960814 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.511111 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 9 |
8d6ba5f1dce0838ec5d1f09ee0e22db11a23f622 | 3,507 | py | Python | home/migrations/0021_auto_20210201_1434.py | IATI/new-website | b90783e32d19ac4c821c5ea018a52997a11b5286 | [
"MIT"
] | 4 | 2019-03-28T06:42:17.000Z | 2021-06-06T13:10:51.000Z | home/migrations/0021_auto_20210201_1434.py | IATI/new-website | b90783e32d19ac4c821c5ea018a52997a11b5286 | [
"MIT"
] | 177 | 2018-09-28T14:21:56.000Z | 2022-03-30T21:45:26.000Z | home/migrations/0021_auto_20210201_1434.py | IATI/new-website | b90783e32d19ac4c821c5ea018a52997a11b5286 | [
"MIT"
] | 8 | 2018-10-25T20:43:10.000Z | 2022-03-17T14:19:27.000Z | # Generated by Django 2.2.13 on 2021-02-01 14:34
from django.db import migrations
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.images.blocks
class Migration(migrations.Migration):
dependencies = [
('home', '0020_spamsettings'),
]
operations = [
migrations.AddFiel... | 83.5 | 525 | 0.700599 | 397 | 3,507 | 6.088161 | 0.148615 | 0.145635 | 0.182871 | 0.107571 | 0.910219 | 0.910219 | 0.910219 | 0.910219 | 0.887464 | 0.887464 | 0 | 0.006519 | 0.125178 | 3,507 | 41 | 526 | 85.536585 | 0.781291 | 0.013117 | 0 | 0.571429 | 1 | 0 | 0.184446 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.114286 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
570555c9b7f1f393fa51618470d4c1fd0a9626b9 | 68,648 | py | Python | benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_pinned/cmp_gobmk/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_pinned/cmp_gobmk/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_pinned/cmp_gobmk/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | power = {'BUSES': {'Area': 1.33155,
'Bus/Area': 1.33155,
'Bus/Gate Leakage': 0.00662954,
'Bus/Peak Dynamic': 0.0,
'Bus/Runtime Dynamic': 0.0,
'Bus/Subthreshold Leakage': 0.0691322,
'Bus/Subthreshold Leakage with power gating': 0.0259246,
'Gate... | 75.107221 | 124 | 0.68203 | 8,098 | 68,648 | 5.775747 | 0.066189 | 0.123493 | 0.112888 | 0.093389 | 0.94285 | 0.93556 | 0.921577 | 0.894146 | 0.869088 | 0.849397 | 0 | 0.131983 | 0.224202 | 68,648 | 914 | 125 | 75.107221 | 0.746249 | 0 | 0 | 0.66302 | 0 | 0 | 0.657038 | 0.048071 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
575a47ea776d19056cca0d32c70cb66e3128fa3f | 714 | py | Python | overseed_tests/__init__.py | Raihanbook/overseed | 73d7bfdd967d4c43b88d8aadd0cd0abbbd5f2842 | [
"MIT"
] | null | null | null | overseed_tests/__init__.py | Raihanbook/overseed | 73d7bfdd967d4c43b88d8aadd0cd0abbbd5f2842 | [
"MIT"
] | null | null | null | overseed_tests/__init__.py | Raihanbook/overseed | 73d7bfdd967d4c43b88d8aadd0cd0abbbd5f2842 | [
"MIT"
] | null | null | null | import unittest
from overseed_tests.test_account_list import TestAccountList
from overseed_tests.test_assign_user import TestAssignUser
from overseed_tests.test_companies_list import TestCompaniesList
from overseed_tests.test_create_device import TestCreateDevice
from overseed_tests.test_create_plant import TestCreate... | 42 | 64 | 0.893557 | 93 | 714 | 6.44086 | 0.354839 | 0.220367 | 0.312187 | 0.385643 | 0.135225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079832 | 714 | 16 | 65 | 44.625 | 0.91172 | 0 | 0 | 0 | 0 | 0 | 0.011204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.071429 | 0.857143 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
93e6ba943a2952e539f346e822aa7435360a6ced | 9,514 | py | Python | test/unit/wenet/interface/test_task_manager.py | Dyuko/common-models-py | a1d152334816ef650f01175002af0cfcdef41da5 | [
"Apache-2.0"
] | null | null | null | test/unit/wenet/interface/test_task_manager.py | Dyuko/common-models-py | a1d152334816ef650f01175002af0cfcdef41da5 | [
"Apache-2.0"
] | null | null | null | test/unit/wenet/interface/test_task_manager.py | Dyuko/common-models-py | a1d152334816ef650f01175002af0cfcdef41da5 | [
"Apache-2.0"
] | 2 | 2022-01-12T19:38:57.000Z | 2022-02-15T10:04:31.000Z | from __future__ import absolute_import, annotations
from unittest import TestCase
from unittest.mock import Mock
from test.unit.wenet.interface.mock.client import MockApikeyClient
from test.unit.wenet.interface.mock.response import MockResponse
from wenet.interface.exceptions import AuthenticationException, NotFound,... | 46.866995 | 149 | 0.68888 | 1,124 | 9,514 | 5.544484 | 0.061388 | 0.077022 | 0.127567 | 0.087612 | 0.903562 | 0.898909 | 0.886072 | 0.8819 | 0.866496 | 0.846438 | 0 | 0.012785 | 0.194345 | 9,514 | 202 | 150 | 47.09901 | 0.800261 | 0 | 0 | 0.719298 | 0 | 0 | 0.027749 | 0 | 0 | 0 | 0 | 0 | 0.152047 | 1 | 0.157895 | false | 0 | 0.052632 | 0 | 0.216374 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
f56b03275d06ed332c0f49d671788d4a175df2cf | 149 | py | Python | ramda/uniq_by_test.py | jakobkolb/ramda.py | 982b2172f4bb95b9a5b09eff8077362d6f2f0920 | [
"MIT"
] | 56 | 2018-08-06T08:44:58.000Z | 2022-03-17T09:49:03.000Z | ramda/uniq_by_test.py | jakobkolb/ramda.py | 982b2172f4bb95b9a5b09eff8077362d6f2f0920 | [
"MIT"
] | 28 | 2019-06-17T11:09:52.000Z | 2022-02-18T16:59:21.000Z | ramda/uniq_by_test.py | jakobkolb/ramda.py | 982b2172f4bb95b9a5b09eff8077362d6f2f0920 | [
"MIT"
] | 5 | 2019-09-18T09:24:38.000Z | 2021-07-21T08:40:23.000Z | from ramda import *
from ramda.private.asserts import *
def uniq_by_test():
assert_equal(uniq_by(abs, [-1, -5, 2, 10, 1, 2]), [-1, -5, 2, 10])
| 21.285714 | 70 | 0.624161 | 27 | 149 | 3.296296 | 0.592593 | 0.202247 | 0.067416 | 0.11236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098361 | 0.181208 | 149 | 6 | 71 | 24.833333 | 0.631148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.25 | true | 0 | 0.5 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
f580a4309c60840ca1f993501458f585b5d3e08c | 5,838 | py | Python | lambda/tests/unit/runner/test_hcaptcha.py | voquis/aws-lambda-contact-form-handler | b1ab4309137ad8225bf8ad34cf92623dbe4f6e52 | [
"MIT"
] | null | null | null | lambda/tests/unit/runner/test_hcaptcha.py | voquis/aws-lambda-contact-form-handler | b1ab4309137ad8225bf8ad34cf92623dbe4f6e52 | [
"MIT"
] | 8 | 2021-12-31T13:42:23.000Z | 2022-01-09T16:07:03.000Z | lambda/tests/unit/runner/test_hcaptcha.py | voquis/aws-lambda-contact-form-handler | b1ab4309137ad8225bf8ad34cf92623dbe4f6e52 | [
"MIT"
] | null | null | null | """
Runner unit tests
"""
import os
import pytest
import httpretty
from app_handler.provider.request import RequestProvider
from app_handler.provider.response import ResponseProvider
from app_handler.runner.hcaptcha import HcaptchaRunner
import tests.unit.service.hcaptcha_utils as utils
def test_runner_not_enabled(... | 33.94186 | 87 | 0.734327 | 649 | 5,838 | 6.42681 | 0.154083 | 0.069048 | 0.113882 | 0.046032 | 0.8269 | 0.822105 | 0.811796 | 0.799089 | 0.77895 | 0.762887 | 0 | 0.009976 | 0.158616 | 5,838 | 171 | 88 | 34.140351 | 0.839169 | 0.128811 | 0 | 0.737864 | 0 | 0 | 0.173589 | 0.018548 | 0 | 0 | 0 | 0 | 0.300971 | 1 | 0.058252 | false | 0 | 0.067961 | 0 | 0.126214 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
f5903d72ebcd9874eda5b29d30aa6151abbfbb09 | 203 | py | Python | bentoml/statsmodels.py | francoisserra/BentoML | 213e9e9b39e055286f2649c733907df88e6d2503 | [
"Apache-2.0"
] | 1 | 2021-06-12T17:04:07.000Z | 2021-06-12T17:04:07.000Z | bentoml/statsmodels.py | francoisserra/BentoML | 213e9e9b39e055286f2649c733907df88e6d2503 | [
"Apache-2.0"
] | 4 | 2021-05-16T08:06:25.000Z | 2021-11-13T08:46:36.000Z | bentoml/statsmodels.py | francoisserra/BentoML | 213e9e9b39e055286f2649c733907df88e6d2503 | [
"Apache-2.0"
] | null | null | null | from ._internal.frameworks.statsmodels import load
from ._internal.frameworks.statsmodels import save
from ._internal.frameworks.statsmodels import load_runner
__all__ = ["load", "load_runner", "save"]
| 33.833333 | 57 | 0.812808 | 24 | 203 | 6.5 | 0.375 | 0.230769 | 0.423077 | 0.634615 | 0.801282 | 0.551282 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08867 | 203 | 5 | 58 | 40.6 | 0.843243 | 0 | 0 | 0 | 0 | 0 | 0.093596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 1 | 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 | 7 |
5ff0d80a65c900432aeec381c1f196f50c61fe48 | 459 | py | Python | src/apps/home/models.py | IOwebapps/sigtest | 4440d08fa187b5287ff98cb0263cfb5cfd819e2e | [
"MIT"
] | 1 | 2022-03-29T15:09:03.000Z | 2022-03-29T15:09:03.000Z | src/apps/home/models.py | IOwebapps/sigtest | 4440d08fa187b5287ff98cb0263cfb5cfd819e2e | [
"MIT"
] | null | null | null | src/apps/home/models.py | IOwebapps/sigtest | 4440d08fa187b5287ff98cb0263cfb5cfd819e2e | [
"MIT"
] | null | null | null | # from django.db import models
# class code(models.Model):
# title = models.CharField(max_length=30,blank=False)
# def __str__(self):
# return self.title
# class staff(models.Model):
# title = models.CharField(max_length=30,blank=False)
# def __str__(self):
# return self.title
# clas... | 24.157895 | 57 | 0.660131 | 59 | 459 | 4.881356 | 0.355932 | 0.114583 | 0.166667 | 0.229167 | 0.836806 | 0.836806 | 0.836806 | 0.836806 | 0.836806 | 0.836806 | 0 | 0.016575 | 0.211329 | 459 | 18 | 58 | 25.5 | 0.779006 | 0.930283 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
5ffc73277873baa577cba74fa904c9ba20a9b9cc | 6,794 | py | Python | core/encoder/vggs.py | liuph0119/Semantic_Segmentation_Keras | b595f0e2d62c471256dcc800f9539dbdf354d391 | [
"Apache-2.0"
] | 17 | 2019-03-18T08:00:24.000Z | 2021-03-10T06:52:18.000Z | core/encoder/vggs.py | 123fengye741/Semantic_Segmentation_Keras | b595f0e2d62c471256dcc800f9539dbdf354d391 | [
"Apache-2.0"
] | 2 | 2019-05-15T00:18:38.000Z | 2019-05-22T03:21:11.000Z | core/encoder/vggs.py | 123fengye741/Semantic_Segmentation_Keras | b595f0e2d62c471256dcc800f9539dbdf354d391 | [
"Apache-2.0"
] | 8 | 2019-03-08T15:42:31.000Z | 2019-12-19T02:33:18.000Z | from keras.layers import Input
from keras.layers.normalization import BatchNormalization
from keras.layers.pooling import MaxPooling2D
from keras.models import Model
from ..utils.net_utils import conv_bn_act_block
def vgg_16(input_shape,
weight_decay=1e-4,
kernel_initializer="he_normal",
... | 55.688525 | 99 | 0.69841 | 923 | 6,794 | 4.750813 | 0.063922 | 0.127252 | 0.140479 | 0.092588 | 0.955074 | 0.955074 | 0.955074 | 0.955074 | 0.955074 | 0.955074 | 0 | 0.02759 | 0.215779 | 6,794 | 122 | 100 | 55.688525 | 0.79542 | 0.087283 | 0 | 0.91954 | 0 | 0 | 0.002936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022989 | false | 0 | 0.057471 | 0 | 0.103448 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
fdc5a102a8ccc22e72124598aac93550c49c6319 | 2,936 | py | Python | tests/test_rules_2048.py | Dratui/AI-Arena | e9693e34a90523bbb86eb2ad3b2c3e9797beed5c | [
"MIT"
] | 2 | 2018-11-16T08:18:42.000Z | 2018-11-22T08:44:10.000Z | tests/test_rules_2048.py | Dratui/2048_online | e9693e34a90523bbb86eb2ad3b2c3e9797beed5c | [
"MIT"
] | 15 | 2018-11-16T10:52:24.000Z | 2018-11-23T08:36:17.000Z | tests/test_rules_2048.py | Dratui/AI-Arena | e9693e34a90523bbb86eb2ad3b2c3e9797beed5c | [
"MIT"
] | 2 | 2018-11-15T09:32:36.000Z | 2018-11-16T08:56:54.000Z | from src.games.game_2048.rules_2048 import *
from pytest import *
from src.board import *
from src.games.game_2048.themes import THEMES
from src.games.games import *
def test_evolve_line():
assert evolve_line([None for i in range(4)]) == [None for i in range(4)]
assert evolve_line([None,4,4,8]) == [8,8,None,No... | 68.27907 | 192 | 0.66485 | 498 | 2,936 | 3.708835 | 0.086345 | 0.64104 | 0.812128 | 0.961559 | 0.840823 | 0.798051 | 0.740661 | 0.740661 | 0.721711 | 0.721711 | 0 | 0.042147 | 0.143392 | 2,936 | 42 | 193 | 69.904762 | 0.692247 | 0 | 0 | 0.27027 | 0 | 0 | 0.004087 | 0 | 0 | 0 | 0 | 0 | 0.324324 | 1 | 0.108108 | false | 0 | 0.135135 | 0 | 0.243243 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 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 | 9 |
8bfc1edbd7ea7c48c0ecb41610ee336e4016893c | 113 | py | Python | koopmania/benchmark/__init__.py | EthanJamesLew/koopmania | 37b18742f6534711f430b7a92443571ff93629fb | [
"BSD-3-Clause"
] | 1 | 2022-03-27T11:18:24.000Z | 2022-03-27T11:18:24.000Z | koopmania/benchmark/__init__.py | salmajouini/koopmania | 8d59b36e1de71317f883e0b55412b963629231b0 | [
"BSD-3-Clause"
] | null | null | null | koopmania/benchmark/__init__.py | salmajouini/koopmania | 8d59b36e1de71317f883e0b55412b963629231b0 | [
"BSD-3-Clause"
] | 1 | 2022-01-30T01:58:14.000Z | 2022-01-30T01:58:14.000Z | from koopmania.benchmark.fhn import FitzHughNagumo
from koopmania.benchmark.vp import VanDerPol, CoupledVanDerPol | 56.5 | 62 | 0.884956 | 13 | 113 | 7.692308 | 0.692308 | 0.26 | 0.44 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070796 | 113 | 2 | 62 | 56.5 | 0.952381 | 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 | 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 | 7 |
e31ff74dfa099a7b62e6c8a5cc91ba616fd9ab85 | 12,718 | py | Python | cpdb/utils/tests/test_copa_utils.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 25 | 2018-07-20T22:31:40.000Z | 2021-07-15T16:58:41.000Z | cpdb/utils/tests/test_copa_utils.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 13 | 2018-06-18T23:08:47.000Z | 2022-02-10T07:38:25.000Z | cpdb/utils/tests/test_copa_utils.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 6 | 2018-05-17T21:59:43.000Z | 2020-11-17T00:30:26.000Z | from django.test import TestCase
from robber import expect
from utils.copa_utils import extract_copa_executive_summary
class CopaUtilsTestCase(TestCase):
def test_extract_copa_executive_summary(self):
text_content = (
'CIVILIAN OFFICE OF POLICE ACCOUNTABILITY '
'\nSUMMARY REPORT ... | 51.076305 | 113 | 0.638622 | 1,466 | 12,718 | 5.431105 | 0.095498 | 0.074353 | 0.049234 | 0.098468 | 0.934815 | 0.929289 | 0.925019 | 0.916353 | 0.906933 | 0.898392 | 0 | 0.027971 | 0.288803 | 12,718 | 248 | 114 | 51.282258 | 0.852294 | 0 | 0 | 0.742081 | 0 | 0 | 0.620616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054299 | false | 0 | 0.013575 | 0 | 0.072398 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
8b5084b15a0d1d3f8e7b73ded0f9b75179968d97 | 27,778 | py | Python | codigo/utils.py | xKuZz/tfg | 3161e65a2870b306ebc76eca9e34465b41742740 | [
"MIT"
] | null | null | null | codigo/utils.py | xKuZz/tfg | 3161e65a2870b306ebc76eca9e34465b41742740 | [
"MIT"
] | null | null | null | codigo/utils.py | xKuZz/tfg | 3161e65a2870b306ebc76eca9e34465b41742740 | [
"MIT"
] | null | null | null | import numba
from numba import cuda
import numpy as np
"""
Implementación de scan inclusivo
"""
@cuda.jit
def scan_block(d_data, d_scan, aux):
temp = cuda.shared.array(shape=32, dtype=numba.float32)
tid = cuda.threadIdx.x
idx = cuda.grid(1)
temp1 = d_data[tid+cuda.blockIdx.x*cuda.blockDim.x... | 34.125307 | 108 | 0.566491 | 3,887 | 27,778 | 3.866478 | 0.052225 | 0.135338 | 0.189434 | 0.128951 | 0.85854 | 0.811498 | 0.783751 | 0.734314 | 0.709096 | 0.666711 | 0 | 0.052129 | 0.321153 | 27,778 | 813 | 109 | 34.167282 | 0.744869 | 0.078371 | 0 | 0.736134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043697 | false | 0 | 0.005042 | 0 | 0.063866 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 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 | 8 |
8b577ef34727b2a20da6cf58120f90203990f19f | 88 | py | Python | torchtools/tensors/__init__.py | cjwcommuny/torch-tools | a64c0bdd87df065744fb49644f767165d3516b27 | [
"MIT"
] | null | null | null | torchtools/tensors/__init__.py | cjwcommuny/torch-tools | a64c0bdd87df065744fb49644f767165d3516b27 | [
"MIT"
] | null | null | null | torchtools/tensors/__init__.py | cjwcommuny/torch-tools | a64c0bdd87df065744fb49644f767165d3516b27 | [
"MIT"
] | null | null | null | from torchtools.tensors.function import *
from torchtools.tensors.tensor_group import *
| 29.333333 | 45 | 0.840909 | 11 | 88 | 6.636364 | 0.636364 | 0.383562 | 0.575342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 88 | 2 | 46 | 44 | 0.9125 | 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 | 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 | 7 |
8b5de279a5957a1255aa25a8ebfea07605301447 | 2,824 | py | Python | iati_standard/migrations/0005_auto_20200603_2005.py | IATI/new-website | b90783e32d19ac4c821c5ea018a52997a11b5286 | [
"MIT"
] | 4 | 2019-03-28T06:42:17.000Z | 2021-06-06T13:10:51.000Z | iati_standard/migrations/0005_auto_20200603_2005.py | IATI/new-website | b90783e32d19ac4c821c5ea018a52997a11b5286 | [
"MIT"
] | 177 | 2018-09-28T14:21:56.000Z | 2022-03-30T21:45:26.000Z | iati_standard/migrations/0005_auto_20200603_2005.py | IATI/new-website | b90783e32d19ac4c821c5ea018a52997a11b5286 | [
"MIT"
] | 8 | 2018-10-25T20:43:10.000Z | 2022-03-17T14:19:27.000Z | # Generated by Django 2.2.12 on 2020-06-03 20:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('iati_standard', '0004_auto_20200603_1955'),
]
operations = [
migrations.AddField(
model_name='standardguidanceindexpage',
... | 44.125 | 140 | 0.645892 | 313 | 2,824 | 5.661342 | 0.182109 | 0.10158 | 0.129797 | 0.15237 | 0.902935 | 0.902935 | 0.902935 | 0.902935 | 0.902935 | 0.863431 | 0 | 0.022381 | 0.256374 | 2,824 | 63 | 141 | 44.825397 | 0.821429 | 0.016289 | 0 | 0.701754 | 1 | 0 | 0.335014 | 0.098343 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017544 | 0 | 0.070175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
8bbb315b7e21588153c4674a43f429dbfb38a46e | 27,882 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/tests/unit/plugins/modules/test_na_ontap_cluster.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2020-01-22T13:11:23.000Z | 2020-01-22T13:11:23.000Z | venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/tests/unit/plugins/modules/test_na_ontap_cluster.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/tests/unit/plugins/modules/test_na_ontap_cluster.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | null | null | null | # (c) 2018, NetApp, Inc
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
''' unit tests ONTAP Ansible module: na_ontap_cluster '''
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import json
import pytest
from ansible.module_utils im... | 40.526163 | 128 | 0.658023 | 3,515 | 27,882 | 4.934282 | 0.089047 | 0.02018 | 0.055351 | 0.066882 | 0.833083 | 0.81815 | 0.797509 | 0.781365 | 0.758937 | 0.741524 | 0 | 0.012151 | 0.223693 | 27,882 | 687 | 129 | 40.585153 | 0.789143 | 0.076788 | 0 | 0.70483 | 0 | 0 | 0.260047 | 0.150314 | 0 | 0 | 0 | 0 | 0.071556 | 1 | 0.06619 | false | 0.012522 | 0.0161 | 0 | 0.101968 | 0.041145 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
8bbd31421c22e9979cc697f500e9243b7ec53b6b | 243 | py | Python | sweepstakes_stack_manager.py | HTGoldston/sweepstakes_starter | 53ff2a02b217b5e78decf9ac6b4b9b7c93fe3b63 | [
"MIT"
] | null | null | null | sweepstakes_stack_manager.py | HTGoldston/sweepstakes_starter | 53ff2a02b217b5e78decf9ac6b4b9b7c93fe3b63 | [
"MIT"
] | null | null | null | sweepstakes_stack_manager.py | HTGoldston/sweepstakes_starter | 53ff2a02b217b5e78decf9ac6b4b9b7c93fe3b63 | [
"MIT"
] | null | null | null | class Sweepstakes_Stack_Manager:
def __init__(self, stack):
self.sweepstakes_stack_manager = Sweepstakes_Stack_Manager
self.stack = stack
def insert_sweepstakes(sweepstakes): pass
def get_sweepstakes(): Sweepstake | 30.375 | 66 | 0.748971 | 27 | 243 | 6.296296 | 0.407407 | 0.282353 | 0.405882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1893 | 243 | 8 | 67 | 30.375 | 0.862944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.166667 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 7 |
4795c5777ce317cc596d9d327ade79109c496477 | 3,231 | py | Python | pyaz/acr/private_endpoint_connection/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/acr/private_endpoint_connection/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/acr/private_endpoint_connection/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | 1 | 2022-02-03T09:12:01.000Z | 2022-02-03T09:12:01.000Z | from ... pyaz_utils import _call_az
def delete(name, registry_name, resource_group=None):
'''
Delete a private endpoint connection request for a container registry
Required Parameters:
- name -- The name of the private endpoint connection
- registry_name -- The name of the container registry. You ... | 44.260274 | 154 | 0.735067 | 418 | 3,231 | 5.602871 | 0.114833 | 0.102477 | 0.13877 | 0.076857 | 0.885141 | 0.857387 | 0.801025 | 0.801025 | 0.760034 | 0.760034 | 0 | 0 | 0.185701 | 3,231 | 72 | 155 | 44.875 | 0.890156 | 0.715258 | 0 | 0 | 0 | 0 | 0.273342 | 0.182679 | 0 | 0 | 0 | 0 | 0 | 1 | 0.454545 | false | 0 | 0.090909 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 8 |
4798a1130ed2b0b345e28b0a0b2b2ed791b4915d | 56,730 | py | Python | watevrCTF-2019/challenges/reverse/watshell/solve.py | bemrdo/CTF-2019 | 424512f7c43278d72091aa737da78907c14f9fc1 | [
"MIT"
] | null | null | null | watevrCTF-2019/challenges/reverse/watshell/solve.py | bemrdo/CTF-2019 | 424512f7c43278d72091aa737da78907c14f9fc1 | [
"MIT"
] | null | null | null | watevrCTF-2019/challenges/reverse/watshell/solve.py | bemrdo/CTF-2019 | 424512f7c43278d72091aa737da78907c14f9fc1 | [
"MIT"
] | 1 | 2020-03-14T07:24:12.000Z | 2020-03-14T07:24:12.000Z | import time
from pwn import *
flag = input("flag: ").replace("\n", "")
ip, port = input("service: ").split(":")
mapping = ['58', '1', '19', '126', '75', '70', '106', '24', '138', '3', '43', '33', '12', '52', '27', '97', '48', 'undef', '57', '28', '102', '21', '55', '56', '85', 'undef', '130', '92', '84', '35', '127', '... | 3,337.058824 | 56,152 | 0.379341 | 8,862 | 56,730 | 2.427443 | 0.022004 | 0.008646 | 0.014411 | 0.023057 | 0.981499 | 0.981499 | 0.981499 | 0.981499 | 0.981499 | 0.981499 | 0 | 0.388217 | 0.155949 | 56,730 | 16 | 56,153 | 3,545.625 | 0.061045 | 0.003085 | 0 | 0 | 0 | 0 | 0.374127 | 0.000407 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
47e6d19b8ef19612996066bc83832671282b29dd | 11,652 | py | Python | icumove/samples/models.py | gblanchard4/ICU_Move | a93728b084bc68087c8a8afa67e3cf1cae98975e | [
"MIT"
] | null | null | null | icumove/samples/models.py | gblanchard4/ICU_Move | a93728b084bc68087c8a8afa67e3cf1cae98975e | [
"MIT"
] | null | null | null | icumove/samples/models.py | gblanchard4/ICU_Move | a93728b084bc68087c8a8afa67e3cf1cae98975e | [
"MIT"
] | null | null | null | from django.db import models
from django.core.exceptions import ValidationError
from datetime import date
from django.core.validators import MaxValueValidator, MinValueValidator
# Global values
DAY_1 = date(2015,07,28)
# Air sample model
class Air(models.Model):
ICU_CHOICES = (
('1', 'UMC Tower-1'),
('2', 'UMC... | 41.173145 | 170 | 0.702712 | 1,649 | 11,652 | 4.831413 | 0.124318 | 0.071796 | 0.070039 | 0.093385 | 0.823397 | 0.815112 | 0.794402 | 0.762897 | 0.755742 | 0.728254 | 0 | 0.034251 | 0.120494 | 11,652 | 282 | 171 | 41.319149 | 0.743169 | 0.272657 | 0 | 0.427586 | 0 | 0 | 0.176611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027586 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
9a5886535bdcca3053981250a5563d6ba7b5c356 | 198 | py | Python | tests/test_unit/test_formatters.py | best-doctor/Mario | a6c83b9f7e7558a4e71d8acb00b8d164fe8eec6f | [
"MIT"
] | 12 | 2020-01-30T02:19:16.000Z | 2022-01-20T04:00:43.000Z | tests/test_unit/test_formatters.py | best-doctor/Mario | a6c83b9f7e7558a4e71d8acb00b8d164fe8eec6f | [
"MIT"
] | 32 | 2019-12-07T14:06:05.000Z | 2020-06-26T07:12:03.000Z | tests/test_unit/test_formatters.py | best-doctor/Mario | a6c83b9f7e7558a4e71d8acb00b8d164fe8eec6f | [
"MIT"
] | 3 | 2020-08-21T07:54:53.000Z | 2021-01-11T12:05:48.000Z | from super_mario.utils.formatters import format_object_for_logging
def test_format_object_for_logging():
assert format_object_for_logging(list(range(100)), max_length=10) == '[0, 1, 2, 3...]'
| 33 | 90 | 0.772727 | 31 | 198 | 4.548387 | 0.741935 | 0.255319 | 0.319149 | 0.468085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050562 | 0.10101 | 198 | 5 | 91 | 39.6 | 0.741573 | 0 | 0 | 0 | 0 | 0 | 0.075758 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
9a640fdfdda9f6062d7f3e5b1fbefbcf9e97cd86 | 81 | py | Python | model/__init__.py | SCUT-BIP-Lab/SCUT-DHGA | 1a75998b4ddc09e21da9352e6a51bed0c39ddfb8 | [
"MIT"
] | 6 | 2020-10-06T07:43:33.000Z | 2022-03-21T00:12:27.000Z | model/__init__.py | SCUT-BIP-Lab/SCUT-DHGA | 1a75998b4ddc09e21da9352e6a51bed0c39ddfb8 | [
"MIT"
] | null | null | null | model/__init__.py | SCUT-BIP-Lab/SCUT-DHGA | 1a75998b4ddc09e21da9352e6a51bed0c39ddfb8 | [
"MIT"
] | 2 | 2021-12-23T11:37:15.000Z | 2021-12-24T02:24:13.000Z | from model.i3d_auth import i3d_auth
from model.i3d_auth_RGBD import i3d_auth_RGBD | 40.5 | 45 | 0.888889 | 16 | 81 | 4.125 | 0.375 | 0.424242 | 0.363636 | 0.484848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 0.08642 | 81 | 2 | 45 | 40.5 | 0.837838 | 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 | 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 | 8 |
7bd157150b4415d58d59e7bfbbc788261860b6e3 | 5,134 | py | Python | tests/contrib/test_automl_sklearn_unsupervised.py | fsadannn/autogoal | ad23f0a3dcb5d4658bbc6b68a5b428d8de7432de | [
"MIT"
] | 1 | 2021-11-04T03:47:38.000Z | 2021-11-04T03:47:38.000Z | tests/contrib/test_automl_sklearn_unsupervised.py | cbermudez97/autogoal | fd45110b01c55a5f51ed440a1a4f093d8afbb9ac | [
"MIT"
] | null | null | null | tests/contrib/test_automl_sklearn_unsupervised.py | cbermudez97/autogoal | fd45110b01c55a5f51ed440a1a4f093d8afbb9ac | [
"MIT"
] | null | null | null | from autogoal.kb import MatrixContinuousDense, Supervised, VectorCategorical
from autogoal.ml import AutoML, calinski_harabasz_score
import numpy as np
def test_run_unsupervised():
X = np.array(
[
[
0.0,
0.0,
0.0,
1.0,
... | 20.618474 | 76 | 0.140242 | 465 | 5,134 | 1.531183 | 0.068817 | 0.839888 | 1.082865 | 1.207865 | 0.589888 | 0.589888 | 0.589888 | 0.589888 | 0.589888 | 0.589888 | 0 | 0.3525 | 0.766264 | 5,134 | 248 | 77 | 20.701613 | 0.240833 | 0 | 0 | 0.897959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004082 | false | 0 | 0.012245 | 0 | 0.016327 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
7becbb3850cbef48b78cb7c06bb76da72e9c5614 | 4,956 | py | Python | compile_metadata_and_tierpsy_analysis_files/compile_window_summaires_and_feat_names.py | Tom-OBrien/Disease-Modelling | c1a9c3b179ee39a0148ca0bd685c2e0d44202dad | [
"CC0-1.0"
] | null | null | null | compile_metadata_and_tierpsy_analysis_files/compile_window_summaires_and_feat_names.py | Tom-OBrien/Disease-Modelling | c1a9c3b179ee39a0148ca0bd685c2e0d44202dad | [
"CC0-1.0"
] | null | null | null | compile_metadata_and_tierpsy_analysis_files/compile_window_summaires_and_feat_names.py | Tom-OBrien/Disease-Modelling | c1a9c3b179ee39a0148ca0bd685c2e0d44202dad | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Apr 12 14:06:18 2021
@author: tobrien
Script for compliling window summaries and feature names for disease model
screen
"""
from pathlib import Path
from tierpsytools.read_data.compile_features_summaries import compile_tierpsy_summaries
import pdb
imp... | 53.869565 | 171 | 0.819209 | 738 | 4,956 | 5.01897 | 0.139566 | 0.076944 | 0.092333 | 0.058315 | 0.800216 | 0.800216 | 0.800216 | 0.800216 | 0.800216 | 0.798056 | 0 | 0.018117 | 0.097861 | 4,956 | 92 | 172 | 53.869565 | 0.810333 | 0.03632 | 0 | 0.152542 | 0 | 0 | 0.567534 | 0.485529 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.084746 | 0 | 0.084746 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
d08ffb7b290b3a41f5525b3d3f8f845f944964f1 | 134 | py | Python | auxein/parents/distributions/__init__.py | auxein/auxein | 5388cb572b65aecc282f915515c35dc3b987154c | [
"Apache-2.0"
] | 1 | 2019-05-08T14:53:27.000Z | 2019-05-08T14:53:27.000Z | auxein/parents/distributions/__init__.py | auxein/auxein | 5388cb572b65aecc282f915515c35dc3b987154c | [
"Apache-2.0"
] | 2 | 2020-08-26T09:16:47.000Z | 2020-10-30T16:47:03.000Z | auxein/parents/distributions/__init__.py | auxein/auxein | 5388cb572b65aecc282f915515c35dc3b987154c | [
"Apache-2.0"
] | null | null | null | # flake8: noqa
from .core import Distribution
from .core import Fps
from .core import FpsWithWindowing
from .core import SigmaScaling
| 22.333333 | 34 | 0.813433 | 18 | 134 | 6.055556 | 0.5 | 0.293578 | 0.513761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008696 | 0.141791 | 134 | 5 | 35 | 26.8 | 0.93913 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
efcbe52c6d670d0deded824b643f49d588de7269 | 234 | py | Python | param_teller/__init__.py | chanzuckerberg/param-teller | 6c69bd619a80fbb1a1141be679a80c2c7db258b1 | [
"MIT"
] | null | null | null | param_teller/__init__.py | chanzuckerberg/param-teller | 6c69bd619a80fbb1a1141be679a80c2c7db258b1 | [
"MIT"
] | null | null | null | param_teller/__init__.py | chanzuckerberg/param-teller | 6c69bd619a80fbb1a1141be679a80c2c7db258b1 | [
"MIT"
] | null | null | null | from param_teller.parameter_store import ParameterStore
from param_teller.secrets_manager import SecretsManager
from param_teller.project_store import ProjectParameterStore
from param_teller.project_store import ProjectSecretsManager
| 46.8 | 60 | 0.91453 | 28 | 234 | 7.357143 | 0.464286 | 0.174757 | 0.291262 | 0.213592 | 0.320388 | 0.320388 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068376 | 234 | 4 | 61 | 58.5 | 0.944954 | 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 | 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 | 7 |
3229a6ec9758a0ad4339e4327b972aac2cb1af3b | 151 | py | Python | earthvision2021/utils/criteria/__init__.py | solcummings/earthvision2021-weakly-supervised | d008a3cd7bf53ee43aa3c2682416954d6a5bb102 | [
"Apache-2.0"
] | 9 | 2021-06-19T20:26:40.000Z | 2022-03-17T08:39:59.000Z | earthvision2021/utils/criteria/__init__.py | solcummings/earthvision2021-weakly-supervised | d008a3cd7bf53ee43aa3c2682416954d6a5bb102 | [
"Apache-2.0"
] | 2 | 2021-12-21T07:42:21.000Z | 2022-01-23T02:10:32.000Z | earthvision2021/utils/criteria/__init__.py | solcummings/earthvision2021-weakly-supervised | d008a3cd7bf53ee43aa3c2682416954d6a5bb102 | [
"Apache-2.0"
] | null | null | null | from utils.criteria.build import build
from utils.criteria import jaccard_loss
from utils.criteria import dice_loss
from utils.criteria import metric
| 25.166667 | 39 | 0.854305 | 23 | 151 | 5.521739 | 0.391304 | 0.283465 | 0.535433 | 0.543307 | 0.425197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112583 | 151 | 5 | 40 | 30.2 | 0.947761 | 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 | 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 | 8 |
32303ac583006ab2bc12e153c601ea71cbc36829 | 7,955 | py | Python | sdi_pipeline/test.py | andrewhstewart/SDI | 19d52bd5e13c2128c083776712672becf8b6ab45 | [
"MIT"
] | null | null | null | sdi_pipeline/test.py | andrewhstewart/SDI | 19d52bd5e13c2128c083776712672becf8b6ab45 | [
"MIT"
] | null | null | null | sdi_pipeline/test.py | andrewhstewart/SDI | 19d52bd5e13c2128c083776712672becf8b6ab45 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Sep 29 13:10:04 2018
@author: andrew
"""
import requests
from initialize import loc
import obtain
import os
import ref_image
import align_astroalign
import combine_numpy
from astropy.io import fits
from scipy.ndimage.filters import gaussian_filter
impo... | 34.586957 | 100 | 0.612319 | 1,059 | 7,955 | 4.407932 | 0.203966 | 0.044987 | 0.042416 | 0.020566 | 0.916881 | 0.916881 | 0.916881 | 0.916881 | 0.916881 | 0.916881 | 0 | 0.049933 | 0.252294 | 7,955 | 230 | 101 | 34.586957 | 0.734869 | 0.249403 | 0 | 0.850746 | 0 | 0 | 0.174472 | 0.041589 | 0.029851 | 0 | 0 | 0 | 0 | 1 | 0.007463 | false | 0 | 0.134328 | 0 | 0.141791 | 0.059701 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
329edb5f87b9ce4a481fb66c756c66e9bb5704f9 | 14,374 | py | Python | src/seg_nets/keras_models.py | NickleDave/compare-seg-models | dd98954509344abfe39ba676646c1ab374a9ff88 | [
"BSD-3-Clause"
] | null | null | null | src/seg_nets/keras_models.py | NickleDave/compare-seg-models | dd98954509344abfe39ba676646c1ab374a9ff88 | [
"BSD-3-Clause"
] | null | null | null | src/seg_nets/keras_models.py | NickleDave/compare-seg-models | dd98954509344abfe39ba676646c1ab374a9ff88 | [
"BSD-3-Clause"
] | null | null | null | # adapted from [1]_
# and https://github.com/colincsl/TemporalConvolutionalNetworks
#
# [1]René, Colin Lea Michael D. Flynn, and Vidal Austin Reiter Gregory D. Hager.
# "Temporal convolutional networks for action segmentation and detection." (2017).
from keras.models import Model
from keras.layers import Input, TimeDi... | 37.142119 | 84 | 0.600877 | 1,788 | 14,374 | 4.646532 | 0.115772 | 0.028888 | 0.066322 | 0.070896 | 0.818368 | 0.791767 | 0.777203 | 0.760953 | 0.745908 | 0.745908 | 0 | 0.029251 | 0.274593 | 14,374 | 386 | 85 | 37.238342 | 0.767527 | 0.086823 | 0 | 0.777778 | 0 | 0 | 0.055747 | 0.01654 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046595 | false | 0 | 0.043011 | 0.007168 | 0.136201 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
08785b559700a7458b3ae2edbbf0452f4011b06a | 23,105 | py | Python | models.py | sisl/nns-as-gps | a19e76df31335d9e32fc07a749eb33672e3c9224 | [
"MIT"
] | 6 | 2018-03-13T00:09:56.000Z | 2021-12-15T21:05:47.000Z | models.py | sisl/nns-as-gps | a19e76df31335d9e32fc07a749eb33672e3c9224 | [
"MIT"
] | null | null | null | models.py | sisl/nns-as-gps | a19e76df31335d9e32fc07a749eb33672e3c9224 | [
"MIT"
] | null | null | null | import numpy as np
import tensorflow as tf
import pdb
class EnsembleMSE(object):
def __init__(self,
sess,
obs_dim,
output_dim,
name,
ensemble_size = 10,
hidden_sizes = [64,32,32,32],
learning_rate = 1e-3,
batch_size = 4,
validation_ratio = 0... | 37.326333 | 116 | 0.556633 | 2,810 | 23,105 | 4.340214 | 0.06726 | 0.030256 | 0.041571 | 0.024106 | 0.922598 | 0.910954 | 0.910954 | 0.906445 | 0.906445 | 0.894474 | 0 | 0.012272 | 0.340489 | 23,105 | 618 | 117 | 37.386731 | 0.788096 | 0.035057 | 0 | 0.871622 | 0 | 0 | 0.0123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047297 | false | 0 | 0.006757 | 0 | 0.087838 | 0.013514 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
08a10fee833ffb54d2b73424c1b5671399504b67 | 10,731 | py | Python | tests/test_cardnet.py | lummax/switching-lattice-synth | 47cf9e64c900cb179c392b46a392049e99dfebab | [
"MIT"
] | null | null | null | tests/test_cardnet.py | lummax/switching-lattice-synth | 47cf9e64c900cb179c392b46a392049e99dfebab | [
"MIT"
] | null | null | null | tests/test_cardnet.py | lummax/switching-lattice-synth | 47cf9e64c900cb179c392b46a392049e99dfebab | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import unittest
import pyeda.boolalg.expr as expr
import synth.constraint.cardnet as cardnet
class TestBase(unittest.TestCase):
def setUp(self):
self.pos = tuple(expr.exprvar(p) for p in "abc")
self.neg = tuple(expr.exprvar(p) for p in "uvwxyz")
self.function = expr... | 40.49434 | 85 | 0.586525 | 1,282 | 10,731 | 4.735569 | 0.053042 | 0.126503 | 0.056169 | 0.069181 | 0.937737 | 0.921924 | 0.921924 | 0.909076 | 0.898205 | 0.898205 | 0 | 0.005691 | 0.295872 | 10,731 | 264 | 86 | 40.647727 | 0.797777 | 0.001957 | 0 | 0.755869 | 0 | 0 | 0.009058 | 0 | 0 | 0 | 0 | 0 | 0.239437 | 1 | 0.14554 | false | 0 | 0.014085 | 0 | 0.178404 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
08da3b9994c2ee1c5351391e8c69ca33e5a7502b | 9,420 | py | Python | project/detect_modality.py | ylavinia/pulearning632 | b4ed5e721aee85c9aa8375bf817e64237f6b298d | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | project/detect_modality.py | ylavinia/pulearning632 | b4ed5e721aee85c9aa8375bf817e64237f6b298d | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | project/detect_modality.py | ylavinia/pulearning632 | b4ed5e721aee85c9aa8375bf817e64237f6b298d | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn import *
import glob, sys, os
from pathlib import Path
from src.utils import get_proj_root
import warnings
warnings.filterwarnings("ignore")
def find_peaks(df, col_name_str, min_peak_fraction):
"""
Find ... | 35.018587 | 108 | 0.68811 | 1,475 | 9,420 | 4.189831 | 0.104407 | 0.073786 | 0.035599 | 0.025243 | 0.962945 | 0.961327 | 0.948544 | 0.924595 | 0.896278 | 0.878479 | 0 | 0.009963 | 0.232803 | 9,420 | 268 | 109 | 35.149254 | 0.845164 | 0.396178 | 0 | 0.701754 | 0 | 0 | 0.028705 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070175 | false | 0 | 0.096491 | 0 | 0.236842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
3eaaddab0aed62c0206e1eecb22c3f759bf1b597 | 21,129 | py | Python | src/application-insights/azext_applicationinsights/vendored_sdks/mgmt_applicationinsights/v2019_09_01_preview/operations/_query_packs_operations.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 8 | 2021-01-13T23:44:08.000Z | 2021-03-17T10:13:36.000Z | src/application-insights/azext_applicationinsights/vendored_sdks/mgmt_applicationinsights/v2019_09_01_preview/operations/_query_packs_operations.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 226 | 2019-07-24T07:57:21.000Z | 2019-10-15T01:07:24.000Z | src/application-insights/azext_applicationinsights/vendored_sdks/mgmt_applicationinsights/v2019_09_01_preview/operations/_query_packs_operations.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 5 | 2020-05-09T17:47:09.000Z | 2020-10-01T19:52:06.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 48.239726 | 176 | 0.674949 | 2,277 | 21,129 | 6.045674 | 0.093983 | 0.026878 | 0.030873 | 0.031382 | 0.893506 | 0.875708 | 0.863722 | 0.849557 | 0.849266 | 0.842293 | 0 | 0.011389 | 0.227034 | 21,129 | 437 | 177 | 48.350114 | 0.831496 | 0.30664 | 0 | 0.770335 | 0 | 0 | 0.164187 | 0.087892 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.014354 | 0 | 0.138756 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
3efcd072f6961e6471eba22cbb2c9f77628e623b | 213 | py | Python | plugins/core/__init__.py | ajenti/ajen | 177c1a67278a7763ed06eb2f773d7b409a85ec77 | [
"MIT"
] | 3,777 | 2015-02-21T00:10:12.000Z | 2022-03-30T15:33:22.000Z | plugins/core/__init__.py | ajenti/ajen | 177c1a67278a7763ed06eb2f773d7b409a85ec77 | [
"MIT"
] | 749 | 2015-03-12T14:17:03.000Z | 2022-03-25T13:22:28.000Z | plugins/core/__init__.py | ajenti/ajen | 177c1a67278a7763ed06eb2f773d7b409a85ec77 | [
"MIT"
] | 687 | 2015-03-21T10:42:33.000Z | 2022-03-21T23:18:12.000Z | # pyflakes: disable-all
from .main import *
from .views.api import *
from .views.config import *
from .views.main import *
from .views.resource_server import *
from .views.push import *
from .views.tasks import *
| 23.666667 | 36 | 0.746479 | 31 | 213 | 5.096774 | 0.419355 | 0.379747 | 0.56962 | 0.240506 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14554 | 213 | 8 | 37 | 26.625 | 0.868132 | 0.098592 | 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 | 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 | 7 |
f5b8321a2435490b82bb0b28a7590e767a6d8f79 | 214 | py | Python | mmhoidet/core/__init__.py | noobying/mmhoidet | 138e3fbf34ecbc66f98ad26b10e08a9d49a61c38 | [
"Apache-2.0"
] | 2 | 2021-09-06T13:09:42.000Z | 2021-09-15T09:18:00.000Z | mmhoidet/core/__init__.py | noobying/mmhoidet | 138e3fbf34ecbc66f98ad26b10e08a9d49a61c38 | [
"Apache-2.0"
] | null | null | null | mmhoidet/core/__init__.py | noobying/mmhoidet | 138e3fbf34ecbc66f98ad26b10e08a9d49a61c38 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) OpenMMLab. All rights reserved.
from .utils import * # noqa: F401, F403
from .visualization import * # noqa
from .evaluation import * # noqa
from .bbox import * # noqa
from .hoi import * # noqa | 35.666667 | 47 | 0.696262 | 28 | 214 | 5.321429 | 0.571429 | 0.33557 | 0.281879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035088 | 0.200935 | 214 | 6 | 48 | 35.666667 | 0.836257 | 0.383178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
eb387114db73cd56e2cc97c2272eb1d6a83070c9 | 6,323 | py | Python | python/tests/temperatures_unit_test.py | Bengt/FanControl | 6b3958230e5eacf175e84d9a5927d74cd3f6b83a | [
"MIT"
] | 9 | 2015-11-25T13:39:22.000Z | 2018-10-16T21:09:10.000Z | python/tests/temperatures_unit_test.py | Bengt/FanControl | 6b3958230e5eacf175e84d9a5927d74cd3f6b83a | [
"MIT"
] | 6 | 2019-07-04T13:45:08.000Z | 2022-01-15T18:30:10.000Z | python/tests/temperatures_unit_test.py | Bengt/FanControl | 6b3958230e5eacf175e84d9a5927d74cd3f6b83a | [
"MIT"
] | 3 | 2020-08-12T13:31:50.000Z | 2021-06-16T22:12:20.000Z | """
Tests for the temperature data source.
"""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
from unittest.case import TestCase
from fancontrol.sense.temperatures import (ChipFeatureMismatchError,
NoSuchChipErro... | 31.773869 | 79 | 0.566978 | 615 | 6,323 | 5.539837 | 0.120325 | 0.068682 | 0.032286 | 0.038744 | 0.810684 | 0.801878 | 0.788083 | 0.758145 | 0.745817 | 0.732609 | 0 | 0.055688 | 0.338289 | 6,323 | 198 | 80 | 31.934343 | 0.758604 | 0.00601 | 0 | 0.75817 | 0 | 0 | 0.064043 | 0 | 0 | 0 | 0 | 0 | 0.124183 | 1 | 0.071895 | false | 0 | 0.03268 | 0 | 0.117647 | 0.006536 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
de423c2472822110d25fdc6f29793ba3e5d26ceb | 74 | py | Python | tests/utils.py | Trigition/pypeline | 239ac896a7bd8363a1bc4afd5fc6d2ef4450935d | [
"MIT"
] | null | null | null | tests/utils.py | Trigition/pypeline | 239ac896a7bd8363a1bc4afd5fc6d2ef4450935d | [
"MIT"
] | null | null | null | tests/utils.py | Trigition/pypeline | 239ac896a7bd8363a1bc4afd5fc6d2ef4450935d | [
"MIT"
] | null | null | null | def mul_by_2(num):
return num*2
def mul_by_3(num):
return num*3
| 10.571429 | 18 | 0.648649 | 16 | 74 | 2.75 | 0.4375 | 0.272727 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.243243 | 74 | 6 | 19 | 12.333333 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
de558ba3c7b671a7d1de870cb1810c203a6995b8 | 242 | py | Python | networkx/algorithms/traversal/__init__.py | tempcyc/networkx | cae83ba501c242567cb2454f97f851898276f06e | [
"BSD-3-Clause"
] | 12 | 2015-03-25T20:20:26.000Z | 2021-11-14T19:44:56.000Z | networkx/algorithms/traversal/__init__.py | tempcyc/networkx | cae83ba501c242567cb2454f97f851898276f06e | [
"BSD-3-Clause"
] | 71 | 2015-01-05T16:50:55.000Z | 2020-09-30T19:17:47.000Z | networkx/algorithms/traversal/__init__.py | tempcyc/networkx | cae83ba501c242567cb2454f97f851898276f06e | [
"BSD-3-Clause"
] | 14 | 2015-02-15T22:19:18.000Z | 2020-09-30T18:54:54.000Z | import networkx.algorithms.traversal.depth_first_search
from networkx.algorithms.traversal.depth_first_search import *
import networkx.algorithms.traversal.breadth_first_search
from networkx.algorithms.traversal.breadth_first_search import *
| 48.4 | 64 | 0.892562 | 30 | 242 | 6.933333 | 0.3 | 0.346154 | 0.519231 | 0.317308 | 0.884615 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049587 | 242 | 4 | 65 | 60.5 | 0.904348 | 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 | 1 | 1 | 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 | 9 |
de8bdd7deafc95032ffd2e271f3aa209baf3232c | 168 | py | Python | new_app/views.py | Sravan996/demo-app | b20410d78d09c7a6a30a35301133f1563b4eab33 | [
"MIT"
] | null | null | null | new_app/views.py | Sravan996/demo-app | b20410d78d09c7a6a30a35301133f1563b4eab33 | [
"MIT"
] | 5 | 2021-03-18T23:26:07.000Z | 2021-09-22T18:31:33.000Z | new_app/views.py | Sravan996/demo-app | b20410d78d09c7a6a30a35301133f1563b4eab33 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.shortcuts import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("Hello, world.")
| 18.666667 | 41 | 0.77381 | 21 | 168 | 6.190476 | 0.761905 | 0.153846 | 0.292308 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14881 | 168 | 8 | 42 | 21 | 0.909091 | 0.136905 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 1 | 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 | 1 | 1 | 1 | 0 | 0 | 8 |
ded7a0c680027b3374c3c07220afc66ee970919d | 373 | py | Python | tests/internal/strategies/test_strategies_partition_auto.py | frolovv/aws.ec2.compare | 582805823492f833d65c0441c4a14dce697c12aa | [
"Apache-2.0"
] | null | null | null | tests/internal/strategies/test_strategies_partition_auto.py | frolovv/aws.ec2.compare | 582805823492f833d65c0441c4a14dce697c12aa | [
"Apache-2.0"
] | null | null | null | tests/internal/strategies/test_strategies_partition_auto.py | frolovv/aws.ec2.compare | 582805823492f833d65c0441c4a14dce697c12aa | [
"Apache-2.0"
] | 1 | 2021-12-15T11:58:22.000Z | 2021-12-15T11:58:22.000Z |
# Testing module strategies.partition
import pytest
import ec2_compare.internal.strategies.partition
def test_get_internal_data_strategies_partition_get_instances_list():
assert len(ec2_compare.internal.strategies.partition.get_instances_list()) > 0
def test_get_internal_data_strategies_partition_get():
assert le... | 37.3 | 80 | 0.857909 | 50 | 373 | 6.02 | 0.36 | 0.378738 | 0.292359 | 0.27907 | 0.827243 | 0.61794 | 0.61794 | 0.61794 | 0 | 0 | 0 | 0.014409 | 0.069705 | 373 | 9 | 81 | 41.444444 | 0.853026 | 0.093834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 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 | 9 |
a0e17dcfa9b4b587766f6c8f8881b46a60f94800 | 143 | py | Python | src/django_handy_models/tests.py | Feelixe-tin/django-handy-models | dbc279ff95c5d7e5f5eaa308612d1d7fc3abb005 | [
"MIT"
] | 2 | 2021-06-12T20:32:27.000Z | 2021-06-25T06:37:05.000Z | src/django_handy_models/tests.py | Feelixe-tin/django-handy-models | dbc279ff95c5d7e5f5eaa308612d1d7fc3abb005 | [
"MIT"
] | null | null | null | src/django_handy_models/tests.py | Feelixe-tin/django-handy-models | dbc279ff95c5d7e5f5eaa308612d1d7fc3abb005 | [
"MIT"
] | null | null | null | from django.test import TestCase
class HandyModelsTestCase(TestCase):
fixtures = ['django_handy_models/fixtures/django_handy_models.json'] | 35.75 | 72 | 0.825175 | 17 | 143 | 6.705882 | 0.647059 | 0.245614 | 0.333333 | 0.438596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 143 | 4 | 72 | 35.75 | 0.876923 | 0 | 0 | 0 | 0 | 0 | 0.368056 | 0.368056 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 1 | 0 | 1 | 0 | 0 | 7 |
a0efcf2e22a2f06884bbf4d5b58fc770851807a5 | 205 | py | Python | coms/src/mapmerge/__init__.py | tylerferrara/coms | 5070b65836f0ff3538f787e4cbe46203355270ea | [
"MIT"
] | null | null | null | coms/src/mapmerge/__init__.py | tylerferrara/coms | 5070b65836f0ff3538f787e4cbe46203355270ea | [
"MIT"
] | 5 | 2022-02-11T00:22:24.000Z | 2022-02-15T01:31:28.000Z | coms/src/mapmerge/__init__.py | tylerferrara/coms | 5070b65836f0ff3538f787e4cbe46203355270ea | [
"MIT"
] | null | null | null | from mapmerge.constants import *
from mapmerge.keypoint_merge import *
from mapmerge.merge_utils import *
from mapmerge.ros_utils import *
from mapmerge.hough_merge import *
from mapmerge.service import *
| 29.285714 | 37 | 0.82439 | 28 | 205 | 5.892857 | 0.357143 | 0.436364 | 0.545455 | 0.278788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117073 | 205 | 6 | 38 | 34.166667 | 0.911602 | 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 | 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 | 8 |
9d2be5a4699f2d1df5be2d2c855fd50cc635a501 | 10,748 | py | Python | tests/validators/test_data_set.py | ScholarPack/api-tools | 6547e0f289391d2a3fc69eaafebc80f92c406513 | [
"MIT"
] | 3 | 2020-07-04T18:51:01.000Z | 2020-07-29T08:41:11.000Z | tests/validators/test_data_set.py | ScholarPack/api-tools | 6547e0f289391d2a3fc69eaafebc80f92c406513 | [
"MIT"
] | 6 | 2020-07-08T09:26:36.000Z | 2021-09-23T11:10:40.000Z | tests/validators/test_data_set.py | ScholarPack/flask-api-tools | 6547e0f289391d2a3fc69eaafebc80f92c406513 | [
"MIT"
] | null | null | null | from cerberus import DocumentError
from datetime import date, datetime
from flask_api_tools.validators import DataSet, Validator
import pytest
class TestDataSet:
def test_validate_object(self):
class Example(DataSet):
schema = {
"string_1": {"type": "string", "check_with": "uui... | 31.893175 | 73 | 0.526424 | 986 | 10,748 | 5.494929 | 0.080122 | 0.033592 | 0.062016 | 0.077519 | 0.903285 | 0.877076 | 0.855666 | 0.855666 | 0.809524 | 0.736988 | 0 | 0.090175 | 0.355136 | 10,748 | 336 | 74 | 31.988095 | 0.691531 | 0 | 0 | 0.72695 | 0 | 0 | 0.200223 | 0.070339 | 0 | 0 | 0 | 0 | 0.124113 | 1 | 0.042553 | false | 0 | 0.014184 | 0 | 0.109929 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
9d520c28806c199f0a0461cfe3bae06f96e0124c | 174 | py | Python | platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/nixi/calculators/calc_freq_offset_comp.py | lmnotran/gecko_sdk | 2e82050dc8823c9fe0e8908c1b2666fb83056230 | [
"Zlib"
] | 82 | 2016-06-29T17:24:43.000Z | 2021-04-16T06:49:17.000Z | platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/nixi/calculators/calc_freq_offset_comp.py | lmnotran/gecko_sdk | 2e82050dc8823c9fe0e8908c1b2666fb83056230 | [
"Zlib"
] | 6 | 2022-01-12T18:22:08.000Z | 2022-03-25T10:19:27.000Z | platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/nixi/calculators/calc_freq_offset_comp.py | lmnotran/gecko_sdk | 2e82050dc8823c9fe0e8908c1b2666fb83056230 | [
"Zlib"
] | 56 | 2016-08-02T10:50:50.000Z | 2021-07-19T08:57:34.000Z | from pyradioconfig.parts.jumbo.calculators.calc_freq_offset_comp import CALC_Freq_Offset_Comp_jumbo
class CALC_Freq_Offset_Comp_nixi(CALC_Freq_Offset_Comp_jumbo):
pass | 29 | 99 | 0.885057 | 27 | 174 | 5.148148 | 0.481481 | 0.230216 | 0.402878 | 0.517986 | 0.330935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074713 | 174 | 6 | 100 | 29 | 0.863354 | 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 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 9 |
c23391c86fe90f92feed5932fe15aaa4022e147f | 27,727 | py | Python | datcore-sdk/python/datcore_sdk/api/annotations_api.py | mguidon/aiohttp-dsm | 612e4c7f6f73df7d6752269965c428fda0276191 | [
"MIT"
] | null | null | null | datcore-sdk/python/datcore_sdk/api/annotations_api.py | mguidon/aiohttp-dsm | 612e4c7f6f73df7d6752269965c428fda0276191 | [
"MIT"
] | null | null | null | datcore-sdk/python/datcore_sdk/api/annotations_api.py | mguidon/aiohttp-dsm | 612e4c7f6f73df7d6752269965c428fda0276191 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Blackfynn Swagger
Swagger documentation for the Blackfynn api # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
fro... | 39.61 | 137 | 0.624698 | 3,198 | 27,727 | 5.10788 | 0.050657 | 0.050934 | 0.077135 | 0.030854 | 0.95225 | 0.944965 | 0.930089 | 0.92917 | 0.91962 | 0.918886 | 0 | 0.01418 | 0.290367 | 27,727 | 699 | 138 | 39.666667 | 0.81602 | 0.306344 | 0 | 0.759259 | 1 | 0 | 0.177521 | 0.050736 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039683 | false | 0 | 0.010582 | 0 | 0.108466 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
c23a841a37858c79e582eb2af44025fd8f43ea50 | 22,519 | py | Python | tests/unit/test_master.py | MeAndTheFirefly/salt | 77fc3ec3ee25c1b769cc66ddee09067d18080844 | [
"Apache-2.0"
] | 2 | 2016-11-14T15:08:53.000Z | 2016-11-20T09:25:30.000Z | tests/unit/test_master.py | snetsystems/salt | 6f8bedfc2453624e00037f80b8099ed010fad506 | [
"Apache-2.0"
] | 3 | 2021-03-31T19:53:24.000Z | 2021-12-13T20:46:19.000Z | tests/unit/test_master.py | snetsystems/salt | 6f8bedfc2453624e00037f80b8099ed010fad506 | [
"Apache-2.0"
] | 2 | 2020-11-04T06:32:02.000Z | 2020-11-06T11:01:18.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import salt.config
import salt.master
from tests.support.helpers import slowTest
from tests.support.mock import MagicMock, patch
from tests.support.unit import TestCase
class TransportMethodsTest(TestCase):
def test_transport_methods(self):
... | 34.016616 | 101 | 0.558062 | 2,137 | 22,519 | 5.605054 | 0.087506 | 0.026883 | 0.070129 | 0.032643 | 0.896393 | 0.883203 | 0.863416 | 0.85657 | 0.842545 | 0.824261 | 0 | 0.000066 | 0.331365 | 22,519 | 661 | 102 | 34.068079 | 0.795444 | 0.117989 | 0 | 0.720238 | 0 | 0 | 0.260144 | 0.10045 | 0 | 0 | 0 | 0 | 0.061508 | 1 | 0.065476 | false | 0.003968 | 0.011905 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
5f0d1f28da677613425d2d9e28e889364af266dd | 1,506 | py | Python | tests/test_91.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | tests/test_91.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | tests/test_91.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import pytest
"""
Test 91. Decode Ways
"""
@pytest.fixture(scope="session")
def init_variables_91():
from src.leetcode_91_decode_ways import Solution
solution = Solution()
def _init_variables_91():
return solution
yield _init_variables_91
class TestClass91:
def... | 21.826087 | 59 | 0.703851 | 200 | 1,506 | 4.95 | 0.17 | 0.288889 | 0.333333 | 0.153535 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0.071895 | 0.187251 | 1,506 | 68 | 60 | 22.147059 | 0.736928 | 0.02656 | 0 | 1 | 0 | 0 | 0.021307 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.352941 | false | 0 | 0.117647 | 0.058824 | 0.588235 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 11 |
5f1c6d7cba7bac5bca1df3a194065e24c31f8016 | 1,432 | bzl | Python | ttoo/moonx.bzl | csuyangpeng/bazelexample_hitcache | 2878753694ace940bd92705b8aa8e9a15b795a03 | [
"Apache-2.0"
] | 1 | 2019-03-20T12:38:25.000Z | 2019-03-20T12:38:25.000Z | ttoo/moonx.bzl | csuyangpeng/bazelexample_hitcache | 2878753694ace940bd92705b8aa8e9a15b795a03 | [
"Apache-2.0"
] | null | null | null | ttoo/moonx.bzl | csuyangpeng/bazelexample_hitcache | 2878753694ace940bd92705b8aa8e9a15b795a03 | [
"Apache-2.0"
] | null | null | null |
def mx_cc_copts():
return ["-fdiagnostics-color=always", "-Werror"]
def mx_cuda_copts():
return ["-xcuda", "-std=c++11"]
def mx_cc_library(
name,
srcs = [],
deps = [],
copts = [],
**kwargs):
native.cc_library(
name = name,
copts = mx_cc_copts() + c... | 17.463415 | 52 | 0.425978 | 138 | 1,432 | 4.210145 | 0.15942 | 0.137694 | 0.10327 | 0.146299 | 0.839931 | 0.839931 | 0.839931 | 0.786575 | 0.786575 | 0.786575 | 0 | 0.002472 | 0.435056 | 1,432 | 81 | 53 | 17.679012 | 0.715698 | 0 | 0 | 0.782609 | 0 | 0 | 0.034242 | 0.018169 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101449 | false | 0 | 0 | 0.028986 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
a043b701797543abb78c74811fe0477e46fe801b | 48 | py | Python | bnpy/mergemove/__init__.py | jun2tong/bnp-anomaly | c7fa106b5bb29ed6688a3d91e3f302a0a130b896 | [
"BSD-3-Clause"
] | null | null | null | bnpy/mergemove/__init__.py | jun2tong/bnp-anomaly | c7fa106b5bb29ed6688a3d91e3f302a0a130b896 | [
"BSD-3-Clause"
] | null | null | null | bnpy/mergemove/__init__.py | jun2tong/bnp-anomaly | c7fa106b5bb29ed6688a3d91e3f302a0a130b896 | [
"BSD-3-Clause"
] | null | null | null | from .MPlanner import selectCandidateMergePairs
| 24 | 47 | 0.895833 | 4 | 48 | 10.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 48 | 1 | 48 | 48 | 0.977273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
a05cd3f59f0625997dde54e36194ec4b3a496972 | 4,649 | py | Python | custom/icds_reports/migrations/0194_auto_20200528_1024.py | dankohn/commcare-hq | 42c40ad5881485d5192aab3dea5696942ee40810 | [
"BSD-3-Clause"
] | 1 | 2020-07-14T13:00:23.000Z | 2020-07-14T13:00:23.000Z | custom/icds_reports/migrations/0194_auto_20200528_1024.py | dankohn/commcare-hq | 42c40ad5881485d5192aab3dea5696942ee40810 | [
"BSD-3-Clause"
] | null | null | null | custom/icds_reports/migrations/0194_auto_20200528_1024.py | dankohn/commcare-hq | 42c40ad5881485d5192aab3dea5696942ee40810 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.28 on 2020-05-28 10:24
from __future__ import unicode_literals
from django.db import migrations, models
from custom.icds_reports.utils.migrations import get_view_migrations
class Migration(migrations.Migration):
dependencies = [
('icds_reports', '0193_a... | 33.934307 | 68 | 0.59045 | 418 | 4,649 | 6.284689 | 0.138756 | 0.164446 | 0.210126 | 0.246669 | 0.90217 | 0.90217 | 0.90217 | 0.887324 | 0.864484 | 0.864484 | 0 | 0.023647 | 0.308669 | 4,649 | 136 | 69 | 34.183824 | 0.793715 | 0.014842 | 0 | 0.736434 | 1 | 0 | 0.218484 | 0.131309 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.023256 | 0 | 0.046512 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
a06faea34dd6f63bdb6542f24a3d852383812013 | 23,973 | py | Python | nova/tests/unit/api/openstack/compute/test_instance_usage_audit_log.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/api/openstack/compute/test_instance_usage_audit_log.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/api/openstack/compute/test_instance_usage_audit_log.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | 2 | 2017-07-20T17:31:34.000Z | 2020-07-24T02:42:19.000Z | begin_unit
comment|'# Copyright (c) 2012 OpenStack Foundation'
nl|'\n'
comment|'# All Rights Reserved.'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n... | 12.046734 | 88 | 0.595503 | 3,553 | 23,973 | 3.939769 | 0.068111 | 0.164595 | 0.075011 | 0.076011 | 0.855765 | 0.820117 | 0.792327 | 0.757394 | 0.728747 | 0.697385 | 0 | 0.013231 | 0.098319 | 23,973 | 1,989 | 89 | 12.05279 | 0.634345 | 0 | 0 | 0.951232 | 0 | 0 | 0.349518 | 0.043007 | 0 | 0 | 0 | 0 | 0.023127 | 0 | null | null | 0 | 0.005028 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
a0706b31d2c1a03975ca77a33a608300d74af52e | 3,712 | py | Python | tests/test_provider_davidji99_herokux.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | tests/test_provider_davidji99_herokux.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | tests/test_provider_davidji99_herokux.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | # tests/test_provider_davidji99_herokux.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:18:42 UTC)
def test_provider_import():
import terrascript.provider.davidji99.herokux
def test_resource_import():
from terrascript.resource.davidji99.herokux import herokux_app_container_release
fro... | 34.691589 | 88 | 0.813039 | 425 | 3,712 | 6.863529 | 0.254118 | 0.213918 | 0.26397 | 0.34796 | 0.773055 | 0.744943 | 0.741858 | 0.601988 | 0.308536 | 0 | 0 | 0.029907 | 0.135237 | 3,712 | 106 | 89 | 35.018868 | 0.878816 | 0.135776 | 0 | 0.117647 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0 | 1 | 0.058824 | true | 0 | 0.764706 | 0 | 0.823529 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 9 |
a0829bccb2f43404a086a5d01022c9560fdf617b | 34,308 | py | Python | psr/migrations/0001_initial.py | dennereed/paleocore | d6da6c39cde96050ee4b9e7213ec1200530cbeee | [
"MIT"
] | 1 | 2021-02-05T19:50:13.000Z | 2021-02-05T19:50:13.000Z | psr/migrations/0001_initial.py | dennereed/paleocore | d6da6c39cde96050ee4b9e7213ec1200530cbeee | [
"MIT"
] | 59 | 2020-06-17T22:21:51.000Z | 2022-02-10T05:00:01.000Z | psr/migrations/0001_initial.py | dennereed/paleocore | d6da6c39cde96050ee4b9e7213ec1200530cbeee | [
"MIT"
] | 2 | 2020-07-01T14:11:09.000Z | 2020-08-10T17:27:26.000Z | # Generated by Django 2.2.13 on 2021-02-05 15:17
import ckeditor.fields
import django.contrib.gis.db.models.fields
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operati... | 76.923767 | 266 | 0.633293 | 3,850 | 34,308 | 5.487013 | 0.082857 | 0.079243 | 0.054533 | 0.081799 | 0.850272 | 0.829586 | 0.793467 | 0.769941 | 0.740686 | 0.667834 | 0 | 0.016579 | 0.226419 | 34,308 | 445 | 267 | 77.096629 | 0.77939 | 0.001341 | 0 | 0.468037 | 1 | 0.002283 | 0.215966 | 0.01763 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027397 | 0 | 0.03653 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2627b3197635723494fba664bdff83195be808a7 | 2,754 | py | Python | tests/test_entrypoint.py | Talentia-Software-OSS/github-action-python-template | d49b2f30188d608394b5be838a79aafd1746eeff | [
"BSD-3-Clause"
] | null | null | null | tests/test_entrypoint.py | Talentia-Software-OSS/github-action-python-template | d49b2f30188d608394b5be838a79aafd1746eeff | [
"BSD-3-Clause"
] | null | null | null | tests/test_entrypoint.py | Talentia-Software-OSS/github-action-python-template | d49b2f30188d608394b5be838a79aafd1746eeff | [
"BSD-3-Clause"
] | 1 | 2021-09-22T10:10:48.000Z | 2021-09-22T10:10:48.000Z | from unittest.mock import patch
from github_action_template.entrypoint import main
from github_action_template.framework import ActionError
@patch("github_action_template.entrypoint.sys")
@patch("github_action_template.entrypoint.os")
@patch("github_action_template.entrypoint.importlib")
@patch("github_action_templa... | 43.03125 | 105 | 0.775599 | 383 | 2,754 | 5.219321 | 0.130548 | 0.108054 | 0.18009 | 0.255128 | 0.88094 | 0.88094 | 0.88094 | 0.86043 | 0.842421 | 0.842421 | 0 | 0.001591 | 0.087146 | 2,754 | 63 | 106 | 43.714286 | 0.793556 | 0 | 0 | 0.695652 | 0 | 0 | 0.3061 | 0.242556 | 0 | 0 | 0 | 0 | 0.26087 | 1 | 0.086957 | false | 0 | 0.391304 | 0 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 9 |
26d357892cb88f627e237a481dae79a2359d72f0 | 736,566 | py | Python | rl_agents/awac_agent_small_8_32_1_norm_v3-160_deterministic.py | IsaiahPressman/Kaggle_Santa_2020 | ff5c6aa78dbe234cef338f4c721cc30d7dbc3df8 | [
"MIT"
] | null | null | null | rl_agents/awac_agent_small_8_32_1_norm_v3-160_deterministic.py | IsaiahPressman/Kaggle_Santa_2020 | ff5c6aa78dbe234cef338f4c721cc30d7dbc3df8 | [
"MIT"
] | null | null | null | rl_agents/awac_agent_small_8_32_1_norm_v3-160_deterministic.py | IsaiahPressman/Kaggle_Santa_2020 | ff5c6aa78dbe234cef338f4c721cc30d7dbc3df8 | [
"MIT"
] | null | null | null | serialized_string = b'gAN9cQBYEAAAAG1vZGVsX3N0YXRlX2RpY3RxAWNjb2xsZWN0aW9ucwpPcmRlcmVkRGljdApxAilScQMoWCEAAABiYXNlLmxheWVycy4wLm1lc3NhZ2VfcGFzc2luZ19tYXRxBGN0b3JjaC5fdXRpbHMKX3JlYnVpbGRfdGVuc29yX3YyCnEFKGN0b3JjaC5zdG9yYWdlCl9sb2FkX2Zyb21fYnl0ZXMKcQZCPJ0AAIACigps/JxG+SBqqFAZLoACTekDLoACfXEAKFgQAAAAcHJvdG9jb2xfdmVyc2lvbn... | 1,938.331579 | 720,495 | 0.935091 | 43,645 | 736,566 | 15.767923 | 0.121961 | 1.487465 | 2.159989 | 2.785041 | 0.809143 | 0.80856 | 0.807991 | 0.807571 | 0.807318 | 0.80667 | 0 | 0.177527 | 0.005818 | 736,566 | 379 | 720,496 | 1,943.44591 | 0.762263 | 0.000934 | 0 | 0.546358 | 0 | 0.003311 | 0.980282 | 0.979805 | 0 | 1 | 0 | 0.002639 | 0.003311 | 1 | 0.10596 | false | 0.02649 | 0.016556 | 0.009934 | 0.218543 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 15 |
f894ed03cc2d271ac7e83b32157f17d94082c1cf | 15,894 | py | Python | userframes.py | Aliossandro/WDOntoHistory | d9b9abd73a037abab25e36a990bf1d2be8e54ed5 | [
"MIT"
] | null | null | null | userframes.py | Aliossandro/WDOntoHistory | d9b9abd73a037abab25e36a990bf1d2be8e54ed5 | [
"MIT"
] | null | null | null | userframes.py | Aliossandro/WDOntoHistory | d9b9abd73a037abab25e36a990bf1d2be8e54ed5 | [
"MIT"
] | null | null | null | import pandas as pd
import psycopg2
import pickle
import numpy as np
# counterS = 0
# global counterS
# global valGlob
# from sqlalchemy import create_engine
# -*- coding: utf-8 -*-
import os
import sys
import copy
# fileName = '/Users/alessandro/Documents/PhD/OntoHistory/WDTaxo_October2014.csv'
# connection paramet... | 42.84097 | 730 | 0.510255 | 2,296 | 15,894 | 3.466463 | 0.09277 | 0.021108 | 0.045232 | 0.054278 | 0.859153 | 0.848348 | 0.843071 | 0.839553 | 0.839553 | 0.839553 | 0 | 0.095082 | 0.289984 | 15,894 | 370 | 731 | 42.956757 | 0.610191 | 0.083868 | 0 | 0.821577 | 0 | 0.053942 | 0.508101 | 0.205171 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016598 | false | 0.004149 | 0.029046 | 0 | 0.049793 | 0.024896 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
f8a2a6433069df6a41eee5c260ab9bb65e689684 | 4,882 | py | Python | tests/commands/test_templates_status.py | hs4man21/datakit-project | 97fe2fc7d900fd1ae22e6f40a5d1302ab2860abe | [
"0BSD"
] | 24 | 2018-03-09T05:36:29.000Z | 2022-03-10T09:18:47.000Z | tests/commands/test_templates_status.py | hs4man21/datakit-project | 97fe2fc7d900fd1ae22e6f40a5d1302ab2860abe | [
"0BSD"
] | 32 | 2017-02-03T22:55:12.000Z | 2021-08-11T01:40:54.000Z | tests/commands/test_templates_status.py | hs4man21/datakit-project | 97fe2fc7d900fd1ae22e6f40a5d1302ab2860abe | [
"0BSD"
] | 4 | 2018-03-21T11:16:30.000Z | 2022-03-31T17:29:38.000Z | import os
import re
import shutil
import subprocess
from unittest import mock
import cookiecutter.config as cc_config
import pytest
from datakit_project import cookiecutters, Templates
from datakit_project import exceptions as dkit_exceptions
def test_noupdate_status(caplog, cookiecutter_home, deploy_template, monk... | 41.372881 | 109 | 0.582343 | 555 | 4,882 | 5.005405 | 0.207207 | 0.034557 | 0.023038 | 0.043197 | 0.859251 | 0.859251 | 0.859251 | 0.859251 | 0.843773 | 0.843773 | 0 | 0.069316 | 0.31442 | 4,882 | 117 | 110 | 41.726496 | 0.760681 | 0.109996 | 0 | 0.701031 | 0 | 0.020619 | 0.299538 | 0.033256 | 0 | 0 | 0 | 0 | 0.061856 | 1 | 0.020619 | false | 0 | 0.092784 | 0 | 0.113402 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
f8b176789cd0254772d99a59b6ab6781d184ae9a | 4,276 | py | Python | process_annotation.py | CCC-123/ECCVC | 322009a3423dba831cb3ae4182e7129be3441e70 | [
"MIT"
] | null | null | null | process_annotation.py | CCC-123/ECCVC | 322009a3423dba831cb3ae4182e7129be3441e70 | [
"MIT"
] | null | null | null | process_annotation.py | CCC-123/ECCVC | 322009a3423dba831cb3ae4182e7129be3441e70 | [
"MIT"
] | null | null | null | # -----------------------------------------------------
# Transform Annotation Information to Structured Data
#
# Author: Liangqi Li
# Creating Date: May 30, 2018
# Latest rectifying: May 30, 2018
# -----------------------------------------------------
import os
import json
import numpy as np
import pandas as pd
def... | 30.326241 | 78 | 0.554724 | 559 | 4,276 | 4.026834 | 0.21288 | 0.031986 | 0.026655 | 0.037317 | 0.825411 | 0.788094 | 0.788094 | 0.765882 | 0.765882 | 0.765882 | 0 | 0.012238 | 0.273854 | 4,276 | 140 | 79 | 30.542857 | 0.712721 | 0.126988 | 0 | 0.767677 | 0 | 0 | 0.107008 | 0.01752 | 0 | 0 | 0 | 0 | 0.020202 | 1 | 0.030303 | false | 0 | 0.040404 | 0 | 0.070707 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
3e40f9fb0756b661895559fe9f1519fdf7d23cec | 2,459 | py | Python | create_invoices.py | MrDionesalvi/APU | a992cffca3332bcc7ba1e3ed5d42f3f4789d0b8b | [
"MIT"
] | null | null | null | create_invoices.py | MrDionesalvi/APU | a992cffca3332bcc7ba1e3ed5d42f3f4789d0b8b | [
"MIT"
] | null | null | null | create_invoices.py | MrDionesalvi/APU | a992cffca3332bcc7ba1e3ed5d42f3f4789d0b8b | [
"MIT"
] | null | null | null | from utils import *
from database import Database
from datetime import date
import html
import json
def create_Allinvoice():
users = get_Users()
today = date.today()
datetoPrint = today.strftime('%d-%m-%Y')
for i in json.loads(users):
data = {
'common_bees': 0,
... | 31.126582 | 120 | 0.52867 | 275 | 2,459 | 4.538182 | 0.207273 | 0.040064 | 0.070513 | 0.057692 | 0.847756 | 0.847756 | 0.847756 | 0.847756 | 0.847756 | 0.782051 | 0 | 0.017115 | 0.334689 | 2,459 | 79 | 121 | 31.126582 | 0.745721 | 0 | 0 | 0.787879 | 0 | 0 | 0.163728 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.075758 | 0 | 0.106061 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
3e5fe053198c3f814cf81735accdc4572a776617 | 3,872 | py | Python | MCBS_dividendos.py | cadovid/finance-math-bsmc | ab720c62fab4e2a20b12839689724942b950b44b | [
"Apache-2.0"
] | null | null | null | MCBS_dividendos.py | cadovid/finance-math-bsmc | ab720c62fab4e2a20b12839689724942b950b44b | [
"Apache-2.0"
] | null | null | null | MCBS_dividendos.py | cadovid/finance-math-bsmc | ab720c62fab4e2a20b12839689724942b950b44b | [
"Apache-2.0"
] | 1 | 2020-07-05T11:40:33.000Z | 2020-07-05T11:40:33.000Z | # -*- coding: utf-8 -*-
"""
En este apartado se establecen las funciones con los metodos de Monte Carlo y
Black Scholes para evaluar opciones europeas vainillas de compra y de venta con
dividendos.
Funcion metodo de Monte Carlo:
Permite estimar el valor de una opcion vainilla europea tanto de compra como de
... | 48.4 | 113 | 0.630424 | 691 | 3,872 | 3.523878 | 0.206946 | 0.014784 | 0.049281 | 0.034497 | 0.863244 | 0.863244 | 0.863244 | 0.863244 | 0.854209 | 0.822177 | 0 | 0.054726 | 0.221333 | 3,872 | 79 | 114 | 49.012658 | 0.752902 | 0.371643 | 0 | 0.8 | 0 | 0 | 0.268147 | 0 | 0 | 0 | 0 | 0.050633 | 0 | 1 | 0.044444 | false | 0 | 0.066667 | 0 | 0.155556 | 0.266667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
3e8f55b0523dbc33877d3dec73cc5ce8996a623b | 37,341 | py | Python | src/test/python/thalesians/tsa/testdistrs.py | saarahrasheed/tsa | e4460f707eeecb737663c48d8fc3245f0acb124c | [
"Apache-2.0"
] | null | null | null | src/test/python/thalesians/tsa/testdistrs.py | saarahrasheed/tsa | e4460f707eeecb737663c48d8fc3245f0acb124c | [
"Apache-2.0"
] | null | null | null | src/test/python/thalesians/tsa/testdistrs.py | saarahrasheed/tsa | e4460f707eeecb737663c48d8fc3245f0acb124c | [
"Apache-2.0"
] | null | null | null | import unittest
import numpy as np
import numpy.testing as npt
import thalesians.tsa.distrs as distrs
import thalesians.tsa.numpyutils as npu
import thalesians.tsa.randomness as rnd
import thalesians.tsa.stats as stats
class TestDistrs(unittest.TestCase):
def test_wide_sense_distr(self):
std_... | 65.054007 | 152 | 0.654562 | 4,935 | 37,341 | 4.642756 | 0.078622 | 0.084454 | 0.140756 | 0.187675 | 0.887221 | 0.861208 | 0.834323 | 0.793733 | 0.744413 | 0.689988 | 0 | 0.141964 | 0.216197 | 37,341 | 573 | 153 | 65.167539 | 0.640871 | 0.054337 | 0 | 0.308163 | 0 | 0 | 0.00023 | 0 | 0 | 0 | 0 | 0 | 0.591837 | 1 | 0.012245 | false | 0 | 0.014286 | 0 | 0.028571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
e455dd81cff2752c7630005b8aa15c51052f74d5 | 55,326 | py | Python | SBaaS_quantification/stage01_quantification_replicatesMI_query.py | dmccloskey/SBaaS_quantification | b2a9c7a9a0d318f22ff20e311f94c213852ba914 | [
"MIT"
] | null | null | null | SBaaS_quantification/stage01_quantification_replicatesMI_query.py | dmccloskey/SBaaS_quantification | b2a9c7a9a0d318f22ff20e311f94c213852ba914 | [
"MIT"
] | null | null | null | SBaaS_quantification/stage01_quantification_replicatesMI_query.py | dmccloskey/SBaaS_quantification | b2a9c7a9a0d318f22ff20e311f94c213852ba914 | [
"MIT"
] | null | null | null | #lims
from SBaaS_LIMS.lims_experiment_postgresql_models import *
from SBaaS_LIMS.lims_sample_postgresql_models import *
from .stage01_quantification_replicatesMI_postgresql_models import *
from SBaaS_base.sbaas_base_query_update import sbaas_base_query_update
from SBaaS_base.sbaas_base_query_drop import sbaas_base_qu... | 67.143204 | 236 | 0.686639 | 5,647 | 55,326 | 6.23818 | 0.03099 | 0.212564 | 0.266983 | 0.297244 | 0.908337 | 0.893746 | 0.875153 | 0.849008 | 0.833707 | 0.818435 | 0 | 0.017911 | 0.25019 | 55,326 | 824 | 237 | 67.143204 | 0.831236 | 0.009363 | 0 | 0.81746 | 0 | 0 | 0.043526 | 0.020367 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.015873 | null | null | 0.050265 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
90318b614fea4f63a31ee633c4a3edd9c2609e6e | 150 | py | Python | cuda-lip/LIP/__init__.py | sebgao/LIP | 6724ec63c1f1ebefa25d7269e29d17c4411a7941 | [
"MIT"
] | 209 | 2019-08-13T01:51:49.000Z | 2022-03-28T09:59:28.000Z | cuda-lip/LIP/__init__.py | Abel1997/LIP | 6724ec63c1f1ebefa25d7269e29d17c4411a7941 | [
"MIT"
] | 12 | 2019-08-14T07:39:47.000Z | 2021-09-24T10:08:55.000Z | cuda-lip/LIP/__init__.py | Abel1997/LIP | 6724ec63c1f1ebefa25d7269e29d17c4411a7941 | [
"MIT"
] | 26 | 2019-08-15T02:37:05.000Z | 2021-12-10T06:32:40.000Z | from .pyinterface import cuda_lip2d, primitive_lip2d, inplace_primitive_lip2d
__all__ = ['cuda_lip2d', 'primitive_lip2d', 'inplace_primitive_lip2d']
| 37.5 | 77 | 0.826667 | 18 | 150 | 6.222222 | 0.444444 | 0.5 | 0.321429 | 0.410714 | 0.785714 | 0.785714 | 0.785714 | 0 | 0 | 0 | 0 | 0.043478 | 0.08 | 150 | 3 | 78 | 50 | 0.768116 | 0 | 0 | 0 | 0 | 0 | 0.32 | 0.153333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 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 | 8 |
904a27257da3f8a0865fe9ed739f17761a8040da | 1,617 | py | Python | src/user/serializers.py | ravihansa/django-multiple-user-auth | 7b6d1c783fc72d30cb7a5bcdf3a262f6ac0772b1 | [
"bzip2-1.0.6"
] | 1 | 2019-10-07T15:26:24.000Z | 2019-10-07T15:26:24.000Z | src/user/serializers.py | ravihansa/django-multiple-user-auth | 7b6d1c783fc72d30cb7a5bcdf3a262f6ac0772b1 | [
"bzip2-1.0.6"
] | null | null | null | src/user/serializers.py | ravihansa/django-multiple-user-auth | 7b6d1c783fc72d30cb7a5bcdf3a262f6ac0772b1 | [
"bzip2-1.0.6"
] | null | null | null | from rest_framework import serializers
from .models import User, Customer, Merchant
import bcrypt
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = (
"id",
"email",
"phone_no",
"password",
"pic_path",
... | 24.134328 | 65 | 0.531849 | 144 | 1,617 | 5.826389 | 0.277778 | 0.123957 | 0.071514 | 0.125149 | 0.805721 | 0.805721 | 0.805721 | 0.805721 | 0.805721 | 0.805721 | 0 | 0.001946 | 0.364255 | 1,617 | 66 | 66 | 24.5 | 0.814202 | 0 | 0 | 0.767857 | 0 | 0 | 0.083488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.107143 | 0.053571 | 0.035714 | 0.303571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
5f6aa3c6baca756c3c7b4985ef655dc9c3434ddc | 31 | py | Python | tiankafei-code-python/demo/package1/__init__.py | tiankafei/java | 9ff39cb47b8f2144851856b4412b1b0b7781cb09 | [
"Apache-2.0"
] | 1 | 2021-08-23T03:10:33.000Z | 2021-08-23T03:10:33.000Z | tiankafei-code-python/demo/package1/__init__.py | tiankafei/java | 9ff39cb47b8f2144851856b4412b1b0b7781cb09 | [
"Apache-2.0"
] | 8 | 2020-09-02T15:14:03.000Z | 2021-01-08T00:34:26.000Z | tiankafei-code-python/demo/package1/__init__.py | tiankafei/java | 9ff39cb47b8f2144851856b4412b1b0b7781cb09 | [
"Apache-2.0"
] | 2 | 2020-11-25T07:58:22.000Z | 2021-01-28T00:15:11.000Z | # 作者:甜咖啡
# 新建时间:2021/4/6 20:27
| 10.333333 | 21 | 0.612903 | 8 | 31 | 2.375 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 0.16129 | 31 | 2 | 22 | 15.5 | 0.346154 | 0.83871 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5f9c25c158f4836098ae4c10841956609ccf413e | 1,481 | py | Python | venv/lib/python2.7/site-packages/pychart/afm/Utopia_Bold.py | Christian-Castro/castro_odoo8 | 8247fdb20aa39e043b6fa0c4d0af509462ab3e00 | [
"Unlicense"
] | 1 | 2019-12-19T01:53:13.000Z | 2019-12-19T01:53:13.000Z | venv/lib/python2.7/site-packages/pychart/afm/Utopia_Bold.py | Christian-Castro/castro_odoo8 | 8247fdb20aa39e043b6fa0c4d0af509462ab3e00 | [
"Unlicense"
] | null | null | null | venv/lib/python2.7/site-packages/pychart/afm/Utopia_Bold.py | Christian-Castro/castro_odoo8 | 8247fdb20aa39e043b6fa0c4d0af509462ab3e00 | [
"Unlicense"
] | null | null | null | # AFM font Utopia-Bold (path: /usr/share/fonts/afms/adobe/putb8a.afm).
# Derived from Ghostscript distribution.
# Go to www.cs.wisc.edu/~ghost to get the Ghostcript source code.
import dir
dir.afm["Utopia-Bold"] = (500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, ... | 246.833333 | 1,291 | 0.621202 | 287 | 1,481 | 3.205575 | 0.404181 | 0.586957 | 0.802174 | 0.991304 | 0.361957 | 0.326087 | 0.326087 | 0.3 | 0.3 | 0.267391 | 0 | 0.632585 | 0.187711 | 1,481 | 5 | 1,292 | 296.2 | 0.13217 | 0.115463 | 0 | 0 | 0 | 0 | 0.008423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 10 |
396ff9dd40d64b9f6267cdb2eff448df96b5d8ea | 2,085 | py | Python | tests/test_views_oauth2.py | chaostoolkit/chaosplatform-auth | 35d99e4f87d6e1f07699ce7701b07391065fb3a7 | [
"Apache-2.0"
] | null | null | null | tests/test_views_oauth2.py | chaostoolkit/chaosplatform-auth | 35d99e4f87d6e1f07699ce7701b07391065fb3a7 | [
"Apache-2.0"
] | 2 | 2020-06-03T12:44:25.000Z | 2020-06-22T09:32:01.000Z | tests/test_views_oauth2.py | chaostoolkit/chaosplatform-auth | 35d99e4f87d6e1f07699ce7701b07391065fb3a7 | [
"Apache-2.0"
] | null | null | null | import uuid
from uuid import UUID
from chaosplt_auth.views.web.backend import OAuthBackend
def test_get_oauth_token_before_create(oauth_backend: OAuthBackend,
user_id: UUID):
token = oauth_backend.get_oauth_token(user_id)
assert token == None
def test_get_oauth_token_... | 31.590909 | 76 | 0.683453 | 272 | 2,085 | 4.841912 | 0.121324 | 0.159453 | 0.20653 | 0.182232 | 0.839787 | 0.781321 | 0.781321 | 0.754746 | 0.724374 | 0.724374 | 0 | 0.024661 | 0.222062 | 2,085 | 65 | 77 | 32.076923 | 0.7873 | 0 | 0 | 0.627907 | 0 | 0 | 0.046523 | 0 | 0 | 0 | 0 | 0 | 0.232558 | 1 | 0.116279 | false | 0 | 0.069767 | 0 | 0.186047 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 8 |
397a66993cd9ce5fc8571d3bfa6c4626d76df39a | 44,991 | py | Python | rongcloud/message.py | rongcloud/server-sdk-python | 0f9b5e3b74b9ad4b305a87775f1e91cb87e49f99 | [
"MIT"
] | 56 | 2015-03-25T05:42:32.000Z | 2021-11-09T07:01:19.000Z | rongcloud/message.py | rongcloud/server-sdk-python | 0f9b5e3b74b9ad4b305a87775f1e91cb87e49f99 | [
"MIT"
] | 10 | 2016-11-09T04:32:59.000Z | 2020-03-07T22:55:47.000Z | rongcloud/message.py | rongcloud/server-sdk-python | 0f9b5e3b74b9ad4b305a87775f1e91cb87e49f99 | [
"MIT"
] | 49 | 2015-01-06T11:20:14.000Z | 2021-08-24T13:21:25.000Z | import json
import urllib
from rongcloud.module import Module, ParamException
class Message(Module):
def __init__(self, rc):
super().__init__(rc)
self._user_info = None
def set_user_info(self, user_id, name, icon, extra=None):
param_dict = locals().copy()
format_str = '"id":"... | 57.167726 | 153 | 0.532595 | 4,827 | 44,991 | 4.745598 | 0.084317 | 0.047933 | 0.074562 | 0.018335 | 0.907757 | 0.904789 | 0.897542 | 0.887502 | 0.882481 | 0.878247 | 0 | 0.020586 | 0.351115 | 44,991 | 786 | 154 | 57.240458 | 0.764061 | 0.381098 | 0 | 0.801354 | 0 | 0.002257 | 0.291819 | 0.029743 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063205 | false | 0 | 0.006772 | 0.011287 | 0.167043 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
39ca7f5e1c302555a2285f632fbbda705525acd7 | 17,747 | py | Python | XWikis-Corpus/baselines/xrank.py | lauhaide/clads | 9462ea090cf2ceabdcae879b409ceea23d391ff8 | [
"MIT"
] | 6 | 2021-12-10T05:48:33.000Z | 2022-03-16T15:30:47.000Z | XWikis-Corpus/baselines/xrank.py | lauhaide/clads | 9462ea090cf2ceabdcae879b409ceea23d391ff8 | [
"MIT"
] | null | null | null | XWikis-Corpus/baselines/xrank.py | lauhaide/clads | 9462ea090cf2ceabdcae879b409ceea23d391ff8 | [
"MIT"
] | 1 | 2022-01-28T08:54:54.000Z | 2022-01-28T08:54:54.000Z | ## adapted from https://github.com/crabcamp/lexrank
import math
from collections import Counter, defaultdict
import numpy as np
from power_method import stationary_distribution
from text import tokenize
from scipy.stats import entropy
from numpy.linalg import norm
import numpy as np
def JSD(P, Q):
_P = P / n... | 29.38245 | 131 | 0.591255 | 2,014 | 17,747 | 4.956802 | 0.093843 | 0.075328 | 0.021036 | 0.022037 | 0.837624 | 0.832215 | 0.8236 | 0.796754 | 0.761394 | 0.75298 | 0 | 0.008592 | 0.324506 | 17,747 | 603 | 132 | 29.431177 | 0.824157 | 0.032682 | 0 | 0.819512 | 0 | 0 | 0.016223 | 0 | 0 | 0 | 0 | 0 | 0.009756 | 1 | 0.073171 | false | 0 | 0.019512 | 0 | 0.180488 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
8435aee0e75e7d180ca1f9b15ebdbae593028741 | 4,844 | py | Python | tests/test_judg_list.py | tanjie123/hello-ltr | fe1ad1989e1bb17dfc8d1c09931480becf59766e | [
"Apache-2.0"
] | 109 | 2019-04-18T01:24:29.000Z | 2022-03-12T17:37:30.000Z | tests/test_judg_list.py | tanjie123/hello-ltr | fe1ad1989e1bb17dfc8d1c09931480becf59766e | [
"Apache-2.0"
] | 63 | 2019-04-14T01:01:24.000Z | 2022-03-03T20:48:41.000Z | tests/test_judg_list.py | tanjie123/hello-ltr | fe1ad1989e1bb17dfc8d1c09931480becf59766e | [
"Apache-2.0"
] | 41 | 2019-04-22T15:22:41.000Z | 2022-02-26T00:03:02.000Z | import unittest
def clean_jl(judg_list_str):
import textwrap
dedented=textwrap.dedent(judg_list_str)[1:]
return dedented
class JudgmentsTestCase(unittest.TestCase):
def test_string_io_unsorted_throws(self):
judgment_list=clean_jl("""
# qid:1: rambo*1
... | 41.050847 | 102 | 0.50929 | 536 | 4,844 | 4.451493 | 0.154851 | 0.125733 | 0.093881 | 0.027661 | 0.810562 | 0.761526 | 0.732607 | 0.732607 | 0.732607 | 0.702431 | 0 | 0.036219 | 0.401528 | 4,844 | 117 | 103 | 41.401709 | 0.786823 | 0 | 0 | 0.707071 | 0 | 0 | 0.141412 | 0 | 0 | 0 | 0 | 0 | 0.232323 | 1 | 0.040404 | false | 0 | 0.111111 | 0 | 0.171717 | 0.040404 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
ffc1a6d1e7009ade00635ac4c48888cb16f477b1 | 23,513 | py | Python | Support.records/Run.Time.Evaluation/Calculate.RunTime.Simulated.py | mills-lab/svelter | d318b06d588483fe8a8ebcac8c8a6c7878f2c2b3 | [
"MIT"
] | 21 | 2015-11-02T06:31:52.000Z | 2021-12-20T03:14:04.000Z | Support.records/Run.Time.Evaluation/Calculate.RunTime.Simulated.py | mills-lab/svelter | d318b06d588483fe8a8ebcac8c8a6c7878f2c2b3 | [
"MIT"
] | 14 | 2016-03-02T21:12:53.000Z | 2019-08-02T20:01:02.000Z | Support.records/Run.Time.Evaluation/Calculate.RunTime.Simulated.py | mills-lab/svelter | d318b06d588483fe8a8ebcac8c8a6c7878f2c2b3 | [
"MIT"
] | 6 | 2015-08-19T18:33:02.000Z | 2017-05-16T03:42:57.000Z | def read_in_run_time(log_file):
fin=os.popen(r'''head -1 %s'''%(log_file))
pin=fin.readline().strip().split()
start=float(pin[0])
fin.close()
fin=os.popen(r'''tail -1 %s'''%(log_file))
pin=fin.readline().strip().split()
end=float(pin[0])
fin.close()
return [end-start]
def chromos_re... | 36.624611 | 127 | 0.641645 | 3,642 | 23,513 | 3.836079 | 0.028281 | 0.121752 | 0.124401 | 0.07537 | 0.982607 | 0.978455 | 0.978455 | 0.978455 | 0.968005 | 0.963281 | 0 | 0.035861 | 0.159146 | 23,513 | 641 | 128 | 36.681747 | 0.67078 | 0.007825 | 0 | 0.941176 | 0 | 0 | 0.147811 | 0.050901 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003922 | false | 0 | 0.001961 | 0 | 0.009804 | 0.031373 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 7 |
f291283ddc7db4b6a4bf2deb4cb3ccfaafda1ac7 | 7,481 | py | Python | test/create_keystore.py | unification-com/haiku-node-prototype | ea77aa90f6b3f08d004be1c24e6b8d62e83bc66b | [
"MIT"
] | 3 | 2018-06-15T18:02:05.000Z | 2018-07-06T02:32:18.000Z | test/create_keystore.py | unification-com/haiku-node-prototype | ea77aa90f6b3f08d004be1c24e6b8d62e83bc66b | [
"MIT"
] | 4 | 2018-08-17T06:51:34.000Z | 2018-08-17T08:39:24.000Z | test/create_keystore.py | unification-com/haiku-node-prototype | ea77aa90f6b3f08d004be1c24e6b8d62e83bc66b | [
"MIT"
] | null | null | null | import os
from pathlib import Path
import click
from cryptography.fernet import Fernet
from haiku_node.keystore.keystore import UnificationKeystore
keystore = {
'app1': {
'private_key': '-----BEGIN RSA PRIVATE KEY-----\nMIIEpAIBAAKCAQEApakS8qunhjD+/rLhs90sX4QIh7qWV/6kirBF6plZZHBUHQUz\n90nZQH0zl0feneHXx... | 155.854167 | 1,739 | 0.895602 | 426 | 7,481 | 15.633803 | 0.652582 | 0.015015 | 0.011712 | 0.008108 | 0.040991 | 0.040991 | 0.02027 | 0.02027 | 0.02027 | 0.02027 | 0 | 0.119956 | 0.03275 | 7,481 | 47 | 1,740 | 159.170213 | 0.800442 | 0.003876 | 0 | 0 | 0 | 0.176471 | 0.888516 | 0.839221 | 0 | 1 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.088235 | 0.147059 | 0 | 0.205882 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
f2a591667f8f3b07bed645bd7b0cd94d33fe5b4a | 101 | py | Python | tests/parser/bug.48.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | tests/parser/bug.48.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | tests/parser/bug.48.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | input = """
x(X) :- X > 1, X < 3.%, #int(X).
"""
output = """
x(X) :- X > 1, X < 3.%, #int(X).
"""
| 14.428571 | 33 | 0.306931 | 18 | 101 | 1.722222 | 0.333333 | 0.258065 | 0.193548 | 0.258065 | 0.645161 | 0.645161 | 0.645161 | 0.645161 | 0 | 0 | 0 | 0.054795 | 0.277228 | 101 | 6 | 34 | 16.833333 | 0.369863 | 0 | 0 | 0.666667 | 0 | 0 | 0.686869 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
4b5744f28dc140ec65b63d69e4702452d9466718 | 143 | py | Python | allennlp/common/__init__.py | lvyufeng/elmo_standalone | 1bcafe17a8579bb9450ba937a0e6276ff6731259 | [
"MIT"
] | null | null | null | allennlp/common/__init__.py | lvyufeng/elmo_standalone | 1bcafe17a8579bb9450ba937a0e6276ff6731259 | [
"MIT"
] | null | null | null | allennlp/common/__init__.py | lvyufeng/elmo_standalone | 1bcafe17a8579bb9450ba937a0e6276ff6731259 | [
"MIT"
] | null | null | null | from allennlp.common.registrable import Registrable
from allennlp.common.tee_logger import TeeLogger
from allennlp.common.util import JsonDict
| 35.75 | 51 | 0.874126 | 19 | 143 | 6.526316 | 0.526316 | 0.290323 | 0.435484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083916 | 143 | 3 | 52 | 47.666667 | 0.946565 | 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 | 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 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.