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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5d36d6dbf217342990cb49eda55af38f42824619 | 4,238 | py | Python | pkgs/dynd-python-0.7.2-py27_0/lib/python2.7/site-packages/dynd/tests/test_nd_fields.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | pkgs/dynd-python-0.7.2-py27_0/lib/python2.7/site-packages/dynd/tests/test_nd_fields.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | pkgs/dynd-python-0.7.2-py27_0/lib/python2.7/site-packages/dynd/tests/test_nd_fields.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | import sys
import unittest
from dynd import nd, ndt
"""
class TestFields(unittest.TestCase):
def test_simple(self):
a = nd.array([
(1, 2, 'a', 'b'),
(3, 4, 'ab', 'cd'),
(5, 6, 'def', 'ghi')],
type='3 * {x: int32, y: int32, z: string, w: string... | 42.808081 | 76 | 0.464606 | 617 | 4,238 | 3.051864 | 0.111831 | 0.084971 | 0.127456 | 0.201806 | 0.893255 | 0.893255 | 0.893255 | 0.893255 | 0.893255 | 0.893255 | 0 | 0.02387 | 0.34757 | 4,238 | 98 | 77 | 43.244898 | 0.657143 | 0 | 0 | 0 | 0 | 0 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 10 |
5d579c372853402ecfd7e953a09a9d04c6d7c725 | 114 | py | Python | nintendeals/noa/api/__init__.py | Pooroomoo/nintendeals | 993f4d159ff405ed82cd2bb023c7b75d921d0acb | [
"MIT"
] | 37 | 2020-04-30T13:48:02.000Z | 2022-03-09T04:55:54.000Z | nintendeals/noa/api/__init__.py | Pooroomoo/nintendeals | 993f4d159ff405ed82cd2bb023c7b75d921d0acb | [
"MIT"
] | 4 | 2020-05-09T03:17:44.000Z | 2021-04-28T00:53:55.000Z | nintendeals/noa/api/__init__.py | Pooroomoo/nintendeals | 993f4d159ff405ed82cd2bb023c7b75d921d0acb | [
"MIT"
] | 5 | 2020-07-22T06:42:27.000Z | 2022-02-07T22:35:57.000Z | from .algolia import search_by_nsuid
from .algolia import search_by_platform
from .algolia import search_by_query
| 28.5 | 39 | 0.868421 | 18 | 114 | 5.166667 | 0.444444 | 0.354839 | 0.548387 | 0.741935 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 114 | 3 | 40 | 38 | 0.911765 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 9 |
538ed9ab23e9e71ee700c89f6a7e07b38fae61a0 | 50,485 | py | Python | cloudroast/objectstorage/smoke/object_smoke.py | RULCSoft/cloudroast | 30f0e64672676c3f90b4a582fe90fac6621475b3 | [
"Apache-2.0"
] | null | null | null | cloudroast/objectstorage/smoke/object_smoke.py | RULCSoft/cloudroast | 30f0e64672676c3f90b4a582fe90fac6621475b3 | [
"Apache-2.0"
] | null | null | null | cloudroast/objectstorage/smoke/object_smoke.py | RULCSoft/cloudroast | 30f0e64672676c3f90b4a582fe90fac6621475b3 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2015 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dist... | 34.273591 | 79 | 0.605051 | 4,979 | 50,485 | 5.887728 | 0.060253 | 0.057206 | 0.058332 | 0.042367 | 0.883404 | 0.860583 | 0.836568 | 0.817602 | 0.797749 | 0.780488 | 0 | 0.00876 | 0.314886 | 50,485 | 1,472 | 80 | 34.296875 | 0.838788 | 0.019669 | 0 | 0.775993 | 0 | 0 | 0.131571 | 0.033242 | 0 | 0 | 0 | 0 | 0.069315 | 1 | 0.032967 | false | 0 | 0.007608 | 0 | 0.042265 | 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 |
539324c139f4acda8b0dbb87e42e77a126f0fc1b | 155 | py | Python | tests/__init__.py | egor43/PyImageComparsion | 5270f5646c40391cc5ac225305d7be9b0b7de140 | [
"BSD-2-Clause"
] | null | null | null | tests/__init__.py | egor43/PyImageComparsion | 5270f5646c40391cc5ac225305d7be9b0b7de140 | [
"BSD-2-Clause"
] | null | null | null | tests/__init__.py | egor43/PyImageComparsion | 5270f5646c40391cc5ac225305d7be9b0b7de140 | [
"BSD-2-Clause"
] | null | null | null | from . import test_helpers
from . import test_image_opener
from . import test_image_metrick
from . import test_compare_tools
from . import test_compare_api | 31 | 32 | 0.845161 | 24 | 155 | 5.083333 | 0.416667 | 0.409836 | 0.57377 | 0.311475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122581 | 155 | 5 | 33 | 31 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
53a287190d58a2db9d8427aaa2bd973ac3e2cd59 | 59 | py | Python | __init__.py | csalyk/nirspec | 58661371871d29103afe42bfccc0bff9ff773914 | [
"MIT-0"
] | null | null | null | __init__.py | csalyk/nirspec | 58661371871d29103afe42bfccc0bff9ff773914 | [
"MIT-0"
] | null | null | null | __init__.py | csalyk/nirspec | 58661371871d29103afe42bfccc0bff9ff773914 | [
"MIT-0"
] | null | null | null | from .nirspec import divspec
from .nirspec import gluespec
| 19.666667 | 29 | 0.830508 | 8 | 59 | 6.125 | 0.625 | 0.44898 | 0.693878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135593 | 59 | 2 | 30 | 29.5 | 0.960784 | 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 |
53b0797fa1d2b73bd60c7d0448335bb8ff3970e6 | 2,995 | py | Python | tests/bucket/test_bucket.py | WillChilds-Klein/mistress-mapreduce | c991a502545bd0d3ec4f914cdc63faf6a40e77ae | [
"Apache-2.0"
] | 2 | 2018-12-02T11:10:15.000Z | 2019-02-21T22:24:00.000Z | tests/bucket/test_bucket.py | WillChilds-Klein/mistress-mapreduce | c991a502545bd0d3ec4f914cdc63faf6a40e77ae | [
"Apache-2.0"
] | 1 | 2019-02-21T22:23:36.000Z | 2019-02-21T22:23:36.000Z | tests/bucket/test_bucket.py | WillChilds-Klein/mistress-mapreduce | c991a502545bd0d3ec4f914cdc63faf6a40e77ae | [
"Apache-2.0"
] | 3 | 2018-04-26T16:02:10.000Z | 2018-12-02T11:10:16.000Z | from mrs.bucket import WriteBucket
from mrs import BinWriter, HexWriter
def test_writebucket():
b = WriteBucket(0, 0)
b.addpair((4, 'test'))
b.collect([(3, 'a'), (1, 'This'), (2, 'is')])
values = ' '.join(value for key, value in b)
assert values == 'test a This is'
b.sort()
values = ' '.j... | 26.741071 | 69 | 0.621035 | 409 | 2,995 | 4.440098 | 0.149144 | 0.105727 | 0.074339 | 0.089207 | 0.863987 | 0.863987 | 0.84196 | 0.84196 | 0.792952 | 0.749449 | 0 | 0.015544 | 0.226711 | 2,995 | 111 | 70 | 26.981982 | 0.768566 | 0.00601 | 0 | 0.825 | 0 | 0 | 0.068235 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.0625 | false | 0 | 0.025 | 0 | 0.0875 | 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 |
53bf55da72ae86acb1c699435bc12016f38e84ea | 146 | py | Python | DataQualityTester/views/pages.py | pwyf/data-quality-tester | d7674849c64d4d41ff4e4b6b12631994c7ce0a92 | [
"MIT"
] | null | null | null | DataQualityTester/views/pages.py | pwyf/data-quality-tester | d7674849c64d4d41ff4e4b6b12631994c7ce0a92 | [
"MIT"
] | 53 | 2017-04-07T09:41:38.000Z | 2022-02-11T14:26:46.000Z | DataQualityTester/views/pages.py | pwyf/iati-simple-tester | ef7f06ebbd4dd45e6ca76d93a3f624abc33d961c | [
"MIT"
] | 3 | 2017-07-19T13:43:14.000Z | 2019-10-29T15:25:49.000Z | from flask import render_template
def home():
return render_template('upload.html')
def about():
return render_template('about.html')
| 14.6 | 41 | 0.726027 | 19 | 146 | 5.421053 | 0.578947 | 0.407767 | 0.38835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164384 | 146 | 9 | 42 | 16.222222 | 0.844262 | 0 | 0 | 0 | 0 | 0 | 0.143836 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | true | 0 | 0.2 | 0.4 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 8 |
071593280ef30a4532ccbb4b6f3c6b4f7d728fa5 | 4,251 | py | Python | image_quality/handlers/data_generator.py | mbartoli/image-quality-assessment | b957c781ac8a11f8668f58345524f33503338b3b | [
"Apache-2.0"
] | 1 | 2021-03-27T15:09:30.000Z | 2021-03-27T15:09:30.000Z | image_quality/handlers/data_generator.py | welcotravel/image-quality-assessment | b9e17de93578220e5ae142725d9153098759e7c8 | [
"Apache-2.0"
] | null | null | null | image_quality/handlers/data_generator.py | welcotravel/image-quality-assessment | b9e17de93578220e5ae142725d9153098759e7c8 | [
"Apache-2.0"
] | 1 | 2020-10-05T03:20:53.000Z | 2020-10-05T03:20:53.000Z |
import os
import numpy as np
import tensorflow as tf
from image_quality.utils import utils
class TrainDataGenerator(tf.keras.utils.Sequence):
'''inherits from Keras Sequence base object, allows to use multiprocessing in .fit_generator'''
def __init__(self, samples, img_dir, batch_size, n_classes, basenet_preproc... | 40.485714 | 106 | 0.713479 | 630 | 4,251 | 4.592063 | 0.188889 | 0.058071 | 0.034221 | 0.025925 | 0.887314 | 0.853094 | 0.853094 | 0.853094 | 0.853094 | 0.853094 | 0 | 0.009316 | 0.191955 | 4,251 | 104 | 107 | 40.875 | 0.832897 | 0.26088 | 0 | 0.760563 | 0 | 0 | 0.011261 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.140845 | false | 0 | 0.056338 | 0.028169 | 0.309859 | 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 |
072bd117dea823ba3412148c4dbda51e774d2a1f | 11,707 | py | Python | cohorts_proj/datasets/migrations/0009_auto_20200824_0617.py | zferic/harmonization-website | f6a081481df3a3a62cb075fbb63ad0470b0d4e06 | [
"MIT"
] | 1 | 2020-09-20T02:32:01.000Z | 2020-09-20T02:32:01.000Z | cohorts_proj/datasets/migrations/0009_auto_20200824_0617.py | zferic/harmonization-website | f6a081481df3a3a62cb075fbb63ad0470b0d4e06 | [
"MIT"
] | 20 | 2020-04-17T14:01:41.000Z | 2022-03-12T00:30:23.000Z | cohorts_proj/datasets/migrations/0009_auto_20200824_0617.py | zferic/harmonization-website | f6a081481df3a3a62cb075fbb63ad0470b0d4e06 | [
"MIT"
] | 3 | 2020-10-08T00:24:51.000Z | 2021-06-02T20:07:30.000Z | # Generated by Django 3.0.7 on 2020-08-24 06:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('datasets', '0008_auto_20200821_1427'),
]
operations = [
migrations.AddField(
model_name='rawdar',
name='AsB',
... | 33.353276 | 154 | 0.522337 | 1,096 | 11,707 | 5.468978 | 0.076642 | 0.099099 | 0.165165 | 0.209209 | 0.971471 | 0.971471 | 0.971471 | 0.954955 | 0.954955 | 0.954955 | 0 | 0.007698 | 0.345349 | 11,707 | 350 | 155 | 33.448571 | 0.7744 | 0.003844 | 0 | 0.787791 | 1 | 0 | 0.09494 | 0.003859 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.002907 | 0 | 0.011628 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
4ae8e1876538896679e757644a54528296f6f24d | 62,352 | py | Python | gpMgmt/bin/gppylib/test/unit/test_unit_gpcrondump.py | nurikk/gpdb | 04fe0202c59721826d1eda2b19d73e5572893fcb | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | gpMgmt/bin/gppylib/test/unit/test_unit_gpcrondump.py | nurikk/gpdb | 04fe0202c59721826d1eda2b19d73e5572893fcb | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | gpMgmt/bin/gppylib/test/unit/test_unit_gpcrondump.py | nurikk/gpdb | 04fe0202c59721826d1eda2b19d73e5572893fcb | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import os
import imp
gpcrondump_path = os.path.abspath('gpcrondump')
gpcrondump = imp.load_source('gpcrondump', gpcrondump_path)
import unittest2 as unittest
from datetime import datetime
from gppylib import gplog
from gpcrondump import GpCronDump
from gppylib.operations.utils import DEFAULT_NUM_... | 52.264878 | 175 | 0.697203 | 6,899 | 62,352 | 6.016814 | 0.058269 | 0.082751 | 0.062033 | 0.068128 | 0.906697 | 0.889207 | 0.881306 | 0.869164 | 0.855167 | 0.841845 | 0 | 0.041937 | 0.200346 | 62,352 | 1,192 | 176 | 52.308725 | 0.790594 | 0.005052 | 0 | 0.713222 | 0 | 0.004655 | 0.291444 | 0.194425 | 0 | 0 | 0 | 0 | 0.088454 | 1 | 0.09311 | false | 0.000931 | 0.010242 | 0 | 0.105214 | 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 |
db874da91d4a01e76e9bd18e99b073b83ddddd62 | 6,050 | py | Python | AutomationFramework/tests/interfaces/test_if_subif.py | sbarguil/Testing-framework | f3ef69f1c4f0aeafd02e222d846162c711783b15 | [
"Apache-2.0"
] | 1 | 2020-04-23T15:22:16.000Z | 2020-04-23T15:22:16.000Z | AutomationFramework/tests/interfaces/test_if_subif.py | sbarguil/Testing-framework | f3ef69f1c4f0aeafd02e222d846162c711783b15 | [
"Apache-2.0"
] | 44 | 2020-08-13T19:35:41.000Z | 2021-03-01T09:08:00.000Z | AutomationFramework/tests/interfaces/test_if_subif.py | sbarguil/Testing-framework | f3ef69f1c4f0aeafd02e222d846162c711783b15 | [
"Apache-2.0"
] | 6 | 2020-04-23T15:29:38.000Z | 2022-03-03T14:23:38.000Z | import pytest
from AutomationFramework.page_objects.interfaces.interfaces import Interfaces
from AutomationFramework.tests.base_test import BaseTest
class TestInterfacesSubInterfaces(BaseTest):
test_case_file = 'if_subif.yml'
@pytest.mark.parametrize('create_page_object_arg', [{'test_case_file': test_case_fi... | 72.02381 | 120 | 0.615372 | 638 | 6,050 | 5.219436 | 0.092476 | 0.174174 | 0.192192 | 0.096096 | 0.916517 | 0.905105 | 0.899099 | 0.899099 | 0.840541 | 0.840541 | 0 | 0 | 0.315207 | 6,050 | 83 | 121 | 72.891566 | 0.803765 | 0 | 0 | 0.647887 | 0 | 0 | 0.154876 | 0.06 | 0 | 0 | 0 | 0 | 0.140845 | 1 | 0.140845 | false | 0 | 0.042254 | 0 | 0.211268 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
915d6d3e43279c39fd9d72fc48c527f4f811ec46 | 180 | py | Python | rta/provision/__init__.py | XiaoguTech/rta-sandbox | 2783a3ba8920bf64273761ce7392e51c9c8fb1f7 | [
"MIT"
] | null | null | null | rta/provision/__init__.py | XiaoguTech/rta-sandbox | 2783a3ba8920bf64273761ce7392e51c9c8fb1f7 | [
"MIT"
] | null | null | null | rta/provision/__init__.py | XiaoguTech/rta-sandbox | 2783a3ba8920bf64273761ce7392e51c9c8fb1f7 | [
"MIT"
] | null | null | null | from rta.provision.utils import *
from rta.provision.passwd import *
from rta.provision.influxdb import *
from rta.provision.grafana import *
from rta.provision.kapacitor import *
| 30 | 37 | 0.805556 | 25 | 180 | 5.8 | 0.36 | 0.241379 | 0.551724 | 0.606897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 180 | 5 | 38 | 36 | 0.90625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 9 |
91820c594379b0529582b42b9cc165d4cd520738 | 33,871 | py | Python | tests/compute/test_sampler.py | buaaqt/dgl | 64f6f3c1a8c2c3e08ec0750b902f3e2c63fd2cd7 | [
"Apache-2.0"
] | 1 | 2020-07-21T03:03:15.000Z | 2020-07-21T03:03:15.000Z | tests/compute/test_sampler.py | buaaqt/dgl | 64f6f3c1a8c2c3e08ec0750b902f3e2c63fd2cd7 | [
"Apache-2.0"
] | null | null | null | tests/compute/test_sampler.py | buaaqt/dgl | 64f6f3c1a8c2c3e08ec0750b902f3e2c63fd2cd7 | [
"Apache-2.0"
] | null | null | null | import backend as F
import numpy as np
import scipy as sp
import dgl
from dgl import utils
import unittest
from numpy.testing import assert_array_equal
np.random.seed(42)
def generate_rand_graph(n):
arr = (sp.sparse.random(n, n, density=0.1, format='coo') != 0).astype(np.int64)
return dgl.DGLGraph(arr, readon... | 46.783149 | 103 | 0.575507 | 4,447 | 33,871 | 4.093996 | 0.063414 | 0.028562 | 0.018675 | 0.020598 | 0.818412 | 0.778919 | 0.754092 | 0.730913 | 0.716522 | 0.703614 | 0 | 0.016596 | 0.322193 | 33,871 | 723 | 104 | 46.847856 | 0.776418 | 0.059638 | 0 | 0.686242 | 1 | 0 | 0.016981 | 0 | 0 | 0 | 0 | 0 | 0.147651 | 1 | 0.031879 | false | 0.001678 | 0.011745 | 0.001678 | 0.04698 | 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 |
9186884237c62f08e8e5c91cdb86f2cf165aa0f6 | 173 | py | Python | examples/simple_lakehouse/simple_lakehouse/repo.py | dbatten5/dagster | d76e50295054ffe5a72f9b292ef57febae499528 | [
"Apache-2.0"
] | 2 | 2021-06-21T17:50:26.000Z | 2021-06-21T19:14:23.000Z | examples/simple_lakehouse/simple_lakehouse/repo.py | dbatten5/dagster | d76e50295054ffe5a72f9b292ef57febae499528 | [
"Apache-2.0"
] | 1 | 2021-06-21T18:30:02.000Z | 2021-06-25T21:18:39.000Z | examples/simple_lakehouse/simple_lakehouse/repo.py | dbatten5/dagster | d76e50295054ffe5a72f9b292ef57febae499528 | [
"Apache-2.0"
] | 1 | 2021-08-18T17:21:57.000Z | 2021-08-18T17:21:57.000Z | from dagster import repository
from simple_lakehouse.pipelines import simple_lakehouse_pipeline
@repository
def simple_lakehouse():
return [simple_lakehouse_pipeline]
| 21.625 | 64 | 0.849711 | 20 | 173 | 7.05 | 0.5 | 0.425532 | 0.326241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109827 | 173 | 7 | 65 | 24.714286 | 0.915584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 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 | 1 | 1 | 0 | 0 | 8 |
91b2c92f668693110e6ccdfb6fa82e177d314e5d | 8,510 | py | Python | z2/part2/interactive/jm/random_fuzzy_arrows_1/554539540.py | kozakusek/ipp-2020-testy | 09aa008fa53d159672cc7cbf969a6b237e15a7b8 | [
"MIT"
] | 1 | 2020-04-16T12:13:47.000Z | 2020-04-16T12:13:47.000Z | z2/part2/interactive/jm/random_fuzzy_arrows_1/554539540.py | kozakusek/ipp-2020-testy | 09aa008fa53d159672cc7cbf969a6b237e15a7b8 | [
"MIT"
] | 18 | 2020-03-06T17:50:15.000Z | 2020-05-19T14:58:30.000Z | z2/part2/interactive/jm/random_fuzzy_arrows_1/554539540.py | kozakusek/ipp-2020-testy | 09aa008fa53d159672cc7cbf969a6b237e15a7b8 | [
"MIT"
] | 18 | 2020-03-06T17:45:13.000Z | 2020-06-09T19:18:31.000Z | from part1 import (
gamma_board,
gamma_busy_fields,
gamma_delete,
gamma_free_fields,
gamma_golden_move,
gamma_golden_possible,
gamma_move,
gamma_new,
)
"""
scenario: test_random_actions
uuid: 554539540
"""
"""
random actions, total chaos
"""
board = gamma_new(6, 8, 3, 17)
assert board i... | 30.722022 | 46 | 0.653114 | 1,575 | 8,510 | 3.388571 | 0.041905 | 0.344201 | 0.379427 | 0.505902 | 0.824433 | 0.818999 | 0.767285 | 0.634814 | 0.539254 | 0.493536 | 0 | 0.155384 | 0.177203 | 8,510 | 276 | 47 | 30.833333 | 0.606827 | 0 | 0 | 0.436508 | 0 | 0 | 0.045595 | 0 | 0 | 0 | 0 | 0 | 0.714286 | 1 | 0 | false | 0 | 0.003968 | 0 | 0.003968 | 0 | 0 | 0 | 0 | null | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
91cb09a3e92988e65a39aed7bb0bc23d1f6a9538 | 20,537 | py | Python | util/hierarchical_primitive/cube_inclusion.py | isunchy/cuboid_abstraction | afda6ca8516c2f5e5e7292b3b22a059a4f6c84ec | [
"MIT"
] | 43 | 2019-09-20T07:45:08.000Z | 2022-03-23T04:07:21.000Z | util/hierarchical_primitive/cube_inclusion.py | SilenKZYoung/cuboid_abstraction | afda6ca8516c2f5e5e7292b3b22a059a4f6c84ec | [
"MIT"
] | 4 | 2019-11-25T00:57:10.000Z | 2021-09-02T10:59:05.000Z | util/hierarchical_primitive/cube_inclusion.py | SilenKZYoung/cuboid_abstraction | afda6ca8516c2f5e5e7292b3b22a059a4f6c84ec | [
"MIT"
] | 10 | 2019-09-10T02:19:47.000Z | 2021-06-16T05:23:43.000Z | import numpy as np
import quaternion
sample_points = np.array([[-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,... | 315.953846 | 5,958 | 0.466378 | 8,476 | 20,537 | 1.119396 | 0.009202 | 0.187605 | 0.231134 | 0.255902 | 0.882694 | 0.866779 | 0.861298 | 0.860561 | 0.853605 | 0.852129 | 0 | 0.41108 | 0.029654 | 20,537 | 64 | 5,959 | 320.890625 | 0.065034 | 0.002727 | 0 | 0 | 0 | 0 | 0.002401 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 1 | 0.036364 | false | 0 | 0.036364 | 0 | 0.090909 | 0.018182 | 0 | 0 | 1 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 13 |
91ce047cf63bd3235780b724cb14faa1d2a5cf51 | 1,732 | py | Python | src/tests/testdata.py | Doometnick/MaxiMin-2048 | f1d795ec07fffe1aa239c105cf522d2c3bc9b011 | [
"MIT"
] | null | null | null | src/tests/testdata.py | Doometnick/MaxiMin-2048 | f1d795ec07fffe1aa239c105cf522d2c3bc9b011 | [
"MIT"
] | null | null | null | src/tests/testdata.py | Doometnick/MaxiMin-2048 | f1d795ec07fffe1aa239c105cf522d2c3bc9b011 | [
"MIT"
] | null | null | null | from board import Direction
# Tuples of input, action, expected output.
moving_tests = [
(
[[0,0,0,0],
[4,0,0,0],
[0,0,0,0],
[4,0,2,0]],
Direction.UP,
[[8,0,2,0],
[0,0,0,0],
[0,0,0,0],
[0,0,0,0]]
),
(
[[0,0,0,0],
... | 18.623656 | 43 | 0.265012 | 284 | 1,732 | 1.612676 | 0.077465 | 0.406114 | 0.471616 | 0.497817 | 0.70524 | 0.689956 | 0.689956 | 0.689956 | 0.670306 | 0.670306 | 0 | 0.315444 | 0.472864 | 1,732 | 93 | 44 | 18.623656 | 0.186199 | 0.023672 | 0 | 0.659341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.010989 | 0 | 0.010989 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 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 | 0 | 0 | 7 |
37cf939b241a87e359fb447071196040b0ef99e6 | 26,714 | py | Python | openprocurement/blade/tests/auctions.py | imaginal/openprocurement.blade | 4ef512e3d0c1287af1faca9caa9e5349a3c5b0fb | [
"Apache-2.0"
] | null | null | null | openprocurement/blade/tests/auctions.py | imaginal/openprocurement.blade | 4ef512e3d0c1287af1faca9caa9e5349a3c5b0fb | [
"Apache-2.0"
] | null | null | null | openprocurement/blade/tests/auctions.py | imaginal/openprocurement.blade | 4ef512e3d0c1287af1faca9caa9e5349a3c5b0fb | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import unittest
from uuid import uuid4
from copy import deepcopy
from openprocurement.api.models import get_now
from openprocurement.edge.tests.base import AuctionBaseWebTest, test_award, test_auction_data, test_document, ROUTE_PREFIX
try:
import openprocurement.auctions.core as auctions_co... | 47.960503 | 145 | 0.63521 | 3,189 | 26,714 | 5.25149 | 0.049859 | 0.154953 | 0.153819 | 0.066639 | 0.911984 | 0.90255 | 0.89222 | 0.881889 | 0.873828 | 0.847973 | 0 | 0.015606 | 0.189264 | 26,714 | 556 | 146 | 48.046763 | 0.757642 | 0.004193 | 0 | 0.739631 | 0 | 0.002304 | 0.197301 | 0.058536 | 0 | 0 | 0 | 0 | 0.546083 | 1 | 0.036866 | false | 0 | 0.016129 | 0 | 0.062212 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
530685b38b63bb864c23c036e780f7efc9f20c41 | 440,655 | py | Python | tensorflow-ops-generator/resources/gen_ops/gen_math_ops.py | wumo/sim-world | 2a3a5118239b27eeb268cd1e7bdbfe5f5604dab6 | [
"MIT"
] | 1 | 2019-01-12T13:17:32.000Z | 2019-01-12T13:17:32.000Z | rcnn/lib/python3.6/site-packages/tensorflow/python/ops/gen_math_ops.py | dreamingweaver/making_passportImage | 68f23411780ff82abe934dfae5fc04acb80f2c49 | [
"MIT"
] | null | null | null | rcnn/lib/python3.6/site-packages/tensorflow/python/ops/gen_math_ops.py | dreamingweaver/making_passportImage | 68f23411780ff82abe934dfae5fc04acb80f2c49 | [
"MIT"
] | null | null | null | """Python wrappers around TensorFlow ops.
This file is MACHINE GENERATED! Do not edit.
Original C++ source file: math_ops.cc
"""
import collections as _collections
import six as _six
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
from tensorflow.python.eager import context as _context
from ten... | 31.749766 | 26,169 | 0.632458 | 60,078 | 440,655 | 4.339775 | 0.020074 | 0.028582 | 0.02261 | 0.021103 | 0.914316 | 0.903285 | 0.888799 | 0.877802 | 0.868954 | 0.863216 | 0 | 0.053219 | 0.236975 | 440,655 | 13,878 | 26,170 | 31.752054 | 0.722215 | 0.385267 | 0 | 0.776066 | 1 | 0.018832 | 0.096812 | 0.05617 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045027 | false | 0 | 0.002568 | 0 | 0.137476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
5311bdf4dfe6e2813dcf2c28b40dad10195c1693 | 66,098 | py | Python | research/object_detection/data_decoders/tf_example_decoder_test.py | akshit-protonn/models | 38c8c6fe4144c93d6aadd19981c2b90570c29eba | [
"Apache-2.0"
] | 18 | 2022-01-14T09:58:27.000Z | 2022-01-14T09:58:37.000Z | research/object_detection/data_decoders/tf_example_decoder_test.py | akshit-protonn/models | 38c8c6fe4144c93d6aadd19981c2b90570c29eba | [
"Apache-2.0"
] | 62 | 2021-06-09T00:47:27.000Z | 2021-09-24T09:06:58.000Z | research/object_detection/data_decoders/tf_example_decoder_test.py | akshit-protonn/models | 38c8c6fe4144c93d6aadd19981c2b90570c29eba | [
"Apache-2.0"
] | 2 | 2021-02-17T06:59:57.000Z | 2021-03-18T10:12:30.000Z | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 40.03513 | 80 | 0.603089 | 7,438 | 66,098 | 5.061576 | 0.046383 | 0.056683 | 0.038674 | 0.048874 | 0.868944 | 0.846393 | 0.816564 | 0.798953 | 0.781157 | 0.765007 | 0 | 0.02502 | 0.285863 | 66,098 | 1,650 | 81 | 40.059394 | 0.772557 | 0.016415 | 0 | 0.776297 | 0 | 0 | 0.085575 | 0.03527 | 0 | 0 | 0 | 0 | 0.058906 | 1 | 0.053997 | false | 0 | 0.006311 | 0 | 0.08906 | 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 |
531e55e6be488ba1586f078680847b9d77b065ff | 4,416 | py | Python | tests/test_base_protocol.py | Qix-/aiohttp | aee067dccad3dc0e79778a1b213105f20bf39baf | [
"Apache-2.0"
] | 3 | 2019-01-15T04:17:33.000Z | 2019-03-13T13:12:15.000Z | tests/test_base_protocol.py | Qix-/aiohttp | aee067dccad3dc0e79778a1b213105f20bf39baf | [
"Apache-2.0"
] | 309 | 2019-08-20T21:49:50.000Z | 2021-07-31T13:27:18.000Z | tests/test_base_protocol.py | amenezes/aiohttp | e8049814a2161278bae178cb96334ce0c98e66f3 | [
"Apache-2.0"
] | 1 | 2020-12-02T16:06:16.000Z | 2020-12-02T16:06:16.000Z | import asyncio
from contextlib import suppress
from unittest import mock
import pytest
from aiohttp.base_protocol import BaseProtocol
async def test_loop() -> None:
loop = asyncio.get_event_loop()
asyncio.set_event_loop(None)
pr = BaseProtocol(loop)
assert pr._loop is loop
async def test_pause_wri... | 24.131148 | 63 | 0.688406 | 622 | 4,416 | 4.636656 | 0.101286 | 0.058252 | 0.054092 | 0.081137 | 0.818308 | 0.771498 | 0.727115 | 0.727115 | 0.727115 | 0.711512 | 0 | 0.000867 | 0.216259 | 4,416 | 182 | 64 | 24.263736 | 0.832418 | 0 | 0 | 0.814286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.035714 | 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 |
5324fa73c034a05cd172d09f6d03e2153b7f495e | 35 | py | Python | nptweak/__init__.py | kmedian/nptweak | 222f46b8abb9b00f1ae8065d38d0514193aa8a4b | [
"MIT"
] | null | null | null | nptweak/__init__.py | kmedian/nptweak | 222f46b8abb9b00f1ae8065d38d0514193aa8a4b | [
"MIT"
] | 2 | 2019-12-03T12:37:17.000Z | 2019-12-03T12:37:45.000Z | nptweak/__init__.py | kmedian/nptweak | 222f46b8abb9b00f1ae8065d38d0514193aa8a4b | [
"MIT"
] | null | null | null | from .to_2darray import to_2darray
| 17.5 | 34 | 0.857143 | 6 | 35 | 4.666667 | 0.666667 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 0.114286 | 35 | 1 | 35 | 35 | 0.83871 | 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 |
53683ad065e876599c6cda203cf6ca253e4f6885 | 7,499 | py | Python | traffic_predict/model.py | Wangjw6/project | daae9de42fe7bf7ff29c20246e1164b62b7cef4a | [
"MIT"
] | null | null | null | traffic_predict/model.py | Wangjw6/project | daae9de42fe7bf7ff29c20246e1164b62b7cef4a | [
"MIT"
] | null | null | null | traffic_predict/model.py | Wangjw6/project | daae9de42fe7bf7ff29c20246e1164b62b7cef4a | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
import tensorflow as tf
class CNN:
def __init__(self, save_or_load_path=None, trainable=True, learning_rate = 0.00002,timestep=9,road=189,predstep=1):
self.trainable = trainable
self.learning_rate = learning_rate
self.road = road
self.input_size = timestep *... | 43.346821 | 119 | 0.642619 | 1,132 | 7,499 | 4.090106 | 0.094523 | 0.046652 | 0.041469 | 0.02851 | 0.988985 | 0.988985 | 0.988985 | 0.988985 | 0.988985 | 0.988985 | 0 | 0.064072 | 0.215362 | 7,499 | 173 | 120 | 43.346821 | 0.722808 | 0.094813 | 0 | 0.943548 | 0 | 0 | 0.010189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.169355 | false | 0 | 0.008065 | 0.072581 | 0.346774 | 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 |
729d6a65e6746aea2916773666e9ce787cb8c7de | 10,772 | py | Python | dataconnector.py | iamthinkking/COMP4217_FinalProject | 98cadb013bab52677bffb951b6d173caf4bb22b3 | [
"MIT"
] | null | null | null | dataconnector.py | iamthinkking/COMP4217_FinalProject | 98cadb013bab52677bffb951b6d173caf4bb22b3 | [
"MIT"
] | null | null | null | dataconnector.py | iamthinkking/COMP4217_FinalProject | 98cadb013bab52677bffb951b6d173caf4bb22b3 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import pymysql
class Connection:
SQL_HOST = 'localhost'
SQL_USR = ''
SQL_PWD = ''
SQL_DB = 'HOSPITAL'
# initialize database object
def __init__(self, usr, pwd):
self.USR = usr
self.PWD = pwd
# return an database connection
def __ente... | 30.602273 | 121 | 0.525529 | 1,115 | 10,772 | 4.991928 | 0.109417 | 0.088753 | 0.04779 | 0.068272 | 0.808839 | 0.794466 | 0.781171 | 0.768236 | 0.768236 | 0.768236 | 0 | 0.00015 | 0.383123 | 10,772 | 351 | 122 | 30.689459 | 0.837472 | 0.228463 | 0 | 0.717391 | 0 | 0 | 0.086698 | 0.040628 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119565 | false | 0 | 0.005435 | 0 | 0.326087 | 0.01087 | 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 |
72c7cb9e21a63cc41a2a8dafac7960b8bc5acb97 | 370 | py | Python | launchpad_py/__init__.py | inniyah/launchpad-py | b8dd4815b05d7e75ba5ca09ced64ddc38f515bad | [
"CC-BY-4.0"
] | 1 | 2020-05-07T04:08:13.000Z | 2020-05-07T04:08:13.000Z | launchpad_py/__init__.py | inniyah/launchpad-py | b8dd4815b05d7e75ba5ca09ced64ddc38f515bad | [
"CC-BY-4.0"
] | null | null | null | launchpad_py/__init__.py | inniyah/launchpad-py | b8dd4815b05d7e75ba5ca09ced64ddc38f515bad | [
"CC-BY-4.0"
] | null | null | null | # more specific selections for Python 3 (ASkr, 2/2018)
from launchpad_py.launchpad import Launchpad
from launchpad_py.launchpad import LaunchpadMk2
from launchpad_py.launchpad import LaunchpadPro
from launchpad_py.launchpad import LaunchControlXL
from launchpad_py.launchpad import LaunchKeyMini
from launchpad_py.launch... | 41.111111 | 54 | 0.87027 | 50 | 370 | 6.3 | 0.38 | 0.288889 | 0.333333 | 0.457143 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021021 | 0.1 | 370 | 8 | 55 | 46.25 | 0.924925 | 0.140541 | 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 |
72ce4318d1d0f496564578d4caec5a73368d7bf6 | 68,544 | py | Python | system/indy-node-tests/TestAuthMapSuite.py | Toktar/indy-test-automation | 4d583dda7cbf2a9f451b3a01312a90e55c7bacc8 | [
"Apache-2.0"
] | null | null | null | system/indy-node-tests/TestAuthMapSuite.py | Toktar/indy-test-automation | 4d583dda7cbf2a9f451b3a01312a90e55c7bacc8 | [
"Apache-2.0"
] | null | null | null | system/indy-node-tests/TestAuthMapSuite.py | Toktar/indy-test-automation | 4d583dda7cbf2a9f451b3a01312a90e55c7bacc8 | [
"Apache-2.0"
] | null | null | null | import pytest
import asyncio
from system.utils import *
from random import randrange as rr
import hashlib
import time
from datetime import datetime, timedelta, timezone
from indy import payment
import logging
logger = logging.getLogger(__name__)
@pytest.mark.usefixtures('docker_setup_and_teardown')
class TestAuthMa... | 59.345455 | 126 | 0.521067 | 7,107 | 68,544 | 4.70508 | 0.048966 | 0.080864 | 0.070158 | 0.099046 | 0.903346 | 0.898562 | 0.885822 | 0.876761 | 0.870241 | 0.851132 | 0 | 0.021087 | 0.376649 | 68,544 | 1,154 | 127 | 59.39688 | 0.761533 | 0.044307 | 0 | 0.790291 | 0 | 0 | 0.104281 | 0.006559 | 0.000971 | 0 | 0 | 0.000867 | 0.113592 | 1 | 0 | false | 0 | 0.008738 | 0 | 0.009709 | 0.065049 | 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 |
72cf2ee1f1f114780fd41988e0ddaa2bfd651b27 | 18,351 | py | Python | test/integration/test_reindex.py | jgough/opensearch-curator | e8d7eb4d969eac551db9f99bd021d0c05e28dc35 | [
"Apache-2.0"
] | 8 | 2021-11-10T15:15:16.000Z | 2022-03-10T10:09:50.000Z | test/integration/test_reindex.py | jgough/opensearch-curator | e8d7eb4d969eac551db9f99bd021d0c05e28dc35 | [
"Apache-2.0"
] | 1 | 2021-11-18T11:28:44.000Z | 2021-11-21T09:30:54.000Z | test/integration/test_reindex.py | jgough/opensearch-curator | e8d7eb4d969eac551db9f99bd021d0c05e28dc35 | [
"Apache-2.0"
] | 3 | 2022-01-28T18:40:38.000Z | 2022-03-22T18:40:59.000Z | import opensearchpy
import curator
import os
import json
import string
import random
import tempfile
import click
from click import testing as clicktest
import time
from . import CuratorTestCase
from unittest.case import SkipTest
from . import testvars as testvars
import logging
logger = logging.getLogger(__name__)
... | 37.681725 | 107 | 0.555719 | 1,954 | 18,351 | 5.068577 | 0.098772 | 0.045234 | 0.05937 | 0.053716 | 0.897213 | 0.872476 | 0.85733 | 0.848546 | 0.833704 | 0.833704 | 0 | 0.019331 | 0.32347 | 18,351 | 486 | 108 | 37.759259 | 0.778413 | 0.058307 | 0 | 0.760369 | 0 | 0 | 0.110048 | 0 | 0 | 0 | 0 | 0 | 0.036866 | 1 | 0.032258 | false | 0.002304 | 0.032258 | 0 | 0.06682 | 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 |
72dda3613656327f62f267160ac432bf2f3e78fb | 34,924 | py | Python | game/content/ghplots/lancemates.py | jwvhewitt/gearhead-caramel | dfe1bc5dbf2960b82a97577f4bf687b60040d8bf | [
"Apache-2.0"
] | 74 | 2015-03-09T00:33:09.000Z | 2022-02-25T20:28:27.000Z | game/content/ghplots/lancemates.py | jwvhewitt/gearhead-caramel | dfe1bc5dbf2960b82a97577f4bf687b60040d8bf | [
"Apache-2.0"
] | 108 | 2017-12-30T20:26:12.000Z | 2021-01-16T12:37:00.000Z | game/content/ghplots/lancemates.py | jwvhewitt/gearhead-caramel | dfe1bc5dbf2960b82a97577f4bf687b60040d8bf | [
"Apache-2.0"
] | 61 | 2018-03-03T09:55:31.000Z | 2022-03-18T17:28:33.000Z | import pbge
from game.content.plotutility import LMSkillsSelfIntro
from game.content import backstory
from pbge.plots import Plot
from pbge.dialogue import Offer, ContextTag
from game.ghdialogue import context
import gears
import game.content.gharchitecture
import game.content.ghterrain
import random
from game import m... | 45.005155 | 213 | 0.583295 | 3,931 | 34,924 | 5.048079 | 0.107097 | 0.051401 | 0.043086 | 0.020863 | 0.824934 | 0.815662 | 0.807347 | 0.792582 | 0.777968 | 0.770712 | 0 | 0.004401 | 0.303803 | 34,924 | 775 | 214 | 45.063226 | 0.811755 | 0.050424 | 0 | 0.781403 | 0 | 0.006525 | 0.113389 | 0.006108 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115824 | false | 0 | 0.017945 | 0.016313 | 0.32137 | 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 |
72e3ac4fde0a35b1aa2592f2a98574d5dd8e6f76 | 10,192 | py | Python | nca47/api/controllers/v1/firewall/securityZone.py | WosunOO/nca_xianshu | bbb548cb67b755a57528796d4c5a66ee68df2678 | [
"Apache-2.0"
] | null | null | null | nca47/api/controllers/v1/firewall/securityZone.py | WosunOO/nca_xianshu | bbb548cb67b755a57528796d4c5a66ee68df2678 | [
"Apache-2.0"
] | null | null | null | nca47/api/controllers/v1/firewall/securityZone.py | WosunOO/nca_xianshu | bbb548cb67b755a57528796d4c5a66ee68df2678 | [
"Apache-2.0"
] | null | null | null | from oslo_serialization import jsonutils as json
from nca47.api.controllers.v1 import base
from nca47.common.i18n import _
from nca47.common.i18n import _LI, _LE
from nca47.common.exception import Nca47Exception
from oslo_log import log
from nca47.api.controllers.v1 import tools
from nca47.manager.central import Centra... | 45.097345 | 77 | 0.577414 | 1,111 | 10,192 | 5.190819 | 0.10441 | 0.074909 | 0.112363 | 0.062424 | 0.891625 | 0.862494 | 0.851743 | 0.851743 | 0.829894 | 0.766083 | 0 | 0.012547 | 0.327512 | 10,192 | 225 | 78 | 45.297778 | 0.828859 | 0.022174 | 0 | 0.748815 | 0 | 0 | 0.07008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033175 | false | 0 | 0.061611 | 0 | 0.222749 | 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 |
f412b42dfc85a5a206a8dd5d9f02a0078c055cdd | 60,615 | py | Python | sdk/python/pulumi_gcp/accesscontextmanager/service_perimeter.py | sisisin/pulumi-gcp | af6681d70ea457843409110c1324817fe55f68ad | [
"ECL-2.0",
"Apache-2.0"
] | 121 | 2018-06-18T19:16:42.000Z | 2022-03-31T06:06:48.000Z | sdk/python/pulumi_gcp/accesscontextmanager/service_perimeter.py | sisisin/pulumi-gcp | af6681d70ea457843409110c1324817fe55f68ad | [
"ECL-2.0",
"Apache-2.0"
] | 492 | 2018-06-22T19:41:03.000Z | 2022-03-31T15:33:53.000Z | sdk/python/pulumi_gcp/accesscontextmanager/service_perimeter.py | sisisin/pulumi-gcp | af6681d70ea457843409110c1324817fe55f68ad | [
"ECL-2.0",
"Apache-2.0"
] | 43 | 2018-06-19T01:43:13.000Z | 2022-03-23T22:43:37.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... | 52.480519 | 147 | 0.640502 | 6,120 | 60,615 | 6.207516 | 0.066013 | 0.034746 | 0.029113 | 0.027218 | 0.948381 | 0.937326 | 0.929113 | 0.922664 | 0.918794 | 0.912345 | 0 | 0.001461 | 0.288394 | 60,615 | 1,154 | 148 | 52.525997 | 0.879283 | 0.647727 | 0 | 0.743119 | 1 | 0 | 0.115593 | 0.055118 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16208 | false | 0.003058 | 0.021407 | 0 | 0.281346 | 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 |
f432670cd6f74e0a57b036d2bab7509d31c45355 | 34,716 | py | Python | venv/lib/python3.8/site-packages/arch/tests/univariate/test_recursions.py | YileC928/finm-portfolio-2021 | 3fa1e97423fa731bce0cad3457807e1873120891 | [
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/arch/tests/univariate/test_recursions.py | YileC928/finm-portfolio-2021 | 3fa1e97423fa731bce0cad3457807e1873120891 | [
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/arch/tests/univariate/test_recursions.py | YileC928/finm-portfolio-2021 | 3fa1e97423fa731bce0cad3457807e1873120891 | [
"MIT"
] | null | null | null | import os
import timeit
from typing import List
import numpy as np
from numpy.random import RandomState
from numpy.testing import assert_allclose, assert_almost_equal
import pytest
from scipy.special import gamma
import arch.univariate.recursions_python as recpy
CYTHON_COVERAGE = os.environ.get("ARCH_CYTHON_COVERAGE... | 28.857855 | 97 | 0.514863 | 3,856 | 34,716 | 4.474844 | 0.049793 | 0.073022 | 0.085135 | 0.076673 | 0.815068 | 0.797334 | 0.778673 | 0.759548 | 0.7439 | 0.728253 | 0 | 0.04987 | 0.377348 | 34,716 | 1,202 | 98 | 28.881864 | 0.748381 | 0.000115 | 0 | 0.728094 | 0 | 0.00542 | 0.068799 | 0.015673 | 0 | 0 | 0 | 0 | 0.088528 | 1 | 0.023487 | false | 0 | 0.015357 | 0 | 0.04065 | 0.006323 | 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 |
f4431b68372b44ad4517e0ab87e6c368a124ad83 | 142 | py | Python | backend/server/tables/__init__.py | shiv12095/realtimeviz | ee2bf10b5f9467212f9a9ce8957d80456ebd0259 | [
"MIT"
] | 1 | 2021-03-03T13:54:15.000Z | 2021-03-03T13:54:15.000Z | backend/server/tables/__init__.py | shiv12095/realtimeviz | ee2bf10b5f9467212f9a9ce8957d80456ebd0259 | [
"MIT"
] | null | null | null | backend/server/tables/__init__.py | shiv12095/realtimeviz | ee2bf10b5f9467212f9a9ce8957d80456ebd0259 | [
"MIT"
] | 1 | 2021-03-03T13:59:48.000Z | 2021-03-03T13:59:48.000Z | from .lime_bike_feed import LimeBikeFeed
from .lime_bike_trips import LimeBikeTrips
from .lime_bike_trips_analyze import LimeBikeTripsAnalyze
| 35.5 | 57 | 0.894366 | 19 | 142 | 6.315789 | 0.526316 | 0.2 | 0.3 | 0.283333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084507 | 142 | 3 | 58 | 47.333333 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
be43dfd884e7a14b827d8c59b29470159f680616 | 5,332 | py | Python | deploy/trained_model.py | Samyak005/Multi-Hop-QG | 15cc794a48ac9df058689c410007ea52b0e12a6a | [
"MIT"
] | null | null | null | deploy/trained_model.py | Samyak005/Multi-Hop-QG | 15cc794a48ac9df058689c410007ea52b0e12a6a | [
"MIT"
] | null | null | null | deploy/trained_model.py | Samyak005/Multi-Hop-QG | 15cc794a48ac9df058689c410007ea52b0e12a6a | [
"MIT"
] | null | null | null |
import torch
import logging
# Transformer version 4.9.1 - Newer versions may not work.
from transformers import AutoTokenizer
from trained_gpt_model import get_inference2
def t5_supp_inference(review_text):
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') # CPU may not work, got to check.
... | 33.534591 | 225 | 0.69036 | 659 | 5,332 | 5.31563 | 0.169954 | 0.074222 | 0.038824 | 0.028547 | 0.850699 | 0.842992 | 0.842992 | 0.796175 | 0.796175 | 0.796175 | 0 | 0.007976 | 0.200488 | 5,332 | 158 | 226 | 33.746835 | 0.813277 | 0.128095 | 0 | 0.774194 | 0 | 0 | 0.148132 | 0.071691 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040323 | false | 0 | 0.032258 | 0 | 0.145161 | 0.064516 | 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 |
be763dff688768c2aba41209e3bec63f50ee2a53 | 19,099 | py | Python | boa_test/tests/test_ico_template.py | mixbee/neo-boa | da7366c26c7b8e60afb9ac27439a1da37b0be355 | [
"MIT"
] | 4 | 2018-08-22T03:30:34.000Z | 2019-04-16T10:54:08.000Z | boa_test/tests/test_ico_template.py | mixbee/neo-boa | da7366c26c7b8e60afb9ac27439a1da37b0be355 | [
"MIT"
] | 3 | 2018-09-03T09:19:26.000Z | 2019-01-24T00:06:29.000Z | boa_test/tests/test_ico_template.py | mixbee/neo-boa | da7366c26c7b8e60afb9ac27439a1da37b0be355 | [
"MIT"
] | 12 | 2018-07-19T06:36:44.000Z | 2019-05-13T05:45:58.000Z | from boa_test.tests.boa_test import BoaFixtureTest
from boa.compiler import Compiler
from neo.Core.TX.Transaction import Transaction
from neo.Prompt.Commands.BuildNRun import TestBuild
from neo.EventHub import events
from neo.SmartContract.SmartContractEvent import SmartContractEvent, NotifyEvent
from neo.Settings impo... | 51.899457 | 202 | 0.673857 | 2,327 | 19,099 | 5.386334 | 0.103567 | 0.136429 | 0.076113 | 0.078746 | 0.806925 | 0.785862 | 0.770385 | 0.751795 | 0.748923 | 0.741184 | 0 | 0.041723 | 0.185559 | 19,099 | 367 | 203 | 52.040872 | 0.764063 | 0.084664 | 0 | 0.579167 | 0 | 0 | 0.075498 | 0.017383 | 0 | 0 | 0 | 0 | 0.4875 | 1 | 0.045833 | false | 0 | 0.058333 | 0 | 0.116667 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
be7fc184a7b92d4ec6db9908dc208989d6e4f546 | 23,144 | py | Python | Mining_Projects/getAllProjects_Parallel.py | ai-se/heroes_compsci | 613fd623a6da073b2c62c773ed902acb0c756809 | [
"MIT"
] | null | null | null | Mining_Projects/getAllProjects_Parallel.py | ai-se/heroes_compsci | 613fd623a6da073b2c62c773ed902acb0c756809 | [
"MIT"
] | 12 | 2019-12-17T04:04:19.000Z | 2019-12-26T20:23:02.000Z | Mining_Projects/getAllProjects_Parallel.py | ai-se/heroes_compsci | 613fd623a6da073b2c62c773ed902acb0c756809 | [
"MIT"
] | 1 | 2020-03-12T22:19:48.000Z | 2020-03-12T22:19:48.000Z | """ @Author Jchakra"""
""" This code is to download project information using GitHub API (Following Amrit's Hero paper criteria of how to find good projects) """
from multiprocessing import Process,Lock
import time
import json
import requests
## Downloading all the projects
def func1():
repo_result = []
To... | 29.407878 | 169 | 0.527523 | 2,636 | 23,144 | 4.419196 | 0.055387 | 0.115375 | 0.061808 | 0.018886 | 0.959396 | 0.946347 | 0.946347 | 0.946347 | 0.936389 | 0.936389 | 0 | 0.021969 | 0.347045 | 23,144 | 787 | 170 | 29.407878 | 0.748875 | 0.061614 | 0 | 0.929293 | 0 | 0 | 0.098522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006734 | false | 0 | 0.006734 | 0 | 0.013468 | 0.020202 | 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 |
fe619b4bba8137e17d2356d7038bb205bbb3ddcb | 8,074 | py | Python | src/ralph/discovery/tests/plugins/samples/http_ibm_system_x.py | quamilek/ralph | bf7231ea096924332b874718b33cd1f43f9c783b | [
"Apache-2.0"
] | null | null | null | src/ralph/discovery/tests/plugins/samples/http_ibm_system_x.py | quamilek/ralph | bf7231ea096924332b874718b33cd1f43f9c783b | [
"Apache-2.0"
] | null | null | null | src/ralph/discovery/tests/plugins/samples/http_ibm_system_x.py | quamilek/ralph | bf7231ea096924332b874718b33cd1f43f9c783b | [
"Apache-2.0"
] | null | null | null | macs_response = '''<?xml version="1.0"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wxf="http://schemas.xmlsoap.org/ws/2004/09/transfer"><s:Header><wsa:To>http://schemas.xmlsoap.org... | 621.076923 | 2,572 | 0.792172 | 1,050 | 8,074 | 6.085714 | 0.198095 | 0.016432 | 0.042254 | 0.049296 | 0.746479 | 0.715493 | 0.647261 | 0.602973 | 0.592958 | 0.582316 | 0 | 0.100038 | 0.012014 | 8,074 | 12 | 2,573 | 672.833333 | 0.701015 | 0 | 1 | 0.5 | 0 | 0.5 | 0.983775 | 0.541244 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
feac612781029aac47e6d21c85d8519de53dcb55 | 7,188 | py | Python | tests/test_installation.py | phdye/nimporter | 64eccc74950811e03efdde50649e84ca1fe87ae4 | [
"MIT"
] | null | null | null | tests/test_installation.py | phdye/nimporter | 64eccc74950811e03efdde50649e84ca1fe87ae4 | [
"MIT"
] | null | null | null | tests/test_installation.py | phdye/nimporter | 64eccc74950811e03efdde50649e84ca1fe87ae4 | [
"MIT"
] | null | null | null | """
Test to make sure that libraries built with Nimporter can be installed via Pip.
"""
import sys, os, subprocess, shutil, pkg_resources, json, warnings
from pathlib import Path
import pytest
import nimporter
PYTHON = 'python' if sys.platform == 'win32' else 'python3'
PIP = 'pip' if shutil.which('pip') else 'pip3'
... | 38.854054 | 80 | 0.564969 | 805 | 7,188 | 4.963975 | 0.191304 | 0.038539 | 0.037538 | 0.034535 | 0.832833 | 0.832833 | 0.808809 | 0.792292 | 0.768268 | 0.768268 | 0 | 0.012233 | 0.329021 | 7,188 | 184 | 81 | 39.065217 | 0.816297 | 0.11241 | 0 | 0.801282 | 0 | 0 | 0.1775 | 0 | 0 | 0 | 0 | 0 | 0.211538 | 1 | 0.032051 | false | 0 | 0.153846 | 0 | 0.185897 | 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 |
2284f5a8afa9699354bd56f97faf33c044aeae81 | 160 | py | Python | cnn/donas_utils/dataset/__init__.py | eric8607242/darts | 34c79a0956039f56a6a87bfb7f4b1ae2af615bea | [
"Apache-2.0"
] | null | null | null | cnn/donas_utils/dataset/__init__.py | eric8607242/darts | 34c79a0956039f56a6a87bfb7f4b1ae2af615bea | [
"Apache-2.0"
] | null | null | null | cnn/donas_utils/dataset/__init__.py | eric8607242/darts | 34c79a0956039f56a6a87bfb7f4b1ae2af615bea | [
"Apache-2.0"
] | null | null | null | from .dataset import get_cifar100, get_cifar10, get_imagenet_lmdb, get_imagenet
__all__ = ["get_cifar100", "get_cifar10", "get_imagenet_lmdb", "get_imagenet"]
| 40 | 79 | 0.8 | 22 | 160 | 5.181818 | 0.409091 | 0.385965 | 0.245614 | 0.368421 | 0.824561 | 0.824561 | 0.824561 | 0.824561 | 0.824561 | 0 | 0 | 0.068493 | 0.0875 | 160 | 3 | 80 | 53.333333 | 0.712329 | 0 | 0 | 0 | 0 | 0 | 0.325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 11 |
22a8b0a10c5a619e3d02f83382579627b355c5a9 | 186 | py | Python | .venv/lib/python3.8/site-packages/poetry/core/_vendor/lark/__pyinstaller/__init__.py | RivtLib/replit01 | ce1ae18b446a9c844f40e88a51c71fbc45ab3ad7 | [
"MIT"
] | 1 | 2020-08-07T16:09:57.000Z | 2020-08-07T16:09:57.000Z | .venv/lib/python3.8/site-packages/poetry/core/_vendor/lark/__pyinstaller/__init__.py | RivtLib/replit01 | ce1ae18b446a9c844f40e88a51c71fbc45ab3ad7 | [
"MIT"
] | null | null | null | .venv/lib/python3.8/site-packages/poetry/core/_vendor/lark/__pyinstaller/__init__.py | RivtLib/replit01 | ce1ae18b446a9c844f40e88a51c71fbc45ab3ad7 | [
"MIT"
] | null | null | null | # For usage of lark with PyInstaller. See https://pyinstaller-sample-hook.readthedocs.io/en/latest/index.html
import os
def get_hook_dirs():
return [os.path.dirname(__file__)] | 31 | 110 | 0.747312 | 28 | 186 | 4.75 | 0.892857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134409 | 186 | 6 | 111 | 31 | 0.826087 | 0.575269 | 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 |
22b050a05912835a15d1f775a59389484ca92826 | 142 | py | Python | scripts/update_asp_l1.py | sot/mica | 136a9b0d9521efda5208067b51cf0c8700b4def3 | [
"BSD-3-Clause"
] | null | null | null | scripts/update_asp_l1.py | sot/mica | 136a9b0d9521efda5208067b51cf0c8700b4def3 | [
"BSD-3-Clause"
] | 150 | 2015-01-23T17:09:53.000Z | 2022-01-10T00:50:54.000Z | scripts/update_asp_l1.py | sot/mica | 136a9b0d9521efda5208067b51cf0c8700b4def3 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import mica.archive.asp_l1
mica.archive.asp_l1.main()
| 20.285714 | 63 | 0.760563 | 25 | 142 | 4.24 | 0.8 | 0.207547 | 0.264151 | 0.301887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024194 | 0.126761 | 142 | 6 | 64 | 23.666667 | 0.830645 | 0.577465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
22f3df9c130fc202edc44714de04e929f4e7eab3 | 91,430 | py | Python | test/model/data/all_foreground_valid_data.py | TiankunZhou/dials | bd5c95b73c442cceb1c61b1690fd4562acf4e337 | [
"BSD-3-Clause"
] | 2 | 2021-03-17T11:25:46.000Z | 2021-11-18T04:20:54.000Z | test/model/data/all_foreground_valid_data.py | TiankunZhou/dials | bd5c95b73c442cceb1c61b1690fd4562acf4e337 | [
"BSD-3-Clause"
] | 2 | 2020-07-31T22:37:30.000Z | 2020-07-31T23:08:55.000Z | test/model/data/all_foreground_valid_data.py | TiankunZhou/dials | bd5c95b73c442cceb1c61b1690fd4562acf4e337 | [
"BSD-3-Clause"
] | 1 | 2020-02-04T15:39:06.000Z | 2020-02-04T15:39:06.000Z | from __future__ import absolute_import, division, print_function
data = r"""cdials_array_family_flex_ext
shoebox
p1
(tRp2
(cscitbx_array_family_flex_ext
grid
p3
((I0
t(I8
tI01
tRp4
(I8
tbS'\x02\x01\x02\x08\x00\x03\\\x01\x03m\x01\x03\x04\x06\x03\x15\x06\x00\x02\x01\x02\x03\x02\x01\x02\x11\x02\x11\x02\x9c\x02\x06\x02\x8... | 5,378.235294 | 91,236 | 0.747971 | 22,307 | 91,430 | 3.065092 | 0.006545 | 0.204203 | 0.231407 | 0.232372 | 0.99083 | 0.979202 | 0.973732 | 0.838547 | 0.83005 | 0.735861 | 0 | 0.420099 | 0.000252 | 91,430 | 16 | 91,237 | 5,714.375 | 0.327907 | 0 | 0 | 0 | 0 | 0.066667 | 0.999114 | 0.998513 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.066667 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 16 |
fe1a8e41b9a6dd96ffc12066b0bee8e9c0b3b6b6 | 438 | py | Python | fontslice/__init__.py | Arahabica/font-subset-css | 393b9a452af49c2168c7a9f84983e4170937ea67 | [
"MIT"
] | null | null | null | fontslice/__init__.py | Arahabica/font-subset-css | 393b9a452af49c2168c7a9f84983e4170937ea67 | [
"MIT"
] | null | null | null | fontslice/__init__.py | Arahabica/font-subset-css | 393b9a452af49c2168c7a9f84983e4170937ea67 | [
"MIT"
] | null | null | null | import sys
from .main import (
_chunk_list,
_get_unicode_range_hash,
convert_unicode_range,
get_120_unicode_ranges,
get_unicode_ranges_from_text,
generate_css,
main,
)
__all__ = [
"_chunk_list",
"_get_unicode_range_hash",
"convert_unicode_range",
"get_120_unicode_ranges",
... | 17.52 | 35 | 0.687215 | 54 | 438 | 4.759259 | 0.37037 | 0.155642 | 0.093385 | 0.14786 | 0.817121 | 0.817121 | 0.817121 | 0.817121 | 0.817121 | 0.817121 | 0 | 0.017391 | 0.212329 | 438 | 24 | 36 | 18.25 | 0.727536 | 0 | 0 | 0 | 1 | 0 | 0.294521 | 0.214612 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.095238 | 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 |
a3ac4915a74b531c1dc0b8afb60e2d05592076cd | 61,910 | py | Python | SysPy_ver/funcs/_var_declaration.py | evlog/SysPy | d1ee6e2ca60492d20339c0016a9c24d027170553 | [
"CNRI-Python"
] | 4 | 2017-12-28T14:00:16.000Z | 2021-01-21T08:53:14.000Z | SysPy_ver/funcs/_var_declaration.py | evlog/SysPy | d1ee6e2ca60492d20339c0016a9c24d027170553 | [
"CNRI-Python"
] | 1 | 2018-07-31T16:27:00.000Z | 2018-07-31T16:27:37.000Z | SysPy_ver/funcs/_var_declaration.py | evlog/SysPy | d1ee6e2ca60492d20339c0016a9c24d027170553 | [
"CNRI-Python"
] | 2 | 2015-10-12T09:13:13.000Z | 2020-01-06T12:22:55.000Z | """
*****************************************************************************
*
H E A D E R I N F O R M A T I O N *
*
****... | 85.866852 | 356 | 0.37351 | 6,064 | 61,910 | 3.53628 | 0.033476 | 0.223139 | 0.095691 | 0.08851 | 0.931962 | 0.926273 | 0.917413 | 0.910651 | 0.905055 | 0.901418 | 0 | 0.037814 | 0.471184 | 61,910 | 720 | 357 | 85.986111 | 0.617184 | 0.049992 | 0 | 0.7744 | 0 | 0 | 0.132626 | 0.084013 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0016 | false | 0.0208 | 0.0016 | 0 | 0.0032 | 0.0016 | 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 |
a3f5451025cc5163c68a3eea15dfa30712bf9362 | 17,929 | py | Python | benchmark/my_argparser.py | victor-estrade/SystGradDescent | 822e7094290301ec47a99433381a8d6406798aff | [
"MIT"
] | 2 | 2019-03-20T09:05:02.000Z | 2019-03-20T15:23:44.000Z | benchmark/my_argparser.py | victor-estrade/SystGradDescent | 822e7094290301ec47a99433381a8d6406798aff | [
"MIT"
] | null | null | null | benchmark/my_argparser.py | victor-estrade/SystGradDescent | 822e7094290301ec47a99433381a8d6406798aff | [
"MIT"
] | null | null | null | # coding: utf-8
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from __future__ import unicode_literals
import argparse
def parse_args_tolerance():
parser = argparse.ArgumentParser(description='just for tolerance')
parser.add_argument("--tolerance"... | 46.81201 | 116 | 0.593787 | 2,180 | 17,929 | 4.768349 | 0.077064 | 0.105628 | 0.199519 | 0.039827 | 0.945936 | 0.942953 | 0.942857 | 0.939875 | 0.931217 | 0.931217 | 0 | 0.017338 | 0.269731 | 17,929 | 382 | 117 | 46.934555 | 0.776598 | 0.012048 | 0 | 0.88968 | 0 | 0 | 0.329039 | 0.002938 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02847 | false | 0 | 0.017794 | 0 | 0.074733 | 0.003559 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
a3fc78d36ccfb5728f04880a3739b99e0d64d7a7 | 91,209 | py | Python | angr/procedures/definitions/win32_wsmsvc.py | r4b3rt/angr | c133cfd4f83ffea2a1d9e064241e9459eaabc55f | [
"BSD-2-Clause"
] | null | null | null | angr/procedures/definitions/win32_wsmsvc.py | r4b3rt/angr | c133cfd4f83ffea2a1d9e064241e9459eaabc55f | [
"BSD-2-Clause"
] | null | null | null | angr/procedures/definitions/win32_wsmsvc.py | r4b3rt/angr | c133cfd4f83ffea2a1d9e064241e9459eaabc55f | [
"BSD-2-Clause"
] | null | null | null | # pylint:disable=line-too-long
import logging
from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool
from ...calling... | 1,036.465909 | 6,433 | 0.744082 | 10,350 | 91,209 | 6.486377 | 0.024155 | 0.065898 | 0.081538 | 0.104835 | 0.96933 | 0.965085 | 0.964072 | 0.962195 | 0.961525 | 0.960214 | 0 | 0.01516 | 0.056913 | 91,209 | 87 | 6,434 | 1,048.37931 | 0.765305 | 0.000307 | 0 | 0 | 0 | 0 | 0.250601 | 0.029666 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.021277 | 0.106383 | 0 | 0.106383 | 0.191489 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
4307d8063e06e64e479cf930dd3456b183590f95 | 98 | py | Python | test/regression/features/arithmetic/mult.py | ppelleti/berp | 30925288376a6464695341445688be64ac6b2600 | [
"BSD-3-Clause"
] | 137 | 2015-02-13T21:03:23.000Z | 2021-11-24T03:53:55.000Z | test/regression/features/arithmetic/mult.py | ppelleti/berp | 30925288376a6464695341445688be64ac6b2600 | [
"BSD-3-Clause"
] | 4 | 2015-04-01T13:49:13.000Z | 2019-07-09T19:28:56.000Z | test/regression/features/arithmetic/mult.py | bjpop/berp | 30925288376a6464695341445688be64ac6b2600 | [
"BSD-3-Clause"
] | 8 | 2015-04-25T03:47:52.000Z | 2019-07-27T06:33:56.000Z | print(18 * 1234)
print(18 * 1234 * 2)
print(0 * 1)
print(1 * 0)
print(0.0 * 1.0)
print(1.0 * 0.0)
| 14 | 20 | 0.561224 | 23 | 98 | 2.391304 | 0.26087 | 0.109091 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.320513 | 0.204082 | 98 | 6 | 21 | 16.333333 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
43233962745ef76d4115b7625720cc7b8baedc4d | 178 | py | Python | resource/pypi/cffi-1.9.1/testing/cffi0/snippets/distutils_module/setup.py | hipnusleo/Laserjet | f53e0b740f48f2feb0c0bb285ec6728b313b4ccc | [
"Apache-2.0"
] | null | null | null | resource/pypi/cffi-1.9.1/testing/cffi0/snippets/distutils_module/setup.py | hipnusleo/Laserjet | f53e0b740f48f2feb0c0bb285ec6728b313b4ccc | [
"Apache-2.0"
] | null | null | null | resource/pypi/cffi-1.9.1/testing/cffi0/snippets/distutils_module/setup.py | hipnusleo/Laserjet | f53e0b740f48f2feb0c0bb285ec6728b313b4ccc | [
"Apache-2.0"
] | null | null | null |
from distutils.core import setup
import snip_basic_verify
setup(
py_modules=['snip_basic_verify'],
ext_modules=[snip_basic_verify.ffi.verifier.get_extension()])
| 22.25 | 66 | 0.758427 | 24 | 178 | 5.25 | 0.625 | 0.214286 | 0.357143 | 0.349206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146067 | 178 | 7 | 67 | 25.428571 | 0.828947 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 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 |
4a4e581c499165152bc4c54e7fe90ad3b4939698 | 48,733 | py | Python | src/ralph/deployment/migrations/0005_auto__add_field_archiveddeployment_service__add_field_archiveddeployme.py | vi4m/ralph | 2af767ee23d89be9e6cec0a537350a1ce8840bd1 | [
"Apache-2.0"
] | 1 | 2018-09-01T14:14:08.000Z | 2018-09-01T14:14:08.000Z | src/ralph/deployment/migrations/0005_auto__add_field_archiveddeployment_service__add_field_archiveddeployme.py | srikanth4372/sample | 127b5742ae464d42909a14d71e3c10c241ec3a23 | [
"Apache-2.0"
] | 1 | 2019-08-14T10:03:45.000Z | 2019-08-14T10:03:45.000Z | src/ralph/deployment/migrations/0005_auto__add_field_archiveddeployment_service__add_field_archiveddeployme.py | srikanth4372/sample | 127b5742ae464d42909a14d71e3c10c241ec3a23 | [
"Apache-2.0"
] | 1 | 2019-08-14T09:59:42.000Z | 2019-08-14T09:59:42.000Z | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'ArchivedDeployment.service'
db.add_column('deployment_archiveddeployment', 'service',
... | 94.996101 | 239 | 0.572487 | 4,936 | 48,733 | 5.547812 | 0.066653 | 0.101957 | 0.177914 | 0.254163 | 0.859224 | 0.835561 | 0.799408 | 0.761503 | 0.72546 | 0.626059 | 0 | 0.006246 | 0.175364 | 48,733 | 513 | 240 | 94.996101 | 0.675169 | 0.007736 | 0 | 0.34898 | 0 | 0 | 0.60558 | 0.337973 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004082 | false | 0.002041 | 0.008163 | 0 | 0.018367 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
4a7c8678af28d04fe1e6fb14eef66f905c9017b0 | 164 | py | Python | __init__.py | m3sserschmitt/basic-http | bc09a888b44a11154e2cc9bfaf46fc9fd3a79b82 | [
"MIT"
] | null | null | null | __init__.py | m3sserschmitt/basic-http | bc09a888b44a11154e2cc9bfaf46fc9fd3a79b82 | [
"MIT"
] | null | null | null | __init__.py | m3sserschmitt/basic-http | bc09a888b44a11154e2cc9bfaf46fc9fd3a79b82 | [
"MIT"
] | null | null | null | import basic_http.session
basic_http.session.LIB_VERSION = 'v0.0.4-beta'
basic_http.session.DEFAULT_AGENT = 'basic-http version ' + basic_http.session.LIB_VERSION
| 32.8 | 89 | 0.810976 | 26 | 164 | 4.846154 | 0.461538 | 0.357143 | 0.507937 | 0.301587 | 0.412698 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019868 | 0.079268 | 164 | 4 | 90 | 41 | 0.81457 | 0 | 0 | 0 | 0 | 0 | 0.182927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
4a9ad45bc6d5f8001c81f4145b812d1bf0d096f9 | 100 | py | Python | HPOBenchExperimentUtils/resource_manager/__init__.py | PhMueller/TrajectoryParser | 9c19d37a3ff29a593c9b6d3e7fd3857e8c2d724f | [
"Apache-2.0"
] | null | null | null | HPOBenchExperimentUtils/resource_manager/__init__.py | PhMueller/TrajectoryParser | 9c19d37a3ff29a593c9b6d3e7fd3857e8c2d724f | [
"Apache-2.0"
] | 1 | 2021-09-01T16:35:21.000Z | 2021-11-05T19:53:25.000Z | HPOBenchExperimentUtils/resource_manager/__init__.py | automl/HPOBenchExperimentUtils | 9c19d37a3ff29a593c9b6d3e7fd3857e8c2d724f | [
"Apache-2.0"
] | null | null | null | from HPOBenchExperimentUtils.resource_manager.file_resource_manager import FileBasedResourceManager
| 50 | 99 | 0.94 | 9 | 100 | 10.111111 | 0.777778 | 0.32967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 100 | 1 | 100 | 100 | 0.947917 | 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 |
435b8874fd825cd72ac9feb3e9f96907066c1541 | 141 | py | Python | src/sunstruck/schemas/__init__.py | la-mar/sunstruck-api | 90074a55d3b243f7f0eee6e897a98699d2cebc43 | [
"MIT"
] | 3 | 2021-04-04T07:48:48.000Z | 2022-02-19T17:42:12.000Z | src/sunstruck/schemas/__init__.py | la-mar/sunstruck-api | 90074a55d3b243f7f0eee6e897a98699d2cebc43 | [
"MIT"
] | null | null | null | src/sunstruck/schemas/__init__.py | la-mar/sunstruck-api | 90074a55d3b243f7f0eee6e897a98699d2cebc43 | [
"MIT"
] | null | null | null | # flake8: noqa
from schemas.client_credentials import *
from schemas.message import *
from schemas.token import *
from schemas.user import *
| 23.5 | 40 | 0.794326 | 19 | 141 | 5.842105 | 0.526316 | 0.396396 | 0.459459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.134752 | 141 | 5 | 41 | 28.2 | 0.901639 | 0.085106 | 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 |
600132a2e2c79c041002d7861851e7ef109318b7 | 14,276 | py | Python | tests/test_api_network.py | devicehive/devicehive-plugin-python-template | ad532a57ebf9ae52f12afc98eeb867380707d47d | [
"Apache-2.0"
] | null | null | null | tests/test_api_network.py | devicehive/devicehive-plugin-python-template | ad532a57ebf9ae52f12afc98eeb867380707d47d | [
"Apache-2.0"
] | 1 | 2018-03-07T07:36:44.000Z | 2018-03-07T07:36:44.000Z | tests/test_api_network.py | devicehive/devicehive-plugin-python-template | ad532a57ebf9ae52f12afc98eeb867380707d47d | [
"Apache-2.0"
] | 4 | 2018-03-10T20:59:37.000Z | 2021-10-18T23:25:30.000Z | # Copyright (C) 2018 DataArt
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 44.061728 | 79 | 0.591202 | 1,542 | 14,276 | 5.205577 | 0.079118 | 0.068519 | 0.031394 | 0.033636 | 0.842158 | 0.829201 | 0.820979 | 0.808521 | 0.808023 | 0.799801 | 0 | 0.001628 | 0.268703 | 14,276 | 323 | 80 | 44.198142 | 0.767241 | 0.074951 | 0 | 0.791165 | 0 | 0 | 0.105119 | 0 | 0 | 0 | 0 | 0 | 0.02008 | 1 | 0.104418 | false | 0 | 0.004016 | 0.008032 | 0.156627 | 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 |
60634a727fe7a278b36493fb58ad20aeb22882f6 | 2,151 | py | Python | tests/webapp/test_webapp_actions.py | proofdock/chaos-azure | 85302f8be18153862656c587988eafb5dd37ddf7 | [
"Apache-2.0"
] | 1 | 2021-04-24T20:01:54.000Z | 2021-04-24T20:01:54.000Z | tests/webapp/test_webapp_actions.py | proofdock/chaos-azure | 85302f8be18153862656c587988eafb5dd37ddf7 | [
"Apache-2.0"
] | 23 | 2020-05-22T06:43:14.000Z | 2021-02-25T21:02:28.000Z | tests/webapp/test_webapp_actions.py | proofdock/chaos-azure | 85302f8be18153862656c587988eafb5dd37ddf7 | [
"Apache-2.0"
] | null | null | null | from unittest.mock import patch, MagicMock
from pdchaosazure.webapp.actions import stop, restart, delete
from tests.data import config_provider, secrets_provider, webapp_provider
@patch('pdchaosazure.webapp.actions.fetch_webapps', autospec=True)
@patch('pdchaosazure.webapp.actions.client.init', autospec=True)
def te... | 34.693548 | 87 | 0.755927 | 261 | 2,151 | 5.988506 | 0.164751 | 0.074856 | 0.111964 | 0.115163 | 0.84453 | 0.84453 | 0.84453 | 0.815739 | 0.815739 | 0.815739 | 0 | 0 | 0.132497 | 2,151 | 61 | 88 | 35.262295 | 0.837621 | 0 | 0 | 0.733333 | 0 | 0 | 0.170153 | 0.111576 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.133333 | 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 |
606629e6c71087f04da2a0bec8e5f2d2e0b13de3 | 3,218 | py | Python | tests/test_is_valid_php_version_file_version.py | gerardroche/sublime-phpunit | 73e96ec5e4ac573c5d5247cf87c38e8243da906b | [
"BSD-3-Clause"
] | 85 | 2015-02-18T00:05:54.000Z | 2022-01-01T12:20:22.000Z | tests/test_is_valid_php_version_file_version.py | gerardroche/sublime-phpunit | 73e96ec5e4ac573c5d5247cf87c38e8243da906b | [
"BSD-3-Clause"
] | 98 | 2015-01-07T22:23:48.000Z | 2021-06-03T19:37:50.000Z | tests/test_is_valid_php_version_file_version.py | gerardroche/sublime-phpunit | 73e96ec5e4ac573c5d5247cf87c38e8243da906b | [
"BSD-3-Clause"
] | 21 | 2015-08-12T01:02:17.000Z | 2021-09-12T09:16:39.000Z | from PHPUnitKit.tests import unittest
from PHPUnitKit.plugin import is_valid_php_version_file_version
class TestIsValidPhpVersionFileVersion(unittest.TestCase):
def test_invalid_values(self):
self.assertFalse(is_valid_php_version_file_version(''))
self.assertFalse(is_valid_php_version_file_versi... | 52.754098 | 75 | 0.757613 | 468 | 3,218 | 4.724359 | 0.106838 | 0.129806 | 0.185436 | 0.315242 | 0.850294 | 0.850294 | 0.83763 | 0.83763 | 0.818182 | 0.700136 | 0 | 0.02576 | 0.131448 | 3,218 | 60 | 76 | 53.633333 | 0.765295 | 0 | 0 | 0.08 | 0 | 0 | 0.071473 | 0 | 0 | 0 | 0 | 0 | 0.8 | 1 | 0.14 | false | 0 | 0.04 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
609c675a647587e5e1ba2913f0c1ade0647fff7d | 17,264 | py | Python | src/oci/service_catalog/service_catalog_client_composite_operations.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/service_catalog/service_catalog_client_composite_operations.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/service_catalog/service_catalog_client_composite_operations.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 54.460568 | 245 | 0.703313 | 2,187 | 17,264 | 5.301326 | 0.096936 | 0.079696 | 0.047093 | 0.037692 | 0.876919 | 0.854407 | 0.84837 | 0.837157 | 0.822839 | 0.814991 | 0 | 0.002019 | 0.225266 | 17,264 | 316 | 246 | 54.632911 | 0.864822 | 0.477815 | 0 | 0.791367 | 0 | 0 | 0.026177 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057554 | false | 0 | 0.014388 | 0 | 0.194245 | 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 |
60e8913b47be138bc8536280cabcc4db4221cdf3 | 1,179 | py | Python | challenges/binary_search/test_binary_search.py | asakatida/data-structures-and-algorithms.py | 587d1a66a6c15a3c7d7786275608f065687e1810 | [
"MIT"
] | null | null | null | challenges/binary_search/test_binary_search.py | asakatida/data-structures-and-algorithms.py | 587d1a66a6c15a3c7d7786275608f065687e1810 | [
"MIT"
] | 2 | 2020-09-24T13:13:49.000Z | 2021-06-25T15:15:35.000Z | challenges/binary_search/test_binary_search.py | grandquista/data-structures-and-algorithms.py | 587d1a66a6c15a3c7d7786275608f065687e1810 | [
"MIT"
] | null | null | null | from .binary_search import binary_search
def test_binary_search_empty_array():
assert binary_search([], 0) == -1
def test_binary_search_find_single_array():
assert binary_search([3], 3) == 0
def test_binary_search_not_found_single_array():
assert binary_search([1], 0) == -1
def test_binary_search_no... | 23.58 | 67 | 0.721798 | 189 | 1,179 | 4.089947 | 0.190476 | 0.403622 | 0.201811 | 0.294955 | 0.798189 | 0.639069 | 0.191462 | 0.108668 | 0.108668 | 0.108668 | 0 | 0.052947 | 0.150975 | 1,179 | 49 | 68 | 24.061224 | 0.719281 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039016 | 0 | 0.48 | 1 | 0.48 | true | 0 | 0.04 | 0 | 0.52 | 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 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
60f7e54acc60354d75596811ff04f18911fc24eb | 6,362 | py | Python | tests/integration/insights/v1/call/test_metric.py | pazzy-stack/twilio | d3b9b9f1b17b9de89b2528e8d2ffd33edf9676e0 | [
"MIT"
] | null | null | null | tests/integration/insights/v1/call/test_metric.py | pazzy-stack/twilio | d3b9b9f1b17b9de89b2528e8d2ffd33edf9676e0 | [
"MIT"
] | null | null | null | tests/integration/insights/v1/call/test_metric.py | pazzy-stack/twilio | d3b9b9f1b17b9de89b2528e8d2ffd33edf9676e0 | [
"MIT"
] | null | null | null | # coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from tests import IntegrationTestCase
from tests.holodeck import Request
from twilio.base.exceptions import TwilioException
from twilio.http.response import Response
class MetricTestCase(Integratio... | 40.265823 | 185 | 0.365923 | 389 | 6,362 | 5.812339 | 0.269923 | 0.021672 | 0.05042 | 0.058381 | 0.814684 | 0.791685 | 0.778859 | 0.778859 | 0.778859 | 0.737284 | 0 | 0.076923 | 0.536152 | 6,362 | 157 | 186 | 40.522293 | 0.689258 | 0.017133 | 0 | 0.482759 | 1 | 0 | 0.145916 | 0.080888 | 0 | 0 | 0 | 0 | 0.137931 | 1 | 0.103448 | false | 0 | 0.137931 | 0 | 0.275862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
716fc75d575164c084b19d0f3c008a98785ed3a6 | 20,287 | py | Python | OSAnalysisHelper.py | nassermarafi/SRCSWArchetypes | 105a5e40ef0ba1951108dc52b382ae0c5457057a | [
"MIT"
] | 7 | 2020-04-29T08:44:12.000Z | 2022-03-05T04:00:11.000Z | OSAnalysisHelper.py | nassermarafi/SRCSWArchetypes | 105a5e40ef0ba1951108dc52b382ae0c5457057a | [
"MIT"
] | null | null | null | OSAnalysisHelper.py | nassermarafi/SRCSWArchetypes | 105a5e40ef0ba1951108dc52b382ae0c5457057a | [
"MIT"
] | 4 | 2019-12-20T04:38:11.000Z | 2021-11-21T18:25:34.000Z | from __future__ import absolute_import
__author__ = 'marafi'
def SolutionAlgorithim(OData, Dt, Tol, Steps):
#Insert within the While loop, make sure parameter "ok" is defined
import OpenSeesAPI
OData.AddObject(OpenSeesAPI.TCL.TCLScript('if {$ok != 0} {'))
OData.AddObject(OpenSeesAPI.TCL.TCLScript('put... | 63.199377 | 137 | 0.724257 | 2,353 | 20,287 | 6.222694 | 0.056524 | 0.242863 | 0.433684 | 0.359514 | 0.938328 | 0.928152 | 0.907663 | 0.8757 | 0.856645 | 0.843259 | 0 | 0.014839 | 0.113077 | 20,287 | 321 | 138 | 63.199377 | 0.798922 | 0.087642 | 0 | 0.762846 | 0 | 0.003953 | 0.202727 | 0.008819 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035573 | false | 0 | 0.039526 | 0 | 0.075099 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
71a38554040095f344a4dbd4dbed0540a3d29b06 | 505 | py | Python | terrascript/dns/r.py | hugovk/python-terrascript | 08fe185904a70246822f5cfbdc9e64e9769ec494 | [
"BSD-2-Clause"
] | 4 | 2022-02-07T21:08:14.000Z | 2022-03-03T04:41:28.000Z | terrascript/dns/r.py | hugovk/python-terrascript | 08fe185904a70246822f5cfbdc9e64e9769ec494 | [
"BSD-2-Clause"
] | null | null | null | terrascript/dns/r.py | hugovk/python-terrascript | 08fe185904a70246822f5cfbdc9e64e9769ec494 | [
"BSD-2-Clause"
] | 2 | 2022-02-06T01:49:42.000Z | 2022-02-08T14:15:00.000Z | # terrascript/dns/r.py
import terrascript
class dns_a_record_set(terrascript.Resource):
pass
class dns_aaaa_record_set(terrascript.Resource):
pass
class dns_cname_record(terrascript.Resource):
pass
class dns_mx_record_set(terrascript.Resource):
pass
class dns_ns_record_set(terrascript.Resource... | 14.428571 | 48 | 0.778218 | 68 | 505 | 5.455882 | 0.264706 | 0.172507 | 0.495957 | 0.528302 | 0.824798 | 0.738544 | 0.539084 | 0 | 0 | 0 | 0 | 0 | 0.150495 | 505 | 34 | 49 | 14.852941 | 0.864802 | 0.039604 | 0 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.470588 | 0.058824 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 7 |
e0c1de96552a87c4acd6be415b90d60425c9c9cb | 64,469 | py | Python | nuage_tempest_plugin/tests/api/test_nuage_ports.py | nuagenetworks/nuage-tempest-plugin | ac1bfb0709c7bbaf04017af3050fb3ed1ad1324a | [
"Apache-1.1"
] | 1 | 2021-01-03T01:47:51.000Z | 2021-01-03T01:47:51.000Z | nuage_tempest_plugin/tests/api/test_nuage_ports.py | nuagenetworks/nuage-tempest-plugin | ac1bfb0709c7bbaf04017af3050fb3ed1ad1324a | [
"Apache-1.1"
] | null | null | null | nuage_tempest_plugin/tests/api/test_nuage_ports.py | nuagenetworks/nuage-tempest-plugin | ac1bfb0709c7bbaf04017af3050fb3ed1ad1324a | [
"Apache-1.1"
] | 1 | 2020-10-16T12:04:39.000Z | 2020-10-16T12:04:39.000Z | # Copyright 2017 NOKIA
# All Rights Reserved.
from netaddr import IPNetwork
import testtools
from tempest.common import waiters
from tempest.lib import exceptions
from tempest.scenario import manager
from tempest.test import decorators
from nuage_tempest_plugin.lib.test.nuage_test import NuageAdminNetworksTest
from ... | 41.220588 | 79 | 0.560114 | 7,069 | 64,469 | 4.845664 | 0.041732 | 0.050797 | 0.012845 | 0.025924 | 0.92941 | 0.921527 | 0.917148 | 0.912886 | 0.912273 | 0.901004 | 0 | 0.024036 | 0.33658 | 64,469 | 1,563 | 80 | 41.246961 | 0.776853 | 0.028867 | 0 | 0.805535 | 0 | 0 | 0.13242 | 0.001152 | 0 | 0 | 0 | 0 | 0.115805 | 1 | 0.022578 | false | 0.001457 | 0.008012 | 0 | 0.032775 | 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 |
e0f8ef5b2d2b11ceb48d819c7022ba608e70f8fd | 17,241 | py | Python | komodo2_rl/src/environments/Spawner.py | osheraz/komodo | d53759100ced7439dd501620f955f347087e4f63 | [
"MIT"
] | 5 | 2020-08-11T08:47:25.000Z | 2022-02-15T06:19:18.000Z | komodo2_rl/src/environments/Spawner.py | osheraz/komodo | d53759100ced7439dd501620f955f347087e4f63 | [
"MIT"
] | null | null | null | komodo2_rl/src/environments/Spawner.py | osheraz/komodo | d53759100ced7439dd501620f955f347087e4f63 | [
"MIT"
] | 1 | 2021-05-06T14:25:17.000Z | 2021-05-06T14:25:17.000Z | # !/usr/bin/env python
import rospy
import numpy as np
from gazebo_msgs.srv import SpawnModel, SpawnModelRequest, SpawnModelResponse
from copy import deepcopy
from tf.transformations import quaternion_from_euler
sdf_cube = """<?xml version="1.0" ?>
<sdf version="1.4">
<model name="MODELNAME">
<static>0</static... | 33.283784 | 108 | 0.463198 | 1,881 | 17,241 | 4.112706 | 0.110579 | 0.023268 | 0.022492 | 0.017063 | 0.837901 | 0.826784 | 0.820967 | 0.809204 | 0.798345 | 0.780765 | 0 | 0.062115 | 0.407053 | 17,241 | 517 | 109 | 33.348162 | 0.69461 | 0.046227 | 0 | 0.844538 | 0 | 0.002101 | 0.839334 | 0.224957 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008403 | false | 0 | 0.010504 | 0 | 0.027311 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
1cdc98744b311e2367992861b764dff14f24294c | 201 | py | Python | agatecharts/charts/__init__.py | onyxfish/fever | 8aef0cd4adff7fdde1f5950ffb1d01db9137e3b7 | [
"MIT"
] | 4 | 2015-09-05T04:47:27.000Z | 2015-09-16T15:14:43.000Z | agatecharts/charts/__init__.py | onyxfish/fever | 8aef0cd4adff7fdde1f5950ffb1d01db9137e3b7 | [
"MIT"
] | 18 | 2015-09-05T01:17:30.000Z | 2015-09-23T13:08:27.000Z | agatecharts/charts/__init__.py | onyxfish/way | 8aef0cd4adff7fdde1f5950ffb1d01db9137e3b7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from agatecharts.charts.bars import Bars
from agatecharts.charts.columns import Columns
from agatecharts.charts.lines import Lines
from agatecharts.charts.scatter import Scatter
| 28.714286 | 46 | 0.840796 | 28 | 201 | 6.035714 | 0.428571 | 0.35503 | 0.497041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094527 | 201 | 6 | 47 | 33.5 | 0.928571 | 0.099502 | 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 |
1ceb3eafc161d9fd9d9f5411f96898dcc0d87036 | 8,111 | py | Python | src/compas_rhino/objects/_select.py | jf---/compas | cd878ece933013b8ac34e9d42cf6d5c62a5396ee | [
"MIT"
] | 2 | 2021-03-17T18:14:22.000Z | 2021-09-19T13:50:02.000Z | src/compas_rhino/objects/_select.py | jf---/compas | cd878ece933013b8ac34e9d42cf6d5c62a5396ee | [
"MIT"
] | null | null | null | src/compas_rhino/objects/_select.py | jf---/compas | cd878ece933013b8ac34e9d42cf6d5c62a5396ee | [
"MIT"
] | null | null | null | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
import ast
import rhinoscriptsyntax as rs
__all__ = [
'mesh_select_vertex',
'mesh_select_vertices',
'mesh_select_face',
'mesh_select_faces',
'mesh_select_edge',
'mesh_select_edges',
... | 27.494915 | 94 | 0.53298 | 915 | 8,111 | 4.637158 | 0.08306 | 0.037709 | 0.046194 | 0.058921 | 0.848456 | 0.827009 | 0.815225 | 0.815225 | 0.795428 | 0.795428 | 0 | 0.001826 | 0.324867 | 8,111 | 294 | 95 | 27.588435 | 0.77301 | 0.216619 | 0 | 0.793548 | 0 | 0 | 0.072015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.006452 | 0.032258 | 0 | 0.193548 | 0.006452 | 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 |
1c35f69ad59be07090db7f3539f86ff7d6d0b4e8 | 4,203 | py | Python | server/forestgame/game/test_world.py | Nick-Pearson/forestgame | 8a37225adbe6da9df7851eba34ad06806da0ce48 | [
"0BSD"
] | null | null | null | server/forestgame/game/test_world.py | Nick-Pearson/forestgame | 8a37225adbe6da9df7851eba34ad06806da0ce48 | [
"0BSD"
] | 5 | 2021-03-10T14:18:45.000Z | 2022-03-12T00:28:29.000Z | server/forestgame/game/test_world.py | Nick-Pearson/forestgame | 8a37225adbe6da9df7851eba34ad06806da0ce48 | [
"0BSD"
] | null | null | null | import unittest
from forestgame.game.world import World
class WorldTest(unittest.TestCase):
def test_world_inits_to_empty_data(self):
world = World(None, "1", "0", 0, 0, [], [])
self.assertEqual(0, world.get_size_x())
self.assertEqual(0, world.get_size_y())
self.assertEqual([], world.get_tile_data(... | 26.601266 | 66 | 0.610278 | 667 | 4,203 | 3.53973 | 0.068966 | 0.069462 | 0.087675 | 0.096569 | 0.883947 | 0.883947 | 0.849216 | 0.84244 | 0.834816 | 0.805167 | 0 | 0.06105 | 0.220557 | 4,203 | 157 | 67 | 26.770701 | 0.659646 | 0.004996 | 0 | 0.725806 | 0 | 0 | 0.005263 | 0 | 0 | 0 | 0 | 0 | 0.258065 | 1 | 0.08871 | false | 0 | 0.016129 | 0 | 0.112903 | 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 |
1c43093fa85de4f6e1de23a0ecc3b43530f42260 | 126 | py | Python | sourcecode/GAN/FID/__init__.py | toufeeqahamedns/GeneratingHumanFaces | 93048bf5f6ae99424f918b0d0fea46d21abee0cb | [
"MIT"
] | null | null | null | sourcecode/GAN/FID/__init__.py | toufeeqahamedns/GeneratingHumanFaces | 93048bf5f6ae99424f918b0d0fea46d21abee0cb | [
"MIT"
] | null | null | null | sourcecode/GAN/FID/__init__.py | toufeeqahamedns/GeneratingHumanFaces | 93048bf5f6ae99424f918b0d0fea46d21abee0cb | [
"MIT"
] | null | null | null | """ Package has implementation for the FID score calculation
"""
from GAN.FID import fid_score
from GAN.FID import inception
| 21 | 60 | 0.785714 | 19 | 126 | 5.157895 | 0.631579 | 0.163265 | 0.204082 | 0.326531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150794 | 126 | 5 | 61 | 25.2 | 0.915888 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
1c71ba0a22523d640266f7845ef799a8f73cbe39 | 243 | py | Python | pawpyseed/compiler.py | akashkumarsingh612/pawpyseed | 6f5aa0b8ca8c28a0221e5256afeb939c3344560b | [
"BSD-3-Clause"
] | null | null | null | pawpyseed/compiler.py | akashkumarsingh612/pawpyseed | 6f5aa0b8ca8c28a0221e5256afeb939c3344560b | [
"BSD-3-Clause"
] | null | null | null | pawpyseed/compiler.py | akashkumarsingh612/pawpyseed | 6f5aa0b8ca8c28a0221e5256afeb939c3344560b | [
"BSD-3-Clause"
] | null | null | null | import os, subprocess
def compile_core(comp, scilib):
"""
ATTENTION, NOT FINISHED
"""
subprocess.call(("make pawpy_%s"%comp).split())
def compile_core(comp, scilib):
"""
ATTENTION, NOT FINISHED
"""
subprocess.call("make hfc".split()) | 18.692308 | 48 | 0.691358 | 31 | 243 | 5.322581 | 0.548387 | 0.121212 | 0.169697 | 0.218182 | 0.751515 | 0.751515 | 0.751515 | 0.751515 | 0.751515 | 0.751515 | 0 | 0 | 0.131687 | 243 | 13 | 49 | 18.692308 | 0.781991 | 0.193416 | 0 | 0.4 | 0 | 0 | 0.117978 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 8 |
1c7b1135efb3bd7f94a1f1a7d47294ebfd74cbde | 10,416 | py | Python | tests/test_nanoevents_vector.py | danbarto/coffea | 2b28e28f602f8b81a1449ee85578187a7f52b602 | [
"BSD-3-Clause"
] | null | null | null | tests/test_nanoevents_vector.py | danbarto/coffea | 2b28e28f602f8b81a1449ee85578187a7f52b602 | [
"BSD-3-Clause"
] | null | null | null | tests/test_nanoevents_vector.py | danbarto/coffea | 2b28e28f602f8b81a1449ee85578187a7f52b602 | [
"BSD-3-Clause"
] | null | null | null | import awkward as ak
from coffea.nanoevents.methods import vector
import pytest
ATOL = 1e-8
def record_arrays_equal(a, b):
return (ak.fields(a) == ak.fields(b)) and all(ak.all(a[f] == b[f]) for f in ak.fields(a))
def test_two_vector():
a = ak.zip(
{
"x": [[1, 2], [], [3], [4]],
... | 28.075472 | 93 | 0.368856 | 1,345 | 10,416 | 2.788104 | 0.101115 | 0.042667 | 0.131467 | 0.171733 | 0.880267 | 0.797333 | 0.78 | 0.753867 | 0.740533 | 0.716 | 0 | 0.141142 | 0.352439 | 10,416 | 370 | 94 | 28.151351 | 0.414826 | 0 | 0 | 0.55287 | 0 | 0 | 0.027938 | 0.004224 | 0 | 0 | 0 | 0 | 0.172205 | 1 | 0.024169 | false | 0 | 0.009063 | 0.003021 | 0.036254 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
c70bc413822aaad70486fa31ce67b5a7d9e44d76 | 49,568 | py | Python | cave/com.raytheon.viz.gfe/python/autotest/VTEC_GHG_FFA_TestScript.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | null | null | null | cave/com.raytheon.viz.gfe/python/autotest/VTEC_GHG_FFA_TestScript.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | null | null | null | cave/com.raytheon.viz.gfe/python/autotest/VTEC_GHG_FFA_TestScript.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | 1 | 2021-10-30T00:03:05.000Z | 2021-10-30T00:03:05.000Z | ##
# This software was developed and / or modified by Raytheon Company,
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
#
# U.S. EXPORT CONTROLLED TECHNICAL DATA
# This software product contains export-restricted data whose
# export/transfer/disclosure is restricted by U.S. law. Dissemination
# to ... | 47.342884 | 261 | 0.588162 | 5,218 | 49,568 | 5.562476 | 0.08394 | 0.037554 | 0.043859 | 0.012127 | 0.891301 | 0.885065 | 0.877864 | 0.861637 | 0.824117 | 0.741671 | 0 | 0.105066 | 0.255366 | 49,568 | 1,046 | 262 | 47.388145 | 0.681306 | 0.028829 | 0 | 0.764458 | 0 | 0.023134 | 0.699565 | 0.159232 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001052 | false | 0 | 0.001052 | 0 | 0.003155 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
c71c00b730b4e3cf508cdefb7968765436ad7ce3 | 68,625 | py | Python | benchmarks/SimResults/combinations_spec_mylocality/oldstuff/cmp_soplexmcfcalculixgcc/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | benchmarks/SimResults/combinations_spec_mylocality/oldstuff/cmp_soplexmcfcalculixgcc/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | benchmarks/SimResults/combinations_spec_mylocality/oldstuff/cmp_soplexmcfcalculixgcc/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | power = {'BUSES': {'Area': 1.33155,
'Bus/Area': 1.33155,
'Bus/Gate Leakage': 0.00662954,
'Bus/Peak Dynamic': 0.0,
'Bus/Runtime Dynamic': 0.0,
'Bus/Subthreshold Leakage': 0.0691322,
'Bus/Subthreshold Leakage with power gating': 0.0259246,
'Gate... | 75.082057 | 124 | 0.682157 | 8,082 | 68,625 | 5.786315 | 0.067681 | 0.123511 | 0.112905 | 0.093403 | 0.939185 | 0.931316 | 0.91793 | 0.885833 | 0.862611 | 0.842019 | 0 | 0.132209 | 0.224277 | 68,625 | 914 | 125 | 75.082057 | 0.746271 | 0 | 0 | 0.642232 | 0 | 0 | 0.657258 | 0.048087 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c7226ff1219f925df17003fe42d233729469035d | 4,187 | py | Python | tests/test_models/test_backbones/test_sr_backbones/test_edvr_net.py | wangruohui/mmediting | 6577d307caf9edfb34c6e46547994e6314fffc37 | [
"Apache-2.0"
] | 45 | 2022-03-05T06:54:34.000Z | 2022-03-30T02:15:42.000Z | tests/test_models/test_backbones/test_sr_backbones/test_edvr_net.py | wangruohui/mmediting | 6577d307caf9edfb34c6e46547994e6314fffc37 | [
"Apache-2.0"
] | 1 | 2022-03-25T14:04:39.000Z | 2022-03-31T04:48:38.000Z | tests/test_models/test_backbones/test_sr_backbones/test_edvr_net.py | wangruohui/mmediting | 6577d307caf9edfb34c6e46547994e6314fffc37 | [
"Apache-2.0"
] | 1 | 2022-03-10T01:00:24.000Z | 2022-03-10T01:00:24.000Z | # Copyright (c) OpenMMLab. All rights reserved.
import pytest
import torch
from mmedit.models.backbones.sr_backbones.edvr_net import (EDVRNet,
PCDAlignment,
TSAFusion)
def test_pcd_alignment():
"... | 28.482993 | 76 | 0.578696 | 534 | 4,187 | 4.335206 | 0.162921 | 0.062203 | 0.058747 | 0.062203 | 0.834125 | 0.834125 | 0.792225 | 0.792225 | 0.792225 | 0.770626 | 0 | 0.044133 | 0.318128 | 4,187 | 146 | 77 | 28.678082 | 0.766725 | 0.081443 | 0 | 0.762376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118812 | 1 | 0.029703 | false | 0 | 0.029703 | 0 | 0.059406 | 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 |
c7235d9e02846d039085054a4375d4bc687a9231 | 12,229 | py | Python | enjoliver-api/tests/test_generate_groups.py | netturpin/enjoliver | 9700470939da40ff84304af6e8c7210a5fd693a4 | [
"MIT"
] | 11 | 2017-11-06T08:42:55.000Z | 2021-01-08T11:01:02.000Z | enjoliver-api/tests/test_generate_groups.py | netturpin/enjoliver | 9700470939da40ff84304af6e8c7210a5fd693a4 | [
"MIT"
] | 7 | 2017-12-28T12:05:50.000Z | 2021-04-02T15:04:46.000Z | enjoliver-api/tests/test_generate_groups.py | netturpin/enjoliver | 9700470939da40ff84304af6e8c7210a5fd693a4 | [
"MIT"
] | 4 | 2017-11-08T10:03:31.000Z | 2018-06-03T17:59:43.000Z | import os
from shutil import rmtree
from tempfile import mkdtemp
from unittest import TestCase
from enjoliver import generator
class GenerateGroupTestCase(TestCase):
api_uri = None
test_matchbox_path = None
test_resources_path = None
tests_path = None
@classmethod
def setUpClass(cls):
... | 35.446377 | 93 | 0.568485 | 1,435 | 12,229 | 4.618118 | 0.08223 | 0.054323 | 0.065188 | 0.057341 | 0.846084 | 0.814848 | 0.799608 | 0.787536 | 0.768975 | 0.75796 | 0 | 0.043057 | 0.282116 | 12,229 | 344 | 94 | 35.549419 | 0.711812 | 0 | 0 | 0.735974 | 1 | 0 | 0.188568 | 0 | 0 | 0 | 0 | 0 | 0.115512 | 1 | 0.092409 | false | 0 | 0.016502 | 0 | 0.138614 | 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 |
c7551a216f55773fcf2668fcef4ad367660f3169 | 21,599 | py | Python | aispace/layers/callbacks/qa_evaluators.py | SmileGoat/AiSpace | 35fc120667e4263c99b300815e0bf018f5064a40 | [
"Apache-2.0"
] | 32 | 2020-01-16T07:59:03.000Z | 2022-03-31T09:24:00.000Z | aispace/layers/callbacks/qa_evaluators.py | SmileGoat/AiSpace | 35fc120667e4263c99b300815e0bf018f5064a40 | [
"Apache-2.0"
] | 9 | 2020-06-05T03:27:06.000Z | 2022-03-12T01:00:17.000Z | aispace/layers/callbacks/qa_evaluators.py | SmileGoat/AiSpace | 35fc120667e4263c99b300815e0bf018f5064a40 | [
"Apache-2.0"
] | 3 | 2020-06-09T02:22:50.000Z | 2021-07-19T06:07:07.000Z | # -*- coding: utf-8 -*-
# @Time : 2020-07-30 15:06
# @Author : yingyuankai
# @Email : yingyuankai@aliyun.com
# @File : qa_evaluators.py
import os
import logging
import numpy as np
import tensorflow as tf
import json
from pprint import pprint
from collections import defaultdict
from aispace.utils.eval_utils ... | 44.997917 | 146 | 0.570582 | 2,567 | 21,599 | 4.40748 | 0.078691 | 0.028284 | 0.024748 | 0.018561 | 0.909758 | 0.901008 | 0.897207 | 0.884656 | 0.884656 | 0.884656 | 0 | 0.012167 | 0.32645 | 21,599 | 479 | 147 | 45.091858 | 0.765535 | 0.033752 | 0 | 0.821705 | 0 | 0.002584 | 0.13186 | 0.03407 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020672 | false | 0 | 0.028424 | 0 | 0.059432 | 0.02584 | 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 |
c780e591cbad3129663e73ce7d7f50fa3fb44f8f | 3,675 | py | Python | cms/migrations/0006_auto_20170122_1545.py | josemlp91/django-landingcms | 9d9270204369e9663ff15eb0bd4c4093b3727c6c | [
"Apache-2.0"
] | null | null | null | cms/migrations/0006_auto_20170122_1545.py | josemlp91/django-landingcms | 9d9270204369e9663ff15eb0bd4c4093b3727c6c | [
"Apache-2.0"
] | null | null | null | cms/migrations/0006_auto_20170122_1545.py | josemlp91/django-landingcms | 9d9270204369e9663ff15eb0bd4c4093b3727c6c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-22 15:45
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('content', '0002_auto_20170122_1509'),
('cms', '0005... | 47.115385 | 164 | 0.653605 | 395 | 3,675 | 5.901266 | 0.149367 | 0.048048 | 0.078078 | 0.122694 | 0.88417 | 0.88417 | 0.88417 | 0.835693 | 0.835693 | 0.835693 | 0 | 0.025453 | 0.219592 | 3,675 | 77 | 165 | 47.727273 | 0.787308 | 0.018503 | 0 | 0.514286 | 1 | 0 | 0.198668 | 0.012764 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.042857 | 0 | 0.085714 | 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 |
c7a995a9727073409d096c9586ccf8c67b8e8dc3 | 7,320 | py | Python | sketchduino/template.py | rodrigopmatias/sketchduino | 567023d69cd21bf1f573d2a26fc855183abdef7e | [
"Apache-2.0"
] | null | null | null | sketchduino/template.py | rodrigopmatias/sketchduino | 567023d69cd21bf1f573d2a26fc855183abdef7e | [
"Apache-2.0"
] | 3 | 2015-01-09T20:31:22.000Z | 2015-01-09T20:31:22.000Z | sketchduino/template.py | rodrigopmatias/sketchduino | 567023d69cd21bf1f573d2a26fc855183abdef7e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Copyright 2012 Rodrigo Pinheiro Matias <rodrigopmatias@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless r... | 27.518797 | 138 | 0.630464 | 1,187 | 7,320 | 3.815501 | 0.187026 | 0.03864 | 0.038861 | 0.053433 | 0.765732 | 0.751601 | 0.748068 | 0.722234 | 0.704571 | 0.692427 | 0 | 0.077551 | 0.129781 | 7,320 | 265 | 139 | 27.622642 | 0.633438 | 0.083607 | 0 | 0.704082 | 0 | 0.183673 | 0.973433 | 0.278358 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.005102 | 0.010204 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c7b0f4e12943a98dbd413a45f48a80cdcaf7bcf6 | 6,517 | py | Python | testData/devSeedData.py | bgporter/wastebook | 79885a8d503452e1fbeb8ff445cedd2daafff2a0 | [
"MIT"
] | null | null | null | testData/devSeedData.py | bgporter/wastebook | 79885a8d503452e1fbeb8ff445cedd2daafff2a0 | [
"MIT"
] | null | null | null | testData/devSeedData.py | bgporter/wastebook | 79885a8d503452e1fbeb8ff445cedd2daafff2a0 | [
"MIT"
] | null | null | null | '''
fake posts to bootstrap a development database. Put any interesting cases
useful for development in here.
'''
from datetime import datetime
POST_DATA_1 = [
{
"created" : datetime(2015, 10, 1),
"published": datetime(2015, 10, 1),
"edited": datetime(2015, 10, 1),
"rende... | 29.224215 | 77 | 0.399724 | 567 | 6,517 | 4.587302 | 0.107584 | 0.207612 | 0.134564 | 0.098039 | 0.839677 | 0.839677 | 0.838139 | 0.838139 | 0.838139 | 0.838139 | 0 | 0.081816 | 0.418598 | 6,517 | 223 | 78 | 29.224215 | 0.604645 | 0.016265 | 0 | 0.706977 | 0 | 0 | 0.281069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.004651 | 0 | 0.004651 | 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 |
c7b88fe5b2537ef40175e1a577b998fdb2d3a5c9 | 1,233 | py | Python | SummaryExternalClient.py | Hackillinois2k18/Main-Repo | e998cc3283e0469b98a842220a30a72c5b105dad | [
"MIT"
] | 5 | 2020-03-10T03:23:18.000Z | 2021-11-12T17:06:51.000Z | SummaryExternalClient.py | Hackillinois2k18/FyveBot | e998cc3283e0469b98a842220a30a72c5b105dad | [
"MIT"
] | 3 | 2018-02-24T05:25:28.000Z | 2018-02-24T05:43:49.000Z | SummaryExternalClient.py | Hackillinois2k18/Main-Repo | e998cc3283e0469b98a842220a30a72c5b105dad | [
"MIT"
] | 3 | 2019-01-20T14:50:11.000Z | 2021-11-12T17:06:55.000Z | import requests
import credentials
class SummaryExternalClient:
def pullSummaryForUrl(self, artUrl, title):
url = "https://api.aylien.com/api/v1/summarize"
headers = {"X-AYLIEN-TextAPI-Application-Key": credentials.AYLIEN_APP_KEY,
"X-AYLIEN-TextAPI-Application-ID" : credentials... | 35.228571 | 82 | 0.586375 | 122 | 1,233 | 5.844262 | 0.295082 | 0.039271 | 0.078541 | 0.140252 | 0.813464 | 0.813464 | 0.813464 | 0.813464 | 0.813464 | 0.813464 | 0 | 0.004608 | 0.296026 | 1,233 | 34 | 83 | 36.264706 | 0.81682 | 0 | 0 | 0.758621 | 0 | 0 | 0.219968 | 0.102273 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.068966 | 0 | 0.241379 | 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 |
c7cb2a8553964cb9e86d2c3de96decefdde5eb6c | 89 | py | Python | tf2stats/__init__.py | TheAntecedent/Quintessence | f32dc1b11ded212121ebc0f925d15c845cb6ea4b | [
"MIT"
] | 1 | 2019-10-08T04:38:08.000Z | 2019-10-08T04:38:08.000Z | tf2stats/__init__.py | TheAntecedent/Quintessence | f32dc1b11ded212121ebc0f925d15c845cb6ea4b | [
"MIT"
] | 1 | 2021-04-30T20:51:05.000Z | 2021-04-30T20:51:05.000Z | tf2stats/__init__.py | TheAntecedent/Quintessence | f32dc1b11ded212121ebc0f925d15c845cb6ea4b | [
"MIT"
] | null | null | null | from .aggregated_stats import *
from .game_stats import *
from .stat_definitions import * | 29.666667 | 31 | 0.808989 | 12 | 89 | 5.75 | 0.583333 | 0.318841 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123596 | 89 | 3 | 32 | 29.666667 | 0.884615 | 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 |
c7d37af76275d31df153580818ea0db96b86762e | 1,210 | py | Python | supermario/supermario 1117/start_state.py | Kimmiryeong/2DGP_GameProject | ad3fb197aab27227fc92fd404b2c310f8d0827ca | [
"MIT"
] | null | null | null | supermario/supermario 1117/start_state.py | Kimmiryeong/2DGP_GameProject | ad3fb197aab27227fc92fd404b2c310f8d0827ca | [
"MIT"
] | null | null | null | supermario/supermario 1117/start_state.py | Kimmiryeong/2DGP_GameProject | ad3fb197aab27227fc92fd404b2c310f8d0827ca | [
"MIT"
] | null | null | null | import game_framework
from pico2d import *
import title_state
name = "StartState"
image = None
logo_time = 0.0
def enter():
global image
image = load_image('kpu_credit.png')
def exit():
global image
del(image)
def update():
global logo_time
if (logo_time > 1.0):
logo_time = 0.8
... | 11.747573 | 48 | 0.634711 | 169 | 1,210 | 4.35503 | 0.254438 | 0.108696 | 0.07337 | 0.0625 | 0.978261 | 0.978261 | 0.978261 | 0.978261 | 0.978261 | 0.978261 | 0 | 0.042506 | 0.261157 | 1,210 | 102 | 49 | 11.862745 | 0.780761 | 0 | 0 | 0.947368 | 0 | 0 | 0.039801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.105263 | 0.105263 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 9 |
c7d524f7dbf8736dbbb40f3bb15a61c60aba8191 | 22,620 | py | Python | egs/librispeech/ASR/transducer/test_rnn.py | rosrad/icefall | 6f282731286a6855658c6882c3c938437448e05e | [
"Apache-2.0"
] | null | null | null | egs/librispeech/ASR/transducer/test_rnn.py | rosrad/icefall | 6f282731286a6855658c6882c3c938437448e05e | [
"Apache-2.0"
] | null | null | null | egs/librispeech/ASR/transducer/test_rnn.py | rosrad/icefall | 6f282731286a6855658c6882c3c938437448e05e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Copyright 2021 Xiaomi Corp. (authors: Fangjun Kuang)
#
# See ../../../../LICENSE for clarification regarding multiple authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy... | 29.530026 | 79 | 0.642706 | 3,254 | 22,620 | 4.201291 | 0.062385 | 0.060712 | 0.058152 | 0.046814 | 0.895399 | 0.878356 | 0.837539 | 0.81384 | 0.79131 | 0.773243 | 0 | 0.023413 | 0.22206 | 22,620 | 765 | 80 | 29.568627 | 0.753481 | 0.035455 | 0 | 0.740678 | 0 | 0 | 0.010369 | 0.003303 | 0 | 0 | 0 | 0 | 0.066102 | 1 | 0.042373 | false | 0 | 0.005085 | 0 | 0.049153 | 0.001695 | 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 |
1bf02d45108f641ace7558443cc9e030c46ebd2f | 65 | py | Python | python/UdemyCourse/2022_Python_Bootcamp/basics/errors_exception_handling/__init__.py | pradyotprksh/development_learning | b6c5494196842f3c273965063815ad222a18b4da | [
"MIT"
] | 9 | 2021-09-03T06:20:48.000Z | 2022-03-19T12:43:30.000Z | python/UdemyCourse/2022_Python_Bootcamp/basics/errors_exception_handling/__init__.py | pradyotprksh/development_learning | b6c5494196842f3c273965063815ad222a18b4da | [
"MIT"
] | null | null | null | python/UdemyCourse/2022_Python_Bootcamp/basics/errors_exception_handling/__init__.py | pradyotprksh/development_learning | b6c5494196842f3c273965063815ad222a18b4da | [
"MIT"
] | 6 | 2021-08-16T01:13:36.000Z | 2022-03-19T12:44:10.000Z | from .errors_exception_handling import errors_exception_handling
| 32.5 | 64 | 0.923077 | 8 | 65 | 7 | 0.625 | 0.535714 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 65 | 1 | 65 | 65 | 0.918033 | 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 |
4037b4c2546a2c9d2335471a4c5869528e8d4f28 | 2,399 | py | Python | apex/contrib/conv_bias_relu/conv_bias_relu.py | XL-Kong/Painter_GAN | 23cfb57638497fdd1f2d8c09728b439b0e83efde | [
"BSD-3-Clause"
] | null | null | null | apex/contrib/conv_bias_relu/conv_bias_relu.py | XL-Kong/Painter_GAN | 23cfb57638497fdd1f2d8c09728b439b0e83efde | [
"BSD-3-Clause"
] | null | null | null | apex/contrib/conv_bias_relu/conv_bias_relu.py | XL-Kong/Painter_GAN | 23cfb57638497fdd1f2d8c09728b439b0e83efde | [
"BSD-3-Clause"
] | null | null | null | import torch
import pdb
from torch.autograd import gradcheck
import fused_conv_bias_relu
class ConvBiasReLU_(torch.autograd.Function):
@staticmethod
@torch.cuda.amp.custom_fwd(cast_inputs=torch.half)
def forward(ctx, x, weight, bias, padding, stride):
outputs = fused_conv_bias_relu.forward([x, wei... | 31.155844 | 93 | 0.681951 | 311 | 2,399 | 5.061093 | 0.157556 | 0.099111 | 0.057814 | 0.075604 | 0.85197 | 0.85197 | 0.839898 | 0.839898 | 0.811944 | 0.811944 | 0 | 0.007435 | 0.21509 | 2,399 | 76 | 94 | 31.565789 | 0.828465 | 0 | 0 | 0.706897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.068966 | 0 | 0.327586 | 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 |
403b3bdafa5f824c48528757629f8e664b7cbcd3 | 9,018 | py | Python | DesksReminder/Desks/accounts_desk.py | flopezag/fiware-management-scripts | 3e9ccdb62a11ec0ffd0747511f5512bcdb0df729 | [
"Apache-2.0"
] | null | null | null | DesksReminder/Desks/accounts_desk.py | flopezag/fiware-management-scripts | 3e9ccdb62a11ec0ffd0747511f5512bcdb0df729 | [
"Apache-2.0"
] | 21 | 2017-01-17T12:19:47.000Z | 2021-06-03T07:56:56.000Z | DesksReminder/Desks/accounts_desk.py | flopezag/fiware-management-scripts | 3e9ccdb62a11ec0ffd0747511f5512bcdb0df729 | [
"Apache-2.0"
] | 1 | 2017-05-03T21:42:49.000Z | 2017-05-03T21:42:49.000Z | from datetime import date, datetime
from DesksReminder.Basics.dataFinder import Data
from DesksReminder.Basics.nickNames import ContactBook
from Config.settings import JIRA_URL
__author__ = 'Manuel Escriche'
class AccountsDesk:
def __init__(self):
self.contactBook = ContactBook()
def open(self):
... | 49.01087 | 120 | 0.555001 | 920 | 9,018 | 5.416304 | 0.170652 | 0.04415 | 0.040136 | 0.036123 | 0.84106 | 0.839253 | 0.835039 | 0.804937 | 0.798114 | 0.789284 | 0 | 0.006051 | 0.321912 | 9,018 | 183 | 121 | 49.278689 | 0.808831 | 0 | 0 | 0.722973 | 0 | 0.040541 | 0.280217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040541 | false | 0.006757 | 0.027027 | 0 | 0.108108 | 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 |
4040a877bb3e28b9851ff90970e6bf5e768e303c | 31,211 | py | Python | alembic/versions/92235b77ea53_check_new.py | go-lab/appcomposer | c2468f11b8398edc9b16e1552ac8d609d8347677 | [
"BSD-2-Clause"
] | 1 | 2018-01-20T14:56:01.000Z | 2018-01-20T14:56:01.000Z | alembic/versions/92235b77ea53_check_new.py | go-lab/appcomposer | c2468f11b8398edc9b16e1552ac8d609d8347677 | [
"BSD-2-Clause"
] | 25 | 2015-01-21T09:16:26.000Z | 2021-12-13T20:01:21.000Z | alembic/versions/92235b77ea53_check_new.py | go-lab/appcomposer | c2468f11b8398edc9b16e1552ac8d609d8347677 | [
"BSD-2-Clause"
] | 3 | 2015-07-28T18:40:05.000Z | 2017-03-28T08:14:37.000Z | """Check new
Revision ID: 92235b77ea53
Revises: 381fdb66ec27
Create Date: 2017-10-14 02:38:51.007307
"""
# revision identifiers, used by Alembic.
revision = '92235b77ea53'
down_revision = '381fdb66ec27'
from alembic import op
import sqlalchemy as sa
def upgrade():
# ### commands auto generated by Alembic - pl... | 90.205202 | 149 | 0.79834 | 3,464 | 31,211 | 6.809469 | 0.032333 | 0.037901 | 0.068085 | 0.061896 | 0.979142 | 0.975454 | 0.975114 | 0.965152 | 0.952815 | 0.795447 | 0 | 0.001862 | 0.070808 | 31,211 | 345 | 150 | 90.466667 | 0.811489 | 0.0256 | 0 | 0 | 0 | 0 | 0.557345 | 0.447364 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006711 | false | 0 | 0.006711 | 0 | 0.013423 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
40686bfbfab402b52cf133e6f6f5366a147289d1 | 14,107 | py | Python | appengine/findit/handlers/test/completed_build_pubsub_ingestor_test.py | xswz8015/infra | f956b78ce4c39cc76acdda47601b86794ae0c1ba | [
"BSD-3-Clause"
] | null | null | null | appengine/findit/handlers/test/completed_build_pubsub_ingestor_test.py | xswz8015/infra | f956b78ce4c39cc76acdda47601b86794ae0c1ba | [
"BSD-3-Clause"
] | 4 | 2022-03-17T18:58:21.000Z | 2022-03-17T18:58:22.000Z | appengine/findit/handlers/test/completed_build_pubsub_ingestor_test.py | xswz8015/infra | f956b78ce4c39cc76acdda47601b86794ae0c1ba | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import base64
import json
import mock
import webapp2
from google.appengine.api import taskqueue
from go.chromium.org.luci.buildbucket.proto.build_pb2 impor... | 40.654179 | 78 | 0.607712 | 1,352 | 14,107 | 6.075444 | 0.140533 | 0.060263 | 0.051132 | 0.061359 | 0.822255 | 0.807402 | 0.801558 | 0.780862 | 0.776114 | 0.768688 | 0 | 0.030753 | 0.278514 | 14,107 | 346 | 79 | 40.771676 | 0.776282 | 0.016162 | 0 | 0.757009 | 0 | 0 | 0.222086 | 0.090319 | 0 | 0 | 0 | 0 | 0.062305 | 1 | 0.024922 | false | 0 | 0.034268 | 0 | 0.065421 | 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 |
407e66ad31400c201f52210276cc27484a563068 | 22,314 | py | Python | google/ads/google_ads/v5/__init__.py | arammaliachi/google-ads-python | a4fe89567bd43eb784410523a6306b5d1dd9ee67 | [
"Apache-2.0"
] | 1 | 2021-04-09T04:28:47.000Z | 2021-04-09T04:28:47.000Z | google/ads/google_ads/v5/__init__.py | arammaliachi/google-ads-python | a4fe89567bd43eb784410523a6306b5d1dd9ee67 | [
"Apache-2.0"
] | null | null | null | google/ads/google_ads/v5/__init__.py | arammaliachi/google-ads-python | a4fe89567bd43eb784410523a6306b5d1dd9ee67 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 71.519231 | 113 | 0.791118 | 2,988 | 22,314 | 5.47925 | 0.079987 | 0.25397 | 0.209809 | 0.251771 | 0.886697 | 0.875764 | 0.865013 | 0.858783 | 0.841253 | 0.696433 | 0 | 0.012659 | 0.090168 | 22,314 | 311 | 114 | 71.749196 | 0.793764 | 0.031729 | 0 | 0.056738 | 0 | 0 | 0.793431 | 0.781896 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007092 | false | 0 | 0.028369 | 0.003546 | 0.060284 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
40c4517b7bccc080e6b7ec11639bdde005bb213a | 739 | py | Python | tests/test_config.py | savilard/flask-ecom-api | d94ee7873b9ec80645c05422e3355e8dc045ebeb | [
"MIT"
] | 1 | 2021-04-17T15:25:36.000Z | 2021-04-17T15:25:36.000Z | tests/test_config.py | savilard/flask-ecom-api | d94ee7873b9ec80645c05422e3355e8dc045ebeb | [
"MIT"
] | null | null | null | tests/test_config.py | savilard/flask-ecom-api | d94ee7873b9ec80645c05422e3355e8dc045ebeb | [
"MIT"
] | 1 | 2021-04-18T15:47:02.000Z | 2021-04-18T15:47:02.000Z | import os
def test_development_config(test_app):
test_app.config.from_object('flask_ecom_api.config.DevelopmentConfig')
assert not test_app.config['TESTING']
assert test_app.config['SQLALCHEMY_DATABASE_URI'] == os.environ.get('DATABASE_URL')
def test_testing_config(test_app):
test_app.config.from_ob... | 36.95 | 92 | 0.783491 | 104 | 739 | 5.211538 | 0.240385 | 0.154982 | 0.215867 | 0.140221 | 0.785978 | 0.785978 | 0.785978 | 0.785978 | 0.785978 | 0.785978 | 0 | 0 | 0.098782 | 739 | 19 | 93 | 38.894737 | 0.813814 | 0 | 0 | 0.307692 | 0 | 0 | 0.328823 | 0.244926 | 0 | 0 | 0 | 0 | 0.461538 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
90a4ede6bfdb471d923545a3e19b34b37a9df384 | 7,038 | py | Python | parser/fase2/team28/models/Other/funcion.py | jossiebk/tytus | de6ce433d61609d4eaa5d0dbbd2ce13aaa573544 | [
"MIT"
] | null | null | null | parser/fase2/team28/models/Other/funcion.py | jossiebk/tytus | de6ce433d61609d4eaa5d0dbbd2ce13aaa573544 | [
"MIT"
] | null | null | null | parser/fase2/team28/models/Other/funcion.py | jossiebk/tytus | de6ce433d61609d4eaa5d0dbbd2ce13aaa573544 | [
"MIT"
] | null | null | null | from models.instructions.shared import Instruction
from models.Other.ambito import Ambito
from controllers.three_address_code import ThreeAddressCode
from controllers.procedures import Procedures
from models.instructions.Expression.expression import DATA_TYPE, PrimitiveData
class Parametro(Instruction):
def __ini... | 34.331707 | 90 | 0.596903 | 717 | 7,038 | 5.755927 | 0.153417 | 0.031984 | 0.052338 | 0.021323 | 0.848316 | 0.823601 | 0.787497 | 0.764236 | 0.764236 | 0.731766 | 0 | 0.00082 | 0.306763 | 7,038 | 205 | 91 | 34.331707 | 0.84505 | 0.08312 | 0 | 0.823129 | 0 | 0 | 0.039466 | 0.006526 | 0 | 0 | 0 | 0.004878 | 0 | 1 | 0.115646 | false | 0.027211 | 0.034014 | 0.020408 | 0.244898 | 0.034014 | 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 |
90d6fa60d16e379bff07b720da304a90340377ce | 1,135 | py | Python | safe_control_gym/controllers/__init__.py | gokhanalcan/safe-control-gym | e9086e102663a60a66f2cc9c8cd7610888744056 | [
"MIT"
] | null | null | null | safe_control_gym/controllers/__init__.py | gokhanalcan/safe-control-gym | e9086e102663a60a66f2cc9c8cd7610888744056 | [
"MIT"
] | null | null | null | safe_control_gym/controllers/__init__.py | gokhanalcan/safe-control-gym | e9086e102663a60a66f2cc9c8cd7610888744056 | [
"MIT"
] | null | null | null | """Register controllers.
"""
from safe_control_gym.utils.registration import register
register(id="mpc",
entry_point="safe_control_gym.controllers.mpc.mpc:MPC",
config_entry_point="safe_control_gym.controllers.mpc:mpc.yaml")
register(id="linear_mpc",
entry_point="safe_control_gym.controlle... | 39.137931 | 91 | 0.757709 | 154 | 1,135 | 5.220779 | 0.149351 | 0.177861 | 0.226368 | 0.313433 | 0.732587 | 0.732587 | 0.732587 | 0.702736 | 0.358209 | 0.134328 | 0 | 0 | 0.123348 | 1,135 | 28 | 92 | 40.535714 | 0.80804 | 0.018502 | 0 | 0 | 0 | 0 | 0.546112 | 0.507233 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.052632 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
90fa1b52a86892da98479fc272386682615fa765 | 17,478 | py | Python | Termux-pkg-apt.py | Hironotori/Termux-pkg-apt | db1c33b750e82943c8c5b2780d69654ab4afde96 | [
"BSL-1.0"
] | 1 | 2021-04-12T18:33:25.000Z | 2021-04-12T18:33:25.000Z | Termux-pkg-apt.py | Hironotori/Termux-pkg-apt | db1c33b750e82943c8c5b2780d69654ab4afde96 | [
"BSL-1.0"
] | null | null | null | Termux-pkg-apt.py | Hironotori/Termux-pkg-apt | db1c33b750e82943c8c5b2780d69654ab4afde96 | [
"BSL-1.0"
] | 1 | 2021-10-17T00:44:37.000Z | 2021-10-17T00:44:37.000Z | #!/usr/bin/python3
import os
import time
import sys
os.system("clear")
print('''\033[91m
CREATED BY Hironotori
''')
def slowprint(s):
for c in s + '\n' :
sys.stdout.write(c)
sys.stdout.flush()
slowprint(''' \033[93m
[1] apt-pkg pip-pip3 [2] apt-pkg python
[3] apt-pkg python2 [4] ... | 31.099644 | 54 | 0.66947 | 2,850 | 17,478 | 4.105614 | 0.039649 | 0.338433 | 0.196906 | 0.121015 | 0.941971 | 0.941971 | 0.941971 | 0.941971 | 0.941971 | 0.935647 | 0 | 0.009981 | 0.145898 | 17,478 | 562 | 55 | 31.099644 | 0.773848 | 0.000973 | 0 | 0.885305 | 0 | 0 | 0.507302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001792 | false | 0 | 0.005376 | 0 | 0.007168 | 0.007168 | 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 |
d3d3a5b087e35b140a4cca72077a3d96a9f4d93b | 42,865 | py | Python | grafana/common/dashboards/aggregated/client_subnet_statistics_detail.py | MikeAT/visualizer | 946b98d82eaf7ec508861115585afd683fc49e5c | [
"MIT"
] | 6 | 2021-03-03T17:52:24.000Z | 2022-02-10T11:45:22.000Z | grafana/common/dashboards/aggregated/client_subnet_statistics_detail.py | Acidburn0zzz/visualizer | 20fba91f0d26b98531f97f643c8329640d1c0d11 | [
"MIT"
] | 1 | 2021-04-29T12:34:04.000Z | 2021-04-29T14:50:17.000Z | grafana/common/dashboards/aggregated/client_subnet_statistics_detail.py | Acidburn0zzz/visualizer | 20fba91f0d26b98531f97f643c8329640d1c0d11 | [
"MIT"
] | 2 | 2021-04-27T14:02:03.000Z | 2021-11-12T10:34:32.000Z | # Copyright 2021 Internet Corporation for Assigned Names and Numbers.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
#
# Developed by Sinodun IT (sinodun.com)
#
# Ag... | 46.04189 | 133 | 0.30778 | 2,201 | 42,865 | 5.915039 | 0.110404 | 0.026192 | 0.033182 | 0.044243 | 0.790537 | 0.784699 | 0.784699 | 0.784699 | 0.784699 | 0.777479 | 0 | 0.008435 | 0.643205 | 42,865 | 930 | 134 | 46.091398 | 0.842814 | 0.007839 | 0 | 0.785792 | 0 | 0 | 0.620405 | 0.01811 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002186 | false | 0 | 0.003279 | 0.002186 | 0.00765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
d3dacb32ea41d2fb0546ec04640a3b17315faa08 | 118,963 | py | Python | h1/api/insight_project_journal_api.py | hyperonecom/h1-client-python | 4ce355852ba3120ec1b8f509ab5894a5c08da730 | [
"MIT"
] | null | null | null | h1/api/insight_project_journal_api.py | hyperonecom/h1-client-python | 4ce355852ba3120ec1b8f509ab5894a5c08da730 | [
"MIT"
] | null | null | null | h1/api/insight_project_journal_api.py | hyperonecom/h1-client-python | 4ce355852ba3120ec1b8f509ab5894a5c08da730 | [
"MIT"
] | null | null | null | """
HyperOne
HyperOne API # noqa: E501
The version of the OpenAPI document: 0.1.0
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from h1.api_client import ApiClient, Endpoint as _Endpoint
from h1.model_utils import ( # noqa: F401
check_allowe... | 37.362751 | 179 | 0.451342 | 9,773 | 118,963 | 5.196153 | 0.02333 | 0.04094 | 0.059962 | 0.039286 | 0.953409 | 0.932122 | 0.909043 | 0.907448 | 0.890315 | 0.889035 | 0 | 0.00297 | 0.465002 | 118,963 | 3,183 | 180 | 37.374489 | 0.794925 | 0.287619 | 0 | 0.732151 | 1 | 0 | 0.239957 | 0.055432 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009756 | false | 0 | 0.006652 | 0 | 0.026164 | 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 |
3175aae311124c706359c0501c4ffc334907f123 | 24,640 | py | Python | sarnet_td3/common/gpu_multithread.py | JingdiC/SARNet | 05d668c2d1c0d3f8009ecb98ab33cd5a496cd4ea | [
"MIT"
] | 16 | 2020-11-04T10:12:09.000Z | 2022-03-26T13:25:16.000Z | sarnet_td3/common/gpu_multithread.py | JingdiC/SARNet | 05d668c2d1c0d3f8009ecb98ab33cd5a496cd4ea | [
"MIT"
] | 5 | 2020-11-18T13:07:11.000Z | 2022-03-06T08:40:01.000Z | sarnet_td3/common/gpu_multithread.py | JingdiC/SARNet | 05d668c2d1c0d3f8009ecb98ab33cd5a496cd4ea | [
"MIT"
] | 5 | 2020-11-26T09:17:23.000Z | 2022-03-06T08:40:53.000Z | import threading, queue, time, os, pickle
# from queue import Queue
import numpy as np
import tensorflow as tf
import sarnet_td3.common.tf_util as U
from tensorflow.python.keras.backend import set_session
lock = threading.Lock()
class MultiTrainTD3(threading.Thread):
def __init__(self, input_queue, output_queue, ... | 48.888889 | 159 | 0.544562 | 3,293 | 24,640 | 3.781051 | 0.077133 | 0.030921 | 0.033732 | 0.040479 | 0.890531 | 0.863384 | 0.850534 | 0.833829 | 0.830536 | 0.825556 | 0 | 0.009107 | 0.344927 | 24,640 | 503 | 160 | 48.986084 | 0.762282 | 0.060065 | 0 | 0.768496 | 0 | 0.004773 | 0.052404 | 0.000996 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054893 | false | 0 | 0.011933 | 0 | 0.097852 | 0.047733 | 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 |
31bdffc8c81e843699509af2486f317c1a1c36b7 | 35,087 | py | Python | gips/gistmodel/post_processing.py | accsc/gips | 6b20b2b0fa76ee24b04237b1edd5c8a26738d460 | [
"MIT"
] | 1 | 2021-04-24T10:29:39.000Z | 2021-04-24T10:29:39.000Z | gips/gistmodel/post_processing.py | accsc/gips | 6b20b2b0fa76ee24b04237b1edd5c8a26738d460 | [
"MIT"
] | null | null | null | gips/gistmodel/post_processing.py | accsc/gips | 6b20b2b0fa76ee24b04237b1edd5c8a26738d460 | [
"MIT"
] | 2 | 2021-02-16T14:18:59.000Z | 2021-06-04T05:09:22.000Z | import numpy as np
import copy
from gips import FLOAT
from gips import DOUBLE
class post_processing(object):
def __init__(self, fitter, x, pairs=False, prefix=None):
self.fitter = fitter
self.x = x
self.pairs = pairs
self.case = 0
score_dict = { 4 : self.parms4,... | 38.899113 | 109 | 0.378545 | 3,672 | 35,087 | 3.398965 | 0.04085 | 0.137809 | 0.090137 | 0.026681 | 0.872446 | 0.855941 | 0.840718 | 0.821409 | 0.805945 | 0.800817 | 0 | 0.022386 | 0.492006 | 35,087 | 902 | 110 | 38.899113 | 0.67785 | 0.126457 | 0 | 0.777778 | 0 | 0 | 0.012642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025501 | false | 0.001821 | 0.007286 | 0 | 0.040073 | 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 |
31c78d6966a9d84a523a15b22e795f490c2201f9 | 44 | py | Python | vertex-server/signals/__init__.py | aoswalt/greenlite-hardware | 056ed78829519f49adab60dbcf67878243fe764e | [
"MIT"
] | null | null | null | vertex-server/signals/__init__.py | aoswalt/greenlite-hardware | 056ed78829519f49adab60dbcf67878243fe764e | [
"MIT"
] | 1 | 2016-11-01T23:55:07.000Z | 2016-11-01T23:55:07.000Z | vertex-server/signals/__init__.py | aoswalt/greenlite-hardware | 056ed78829519f49adab60dbcf67878243fe764e | [
"MIT"
] | null | null | null | from . import lights
from . import schedule
| 14.666667 | 22 | 0.772727 | 6 | 44 | 5.666667 | 0.666667 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 44 | 2 | 23 | 22 | 0.944444 | 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 |
31c871b146933705ca94093543636c2b4a72c392 | 22,970 | py | Python | test_training_data.py | miermans/gym-2048 | 39f2cf375ef936284677a97b373aa2b97c8e45fc | [
"MIT"
] | null | null | null | test_training_data.py | miermans/gym-2048 | 39f2cf375ef936284677a97b373aa2b97c8e45fc | [
"MIT"
] | 2 | 2021-05-26T20:24:09.000Z | 2021-05-27T08:44:54.000Z | test_training_data.py | miermans/gym-2048 | 39f2cf375ef936284677a97b373aa2b97c8e45fc | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import absolute_import
import numpy as np
import os
import pytest
import tempfile
import training_data
class TestTrainingData():
def test_add(self):
td = training_data.training_data()
assert np.array_equal(td.get_x(), np.empty([0, 4, 4], dtype=np.int))
... | 44.173077 | 101 | 0.428515 | 4,059 | 22,970 | 2.33358 | 0.043114 | 0.245988 | 0.331926 | 0.395693 | 0.826541 | 0.805743 | 0.75 | 0.718011 | 0.677048 | 0.649916 | 0 | 0.151582 | 0.350631 | 22,970 | 519 | 102 | 44.258189 | 0.483441 | 0.026948 | 0 | 0.612632 | 0 | 0 | 0.000717 | 0 | 0 | 0 | 0 | 0 | 0.143158 | 1 | 0.042105 | false | 0 | 0.016842 | 0 | 0.061053 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
31d43ead09e1c7effc26eae228b072a20a8b0310 | 3,261 | py | Python | simple_retry/decorators.py | nicolasmota/retry_decorator | 65eab450e65fe8c08d07cd213628e655baa5ae55 | [
"MIT"
] | 11 | 2018-03-06T17:09:50.000Z | 2018-10-26T04:31:50.000Z | simple_retry/decorators.py | nicolasmota/retry_decorator | 65eab450e65fe8c08d07cd213628e655baa5ae55 | [
"MIT"
] | 9 | 2018-03-06T03:56:44.000Z | 2018-10-26T04:48:42.000Z | simple_retry/decorators.py | nicolasmota/retry_decorator | 65eab450e65fe8c08d07cd213628e655baa5ae55 | [
"MIT"
] | 2 | 2018-03-15T03:11:14.000Z | 2018-07-07T17:11:06.000Z | import time
from functools import wraps
import asyncio
from simple_retry.simple_retry.helpers import (
format_retry_message,
has_retries_to_go,
log_message
)
def retry(Except, retries=5, delay=0, logger=None, level='info', multiple=1):
def deco_retry(function):
@wraps(function)
de... | 26.512195 | 77 | 0.462435 | 287 | 3,261 | 5.073171 | 0.167247 | 0.061813 | 0.078297 | 0.107143 | 0.873626 | 0.866758 | 0.854396 | 0.828984 | 0.768544 | 0.737637 | 0 | 0.008621 | 0.466421 | 3,261 | 122 | 78 | 26.729508 | 0.828161 | 0 | 0 | 0.798077 | 0 | 0 | 0.00368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.038462 | 0 | 0.230769 | 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 |
31d44c5f099da57a280d3e04440215f00f79e111 | 153 | py | Python | environment.py | bopopescu/cbrc-devteam-blog | eb4f7977d112b1ee692dad60ed46802d2ee243f4 | [
"Apache-2.0"
] | null | null | null | environment.py | bopopescu/cbrc-devteam-blog | eb4f7977d112b1ee692dad60ed46802d2ee243f4 | [
"Apache-2.0"
] | null | null | null | environment.py | bopopescu/cbrc-devteam-blog | eb4f7977d112b1ee692dad60ed46802d2ee243f4 | [
"Apache-2.0"
] | 1 | 2020-07-24T03:59:01.000Z | 2020-07-24T03:59:01.000Z | # application environment
import settings
import sys
sys.path.append(settings.app_home_dir)
sys.path.append(settings.app_settings["app_lib_dir"])
| 21.857143 | 54 | 0.797386 | 22 | 153 | 5.318182 | 0.5 | 0.282051 | 0.222222 | 0.358974 | 0.410256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104575 | 153 | 6 | 55 | 25.5 | 0.854015 | 0.150327 | 0 | 0 | 0 | 0 | 0.090164 | 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 |
730824ac4dba3e614be06b76613a0a6b290846f5 | 46 | py | Python | src/utils.py | sequoia-tree/cs370 | 47bf7f56d20bd81abbdbd0502477afcd5f62bbbe | [
"CC-BY-4.0"
] | 1 | 2019-01-14T08:31:45.000Z | 2019-01-14T08:31:45.000Z | src/utils.py | sequoia-tree/teaching-cs | 47bf7f56d20bd81abbdbd0502477afcd5f62bbbe | [
"CC-BY-4.0"
] | null | null | null | src/utils.py | sequoia-tree/teaching-cs | 47bf7f56d20bd81abbdbd0502477afcd5f62bbbe | [
"CC-BY-4.0"
] | null | null | null | from md_utils import *
from py_utils import *
| 15.333333 | 22 | 0.782609 | 8 | 46 | 4.25 | 0.625 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 46 | 2 | 23 | 23 | 0.894737 | 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 |
7317deb1560647aa925ec2a580d6d0908f2796af | 155 | py | Python | GasBotty/models/utils.py | GreenCUBIC/GasBotty | 158f5991201c80bf4cbbbb9deabc9954ff19bbb1 | [
"MIT"
] | 353 | 2020-12-10T10:47:17.000Z | 2022-03-31T23:08:29.000Z | GasBotty/models/utils.py | GreenCUBIC/GasBotty | 158f5991201c80bf4cbbbb9deabc9954ff19bbb1 | [
"MIT"
] | 80 | 2020-12-10T09:54:22.000Z | 2022-03-30T22:08:45.000Z | GasBotty/models/utils.py | GreenCUBIC/GasBotty | 158f5991201c80bf4cbbbb9deabc9954ff19bbb1 | [
"MIT"
] | 63 | 2020-12-10T17:10:34.000Z | 2022-03-28T16:27:07.000Z | try:
from torch.hub import load_state_dict_from_url
except ImportError:
from torch.utils.model_zoo import load_url as load_state_dict_from_url
| 31 | 75 | 0.806452 | 26 | 155 | 4.423077 | 0.576923 | 0.156522 | 0.226087 | 0.295652 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 155 | 4 | 76 | 38.75 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 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 |
73425bf1b2ce90f77e267345bd3b090b0208b790 | 16,334 | py | Python | tests/service/ai/test_not_killing_itself_ai.py | jonashellmann/informaticup21-team-chillow | f2e519af0a5d9a9368d62556703cfb1066ebb58f | [
"MIT"
] | 3 | 2021-01-17T23:32:07.000Z | 2022-01-30T14:49:16.000Z | tests/service/ai/test_not_killing_itself_ai.py | jonashellmann/informaticup21-team-chillow | f2e519af0a5d9a9368d62556703cfb1066ebb58f | [
"MIT"
] | 2 | 2021-01-17T13:37:56.000Z | 2021-04-14T12:28:49.000Z | tests/service/ai/test_not_killing_itself_ai.py | jonashellmann/informaticup21-team-chillow | f2e519af0a5d9a9368d62556703cfb1066ebb58f | [
"MIT"
] | 2 | 2021-04-02T14:53:38.000Z | 2021-04-20T11:10:17.000Z | import unittest
from datetime import datetime, timezone
from typing import List
from chillow.service.ai.not_killing_itself_ai import NotKillingItselfAI
from chillow.model.action import Action
from chillow.model.cell import Cell
from chillow.model.direction import Direction
from chillow.model.game import Game
from chil... | 52.185304 | 120 | 0.53355 | 1,846 | 16,334 | 4.568797 | 0.054171 | 0.258952 | 0.303059 | 0.328195 | 0.903486 | 0.887361 | 0.884515 | 0.881314 | 0.8742 | 0.864951 | 0 | 0.048528 | 0.307396 | 16,334 | 312 | 121 | 52.352564 | 0.696986 | 0 | 0 | 0.807087 | 0 | 0 | 0.002571 | 0.001286 | 0 | 0 | 0 | 0 | 0.137795 | 1 | 0.059055 | false | 0 | 0.03937 | 0 | 0.102362 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.