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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9cfb1818f6d53d232b4a27bfb9cdc6fede1c9ca7 | 3,470 | py | Python | datasets/utils/batch_collator.py | Nik-V9/AirObject | 5937e64531f08449e81d2c90e3c6643727efbaf0 | [
"BSD-3-Clause"
] | 9 | 2022-03-15T17:28:48.000Z | 2022-03-29T12:32:28.000Z | datasets/utils/batch_collator.py | Nik-V9/AirObject | 5937e64531f08449e81d2c90e3c6643727efbaf0 | [
"BSD-3-Clause"
] | 1 | 2022-03-29T06:03:14.000Z | 2022-03-29T13:38:29.000Z | datasets/utils/batch_collator.py | Nik-V9/AirObject | 5937e64531f08449e81d2c90e3c6643727efbaf0 | [
"BSD-3-Clause"
] | 1 | 2022-03-15T19:34:06.000Z | 2022-03-15T19:34:06.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import torch
import re
import collections
from torch._six import string_classes
class BatchCollator(object):
'''
pack dict batch
'''
def __init__(self):
super(BatchCollator,self).__init__()
def __call__(self, batch):
data= {}... | 26.48855 | 83 | 0.535735 | 522 | 3,470 | 3.425287 | 0.124521 | 0.138702 | 0.135906 | 0.123602 | 0.82774 | 0.78915 | 0.771253 | 0.770134 | 0.748322 | 0.714765 | 0 | 0.054077 | 0.307205 | 3,470 | 131 | 84 | 26.48855 | 0.689684 | 0.295965 | 0 | 0.682353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047059 | false | 0 | 0.058824 | 0 | 0.211765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1433c0b5164e9c828d920d22386a8b1886e756a8 | 44 | py | Python | kolab/kotonoha/__init__.py | roy029/kolab | 10a3054da5e7c96c575de1336056eee65368c087 | [
"MIT"
] | null | null | null | kolab/kotonoha/__init__.py | roy029/kolab | 10a3054da5e7c96c575de1336056eee65368c087 | [
"MIT"
] | 1 | 2021-11-14T05:38:27.000Z | 2021-11-14T05:38:27.000Z | kolab/kotonoha/__init__.py | roy029/kolab | 10a3054da5e7c96c575de1336056eee65368c087 | [
"MIT"
] | 7 | 2020-11-02T13:05:44.000Z | 2022-01-09T11:06:04.000Z | from kolab.kotonoha.kotonoha import Kotonoha | 44 | 44 | 0.886364 | 6 | 44 | 6.5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 44 | 1 | 44 | 44 | 0.95122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
1438d464ff364b51b9b470dcf117f81f08ef05a2 | 170 | py | Python | Multiprocessing/single.py | commoncdp2021/Gun-Gaja-Gun | 95295f4ad97500d424b90c270bba6360f455844a | [
"MIT"
] | 171 | 2015-01-20T04:13:35.000Z | 2022-03-14T17:17:40.000Z | Multiprocessing/single.py | commoncdp2021/Gun-Gaja-Gun | 95295f4ad97500d424b90c270bba6360f455844a | [
"MIT"
] | 4 | 2017-04-29T20:11:09.000Z | 2017-05-08T16:49:15.000Z | Multiprocessing/single.py | commoncdp2021/Gun-Gaja-Gun | 95295f4ad97500d424b90c270bba6360f455844a | [
"MIT"
] | 112 | 2015-04-28T21:08:11.000Z | 2022-03-16T23:09:25.000Z | #!/usr/bin/python
from gen_rand import gen_random_data
if __name__ == '__main__':
gen_random_data()
gen_random_data()
gen_random_data()
gen_random_data() | 21.25 | 36 | 0.723529 | 25 | 170 | 4.16 | 0.48 | 0.432692 | 0.625 | 0.461538 | 0.5 | 0.5 | 0.5 | 0.5 | 0.5 | 0 | 0 | 0 | 0.170588 | 170 | 8 | 37 | 21.25 | 0.737589 | 0.094118 | 0 | 0.666667 | 0 | 0 | 0.051948 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1ae99a5d72be923af2aa8187ae85d0023500663d | 199 | py | Python | spacy_dbpedia_spotlight/util.py | oroszgy/spacy-dbpedia-spotlight | 49c78916d1bf48fc243f4ebc8352748bcbc70596 | [
"MIT"
] | 51 | 2021-02-14T04:57:46.000Z | 2022-03-30T08:57:16.000Z | spacy_dbpedia_spotlight/util.py | oroszgy/spacy-dbpedia-spotlight | 49c78916d1bf48fc243f4ebc8352748bcbc70596 | [
"MIT"
] | 7 | 2021-04-08T07:25:19.000Z | 2022-03-17T16:36:45.000Z | spacy_dbpedia_spotlight/util.py | oroszgy/spacy-dbpedia-spotlight | 49c78916d1bf48fc243f4ebc8352748bcbc70596 | [
"MIT"
] | 8 | 2021-02-14T09:57:28.000Z | 2022-02-24T14:19:34.000Z | try: # Python 3.8
import importlib.metadata as importlib_metadata
except ImportError:
import importlib_metadata # noqa: F401
pkg_meta = importlib_metadata.metadata(__name__.split(".")[0]) | 28.428571 | 62 | 0.758794 | 25 | 199 | 5.72 | 0.68 | 0.475524 | 0.321678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 0.145729 | 199 | 7 | 62 | 28.428571 | 0.805882 | 0.105528 | 0 | 0 | 0 | 0 | 0.005682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
1af946057e6ad728350757d9d6f19a1fb8b32d3b | 3,192 | py | Python | colour/utilities/__init__.py | jchwei/colour | 2b2ad0a0f2052a1a0b4b076b489687235e804fdf | [
"BSD-3-Clause"
] | null | null | null | colour/utilities/__init__.py | jchwei/colour | 2b2ad0a0f2052a1a0b4b076b489687235e804fdf | [
"BSD-3-Clause"
] | null | null | null | colour/utilities/__init__.py | jchwei/colour | 2b2ad0a0f2052a1a0b4b076b489687235e804fdf | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from .data_structures import Lookup, Structure, CaseInsensitiveMapping
from .common import (
handle_numpy_errors, ignore_numpy_errors, raise_numpy_errors,
print_numpy_errors, warn_numpy_errors, ignore_python_warnings, batch,
disable_multiproce... | 54.101695 | 79 | 0.758145 | 383 | 3,192 | 5.738903 | 0.274151 | 0.050046 | 0.043676 | 0.020928 | 0.862602 | 0.862602 | 0.862602 | 0.862602 | 0.862602 | 0.862602 | 0 | 0.009042 | 0.133772 | 3,192 | 58 | 80 | 55.034483 | 0.785895 | 0.006579 | 0 | 0.055556 | 0 | 0 | 0.355002 | 0.092458 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
2162d1e841500e62dfd06303a3a876e6ba9a27a5 | 298 | py | Python | src/wai/annotations/core/component/_ProcessorComponent.py | waikato-ufdl/wai-annotations-core | bac3429e9488efb456972c74f9d462f951c4af3d | [
"Apache-2.0"
] | null | null | null | src/wai/annotations/core/component/_ProcessorComponent.py | waikato-ufdl/wai-annotations-core | bac3429e9488efb456972c74f9d462f951c4af3d | [
"Apache-2.0"
] | 3 | 2021-06-30T23:42:47.000Z | 2022-03-01T03:45:07.000Z | src/wai/annotations/core/component/_ProcessorComponent.py | waikato-ufdl/wai-annotations-core | bac3429e9488efb456972c74f9d462f951c4af3d | [
"Apache-2.0"
] | null | null | null | from abc import ABC
from ..stream import StreamProcessor, InputElementType, OutputElementType
from ._Component import Component
class ProcessorComponent(
StreamProcessor[InputElementType, OutputElementType],
Component,
ABC
):
"""
Base class for plugin ISPs.
"""
pass
| 18.625 | 73 | 0.731544 | 27 | 298 | 8.037037 | 0.555556 | 0.285714 | 0.442396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201342 | 298 | 15 | 74 | 19.866667 | 0.911765 | 0.090604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.111111 | 0.333333 | 0 | 0.444444 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 6 |
0d30eb8acda686db12da3797b3b61a5d034fe73a | 38 | py | Python | web-service/kagan.py | ResearcherOne/example-repo | 894e3c5d5948fbbadcf2651f75cbc928e119093e | [
"MIT"
] | null | null | null | web-service/kagan.py | ResearcherOne/example-repo | 894e3c5d5948fbbadcf2651f75cbc928e119093e | [
"MIT"
] | null | null | null | web-service/kagan.py | ResearcherOne/example-repo | 894e3c5d5948fbbadcf2651f75cbc928e119093e | [
"MIT"
] | null | null | null | print("yeni kagan ozellik çalışıyor")
| 19 | 37 | 0.789474 | 5 | 38 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 38 | 1 | 38 | 38 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
0d45beee999e9b43d68c430f2c97a8268cc934fa | 25 | py | Python | src/musescore/__init__.py | ryanrudes/musescore | 4e38e1b269cb370c6bb6f3bf964fa12b942b6dd5 | [
"MIT"
] | null | null | null | src/musescore/__init__.py | ryanrudes/musescore | 4e38e1b269cb370c6bb6f3bf964fa12b942b6dd5 | [
"MIT"
] | null | null | null | src/musescore/__init__.py | ryanrudes/musescore | 4e38e1b269cb370c6bb6f3bf964fa12b942b6dd5 | [
"MIT"
] | null | null | null | from .musescore import *
| 12.5 | 24 | 0.76 | 3 | 25 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 25 | 1 | 25 | 25 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
b49a3072d8f4af2bc6caae36776692324e75deae | 14,138 | py | Python | tests/test_vector.py | cs207FinalProjectGroup/cs207-FinalProject | faa78f023df43c13f2ccd4711835c4313f193c9b | [
"MIT"
] | null | null | null | tests/test_vector.py | cs207FinalProjectGroup/cs207-FinalProject | faa78f023df43c13f2ccd4711835c4313f193c9b | [
"MIT"
] | null | null | null | tests/test_vector.py | cs207FinalProjectGroup/cs207-FinalProject | faa78f023df43c13f2ccd4711835c4313f193c9b | [
"MIT"
] | null | null | null | import sys
import os
import numpy as np
import pytest
sys.path.append('..')
import autodiff as ad
def test_create_vector():
v = ad.create_vector('v', [1, 2])
assert(v[0].getValue() == 1)
assert(v[1].getValue() == 2)
derivs = ad.get_deriv(v)
assert(np.array_equal(np.array([deriv.get('v1', 0) for ... | 34.99505 | 135 | 0.52419 | 2,377 | 14,138 | 3.059739 | 0.034077 | 0.137632 | 0.089372 | 0.123745 | 0.908153 | 0.901416 | 0.888629 | 0.845731 | 0.831019 | 0.788808 | 0 | 0.088121 | 0.215801 | 14,138 | 403 | 136 | 35.081886 | 0.567872 | 0.001061 | 0 | 0.581395 | 0 | 0 | 0.017357 | 0 | 0 | 0 | 0 | 0 | 0.392442 | 1 | 0.031977 | false | 0 | 0.014535 | 0 | 0.046512 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
b4a46380b4f9d03328634433e3bf1ca35dfad80e | 345 | py | Python | literal/apps/authentication/dto.py | spanickroon/Text-From-Photo-Django-API | e1ef79c90a443cc3e606dec9e1c531aa5943ca59 | [
"MIT"
] | null | null | null | literal/apps/authentication/dto.py | spanickroon/Text-From-Photo-Django-API | e1ef79c90a443cc3e606dec9e1c531aa5943ca59 | [
"MIT"
] | null | null | null | literal/apps/authentication/dto.py | spanickroon/Text-From-Photo-Django-API | e1ef79c90a443cc3e606dec9e1c531aa5943ca59 | [
"MIT"
] | 1 | 2021-06-08T18:06:21.000Z | 2021-06-08T18:06:21.000Z | import typing
from pydantic import BaseModel
class AuthenticationDTO(BaseModel):
username: typing.Optional[str]
email: typing.Optional[str]
token: typing.Optional[str]
password: typing.Optional[str]
class RegisterDTO(BaseModel):
username: str
token: str
class LoginDTO(BaseModel):
user... | 16.428571 | 35 | 0.721739 | 39 | 345 | 6.384615 | 0.384615 | 0.2249 | 0.273092 | 0.200803 | 0.2249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194203 | 345 | 20 | 36 | 17.25 | 0.895683 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.076923 | 0.153846 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
b4bc77f4a06b433cbc8b8d1fc881bd78002c499f | 31 | py | Python | paperscraper/scholar/__init__.py | henrykrumb/paperscraper | 31abb49701b90bfb5107b46e82941068d242ec38 | [
"MIT"
] | 16 | 2020-11-11T15:06:04.000Z | 2022-03-22T07:39:47.000Z | paperscraper/scholar/__init__.py | henrykrumb/paperscraper | 31abb49701b90bfb5107b46e82941068d242ec38 | [
"MIT"
] | 8 | 2020-11-11T09:35:48.000Z | 2021-12-02T11:36:07.000Z | paperscraper/scholar/__init__.py | henrykrumb/paperscraper | 31abb49701b90bfb5107b46e82941068d242ec38 | [
"MIT"
] | 7 | 2021-03-20T09:10:39.000Z | 2022-01-06T21:12:02.000Z | from .scholar import * # noqa
| 15.5 | 30 | 0.677419 | 4 | 31 | 5.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225806 | 31 | 1 | 31 | 31 | 0.875 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
b4d81b6bf97dcbf05cfb55609351e0afe983e80f | 6,608 | py | Python | tests/test_mock_twilio.py | gregziegan/eviction-tracker | 4db4bacb9675f985cf2f4a747855491e9036ad28 | [
"BSD-3-Clause"
] | 5 | 2021-09-15T08:06:59.000Z | 2022-01-26T21:25:50.000Z | tests/test_mock_twilio.py | gregziegan/eviction-tracker | 4db4bacb9675f985cf2f4a747855491e9036ad28 | [
"BSD-3-Clause"
] | 18 | 2022-01-14T17:15:53.000Z | 2022-02-14T07:33:53.000Z | tests/test_mock_twilio.py | thebritican/eviction-tracker | 1e34d509b0410d61de6abd6be521c53951fa038a | [
"BSD-3-Clause"
] | 1 | 2021-09-15T01:46:57.000Z | 2021-09-15T01:46:57.000Z | import unittest
import json
import os
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_testing import TestCase
from eviction_tracker.detainer_warrants.models import PhoneNumberVerification
from eviction_tracker.database import db
from eviction_tracker.app import create_app
from eviction_track... | 43.473684 | 139 | 0.684171 | 707 | 6,608 | 6.005658 | 0.127298 | 0.132124 | 0.135657 | 0.225389 | 0.786858 | 0.780735 | 0.780735 | 0.769666 | 0.769666 | 0.738577 | 0 | 0.001003 | 0.24546 | 6,608 | 151 | 140 | 43.761589 | 0.850582 | 0.025272 | 0 | 0.639344 | 0 | 0 | 0.074086 | 0.045362 | 0 | 0 | 0 | 0 | 0.270492 | 1 | 0.065574 | false | 0 | 0.081967 | 0 | 0.180328 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 6 |
2ecd03821371367e9341268cd6de6a5ce70ed726 | 139 | py | Python | venv/Lib/site-packages/pandas/tseries/api.py | arnoyu-hub/COMP0016miemie | 59af664dcf190eab4f93cefb8471908717415fea | [
"MIT"
] | 1 | 2021-02-06T21:00:00.000Z | 2021-02-06T21:00:00.000Z | venv/Lib/site-packages/pandas/tseries/api.py | arnoyu-hub/COMP0016miemie | 59af664dcf190eab4f93cefb8471908717415fea | [
"MIT"
] | null | null | null | venv/Lib/site-packages/pandas/tseries/api.py | arnoyu-hub/COMP0016miemie | 59af664dcf190eab4f93cefb8471908717415fea | [
"MIT"
] | 1 | 2021-04-26T22:41:56.000Z | 2021-04-26T22:41:56.000Z | """
Timeseries API
"""
# flake8: noqa
from pandas.tseries.frequencies import infer_freq
import pandas.tseries.offsets as offsets
| 15.444444 | 50 | 0.733813 | 17 | 139 | 5.941176 | 0.764706 | 0.257426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008772 | 0.179856 | 139 | 8 | 51 | 17.375 | 0.877193 | 0.201439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
2589c35befb45e449414d67ee4ba5a7414b89d1e | 41,979 | py | Python | 19.py | Swizec/advent-of-code-2017 | efcdac9ddb81dd1db4a7bc0945ff4c13f6f15513 | [
"MIT"
] | 5 | 2017-12-02T08:55:59.000Z | 2018-01-11T05:52:18.000Z | 19.py | Swizec/advent-of-code-2017 | efcdac9ddb81dd1db4a7bc0945ff4c13f6f15513 | [
"MIT"
] | null | null | null | 19.py | Swizec/advent-of-code-2017 | efcdac9ddb81dd1db4a7bc0945ff4c13f6f15513 | [
"MIT"
] | 1 | 2020-06-18T19:27:02.000Z | 2020-06-18T19:27:02.000Z |
testinput = """
|
| +--+
A | C
F---|----E|--+
| | | D
+B-+ +--+
"""
input = """
| ... | 162.081081 | 201 | 0.012578 | 170 | 41,979 | 3.105882 | 0.305882 | 0.090909 | 0.079545 | 0.05303 | 0.113636 | 0.075758 | 0 | 0 | 0 | 0 | 0 | 0.001329 | 0.605803 | 41,979 | 259 | 202 | 162.081081 | 0.030578 | 0.000715 | 0 | 0.405738 | 0 | 0.659836 | 0.971988 | 0.194226 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.008197 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
259c1b66ef692b4331473a57e392a26935871c50 | 151 | py | Python | Project_Codev0.1/Class-diagram_Classes/class Reccomendation.py | cyberseihis/Wallsource | 4bd981e75c3ebf97c9673ffb80147ef2bdf7d61a | [
"MIT"
] | null | null | null | Project_Codev0.1/Class-diagram_Classes/class Reccomendation.py | cyberseihis/Wallsource | 4bd981e75c3ebf97c9673ffb80147ef2bdf7d61a | [
"MIT"
] | null | null | null | Project_Codev0.1/Class-diagram_Classes/class Reccomendation.py | cyberseihis/Wallsource | 4bd981e75c3ebf97c9673ffb80147ef2bdf7d61a | [
"MIT"
] | null | null | null | class Reccomandation:
def __init__(self, input_text):
self.text = input_text
def __get__(self, name ):
return self.name
| 16.777778 | 35 | 0.622517 | 18 | 151 | 4.666667 | 0.555556 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.298013 | 151 | 8 | 36 | 18.875 | 0.792453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
d3307d21c0104cfa76eb4e09db2fdc6d925d6393 | 8,682 | py | Python | thenewboston_node/business_logic/tests/test_blockchain/test_add_block.py | nishp77/thenewboston-node | 158b1f1739b2c6c9c21c80e9da854ca141f1cf8f | [
"MIT"
] | 30 | 2021-03-05T22:08:17.000Z | 2021-09-23T02:45:45.000Z | thenewboston_node/business_logic/tests/test_blockchain/test_add_block.py | nishp77/thenewboston-node | 158b1f1739b2c6c9c21c80e9da854ca141f1cf8f | [
"MIT"
] | 148 | 2021-03-05T23:37:50.000Z | 2021-11-02T02:18:58.000Z | thenewboston_node/business_logic/tests/test_blockchain/test_add_block.py | nishp77/thenewboston-node | 158b1f1739b2c6c9c21c80e9da854ca141f1cf8f | [
"MIT"
] | 14 | 2021-03-05T21:58:46.000Z | 2021-10-15T17:27:52.000Z | import pytest
from thenewboston_node.business_logic.blockchain.base import BlockchainBase
from thenewboston_node.business_logic.exceptions import ValidationError
from thenewboston_node.business_logic.models import Block, NodeDeclarationSignedChangeRequest
from thenewboston_node.core.utils.cryptography import KeyPair, ... | 45.21875 | 113 | 0.773209 | 1,040 | 8,682 | 6.009615 | 0.097115 | 0.06448 | 0.08512 | 0.11232 | 0.89808 | 0.85056 | 0.84288 | 0.80048 | 0.70384 | 0.65424 | 0 | 0.016023 | 0.15895 | 8,682 | 191 | 114 | 45.455497 | 0.839907 | 0 | 0 | 0.547619 | 0 | 0 | 0.036512 | 0.008293 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.017857 | false | 0 | 0.029762 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d3a4ce7631a1d2f8712096aeea00cd3b9efe12f9 | 129 | py | Python | 7KYU/largest_pair_sum.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | 4 | 2021-07-17T22:48:03.000Z | 2022-03-25T14:10:58.000Z | 7KYU/largest_pair_sum.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | null | null | null | 7KYU/largest_pair_sum.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | 3 | 2021-06-14T14:18:16.000Z | 2022-03-16T06:02:02.000Z | from typing import List
def largest_pair_sum(numbers: List[int]) -> int:
return sum(sorted(numbers, reverse=True)[:2])
| 21.5 | 49 | 0.697674 | 19 | 129 | 4.631579 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009346 | 0.170543 | 129 | 6 | 50 | 21.5 | 0.813084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
d3ab10e48c1dfedbe1ccb75edc1456fd8323c7b9 | 85 | py | Python | dist/book/codes/105-1.py | EManualResource/book-python-basic | a6f9e985b8765f9e8dbc7a0bea82243545d3fa06 | [
"Apache-2.0"
] | null | null | null | dist/book/codes/105-1.py | EManualResource/book-python-basic | a6f9e985b8765f9e8dbc7a0bea82243545d3fa06 | [
"Apache-2.0"
] | null | null | null | dist/book/codes/105-1.py | EManualResource/book-python-basic | a6f9e985b8765f9e8dbc7a0bea82243545d3fa06 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
#coding:utf-8
"""
请计算:19+2*4-8/2
"""
a = 19+2*4-8/2
print a
| 8.5 | 22 | 0.552941 | 21 | 85 | 2.238095 | 0.619048 | 0.12766 | 0.170213 | 0.212766 | 0.255319 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183099 | 0.164706 | 85 | 9 | 23 | 9.444444 | 0.478873 | 0.388235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 1 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
6ca9d10dc3e84e365fb6a632584a5fe9fc698a9e | 75 | py | Python | localite/api.py | stim-devices/dev-localite | 66edf74047c73393f7be9b21b86792980045d01d | [
"MIT"
] | null | null | null | localite/api.py | stim-devices/dev-localite | 66edf74047c73393f7be9b21b86792980045d01d | [
"MIT"
] | 6 | 2019-10-16T07:07:14.000Z | 2022-01-24T10:42:00.000Z | localite/api.py | stim-devices/dev-localite | 66edf74047c73393f7be9b21b86792980045d01d | [
"MIT"
] | 3 | 2019-10-22T06:30:37.000Z | 2021-12-09T12:07:28.000Z | from localite.flow.mitm import start, kill
from localite.coil import Coil
| 18.75 | 42 | 0.813333 | 12 | 75 | 5.083333 | 0.666667 | 0.393443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 75 | 3 | 43 | 25 | 0.938462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
9f03d0c4cf40f4ea4b84456d57dcb7f92d75b9bd | 54,734 | py | Python | stemdl/runtime.py | nlaanait/stemdl | ae82905ae7e96bdb43a6626dbf73a63a5bb8b85b | [
"MIT"
] | null | null | null | stemdl/runtime.py | nlaanait/stemdl | ae82905ae7e96bdb43a6626dbf73a63a5bb8b85b | [
"MIT"
] | null | null | null | stemdl/runtime.py | nlaanait/stemdl | ae82905ae7e96bdb43a6626dbf73a63a5bb8b85b | [
"MIT"
] | null | null | null | """
Created on 10/9/17.
@author: Numan Laanait, Michael Matheson
email: laanaitn@ornl.gov, mathesonm@ornl.gov
"""
import time
from datetime import datetime
import os
import sys
import re
import numpy as np
import math
from itertools import chain
from multiprocessing import cpu_count
from copy import deepcopy
#TF
impo... | 49.533032 | 189 | 0.59886 | 6,676 | 54,734 | 4.674805 | 0.083283 | 0.024672 | 0.01961 | 0.016918 | 0.815694 | 0.794482 | 0.764683 | 0.754334 | 0.747413 | 0.738857 | 0 | 0.011013 | 0.271732 | 54,734 | 1,104 | 190 | 49.577899 | 0.771932 | 0.12442 | 0 | 0.691799 | 0 | 0.005291 | 0.098224 | 0.001909 | 0 | 0 | 0 | 0.003623 | 0 | 1 | 0.025132 | false | 0.003968 | 0.025132 | 0.003968 | 0.066138 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
9f7f9527ef909a08ce64bf7e9249c0a2bfd1e0b8 | 29 | py | Python | myp/package/__init__.py | YunisDEV/py-scripts | c9eccffa3e69bb32a46fef94e0517a149f3701ea | [
"MIT"
] | 2 | 2021-04-03T14:16:16.000Z | 2021-04-03T15:38:32.000Z | myp/package/__init__.py | YunisDEV/py-scripts | c9eccffa3e69bb32a46fef94e0517a149f3701ea | [
"MIT"
] | null | null | null | myp/package/__init__.py | YunisDEV/py-scripts | c9eccffa3e69bb32a46fef94e0517a149f3701ea | [
"MIT"
] | 2 | 2021-04-15T10:28:28.000Z | 2021-04-28T19:22:16.000Z | from .reader import MYPReader | 29 | 29 | 0.862069 | 4 | 29 | 6.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 29 | 1 | 29 | 29 | 0.961538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4c884d4e81d696f03d50742d4521eae2c4b56d8a | 211 | py | Python | parser/team02/proyec/Valor/Valor.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 35 | 2020-12-07T03:11:43.000Z | 2021-04-15T17:38:16.000Z | parser/team02/proyec/Valor/Valor.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 47 | 2020-12-09T01:29:09.000Z | 2021-01-13T05:37:50.000Z | parser/team02/proyec/Valor/Valor.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 556 | 2020-12-07T03:13:31.000Z | 2021-06-17T17:41:10.000Z | from ast.Expresion import Expresion
class Valor(Expresion):
def __init__(self,value,line,column):
self.value = valor
def getValor(self,entorno,tree):
return self.value
| 23.444444 | 42 | 0.63981 | 25 | 211 | 5.24 | 0.64 | 0.206107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.274882 | 211 | 8 | 43 | 26.375 | 0.856209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
4c902ee7c18b790e653d820da759ee90d287a130 | 154 | py | Python | dolfyn/meta/api_dumb.py | aidanbharath/dolfyn | 7c8c62a780ae310b1ffdf04592fa77f400b04334 | [
"Apache-2.0"
] | 28 | 2016-03-07T16:31:34.000Z | 2022-03-29T03:28:36.000Z | dolfyn/meta/api_dumb.py | aidanbharath/dolfyn | 7c8c62a780ae310b1ffdf04592fa77f400b04334 | [
"Apache-2.0"
] | 85 | 2015-09-04T15:51:26.000Z | 2022-03-29T20:45:08.000Z | dolfyn/meta/api_dumb.py | aidanbharath/dolfyn | 7c8c62a780ae310b1ffdf04592fa77f400b04334 | [
"Apache-2.0"
] | 27 | 2016-04-02T04:02:10.000Z | 2022-03-26T02:45:06.000Z | valid=False
def marray(arr,*args,**kwargs):
return arr
def unitsDict(*args,**kwargs):
return None
def varMeta(*args,**kwargs):
return None
| 14 | 31 | 0.668831 | 21 | 154 | 4.904762 | 0.52381 | 0.291262 | 0.466019 | 0.38835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 154 | 10 | 32 | 15.4 | 0.81746 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0.428571 | 0.857143 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 6 |
4cac182d3495b48c2694e7a50f14cbba4414441f | 46,231 | py | Python | cddm/_core_nb.py | IJSComplexMatter/cddm | f4d7521ad88271027c61743b2e8a2355a40cb117 | [
"MIT"
] | 4 | 2021-01-30T12:26:58.000Z | 2021-11-04T15:26:21.000Z | cddm/_core_nb.py | IJSComplexMatter/cddm | f4d7521ad88271027c61743b2e8a2355a40cb117 | [
"MIT"
] | 2 | 2020-03-12T15:24:04.000Z | 2021-06-30T10:53:32.000Z | cddm/_core_nb.py | IJSComplexMatter/cddm | f4d7521ad88271027c61743b2e8a2355a40cb117 | [
"MIT"
] | 4 | 2020-02-13T10:19:01.000Z | 2021-06-18T18:52:55.000Z | """
Low level numba functions
"""
from __future__ import absolute_import, print_function, division
import numpy as np
import numba as nb
from cddm.conf import C,F, I64, NUMBA_TARGET, NUMBA_FASTMATH, NUMBA_CACHE
from cddm.fft import _fft, _ifft
from cddm.decorators import doc_inherit
#Some useful functions
@nb.vec... | 36.259608 | 197 | 0.531137 | 7,328 | 46,231 | 3.226801 | 0.039438 | 0.009896 | 0.058361 | 0.089487 | 0.84564 | 0.817009 | 0.781401 | 0.75573 | 0.714793 | 0.688742 | 0 | 0.040988 | 0.271203 | 46,231 | 1,274 | 198 | 36.288069 | 0.66082 | 0.111094 | 0 | 0.59116 | 0 | 0.003315 | 0.017597 | 0.008786 | 0 | 0 | 0 | 0 | 0.00884 | 1 | 0.114917 | false | 0 | 0.00663 | 0.00442 | 0.19558 | 0.001105 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4cc297220bb6209cd8957ec4a0d72a854f9d3a0e | 120 | py | Python | packages/api-server/api_server/models/tortoise_models/dispenser_state.py | Sald-for-Communication-and-IT/rmf-web | ec5996ab0b06440d7147170f3030b14c73d26116 | [
"Apache-2.0"
] | 23 | 2021-04-13T23:01:12.000Z | 2022-03-21T02:15:24.000Z | packages/api-server/api_server/models/tortoise_models/dispenser_state.py | Sald-for-Communication-and-IT/rmf-web | ec5996ab0b06440d7147170f3030b14c73d26116 | [
"Apache-2.0"
] | 326 | 2021-03-10T17:32:17.000Z | 2022-03-30T04:42:14.000Z | packages/api-server/api_server/models/tortoise_models/dispenser_state.py | Sald-for-Communication-and-IT/rmf-web | ec5996ab0b06440d7147170f3030b14c73d26116 | [
"Apache-2.0"
] | 13 | 2021-04-10T10:33:36.000Z | 2022-02-22T15:39:58.000Z | from tortoise.models import Model
from .json_mixin import JsonMixin
class DispenserState(Model, JsonMixin):
pass
| 15 | 39 | 0.791667 | 15 | 120 | 6.266667 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158333 | 120 | 7 | 40 | 17.142857 | 0.930693 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.5 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
4cfc4cc18de867d30548767817a505712ffadee7 | 3,354 | py | Python | src/main/python/aut/udfs.py | ruebot/aut | 4200482d4c1e0238898f1ecb4e765f52a936a846 | [
"Apache-2.0"
] | 113 | 2017-08-01T15:33:37.000Z | 2022-03-11T14:19:36.000Z | src/main/python/aut/udfs.py | ruebot/aut | 4200482d4c1e0238898f1ecb4e765f52a936a846 | [
"Apache-2.0"
] | 510 | 2017-07-06T10:33:55.000Z | 2022-03-29T13:40:11.000Z | src/main/python/aut/udfs.py | ruebot/aut | 4200482d4c1e0238898f1ecb4e765f52a936a846 | [
"Apache-2.0"
] | 36 | 2017-09-20T03:32:52.000Z | 2021-11-23T18:10:30.000Z | from pyspark import SparkContext
from pyspark.sql.column import Column, _to_java_column, _to_seq
from pyspark.sql.functions import col
def compute_image_size(col):
sc = SparkContext.getOrCreate()
udf = (
sc.getOrCreate()._jvm.io.archivesunleashed.udfs.package.computeImageSize().apply
)
return ... | 31.055556 | 88 | 0.706619 | 415 | 3,354 | 5.440964 | 0.144578 | 0.039858 | 0.079717 | 0.173605 | 0.793623 | 0.763508 | 0.763508 | 0.763508 | 0.723649 | 0.723649 | 0 | 0.00142 | 0.160107 | 3,354 | 107 | 89 | 31.345794 | 0.800142 | 0 | 0 | 0.481013 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177215 | false | 0 | 0.037975 | 0 | 0.392405 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 6 |
980647cf4e23cbacd0782dbd7c70aa88115cdac8 | 177 | py | Python | phileo/signals.py | dheeru0198/phileo | 625dd239621ea15ba978d89eff00962930e1a68c | [
"BSD-3-Clause"
] | null | null | null | phileo/signals.py | dheeru0198/phileo | 625dd239621ea15ba978d89eff00962930e1a68c | [
"BSD-3-Clause"
] | null | null | null | phileo/signals.py | dheeru0198/phileo | 625dd239621ea15ba978d89eff00962930e1a68c | [
"BSD-3-Clause"
] | 1 | 2018-09-19T05:03:24.000Z | 2018-09-19T05:03:24.000Z | import django.dispatch
object_liked = django.dispatch.Signal(providing_args=["like", "request"])
object_unliked = django.dispatch.Signal(providing_args=["object", "request"])
| 29.5 | 77 | 0.779661 | 21 | 177 | 6.380952 | 0.52381 | 0.313433 | 0.298507 | 0.432836 | 0.492537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067797 | 177 | 5 | 78 | 35.4 | 0.812121 | 0 | 0 | 0 | 0 | 0 | 0.135593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
e21ad4f612ca8c6a4b0a1d557998a14212650661 | 3,242 | py | Python | Python/stochastic.py | Hieuqng/Stochastic-Modelling | d81f37a3d6e361ec417564a1b67046f70e8c1998 | [
"MIT"
] | null | null | null | Python/stochastic.py | Hieuqng/Stochastic-Modelling | d81f37a3d6e361ec417564a1b67046f70e8c1998 | [
"MIT"
] | null | null | null | Python/stochastic.py | Hieuqng/Stochastic-Modelling | d81f37a3d6e361ec417564a1b67046f70e8c1998 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import numpy as np
from scipy.stats import norm
def bachelier(So, K, sigma, T, option_type):
'''
Calculate European option price using Bachelier model:
dSt = sigma * S0 * dWt
St = S0*(1 + sigma*Wt)
Parameter
---------
So: float
price of underlying... | 30.018519 | 116 | 0.534547 | 485 | 3,242 | 3.538144 | 0.17732 | 0.104895 | 0.081585 | 0.048951 | 0.888695 | 0.887529 | 0.859557 | 0.837413 | 0.837413 | 0.734848 | 0 | 0.013471 | 0.313078 | 3,242 | 108 | 117 | 30.018519 | 0.757072 | 0.325725 | 0 | 0.577778 | 0 | 0.044444 | 0.156942 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.044444 | 0 | 0.177778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e254b05b71d66f384b33227e8cf7c7658f2a37a9 | 126 | py | Python | src/utils.py | Filco306/ds-project-template | 7f4f435aefbcdef34ca9d585cb3944569a5f466f | [
"Apache-2.0"
] | null | null | null | src/utils.py | Filco306/ds-project-template | 7f4f435aefbcdef34ca9d585cb3944569a5f466f | [
"Apache-2.0"
] | null | null | null | src/utils.py | Filco306/ds-project-template | 7f4f435aefbcdef34ca9d585cb3944569a5f466f | [
"Apache-2.0"
] | null | null | null | import os
def fix_filename(filename):
return os.path.join("config", filename) if filename[:6] != "config" else filename
| 21 | 85 | 0.714286 | 18 | 126 | 4.944444 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009346 | 0.150794 | 126 | 5 | 86 | 25.2 | 0.82243 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
e25afe3d353504a87d808eaaaeb498cdabcf5f12 | 29 | py | Python | sparse/_compressed/__init__.py | pettni/sparse | 06f420daf8a88e8328e8464a462c9907601e6b01 | [
"BSD-3-Clause"
] | null | null | null | sparse/_compressed/__init__.py | pettni/sparse | 06f420daf8a88e8328e8464a462c9907601e6b01 | [
"BSD-3-Clause"
] | null | null | null | sparse/_compressed/__init__.py | pettni/sparse | 06f420daf8a88e8328e8464a462c9907601e6b01 | [
"BSD-3-Clause"
] | null | null | null | from .compressed import GXCS
| 14.5 | 28 | 0.827586 | 4 | 29 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 29 | 1 | 29 | 29 | 0.96 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
e268f1b60846dc7677f46bfe44bac5575ce543c3 | 28,089 | py | Python | pyLMS7002Soapy/LMS7002_DCCAL.py | Surfndez/pyLMS7002Soapy | ea230dcb12048007300477e1e2e4decc5414f954 | [
"Apache-2.0"
] | 46 | 2016-11-29T05:10:36.000Z | 2021-10-31T19:27:46.000Z | pyLMS7002M/LMS7002_DCCAL.py | myriadrf/pyLMS7002M | b866deea1f05dba44c9ed1a1a4666352b811b66b | [
"Apache-2.0"
] | 2 | 2017-04-15T21:36:01.000Z | 2017-06-08T09:44:26.000Z | pyLMS7002Soapy/LMS7002_DCCAL.py | Surfndez/pyLMS7002Soapy | ea230dcb12048007300477e1e2e4decc5414f954 | [
"Apache-2.0"
] | 16 | 2016-11-28T20:47:55.000Z | 2021-04-07T01:48:20.000Z | #***************************************************************
#* Name: LMS7002_DCCAL.py
#* Purpose: Class implementing LMS7002 DCCAL functions
#* Author: Lime Microsystems ()
#* Created: 2017-02-10
#* Copyright: Lime Microsystems (limemicro.com)
#* License:
#**********************************************... | 34.047273 | 117 | 0.546904 | 3,465 | 28,089 | 4.282828 | 0.037807 | 0.08841 | 0.101887 | 0.058221 | 0.899461 | 0.804245 | 0.745081 | 0.716779 | 0.703976 | 0.675404 | 0 | 0.032383 | 0.327174 | 28,089 | 824 | 118 | 34.088592 | 0.752844 | 0.095411 | 0 | 0.597938 | 0 | 0 | 0.214749 | 0.000878 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129897 | false | 0 | 0.002062 | 0 | 0.191753 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e27e86f2b271ce013027a7b84740529b93fb34b8 | 27 | py | Python | littlecheck/__init__.py | faho/littlecheck | 12cad505fa6c3c4b45e5e2a0d25b043435ed0cee | [
"CC0-1.0"
] | 26 | 2019-06-08T22:04:46.000Z | 2022-01-11T22:08:04.000Z | littlecheck/__init__.py | 0verk1ll/littlecheck | 5f6c024fbdf6654e7851d3fd756a6d56e167476e | [
"CC0-1.0"
] | 7 | 2019-06-24T15:36:59.000Z | 2022-01-28T11:10:00.000Z | littlecheck/__init__.py | 0verk1ll/littlecheck | 5f6c024fbdf6654e7851d3fd756a6d56e167476e | [
"CC0-1.0"
] | 3 | 2019-06-24T15:38:18.000Z | 2021-03-21T21:24:28.000Z | from .littlecheck import *
| 13.5 | 26 | 0.777778 | 3 | 27 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 27 | 1 | 27 | 27 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
e28fc3f6eb0d1260175698af5dc43fccdbf6b620 | 99 | py | Python | grid/utils.py | parthatom/Grid | 7ca680b545b1fd6955ca2f3d2e0088df9d7391f4 | [
"Apache-2.0"
] | null | null | null | grid/utils.py | parthatom/Grid | 7ca680b545b1fd6955ca2f3d2e0088df9d7391f4 | [
"Apache-2.0"
] | null | null | null | grid/utils.py | parthatom/Grid | 7ca680b545b1fd6955ca2f3d2e0088df9d7391f4 | [
"Apache-2.0"
] | 1 | 2019-07-03T12:01:51.000Z | 2019-07-03T12:01:51.000Z | """Utility functions."""
import os
def exec_os_cmd(command):
return os.popen(command).read()
| 14.142857 | 35 | 0.69697 | 14 | 99 | 4.785714 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141414 | 99 | 6 | 36 | 16.5 | 0.788235 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
2c373df7b9914d27f5ce9ba2731bf4095689d632 | 214 | py | Python | flask_secret_generator.py | amahlaka/SpotifyPythonControl | a95679acc4ec11c7b8141217d3ff76b8040bd866 | [
"MIT"
] | 1 | 2018-10-11T17:12:00.000Z | 2018-10-11T17:12:00.000Z | flask_secret_generator.py | amahlaka/SpotifyPythonControl | a95679acc4ec11c7b8141217d3ff76b8040bd866 | [
"MIT"
] | 3 | 2018-10-11T17:09:54.000Z | 2018-10-11T18:01:47.000Z | flask_secret_generator.py | amahlaka/SpotifyPythonControl | a95679acc4ec11c7b8141217d3ff76b8040bd866 | [
"MIT"
] | null | null | null | import random
import string
def generate_activation_token():
secret = ''.join(random.SystemRandom().choice(string.ascii_letters + string.digits) for _ in range(64))
print(secret)
generate_activation_token() | 35.666667 | 107 | 0.775701 | 27 | 214 | 5.925926 | 0.703704 | 0.225 | 0.2875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 0.11215 | 214 | 6 | 108 | 35.666667 | 0.831579 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0.166667 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
e2be6c37006936281446d9bdbd0cd3feacbb29b0 | 8,246 | py | Python | data/results/centralities/pagerank/networkX_pagerank_performance.py | cassinius/graphinius | cb7191671f867432da1707627eeda23ed4397c8d | [
"MIT"
] | 17 | 2019-12-09T13:14:32.000Z | 2021-06-22T05:28:34.000Z | data/results/centralities/pagerank/networkX_pagerank_performance.py | cassinius/Graphinius | cb7191671f867432da1707627eeda23ed4397c8d | [
"MIT"
] | 89 | 2017-03-05T19:56:35.000Z | 2019-08-12T15:54:27.000Z | data/results/centralities/pagerank/networkX_pagerank_performance.py | cassinius/Graphinius | cb7191671f867432da1707627eeda23ed4397c8d | [
"MIT"
] | 7 | 2017-03-05T03:03:14.000Z | 2018-11-22T22:46:47.000Z | import networkx as nx
from networkx import pagerank, pagerank_numpy, pagerank_scipy
import time
import json
output_folder = 'comparison_selected'
'''
Unweighted graphs
'''
print("========================================")
print("========== UNWEIGHTED GRAPHS ===========")
print("======================================... | 35.390558 | 123 | 0.679845 | 1,182 | 8,246 | 4.492386 | 0.050761 | 0.054237 | 0.081356 | 0.050847 | 0.921469 | 0.9 | 0.877401 | 0.861582 | 0.800188 | 0.798682 | 0 | 0.045528 | 0.102353 | 8,246 | 232 | 124 | 35.543103 | 0.671845 | 0.068033 | 0 | 0.630303 | 0 | 0 | 0.372888 | 0.227218 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.024242 | 0 | 0.024242 | 0.212121 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e2ead9fbe8037b6ce63b56848fa4aec2781a3c95 | 102 | py | Python | hello_world.py | albertonietos/git-project | 24445c3eeb46df9fabb315b5f87e0f08b22ebbd5 | [
"MIT"
] | null | null | null | hello_world.py | albertonietos/git-project | 24445c3eeb46df9fabb315b5f87e0f08b22ebbd5 | [
"MIT"
] | null | null | null | hello_world.py | albertonietos/git-project | 24445c3eeb46df9fabb315b5f87e0f08b22ebbd5 | [
"MIT"
] | null | null | null | print("Hello world!")
print("Hello darkness my old friend")
print("I've come to talk with you again")
| 25.5 | 41 | 0.72549 | 18 | 102 | 4.111111 | 0.833333 | 0.27027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137255 | 102 | 3 | 42 | 34 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
392e05c3cb7ca0b9906eb2a9d156a5d75c879181 | 23,812 | py | Python | methods/smoking-behavior.py | wdempsey/sense2stop-lvm | ea44d5f9199382d30e4c5a5ff4bd524313ceb5b2 | [
"CECILL-B"
] | 1 | 2020-04-18T11:16:02.000Z | 2020-04-18T11:16:02.000Z | methods/smoking-behavior.py | wdempsey/sense2stop-lvm | ea44d5f9199382d30e4c5a5ff4bd524313ceb5b2 | [
"CECILL-B"
] | 6 | 2020-04-13T18:38:04.000Z | 2022-03-12T00:55:56.000Z | methods/smoking-behavior.py | wdempsey/sense2stop-lvm | ea44d5f9199382d30e4c5a5ff4bd524313ceb5b2 | [
"CECILL-B"
] | 1 | 2020-07-02T04:47:00.000Z | 2020-07-02T04:47:00.000Z | # To add a new cell, type '# %%'
# To add a new markdown cell, type '# %% [markdown]'
# %% [markdown]
# # Summary
#
# * ADD LATER
# * ADD LATER
# * ADD LATER
# %% [markdown]
# # Estimation
# %%
import pymc3 as pm
import arviz as az
import pandas as pd
import numpy as np
from datetime import datetime
import os
exec(o... | 45.442748 | 232 | 0.711532 | 2,902 | 23,812 | 5.425224 | 0.065128 | 0.060976 | 0.031758 | 0.054878 | 0.915396 | 0.883575 | 0.863504 | 0.825711 | 0.810023 | 0.784172 | 0 | 0.029365 | 0.126197 | 23,812 | 523 | 233 | 45.529637 | 0.727303 | 0.140265 | 0 | 0.696296 | 0 | 0 | 0.118318 | 0.080108 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003704 | false | 0 | 0.022222 | 0 | 0.02963 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1a32c7cf858e7ec3d8b83fbe23815676d192ee60 | 221 | py | Python | geotrek/trekking/tests/__init__.py | camillemonchicourt/Geotrek | c33eac7e4479e3aa5b16608c0aa7665c4a72e9a1 | [
"BSD-2-Clause"
] | null | null | null | geotrek/trekking/tests/__init__.py | camillemonchicourt/Geotrek | c33eac7e4479e3aa5b16608c0aa7665c4a72e9a1 | [
"BSD-2-Clause"
] | null | null | null | geotrek/trekking/tests/__init__.py | camillemonchicourt/Geotrek | c33eac7e4479e3aa5b16608c0aa7665c4a72e9a1 | [
"BSD-2-Clause"
] | null | null | null | # pylint: disable=W0401
from .base import *
from .test_views import *
from .test_filters import *
from .test_translation import *
from .test_trek_relationship import *
from .test_models import *
from .test_admin import * | 24.555556 | 37 | 0.782805 | 31 | 221 | 5.354839 | 0.451613 | 0.361446 | 0.506024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021053 | 0.140271 | 221 | 9 | 38 | 24.555556 | 0.852632 | 0.095023 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
1a5e5fb217baebfcedf4e50cad55013f61e8299e | 38 | py | Python | __init__.py | Vladimir37/finam_stock_data | 51a1e1b8d21068d8ad0177166e14cb87b4f3f66e | [
"MIT"
] | 6 | 2016-10-18T04:17:43.000Z | 2022-02-21T18:48:52.000Z | __init__.py | Vladimir37/finam_stock_data | 51a1e1b8d21068d8ad0177166e14cb87b4f3f66e | [
"MIT"
] | null | null | null | __init__.py | Vladimir37/finam_stock_data | 51a1e1b8d21068d8ad0177166e14cb87b4f3f66e | [
"MIT"
] | 5 | 2017-01-04T14:26:52.000Z | 2019-04-01T07:33:07.000Z | from .finam_stock_data import get_data | 38 | 38 | 0.894737 | 7 | 38 | 4.428571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 38 | 1 | 38 | 38 | 0.885714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
1a6013ce91f944eb86511be5a0b350651a855a3e | 64 | py | Python | deep_learn/dataset/sampler/__init__.py | ImbesatRizvi/Accio | b0ad2d245f4f7c42d85b722db9fad435c0d06a99 | [
"Apache-2.0"
] | 2 | 2019-07-30T09:39:53.000Z | 2019-07-30T09:40:06.000Z | deep_learn/dataset/sampler/__init__.py | ImbesatRizvi/Accio | b0ad2d245f4f7c42d85b722db9fad435c0d06a99 | [
"Apache-2.0"
] | null | null | null | deep_learn/dataset/sampler/__init__.py | ImbesatRizvi/Accio | b0ad2d245f4f7c42d85b722db9fad435c0d06a99 | [
"Apache-2.0"
] | 2 | 2018-11-07T22:45:29.000Z | 2019-10-24T09:53:41.000Z | from .BinaryPairedWindowSampler import BinaryPairedWindowSampler | 64 | 64 | 0.9375 | 4 | 64 | 15 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046875 | 64 | 1 | 64 | 64 | 0.983607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
1a6160c3c3343d98680dd31a86c1e0535bddbf51 | 7,996 | py | Python | test/test_utilities.py | 2b-t/stereo-matching | 6c2e6944a2859763f4110f3e90e99f9267e97e78 | [
"MIT"
] | 1 | 2022-03-21T04:33:30.000Z | 2022-03-21T04:33:30.000Z | test/test_utilities.py | 2b-t/stereo-matching | 6c2e6944a2859763f4110f3e90e99f9267e97e78 | [
"MIT"
] | null | null | null | test/test_utilities.py | 2b-t/stereo-matching | 6c2e6944a2859763f4110f3e90e99f9267e97e78 | [
"MIT"
] | null | null | null | # Tobit Flatscher - github.com/2b-t (2022)
# @file utilities_test.py
# @brief Different testing routines for utility functions for accuracy calculation and file import and export
import numpy as np
from parameterized import parameterized
from typing import Tuple
import unittest
from src.utilities import AccX, IO
c... | 43.693989 | 133 | 0.728239 | 1,066 | 7,996 | 5.312383 | 0.124765 | 0.101713 | 0.02119 | 0.029666 | 0.86244 | 0.837365 | 0.830479 | 0.829419 | 0.823062 | 0.78492 | 0 | 0.016258 | 0.184592 | 7,996 | 183 | 134 | 43.693989 | 0.852301 | 0.336043 | 0 | 0.60177 | 0 | 0 | 0.022568 | 0 | 0 | 0 | 0 | 0.005464 | 0.132743 | 1 | 0.115044 | false | 0.017699 | 0.053097 | 0 | 0.309735 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
46c92af4cb0ca06bb4b92f96e9c5695f2ec78d14 | 76 | py | Python | utils.py | valmsmith39a/u-capstone-casting | 0476e167a2ef051abe36cba6e27e4788ee7571e3 | [
"MIT"
] | null | null | null | utils.py | valmsmith39a/u-capstone-casting | 0476e167a2ef051abe36cba6e27e4788ee7571e3 | [
"MIT"
] | null | null | null | utils.py | valmsmith39a/u-capstone-casting | 0476e167a2ef051abe36cba6e27e4788ee7571e3 | [
"MIT"
] | null | null | null | import json
def format(data):
return [item.format() for item in data]
| 12.666667 | 43 | 0.684211 | 12 | 76 | 4.333333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 76 | 5 | 44 | 15.2 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
20174ac43ede89aa030ccb34cb375f352725b586 | 66 | py | Python | python/import.py | mkanenobu/trashbox | c691dbf9a07991fd42304020c8aac58e1e4b9644 | [
"WTFPL"
] | 2 | 2020-05-11T13:43:27.000Z | 2020-07-31T11:57:19.000Z | python/import.py | mkanenobu/trashbox | c691dbf9a07991fd42304020c8aac58e1e4b9644 | [
"WTFPL"
] | 2 | 2020-09-27T02:35:38.000Z | 2021-03-08T08:33:02.000Z | python/import.py | mkanenobu/trashbox | c691dbf9a07991fd42304020c8aac58e1e4b9644 | [
"WTFPL"
] | 1 | 2020-05-11T13:44:04.000Z | 2020-05-11T13:44:04.000Z | #!/usr/bin/python3
# name_main.pyをモジュールとして読み込む
import name_main
| 11 | 27 | 0.787879 | 9 | 66 | 5.555556 | 0.777778 | 0.32 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 0.106061 | 66 | 5 | 28 | 13.2 | 0.830508 | 0.651515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
2044a3a29392441fe29e2517a107e3103b1538b5 | 25 | py | Python | actionrules/reduction/__init__.py | KIZI/actionrules | 227e021fa60ce40a1492322fe9bec35f0469e19c | [
"MIT"
] | 8 | 2019-10-11T09:49:20.000Z | 2022-03-21T23:23:55.000Z | actionrules/reduction/__init__.py | hhl60492/actionrules | cdd1f58b44278e033d2eed7c603938e29368c9fa | [
"MIT"
] | 15 | 2019-12-29T20:14:36.000Z | 2021-12-10T13:16:00.000Z | actionrules/reduction/__init__.py | KIZI/actionrules | 227e021fa60ce40a1492322fe9bec35f0469e19c | [
"MIT"
] | 7 | 2019-10-10T15:51:36.000Z | 2022-03-23T00:33:30.000Z | from .reduction import *
| 12.5 | 24 | 0.76 | 3 | 25 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 25 | 1 | 25 | 25 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
2049894227d714c669e2ce487707b8fdeb950613 | 28 | py | Python | grafana_client/__init__.py | peekjef72/grafana-client | 25470ae6a567c92ccccf9c8fcdbe9db71194a544 | [
"MIT"
] | 11 | 2022-02-07T03:37:40.000Z | 2022-03-31T17:39:02.000Z | grafana_client/__init__.py | peekjef72/grafana-client | 25470ae6a567c92ccccf9c8fcdbe9db71194a544 | [
"MIT"
] | 8 | 2022-02-02T02:39:12.000Z | 2022-03-16T22:15:01.000Z | grafana_client/__init__.py | peekjef72/grafana-client | 25470ae6a567c92ccccf9c8fcdbe9db71194a544 | [
"MIT"
] | 3 | 2022-02-05T17:09:35.000Z | 2022-02-11T09:35:54.000Z | from .api import GrafanaApi
| 14 | 27 | 0.821429 | 4 | 28 | 5.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 28 | 1 | 28 | 28 | 0.958333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
204d55c7599404e4839c555a1ce0b95b5bbac6ab | 136 | py | Python | app/controller/report/__init__.py | bhzunami/reanalytics | 2ea4396b81529057765d2f95cea8168cacf7f0d6 | [
"Apache-2.0"
] | null | null | null | app/controller/report/__init__.py | bhzunami/reanalytics | 2ea4396b81529057765d2f95cea8168cacf7f0d6 | [
"Apache-2.0"
] | null | null | null | app/controller/report/__init__.py | bhzunami/reanalytics | 2ea4396b81529057765d2f95cea8168cacf7f0d6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from flask import Blueprint
report = Blueprint('report', __name__)
from . import views | 17 | 38 | 0.691176 | 18 | 136 | 5 | 0.777778 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017391 | 0.154412 | 136 | 8 | 39 | 17 | 0.765217 | 0.316176 | 0 | 0 | 0 | 0 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
20501d5c85614c98f0bfe369ce264014188672ca | 29 | py | Python | polus-cell-nuclei-segmentation/src/dsb2018_topcoders/albu/src/pytorch_zoo/inplace_abn/models/__init__.py | nishaq503/polus-plugins-dl | 511689e82eb29a84761538144277d1be1af7aa44 | [
"MIT"
] | null | null | null | polus-cell-nuclei-segmentation/src/dsb2018_topcoders/albu/src/pytorch_zoo/inplace_abn/models/__init__.py | nishaq503/polus-plugins-dl | 511689e82eb29a84761538144277d1be1af7aa44 | [
"MIT"
] | 1 | 2021-09-09T23:22:16.000Z | 2021-09-09T23:22:16.000Z | polus-cell-nuclei-segmentation/src/dsb2018_topcoders/albu/src/pytorch_zoo/inplace_abn/models/__init__.py | nishaq503/polus-plugins-dl | 511689e82eb29a84761538144277d1be1af7aa44 | [
"MIT"
] | 4 | 2021-06-22T13:54:52.000Z | 2022-01-26T19:23:39.000Z | from .wider_resnet import *
| 14.5 | 28 | 0.758621 | 4 | 29 | 5.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 29 | 1 | 29 | 29 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
2054ad941170e51f0dc019b3102806130ecc66fd | 3,109 | py | Python | capiq/tests/unit/test_capiq_client_gdsp.py | vy-labs/capiq-python | 19ab17b3dc9354d0112f69f640a87cfd5d469047 | [
"MIT"
] | 29 | 2017-03-13T19:03:18.000Z | 2022-01-23T21:00:19.000Z | capiq/tests/unit/test_capiq_client_gdsp.py | vy-labs/capiq-python | 19ab17b3dc9354d0112f69f640a87cfd5d469047 | [
"MIT"
] | 13 | 2016-10-15T07:52:48.000Z | 2022-01-24T11:35:25.000Z | capiq/tests/unit/test_capiq_client_gdsp.py | vy-labs/capiq-python | 19ab17b3dc9354d0112f69f640a87cfd5d469047 | [
"MIT"
] | 20 | 2017-03-13T04:24:24.000Z | 2021-09-10T17:02:07.000Z | import unittest
from mock import mock
from capiq.capiq_client import CapIQClient
def mocked_gdsp_data_requests_post(*args, **kwargs):
class MockResponse:
def __init__(self, json_data, status_code):
self.json_data = json_data
self.status_code = status_code
def json(self):... | 36.151163 | 98 | 0.486008 | 274 | 3,109 | 5.259124 | 0.277372 | 0.044414 | 0.049965 | 0.030534 | 0.837613 | 0.830673 | 0.783484 | 0.783484 | 0.783484 | 0.783484 | 0 | 0.016932 | 0.37311 | 3,109 | 86 | 99 | 36.151163 | 0.722422 | 0 | 0 | 0.657143 | 0 | 0 | 0.190655 | 0.021828 | 0 | 0 | 0 | 0 | 0.028571 | 1 | 0.114286 | false | 0.028571 | 0.042857 | 0.028571 | 0.257143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
64504bd9c428b293a712da981c34aadb0ef817c1 | 85 | py | Python | test_work/tree_views/core/views.py | Netromnik/python | 630a9df63b1cade9af38de07bb9cd0c3b8694c93 | [
"Apache-2.0"
] | null | null | null | test_work/tree_views/core/views.py | Netromnik/python | 630a9df63b1cade9af38de07bb9cd0c3b8694c93 | [
"Apache-2.0"
] | null | null | null | test_work/tree_views/core/views.py | Netromnik/python | 630a9df63b1cade9af38de07bb9cd0c3b8694c93 | [
"Apache-2.0"
] | null | null | null | from django.views.generic import TemplateView
class Slide(TemplateView):
pass
| 12.142857 | 45 | 0.776471 | 10 | 85 | 6.6 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164706 | 85 | 6 | 46 | 14.166667 | 0.929577 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
645a5603b589906d8995d0677c70a7c59af8de5a | 1,036 | py | Python | tests/unit/test_std_stream_replacer.py | matthewgdv/miscutils | f605ded914e355214533b06e7a768272409769c0 | [
"MIT"
] | null | null | null | tests/unit/test_std_stream_replacer.py | matthewgdv/miscutils | f605ded914e355214533b06e7a768272409769c0 | [
"MIT"
] | null | null | null | tests/unit/test_std_stream_replacer.py | matthewgdv/miscutils | f605ded914e355214533b06e7a768272409769c0 | [
"MIT"
] | null | null | null | # import pytest
class TestBaseReplacerMixin:
def test_target(self): # synced
assert True
def test_write(self): # synced
assert True
def test_flush(self): # synced
assert True
def test_close(self): # synced
assert True
class TestStdOutReplacerMixin:
def test... | 16.983607 | 37 | 0.65251 | 111 | 1,036 | 5.900901 | 0.207207 | 0.138931 | 0.317557 | 0.396947 | 0.671756 | 0.664122 | 0.664122 | 0.59542 | 0.479389 | 0.479389 | 0 | 0 | 0.28861 | 1,036 | 60 | 38 | 17.266667 | 0.888738 | 0.100386 | 0 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.361111 | 1 | 0.361111 | false | 0.055556 | 0 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
649d4a739de60a36d880cb409f0614c96f63248f | 26 | py | Python | accountifie/common/apiv1/__init__.py | imcallister/accountifie | 094834c9d632e0353e3baf8d924eeb10cba0add4 | [
"MIT",
"Unlicense"
] | 4 | 2017-06-02T08:48:48.000Z | 2021-11-21T23:57:15.000Z | accountifie/common/apiv1/__init__.py | imcallister/accountifie | 094834c9d632e0353e3baf8d924eeb10cba0add4 | [
"MIT",
"Unlicense"
] | 3 | 2020-06-05T16:55:42.000Z | 2021-06-10T17:43:12.000Z | accountifie/common/apiv1/__init__.py | imcallister/accountifie | 094834c9d632e0353e3baf8d924eeb10cba0add4 | [
"MIT",
"Unlicense"
] | 4 | 2015-12-15T14:27:51.000Z | 2017-04-21T21:42:27.000Z | from .server_info import * | 26 | 26 | 0.807692 | 4 | 26 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 26 | 1 | 26 | 26 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
64c500a680157947850aad8d4222911d4d998581 | 13,111 | py | Python | task_manager.py | technetbytes/Nested-Object-Serialization | 86dc7812c2002010247af9f4edabaf29c78c3be9 | [
"MIT"
] | null | null | null | task_manager.py | technetbytes/Nested-Object-Serialization | 86dc7812c2002010247af9f4edabaf29c78c3be9 | [
"MIT"
] | null | null | null | task_manager.py | technetbytes/Nested-Object-Serialization | 86dc7812c2002010247af9f4edabaf29c78c3be9 | [
"MIT"
] | null | null | null | from task import Task
from tasks import Tasks
from status import Status
import redis
import datetime
import json
from json_extension import check_update_list
from converter import datetime_converter
class TaskManager:
_redis = None
_task_management_key = None
def __redis():
server = "localhost"
... | 44.74744 | 114 | 0.617039 | 1,580 | 13,111 | 4.793038 | 0.071519 | 0.054932 | 0.068665 | 0.096131 | 0.947577 | 0.922488 | 0.922488 | 0.897663 | 0.897663 | 0.897663 | 0 | 0.001195 | 0.297765 | 13,111 | 292 | 115 | 44.900685 | 0.821332 | 0.583098 | 0 | 0.378641 | 0 | 0 | 0.026301 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097087 | false | 0 | 0.07767 | 0 | 0.271845 | 0.009709 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
b3833539bfa8d99aaa58dc88e1bed22ac78ca1b8 | 231 | py | Python | models/modelzoo/__init__.py | naivelamb/kaggle-cloud-organization | 08750c89d56235eee68c8827afb075610e53569d | [
"BSD-2-Clause"
] | 30 | 2019-12-23T01:38:23.000Z | 2021-06-29T19:40:39.000Z | models/modelzoo/__init__.py | naivelamb/kaggle-cloud-organization | 08750c89d56235eee68c8827afb075610e53569d | [
"BSD-2-Clause"
] | 8 | 2020-03-24T17:58:50.000Z | 2022-01-13T02:00:44.000Z | models/modelzoo/__init__.py | naivelamb/kaggle-cloud-organization | 08750c89d56235eee68c8827afb075610e53569d | [
"BSD-2-Clause"
] | 6 | 2019-12-23T01:38:32.000Z | 2020-10-22T09:06:07.000Z | from .dpn import *
from .inceptionV4 import *
from .inceptionresnetv2 import *
from .resnet import *
from .senet import *
from .xception import *
from .senet2 import seresnext26_32x4d
from .efficientNet import EfficientNet
| 25.666667 | 39 | 0.766234 | 27 | 231 | 6.518519 | 0.444444 | 0.340909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041885 | 0.17316 | 231 | 8 | 40 | 28.875 | 0.879581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
b38e6344faa8d39059e97bf8ad200ef2ff0477df | 1,626 | py | Python | trdg/labels_csv.py | BismarckBamfo/ocr-paper | 56a60486fb25613fc18ac984c6ca22a4475b3c4b | [
"MIT"
] | 1 | 2022-01-21T06:31:16.000Z | 2022-01-21T06:31:16.000Z | trdg/labels_csv.py | BismarckBamfo/ocr-paper | 56a60486fb25613fc18ac984c6ca22a4475b3c4b | [
"MIT"
] | null | null | null | trdg/labels_csv.py | BismarckBamfo/ocr-paper | 56a60486fb25613fc18ac984c6ca22a4475b3c4b | [
"MIT"
] | 1 | 2022-01-18T21:54:04.000Z | 2022-01-18T21:54:04.000Z | import pandas as pd
from fire import Fire
def make_train_csv(path):
filename = []
words = []
with open(f'{path}/train/labels.txt', 'r') as f:
train_text = f.readlines()
for idx, x in enumerate(train_text):
split_line = x.split('\t')
filename.append(split_line[0])
words.a... | 29.035714 | 81 | 0.613776 | 238 | 1,626 | 4.033613 | 0.218487 | 0.121875 | 0.09375 | 0.0625 | 0.845833 | 0.845833 | 0.845833 | 0.845833 | 0.742708 | 0.704167 | 0 | 0.006912 | 0.199262 | 1,626 | 55 | 82 | 29.563636 | 0.730415 | 0 | 0 | 0.585366 | 0 | 0 | 0.130381 | 0.081181 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0 | 0.04878 | 0 | 0.146341 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
b3ae6dfb9d2e837a5f53b26250dfbac00873f765 | 105 | py | Python | leapp/cli/__main__.py | dhodovsk/leapp | bcd6580a19dabd132b3da8bcf2ed61fa8864ef18 | [
"Apache-2.0"
] | 29 | 2019-05-29T05:34:52.000Z | 2022-03-14T19:09:34.000Z | leapp/cli/__main__.py | dhodovsk/leapp | bcd6580a19dabd132b3da8bcf2ed61fa8864ef18 | [
"Apache-2.0"
] | 373 | 2018-11-21T11:41:49.000Z | 2022-03-31T11:40:56.000Z | leapp/cli/__main__.py | dhodovsk/leapp | bcd6580a19dabd132b3da8bcf2ed61fa8864ef18 | [
"Apache-2.0"
] | 27 | 2018-11-26T17:14:15.000Z | 2022-03-10T13:30:50.000Z |
from leapp.cli import main
import leapp.utils.i18n # noqa: F401; pylint: disable=unused-import
main()
| 17.5 | 68 | 0.752381 | 16 | 105 | 4.9375 | 0.75 | 0.253165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.142857 | 105 | 5 | 69 | 21 | 0.822222 | 0.390476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
b3e37e88982699bfc3eed5ddb39ee2cb55eef201 | 163 | py | Python | frappe/patches/v12_0/copy_to_parent_for_tags.py | ektai/frappe3 | 44aa948b4d5a0d729eacfb3dabdc9c8894ae1799 | [
"MIT"
] | null | null | null | frappe/patches/v12_0/copy_to_parent_for_tags.py | ektai/frappe3 | 44aa948b4d5a0d729eacfb3dabdc9c8894ae1799 | [
"MIT"
] | null | null | null | frappe/patches/v12_0/copy_to_parent_for_tags.py | ektai/frappe3 | 44aa948b4d5a0d729eacfb3dabdc9c8894ae1799 | [
"MIT"
] | null | null | null | import frappe
def execute():
frappe.db.sql("UPDATE `tabTag Link` SET parenttype=document_type")
frappe.db.sql("UPDATE `tabTag Link` SET parent=document_name")
| 23.285714 | 67 | 0.760736 | 24 | 163 | 5.083333 | 0.625 | 0.131148 | 0.180328 | 0.278689 | 0.491803 | 0.491803 | 0.491803 | 0 | 0 | 0 | 0 | 0 | 0.110429 | 163 | 6 | 68 | 27.166667 | 0.841379 | 0 | 0 | 0 | 0 | 0 | 0.576687 | 0.147239 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.25 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
3736f996efbaf73fa665ceb73ccaf2cfc50c07fa | 133 | py | Python | webpages/admin.py | 18praneeth/udayagiri-scl-maxo | 67ac939265d7837e39329162d7dd935a52130978 | [
"MIT"
] | 8 | 2021-01-01T17:04:45.000Z | 2021-06-24T05:53:13.000Z | webpages/admin.py | 18praneeth/udayagiri-scl-maxo | 67ac939265d7837e39329162d7dd935a52130978 | [
"MIT"
] | 11 | 2021-01-01T15:04:04.000Z | 2021-01-10T07:47:12.000Z | webpages/admin.py | 18praneeth/udayagiri-scl-maxo | 67ac939265d7837e39329162d7dd935a52130978 | [
"MIT"
] | 7 | 2020-12-14T12:44:17.000Z | 2021-01-15T14:29:13.000Z | from django.contrib import admin
from .models import Contact
@admin.register(Contact)
class ContactAdmin(admin.ModelAdmin):
pass | 22.166667 | 37 | 0.804511 | 17 | 133 | 6.294118 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120301 | 133 | 6 | 38 | 22.166667 | 0.91453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
3750e70df091403cf10f1666d19111c3cde5abaf | 141 | py | Python | blog/admin.py | MysteryCoder456/Blog-App | 56d28c1b93c113487a36df265ecc677e426b1c62 | [
"MIT"
] | 3 | 2020-06-17T07:35:17.000Z | 2020-06-17T07:45:15.000Z | blog/admin.py | MysteryCoder456/Blog-App | 56d28c1b93c113487a36df265ecc677e426b1c62 | [
"MIT"
] | null | null | null | blog/admin.py | MysteryCoder456/Blog-App | 56d28c1b93c113487a36df265ecc677e426b1c62 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import *
admin.site.register(BlogList)
admin.site.register(Blog)
admin.site.register(Comment)
| 20.142857 | 32 | 0.808511 | 20 | 141 | 5.7 | 0.55 | 0.236842 | 0.447368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 141 | 6 | 33 | 23.5 | 0.883721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
3775b2330eebd91d9b1fa6ec7d79e297b1c8cc13 | 10,559 | py | Python | tests/unittests/commands/test_cmd_cs_beacon.py | f5devcentral/f5-cli | 22a5c6902e3f78a969a86116a73fcad817f220be | [
"Apache-2.0"
] | 13 | 2020-03-06T22:35:47.000Z | 2021-06-28T23:08:46.000Z | tests/unittests/commands/test_cmd_cs_beacon.py | f5devcentral/f5-cli | 22a5c6902e3f78a969a86116a73fcad817f220be | [
"Apache-2.0"
] | 19 | 2020-03-11T15:14:06.000Z | 2022-01-26T23:56:56.000Z | tests/unittests/commands/test_cmd_cs_beacon.py | f5devcentral/f5-cli | 22a5c6902e3f78a969a86116a73fcad817f220be | [
"Apache-2.0"
] | 1 | 2020-03-24T13:29:30.000Z | 2020-03-24T13:29:30.000Z | """ Test Beacon command """
import json
from f5sdk.cs import ManagementClient
from f5sdk.cs.beacon.insights import InsightsClient
from f5sdk.cs.beacon.declare import DeclareClient
from f5sdk.cs.beacon.token import TokenClient
from f5cli.config import AuthConfigurationClient
from f5cli.commands.cmd_cs import cli
fro... | 32.389571 | 93 | 0.623733 | 1,162 | 10,559 | 5.484509 | 0.101549 | 0.050839 | 0.072493 | 0.05335 | 0.817511 | 0.801977 | 0.75459 | 0.725404 | 0.725404 | 0.710341 | 0 | 0.002342 | 0.272185 | 10,559 | 325 | 94 | 32.489231 | 0.826936 | 0.235912 | 0 | 0.543624 | 0 | 0 | 0.177446 | 0.058235 | 0 | 0 | 0 | 0 | 0.073826 | 1 | 0.100671 | false | 0.006711 | 0.053691 | 0 | 0.174497 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
37afe5413eb087c8018083e5be2bc3959be0c131 | 33 | py | Python | util/__init__.py | Str4thus/BraiNN | 3f015dbbac4011798a7557cd45329854b1015804 | [
"MIT"
] | null | null | null | util/__init__.py | Str4thus/BraiNN | 3f015dbbac4011798a7557cd45329854b1015804 | [
"MIT"
] | null | null | null | util/__init__.py | Str4thus/BraiNN | 3f015dbbac4011798a7557cd45329854b1015804 | [
"MIT"
] | null | null | null | from .managers import HtmlManager | 33 | 33 | 0.878788 | 4 | 33 | 7.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 33 | 1 | 33 | 33 | 0.966667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
80652051dadf9734681491e7eab4c53d2d52bd4d | 4,526 | py | Python | cottonformation/res/ram.py | gitter-badger/cottonformation-project | 354f1dce7ea106e209af2d5d818b6033a27c193c | [
"BSD-2-Clause"
] | 5 | 2021-07-22T03:45:59.000Z | 2021-12-17T21:07:14.000Z | cottonformation/res/ram.py | gitter-badger/cottonformation-project | 354f1dce7ea106e209af2d5d818b6033a27c193c | [
"BSD-2-Clause"
] | 1 | 2021-06-25T18:01:31.000Z | 2021-06-25T18:01:31.000Z | cottonformation/res/ram.py | gitter-badger/cottonformation-project | 354f1dce7ea106e209af2d5d818b6033a27c193c | [
"BSD-2-Clause"
] | 2 | 2021-06-27T03:08:21.000Z | 2021-06-28T22:15:51.000Z | # -*- coding: utf-8 -*-
"""
This module
"""
import attr
import typing
from ..core.model import (
Property, Resource, Tag, GetAtt, TypeHint, TypeCheck,
)
from ..core.constant import AttrMeta
#--- Property declaration ---
#--- Resource declaration ---
@attr.s
class ResourceShare(Resource):
"""
AWS Obje... | 54.53012 | 204 | 0.752541 | 527 | 4,526 | 6.354839 | 0.134725 | 0.138549 | 0.062705 | 0.120932 | 0.834279 | 0.834279 | 0.815169 | 0.815169 | 0.815169 | 0.804718 | 0 | 0.000247 | 0.107159 | 4,526 | 82 | 205 | 55.195122 | 0.828508 | 0.296509 | 0 | 0.209302 | 0 | 0 | 0.04106 | 0.020309 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.093023 | 0 | 0.325581 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
80b536638811e8b11941942b46f25f99ef6bdac3 | 130 | py | Python | transcrypt/development/automated_tests/relimport/rimport.py | kochelmonster/Transcrypt | ab150cdea872e945950d53f1d276ce76e42619ce | [
"Apache-2.0"
] | null | null | null | transcrypt/development/automated_tests/relimport/rimport.py | kochelmonster/Transcrypt | ab150cdea872e945950d53f1d276ce76e42619ce | [
"Apache-2.0"
] | null | null | null | transcrypt/development/automated_tests/relimport/rimport.py | kochelmonster/Transcrypt | ab150cdea872e945950d53f1d276ce76e42619ce | [
"Apache-2.0"
] | null | null | null | import tpackage
def run(test):
test.check(type(tpackage.peer2.func).__name__)
test.check(type(tpackage.func1).__name__)
| 18.571429 | 50 | 0.738462 | 18 | 130 | 4.888889 | 0.611111 | 0.204545 | 0.295455 | 0.477273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.123077 | 130 | 6 | 51 | 21.666667 | 0.754386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
03b1bcdadbbbc5fe5dc1e9fe8c2869aa9ba48609 | 260 | py | Python | authlib/django/client/__init__.py | bobh66/authlib | e3e18da74d689b61a8dc8db46775ff77a57c6c2a | [
"BSD-3-Clause"
] | 1 | 2021-12-09T07:11:05.000Z | 2021-12-09T07:11:05.000Z | authlib/django/client/__init__.py | bobh66/authlib | e3e18da74d689b61a8dc8db46775ff77a57c6c2a | [
"BSD-3-Clause"
] | 4 | 2021-03-19T08:17:59.000Z | 2021-06-10T19:34:36.000Z | authlib/django/client/__init__.py | bobh66/authlib | e3e18da74d689b61a8dc8db46775ff77a57c6c2a | [
"BSD-3-Clause"
] | 2 | 2021-05-24T20:34:12.000Z | 2022-03-26T07:46:17.000Z | # flake8: noqa
from authlib.deprecate import deprecate
from authlib.integrations.django_client import OAuth, DjangoRemoteApp as RemoteApp
deprecate('Deprecate "authlib.django.client", USE "authlib.integrations.django_client" instead.', '1.0', 'Jeclj', 'rn')
| 37.142857 | 119 | 0.792308 | 32 | 260 | 6.375 | 0.59375 | 0.176471 | 0.245098 | 0.303922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012712 | 0.092308 | 260 | 6 | 120 | 43.333333 | 0.851695 | 0.046154 | 0 | 0 | 0 | 0 | 0.382114 | 0.243902 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
03ccf27a360ba3b6f27c457158ea0174f834eb17 | 20 | py | Python | constant/__init__.py | Naopil/EldenBot | 2b6f4e98dcfdf3720a6c4add4f694d0e15cd575a | [
"MIT"
] | null | null | null | constant/__init__.py | Naopil/EldenBot | 2b6f4e98dcfdf3720a6c4add4f694d0e15cd575a | [
"MIT"
] | 1 | 2019-11-16T19:01:01.000Z | 2019-11-16T19:01:01.000Z | constant/__init__.py | Naopil/EldenBot | 2b6f4e98dcfdf3720a6c4add4f694d0e15cd575a | [
"MIT"
] | 4 | 2018-07-22T23:13:26.000Z | 2022-03-29T17:06:50.000Z | from .rgapi import * | 20 | 20 | 0.75 | 3 | 20 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 20 | 1 | 20 | 20 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
2076ab8123a0a4df3d62bd7bbcb3e7948cc3d940 | 27 | py | Python | src/euler_python_package/euler_python/medium/p374.py | wilsonify/euler | 5214b776175e6d76a7c6d8915d0e062d189d9b79 | [
"MIT"
] | null | null | null | src/euler_python_package/euler_python/medium/p374.py | wilsonify/euler | 5214b776175e6d76a7c6d8915d0e062d189d9b79 | [
"MIT"
] | null | null | null | src/euler_python_package/euler_python/medium/p374.py | wilsonify/euler | 5214b776175e6d76a7c6d8915d0e062d189d9b79 | [
"MIT"
] | null | null | null | def problem374():
pass
| 9 | 17 | 0.62963 | 3 | 27 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 0.259259 | 27 | 2 | 18 | 13.5 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
207911daed740dde0bdd5ae6e05869fc91703e7a | 6,845 | py | Python | test/test_model.py | vkazei/deepwave | 032bb06328673f4f824fbca20f09ba7bb277c8d1 | [
"MIT"
] | 73 | 2018-07-16T13:57:09.000Z | 2022-03-24T04:08:27.000Z | test/test_model.py | vkazei/deepwave | 032bb06328673f4f824fbca20f09ba7bb277c8d1 | [
"MIT"
] | 41 | 2018-07-14T15:44:13.000Z | 2022-03-25T09:35:08.000Z | test/test_model.py | vkazei/deepwave | 032bb06328673f4f824fbca20f09ba7bb277c8d1 | [
"MIT"
] | 20 | 2018-12-02T14:42:59.000Z | 2022-03-21T15:52:52.000Z | import torch
import pytest
import deepwave.base.model
def test_init_scalar():
"""Init model with scalars"""
properties = {'a': torch.ones(3, 4),
'b': torch.zeros(3, 4)}
dx = 5.0
model = deepwave.base.model.Model(properties, dx, pad_width=1, origin=2.0)
assert model.properties == ... | 38.027778 | 79 | 0.559825 | 960 | 6,845 | 3.911458 | 0.088542 | 0.111318 | 0.063382 | 0.087883 | 0.810652 | 0.773901 | 0.76032 | 0.754194 | 0.718775 | 0.71265 | 0 | 0.057448 | 0.262527 | 6,845 | 179 | 80 | 38.240223 | 0.68641 | 0.064865 | 0 | 0.589552 | 0 | 0 | 0.006008 | 0 | 0 | 0 | 0 | 0 | 0.283582 | 1 | 0.11194 | false | 0 | 0.022388 | 0 | 0.134328 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
207e3bec45ee694017b38934e74b53df272205d2 | 91 | py | Python | code/message/image_to_text_message.py | ITE-5th/skill-socket | 3255a07369568283be844ca1551975b1e73a23ce | [
"MIT"
] | 1 | 2019-07-08T09:45:02.000Z | 2019-07-08T09:45:02.000Z | code/message/image_to_text_message.py | ITE-5th/skill-image-caption | 1a77d27b4fbadd89a6390e8707d4a7975b1edb8d | [
"MIT"
] | null | null | null | code/message/image_to_text_message.py | ITE-5th/skill-image-caption | 1a77d27b4fbadd89a6390e8707d4a7975b1edb8d | [
"MIT"
] | null | null | null | from .image_message import ImageMessage
class ImageToTextMessage(ImageMessage):
pass
| 15.166667 | 39 | 0.813187 | 9 | 91 | 8.111111 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 91 | 5 | 40 | 18.2 | 0.935897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
20ccf8de54dd6dfa4114b226ebab81963bbf2e81 | 132 | py | Python | src/Engine/Trajectory/__init__.py | MiguelReuter/Volley-ball-game | 67d830cc528f3540b236d8191f582adb1827dbde | [
"MIT"
] | 4 | 2019-04-15T20:39:29.000Z | 2022-02-04T10:51:37.000Z | src/Engine/Trajectory/__init__.py | MiguelReuter/Volley-ball-game | 67d830cc528f3540b236d8191f582adb1827dbde | [
"MIT"
] | null | null | null | src/Engine/Trajectory/__init__.py | MiguelReuter/Volley-ball-game | 67d830cc528f3540b236d8191f582adb1827dbde | [
"MIT"
] | 1 | 2019-11-30T01:05:29.000Z | 2019-11-30T01:05:29.000Z | # encoding : UTF-8
from .trajectory_solver import *
from .thrower_manager import ThrowerManager
from .trajectory import Trajectory
| 22 | 43 | 0.818182 | 16 | 132 | 6.625 | 0.625 | 0.264151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008696 | 0.128788 | 132 | 5 | 44 | 26.4 | 0.913043 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4597e474798d4f6819a4fb3d0ebf5f2e86ec6c57 | 200,304 | py | Python | python/examples/kaitai/icc_4.py | carsonharmon/binaryninja-api | f7ad332ad69d370aa29cd54f4c7307da4d9173e2 | [
"MIT"
] | 20 | 2019-09-28T01:44:58.000Z | 2022-03-09T08:35:56.000Z | python/examples/kaitai/icc_4.py | carsonharmon/binaryninja-api | f7ad332ad69d370aa29cd54f4c7307da4d9173e2 | [
"MIT"
] | 4 | 2020-12-23T01:51:26.000Z | 2021-12-15T14:41:50.000Z | python/examples/kaitai/icc_4.py | carsonharmon/binaryninja-api | f7ad332ad69d370aa29cd54f4c7307da4d9173e2 | [
"MIT"
] | 4 | 2020-02-20T18:47:27.000Z | 2021-06-17T01:24:09.000Z | # This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
from pkg_resources import parse_version
from .kaitaistruct import __version__ as ks_version, KaitaiStruct, KaitaiStream, BytesIO
import collections
from enum import Enum
if parse_version(ks_version) < parse_version('0.... | 59.437389 | 338 | 0.568151 | 21,327 | 200,304 | 4.889108 | 0.058424 | 0.075784 | 0.060075 | 0.064582 | 0.817742 | 0.788175 | 0.748576 | 0.710693 | 0.683495 | 0.665695 | 0 | 0.036423 | 0.322065 | 200,304 | 3,369 | 339 | 59.455031 | 0.731437 | 0.000479 | 0 | 0.591122 | 1 | 0 | 0.087606 | 0.028976 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070761 | false | 0 | 0.001335 | 0 | 0.115487 | 0.004339 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
45d9f20c37e133fdde36fa4f1ffbcbd4ce272eee | 9,623 | py | Python | src/marion/marion/tests/test_views.py | OmenApps/marion | f501674cafbd91f0bbad7454e4dcf3527cf4445e | [
"MIT"
] | 7 | 2021-04-06T20:33:31.000Z | 2021-09-30T23:29:24.000Z | src/marion/marion/tests/test_views.py | OmenApps/marion | f501674cafbd91f0bbad7454e4dcf3527cf4445e | [
"MIT"
] | 23 | 2020-09-09T15:01:50.000Z | 2022-01-03T08:58:36.000Z | src/marion/marion/tests/test_views.py | OmenApps/marion | f501674cafbd91f0bbad7454e4dcf3527cf4445e | [
"MIT"
] | 2 | 2020-12-14T10:07:07.000Z | 2021-06-29T00:20:43.000Z | """Tests for the marion application views"""
import json
import tempfile
from pathlib import Path
from django.urls import reverse
import pytest
from pytest_django import asserts as django_assertions
from rest_framework import exceptions as drf_exceptions
from rest_framework import status
from rest_framework.test imp... | 37.589844 | 88 | 0.70903 | 1,146 | 9,623 | 5.796684 | 0.156195 | 0.040042 | 0.053741 | 0.057805 | 0.815294 | 0.78308 | 0.742436 | 0.736866 | 0.710071 | 0.710071 | 0 | 0.021322 | 0.176348 | 9,623 | 255 | 89 | 37.737255 | 0.816805 | 0.108698 | 0 | 0.566474 | 0 | 0 | 0.190617 | 0.053401 | 0 | 0 | 0 | 0 | 0.352601 | 1 | 0.063584 | false | 0 | 0.063584 | 0 | 0.16185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
afdb8993a89b7a69ee6383729d8cc25851f08233 | 28 | py | Python | services/__init__.py | S4CH/discord-bot | 9cea7e62da17199b1e8d8bb4c67f62e71fbc4539 | [
"Apache-2.0"
] | 1 | 2021-02-18T03:39:15.000Z | 2021-02-18T03:39:15.000Z | services/__init__.py | S4CH/discord-bot | 9cea7e62da17199b1e8d8bb4c67f62e71fbc4539 | [
"Apache-2.0"
] | null | null | null | services/__init__.py | S4CH/discord-bot | 9cea7e62da17199b1e8d8bb4c67f62e71fbc4539 | [
"Apache-2.0"
] | null | null | null | from .group import GroupMeet | 28 | 28 | 0.857143 | 4 | 28 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 28 | 1 | 28 | 28 | 0.96 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
aff4ae7bfda34662882c07b022867d50e133a037 | 44 | py | Python | creational/monostate/logic/__init__.py | Kozak24/Patterns | 351d5c11f7c64ce5d58db37b6715fc8f7d31945a | [
"MIT"
] | null | null | null | creational/monostate/logic/__init__.py | Kozak24/Patterns | 351d5c11f7c64ce5d58db37b6715fc8f7d31945a | [
"MIT"
] | null | null | null | creational/monostate/logic/__init__.py | Kozak24/Patterns | 351d5c11f7c64ce5d58db37b6715fc8f7d31945a | [
"MIT"
] | null | null | null | from .character import Character, Archetype
| 22 | 43 | 0.840909 | 5 | 44 | 7.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113636 | 44 | 1 | 44 | 44 | 0.948718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
2fef1c29a49d52b89d4976195a425ff3ee623553 | 2,940 | py | Python | dragonite/constants.py | neuroticnerd/dragoncon-bot | 44c4d96743cf11ea0e8eaa567100e42afa4de565 | [
"Apache-2.0"
] | 2 | 2015-12-18T05:28:02.000Z | 2018-05-24T04:18:26.000Z | dragonite/constants.py | neuroticnerd/dragoncon-bot | 44c4d96743cf11ea0e8eaa567100e42afa4de565 | [
"Apache-2.0"
] | 11 | 2016-08-27T22:05:18.000Z | 2021-12-13T19:41:44.000Z | dragonite/constants.py | neuroticnerd/dragoncon-bot | 44c4d96743cf11ea0e8eaa567100e42afa4de565 | [
"Apache-2.0"
] | null | null | null | # -*- encoding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from __future__ import division, print_function
DRAGONITE_ASCII = (
" ..\n"
" ''\n"
" .;' .. .';.\n"
" ... | 61.25 | 90 | 0.065306 | 66 | 2,940 | 2.636364 | 0.257576 | 0.37931 | 0.517241 | 0.62069 | 0.356322 | 0.356322 | 0.356322 | 0.356322 | 0.356322 | 0.356322 | 0 | 0.000939 | 0.637755 | 2,940 | 47 | 91 | 62.553191 | 0.162441 | 0.018027 | 0 | 0 | 0 | 0 | 0.851337 | 0.008336 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.044444 | 0 | 0.044444 | 0.022222 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 6 |
6410a9c0c1f943bb018ea14084aa6f19f0acf484 | 5,910 | py | Python | python-code/ml/ml.py | Edward-Son/yhack2017 | 80e85820dcd9580278f20585eef97e311381dad6 | [
"MIT"
] | null | null | null | python-code/ml/ml.py | Edward-Son/yhack2017 | 80e85820dcd9580278f20585eef97e311381dad6 | [
"MIT"
] | null | null | null | python-code/ml/ml.py | Edward-Son/yhack2017 | 80e85820dcd9580278f20585eef97e311381dad6 | [
"MIT"
] | 1 | 2020-06-16T21:37:20.000Z | 2020-06-16T21:37:20.000Z | import xml.etree.ElementTree as ET
import numpy as np
from sklearn.externals import joblib
from sklearn import svm
#get the number code for the people / get the samples
indices = []
i = 0
with open("./found-bad-people/1-common-people") as f:
for line in f:
indices.append(int(line.strip('\n').split(' ')[-1]))
... | 19.966216 | 104 | 0.670558 | 936 | 5,910 | 4.195513 | 0.163462 | 0.019099 | 0.030558 | 0.053476 | 0.799593 | 0.787369 | 0.764197 | 0.745862 | 0.730074 | 0.730074 | 0 | 0.032629 | 0.191032 | 5,910 | 295 | 105 | 20.033898 | 0.788747 | 0.25736 | 0 | 0.801105 | 0 | 0 | 0.138876 | 0.06679 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022099 | 0 | 0.022099 | 0.005525 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
6426ae79342b2e8f1461de9a701298078c413258 | 35 | py | Python | dask/dataframe/io/orc/__init__.py | Juanlu001/dask | ba29ba377ae71e5a90fa5ef5198c7d317b45c06a | [
"BSD-3-Clause"
] | 9,684 | 2016-02-12T16:09:21.000Z | 2022-03-31T19:38:26.000Z | dask/dataframe/io/orc/__init__.py | Juanlu001/dask | ba29ba377ae71e5a90fa5ef5198c7d317b45c06a | [
"BSD-3-Clause"
] | 7,059 | 2016-02-11T18:32:45.000Z | 2022-03-31T22:12:40.000Z | dask/dataframe/io/orc/__init__.py | Juanlu001/dask | ba29ba377ae71e5a90fa5ef5198c7d317b45c06a | [
"BSD-3-Clause"
] | 1,794 | 2016-02-13T23:28:39.000Z | 2022-03-30T14:33:19.000Z | from .core import read_orc, to_orc
| 17.5 | 34 | 0.8 | 7 | 35 | 3.714286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 35 | 1 | 35 | 35 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ff91c2830b5a723ae8ceaa113b2c1146b19c95f7 | 65 | py | Python | inheritance/zoo/reptile.py | ivan-yosifov88/python_oop_june_2021 | 7ae6126065abbcce7ce97c86d1150ae307360249 | [
"MIT"
] | 1 | 2021-08-03T19:14:24.000Z | 2021-08-03T19:14:24.000Z | inheritance/zoo/reptile.py | ivan-yosifov88/python_oop_june_2021 | 7ae6126065abbcce7ce97c86d1150ae307360249 | [
"MIT"
] | null | null | null | inheritance/zoo/reptile.py | ivan-yosifov88/python_oop_june_2021 | 7ae6126065abbcce7ce97c86d1150ae307360249 | [
"MIT"
] | null | null | null | from zoo.animal import Animal
class Reptile(Animal):
pass
| 9.285714 | 29 | 0.723077 | 9 | 65 | 5.222222 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215385 | 65 | 6 | 30 | 10.833333 | 0.921569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
ff9c433f186bc1eb384d68ef84ff4bba8d0574a0 | 9,934 | py | Python | openarticlegauge/plugins/oup.py | CottageLabs/OpenArticleGauge | 58d29b4209a7b59041d61326ffe1cf03f98f3cff | [
"BSD-3-Clause"
] | 1 | 2016-04-07T18:29:27.000Z | 2016-04-07T18:29:27.000Z | openarticlegauge/plugins/oup.py | CottageLabs/OpenArticleGauge | 58d29b4209a7b59041d61326ffe1cf03f98f3cff | [
"BSD-3-Clause"
] | 11 | 2015-01-06T15:53:09.000Z | 2022-03-01T01:46:14.000Z | openarticlegauge/plugins/oup.py | CottageLabs/OpenArticleGauge | 58d29b4209a7b59041d61326ffe1cf03f98f3cff | [
"BSD-3-Clause"
] | null | null | null | from openarticlegauge import plugin
import re
class OUPPlugin(plugin.Plugin):
_short_name = __name__.split('.')[-1]
__version__='0.1' # consider incrementing or at least adding a minor version
# e.g. "0.1.1" if you change this plugin
__desc__ = "Handles articles from the Oxford Universi... | 66.671141 | 182 | 0.615663 | 1,202 | 9,934 | 5.048253 | 0.152246 | 0.010877 | 0.079763 | 0.108767 | 0.756922 | 0.750824 | 0.739618 | 0.739618 | 0.739618 | 0.739618 | 0 | 0.015421 | 0.281961 | 9,934 | 148 | 183 | 67.121622 | 0.835273 | 0.248641 | 0 | 0.441176 | 0 | 0.205882 | 0.564851 | 0.006247 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04902 | false | 0 | 0.019608 | 0.009804 | 0.196078 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
440f965af7b346c54b4fbe18ee8e15ee65bf6d0a | 223 | py | Python | polyaxon_client/tracking/__init__.py | yu-iskw/polyaxon-client | af72f30af218a8a027fea1ad966b543c900e0444 | [
"MIT"
] | null | null | null | polyaxon_client/tracking/__init__.py | yu-iskw/polyaxon-client | af72f30af218a8a027fea1ad966b543c900e0444 | [
"MIT"
] | null | null | null | polyaxon_client/tracking/__init__.py | yu-iskw/polyaxon-client | af72f30af218a8a027fea1ad966b543c900e0444 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from polyaxon_client.tracking.experiment import Experiment
from polyaxon_client.tracking.group import Group
from polyaxon_client.tracking.job import Job
from polyaxon_client.tracking.paths import *
| 31.857143 | 58 | 0.820628 | 30 | 223 | 5.966667 | 0.4 | 0.268156 | 0.402235 | 0.581006 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004975 | 0.098655 | 223 | 6 | 59 | 37.166667 | 0.885572 | 0.09417 | 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 | 0 | 0 | 0 | 6 |
441bb897dd52545f78cb38db6b09f33c7eaf7a91 | 14 | py | Python | pypackage_scripts/__init__.py | marisalim/stonybrook_juypterworkflow | 41a985be595c76e6f1257cd65c097f654a3c779e | [
"MIT"
] | null | null | null | pypackage_scripts/__init__.py | marisalim/stonybrook_juypterworkflow | 41a985be595c76e6f1257cd65c097f654a3c779e | [
"MIT"
] | 1 | 2018-10-09T17:59:53.000Z | 2018-10-09T17:59:53.000Z | pypackage_scripts/__init__.py | marisalim/stonybrook_juypterworkflow | 41a985be595c76e6f1257cd65c097f654a3c779e | [
"MIT"
] | 3 | 2018-10-09T17:08:46.000Z | 2018-10-09T17:38:28.000Z | x = 5.9
y = 6
| 4.666667 | 7 | 0.357143 | 5 | 14 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.375 | 0.428571 | 14 | 2 | 8 | 7 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
92ab04d9c4e5ed2dc30d7e736c6bb4a8b5abecb8 | 16,060 | py | Python | uranium_quantum/circuit_exporter/cirq-exporter.py | radumarg/uranium_quantum | e9e62046a2b2e2f31bcab661d48d4bd721ca111a | [
"MIT"
] | null | null | null | uranium_quantum/circuit_exporter/cirq-exporter.py | radumarg/uranium_quantum | e9e62046a2b2e2f31bcab661d48d4bd721ca111a | [
"MIT"
] | null | null | null | uranium_quantum/circuit_exporter/cirq-exporter.py | radumarg/uranium_quantum | e9e62046a2b2e2f31bcab661d48d4bd721ca111a | [
"MIT"
] | null | null | null | import importlib
BaseExporter = importlib.import_module("uranium_quantum.circuit_exporter.base-exporter")
class Exporter(BaseExporter.BaseExporter):
def _define_import_code_section(self):
return f"\
import cirq\n\
import numpy as np\n\
\n\
q = [cirq.NamedQubit('q' + str(i)) for i in range({self._qubits})... | 35.688889 | 290 | 0.591905 | 2,218 | 16,060 | 4.094229 | 0.051398 | 0.129611 | 0.115075 | 0.057262 | 0.893184 | 0.869288 | 0.830305 | 0.773703 | 0.736042 | 0.616011 | 0 | 0.016946 | 0.261457 | 16,060 | 449 | 291 | 35.768374 | 0.748672 | 0.003674 | 0 | 0.447439 | 0 | 0.021563 | 0.204179 | 0.067184 | 0 | 0 | 0 | 0.002227 | 0 | 1 | 0.172507 | false | 0 | 0.016173 | 0.024259 | 0.371968 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
2b87d675a6f442fa8fad6cb0d2e54cf6305fe641 | 35 | py | Python | libs/yowsup/yowsup/yowsup/demos/contacts/__init__.py | akshitpradhan/TomHack | 837226e7b38de1140c19bc2d478eeb9e379ed1fd | [
"MIT"
] | 22 | 2017-07-14T20:01:17.000Z | 2022-03-08T14:22:39.000Z | libs/yowsup/yowsup/yowsup/demos/contacts/__init__.py | akshitpradhan/TomHack | 837226e7b38de1140c19bc2d478eeb9e379ed1fd | [
"MIT"
] | 6 | 2017-07-14T21:03:50.000Z | 2021-06-10T19:08:32.000Z | libs/yowsup/yowsup/yowsup/demos/contacts/__init__.py | akshitpradhan/TomHack | 837226e7b38de1140c19bc2d478eeb9e379ed1fd | [
"MIT"
] | 13 | 2017-07-14T20:13:14.000Z | 2020-11-12T08:06:05.000Z | from .stack import YowsupSyncStack
| 17.5 | 34 | 0.857143 | 4 | 35 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 35 | 1 | 35 | 35 | 0.967742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
2be2c8b2b924371bb312ae6447d33de45c5c44f4 | 170 | py | Python | layers/__init__.py | MSU-MLSys-Lab/CATE | 654c393d7df888d2c3f3b90f9e6752faa061157e | [
"Apache-2.0"
] | 15 | 2021-06-09T00:50:53.000Z | 2022-03-15T07:01:43.000Z | layers/__init__.py | MSU-MLSys-Lab/CATE | 654c393d7df888d2c3f3b90f9e6752faa061157e | [
"Apache-2.0"
] | null | null | null | layers/__init__.py | MSU-MLSys-Lab/CATE | 654c393d7df888d2c3f3b90f9e6752faa061157e | [
"Apache-2.0"
] | 4 | 2021-06-09T01:01:43.000Z | 2021-11-03T06:16:50.000Z | from .graphEncoder import PairWiseLearning
from .graphEncoder import GraphEncoder
from .loss import KLDivLoss
__all__ = ["PairWiseLearning", "KLDivLoss", "GraphEncoder"] | 34 | 59 | 0.817647 | 16 | 170 | 8.4375 | 0.4375 | 0.237037 | 0.325926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 170 | 5 | 59 | 34 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0.216374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
a62f3dbfa49a7670d1b3d524f1aa46c427acc233 | 142 | py | Python | munimap/model/__init__.py | MrSnyder/bielefeldGEOCLIENT | 17c78b43fc2055d23a1bc4b5091da164756bf767 | [
"Apache-2.0"
] | 2 | 2022-02-07T13:20:45.000Z | 2022-02-14T21:40:06.000Z | munimap/model/__init__.py | MrSnyder/bielefeldGEOCLIENT | 17c78b43fc2055d23a1bc4b5091da164756bf767 | [
"Apache-2.0"
] | 4 | 2021-06-17T07:53:53.000Z | 2021-12-17T10:55:48.000Z | munimap/model/__init__.py | MrSnyder/bielefeldGEOCLIENT | 17c78b43fc2055d23a1bc4b5091da164756bf767 | [
"Apache-2.0"
] | 2 | 2021-06-01T09:41:55.000Z | 2022-02-14T17:33:33.000Z | from .mb_group import *
from .mb_user import *
from .layer import *
from .project import *
from .draw_schema import *
from .settings import *
| 20.285714 | 26 | 0.746479 | 21 | 142 | 4.904762 | 0.47619 | 0.485437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169014 | 142 | 6 | 27 | 23.666667 | 0.872881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
a670ec3be4a4d71837f4d01e9fb690e0ead8b79f | 31 | py | Python | VideoTools/__init__.py | ausport/labelImg | 8d50ea65c5e56aea801510edcde0c3b27daa2703 | [
"MIT"
] | null | null | null | VideoTools/__init__.py | ausport/labelImg | 8d50ea65c5e56aea801510edcde0c3b27daa2703 | [
"MIT"
] | null | null | null | VideoTools/__init__.py | ausport/labelImg | 8d50ea65c5e56aea801510edcde0c3b27daa2703 | [
"MIT"
] | null | null | null | from .Video import VideoObject
| 15.5 | 30 | 0.83871 | 4 | 31 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 31 | 1 | 31 | 31 | 0.962963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
a672dc4b1bad1cb9496578d59bad0ba1297ff670 | 128 | py | Python | ssig_site/context_processors.py | LeoMcA/103P_2018_team51 | cca9e022456b1e2653f0b69420ea914661c39b27 | [
"MIT"
] | null | null | null | ssig_site/context_processors.py | LeoMcA/103P_2018_team51 | cca9e022456b1e2653f0b69420ea914661c39b27 | [
"MIT"
] | 61 | 2018-02-22T11:10:48.000Z | 2022-03-11T23:20:25.000Z | ssig_site/context_processors.py | LeoMcA/103P_2018_team51 | cca9e022456b1e2653f0b69420ea914661c39b27 | [
"MIT"
] | 2 | 2018-02-10T11:26:52.000Z | 2018-02-21T12:14:36.000Z | from django.conf import settings as s
def settings(request):
return {
'GOOGLE_MAPS_KEY': s.GOOGLE_MAPS_KEY,
}
| 16 | 45 | 0.671875 | 18 | 128 | 4.555556 | 0.722222 | 0.243902 | 0.317073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242188 | 128 | 7 | 46 | 18.285714 | 0.845361 | 0 | 0 | 0 | 0 | 0 | 0.117188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
a68595267eb7b6aa11b2f3e56c5415a63f468933 | 34 | py | Python | treasure/Phase1/Basic Python1/hello.py | treasurechristain/python-challenge-solutions | a7342a2e3629d34d6eaace95cc7d08a74e5edb1e | [
"MIT"
] | null | null | null | treasure/Phase1/Basic Python1/hello.py | treasurechristain/python-challenge-solutions | a7342a2e3629d34d6eaace95cc7d08a74e5edb1e | [
"MIT"
] | null | null | null | treasure/Phase1/Basic Python1/hello.py | treasurechristain/python-challenge-solutions | a7342a2e3629d34d6eaace95cc7d08a74e5edb1e | [
"MIT"
] | null | null | null | print('My name is Amadikwa Joy N') | 34 | 34 | 0.735294 | 7 | 34 | 3.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 34 | 1 | 34 | 34 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
a6cefbe44a0423aa06bda7a7e2afff5e29962dd2 | 26,813 | py | Python | model/resnet.py | xzgz/vehicle-reid | 10b05bff73e6d5c2d3a60251674bfdcab744c459 | [
"MIT"
] | 3 | 2019-05-19T12:29:14.000Z | 2019-06-08T03:05:53.000Z | model/resnet.py | xzgz/vehicle-reid | 10b05bff73e6d5c2d3a60251674bfdcab744c459 | [
"MIT"
] | 2 | 2019-04-07T08:19:54.000Z | 2019-04-11T08:39:17.000Z | model/resnet.py | xzgz/vehicle-reid | 10b05bff73e6d5c2d3a60251674bfdcab744c459 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
import torch
import copy
from torch import nn
from torch.nn import functional as F
from torchvision.models.resnet import resnet50, Bottleneck
from .hacnn import SoftBlock, SoftHardBlock
import torchvision
class ResNet50(nn.Module):
def __init... | 41.895313 | 120 | 0.591168 | 3,777 | 26,813 | 3.931427 | 0.066455 | 0.055896 | 0.029093 | 0.031315 | 0.835208 | 0.805441 | 0.776012 | 0.762408 | 0.725503 | 0.675803 | 0 | 0.069181 | 0.288927 | 26,813 | 639 | 121 | 41.960876 | 0.70964 | 0.127475 | 0 | 0.660981 | 0 | 0 | 0.02429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036247 | false | 0 | 0.01919 | 0 | 0.138593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
a6d7b78ea02ffa24ebb016b8a7d036bd6219083b | 146 | py | Python | translations.py | anast20sm/Addarr | 75b03d736478386b0e60ab5ff9132362cb3548da | [
"MIT"
] | null | null | null | translations.py | anast20sm/Addarr | 75b03d736478386b0e60ab5ff9132362cb3548da | [
"MIT"
] | null | null | null | translations.py | anast20sm/Addarr | 75b03d736478386b0e60ab5ff9132362cb3548da | [
"MIT"
] | null | null | null | import i18n
from config import config
from definitions import LANG_PATH
i18n.load_path.append(LANG_PATH)
i18n.set('locale', config["language"])
| 18.25 | 38 | 0.80137 | 22 | 146 | 5.181818 | 0.545455 | 0.140351 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045802 | 0.10274 | 146 | 7 | 39 | 20.857143 | 0.824427 | 0 | 0 | 0 | 0 | 0 | 0.09589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
5b38680c2bdfab90a84ad1c547dc2a777ba0b2f1 | 4,885 | py | Python | datahub/sql/controllers/gcp/create_dataset_controller.py | arpitkjain7/synapse | cb4cf28351bde94f4ad7ecc5df0714cfe5d616c6 | [
"Apache-2.0"
] | 2 | 2021-08-02T07:56:38.000Z | 2022-02-23T04:27:31.000Z | datahub/sql/controllers/gcp/create_dataset_controller.py | arpitkjain7/synapse | cb4cf28351bde94f4ad7ecc5df0714cfe5d616c6 | [
"Apache-2.0"
] | null | null | null | datahub/sql/controllers/gcp/create_dataset_controller.py | arpitkjain7/synapse | cb4cf28351bde94f4ad7ecc5df0714cfe5d616c6 | [
"Apache-2.0"
] | null | null | null | from commons.external_call import APIInterface
from sql import config
from sql.crud.dataset_crud import CRUDDataset
from datetime import datetime
class CreateDatasetController:
def __init__(self):
self.gcp_config = config.get("core_engine").get("gcp")
self.CRUDDataset = CRUDDataset()
def crea... | 38.464567 | 79 | 0.565814 | 474 | 4,885 | 5.523207 | 0.137131 | 0.139037 | 0.122231 | 0.061115 | 0.859053 | 0.859053 | 0.859053 | 0.859053 | 0.859053 | 0.859053 | 0 | 0.009706 | 0.325077 | 4,885 | 126 | 80 | 38.769841 | 0.784349 | 0.009621 | 0 | 0.663793 | 0 | 0 | 0.170908 | 0.019657 | 0 | 0 | 0 | 0.007937 | 0 | 1 | 0.043103 | false | 0.034483 | 0.034483 | 0 | 0.155172 | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
5b4aa442f140f84c537ef5a75e54ebb00d23d20a | 29 | py | Python | print_text/add.py | ErraticO/test_github_release_pypi | 1d0a31a19bb150178ad316dbe2be63bd49abe6d5 | [
"MIT"
] | 2 | 2022-02-21T01:13:44.000Z | 2022-02-21T06:31:53.000Z | print_text/add.py | ErraticO/test_github_release_pypi | 1d0a31a19bb150178ad316dbe2be63bd49abe6d5 | [
"MIT"
] | null | null | null | print_text/add.py | ErraticO/test_github_release_pypi | 1d0a31a19bb150178ad316dbe2be63bd49abe6d5 | [
"MIT"
] | null | null | null | def make():
print("add")
| 9.666667 | 16 | 0.517241 | 4 | 29 | 3.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241379 | 29 | 2 | 17 | 14.5 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0 | 0.5 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
5b6e5d2460adf57181f64ff4577e0e14e38d1666 | 602 | py | Python | user/mixins.py | calumlim/talentalps | cc66eabf71e04b6ab5831ee15f57e771cba82279 | [
"FSFAP"
] | null | null | null | user/mixins.py | calumlim/talentalps | cc66eabf71e04b6ab5831ee15f57e771cba82279 | [
"FSFAP"
] | null | null | null | user/mixins.py | calumlim/talentalps | cc66eabf71e04b6ab5831ee15f57e771cba82279 | [
"FSFAP"
] | null | null | null | from django.contrib.auth.mixins import AccessMixin
class StaffAccessMixin(AccessMixin):
def dispatch(self, request, *args, **kwargs):
if not (request.user.is_authenticated and request.user.is_staff):
return self.handle_no_permission()
return super().dispatch(request, *args, **kwargs)
c... | 46.307692 | 88 | 0.712625 | 70 | 602 | 6.014286 | 0.428571 | 0.104513 | 0.16152 | 0.123515 | 0.72209 | 0.72209 | 0.72209 | 0.72209 | 0.72209 | 0.72209 | 0 | 0 | 0.174419 | 602 | 13 | 89 | 46.307692 | 0.847082 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
5b9ba292113018443f4ebd750c382d3c206284d4 | 8,360 | py | Python | tests/test_permissions.py | radiac/django-fastview | 31b06003c303c552e9c51184656d83a30b88377f | [
"BSD-3-Clause"
] | 8 | 2019-12-30T19:16:30.000Z | 2021-09-06T14:08:25.000Z | tests/test_permissions.py | radiac/django-fastview | 31b06003c303c552e9c51184656d83a30b88377f | [
"BSD-3-Clause"
] | 3 | 2021-03-10T04:45:19.000Z | 2022-02-12T07:01:55.000Z | tests/test_permissions.py | radiac/django-fastview | 31b06003c303c552e9c51184656d83a30b88377f | [
"BSD-3-Clause"
] | null | null | null | """
Test fastview/permissions.py
"""
import pytest
from fastview.permissions import Django, Login, Owner, Public, Staff, Superuser
from .app.models import Entry
def test_public__public_can_access(test_data, request_public):
perm = Public()
assert perm.check(request_public) is True
assert perm.filter(req... | 37.155556 | 87 | 0.754306 | 1,207 | 8,360 | 4.874896 | 0.04971 | 0.116927 | 0.077328 | 0.132903 | 0.9293 | 0.908736 | 0.859619 | 0.835826 | 0.658566 | 0.649898 | 0 | 0.003893 | 0.139713 | 8,360 | 224 | 88 | 37.321429 | 0.814238 | 0.010048 | 0 | 0.63125 | 0 | 0 | 0.011974 | 0 | 0 | 0 | 0 | 0 | 0.40625 | 1 | 0.18125 | false | 0 | 0.01875 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
5bba87b4ea8ec5a9d0d76ab7b38afa53fd52a194 | 19 | py | Python | sddr/__init__.py | felixGer/PySDDR | a7680e7190185ba605df6ad85b4fdf19401473b3 | [
"MIT"
] | 14 | 2021-04-07T17:33:19.000Z | 2022-02-07T14:49:37.000Z | sddr/__init__.py | felixGer/PySDDR | a7680e7190185ba605df6ad85b4fdf19401473b3 | [
"MIT"
] | 3 | 2021-11-30T15:03:32.000Z | 2022-01-09T06:24:29.000Z | sddr/__init__.py | felixGer/PySDDR | a7680e7190185ba605df6ad85b4fdf19401473b3 | [
"MIT"
] | 7 | 2021-04-20T08:48:57.000Z | 2022-03-02T10:45:19.000Z | from .sddr import * | 19 | 19 | 0.736842 | 3 | 19 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 19 | 1 | 19 | 19 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
5bc198052f44848d5622ecfd0dbb5d88d1a1fb29 | 118 | py | Python | jentry/entry/script/__init__.py | HansBug/jentry | 69817fc19df1c8b31b32a834cfe1aa93841d6022 | [
"Apache-2.0"
] | null | null | null | jentry/entry/script/__init__.py | HansBug/jentry | 69817fc19df1c8b31b32a834cfe1aa93841d6022 | [
"Apache-2.0"
] | 1 | 2022-03-20T01:42:56.000Z | 2022-03-20T01:42:56.000Z | jentry/entry/script/__init__.py | HansBug/jentry | 69817fc19df1c8b31b32a834cfe1aa93841d6022 | [
"Apache-2.0"
] | null | null | null | from .file import load_entries_from_file, load_entry_classes_from_code
from .project import load_entries_from_project
| 39.333333 | 70 | 0.898305 | 19 | 118 | 5.052632 | 0.473684 | 0.166667 | 0.354167 | 0.4375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076271 | 118 | 2 | 71 | 59 | 0.880734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
5bdcf940067fb25ce5b1bb48cc7ac89d31919552 | 109 | py | Python | package/awesome_streamlit/experiments/__init__.py | R-fred/awesome-streamlit | 10f2b132bc8e61a82edfacb4b3bb36d0da6c63d3 | [
"CC0-1.0"
] | 1,194 | 2019-10-09T06:15:27.000Z | 2022-03-31T14:53:00.000Z | package/awesome_streamlit/experiments/__init__.py | R-fred/awesome-streamlit | 10f2b132bc8e61a82edfacb4b3bb36d0da6c63d3 | [
"CC0-1.0"
] | 55 | 2019-10-09T12:08:39.000Z | 2022-02-10T00:48:53.000Z | package/awesome_streamlit/experiments/__init__.py | R-fred/awesome-streamlit | 10f2b132bc8e61a82edfacb4b3bb36d0da6c63d3 | [
"CC0-1.0"
] | 272 | 2019-10-09T12:04:31.000Z | 2022-03-29T02:43:30.000Z | """Imports that should be exposed outside the package"""
from .hello_world import write as write_hello_world
| 36.333333 | 56 | 0.807339 | 17 | 109 | 5 | 0.823529 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12844 | 109 | 2 | 57 | 54.5 | 0.894737 | 0.458716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
750d66e4556ce66539f01afd454bfb3180d06258 | 86 | py | Python | tracklib/init/__init__.py | xueyuelei/tracklib | d33912baf1bebd1605d5e9c8dfc31484c96628cc | [
"MIT"
] | 5 | 2020-03-04T11:36:19.000Z | 2020-06-21T16:49:45.000Z | tracklib/init/__init__.py | xueyuelei/tracklib | d33912baf1bebd1605d5e9c8dfc31484c96628cc | [
"MIT"
] | null | null | null | tracklib/init/__init__.py | xueyuelei/tracklib | d33912baf1bebd1605d5e9c8dfc31484c96628cc | [
"MIT"
] | null | null | null | from __future__ import division, absolute_import, print_function
from .init import * | 21.5 | 64 | 0.825581 | 11 | 86 | 5.909091 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127907 | 86 | 4 | 65 | 21.5 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
752fff69deb9402c4c7a6a943a150cc6d939f410 | 117 | py | Python | change_ab.py | ximury/python | 8624464e214c74e640d01a83b21c66df8eb7ad8c | [
"Apache-2.0"
] | null | null | null | change_ab.py | ximury/python | 8624464e214c74e640d01a83b21c66df8eb7ad8c | [
"Apache-2.0"
] | null | null | null | change_ab.py | ximury/python | 8624464e214c74e640d01a83b21c66df8eb7ad8c | [
"Apache-2.0"
] | null | null | null | a, b = 3, 4
print(a, b)
a, b = b, a
print(a, b)
print('---------------------')
a = 1
a += 1
print(a)
| 9 | 31 | 0.316239 | 21 | 117 | 1.761905 | 0.285714 | 0.216216 | 0.378378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050633 | 0.324786 | 117 | 12 | 32 | 9.75 | 0.417722 | 0 | 0 | 0.25 | 0 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 1 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
754965e1d467f573955a91bf60d2f23e489b0380 | 17,564 | py | Python | models.py | dahe-cvl/isvc2020_overscan_detection | e41b85fa8d1615a0e8f19c961a59f7d703232445 | [
"MIT"
] | null | null | null | models.py | dahe-cvl/isvc2020_overscan_detection | e41b85fa8d1615a0e8f19c961a59f7d703232445 | [
"MIT"
] | null | null | null | models.py | dahe-cvl/isvc2020_overscan_detection | e41b85fa8d1615a0e8f19c961a59f7d703232445 | [
"MIT"
] | null | null | null | from torchvision import models
from torchvision.models.segmentation.deeplabv3 import DeepLabHead
from torchvision.models.segmentation.fcn import FCNHead
from metrics import *
from datasets import *
from collections import OrderedDict
class CNN(nn.Module):
"""CNN."""
def __init__(self, model_arch="resnet50", ... | 38.858407 | 161 | 0.605443 | 1,924 | 17,564 | 5.324324 | 0.067048 | 0.061499 | 0.0287 | 0.029676 | 0.858161 | 0.842932 | 0.83278 | 0.822237 | 0.805838 | 0.7828 | 0 | 0.015199 | 0.280802 | 17,564 | 451 | 162 | 38.944568 | 0.795757 | 0.072876 | 0 | 0.661184 | 0 | 0 | 0.080434 | 0.007155 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016447 | false | 0 | 0.019737 | 0.003289 | 0.085526 | 0.115132 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
754a65d212f34d3a028eb508e500f5bfa8ea69a1 | 131,653 | py | Python | cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_alarmgr_server_oper.py | tkamata-test/ydk-py | b637e7853a8edbbd31fbc05afa3aa4110b31c5f9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_alarmgr_server_oper.py | tkamata-test/ydk-py | b637e7853a8edbbd31fbc05afa3aa4110b31c5f9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_alarmgr_server_oper.py | tkamata-test/ydk-py | b637e7853a8edbbd31fbc05afa3aa4110b31c5f9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
import re
import collections
from enum import Enum
from ydk._core._dm_meta_info import _MetaInfoClassMember, _MetaInfoClass, _MetaInfoEnum
from ydk.types import Empty, YList, YLeafList, DELETE, Decimal64, FixedBitsDict
from ydk._core._dm_meta_info import ATTRIBUTE, REFERENCE_CLASS, REFERENCE_LIST, REFERENCE_LEAFLI... | 52.28475 | 232 | 0.521735 | 11,242 | 131,653 | 5.884896 | 0.023039 | 0.093594 | 0.116993 | 0.153405 | 0.97181 | 0.968923 | 0.964373 | 0.950618 | 0.932223 | 0.907131 | 0 | 0.018193 | 0.343691 | 131,653 | 2,517 | 233 | 52.305522 | 0.74748 | 0 | 0 | 0.683493 | 0 | 0.00091 | 0.437456 | 0.322974 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.003638 | 0 | 0.003638 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
75515f557f7b57d9c80729b19cdefe22380b56fa | 37,908 | py | Python | egret/model_library/transmission/bus.py | breldridge/Egret | 8672c974d1fc7b6ce72a4f457eae5682666575e4 | [
"BSD-3-Clause"
] | null | null | null | egret/model_library/transmission/bus.py | breldridge/Egret | 8672c974d1fc7b6ce72a4f457eae5682666575e4 | [
"BSD-3-Clause"
] | null | null | null | egret/model_library/transmission/bus.py | breldridge/Egret | 8672c974d1fc7b6ce72a4f457eae5682666575e4 | [
"BSD-3-Clause"
] | null | null | null | # ___________________________________________________________________________
#
# EGRET: Electrical Grid Research and Engineering Tools
# Copyright 2019 National Technology & Engineering Solutions of Sandia, LLC
# (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
# Government retains certain r... | 40.630225 | 129 | 0.605387 | 5,597 | 37,908 | 3.756119 | 0.054315 | 0.047947 | 0.037721 | 0.026542 | 0.88798 | 0.866337 | 0.836322 | 0.80783 | 0.762165 | 0.716739 | 0 | 0.006149 | 0.300754 | 37,908 | 932 | 130 | 40.67382 | 0.786962 | 0.130817 | 0 | 0.62963 | 0 | 0 | 0.044944 | 0.024436 | 0 | 0 | 0 | 0 | 0.00161 | 1 | 0.061192 | false | 0.003221 | 0.009662 | 0 | 0.091787 | 0.008052 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.