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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
90690c22ebcbb724f123c7ae91889c5084836dfd | 73,098 | py | Python | spacy/lang/hy/tag_map.py | michael-k/spaCy | 481574cbc865211e35faf6e36f5ece203ee59e60 | [
"MIT"
] | 1 | 2020-12-20T21:09:19.000Z | 2020-12-20T21:09:19.000Z | spacy/lang/hy/tag_map.py | Jorgecardenas1/spaCy | fb73d4943a91d18cd36ded98994a932515f4bf05 | [
"MIT"
] | 3 | 2021-09-21T18:04:50.000Z | 2022-02-26T02:14:42.000Z | spacy/lang/hy/tag_map.py | Jorgecardenas1/spaCy | fb73d4943a91d18cd36ded98994a932515f4bf05 | [
"MIT"
] | null | null | null | # coding: utf8
from __future__ import unicode_literals
from ...symbols import POS, SYM, ADJ, NUM, DET, ADV, ADP, X, VERB, NOUN
from ...symbols import PROPN, PART, INTJ, PRON, SCONJ, AUX, CCONJ
TAG_MAP = {
"ADJ_Abbr=Yes": {POS: ADJ, "Abbr": "Yes"},
"ADJ_Degree=Pos|NumForm=Word|NumType=Ord": {
POS: ADJ,... | 29.48689 | 126 | 0.483939 | 7,649 | 73,098 | 4.579161 | 0.016734 | 0.09079 | 0.071261 | 0.046651 | 0.97085 | 0.934791 | 0.926997 | 0.895135 | 0.887341 | 0.73217 | 0 | 0.004537 | 0.303415 | 73,098 | 2,478 | 127 | 29.498789 | 0.68334 | 0.000164 | 0 | 0.737778 | 0 | 0.037576 | 0.490463 | 0.270483 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.010505 | 0.001212 | 0 | 0.001212 | 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 |
9073d03dde688925da425a69405a2e218fa0a98b | 13,381 | py | Python | servicecatalog_puppet/workflow/provisioning_c_unit_test.py | continue-nature/aws-service-catalog-puppet | 1b08fe235d0c005564a7646935c840722fa991f7 | [
"Apache-2.0"
] | null | null | null | servicecatalog_puppet/workflow/provisioning_c_unit_test.py | continue-nature/aws-service-catalog-puppet | 1b08fe235d0c005564a7646935c840722fa991f7 | [
"Apache-2.0"
] | null | null | null | servicecatalog_puppet/workflow/provisioning_c_unit_test.py | continue-nature/aws-service-catalog-puppet | 1b08fe235d0c005564a7646935c840722fa991f7 | [
"Apache-2.0"
] | null | null | null | import unittest
class ProvisioningArtifactParametersTaskTest(unittest.TestCase):
manifest_file_path = "lnklknkl"
puppet_account_id = "01234567890"
portfolio = "port1"
product = "prod1"
version = "v1"
account_id = "00987654321"
region = "eu-west-0"
def setUp(self) -> None:
from... | 33.28607 | 105 | 0.65466 | 1,393 | 13,381 | 5.933238 | 0.09476 | 0.076225 | 0.05977 | 0.050091 | 0.850817 | 0.816455 | 0.816455 | 0.791894 | 0.779794 | 0.740835 | 0 | 0.017609 | 0.257305 | 13,381 | 401 | 106 | 33.369077 | 0.814047 | 0.091473 | 0 | 0.753425 | 0 | 0 | 0.144827 | 0.091322 | 0 | 0 | 0 | 0 | 0.027397 | 1 | 0.05137 | false | 0 | 0.030822 | 0 | 0.39726 | 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 |
90d0694ddf476f059545a4134d2076c4482c57a0 | 108 | py | Python | src/OCR-Mike/pyimagesearch/az_dataset/__init__.py | EquipoIA/image-recon | f53cef4073b49fc20be44d2555eb2e88c5154b2e | [
"MIT"
] | 1 | 2021-09-28T17:17:34.000Z | 2021-09-28T17:17:34.000Z | src/OCR-Mike/pyimagesearch/az_dataset/__init__.py | EquipoIA/image-recon | f53cef4073b49fc20be44d2555eb2e88c5154b2e | [
"MIT"
] | null | null | null | src/OCR-Mike/pyimagesearch/az_dataset/__init__.py | EquipoIA/image-recon | f53cef4073b49fc20be44d2555eb2e88c5154b2e | [
"MIT"
] | null | null | null | # import the necessary packages
from .helpers import load_mnist_dataset
from .helpers import load_az_dataset | 36 | 39 | 0.861111 | 16 | 108 | 5.5625 | 0.625 | 0.247191 | 0.382022 | 0.47191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 108 | 3 | 40 | 36 | 0.927083 | 0.268519 | 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 |
292f38b02afbb4054e5a2910b3a83961da12d8bf | 19,595 | py | Python | celseq2/dummy_species.py | johannesnicolaus/celseq2 | 0a0873d46aa1889d5389d3faa50ec01c465e85bd | [
"BSD-3-Clause"
] | 14 | 2017-11-02T15:44:13.000Z | 2022-03-26T13:37:17.000Z | celseq2/dummy_species.py | johannesnicolaus/celseq2 | 0a0873d46aa1889d5389d3faa50ec01c465e85bd | [
"BSD-3-Clause"
] | 25 | 2018-02-06T19:47:31.000Z | 2022-03-03T07:46:04.000Z | celseq2/dummy_species.py | johannesnicolaus/celseq2 | 0a0873d46aa1889d5389d3faa50ec01c465e85bd | [
"BSD-3-Clause"
] | 13 | 2018-01-19T20:19:59.000Z | 2022-03-26T13:37:16.000Z | '''
Create genome.fasta and annotation.gtf for dummy species.
There are totally 9 genes present.
Exon and intron length is fixed at 100bp and 200bp, respectively,
and inter-genic region is 300bp.
'''
import random
import argparse
def gtf_attr_str(gene_id=None, gene_name=None, gene_biotype=None,
tr... | 37.610365 | 105 | 0.490839 | 2,365 | 19,595 | 3.818605 | 0.074419 | 0.065109 | 0.036541 | 0.054922 | 0.820839 | 0.797254 | 0.794818 | 0.780866 | 0.778098 | 0.770568 | 0 | 0.027468 | 0.381322 | 19,595 | 520 | 106 | 37.682692 | 0.717479 | 0.032508 | 0 | 0.723077 | 0 | 0.002198 | 0.086989 | 0.004031 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013187 | false | 0 | 0.006593 | 0 | 0.01978 | 0.002198 | 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 |
295a3bb057d713394b28378645a4fe0d12c39352 | 85 | py | Python | uu/retrieval/collection/__init__.py | mostscript/uu.retrieval | 15147013d42cc08126b971ba5eda35d044bb8c4d | [
"MIT"
] | null | null | null | uu/retrieval/collection/__init__.py | mostscript/uu.retrieval | 15147013d42cc08126b971ba5eda35d044bb8c4d | [
"MIT"
] | null | null | null | uu/retrieval/collection/__init__.py | mostscript/uu.retrieval | 15147013d42cc08126b971ba5eda35d044bb8c4d | [
"MIT"
] | null | null | null | from base import BaseCollection # noqa
from base import BaseNamedCollection # noqa
| 28.333333 | 44 | 0.811765 | 10 | 85 | 6.9 | 0.6 | 0.231884 | 0.405797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164706 | 85 | 2 | 45 | 42.5 | 0.971831 | 0.105882 | 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 |
465e6788d64dcdf9c44bf03d663264fa2c15a64d | 3,662 | py | Python | microblot/cms/views.py | nkantar/Microblot | 80d40c41ded625c451cd5396c1c09d779dec2061 | [
"MIT"
] | 4 | 2020-06-29T00:30:34.000Z | 2021-03-11T19:17:08.000Z | microblot/cms/views.py | nkantar/Microblot | 80d40c41ded625c451cd5396c1c09d779dec2061 | [
"MIT"
] | 198 | 2020-06-29T01:18:12.000Z | 2021-04-25T22:54:09.000Z | microblot/cms/views.py | nkantar/Microblot | 80d40c41ded625c451cd5396c1c09d779dec2061 | [
"MIT"
] | 1 | 2021-01-14T22:33:00.000Z | 2021-01-14T22:33:00.000Z | from django.views.generic import DetailView, ListView, RedirectView
from .models import Author, Post
class BlogHomeView(ListView):
context_object_name = "posts"
model = Post
template_name = "blog_home.html"
def get_queryset(self):
queryset = self.model.objects.filter(
blog__site_... | 29.063492 | 76 | 0.642545 | 425 | 3,662 | 5.294118 | 0.152941 | 0.048 | 0.04 | 0.056 | 0.797333 | 0.795556 | 0.753333 | 0.736 | 0.718667 | 0.673333 | 0 | 0.001453 | 0.248498 | 3,662 | 125 | 77 | 29.296 | 0.816134 | 0 | 0 | 0.704082 | 0 | 0 | 0.089842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112245 | false | 0 | 0.020408 | 0.010204 | 0.540816 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
46750d98a76a54981437e789898af35b9ab3a4a5 | 30 | py | Python | ua_gen/__init__.py | chorsley/useragent-picker-cli | 689a353499148fbe07fae2efa91b5bce59ae2cc2 | [
"MIT"
] | 3 | 2020-07-28T05:34:57.000Z | 2021-10-09T21:27:19.000Z | ua_gen/__init__.py | chorsley/useragent-picker-cli | 689a353499148fbe07fae2efa91b5bce59ae2cc2 | [
"MIT"
] | 29 | 2020-07-17T04:22:04.000Z | 2021-07-13T19:51:25.000Z | ua_gen/__init__.py | chorsley/useragent-picker-cli | 689a353499148fbe07fae2efa91b5bce59ae2cc2 | [
"MIT"
] | null | null | null | from .ua_rules import ua_rules | 30 | 30 | 0.866667 | 6 | 30 | 4 | 0.666667 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 30 | 1 | 30 | 30 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
d3b4c6317baf3c836d99c4cb14859a8561ae4f9a | 145,631 | py | Python | src/hapPyTango/Tango/__init__.py | mguijarr/hapPyTango | 2506c8e83d93fbd2c0a0115983489d59c74caa2f | [
"MIT"
] | 1 | 2020-10-28T16:57:36.000Z | 2020-10-28T16:57:36.000Z | src/hapPyTango/Tango/__init__.py | mguijarr/hapPyTango | 2506c8e83d93fbd2c0a0115983489d59c74caa2f | [
"MIT"
] | null | null | null | src/hapPyTango/Tango/__init__.py | mguijarr/hapPyTango | 2506c8e83d93fbd2c0a0115983489d59c74caa2f | [
"MIT"
] | null | null | null | """ Module: IDL:Tango:1.0
Automagically generated by:-
The ORB called Fnorb v1.1.Return.of.Fnorb
"""
_FNORB_ID = "IDL:Tango:1.0"
# Fnorb modules.
import Fnorb.orb.CORBA
import Fnorb.orb.TypeManager
import Fnorb.orb.Util
# Alias: IDL:Tango/DevBoolean:1.0
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:Tango... | 79.061346 | 7,769 | 0.853101 | 8,210 | 145,631 | 14.906212 | 0.046041 | 0.022683 | 0.011791 | 0.016146 | 0.294002 | 0.258662 | 0.247916 | 0.235414 | 0.232914 | 0.223909 | 0 | 0.572218 | 0.087921 | 145,631 | 1,841 | 7,770 | 79.104291 | 0.349131 | 0.093861 | 0 | 0.52027 | 1 | 0 | 0.67508 | 0.667694 | 0 | 1 | 0 | 0 | 0 | 1 | 0.113739 | false | 0.002252 | 0.003378 | 0 | 0.318694 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
d3c5090e86d7c299003b94c76eea1288c9bcd6aa | 3,953 | py | Python | programmes_python/geeros_api.py | 3sigma/Geeros-RaspberryPi-C-Python | f75cba71b8617cb08d2a6a83049cb049f9dbe8ae | [
"MIT"
] | null | null | null | programmes_python/geeros_api.py | 3sigma/Geeros-RaspberryPi-C-Python | f75cba71b8617cb08d2a6a83049cb049f9dbe8ae | [
"MIT"
] | null | null | null | programmes_python/geeros_api.py | 3sigma/Geeros-RaspberryPi-C-Python | f75cba71b8617cb08d2a6a83049cb049f9dbe8ae | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from websocket import create_connection
import math
import time
class geeros_api:
def __init__(self):
self.ws = create_connection("ws://192.168.0.199:9090/ws")
def Tourner(self, vitesseRotation, duree = -1):
tdebut = time.time()
t = time.time() - tde... | 36.266055 | 92 | 0.515558 | 437 | 3,953 | 4.647597 | 0.1373 | 0.041359 | 0.059084 | 0.059084 | 0.866076 | 0.866076 | 0.856721 | 0.82324 | 0.82324 | 0.82324 | 0 | 0.033177 | 0.351885 | 3,953 | 108 | 93 | 36.601852 | 0.759563 | 0 | 0 | 0.802817 | 0 | 0 | 0.071953 | 0.007961 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042254 | 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 |
d3e39591437a4d524b0cae03fa71eab800da6916 | 52,175 | py | Python | tools/bm_runtime/simple_pre/SimplePre.py | gustavo978/helpful | 59e3fd062cff4451c9bf8268df78a24f93ff67b7 | [
"Unlicense"
] | null | null | null | tools/bm_runtime/simple_pre/SimplePre.py | gustavo978/helpful | 59e3fd062cff4451c9bf8268df78a24f93ff67b7 | [
"Unlicense"
] | null | null | null | tools/bm_runtime/simple_pre/SimplePre.py | gustavo978/helpful | 59e3fd062cff4451c9bf8268df78a24f93ff67b7 | [
"Unlicense"
] | 2 | 2018-06-06T14:10:23.000Z | 2020-04-07T17:20:55.000Z | #
# Autogenerated by Thrift Compiler (0.9.2)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TException, TApplicationException
from ttypes import *
from thrift.Thrift import TProcessor
from thrift.transport import TTransport
... | 29.951206 | 188 | 0.663651 | 6,619 | 52,175 | 4.915848 | 0.024173 | 0.020038 | 0.02932 | 0.025447 | 0.966654 | 0.941023 | 0.923259 | 0.901684 | 0.87596 | 0.869629 | 0 | 0.012187 | 0.221543 | 52,175 | 1,741 | 189 | 29.968409 | 0.788926 | 0.004657 | 0 | 0.868304 | 1 | 0 | 0.031004 | 0.008958 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005952 | 0.004464 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
d3fb539b86523193d936642427bcb3aefa3d61d1 | 38,535 | py | Python | code/A04_merge_all_data.py | xtguo95/Permission_Denied | 08af677e54c436169a49c034bb0ec77388208dc9 | [
"MIT"
] | 3 | 2021-12-14T07:39:54.000Z | 2022-01-11T18:44:04.000Z | code/A04_merge_all_data.py | xtguo95/Permission_Denied | 08af677e54c436169a49c034bb0ec77388208dc9 | [
"MIT"
] | null | null | null | code/A04_merge_all_data.py | xtguo95/Permission_Denied | 08af677e54c436169a49c034bb0ec77388208dc9 | [
"MIT"
] | 1 | 2021-09-04T06:08:35.000Z | 2021-09-04T06:08:35.000Z | import time
import pandas as pd
import A01_process_route_seq
import A02_process_package_data
import A03_process_route_data
import numpy as np
import os
import json
def haversine_np(lon1, lat1, lon2, lat2):
"""
Calculate the great circle distance between two points
on the earth (specified in d... | 54.737216 | 146 | 0.621046 | 5,403 | 38,535 | 3.937442 | 0.036276 | 0.080662 | 0.134248 | 0.178998 | 0.962254 | 0.958682 | 0.950174 | 0.945144 | 0.937012 | 0.926436 | 0 | 0.006328 | 0.245465 | 38,535 | 703 | 147 | 54.815078 | 0.72534 | 0.098248 | 0 | 0.877462 | 0 | 0 | 0.160957 | 0.022246 | 0 | 0 | 0 | 0 | 0.026258 | 1 | 0.010941 | false | 0 | 0.017505 | 0 | 0.037199 | 0.004376 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
d3fdb47605bd60cceb90338418875fcca806156a | 5,641 | py | Python | lldb/test/API/commands/trace/multiple-threads/TestTraceStartStopMultipleThreads.py | MochalovaAn/llvm | 528aa5ca4aa9df447dc3497ef19da3b124e88d7d | [
"Apache-2.0"
] | null | null | null | lldb/test/API/commands/trace/multiple-threads/TestTraceStartStopMultipleThreads.py | MochalovaAn/llvm | 528aa5ca4aa9df447dc3497ef19da3b124e88d7d | [
"Apache-2.0"
] | null | null | null | lldb/test/API/commands/trace/multiple-threads/TestTraceStartStopMultipleThreads.py | MochalovaAn/llvm | 528aa5ca4aa9df447dc3497ef19da3b124e88d7d | [
"Apache-2.0"
] | null | null | null | import lldb
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
from lldbsuite.test.decorators import *
ADDRESS_REGEX = '0x[0-9a-fA-F]*'
class TestTraceStartStopMultipleThreads(TestBase):
mydir = TestBase.compute_mydir(__file__)
NO_DEBUG_INFO_TESTCASE = True
def setUp(self):
... | 36.869281 | 114 | 0.627371 | 736 | 5,641 | 4.774457 | 0.172554 | 0.159363 | 0.104724 | 0.13745 | 0.804212 | 0.777746 | 0.776608 | 0.76181 | 0.761525 | 0.756972 | 0 | 0.023207 | 0.243751 | 5,641 | 152 | 115 | 37.111842 | 0.800516 | 0.149973 | 0 | 0.755319 | 0 | 0 | 0.278173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0 | 0.042553 | 0 | 0.138298 | 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 |
3105cb8d06bef224891d687714cc5977d1b4f26e | 14,816 | py | Python | networks/datagen.py | GuangmingZhu/ContinuousGR | 2b35fe673405744a694b90f1e89943846b3e1de1 | [
"MIT"
] | 18 | 2018-08-23T13:38:29.000Z | 2022-02-24T09:19:14.000Z | networks/datagen.py | NIDONGDEA/ContinuousGR | 2b35fe673405744a694b90f1e89943846b3e1de1 | [
"MIT"
] | 1 | 2021-09-16T10:20:18.000Z | 2021-09-16T10:20:18.000Z | networks/datagen.py | NIDONGDEA/ContinuousGR | 2b35fe673405744a694b90f1e89943846b3e1de1 | [
"MIT"
] | 2 | 2019-10-21T23:12:28.000Z | 2022-02-28T01:53:48.000Z | import numpy as np
import tensorflow as tf
keras=tf.contrib.keras
import inputs as data
import threading
## Iteration
def minibatches(inputs=None, targets=None, batch_size=None, shuffle=False):
assert len(inputs) == len(targets)
if shuffle:
indices = np.arange(len(inputs))
np.random.shuffle(indices)
for ... | 42.820809 | 116 | 0.625742 | 2,122 | 14,816 | 4.048068 | 0.06409 | 0.027939 | 0.020955 | 0.027939 | 0.863446 | 0.860652 | 0.851106 | 0.842841 | 0.837485 | 0.834459 | 0 | 0.016155 | 0.256344 | 14,816 | 345 | 117 | 42.944928 | 0.763478 | 0.054603 | 0 | 0.840909 | 0 | 0 | 0.015784 | 0 | 0 | 0 | 0 | 0 | 0.003247 | 0 | null | null | 0 | 0.012987 | null | null | 0.006494 | 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 |
31165607a0eca111e942517e7fb36b05b1f14209 | 1,335 | py | Python | docs/code-completion/uhashlib.py | yanshanqingyuan/micropython | bb57a344967391d22f3430f720bcd0a5882e4a1a | [
"MIT"
] | null | null | null | docs/code-completion/uhashlib.py | yanshanqingyuan/micropython | bb57a344967391d22f3430f720bcd0a5882e4a1a | [
"MIT"
] | null | null | null | docs/code-completion/uhashlib.py | yanshanqingyuan/micropython | bb57a344967391d22f3430f720bcd0a5882e4a1a | [
"MIT"
] | null | null | null | """
uhashlib 模块实现了二进制数据哈希算法。
"""
SHA256 = ... # type: int
SHA1 = ... # type: int
MD5 = ... # type: int
class sha256(data):
"""
- sha256([data])
创建一个SHA256哈希对象并提供 data 赋值。
"""
def __init__(self) -> None:
...
def update(self, data) -> None:
"""将更多二进制数据放入哈希表中。"""
...
... | 18.541667 | 66 | 0.504869 | 119 | 1,335 | 5.563025 | 0.252101 | 0.108761 | 0.040786 | 0.058912 | 0.76284 | 0.76284 | 0.76284 | 0.76284 | 0.76284 | 0.76284 | 0 | 0.021436 | 0.301124 | 1,335 | 71 | 67 | 18.802817 | 0.688103 | 0.021723 | 0 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
312dec9092b9edca2edeb05b6f2f2615b1607d18 | 7,058 | py | Python | appserver/tests/database/services/neo4j_test.py | SBRG/lifelike | a7b715f38b389a585c10e6d0d067345937455c13 | [
"MIT"
] | 8 | 2022-01-28T08:43:07.000Z | 2022-03-23T11:18:10.000Z | appserver/tests/database/services/neo4j_test.py | SBRG/lifelike | a7b715f38b389a585c10e6d0d067345937455c13 | [
"MIT"
] | 23 | 2022-02-14T15:25:00.000Z | 2022-03-28T15:30:45.000Z | appserver/tests/database/services/neo4j_test.py | SBRG/lifelike | a7b715f38b389a585c10e6d0d067345937455c13 | [
"MIT"
] | 5 | 2022-01-28T15:45:44.000Z | 2022-03-14T11:36:49.000Z | import pytest
@pytest.mark.skip(
reason='Does not work unless we upgrade the Neo4j docker image to 4.0+ because of apoc function'
)
def test_expand_node_gets_no_results_for_node_with_no_relationships(
visualizer_service,
gas_gangrene
):
expand_query_result = visualizer_service.expand_graph(
no... | 32.228311 | 114 | 0.730235 | 870 | 7,058 | 5.57931 | 0.150575 | 0.052122 | 0.034611 | 0.046148 | 0.893902 | 0.861763 | 0.84384 | 0.815204 | 0.796663 | 0.774825 | 0 | 0.012491 | 0.183338 | 7,058 | 218 | 115 | 32.376147 | 0.829632 | 0.040096 | 0 | 0.732484 | 0 | 0 | 0.174652 | 0 | 0 | 0 | 0 | 0 | 0.235669 | 1 | 0.050955 | false | 0 | 0.006369 | 0 | 0.057325 | 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 |
3156ad59cbbda32e51ba82f226b7bb738e5ad1de | 114 | py | Python | command/italiano/ip.py | LunarStone292/cento_bot | 744a189529a5be38d119085193a5ea623555a7ca | [
"MIT"
] | null | null | null | command/italiano/ip.py | LunarStone292/cento_bot | 744a189529a5be38d119085193a5ea623555a7ca | [
"MIT"
] | null | null | null | command/italiano/ip.py | LunarStone292/cento_bot | 744a189529a5be38d119085193a5ea623555a7ca | [
"MIT"
] | null | null | null | import os
os.system("python3 command/italiano/ip/test.py")
os.system("python3 language/italiano/console.py") | 22.8 | 49 | 0.754386 | 17 | 114 | 5.058824 | 0.647059 | 0.186047 | 0.348837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019417 | 0.096491 | 114 | 5 | 50 | 22.8 | 0.815534 | 0 | 0 | 0 | 0 | 0 | 0.63964 | 0.495496 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
316871f1601bcd5ccef226da7efac85bb879b669 | 141 | py | Python | device.py | andreasjansson/music-inpainting-bert | 986bda2caa008d4a7b5500a2aa2d4a2315ca9b5f | [
"MIT"
] | 1 | 2021-11-25T22:59:11.000Z | 2021-11-25T22:59:11.000Z | device.py | andreasjansson/music-inpainting-bert | 986bda2caa008d4a7b5500a2aa2d4a2315ca9b5f | [
"MIT"
] | null | null | null | device.py | andreasjansson/music-inpainting-bert | 986bda2caa008d4a7b5500a2aa2d4a2315ca9b5f | [
"MIT"
] | null | null | null | import torch
from config import config
def device():
if config.gpu:
return torch.device("cuda")
return torch.device("cpu")
| 15.666667 | 35 | 0.666667 | 19 | 141 | 4.947368 | 0.578947 | 0.234043 | 0.361702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22695 | 141 | 8 | 36 | 17.625 | 0.862385 | 0 | 0 | 0 | 0 | 0 | 0.049645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.333333 | 0 | 0.833333 | 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 |
319822b80895b3f0783c1bc0ccbc1344936d5164 | 9,269 | py | Python | wharf_management/wharf_management/doctype/wharf_cashier_closing/wharf_cashier_closing.py | staumoepeau/pms | 67aa43fb27f75482275b50dff17f5919e6c394b1 | [
"MIT"
] | 1 | 2021-02-19T11:45:24.000Z | 2021-02-19T11:45:24.000Z | wharf_management/wharf_management/doctype/wharf_cashier_closing/wharf_cashier_closing.py | staumoepeau/pms | 67aa43fb27f75482275b50dff17f5919e6c394b1 | [
"MIT"
] | 1 | 2021-08-12T08:29:50.000Z | 2021-08-17T06:12:02.000Z | wharf_management/wharf_management/doctype/wharf_cashier_closing/wharf_cashier_closing.py | staumoepeau/pms | 67aa43fb27f75482275b50dff17f5919e6c394b1 | [
"MIT"
] | 4 | 2020-07-22T20:30:00.000Z | 2021-08-07T12:36:01.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2020, Sione Taumoepeau and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from frappe.utils import cstr, flt, fmt_money, formatdate, now, date_diff
from frappe import... | 43.721698 | 178 | 0.629518 | 1,149 | 9,269 | 4.921671 | 0.10879 | 0.093369 | 0.035013 | 0.051105 | 0.805128 | 0.763042 | 0.74748 | 0.722546 | 0.719894 | 0.697613 | 0 | 0.005856 | 0.263027 | 9,269 | 212 | 179 | 43.721698 | 0.821988 | 0.050383 | 0 | 0.704142 | 0 | 0.011834 | 0.694154 | 0.041288 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065089 | false | 0 | 0.029586 | 0.005917 | 0.195266 | 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 |
31eab98b74ac873cdd6e7fdcabf21bb23c074a88 | 5,297 | py | Python | dev/colormap/analyzed/argo.py | shirok1/Spectrogram | 59a466291493fabcfb2714f879dbe8221f1449a1 | [
"MIT"
] | 151 | 2019-08-23T05:55:59.000Z | 2022-03-28T15:11:14.000Z | dev/colormap/analyzed/argo.py | kevinbjb/Spectrogram | 9ac30822679ac405b9b31fbe70e97cf3c1044edd | [
"MIT"
] | 39 | 2019-08-17T04:06:34.000Z | 2022-03-26T04:43:07.000Z | dev/colormap/analyzed/argo.py | kevinbjb/Spectrogram | 9ac30822679ac405b9b31fbe70e97cf3c1044edd | [
"MIT"
] | 47 | 2019-11-07T07:57:08.000Z | 2022-03-25T02:55:31.000Z | # This is the output of analyzeImage.py (each value indicates a RGB color)
myScreenshot = """
0 4 264 267 527 530 789 66328
66588 66591 66849 132388 132647 132650 132908 198447
198706 198708 264503 264505 330299 330557 330560 396354
3966... | 58.208791 | 75 | 0.745328 | 599 | 5,297 | 6.577629 | 0.522538 | 0.001015 | 0.002538 | 0.004061 | 0.914213 | 0.914213 | 0.914213 | 0.914213 | 0.914213 | 0.914213 | 0 | 0.892637 | 0.23334 | 5,297 | 90 | 76 | 58.855556 | 0.077567 | 0.023598 | 0 | 0.814815 | 0 | 0 | 0.917183 | 0.004063 | 0 | 0 | 0 | 0 | 0.012346 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.012346 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
31ec978637720e0927a26a30bd95ab86f2715373 | 58,964 | py | Python | dempy/_protofiles/dempy_pb2.py | miguelalexbt/dempy | 65b367ee123f9a0c02ae5af4d5f073ba41cee4f8 | [
"MIT"
] | null | null | null | dempy/_protofiles/dempy_pb2.py | miguelalexbt/dempy | 65b367ee123f9a0c02ae5af4d5f073ba41cee4f8 | [
"MIT"
] | null | null | null | dempy/_protofiles/dempy_pb2.py | miguelalexbt/dempy | 65b367ee123f9a0c02ae5af4d5f073ba41cee4f8 | [
"MIT"
] | 1 | 2020-10-19T16:52:57.000Z | 2020-10-19T16:52:57.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: dempy.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_dat... | 44.400602 | 5,351 | 0.729971 | 7,914 | 58,964 | 5.178039 | 0.041446 | 0.066961 | 0.064057 | 0.050538 | 0.7998 | 0.761146 | 0.751653 | 0.738964 | 0.733034 | 0.714097 | 0 | 0.045184 | 0.135218 | 58,964 | 1,327 | 5,352 | 44.434062 | 0.758467 | 0.01796 | 0 | 0.727564 | 1 | 0.002404 | 0.183422 | 0.131282 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.001603 | 0.003205 | 0 | 0.003205 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
9ec46081a41bed245a72ab62a23595990f25c8f0 | 51,565 | py | Python | code/generation/OpenNMT-py-master-our-model/onmt/translate/translator.py | msra-nlc/MSParS-V2.0- | 3e215b5f6ef47040275b3612fd2e1d5591909039 | [
"Apache-2.0"
] | 11 | 2019-11-22T16:46:36.000Z | 2021-07-17T04:06:14.000Z | code/generation/OpenNMT-py-master-our-model/onmt/translate/translator.py | msra-nlc/MSParS-V2.0- | 3e215b5f6ef47040275b3612fd2e1d5591909039 | [
"Apache-2.0"
] | 3 | 2019-11-11T05:40:10.000Z | 2020-03-05T14:04:38.000Z | code/generation/OpenNMT-py-master-our-model/onmt/translate/translator.py | msra-nlc/MSParS-V2.0- | 3e215b5f6ef47040275b3612fd2e1d5591909039 | [
"Apache-2.0"
] | 3 | 2020-04-04T12:21:52.000Z | 2022-02-27T13:29:45.000Z | #!/usr/bin/env python
""" Translator Class and builder """
from __future__ import print_function
import argparse
import codecs
import os
import math
import torch
from itertools import count
from onmt.utils.misc import tile
import onmt.model_builder
import onmt.translate.beam
import onmt.inputters as inputters
import... | 40.034938 | 125 | 0.555648 | 6,149 | 51,565 | 4.414702 | 0.063913 | 0.024866 | 0.007699 | 0.009578 | 0.944338 | 0.938481 | 0.935055 | 0.931555 | 0.928829 | 0.928829 | 0 | 0.012519 | 0.35559 | 51,565 | 1,287 | 126 | 40.066045 | 0.804418 | 0.180937 | 0 | 0.889282 | 0 | 0 | 0.028546 | 0 | 0.003534 | 0 | 0 | 0.002331 | 0.010601 | 1 | 0.025913 | false | 0 | 0.015312 | 0 | 0.067138 | 0.001178 | 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 |
9ed1cee56e493aea962c882566aadfd0817a8140 | 9,620 | py | Python | ckan/tests/plugins/test_toolkit.py | okfde/ckankrzn | df4c1ed624f6751ac2a8f03527ff19e448d27dfb | [
"Apache-2.0"
] | 4 | 2017-06-12T15:18:30.000Z | 2019-10-11T15:12:43.000Z | ckan/tests/plugins/test_toolkit.py | okfde/ckankrzn | df4c1ed624f6751ac2a8f03527ff19e448d27dfb | [
"Apache-2.0"
] | 135 | 2019-07-03T19:58:12.000Z | 2020-02-14T19:57:33.000Z | ckan/tests/plugins/test_toolkit.py | okfde/ckankrzn | df4c1ed624f6751ac2a8f03527ff19e448d27dfb | [
"Apache-2.0"
] | 5 | 2017-04-06T21:18:38.000Z | 2020-03-30T17:05:23.000Z | # encoding: utf-8
from nose.tools import assert_equal, assert_raises, assert_true, raises
from ckan.plugins import toolkit as tk
class TestCheckCkanVersion(object):
@classmethod
def setup_class(cls):
# save the ckan version so it can be restored at the end of the test
cls.__original_ckan_ver... | 33.992933 | 79 | 0.664345 | 1,504 | 9,620 | 3.794548 | 0.080452 | 0.24286 | 0.136674 | 0.166813 | 0.843526 | 0.795164 | 0.742772 | 0.735237 | 0.735237 | 0.735237 | 0 | 0.054569 | 0.209459 | 9,620 | 282 | 80 | 34.113475 | 0.695858 | 0.065489 | 0 | 0.446701 | 0 | 0 | 0.047502 | 0.002899 | 0 | 0 | 0 | 0 | 0.294416 | 1 | 0.324873 | false | 0 | 0.010152 | 0 | 0.350254 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
734e70fbcf74ce0133016d4b2f9aea2cc6c5505b | 3,529 | py | Python | MyHDLSim/test/test_Nand.py | mattsnowboard/msu-myhdlsim | 5d0d881b682a72b77d9597cb84b8fdd4bd444afc | [
"BSD-2-Clause"
] | 1 | 2021-03-30T10:20:06.000Z | 2021-03-30T10:20:06.000Z | MyHDLSim/test/test_Nand.py | mattsnowboard/msu-myhdlsim | 5d0d881b682a72b77d9597cb84b8fdd4bd444afc | [
"BSD-2-Clause"
] | null | null | null | MyHDLSim/test/test_Nand.py | mattsnowboard/msu-myhdlsim | 5d0d881b682a72b77d9597cb84b8fdd4bd444afc | [
"BSD-2-Clause"
] | null | null | null | from unittest import TestCase
from myhdl import Signal, Simulation, delay
from MyHDLSim.combinational import Nand
class TestNandGate(TestCase):
def testTwoBits(self):
""" Check that given two bits, we return the proper output """
def test(out, a, b):
yield delay(10)
for i i... | 34.598039 | 84 | 0.439218 | 467 | 3,529 | 3.319058 | 0.143469 | 0.032258 | 0.064516 | 0.046452 | 0.810323 | 0.80129 | 0.782581 | 0.761935 | 0.749032 | 0.632258 | 0 | 0.022929 | 0.45622 | 3,529 | 101 | 85 | 34.940594 | 0.784784 | 0.110513 | 0 | 0.7625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.125 | false | 0 | 0.0375 | 0 | 0.175 | 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 |
b4563e904df8a7bff4695736d072a89ab054d0d7 | 43 | py | Python | malexport/__init__.py | seanbreckenridge/malexport | ae30bef37a8cf44f8b0511bdfcd395e56e85d06b | [
"MIT"
] | null | null | null | malexport/__init__.py | seanbreckenridge/malexport | ae30bef37a8cf44f8b0511bdfcd395e56e85d06b | [
"MIT"
] | 4 | 2021-09-19T15:18:37.000Z | 2022-02-10T06:10:38.000Z | malexport/__init__.py | seanbreckenridge/malexport | ae30bef37a8cf44f8b0511bdfcd395e56e85d06b | [
"MIT"
] | null | null | null | from . import exporter
from . import parse
| 14.333333 | 22 | 0.767442 | 6 | 43 | 5.5 | 0.666667 | 0.606061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 43 | 2 | 23 | 21.5 | 0.942857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
c330e1ed0681bf13b28326e2203489edf40237cf | 6,226 | py | Python | app/aws/metrics.py | cds-snc/notifier-api | 90b385ec49efbaee7e607516fc7d9f08991af813 | [
"MIT"
] | null | null | null | app/aws/metrics.py | cds-snc/notifier-api | 90b385ec49efbaee7e607516fc7d9f08991af813 | [
"MIT"
] | 51 | 2019-07-03T14:11:19.000Z | 2019-07-08T12:24:55.000Z | app/aws/metrics.py | cds-snc/notifier-api | 90b385ec49efbaee7e607516fc7d9f08991af813 | [
"MIT"
] | null | null | null | from __future__ import annotations # PEP 563 -- Postponed Evaluation of Annotations
from typing import TYPE_CHECKING, Optional
from botocore.exceptions import ClientError
from flask import current_app
if TYPE_CHECKING: # A special Python 3 constant that is assumed to be True by 3rd party static type checkers
f... | 39.910256 | 129 | 0.707356 | 723 | 6,226 | 5.882434 | 0.163209 | 0.11921 | 0.052669 | 0.048907 | 0.849988 | 0.841289 | 0.818481 | 0.816835 | 0.779685 | 0.779685 | 0 | 0.001016 | 0.209926 | 6,226 | 155 | 130 | 40.167742 | 0.86359 | 0.228076 | 0 | 0.741935 | 0 | 0 | 0.171571 | 0.01839 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.064516 | 0 | 0.258065 | 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 |
c340b955cdced405f05d828d9836676a17910f35 | 4,779 | py | Python | tests/keep_submodules_relative_test.py | mwtoews/absolufy-imports | e8d184d59900f29497bf9998c947d8fe43b7d8e3 | [
"MIT"
] | 76 | 2021-02-28T21:34:31.000Z | 2022-03-23T21:11:27.000Z | tests/keep_submodules_relative_test.py | mwtoews/absolufy-imports | e8d184d59900f29497bf9998c947d8fe43b7d8e3 | [
"MIT"
] | 39 | 2021-03-01T16:47:44.000Z | 2022-03-21T21:48:49.000Z | tests/keep_submodules_relative_test.py | mwtoews/absolufy-imports | e8d184d59900f29497bf9998c947d8fe43b7d8e3 | [
"MIT"
] | 6 | 2021-03-02T20:23:48.000Z | 2022-01-20T08:44:53.000Z | import os
import shutil
from absolufy_imports import main
def test_main(tmpdir):
os.mkdir(os.path.join(tmpdir, 'mypackage'))
shutil.copytree(
os.path.join('tests', 'data', 'library1'),
os.path.join(tmpdir, 'mypackage', 'library1'),
)
shutil.copytree(
os.path.join('tests', 'dat... | 25.55615 | 74 | 0.499268 | 465 | 4,779 | 5.105376 | 0.111828 | 0.070767 | 0.117944 | 0.107835 | 0.933446 | 0.923757 | 0.919545 | 0.919545 | 0.894693 | 0.894693 | 0 | 0.011018 | 0.354258 | 4,779 | 186 | 75 | 25.693548 | 0.758263 | 0 | 0 | 0.806061 | 0 | 0 | 0.308642 | 0.053986 | 0 | 0 | 0 | 0 | 0.024242 | 1 | 0.024242 | false | 0 | 0.151515 | 0 | 0.175758 | 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 |
c359e57d479cfe4891d70c0b88cebd1783a43a48 | 99 | py | Python | dbhub/__init__.py | Noxormy/dbhub_pip | 7eb6db3adf47ea00bef6e678c7154e360dd7b526 | [
"MIT"
] | 1 | 2021-02-18T10:31:16.000Z | 2021-02-18T10:31:16.000Z | dbhub/__init__.py | Noxormy/dbhub_pip | 7eb6db3adf47ea00bef6e678c7154e360dd7b526 | [
"MIT"
] | 1 | 2020-12-28T10:37:42.000Z | 2020-12-28T10:37:42.000Z | dbhub/__init__.py | Noxormy/dbhub_pip | 7eb6db3adf47ea00bef6e678c7154e360dd7b526 | [
"MIT"
] | 1 | 2021-03-07T23:37:30.000Z | 2021-03-07T23:37:30.000Z | from dbhub.dbhub import DbHub
def get_database(token, db_name):
return DbHub(token, db_name)
| 16.5 | 33 | 0.757576 | 16 | 99 | 4.5 | 0.625 | 0.194444 | 0.305556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161616 | 99 | 5 | 34 | 19.8 | 0.86747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 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 | 1 | 1 | 1 | 0 | 0 | 7 |
6f1955330f99890900ef1d84b395a6b814d9ed50 | 19,072 | py | Python | src/modules/pythOnline/whoIsPyth/__init__.py | JazziJazz/spamyton-biting-servers | 1c2152215e490fd35484c548889fed527a1671b1 | [
"MIT"
] | null | null | null | src/modules/pythOnline/whoIsPyth/__init__.py | JazziJazz/spamyton-biting-servers | 1c2152215e490fd35484c548889fed527a1671b1 | [
"MIT"
] | null | null | null | src/modules/pythOnline/whoIsPyth/__init__.py | JazziJazz/spamyton-biting-servers | 1c2152215e490fd35484c548889fed527a1671b1 | [
"MIT"
] | null | null | null | import os
import re
import json
import random
import requests
from bs4 import BeautifulSoup
from abc import ABC, abstractmethod
class PlayersNotFoundError(Exception):
pass
class Server(ABC):
@abstractmethod
def get_players_online(self, randomized_list: bool = False) -> None: pass
class KaldroxStrategy... | 43.543379 | 197 | 0.529625 | 2,174 | 19,072 | 4.570377 | 0.068537 | 0.036634 | 0.054952 | 0.054348 | 0.947061 | 0.945149 | 0.940922 | 0.940922 | 0.940922 | 0.940922 | 0 | 0.02668 | 0.329855 | 19,072 | 437 | 198 | 43.643021 | 0.746029 | 0 | 0 | 0.89759 | 0 | 0.060241 | 0.26379 | 0.027318 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033133 | false | 0.006024 | 0.021084 | 0 | 0.090361 | 0.060241 | 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 |
489d40a418757103340c8311a5f20316ba86c020 | 22,267 | py | Python | audynesia/plugins/animation4.py | brut69/AudyNesia | 6e23f1f0d8a3dc208dcb7523a5418b373250076f | [
"BSD-3-Clause"
] | null | null | null | audynesia/plugins/animation4.py | brut69/AudyNesia | 6e23f1f0d8a3dc208dcb7523a5418b373250076f | [
"BSD-3-Clause"
] | null | null | null | audynesia/plugins/animation4.py | brut69/AudyNesia | 6e23f1f0d8a3dc208dcb7523a5418b373250076f | [
"BSD-3-Clause"
] | null | null | null | import asyncio
from . import edit_or_reply, mention, udy
plugin_category = "fun"
@udy.cod_cmd(
pattern="kilr(?:\s|$)([\s\S]*)",
command=("kilr", plugin_category),
info={
"header": "Fun animation try yourself to know more",
"usage": "{tr}kilr <text>",
},
)
async def _(event):
"ani... | 48.092873 | 326 | 0.304352 | 2,902 | 22,267 | 5.131289 | 0.114059 | 0.012088 | 0.015714 | 0.017729 | 0.842119 | 0.832919 | 0.792156 | 0.779531 | 0.619972 | 0.612719 | 0 | 0.018274 | 0.189024 | 22,267 | 462 | 327 | 48.19697 | 0.343726 | 0 | 0 | 0.399083 | 0 | 0.052752 | 0.649885 | 0.382898 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.004587 | 0 | 0.004587 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
48d960c4ea7d10578a409b2539d6b3fa614d7ded | 5,345 | py | Python | python/depthwise_conv/ops.py | stellaraccident/iree-llvm-sandbox | 0bc3aa93f47ace46e8a09db6727f5bd3947ae66b | [
"Apache-2.0"
] | 1 | 2021-12-13T05:52:02.000Z | 2021-12-13T05:52:02.000Z | python/depthwise_conv/ops.py | stellaraccident/iree-llvm-sandbox | 0bc3aa93f47ace46e8a09db6727f5bd3947ae66b | [
"Apache-2.0"
] | null | null | null | python/depthwise_conv/ops.py | stellaraccident/iree-llvm-sandbox | 0bc3aa93f47ace46e8a09db6727f5bd3947ae66b | [
"Apache-2.0"
] | null | null | null | # pytype: skip-file
from mlir.ir import *
from mlir.dialects.linalg.opdsl.lang import *
@linalg_structured_op
def depthwise_conv_1d_ncw_cw(
I=TensorDef(TV.T1, S.N, S.C, S.OW * S.SW + S.KW * S.DW),
K=TensorDef(TV.T2, S.C, S.KW),
O=TensorDef(U, S.N, S.C, S.OW, output=True),
strides=AttributeDef(S.SW),
... | 33.198758 | 78 | 0.594013 | 1,118 | 5,345 | 2.775492 | 0.044723 | 0.030938 | 0.032871 | 0.081212 | 0.978408 | 0.978408 | 0.978408 | 0.978408 | 0.950048 | 0.948759 | 0 | 0.008255 | 0.184097 | 5,345 | 160 | 79 | 33.40625 | 0.703279 | 0.003181 | 0 | 0.80597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089552 | false | 0 | 0.014925 | 0 | 0.104478 | 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 |
5b1438415b0f391bdb472b62eda1f54359d10da5 | 126 | py | Python | odoo_book_meal/models/__init__.py | 13611843966/odooExtModel | a4a5e6c22560604d1186fcfb0f1843c6e37f2792 | [
"Apache-2.0"
] | 2 | 2019-12-06T04:47:49.000Z | 2021-05-16T15:42:25.000Z | odoo_book_meal/models/__init__.py | niulinlnc/odooExtModel | 8608aaeae7a8c86d53b68ce26b7b308f779c3dd8 | [
"Apache-2.0"
] | null | null | null | odoo_book_meal/models/__init__.py | niulinlnc/odooExtModel | 8608aaeae7a8c86d53b68ce26b7b308f779c3dd8 | [
"Apache-2.0"
] | 6 | 2020-03-01T08:16:07.000Z | 2021-11-05T05:48:53.000Z | # -*- coding: utf-8 -*-
from . import meal_type
from . import meal_product
from . import meal_alert
from . import meal_order
| 18 | 26 | 0.722222 | 19 | 126 | 4.578947 | 0.526316 | 0.45977 | 0.643678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0.174603 | 126 | 6 | 27 | 21 | 0.826923 | 0.166667 | 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 |
d288a13f388ca113c5aa024a59f36376d67a143b | 5,479 | py | Python | tests/datasets/test_text_data.py | Atharva-Phatak/torchflare | 945f4bee73a855edd8cb19cd646731155499a27f | [
"Apache-2.0"
] | 86 | 2021-04-23T04:55:43.000Z | 2022-03-08T05:25:27.000Z | tests/datasets/test_text_data.py | Atharva-Phatak/torchflare | 945f4bee73a855edd8cb19cd646731155499a27f | [
"Apache-2.0"
] | 252 | 2021-04-20T21:48:10.000Z | 2022-03-31T21:12:05.000Z | tests/datasets/test_text_data.py | Atharva-Phatak/torchflare | 945f4bee73a855edd8cb19cd646731155499a27f | [
"Apache-2.0"
] | 8 | 2021-04-28T19:57:49.000Z | 2021-08-09T02:31:35.000Z | # flake8 : noqa
from torchflare.datasets.text_data import TextDataset
import transformers
import pandas as pd
import torch
from collections import namedtuple
import pytest
from functools import partial
inputs = namedtuple("inputs", ["df", "path", "tokenizer", "max_len", "input_col", "label_col"])
tokenizer = transform... | 33.408537 | 99 | 0.618361 | 698 | 5,479 | 4.610315 | 0.120344 | 0.121193 | 0.073959 | 0.08266 | 0.870727 | 0.870727 | 0.870727 | 0.844002 | 0.844002 | 0.827843 | 0 | 0.004111 | 0.289651 | 5,479 | 163 | 100 | 33.613497 | 0.822713 | 0.002373 | 0 | 0.791367 | 0 | 0 | 0.041179 | 0.017936 | 0 | 0 | 0 | 0 | 0.172662 | 1 | 0.057554 | false | 0 | 0.05036 | 0 | 0.122302 | 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 |
d2c36b036e20210ba0f29e278a01e1039223e7e7 | 1,722 | py | Python | environment.py | amriteshbhaskar/PyProxy | 576afc06a67af88f2f665a5185ce307687434cc4 | [
"MIT"
] | 6 | 2018-11-13T16:30:07.000Z | 2019-02-08T16:04:01.000Z | environment.py | amriteshbhaskar/PyProxy | 576afc06a67af88f2f665a5185ce307687434cc4 | [
"MIT"
] | 1 | 2019-02-08T08:10:06.000Z | 2019-07-14T11:48:22.000Z | environment.py | amriteshbhaskar/PyProxy | 576afc06a67af88f2f665a5185ce307687434cc4 | [
"MIT"
] | 1 | 2019-02-08T07:16:28.000Z | 2019-02-08T07:16:28.000Z | #!/usr/bin/python3
import os
def set_proxy(host_ip, host_port, auth_choice, pc_username, username, password):
file_temp = open('/etc/enviromnent_temp', 'w+')
file_ob = open('/etc/environment', 'r')
for line in file_ob.readlines():
if 'http_proxy' in line or 'https_proxy' in line or 'ftp_proxy' in ... | 43.05 | 127 | 0.576074 | 223 | 1,722 | 4.206278 | 0.206278 | 0.102345 | 0.110874 | 0.104478 | 0.865672 | 0.865672 | 0.84968 | 0.778252 | 0.778252 | 0.778252 | 0 | 0.000746 | 0.221835 | 1,722 | 39 | 128 | 44.153846 | 0.699254 | 0.009872 | 0 | 0.666667 | 0 | 0 | 0.34331 | 0.049296 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0.121212 | 0.030303 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
d2d4b72ae4b54b5b93293c65b182154649f796da | 14,334 | py | Python | collections/nemo_nlp/nemo_nlp/modules/transformer_nm.py | eanmikale/NeMo | a8b05c11b70e33e3550dbf9bffaed49537bfc07a | [
"Apache-2.0"
] | null | null | null | collections/nemo_nlp/nemo_nlp/modules/transformer_nm.py | eanmikale/NeMo | a8b05c11b70e33e3550dbf9bffaed49537bfc07a | [
"Apache-2.0"
] | null | null | null | collections/nemo_nlp/nemo_nlp/modules/transformer_nm.py | eanmikale/NeMo | a8b05c11b70e33e3550dbf9bffaed49537bfc07a | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2019 NVIDIA Corporation
"""
This package contains Transformer for translation Neural Module
"""
__all__ = ['TransformerEncoderNM',
'TransformerDecoderNM',
'GreedyLanguageGeneratorNM',
'BeamSearchTranslatorNM']
import math
from nemo.backends.pytorch.nm import TrainableN... | 31.434211 | 78 | 0.571159 | 1,442 | 14,334 | 5.413315 | 0.127601 | 0.039969 | 0.056623 | 0.059954 | 0.808481 | 0.793236 | 0.789777 | 0.763003 | 0.745452 | 0.727902 | 0 | 0.009928 | 0.367588 | 14,334 | 455 | 79 | 31.503297 | 0.851186 | 0.33445 | 0 | 0.731225 | 0 | 0 | 0.029827 | 0.005351 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071146 | false | 0 | 0.019763 | 0.007905 | 0.162055 | 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 |
9620ce6fcf9a2b313a734a54cb47022ea4756d59 | 36,707 | py | Python | cerastes/protobuf/application_history_server_pb2.py | yassineazzouz/pyarn | 90ceef51e399e319e6a94cb5e950f47dacf8821a | [
"MIT"
] | 1 | 2021-11-16T02:38:05.000Z | 2021-11-16T02:38:05.000Z | cerastes/protobuf/application_history_server_pb2.py | yassineazzouz/pyarn | 90ceef51e399e319e6a94cb5e950f47dacf8821a | [
"MIT"
] | 6 | 2017-03-03T01:59:14.000Z | 2017-03-05T17:34:52.000Z | cerastes/protobuf/application_history_server_pb2.py | yassineazzouz/pyarn | 90ceef51e399e319e6a94cb5e950f47dacf8821a | [
"MIT"
] | 3 | 2017-10-10T19:25:47.000Z | 2021-09-17T02:46:07.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
from google.protobuf import descriptor
from google.protobuf import message
from google.protobuf import reflection
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)
import yarn_protos_pb2
DESCRIPTOR = descriptor.FileDescriptor(
... | 51.482468 | 4,461 | 0.771379 | 4,526 | 36,707 | 5.983429 | 0.04905 | 0.054946 | 0.035154 | 0.045198 | 0.856615 | 0.78472 | 0.724789 | 0.704368 | 0.701414 | 0.690041 | 0 | 0.042904 | 0.115482 | 36,707 | 712 | 4,462 | 51.554775 | 0.791179 | 0.022802 | 0 | 0.714939 | 1 | 0.001524 | 0.280559 | 0.253117 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.007622 | 0 | 0.04878 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
827c1499480e756ad9e2a3f7961085adc59a4ee6 | 394 | py | Python | nlpaug/augmenter/audio/__init__.py | avostryakov/nlpaug | f75770c230fe586cf21d11ad3342c2f160560d6a | [
"MIT"
] | 1 | 2019-11-11T06:47:43.000Z | 2019-11-11T06:47:43.000Z | nlpaug/augmenter/audio/__init__.py | avostryakov/nlpaug | f75770c230fe586cf21d11ad3342c2f160560d6a | [
"MIT"
] | null | null | null | nlpaug/augmenter/audio/__init__.py | avostryakov/nlpaug | f75770c230fe586cf21d11ad3342c2f160560d6a | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from nlpaug.augmenter.audio.audio_augmenter import *
from nlpaug.augmenter.audio.noise import *
from nlpaug.augmenter.audio.shift import *
from nlpaug.augmenter.audio.speed import *
from nlpaug.augmenter.audio.pitch import *
from nlpaug.augmenter.audio.loudness import *
from nlpau... | 39.4 | 52 | 0.827411 | 54 | 394 | 5.925926 | 0.259259 | 0.25 | 0.4 | 0.625 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091371 | 394 | 9 | 53 | 43.777778 | 0.893855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8280aeee5d2980b7fd169c22dfbd30407b319f36 | 4,026 | py | Python | test/test_picross.py | perimosocordiae/picross | f5525b9975d007f280c95aba391f7a3a3c7e69fb | [
"MIT"
] | 1 | 2017-04-01T19:35:08.000Z | 2017-04-01T19:35:08.000Z | test/test_picross.py | perimosocordiae/picross | f5525b9975d007f280c95aba391f7a3a3c7e69fb | [
"MIT"
] | 1 | 2017-03-25T23:45:21.000Z | 2017-03-27T18:14:47.000Z | test/test_picross.py | perimosocordiae/picross | f5525b9975d007f280c95aba391f7a3a3c7e69fb | [
"MIT"
] | null | null | null | import unittest
import numpy as np
from numpy.testing import assert_array_equal
from picross import solve, FULL as X, EMPTY as O
class PicrossTest(unittest.TestCase):
def test_solve_1(self):
rows = [[2,1,1,1,1,1,1],[5,1,1,4],[4,4],[1,1],[3],
[7],[6],[3],[1,3],[2,4],
[3,8],[13],[12],[12]... | 50.325 | 78 | 0.336811 | 1,044 | 4,026 | 1.281609 | 0.045019 | 0.497758 | 0.612108 | 0.672646 | 0.718236 | 0.710015 | 0.687593 | 0.672646 | 0.66293 | 0.648729 | 0 | 0.074667 | 0.347988 | 4,026 | 79 | 79 | 50.962025 | 0.435048 | 0 | 0 | 0.273973 | 0 | 0 | 0.001987 | 0 | 0 | 0 | 0 | 0 | 0.041096 | 1 | 0.027397 | false | 0 | 0.054795 | 0 | 0.09589 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
828ed17b8fbc600af1768ec4a95671b77295192f | 4,031 | py | Python | mliv/neuralnet/architectures.py | microsoft/AdversarialGMM | 7a5cd51353c8a81e16c01220b71f77e4e1102add | [
"MIT"
] | 23 | 2020-12-01T22:55:40.000Z | 2022-01-26T04:11:14.000Z | mliv/neuralnet/architectures.py | microsoft/AdversarialGMM | 7a5cd51353c8a81e16c01220b71f77e4e1102add | [
"MIT"
] | null | null | null | mliv/neuralnet/architectures.py | microsoft/AdversarialGMM | 7a5cd51353c8a81e16c01220b71f77e4e1102add | [
"MIT"
] | 10 | 2020-12-05T17:12:49.000Z | 2022-01-10T23:42:37.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
import torch
import torch.nn as nn
import torch.nn.functional as F
class CNN_Z_agmm(nn.Module):
def __init__(self):
super(CNN_Z_agmm, self).__init__()
self.conv1 = nn.Conv2d(1, 32, 3, 1)
self.conv2 = nn.Conv2d(32, 64... | 26.873333 | 54 | 0.533614 | 639 | 4,031 | 3.214398 | 0.112676 | 0.037001 | 0.05258 | 0.040896 | 0.810127 | 0.784323 | 0.784323 | 0.771178 | 0.743914 | 0.743914 | 0 | 0.075458 | 0.322749 | 4,031 | 149 | 55 | 27.053691 | 0.676923 | 0.040685 | 0 | 0.710938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085938 | false | 0 | 0.023438 | 0 | 0.195313 | 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 |
82e0ee25b9abe7dc4f9c3a9f047cc986a9799476 | 8,793 | py | Python | polaris/polaris/tests/commands/test_check_trustlines.py | ouattararomuald/django-polaris | c18dbf7c42c7745673d2e59b2f473848d990297b | [
"Apache-2.0"
] | null | null | null | polaris/polaris/tests/commands/test_check_trustlines.py | ouattararomuald/django-polaris | c18dbf7c42c7745673d2e59b2f473848d990297b | [
"Apache-2.0"
] | null | null | null | polaris/polaris/tests/commands/test_check_trustlines.py | ouattararomuald/django-polaris | c18dbf7c42c7745673d2e59b2f473848d990297b | [
"Apache-2.0"
] | null | null | null | import pytest
from unittest.mock import patch, Mock, call
from stellar_sdk import Keypair
from stellar_sdk.exceptions import ConnectionError
from polaris.models import Transaction, Asset
from polaris.management.commands.check_trustlines import Command as CheckTrustlinesCMD
@pytest.mark.django_db
@patch("polaris.man... | 38.39738 | 98 | 0.739907 | 1,015 | 8,793 | 6.082759 | 0.09064 | 0.077745 | 0.089083 | 0.1069 | 0.9276 | 0.907677 | 0.907677 | 0.881924 | 0.874312 | 0.866213 | 0 | 0.0032 | 0.146935 | 8,793 | 228 | 99 | 38.565789 | 0.819891 | 0 | 0 | 0.713592 | 0 | 0 | 0.21665 | 0.16172 | 0 | 0 | 0 | 0 | 0.126214 | 1 | 0.024272 | false | 0 | 0.029126 | 0 | 0.053398 | 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 |
7d8f8a85a70b0b1836cab0ae7afb1486927b44e6 | 8,630 | py | Python | third_party/implicit_hyper_opt/data_loaders.py | googleinterns/commentaries | 3edd312bdcf3dd99ffdda8324a65de46ef0bae0f | [
"Apache-2.0"
] | 2 | 2021-04-20T00:54:06.000Z | 2021-05-11T00:56:41.000Z | third_party/implicit_hyper_opt/data_loaders.py | googleinterns/commentaries | 3edd312bdcf3dd99ffdda8324a65de46ef0bae0f | [
"Apache-2.0"
] | 2 | 2021-11-02T11:14:31.000Z | 2021-11-02T11:17:10.000Z | third_party/implicit_hyper_opt/data_loaders.py | googleinterns/commentaries | 3edd312bdcf3dd99ffdda8324a65de46ef0bae0f | [
"Apache-2.0"
] | 1 | 2021-10-31T18:34:59.000Z | 2021-10-31T18:34:59.000Z | # MIT License
#
# Copyright (c) 2018 Jonathan Lorraine, Google LLC
import os
import ipdb
import numpy as np
import pandas as pd
from glob import glob
from sklearn.model_selection import train_test_split
import torch
from torch.utils.data import Dataset, DataLoader, Subset
from torchvision import datasets, transforms... | 44.947917 | 116 | 0.648899 | 1,028 | 8,630 | 5.289883 | 0.110895 | 0.054616 | 0.038617 | 0.049651 | 0.87569 | 0.858772 | 0.849945 | 0.837624 | 0.81758 | 0.817212 | 0 | 0.048713 | 0.243569 | 8,630 | 191 | 117 | 45.183246 | 0.784314 | 0.059328 | 0 | 0.759399 | 0 | 0 | 0.020279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030075 | false | 0 | 0.075188 | 0.007519 | 0.157895 | 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 |
7dd681af575efedde3fe97b3e743f7ff3342119d | 2,973 | py | Python | tests/test_density.py | uvchik/windpowerlib | a338694a84e373ec2c2d0f2ac5a3037d4a1c0d0c | [
"MIT"
] | 1 | 2020-09-20T23:25:15.000Z | 2020-09-20T23:25:15.000Z | tests/test_density.py | uvchik/windpowerlib | a338694a84e373ec2c2d0f2ac5a3037d4a1c0d0c | [
"MIT"
] | null | null | null | tests/test_density.py | uvchik/windpowerlib | a338694a84e373ec2c2d0f2ac5a3037d4a1c0d0c | [
"MIT"
] | null | null | null | """
SPDX-FileCopyrightText: 2019 oemof developer group <contact@oemof.org>
SPDX-License-Identifier: MIT
"""
import pandas as pd
import numpy as np
from pandas.util.testing import assert_series_equal
from numpy.testing import assert_allclose
from windpowerlib.density import barometric, ideal_gas
class TestDensity:
... | 43.086957 | 76 | 0.667003 | 351 | 2,973 | 5.418803 | 0.162393 | 0.104101 | 0.210305 | 0.189274 | 0.777603 | 0.752366 | 0.752366 | 0.73817 | 0.725026 | 0.725026 | 0 | 0.052083 | 0.225025 | 2,973 | 68 | 77 | 43.720588 | 0.773438 | 0.17558 | 0 | 0.659091 | 0 | 0 | 0.166667 | 0.126437 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.045455 | false | 0 | 0.113636 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c49a2a438aea0d429c175d2ebb5993dedc75b786 | 3,922 | py | Python | extras/appdaemon/apps/timer.py | aneisch/home-assistant | d8a866d75f512d23ffa7b9e5d82d7c575ece3c76 | [
"Apache-2.0"
] | 18 | 2016-08-10T01:02:27.000Z | 2017-10-26T04:19:49.000Z | extras/appdaemon/apps/timer.py | aneisch/home-assistant | d8a866d75f512d23ffa7b9e5d82d7c575ece3c76 | [
"Apache-2.0"
] | null | null | null | extras/appdaemon/apps/timer.py | aneisch/home-assistant | d8a866d75f512d23ffa7b9e5d82d7c575ece3c76 | [
"Apache-2.0"
] | 4 | 2017-04-20T19:41:21.000Z | 2017-05-16T17:10:05.000Z | import appdaemon.plugins.hass.hassapi as hass
import datetime
from datetime import timedelta
import time
# Simple app to get a precise countdown from Alexa timer
class Timer(hass.Hass):
def initialize(self):
self.listen_state(self.state_change, self.args["timer_entity"])
def state_change(self, entity... | 50.282051 | 123 | 0.583631 | 420 | 3,922 | 5.290476 | 0.188095 | 0.135014 | 0.175518 | 0.037804 | 0.907291 | 0.876688 | 0.851485 | 0.851485 | 0.851485 | 0.851485 | 0 | 0.003682 | 0.307496 | 3,922 | 77 | 124 | 50.935065 | 0.814433 | 0.013768 | 0 | 0.859155 | 0 | 0 | 0.139421 | 0.016296 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056338 | false | 0 | 0.056338 | 0 | 0.140845 | 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 |
c4b353dd88212a63ef24d11ee36c2ed0d49dccb0 | 1,713 | py | Python | tests/test_result.py | hexatester/dapodik | d89c0fb899c89e866527f6b7b57f741abd6444ea | [
"MIT"
] | 4 | 2021-02-01T15:19:35.000Z | 2022-01-26T02:47:21.000Z | tests/test_result.py | hexatester/dapodik | d89c0fb899c89e866527f6b7b57f741abd6444ea | [
"MIT"
] | 3 | 2020-01-08T17:07:15.000Z | 2020-01-08T18:05:12.000Z | tests/test_result.py | hexatester/dapodik | d89c0fb899c89e866527f6b7b57f741abd6444ea | [
"MIT"
] | 2 | 2021-08-04T13:48:08.000Z | 2021-12-25T02:36:49.000Z | from dapodik.result import DapodikResult
from dapodik.rest import Agama
from typing import List
def test_result():
data = """{ "results" : 8, "id" : "agama_id", "start": 0, "limit": 20, "rows" : [{"agama_id":1,"nama":"Islam","create_date":"2013-05-13 06:51:30","last_update":"2021-06-19 13:23:39","expired_date":nu... | 122.357143 | 1,370 | 0.686515 | 313 | 1,713 | 3.619808 | 0.214058 | 0.084731 | 0.112974 | 0.141218 | 0.624007 | 0.60812 | 0.60812 | 0.60812 | 0.60812 | 0.60812 | 0 | 0.218261 | 0.06655 | 1,713 | 13 | 1,371 | 131.769231 | 0.490306 | 0 | 0 | 0 | 0 | 0.090909 | 0.789842 | 0.720957 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
487b16632a932959d08ed2a6ceef9ec7af276b4b | 8,601 | py | Python | tests/dhcpv4/relay/test_v4_request_relay_part3.py | shawnmullaney/forge | aaaef0a0645f73d24666aab6a400f3604e753aac | [
"0BSD"
] | null | null | null | tests/dhcpv4/relay/test_v4_request_relay_part3.py | shawnmullaney/forge | aaaef0a0645f73d24666aab6a400f3604e753aac | [
"0BSD"
] | null | null | null | tests/dhcpv4/relay/test_v4_request_relay_part3.py | shawnmullaney/forge | aaaef0a0645f73d24666aab6a400f3604e753aac | [
"0BSD"
] | null | null | null | """DHCPv4 address request process"""
# pylint: disable=invalid-name,line-too-long
import pytest
import misc
import srv_control
import srv_msg
@pytest.mark.v4
@pytest.mark.dhcp4
@pytest.mark.relay
@pytest.mark.request
def test_v4_request_relay_renewing_success():
misc.test_setup()
srv_control.set_time('ren... | 43.439394 | 90 | 0.715731 | 1,253 | 8,601 | 4.554669 | 0.089385 | 0.107237 | 0.088313 | 0.126511 | 0.970913 | 0.970913 | 0.970913 | 0.970913 | 0.970913 | 0.970913 | 0 | 0.052104 | 0.118591 | 8,601 | 197 | 91 | 43.659898 | 0.700699 | 0.028718 | 0 | 0.918239 | 0 | 0 | 0.230078 | 0.008987 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | true | 0.056604 | 0.025157 | 0 | 0.044025 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 9 |
6f994ef1c8fabd70be9b46d48581fe86ee92929b | 7,795 | py | Python | baxter_ras_interface/scripts/Gd_List_Game1.py | gabrieldiaz94/RAS-Baxter-Interface | 7766d012617bffd09e42b6b76ea105fb3fe24481 | [
"Apache-2.0"
] | 1 | 2022-03-06T15:47:33.000Z | 2022-03-06T15:47:33.000Z | baxter_ras_interface/scripts/Gd_List_Game1.py | willandru/RAS-Baxter-Interface | 7766d012617bffd09e42b6b76ea105fb3fe24481 | [
"Apache-2.0"
] | null | null | null | baxter_ras_interface/scripts/Gd_List_Game1.py | willandru/RAS-Baxter-Interface | 7766d012617bffd09e42b6b76ea105fb3fe24481 | [
"Apache-2.0"
] | 1 | 2022-03-06T15:46:37.000Z | 2022-03-06T15:46:37.000Z | #!/usr/bin/env python
#Reference: the baxter_stocking_stuffer project by students in Northwestern's MSR program - Josh Marino, Sabeen Admani, Andrew Turchina and Chu-Chu Igbokwe
#Service provided - ObjLocation service - contains x,y,z coordinates of object in baxter's stationary body frame, whether it is ok to grasp an... | 32.752101 | 187 | 0.696087 | 1,116 | 7,795 | 4.719534 | 0.134409 | 0.102525 | 0.051642 | 0.022973 | 0.811278 | 0.811278 | 0.80881 | 0.80881 | 0.80881 | 0.788684 | 0 | 0.030977 | 0.192431 | 7,795 | 237 | 188 | 32.890295 | 0.805719 | 0.048621 | 0 | 0.781659 | 0 | 0 | 0.04129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.056769 | null | null | 0.017467 | 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 |
6fc59d2bef2ae6f01b83dd6635a387ef5ba75991 | 2,608 | py | Python | air_ticket/headers.py | nciefeiniu/python-test | d81fcfff8cdec724c3010d6b7a77aabad7f90595 | [
"Apache-2.0"
] | null | null | null | air_ticket/headers.py | nciefeiniu/python-test | d81fcfff8cdec724c3010d6b7a77aabad7f90595 | [
"Apache-2.0"
] | null | null | null | air_ticket/headers.py | nciefeiniu/python-test | d81fcfff8cdec724c3010d6b7a77aabad7f90595 | [
"Apache-2.0"
] | null | null | null | import random
def get_header(type):
# useragent
USER_AGENTS = [
'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.98 Safari/537.36 LBBROWSER',
'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.... | 70.486486 | 202 | 0.646472 | 453 | 2,608 | 3.721854 | 0.227373 | 0.094899 | 0.106762 | 0.132859 | 0.787663 | 0.787663 | 0.787663 | 0.787663 | 0.744365 | 0.669039 | 0 | 0.205357 | 0.184049 | 2,608 | 36 | 203 | 72.444444 | 0.585526 | 0.003451 | 0 | 0.25 | 0 | 0.625 | 0.817411 | 0.01926 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.03125 | 0 | 0.09375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
82ef3b93cc7bbf81afc73ec8189c75821396c611 | 35,155 | py | Python | tests/test_check_marathon_services_replication.py | oholiab/paasta | f008e07622aaf09b43513fcaaef501e320870ae6 | [
"Apache-2.0"
] | null | null | null | tests/test_check_marathon_services_replication.py | oholiab/paasta | f008e07622aaf09b43513fcaaef501e320870ae6 | [
"Apache-2.0"
] | 4 | 2021-02-08T20:55:34.000Z | 2021-03-26T00:29:25.000Z | tests/test_check_marathon_services_replication.py | oholiab/paasta | f008e07622aaf09b43513fcaaef501e320870ae6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Yelp Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | 44.109159 | 119 | 0.704964 | 4,071 | 35,155 | 5.619013 | 0.060673 | 0.033049 | 0.072525 | 0.110514 | 0.873486 | 0.836415 | 0.820153 | 0.808699 | 0.793137 | 0.778929 | 0 | 0.005653 | 0.220026 | 35,155 | 796 | 120 | 44.164573 | 0.828592 | 0.027023 | 0 | 0.733057 | 0 | 0 | 0.193301 | 0.146204 | 0 | 0 | 0 | 0 | 0.04426 | 1 | 0.033195 | false | 0 | 0.009682 | 0 | 0.042877 | 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 |
d20e7577b579df6705c3ad38b0b387a427d983fd | 11,067 | py | Python | filenames/generate_filenames.py | edwardyang12/aanet | 70e79a6d1ccf19491133e784b9df6a29dff88321 | [
"Apache-2.0"
] | null | null | null | filenames/generate_filenames.py | edwardyang12/aanet | 70e79a6d1ccf19491133e784b9df6a29dff88321 | [
"Apache-2.0"
] | null | null | null | filenames/generate_filenames.py | edwardyang12/aanet | 70e79a6d1ccf19491133e784b9df6a29dff88321 | [
"Apache-2.0"
] | null | null | null | import os
from glob import glob
from PIL import Image
from depth2disp import convert_file
import numpy as np
intrinsic = np.array([[1387.095, 0.0, 960.0], [0.0, 1387.095, 540.0], [0.0, 0.0, 1.0]])
def gen_kitti_2015():
data_dir = 'data/KITTI/kitti_2015/data_scene_flow'
train_file = 'KITTI_2015_train.txt'
... | 35.931818 | 99 | 0.537363 | 1,473 | 11,067 | 3.789545 | 0.093007 | 0.042995 | 0.074525 | 0.026872 | 0.859907 | 0.846829 | 0.829631 | 0.802401 | 0.787531 | 0.770333 | 0 | 0.03713 | 0.316165 | 11,067 | 307 | 100 | 36.04886 | 0.700449 | 0.18135 | 0 | 0.776699 | 0 | 0 | 0.233356 | 0.130826 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029126 | false | 0 | 0.024272 | 0 | 0.053398 | 0.004854 | 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 |
967971887e998dfef1e36fce660438766093827c | 9,474 | py | Python | tests/babel/reasonerStdTests/test_wildcard_handler.py | NCATSTranslator/connections_hypothesis_provider | a233068bf507a9cf65a7c70c88422984a77d7c20 | [
"Apache-2.0"
] | null | null | null | tests/babel/reasonerStdTests/test_wildcard_handler.py | NCATSTranslator/connections_hypothesis_provider | a233068bf507a9cf65a7c70c88422984a77d7c20 | [
"Apache-2.0"
] | 7 | 2021-01-13T22:25:46.000Z | 2021-07-29T15:26:06.000Z | tests/babel/reasonerStdTests/test_wildcard_handler.py | NCATSTranslator/chp | 00668fd3d50a48fdd75abbeacaf173a3ad41942d | [
"Apache-2.0"
] | 2 | 2021-01-14T19:06:24.000Z | 2021-01-26T15:02:12.000Z | """
Source code developed by DI2AG.
Thayer School of Engineering at Dartmouth College
Authors: Dr. Eugene Santos, Jr
Mr. Chase Yakaboski,
Mr. Gregory Hyde,
Mr. Luke Veenhuis,
Dr. Keum Joo Kim
"""
import requests
import json
import unittest
... | 45.990291 | 124 | 0.382626 | 605 | 9,474 | 5.826446 | 0.259504 | 0.090496 | 0.081702 | 0.107234 | 0.861844 | 0.861844 | 0.838582 | 0.838582 | 0.838582 | 0.838582 | 0 | 0.017517 | 0.52396 | 9,474 | 205 | 125 | 46.214634 | 0.76408 | 0.133523 | 0 | 0.748092 | 0 | 0 | 0.188639 | 0.050105 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015267 | false | 0 | 0.030534 | 0 | 0.053435 | 0.030534 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 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 |
967c27b0f77d758510f894387902201fbb0739bc | 1,727 | py | Python | test/test_regpath.py | Pseudomanifold/POT | 5861209f27fe8e022eca2ed2c8d0bb1da4a1146b | [
"MIT"
] | 830 | 2020-04-21T03:45:02.000Z | 2022-03-31T18:27:08.000Z | test/test_regpath.py | Pseudomanifold/POT | 5861209f27fe8e022eca2ed2c8d0bb1da4a1146b | [
"MIT"
] | 192 | 2020-04-17T10:15:37.000Z | 2022-03-24T10:00:57.000Z | test/test_regpath.py | Pseudomanifold/POT | 5861209f27fe8e022eca2ed2c8d0bb1da4a1146b | [
"MIT"
] | 402 | 2020-04-17T18:24:00.000Z | 2022-03-29T18:26:33.000Z | """Tests for module regularization path"""
# Author: Haoran Wu <haoran.wu@univ-ubs.fr>
#
# License: MIT License
import numpy as np
import ot
def test_fully_relaxed_path():
n_source = 50 # nb source samples (gaussian)
n_target = 40 # nb target samples (gaussian)
mu = np.array([0, 0])
cov = np.a... | 26.569231 | 64 | 0.607412 | 274 | 1,727 | 3.660584 | 0.262774 | 0.055833 | 0.055833 | 0.063809 | 0.861416 | 0.861416 | 0.861416 | 0.861416 | 0.861416 | 0.861416 | 0 | 0.035549 | 0.250724 | 1,727 | 64 | 65 | 26.984375 | 0.739567 | 0.176028 | 0 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.111111 | 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 |
9693c31aef8255f9f50d5ddb602faf91ec99b5c4 | 16,044 | py | Python | backend/fms_core/migrations/0018_v3_1_0.py | c3g/freezeman | bc4b6c8a2876e888ce41b7d14127cc22bc2b2143 | [
"W3C"
] | 2 | 2021-07-31T13:20:08.000Z | 2021-09-28T13:18:55.000Z | backend/fms_core/migrations/0018_v3_1_0.py | c3g/freezeman | bc4b6c8a2876e888ce41b7d14127cc22bc2b2143 | [
"W3C"
] | 71 | 2021-03-12T22:08:19.000Z | 2022-03-25T15:24:40.000Z | backend/fms_core/migrations/0018_v3_1_0.py | c3g/freezeman | bc4b6c8a2876e888ce41b7d14127cc22bc2b2143 | [
"W3C"
] | null | null | null | # Generated by Django 3.1 on 2021-03-25 16:46
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
from django.contrib.auth.models import User
import django.utils.timezone
import fms_core.schema_validators
import reversion
ADMIN_USERNAME='biobankadmin'
def init_t... | 48.035928 | 185 | 0.646223 | 1,731 | 16,044 | 5.739457 | 0.088388 | 0.041671 | 0.034021 | 0.060191 | 0.830398 | 0.808052 | 0.775239 | 0.761349 | 0.742124 | 0.677101 | 0 | 0.001739 | 0.24732 | 16,044 | 333 | 186 | 48.18018 | 0.820967 | 0.029668 | 0 | 0.695793 | 1 | 0 | 0.174561 | 0.049489 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006472 | false | 0 | 0.087379 | 0 | 0.10356 | 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 |
96a05f4bd7299bc6550695547057304d415fc8aa | 56,199 | py | Python | hours/tests/test_new_models.py | Sukriva/hauki | 2ed569d2e4b1f1cf315939aa15c52dcabd52876b | [
"MIT"
] | null | null | null | hours/tests/test_new_models.py | Sukriva/hauki | 2ed569d2e4b1f1cf315939aa15c52dcabd52876b | [
"MIT"
] | null | null | null | hours/tests/test_new_models.py | Sukriva/hauki | 2ed569d2e4b1f1cf315939aa15c52dcabd52876b | [
"MIT"
] | null | null | null | import datetime
import pytest
from hours.enums import FrequencyModifier, RuleContext, RuleSubject, State, Weekday
from hours.models import TimeElement
@pytest.mark.django_db
def test_resource_get_daily_opening_hours(
resource, date_period_factory, time_span_group_factory, time_span_factory
):
date_period = ... | 32.224197 | 86 | 0.659425 | 7,610 | 56,199 | 4.617083 | 0.022865 | 0.121243 | 0.161658 | 0.177026 | 0.976662 | 0.972478 | 0.965762 | 0.92418 | 0.918289 | 0.902949 | 0 | 0.068909 | 0.226107 | 56,199 | 1,743 | 87 | 32.242685 | 0.738963 | 0.004182 | 0 | 0.753415 | 0 | 0 | 0.005344 | 0 | 0 | 0 | 0 | 0 | 0.031421 | 1 | 0.02459 | false | 0 | 0.002732 | 0 | 0.027322 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
73d783185a0b4508aaac17beac942c9196c3da5a | 34,715 | py | Python | macadam/base/preprocess.py | yongzhuo/Macadam | 794a29c760ce25264388c3a85a6b118733afb023 | [
"MIT"
] | 290 | 2020-06-04T17:01:30.000Z | 2022-03-29T13:10:18.000Z | macadam/base/preprocess.py | furtherthanfar/Macadam | 794a29c760ce25264388c3a85a6b118733afb023 | [
"MIT"
] | 7 | 2020-06-05T02:30:51.000Z | 2022-03-17T01:05:42.000Z | macadam/base/preprocess.py | furtherthanfar/Macadam | 794a29c760ce25264388c3a85a6b118733afb023 | [
"MIT"
] | 35 | 2020-06-11T07:32:17.000Z | 2022-03-09T06:08:03.000Z | # !/usr/bin/python
# -*- coding: utf-8 -*-
# @time : 2020/4/23 21:17
# @author : Mo
# @function: preprocess of sentence and label, 1. auto, shuffle-size, sequence-length-max,
from macadam.conf.constant_params import UNK, PAD, MASK, CLS, SEP, PAD, UNK, BOS, EOS, WC, SL, TC, RE
from macadam.base.utils import save_j... | 41.977025 | 137 | 0.552528 | 4,443 | 34,715 | 4.083052 | 0.077875 | 0.021168 | 0.030759 | 0.021609 | 0.849402 | 0.840913 | 0.824872 | 0.818422 | 0.801279 | 0.790089 | 0 | 0.014905 | 0.350627 | 34,715 | 826 | 138 | 42.027845 | 0.789824 | 0.224543 | 0 | 0.761364 | 0 | 0 | 0.021486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054924 | false | 0 | 0.032197 | 0 | 0.117424 | 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 |
73f6571556957eb490ba66e2780b13eb3d66d277 | 8,044 | py | Python | include/quantum.py | oplik0/basics-of-quantum-computing | 32084c4b320abfb341c46b581b979d047369eada | [
"Apache-2.0",
"CC-BY-4.0"
] | 31 | 2019-10-06T19:13:26.000Z | 2022-03-16T14:53:23.000Z | include/quantum.py | oplik0/basics-of-quantum-computing | 32084c4b320abfb341c46b581b979d047369eada | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | include/quantum.py | oplik0/basics-of-quantum-computing | 32084c4b320abfb341c46b581b979d047369eada | [
"Apache-2.0",
"CC-BY-4.0"
] | 12 | 2020-03-07T09:15:40.000Z | 2022-03-21T16:41:24.000Z | import random, math
# randomly create a 2-dimensional quantum state
def random_quantum_state():
first_entry = random.randrange(-100,101)
second_entry = random.randrange(-100,101)
length_square = first_entry**2+second_entry**2
while length_square == 0:
first_entry = random.randrange(-100,101)
second_entry = ran... | 38.304762 | 81 | 0.667703 | 1,240 | 8,044 | 4.125806 | 0.070968 | 0.416341 | 0.137217 | 0.219312 | 0.878225 | 0.854965 | 0.831509 | 0.821345 | 0.821345 | 0.805317 | 0 | 0.109216 | 0.183864 | 8,044 | 210 | 82 | 38.304762 | 0.670069 | 0.052461 | 0 | 0.849711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046243 | false | 0 | 0.00578 | 0 | 0.069364 | 0 | 0 | 0 | 0 | null | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
73f91ab82faf94de5bddc1370cb91df3f3a292f0 | 3,842 | py | Python | bommerge/components/test_resistor.py | sakoPO/bommerge | 88a3697ce03908053c9d7c52fd3f78db0ce52371 | [
"BSD-3-Clause"
] | null | null | null | bommerge/components/test_resistor.py | sakoPO/bommerge | 88a3697ce03908053c9d7c52fd3f78db0ce52371 | [
"BSD-3-Clause"
] | null | null | null | bommerge/components/test_resistor.py | sakoPO/bommerge | 88a3697ce03908053c9d7c52fd3f78db0ce52371 | [
"BSD-3-Clause"
] | null | null | null | import unittest
import resistor
from decimal import *
class TestResistor(unittest.TestCase):
def test_conversion(self):
self.assertEqual(resistor.convert_resistance_to_ohms('1m'), Decimal('0.001'))
self.assertEqual(resistor.convert_resistance_to_ohms('1m\u03a9'), Decimal('0.001'))
self.ass... | 55.681159 | 99 | 0.718636 | 481 | 3,842 | 5.47817 | 0.099792 | 0.227704 | 0.349146 | 0.375712 | 0.864516 | 0.864516 | 0.864516 | 0.864516 | 0.735863 | 0.379507 | 0 | 0.098895 | 0.128839 | 3,842 | 68 | 100 | 56.5 | 0.688378 | 0.004165 | 0 | 0 | 0 | 0 | 0.120942 | 0 | 0 | 0 | 0 | 0 | 0.833333 | 1 | 0.041667 | false | 0 | 0.0625 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
fb687f01d08ba9046dc125ed65f1c6cb23a16552 | 18,801 | py | Python | evap/staff/fixtures/excel_files_test_data.py | felixrindt/EvaP | fe65fcc511cc942695ce1edbaab170894f0d37b1 | [
"MIT"
] | 29 | 2020-02-28T23:03:41.000Z | 2022-02-19T09:29:36.000Z | evap/staff/fixtures/excel_files_test_data.py | felixrindt/EvaP | fe65fcc511cc942695ce1edbaab170894f0d37b1 | [
"MIT"
] | 247 | 2020-02-19T17:18:15.000Z | 2022-03-31T20:59:47.000Z | evap/staff/fixtures/excel_files_test_data.py | felixrindt/EvaP | fe65fcc511cc942695ce1edbaab170894f0d37b1 | [
"MIT"
] | 35 | 2020-04-10T21:50:02.000Z | 2022-03-10T16:42:11.000Z | import io
import xlwt
duplicate_user_import_filedata = {
'Users': [
['Title', 'First Name', 'Last Name', 'Email'],
['', 'Lucilia', 'Manilium', 'lucilia.manilium@institution.example.com'],
['', 'Bastius', 'Quid', 'bastius.quid@external.example.com'],
['', 'Bastius', 'Quid', 'bastius... | 113.259036 | 263 | 0.638902 | 2,053 | 18,801 | 5.821237 | 0.097906 | 0.13137 | 0.154631 | 0.074303 | 0.94536 | 0.94536 | 0.94536 | 0.930884 | 0.928039 | 0.914986 | 0 | 0.013155 | 0.130685 | 18,801 | 165 | 264 | 113.945455 | 0.718062 | 0 | 0 | 0.51634 | 0 | 0 | 0.655976 | 0.268018 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006536 | false | 0 | 0.03268 | 0 | 0.045752 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
fb913fc6571255671fbb9194e7d56c19b6c5a613 | 156 | py | Python | web/utils/tokens.py | jaobernardi/robosdocovid | e620b2951e5bdd9046f81abf38e767080a9695f4 | [
"Apache-2.0"
] | null | null | null | web/utils/tokens.py | jaobernardi/robosdocovid | e620b2951e5bdd9046f81abf38e767080a9695f4 | [
"Apache-2.0"
] | null | null | null | web/utils/tokens.py | jaobernardi/robosdocovid | e620b2951e5bdd9046f81abf38e767080a9695f4 | [
"Apache-2.0"
] | null | null | null | from string import ascii_letters
from random import choice
def generate_string(length=10):
return "".join([choice(ascii_letters) for i in range(length)])
| 26 | 63 | 0.788462 | 24 | 156 | 5 | 0.708333 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.115385 | 156 | 5 | 64 | 31.2 | 0.855072 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
fb960e2e87f84bf6ae9d1814b1e773b5a449d482 | 21,955 | py | Python | src/DriverSplitAll.py | bineet-coderep/Uncertain-Linear-System | 911ff9d66ab97b156e5b51b3583d6b6a584870ac | [
"AFL-1.1"
] | 1 | 2020-11-20T07:38:40.000Z | 2020-11-20T07:38:40.000Z | src/DriverSplitAll.py | bineet-coderep/Uncertain-Linear-System | 911ff9d66ab97b156e5b51b3583d6b6a584870ac | [
"AFL-1.1"
] | null | null | null | src/DriverSplitAll.py | bineet-coderep/Uncertain-Linear-System | 911ff9d66ab97b156e5b51b3583d6b6a584870ac | [
"AFL-1.1"
] | null | null | null | '''
Author: Bineet Ghosh, under supervision of Dr. Sridhar Duggirala
Email: ghosh.bineet22@gmail.com
- Linear Dynamical System: dot{x} = (A+E)x; where E is the perturbation.
Documentation: Not yet available. (TODO)
'''
import os,sys
PROJECT_ROOT = os.environ['ULS_ROOT_DIR']
sys.path.append(PROJECT_ROOT)
from lib.Be... | 27.239454 | 161 | 0.430061 | 4,231 | 21,955 | 2.230206 | 0.039943 | 0.274481 | 0.340504 | 0.377702 | 0.719055 | 0.715451 | 0.71206 | 0.700191 | 0.692137 | 0.682705 | 0 | 0.218349 | 0.31141 | 21,955 | 805 | 162 | 27.273292 | 0.405808 | 0.020679 | 0 | 0.652778 | 0 | 0 | 0.032751 | 0 | 0 | 0 | 0 | 0.001242 | 0 | 1 | 0.029167 | false | 0 | 0.004167 | 0 | 0.036111 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
fbc0667dce40f262af98e1757773cd5cdf145a8c | 1,168 | py | Python | test/test_helper.py | kjahan/queens | 07dfe66bff9734668721f5bd5124d7f8a55efc72 | [
"Apache-2.0"
] | null | null | null | test/test_helper.py | kjahan/queens | 07dfe66bff9734668721f5bd5124d7f8a55efc72 | [
"Apache-2.0"
] | null | null | null | test/test_helper.py | kjahan/queens | 07dfe66bff9734668721f5bd5124d7f8a55efc72 | [
"Apache-2.0"
] | null | null | null | import pytest
import src.helper as helper
@pytest.fixture
def A_mock():
return [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]
def test_check_all_rows_should_pass(A_mock):
A_mock[0][0] = 1
A_mock[1][2] = 1
assert helper.check_all_rows(A_mock)
def test_check_all_rows_with_two_queens_in_one_r... | 26.545455 | 67 | 0.69863 | 231 | 1,168 | 3.142857 | 0.142857 | 0.206612 | 0.057851 | 0.071625 | 0.847107 | 0.790634 | 0.763085 | 0.738292 | 0.738292 | 0.713499 | 0 | 0.063278 | 0.174658 | 1,168 | 43 | 68 | 27.162791 | 0.689834 | 0 | 0 | 0.411765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205882 | 1 | 0.235294 | false | 0.117647 | 0.058824 | 0.029412 | 0.323529 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 9 |
fbcc83f0360c1d770c85a80969459084457df079 | 460 | py | Python | kapitan/inputs/helm/helm_binding.py | Nightrider0098/kapitan | 59fd623b73be6ae0e61e28b3a070127fefa7d3a0 | [
"Apache-2.0"
] | 1 | 2021-06-22T22:01:42.000Z | 2021-06-22T22:01:42.000Z | kapitan/inputs/helm/helm_binding.py | Nightrider0098/kapitan | 59fd623b73be6ae0e61e28b3a070127fefa7d3a0 | [
"Apache-2.0"
] | 1 | 2021-03-05T09:31:14.000Z | 2021-03-05T09:31:14.000Z | kapitan/inputs/helm/helm_binding.py | vshn/kapitan | 6be4ee2bd0273c998f51e4930a8a8ce163ecfedc | [
"Apache-2.0"
] | null | null | null | # auto-generated file
import _cffi_backend
ffi = _cffi_backend.FFI('helm_binding',
_version = 0x2601,
_types = b'\x00\x00\x01\x0D\x00\x00\x0E\x03\x00\x00\x01\x11\x00\x00\x01\x11\x00\x00\x01\x11\x00\x00\x01\x11\x00\x00\x01\x11\x00\x00\x01\x03\x00\x00\x07\x01\x00\x00\x01\x11\x00\x00\x00\x0F\x00\x00\x0F\x0D\x00\x... | 51.111111 | 273 | 0.719565 | 93 | 460 | 3.473118 | 0.290323 | 0.408669 | 0.250774 | 0.22291 | 0.362229 | 0.362229 | 0.213622 | 0.213622 | 0.213622 | 0.213622 | 0 | 0.333333 | 0.067391 | 460 | 8 | 274 | 57.5 | 0.41958 | 0.041304 | 0 | 0 | 1 | 0.166667 | 0.71754 | 0.644647 | 0 | 1 | 0.013667 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
fbd60b1710bdafd2c2daada159cf5c3c1fcb612e | 33,355 | py | Python | ml/models/mafs.py | davidcsterratt/snl | 5c086fac092209c5efd2e4b882bbcb197e2facf8 | [
"MIT"
] | null | null | null | ml/models/mafs.py | davidcsterratt/snl | 5c086fac092209c5efd2e4b882bbcb197e2facf8 | [
"MIT"
] | null | null | null | ml/models/mafs.py | davidcsterratt/snl | 5c086fac092209c5efd2e4b882bbcb197e2facf8 | [
"MIT"
] | null | null | null | from itertools import izip
import numpy as np
import theano
import theano.tensor as tt
import ml.models.layers as layers
import ml.models.mades as mades
import util.misc
import util.ml
dtype = theano.config.floatX
class MaskedAutoregressiveFlow:
"""
Implements a Masked Autoregressive Flow, which is a stac... | 36.653846 | 186 | 0.604317 | 4,788 | 33,355 | 4.077277 | 0.057226 | 0.037291 | 0.023973 | 0.026534 | 0.924444 | 0.913124 | 0.896476 | 0.888638 | 0.868456 | 0.854165 | 0 | 0.003969 | 0.305052 | 33,355 | 909 | 187 | 36.694169 | 0.838223 | 0.315635 | 0 | 0.767654 | 0 | 0 | 0.012638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075171 | false | 0 | 0.018223 | 0 | 0.166287 | 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 |
836ff5699a93de1474b5a522858432413c95b31c | 2,044 | py | Python | tecnoservicio/users/forms.py | zaresdelweb/tecnoservicio | ce31e2b463dd7d3b6f7aa9ad78e8b78a65136f98 | [
"BSD-3-Clause"
] | null | null | null | tecnoservicio/users/forms.py | zaresdelweb/tecnoservicio | ce31e2b463dd7d3b6f7aa9ad78e8b78a65136f98 | [
"BSD-3-Clause"
] | null | null | null | tecnoservicio/users/forms.py | zaresdelweb/tecnoservicio | ce31e2b463dd7d3b6f7aa9ad78e8b78a65136f98 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django import forms
from .models import User
class UserForm(forms.ModelForm):
class Meta:
# Set this form to use the User model.
model = User
# Constrain the UserForm to just these fields.
fields = ("first_name", "last_n... | 32.967742 | 109 | 0.748532 | 257 | 2,044 | 5.88716 | 0.272374 | 0.043622 | 0.031725 | 0.0423 | 0.830139 | 0.830139 | 0.830139 | 0.830139 | 0.830139 | 0.830139 | 0 | 0.0166 | 0.145303 | 2,044 | 61 | 110 | 33.508197 | 0.849456 | 0.170744 | 0 | 0.702703 | 0 | 0 | 0.172906 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0.513514 | 0.081081 | 0 | 0.567568 | 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 | 1 | 0 | 0 | 9 |
83d29ca2431bd11081d041ff8e83fe1ff6a9f917 | 144 | py | Python | boa3_test/test_sc/interop_test/blockchain/CurrentIndex.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 25 | 2020-07-22T19:37:43.000Z | 2022-03-08T03:23:55.000Z | boa3_test/test_sc/interop_test/blockchain/CurrentIndex.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 419 | 2020-04-23T17:48:14.000Z | 2022-03-31T13:17:45.000Z | boa3_test/test_sc/interop_test/blockchain/CurrentIndex.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 15 | 2020-05-21T21:54:24.000Z | 2021-11-18T06:17:24.000Z | from boa3.builtin import public
from boa3.builtin.interop.blockchain import current_index
@public
def main() -> int:
return current_index
| 18 | 57 | 0.784722 | 20 | 144 | 5.55 | 0.65 | 0.144144 | 0.27027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01626 | 0.145833 | 144 | 7 | 58 | 20.571429 | 0.886179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
83d7fcc0fa70c3b657992b78817085ac51e0a20d | 76 | py | Python | glue/core/data_exporters/__init__.py | ejeschke/glue | 21689e3474aeaeb70e258d76c60755596856976c | [
"BSD-3-Clause"
] | 3 | 2015-09-10T22:23:55.000Z | 2019-04-04T18:47:33.000Z | glue/core/data_exporters/__init__.py | ejeschke/glue | 21689e3474aeaeb70e258d76c60755596856976c | [
"BSD-3-Clause"
] | null | null | null | glue/core/data_exporters/__init__.py | ejeschke/glue | 21689e3474aeaeb70e258d76c60755596856976c | [
"BSD-3-Clause"
] | null | null | null | def setup():
from . import gridded_fits
from . import astropy_table
| 19 | 31 | 0.697368 | 10 | 76 | 5.1 | 0.8 | 0.392157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236842 | 76 | 3 | 32 | 25.333333 | 0.87931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.666667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
83e3902d9a9fbfa575c7f2dc50079afb8bf7bbd4 | 9,203 | py | Python | CE_mechanism/plot_voltammogram_CE.py | truejulosdu13/Electrochemistry | 183914d75f7d8ec8fdaa03a1f5133f24afaf6f38 | [
"MIT"
] | null | null | null | CE_mechanism/plot_voltammogram_CE.py | truejulosdu13/Electrochemistry | 183914d75f7d8ec8fdaa03a1f5133f24afaf6f38 | [
"MIT"
] | null | null | null | CE_mechanism/plot_voltammogram_CE.py | truejulosdu13/Electrochemistry | 183914d75f7d8ec8fdaa03a1f5133f24afaf6f38 | [
"MIT"
] | null | null | null | import sys
sys.path.append('../')
import numpy as np
import matplotlib.pyplot as plt
from potential_applied import *
from EDP_solver_CE import *
# main programm for linear sweep voltammetry
def main_LSV_CE(cst_all):
F_norm = cst_all["F_norm"]
Nx = cst_all["Nx"]
Nt = cst_all["Nt"]
DM = cst_all["DM"]
... | 39.161702 | 102 | 0.501032 | 1,504 | 9,203 | 2.827128 | 0.103059 | 0.129821 | 0.0381 | 0.043979 | 0.812559 | 0.807855 | 0.791863 | 0.791627 | 0.791627 | 0.762935 | 0 | 0.022623 | 0.337173 | 9,203 | 234 | 103 | 39.32906 | 0.674426 | 0.070738 | 0 | 0.759563 | 0 | 0 | 0.077067 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021858 | false | 0 | 0.027322 | 0 | 0.04918 | 0.032787 | 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 |
f79b90c230222b579e6cc59938e37e17d81104d8 | 7,874 | py | Python | examples/benchmark.py | Nerolf05/pyubx2 | b87296c1bba94bb14b182beea7e2ca6cf0555608 | [
"BSD-3-Clause"
] | 1 | 2021-04-19T17:32:30.000Z | 2021-04-19T17:32:30.000Z | examples/benchmark.py | Nerolf05/pyubx2 | b87296c1bba94bb14b182beea7e2ca6cf0555608 | [
"BSD-3-Clause"
] | null | null | null | examples/benchmark.py | Nerolf05/pyubx2 | b87296c1bba94bb14b182beea7e2ca6cf0555608 | [
"BSD-3-Clause"
] | null | null | null | """
pyubx2 performance benchmarking utility
Created on 5 Nov 2021
@author: semuadmin
"""
from datetime import datetime
from platform import version, python_version
from pyubx2.ubxreader import UBXReader
from pyubx2._version import __version__ as pyubx2ver
CYCLES = 10000
UBXMESSAGES = [
b"\xb5b\x10\x02\x18\x00\x... | 77.960396 | 719 | 0.68669 | 1,700 | 7,874 | 3.17 | 0.147059 | 0.138059 | 0.113565 | 0.100204 | 0.714047 | 0.711264 | 0.643533 | 0.5617 | 0.557246 | 0.557246 | 0 | 0.326672 | 0.065786 | 7,874 | 100 | 720 | 78.74 | 0.405927 | 0.010414 | 0 | 0.414634 | 0 | 0.573171 | 0.850462 | 0.809738 | 0 | 1 | 0 | 0 | 0 | 1 | 0.012195 | false | 0 | 0.04878 | 0 | 0.060976 | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e3d7b7fa55985e4b8489962f6cbf010df9ad9263 | 14,428 | py | Python | tests/augmentation/test_transforms.py | austinjp/textacy | dddfdbf0e0ab3bf756bc4eda042eab1001aac709 | [
"Apache-2.0"
] | 1,929 | 2016-02-14T08:30:38.000Z | 2022-03-31T03:00:35.000Z | tests/augmentation/test_transforms.py | austinjp/textacy | dddfdbf0e0ab3bf756bc4eda042eab1001aac709 | [
"Apache-2.0"
] | 304 | 2016-02-18T15:52:22.000Z | 2022-03-31T18:06:54.000Z | tests/augmentation/test_transforms.py | austinjp/textacy | dddfdbf0e0ab3bf756bc4eda042eab1001aac709 | [
"Apache-2.0"
] | 285 | 2016-03-20T04:25:08.000Z | 2022-03-24T11:31:17.000Z | import collections
from textacy import make_spacy_doc
from textacy.augmentation import transforms
from textacy.augmentation import utils as aug_utils
import pytest
@pytest.fixture(scope="module")
def spacy_doc():
text = (
"Democrats might know that they stand against Trump's policies, but coming up with... | 37.868766 | 210 | 0.588994 | 2,017 | 14,428 | 3.939514 | 0.087258 | 0.156808 | 0.093129 | 0.059904 | 0.889882 | 0.879185 | 0.874654 | 0.874654 | 0.872892 | 0.871634 | 0 | 0.010952 | 0.316537 | 14,428 | 380 | 211 | 37.968421 | 0.794747 | 0.015733 | 0 | 0.786164 | 0 | 0.006289 | 0.067977 | 0 | 0 | 0 | 0 | 0 | 0.169811 | 1 | 0.119497 | false | 0 | 0.015723 | 0.003145 | 0.166667 | 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 |
580948487639d2bb4454305b5cfe589861174a19 | 3,863 | py | Python | aib/sql/gl_tots_code.py | FrankMillman/AccInABox | fc4cd26bf525c1bbe8e541d9339c69b0adbad546 | [
"MIT"
] | 3 | 2015-02-25T19:44:43.000Z | 2020-12-18T05:49:09.000Z | aib/sql/gl_tots_code.py | FrankMillman/AccInABox | fc4cd26bf525c1bbe8e541d9339c69b0adbad546 | [
"MIT"
] | 1 | 2019-11-20T12:31:34.000Z | 2019-11-20T12:31:35.000Z | aib/sql/gl_tots_code.py | FrankMillman/AccInABox | fc4cd26bf525c1bbe8e541d9339c69b0adbad546 | [
"MIT"
] | 1 | 2020-06-07T06:25:19.000Z | 2020-06-07T06:25:19.000Z | # def get_sql(cte, params, company, conn, gl_code):
#
# sql = cte + ("""
# SELECT
# a.op_date AS "[DATE]", a.cl_date AS "[DATE]"
# , SUM(COALESCE(b.tran_tot, 0)) AS "[REAL2]"
# , SUM(COALESCE(c.tran_tot, 0) - COALESCE(b.tran_tot, 0)) AS "[REAL2]"
# , SUM(COA... | 40.239583 | 90 | 0.500388 | 586 | 3,863 | 3.054608 | 0.109215 | 0.072626 | 0.026816 | 0.036872 | 0.893296 | 0.869832 | 0.864246 | 0.843017 | 0.810056 | 0.785475 | 0 | 0.022812 | 0.375874 | 3,863 | 95 | 91 | 40.663158 | 0.719618 | 0.496764 | 0 | 0.4 | 0 | 0.1 | 0.861887 | 0.047443 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0 | 0 | 0.05 | 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 |
58118c392fe4516cc942297760a7208c049733ad | 1,244 | py | Python | tests/math/unary/test_inversetrig.py | kw-0/MyGrad | 307f1bb5f2391e7f4df49fe43a7acf9d1e8ea141 | [
"MIT"
] | 147 | 2018-07-14T01:37:35.000Z | 2022-03-29T06:37:58.000Z | tests/math/unary/test_inversetrig.py | kw-0/MyGrad | 307f1bb5f2391e7f4df49fe43a7acf9d1e8ea141 | [
"MIT"
] | 223 | 2018-05-31T14:13:18.000Z | 2022-02-27T18:53:49.000Z | tests/math/unary/test_inversetrig.py | kw-0/MyGrad | 307f1bb5f2391e7f4df49fe43a7acf9d1e8ea141 | [
"MIT"
] | 27 | 2018-06-17T14:42:05.000Z | 2021-10-31T00:21:09.000Z | import numpy as np
from mygrad import arccot, arccsc, arcsec
from tests.wrappers.uber import backprop_test_factory, fwdprop_test_factory
@fwdprop_test_factory(
mygrad_func=arccsc,
true_func=lambda x: np.arcsin(1 / x),
index_to_bnds={0: (-10.1, -1.1)},
num_arrays=1,
)
def test_arccsc_fwd():
pass
... | 19.138462 | 75 | 0.67283 | 202 | 1,244 | 3.856436 | 0.183168 | 0.112965 | 0.130937 | 0.161746 | 0.87163 | 0.825417 | 0.794608 | 0.736842 | 0.677792 | 0.677792 | 0 | 0.047714 | 0.191318 | 1,244 | 64 | 76 | 19.4375 | 0.72664 | 0 | 0 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.117647 | 0.058824 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
5820c3cfe822d438ddc70ee2bbef71a828ac5f9d | 753 | py | Python | sample_pipeline/build/lib/sample_pipeline/tests_3_fixtures_from_a_cached_pipeline/conftest.py | CFMTech/python_pipeline_blog_post | 21938d3531653af4240b6b229cf649139abeef9d | [
"MIT"
] | 1 | 2021-12-12T14:19:10.000Z | 2021-12-12T14:19:10.000Z | sample_pipeline/build/lib/sample_pipeline/tests_3_fixtures_from_a_cached_pipeline/conftest.py | mwouts/python_pipeline_blog_post | e4b0e579a568a916d37645cbfa838b21668b2c6c | [
"MIT"
] | null | null | null | sample_pipeline/build/lib/sample_pipeline/tests_3_fixtures_from_a_cached_pipeline/conftest.py | mwouts/python_pipeline_blog_post | e4b0e579a568a916d37645cbfa838b21668b2c6c | [
"MIT"
] | 1 | 2021-12-12T14:19:54.000Z | 2021-12-12T14:19:54.000Z | """In this conftest, we load the sample fixtures from a cached pipeline
generated by the test test_generate_cached_pipeline"""
import pytest
from . import load_from_cached_pipeline
@pytest.fixture
def start_date():
"""A sample start date for the pipeline"""
return "2021-01-04"
@pytest.fixture
def end_date... | 18.825 | 71 | 0.715803 | 106 | 753 | 4.90566 | 0.377358 | 0.161538 | 0.184615 | 0.169231 | 0.276923 | 0.115385 | 0.115385 | 0 | 0 | 0 | 0 | 0.025478 | 0.166003 | 753 | 39 | 72 | 19.307692 | 0.802548 | 0.288181 | 0 | 0.3 | 1 | 0 | 0.116505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | true | 0 | 0.1 | 0.15 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
583efeb53fe85c5d164b219747731b0823bcee2e | 13,000 | py | Python | integration/apps/parres/parres.py | avilcheslopez/geopm | 35ad0af3f17f42baa009c97ed45eca24333daf33 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | integration/apps/parres/parres.py | avilcheslopez/geopm | 35ad0af3f17f42baa009c97ed45eca24333daf33 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | integration/apps/parres/parres.py | avilcheslopez/geopm | 35ad0af3f17f42baa009c97ed45eca24333daf33 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2015 - 2022, Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause
#
import os
import sys
import glob
import textwrap
import subprocess
from apps import apps
def setup_run_args(parser):
""" Add common arguments for all run scripts. ... | 44.827586 | 353 | 0.562308 | 1,514 | 13,000 | 4.550859 | 0.117569 | 0.046734 | 0.06299 | 0.038607 | 0.874456 | 0.861974 | 0.835269 | 0.808708 | 0.808708 | 0.803338 | 0 | 0.009077 | 0.355923 | 13,000 | 289 | 354 | 44.982699 | 0.813806 | 0.087385 | 0 | 0.733945 | 0 | 0 | 0.167286 | 0.023814 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105505 | false | 0 | 0.027523 | 0.045872 | 0.215596 | 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 |
58606f75f67c10bee62ee144067e92fdfedddfed | 156 | py | Python | tests/python-reference/types/test_pow.py | brownplt/lambda-py | c3ee39502c8953d36b886e5a203f2eb51d2f495b | [
"Apache-2.0"
] | 25 | 2015-04-16T04:31:49.000Z | 2022-03-10T15:53:28.000Z | tests/python-reference/types/test_pow.py | brownplt/lambda-py | c3ee39502c8953d36b886e5a203f2eb51d2f495b | [
"Apache-2.0"
] | 1 | 2018-11-21T22:40:02.000Z | 2018-11-26T17:53:11.000Z | tests/python-reference/types/test_pow.py | brownplt/lambda-py | c3ee39502c8953d36b886e5a203f2eb51d2f495b | [
"Apache-2.0"
] | 1 | 2021-03-26T03:36:19.000Z | 2021-03-26T03:36:19.000Z | ___assertEqual(0**17, 0)
___assertEqual(17**0, 1)
___assertEqual(0**0, 1)
___assertEqual(17**1, 17)
___assertEqual(2**10, 1024)
___assertEqual(2**-2, 0.25)
| 22.285714 | 27 | 0.717949 | 25 | 156 | 3.76 | 0.32 | 0.255319 | 0.276596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194444 | 0.076923 | 156 | 6 | 28 | 26 | 0.458333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
58651093f9f2ad4737cddf419ff6828d11f1b871 | 26,194 | py | Python | sdk/python/pulumi_azure/streamanalytics/_inputs.py | ScriptBox99/pulumi-azure | 1b8c6d5479ccabc39094741eac25a8ca44c8833a | [
"ECL-2.0",
"Apache-2.0"
] | 109 | 2018-06-18T00:19:44.000Z | 2022-02-20T05:32:57.000Z | sdk/python/pulumi_azure/streamanalytics/_inputs.py | ScriptBox99/pulumi-azure | 1b8c6d5479ccabc39094741eac25a8ca44c8833a | [
"ECL-2.0",
"Apache-2.0"
] | 663 | 2018-06-18T21:08:46.000Z | 2022-03-31T20:10:11.000Z | sdk/python/pulumi_azure/streamanalytics/_inputs.py | ScriptBox99/pulumi-azure | 1b8c6d5479ccabc39094741eac25a8ca44c8833a | [
"ECL-2.0",
"Apache-2.0"
] | 41 | 2018-07-19T22:37:38.000Z | 2022-03-14T10:56:26.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 42.31664 | 209 | 0.636443 | 3,205 | 26,194 | 5.096724 | 0.043058 | 0.096296 | 0.113131 | 0.088889 | 0.931497 | 0.919437 | 0.916192 | 0.911478 | 0.907683 | 0.907683 | 0 | 0.000857 | 0.242842 | 26,194 | 618 | 210 | 42.385113 | 0.82277 | 0.379782 | 0 | 0.872973 | 1 | 0 | 0.086094 | 0.022038 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208108 | false | 0 | 0.013514 | 0 | 0.340541 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
5868df4ec9bca0af321305b52f19b87f4c7107c8 | 600,753 | py | Python | 2algo/user4.py | allengrr/deadlock_project | 933878077c45a7df04daa087407bb2620c064617 | [
"MIT"
] | null | null | null | 2algo/user4.py | allengrr/deadlock_project | 933878077c45a7df04daa087407bb2620c064617 | [
"MIT"
] | null | null | null | 2algo/user4.py | allengrr/deadlock_project | 933878077c45a7df04daa087407bb2620c064617 | [
"MIT"
] | 1 | 2021-03-21T17:54:26.000Z | 2021-03-21T17:54:26.000Z |
record4 = [[({'t4.103.114.0': {'wcet': 1, 'period': 10, 'deadline': 9}, 't3.103.114.0': {'wcet': 2, 'period': 10, 'deadline': 8}, 't5.103.114.0': {'wcet': 3, 'period': 15, 'deadline': 12}}, {'t4.103.114.0': [0.559, 10.0], 't3.103.114.0': [0.733, 5.0], 't5.103.114.0': [0.413, 5.0]}), 'newmec-3'], [({'t5.103.114.1': {'w... | 46,211.769231 | 151,521 | 0.529141 | 112,674 | 600,753 | 2.821228 | 0.007091 | 0.023839 | 0.091044 | 0.051152 | 0.934434 | 0.800509 | 0.780608 | 0.648851 | 0.617716 | 0.146273 | 0 | 0.340547 | 0.103726 | 600,753 | 12 | 151,522 | 50,062.75 | 0.249824 | 0 | 0 | 0 | 0 | 0 | 0.487757 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
589f2d1ac103ca0edcd9b3485c3af2bf5405d031 | 24,189 | py | Python | test/functional/feature_serialization.py | 34ro/tapyrus-core | 52175cd1994fde3cec1bc506ebacd3fd99523103 | [
"MIT"
] | null | null | null | test/functional/feature_serialization.py | 34ro/tapyrus-core | 52175cd1994fde3cec1bc506ebacd3fd99523103 | [
"MIT"
] | null | null | null | test/functional/feature_serialization.py | 34ro/tapyrus-core | 52175cd1994fde3cec1bc506ebacd3fd99523103 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) 2014-2018 The Bitcoin Core developers
# Copyright (c) 2019 Chaintope Inc.
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test serialization of blocks and transactions and signature malleab... | 49.567623 | 157 | 0.698789 | 2,923 | 24,189 | 5.594595 | 0.098187 | 0.068367 | 0.08928 | 0.072647 | 0.816303 | 0.806519 | 0.803155 | 0.795573 | 0.795573 | 0.795328 | 0 | 0.015353 | 0.189508 | 24,189 | 487 | 158 | 49.669405 | 0.818771 | 0.154864 | 0 | 0.76129 | 0 | 0 | 0.051916 | 0.002274 | 0 | 0 | 0.000494 | 0 | 0.303226 | 1 | 0.016129 | false | 0 | 0.032258 | 0 | 0.054839 | 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 |
545eb0126407ab7b1a9d80485ba7638bcd89e2db | 33 | py | Python | init/controllers/js.py | davidhampgonsalves/mix-tree | f9907d30ed13340ffb31239176b4de0bbba86f6a | [
"MIT"
] | null | null | null | init/controllers/js.py | davidhampgonsalves/mix-tree | f9907d30ed13340ffb31239176b4de0bbba86f6a | [
"MIT"
] | null | null | null | init/controllers/js.py | davidhampgonsalves/mix-tree | f9907d30ed13340ffb31239176b4de0bbba86f6a | [
"MIT"
] | null | null | null | def mixtree():
return dict()
| 11 | 17 | 0.606061 | 4 | 33 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242424 | 33 | 2 | 18 | 16.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
5485b9e50f1bd3fbe27cb42bcd830fd7b4ac1c58 | 1,755 | py | Python | PhysicsTools/HepMCCandAlgos/python/flavorHistoryProducer_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | PhysicsTools/HepMCCandAlgos/python/flavorHistoryProducer_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | PhysicsTools/HepMCCandAlgos/python/flavorHistoryProducer_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
cFlavorHistoryProducer = cms.EDProducer("FlavorHistoryProducer",
src = cms.InputTag("genParticles"),
matchedSrc = cms.InputTag("ak5GenJets"),
matchDR = cms.doubl... | 62.678571 | 94 | 0.390313 | 106 | 1,755 | 6.462264 | 0.330189 | 0.131387 | 0.087591 | 0.064234 | 0.823358 | 0.741606 | 0.741606 | 0.741606 | 0.741606 | 0.741606 | 0 | 0.043742 | 0.531054 | 1,755 | 27 | 95 | 65 | 0.788578 | 0 | 0 | 0.64 | 0 | 0 | 0.071795 | 0.023932 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
548d0a09d6fd0a3bd5bda6d87a7f88b422ac7183 | 103 | py | Python | phos/__init__.py | Web-Power/phos | b04556d6829cc09f7e5d3e76f4c77db0792346b8 | [
"MIT"
] | 1 | 2020-01-21T12:50:01.000Z | 2020-01-21T12:50:01.000Z | phos/__init__.py | Web-Power/phos | b04556d6829cc09f7e5d3e76f4c77db0792346b8 | [
"MIT"
] | null | null | null | phos/__init__.py | Web-Power/phos | b04556d6829cc09f7e5d3e76f4c77db0792346b8 | [
"MIT"
] | 1 | 2022-01-26T07:09:18.000Z | 2022-01-26T07:09:18.000Z | from .cursor import Phos, Connection, NoResultSetError, FetchWithoutExecuteError, UnknownPlotTypeError
| 51.5 | 102 | 0.873786 | 8 | 103 | 11.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07767 | 103 | 1 | 103 | 103 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
54ba101f33da2c443d995ea1d31a0258b98eb5f2 | 167 | py | Python | lib/candy_editor/AssetEditor/CommonAsset/__init__.py | lihaochen910/Candy | d12cb964768459c22f30c22531d3e1734901e814 | [
"MIT"
] | 1 | 2021-11-06T14:38:37.000Z | 2021-11-06T14:38:37.000Z | lib/candy_editor/AssetEditor/CommonAsset/__init__.py | lihaochen910/Candy | d12cb964768459c22f30c22531d3e1734901e814 | [
"MIT"
] | 5 | 2021-11-06T04:23:06.000Z | 2022-03-12T01:03:25.000Z | lib/candy_editor/AssetEditor/CommonAsset/__init__.py | lihaochen910/Candy | d12cb964768459c22f30c22531d3e1734901e814 | [
"MIT"
] | 1 | 2021-11-07T05:19:51.000Z | 2021-11-07T05:19:51.000Z | import candy_editor.AssetEditor.CommonAsset.FolderCreator
import candy_editor.AssetEditor.CommonAsset.ImageAsset
import candy_editor.AssetEditor.CommonAsset.TextAsset
| 41.75 | 57 | 0.91018 | 18 | 167 | 8.277778 | 0.444444 | 0.221477 | 0.342282 | 0.563758 | 0.785235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035928 | 167 | 3 | 58 | 55.666667 | 0.925466 | 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 |
b72cb080e3a2055114dbcc3cc09faea3bbf3caaa | 4,742 | py | Python | backend/edegal/migrations/0023_auto_20200212_1426.py | japsu/edegal2 | a3a327b19cc3d06a680f8f1175225bad8be7c5f1 | [
"MIT"
] | 1 | 2021-11-22T19:28:35.000Z | 2021-11-22T19:28:35.000Z | backend/edegal/migrations/0023_auto_20200212_1426.py | japsu/edegal2 | a3a327b19cc3d06a680f8f1175225bad8be7c5f1 | [
"MIT"
] | 26 | 2017-05-30T09:55:28.000Z | 2020-12-16T12:08:52.000Z | backend/edegal/migrations/0023_auto_20200212_1426.py | japsu/edegal2 | a3a327b19cc3d06a680f8f1175225bad8be7c5f1 | [
"MIT"
] | 3 | 2015-11-20T13:45:47.000Z | 2017-05-30T09:44:55.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.26 on 2020-02-12 12:26
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('edegal', '0022_photographer_body'),
]
operations = [... | 83.192982 | 567 | 0.673555 | 686 | 4,742 | 4.622449 | 0.163265 | 0.04415 | 0.048565 | 0.06591 | 0.88584 | 0.88584 | 0.865342 | 0.865342 | 0.865342 | 0.865342 | 0 | 0.02146 | 0.194222 | 4,742 | 56 | 568 | 84.678571 | 0.802669 | 0.014551 | 0 | 0.734694 | 1 | 0.22449 | 0.513062 | 0.004711 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.061224 | 0 | 0.122449 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
3f7f9d3a04a1196581fe57319f3fa344c0f89218 | 78 | py | Python | org/apache/helix/examples/package-info.py | davzhang/helix-python-binding | 11a9ecf730bce07720e0b0bcf7f0ec1cd2b25878 | [
"Apache-2.0"
] | 3 | 2015-04-08T22:51:04.000Z | 2015-05-03T06:42:35.000Z | org/apache/helix/examples/package-info.py | zzhang5/helix-python-binding | 11a9ecf730bce07720e0b0bcf7f0ec1cd2b25878 | [
"Apache-2.0"
] | null | null | null | org/apache/helix/examples/package-info.py | zzhang5/helix-python-binding | 11a9ecf730bce07720e0b0bcf7f0ec1cd2b25878 | [
"Apache-2.0"
] | 1 | 2020-03-31T21:43:01.000Z | 2020-03-31T21:43:01.000Z | # package org.apache.helix.examples
#from org.apache.helix.examples import *
| 19.5 | 40 | 0.782051 | 11 | 78 | 5.545455 | 0.636364 | 0.295082 | 0.459016 | 0.721311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 78 | 3 | 41 | 26 | 0.871429 | 0.923077 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3fd34c86c741b63d2296a9cfaf51ea3c5158f146 | 113 | py | Python | openacademy/model/__init__.py | JesusZapata/openacademy | 7c1a1a2bf0fa7aadfaf6c7784bb66ec2b829e427 | [
"Apache-2.0"
] | null | null | null | openacademy/model/__init__.py | JesusZapata/openacademy | 7c1a1a2bf0fa7aadfaf6c7784bb66ec2b829e427 | [
"Apache-2.0"
] | null | null | null | openacademy/model/__init__.py | JesusZapata/openacademy | 7c1a1a2bf0fa7aadfaf6c7784bb66ec2b829e427 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from . import openacademy_course
from . import openacademy_session
from . import partner
| 22.6 | 33 | 0.743363 | 14 | 113 | 5.857143 | 0.642857 | 0.365854 | 0.512195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010417 | 0.150442 | 113 | 4 | 34 | 28.25 | 0.84375 | 0.185841 | 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 |
3fd5b590e05092a64c34d44e2192269ef1ba455b | 116,530 | py | Python | tests/e2e/advanced/receiver_sensitivity/test_vlan_mode_5g.py | DYeag/wlan-testing | 81e879d04ea3c6a55d14a330d461d8914507e3b2 | [
"BSD-3-Clause"
] | 7 | 2020-08-19T16:45:46.000Z | 2022-02-10T09:55:22.000Z | tests/e2e/advanced/receiver_sensitivity/test_vlan_mode_5g.py | DYeag/wlan-testing | 81e879d04ea3c6a55d14a330d461d8914507e3b2 | [
"BSD-3-Clause"
] | 47 | 2020-12-20T16:06:03.000Z | 2022-03-23T03:01:22.000Z | tests/e2e/advanced/receiver_sensitivity/test_vlan_mode_5g.py | DYeag/wlan-testing | 81e879d04ea3c6a55d14a330d461d8914507e3b2 | [
"BSD-3-Clause"
] | 9 | 2021-02-04T22:32:06.000Z | 2021-12-14T17:45:51.000Z | """
Performance Test: Receiver Sensitivity Test: vlan mode
pytest -m "rx_sensitivity_test and vlan"
"""
import os
import pytest
import allure
pytestmark = [pytest.mark.rx_sensitivity_test, pytest.mark.vlan,
pytest.mark.usefixtures("setup_test_run")]
setup_params_general = {
"mode": "VLAN",... | 53.924109 | 152 | 0.564353 | 12,861 | 116,530 | 4.810046 | 0.017028 | 0.025864 | 0.043969 | 0.044615 | 0.978888 | 0.978888 | 0.978888 | 0.976302 | 0.976302 | 0.953315 | 0 | 0.021828 | 0.320638 | 116,530 | 2,160 | 153 | 53.949074 | 0.759594 | 0.036102 | 0 | 0.919937 | 0 | 0 | 0.208045 | 0.013656 | 0 | 0 | 0 | 0 | 0.041863 | 1 | 0.020931 | false | 0.020931 | 0.00157 | 0 | 0.023025 | 0.020931 | 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 |
3fd94dbe76547ec463d88549e1bd5c57d95f2d79 | 479 | py | Python | python/fedml/core/distributed/topology/base_topology_manager.py | ray-ruisun/FedML | 24ff30d636bb70f64e94e9ca205375033597d3dd | [
"Apache-2.0"
] | null | null | null | python/fedml/core/distributed/topology/base_topology_manager.py | ray-ruisun/FedML | 24ff30d636bb70f64e94e9ca205375033597d3dd | [
"Apache-2.0"
] | null | null | null | python/fedml/core/distributed/topology/base_topology_manager.py | ray-ruisun/FedML | 24ff30d636bb70f64e94e9ca205375033597d3dd | [
"Apache-2.0"
] | null | null | null | import abc
class BaseTopologyManager(abc.ABC):
@abc.abstractmethod
def generate_topology(self):
pass
@abc.abstractmethod
def get_in_neighbor_idx_list(self, node_index):
pass
@abc.abstractmethod
def get_out_neighbor_idx_list(self, node_index):
pass
@abc.abstractme... | 19.958333 | 52 | 0.693111 | 59 | 479 | 5.305085 | 0.322034 | 0.271566 | 0.319489 | 0.306709 | 0.747604 | 0.747604 | 0.648562 | 0.523962 | 0.523962 | 0.523962 | 0 | 0 | 0.237996 | 479 | 23 | 53 | 20.826087 | 0.857534 | 0 | 0 | 0.588235 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0.294118 | 0.058824 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
b75a3dd6d473766650138932bb170d8ab104de19 | 27,757 | py | Python | app/tests/testDatabaseSmartSearch.py | Psychoanalytic-Electronic-Publishing/openpubarchive | afd2a281ebacf8404791c11a21c06a0ae135f2a7 | [
"Apache-2.0"
] | 1 | 2019-04-01T14:45:33.000Z | 2019-04-01T14:45:33.000Z | app/tests/testDatabaseSmartSearch.py | Psychoanalytic-Electronic-Publishing/openpubarchive | afd2a281ebacf8404791c11a21c06a0ae135f2a7 | [
"Apache-2.0"
] | 46 | 2019-05-14T14:16:15.000Z | 2020-08-06T03:45:12.000Z | app/tests/testDatabaseSmartSearch.py | nrshapiro/openpubarchive | f6d3b7da6cd23e51b32e16e17ccb55b8511d32a6 | [
"Apache-2.0"
] | 1 | 2020-08-26T15:25:28.000Z | 2020-08-26T15:25:28.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#2020.0610 # Upgraded tests to v2; set up tests against AOP which seems to be discontinued and thus constant
import unittest
import requests
from unitTestConfig import base_plus_endpoint_encoded, headers, get_headers_not_logged_in
# Get session, but not logged in.
headers... | 46.107973 | 209 | 0.645639 | 3,121 | 27,757 | 5.524191 | 0.095162 | 0.122499 | 0.043617 | 0.062699 | 0.905748 | 0.899832 | 0.892408 | 0.883881 | 0.883881 | 0.880053 | 0 | 0.021853 | 0.216918 | 27,757 | 601 | 210 | 46.184692 | 0.771347 | 0.049573 | 0 | 0.770355 | 0 | 0.018789 | 0.290979 | 0.13353 | 0 | 0 | 0 | 0 | 0.192067 | 1 | 0.08977 | false | 0 | 0.006263 | 0 | 0.098121 | 0.200418 | 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 |
b77954433bde03581003cc0d71c055c92683eae6 | 208 | py | Python | Client/message/__init__.py | Ricky-Hao/IMPK-Client | 791150a43fff157aa439716d63d6c4fece912b85 | [
"MIT"
] | null | null | null | Client/message/__init__.py | Ricky-Hao/IMPK-Client | 791150a43fff157aa439716d63d6c4fece912b85 | [
"MIT"
] | null | null | null | Client/message/__init__.py | Ricky-Hao/IMPK-Client | 791150a43fff157aa439716d63d6c4fece912b85 | [
"MIT"
] | null | null | null | from Client.message.auth import *
from Client.message.base import *
from Client.message.cert import *
from Client.message.chat import *
from Client.message.friend import *
from Client.message.server import *
| 29.714286 | 35 | 0.798077 | 30 | 208 | 5.533333 | 0.333333 | 0.361446 | 0.614458 | 0.692771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 208 | 6 | 36 | 34.666667 | 0.902174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b7ce6601eacbbca72e61c6f38e3db3a34449a390 | 30,301 | py | Python | cnf_xplor/api/migrations/0001_initial.py | BFSSI-Bioinformatics-Lab/nutrition_database | ef63be35ceb4d37f3fa94bd6e4e8c8f3c84f8b7b | [
"MIT"
] | null | null | null | cnf_xplor/api/migrations/0001_initial.py | BFSSI-Bioinformatics-Lab/nutrition_database | ef63be35ceb4d37f3fa94bd6e4e8c8f3c84f8b7b | [
"MIT"
] | 46 | 2020-02-17T18:50:49.000Z | 2020-06-03T17:20:56.000Z | cnf_xplor/api/migrations/0001_initial.py | BFSSI-Bioinformatics-Lab/nutrition_database | ef63be35ceb4d37f3fa94bd6e4e8c8f3c84f8b7b | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2020-03-16 17:00
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import simple_history.models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | 69.022779 | 181 | 0.602488 | 3,321 | 30,301 | 5.298404 | 0.058115 | 0.119118 | 0.121903 | 0.159411 | 0.949534 | 0.944703 | 0.938566 | 0.93669 | 0.906115 | 0.892817 | 0 | 0.011102 | 0.244975 | 30,301 | 438 | 182 | 69.180365 | 0.758021 | 0.001485 | 0 | 0.800464 | 1 | 0 | 0.154459 | 0.012693 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.009281 | 0 | 0.018561 | 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 |
b7de54192934ebae43f6d17b82c6d708f49ef3d9 | 35,403 | py | Python | sdk/python/pulumi_aws/cur/report_definition.py | alexbowers/pulumi-aws | 7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5 | [
"ECL-2.0",
"Apache-2.0"
] | 260 | 2018-06-18T14:57:00.000Z | 2022-03-29T11:41:03.000Z | sdk/python/pulumi_aws/cur/report_definition.py | alexbowers/pulumi-aws | 7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5 | [
"ECL-2.0",
"Apache-2.0"
] | 1,154 | 2018-06-19T20:38:20.000Z | 2022-03-31T19:48:16.000Z | sdk/python/pulumi_aws/cur/report_definition.py | alexbowers/pulumi-aws | 7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5 | [
"ECL-2.0",
"Apache-2.0"
] | 115 | 2018-06-28T03:20:27.000Z | 2022-03-29T11:41:06.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 49.376569 | 301 | 0.664831 | 4,232 | 35,403 | 5.361295 | 0.055766 | 0.086782 | 0.085151 | 0.056239 | 0.913703 | 0.891181 | 0.877518 | 0.856538 | 0.845123 | 0.820574 | 0 | 0.006225 | 0.233144 | 35,403 | 716 | 302 | 49.445531 | 0.829496 | 0.380787 | 0 | 0.705 | 1 | 0 | 0.11148 | 0.028403 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1625 | false | 0.0025 | 0.0125 | 0 | 0.2725 | 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 |
4d06528da5987b081ac334786e1e3c4606f6e369 | 7,235 | py | Python | loldib/getratings/models/NA/na_missfortune/na_missfortune_mid.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_missfortune/na_missfortune_mid.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_missfortune/na_missfortune_mid.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | from getratings.models.ratings import Ratings
class NA_MissFortune_Mid_Aatrox(Ratings):
pass
class NA_MissFortune_Mid_Ahri(Ratings):
pass
class NA_MissFortune_Mid_Akali(Ratings):
pass
class NA_MissFortune_Mid_Alistar(Ratings):
pass
class NA_MissFortune_Mid_Amumu(Ratings):
pass
class NA_MissF... | 17.35012 | 48 | 0.788943 | 972 | 7,235 | 5.446502 | 0.151235 | 0.182471 | 0.46921 | 0.547412 | 0.828107 | 0.828107 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153559 | 7,235 | 416 | 49 | 17.391827 | 0.864468 | 0 | 0 | 0.498195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.498195 | 0.00361 | 0 | 0.501805 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 7 |
4d0e0b54160efa97d3733e73be3993a35a2c93a0 | 73,182 | py | Python | octopus_deploy_swagger_client/octopus_deploy_client/workers_api.py | cvent/octopus-deploy-api-client | 0e03e842e1beb29b132776aee077df570b88366a | [
"Apache-2.0"
] | null | null | null | octopus_deploy_swagger_client/octopus_deploy_client/workers_api.py | cvent/octopus-deploy-api-client | 0e03e842e1beb29b132776aee077df570b88366a | [
"Apache-2.0"
] | null | null | null | octopus_deploy_swagger_client/octopus_deploy_client/workers_api.py | cvent/octopus-deploy-api-client | 0e03e842e1beb29b132776aee077df570b88366a | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Octopus Server API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 2019.6.7+Branch.tags-2019.6.7.Sha.aa18dc6809953218c66f57eff7d26481d9b23d6a
Generated by: https://github.com/swagger-api... | 46.583068 | 255 | 0.663947 | 8,640 | 73,182 | 5.276273 | 0.025347 | 0.039485 | 0.028956 | 0.058635 | 0.988747 | 0.988747 | 0.988747 | 0.986246 | 0.986246 | 0.985917 | 0 | 0.013283 | 0.260324 | 73,182 | 1,570 | 256 | 46.612739 | 0.828878 | 0.347217 | 0 | 0.833922 | 1 | 0 | 0.215282 | 0.091058 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038869 | false | 0 | 0.004711 | 0 | 0.101296 | 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 |
4d2dc7f4ca0c850878a415e888fbd0b7b5178792 | 1,014 | py | Python | oo/direcao.py | MarcoManhaes/pythonbirds | 1445edebce476daffd0872f9943c6e3b9cc03979 | [
"MIT"
] | null | null | null | oo/direcao.py | MarcoManhaes/pythonbirds | 1445edebce476daffd0872f9943c6e3b9cc03979 | [
"MIT"
] | null | null | null | oo/direcao.py | MarcoManhaes/pythonbirds | 1445edebce476daffd0872f9943c6e3b9cc03979 | [
"MIT"
] | null | null | null | class Direcao:
def __init__(self):
self.posicoes = ("Norte", "Leste", "Sul", "Oeste")
self.direcao_atual = 0
def girar_a_direita(self):
self.direcao_atual += 1
self.direcao_atual = min(3, self.direcao_atual)
#if self.direcao_atual > 3:
#self.direcao_atual = ... | 21.125 | 58 | 0.628205 | 140 | 1,014 | 4.178571 | 0.178571 | 0.410256 | 0.300855 | 0.276923 | 0.842735 | 0.842735 | 0.842735 | 0.782906 | 0.65641 | 0.65641 | 0 | 0.011858 | 0.251479 | 1,014 | 47 | 59 | 21.574468 | 0.758893 | 0.095661 | 0 | 0.586207 | 0 | 0 | 0.02854 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0 | 0 | 0.137931 | 0.310345 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
4da3c15db386db8c02f4eac5f10f81d9c546d80f | 17,839 | py | Python | tests/migrations/test_update_filtered_positives.py | sanger/crawler | d309a8454af1bbe6cd48a40b2aa3bdf7be675d3b | [
"MIT"
] | 3 | 2021-03-11T08:53:24.000Z | 2022-02-07T14:04:23.000Z | tests/migrations/test_update_filtered_positives.py | sanger/crawler | d309a8454af1bbe6cd48a40b2aa3bdf7be675d3b | [
"MIT"
] | 464 | 2020-04-17T15:30:13.000Z | 2022-03-31T06:19:58.000Z | tests/migrations/test_update_filtered_positives.py | sanger/crawler | d309a8454af1bbe6cd48a40b2aa3bdf7be675d3b | [
"MIT"
] | 3 | 2020-05-19T12:04:34.000Z | 2021-03-02T11:25:44.000Z | from datetime import datetime
from unittest.mock import MagicMock, PropertyMock, patch
import pytest
from crawler.helpers.general_helpers import get_config
from migrations import update_filtered_positives
# ----- test fixture helpers -----
@pytest.fixture
def mock_helper_imports():
with patch("migrations.updat... | 42.985542 | 118 | 0.794775 | 2,321 | 17,839 | 5.575614 | 0.047393 | 0.109729 | 0.081756 | 0.067615 | 0.93934 | 0.927981 | 0.903408 | 0.88038 | 0.874353 | 0.867553 | 0 | 0.010386 | 0.136387 | 17,839 | 414 | 119 | 43.089372 | 0.829612 | 0.094568 | 0 | 0.796935 | 0 | 0 | 0.114859 | 0.07504 | 0 | 0 | 0 | 0 | 0.214559 | 1 | 0.08046 | false | 0 | 0.153257 | 0 | 0.233716 | 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 |
4dcddede114f8690e05a2c0f82f6bbbf7f84a9c9 | 102 | py | Python | flownmt/modules/priors/__init__.py | DeNeutoy/flowseq | 8cb4ae00c26fbeb3e1459e3b3b90e7e9a84c3d2b | [
"Apache-2.0"
] | 256 | 2019-08-14T23:26:23.000Z | 2022-03-03T16:52:14.000Z | flownmt/modules/priors/__init__.py | DeNeutoy/flowseq | 8cb4ae00c26fbeb3e1459e3b3b90e7e9a84c3d2b | [
"Apache-2.0"
] | 8 | 2019-10-18T02:54:10.000Z | 2021-10-01T21:30:23.000Z | flownmt/modules/priors/__init__.py | DeNeutoy/flowseq | 8cb4ae00c26fbeb3e1459e3b3b90e7e9a84c3d2b | [
"Apache-2.0"
] | 32 | 2019-09-06T10:02:45.000Z | 2021-12-23T06:44:37.000Z | from flownmt.modules.priors.prior import Prior
from flownmt.modules.priors.length_predictors import *
| 34 | 54 | 0.852941 | 14 | 102 | 6.142857 | 0.571429 | 0.255814 | 0.418605 | 0.55814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078431 | 102 | 2 | 55 | 51 | 0.914894 | 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 |
127aea83d067efbb0a94c7dfc9d8134be27130dd | 75 | py | Python | src/fastpli/objects/__init__.py | jifengting1/fastpliFork | 1ef7e2d268e03e21ded9390fc005b9fff2e0a3c1 | [
"MIT"
] | null | null | null | src/fastpli/objects/__init__.py | jifengting1/fastpliFork | 1ef7e2d268e03e21ded9390fc005b9fff2e0a3c1 | [
"MIT"
] | null | null | null | src/fastpli/objects/__init__.py | jifengting1/fastpliFork | 1ef7e2d268e03e21ded9390fc005b9fff2e0a3c1 | [
"MIT"
] | null | null | null | from . import fiber
from . import fiber_bundle
from . import fiber_bundles
| 18.75 | 27 | 0.8 | 11 | 75 | 5.272727 | 0.454545 | 0.517241 | 0.775862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 75 | 3 | 28 | 25 | 0.920635 | 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 |
129e4f244381882481811280a2aab99bed3ded63 | 6,433 | py | Python | experiments/karla/diplomski-rad/blade/pb/consensus-inference/consensus-qeueue.py | lvrcek/consensus-net | 560957f315751822e1ddf8c097eb7b712ceadff3 | [
"MIT"
] | null | null | null | experiments/karla/diplomski-rad/blade/pb/consensus-inference/consensus-qeueue.py | lvrcek/consensus-net | 560957f315751822e1ddf8c097eb7b712ceadff3 | [
"MIT"
] | null | null | null | experiments/karla/diplomski-rad/blade/pb/consensus-inference/consensus-qeueue.py | lvrcek/consensus-net | 560957f315751822e1ddf8c097eb7b712ceadff3 | [
"MIT"
] | 1 | 2018-12-23T13:50:29.000Z | 2018-12-23T13:50:29.000Z | import numpy as np
import sys
module_path = '/home/diplomski-rad/consensus-net/'
if module_path not in sys.path:
print('Adding src module.')
sys.path.append(module_path)
import src
module_path = '/home/diplomski-rad/consensus-net/src/python/inference/'
if module_path not in sys.path:
print('Adding i... | 42.886667 | 104 | 0.74864 | 847 | 6,433 | 5.517119 | 0.106257 | 0.075112 | 0.092446 | 0.098866 | 0.981168 | 0.981168 | 0.981168 | 0.950567 | 0.948641 | 0.906056 | 0 | 0.02952 | 0.115343 | 6,433 | 150 | 105 | 42.886667 | 0.791601 | 0.001244 | 0 | 0.736842 | 0 | 0.180451 | 0.633562 | 0.6099 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037594 | 0 | 0.037594 | 0.022556 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
12b7d560714609a51ebd6508620c44761c12ae57 | 58,874 | py | Python | tests/readers/opendss/Transformers/test_transformer_kv.py | daniel-thom/ditto | 9ba2d4cfa5e96eeda811f419c18c70b8a548747e | [
"BSD-3-Clause"
] | 44 | 2018-04-02T16:48:53.000Z | 2022-02-24T03:49:06.000Z | tests/readers/opendss/Transformers/test_transformer_kv.py | dpinney/ditto | 41dbba80e4990ed9949370fff809e4a68382e213 | [
"BSD-3-Clause"
] | 267 | 2018-04-17T22:40:14.000Z | 2022-02-04T15:59:32.000Z | tests/readers/opendss/Transformers/test_transformer_kv.py | dpinney/ditto | 41dbba80e4990ed9949370fff809e4a68382e213 | [
"BSD-3-Clause"
] | 29 | 2018-05-11T22:55:09.000Z | 2022-02-10T17:35:27.000Z | # -*- coding: utf-8 -*-
"""
test_transformer_kv.py
----------------------------------
Tests for parsing nominal voltage values of Transformers from OpenDSS into DiTTo.
"""
import os
import math
import pytest
import numpy as np
from ditto.store import Store
from ditto.readers.opendss.read import Reader
from ditto.de... | 42.879825 | 180 | 0.661582 | 8,734 | 58,874 | 4.296886 | 0.028051 | 0.137654 | 0.026753 | 0.065549 | 0.919609 | 0.898319 | 0.855792 | 0.785206 | 0.71606 | 0.640678 | 0 | 0.124618 | 0.159986 | 58,874 | 1,372 | 181 | 42.911079 | 0.634233 | 0.040765 | 0 | 0.162617 | 0 | 0 | 0.21096 | 0.132411 | 0 | 0 | 0 | 0 | 0.705607 | 1 | 0.000935 | false | 0 | 0.006542 | 0 | 0.007477 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
12ff325c2672dab4a6e698a358ebaab784f3204e | 4,293 | py | Python | test/pyaz/synapse/workspace/__init__.py | bigdatamoore/py-az-cli | 54383a4ee7cc77556f6183e74e992eec95b28e01 | [
"MIT"
] | null | null | null | test/pyaz/synapse/workspace/__init__.py | bigdatamoore/py-az-cli | 54383a4ee7cc77556f6183e74e992eec95b28e01 | [
"MIT"
] | 9 | 2021-09-24T16:37:24.000Z | 2021-12-24T00:39:19.000Z | test/pyaz/synapse/workspace/__init__.py | bigdatamoore/py-az-cli | 54383a4ee7cc77556f6183e74e992eec95b28e01 | [
"MIT"
] | null | null | null | import json, subprocess
from ... pyaz_utils import get_cli_name, get_params
def show(resource_group, name):
params = get_params(locals())
command = "az synapse workspace show " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
s... | 37.008621 | 265 | 0.676217 | 532 | 4,293 | 5.366541 | 0.139098 | 0.078459 | 0.056042 | 0.058844 | 0.804553 | 0.787741 | 0.787741 | 0.787741 | 0.787741 | 0.717688 | 0 | 0.004717 | 0.209877 | 4,293 | 115 | 266 | 37.330435 | 0.836969 | 0 | 0 | 0.830189 | 0 | 0 | 0.070813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075472 | false | 0.018868 | 0.018868 | 0 | 0.169811 | 0.226415 | 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 |
42244baff3117f03af92651677b6ba42685716c7 | 163 | py | Python | pageblocks/utils.py | mtskelton/django-page-blocks | a4eb37f0016cd51ddcc4357ef9a05a40c580e079 | [
"MIT"
] | null | null | null | pageblocks/utils.py | mtskelton/django-page-blocks | a4eb37f0016cd51ddcc4357ef9a05a40c580e079 | [
"MIT"
] | null | null | null | pageblocks/utils.py | mtskelton/django-page-blocks | a4eb37f0016cd51ddcc4357ef9a05a40c580e079 | [
"MIT"
] | null | null | null | import importlib
def class_from_name(name):
module_name, class_name = name.rsplit(".", 1)
return getattr(importlib.import_module(module_name), class_name) | 32.6 | 68 | 0.766871 | 23 | 163 | 5.130435 | 0.478261 | 0.135593 | 0.254237 | 0.322034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.122699 | 163 | 5 | 68 | 32.6 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.006098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
422d6415de9229a8eb20da9acd1f9dfb1ae04c35 | 199,465 | py | Python | GUI/code/CV_GUI.py | dimacio/pytentiostat | da4b0868a38e55d704b8ccd708c81a5aa0a2e477 | [
"BSD-3-Clause"
] | null | null | null | GUI/code/CV_GUI.py | dimacio/pytentiostat | da4b0868a38e55d704b8ccd708c81a5aa0a2e477 | [
"BSD-3-Clause"
] | null | null | null | GUI/code/CV_GUI.py | dimacio/pytentiostat | da4b0868a38e55d704b8ccd708c81a5aa0a2e477 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'CV_gui_1.ui'
#
# Created by: PyQt5 UI code generator 5.13.1
#
# WARNING! All changes made in this file will be lost!
## Standard library
from PyQt5 import QtCore, QtGui, QtWidgets
## Local library
# GUI_function
from GUI_load_config import ... | 59.55957 | 184 | 0.699652 | 23,785 | 199,465 | 5.816439 | 0.014757 | 0.166794 | 0.100619 | 0.132062 | 0.940995 | 0.902432 | 0.874125 | 0.85093 | 0.839733 | 0.838974 | 0 | 0.03718 | 0.179084 | 199,465 | 3,348 | 185 | 59.57736 | 0.8077 | 0.002351 | 0 | 0.844015 | 1 | 0.000302 | 0.016241 | 0.005747 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001209 | false | 0 | 0.001209 | 0 | 0.003325 | 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 |
4237e1cd35930f966ded10e56c6604bab8d239f0 | 16,003 | py | Python | apricot/functions/custom.py | wfondrie/apricot | d31365c96bcb61a7ae2550f39a5f9c144e1346ac | [
"MIT"
] | 389 | 2018-09-25T07:30:06.000Z | 2022-03-29T17:09:09.000Z | apricot/functions/custom.py | wfondrie/apricot | d31365c96bcb61a7ae2550f39a5f9c144e1346ac | [
"MIT"
] | 25 | 2018-09-26T15:36:17.000Z | 2022-01-12T07:10:55.000Z | apricot/functions/custom.py | wfondrie/apricot | d31365c96bcb61a7ae2550f39a5f9c144e1346ac | [
"MIT"
] | 41 | 2018-09-25T17:32:28.000Z | 2021-11-30T17:36:40.000Z | # custom.py
# Author: Jacob Schreiber <jmschreiber91@gmail.com>
import numpy
from .base import BaseSelection
from .base import BaseGraphSelection
class CustomSelection(BaseSelection):
"""A selector based off a custom, user-defined feature-based function.
This selector wraps a custom function that is passed in by ... | 36.704128 | 82 | 0.748485 | 2,402 | 16,003 | 4.923397 | 0.131141 | 0.039574 | 0.02875 | 0.012177 | 0.930323 | 0.930323 | 0.922544 | 0.916286 | 0.910367 | 0.910367 | 0 | 0.00307 | 0.185903 | 16,003 | 435 | 83 | 36.788506 | 0.904667 | 0.747297 | 0 | 0.766355 | 0 | 0 | 0.102258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11215 | false | 0.037383 | 0.028037 | 0 | 0.196262 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.