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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ecd0fde5ae6883995f417b9399eb405c8cd4bccd | 152 | py | Python | gpmmatch/__init__.py | vlouf/gpmmatch | 4b50452b2ca8cc4f7ee89ddce4ae2a65685fa48c | [
"MIT"
] | 4 | 2020-06-26T08:52:39.000Z | 2022-03-10T09:43:28.000Z | gpmmatch/__init__.py | vlouf/gpmmatch | 4b50452b2ca8cc4f7ee89ddce4ae2a65685fa48c | [
"MIT"
] | null | null | null | gpmmatch/__init__.py | vlouf/gpmmatch | 4b50452b2ca8cc4f7ee89ddce4ae2a65685fa48c | [
"MIT"
] | 3 | 2020-06-26T08:52:43.000Z | 2022-03-27T17:52:04.000Z | # Import functions
from .gpmmatch import volume_matching
from .gpmmatch import vmatch_multi_pass
# Import error class.
from .gpmmatch import NoRainError | 30.4 | 39 | 0.842105 | 20 | 152 | 6.25 | 0.6 | 0.288 | 0.432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118421 | 152 | 5 | 40 | 30.4 | 0.932836 | 0.236842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 8 |
01faa47a6fb70e9b81d488399a6e19eb15a2ecc0 | 672 | py | Python | Ciphers/shift.py | jgrove2/Cipher-Project | f9f93c8c6b1ffd7205be545f0d96b95f3cfb7cc0 | [
"MIT"
] | null | null | null | Ciphers/shift.py | jgrove2/Cipher-Project | f9f93c8c6b1ffd7205be545f0d96b95f3cfb7cc0 | [
"MIT"
] | null | null | null | Ciphers/shift.py | jgrove2/Cipher-Project | f9f93c8c6b1ffd7205be545f0d96b95f3cfb7cc0 | [
"MIT"
] | null | null | null | # Shift cipher
# Used with the shift and ceasar option of ciphers
def encrypt(message, shift):
shift = int(shift)
result = ""
for i in range(len(message)):
char = message[i]
if(char.isupper()):
result += chr((ord(char)+ shift-65) % 26 + 65)
elif(char.islower()):
result += chr((ord(char) + shift-97) % 2... | 22.4 | 50 | 0.61756 | 99 | 672 | 4.191919 | 0.333333 | 0.086747 | 0.115663 | 0.154217 | 0.828916 | 0.828916 | 0.828916 | 0.828916 | 0.828916 | 0.828916 | 0 | 0.045198 | 0.209821 | 672 | 30 | 51 | 22.4 | 0.736347 | 0.090774 | 0 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
bf39820d5ea5439c45caaffe6dacf6ae17ab879a | 94 | py | Python | train_word_embedding.py | FrederichRiver/taurus | 1da240b7723bdc99883d7afe0253608cfdababb5 | [
"BSD-3-Clause"
] | null | null | null | train_word_embedding.py | FrederichRiver/taurus | 1da240b7723bdc99883d7afe0253608cfdababb5 | [
"BSD-3-Clause"
] | null | null | null | train_word_embedding.py | FrederichRiver/taurus | 1da240b7723bdc99883d7afe0253608cfdababb5 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python3
from word_embedding import get_dict, dict_file
v, f = get_dict(dict_file) | 18.8 | 46 | 0.776596 | 17 | 94 | 4 | 0.705882 | 0.205882 | 0.323529 | 0.441176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.117021 | 94 | 5 | 47 | 18.8 | 0.807229 | 0.180851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
17296d3bf5e5c563aa7799923e37d72dd6e60b19 | 2,005 | py | Python | timing.py | akashlevy/yaklient | 0b4479fa2b44a38a1127bb58057458d717dde67d | [
"MIT"
] | null | null | null | timing.py | akashlevy/yaklient | 0b4479fa2b44a38a1127bb58057458d717dde67d | [
"MIT"
] | null | null | null | timing.py | akashlevy/yaklient | 0b4479fa2b44a38a1127bb58057458d717dde67d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Tests the Yaklient package"""
from yaklient import Location
from yaklient import User
import time
# Testing location
TESTING_GROUNDS = Location(45, 75)
def upvote_timeout():
"""Find the approximate time to wait to upvote a Yak after creating user"""
# Initialize
user = User(... | 24.753086 | 79 | 0.642893 | 279 | 2,005 | 4.476703 | 0.182796 | 0.076861 | 0.056045 | 0.078463 | 0.771017 | 0.759007 | 0.759007 | 0.759007 | 0.729384 | 0.729384 | 0 | 0.010688 | 0.253367 | 2,005 | 80 | 80 | 25.0625 | 0.823647 | 0.111721 | 0 | 0.702128 | 0 | 0 | 0.082109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06383 | null | null | 0.191489 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
bda8d227c90145b9d801e7917962e86ac3ff89af | 152 | py | Python | python/testData/psi/TrailingBlockCommentsAtEndOfFile.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/psi/TrailingBlockCommentsAtEndOfFile.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/psi/TrailingBlockCommentsAtEndOfFile.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | def foo():
def bar():
def baz():
pass
# baz 1
# baz 2
# baz 3
# bar
# foo
| 15.2 | 23 | 0.263158 | 15 | 152 | 2.666667 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.644737 | 152 | 9 | 24 | 16.888889 | 0.685185 | 0.164474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.75 | true | 0.25 | 0 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 7 |
da09d2060a16836d0b68eaddeb782a3f98d6aab3 | 91,333 | py | Python | tlsmate/mappings.py | timb-machine-mirrors/tlsmate | 1313161b9170311f466a3a43b3d84797cecc0291 | [
"MIT"
] | null | null | null | tlsmate/mappings.py | timb-machine-mirrors/tlsmate | 1313161b9170311f466a3a43b3d84797cecc0291 | [
"MIT"
] | null | null | null | tlsmate/mappings.py | timb-machine-mirrors/tlsmate | 1313161b9170311f466a3a43b3d84797cecc0291 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Module containing various mapping tables
Attributes:
supported_cipher_suites (dict): maps :obj:`tlsmate.tls.CipherSuite` to
:obj:`tlsmate.structs.CipherSuite` objects
supported_ciphers (dict): maps :obj:`tlsmate.tls.SymmetricCipher` to
:obj:`tlsmate.structs.Cipher` o... | 42.520019 | 87 | 0.732955 | 11,178 | 91,333 | 5.63947 | 0.019771 | 0.030061 | 0.128684 | 0.122958 | 0.955297 | 0.947365 | 0.935214 | 0.930074 | 0.925045 | 0.920334 | 0 | 0.048085 | 0.177088 | 91,333 | 2,147 | 88 | 42.539823 | 0.790644 | 0.013193 | 0 | 0.76535 | 0 | 0 | 0.002098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.00238 | 0 | 0.00238 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
da1cccb8011a75655b0e7c2f8262d0d69cb18047 | 30 | py | Python | orion_core/backend/base_backend.py | nightred/orion-core | ad80eb9c18559f32e165245b1aa2e3b0927c5f9e | [
"MIT"
] | null | null | null | orion_core/backend/base_backend.py | nightred/orion-core | ad80eb9c18559f32e165245b1aa2e3b0927c5f9e | [
"MIT"
] | null | null | null | orion_core/backend/base_backend.py | nightred/orion-core | ad80eb9c18559f32e165245b1aa2e3b0927c5f9e | [
"MIT"
] | null | null | null |
def test():
return True
| 6 | 15 | 0.566667 | 4 | 30 | 4.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 30 | 4 | 16 | 7.5 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
da8bb5adb5897112bee0c41b83b9dc534aa9c4d1 | 1,200 | py | Python | .venv/lib/python3.8/site-packages/vectorbt/utils/widgets.py | eo1989/VectorBTanalysis | bea3deaf2ee3fc114b308146f2af3e4f35f70197 | [
"MIT"
] | null | null | null | .venv/lib/python3.8/site-packages/vectorbt/utils/widgets.py | eo1989/VectorBTanalysis | bea3deaf2ee3fc114b308146f2af3e4f35f70197 | [
"MIT"
] | null | null | null | .venv/lib/python3.8/site-packages/vectorbt/utils/widgets.py | eo1989/VectorBTanalysis | bea3deaf2ee3fc114b308146f2af3e4f35f70197 | [
"MIT"
] | null | null | null | """Utilities for displaying widgets."""
import plotly.graph_objects as go
from vectorbt import defaults
class CustomFigure(go.Figure):
"""Subclass of the `plotly.graph_objects.Figure` class initialized
with default parameters from `vectorbt.defaults.layout`."""
def __init__(self, *args, **kwargs):
... | 33.333333 | 85 | 0.671667 | 142 | 1,200 | 5.5 | 0.302817 | 0.071703 | 0.081946 | 0.048656 | 0.791293 | 0.791293 | 0.711908 | 0.711908 | 0.711908 | 0.711908 | 0 | 0 | 0.188333 | 1,200 | 35 | 86 | 34.285714 | 0.801848 | 0.290833 | 0 | 0.777778 | 0 | 0 | 0.02214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e51abedd55c304596a5c3619a1b51177daf726e0 | 37,267 | py | Python | codegen/funcs1_testgen.py | m1griffin/arrayfunc | df57097699c25d3e949e1ade307ed61eaa5728c2 | [
"Apache-2.0"
] | 2 | 2017-08-28T08:41:16.000Z | 2018-05-29T03:49:36.000Z | codegen/funcs1_testgen.py | m1griffin/arrayfunc | df57097699c25d3e949e1ade307ed61eaa5728c2 | [
"Apache-2.0"
] | null | null | null | codegen/funcs1_testgen.py | m1griffin/arrayfunc | df57097699c25d3e949e1ade307ed61eaa5728c2 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
##############################################################################
# Project: arrayfunc
# Purpose: Generate the unit tests for math functions which use one input parameter.
# Language: Python 3.5
# Date: 08-Dec-2017
#
#############################################################... | 37.267 | 170 | 0.6213 | 4,198 | 37,267 | 5.435445 | 0.082658 | 0.040757 | 0.052765 | 0.044351 | 0.858883 | 0.84968 | 0.831493 | 0.80717 | 0.789771 | 0.756815 | 0 | 0.00523 | 0.127754 | 37,267 | 999 | 171 | 37.304304 | 0.696733 | 0.08211 | 0 | 0.722135 | 1 | 0.11303 | 0.925455 | 0.396678 | 0 | 0 | 0 | 0 | 0.128728 | 1 | 0 | false | 0.023548 | 0.006279 | 0 | 0.006279 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
e51c9f992a6cd138774fe8586512ab66123b62e4 | 24,654 | py | Python | data/migrations/0001_initial.py | NicolaDiLeva/CapecListWebApp | 18b43b9b09df5a09ddcd7ece654f8f098456cb72 | [
"Apache-2.0"
] | null | null | null | data/migrations/0001_initial.py | NicolaDiLeva/CapecListWebApp | 18b43b9b09df5a09ddcd7ece654f8f098456cb72 | [
"Apache-2.0"
] | null | null | null | data/migrations/0001_initial.py | NicolaDiLeva/CapecListWebApp | 18b43b9b09df5a09ddcd7ece654f8f098456cb72 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.8 on 2020-07-31 17:32
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='AuthGroup',
fields=[
('id', models.AutoFiel... | 64.878947 | 127 | 0.599903 | 2,303 | 24,654 | 6.284846 | 0.064264 | 0.088434 | 0.115517 | 0.178527 | 0.901271 | 0.858367 | 0.832873 | 0.821542 | 0.821542 | 0.821542 | 0 | 0.007776 | 0.254117 | 24,654 | 379 | 128 | 65.050132 | 0.779325 | 0.001825 | 0 | 0.75 | 1 | 0 | 0.2201 | 0.017678 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.002688 | 0.002688 | 0 | 0.013441 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
e529fd51d33907effbea27f0b7fc7de63bcc3992 | 242 | py | Python | src/latte/metrics/keras/interpolatability.py | SoftwareImpacts/SIMPAC-2021-192 | 92c6eb8bb8b1f45b0b86d222b87b2f1e4e949d04 | [
"MIT"
] | 1 | 2021-12-21T00:38:21.000Z | 2021-12-21T00:38:21.000Z | src/latte/metrics/keras/interpolatability.py | SoftwareImpacts/SIMPAC-2021-192 | 92c6eb8bb8b1f45b0b86d222b87b2f1e4e949d04 | [
"MIT"
] | null | null | null | src/latte/metrics/keras/interpolatability.py | SoftwareImpacts/SIMPAC-2021-192 | 92c6eb8bb8b1f45b0b86d222b87b2f1e4e949d04 | [
"MIT"
] | null | null | null | from .wrapper import KerasMetricWrapper
from ..core import interpolatability as C
from functools import partial
Smoothness = partial(KerasMetricWrapper, metric=C.Smoothness)
Monotonicity = partial(KerasMetricWrapper, metric=C.Monotonicity)
| 30.25 | 65 | 0.838843 | 26 | 242 | 7.807692 | 0.5 | 0.246305 | 0.305419 | 0.315271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099174 | 242 | 7 | 66 | 34.571429 | 0.931193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
e52a0495eff32c2512b2db9ff0142f5140b928b8 | 111 | py | Python | NodeDefender/mqtt/message/respond/icpe/sys/sys.py | CTSNE/NodeDefender | 24e19f53a27d3b53e599cba8b1448f8f16c0bd5e | [
"MIT"
] | 4 | 2016-09-23T17:51:05.000Z | 2017-03-14T02:52:26.000Z | NodeDefender/mqtt/message/respond/icpe/sys/sys.py | CTSNE/NodeDefender | 24e19f53a27d3b53e599cba8b1448f8f16c0bd5e | [
"MIT"
] | 1 | 2016-09-22T11:32:33.000Z | 2017-11-14T10:00:24.000Z | NodeDefender/mqtt/message/respond/icpe/sys/sys.py | CTSNE/NodeDefender | 24e19f53a27d3b53e599cba8b1448f8f16c0bd5e | [
"MIT"
] | 4 | 2016-10-09T19:05:16.000Z | 2020-05-14T04:00:30.000Z | import NodeDefender
def reboot(topic, payload):
return True
def battery(topic, payload):
return True
| 13.875 | 28 | 0.72973 | 14 | 111 | 5.785714 | 0.642857 | 0.296296 | 0.444444 | 0.54321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198198 | 111 | 7 | 29 | 15.857143 | 0.910112 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0.4 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 8 |
e54c46aa1d058a32bc19375a4df2eead6bdba36d | 43 | py | Python | python/testData/refactoring/move/importForMovedElementWithPreferredQualifiedImportStyle/after/src/a.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/refactoring/move/importForMovedElementWithPreferredQualifiedImportStyle/after/src/a.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/refactoring/move/importForMovedElementWithPreferredQualifiedImportStyle/after/src/a.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | from b import bar
def foo():
bar()
| 5.375 | 17 | 0.534884 | 7 | 43 | 3.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.348837 | 43 | 7 | 18 | 6.142857 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
006c62fb1fa2946f9ec4427dda13b903db0df6d4 | 43,542 | py | Python | tests/model_execution/test_bash.py | OasisLMF/OasisLMF | 141a1bf4b6cacb3b71c4216bf0997b6b9b85e1d2 | [
"BSD-3-Clause"
] | 88 | 2018-03-24T11:57:10.000Z | 2022-03-21T13:04:41.000Z | tests/model_execution/test_bash.py | OasisLMF/OasisLMF | 141a1bf4b6cacb3b71c4216bf0997b6b9b85e1d2 | [
"BSD-3-Clause"
] | 558 | 2018-03-14T14:16:30.000Z | 2022-03-29T12:48:14.000Z | tests/model_execution/test_bash.py | OasisLMF/OasisLMF | 141a1bf4b6cacb3b71c4216bf0997b6b9b85e1d2 | [
"BSD-3-Clause"
] | 41 | 2018-04-09T11:13:12.000Z | 2021-10-05T14:43:11.000Z |
import hashlib
import io
import json
import os
import shutil
from tempfile import NamedTemporaryFile
from unittest import TestCase
from oasislmf.model_execution.bash import genbash, create_bash_outputs, create_bash_analysis, bash_wrapper, bash_params
from oasislmf.utils import diff
TEST_DIRECTORY = os.path.dirname(_... | 40.884507 | 120 | 0.717261 | 6,764 | 43,542 | 4.059432 | 0.028533 | 0.076735 | 0.079758 | 0.043266 | 0.938197 | 0.92738 | 0.907022 | 0.843142 | 0.744665 | 0.636681 | 0 | 0.036364 | 0.194111 | 43,542 | 1,064 | 121 | 40.922932 | 0.746139 | 0.0127 | 0 | 0.278121 | 0 | 0 | 0.241609 | 0.19075 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228677 | false | 0.001236 | 0.011125 | 0 | 0.252163 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
da9ad3270b34c42e9aec4e3dd748608563410452 | 11,044 | py | Python | ui/send_json.py | globocom/gsenha | ba057d03fa68cdc608a0ea31000de817f5d88098 | [
"MIT"
] | 22 | 2016-07-08T19:31:54.000Z | 2022-03-21T18:45:34.000Z | ui/send_json.py | globocom/gsenha | ba057d03fa68cdc608a0ea31000de817f5d88098 | [
"MIT"
] | 8 | 2021-02-22T14:53:48.000Z | 2022-03-29T22:27:50.000Z | ui/send_json.py | globocom/gsenha | ba057d03fa68cdc608a0ea31000de817f5d88098 | [
"MIT"
] | 6 | 2016-09-12T07:40:16.000Z | 2021-09-19T18:35:34.000Z | # -*- coding: utf-8 -*-
import json, requests, sys, settings
class SendJson:
def send_get_passwords(self,token):
url_gsenha = settings.URL_GSENHA_PASSWORDS
bearer = "Bearer "+str(token)
headers = {'Authorization':bearer}
req = requests.get(url_gsenha, headers=headers, verify=True)
... | 42.476923 | 109 | 0.626766 | 1,247 | 11,044 | 5.423416 | 0.06255 | 0.095815 | 0.060328 | 0.070974 | 0.882153 | 0.84844 | 0.824043 | 0.789295 | 0.766524 | 0.762236 | 0 | 0.000357 | 0.239678 | 11,044 | 260 | 110 | 42.476923 | 0.805049 | 0.001901 | 0 | 0.777778 | 0 | 0 | 0.153693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0.145299 | 0.008547 | 0 | 0.217949 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
daa19541908533d3ddd3980fad5fe05b9b70a767 | 234 | py | Python | intervul/datFiles/problem_data/contact/__init__.py | mpacheco62/intervul | c0eaadf54580de4b3c2dea46e8f196eab52280e1 | [
"MIT"
] | 1 | 2021-04-13T13:28:16.000Z | 2021-04-13T13:28:16.000Z | intervul/datFiles/problem_data/contact/__init__.py | andresutrera/intervul | 75c5f824067549b3ddcbe9fe667964fb85a05ce3 | [
"MIT"
] | null | null | null | intervul/datFiles/problem_data/contact/__init__.py | andresutrera/intervul | 75c5f824067549b3ddcbe9fe667964fb85a05ce3 | [
"MIT"
] | 1 | 2021-05-06T20:29:42.000Z | 2021-05-06T20:29:42.000Z | from ._augmented_lagrange import Augmented_lagrange
from ._non_coincident_mesh import Non_coincident_mesh
from ._both_coincident_and_non_coincident_mesh import (
Both_coincident_and_non_coincident_mesh)
| 46.8 | 71 | 0.790598 | 28 | 234 | 5.928571 | 0.321429 | 0.313253 | 0.409639 | 0.277108 | 0.409639 | 0.409639 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188034 | 234 | 4 | 72 | 58.5 | 0.873684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
daaec7eb6bffff27ce5d379340bcd6211628cdde | 160 | py | Python | utils/box/__init__.py | Yang-Zhaowei/SSD.300-512 | 0d6766038bd3ee37036e4255713d5c06e81a83ed | [
"MIT"
] | 3 | 2020-05-23T02:32:08.000Z | 2021-04-26T12:29:40.000Z | utils/box/__init__.py | Yang-Zhaowei/PowerBank | 0d6766038bd3ee37036e4255713d5c06e81a83ed | [
"MIT"
] | null | null | null | utils/box/__init__.py | Yang-Zhaowei/PowerBank | 0d6766038bd3ee37036e4255713d5c06e81a83ed | [
"MIT"
] | null | null | null | from .prior_box import PriorBox
from .box_utils import decode,nms
from .box_utils import match, log_sum_exp,match_ious,bbox_overlaps_iou, bbox_overlaps_giou
| 22.857143 | 90 | 0.84375 | 27 | 160 | 4.62963 | 0.62963 | 0.112 | 0.192 | 0.288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10625 | 160 | 6 | 91 | 26.666667 | 0.874126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
dacdbf3b19b92bcc73fa0c141bde710edc3a2626 | 1,986 | py | Python | solver/test.py | BavoGoosens/Capita3 | ec884b6acaf5fc1b22a58b02c65888d5b8b2029a | [
"MIT"
] | null | null | null | solver/test.py | BavoGoosens/Capita3 | ec884b6acaf5fc1b22a58b02c65888d5b8b2029a | [
"MIT"
] | null | null | null | solver/test.py | BavoGoosens/Capita3 | ec884b6acaf5fc1b22a58b02c65888d5b8b2029a | [
"MIT"
] | null | null | null | from generator import *
g = Generator()
counter = 1
for i in range(0, 50):
time_span, omin, omax, dmin, dmax, demand = g.generate_parameters(timespan=5)
f = open('../tuning/instances/instance'+str(time_span)+'_'+str(i+1), "w")
candidate_id = str(time_span)+str(omin)+str(omax)+str(dmin)+str(dmax)+str(demand... | 58.411765 | 136 | 0.556898 | 256 | 1,986 | 4.226563 | 0.183594 | 0.088725 | 0.091497 | 0.077634 | 0.963956 | 0.963956 | 0.963956 | 0.945471 | 0.945471 | 0.945471 | 0 | 0.012255 | 0.178248 | 1,986 | 34 | 137 | 58.411765 | 0.650735 | 0 | 0 | 0.636364 | 1 | 0 | 0.146452 | 0.042275 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.030303 | 0 | 0.030303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
972c3b7d0d117b5e70d92f377e3d4765d44b4618 | 18,572 | py | Python | fixture/contacts.py | kolesnyknataly/python_training | 56a13869f78a68d827c2ec7e1a5ec20227e462b4 | [
"Apache-2.0"
] | null | null | null | fixture/contacts.py | kolesnyknataly/python_training | 56a13869f78a68d827c2ec7e1a5ec20227e462b4 | [
"Apache-2.0"
] | null | null | null | fixture/contacts.py | kolesnyknataly/python_training | 56a13869f78a68d827c2ec7e1a5ec20227e462b4 | [
"Apache-2.0"
] | null | null | null | from model.contacts import Contacts
import re
import random
from selenium.webdriver.support.ui import Select
from model.group import Group
class ContactsHelpers:
def __init__(self, app):
self.app = app
def open_contacts_page(self):
wd = self.app.wd
if wd.current_url.endswith("/addres... | 48.490862 | 118 | 0.663041 | 2,584 | 18,572 | 4.374226 | 0.054567 | 0.107228 | 0.227727 | 0.257454 | 0.854906 | 0.836857 | 0.794656 | 0.763956 | 0.739007 | 0.710873 | 0 | 0.006161 | 0.204663 | 18,572 | 382 | 119 | 48.617801 | 0.759055 | 0.023692 | 0 | 0.669643 | 0 | 0 | 0.089153 | 0.005962 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074405 | false | 0 | 0.014881 | 0 | 0.116071 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
975397b219ee0d2e6a42e4d9fe569f3808b0f762 | 16,285 | py | Python | tests/regression/py_scripts/make_bf_seqprops.py | ebatz/lalibe | 5f00bce5c5b2ab7873c4569fb48f89366bc1b9a6 | [
"BSD-3-Clause-LBNL"
] | 9 | 2019-07-25T15:26:34.000Z | 2022-03-25T13:00:20.000Z | tests/regression/py_scripts/make_bf_seqprops.py | wittscien/lalibe | 5f00bce5c5b2ab7873c4569fb48f89366bc1b9a6 | [
"BSD-3-Clause-LBNL"
] | 5 | 2019-08-14T23:29:58.000Z | 2021-05-13T16:56:07.000Z | tests/regression/py_scripts/make_bf_seqprops.py | wittscien/lalibe | 5f00bce5c5b2ab7873c4569fb48f89366bc1b9a6 | [
"BSD-3-Clause-LBNL"
] | 6 | 2019-05-21T00:26:54.000Z | 2022-02-16T23:38:23.000Z | import sys
import h5py as h5
import tables
import numpy as np
import gamma
import time
import contractions
np.set_printoptions(linewidth=180)
''' This code reads a single h5 file that stores a propagator from a point source
to all, from all locations on the lattice. It uses these props to manually
construct t... | 37.960373 | 182 | 0.709917 | 2,933 | 16,285 | 3.618138 | 0.068871 | 0.067848 | 0.105541 | 0.011873 | 0.922729 | 0.903694 | 0.903694 | 0.899736 | 0.891915 | 0.886732 | 0 | 0.029343 | 0.127356 | 16,285 | 428 | 183 | 38.049065 | 0.717402 | 0.02094 | 0 | 0.90604 | 0 | 0.026846 | 0.233867 | 0.137294 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02349 | 0 | 0.02349 | 0.258389 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
8ade28a0dca24d0f82a8ac85e9cb31c49b9edf12 | 3,369 | py | Python | oneshot/alfassy/setops_funcs.py | nganltp/admicro-LaSO | 857d67a40af437ab57068fb0de35e4ada56c6209 | [
"BSD-3-Clause"
] | 83 | 2019-04-14T06:58:15.000Z | 2022-03-01T01:34:03.000Z | oneshot/alfassy/setops_funcs.py | leokarlin/LaSO | 8941bdc9316361ad03dbc2bcabd4bf9922c0ecc7 | [
"BSD-3-Clause"
] | 17 | 2019-04-28T04:26:24.000Z | 2022-01-19T15:37:42.000Z | oneshot/alfassy/setops_funcs.py | nganltp/admicro-LaSO | 857d67a40af437ab57068fb0de35e4ada56c6209 | [
"BSD-3-Clause"
] | 15 | 2019-09-05T04:22:10.000Z | 2022-01-13T15:31:25.000Z | import numpy as np
import torch
def set_subtraction_operation(labels1, labels2):
batch_size = labels1.shape[0]
classesNum = labels1.shape[1]
# print("labels1: ", labels1)
# print("labels2: ", labels2)
subLabels = []
for vecNum in range(batch_size):
subLabelPerClass = []
for cla... | 33.029412 | 85 | 0.636094 | 324 | 3,369 | 6.521605 | 0.117284 | 0.042593 | 0.036914 | 0.082347 | 0.86654 | 0.816848 | 0.78088 | 0.732134 | 0.732134 | 0.706105 | 0 | 0.029482 | 0.254972 | 3,369 | 102 | 86 | 33.029412 | 0.812351 | 0.108934 | 0 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077922 | false | 0 | 0.025974 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c155a8326a21b195b579327a1cac812fe9eecc2e | 20,095 | py | Python | sdk/python/pulumi_ucloud/udpn/udpn_connection.py | AaronFriel/pulumi-ucloud | 199278786dddf46bdd370f3f805e30b279c63ff2 | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2021-08-18T04:55:38.000Z | 2021-09-08T07:59:24.000Z | sdk/python/pulumi_ucloud/udpn/udpn_connection.py | AaronFriel/pulumi-ucloud | 199278786dddf46bdd370f3f805e30b279c63ff2 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2022-01-28T17:59:37.000Z | 2022-01-29T03:44:09.000Z | sdk/python/pulumi_ucloud/udpn/udpn_connection.py | AaronFriel/pulumi-ucloud | 199278786dddf46bdd370f3f805e30b279c63ff2 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2021-06-23T07:10:40.000Z | 2021-06-23T09:25:12.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 51.002538 | 272 | 0.664643 | 2,594 | 20,095 | 4.998843 | 0.094834 | 0.057685 | 0.060076 | 0.039022 | 0.850852 | 0.829413 | 0.816303 | 0.79818 | 0.794247 | 0.765096 | 0 | 0.007117 | 0.23782 | 20,095 | 393 | 273 | 51.132316 | 0.839514 | 0.476138 | 0 | 0.653846 | 1 | 0 | 0.090662 | 0.004292 | 0 | 0 | 0 | 0 | 0 | 1 | 0.158654 | false | 0.004808 | 0.024038 | 0 | 0.278846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a9e283f327135ae1b4714373bf88c24facb4240e | 5,378 | py | Python | Bubblez/classes/api/send/User.py | ProjectBubblez/Bubblez.py | 332ca7206850f4faee63badd804e62972e6d4bef | [
"MIT"
] | 1 | 2021-11-09T20:45:41.000Z | 2021-11-09T20:45:41.000Z | Bubblez/classes/api/send/User.py | ProjectBubblez/Bubblez.py | 332ca7206850f4faee63badd804e62972e6d4bef | [
"MIT"
] | null | null | null | Bubblez/classes/api/send/User.py | ProjectBubblez/Bubblez.py | 332ca7206850f4faee63badd804e62972e6d4bef | [
"MIT"
] | null | null | null | from ...Color import Color
from ...Log import logTime
from ..receive.User import User as ReceivedUser
from ..receive.Post import Post as ReceivedPost
from ..receive.Reply import Reply as ReceivedReply
import requests, traceback, json
class User:
def __init__(self, client) -> None:
self.client = client
... | 52.72549 | 172 | 0.58293 | 668 | 5,378 | 4.615269 | 0.124252 | 0.097308 | 0.074927 | 0.067467 | 0.8482 | 0.8482 | 0.839442 | 0.829387 | 0.829387 | 0.829387 | 0 | 0.004656 | 0.281145 | 5,378 | 102 | 173 | 52.72549 | 0.792809 | 0.016735 | 0 | 0.744186 | 0 | 0.151163 | 0.397812 | 0.201881 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.069767 | 0 | 0.267442 | 0.325581 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a9ea49815628300bc2e5cbaf0e6f492ef862ab64 | 6,407 | py | Python | loldib/getratings/models/NA/na_nasus/na_nasus_top.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_nasus/na_nasus_top.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_nasus/na_nasus_top.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | from getratings.models.ratings import Ratings
class NA_Nasus_Top_Aatrox(Ratings):
pass
class NA_Nasus_Top_Ahri(Ratings):
pass
class NA_Nasus_Top_Akali(Ratings):
pass
class NA_Nasus_Top_Alistar(Ratings):
pass
class NA_Nasus_Top_Amumu(Ratings):
pass
class NA_Nasus_Top_Anivia(Ratings):
pass
... | 15.364508 | 46 | 0.761667 | 972 | 6,407 | 4.59465 | 0.151235 | 0.216301 | 0.370802 | 0.463502 | 0.797582 | 0.797582 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173404 | 6,407 | 416 | 47 | 15.401442 | 0.843278 | 0 | 0 | 0.498195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.498195 | 0.00361 | 0 | 0.501805 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 7 |
e7d817d3a1000746d41e4624d33beec006982bcb | 309,261 | py | Python | sfof/python/euclid/dm/_stc.py | sfarrens/sfof | f887abc0dbd1587fd7fbc7148b4704d1b5f4cdac | [
"MIT"
] | 13 | 2017-06-15T16:56:29.000Z | 2021-12-08T20:44:39.000Z | sfof/python/euclid/dm/_stc.py | umikanero/sfof | 9aa7b09ccb12311a68373e4e516dee82fa5c428e | [
"MIT"
] | 6 | 2020-05-30T07:40:59.000Z | 2020-11-30T12:25:14.000Z | sfof/python/euclid/dm/_stc.py | umikanero/sfof | 9aa7b09ccb12311a68373e4e516dee82fa5c428e | [
"MIT"
] | 4 | 2018-02-24T02:12:24.000Z | 2021-06-03T07:22:15.000Z | # /home/sartor/pymodule/euclid/dm/_stc.py
# -*- coding: utf-8 -*-
# PyXB bindings for NM:c85a7aef9dd35afb45dde402fdc86e2ca92a56ad
# Generated 2014-07-24 16:26:39.932475 by PyXB version 1.2.3
# Namespace http://euclid.esa.org/schema/bas/imp/stc [xmlns:stc]
import pyxb
import pyxb.binding
import pyxb.binding.saxer
impor... | 67.642388 | 1,432 | 0.772787 | 39,425 | 309,261 | 5.884134 | 0.029474 | 0.016139 | 0.024209 | 0.054521 | 0.848195 | 0.839531 | 0.816697 | 0.793618 | 0.787915 | 0.759899 | 0 | 0.017427 | 0.106392 | 309,261 | 4,571 | 1,433 | 67.657187 | 0.821999 | 0.069336 | 0 | 0.591366 | 1 | 0.182408 | 0.295084 | 0.238796 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033431 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
820d30b93ddfb7e5936faf6c501c7596f1cff558 | 19,669 | py | Python | parser/fase2/team03/parse/expressions/expressions_math.py | Josue-Zea/tytus | f9e4be9a8c03eb698fade7a748972e4f52d46685 | [
"MIT"
] | 35 | 2020-12-07T03:11:43.000Z | 2021-04-15T17:38:16.000Z | parser/fase2/team03/parse/expressions/expressions_math.py | Josue-Zea/tytus | f9e4be9a8c03eb698fade7a748972e4f52d46685 | [
"MIT"
] | 47 | 2020-12-09T01:29:09.000Z | 2021-01-13T05:37:50.000Z | parser/fase2/team03/parse/expressions/expressions_math.py | Josue-Zea/tytus | f9e4be9a8c03eb698fade7a748972e4f52d46685 | [
"MIT"
] | 556 | 2020-12-07T03:13:31.000Z | 2021-06-17T17:41:10.000Z | import math
import random
import numpy as np
from parse.ast_node import ASTNode
from parse.errors import Error, ErrorType
# From here on, classes describing various mathematical operations
class Abs(ASTNode):
def __init__(self, exp, line, column, graph_ref):
ASTNode.__init__(self, line, column)
s... | 33.622222 | 120 | 0.59215 | 2,389 | 19,669 | 4.748849 | 0.053997 | 0.134068 | 0.086029 | 0.085677 | 0.904716 | 0.897488 | 0.836051 | 0.830234 | 0.826267 | 0.825386 | 0 | 0.008632 | 0.287356 | 19,669 | 584 | 121 | 33.679795 | 0.800742 | 0.02537 | 0 | 0.770878 | 0 | 0.006424 | 0.11753 | 0.042743 | 0 | 0 | 0 | 0.001712 | 0 | 1 | 0.173448 | false | 0 | 0.010707 | 0 | 0.366167 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
41b64c0683df4d03aea1b1d74decc922147854b9 | 424 | py | Python | class_wrapping/test.py | shinsumicco/pybind11-tutorials | b2f544653035172f1a7e489942dc8b796e7df72b | [
"MIT"
] | null | null | null | class_wrapping/test.py | shinsumicco/pybind11-tutorials | b2f544653035172f1a7e489942dc8b796e7df72b | [
"MIT"
] | null | null | null | class_wrapping/test.py | shinsumicco/pybind11-tutorials | b2f544653035172f1a7e489942dc8b796e7df72b | [
"MIT"
] | null | null | null | import stack
st = stack.stack()
print("size: {}".format(st.get_size()))
print("{}\n".format(st.get_stacked()))
st.push(1)
print("size: {}".format(st.get_size()))
print("{}\n".format(st.get_stacked()))
st.push(5)
st.push(24)
print("size: {}".format(st.get_size()))
print("{}\n".format(st.get_stacked()))
for i in range... | 22.315789 | 39 | 0.627358 | 71 | 424 | 3.633803 | 0.267606 | 0.248062 | 0.341085 | 0.263566 | 0.790698 | 0.790698 | 0.790698 | 0.790698 | 0.790698 | 0.790698 | 0 | 0.017949 | 0.080189 | 424 | 18 | 40 | 23.555556 | 0.64359 | 0 | 0 | 0.533333 | 0 | 0 | 0.113208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.533333 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 9 |
68cddb377ca5949dd00274d33326936b12e9e36a | 59,719 | py | Python | treads/recovery_trajectory.py | galvisf/treads | 89e287dd1541c103f62d73479b14119166bb29ae | [
"MIT"
] | null | null | null | treads/recovery_trajectory.py | galvisf/treads | 89e287dd1541c103f62d73479b14119166bb29ae | [
"MIT"
] | null | null | null | treads/recovery_trajectory.py | galvisf/treads | 89e287dd1541c103f62d73479b14119166bb29ae | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (c) 2021 Pouria Kourehpaz.
#
# This file is part of downtime assessment framework.
#
# This code is developed to support the framework to estimate earthquake induced downtime
# and recovery trajectory of residential buildings
# proposed by Molina Hutt et al. (2021).
#
#... | 64.145005 | 199 | 0.616052 | 12,131 | 59,719 | 2.709505 | 0.02745 | 0.061334 | 0.060239 | 0.100399 | 0.874258 | 0.864888 | 0.853905 | 0.847729 | 0.832487 | 0.823846 | 0 | 0.050644 | 0.205462 | 59,719 | 931 | 200 | 64.145005 | 0.642079 | 0.048259 | 0 | 0.833777 | 0 | 0.00133 | 0.015332 | 0.000376 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00133 | false | 0 | 0.003989 | 0 | 0.006649 | 0.00133 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6bab2817a9da02598c809001f74b35987409e2c6 | 208 | py | Python | app/home/views.py | sunshineinwater/flask-Purchase_and_sale | 6fb845da59e4b25737b67d344cbcb4185e93958c | [
"MIT"
] | 122 | 2019-04-09T03:21:31.000Z | 2022-03-27T13:56:08.000Z | app/home/views.py | zhuhaiv5/flask-Purchase_and_sale | 6fb845da59e4b25737b67d344cbcb4185e93958c | [
"MIT"
] | 15 | 2019-04-25T02:52:48.000Z | 2021-12-19T09:35:45.000Z | app/home/views.py | zhuhaiv5/flask-Purchase_and_sale | 6fb845da59e4b25737b67d344cbcb4185e93958c | [
"MIT"
] | 63 | 2019-04-08T08:25:48.000Z | 2022-03-27T13:56:11.000Z | #-*- coding:utf-8 -*-
# author:Agam
# datetime:2018-11-05
from app.home import home
from flask import render_template
@home.route("/")
def index():
return render_template("home/index.html")
| 17.333333 | 46 | 0.663462 | 29 | 208 | 4.689655 | 0.724138 | 0.205882 | 0.264706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052941 | 0.182692 | 208 | 11 | 47 | 18.909091 | 0.747059 | 0.25 | 0 | 0 | 0 | 0 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0.2 | 0.8 | 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 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
6bd0fb396443947b041a6bddf52890b8746af370 | 158 | py | Python | backend/config/settings/production.py | r0tii/process-status-viewer | 6c94a7a6f5e37f37f63d6140c806a0b6fc49ae1c | [
"MIT"
] | null | null | null | backend/config/settings/production.py | r0tii/process-status-viewer | 6c94a7a6f5e37f37f63d6140c806a0b6fc49ae1c | [
"MIT"
] | null | null | null | backend/config/settings/production.py | r0tii/process-status-viewer | 6c94a7a6f5e37f37f63d6140c806a0b6fc49ae1c | [
"MIT"
] | null | null | null | from .base import * # noqa
from .base import env
# GENERAL
# -------------------------------------------------------------------------
DEBUG = env("DEBUG")
| 22.571429 | 75 | 0.348101 | 12 | 158 | 4.583333 | 0.583333 | 0.290909 | 0.509091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120253 | 158 | 6 | 76 | 26.333333 | 0.395683 | 0.544304 | 0 | 0 | 0 | 0 | 0.073529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
6bd383d4d463adbae25feee2fc5688bdf68cdeed | 123 | py | Python | gennav/controllers/__init__.py | threewisemonkeys-as/gennav | 41e86b841a0ce44402f31debc65d5c82109b13a3 | [
"MIT"
] | null | null | null | gennav/controllers/__init__.py | threewisemonkeys-as/gennav | 41e86b841a0ce44402f31debc65d5c82109b13a3 | [
"MIT"
] | null | null | null | gennav/controllers/__init__.py | threewisemonkeys-as/gennav | 41e86b841a0ce44402f31debc65d5c82109b13a3 | [
"MIT"
] | null | null | null | from gennav.controllers.base import Controller # noqa: F401
from gennav.controllers.PID import OmniWheelPID # noqa: F401
| 41 | 61 | 0.804878 | 16 | 123 | 6.1875 | 0.625 | 0.20202 | 0.424242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056075 | 0.130081 | 123 | 2 | 62 | 61.5 | 0.869159 | 0.170732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
2e11eaaf24ec9e349fa9533a375fe9fb671c1bf4 | 155 | py | Python | runway/tests/handlers/__init__.py | paul-duffy/runway | a0c22eb7ca7b55df5317bdda92c08c4bb39569d2 | [
"Apache-2.0"
] | 1 | 2020-02-25T21:08:00.000Z | 2020-02-25T21:08:00.000Z | runway/tests/handlers/__init__.py | paul-duffy/runway | a0c22eb7ca7b55df5317bdda92c08c4bb39569d2 | [
"Apache-2.0"
] | 2 | 2020-01-07T15:00:55.000Z | 2020-01-07T15:03:25.000Z | runway/tests/handlers/__init__.py | voodooGQ/runway | 8a744f33b39f1342022f1b57db996bb843e4556c | [
"Apache-2.0"
] | null | null | null | """Import classes."""
# pylint: disable = wildcard-import
from .cfn_lint import * # noqa
from .script import * # noqa
from .yaml_lint import * # noqa
| 19.375 | 35 | 0.677419 | 20 | 155 | 5.15 | 0.55 | 0.291262 | 0.271845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 155 | 7 | 36 | 22.142857 | 0.824 | 0.419355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
2e1dc349c5ba1c2829ac7de04be9334323678e6e | 32,827 | py | Python | remodet_repository_wdh_part/Projects/PyLib/NetLib/PoseNet.py | UrwLee/Remo_experience | a59d5b9d6d009524672e415c77d056bc9dd88c72 | [
"MIT"
] | null | null | null | remodet_repository_wdh_part/Projects/PyLib/NetLib/PoseNet.py | UrwLee/Remo_experience | a59d5b9d6d009524672e415c77d056bc9dd88c72 | [
"MIT"
] | null | null | null | remodet_repository_wdh_part/Projects/PyLib/NetLib/PoseNet.py | UrwLee/Remo_experience | a59d5b9d6d009524672e415c77d056bc9dd88c72 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import caffe
from caffe import layers as L
from caffe import params as P
from caffe.proto import caffe_pb2
import sys
sys.dont_write_bytecode = True
from VggNet import *
def Pose_Stage1_COCO(net, from_layer="relu4_4_CPM", out_layer="concat_stage2", lr=1, decay=1):
kwargs = {
... | 57.794014 | 152 | 0.671063 | 5,211 | 32,827 | 3.883324 | 0.041067 | 0.037804 | 0.04151 | 0.02965 | 0.977861 | 0.966495 | 0.964519 | 0.961109 | 0.960269 | 0.952659 | 0 | 0.056064 | 0.18497 | 32,827 | 567 | 153 | 57.895944 | 0.70028 | 0.0329 | 0 | 0.86875 | 0 | 0 | 0.163972 | 0.028292 | 0 | 0 | 0 | 0 | 0.016667 | 1 | 0.016667 | false | 0 | 0.014583 | 0 | 0.047917 | 0.004167 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2e9028cb534c7494f90383884ebc8428e472835a | 8,114 | py | Python | symphony/cli/tests/pyinventory_tests/grpc/rpc_pb2_grpc.py | idoshveki/magma | 8022267bd8b8d94913fbb9a0836880361d785446 | [
"BSD-3-Clause"
] | 2 | 2020-11-05T18:58:26.000Z | 2021-02-09T06:42:49.000Z | symphony/cli/tests/pyinventory_tests/grpc/rpc_pb2_grpc.py | idoshveki/magma | 8022267bd8b8d94913fbb9a0836880361d785446 | [
"BSD-3-Clause"
] | 10 | 2021-03-31T20:19:00.000Z | 2022-02-19T07:09:57.000Z | symphony/cli/tests/pyinventory_tests/grpc/rpc_pb2_grpc.py | idoshveki/magma | 8022267bd8b8d94913fbb9a0836880361d785446 | [
"BSD-3-Clause"
] | 3 | 2020-08-20T18:45:34.000Z | 2020-08-20T20:18:42.000Z | #!/usr/bin/env python3
# pyre-ignore-all-errors
# @generated AUTOGENERATED file. Do not Change!
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
from google.protobuf import wrappers_pb2 as google_dot_protobuf_... | 36.54955 | 95 | 0.749445 | 874 | 8,114 | 6.625858 | 0.10984 | 0.027974 | 0.052841 | 0.062165 | 0.84355 | 0.781903 | 0.76757 | 0.72181 | 0.72181 | 0.690209 | 0 | 0.005813 | 0.173158 | 8,114 | 221 | 96 | 36.714932 | 0.857356 | 0.133473 | 0 | 0.585987 | 1 | 0 | 0.099296 | 0.034631 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089172 | false | 0.089172 | 0.025478 | 0 | 0.152866 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
cf01fca2d9349ce6aab8f7e6b714d39c337e8ef4 | 168 | py | Python | mogp_emulator/linalg/__init__.py | EXAUQ/mogp-emulator | 9d5772135498bdf5b95b44b4afb065c2c266f899 | [
"MIT"
] | null | null | null | mogp_emulator/linalg/__init__.py | EXAUQ/mogp-emulator | 9d5772135498bdf5b95b44b4afb065c2c266f899 | [
"MIT"
] | null | null | null | mogp_emulator/linalg/__init__.py | EXAUQ/mogp-emulator | 9d5772135498bdf5b95b44b4afb065c2c266f899 | [
"MIT"
] | null | null | null | from mogp_emulator.linalg.cholesky import cholesky_factor
from mogp_emulator.linalg.linalg_utils import calc_Ainv, calc_A_deriv, calc_mean_params, calc_R, logdet_deriv
| 56 | 109 | 0.880952 | 27 | 168 | 5.074074 | 0.592593 | 0.116788 | 0.233577 | 0.321168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 168 | 2 | 110 | 84 | 0.878205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
cf37bcfd987f5e4b93151e9df21128ba5b1e0486 | 221 | py | Python | codewars/7kyu/amrlotfy77/Sum of Triangular Numbers/test_bench.py | ictcubeMENA/Training_one | dff6bee96ba42babe4888e5cf9a9448a6fd93fc3 | [
"MIT"
] | null | null | null | codewars/7kyu/amrlotfy77/Sum of Triangular Numbers/test_bench.py | ictcubeMENA/Training_one | dff6bee96ba42babe4888e5cf9a9448a6fd93fc3 | [
"MIT"
] | 2 | 2019-01-22T10:53:42.000Z | 2019-01-31T08:02:48.000Z | codewars/7kyu/amrlotfy77/Sum of Triangular Numbers/test_bench.py | ictcubeMENA/Training_one | dff6bee96ba42babe4888e5cf9a9448a6fd93fc3 | [
"MIT"
] | 13 | 2019-01-22T10:37:42.000Z | 2019-01-25T13:30:43.000Z | from main import sum_triangular_numbers, sum_triangular_numbers1
def test1(benchmark):
assert benchmark(sum_triangular_numbers, 6) == 56
def test(benchmark):
assert benchmark(sum_triangular_numbers1, 6) == 56
| 22.1 | 64 | 0.782805 | 29 | 221 | 5.689655 | 0.482759 | 0.315152 | 0.242424 | 0.327273 | 0.448485 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047368 | 0.140271 | 221 | 9 | 65 | 24.555556 | 0.821053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.4 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
cf7d159f30cbb57dd196bf0e53457d87edd76e02 | 4,399 | py | Python | short-read-mngs/test/non_host_alignment/test_RunAlignment.py | truwl/idseq-workflows | d9b8f5af8a285b4bfed6bf8f7dc4b3ccf40c8a6d | [
"MIT"
] | 30 | 2020-05-23T21:23:38.000Z | 2022-03-24T17:18:47.000Z | short-read-mngs/test/non_host_alignment/test_RunAlignment.py | grunwaldlab/idseq-workflows | cacfaa02f014ba06b8fb69e62911ab7fd5d88d9a | [
"MIT"
] | 65 | 2020-05-27T14:21:26.000Z | 2021-11-18T17:58:56.000Z | short-read-mngs/test/non_host_alignment/test_RunAlignment.py | grunwaldlab/idseq-workflows | cacfaa02f014ba06b8fb69e62911ab7fd5d88d9a | [
"MIT"
] | 12 | 2020-08-24T12:00:28.000Z | 2022-02-03T08:28:02.000Z | import os
import json
import csv
import tempfile
def test_RunAlignmentBlacklist(util, short_read_mngs_bench3_viral_outputs):
task_name = "RunAlignment_gsnap_out"
# load the task's inputs from the end-to-end workflow test
inputs, _ = util.miniwdl_inputs_outputs(
os.path.join(
short_read... | 37.598291 | 100 | 0.621278 | 574 | 4,399 | 4.58885 | 0.167247 | 0.042521 | 0.039484 | 0.057707 | 0.877752 | 0.877752 | 0.856492 | 0.856492 | 0.856492 | 0.856492 | 0 | 0.026691 | 0.250511 | 4,399 | 116 | 101 | 37.922414 | 0.772217 | 0.025688 | 0 | 0.717391 | 0 | 0 | 0.258931 | 0.104833 | 0 | 0 | 0 | 0 | 0.108696 | 1 | 0.021739 | false | 0 | 0.043478 | 0 | 0.065217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
d8469748f473355713a9f873a481b710c52f9a0a | 954 | py | Python | COS120/EXAMPLES/turtle.py | thejayhaykid/Python | 641c33b94762f0cace203dcf4cc121571625ab02 | [
"MIT"
] | null | null | null | COS120/EXAMPLES/turtle.py | thejayhaykid/Python | 641c33b94762f0cace203dcf4cc121571625ab02 | [
"MIT"
] | null | null | null | COS120/EXAMPLES/turtle.py | thejayhaykid/Python | 641c33b94762f0cace203dcf4cc121571625ab02 | [
"MIT"
] | null | null | null | import cTurtle
t=cTurtle.Turtle()
def drawOctogon():
t.forward(50)
t.right(45)
t.forward(50)
t.right(45)
t.forward(50)
t.right(45)
t.forward(50)
t.right(45)
t.forward(50)
t.right(45)
t.forward(50)
t.right(45)
t.forward(50)
t.right(45)
t.forward(50)
t.righ... | 13.068493 | 18 | 0.671908 | 151 | 954 | 4.245033 | 0.072848 | 0.299532 | 0.299532 | 0.711388 | 0.936037 | 0.936037 | 0.936037 | 0.936037 | 0.936037 | 0.936037 | 0 | 0.098039 | 0.144654 | 954 | 72 | 19 | 13.25 | 0.6875 | 0 | 0 | 0.955224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014925 | false | 0 | 0.014925 | 0 | 0.029851 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
d86b08e98218ef589f031758939a632f27e23a1b | 126 | py | Python | json_content_validator/__init__.py | daka83/json_content_validator | abfef913861842532abeb32f9cb76322bf9dfbe9 | [
"MIT"
] | 1 | 2019-03-13T15:52:49.000Z | 2019-03-13T15:52:49.000Z | json_content_validator/__init__.py | daka83/json_content_validator | abfef913861842532abeb32f9cb76322bf9dfbe9 | [
"MIT"
] | null | null | null | json_content_validator/__init__.py | daka83/json_content_validator | abfef913861842532abeb32f9cb76322bf9dfbe9 | [
"MIT"
] | null | null | null | from json_content_validator.validators import *
from json_content_validator.json_content_validator import JSONContentValidator | 63 | 78 | 0.920635 | 15 | 126 | 7.333333 | 0.466667 | 0.3 | 0.545455 | 0.436364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 126 | 2 | 78 | 63 | 0.92437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
2b2067d8f7d4a88437c2f76271ee976118f4cb3e | 52,480 | py | Python | Economia/economia.py | Williancc1557/bot-python | c2fe9718ad07b3bfa5f3bb218cbe509f95b98027 | [
"MIT"
] | null | null | null | Economia/economia.py | Williancc1557/bot-python | c2fe9718ad07b3bfa5f3bb218cbe509f95b98027 | [
"MIT"
] | null | null | null | Economia/economia.py | Williancc1557/bot-python | c2fe9718ad07b3bfa5f3bb218cbe509f95b98027 | [
"MIT"
] | null | null | null | import discord
import asyncio
import discord
import asyncio
from discord.ext import commands
import random
from discord.ext.commands.cooldowns import BucketType
import datetime
import psycopg2
from Principais.principais import bot, mydb, cursor
bot = bot
mydb = mydb
cursor = cursor
async def Criar_conta(ctx):
... | 38.475073 | 291 | 0.538338 | 5,514 | 52,480 | 5.082517 | 0.078346 | 0.031472 | 0.045495 | 0.057627 | 0.806922 | 0.773452 | 0.755468 | 0.738591 | 0.709866 | 0.680785 | 0 | 0.082669 | 0.355069 | 52,480 | 1,363 | 292 | 38.503302 | 0.745347 | 0.008556 | 0 | 0.71928 | 0 | 0.073093 | 0.309266 | 0.048743 | 0 | 0 | 0.008576 | 0 | 0 | 1 | 0.013771 | false | 0.003178 | 0.010593 | 0.013771 | 0.084746 | 0.01589 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
9924427d0fba393f8d369d7c2c9afa1bd85a741d | 21,471 | py | Python | projects/cats/tests/07.py | jjllzhang/CS61A | 57b68c7c06999210d96499f6d84e4ec99085d396 | [
"MIT"
] | 1 | 2022-01-22T11:45:01.000Z | 2022-01-22T11:45:01.000Z | projects/cats/tests/07.py | jjllzhang/CS61A | 57b68c7c06999210d96499f6d84e4ec99085d396 | [
"MIT"
] | null | null | null | projects/cats/tests/07.py | jjllzhang/CS61A | 57b68c7c06999210d96499f6d84e4ec99085d396 | [
"MIT"
] | null | null | null | test = {
'name': 'Problem 7',
'points': 3,
'suites': [
{
'cases': [
{
'code': r"""
>>> big_limit = 10
>>> meowstake_matches("wird", "wiry", big_limit)
1
>>> meowstake_matches("wird", "bird", big_limit)
1
>>> meowstake_matches(... | 24.482326 | 106 | 0.348703 | 1,716 | 21,471 | 4.280886 | 0.164336 | 0.254833 | 0.238361 | 0.308467 | 0.772665 | 0.755649 | 0.720937 | 0.709502 | 0.70324 | 0.676559 | 0 | 0.030813 | 0.473988 | 21,471 | 876 | 107 | 24.510274 | 0.619621 | 0 | 0 | 0.471461 | 0 | 0.049087 | 0.585907 | 0.145871 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.003425 | 0 | 0.003425 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
9937dca1a52f7735c72b5888b0b9fa53cf98c139 | 87 | py | Python | point_gcn/__init__.py | gyshgx868/pc-classification | 1667f08785e89bbe475fe7b4dbf8141a29d8c371 | [
"MIT"
] | 7 | 2020-10-23T10:23:14.000Z | 2021-10-06T02:04:02.000Z | point_gcn/__init__.py | gyshgx868/pc-classification | 1667f08785e89bbe475fe7b4dbf8141a29d8c371 | [
"MIT"
] | null | null | null | point_gcn/__init__.py | gyshgx868/pc-classification | 1667f08785e89bbe475fe7b4dbf8141a29d8c371 | [
"MIT"
] | null | null | null | from point_gcn import dataset
from point_gcn import models
from point_gcn import tools
| 21.75 | 29 | 0.862069 | 15 | 87 | 4.8 | 0.466667 | 0.375 | 0.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 87 | 3 | 30 | 29 | 0.96 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
9996b3aaeac54e992f7a30031977cade9cb8257e | 31,057 | py | Python | OttBands1min/vars.py | ysdede/jesse_strategies | ade9f4ba42cec11207c766d267b9d8feb8bce648 | [
"CC0-1.0"
] | 38 | 2021-09-18T15:33:28.000Z | 2022-02-21T17:29:08.000Z | OttBands1min/vars.py | ysdede/jesse_strategies | ade9f4ba42cec11207c766d267b9d8feb8bce648 | [
"CC0-1.0"
] | 4 | 2022-01-02T14:46:12.000Z | 2022-02-16T18:39:41.000Z | OttBands1min/vars.py | ysdede/jesse_strategies | ade9f4ba42cec11207c766d267b9d8feb8bce648 | [
"CC0-1.0"
] | 11 | 2021-10-19T06:21:43.000Z | 2022-02-21T17:29:10.000Z | # len = 1001
tp_qtys = (
(0.0, 0.0, 0.0, 0.0, 1.0),
(0.0, 0.0, 0.0, 0.1, 0.9),
(0.0, 0.0, 0.0, 0.2, 0.8),
(0.0, 0.0, 0.0, 0.3, 0.7),
(0.0, 0.0, 0.0, 0.4, 0.6),
(0.0, 0.0, 0.0, 0.5, 0.5),
(0.0, 0.0, 0.0, 0.6, 0.4),
(0.0, 0.0, 0.0, 0.7, 0.3),
(0.0, 0.0, 0.0, 0.8, 0.2),
(0.0, 0.0, 0... | 30.902488 | 30 | 0.322761 | 10,014 | 31,057 | 1.000899 | 0.001398 | 0.570488 | 0.52619 | 0.262197 | 0.998703 | 0.998703 | 0.998703 | 0.998703 | 0.998603 | 0.998603 | 0 | 0.454356 | 0.290337 | 31,057 | 1,004 | 31 | 30.933267 | 0.000408 | 0.000322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 |
5afa42f9ecb6f39d431db39a6f61afac94047040 | 34,781 | py | Python | sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/operations/operationalization_clusters_operations.py | iscai-msft/azure-sdk-for-python | 83715b95c41e519d5be7f1180195e2fba136fc0f | [
"MIT"
] | 8 | 2021-01-13T23:44:08.000Z | 2021-03-17T10:13:36.000Z | sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/operations/operationalization_clusters_operations.py | iscai-msft/azure-sdk-for-python | 83715b95c41e519d5be7f1180195e2fba136fc0f | [
"MIT"
] | 226 | 2019-07-24T07:57:21.000Z | 2019-10-15T01:07:24.000Z | sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/operations/operationalization_clusters_operations.py | iscai-msft/azure-sdk-for-python | 83715b95c41e519d5be7f1180195e2fba136fc0f | [
"MIT"
] | 3 | 2016-05-03T20:49:46.000Z | 2017-10-05T21:05:27.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 48.576816 | 202 | 0.671056 | 3,647 | 34,781 | 6.187003 | 0.072937 | 0.025705 | 0.030137 | 0.028718 | 0.884329 | 0.877859 | 0.867931 | 0.857782 | 0.848608 | 0.848608 | 0 | 0.005969 | 0.234151 | 34,781 | 715 | 203 | 48.644755 | 0.841123 | 0.269975 | 0 | 0.827027 | 0 | 0 | 0.183637 | 0.109949 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056757 | false | 0 | 0.013514 | 0 | 0.159459 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5aff9747fd0be0b2af66fb74e8f9516adfb401ea | 5,208 | py | Python | test/test_sequence_alignment.py | DavidHribek/pero-ocr | 8d274282813878b3e31dd560563a36b3f02e5c33 | [
"BSD-3-Clause"
] | 27 | 2020-03-20T08:25:39.000Z | 2022-03-08T11:30:50.000Z | test/test_sequence_alignment.py | DavidHribek/pero-ocr | 8d274282813878b3e31dd560563a36b3f02e5c33 | [
"BSD-3-Clause"
] | 28 | 2020-02-11T17:27:35.000Z | 2022-02-09T23:36:24.000Z | test/test_sequence_alignment.py | DavidHribek/pero-ocr | 8d274282813878b3e31dd560563a36b3f02e5c33 | [
"BSD-3-Clause"
] | 9 | 2020-03-16T12:22:03.000Z | 2022-03-16T12:49:06.000Z | import unittest
from pero_ocr.sequence_alignment import levenshtein_distance
from pero_ocr.sequence_alignment import levenshtein_alignment
from pero_ocr.sequence_alignment import levenshtein_alignment_path
class TestLevenshteinDistance(unittest.TestCase):
def test_trivial_match(self):
a = ['a']
b ... | 29.76 | 94 | 0.493856 | 650 | 5,208 | 3.783077 | 0.064615 | 0.050427 | 0.061 | 0.05978 | 0.926393 | 0.915413 | 0.913379 | 0.882066 | 0.821472 | 0.820659 | 0 | 0.011542 | 0.301267 | 5,208 | 174 | 95 | 29.931034 | 0.664193 | 0 | 0 | 0.726619 | 0 | 0 | 0.03149 | 0 | 0 | 0 | 0 | 0 | 0.201439 | 1 | 0.201439 | false | 0 | 0.028777 | 0 | 0.251799 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
51d4e3f5b27effd9bda7762ef8f370ce4967d20e | 5,956 | py | Python | yt/utilities/answer_testing/boolean_region_tests.py | danielgrassinger/yt_new_frontend | 5f91d2fb8721c4c5da0af543a6256ed979cd9fc9 | [
"BSD-3-Clause-Clear"
] | null | null | null | yt/utilities/answer_testing/boolean_region_tests.py | danielgrassinger/yt_new_frontend | 5f91d2fb8721c4c5da0af543a6256ed979cd9fc9 | [
"BSD-3-Clause-Clear"
] | 1 | 2016-04-05T22:30:14.000Z | 2016-04-05T22:30:14.000Z | yt/utilities/answer_testing/boolean_region_tests.py | danielgrassinger/yt_new_frontend | 5f91d2fb8721c4c5da0af543a6256ed979cd9fc9 | [
"BSD-3-Clause-Clear"
] | 1 | 2020-12-05T05:51:09.000Z | 2020-12-05T05:51:09.000Z | from __future__ import absolute_import
from yt.mods import *
import matplotlib
import pylab
from .output_tests import SingleOutputTest, YTDatasetTest, create_test
import hashlib
import numpy as np
# Tests to make sure that grid quantities are identical that should
# be identical for the AND operator.
class TestBoolean... | 35.664671 | 71 | 0.5863 | 865 | 5,956 | 3.924855 | 0.105202 | 0.098969 | 0.106038 | 0.127246 | 0.889838 | 0.873638 | 0.873638 | 0.873638 | 0.85243 | 0.85243 | 0 | 0.039434 | 0.276192 | 5,956 | 166 | 72 | 35.879518 | 0.748086 | 0.080087 | 0 | 0.850394 | 0 | 0 | 0.026388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.141732 | false | 0 | 0.055118 | 0.047244 | 0.291339 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5c6b1e6dc4615fe67f072bc9dd409992ed042723 | 83 | py | Python | hotair/template/utils.py | serviper/hota | b132d94af7217ce90636bf1af4f207dc01d00116 | [
"MIT"
] | null | null | null | hotair/template/utils.py | serviper/hota | b132d94af7217ce90636bf1af4f207dc01d00116 | [
"MIT"
] | null | null | null | hotair/template/utils.py | serviper/hota | b132d94af7217ce90636bf1af4f207dc01d00116 | [
"MIT"
] | null | null | null | from secrets import token_urlsafe
def make_nonce():
return token_urlsafe(32)
| 13.833333 | 33 | 0.771084 | 12 | 83 | 5.083333 | 0.833333 | 0.393443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 0.168675 | 83 | 5 | 34 | 16.6 | 0.855072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 8 |
5c72749fe2683032396d221d0e2fb2ea3d8783fb | 41 | py | Python | pyqt_listwidget_and_stackedwidget/__init__.py | yjg30737/pyqt-listwidget-and-stackedwidget | 6675da178a8e73b2f9abecdee001595c43550ac5 | [
"MIT"
] | null | null | null | pyqt_listwidget_and_stackedwidget/__init__.py | yjg30737/pyqt-listwidget-and-stackedwidget | 6675da178a8e73b2f9abecdee001595c43550ac5 | [
"MIT"
] | null | null | null | pyqt_listwidget_and_stackedwidget/__init__.py | yjg30737/pyqt-listwidget-and-stackedwidget | 6675da178a8e73b2f9abecdee001595c43550ac5 | [
"MIT"
] | null | null | null | from .listWidgetAndStackedWidget import * | 41 | 41 | 0.878049 | 3 | 41 | 12 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 41 | 1 | 41 | 41 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
5c72f1fe9c9a21fec709642745edccb868cd57fd | 8,469 | py | Python | tests/unit/test_fp16.py | mbeacom/DeepSpeed | 012d91df67a9ddd66df847c7608481af027cace9 | [
"MIT"
] | null | null | null | tests/unit/test_fp16.py | mbeacom/DeepSpeed | 012d91df67a9ddd66df847c7608481af027cace9 | [
"MIT"
] | null | null | null | tests/unit/test_fp16.py | mbeacom/DeepSpeed | 012d91df67a9ddd66df847c7608481af027cace9 | [
"MIT"
] | null | null | null | import torch
import deepspeed
import argparse
import pytest
import json
import os
from common import distributed_test
from simple_model import SimpleModel, random_dataloader, args_from_dict
def test_lamb_fp16_basic(tmpdir):
config_dict = {
"train_batch_size": 2,
"steps_per_print": 1,
"opti... | 34.012048 | 89 | 0.503601 | 835 | 8,469 | 4.765269 | 0.106587 | 0.094999 | 0.048253 | 0.054285 | 0.957778 | 0.952249 | 0.94672 | 0.938175 | 0.927117 | 0.920834 | 0 | 0.038127 | 0.402291 | 8,469 | 248 | 90 | 34.149194 | 0.747926 | 0 | 0 | 0.747706 | 0 | 0 | 0.087141 | 0.010391 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055046 | false | 0 | 0.036697 | 0 | 0.091743 | 0.027523 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5c8637a6370ceb97da9f03b9be452a02d5d4cd88 | 35,961 | py | Python | pneumoRL/env.py | richielo/Medical_Localization_RL | 58653170824ee087f10b6c8650ee9bc8e05b64e9 | [
"MIT"
] | 7 | 2018-12-24T05:43:37.000Z | 2021-12-27T08:57:45.000Z | pneumoRL/env.py | richielo/Medical_Localization_RL | 58653170824ee087f10b6c8650ee9bc8e05b64e9 | [
"MIT"
] | 7 | 2019-09-10T06:15:28.000Z | 2022-03-11T23:32:47.000Z | pneumoRL/env.py | richielo/Medical_Localization_RL | 58653170824ee087f10b6c8650ee9bc8e05b64e9 | [
"MIT"
] | null | null | null | import os
import sys
import random
from data_util import *
from image_util import *
"""
2 methods for local data
1. crop and pad
2. crop and resize
"""
IMG_WIDTH = 1024
IMG_HEIGHT = 1024
#Adjustable
MIN_WIDTH = 10
MIN_HEIGHT = 10
def init_bounding_box(img_shape, coverage):
factor = math.floor(math.sqrt(img_sh... | 36.769939 | 186 | 0.496176 | 4,945 | 35,961 | 3.417594 | 0.045298 | 0.114675 | 0.031065 | 0.011538 | 0.939172 | 0.938757 | 0.934911 | 0.93426 | 0.933787 | 0.931361 | 0 | 0.046344 | 0.386168 | 35,961 | 977 | 187 | 36.807574 | 0.719262 | 0.138928 | 0 | 0.94452 | 0 | 0 | 0.001497 | 0 | 0 | 0 | 0 | 0.003071 | 0 | 1 | 0.044655 | false | 0.00406 | 0.006766 | 0 | 0.108254 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5c8ed03a0893c07adb2d374119f1876c5d2fa15a | 484 | py | Python | sokoban/numtup.py | aurzenligl/tdd_training | 7a83ed77181297fcb45712c7998af972032794c5 | [
"MIT"
] | null | null | null | sokoban/numtup.py | aurzenligl/tdd_training | 7a83ed77181297fcb45712c7998af972032794c5 | [
"MIT"
] | 12 | 2017-11-27T21:57:25.000Z | 2017-11-27T22:01:58.000Z | sokoban/numtup.py | aurzenligl/tdd_training | 7a83ed77181297fcb45712c7998af972032794c5 | [
"MIT"
] | null | null | null | class numtup(tuple):
def __add__(self, other):
if isinstance(other, tuple):
assert len(self) == len(other)
return numtup(lhs + rhs for lhs, rhs in zip(self, other))
return numtup(lhs + other for lhs in self)
def __mul__(self, other):
if isinstance(other, tuple):
... | 37.230769 | 69 | 0.590909 | 67 | 484 | 4.149254 | 0.268657 | 0.129496 | 0.244604 | 0.28777 | 0.899281 | 0.899281 | 0.899281 | 0.899281 | 0.899281 | 0.899281 | 0 | 0 | 0.303719 | 484 | 12 | 70 | 40.333333 | 0.824926 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
5ca5f1e491c32be40f7ef56c8f8c426f7aeee9fc | 3,488 | py | Python | tests/integration/tree/test_branch_length_multiplier_integration.py | yuzhenpeng/PhyKIT | 167b9dfe0dd0bddd4b23492d9a3dc34e56debbd7 | [
"MIT"
] | 26 | 2020-10-28T10:33:33.000Z | 2022-02-04T14:59:22.000Z | tests/integration/tree/test_branch_length_multiplier_integration.py | yuzhenpeng/PhyKIT | 167b9dfe0dd0bddd4b23492d9a3dc34e56debbd7 | [
"MIT"
] | 4 | 2021-03-28T22:05:39.000Z | 2022-03-22T00:33:01.000Z | tests/integration/tree/test_branch_length_multiplier_integration.py | JLSteenwyk/PhyKIT | 0b3194d1bb5c189993b256fe96011cce48b9bbb4 | [
"MIT"
] | 4 | 2020-11-06T11:58:25.000Z | 2021-08-17T16:57:51.000Z | import pytest
import sys
from math import isclose
from mock import patch, call
from pathlib import Path
from textwrap import dedent
from phykit.phykit import Phykit
here = Path(__file__)
@pytest.mark.integration
class TestBranchLengthMultiplier(object):
@patch("builtins.print")
def test_branch_length_multip... | 32.90566 | 111 | 0.616686 | 418 | 3,488 | 4.868421 | 0.165072 | 0.112039 | 0.059459 | 0.091892 | 0.879607 | 0.879607 | 0.879607 | 0.861916 | 0.838821 | 0.80688 | 0 | 0.006677 | 0.270069 | 3,488 | 106 | 112 | 32.90566 | 0.792616 | 0 | 0 | 0.705882 | 0 | 0 | 0.253941 | 0.212955 | 0 | 0 | 0 | 0 | 0.082353 | 1 | 0.058824 | false | 0 | 0.082353 | 0 | 0.152941 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5cb25d068a43c45f466e895f9da03f6781cec6d4 | 177 | py | Python | webpt/__init__.py | cool-RR/webpt | 817f2bf0b66f322a4088ec719915af6ab226c31f | [
"MIT"
] | null | null | null | webpt/__init__.py | cool-RR/webpt | 817f2bf0b66f322a4088ec719915af6ab226c31f | [
"MIT"
] | null | null | null | webpt/__init__.py | cool-RR/webpt | 817f2bf0b66f322a4088ec719915af6ab226c31f | [
"MIT"
] | null | null | null | from webpt.request_analysis import *
from webpt.spider import *
from webpt.response_analysis import *
from webpt.port_scanner import *
import requests
import urllib3
import bs4
| 22.125 | 37 | 0.830508 | 25 | 177 | 5.76 | 0.48 | 0.25 | 0.3125 | 0.319444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 0.124294 | 177 | 7 | 38 | 25.285714 | 0.916129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
5cb58463c7ee09abef7ec6d3534c0bbbf324ba4b | 16,580 | py | Python | plot.py | og-brandon/TSCI-II-2020-soundecology-paper-demonstration | 57f39751c7a6e51e27148bbd4e4b1e731d42fac9 | [
"MIT"
] | null | null | null | plot.py | og-brandon/TSCI-II-2020-soundecology-paper-demonstration | 57f39751c7a6e51e27148bbd4e4b1e731d42fac9 | [
"MIT"
] | null | null | null | plot.py | og-brandon/TSCI-II-2020-soundecology-paper-demonstration | 57f39751c7a6e51e27148bbd4e4b1e731d42fac9 | [
"MIT"
] | null | null | null | import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import csv
# ---------------------------------------------------------------
# Bosque de Manzanillo
# ubicacion de archivos
ubicacionACI = 'manzanillo_forest_results_acoustic_complexity_index_ACI.csv'
ubicacionADI = 'manzanillo_forest_re... | 30.590406 | 80 | 0.644029 | 2,348 | 16,580 | 4.44293 | 0.056218 | 0.036235 | 0.048313 | 0.069018 | 0.956864 | 0.945552 | 0.895514 | 0.88171 | 0.88171 | 0.88171 | 0 | 0.035501 | 0.170929 | 16,580 | 542 | 81 | 30.590406 | 0.72341 | 0.027021 | 0 | 0.93424 | 0 | 0 | 0.143976 | 0.057192 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.00907 | 0 | 0.00907 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
8ff649882857b45ea87ac3dc54b188abd01262bf | 3,437 | py | Python | src/tests/test_comms_models.py | reddcoin-project/ReddConnect | 5c212683de6b80b81fd15ed05239c3a1b46c3afd | [
"BSD-3-Clause"
] | 5 | 2015-01-30T08:47:59.000Z | 2022-01-22T19:27:03.000Z | src/tests/test_comms_models.py | reddcoin-project/ReddConnect | 5c212683de6b80b81fd15ed05239c3a1b46c3afd | [
"BSD-3-Clause"
] | 2 | 2017-12-28T21:36:48.000Z | 2017-12-28T21:36:57.000Z | src/tests/test_comms_models.py | reddcoin-project/ReddConnect | 5c212683de6b80b81fd15ed05239c3a1b46c3afd | [
"BSD-3-Clause"
] | 1 | 2019-01-05T15:51:37.000Z | 2019-01-05T15:51:37.000Z | import unittest
class TestMsg(unittest.TestCase):
def test___init__(self):
# msg = Msg(*args, **kwargs)
assert True # TODO: implement your test here
def test___str__(self):
# msg = Msg(*args, **kwargs)
# self.assertEqual(expected, msg.__str__())
assert True # TODO: impl... | 40.435294 | 104 | 0.673553 | 421 | 3,437 | 5.228029 | 0.130641 | 0.050886 | 0.101772 | 0.167197 | 0.926851 | 0.924125 | 0.885507 | 0.875511 | 0.819173 | 0.782372 | 0 | 0 | 0.224324 | 3,437 | 84 | 105 | 40.916667 | 0.825581 | 0.615653 | 0 | 0.736842 | 0 | 0 | 0.006275 | 0 | 0 | 0 | 0 | 0.011905 | 0.421053 | 1 | 0.421053 | false | 0 | 0.026316 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
8f2919158f454e06613cc1cbf61d390e2945f333 | 9,649 | py | Python | Python_Backend/testing/test_answer_generator.py | kaitlin31415/BCI4KidsMediapipe | 913ad540716bec476148a3f31001b279c86d9297 | [
"Apache-2.0"
] | 5 | 2021-10-04T20:55:37.000Z | 2022-01-31T22:12:31.000Z | Python_Backend/testing/test_answer_generator.py | kaitlin31415/BCI4KidsMediapipe | 913ad540716bec476148a3f31001b279c86d9297 | [
"Apache-2.0"
] | 158 | 2021-09-29T23:43:08.000Z | 2022-03-31T21:05:46.000Z | Python_Backend/testing/test_answer_generator.py | kaitlin31415/BCI4KidsMediapipe | 913ad540716bec476148a3f31001b279c86d9297 | [
"Apache-2.0"
] | 3 | 2021-09-27T23:00:36.000Z | 2022-01-31T22:12:33.000Z | import unittest
import sys
sys.path.insert(0, '../')
import AnswerGenerator
from AnswerGenerator import Answer
class TestAnswerGenerator(unittest.TestCase):
# Unit tests for FacialAnswerGenerator
def test_facial_add_smile_to_queue(self):
ag = AnswerGenerator.FacialAnswerGenerator()
... | 32.270903 | 114 | 0.640792 | 1,096 | 9,649 | 5.292883 | 0.069343 | 0.053094 | 0.065506 | 0.078607 | 0.913118 | 0.896914 | 0.857094 | 0.82572 | 0.818824 | 0.780038 | 0 | 0.003825 | 0.268422 | 9,649 | 299 | 115 | 32.270903 | 0.817963 | 0.007358 | 0 | 0.757895 | 0 | 0 | 0.036971 | 0.002298 | 0 | 0 | 0 | 0 | 0.178947 | 1 | 0.157895 | false | 0 | 0.021053 | 0 | 0.184211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
8f3a1fee63ae89bbf8e3ea30f4f4f56144cac660 | 213 | py | Python | stock_trading_backend/simulation/__init__.py | iryzhkov/stock-trading-backend | 7161026b7b4deb78a934b66550c85a27c6b32933 | [
"MIT"
] | 1 | 2021-01-27T18:24:02.000Z | 2021-01-27T18:24:02.000Z | stock_trading_backend/simulation/__init__.py | iryzhkov/stock-trading-backend | 7161026b7b4deb78a934b66550c85a27c6b32933 | [
"MIT"
] | null | null | null | stock_trading_backend/simulation/__init__.py | iryzhkov/stock-trading-backend | 7161026b7b4deb78a934b66550c85a27c6b32933 | [
"MIT"
] | null | null | null | """__init__ file for simulation sub-package
"""
from stock_trading_backend.simulation.reward_factory import create_reward
from stock_trading_backend.simulation.stock_market_simulation import StockMarketSimulation
| 42.6 | 90 | 0.882629 | 26 | 213 | 6.769231 | 0.615385 | 0.102273 | 0.181818 | 0.261364 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065728 | 213 | 4 | 91 | 53.25 | 0.884422 | 0.187793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
8f80b92dc116dccfd10584b8abe2cbec44847852 | 14,091 | py | Python | CDARTS_segmentation/dataloaders/__init__.py | penghouwen/CDARTS | 7dddc8d5db4ed343979ed3687c6adfc39dfce284 | [
"MIT"
] | 21 | 2020-06-19T01:05:38.000Z | 2020-08-11T02:15:03.000Z | CDARTS_segmentation/dataloaders/__init__.py | penghouwen/CDARTS | 7dddc8d5db4ed343979ed3687c6adfc39dfce284 | [
"MIT"
] | 1 | 2020-07-11T17:01:07.000Z | 2020-07-11T17:01:07.000Z | CDARTS_segmentation/dataloaders/__init__.py | penghouwen/CDARTS | 7dddc8d5db4ed343979ed3687c6adfc39dfce284 | [
"MIT"
] | 1 | 2020-11-02T02:43:20.000Z | 2020-11-02T02:43:20.000Z | from dataloaders.datasets import cityscapes, kd, coco, combine_dbs, pascal, sbd
from dataloaders.segdatasets import Cityscapes, CityscapesPanoptic, COCOPanoptic
from torch.utils.data import DataLoader
import torch.utils.data.distributed
def make_data_loader(args, **kwargs):
root = args.data_path
if args.dist:
... | 49.269231 | 183 | 0.542119 | 1,516 | 14,091 | 4.762533 | 0.078496 | 0.052355 | 0.034903 | 0.037673 | 0.914404 | 0.896676 | 0.840305 | 0.810665 | 0.786288 | 0.760249 | 0 | 0.039286 | 0.364133 | 14,091 | 285 | 184 | 49.442105 | 0.766518 | 0.009723 | 0 | 0.818533 | 0 | 0 | 0.042294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003861 | false | 0 | 0.015444 | 0 | 0.042471 | 0.003861 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
56b6b924248b6cfc33ccff023dc524acb14ee4cc | 924 | py | Python | coadd_mdetsims/tests/test_masking.py | beckermr/metadetect-coadding-sims | 15ccaec353aa61c69ac9d78d1dfca8ce25bca3cf | [
"BSD-3-Clause"
] | null | null | null | coadd_mdetsims/tests/test_masking.py | beckermr/metadetect-coadding-sims | 15ccaec353aa61c69ac9d78d1dfca8ce25bca3cf | [
"BSD-3-Clause"
] | null | null | null | coadd_mdetsims/tests/test_masking.py | beckermr/metadetect-coadding-sims | 15ccaec353aa61c69ac9d78d1dfca8ce25bca3cf | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
from ..masking import generate_bad_columns, generate_cosmic_rays
def test_generate_cosmic_rays_smoke():
rng = np.random.RandomState(seed=10)
msk = generate_cosmic_rays((64, 64), rng=rng)
assert np.any(msk)
def test_generate_cosmic_rays_seed():
rng = np.random.RandomState(seed=10)... | 24.972973 | 64 | 0.712121 | 141 | 924 | 4.425532 | 0.191489 | 0.076923 | 0.173077 | 0.211538 | 0.891026 | 0.778846 | 0.778846 | 0.746795 | 0.746795 | 0.400641 | 0 | 0.057069 | 0.165584 | 924 | 36 | 65 | 25.666667 | 0.75227 | 0 | 0 | 0.454545 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
711a1c4876a4f94faf8752fa54bcef71e1cc8810 | 185 | py | Python | zarya/nn/__init__.py | kefirski/zarya | db1f84cef1c4ffa28aa7adb5dea6cf9f2ebf2f84 | [
"MIT"
] | null | null | null | zarya/nn/__init__.py | kefirski/zarya | db1f84cef1c4ffa28aa7adb5dea6cf9f2ebf2f84 | [
"MIT"
] | null | null | null | zarya/nn/__init__.py | kefirski/zarya | db1f84cef1c4ffa28aa7adb5dea6cf9f2ebf2f84 | [
"MIT"
] | null | null | null | from .modules import Embedding
from .modules import GRUCell
from .modules import Hyperbolic
from .modules import Hyperplane
from .modules import Linear
from .parameter import Parameter
| 26.428571 | 32 | 0.837838 | 24 | 185 | 6.458333 | 0.375 | 0.354839 | 0.548387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12973 | 185 | 6 | 33 | 30.833333 | 0.962733 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
85a9b5eda998f237214ce3175fe3c2835d3fa805 | 739 | py | Python | rastervision/data/label_source/__init__.py | AirbusAerial/raster-vision | cfa7826169392e497fb57a540eb952fc6cee3a98 | [
"Apache-2.0"
] | 2 | 2019-04-17T13:04:23.000Z | 2020-10-04T10:28:27.000Z | rastervision/data/label_source/__init__.py | Yochengliu/raster-vision | f5badc387df86ce02d84e0e274a08026dbf65bd6 | [
"Apache-2.0"
] | null | null | null | rastervision/data/label_source/__init__.py | Yochengliu/raster-vision | f5badc387df86ce02d84e0e274a08026dbf65bd6 | [
"Apache-2.0"
] | null | null | null | # flake8: noqa
from rastervision.data.label_source.label_source import *
from rastervision.data.label_source.label_source_config import *
from rastervision.data.label_source.chip_classification_geojson_source import *
from rastervision.data.label_source.chip_classification_geojson_source_config import *
from rastervis... | 61.583333 | 102 | 0.895805 | 92 | 739 | 6.815217 | 0.217391 | 0.192982 | 0.287081 | 0.358852 | 0.866029 | 0.866029 | 0.866029 | 0.722488 | 0.703349 | 0.424242 | 0 | 0.001431 | 0.054127 | 739 | 11 | 103 | 67.181818 | 0.895565 | 0.016238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 10 |
a4a7c9e862312c1db84142fe06d431de74200b8a | 21,446 | py | Python | test/test_parsers.py | jjfallete/cb-taxii-connector | 31b42c8ea46d14f2af63788a8ffada0c998bdb46 | [
"MIT"
] | 16 | 2015-09-21T18:22:00.000Z | 2021-11-04T11:16:12.000Z | test/test_parsers.py | jjfallete/cb-taxii-connector | 31b42c8ea46d14f2af63788a8ffada0c998bdb46 | [
"MIT"
] | 20 | 2016-02-09T20:44:35.000Z | 2022-03-28T20:48:09.000Z | test/test_parsers.py | jjfallete/cb-taxii-connector | 31b42c8ea46d14f2af63788a8ffada0c998bdb46 | [
"MIT"
] | 9 | 2015-09-28T08:12:23.000Z | 2022-03-28T20:09:12.000Z | # coding: utf-8
# Copyright © 2014-2020 VMware, Inc. All Rights Reserved.
################################################################################
import unittest
import stix2patterns
from cbopensource.driver.taxii import STIXIndicator
from cbopensource.driver.taxii_parser import STIXPatternParser
# noinsp... | 52.953086 | 223 | 0.582067 | 2,404 | 21,446 | 5.123128 | 0.086522 | 0.068204 | 0.037999 | 0.041166 | 0.911578 | 0.905408 | 0.893066 | 0.88925 | 0.884459 | 0.883891 | 0 | 0.145972 | 0.272965 | 21,446 | 404 | 224 | 53.084158 | 0.643856 | 0.004476 | 0 | 0.776316 | 0 | 0.026316 | 0.450061 | 0.153484 | 0 | 0 | 0 | 0 | 0.331579 | 1 | 0.036842 | false | 0 | 0.010526 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
f125e667cad04799159a3e7e883ea6f2e851df1a | 1,853 | py | Python | tests/test_requests.py | gwrome/dndtools | 38d973cb44e88e267b137957b407c3e26271778d | [
"MIT"
] | null | null | null | tests/test_requests.py | gwrome/dndtools | 38d973cb44e88e267b137957b407c3e26271778d | [
"MIT"
] | null | null | null | tests/test_requests.py | gwrome/dndtools | 38d973cb44e88e267b137957b407c3e26271778d | [
"MIT"
] | null | null | null | from dndtools import create_app, is_request_valid
def test_no_env_vars(client):
app = create_app()
with app.app_context():
app.config['SLACK_VERIFICATION_TOKEN'] = None
app.config['SLACK_TEAM_ID'] = None
dummy_request = {}
assert not is_request_valid(dummy_request)
def test_no... | 39.425532 | 79 | 0.464112 | 182 | 1,853 | 4.461538 | 0.241758 | 0.066502 | 0.068966 | 0.066502 | 0.832512 | 0.832512 | 0.832512 | 0.832512 | 0.832512 | 0.832512 | 0 | 0.008539 | 0.431193 | 1,853 | 46 | 80 | 40.282609 | 0.76186 | 0 | 0 | 0.783784 | 0 | 0 | 0.117647 | 0.025904 | 0 | 0 | 0 | 0 | 0.162162 | 1 | 0.108108 | false | 0 | 0.027027 | 0 | 0.135135 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
f18170e5980c7902178c35390a814a0e41f57c42 | 18 | py | Python | char_untils/Tst.py | HAIbingshuai/albert-model_attempt- | d8e40001910d54409932eb5a49bb36685c266a20 | [
"MIT"
] | null | null | null | char_untils/Tst.py | HAIbingshuai/albert-model_attempt- | d8e40001910d54409932eb5a49bb36685c266a20 | [
"MIT"
] | null | null | null | char_untils/Tst.py | HAIbingshuai/albert-model_attempt- | d8e40001910d54409932eb5a49bb36685c266a20 | [
"MIT"
] | null | null | null | import random
| 3 | 13 | 0.666667 | 2 | 18 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 18 | 5 | 14 | 3.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
74ddf8c15ce10f354f8aec48a9f46156d2fb36f0 | 2,525 | py | Python | assets/assets.py | jussihayha/python_neat_ai | 390dd607d7301ff0dfa1dc393aab6beb23ff353f | [
"MIT"
] | null | null | null | assets/assets.py | jussihayha/python_neat_ai | 390dd607d7301ff0dfa1dc393aab6beb23ff353f | [
"MIT"
] | null | null | null | assets/assets.py | jussihayha/python_neat_ai | 390dd607d7301ff0dfa1dc393aab6beb23ff353f | [
"MIT"
] | null | null | null | import pygame
pygame.font.init()
WIN_HEIGHT = 512
WIN_WIDTH = 1200
DISPLAY = pygame.display.set_mode((WIN_WIDTH, WIN_HEIGHT))
pygame.display.set_caption("INTELLIGENT HERO AI JUMPING, OK")
# HERO images
RUN = [pygame.transform.scale(pygame.image.load('./assets/hero-run-1.png'), (128, 128)),
pygame.transform.sca... | 60.119048 | 116 | 0.689901 | 358 | 2,525 | 4.840782 | 0.159218 | 0.259665 | 0.253895 | 0.330063 | 0.832083 | 0.816503 | 0.816503 | 0.769186 | 0.769186 | 0.741489 | 0 | 0.065026 | 0.098614 | 2,525 | 41 | 117 | 61.585366 | 0.696397 | 0.01703 | 0 | 0.0625 | 0 | 0 | 0.214689 | 0.133172 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.03125 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
74e01e151948306cf69d7c6eae4b52cd6b26b96d | 390 | py | Python | simp_py_examples/course/S1806_4/ch_fontx.py | kcfkwok2003/Simp_py | f75e66da01b45dc8688dda602f8b33d4258f0c31 | [
"MIT"
] | null | null | null | simp_py_examples/course/S1806_4/ch_fontx.py | kcfkwok2003/Simp_py | f75e66da01b45dc8688dda602f8b33d4258f0c31 | [
"MIT"
] | null | null | null | simp_py_examples/course/S1806_4/ch_fontx.py | kcfkwok2003/Simp_py | f75e66da01b45dc8688dda602f8b33d4258f0c31 | [
"MIT"
] | null | null | null | CH_FONTS={
u'\u4e2d':bytearray([
0x01,0x00,0x01,0x00,0x01,0x00,0x3f,0xfc,
0x21,0x04,0x21,0x04,0x21,0x04,0x21,0x04,
0x3f,0xfc,0x21,0x04,0x01,0x00,0x01,0x00,
0x01,0x00,0x01,0x00,0x00,0x00,0x00,0x00
]),
u'\u6587':bytearray([
0x01,0x00,0x01,0x00,0x01,0x80,0x7f,0xfc,
0x18,0x10,0x08,0x20,0x0c,0x20,0x04,0x40,
0x02,0xc0,0x03,0... | 27.857143 | 40 | 0.753846 | 72 | 390 | 4.069444 | 0.361111 | 0.245734 | 0.286689 | 0.327645 | 0.430034 | 0.430034 | 0 | 0 | 0 | 0 | 0 | 0.493369 | 0.033333 | 390 | 14 | 41 | 27.857143 | 0.28382 | 0 | 0 | 0.142857 | 0 | 0 | 0.030691 | 0 | 0 | 1 | 0.654731 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2d24af97f9e1a21489caec0e5b8bb58df3c16b71 | 73,486 | py | Python | tests/test_Resamplers.py | shane-kercheval/oo-learning | 9e3ebe5f7460179e23f6801bc01f1114bb896dea | [
"MIT"
] | 1 | 2020-10-09T09:11:46.000Z | 2020-10-09T09:11:46.000Z | tests/test_Resamplers.py | shane-kercheval/oo-learning | 9e3ebe5f7460179e23f6801bc01f1114bb896dea | [
"MIT"
] | 48 | 2018-04-09T01:30:31.000Z | 2021-06-13T03:25:59.000Z | tests/test_Resamplers.py | shane-kercheval/oo-learning | 9e3ebe5f7460179e23f6801bc01f1114bb896dea | [
"MIT"
] | null | null | null | import os
import pickle
import time
from math import isclose
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import shutil
from oolearning import *
from tests.MockClassificationModelWrapper import MockClassificationModelWrapper
from tests.MockRegressionModelWrapper import MockRegressionModelWr... | 59.406629 | 277 | 0.669787 | 7,569 | 73,486 | 6.290131 | 0.070287 | 0.05209 | 0.049905 | 0.051166 | 0.862424 | 0.847658 | 0.838437 | 0.830624 | 0.820269 | 0.803319 | 0 | 0.054802 | 0.225022 | 73,486 | 1,236 | 278 | 59.454693 | 0.781194 | 0.319449 | 0 | 0.732036 | 0 | 0 | 0.059043 | 0.021478 | 0 | 0 | 0 | 0 | 0.32485 | 1 | 0.028443 | false | 0.010479 | 0.019461 | 0 | 0.052395 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
740fbd254e3ff6a6194fc8d45aa0bca5b4f77d30 | 1,722 | py | Python | tests/test_filter.py | c4deszes/pytest-variant | 0b7de6bd5c11ef0923f986aa7ee3f59af8cc6f65 | [
"MIT"
] | null | null | null | tests/test_filter.py | c4deszes/pytest-variant | 0b7de6bd5c11ef0923f986aa7ee3f59af8cc6f65 | [
"MIT"
] | null | null | null | tests/test_filter.py | c4deszes/pytest-variant | 0b7de6bd5c11ef0923f986aa7ee3f59af8cc6f65 | [
"MIT"
] | null | null | null | #pylint: disable = missing-function-docstring
"""
Tests variant filtering mechanisms
"""
import pytest
@pytest.mark.integration
def test_filter_dict(testdir):
testdir.makeconftest(
"""
# Local variant setting
def pytest_configure(config):
config.variant = {'os': 'win32', 'arch':... | 24.6 | 69 | 0.558072 | 174 | 1,722 | 5.350575 | 0.247126 | 0.075188 | 0.120301 | 0.135338 | 0.902256 | 0.895811 | 0.822771 | 0.818475 | 0.807734 | 0.807734 | 0 | 0.045151 | 0.305459 | 1,722 | 69 | 70 | 24.956522 | 0.733278 | 0.045877 | 0 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.117647 | false | 0.117647 | 0.058824 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
742133beb14bbbfb278e3101f845855b80cc19ed | 11,817 | py | Python | web2py/applications/rip/controllers/vcOperation.py | 2spmohanty/vcenter-automation | 1d10b765ef335087902b0194ed12a61e53807987 | [
"Apache-2.0"
] | 1 | 2019-10-02T13:25:03.000Z | 2019-10-02T13:25:03.000Z | web2py/applications/rip/controllers/vcOperation.py | 2spmohanty/vcenter-automation | 1d10b765ef335087902b0194ed12a61e53807987 | [
"Apache-2.0"
] | null | null | null | web2py/applications/rip/controllers/vcOperation.py | 2spmohanty/vcenter-automation | 1d10b765ef335087902b0194ed12a61e53807987 | [
"Apache-2.0"
] | 1 | 2021-11-05T09:51:02.000Z | 2021-11-05T09:51:02.000Z | __author__ = 'smrutim'
# -*- coding: utf-8 -*-
# this file is released under public domain and you can use without limitations
#########################################################################
## This is a VC controller
#########################################################################
import... | 44.931559 | 120 | 0.58162 | 1,318 | 11,817 | 5.074355 | 0.147951 | 0.020933 | 0.037679 | 0.038876 | 0.800239 | 0.791567 | 0.790969 | 0.790969 | 0.790969 | 0.777213 | 0 | 0.001492 | 0.262503 | 11,817 | 263 | 121 | 44.931559 | 0.765921 | 0.024879 | 0 | 0.669811 | 0 | 0.018868 | 0.225773 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.023585 | 0.099057 | null | null | 0.113208 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
742e2b91330d5d6a4077928f26ac6c808c65c22e | 159,239 | py | Python | spcl/models/hierarchy_gcn_label_propagation.py | tangshixiang/HCD | a843208bf749622d0fb118b9898c8103dd7208c5 | [
"MIT"
] | 4 | 2021-11-28T07:49:13.000Z | 2022-01-21T13:59:41.000Z | spcl/models/hierarchy_gcn_label_propagation.py | tangshixiang/HCD | a843208bf749622d0fb118b9898c8103dd7208c5 | [
"MIT"
] | null | null | null | spcl/models/hierarchy_gcn_label_propagation.py | tangshixiang/HCD | a843208bf749622d0fb118b9898c8103dd7208c5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
from spcl.models.utils import GraphConv, MeanAggregator
from spcl.utils.faiss_rerank import compute_jaccard_distance,compute_jaccard_distance_step1,compute_jaccard_distance_inital_rank,c... | 49.793308 | 292 | 0.514748 | 20,052 | 159,239 | 3.837622 | 0.017903 | 0.039609 | 0.025964 | 0.034073 | 0.886332 | 0.858028 | 0.837314 | 0.820187 | 0.806919 | 0.790506 | 0 | 0.02814 | 0.361074 | 159,239 | 3,197 | 293 | 49.808883 | 0.728205 | 0.13859 | 0 | 0.813859 | 0 | 0 | 0.004344 | 0 | 0 | 0 | 0 | 0 | 0.000906 | 1 | 0.011775 | false | 0 | 0.004529 | 0 | 0.026721 | 0.026721 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
779a576a1ce16956977928f7269f514bac0bb605 | 85 | py | Python | spacenav_wrapper/src/spacenav_wrapper/__init__.py | carlosvquezada/lg_ros_nodes | 7560e99272d06ef5c80a5444131dad72c078a718 | [
"Apache-2.0"
] | null | null | null | spacenav_wrapper/src/spacenav_wrapper/__init__.py | carlosvquezada/lg_ros_nodes | 7560e99272d06ef5c80a5444131dad72c078a718 | [
"Apache-2.0"
] | null | null | null | spacenav_wrapper/src/spacenav_wrapper/__init__.py | carlosvquezada/lg_ros_nodes | 7560e99272d06ef5c80a5444131dad72c078a718 | [
"Apache-2.0"
] | null | null | null | from space_wrapper import SpacenavWrapper
from space_wrapper import SpacenavRezeroer
| 28.333333 | 42 | 0.905882 | 10 | 85 | 7.5 | 0.6 | 0.24 | 0.426667 | 0.586667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094118 | 85 | 2 | 43 | 42.5 | 0.974026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
77df997014c3dff06a1f27de3fef2ca8455ae427 | 11,990 | py | Python | dev/Report/generate_all_report_plots.py | aakash30jan/Couette-Poiseuille_FlowCode | 3110d5d818cb8fdfb4959e58d9dcbc48db325122 | [
"CC-BY-4.0"
] | 9 | 2019-01-05T09:05:05.000Z | 2021-11-22T19:04:14.000Z | dev/Report/generate_all_report_plots.py | aakash30jan/Couette-Poiseuille_FlowCode | 3110d5d818cb8fdfb4959e58d9dcbc48db325122 | [
"CC-BY-4.0"
] | null | null | null | dev/Report/generate_all_report_plots.py | aakash30jan/Couette-Poiseuille_FlowCode | 3110d5d818cb8fdfb4959e58d9dcbc48db325122 | [
"CC-BY-4.0"
] | 3 | 2020-02-28T03:44:34.000Z | 2020-09-10T05:32:54.000Z | #import libraries
import numpy as np
import matplotlib.pyplot as plt
#ALPHA=np.arange(1,16)
plt.rcParams.update({'font.size': 11}) #Font 11
simDataDir='../Simulated_Data/DA/'
def plot(ALPHA):
simDataFile=simDataDir+'Case_01_A'+str(ALPHA)+'_sim.dat'
case_sim=np.loadtxt(simDataFile)
plt.plot(case_sim[:,0],case_s... | 25.784946 | 136 | 0.680484 | 2,020 | 11,990 | 3.955446 | 0.116832 | 0.047059 | 0.045432 | 0.022778 | 0.880851 | 0.871589 | 0.857697 | 0.81627 | 0.754693 | 0.747184 | 0 | 0.072145 | 0.101751 | 11,990 | 464 | 137 | 25.840517 | 0.669731 | 0.13211 | 0 | 0.755932 | 0 | 0 | 0.201524 | 0.053324 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023729 | false | 0 | 0.047458 | 0 | 0.077966 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
77e76160d2fc6332a6c0b6e665a7d32f5a4eb5a1 | 8,978 | py | Python | tests/contrib/celery/test_integration.py | sharov/dd-trace-py | d0995b49cf7147ab463d0a67a38779fad3f539b4 | [
"BSD-3-Clause"
] | 1 | 2019-11-24T23:09:29.000Z | 2019-11-24T23:09:29.000Z | tests/contrib/celery/test_integration.py | sharov/dd-trace-py | d0995b49cf7147ab463d0a67a38779fad3f539b4 | [
"BSD-3-Clause"
] | null | null | null | tests/contrib/celery/test_integration.py | sharov/dd-trace-py | d0995b49cf7147ab463d0a67a38779fad3f539b4 | [
"BSD-3-Clause"
] | 1 | 2021-01-24T13:44:57.000Z | 2021-01-24T13:44:57.000Z | from nose.tools import eq_, ok_
from .utils import CeleryTestCase
class CeleryIntegrationTask(CeleryTestCase):
"""
Ensures that the tracer works properly with a real Celery application
without breaking the Application or Task APIs.
"""
def test_concurrent_delays(self):
# it should create ... | 39.725664 | 94 | 0.612163 | 1,260 | 8,978 | 4.169048 | 0.098413 | 0.09861 | 0.054826 | 0.060918 | 0.880069 | 0.864268 | 0.841424 | 0.811156 | 0.781649 | 0.781649 | 0 | 0.026857 | 0.236912 | 8,978 | 225 | 95 | 39.902222 | 0.739892 | 0.086545 | 0 | 0.8 | 0 | 0 | 0.205018 | 0.10355 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0.011429 | 0.045714 | 0.188571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7acead34ac5852e4a83ad09195c4e826ba811c68 | 13,130 | py | Python | venv/lib/python3.8/site-packages/spaceone/api/inventory/v1/server_pb2_grpc.py | choonho/plugin-prometheus-mon-webhook | afa7d65d12715fd0480fb4f92a9c62da2d6128e0 | [
"Apache-2.0"
] | null | null | null | venv/lib/python3.8/site-packages/spaceone/api/inventory/v1/server_pb2_grpc.py | choonho/plugin-prometheus-mon-webhook | afa7d65d12715fd0480fb4f92a9c62da2d6128e0 | [
"Apache-2.0"
] | null | null | null | venv/lib/python3.8/site-packages/spaceone/api/inventory/v1/server_pb2_grpc.py | choonho/plugin-prometheus-mon-webhook | afa7d65d12715fd0480fb4f92a9c62da2d6128e0 | [
"Apache-2.0"
] | null | null | null | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
from sp... | 49.17603 | 128 | 0.689185 | 1,376 | 13,130 | 6.149709 | 0.080669 | 0.040416 | 0.061215 | 0.074332 | 0.90865 | 0.905342 | 0.89057 | 0.8381 | 0.776058 | 0.762586 | 0 | 0.010128 | 0.240518 | 13,130 | 266 | 129 | 49.360902 | 0.838448 | 0.060929 | 0 | 0.553571 | 1 | 0 | 0.07686 | 0.047537 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.017857 | 0.03125 | 0.133929 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7ad62519e2a3f38adccb4cb96ef0d7dff18d6fd6 | 603 | py | Python | tests/test_train.py | ckm3/Deep-Transit | 52f2e81b2beb0d73974741ea78ba84ea52e8fc2e | [
"MIT"
] | 3 | 2021-08-03T01:21:22.000Z | 2021-09-21T15:23:32.000Z | tests/test_train.py | ckm3/Deep-Transit | 52f2e81b2beb0d73974741ea78ba84ea52e8fc2e | [
"MIT"
] | 1 | 2021-08-21T00:24:08.000Z | 2021-08-23T03:41:26.000Z | tests/test_train.py | ckm3/Deep-Transit | 52f2e81b2beb0d73974741ea78ba84ea52e8fc2e | [
"MIT"
] | null | null | null | import pytest
import deep_transit as dt
def test_train():
dt.config.DATASET = 'tests/Data'
dt.config.IMG_DIR = dt.config.DATASET + "/transit-images/"
dt.config.LABEL_DIR = dt.config.DATASET + "/transit-labels/"
dt.config.BATCH_SIZE = 2
dt.config.NUM_EPOCHS = 1
dt.train()
def test_mge_train(... | 26.217391 | 64 | 0.681592 | 90 | 603 | 4.422222 | 0.288889 | 0.281407 | 0.226131 | 0.180905 | 0.758794 | 0.758794 | 0.758794 | 0.758794 | 0.758794 | 0.758794 | 0 | 0.00813 | 0.18408 | 603 | 23 | 65 | 26.217391 | 0.800813 | 0 | 0 | 0.588235 | 0 | 0 | 0.139073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | true | 0 | 0.176471 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
bb361b32a73b7308681c73e4ba6bab4f6178154c | 212 | py | Python | Tests/TestEnvironment/__init__.py | dev-11/eigen-technical-task | c0b041fc2bd27d2706ccdab94f6eb618f17098bd | [
"MIT"
] | null | null | null | Tests/TestEnvironment/__init__.py | dev-11/eigen-technical-task | c0b041fc2bd27d2706ccdab94f6eb618f17098bd | [
"MIT"
] | null | null | null | Tests/TestEnvironment/__init__.py | dev-11/eigen-technical-task | c0b041fc2bd27d2706ccdab94f6eb618f17098bd | [
"MIT"
] | null | null | null | from .mocks import get_test_single_sentence, get_test_three_sentences, mocked_document_service,\
mocked_interesting_service, mocked_interesting_service_with_low_interesting_rate, get_test_duplicated_sentence
| 70.666667 | 114 | 0.90566 | 28 | 212 | 6.178571 | 0.607143 | 0.121387 | 0.277457 | 0.358382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061321 | 212 | 2 | 115 | 106 | 0.869347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
bb52203898c7af6d5fb2acda88ad22bb2286dd90 | 36,764 | py | Python | trulioo_sdk/api/verifications_api.py | Trulioo/sdk-python | 3bf0530e2ba1a3ec93d89b967b2e257e7401d5c2 | [
"RSA-MD"
] | 1 | 2022-01-11T12:08:45.000Z | 2022-01-11T12:08:45.000Z | trulioo_sdk/api/verifications_api.py | Trulioo/sdk-python | 3bf0530e2ba1a3ec93d89b967b2e257e7401d5c2 | [
"RSA-MD"
] | null | null | null | trulioo_sdk/api/verifications_api.py | Trulioo/sdk-python | 3bf0530e2ba1a3ec93d89b967b2e257e7401d5c2 | [
"RSA-MD"
] | 1 | 2021-05-17T08:33:15.000Z | 2021-05-17T08:33:15.000Z | """
Trulioo Python SDK
Package version: 1.0.4
Trulioo OpenAPI version: v1
Generated by OpenAPI Generator version: 5.0.1
"""
import re # noqa: F401
import sys # noqa: F401
from trulioo_sdk.api_client import ApiClient, Endpoint as _Endpoint
from trulioo_sdk.model_utils import ( # noqa: F401
check_allowed_values... | 37.861998 | 361 | 0.466326 | 3,175 | 36,764 | 5.175748 | 0.078425 | 0.029575 | 0.022151 | 0.023002 | 0.852675 | 0.831315 | 0.820361 | 0.799489 | 0.778738 | 0.762125 | 0 | 0.00367 | 0.451529 | 36,764 | 970 | 362 | 37.901031 | 0.811297 | 0.345528 | 0 | 0.685241 | 1 | 0 | 0.217646 | 0.058363 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012048 | false | 0 | 0.012048 | 0 | 0.036145 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
bb5ad9a436f974ee473c3debd4208cbff609709d | 177 | py | Python | integration_tests/test-packages/python/pythonspecific/pythonspecific/__init__.py | franklinen/doppel-cli | 959041ceec578b63fa507b0d71e2ce9e752fb5b7 | [
"BSD-3-Clause"
] | 5 | 2019-03-11T12:44:59.000Z | 2021-02-01T08:10:41.000Z | integration_tests/test-packages/python/pythonspecific/pythonspecific/__init__.py | franklinen/doppel-cli | 959041ceec578b63fa507b0d71e2ce9e752fb5b7 | [
"BSD-3-Clause"
] | 174 | 2019-01-20T03:08:44.000Z | 2021-11-03T04:25:56.000Z | integration_tests/test-packages/python/pythonspecific/pythonspecific/__init__.py | franklinen/doppel-cli | 959041ceec578b63fa507b0d71e2ce9e752fb5b7 | [
"BSD-3-Clause"
] | 17 | 2019-04-16T18:23:53.000Z | 2021-10-01T15:01:40.000Z | # flake8: noqa
from pythonspecific.SomeException import SomeException
# sub-modules
import pythonspecific.mod_one
import pythonspecific.mod_two
import pythonspecific.mod_three
| 22.125 | 54 | 0.864407 | 21 | 177 | 7.142857 | 0.571429 | 0.4 | 0.46 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006211 | 0.090395 | 177 | 7 | 55 | 25.285714 | 0.925466 | 0.135593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
24ca881a322fee77dfbfdc53c7f5f3d3a57db8a1 | 67,052 | py | Python | test/subjective_model_test.py | sghill/sureal | df4bc7a9cfd380569ecf2252be014977c68c792b | [
"Apache-2.0"
] | 88 | 2018-02-03T08:28:58.000Z | 2022-03-22T09:28:52.000Z | test/subjective_model_test.py | sghill/sureal | df4bc7a9cfd380569ecf2252be014977c68c792b | [
"Apache-2.0"
] | 15 | 2018-06-19T14:42:39.000Z | 2022-02-21T07:19:03.000Z | test/subjective_model_test.py | sghill/sureal | df4bc7a9cfd380569ecf2252be014977c68c792b | [
"Apache-2.0"
] | 29 | 2018-03-01T16:01:00.000Z | 2022-01-23T09:57:26.000Z | import os
import unittest
import numpy as np
from sureal.config import SurealConfig
from sureal.dataset_reader import RawDatasetReader, MissingDataRawDatasetReader, \
SyntheticRawDatasetReader, CorruptSubjectRawDatasetReader
from sureal.subjective_model import MosModel, DmosModel, \
LegacyMaximumLikelihoodEstim... | 59.233216 | 180 | 0.735683 | 7,422 | 67,052 | 6.437079 | 0.062921 | 0.172744 | 0.163806 | 0.176407 | 0.896433 | 0.889233 | 0.88197 | 0.860223 | 0.852583 | 0.838224 | 0 | 0.125528 | 0.149332 | 67,052 | 1,131 | 181 | 59.285588 | 0.712074 | 0.003997 | 0 | 0.671706 | 0 | 0 | 0.089258 | 0.025924 | 0 | 0 | 0 | 0 | 0.462203 | 1 | 0.073434 | false | 0 | 0.053996 | 0 | 0.12959 | 0.00108 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
24f019c5732ccdba1df85316adffd60469d1b134 | 417 | py | Python | desicos/abaqus/utils/__init__.py | saullocastro/desicos | 922db8ac4fb0fb4d09df18ce2a14011f207f6fa8 | [
"BSD-3-Clause"
] | 1 | 2020-10-22T22:15:24.000Z | 2020-10-22T22:15:24.000Z | desicos/abaqus/utils/__init__.py | saullocastro/desicos | 922db8ac4fb0fb4d09df18ce2a14011f207f6fa8 | [
"BSD-3-Clause"
] | 1 | 2020-10-09T12:42:02.000Z | 2020-10-09T12:42:02.000Z | desicos/abaqus/utils/__init__.py | saullocastro/desicos | 922db8ac4fb0fb4d09df18ce2a14011f207f6fa8 | [
"BSD-3-Clause"
] | 2 | 2020-07-14T07:45:31.000Z | 2020-12-29T00:22:41.000Z | r"""
=======================================
Utilities (:mod:`desicos.abaqus.utils`)
=======================================
.. currentmodule:: desicos.abaqus.utils
Includes all utilities functions that can be executed without Abaqus.
.. automodule:: desicos.abaqus.utils.utils
:members:
.. automodule:: desicos.... | 21.947368 | 69 | 0.59952 | 40 | 417 | 6.125 | 0.55 | 0.212245 | 0.293878 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115108 | 417 | 18 | 70 | 23.166667 | 0.663957 | 0.829736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
702d440e650fdab72a01e3eef548646ec6e400fc | 3,979 | py | Python | tests/test_unit_sql_free.py | IBM/python-itoolk | 36054a7ebdd8f5556c548d4c315e00e3c8d04904 | [
"MIT"
] | 11 | 2019-01-09T12:31:04.000Z | 2021-08-29T05:26:35.000Z | tests/test_unit_sql_free.py | IBM/python-itoolk | 36054a7ebdd8f5556c548d4c315e00e3c8d04904 | [
"MIT"
] | 50 | 2018-12-21T18:52:25.000Z | 2021-05-25T13:38:15.000Z | tests/test_unit_sql_free.py | IBM/python-itoolk | 36054a7ebdd8f5556c548d4c315e00e3c8d04904 | [
"MIT"
] | 9 | 2018-12-25T00:02:19.000Z | 2022-02-22T00:58:13.000Z | import xml.etree.ElementTree as ET
from itoolkit import iSqlFree
def test_sql_free():
key = 'ifaovjuf'
element = ET.fromstring(iSqlFree(key).xml_in())
assert(element.tag == 'sql')
assert(len(element.attrib) == 1)
assert('var' in element.attrib)
assert(element.attrib['var'] == key)
ass... | 21.743169 | 73 | 0.622016 | 499 | 3,979 | 4.903808 | 0.092184 | 0.255006 | 0.110339 | 0.154475 | 0.882305 | 0.870045 | 0.785452 | 0.785452 | 0.785452 | 0.785452 | 0 | 0.007573 | 0.203569 | 3,979 | 182 | 74 | 21.862637 | 0.764595 | 0 | 0 | 0.724771 | 0 | 0 | 0.075647 | 0 | 0 | 0 | 0 | 0 | 0.66055 | 1 | 0.055046 | false | 0 | 0.018349 | 0 | 0.073395 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
703055e7c1856b6f52483d241c6655f8fae4ffd8 | 6,858 | py | Python | tests/do_sampler/test_pandas_do_api.py | mbenezra/dowhy | 99bf1b2b365a0a03f9f9fcd4787da28801ceb1d0 | [
"MIT"
] | 1 | 2019-10-23T01:18:52.000Z | 2019-10-23T01:18:52.000Z | tests/do_sampler/test_pandas_do_api.py | mbenezra/dowhy | 99bf1b2b365a0a03f9f9fcd4787da28801ceb1d0 | [
"MIT"
] | null | null | null | tests/do_sampler/test_pandas_do_api.py | mbenezra/dowhy | 99bf1b2b365a0a03f9f9fcd4787da28801ceb1d0 | [
"MIT"
] | null | null | null | import pytest
import numpy as np
import dowhy.datasets
import dowhy.api
from sklearn.linear_model import LinearRegression
class TestPandasDoAPI(object):
@pytest.mark.parametrize(["N", "error_tolerance"],
[(10000, 0.1),])
def test_pandas_api_discrete_cause_continuous_confounder(s... | 43.132075 | 95 | 0.466025 | 724 | 6,858 | 4.25 | 0.120166 | 0.072798 | 0.054599 | 0.041599 | 0.957751 | 0.957751 | 0.957751 | 0.957751 | 0.957751 | 0.957751 | 0 | 0.02586 | 0.402304 | 6,858 | 158 | 96 | 43.405063 | 0.724811 | 0 | 0 | 0.874126 | 0 | 0.027972 | 0.078594 | 0.012832 | 0 | 0 | 0 | 0 | 0.027972 | 1 | 0.027972 | false | 0 | 0.034965 | 0 | 0.06993 | 0.048951 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
705055252f9e7eaa663f418316d7801905abae9e | 338 | py | Python | Lib/site-packages/QtModularUiPack/Framework/Extensions/__init__.py | fochoao/cpython | 3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9 | [
"bzip2-1.0.6",
"0BSD"
] | 3 | 2019-11-11T12:09:23.000Z | 2022-02-17T10:02:55.000Z | QtModularUiPack/Framework/Extensions/__init__.py | dowerner/QtModularUiPack | de2ce6ba3a1cd52ca00eaea3ea3bb2247fe76ba3 | [
"Apache-2.0"
] | 20 | 2021-05-03T18:02:23.000Z | 2022-03-12T12:01:04.000Z | Lib/site-packages/QtModularUiPack/Framework/Extensions/__init__.py | fochoao/cpython | 3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9 | [
"bzip2-1.0.6",
"0BSD"
] | 2 | 2019-11-11T12:09:31.000Z | 2019-11-11T12:09:42.000Z | from .signal import Signal
from QtModularUiPack.Framework.Extensions.observable_list import ObservableList
from QtModularUiPack.Framework.Extensions.singleton import Singleton
from QtModularUiPack.Framework.Extensions.code_environment import CodeEnvironment
from QtModularUiPack.Framework.Extensions.killable_thread impo... | 56.333333 | 81 | 0.902367 | 35 | 338 | 8.628571 | 0.457143 | 0.251656 | 0.370861 | 0.503311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059172 | 338 | 5 | 82 | 67.6 | 0.949686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
560e9c8aa23c6b3905eeb6ae937d8c7674638989 | 4,258 | py | Python | tests/test_dale_chall_score.py | atvaccaro/homer | c19b08bca6a783041b1e9f2ee8ab7d392ab4626b | [
"MIT"
] | 660 | 2019-08-11T08:16:29.000Z | 2022-03-08T08:03:01.000Z | tests/test_dale_chall_score.py | atvaccaro/homer | c19b08bca6a783041b1e9f2ee8ab7d392ab4626b | [
"MIT"
] | 8 | 2019-08-15T20:40:54.000Z | 2021-09-29T17:41:45.000Z | tests/test_dale_chall_score.py | atvaccaro/homer | c19b08bca6a783041b1e9f2ee8ab7d392ab4626b | [
"MIT"
] | 41 | 2019-08-15T18:33:00.000Z | 2022-03-24T19:28:39.000Z | import unittest
from homer.analyzer import DaleChall
class TestDaleChallReadingScore(unittest.TestCase):
def test_fourth_grade_or_lower(self):
dale_chall = DaleChall("Some dummy text")
grade_label = 'Average 4th grade student or lower'
dale_chall.score = 4.9
self.assertEqual(grade_... | 41.339806 | 60 | 0.664631 | 569 | 4,258 | 4.713533 | 0.108963 | 0.261745 | 0.187919 | 0.255034 | 0.886279 | 0.858688 | 0.836316 | 0.833706 | 0.803878 | 0.803878 | 0 | 0.026928 | 0.232504 | 4,258 | 103 | 61 | 41.339806 | 0.793758 | 0 | 0 | 0.526316 | 0 | 0 | 0.069735 | 0 | 0 | 0 | 0 | 0 | 0.378947 | 1 | 0.063158 | false | 0 | 0.021053 | 0 | 0.094737 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
5662b8f849522c6126442d70f36d6b6742ea6f75 | 239 | py | Python | src/server/views/__init__.py | daniel3303/sirs-project | 38a36ecf2373775c3a866f185dacb7597ad1e3cc | [
"Apache-2.0"
] | null | null | null | src/server/views/__init__.py | daniel3303/sirs-project | 38a36ecf2373775c3a866f185dacb7597ad1e3cc | [
"Apache-2.0"
] | null | null | null | src/server/views/__init__.py | daniel3303/sirs-project | 38a36ecf2373775c3a866f185dacb7597ad1e3cc | [
"Apache-2.0"
] | null | null | null | from server.views.UserView import *
from server.views.UserCreateView import *
from server.views.FileListView import *
from server.views.FileCreateView import *
from server.views.FileView import *
from server.views.FileRolesView import *
| 26.555556 | 41 | 0.8159 | 30 | 239 | 6.5 | 0.333333 | 0.307692 | 0.461538 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108787 | 239 | 8 | 42 | 29.875 | 0.915493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
569d8969a5bf0bbcb1c2b8aacbd37509d1be6d5f | 10,273 | py | Python | exhaustive.py | ForeverZyh/diffai | 91ca6c002e6fdc89fe98389f966ddde6c7acbf23 | [
"MIT"
] | null | null | null | exhaustive.py | ForeverZyh/diffai | 91ca6c002e6fdc89fe98389f966ddde6c7acbf23 | [
"MIT"
] | null | null | null | exhaustive.py | ForeverZyh/diffai | 91ca6c002e6fdc89fe98389f966ddde6c7acbf23 | [
"MIT"
] | null | null | null | import numpy as np
import itertools
import torch
from utils import swap_pytorch
from dataset.dataset_loader import SSTWordLevel, Glove
from nltk import pos_tag
from DSL.Alphabet import Alphabet
import diffai.scheduling as S
def SwapSub(a, b, x, is_numpy=False, batch_size=64, truncate=None):
adjacent_keys = S.Inf... | 46.695455 | 154 | 0.42529 | 1,185 | 10,273 | 3.458228 | 0.087764 | 0.036603 | 0.024158 | 0.024158 | 0.810639 | 0.80039 | 0.746218 | 0.72816 | 0.702294 | 0.696437 | 0 | 0.025494 | 0.492164 | 10,273 | 219 | 155 | 46.908676 | 0.760015 | 0.002434 | 0 | 0.789216 | 0 | 0 | 0.001074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014706 | false | 0 | 0.039216 | 0 | 0.053922 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3b6c09ae1174e5fd7a8967227f395e209ae1b6b7 | 6,484 | py | Python | tests/test_async_validators.py | omarryhan/sanic-wtf | 41c24f061fa16652a82d83753c3bee56f746e23a | [
"BSD-3-Clause"
] | 3 | 2019-04-11T11:01:54.000Z | 2020-03-09T12:19:26.000Z | tests/test_async_validators.py | omarryhan/sanic-wtf | 41c24f061fa16652a82d83753c3bee56f746e23a | [
"BSD-3-Clause"
] | null | null | null | tests/test_async_validators.py | omarryhan/sanic-wtf | 41c24f061fa16652a82d83753c3bee56f746e23a | [
"BSD-3-Clause"
] | null | null | null | import re
import asyncio
from sanic import response
from wtforms.validators import DataRequired, Length, ValidationError
from wtforms import FileField, StringField, SubmitField
from sanic_wtf import SanicForm, to_bytes
from .helpers import render_form, csrf_token_pattern
def test_async_validators_with_csrf(
app... | 29.076233 | 68 | 0.626311 | 731 | 6,484 | 5.354309 | 0.114911 | 0.064384 | 0.033214 | 0.0465 | 0.887328 | 0.883751 | 0.883751 | 0.87302 | 0.87302 | 0.860756 | 0 | 0.010143 | 0.254935 | 6,484 | 222 | 69 | 29.207207 | 0.800041 | 0.000463 | 0 | 0.887097 | 0 | 0 | 0.059423 | 0 | 0 | 0 | 0 | 0 | 0.123656 | 1 | 0.026882 | false | 0.05914 | 0.037634 | 0 | 0.225806 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
8e60fe774b6458843678291cf98a4db1a291a01a | 2,306 | py | Python | tests/test_preprocessing_binarize.py | abcnishant007/sklearn-evaluation | 77ff2da43097b0451d8cf6f95c534409f612bf6a | [
"MIT"
] | 351 | 2016-01-27T19:15:27.000Z | 2022-03-09T15:40:56.000Z | tests/test_preprocessing_binarize.py | abcnishant007/sklearn-evaluation | 77ff2da43097b0451d8cf6f95c534409f612bf6a | [
"MIT"
] | 37 | 2016-03-16T03:57:59.000Z | 2021-06-26T14:02:33.000Z | tests/test_preprocessing_binarize.py | abcnishant007/sklearn-evaluation | 77ff2da43097b0451d8cf6f95c534409f612bf6a | [
"MIT"
] | 30 | 2016-01-27T19:27:08.000Z | 2022-03-31T06:09:59.000Z | from random import shuffle
from unittest import TestCase
import numpy as np
from sklearn_evaluation.preprocessing import binarize
class Test_binarize_scores_at_top_proportion(TestCase):
def setUp(self):
self.scores = np.array(
[1.0, 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1])
def tes... | 34.41791 | 78 | 0.660885 | 344 | 2,306 | 4.18314 | 0.151163 | 0.020848 | 0.125087 | 0.132036 | 0.839472 | 0.781098 | 0.780403 | 0.776234 | 0.749131 | 0.692842 | 0 | 0.061832 | 0.228534 | 2,306 | 66 | 79 | 34.939394 | 0.747049 | 0 | 0 | 0.520833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 1 | 0.25 | false | 0 | 0.083333 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
8ec6736d05774df57ed49e00db00eaadb0214306 | 107 | py | Python | tests/functional/conftest.py | tomchuk/meetup_20160428 | 9879e42c7535c6af9bee10697c6fdb046b63473d | [
"MIT"
] | null | null | null | tests/functional/conftest.py | tomchuk/meetup_20160428 | 9879e42c7535c6af9bee10697c6fdb046b63473d | [
"MIT"
] | null | null | null | tests/functional/conftest.py | tomchuk/meetup_20160428 | 9879e42c7535c6af9bee10697c6fdb046b63473d | [
"MIT"
] | null | null | null |
from tests.fixtures import *
from tests.functional.fixtures import *
from tests.functional.steps import *
| 21.4 | 39 | 0.803738 | 14 | 107 | 6.142857 | 0.428571 | 0.313953 | 0.418605 | 0.534884 | 0.767442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121495 | 107 | 4 | 40 | 26.75 | 0.914894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
d93622bc22ad14c6a0f89f8bd5de8138c935b144 | 1,902 | py | Python | test_pypi_releases.py | PetitLepton/pypi_releases | 6746d98c627a3c1d71626a751e2a8a98be5de0b9 | [
"MIT"
] | null | null | null | test_pypi_releases.py | PetitLepton/pypi_releases | 6746d98c627a3c1d71626a751e2a8a98be5de0b9 | [
"MIT"
] | null | null | null | test_pypi_releases.py | PetitLepton/pypi_releases | 6746d98c627a3c1d71626a751e2a8a98be5de0b9 | [
"MIT"
] | null | null | null | from pypi_releases import (
extract_package_name_and_version,
extract_all_packages_names_and_versions,
)
def test_extract_package_name_and_version():
package = "request=1.0.0"
expected_name, expected_version = "request", "1.0.0"
output_name, output_version = extract_package_name_and_version(packa... | 26.416667 | 75 | 0.665615 | 233 | 1,902 | 5.098712 | 0.154506 | 0.016835 | 0.060606 | 0.06734 | 0.960438 | 0.908249 | 0.813131 | 0.813131 | 0.765152 | 0.765152 | 0 | 0.030158 | 0.232913 | 1,902 | 71 | 76 | 26.788732 | 0.784099 | 0 | 0 | 0.758621 | 0 | 0 | 0.299685 | 0 | 0 | 0 | 0 | 0 | 0.155172 | 1 | 0.034483 | false | 0 | 0.017241 | 0 | 0.051724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
d93ff252dfc84765e93c6e76a12e9930edc9e6db | 135,598 | py | Python | tests/resources/test_full_game_possessions.py | bahalbach/pbpstats | 6a9f602764edb7a3ee0e880fffbb5aa34990d6e9 | [
"MIT"
] | 54 | 2019-10-16T00:10:51.000Z | 2022-03-19T21:21:05.000Z | tests/resources/test_full_game_possessions.py | bahalbach/pbpstats | 6a9f602764edb7a3ee0e880fffbb5aa34990d6e9 | [
"MIT"
] | 15 | 2019-11-19T01:20:52.000Z | 2022-02-04T13:38:37.000Z | tests/resources/test_full_game_possessions.py | bahalbach/pbpstats | 6a9f602764edb7a3ee0e880fffbb5aa34990d6e9 | [
"MIT"
] | 15 | 2019-11-19T11:54:51.000Z | 2022-03-21T05:08:53.000Z | import pbpstats
from pbpstats.client import Client
class TestFullGamePossessions:
settings = {
"dir": "tests/data",
"Possessions": {"source": "file", "data_provider": "stats_nba"},
}
client = Client(settings)
game = client.Game("0021600270")
def test_first_possession(self):
... | 32.533109 | 88 | 0.50295 | 11,758 | 135,598 | 5.538357 | 0.029767 | 0.072328 | 0.166539 | 0.126536 | 0.971744 | 0.962761 | 0.954699 | 0.94934 | 0.912254 | 0.808876 | 0 | 0.181119 | 0.388951 | 135,598 | 4,167 | 89 | 32.540917 | 0.604813 | 0 | 0 | 0.960945 | 0 | 0 | 0.335765 | 0.105842 | 0 | 0 | 0 | 0 | 0.183462 | 1 | 0.003616 | false | 0.003857 | 0.000482 | 0 | 0.005063 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
798f9b25c251c3f82ed0e6be51afe5f7c202ae62 | 43,290 | py | Python | Testing/Python/TestNodeSetsByGeometry.py | Numerics88/vtkbone | 5a6ab2870679e9e7ea51926c34911607b9d85235 | [
"MIT"
] | 3 | 2017-04-04T04:59:22.000Z | 2022-03-13T11:22:40.000Z | Testing/Python/TestNodeSetsByGeometry.py | Numerics88/vtkbone | 5a6ab2870679e9e7ea51926c34911607b9d85235 | [
"MIT"
] | 5 | 2017-04-06T19:46:39.000Z | 2019-12-11T23:41:41.000Z | Testing/Python/TestNodeSetsByGeometry.py | Numerics88/vtkbone | 5a6ab2870679e9e7ea51926c34911607b9d85235 | [
"MIT"
] | 2 | 2017-04-29T20:54:57.000Z | 2017-04-29T22:28:10.000Z | from __future__ import division
import sys
import numpy
from numpy.core import *
import vtk
from vtk.util.numpy_support import vtk_to_numpy, numpy_to_vtk
import vtkbone
import test_geometries
import traceback
import unittest
class TestNodeSetsByGeometry (unittest.TestCase):
def test_DetermineMaterialBounds (self... | 49.193182 | 100 | 0.534119 | 4,777 | 43,290 | 4.702114 | 0.044798 | 0.078533 | 0.039266 | 0.100347 | 0.95597 | 0.952898 | 0.950361 | 0.948891 | 0.948268 | 0.93745 | 0 | 0.08874 | 0.365881 | 43,290 | 879 | 101 | 49.249147 | 0.729518 | 0.086094 | 0 | 0.721286 | 0 | 0 | 0.000532 | 0 | 0 | 0 | 0 | 0 | 0.156202 | 1 | 0.007657 | false | 0 | 0.015314 | 0 | 0.024502 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
79917092798277c1bd09a737f78342311dbc1f78 | 125 | py | Python | 6 kyu/Mutual Recursion.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 6 | 2020-09-03T09:32:25.000Z | 2020-12-07T04:10:01.000Z | 6 kyu/Mutual Recursion.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 1 | 2021-12-13T15:30:21.000Z | 2021-12-13T15:30:21.000Z | 6 kyu/Mutual Recursion.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | null | null | null | def f(n):
if n==0:
return 1
return n-m(f(n-1))
def m(n):
if n==0:
return 0
return n-f(m(n-1)) | 15.625 | 22 | 0.432 | 28 | 125 | 1.928571 | 0.285714 | 0.388889 | 0.148148 | 0.185185 | 0.407407 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.376 | 125 | 8 | 23 | 15.625 | 0.615385 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 0 | 1 | 0 | 1 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
799810384fbb047746f96d8b8fd5cb2f2b9d4c32 | 6,986 | py | Python | test/graph_test.py | adgirish/ursa | c14fccacb81efd33e86453f979cb4ec799aa8a3a | [
"Apache-2.0"
] | null | null | null | test/graph_test.py | adgirish/ursa | c14fccacb81efd33e86453f979cb4ec799aa8a3a | [
"Apache-2.0"
] | null | null | null | test/graph_test.py | adgirish/ursa | c14fccacb81efd33e86453f979cb4ec799aa8a3a | [
"Apache-2.0"
] | null | null | null | import ursa
import pytest
import ray
ray.init()
@pytest.fixture
def init_test():
return ursa.graph.Graph.remote(0)
def test_simple_insert():
graph = init_test()
key = "Key1"
oid = "Value1"
local_edges = set()
foreign_edges = {}
transaction_id = 0
graph.insert.remote(key, oid, local_... | 31.048889 | 78 | 0.65073 | 904 | 6,986 | 4.779867 | 0.058628 | 0.192548 | 0.14904 | 0.162 | 0.911363 | 0.904189 | 0.896783 | 0.877343 | 0.8461 | 0.83638 | 0 | 0.019423 | 0.211423 | 6,986 | 224 | 79 | 31.1875 | 0.76493 | 0 | 0 | 0.716763 | 0 | 0 | 0.073862 | 0 | 0 | 0 | 0 | 0 | 0.144509 | 1 | 0.075145 | false | 0 | 0.017341 | 0.00578 | 0.098266 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
799ded0d4f0974f3ccdf83f82d23a7bb02e0d4f3 | 422 | py | Python | server/ssh_server/qr_send.py | nickt121/CXA_2019_Recycle | 9caa936109b4b6cf3f729069d3a3da9c929df04b | [
"MIT"
] | null | null | null | server/ssh_server/qr_send.py | nickt121/CXA_2019_Recycle | 9caa936109b4b6cf3f729069d3a3da9c929df04b | [
"MIT"
] | null | null | null | server/ssh_server/qr_send.py | nickt121/CXA_2019_Recycle | 9caa936109b4b6cf3f729069d3a3da9c929df04b | [
"MIT"
] | null | null | null | import os
import image_p
def send():
image_p.pic()
os.system(r"sshpass -p '*0103549a' scp /home/pi/cam/capture.jpg nickie@10.143.209.103:'C:\Users\nicki\PycharmProjects\hackathon\python_main\test_images'")
os.system(r"sshpass -p '*0103549a' ssh nickie@10.143.209.103 'cd C:\Users\nicki\PycharmProjects\hacka... | 52.75 | 206 | 0.753555 | 68 | 422 | 4.588235 | 0.558824 | 0.057692 | 0.105769 | 0.25 | 0.669872 | 0.448718 | 0.288462 | 0 | 0 | 0 | 0 | 0.093506 | 0.087678 | 422 | 7 | 207 | 60.285714 | 0.716883 | 0 | 0 | 0 | 0 | 0.333333 | 0.777251 | 0.590047 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0.333333 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 8 |
8dc7b5b2089813df585930fb8574400efe756e17 | 6,930 | py | Python | models/uploaded_file.py | isstek/clientmanagement | 26bd6bbd974f24211dd0ae4b1c75ee8e4b150767 | [
"MIT"
] | null | null | null | models/uploaded_file.py | isstek/clientmanagement | 26bd6bbd974f24211dd0ae4b1c75ee8e4b150767 | [
"MIT"
] | 11 | 2019-05-02T20:10:16.000Z | 2022-02-10T07:10:25.000Z | models/uploaded_file.py | isstek/clientmanagement | 26bd6bbd974f24211dd0ae4b1c75ee8e4b150767 | [
"MIT"
] | 2 | 2020-11-04T03:05:23.000Z | 2020-11-05T08:14:14.000Z | from django.db import models
from datetime import datetime, timedelta, timezone
from django.conf import settings
from django.urls import reverse
import pytz, uuid, os, random
from models import ticket, ticket_comment
from django.core.files.storage import default_storage
from django.utils.encoding import smart_str
from ... | 40.057803 | 169 | 0.722799 | 866 | 6,930 | 5.612009 | 0.161663 | 0.028807 | 0.032922 | 0.049383 | 0.840329 | 0.840329 | 0.838683 | 0.830041 | 0.830041 | 0.830041 | 0 | 0.002797 | 0.174459 | 6,930 | 173 | 170 | 40.057803 | 0.846705 | 0 | 0 | 0.765957 | 0 | 0 | 0.050209 | 0.00303 | 0 | 0 | 0 | 0 | 0 | 1 | 0.156028 | false | 0 | 0.078014 | 0.099291 | 0.531915 | 0.056738 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
8df61e25f0bf35039cc0b0fbd632cec209cb2a56 | 211 | py | Python | baselines_merl/common/__init__.py | yfletberliac/MERL | 6eca6c3c9fa0fbd766a82ef9a85fa383b8f649c9 | [
"MIT"
] | 3 | 2019-10-25T12:01:54.000Z | 2022-03-31T10:32:26.000Z | baselines_merl/common/__init__.py | yfletberliac/MERL | 6eca6c3c9fa0fbd766a82ef9a85fa383b8f649c9 | [
"MIT"
] | 2 | 2020-04-23T16:18:03.000Z | 2020-10-29T21:09:09.000Z | baselines_merl/common/__init__.py | yfletberliac/MERL | 6eca6c3c9fa0fbd766a82ef9a85fa383b8f649c9 | [
"MIT"
] | null | null | null | # flake8: noqa F403
from baselines_merl.common.console_util import *
from baselines_merl.common.dataset import Dataset
from baselines_merl.common.math_util import *
from baselines_merl.common.misc_util import *
| 35.166667 | 49 | 0.843602 | 31 | 211 | 5.516129 | 0.419355 | 0.304094 | 0.397661 | 0.538012 | 0.385965 | 0.385965 | 0 | 0 | 0 | 0 | 0 | 0.020942 | 0.094787 | 211 | 5 | 50 | 42.2 | 0.874346 | 0.080569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
eb4c44ab34cdde786dff8ef8184c8a40cdc7b6c7 | 7,804 | py | Python | python/dllib/src/bigdl/dllib/keras/layers/recurrent.py | DirkFi/BigDL | 7493209165c046116470b9a1e1c8f527915d6f1e | [
"Apache-2.0"
] | 3 | 2021-07-14T01:28:47.000Z | 2022-03-02T01:16:32.000Z | python/dllib/src/bigdl/dllib/keras/layers/recurrent.py | DirkFi/BigDL | 7493209165c046116470b9a1e1c8f527915d6f1e | [
"Apache-2.0"
] | null | null | null | python/dllib/src/bigdl/dllib/keras/layers/recurrent.py | DirkFi/BigDL | 7493209165c046116470b9a1e1c8f527915d6f1e | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2016 The BigDL Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 50.025641 | 91 | 0.611097 | 926 | 7,804 | 5.035637 | 0.196544 | 0.038602 | 0.040532 | 0.044392 | 0.813854 | 0.813854 | 0.80935 | 0.802059 | 0.802059 | 0.802059 | 0 | 0.006673 | 0.327909 | 7,804 | 155 | 92 | 50.348387 | 0.882364 | 0.620964 | 0 | 0.714286 | 0 | 0 | 0.014005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0 | 0.040816 | 0 | 0.163265 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
eb64bae14fe5e96c214886a14f136cc807c7e81a | 32,914 | py | Python | dag/tests/test_core.py | HAL-42/AlchemyCat | ca924755ff48e2ff74543bb0e446376eb2b1f150 | [
"Apache-2.0"
] | 8 | 2020-01-08T19:42:01.000Z | 2021-12-28T08:30:56.000Z | dag/tests/test_core.py | HAL-42/AlchemyCat | ca924755ff48e2ff74543bb0e446376eb2b1f150 | [
"Apache-2.0"
] | 2 | 2020-09-10T12:22:57.000Z | 2022-02-17T05:21:22.000Z | dag/tests/test_core.py | HAL-42/AlchemyCat | ca924755ff48e2ff74543bb0e446376eb2b1f150 | [
"Apache-2.0"
] | 1 | 2021-05-12T01:50:27.000Z | 2021-05-12T01:50:27.000Z | import pytest
from alchemy_cat.dag.core import Graph, PyungoError
from alchemy_cat.dag.io import Input, Output
def test_simple():
graph = Graph()
@graph.register(inputs=['a', 'b'], outputs=['c'])
def f_my_function(a, b):
return a + b
@graph.register(inputs=['d', 'a'], outputs=['e'])
def... | 29.075972 | 117 | 0.584189 | 5,073 | 32,914 | 3.594717 | 0.050857 | 0.014367 | 0.026651 | 0.048969 | 0.820684 | 0.794527 | 0.743968 | 0.708544 | 0.696809 | 0.665716 | 0 | 0.053422 | 0.231664 | 32,914 | 1,131 | 118 | 29.10168 | 0.667682 | 0.022847 | 0 | 0.657658 | 0 | 0.002574 | 0.081205 | 0.001371 | 0 | 0 | 0 | 0.000884 | 0.184041 | 1 | 0.200772 | false | 0.001287 | 0.011583 | 0.123552 | 0.343629 | 0.001287 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 7 |
ebc7c3403e28fc02dfde353880f2f7cd13d71155 | 1,832 | py | Python | example/to_see.py | Bytom/python-bytomlib | f621b282a221ee5195332900144159aa9fee97e2 | [
"MIT"
] | 1 | 2021-09-02T08:30:54.000Z | 2021-09-02T08:30:54.000Z | example/to_see.py | Bytom/python-bytomlib | f621b282a221ee5195332900144159aa9fee97e2 | [
"MIT"
] | null | null | null | example/to_see.py | Bytom/python-bytomlib | f621b282a221ee5195332900144159aa9fee97e2 | [
"MIT"
] | null | null | null | # coding:utf-8
from pybtmsdk import BytomAPI
from pybtmsdk.transaction import decode_raw_tx, encode_raw_tx
from pybtmsdk.signature import generate_signatures_use_mnemonic
url = 'http://139.224.216.240:9887'
access_token = 'YOUR_ACCESS_TOKEN'
api = BytomAPI(url=url)
print("my_sign:", api.decode_raw_transaction("07... | 87.238095 | 809 | 0.950873 | 63 | 1,832 | 27.365079 | 0.571429 | 0.020882 | 0.015081 | 0.018561 | 0.031323 | 0 | 0 | 0 | 0 | 0 | 0 | 0.379118 | 0.02238 | 1,832 | 20 | 810 | 91.6 | 0.583473 | 0.00655 | 0 | 0 | 1 | 0 | 0.814876 | 0.781267 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0.25 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.