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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
57a8347fb5fe5ce96de561337d38d644465b4b88 | 360 | py | Python | terrascript/data/linode.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | terrascript/data/linode.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | terrascript/data/linode.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | # terrascript/data/linode.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:21:10 UTC)
#
# For imports without namespace, e.g.
#
# >>> import terrascript.data.linode
#
# instead of
#
# >>> import terrascript.data.linode.linode
#
# This is only available for 'official' and 'partner' providers.
from ... | 24 | 73 | 0.730556 | 49 | 360 | 5.367347 | 0.693878 | 0.228137 | 0.319392 | 0.205323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038835 | 0.141667 | 360 | 14 | 74 | 25.714286 | 0.812298 | 0.802778 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
57b0ea10cf19cf67f70ba6e2c0726dffa6a21fcb | 3,786 | py | Python | tasks/LR4BD.py | evgeniy97/taskgenerator | 7680989c2a080761ef574fac148a0a94c722ad16 | [
"MIT"
] | 1 | 2018-07-19T09:56:35.000Z | 2018-07-19T09:56:35.000Z | tasks/LR4BD.py | evgeniy97/taskgenerator | 7680989c2a080761ef574fac148a0a94c722ad16 | [
"MIT"
] | null | null | null | tasks/LR4BD.py | evgeniy97/taskgenerator | 7680989c2a080761ef574fac148a0a94c722ad16 | [
"MIT"
] | null | null | null |
# coding: utf-8
# In[ ]:
"""
Numerical Methods, lab 4
"""
import sympy as sy
from sympy import Rational as syR
from sympy import exp, sin, cos, sqrt, log, ln
from sympy import pi, cot, sinh, cosh, atan, tan
# Это был Task_db
Tasks_db = {
'Task1':
[
# 4.1.1
{'f1': lambda x1,x2: sin(x1+x2)-x2-1.2,... | 26.475524 | 53 | 0.421025 | 735 | 3,786 | 2.165986 | 0.092517 | 0.19598 | 0.376884 | 0.226131 | 0.800879 | 0.776382 | 0.716709 | 0.563442 | 0.297739 | 0.165829 | 0 | 0.239199 | 0.327522 | 3,786 | 142 | 54 | 26.661972 | 0.386096 | 0.062599 | 0 | 0.070707 | 0 | 0 | 0.035909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.040404 | null | null | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
17c864b08650e1c4a6b55d8a699e81af008c20de | 387 | py | Python | xnmt/specialized_encoders/segmenting_encoder/__init__.py | neulab/xnmt | d93f8f3710f986f36eb54e9ff3976a6b683da2a4 | [
"Apache-2.0"
] | 195 | 2017-05-27T11:23:40.000Z | 2021-09-28T06:03:24.000Z | xnmt/specialized_encoders/segmenting_encoder/__init__.py | neulab/xnmt | d93f8f3710f986f36eb54e9ff3976a6b683da2a4 | [
"Apache-2.0"
] | 386 | 2017-05-25T23:22:19.000Z | 2020-05-03T13:57:28.000Z | xnmt/specialized_encoders/segmenting_encoder/__init__.py | neulab/xnmt | d93f8f3710f986f36eb54e9ff3976a6b683da2a4 | [
"Apache-2.0"
] | 53 | 2017-05-23T17:45:18.000Z | 2021-04-18T12:36:37.000Z |
import logging
seg_logger = logging.getLogger('segment')
import xnmt.specialized_encoders.segmenting_encoder.segmenting_encoder
import xnmt.specialized_encoders.segmenting_encoder.segmenting_composer
import xnmt.specialized_encoders.segmenting_encoder.length_prior
import xnmt.specialized_encoders.segmenting_encoder.p... | 38.7 | 71 | 0.901809 | 45 | 387 | 7.444444 | 0.355556 | 0.304478 | 0.313433 | 0.432836 | 0.746269 | 0.746269 | 0.334328 | 0 | 0 | 0 | 0 | 0 | 0.043928 | 387 | 9 | 72 | 43 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.018135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.857143 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
17fdb851e21e37326d62d60e05d47ab467ff466c | 48,984 | py | Python | PBR_Perfect/__init__.py | grpnpraveen/PBR_Perfect-Add-on | ababe5cefc967c75ccfec708244e54a6cceec03d | [
"MIT"
] | null | null | null | PBR_Perfect/__init__.py | grpnpraveen/PBR_Perfect-Add-on | ababe5cefc967c75ccfec708244e54a6cceec03d | [
"MIT"
] | null | null | null | PBR_Perfect/__init__.py | grpnpraveen/PBR_Perfect-Add-on | ababe5cefc967c75ccfec708244e54a6cceec03d | [
"MIT"
] | null | null | null | bl_info = {
"name": "PBR Perfect",
"author": "Gali_Ravi_Praveen",
"version": (1, 0),
"blender": (2, 91, 2),
"location": "View3D > Toolshelf",
"description": "Adds a new Shader to your Object",
"warning": "",
"doc_url": "",
"category": "Add Shader",
}
import bpy
import... | 55.038202 | 296 | 0.561347 | 5,514 | 48,984 | 4.797606 | 0.079616 | 0.035911 | 0.030846 | 0.030997 | 0.853671 | 0.836244 | 0.819838 | 0.803999 | 0.785325 | 0.777992 | 0 | 0.033172 | 0.329802 | 48,984 | 889 | 297 | 55.100112 | 0.77264 | 0.05612 | 0 | 0.742894 | 0 | 0 | 0.088887 | 0.018941 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05168 | false | 0 | 0.005168 | 0.01938 | 0.187339 | 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 |
a4ea363dce2567dc99fc41955dab9b82b8dd59aa | 1,754 | py | Python | util/logo.py | WooQi57/cassie-run | 9aac12e3a69a011735540d9f5711b8f06da9af81 | [
"MIT"
] | 36 | 2019-10-01T22:50:12.000Z | 2022-02-09T06:17:16.000Z | util/logo.py | WooQi57/cassie-run | 9aac12e3a69a011735540d9f5711b8f06da9af81 | [
"MIT"
] | 5 | 2019-11-26T02:35:39.000Z | 2020-11-29T23:20:48.000Z | util/logo.py | WooQi57/cassie-run | 9aac12e3a69a011735540d9f5711b8f06da9af81 | [
"MIT"
] | 24 | 2019-09-23T19:26:48.000Z | 2022-02-14T14:04:18.000Z | class color:
BOLD = '\033[1m\033[48m'
END = '\033[0m'
ORANGE = '\033[38;5;202m'
BLACK = '\033[38;5;240m'
def print_logo(subtitle="", option=2):
print()
print(color.BOLD + color.ORANGE + " .8. " + color.BLACK + " 8 888888888o " + color.ORANGE + "8 8888888888 `8.`8888.... | 76.26087 | 164 | 0.486887 | 217 | 1,754 | 3.930876 | 0.142857 | 0.134818 | 0.225088 | 0.222743 | 0.739742 | 0.709261 | 0.677608 | 0.677608 | 0.641266 | 0.601407 | 0 | 0.247267 | 0.322121 | 1,754 | 22 | 165 | 79.727273 | 0.470143 | 0 | 0 | 0.2 | 0 | 0 | 0.424173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.3 | 0.75 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
a4f98a21be477121112ffc2dcf774f1f247d2c22 | 1,606 | py | Python | tests/8-parse/ex_parse_layout.py | JCoetzee123/spira | dae08feba1578ecc8745b45109f4fb7bef374546 | [
"MIT"
] | null | null | null | tests/8-parse/ex_parse_layout.py | JCoetzee123/spira | dae08feba1578ecc8745b45109f4fb7bef374546 | [
"MIT"
] | null | null | null | tests/8-parse/ex_parse_layout.py | JCoetzee123/spira | dae08feba1578ecc8745b45109f4fb7bef374546 | [
"MIT"
] | null | null | null | import os
import spira.all as spira
from spira.yevon import io
from copy import copy, deepcopy
from spira.technologies.aist.rdd.database import RDD
if __name__ == '__main__':
# file_name = '/home/therealtyler/code/phd/spira/spira/technologies/aist/layouts/stable/dff.gds'
# file_name = '/home/therealtyler/c... | 51.806452 | 125 | 0.781445 | 225 | 1,606 | 5.391111 | 0.173333 | 0.182193 | 0.225062 | 0.237428 | 0.821105 | 0.821105 | 0.821105 | 0.821105 | 0.821105 | 0.821105 | 0 | 0.004093 | 0.087173 | 1,606 | 30 | 126 | 53.533333 | 0.823329 | 0.742839 | 0 | 0 | 0 | 0.111111 | 0.2175 | 0.1975 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 11 |
35336938a5f1e15a25bad542c30c12f7543e95dc | 15,181 | py | Python | pyrankability/plot.py | IGARDS/ranking_toolbox | 98e2d318c76c92d91bb2c0481efe9879cd3614db | [
"MIT"
] | null | null | null | pyrankability/plot.py | IGARDS/ranking_toolbox | 98e2d318c76c92d91bb2c0481efe9879cd3614db | [
"MIT"
] | 2 | 2022-02-07T19:56:51.000Z | 2022-02-07T20:03:58.000Z | pyrankability/plot.py | IGARDS/ranking_toolbox | 98e2d318c76c92d91bb2c0481efe9879cd3614db | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import networkx as nx
import numpy as np
import pandas as pd
import altair as alt
from pylab import rcParams
from .common import *
alt.data_transformers.disable_max_rows()
from networkx.drawing.nx_agraph import graphviz_layout, to_agraph
import pygraphviz as pgv
from IPython.display ... | 32.507495 | 149 | 0.562743 | 2,271 | 15,181 | 3.648613 | 0.104359 | 0.028965 | 0.011948 | 0.019551 | 0.817524 | 0.795197 | 0.780352 | 0.760922 | 0.746198 | 0.733044 | 0 | 0.030265 | 0.257822 | 15,181 | 466 | 150 | 32.577253 | 0.705157 | 0.107898 | 0 | 0.743802 | 0 | 0 | 0.072405 | 0.016486 | 0 | 0 | 0 | 0 | 0.022039 | 1 | 0.027548 | false | 0 | 0.027548 | 0.002755 | 0.07438 | 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 |
10bdb8dac2ff47e896e1b65d678f6d391f8aa2df | 118 | py | Python | wikidata_tree_generator/tree_builder/tree_generator/__init__.py | lmallez/wikidata-tree-generator | 4fe6b8af6615083e670bdd9495624f4292fd53c0 | [
"MIT"
] | 4 | 2020-07-06T09:48:30.000Z | 2020-10-27T06:56:44.000Z | wikidata_tree_generator/tree_builder/tree_generator/__init__.py | lmallez/wikidata-tree-generator | 4fe6b8af6615083e670bdd9495624f4292fd53c0 | [
"MIT"
] | 2 | 2020-10-10T13:59:19.000Z | 2021-06-25T15:44:46.000Z | wikidata_tree_generator/tree_builder/tree_generator/__init__.py | lmallez/wikidata-tree-generator | 4fe6b8af6615083e670bdd9495624f4292fd53c0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from .tree_generator import TreeGenerator
from .cache_tree_generator import CacheTreeGenerator
| 29.5 | 52 | 0.855932 | 15 | 118 | 6.533333 | 0.733333 | 0.265306 | 0.387755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 0.084746 | 118 | 3 | 53 | 39.333333 | 0.898148 | 0.177966 | 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 |
52b0fdd52e4a276180de0f9b6fcc9f6edd5eb949 | 5,754 | py | Python | gobigger/hyper/tests/test_demo.py | jayyoung0802/GoBigger | f7cf14ee4208e041295035342ecee70026f268d9 | [
"Apache-2.0"
] | 189 | 2021-10-08T07:55:10.000Z | 2022-03-31T23:49:43.000Z | gobigger/hyper/tests/test_demo.py | jayyoung0802/GoBigger | f7cf14ee4208e041295035342ecee70026f268d9 | [
"Apache-2.0"
] | 25 | 2021-11-01T06:59:30.000Z | 2022-03-22T11:22:27.000Z | gobigger/hyper/tests/test_demo.py | jayyoung0802/GoBigger | f7cf14ee4208e041295035342ecee70026f268d9 | [
"Apache-2.0"
] | 28 | 2021-10-14T12:23:14.000Z | 2022-03-31T23:49:45.000Z | import pygame
import time
import logging
from gobigger.hyper import StraightMergeHyperAction, QuarterMergeHyperAction, EighthMergeHyperAction
from gobigger.server import Server
from gobigger.render import RealtimeRender, RealtimePartialRender, EnvRender
def demo_straight_merge():
server = Server(dict(
te... | 37.122581 | 100 | 0.614355 | 728 | 5,754 | 4.539835 | 0.115385 | 0.057186 | 0.054463 | 0.065356 | 0.884115 | 0.884115 | 0.884115 | 0.884115 | 0.884115 | 0.884115 | 0 | 0.034977 | 0.284498 | 5,754 | 154 | 101 | 37.363636 | 0.767792 | 0.013556 | 0 | 0.894366 | 0 | 0 | 0.006177 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021127 | false | 0 | 0.042254 | 0 | 0.06338 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
eab0ec39a226aa188d6b92f10f618143c1c55a55 | 6,129 | py | Python | stubs/events.py | claytonbrown/troposphere | bf0f1e48b14f578de0221d50f711467ad716ca87 | [
"BSD-2-Clause"
] | null | null | null | stubs/events.py | claytonbrown/troposphere | bf0f1e48b14f578de0221d50f711467ad716ca87 | [
"BSD-2-Clause"
] | null | null | null | stubs/events.py | claytonbrown/troposphere | bf0f1e48b14f578de0221d50f711467ad716ca87 | [
"BSD-2-Clause"
] | null | null | null | from . import AWSObject, AWSProperty
from .validators import *
from .constants import *
# -------------------------------------------
class EventsTarget(AWSProperty):
"""# Target - CloudFormationResourceSpecification version: 1.4.0
{
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/U... | 50.652893 | 191 | 0.632566 | 599 | 6,129 | 6.470785 | 0.096828 | 0.123839 | 0.068111 | 0.105263 | 0.853715 | 0.819659 | 0.71904 | 0.71904 | 0.71904 | 0.71904 | 0 | 0.001212 | 0.192364 | 6,129 | 120 | 192 | 51.075 | 0.781818 | 0.639093 | 0 | 0.095238 | 0 | 0.52381 | 0.688808 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.380952 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
eabce3ad390ba3b66800d65271bbeafb6da88860 | 206 | py | Python | boa3_test/test_sc/native_test/ledger/GetTransactionFromBlockMismatchedType.py | OnBlockIO/neo3-boa | cb317292a67532a52ed26f2b0f0f7d0b10ac5f5f | [
"Apache-2.0"
] | 25 | 2020-07-22T19:37:43.000Z | 2022-03-08T03:23:55.000Z | boa3_test/test_sc/native_test/ledger/GetTransactionFromBlockMismatchedType.py | OnBlockIO/neo3-boa | cb317292a67532a52ed26f2b0f0f7d0b10ac5f5f | [
"Apache-2.0"
] | 419 | 2020-04-23T17:48:14.000Z | 2022-03-31T13:17:45.000Z | boa3_test/test_sc/native_test/ledger/GetTransactionFromBlockMismatchedType.py | OnBlockIO/neo3-boa | cb317292a67532a52ed26f2b0f0f7d0b10ac5f5f | [
"Apache-2.0"
] | 15 | 2020-05-21T21:54:24.000Z | 2021-11-18T06:17:24.000Z | from boa3.builtin.interop.blockchain import Transaction
from boa3.builtin.nativecontract.ledger import Ledger
def main() -> Transaction:
return Ledger.get_transaction_from_block('height', 'tx_index')
| 29.428571 | 66 | 0.805825 | 26 | 206 | 6.230769 | 0.653846 | 0.098765 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010811 | 0.101942 | 206 | 6 | 67 | 34.333333 | 0.864865 | 0 | 0 | 0 | 0 | 0 | 0.067961 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.5 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 8 |
eafb683393a5d4f223f79ae50abb804372c30954 | 12,522 | py | Python | MxbaiduAi/image.py | yuanyunqiang/MxbaiduAi | c2b61a3576f1b44db20b8b2569a9e9079906b77a | [
"Apache-2.0"
] | null | null | null | MxbaiduAi/image.py | yuanyunqiang/MxbaiduAi | c2b61a3576f1b44db20b8b2569a9e9079906b77a | [
"Apache-2.0"
] | null | null | null | MxbaiduAi/image.py | yuanyunqiang/MxbaiduAi | c2b61a3576f1b44db20b8b2569a9e9079906b77a | [
"Apache-2.0"
] | null | null | null | import requests
import base64
err_code={
1 :'服务器内部错误,请再次请求, 如果持续出现此类错误,请提交工单联系技术支持团队',
2 :'服务暂不可用,请再次请求, 如果持续出现此类错误,请提交工单联系技术支持团队',
3 :'调用的API不存在,请检查请求URL后重新尝试,一般为URL中有非英文字符,如“-”,可手动输入重试',
4 :'集群超限额,请再次请求, 如果持续出现此类错误,请提交工单联系技术支持团队',
6 :'无权限访问该用户数据,创建应用时未勾选相关接口,请登录百度云控制台,找到对应的应用,编辑应用,勾选上相关接口,然后重试调用'... | 47.977011 | 143 | 0.5793 | 1,275 | 12,522 | 5.614118 | 0.185882 | 0.05197 | 0.054764 | 0.021235 | 0.901509 | 0.901509 | 0.901509 | 0.897737 | 0.889075 | 0.883766 | 0 | 0.060234 | 0.270803 | 12,522 | 260 | 144 | 48.161538 | 0.723689 | 0 | 0 | 0.839357 | 0 | 0.028112 | 0.362511 | 0.200942 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036145 | false | 0 | 0.008032 | 0 | 0.088353 | 0.024096 | 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 |
dc2e10be4100b140690688a507af659c46d51f4f | 181 | py | Python | doubleclickcrypto/__init__.py | danielhedren/doubleclickcrypto | 814e375e1527ce837852f56cc912855eaeddfa2e | [
"MIT"
] | null | null | null | doubleclickcrypto/__init__.py | danielhedren/doubleclickcrypto | 814e375e1527ce837852f56cc912855eaeddfa2e | [
"MIT"
] | null | null | null | doubleclickcrypto/__init__.py | danielhedren/doubleclickcrypto | 814e375e1527ce837852f56cc912855eaeddfa2e | [
"MIT"
] | null | null | null | from .doubleclickcrypto import DoubleClickCrypto
from .doubleclickcrypto import StaleResponseException
from .doubleclickcrypto import SignatureException
name = "doubleclickcrypto"
| 30.166667 | 53 | 0.878453 | 14 | 181 | 11.357143 | 0.428571 | 0.396226 | 0.509434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088398 | 181 | 5 | 54 | 36.2 | 0.963636 | 0 | 0 | 0 | 0 | 0 | 0.093923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 1 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
dc650ede7dc4400b1e1cc919ec0d26fb9d8b2fb0 | 3,636 | py | Python | MetaScreener/external_sw/mgltools/MGLToolsPckgs/AppFramework/ColorMaps/rwb128_map.py | bio-hpc/metascreener | 6900497629f601c4b6c0c37da26de58ffa221988 | [
"Apache-2.0"
] | 8 | 2021-12-14T21:30:01.000Z | 2022-02-14T11:30:03.000Z | MetaScreener/external_sw/mgltools/MGLToolsPckgs/AppFramework/ColorMaps/rwb128_map.py | bio-hpc/metascreener | 6900497629f601c4b6c0c37da26de58ffa221988 | [
"Apache-2.0"
] | null | null | null | MetaScreener/external_sw/mgltools/MGLToolsPckgs/AppFramework/ColorMaps/rwb128_map.py | bio-hpc/metascreener | 6900497629f601c4b6c0c37da26de58ffa221988 | [
"Apache-2.0"
] | null | null | null | from DejaVu.colorMap import ColorMap
from numpy import array
cm = ColorMap('rwb128')
cfg = {'name': 'rwb128', 'ramp': [[0.002, 0.0, 1.0, 1.0], [0.012978, 0.011, 1.0, 1.0], [0.030942, 0.029, 1.0, 1.0], [0.047908, 0.046, 1.0, 1.0], [0.064874, 0.063, 1.0, 1.0], [0.075852, 0.074, 1.0, 1.0], [0.092818, 0.091, 1.0, 1.0], [0.... | 606 | 3,525 | 0.490649 | 1,049 | 3,636 | 1.700667 | 0.188751 | 0.29148 | 0.2287 | 0.300448 | 0.387892 | 0.076794 | 0.07287 | 0.012332 | 0.012332 | 0.012332 | 0 | 0.542553 | 0.146865 | 3,636 | 5 | 3,526 | 727.2 | 0.03256 | 0 | 0 | 0 | 0 | 0 | 0.007701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 10 |
dc8e07d983df431777b4927c48190385533d650c | 4,264 | py | Python | nicos_virt_mlz/kws2/setups/config_detector.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | nicos_virt_mlz/kws2/setups/config_detector.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | nicos_virt_mlz/kws2/setups/config_detector.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | description = 'presets for the detector position'
group = 'configdata'
# Assigns presets for the detector z position and x/y displacement of the
# beamstop for each selector preset.
#
# When you add a new detector z position, make sure to add a real offset as
# well in the DETECTOR_OFFSETS table below.
FIXED_X = 0.0
... | 38.414414 | 75 | 0.48546 | 800 | 4,264 | 2.4325 | 0.11375 | 0.181912 | 0.205036 | 0.168551 | 0.708119 | 0.708119 | 0.702467 | 0.700411 | 0.700411 | 0.698356 | 0 | 0.107292 | 0.324578 | 4,264 | 110 | 76 | 38.763636 | 0.568403 | 0.104362 | 0 | 0.521277 | 0 | 0 | 0.074337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
dc9681057f7d9d87d8907cd895972f5214259209 | 27,842 | py | Python | fhir/resources/tests/test_observation.py | mmabey/fhir.resources | cc73718e9762c04726cd7de240c8f2dd5313cbe1 | [
"BSD-3-Clause"
] | null | null | null | fhir/resources/tests/test_observation.py | mmabey/fhir.resources | cc73718e9762c04726cd7de240c8f2dd5313cbe1 | [
"BSD-3-Clause"
] | null | null | null | fhir/resources/tests/test_observation.py | mmabey/fhir.resources | cc73718e9762c04726cd7de240c8f2dd5313cbe1 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Profile: http://hl7.org/fhir/StructureDefinition/Observation
Release: R4
Version: 4.0.1
Build ID: 9346c8cc45
Last updated: 2019-11-01T09:29:23.356+11:00
"""
import io
import json
import os
import unittest
import pytest
from .. import observation
from ..fhirdate import FHIRDate
from .fixtu... | 44.476038 | 193 | 0.638496 | 3,098 | 27,842 | 5.61459 | 0.090704 | 0.200644 | 0.200069 | 0.250086 | 0.887202 | 0.871162 | 0.859204 | 0.823445 | 0.794067 | 0.779809 | 0 | 0.029159 | 0.227678 | 27,842 | 625 | 194 | 44.5472 | 0.779752 | 0.006285 | 0 | 0.544674 | 0 | 0.003436 | 0.173361 | 0.018113 | 0 | 0 | 0 | 0 | 0.372852 | 1 | 0.036082 | false | 0 | 0.013746 | 0 | 0.053265 | 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 |
760a692226e9739eeff7ef4dc62a27752a8f9ead | 840 | py | Python | pyaz/monitor/activity_log/alert/scope/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/monitor/activity_log/alert/scope/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/monitor/activity_log/alert/scope/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | 1 | 2022-02-03T09:12:01.000Z | 2022-02-03T09:12:01.000Z | from ..... pyaz_utils import _call_az
def add(name, resource_group, scope, reset=None):
'''
Add scopes to this activity log alert.
Required Parameters:
- name -- None
- resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>`
- ... | 28.965517 | 128 | 0.671429 | 108 | 840 | 5.12037 | 0.333333 | 0.141049 | 0.115732 | 0.079566 | 0.701627 | 0.701627 | 0.701627 | 0.701627 | 0.701627 | 0.701627 | 0 | 0 | 0.225 | 840 | 28 | 129 | 30 | 0.849462 | 0.567857 | 0 | 0 | 0 | 0 | 0.278351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
76203cf07731b5c655459678767c0a81b833d716 | 65 | py | Python | pygsuite/utility/guids.py | gitter-badger/pygsuite | 536766c36f653edbc7585141f1c3327f508e19da | [
"MIT"
] | null | null | null | pygsuite/utility/guids.py | gitter-badger/pygsuite | 536766c36f653edbc7585141f1c3327f508e19da | [
"MIT"
] | null | null | null | pygsuite/utility/guids.py | gitter-badger/pygsuite | 536766c36f653edbc7585141f1c3327f508e19da | [
"MIT"
] | null | null | null | from uuid import uuid4
def get_guid():
return str(uuid4())
| 10.833333 | 23 | 0.676923 | 10 | 65 | 4.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0.215385 | 65 | 5 | 24 | 13 | 0.803922 | 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 | 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 | 1 | 1 | 0 | 0 | 7 |
8743618cb8d520bc2d553a23c39a328e450a7aa1 | 118 | py | Python | baseline/tf/lm/training/__init__.py | shar999/mead-baseline | bd9cd02c0a1d9c0df91aca171774a6967e6ce190 | [
"Apache-2.0"
] | 241 | 2016-04-25T20:02:31.000Z | 2019-09-03T05:44:09.000Z | baseline/tf/lm/training/__init__.py | shar999/mead-baseline | bd9cd02c0a1d9c0df91aca171774a6967e6ce190 | [
"Apache-2.0"
] | 42 | 2017-08-21T16:04:36.000Z | 2019-09-30T20:45:17.000Z | baseline/tf/lm/training/__init__.py | shar999/mead-baseline | bd9cd02c0a1d9c0df91aca171774a6967e6ce190 | [
"Apache-2.0"
] | 75 | 2016-06-28T01:18:58.000Z | 2019-08-29T06:47:22.000Z | import tensorflow as tf
from baseline.tf.lm.training.eager import *
from baseline.tf.lm.training.distributed import *
| 29.5 | 49 | 0.813559 | 18 | 118 | 5.333333 | 0.555556 | 0.25 | 0.291667 | 0.333333 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101695 | 118 | 3 | 50 | 39.333333 | 0.90566 | 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 |
8745bf1f03aab31b98850fe7136d547a644ccad0 | 154 | py | Python | singletask_sql/tables/utils/query.py | lenaKuznetsova/singletask-sql | 460d1c3ca41e3a5c4ca263a4ebe03ab7664ddcdb | [
"MIT"
] | null | null | null | singletask_sql/tables/utils/query.py | lenaKuznetsova/singletask-sql | 460d1c3ca41e3a5c4ca263a4ebe03ab7664ddcdb | [
"MIT"
] | null | null | null | singletask_sql/tables/utils/query.py | lenaKuznetsova/singletask-sql | 460d1c3ca41e3a5c4ca263a4ebe03ab7664ddcdb | [
"MIT"
] | null | null | null | from singletask_sql.tables.constants import INCLUDED_DELETED
def include_deleted(query):
return query.execution_options(**{INCLUDED_DELETED: True})
| 25.666667 | 62 | 0.818182 | 19 | 154 | 6.368421 | 0.789474 | 0.247934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097403 | 154 | 5 | 63 | 30.8 | 0.870504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
5e8c6938a8085737ba4677787be87afe4ca05f1f | 733 | py | Python | pysit/objective_functions/__init__.py | zfang-slim/PysitForPython3 | dc60537b26018e28d92b7a956a2cf96775f0bdf9 | [
"BSD-3-Clause"
] | null | null | null | pysit/objective_functions/__init__.py | zfang-slim/PysitForPython3 | dc60537b26018e28d92b7a956a2cf96775f0bdf9 | [
"BSD-3-Clause"
] | null | null | null | pysit/objective_functions/__init__.py | zfang-slim/PysitForPython3 | dc60537b26018e28d92b7a956a2cf96775f0bdf9 | [
"BSD-3-Clause"
] | 1 | 2020-06-13T07:13:07.000Z | 2020-06-13T07:13:07.000Z |
from pysit.objective_functions.objective_function import *
from pysit.objective_functions.temporal_least_squares import *
from pysit.objective_functions.hybrid_least_squares import *
from pysit.objective_functions.frequency_least_squares import *
# from pysit.objective_functions.temporal_least_squares_includePML impo... | 52.357143 | 80 | 0.888131 | 90 | 733 | 6.844444 | 0.233333 | 0.160714 | 0.321429 | 0.482143 | 0.814935 | 0.814935 | 0.61526 | 0.469156 | 0.211039 | 0 | 0 | 0 | 0.06412 | 733 | 13 | 81 | 56.384615 | 0.897959 | 0.207367 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
0d9be1eae9adc0830328284806d740c1e0389b95 | 16,424 | py | Python | lib/FakeObjectsForTests/FakeObjectsForTestsClient.py | r2sunita/SetAPI | 4ed769ed9678c057c7ded05fb93b9b7dc0874fc2 | [
"MIT"
] | null | null | null | lib/FakeObjectsForTests/FakeObjectsForTestsClient.py | r2sunita/SetAPI | 4ed769ed9678c057c7ded05fb93b9b7dc0874fc2 | [
"MIT"
] | null | null | null | lib/FakeObjectsForTests/FakeObjectsForTestsClient.py | r2sunita/SetAPI | 4ed769ed9678c057c7ded05fb93b9b7dc0874fc2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
############################################################
#
# Autogenerated by the KBase type compiler -
# any changes made here will be overwritten
#
############################################################
from __future__ import print_function
# the following is a hack to get the basec... | 60.605166 | 82 | 0.656905 | 2,254 | 16,424 | 4.611358 | 0.115794 | 0.037714 | 0.061285 | 0.062151 | 0.897922 | 0.892438 | 0.876467 | 0.873004 | 0.865307 | 0.841543 | 0 | 0.016941 | 0.270397 | 16,424 | 270 | 83 | 60.82963 | 0.850455 | 0.627618 | 0 | 0.516854 | 1 | 0 | 0.061177 | 0.029636 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101124 | false | 0.022472 | 0.044944 | 0.044944 | 0.247191 | 0.011236 | 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 |
0dc8763982c79f92b9a20691c931f8675864e2dd | 1,136 | py | Python | test/pdetools_spectral_test.py | jinanloubani/aTEAM | 0999799fafbdc36ae09cdd91d99a5a7316803143 | [
"MIT"
] | 23 | 2018-05-25T02:16:59.000Z | 2022-03-24T06:56:34.000Z | test/pdetools_spectral_test.py | jinanloubani/aTEAM | 0999799fafbdc36ae09cdd91d99a5a7316803143 | [
"MIT"
] | 1 | 2019-06-11T06:59:21.000Z | 2019-06-11T06:59:40.000Z | test/pdetools_spectral_test.py | jinanloubani/aTEAM | 0999799fafbdc36ae09cdd91d99a5a7316803143 | [
"MIT"
] | 8 | 2018-08-29T16:43:12.000Z | 2022-01-17T11:54:40.000Z | #%%
import torch
import aTEAM
import aTEAM.pdetools.spectral as spectral
import aTEAM.pdetools.init as init
import aTEAM.nn.functional as aF
size = 100
dx = 1/size
u = init.initgen(mesh_size=[size,size], freq=4)
mesh_bound = [[0,0],[1,1]]
# u = u.to(dtype=torch.float32)
upad = aF.periodicpad(u, [0,0,1,1])
u_spect = ... | 27.707317 | 91 | 0.713908 | 196 | 1,136 | 4.015306 | 0.204082 | 0.111817 | 0.096569 | 0.055909 | 0.923761 | 0.917408 | 0.917408 | 0.917408 | 0.917408 | 0.640407 | 0 | 0.065558 | 0.100352 | 1,136 | 40 | 92 | 28.4 | 0.704501 | 0.058099 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
0ddf383708415659b3f33bdc94cfde6205f071e1 | 63 | py | Python | storage_server/testing.py | khaledismaeel/Simple-DFS | 2c2481213b25aec25e6de3eb56c9671b83303147 | [
"Unicode-DFS-2016",
"Unicode-DFS-2015"
] | null | null | null | storage_server/testing.py | khaledismaeel/Simple-DFS | 2c2481213b25aec25e6de3eb56c9671b83303147 | [
"Unicode-DFS-2016",
"Unicode-DFS-2015"
] | null | null | null | storage_server/testing.py | khaledismaeel/Simple-DFS | 2c2481213b25aec25e6de3eb56c9671b83303147 | [
"Unicode-DFS-2016",
"Unicode-DFS-2015"
] | null | null | null | print("==================================\nServer response...") | 63 | 63 | 0.31746 | 3 | 63 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 63 | 1 | 63 | 63 | 0.322581 | 0 | 0 | 0 | 0 | 0 | 0.84375 | 0.65625 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
df26733eb6aee877991603b2cc77b6050bdecd3e | 106 | py | Python | ccal/normalize_path.py | alex-wenzel/ccal | 74dfc604d93e6ce9e12f34a828b601618df51faa | [
"MIT"
] | null | null | null | ccal/normalize_path.py | alex-wenzel/ccal | 74dfc604d93e6ce9e12f34a828b601618df51faa | [
"MIT"
] | null | null | null | ccal/normalize_path.py | alex-wenzel/ccal | 74dfc604d93e6ce9e12f34a828b601618df51faa | [
"MIT"
] | null | null | null | from os.path import abspath, expanduser
def normalize_path(path):
return abspath(expanduser(path))
| 15.142857 | 39 | 0.764151 | 14 | 106 | 5.714286 | 0.642857 | 0.425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150943 | 106 | 6 | 40 | 17.666667 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
df7715f6b6f7a749644bfed0e6a06ae667858536 | 34,794 | py | Python | data_plotting/plot_errors_norms.py | qgoestch/sinecity_testcases | ec04ba707ff69b5c1b4b42e56e522855a2f34a65 | [
"BSD-3-Clause"
] | null | null | null | data_plotting/plot_errors_norms.py | qgoestch/sinecity_testcases | ec04ba707ff69b5c1b4b42e56e522855a2f34a65 | [
"BSD-3-Clause"
] | null | null | null | data_plotting/plot_errors_norms.py | qgoestch/sinecity_testcases | ec04ba707ff69b5c1b4b42e56e522855a2f34a65 | [
"BSD-3-Clause"
] | 1 | 2021-02-18T13:07:10.000Z | 2021-02-18T13:07:10.000Z | # -*- coding: utf-8 -*-
##
# \file plot_errors_norms.py
# \title Errors and norms for each case.
# \author Pierre Chobeau
# \version 0.1
# \license BSD 3-Clause License
# \inst UMRAE (Ifsttar Nantes), LAUM (Le Mans Université)
# \date 2017, 12 Oct.
##
import numpy as np
import matplotlib.ticker
from ... | 45.721419 | 91 | 0.600764 | 5,101 | 34,794 | 3.892766 | 0.047442 | 0.030619 | 0.027648 | 0.058015 | 0.937805 | 0.905474 | 0.900287 | 0.893891 | 0.888402 | 0.876165 | 0 | 0.036519 | 0.21771 | 34,794 | 760 | 92 | 45.781579 | 0.693009 | 0.070127 | 0 | 0.783784 | 0 | 0 | 0.081446 | 0.003369 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.007722 | null | null | 0.009653 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
800f1c974609331069b47a8ef9dcc1c85654a7a1 | 161 | py | Python | main.py | agopalak/football_pred | 48b150bfe3e117f5632f5117ebeff044778c45ad | [
"MIT"
] | null | null | null | main.py | agopalak/football_pred | 48b150bfe3e117f5632f5117ebeff044778c45ad | [
"MIT"
] | null | null | null | main.py | agopalak/football_pred | 48b150bfe3e117f5632f5117ebeff044778c45ad | [
"MIT"
] | null | null | null | from pre_proc import get_weather
#from pre_proc import get_nfldata
get_weather.fetch_weather('Tampa, FL', '12/19/2010', '1:00 PM')
#get_nfldata.get_nfldata()
| 20.125 | 63 | 0.770186 | 28 | 161 | 4.142857 | 0.571429 | 0.258621 | 0.189655 | 0.293103 | 0.344828 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076389 | 0.10559 | 161 | 7 | 64 | 23 | 0.729167 | 0.354037 | 0 | 0 | 0 | 0 | 0.26 | 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 |
33bbb51a72521d081fcd148fd6223e98315d50b8 | 2,167 | py | Python | tests/test_run.py | Maddosaurus/MLT | 8276d3eb72614368dea9160f8afc474f0c42a1b5 | [
"Apache-2.0"
] | 4 | 2019-02-01T12:15:47.000Z | 2021-11-15T12:38:52.000Z | tests/test_run.py | Maddosaurus/MLT | 8276d3eb72614368dea9160f8afc474f0c42a1b5 | [
"Apache-2.0"
] | 2 | 2020-03-21T21:42:36.000Z | 2020-09-25T23:20:00.000Z | tests/test_run.py | Maddosaurus/MLT | 8276d3eb72614368dea9160f8afc474f0c42a1b5 | [
"Apache-2.0"
] | 1 | 2019-06-05T11:09:05.000Z | 2019-06-05T11:09:05.000Z | # pylint: disable=redefined-outer-name,missing-docstring,unused-import,no-self-use
import pytest
import argparse
from .context import run, base_runner
def test_create_parser():
assert isinstance(run.create_parser(), argparse.ArgumentParser)
def test_nsl_kfold(monkeypatch):
def mock_run_nsl(args):
ass... | 36.728814 | 115 | 0.640517 | 299 | 2,167 | 4.494983 | 0.160535 | 0.133929 | 0.25 | 0.130952 | 0.844494 | 0.828125 | 0.828125 | 0.828125 | 0.756696 | 0.756696 | 0 | 0.061574 | 0.190586 | 2,167 | 59 | 116 | 36.728814 | 0.704675 | 0.036917 | 0 | 0.723404 | 0 | 0 | 0.110259 | 0 | 0 | 0 | 0 | 0 | 0.404255 | 1 | 0.191489 | false | 0 | 0.06383 | 0 | 0.255319 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
33c6f13611fcfbde21bb7c79d1cb27ce55189122 | 204 | py | Python | tests/samples/indentation.py | spamegg1/snoop | 2d169d003de4382717f45592f5799983c26a8573 | [
"MIT"
] | 751 | 2019-07-03T13:40:38.000Z | 2022-03-30T02:28:00.000Z | tests/samples/indentation.py | spamegg1/snoop | 2d169d003de4382717f45592f5799983c26a8573 | [
"MIT"
] | 42 | 2019-07-04T19:30:36.000Z | 2022-03-26T09:19:19.000Z | tests/samples/indentation.py | spamegg1/snoop | 2d169d003de4382717f45592f5799983c26a8573 | [
"MIT"
] | 30 | 2019-07-14T15:55:27.000Z | 2022-03-19T16:38:12.000Z | import snoop
@snoop.snoop(depth=2)
def main():
f2()
def f2():
f3()
def f3():
f4()
@snoop.snoop(depth=2)
def f4():
f5()
def f5():
pass
if __name__ == '__main__':
main()
| 7.285714 | 26 | 0.509804 | 29 | 204 | 3.310345 | 0.448276 | 0.3125 | 0.3125 | 0.333333 | 0.395833 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069444 | 0.294118 | 204 | 27 | 27 | 7.555556 | 0.597222 | 0 | 0 | 0.133333 | 0 | 0 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0.066667 | 0.066667 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
d5136b6bb241d8484614f11588761e02420c0560 | 164 | py | Python | test/input/058.py | EliRibble/pyfmt | e84a5531a7c06703eddd9dbc2072b0c8deae8c57 | [
"MIT"
] | null | null | null | test/input/058.py | EliRibble/pyfmt | e84a5531a7c06703eddd9dbc2072b0c8deae8c57 | [
"MIT"
] | null | null | null | test/input/058.py | EliRibble/pyfmt | e84a5531a7c06703eddd9dbc2072b0c8deae8c57 | [
"MIT"
] | null | null | null | assert 1 != 2, "Check that math still makes sense in this particular simulation. Check it with a really long assert and see if we can properly format said assert."
| 82 | 163 | 0.77439 | 29 | 164 | 4.37931 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.182927 | 164 | 1 | 164 | 164 | 0.932836 | 0 | 0 | 0 | 0 | 1 | 0.890244 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1d1ac419ab6f2a11fed2ad3cf1d0c35e97d831f1 | 6,714 | py | Python | bindings/python/ensmallen_graph/datasets/string/panicumvirgatum.py | caufieldjh/ensmallen_graph | 14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a | [
"MIT"
] | null | null | null | bindings/python/ensmallen_graph/datasets/string/panicumvirgatum.py | caufieldjh/ensmallen_graph | 14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a | [
"MIT"
] | null | null | null | bindings/python/ensmallen_graph/datasets/string/panicumvirgatum.py | caufieldjh/ensmallen_graph | 14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a | [
"MIT"
] | null | null | null | """
This file offers the methods to automatically retrieve the graph Panicum virgatum.
The graph is automatically retrieved from the STRING repository.
Report
---------------------
At the time of rendering these methods (please see datetime below), the graph
had the following characteristics:
Datetime: 2021-02-02... | 35.151832 | 223 | 0.700328 | 919 | 6,714 | 5.077258 | 0.279652 | 0.029147 | 0.017145 | 0.011144 | 0.826404 | 0.826404 | 0.826404 | 0.826404 | 0.826404 | 0.802829 | 0 | 0.062394 | 0.212243 | 6,714 | 190 | 224 | 35.336842 | 0.819815 | 0.933721 | 0 | 0 | 0 | 0 | 0.059965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.176471 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1d699cbfcf0b8d0627a1300eda28c06e4cf6f5d0 | 857 | py | Python | notebook/jupyter_system_command_cd.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 174 | 2018-05-30T21:14:50.000Z | 2022-03-25T07:59:37.000Z | notebook/jupyter_system_command_cd.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 5 | 2019-08-10T03:22:02.000Z | 2021-07-12T20:31:17.000Z | notebook/jupyter_system_command_cd.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 53 | 2018-04-27T05:26:35.000Z | 2022-03-25T07:59:37.000Z | import os
print(os.getcwd())
# /Users/mbp/Documents/my-project/python-snippets/notebook
!pwd
# /Users/mbp/Documents/my-project/python-snippets/notebook
%pwd
# '/Users/mbp/Documents/my-project/python-snippets/notebook'
!cd data
print(os.getcwd())
# /Users/mbp/Documents/my-project/python-snippets/notebook
%cd data
... | 21.974359 | 65 | 0.767795 | 122 | 857 | 5.393443 | 0.131148 | 0.133739 | 0.284195 | 0.317629 | 0.974164 | 0.974164 | 0.974164 | 0.974164 | 0.901216 | 0.828267 | 0 | 0 | 0.061844 | 857 | 38 | 66 | 22.552632 | 0.818408 | 0.764294 | 0 | 0.642857 | 0 | 0 | 0.021053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.357143 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
d529af58a4e54f7775e265814bb3d45520012a0e | 152 | py | Python | hooks/post_gen_project.py | janclemenslab/cookiecutter_cluster-template | e0d8d40f96f1b9ae329bf6a991246f6b3b49b9d0 | [
"Apache-2.0"
] | 1 | 2022-03-15T01:25:38.000Z | 2022-03-15T01:25:38.000Z | hooks/post_gen_project.py | janclemenslab/cookiecutter_cluster-template | e0d8d40f96f1b9ae329bf6a991246f6b3b49b9d0 | [
"Apache-2.0"
] | null | null | null | hooks/post_gen_project.py | janclemenslab/cookiecutter_cluster-template | e0d8d40f96f1b9ae329bf6a991246f6b3b49b9d0 | [
"Apache-2.0"
] | null | null | null | print('Generated new project in "{{ cookiecutter.project_name }}".')
print('See "{{ cookiecutter.project_name }}/README.md" for further instructions.')
| 50.666667 | 82 | 0.736842 | 18 | 152 | 6.111111 | 0.722222 | 0.345455 | 0.418182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092105 | 152 | 2 | 83 | 76 | 0.797101 | 0 | 0 | 0 | 1 | 0 | 0.868421 | 0.328947 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 8 |
d5ad98073dd3ee64c564eaaa926832a147226a49 | 164 | py | Python | blog/admin.py | tarun-developer/Blog_site | 6edc963683a32093e0ce1e84cf3d31c42dcf056a | [
"Apache-2.0"
] | 1 | 2020-08-10T15:59:04.000Z | 2020-08-10T15:59:04.000Z | blog/admin.py | tarun-developer/Blog_site | 6edc963683a32093e0ce1e84cf3d31c42dcf056a | [
"Apache-2.0"
] | 8 | 2021-04-08T21:51:44.000Z | 2022-03-12T00:36:53.000Z | blog/admin.py | bayazidtamim/Safaesying-verssion-0.0.0 | eaf86a211a26ea8e47326c15475eb76bb4e42214 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from blog.models.comment import Comment
from blog.models.post import Post
admin.site.register(Post)
admin.site.register(Comment)
| 20.5 | 39 | 0.823171 | 25 | 164 | 5.4 | 0.44 | 0.118519 | 0.207407 | 0.311111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 164 | 7 | 40 | 23.428571 | 0.912162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 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 |
63643780002884b6751fdfac99e66396ed531d84 | 4,295 | py | Python | tests/environments/test_reqs.py | FollowTheProcess/pytoil | b13acb14f015ae5399d7697bdc3e0e475dff03ec | [
"Apache-2.0"
] | 6 | 2021-05-08T20:31:03.000Z | 2022-03-08T01:25:43.000Z | tests/environments/test_reqs.py | FollowTheProcess/pytoil | b13acb14f015ae5399d7697bdc3e0e475dff03ec | [
"Apache-2.0"
] | 116 | 2021-07-08T11:21:22.000Z | 2022-03-30T14:04:51.000Z | tests/environments/test_reqs.py | FollowTheProcess/pytoil | b13acb14f015ae5399d7697bdc3e0e475dff03ec | [
"Apache-2.0"
] | null | null | null | """
Tests for the RequirementsTxtEnv class.
Author: Tom Fleet
Created: 15/07/2021
"""
from pathlib import Path
from pytest_mock import MockerFixture
from pytoil.environments import ReqTxtEnv
def test_reqenv_init():
root = Path("/Users/me/fakeproject")
venv = ReqTxtEnv(project_path=root)
assert venv.... | 22.605263 | 86 | 0.632829 | 468 | 4,295 | 5.568376 | 0.183761 | 0.075979 | 0.057559 | 0.111282 | 0.886416 | 0.886416 | 0.886416 | 0.886416 | 0.886416 | 0.857636 | 0 | 0.002519 | 0.260536 | 4,295 | 189 | 87 | 22.724868 | 0.81801 | 0.053318 | 0 | 0.75 | 0 | 0 | 0.195068 | 0.127744 | 0 | 0 | 0 | 0 | 0.085938 | 1 | 0.0625 | false | 0.015625 | 0.023438 | 0 | 0.085938 | 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 |
63b85802f6a8410c7249cce2360ef670696bf025 | 685 | py | Python | lib/tool_shed/util/tool_util.py | beatrizserrano/galaxy | e149d9d32e1bca6c07c38b1a9cdabfee60323610 | [
"CC-BY-3.0"
] | null | null | null | lib/tool_shed/util/tool_util.py | beatrizserrano/galaxy | e149d9d32e1bca6c07c38b1a9cdabfee60323610 | [
"CC-BY-3.0"
] | 6 | 2021-11-11T20:57:49.000Z | 2021-12-10T15:30:33.000Z | lib/tool_shed/util/tool_util.py | beatrizserrano/galaxy | e149d9d32e1bca6c07c38b1a9cdabfee60323610 | [
"CC-BY-3.0"
] | null | null | null | from galaxy.tool_shed.util.tool_util import (
build_shed_tool_conf_select_field,
build_tool_panel_section_select_field,
copy_sample_file,
copy_sample_files,
generate_message_for_invalid_tools,
get_tool_path_install_dir,
handle_missing_index_file,
is_data_index_sample_file,
new_state,... | 26.346154 | 45 | 0.769343 | 95 | 685 | 4.789474 | 0.368421 | 0.096703 | 0.057143 | 0.074725 | 0.914286 | 0.914286 | 0.914286 | 0.914286 | 0.914286 | 0.914286 | 0 | 0 | 0.160584 | 685 | 25 | 46 | 27.4 | 0.791304 | 0 | 0 | 0 | 1 | 0 | 0.351825 | 0.261314 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
896970d180a8eee7ac45536fea4dcb4513bede02 | 5,705 | py | Python | internos/etools/migrations/0006_auto_20190303_2148.py | UNICEFLebanonInnovation/Staging-Neuro | aac1e4f335ff4ec32041f989a9c22f8581a4961a | [
"MIT"
] | 1 | 2020-12-12T07:41:11.000Z | 2020-12-12T07:41:11.000Z | internos/etools/migrations/0006_auto_20190303_2148.py | UNICEFLebanonInnovation/Staging-Neuro | aac1e4f335ff4ec32041f989a9c22f8581a4961a | [
"MIT"
] | 9 | 2019-12-31T09:30:23.000Z | 2022-01-13T00:49:47.000Z | internos/etools/migrations/0006_auto_20190303_2148.py | UNICEFLebanonInnovation/Staging-Neuro | aac1e4f335ff4ec32041f989a9c22f8581a4961a | [
"MIT"
] | 1 | 2020-02-03T13:12:55.000Z | 2020-02-03T13:12:55.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2019-03-03 21:48
from __future__ import unicode_literals
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('etools', '0005_auto_20190303_1708'),
]
operat... | 38.809524 | 139 | 0.595267 | 614 | 5,705 | 5.351792 | 0.149837 | 0.142422 | 0.181984 | 0.213634 | 0.877967 | 0.877967 | 0.86762 | 0.859099 | 0.859099 | 0.859099 | 0 | 0.0271 | 0.282033 | 5,705 | 146 | 140 | 39.075342 | 0.775146 | 0.011919 | 0 | 0.748201 | 1 | 0 | 0.090699 | 0.027334 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021583 | 0 | 0.043165 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
898a3d56dc13d076206e44d0d6cfeec052254ce5 | 6,751 | py | Python | tests/unit_tests/test_model_event.py | JamesNolan17/SUTDHousingPortal | 12aeefd27a917c32ce961cafb82bbe28630901a1 | [
"MIT"
] | 1 | 2021-04-09T11:29:40.000Z | 2021-04-09T11:29:40.000Z | tests/unit_tests/test_model_event.py | JamesNolan17/SUTDHousingPortal | 12aeefd27a917c32ce961cafb82bbe28630901a1 | [
"MIT"
] | 4 | 2021-03-22T16:33:20.000Z | 2021-06-19T05:06:57.000Z | tests/unit_tests/test_model_event.py | JamesNolan17/SUTDHousingPortal | 12aeefd27a917c32ce961cafb82bbe28630901a1 | [
"MIT"
] | 1 | 2021-05-14T06:00:04.000Z | 2021-05-14T06:00:04.000Z | import sys
import unittest
from datetime import datetime
from pathlib import Path
from pydantic.error_wrappers import ValidationError
src_dir = Path(__file__).resolve().parent.parent.parent / "src"
sys.path.insert(0, str(src_dir))
from api.models.event import Event
class TestEventCreation(unittest.TestCase):
... | 36.89071 | 77 | 0.600652 | 743 | 6,751 | 5.269179 | 0.130552 | 0.210983 | 0.257216 | 0.061303 | 0.889911 | 0.869732 | 0.834227 | 0.814815 | 0.804853 | 0.793103 | 0 | 0.013921 | 0.287069 | 6,751 | 182 | 78 | 37.093407 | 0.799501 | 0 | 0 | 0.724551 | 0 | 0 | 0.11702 | 0 | 0 | 0 | 0 | 0 | 0.365269 | 1 | 0.047904 | false | 0 | 0.035928 | 0 | 0.08982 | 0.035928 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
987ee875fb23dec93b6c00bd49c271c7cde9dc6b | 14,540 | py | Python | manageXML/migrations/0001_initial.py | mikahama/verdd | 802fae5d3725a6fa34065cbee194f1b904d4be52 | [
"Apache-2.0"
] | 5 | 2020-08-10T16:53:00.000Z | 2021-12-07T13:04:53.000Z | manageXML/migrations/0001_initial.py | mikahama/verdd | 802fae5d3725a6fa34065cbee194f1b904d4be52 | [
"Apache-2.0"
] | null | null | null | manageXML/migrations/0001_initial.py | mikahama/verdd | 802fae5d3725a6fa34065cbee194f1b904d4be52 | [
"Apache-2.0"
] | 2 | 2020-12-26T22:31:55.000Z | 2021-03-26T20:15:46.000Z | # Generated by Django 2.2.1 on 2019-06-14 15:00
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import simple_history.models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | 61.350211 | 188 | 0.5826 | 1,462 | 14,540 | 5.610123 | 0.091655 | 0.098756 | 0.040966 | 0.073153 | 0.893197 | 0.884906 | 0.877103 | 0.867715 | 0.86674 | 0.855401 | 0 | 0.017281 | 0.255777 | 14,540 | 236 | 189 | 61.610169 | 0.740689 | 0.003095 | 0 | 0.764192 | 1 | 0 | 0.156627 | 0.010281 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.026201 | 0 | 0.043668 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
7f9de97ad0183c1adf7514ee049023168d444962 | 50 | py | Python | assets/shaders/white.py | E15dev/pygame-shader-render | 5a773b762c6e8013c1f011a02f8fb0bc2731f86a | [
"MIT"
] | 2 | 2022-02-06T19:58:26.000Z | 2022-03-09T10:40:17.000Z | assets/shaders/white.py | E15dev/pygame-shader-render | 5a773b762c6e8013c1f011a02f8fb0bc2731f86a | [
"MIT"
] | null | null | null | assets/shaders/white.py | E15dev/pygame-shader-render | 5a773b762c6e8013c1f011a02f8fb0bc2731f86a | [
"MIT"
] | null | null | null | def shader(x, y, z):
return (255, 255, 255)
| 16.666667 | 27 | 0.54 | 9 | 50 | 3 | 0.777778 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0.28 | 50 | 2 | 28 | 25 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
7fb2d8529fdc1fb892f50f0f0158d0927199801d | 23,437 | py | Python | CubeSolver.py | mattiagiuri/rubikpy | fbaddca587833a746231dd596dfc363f6acef107 | [
"Apache-2.0"
] | 2 | 2020-12-03T22:29:43.000Z | 2022-02-09T02:57:04.000Z | CubeSolver.py | mattiagiuri/rubikpy | fbaddca587833a746231dd596dfc363f6acef107 | [
"Apache-2.0"
] | null | null | null | CubeSolver.py | mattiagiuri/rubikpy | fbaddca587833a746231dd596dfc363f6acef107 | [
"Apache-2.0"
] | null | null | null | # input must contain faces in this order: white, red, green, orange, blue, yellow
import numpy as np
from CubeMover import CubeMover
class CubeSolver:
def __init__(self, cube):
self.mover = CubeMover(cube)
self.cube = cube
self.yellow_crossed = False
self.yellow_vertexes = False
... | 27.868014 | 231 | 0.41891 | 3,112 | 23,437 | 3.000964 | 0.032776 | 0.369097 | 0.168326 | 0.157404 | 0.884891 | 0.852661 | 0.822572 | 0.771175 | 0.72406 | 0.647821 | 0 | 0.033024 | 0.421172 | 23,437 | 840 | 232 | 27.90119 | 0.655388 | 0.003371 | 0 | 0.822314 | 0 | 0 | 0.008863 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048209 | false | 0 | 0.002755 | 0 | 0.052342 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
f6f0e7e9ee03e11df638f4c93af2cd8a5f786675 | 105,392 | py | Python | infoblox_netmri/api/broker/v3_8_0/if_perf_daily_broker.py | infobloxopen/infoblox_netmri | aa1c744df7e439dbe163bb9edd165e4e85a9771b | [
"Apache-2.0"
] | 12 | 2016-02-19T12:37:54.000Z | 2022-03-04T20:11:08.000Z | infoblox_netmri/api/broker/v3_8_0/if_perf_daily_broker.py | infobloxopen/infoblox_netmri | aa1c744df7e439dbe163bb9edd165e4e85a9771b | [
"Apache-2.0"
] | 18 | 2015-11-12T18:37:00.000Z | 2021-05-19T07:59:55.000Z | infoblox_netmri/api/broker/v3_8_0/if_perf_daily_broker.py | infobloxopen/infoblox_netmri | aa1c744df7e439dbe163bb9edd165e4e85a9771b | [
"Apache-2.0"
] | 18 | 2016-01-07T12:04:34.000Z | 2022-03-31T11:05:41.000Z | from ..broker import Broker
class IfPerfDailyBroker(Broker):
controller = "if_perf_dailies"
def index(self, **kwargs):
"""Lists the available if perf dailies. Any of the inputs listed may be be used to narrow the list; other inputs will be ignored. Of the various ways to query lists, using this metho... | 56.571122 | 934 | 0.618861 | 12,873 | 105,392 | 5.009788 | 0.025324 | 0.070708 | 0.04596 | 0.07815 | 0.968724 | 0.967546 | 0.934161 | 0.915523 | 0.909553 | 0.907925 | 0 | 0.00424 | 0.299539 | 105,392 | 1,862 | 935 | 56.601504 | 0.86935 | 0.838574 | 0 | 0 | 0 | 0 | 0.06424 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 9 |
100fb0d2c81f5248a68531dd4f6ce6ffb5691fb5 | 7,657 | py | Python | models.py | FDKevin0/Micro-Expression-with-Deep-Learning | 617a359f264a4ccc4b6c5b1eb68c56b08d9cc397 | [
"BSD-3-Clause-Attribution"
] | null | null | null | models.py | FDKevin0/Micro-Expression-with-Deep-Learning | 617a359f264a4ccc4b6c5b1eb68c56b08d9cc397 | [
"BSD-3-Clause-Attribution"
] | null | null | null | models.py | FDKevin0/Micro-Expression-with-Deep-Learning | 617a359f264a4ccc4b6c5b1eb68c56b08d9cc397 | [
"BSD-3-Clause-Attribution"
] | null | null | null | from tensorflow.keras.layers import Conv2D, MaxPooling2D, ZeroPadding2D
from tensorflow.keras.layers import Flatten, Dense, Dropout
from tensorflow.keras.layers import LSTM, UpSampling2D
from tensorflow.keras.models import Sequential
def VGG_16_4_channels(spatial_size, classes, channels, channel_first=True, weights_p... | 34.490991 | 112 | 0.698446 | 1,151 | 7,657 | 4.584709 | 0.065161 | 0.204662 | 0.124692 | 0.139473 | 0.929316 | 0.893121 | 0.888952 | 0.875308 | 0.858442 | 0.858442 | 0 | 0.084209 | 0.092726 | 7,657 | 221 | 113 | 34.647059 | 0.675399 | 0.015672 | 0 | 0.906977 | 0 | 0 | 0.0415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02907 | false | 0 | 0.023256 | 0 | 0.081395 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
12352be125d6557f692dde0b2100ae201693defd | 6,673 | py | Python | python-backend/tests/parties/party_appt/resources/test_mine_party_appt_mm_overlap.py | MaxWardle/mds | 15d8405e6e95af98da9588f353c5d6692d1aa3d6 | [
"Apache-2.0"
] | null | null | null | python-backend/tests/parties/party_appt/resources/test_mine_party_appt_mm_overlap.py | MaxWardle/mds | 15d8405e6e95af98da9588f353c5d6692d1aa3d6 | [
"Apache-2.0"
] | null | null | null | python-backend/tests/parties/party_appt/resources/test_mine_party_appt_mm_overlap.py | MaxWardle/mds | 15d8405e6e95af98da9588f353c5d6692d1aa3d6 | [
"Apache-2.0"
] | null | null | null | import json, uuid, pytest
from datetime import date, timedelta
from tests.constants import TEST_MINE_PARTY_APPT_GUID, TEST_MINE_GUID, TEST_PARTY_PER_GUID_1, TEST_MINE_PARTY_APPT_TYPE_CODE2, TEST_PARTY_PER_FIRST_NAME_1, TEST_PARTY_PER_PARTY_NAME_1, TEST_MINE_PARTY_APPT_TYPE_CODE1, TEST_TAILINGS_STORAGE_FACILITY_GUID1, D... | 42.503185 | 273 | 0.72606 | 991 | 6,673 | 4.423814 | 0.097881 | 0.045164 | 0.053376 | 0.062044 | 0.888914 | 0.850137 | 0.825046 | 0.825046 | 0.818659 | 0.818659 | 0 | 0.013662 | 0.166342 | 6,673 | 157 | 274 | 42.503185 | 0.774402 | 0.012438 | 0 | 0.707692 | 0 | 0 | 0.113153 | 0.025213 | 0 | 0 | 0 | 0 | 0.061538 | 1 | 0.069231 | false | 0 | 0.038462 | 0 | 0.107692 | 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 |
d61028b5c9edb5890f6b62f355a23600734c0df6 | 166 | py | Python | HARK/BayerLuetticke/Assets/One/__init__.py | cohenimhuji/HARK | bb8549105ab979f853bd413d694f4a9b6572554e | [
"Apache-2.0"
] | null | null | null | HARK/BayerLuetticke/Assets/One/__init__.py | cohenimhuji/HARK | bb8549105ab979f853bd413d694f4a9b6572554e | [
"Apache-2.0"
] | null | null | null | HARK/BayerLuetticke/Assets/One/__init__.py | cohenimhuji/HARK | bb8549105ab979f853bd413d694f4a9b6572554e | [
"Apache-2.0"
] | null | null | null | from .FluctuationsOneAssetIOUs import *
from .FluctuationsOneAssetIOUsBond import *
from .SteadyStateOneAssetIOUs import *
from .SteadyStateOneAssetIOUsBond import *
| 33.2 | 43 | 0.855422 | 12 | 166 | 11.833333 | 0.5 | 0.211268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096386 | 166 | 4 | 44 | 41.5 | 0.946667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
d61ac718df5606dda0dcd1c91e750bea159990f2 | 642 | py | Python | tests/functions.py | jeertmans/checktype | 3f374964aae1388b7faa9c9ce7fde7dd8bc71e75 | [
"MIT"
] | null | null | null | tests/functions.py | jeertmans/checktype | 3f374964aae1388b7faa9c9ce7fde7dd8bc71e75 | [
"MIT"
] | null | null | null | tests/functions.py | jeertmans/checktype | 3f374964aae1388b7faa9c9ce7fde7dd8bc71e75 | [
"MIT"
] | null | null | null | def f_mul(a, b):
return a * b * 0.5
def f_mul_int_typed(a: int, b: int) -> float:
return f_mul(a, b)
def f_mul_int_missing_one(a: int, b) -> float:
return f_mul(a, b)
def f_mul_int_missing_two(a, b) -> float:
return f_mul(a, b)
def f_mul_int_missing_all(a, b):
return f_mul(a, b)
def f_mul_... | 18.882353 | 66 | 0.697819 | 131 | 642 | 2.854962 | 0.160305 | 0.192513 | 0.205882 | 0.256684 | 0.852941 | 0.705882 | 0.425134 | 0.425134 | 0.425134 | 0.36631 | 0 | 0.005703 | 0.180685 | 642 | 33 | 67 | 19.454545 | 0.705323 | 0 | 0 | 0.315789 | 0 | 0 | 0.132399 | 0.049844 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0 | 0.315789 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
c39c20aedf29823799615c5f498b1461f2bebeab | 37,201 | py | Python | sdk/python/pulumi_gcp/compute/forwarding_rule.py | dimpu47/pulumi-gcp | 38355de300a5768e11c49d344a8165ba0735deed | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_gcp/compute/forwarding_rule.py | dimpu47/pulumi-gcp | 38355de300a5768e11c49d344a8165ba0735deed | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_gcp/compute/forwarding_rule.py | dimpu47/pulumi-gcp | 38355de300a5768e11c49d344a8165ba0735deed | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # 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, Dict, List, Mapping, Optional, Tuple, Union
from .. import ... | 55.194362 | 167 | 0.649956 | 4,688 | 37,201 | 5.058874 | 0.083831 | 0.043599 | 0.043684 | 0.027323 | 0.857691 | 0.830789 | 0.813501 | 0.807598 | 0.803677 | 0.803677 | 0 | 0.014256 | 0.285342 | 37,201 | 673 | 168 | 55.276374 | 0.877793 | 0.624231 | 0 | 0.32 | 1 | 0 | 0.119327 | 0.015811 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0.004444 | 0.022222 | 0.008889 | 0.262222 | 0.026667 | 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 |
7f1848c7963115c27a2a3fb1ec554ff488c6f317 | 14,989 | py | Python | tweak/transformer_model.py | UKPLab/TWEAC-qa-agent-selection | ed4f0cafa87aefd4820cca0d7f4881d2de99a9f0 | [
"MIT"
] | 9 | 2021-04-16T12:45:45.000Z | 2022-01-29T10:52:52.000Z | tweak/transformer_model.py | UKPLab/TWEAC-qa-agent-selection | ed4f0cafa87aefd4820cca0d7f4881d2de99a9f0 | [
"MIT"
] | 1 | 2021-11-25T04:16:25.000Z | 2021-11-25T09:54:29.000Z | tweak/transformer_model.py | UKPLab/TWEAC-qa-agent-selection | ed4f0cafa87aefd4820cca0d7f4881d2de99a9f0 | [
"MIT"
] | 3 | 2021-04-16T12:43:41.000Z | 2021-11-25T04:21:43.000Z | import torch
from torch import nn
class TransformerModel(nn.Module):
def __init__(self, config, bert):
super(TransformerModel, self).__init__()
self.config = config
self.model_config = config["model"]
self.agents_extended = config.get("agents_extended", 0)
self.num_labels = ... | 52.045139 | 177 | 0.667089 | 1,934 | 14,989 | 4.935884 | 0.054292 | 0.080453 | 0.088624 | 0.033522 | 0.885921 | 0.870836 | 0.85397 | 0.846428 | 0.811125 | 0.805573 | 0 | 0.015479 | 0.215558 | 14,989 | 287 | 178 | 52.226481 | 0.796394 | 0.064381 | 0 | 0.775934 | 0 | 0 | 0.02659 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058091 | false | 0 | 0.008299 | 0 | 0.124481 | 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 |
6160d2e12fcb28bcd451e01996ffa0a3dc2a83f9 | 12,683 | py | Python | tests/controls/test_before_experiment_control.py | chaostoolkit-incubator/chaostoolkit-reliably | f7d7f1f262b9416f6caa66ade2082119d9718d50 | [
"Apache-2.0"
] | null | null | null | tests/controls/test_before_experiment_control.py | chaostoolkit-incubator/chaostoolkit-reliably | f7d7f1f262b9416f6caa66ade2082119d9718d50 | [
"Apache-2.0"
] | 4 | 2021-07-22T14:07:36.000Z | 2022-01-28T12:50:22.000Z | tests/controls/test_before_experiment_control.py | chaostoolkit-incubator/chaostoolkit-reliably | f7d7f1f262b9416f6caa66ade2082119d9718d50 | [
"Apache-2.0"
] | null | null | null | from typing import Any, Dict, cast
from unittest.mock import MagicMock, patch
from chaosreliably.controls import experiment
from chaosreliably.types import (
EntityContext,
EntityContextExperimentEventLabels,
EntityContextExperimentLabels,
EntityContextExperimentRunLabels,
EntityContextExperimentVe... | 36.133903 | 126 | 0.703777 | 1,214 | 12,683 | 6.979407 | 0.10626 | 0.098194 | 0.080255 | 0.059483 | 0.907589 | 0.900744 | 0.900744 | 0.889531 | 0.889531 | 0.841379 | 0 | 0.011654 | 0.21517 | 12,683 | 350 | 127 | 36.237143 | 0.839562 | 0.002287 | 0 | 0.710769 | 0 | 0 | 0.182257 | 0.089033 | 0 | 0 | 0 | 0 | 0.058462 | 1 | 0.018462 | false | 0 | 0.012308 | 0 | 0.030769 | 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 |
61831a77b2543543f34026115ed1aead58ee501f | 16,367 | py | Python | rti_python/Ensemble/RangeTracking.py | JeromeJGuay/viking_ADCP_processing | 24ea1ba6d7e72d956435811bcc5519807396d88f | [
"MIT"
] | null | null | null | rti_python/Ensemble/RangeTracking.py | JeromeJGuay/viking_ADCP_processing | 24ea1ba6d7e72d956435811bcc5519807396d88f | [
"MIT"
] | 1 | 2021-11-25T20:13:06.000Z | 2021-11-25T20:13:06.000Z | rti_python/Ensemble/RangeTracking.py | JeromeJGuay/viking_ADCP_processing | 24ea1ba6d7e72d956435811bcc5519807396d88f | [
"MIT"
] | null | null | null | from rti_python.Ensemble.Ensemble import Ensemble
import logging
class RangeTracking:
"""
Range Tracking DataSet.
Values that give details about the wave heights.
"""
def __init__(self, num_elements=8, element_multiplier=1):
self.ds_type = 10 # Float
... | 62.231939 | 163 | 0.658642 | 1,695 | 16,367 | 6.257227 | 0.087906 | 0.305487 | 0.162361 | 0.221478 | 0.839619 | 0.82359 | 0.779276 | 0.752593 | 0.746559 | 0.741656 | 0 | 0.01412 | 0.225454 | 16,367 | 262 | 164 | 62.469466 | 0.822513 | 0.043685 | 0 | 0.111765 | 0 | 0 | 0.000593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.011765 | 0 | 0.070588 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
6189c9493a0e59b8174e8eab575f242b0b88c547 | 171 | py | Python | PyBugger/file_loader.py | flabbet/Pybugger | 1ecb81a89f484bd7570aec0955ceb32763196605 | [
"MIT"
] | null | null | null | PyBugger/file_loader.py | flabbet/Pybugger | 1ecb81a89f484bd7570aec0955ceb32763196605 | [
"MIT"
] | null | null | null | PyBugger/file_loader.py | flabbet/Pybugger | 1ecb81a89f484bd7570aec0955ceb32763196605 | [
"MIT"
] | null | null | null | import importlib
def load_py_file(file_path):
if ".py" in file_path:
file_path = file_path.replace(".py", "")
return importlib.import_module(file_path)
| 19 | 48 | 0.690058 | 25 | 171 | 4.4 | 0.48 | 0.363636 | 0.218182 | 0.290909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192982 | 171 | 8 | 49 | 21.375 | 0.797101 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 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 |
61a8c58453f17302e22c8cd62294f97038c0346c | 59,786 | py | Python | sharpy/structure/utils/lagrangeconstraints.py | ostodieck/sharpy | b85aa1c001a0ec851af4eb259cce7c01dfa68b9e | [
"BSD-3-Clause"
] | 1 | 2020-07-27T05:15:35.000Z | 2020-07-27T05:15:35.000Z | sharpy/structure/utils/lagrangeconstraints.py | briandesilva/sharpy | aed86428ff88fd14d36cabd91cf7e04b5fc9a39a | [
"BSD-3-Clause"
] | null | null | null | sharpy/structure/utils/lagrangeconstraints.py | briandesilva/sharpy | aed86428ff88fd14d36cabd91cf7e04b5fc9a39a | [
"BSD-3-Clause"
] | 1 | 2020-05-25T17:11:09.000Z | 2020-05-25T17:11:09.000Z | """
LagrangeConstraints library
Library used to create the matrices associate to boundary conditions through
the method of Lagrange Multipliers
Args:
Returns:
Examples:
To use this library: import sharpy.structure.utils.lagrangeconstraints as lagrangeconstraints
Notes:
"""
from abc import ABCMeta, abstractmet... | 42.704286 | 244 | 0.611949 | 8,531 | 59,786 | 3.962724 | 0.040792 | 0.041206 | 0.032716 | 0.048364 | 0.88508 | 0.869786 | 0.849849 | 0.832515 | 0.818228 | 0.798823 | 0 | 0.010493 | 0.268307 | 59,786 | 1,399 | 245 | 42.734811 | 0.762304 | 0.174807 | 0 | 0.736976 | 0 | 0 | 0.022998 | 0.001667 | 0 | 0 | 0 | 0.000715 | 0 | 1 | 0.143583 | false | 0.008895 | 0.007624 | 0.062262 | 0.301144 | 0.021601 | 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 |
f618c098980381f95c5d53e0b26c6eb7c6c8e32c | 89 | py | Python | file_validator/schema/__init__.py | sujavarghese/data-validator | e0c5d94da797cb43b17d6ee193d337cbcb602f49 | [
"MIT"
] | null | null | null | file_validator/schema/__init__.py | sujavarghese/data-validator | e0c5d94da797cb43b17d6ee193d337cbcb602f49 | [
"MIT"
] | null | null | null | file_validator/schema/__init__.py | sujavarghese/data-validator | e0c5d94da797cb43b17d6ee193d337cbcb602f49 | [
"MIT"
] | null | null | null | from file_validator.schema.generator import *
from file_validator.schema.schema import *
| 29.666667 | 45 | 0.842697 | 12 | 89 | 6.083333 | 0.5 | 0.219178 | 0.465753 | 0.630137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089888 | 89 | 2 | 46 | 44.5 | 0.901235 | 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 |
f65a85603b0fc72a82949b51a831409d35b305ae | 10,045 | py | Python | src/IceRayPy/core/geometry/simple.py | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | 2 | 2020-09-04T12:27:15.000Z | 2022-01-17T14:49:40.000Z | src/IceRayPy/core/geometry/simple.py | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | null | null | null | src/IceRayPy/core/geometry/simple.py | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | 1 | 2020-09-04T12:27:52.000Z | 2020-09-04T12:27:52.000Z | import ctypes
print( '<' + __name__ + ' name=\'' + __file__ + '\''+ '>' )
import IceRayPy.type
import IceRayPy.type.math
import IceRayPy.type.math.coord
import IceRayPy.core.geometry
Pointer = ctypes.POINTER
AddresOf = ctypes.addressof
Scalar = IceRayPy.type.basic.Scalar
VoidPtr = IceRayPy.type.b... | 35.122378 | 148 | 0.621503 | 1,350 | 10,045 | 4.24 | 0.062963 | 0.124039 | 0.248078 | 0.161251 | 0.817086 | 0.817086 | 0.787911 | 0.780398 | 0.754542 | 0.645877 | 0 | 0.004682 | 0.234545 | 10,045 | 285 | 149 | 35.245614 | 0.739758 | 0.080239 | 0 | 0.521739 | 0 | 0 | 0.052979 | 0 | 0 | 0 | 0 | 0.003509 | 0 | 1 | 0.293478 | false | 0 | 0.027174 | 0.076087 | 0.494565 | 0.01087 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
14094fa7e0b5adf255abf1ca43d58650948e6b95 | 184 | py | Python | tutorials/variable definition and best practices with pep8/documentation.py | Phelipe-Sempreboni/python | 8ad6d18df728d89e5b036759b3bdbec9c4d08f8a | [
"MIT"
] | null | null | null | tutorials/variable definition and best practices with pep8/documentation.py | Phelipe-Sempreboni/python | 8ad6d18df728d89e5b036759b3bdbec9c4d08f8a | [
"MIT"
] | null | null | null | tutorials/variable definition and best practices with pep8/documentation.py | Phelipe-Sempreboni/python | 8ad6d18df728d89e5b036759b3bdbec9c4d08f8a | [
"MIT"
] | null | null | null | # Link para definicação de variáveis e boas práticas nessa abordagem (PEP8).
# https://www.python.org/dev/
# https://devguide.python.org/
# https://www.python.org/dev/peps/pep-0008/ | 36.8 | 76 | 0.728261 | 28 | 184 | 4.785714 | 0.714286 | 0.201493 | 0.208955 | 0.253731 | 0.298507 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030488 | 0.108696 | 184 | 5 | 77 | 36.8 | 0.786585 | 0.951087 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
14194d200dbfe2460ba9d0f1f92a521d66d36d54 | 7,147 | py | Python | tests/api/dag/test_requirements.py | entailor/pytailor | dfd15a0b2a6c1fea6432721ef3b2bc6fb5aad583 | [
"BSD-3-Clause"
] | 9 | 2020-09-20T07:26:19.000Z | 2022-02-28T09:12:30.000Z | tests/api/dag/test_requirements.py | entailor/pytailor | dfd15a0b2a6c1fea6432721ef3b2bc6fb5aad583 | [
"BSD-3-Clause"
] | 2 | 2020-10-03T07:53:23.000Z | 2020-10-12T11:40:24.000Z | tests/api/dag/test_requirements.py | entailor/pytailor | dfd15a0b2a6c1fea6432721ef3b2bc6fb5aad583 | [
"BSD-3-Clause"
] | null | null | null | from pytailor import PythonTask, BranchTask, DAG, Inputs
def test_specify_requirements_at_dag_level():
inputs = Inputs()
with DAG(requirements=["asdf", "fdsa"]) as dag:
t1 = PythonTask(function=print,
args=["test t1"])
with BranchTask(branch_data=inputs.data, parents=t1... | 38.424731 | 71 | 0.593956 | 743 | 7,147 | 5.538358 | 0.048452 | 0.193925 | 0.230863 | 0.157959 | 0.96452 | 0.954313 | 0.928311 | 0.91616 | 0.91616 | 0.91616 | 0 | 0.034269 | 0.301805 | 7,147 | 185 | 72 | 38.632432 | 0.790381 | 0 | 0 | 0.89441 | 0 | 0 | 0.044494 | 0 | 0 | 0 | 0 | 0 | 0.447205 | 1 | 0.037267 | false | 0 | 0.006211 | 0 | 0.043478 | 0.111801 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
1448a1f0a027f1aefcd1f890d44af32d3afd2ade | 6,754 | py | Python | grid_db/dbhelper.py | topd333/Xlab | 28d89b3b18717957229ca52cb2cbbbc20bd31eae | [
"Unlicense"
] | null | null | null | grid_db/dbhelper.py | topd333/Xlab | 28d89b3b18717957229ca52cb2cbbbc20bd31eae | [
"Unlicense"
] | null | null | null | grid_db/dbhelper.py | topd333/Xlab | 28d89b3b18717957229ca52cb2cbbbc20bd31eae | [
"Unlicense"
] | null | null | null | class RobustGridRouter(object):
"""
A router to control all database operations on models in the
grid_core application.
"""
def db_for_read(self, model, **hints):
"""
Attempts to read grid_core models go to robust_grid.
"""
if model._meta.app_label == 'grid_core':
... | 32.009479 | 92 | 0.582766 | 847 | 6,754 | 4.428571 | 0.069658 | 0.072781 | 0.124767 | 0.145028 | 0.950147 | 0.910157 | 0.868302 | 0.868302 | 0.857905 | 0.820581 | 0 | 0.003493 | 0.321883 | 6,754 | 210 | 93 | 32.161905 | 0.815502 | 0.240746 | 0 | 0.931034 | 0 | 0 | 0.116515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181034 | false | 0 | 0 | 0 | 0.698276 | 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 | 1 | 0 | 0 | 8 |
144d88d497fe3c295d0245bf829e8f2257be0948 | 140 | py | Python | pythonx/vim_pad/__init__.py | vim-scripts/vim-pad | 2e441ae00c684079071086172e6dd0c1799fb262 | [
"MIT"
] | 10 | 2015-01-26T05:24:27.000Z | 2022-02-28T02:32:47.000Z | pythonx/vim_pad/__init__.py | vim-scripts/vim-pad | 2e441ae00c684079071086172e6dd0c1799fb262 | [
"MIT"
] | null | null | null | pythonx/vim_pad/__init__.py | vim-scripts/vim-pad | 2e441ae00c684079071086172e6dd0c1799fb262 | [
"MIT"
] | null | null | null | import vim_pad.handler
import vim_pad.list_local
import vim_pad.pad_local
import vim_pad.vim_globals
vim_pad.vim_globals.set_vim_globals()
| 20 | 37 | 0.871429 | 26 | 140 | 4.269231 | 0.307692 | 0.27027 | 0.432432 | 0.306306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 140 | 6 | 38 | 23.333333 | 0.853846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.8 | 0 | 0.8 | 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 |
145f3a1caccc87387ceb4b6564b7156b5aa1cad0 | 9,176 | py | Python | video/dataset.py | arash-safari/vp | 377e0172112157b79690b32349481a17e7590063 | [
"MIT"
] | null | null | null | video/dataset.py | arash-safari/vp | 377e0172112157b79690b32349481a17e7590063 | [
"MIT"
] | null | null | null | video/dataset.py | arash-safari/vp | 377e0172112157b79690b32349481a17e7590063 | [
"MIT"
] | null | null | null | from torch.utils.data import Dataset
import numpy as np
from collections import namedtuple
import lmdb
import pickle
import torch
import os
import cv2
import imageio
import h5py
from torchvision import transforms
CodeRowVideoMnist = namedtuple('CodeRowVideoMnist', ['ids', 'video_ind'])
class MnistVideoDataset(Datase... | 33.985185 | 133 | 0.572472 | 1,159 | 9,176 | 4.293356 | 0.094909 | 0.050241 | 0.054863 | 0.075965 | 0.861133 | 0.844051 | 0.827773 | 0.808481 | 0.797629 | 0.778537 | 0 | 0.017829 | 0.315388 | 9,176 | 269 | 134 | 34.111524 | 0.774276 | 0.115519 | 0 | 0.736318 | 0 | 0 | 0.033745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089552 | false | 0 | 0.054726 | 0.029851 | 0.243781 | 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 |
1469df6c49b7517486ce6f013f2c6e79f1bb7398 | 22,419 | py | Python | test/test_dayuPath.py | DangoWang/dayu_path | 7a468bfa0700951c84cd22bc3a6c854b82f86e5e | [
"MIT"
] | 1 | 2020-12-17T12:55:12.000Z | 2020-12-17T12:55:12.000Z | test/test_dayuPath.py | DangoWang/dayu_path | 7a468bfa0700951c84cd22bc3a6c854b82f86e5e | [
"MIT"
] | null | null | null | test/test_dayuPath.py | DangoWang/dayu_path | 7a468bfa0700951c84cd22bc3a6c854b82f86e5e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
__author__ = 'andyguo'
import unittest
from unittest import TestCase
from dayu_path import DayuPath
class TestDayuPath(TestCase):
def test___new__(self):
self.assertEqual(DayuPath(''), None)
self.assertEqual(DayuPath([]), None)
self.assert... | 69.624224 | 120 | 0.640707 | 2,740 | 22,419 | 5.079197 | 0.086861 | 0.161242 | 0.255299 | 0.223108 | 0.827046 | 0.802328 | 0.765754 | 0.68851 | 0.657972 | 0.552274 | 0 | 0.072773 | 0.184799 | 22,419 | 321 | 121 | 69.841122 | 0.688717 | 0.001963 | 0 | 0.105263 | 0 | 0 | 0.392482 | 0.347785 | 0 | 0 | 0 | 0 | 0.603509 | 0 | null | null | 0 | 0.014035 | null | null | 0.007018 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1ade610ff793023e3fccc14b332836d0cc40d9a6 | 481 | py | Python | src/openbiolink/graph_creation/file_reader/__init__.py | jerryhluo/OpenBioLink | 6fc073af978daec0b0db5938b73beed37f57f495 | [
"MIT"
] | 97 | 2019-11-26T09:53:18.000Z | 2022-03-19T10:33:10.000Z | src/openbiolink/graph_creation/file_reader/__init__.py | jerryhluo/OpenBioLink | 6fc073af978daec0b0db5938b73beed37f57f495 | [
"MIT"
] | 67 | 2019-12-09T21:01:52.000Z | 2021-12-21T15:19:41.000Z | src/openbiolink/graph_creation/file_reader/__init__.py | jerryhluo/OpenBioLink | 6fc073af978daec0b0db5938b73beed37f57f495 | [
"MIT"
] | 20 | 2020-01-13T23:02:25.000Z | 2022-03-16T21:43:31.000Z | from openbiolink.graph_creation.file_reader.csvReader import CsvReader
from openbiolink.graph_creation.file_reader.edge import *
from openbiolink.graph_creation.file_reader.fileReader import FileReader
from openbiolink.graph_creation.file_reader.mapping import *
from openbiolink.graph_creation.file_reader.oboReader imp... | 60.125 | 88 | 0.891892 | 60 | 481 | 6.916667 | 0.233333 | 0.253012 | 0.337349 | 0.472289 | 0.684337 | 0.684337 | 0.318072 | 0 | 0 | 0 | 0 | 0 | 0.058212 | 481 | 7 | 89 | 68.714286 | 0.916115 | 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 |
1ade6dcfc500be4ef12c5172795906719d7a5bbc | 92 | py | Python | wk1/function.py | lokijota/datadrivenastronomymooc | 175655e5c6450c091534299da6bce6f10a1a3627 | [
"MIT"
] | 8 | 2018-12-09T18:10:16.000Z | 2021-03-21T16:38:58.000Z | wk1/function.py | lokijota/datadrivenastronomymooc | 175655e5c6450c091534299da6bce6f10a1a3627 | [
"MIT"
] | null | null | null | wk1/function.py | lokijota/datadrivenastronomymooc | 175655e5c6450c091534299da6bce6f10a1a3627 | [
"MIT"
] | 5 | 2018-11-09T16:57:17.000Z | 2020-04-15T09:11:33.000Z | def double(val):
return val + val
print(double(3))
print(double(3.3))
print(double('3'))
| 11.5 | 18 | 0.663043 | 16 | 92 | 3.8125 | 0.375 | 0.540984 | 0.590164 | 0.42623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.130435 | 92 | 7 | 19 | 13.142857 | 0.7125 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.2 | 0.4 | 0.6 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 7 |
212c99d5fafb1cd09d4cdfeed6552f9c086f5663 | 7,626 | py | Python | test/unit/test_http_receive.py | bischjer/auxiliary | e42d8a4af43c9bd4d816c03edc2465640635b46b | [
"BSD-3-Clause"
] | null | null | null | test/unit/test_http_receive.py | bischjer/auxiliary | e42d8a4af43c9bd4d816c03edc2465640635b46b | [
"BSD-3-Clause"
] | null | null | null | test/unit/test_http_receive.py | bischjer/auxiliary | e42d8a4af43c9bd4d816c03edc2465640635b46b | [
"BSD-3-Clause"
] | null | null | null | from unittest2 import TestCase
from aux.protocol.http.http import HTTP
import struct
import os
class FakeTransport(object):
def __init__(self, message):
self.fake_message = message
self.bytes_read = 0
def recv(self, nofchar=1200):
buffer = ""
for n in xrange(0, nofchar... | 66.313043 | 2,047 | 0.741542 | 879 | 7,626 | 6.323094 | 0.186576 | 0.010076 | 0.009176 | 0.177402 | 0.792371 | 0.769162 | 0.759086 | 0.754048 | 0.731198 | 0.715005 | 0 | 0.040356 | 0.145424 | 7,626 | 114 | 2,048 | 66.894737 | 0.81249 | 0 | 0 | 0.32967 | 0 | 0.120879 | 0.505967 | 0.416787 | 0 | 0 | 0 | 0 | 0.164835 | 1 | 0.164835 | false | 0.010989 | 0.043956 | 0 | 0.241758 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
2137fee3050ecdab30554391f84e6fa5737fdca5 | 7,880 | py | Python | company/migrations/0004_eshop.py | vavshop/VavXml | 2d87af8dbad5889b6f809423bf71f9d5e8393cce | [
"CC0-1.0"
] | null | null | null | company/migrations/0004_eshop.py | vavshop/VavXml | 2d87af8dbad5889b6f809423bf71f9d5e8393cce | [
"CC0-1.0"
] | null | null | null | company/migrations/0004_eshop.py | vavshop/VavXml | 2d87af8dbad5889b6f809423bf71f9d5e8393cce | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2018-01-04 13:37
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('company', '0003_auto_20180103_1607'),
]
operations = [
migrations.CreateMode... | 70.357143 | 114 | 0.592005 | 928 | 7,880 | 4.920259 | 0.153017 | 0.171485 | 0.376697 | 0.452037 | 0.828734 | 0.828734 | 0.828734 | 0.828734 | 0.828734 | 0 | 0 | 0.076394 | 0.244162 | 7,880 | 111 | 115 | 70.990991 | 0.690228 | 0.008503 | 0 | 0 | 1 | 0 | 0.061972 | 0.002945 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.019231 | 0 | 0.048077 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
2168e0bc667e07663ab9c303588fdb7f39c448ce | 2,079 | py | Python | encrypt_decrypt_app/nato_code_tests.py | Chika-Jinanwa/chikas-cipher | 91e7139f11132c885bd8872d705ffe3d0ca51b7d | [
"MIT"
] | null | null | null | encrypt_decrypt_app/nato_code_tests.py | Chika-Jinanwa/chikas-cipher | 91e7139f11132c885bd8872d705ffe3d0ca51b7d | [
"MIT"
] | 9 | 2021-03-30T14:05:43.000Z | 2022-03-12T00:44:58.000Z | encrypt_decrypt_app/nato_code_tests.py | Chika-Jinanwa/chikas-cipher | 91e7139f11132c885bd8872d705ffe3d0ca51b7d | [
"MIT"
] | null | null | null | import unittest
from nato_code import NatoCode
test = NatoCode()
class NatoCodeEncryptTests(unittest.TestCase):
def test_empty_string(self):
self.assertMultiLineEqual(test.encrypt(''), '')
def test_string_with_only_spaces(self):
self.assertMultiLineEqual(test.encrypt(' '), ' ')
def ... | 35.237288 | 123 | 0.69216 | 234 | 2,079 | 5.948718 | 0.188034 | 0.070402 | 0.281609 | 0.321839 | 0.837644 | 0.837644 | 0.818247 | 0.772989 | 0.752874 | 0.467672 | 0 | 0.003608 | 0.200096 | 2,079 | 59 | 124 | 35.237288 | 0.833434 | 0 | 0 | 0.55 | 0 | 0 | 0.225481 | 0 | 0 | 0 | 0 | 0 | 0.35 | 1 | 0.35 | false | 0 | 0.05 | 0 | 0.45 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
216bce58ff921609471083f634948291cf35b2e9 | 18,598 | py | Python | test/test_docker_compose.py | kudulab/dojo | 926d16f754d1221f8e015b95fdb49bf4e951fdba | [
"Apache-2.0"
] | 256 | 2019-09-13T13:33:09.000Z | 2022-03-22T12:55:10.000Z | test/test_docker_compose.py | kudulab/dojo | 926d16f754d1221f8e015b95fdb49bf4e951fdba | [
"Apache-2.0"
] | 16 | 2019-09-13T12:37:14.000Z | 2022-02-20T11:47:24.000Z | test/test_docker_compose.py | kudulab/dojo | 926d16f754d1221f8e015b95fdb49bf4e951fdba | [
"Apache-2.0"
] | 12 | 2019-09-13T09:09:38.000Z | 2021-10-03T21:21:36.000Z | import os
from .support.common import *
def clean_up_dc_dojofile():
try:
os.remove(os.path.join(project_root, 'test/test-files/itest-dc.yaml.dojo'))
except FileNotFoundError:
pass
def test_dc_dojofile_is_removed():
assert not os.path.exists(os.path.join(project_root, 'test/test-files/ite... | 53.751445 | 196 | 0.740994 | 2,701 | 18,598 | 4.768604 | 0.07997 | 0.097826 | 0.146739 | 0.171196 | 0.885947 | 0.863665 | 0.850776 | 0.825233 | 0.793401 | 0.779193 | 0 | 0.012334 | 0.145553 | 18,598 | 345 | 197 | 53.907246 | 0.798188 | 0.034412 | 0 | 0.62069 | 0 | 0.027586 | 0.267008 | 0.116454 | 0 | 0 | 0 | 0 | 0.372414 | 1 | 0.075862 | false | 0.006897 | 0.006897 | 0 | 0.082759 | 0.02069 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
dcbc39bc63dbc1304dd98cc503678e50288174cf | 19,266 | py | Python | tests/test_init.py | bieniu/pygios | 23b3d51cbdaf5a4e2e33fef6538d1adf319a52c6 | [
"Apache-2.0"
] | null | null | null | tests/test_init.py | bieniu/pygios | 23b3d51cbdaf5a4e2e33fef6538d1adf319a52c6 | [
"Apache-2.0"
] | 2 | 2020-06-12T13:37:23.000Z | 2021-09-29T18:47:03.000Z | tests/test_init.py | bieniu/pygios | 23b3d51cbdaf5a4e2e33fef6538d1adf319a52c6 | [
"Apache-2.0"
] | 3 | 2020-11-13T11:56:37.000Z | 2021-04-22T13:49:50.000Z | """Tests for gios package."""
import json
import aiohttp
import pytest
from aioresponses import aioresponses
from gios import ApiError, Gios, InvalidSensorsData, NoStationError
INVALID_STATION_ID = 0
VALID_STATION_ID = 552
VALID_STATION_NAME = "Test Name"
VALID_LATITUDE = 99.99
VALID_LONGITUDE = 88.88
@pytest.mar... | 35.677778 | 87 | 0.61445 | 2,554 | 19,266 | 4.526233 | 0.051292 | 0.059948 | 0.065398 | 0.065398 | 0.948702 | 0.943166 | 0.94083 | 0.929325 | 0.918945 | 0.875433 | 0 | 0.049873 | 0.246496 | 19,266 | 539 | 88 | 35.74397 | 0.746435 | 0.008564 | 0 | 0.783439 | 0 | 0.095541 | 0.268035 | 0.067182 | 0 | 0 | 0 | 0 | 0.133758 | 1 | 0 | false | 0 | 0.010616 | 0 | 0.010616 | 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 |
dcf7b27ea9b8ffae10299c628ad89789498495d8 | 2,103 | py | Python | PYTHON/WebBackup/flask_harrier_backup/request_common.py | YizheZhang-Ervin/BackupPrograms | 343cd9f0591b750e5b5b1cca80b806ad76286697 | [
"MIT"
] | null | null | null | PYTHON/WebBackup/flask_harrier_backup/request_common.py | YizheZhang-Ervin/BackupPrograms | 343cd9f0591b750e5b5b1cca80b806ad76286697 | [
"MIT"
] | null | null | null | PYTHON/WebBackup/flask_harrier_backup/request_common.py | YizheZhang-Ervin/BackupPrograms | 343cd9f0591b750e5b5b1cca80b806ad76286697 | [
"MIT"
] | null | null | null | import requests
# get Response from HTML
def hunt_get(url, x=None, concat_str=None, return_content=None):
try:
if not str(url).startswith('http'):
url = 'https://' + url
if concat_str is None and x is not None:
r = requests.get(url, x)
elif concat_str is not None an... | 30.478261 | 65 | 0.565383 | 287 | 2,103 | 4.010453 | 0.216028 | 0.101651 | 0.062554 | 0.052129 | 0.836664 | 0.796699 | 0.796699 | 0.750652 | 0.750652 | 0.750652 | 0 | 0.01338 | 0.324774 | 2,103 | 68 | 66 | 30.926471 | 0.797183 | 0.084641 | 0 | 0.716981 | 0 | 0 | 0.093326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0 | 0.018868 | 0 | 0.245283 | 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 |
0d27bbd55fe3c3ea001bdaf1b57e9d54027396f6 | 6,407 | py | Python | loldib/getratings/models/NA/na_fiora/na_fiora_jng.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_fiora/na_fiora_jng.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_fiora/na_fiora_jng.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | from getratings.models.ratings import Ratings
class NA_Fiora_Jng_Aatrox(Ratings):
pass
class NA_Fiora_Jng_Ahri(Ratings):
pass
class NA_Fiora_Jng_Akali(Ratings):
pass
class NA_Fiora_Jng_Alistar(Ratings):
pass
class NA_Fiora_Jng_Amumu(Ratings):
pass
class NA_Fiora_Jng_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 |
b4a0b64aa8ae0413832c0911cbe5f3fd5d89f7ea | 5,595 | py | Python | moai/nn/residual/standard.py | tzole1155/moai | d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180 | [
"Apache-2.0"
] | 10 | 2021-04-02T11:21:33.000Z | 2022-01-18T18:32:32.000Z | moai/nn/residual/standard.py | tzole1155/moai | d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180 | [
"Apache-2.0"
] | 1 | 2022-03-22T20:10:55.000Z | 2022-03-24T13:11:02.000Z | moai/nn/residual/standard.py | tzole1155/moai | d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180 | [
"Apache-2.0"
] | 3 | 2021-05-16T20:47:40.000Z | 2021-12-01T21:15:36.000Z | import moai.nn.convolution as mic
import moai.nn.activation as mia
import torch
__all__ = [
"Standard",
"PreResidual",
"PreActivation",
]
'''
Slightly adapted version of
Deep Residual Learning for Image Recognition (https://arxiv.org/pdf/1512.03385.pdf)
(adaptation on activation ordering as ... | 37.05298 | 129 | 0.597855 | 633 | 5,595 | 5.047393 | 0.154818 | 0.098592 | 0.059468 | 0.084507 | 0.839437 | 0.836307 | 0.829108 | 0.829108 | 0.819718 | 0.808451 | 0 | 0.031576 | 0.315103 | 5,595 | 151 | 130 | 37.05298 | 0.802192 | 0.100804 | 0 | 0.722222 | 0 | 0 | 0.007233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.02381 | 0 | 0.119048 | 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 |
370d93ac11edd1b512609e256db3e514dbda65b4 | 1,097 | py | Python | Leetcode/Python/_1742.py | Xrenya/algorithms | aded82cacde2f4f2114241907861251e0e2e5638 | [
"MIT"
] | 1 | 2021-11-28T15:03:32.000Z | 2021-11-28T15:03:32.000Z | Leetcode/Python/_1742.py | Xrenya/algorithms | aded82cacde2f4f2114241907861251e0e2e5638 | [
"MIT"
] | null | null | null | Leetcode/Python/_1742.py | Xrenya/algorithms | aded82cacde2f4f2114241907861251e0e2e5638 | [
"MIT"
] | null | null | null | class Solution:
def countBalls(self, lowLimit: int, highLimit: int) -> int:
hashMap = {}
max_value = 0
for box_id in range(lowLimit, highLimit+1):
runner = box_id
box_num = 0
while runner > 0:
box_num += (runner%10)
runner /... | 31.342857 | 63 | 0.482224 | 124 | 1,097 | 4.096774 | 0.225806 | 0.141732 | 0.153543 | 0.110236 | 0.822835 | 0.822835 | 0.822835 | 0.822835 | 0.822835 | 0.822835 | 0 | 0.032154 | 0.432999 | 1,097 | 34 | 64 | 32.264706 | 0.784566 | 0 | 0 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0 | 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 |
2eebceb82a53f233907da693b1221fb532dabe89 | 7,945 | py | Python | prepare_training/scene_scaler.py | flclain/master | a40a2a5bf4e1017da3a5cf3456eb0b28de6f86e8 | [
"MIT"
] | null | null | null | prepare_training/scene_scaler.py | flclain/master | a40a2a5bf4e1017da3a5cf3456eb0b28de6f86e8 | [
"MIT"
] | null | null | null | prepare_training/scene_scaler.py | flclain/master | a40a2a5bf4e1017da3a5cf3456eb0b28de6f86e8 | [
"MIT"
] | 1 | 2020-12-15T07:34:39.000Z | 2020-12-15T07:34:39.000Z | import os
import csv
from sklearn.preprocessing import MinMaxScaler
import numpy as np
import helpers
import json
import sys
import joblib
class SceneScaler():
def __init__(self,data,center):
data = json.load(open(data))
self.center = center
self.temp = data["temp"] + "temp.csv"
... | 31.78 | 95 | 0.500441 | 1,094 | 7,945 | 3.392139 | 0.091408 | 0.073296 | 0.053355 | 0.047427 | 0.824037 | 0.79682 | 0.759364 | 0.759364 | 0.747507 | 0.747507 | 0 | 0.038005 | 0.374072 | 7,945 | 250 | 96 | 31.78 | 0.708224 | 0.078792 | 0 | 0.708861 | 0 | 0 | 0.015465 | 0.005748 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063291 | false | 0 | 0.050633 | 0 | 0.151899 | 0.025316 | 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 |
2ef7b2d2a7a1025039e9c44a8e3e3ca196bcb20a | 86 | py | Python | src/sample/simple.py | Jithendhar/sampleproject | 62e564c52402ba1f7d7fdf1d188b3ff446635601 | [
"MIT"
] | null | null | null | src/sample/simple.py | Jithendhar/sampleproject | 62e564c52402ba1f7d7fdf1d188b3ff446635601 | [
"MIT"
] | null | null | null | src/sample/simple.py | Jithendhar/sampleproject | 62e564c52402ba1f7d7fdf1d188b3ff446635601 | [
"MIT"
] | null | null | null | def add_one(number):
return number + 1
def add_one(number):
return number + 2
| 17.2 | 21 | 0.674419 | 14 | 86 | 4 | 0.5 | 0.214286 | 0.321429 | 0.535714 | 0.964286 | 0.964286 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.232558 | 86 | 4 | 22 | 21.5 | 0.818182 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 10 |
25d45c27fbe3e35b9b45e9427e2070e1c5f69f0c | 25,977 | py | Python | argo/workflows/client/api/archived_workflow_service_api.py | zgs225/argo-client-python | 2e49a0df9b4f8fc9e90f7808caf22819ff54166c | [
"Apache-2.0"
] | 75 | 2020-03-17T03:55:23.000Z | 2021-11-08T09:38:37.000Z | argo/workflows/client/api/archived_workflow_service_api.py | zgs225/argo-client-python | 2e49a0df9b4f8fc9e90f7808caf22819ff54166c | [
"Apache-2.0"
] | 24 | 2020-04-18T13:02:36.000Z | 2021-10-20T09:01:23.000Z | argo/workflows/client/api/archived_workflow_service_api.py | zgs225/argo-client-python | 2e49a0df9b4f8fc9e90f7808caf22819ff54166c | [
"Apache-2.0"
] | 26 | 2020-04-18T12:56:28.000Z | 2022-01-05T04:47:30.000Z | # coding: utf-8
"""
Argo Server API
You can get examples of requests and responses by using the CLI with `--gloglevel=9`, e.g. `argo list --gloglevel=9` # noqa: E501
The version of the OpenAPI document: v2.12.2
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import... | 64.140741 | 1,403 | 0.670747 | 3,351 | 25,977 | 5.021486 | 0.115488 | 0.029476 | 0.046592 | 0.017115 | 0.930944 | 0.919831 | 0.905568 | 0.891603 | 0.887859 | 0.871813 | 0 | 0.010873 | 0.270663 | 25,977 | 404 | 1,404 | 64.299505 | 0.877283 | 0.597105 | 0 | 0.626943 | 0 | 0 | 0.22347 | 0.128691 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036269 | false | 0 | 0.025907 | 0 | 0.098446 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
25e12aead27e3991251d73f52c12ea0906cc5dc6 | 120 | py | Python | 08-def-type-hints/ctime.py | hdcpereira/example-code-2e | ade7558007f149e5ab7465dd9618d432f169eb9f | [
"MIT"
] | 990 | 2019-03-21T21:17:34.000Z | 2022-03-31T00:55:07.000Z | 08-def-type-hints/ctime.py | Turall/example-code-2e | 1702717182cff9a48beb55b2a9f5618e9bd1da18 | [
"MIT"
] | 17 | 2019-12-18T18:00:05.000Z | 2022-01-12T14:23:47.000Z | 08-def-type-hints/ctime.py | Turall/example-code-2e | 1702717182cff9a48beb55b2a9f5618e9bd1da18 | [
"MIT"
] | 276 | 2019-04-06T12:32:00.000Z | 2022-03-29T11:50:47.000Z | import time
from typing import Optional
def ctime(secs: Optional[float] = None, /) -> str:
return time.ctime(secs)
| 20 | 50 | 0.708333 | 17 | 120 | 5 | 0.705882 | 0.211765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175 | 120 | 5 | 51 | 24 | 0.858586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.5 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 7 |
25e1ae44f45af84fee413d728a61965f98da05ce | 23,671 | py | Python | test/test_scrapbook_exporter.py | clach04/PyWebScrapBook | 310e8f20cc5337336875679246b9269265b4476a | [
"MIT"
] | 39 | 2019-04-10T18:07:40.000Z | 2022-02-07T07:11:30.000Z | test/test_scrapbook_exporter.py | clach04/PyWebScrapBook | 310e8f20cc5337336875679246b9269265b4476a | [
"MIT"
] | 56 | 2019-05-07T23:29:14.000Z | 2022-02-24T10:33:43.000Z | test/test_scrapbook_exporter.py | clach04/PyWebScrapBook | 310e8f20cc5337336875679246b9269265b4476a | [
"MIT"
] | 15 | 2019-06-12T05:16:43.000Z | 2022-01-16T13:24:11.000Z | from unittest import mock
import unittest
import os
import shutil
import zipfile
import json
from datetime import datetime, timezone
from base64 import b64decode, b64encode
from webscrapbook import WSB_DIR
from webscrapbook import util
from webscrapbook.scrapbook import exporter as wsb_exporter
from webscrapbook._comp... | 30.231162 | 134 | 0.532339 | 2,331 | 23,671 | 5.310596 | 0.091806 | 0.084821 | 0.064222 | 0.056709 | 0.813474 | 0.789967 | 0.764682 | 0.748364 | 0.724372 | 0.724372 | 0 | 0.154177 | 0.3021 | 23,671 | 782 | 135 | 30.269821 | 0.595157 | 0.03612 | 0 | 0.787923 | 0 | 0 | 0.315857 | 0.030048 | 0 | 0 | 0 | 0 | 0.106038 | 1 | 0.019146 | false | 0.013255 | 0.017673 | 0 | 0.038292 | 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 |
d3195b7d7950da22dcb2a91d0bfae9e3f410492e | 261 | py | Python | tests/queryset/__init__.py | Rippling/mongoengine | c3b6fa6ffdfe05fcf6f49857c1a89fee0175a05f | [
"MIT"
] | null | null | null | tests/queryset/__init__.py | Rippling/mongoengine | c3b6fa6ffdfe05fcf6f49857c1a89fee0175a05f | [
"MIT"
] | 28 | 2016-11-30T03:15:18.000Z | 2022-02-25T15:57:02.000Z | tests/queryset/__init__.py | Rippling/mongoengine | c3b6fa6ffdfe05fcf6f49857c1a89fee0175a05f | [
"MIT"
] | 1 | 2021-11-10T05:33:18.000Z | 2021-11-10T05:33:18.000Z | from __future__ import absolute_import
from tests.queryset.transform import *
from tests.queryset.field_list import *
from tests.queryset.queryset import *
from tests.queryset.visitor import *
from tests.queryset.geo import *
from tests.queryset.modify import * | 37.285714 | 39 | 0.827586 | 36 | 261 | 5.833333 | 0.333333 | 0.285714 | 0.428571 | 0.657143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 261 | 7 | 40 | 37.285714 | 0.897436 | 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 |
6caf887fe0e8004f69c0afe691d7d0260f448c0b | 99 | py | Python | setlx2py/setlx_semcheck.py | jcklie/setlx2py | 4a6166ad52cf7ae973faa6bcaf22ac830fab738d | [
"Apache-2.0"
] | null | null | null | setlx2py/setlx_semcheck.py | jcklie/setlx2py | 4a6166ad52cf7ae973faa6bcaf22ac830fab738d | [
"Apache-2.0"
] | null | null | null | setlx2py/setlx_semcheck.py | jcklie/setlx2py | 4a6166ad52cf7ae973faa6bcaf22ac830fab738d | [
"Apache-2.0"
] | null | null | null | def check_target(ast):
pass
def check_iterator(ast):
pass
def check_lambda(ast):
pass | 12.375 | 24 | 0.686869 | 15 | 99 | 4.333333 | 0.466667 | 0.369231 | 0.307692 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 99 | 8 | 25 | 12.375 | 0.844156 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
6cbc774facdbb750e8dc789afdea0cc666f632b6 | 32,410 | py | Python | tests/unit_tests/utils/test_category_encoders_backend.py | amnaabbassi/shapash | 6c867c8b1724f2737369557f8db056cb0027999b | [
"Apache-2.0"
] | 1,665 | 2020-05-25T07:38:56.000Z | 2022-03-29T15:02:23.000Z | tests/unit_tests/utils/test_category_encoders_backend.py | amnaabbassi/shapash | 6c867c8b1724f2737369557f8db056cb0027999b | [
"Apache-2.0"
] | 93 | 2021-01-11T15:53:56.000Z | 2022-03-29T14:48:18.000Z | tests/unit_tests/utils/test_category_encoders_backend.py | amnaabbassi/shapash | 6c867c8b1724f2737369557f8db056cb0027999b | [
"Apache-2.0"
] | 226 | 2021-01-13T10:41:23.000Z | 2022-03-13T01:37:49.000Z | """
Unit test of Inverse Transform
"""
import unittest
import pandas as pd
import numpy as np
import category_encoders as ce
import catboost as cb
import sklearn
import lightgbm
import xgboost
from shapash.utils.transform import inverse_transform, apply_preprocessing, get_col_mapping_ce
class TestInverseTransformCate... | 43.503356 | 119 | 0.538507 | 3,620 | 32,410 | 4.673204 | 0.058287 | 0.070875 | 0.042561 | 0.059821 | 0.904593 | 0.884731 | 0.867411 | 0.845126 | 0.84152 | 0.815275 | 0 | 0.020697 | 0.296359 | 32,410 | 744 | 120 | 43.561828 | 0.721114 | 0.065967 | 0 | 0.776447 | 0 | 0 | 0.109477 | 0 | 0 | 0 | 0 | 0 | 0.107784 | 1 | 0.077844 | false | 0 | 0.017964 | 0 | 0.097804 | 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 |
6ce348aa491bfbcad3d452b310da504123e1c57c | 13,837 | py | Python | tests/test_user.py | ndavisontest/dto-digitalmarketplace-utils | 640f9af164a1555d274a16d2aa47d4f31b85b6cc | [
"MIT"
] | null | null | null | tests/test_user.py | ndavisontest/dto-digitalmarketplace-utils | 640f9af164a1555d274a16d2aa47d4f31b85b6cc | [
"MIT"
] | null | null | null | tests/test_user.py | ndavisontest/dto-digitalmarketplace-utils | 640f9af164a1555d274a16d2aa47d4f31b85b6cc | [
"MIT"
] | null | null | null | from datetime import datetime
import mock
import pytest
from dmutils.user import user_has_role, user_logging_string, User
@pytest.fixture
def user():
return User(123, 'test@example.com', 321, 'test supplier', False, True, 'Name', 'supplier', datetime(2016, 1, 1), 5)
@pytest.fixture
def user_json():
return ... | 27.025391 | 120 | 0.517742 | 1,517 | 13,837 | 4.466051 | 0.06526 | 0.057565 | 0.038967 | 0.044871 | 0.859188 | 0.797786 | 0.766494 | 0.74952 | 0.715424 | 0.684428 | 0 | 0.044224 | 0.338151 | 13,837 | 511 | 121 | 27.078278 | 0.695567 | 0 | 0 | 0.711268 | 0 | 0 | 0.22064 | 0.02898 | 0 | 0 | 0 | 0 | 0.147887 | 1 | 0.08216 | false | 0 | 0.00939 | 0.004695 | 0.096244 | 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 |
6cecba66fd6caf937fe2d85514cef7016f2e65cd | 117 | py | Python | app/src/data/tasks/queries/get_task_by_id.py | moretonb/patterns-practice | 00c29a74a0c74ce011028ecbc4dafc6fae91bca2 | [
"MIT"
] | null | null | null | app/src/data/tasks/queries/get_task_by_id.py | moretonb/patterns-practice | 00c29a74a0c74ce011028ecbc4dafc6fae91bca2 | [
"MIT"
] | null | null | null | app/src/data/tasks/queries/get_task_by_id.py | moretonb/patterns-practice | 00c29a74a0c74ce011028ecbc4dafc6fae91bca2 | [
"MIT"
] | null | null | null | from app.src.data.client import redis_client
def get_task_by_id(id=0):
return redis_client.hgetall(f'task:{id}') | 29.25 | 45 | 0.769231 | 22 | 117 | 3.863636 | 0.727273 | 0.258824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009524 | 0.102564 | 117 | 4 | 45 | 29.25 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.076271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
4c8287f433addc204b8304648c218a1dbf615d65 | 170 | py | Python | genome_designer/test_data/full_vcf_test_set/settings.py | churchlab/millstone | ddb5d003a5b8a7675e5a56bafd5c432d9642b473 | [
"MIT"
] | 45 | 2015-09-30T14:55:33.000Z | 2021-06-28T02:33:30.000Z | genome_designer/test_data/full_vcf_test_set/settings.py | churchlab/millstone | ddb5d003a5b8a7675e5a56bafd5c432d9642b473 | [
"MIT"
] | 261 | 2015-06-03T20:41:56.000Z | 2022-03-07T08:46:10.000Z | genome_designer/test_data/full_vcf_test_set/settings.py | churchlab/millstone | ddb5d003a5b8a7675e5a56bafd5c432d9642b473 | [
"MIT"
] | 22 | 2015-06-04T20:43:10.000Z | 2022-02-27T08:27:34.000Z | SIM_NGS_BIN = '/home/glebk/Projects/genome-designer/tools/simNGS/bin'
SIM_NGS_NOISE_SOURCE = '/home/glebk/Projects/genome-designer/tool-data/simNGS/HiSeq/s_1_4x.runfile'
| 56.666667 | 99 | 0.817647 | 28 | 170 | 4.714286 | 0.678571 | 0.090909 | 0.257576 | 0.348485 | 0.469697 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.035294 | 170 | 2 | 100 | 85 | 0.792683 | 0 | 0 | 0 | 0 | 0.5 | 0.747059 | 0.747059 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
4c8f400e70823fdab9f6a6b90899dfaf6effc26c | 9,948 | py | Python | src/tests/tests_basic_config.py | telefonicaid/pylogops | b1d848578d77361db261e88aa490198b386cab27 | [
"Apache-2.0"
] | 7 | 2015-12-11T15:40:52.000Z | 2017-01-29T17:32:35.000Z | src/tests/tests_basic_config.py | telefonicaid/pylogops | b1d848578d77361db261e88aa490198b386cab27 | [
"Apache-2.0"
] | 5 | 2015-11-17T15:38:27.000Z | 2020-06-16T15:44:00.000Z | src/tests/tests_basic_config.py | telefonicaid/pylogops | b1d848578d77361db261e88aa490198b386cab27 | [
"Apache-2.0"
] | null | null | null | import logging
import re
import time
import six
from unittest import TestCase
from pylogops.logger import TrackingFilter, JsonFormatter
from logging import FileHandler
from pylogops import local_context
if six.PY3:
from unittest.mock import patch, call # @UnusedImport @UnresolvedImport
else:
from mock import p... | 52.914894 | 114 | 0.54423 | 1,317 | 9,948 | 3.921792 | 0.079727 | 0.037948 | 0.040658 | 0.043369 | 0.844337 | 0.841626 | 0.83698 | 0.831946 | 0.831946 | 0.831946 | 0 | 0.044197 | 0.251709 | 9,948 | 187 | 115 | 53.197861 | 0.649651 | 0.005931 | 0 | 0.715976 | 0 | 0.08284 | 0.297593 | 0.237508 | 0 | 0 | 0 | 0 | 0.142012 | 1 | 0.053254 | false | 0 | 0.059172 | 0.005917 | 0.130178 | 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 |
4ca19f29c0d741d4d7add93b11d3e73d2eb3d51b | 279 | py | Python | homework6/app/deps.py | sakost/tinkoff_fintech | 64b9d5a2a818b4db7c438b0dc53a8f31882f95ba | [
"MIT"
] | null | null | null | homework6/app/deps.py | sakost/tinkoff_fintech | 64b9d5a2a818b4db7c438b0dc53a8f31882f95ba | [
"MIT"
] | null | null | null | homework6/app/deps.py | sakost/tinkoff_fintech | 64b9d5a2a818b4db7c438b0dc53a8f31882f95ba | [
"MIT"
] | 2 | 2021-08-29T15:01:39.000Z | 2022-02-23T18:48:21.000Z | from redis import Redis # pylint: disable=unused-import
from rq import Queue
from .redis import image_processing_queue, redis_client
def get_redis() -> 'Redis[Queue]':
return redis_client()
def get_image_processing_queue() -> Queue:
return image_processing_queue()
| 21.461538 | 56 | 0.763441 | 38 | 279 | 5.342105 | 0.368421 | 0.221675 | 0.295567 | 0.167488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150538 | 279 | 12 | 57 | 23.25 | 0.85654 | 0.103943 | 0 | 0 | 0 | 0 | 0.048387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | true | 0 | 0.428571 | 0.285714 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 8 |
e237f5509f3c79d414b024d99ac1362eacb8c958 | 30,459 | py | Python | ckanext/datastore/tests/test_datastore.py | opencolorado/ckan | c31c8466f40f29edb63263bd36d714f6a9eb7994 | [
"Apache-2.0"
] | 1 | 2015-03-05T03:53:11.000Z | 2015-03-05T03:53:11.000Z | ckanext/datastore/tests/test_datastore.py | opencolorado/ckan | c31c8466f40f29edb63263bd36d714f6a9eb7994 | [
"Apache-2.0"
] | null | null | null | ckanext/datastore/tests/test_datastore.py | opencolorado/ckan | c31c8466f40f29edb63263bd36d714f6a9eb7994 | [
"Apache-2.0"
] | null | null | null |
import json
import sqlalchemy
import ckan.plugins as p
import ckan.lib.create_test_data as ctd
import ckan.model as model
import ckan.tests as tests
import ckanext.datastore.db as db
class TestDatastoreCreate(tests.WsgiAppCase):
sysadmin_user = None
normal_user = None
p.load('datastore')
@classmetho... | 42.9 | 249 | 0.539676 | 3,401 | 30,459 | 4.717142 | 0.076448 | 0.056099 | 0.041015 | 0.036901 | 0.84261 | 0.83245 | 0.80197 | 0.790999 | 0.778844 | 0.761391 | 0 | 0.016789 | 0.299944 | 30,459 | 709 | 250 | 42.960508 | 0.735591 | 0.019666 | 0 | 0.722871 | 0 | 0 | 0.194888 | 0.036898 | 0 | 0 | 0 | 0 | 0.136895 | 1 | 0.053422 | false | 0 | 0.013356 | 0 | 0.086811 | 0.003339 | 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 |
e2b9620272f307ece9dc8211b05ff404d7c7a319 | 14,421 | py | Python | test/gdal_gmt_test.py | usgs/MapIO | 82f54b979dd1cf93a6ce4735bc39115985ed74b3 | [
"CC0-1.0"
] | 4 | 2017-09-04T15:34:00.000Z | 2020-08-18T01:44:08.000Z | test/gdal_gmt_test.py | usgs/MapIO | 82f54b979dd1cf93a6ce4735bc39115985ed74b3 | [
"CC0-1.0"
] | 80 | 2015-11-09T16:12:53.000Z | 2021-11-08T17:27:53.000Z | test/gdal_gmt_test.py | usgs/MapIO | 82f54b979dd1cf93a6ce4735bc39115985ed74b3 | [
"CC0-1.0"
] | 13 | 2015-11-09T16:23:12.000Z | 2022-03-28T21:01:31.000Z | #!/usr/bin/env python
# python 3 compatibility
from __future__ import print_function
# stdlib imports
import os.path
import sys
from collections import OrderedDict
import warnings
import tempfile
import shutil
# third party imports
import rasterio
import numpy as np
# hack the path so that I can debug these functio... | 35.432432 | 81 | 0.342001 | 1,116 | 14,421 | 4.37276 | 0.148746 | 0.028279 | 0.026639 | 0.034426 | 0.82418 | 0.82418 | 0.816189 | 0.816189 | 0.807172 | 0.802459 | 0 | 0.060794 | 0.552874 | 14,421 | 406 | 82 | 35.519704 | 0.69603 | 0.170723 | 0 | 0.725904 | 0 | 0 | 0.039402 | 0 | 0 | 0 | 0 | 0 | 0.03012 | 1 | 0.01506 | false | 0 | 0.042169 | 0 | 0.057229 | 0.003012 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
2c52e2ea6b9a7234d9082b85200f3113574306a1 | 19,093 | py | Python | test/unit/mongo_class/repset_connect.py | deepcoder42/mongo-lib | fa2b65587ab88ee90c9d85f12dd642c6295e0d94 | [
"MIT"
] | null | null | null | test/unit/mongo_class/repset_connect.py | deepcoder42/mongo-lib | fa2b65587ab88ee90c9d85f12dd642c6295e0d94 | [
"MIT"
] | null | null | null | test/unit/mongo_class/repset_connect.py | deepcoder42/mongo-lib | fa2b65587ab88ee90c9d85f12dd642c6295e0d94 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Classification (U)
"""Program: repset_connect.py
Description: Unit testing of RepSet.connect in mongo_class.py.
Usage:
test/unit/mongo_class/repset_connect.py
Arguments:
"""
# Libraries and Global Variables
# Standard
import sys
import os
if sys.version_info < (2, 7):
... | 26.967514 | 76 | 0.621537 | 2,368 | 19,093 | 4.776182 | 0.051943 | 0.071618 | 0.061892 | 0.083996 | 0.87038 | 0.858532 | 0.847834 | 0.842706 | 0.803271 | 0.772856 | 0 | 0.006332 | 0.272089 | 19,093 | 707 | 77 | 27.005658 | 0.807454 | 0.185304 | 0 | 0.77592 | 0 | 0 | 0.118203 | 0.106956 | 0 | 0 | 0 | 0 | 0.093645 | 1 | 0.09699 | false | 0.006689 | 0.023411 | 0 | 0.123746 | 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 |
2c5caac15e5d96c70b87b332f9e7161e15b09350 | 30,473 | py | Python | tests/test_pyformance_reporter.py | JosephMeghanath/apptuit-py | ae0d038931efca94435e3a5efe5e4a4ed6f1956e | [
"Apache-2.0"
] | null | null | null | tests/test_pyformance_reporter.py | JosephMeghanath/apptuit-py | ae0d038931efca94435e3a5efe5e4a4ed6f1956e | [
"Apache-2.0"
] | null | null | null | tests/test_pyformance_reporter.py | JosephMeghanath/apptuit-py | ae0d038931efca94435e3a5efe5e4a4ed6f1956e | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
"""
Tests for apptuit pyformance reporter
"""
import os
import random
import socket
import time
from nose.tools import assert_raises, assert_in, assert_equals, assert_greater_equal, \
assert_not_equal, assert_is_none
from pyformance import MetricsRegistry
from requests.exceptions import HTTPErro... | 42.089779 | 99 | 0.616841 | 3,379 | 30,473 | 5.344481 | 0.074282 | 0.051166 | 0.050833 | 0.062019 | 0.848663 | 0.814552 | 0.79124 | 0.766543 | 0.741735 | 0.706019 | 0 | 0.017918 | 0.263774 | 30,473 | 723 | 100 | 42.147994 | 0.787029 | 0.048896 | 0 | 0.762653 | 0 | 0 | 0.161915 | 0.053714 | 0 | 0 | 0 | 0 | 0.176265 | 1 | 0.048866 | false | 0 | 0.022688 | 0 | 0.071553 | 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 |
2c8f8f73026a4932039e10be53c9f239043aa2ae | 57,097 | py | Python | generate-grammars/python-awk/python2_actions.py | mbaak/histogrammar-python | 6311f5b0eec9c75f12018f22604535c64675fdf6 | [
"Apache-2.0"
] | 30 | 2016-09-25T16:36:06.000Z | 2021-07-20T09:09:09.000Z | generate-grammars/python-awk/python2_actions.py | mbaak/histogrammar-python | 6311f5b0eec9c75f12018f22604535c64675fdf6 | [
"Apache-2.0"
] | 15 | 2016-07-26T19:41:31.000Z | 2021-02-07T16:30:11.000Z | generate-grammars/python-awk/python2_actions.py | mbaak/histogrammar-python | 6311f5b0eec9c75f12018f22604535c64675fdf6 | [
"Apache-2.0"
] | 8 | 2016-09-19T20:48:37.000Z | 2021-02-07T15:00:24.000Z | #!/usr/bin/env python
actions = {}
asts = []
# hgawk
asts.append('''class DollarNumber(ast.expr):
_fields = ("n",)
def __init__(self, n, **kwds):
self.n = n
self.__dict__.update(kwds)
''')
actions['''atom : DOLLARNUMBER'''] = ''' p[0] = DollarNumber(int(p[1][0][1:]), **p[1][1])'''
# Python... | 82.03592 | 278 | 0.592483 | 8,891 | 57,097 | 3.659318 | 0.032617 | 0.030367 | 0.178147 | 0.185892 | 0.902597 | 0.875027 | 0.835101 | 0.783218 | 0.720824 | 0.687106 | 0 | 0.034882 | 0.143423 | 57,097 | 695 | 279 | 82.153957 | 0.630347 | 0.000578 | 0 | 0.312046 | 0 | 0.339623 | 0.824766 | 0.231507 | 0 | 0 | 0 | 0 | 0.004354 | 1 | 0 | false | 0.002903 | 0.04209 | 0 | 0.04209 | 0.015965 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
2ccb014fc1ba28555d34168d881760e003be5657 | 6,407 | py | Python | loldib/getratings/models/NA/na_quinn/na_quinn_jng.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_quinn/na_quinn_jng.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_quinn/na_quinn_jng.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | from getratings.models.ratings import Ratings
class NA_Quinn_Jng_Aatrox(Ratings):
pass
class NA_Quinn_Jng_Ahri(Ratings):
pass
class NA_Quinn_Jng_Akali(Ratings):
pass
class NA_Quinn_Jng_Alistar(Ratings):
pass
class NA_Quinn_Jng_Amumu(Ratings):
pass
class NA_Quinn_Jng_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 |
e2f0e638e030fe54a88224133f9d5efc74321f1c | 126 | py | Python | codenode/__init__.py | 0xf0f/codenode | fa36ba5e2eeb42e95c8fc33afd4f1bf131ba6d9b | [
"MIT"
] | 3 | 2019-06-27T04:57:37.000Z | 2019-06-27T11:29:33.000Z | codenode/__init__.py | 0xf0f/codenode | fa36ba5e2eeb42e95c8fc33afd4f1bf131ba6d9b | [
"MIT"
] | null | null | null | codenode/__init__.py | 0xf0f/codenode | fa36ba5e2eeb42e95c8fc33afd4f1bf131ba6d9b | [
"MIT"
] | null | null | null | from .base import CodeNode
from .base import Line
from .base import EmptyLines
from .base import File
from .base import Block
| 21 | 28 | 0.801587 | 20 | 126 | 5.05 | 0.4 | 0.39604 | 0.693069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15873 | 126 | 5 | 29 | 25.2 | 0.95283 | 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 |
3925f7fb63a78997fb6e053972e16547e5ea8f78 | 27 | py | Python | lab1/lab1/models/__init__.py | ZerocksX/Service-Oriented-Computing-2019 | eac6b0e9a40eed76b452f6524fd899e7107b0f69 | [
"Apache-2.0"
] | null | null | null | lab1/lab1/models/__init__.py | ZerocksX/Service-Oriented-Computing-2019 | eac6b0e9a40eed76b452f6524fd899e7107b0f69 | [
"Apache-2.0"
] | null | null | null | lab1/lab1/models/__init__.py | ZerocksX/Service-Oriented-Computing-2019 | eac6b0e9a40eed76b452f6524fd899e7107b0f69 | [
"Apache-2.0"
] | null | null | null | def user():
return None | 13.5 | 15 | 0.62963 | 4 | 27 | 4.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259259 | 27 | 2 | 15 | 13.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 |
1a8193846fff6d9d565706505c3c7635537924dc | 32,559 | py | Python | interface/new/SysTrayIcon.py | AsiganTheSunk/python-torrent-scrapper | 30f27962e795840b82d47398e05664429829ff2b | [
"Apache-2.0"
] | 5 | 2018-05-19T06:18:01.000Z | 2020-01-14T23:17:30.000Z | interface/new/SysTrayIcon.py | AsiganTheSunk/python-torrent-scrapper | 30f27962e795840b82d47398e05664429829ff2b | [
"Apache-2.0"
] | 9 | 2018-05-24T01:02:46.000Z | 2020-02-13T22:35:43.000Z | interface/new/SysTrayIcon.py | AsiganTheSunk/python-torrent-scrapper | 30f27962e795840b82d47398e05664429829ff2b | [
"Apache-2.0"
] | null | null | null | <html><head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
<title>SysTrayIcon.py</title>
<style type="text/css"><!--
.syntax0 {
color: #000000;
}
.syntax1 {
color: #009900;
}
.syntax2 {
color: #6eb357;
font-weight: bold;
font-style: italic;
}
.syntax3 {
color: #cc3300;
}
.syntax4 {
color: #... | 103.03481 | 917 | 0.649344 | 4,100 | 32,559 | 5.099024 | 0.087805 | 0.316847 | 0.32273 | 0.274562 | 0.843873 | 0.806563 | 0.748493 | 0.689515 | 0.509901 | 0.468765 | 0 | 0.046944 | 0.139654 | 32,559 | 316 | 918 | 103.03481 | 0.699379 | 0.281028 | 0 | 0.25 | 0 | 0.03169 | 0.253969 | 0.063845 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003521 | 0.03169 | null | null | 0.017606 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
46d1d36ab2ad16a0e971256427767b052d25d460 | 96 | py | Python | utest/world.py | guiyangwu/tst | 92b3f9cd30984cc0714eec1fd7d5183bbe44b6d0 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | utest/world.py | guiyangwu/tst | 92b3f9cd30984cc0714eec1fd7d5183bbe44b6d0 | [
"ECL-2.0",
"Apache-2.0"
] | 7 | 2016-10-29T23:54:04.000Z | 2016-11-30T14:07:08.000Z | utest/world.py | guiyangwu/tst | 92b3f9cd30984cc0714eec1fd7d5183bbe44b6d0 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | import logging
def print_world(*args, **kargs):
logging.debug("print_world, I'm a keyword.")
| 19.2 | 45 | 0.71875 | 15 | 96 | 4.466667 | 0.8 | 0.298507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 96 | 4 | 46 | 24 | 0.797619 | 0 | 0 | 0 | 0 | 0 | 0.284211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 8 |
46f05045317830eb1dcde53fd6008d859ea532e2 | 4,898 | py | Python | test/runtime/operators_test/concat_test.py | steerapi/webdnn | 1df51cc094e5a528cfd3452c264905708eadb491 | [
"MIT"
] | 1 | 2021-04-09T15:55:35.000Z | 2021-04-09T15:55:35.000Z | test/runtime/operators_test/concat_test.py | steerapi/webdnn | 1df51cc094e5a528cfd3452c264905708eadb491 | [
"MIT"
] | null | null | null | test/runtime/operators_test/concat_test.py | steerapi/webdnn | 1df51cc094e5a528cfd3452c264905708eadb491 | [
"MIT"
] | null | null | null | import numpy as np
from test.util import generate_kernel_test_case
from webdnn.graph.axis import Axis
from webdnn.graph.graph import Graph
from webdnn.graph.operators.concat import Concat
from webdnn.graph.order import OrderNHWC, OrderCNHW, OrderCHWN, OrderNCHW, OrderNC
from webdnn.graph.variable import Variable
def... | 27.363128 | 82 | 0.564108 | 723 | 4,898 | 3.75242 | 0.085754 | 0.073719 | 0.110579 | 0.119794 | 0.813491 | 0.805013 | 0.798378 | 0.783634 | 0.767416 | 0.767416 | 0 | 0.088311 | 0.285627 | 4,898 | 178 | 83 | 27.516854 | 0.687053 | 0 | 0 | 0.684564 | 1 | 0 | 0.020212 | 0.004287 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040268 | false | 0 | 0.04698 | 0 | 0.087248 | 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 |
46f97c98037906d8d0201bb01af5ebaefd56a7d8 | 82 | py | Python | python/baseline/dy/classify/__init__.py | domyounglee/baseline | 2261abfb7e770cc6f3d63a7f6e0015238d0e11f8 | [
"Apache-2.0"
] | 2 | 2018-07-06T02:01:12.000Z | 2018-07-06T02:01:14.000Z | python/baseline/dy/classify/__init__.py | domyounglee/baseline | 2261abfb7e770cc6f3d63a7f6e0015238d0e11f8 | [
"Apache-2.0"
] | null | null | null | python/baseline/dy/classify/__init__.py | domyounglee/baseline | 2261abfb7e770cc6f3d63a7f6e0015238d0e11f8 | [
"Apache-2.0"
] | 3 | 2019-05-27T04:52:21.000Z | 2022-02-15T00:22:53.000Z | from baseline.dy.classify.train import *
from baseline.dy.classify.model import *
| 27.333333 | 40 | 0.804878 | 12 | 82 | 5.5 | 0.583333 | 0.363636 | 0.424242 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 82 | 2 | 41 | 41 | 0.891892 | 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 |
20044b1024a76ca161dae865daf61d4c16669fdc | 1,562 | py | Python | lxml_xpath_ipaddress/ip4or6.py | jeremyschulman/lxml-xpath-ipaddress | d7e884644bd6fae2ca16f8a297ceb471b67e8035 | [
"MIT"
] | 1 | 2018-10-03T20:39:16.000Z | 2018-10-03T20:39:16.000Z | lxml_xpath_ipaddress/ip4or6.py | jeremyschulman/lxmlextipaddress | d7e884644bd6fae2ca16f8a297ceb471b67e8035 | [
"MIT"
] | null | null | null | lxml_xpath_ipaddress/ip4or6.py | jeremyschulman/lxmlextipaddress | d7e884644bd6fae2ca16f8a297ceb471b67e8035 | [
"MIT"
] | null | null | null | from lxml_xpath_ipaddress.ip4 import *
from lxml_xpath_ipaddress.ip6 import *
# -----------------------------------------------------------------------------------------------------------------
# IP any family
# ----------------------------------------------------------------------------------------------------------... | 23.313433 | 115 | 0.527529 | 192 | 1,562 | 4.177083 | 0.229167 | 0.037406 | 0.05985 | 0.067332 | 0.741895 | 0.741895 | 0.741895 | 0.741895 | 0.741895 | 0.741895 | 0 | 0.012059 | 0.256722 | 1,562 | 66 | 116 | 23.666667 | 0.678725 | 0.684379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
200637bf17769bc9254a5910ebae987b3c13cd84 | 15,909 | py | Python | sdk/python/pulumi_pagerduty/maintenance_window.py | pulumi/pulumi-pagerduty | 1c08849cda3d5fccf5eb9f615dc004b1f8f90555 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2020-05-27T08:18:35.000Z | 2021-07-31T08:40:03.000Z | sdk/python/pulumi_pagerduty/maintenance_window.py | pulumi/pulumi-pagerduty | 1c08849cda3d5fccf5eb9f615dc004b1f8f90555 | [
"ECL-2.0",
"Apache-2.0"
] | 48 | 2020-05-26T10:59:40.000Z | 2022-03-31T15:41:54.000Z | sdk/python/pulumi_pagerduty/maintenance_window.py | pulumi/pulumi-pagerduty | 1c08849cda3d5fccf5eb9f615dc004b1f8f90555 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-05-26T17:51:56.000Z | 2020-05-26T17:51:56.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 ... | 46.517544 | 339 | 0.658998 | 1,977 | 15,909 | 5.140111 | 0.103187 | 0.07469 | 0.074395 | 0.045463 | 0.817851 | 0.799646 | 0.770911 | 0.740405 | 0.730958 | 0.720724 | 0 | 0.006774 | 0.248413 | 15,909 | 341 | 340 | 46.653959 | 0.843104 | 0.414231 | 0 | 0.615385 | 1 | 0 | 0.094884 | 0.008487 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148352 | false | 0.005495 | 0.027473 | 0 | 0.263736 | 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 |
646b81124801aa70c370b7af34b8f4be10395117 | 35 | py | Python | Utils4R/static/__init__.py | ChangxingJiang/Utils4R | e8ef687107f5d444604fb5750c4de99b0faeb722 | [
"Apache-2.0"
] | null | null | null | Utils4R/static/__init__.py | ChangxingJiang/Utils4R | e8ef687107f5d444604fb5750c4de99b0faeb722 | [
"Apache-2.0"
] | null | null | null | Utils4R/static/__init__.py | ChangxingJiang/Utils4R | e8ef687107f5d444604fb5750c4de99b0faeb722 | [
"Apache-2.0"
] | null | null | null | from .user_agent import USER_AGENT
| 17.5 | 34 | 0.857143 | 6 | 35 | 4.666667 | 0.666667 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 35 | 1 | 35 | 35 | 0.903226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
b378c4a561dba945267cf9c556037c97d2521fb5 | 6,175 | py | Python | ext/ANTsPyNet/antspynet/architectures/create_denoising_auto_encoder_super_resolution_model.py | tsmonteiro/fmri_proc | ee740cfa3c3a7ef8e1ee1ebd3b286a66712e0ec1 | [
"MIT"
] | 2 | 2021-11-16T10:00:33.000Z | 2021-12-13T02:57:40.000Z | ext/ANTsPyNet/antspynet/architectures/create_denoising_auto_encoder_super_resolution_model.py | tsmonteiro/fmri_proc | ee740cfa3c3a7ef8e1ee1ebd3b286a66712e0ec1 | [
"MIT"
] | null | null | null | ext/ANTsPyNet/antspynet/architectures/create_denoising_auto_encoder_super_resolution_model.py | tsmonteiro/fmri_proc | ee740cfa3c3a7ef8e1ee1ebd3b286a66712e0ec1 | [
"MIT"
] | 1 | 2021-12-13T02:57:27.000Z | 2021-12-13T02:57:27.000Z |
from keras.models import Model
from keras.layers import (Input, Average, Add,
Conv2D, Conv2DTranspose,
Conv3D, Conv3DTranspose)
def create_denoising_auto_encoder_super_resolution_model_2d(input_image_size,
... | 38.836478 | 108 | 0.569879 | 645 | 6,175 | 5.220155 | 0.168992 | 0.07128 | 0.06237 | 0.07722 | 0.957529 | 0.953965 | 0.953965 | 0.953965 | 0.899911 | 0.899911 | 0 | 0.018959 | 0.359352 | 6,175 | 158 | 109 | 39.082278 | 0.832154 | 0.310607 | 0 | 0.783784 | 0 | 0 | 0.016798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.027027 | 0 | 0.054054 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.