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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5e5309d95bd6b1094b82e35d5ecd08a53b2775a0 | 5,147 | py | Python | tests/test_get_section.py | Enacero/yaml-patch | 7270d431447c82d665622cc316f0941214e7eee2 | [
"MIT"
] | 2 | 2020-04-21T08:49:39.000Z | 2020-12-21T07:28:43.000Z | tests/test_get_section.py | Enacero/json_modify | 7270d431447c82d665622cc316f0941214e7eee2 | [
"MIT"
] | null | null | null | tests/test_get_section.py | Enacero/json_modify | 7270d431447c82d665622cc316f0941214e7eee2 | [
"MIT"
] | null | null | null | import pytest
from json_modify import get_section
DELIM = "/"
SOURCE = {
"spec": {
"name": "test",
"metadata": [
{"name": "test1", "value": "test1"},
{"name": "test2", "value": "test2"},
],
"values": {"value1": 10, "value2": 20},
}
}
def test_get_sect... | 33.422078 | 87 | 0.606956 | 610 | 5,147 | 4.904918 | 0.090164 | 0.083556 | 0.090241 | 0.126337 | 0.92881 | 0.912099 | 0.878008 | 0.847259 | 0.77139 | 0.71357 | 0 | 0.015451 | 0.195259 | 5,147 | 153 | 88 | 33.640523 | 0.706905 | 0 | 0 | 0.508621 | 0 | 0 | 0.310278 | 0.078492 | 0 | 0 | 0 | 0 | 0.137931 | 1 | 0.068966 | false | 0 | 0.017241 | 0 | 0.086207 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
5ea379801944c26b01021f31bc781006244cc770 | 23 | py | Python | lib/risksense_api/__subject/__sla/__init__.py | YugeshJ/risksense_tools | 975d9d2e723791aa414ecb69e6f66f4cb20cb3f1 | [
"Apache-2.0"
] | null | null | null | lib/risksense_api/__subject/__sla/__init__.py | YugeshJ/risksense_tools | 975d9d2e723791aa414ecb69e6f66f4cb20cb3f1 | [
"Apache-2.0"
] | null | null | null | lib/risksense_api/__subject/__sla/__init__.py | YugeshJ/risksense_tools | 975d9d2e723791aa414ecb69e6f66f4cb20cb3f1 | [
"Apache-2.0"
] | 1 | 2022-03-31T06:24:35.000Z | 2022-03-31T06:24:35.000Z | from .__sla import Sla
| 11.5 | 22 | 0.782609 | 4 | 23 | 4 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 23 | 1 | 23 | 23 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
5ea5a3b98ca0ffcda3e412f751c9c54a57afcc32 | 118 | py | Python | social/apps/django_app/me/models.py | raccoongang/python-social-auth | 81c0a542d158772bd3486d31834c10af5d5f08b0 | [
"BSD-3-Clause"
] | 1,987 | 2015-01-01T16:12:45.000Z | 2022-03-29T14:24:25.000Z | social/apps/django_app/me/models.py | raccoongang/python-social-auth | 81c0a542d158772bd3486d31834c10af5d5f08b0 | [
"BSD-3-Clause"
] | 731 | 2015-01-01T22:55:25.000Z | 2022-03-10T15:07:51.000Z | virtual/lib/python3.6/site-packages/social/apps/django_app/me/models.py | dennismwaniki67/awards | 80ed10541f5f751aee5f8285ab1ad54cfecba95f | [
"MIT"
] | 1,082 | 2015-01-01T16:27:26.000Z | 2022-03-22T21:18:33.000Z | from social_django_mongoengine.models import _get_user_model, UserSocialAuth, Nonce, Association, Code, DjangoStorage
| 59 | 117 | 0.872881 | 14 | 118 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076271 | 118 | 1 | 118 | 118 | 0.899083 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0d60f67262f0a5bf41f05c3f4c54b25600520c02 | 359 | py | Python | scripts/patches/iotwireless.py | compose-x/troposphere | 9a94a8fafd8b4da1cd1f4239be0e7aa0681fd8d4 | [
"BSD-2-Clause"
] | null | null | null | scripts/patches/iotwireless.py | compose-x/troposphere | 9a94a8fafd8b4da1cd1f4239be0e7aa0681fd8d4 | [
"BSD-2-Clause"
] | null | null | null | scripts/patches/iotwireless.py | compose-x/troposphere | 9a94a8fafd8b4da1cd1f4239be0e7aa0681fd8d4 | [
"BSD-2-Clause"
] | null | null | null | patches = [
{
"op": "move",
"from": "/PropertyTypes/AWS::IoTWireless::FuotaTask.LoRaWAN",
"path": "/PropertyTypes/AWS::IoTWireless::FuotaTask.FuotaTaskLoRaWAN",
},
{
"op": "replace",
"path": "/ResourceTypes/AWS::IoTWireless::FuotaTask/Properties/LoRaWAN/Type",
... | 27.615385 | 85 | 0.576602 | 27 | 359 | 7.666667 | 0.592593 | 0.202899 | 0.333333 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233983 | 359 | 12 | 86 | 29.916667 | 0.752727 | 0 | 0 | 0 | 0 | 0 | 0.62117 | 0.487465 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
0d8761ba24db088c4e1bd047e6b5bcbbf99ac8ff | 194 | py | Python | phase_cells/test_atunet.py | shenghh2015/segmentation_models | 473c528c724f62ff38ac127747dd8babb7de6b85 | [
"MIT"
] | null | null | null | phase_cells/test_atunet.py | shenghh2015/segmentation_models | 473c528c724f62ff38ac127747dd8babb7de6b85 | [
"MIT"
] | null | null | null | phase_cells/test_atunet.py | shenghh2015/segmentation_models | 473c528c724f62ff38ac127747dd8babb7de6b85 | [
"MIT"
] | null | null | null | from segmentation_models_v1 import AtUnet; model = AtUnet('efficientnetb0', feature_version = None)
#from segmentation_models_v1 import Unet; model = Unet('efficientnetb0', feature_version = 1)
| 64.666667 | 99 | 0.809278 | 24 | 194 | 6.291667 | 0.541667 | 0.211921 | 0.291391 | 0.317881 | 0.397351 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028736 | 0.103093 | 194 | 2 | 100 | 97 | 0.83908 | 0.474227 | 0 | 0 | 0 | 0 | 0.138614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
0ddfb9d0b2e3925cb9a8fc21ead91f1794f9c466 | 48 | py | Python | main3.py | sunnyjamm/second_project | 424fbcc7bf725263723e5901f117b5c7db779a1b | [
"MIT"
] | null | null | null | main3.py | sunnyjamm/second_project | 424fbcc7bf725263723e5901f117b5c7db779a1b | [
"MIT"
] | null | null | null | main3.py | sunnyjamm/second_project | 424fbcc7bf725263723e5901f117b5c7db779a1b | [
"MIT"
] | null | null | null | print('user1')
print('user 3')
print('user 2')
| 9.6 | 15 | 0.625 | 8 | 48 | 3.75 | 0.625 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.125 | 48 | 4 | 16 | 12 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0.354167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 1 | 0 | 6 |
21a6ffcc4b10389ef45a7a6cc653a50c844cac28 | 8,614 | py | Python | unit_tests/test_actions_zap_disk.py | canonical/charm-ceph-osd | 88b735c938f1fb6df4f08da669a6d13079aa0563 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | unit_tests/test_actions_zap_disk.py | canonical/charm-ceph-osd | 88b735c938f1fb6df4f08da669a6d13079aa0563 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2018-01-31T12:05:35.000Z | 2018-01-31T12:05:35.000Z | unit_tests/test_actions_zap_disk.py | canonical/charm-ceph-osd | 88b735c938f1fb6df4f08da669a6d13079aa0563 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright 2018 Canonical Ltd
#
# 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, s... | 39.513761 | 74 | 0.589854 | 1,098 | 8,614 | 4.379781 | 0.142077 | 0.07278 | 0.070701 | 0.033687 | 0.789561 | 0.786026 | 0.753171 | 0.731961 | 0.731961 | 0.731961 | 0 | 0.00312 | 0.293011 | 8,614 | 217 | 75 | 39.695853 | 0.786535 | 0.101347 | 0 | 0.760234 | 0 | 0 | 0.17389 | 0.006117 | 0 | 0 | 0 | 0 | 0.152047 | 1 | 0.111111 | false | 0 | 0.017544 | 0.052632 | 0.187135 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
21ea877be42f9bc8b38a0dc3bd0fe5c28675d62c | 99 | py | Python | paypal/exceptions.py | rodolfotorres02/django-oscar-paypal | 8272b33f86e189f9c82f484881b75de1615ebe59 | [
"BSD-3-Clause"
] | 111 | 2015-01-09T18:37:27.000Z | 2022-02-22T04:42:06.000Z | paypal/exceptions.py | rodolfotorres02/django-oscar-paypal | 8272b33f86e189f9c82f484881b75de1615ebe59 | [
"BSD-3-Clause"
] | 181 | 2015-01-09T23:57:01.000Z | 2022-01-26T19:45:52.000Z | paypal/exceptions.py | rodolfotorres02/django-oscar-paypal | 8272b33f86e189f9c82f484881b75de1615ebe59 | [
"BSD-3-Clause"
] | 191 | 2015-01-12T18:29:58.000Z | 2022-03-07T04:44:34.000Z | from oscar.apps.payment.exceptions import PaymentError
class PayPalError(PaymentError):
pass
| 16.5 | 54 | 0.808081 | 11 | 99 | 7.272727 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131313 | 99 | 5 | 55 | 19.8 | 0.930233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
21ebd52d4362421987fce59d36fdd4254dc45f88 | 103 | py | Python | models/subnets/__init__.py | ryanwongsa/open-images-2019-challenge | b49e0933451c4bf9b31a9a8faf1bd8ba3dee1cc5 | [
"Apache-2.0"
] | 2 | 2020-04-03T23:02:00.000Z | 2021-12-31T05:18:27.000Z | models/subnets/__init__.py | ryanwongsa/open-images-2019-challenge | b49e0933451c4bf9b31a9a8faf1bd8ba3dee1cc5 | [
"Apache-2.0"
] | null | null | null | models/subnets/__init__.py | ryanwongsa/open-images-2019-challenge | b49e0933451c4bf9b31a9a8faf1bd8ba3dee1cc5 | [
"Apache-2.0"
] | null | null | null | from .regression_subnet import RegressionSubnet
from .classification_subnet import ClassificationSubnet | 51.5 | 55 | 0.912621 | 10 | 103 | 9.2 | 0.7 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067961 | 103 | 2 | 55 | 51.5 | 0.958333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
df222eaafde7f0f2c9143ce3d62c3d17077d6182 | 1,061 | py | Python | lutils/tests/units/test_lserver.py | loitd/lutils | 46ce632d4c4705df32a2ced94312f8209575d075 | [
"Apache-2.0"
] | 1 | 2021-04-29T06:09:51.000Z | 2021-04-29T06:09:51.000Z | lutils/tests/units/test_lserver.py | loitd/lutils | 46ce632d4c4705df32a2ced94312f8209575d075 | [
"Apache-2.0"
] | 2 | 2021-06-02T00:12:04.000Z | 2022-03-29T22:10:41.000Z | lutils/tests/units/test_lserver.py | loitd/lutils | 46ce632d4c4705df32a2ced94312f8209575d075 | [
"Apache-2.0"
] | null | null | null | import pytest
from lutils.utils import LServer
def test_LServerClass(common_lserver):
assert isinstance(common_lserver, LServer)
def test_connect(common_lserver):
assert common_lserver.connect(ip="172.16.10.1", uname="user", pw="any", debug=False) == False
def test_connectWithKey(common_lserver):
ass... | 36.586207 | 108 | 0.770028 | 132 | 1,061 | 5.984848 | 0.325758 | 0.296203 | 0.216456 | 0.253165 | 0.481013 | 0.156962 | 0.156962 | 0.108861 | 0.108861 | 0 | 0 | 0.017241 | 0.125353 | 1,061 | 29 | 109 | 36.586207 | 0.834052 | 0 | 0 | 0 | 0 | 0 | 0.123352 | 0 | 0 | 0 | 0 | 0 | 0.45 | 1 | 0.45 | false | 0 | 0.1 | 0 | 0.55 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
df27d504fa3eb73272c6655d800569fbb56876bb | 13,107 | py | Python | tests/test_global_torque_driven_ocp.py | Amedeo123/bioptim | c22207a511cd0d39bd735e07dae5d53ca5a81714 | [
"MIT"
] | 10 | 2020-04-17T14:49:47.000Z | 2020-09-14T13:05:26.000Z | tests/test_global_torque_driven_ocp.py | pariterre/bioptim | 4064138e7d3fce34e21d488df19941937ce30557 | [
"MIT"
] | 142 | 2020-04-08T14:41:43.000Z | 2020-09-30T00:55:00.000Z | tests/test_global_torque_driven_ocp.py | pariterre/bioptim | 4064138e7d3fce34e21d488df19941937ce30557 | [
"MIT"
] | 14 | 2020-03-31T13:46:29.000Z | 2020-09-17T17:14:56.000Z | """
Test for file IO
"""
import os
import pytest
import numpy as np
import biorbd_casadi as biorbd
from bioptim import OdeSolver, ConstraintList, ConstraintFcn, Node
from .utils import TestUtils
@pytest.mark.parametrize("ode_solver", [OdeSolver.RK4, OdeSolver.RK8, OdeSolver.IRK])
@pytest.mark.parametrize("actuator_... | 33.436224 | 115 | 0.637446 | 1,817 | 13,107 | 4.417722 | 0.128784 | 0.077364 | 0.12894 | 0.143889 | 0.810141 | 0.806403 | 0.791952 | 0.768905 | 0.732403 | 0.704373 | 0 | 0.103897 | 0.226749 | 13,107 | 391 | 116 | 33.521739 | 0.688111 | 0.111925 | 0 | 0.5 | 0 | 0 | 0.019964 | 0.005272 | 0 | 0 | 0 | 0 | 0.278226 | 1 | 0.020161 | false | 0.004032 | 0.044355 | 0 | 0.064516 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
df48190c4de178bbe6e7b87226381ff83aa0cc2f | 212 | py | Python | corazon/pipeline_search_vet.py | pllim/corazon | 437675093e0549773013f73e82b4df9277016f1a | [
"BSD-3-Clause"
] | null | null | null | corazon/pipeline_search_vet.py | pllim/corazon | 437675093e0549773013f73e82b4df9277016f1a | [
"BSD-3-Clause"
] | null | null | null | corazon/pipeline_search_vet.py | pllim/corazon | 437675093e0549773013f73e82b4df9277016f1a | [
"BSD-3-Clause"
] | null | null | null | __all__ = ['search_and_vet_one']
def search_and_vet_one(ticid, sector, config, vetter_list, plot=True):
"""
Search and vet one TIC ID using your config and vetter list.
"""
# TODO: Implement me
| 23.555556 | 70 | 0.683962 | 32 | 212 | 4.1875 | 0.625 | 0.201493 | 0.268657 | 0.335821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212264 | 212 | 8 | 71 | 26.5 | 0.802395 | 0.377358 | 0 | 0 | 0 | 0 | 0.155172 | 0 | 0 | 0 | 0 | 0.125 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
df5d7bfb8addc7c9fe813218ff7712c074cbad20 | 1,963 | py | Python | epytope/Data/pssms/smm/mat/A_01_01_8.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 7 | 2021-02-01T18:11:28.000Z | 2022-01-31T19:14:07.000Z | epytope/Data/pssms/smm/mat/A_01_01_8.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 22 | 2021-01-02T15:25:23.000Z | 2022-03-14T11:32:53.000Z | epytope/Data/pssms/smm/mat/A_01_01_8.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 4 | 2021-05-28T08:50:38.000Z | 2022-03-14T11:45:32.000Z | A_01_01_8 = {0: {'A': -0.123, 'C': 0.017, 'E': -0.01, 'D': 0.0, 'G': 0.049, 'F': -0.033, 'I': 0.0, 'H': 0.001, 'K': 0.028, 'M': -0.04, 'L': -0.094, 'N': -0.06, 'Q': 0.032, 'P': 0.007, 'S': 0.006, 'R': 0.015, 'T': 0.05, 'W': 0.031, 'V': 0.09, 'Y': 0.031}, 1: {'A': -0.008, 'C': 0.03, 'E': -0.013, 'D': -0.077, 'G': 0.057,... | 1,963 | 1,963 | 0.378502 | 496 | 1,963 | 1.491935 | 0.219758 | 0.097297 | 0.012162 | 0.016216 | 0.175676 | 0.051351 | 0.051351 | 0.051351 | 0.02973 | 0.02973 | 0 | 0.353158 | 0.169129 | 1,963 | 1 | 1,963 | 1,963 | 0.100552 | 0 | 0 | 0 | 0 | 0 | 0.082994 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
df5f3ddafdf7c7c8b5f3b031061728c3d72ffb15 | 5,896 | py | Python | hvplot/tests/testutil.py | jonmmease/hvplot | d3330223a940efdf8faad0fef1f5c7ad1f5a8033 | [
"BSD-3-Clause"
] | null | null | null | hvplot/tests/testutil.py | jonmmease/hvplot | d3330223a940efdf8faad0fef1f5c7ad1f5a8033 | [
"BSD-3-Clause"
] | null | null | null | hvplot/tests/testutil.py | jonmmease/hvplot | d3330223a940efdf8faad0fef1f5c7ad1f5a8033 | [
"BSD-3-Clause"
] | 1 | 2020-06-09T16:30:21.000Z | 2020-06-09T16:30:21.000Z | """
Tests utilities to convert data and projections
"""
import numpy as np
from unittest import TestCase, SkipTest
from hvplot.util import process_xarray # noqa
class TestProcessXarray(TestCase):
def setUp(self):
try:
import xarray as xr
import pandas as pd # noqa
exc... | 30.549223 | 94 | 0.582938 | 753 | 5,896 | 4.401062 | 0.13413 | 0.046168 | 0.061557 | 0.026554 | 0.840374 | 0.832227 | 0.789378 | 0.773084 | 0.746832 | 0.73446 | 0 | 0.009022 | 0.304444 | 5,896 | 192 | 95 | 30.708333 | 0.799073 | 0.010007 | 0 | 0.646667 | 0 | 0 | 0.052162 | 0 | 0 | 0 | 0 | 0 | 0.393333 | 1 | 0.08 | false | 0 | 0.133333 | 0 | 0.22 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
df61eba928888eb61b600b9c4f502b460ac01863 | 5,021 | py | Python | query_parameters.py | Lazy-Pengu/patent-scraper | d35b55447a0833a29d6b0776027506d7e699c28a | [
"MIT"
] | null | null | null | query_parameters.py | Lazy-Pengu/patent-scraper | d35b55447a0833a29d6b0776027506d7e699c28a | [
"MIT"
] | 3 | 2021-02-08T20:34:22.000Z | 2021-06-02T00:20:55.000Z | query_parameters.py | Lazy-Pengu/patent-scraper | d35b55447a0833a29d6b0776027506d7e699c28a | [
"MIT"
] | 1 | 2019-11-16T07:04:12.000Z | 2019-11-16T07:04:12.000Z | import json
class Query:
"""
Holds the two query parameters for GET and POST request
"""
def getParameter(self, comp_name, num_pat, start_date, result_fields):
"""Query parameter for GET request
Parameters
----------
comp_name : str
Company nam... | 25.617347 | 76 | 0.355706 | 314 | 5,021 | 5.382166 | 0.232484 | 0.106509 | 0.170414 | 0.111834 | 0.762722 | 0.72071 | 0.72071 | 0.72071 | 0.72071 | 0.72071 | 0 | 0 | 0.55706 | 5,021 | 195 | 77 | 25.748718 | 0.759892 | 0.152161 | 0 | 0.331034 | 0 | 0 | 0.228159 | 0.010636 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013793 | false | 0 | 0.006897 | 0 | 0.041379 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
df6614ef45aff726bd474c43ce8a61b117ee61c1 | 203 | py | Python | tccli/services/ame/__init__.py | zyh911/tencentcloud-cli | dfc5dbd660d4c60d265921c4edc630091478fc41 | [
"Apache-2.0"
] | null | null | null | tccli/services/ame/__init__.py | zyh911/tencentcloud-cli | dfc5dbd660d4c60d265921c4edc630091478fc41 | [
"Apache-2.0"
] | null | null | null | tccli/services/ame/__init__.py | zyh911/tencentcloud-cli | dfc5dbd660d4c60d265921c4edc630091478fc41 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from tccli.services.ame.ame_client import register_arg
from tccli.services.ame.ame_client import get_actions_info
from tccli.services.ame.ame_client import AVAILABLE_VERSION_LIST
| 40.6 | 64 | 0.827586 | 32 | 203 | 5 | 0.53125 | 0.16875 | 0.31875 | 0.375 | 0.65625 | 0.65625 | 0.65625 | 0 | 0 | 0 | 0 | 0.005376 | 0.083744 | 203 | 4 | 65 | 50.75 | 0.854839 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
df764f8bafb74ea3d7618d7c65df4005cd80bda5 | 134 | py | Python | collectdata/run_ls.py | yuuvisathon/collectdata | fb3ccf8e8ed8d28a0ace06a6c73d6a0d9d356d76 | [
"MIT"
] | 1 | 2019-07-28T03:18:57.000Z | 2019-07-28T03:18:57.000Z | collectdata/run_ls.py | yuuvisathon/collectdata | fb3ccf8e8ed8d28a0ace06a6c73d6a0d9d356d76 | [
"MIT"
] | null | null | null | collectdata/run_ls.py | yuuvisathon/collectdata | fb3ccf8e8ed8d28a0ace06a6c73d6a0d9d356d76 | [
"MIT"
] | 2 | 2019-07-27T16:40:11.000Z | 2019-07-27T19:52:26.000Z | "Run the linux ls util and return the data"
import os
from util import run_util
def get_ls():
return run_util("ls,-R,/home/")
| 13.4 | 43 | 0.69403 | 25 | 134 | 3.6 | 0.6 | 0.155556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201493 | 134 | 9 | 44 | 14.888889 | 0.841122 | 0.30597 | 0 | 0 | 0 | 0 | 0.395522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
10c8938e1220feed55c8a77dfc7395347c09d15c | 12,854 | py | Python | carts/tests/tests.py | Flict-dev/Boxes-api | a2aa76b2db6aaa5af1028138566dc3b2b251fcdb | [
"MIT"
] | 1 | 2021-12-13T22:03:58.000Z | 2021-12-13T22:03:58.000Z | carts/tests/tests.py | Flict-dev/Boxes-api | a2aa76b2db6aaa5af1028138566dc3b2b251fcdb | [
"MIT"
] | null | null | null | carts/tests/tests.py | Flict-dev/Boxes-api | a2aa76b2db6aaa5af1028138566dc3b2b251fcdb | [
"MIT"
] | null | null | null | from random import randint
from rest_framework import status
from rest_framework.reverse import reverse
from rest_framework.test import APITestCase
from carts.models import Cart, CartItem
from items.tests.factories import ItemFactory
from users.tests.factories import UserFactory
class CartViewSetRetrieveTestCase(APIT... | 40.294671 | 118 | 0.561226 | 1,378 | 12,854 | 5.09434 | 0.075472 | 0.104843 | 0.068376 | 0.031481 | 0.859972 | 0.834615 | 0.796724 | 0.781481 | 0.748291 | 0.747721 | 0 | 0.009774 | 0.315466 | 12,854 | 318 | 119 | 40.421384 | 0.788044 | 0 | 0 | 0.645833 | 0 | 0 | 0.143924 | 0.053369 | 0 | 0 | 0 | 0 | 0.100694 | 1 | 0.079861 | false | 0 | 0.024306 | 0 | 0.128472 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
10e46ca9876170d11ccb4cd7fc2231a94097efaa | 15,525 | py | Python | src/crumblebundle/input/windows_keycodes.py | Peilonrayz/crumblebundle | cffb3b0b16e9bc6497e9ba43f9c7cc3fd008c3ee | [
"MIT"
] | null | null | null | src/crumblebundle/input/windows_keycodes.py | Peilonrayz/crumblebundle | cffb3b0b16e9bc6497e9ba43f9c7cc3fd008c3ee | [
"MIT"
] | null | null | null | src/crumblebundle/input/windows_keycodes.py | Peilonrayz/crumblebundle | cffb3b0b16e9bc6497e9ba43f9c7cc3fd008c3ee | [
"MIT"
] | null | null | null | # Table headers
# [name, ext, ext-shift, ext-ctrl, ext-alt]
# [name, dec, char, dec, char, dec char, dec char]
_keycodes = [
["ESC", 1, 27, None, 27, None, 27, None, 1, 0],
["1!", 2, 49, "1", 33, "!", None, None, 120, 0],
["2@", 3, 50, "2", 64, "@", 3, 0, 121, 0],
["3#", 4, 51, "3", 35, "#", None... | 47.045455 | 82 | 0.440258 | 2,506 | 15,525 | 2.723464 | 0.128891 | 0.420806 | 0.441319 | 0.480586 | 0.705201 | 0.645714 | 0.601905 | 0.556484 | 0.437363 | 0.415238 | 0 | 0.216539 | 0.277166 | 15,525 | 329 | 83 | 47.18845 | 0.388433 | 0.007987 | 0 | 0.270968 | 0 | 0.222581 | 0.093596 | 0.003313 | 0 | 0 | 0.019745 | 0 | 0 | 1 | 0.025806 | false | 0 | 0.003226 | 0.006452 | 0.064516 | 0.009677 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
803d55d90895f26e2f78f8dd9cdd259d82d0b997 | 195 | py | Python | tests/test_package.py | j5api/j5-zoloto | fa521fedf2df28d134038481d22a1e38b0d0d7ee | [
"MIT"
] | null | null | null | tests/test_package.py | j5api/j5-zoloto | fa521fedf2df28d134038481d22a1e38b0d0d7ee | [
"MIT"
] | 1 | 2022-03-01T13:05:01.000Z | 2022-03-01T13:05:01.000Z | tests/test_package.py | j5api/j5-zoloto | fa521fedf2df28d134038481d22a1e38b0d0d7ee | [
"MIT"
] | 1 | 2022-01-20T22:33:21.000Z | 2022-01-20T22:33:21.000Z | """Test that the package works."""
from j5_zoloto import __version__
def test_package_version() -> None:
"""Test that we can read the package version."""
assert __version__ is not None
| 24.375 | 52 | 0.717949 | 28 | 195 | 4.607143 | 0.642857 | 0.124031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006289 | 0.184615 | 195 | 7 | 53 | 27.857143 | 0.805031 | 0.364103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
338c3853bd214405c01556422b471855391e45c2 | 6,338 | py | Python | blmath/geometry/primitives/test_polyline.py | lillekemiker/blmath | 817ebec258388e6136765a392972b0835cabce5b | [
"BSD-2-Clause"
] | null | null | null | blmath/geometry/primitives/test_polyline.py | lillekemiker/blmath | 817ebec258388e6136765a392972b0835cabce5b | [
"BSD-2-Clause"
] | null | null | null | blmath/geometry/primitives/test_polyline.py | lillekemiker/blmath | 817ebec258388e6136765a392972b0835cabce5b | [
"BSD-2-Clause"
] | null | null | null | import unittest
import numpy as np
from blmath.geometry import Polyline
class TestPolyline(unittest.TestCase):
def test_edges(self):
v = np.array([
[0., 0., 0.],
[1., 0., 0.],
[1., 1., 0.],
[1., 2., 0.],
[1., 3., 0.],
])
expected... | 29.207373 | 82 | 0.447618 | 796 | 6,338 | 3.407035 | 0.09799 | 0.04941 | 0.024336 | 0.147493 | 0.825221 | 0.798673 | 0.751475 | 0.72087 | 0.719395 | 0.679572 | 0 | 0.086463 | 0.374093 | 6,338 | 216 | 83 | 29.342593 | 0.597177 | 0.0142 | 0 | 0.697143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125714 | 1 | 0.045714 | false | 0 | 0.017143 | 0 | 0.068571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
33c7259aac51adfe31e625d8202c6ea34d08c5d7 | 7,217 | py | Python | wrappers/python/tests/anoncreds/test_prover_get_credentials_for_proof_req.py | sklump/indy-sdk | ee05a89ddf60b42f7483bebf2d89a936e12730df | [
"Apache-2.0"
] | 636 | 2017-05-25T07:45:43.000Z | 2022-03-23T22:30:34.000Z | wrappers/python/tests/anoncreds/test_prover_get_credentials_for_proof_req.py | Nick-1979/indy-sdk | e5f812e14962f0d51cf96f843033754ff841ce30 | [
"Apache-2.0"
] | 731 | 2017-05-29T07:15:08.000Z | 2022-03-31T07:55:58.000Z | wrappers/python/tests/anoncreds/test_prover_get_credentials_for_proof_req.py | Nick-1979/indy-sdk | e5f812e14962f0d51cf96f843033754ff841ce30 | [
"Apache-2.0"
] | 904 | 2017-05-25T07:45:49.000Z | 2022-03-31T07:43:31.000Z | import json
import pytest
from indy.anoncreds import prover_get_credentials_for_proof_req
# noinspection PyUnusedLocal
@pytest.mark.asyncio
async def test_prover_get_credentials_for_proof_req_works_for_revealed_attr(wallet_handle, prepopulated_wallet):
proof_req = {
"nonce": "123432421212",
"name... | 34.5311 | 120 | 0.576278 | 695 | 7,217 | 5.620144 | 0.097842 | 0.083973 | 0.138249 | 0.100102 | 0.927035 | 0.912442 | 0.878648 | 0.856119 | 0.856119 | 0.856119 | 0 | 0.036154 | 0.30248 | 7,217 | 208 | 121 | 34.697115 | 0.73977 | 0.022308 | 0 | 0.668639 | 0 | 0 | 0.206554 | 0 | 0 | 0 | 0 | 0 | 0.159763 | 1 | 0 | false | 0 | 0.017751 | 0 | 0.017751 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
33e89b6e2c8454fea1b353e54dc4a50c1f14b4b1 | 69 | py | Python | kaylee/contrib/frontends/flask_frontend/__init__.py | BasicWolf/archived-kaylee | 91e5c9025a525f3b0033b067d810a38c9e6be4d3 | [
"MIT"
] | 2 | 2018-02-18T09:52:23.000Z | 2018-03-04T06:23:15.000Z | kaylee/contrib/frontends/flask_frontend/__init__.py | BasicWolf/archived-kaylee | 91e5c9025a525f3b0033b067d810a38c9e6be4d3 | [
"MIT"
] | 6 | 2017-08-03T18:51:38.000Z | 2017-08-03T18:51:38.000Z | kaylee/contrib/frontends/flask_frontend/__init__.py | BasicWolf/archived-kaylee | 91e5c9025a525f3b0033b067d810a38c9e6be4d3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .flask_frontend import kaylee_blueprint
| 23 | 44 | 0.724638 | 9 | 69 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 0.130435 | 69 | 2 | 45 | 34.5 | 0.783333 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
33fa796e6d9ee07d9375698d72d7c91bc1e9dbb7 | 134 | py | Python | bsagr/__init__.py | safoex/bsagr | cf5a4a69102f702214b2fde6283db9c23b875e26 | [
"MIT"
] | 3 | 2020-03-20T14:49:16.000Z | 2020-04-11T17:44:39.000Z | bsagr/__init__.py | safoex/bsagr | cf5a4a69102f702214b2fde6283db9c23b875e26 | [
"MIT"
] | null | null | null | bsagr/__init__.py | safoex/bsagr | cf5a4a69102f702214b2fde6283db9c23b875e26 | [
"MIT"
] | null | null | null | from bsagr.bs_interface import BeliefStateSimple
from bsagr.aoevmdd import AOBS
from bsagr.tests.test_aoevmdd import RandomExploration | 44.666667 | 54 | 0.88806 | 18 | 134 | 6.5 | 0.611111 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08209 | 134 | 3 | 54 | 44.666667 | 0.95122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
1d4555a58d9de2ba1496b48ec19fd1241d89a3be | 15,887 | py | Python | test/test_search.py | ekristen/appcompatprocessor | 6c847937c5a836e2ce2fe2b915f213c345a3c389 | [
"Apache-2.0"
] | 152 | 2017-04-02T18:13:19.000Z | 2022-03-19T18:46:12.000Z | test/test_search.py | ekristen/appcompatprocessor | 6c847937c5a836e2ce2fe2b915f213c345a3c389 | [
"Apache-2.0"
] | 19 | 2017-05-03T13:48:06.000Z | 2020-08-18T16:20:25.000Z | test/test_search.py | ekristen/appcompatprocessor | 6c847937c5a836e2ce2fe2b915f213c345a3c389 | [
"Apache-2.0"
] | 26 | 2017-04-19T16:00:51.000Z | 2021-06-12T10:07:46.000Z | from __future__ import absolute_import
import logging
from unittest import TestCase
import settings
import sys, traceback
reload(sys)
sys.setdefaultencoding("utf-8")
import os
from AppCompatProcessor import main
import tempfile
import re, codecs
import appDB
import random
import string
from test.auxTest import build_fa... | 54.782759 | 166 | 0.620822 | 1,883 | 15,887 | 5.015932 | 0.1094 | 0.059291 | 0.031763 | 0.035574 | 0.8072 | 0.793118 | 0.786977 | 0.779142 | 0.773002 | 0.768343 | 0 | 0.013198 | 0.275068 | 15,887 | 289 | 167 | 54.972318 | 0.806894 | 0.093473 | 0 | 0.591623 | 0 | 0 | 0.089319 | 0.015467 | 0 | 0 | 0 | 0 | 0.115183 | 1 | 0.078534 | false | 0 | 0.068063 | 0 | 0.17801 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1d4808f8c779aae319d3ec8dd2d7518153690882 | 49 | py | Python | maxdone/__init__.py | leonardinius/maxdone.txt | a49b2ea93f9b6a674630c55a9cee8f1fb27dc658 | [
"MIT"
] | null | null | null | maxdone/__init__.py | leonardinius/maxdone.txt | a49b2ea93f9b6a674630c55a9cee8f1fb27dc658 | [
"MIT"
] | null | null | null | maxdone/__init__.py | leonardinius/maxdone.txt | a49b2ea93f9b6a674630c55a9cee8f1fb27dc658 | [
"MIT"
] | 3 | 2018-04-17T12:45:10.000Z | 2022-01-10T06:04:42.000Z | from api import ApiV1
from todo import MaxdoneTxt | 24.5 | 27 | 0.857143 | 8 | 49 | 5.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.142857 | 49 | 2 | 27 | 24.5 | 0.97619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
1d6342d744c600a0459887cbff177b08c779a683 | 253 | py | Python | Codewars/6kyu/fibonacci-reloaded/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | 7 | 2017-09-20T16:40:39.000Z | 2021-08-31T18:15:08.000Z | Codewars/6kyu/fibonacci-reloaded/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | Codewars/6kyu/fibonacci-reloaded/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | # Python - 3.6.0
Test.assert_equals(fib(1), 0, 'fib(1) failed')
Test.assert_equals(fib(2), 1, 'fib(2) failed')
Test.assert_equals(fib(3), 1, 'fib(3) failed')
Test.assert_equals(fib(4), 2, 'fib(4) failed')
Test.assert_equals(fib(5), 3, 'fib(5) failed')
| 31.625 | 46 | 0.667984 | 49 | 253 | 3.346939 | 0.265306 | 0.304878 | 0.487805 | 0.579268 | 0.609756 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 0.098814 | 253 | 7 | 47 | 36.142857 | 0.640351 | 0.055336 | 0 | 0 | 0 | 0 | 0.274262 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d51f26ecb91b1daa48f2c55fea292b46390b0ec1 | 139 | py | Python | cl_inn/pos/admin.py | Ibrahem3amer/pos_api | af758680c583b85f87ed2fba985b5d2955ebdb23 | [
"MIT"
] | null | null | null | cl_inn/pos/admin.py | Ibrahem3amer/pos_api | af758680c583b85f87ed2fba985b5d2955ebdb23 | [
"MIT"
] | null | null | null | cl_inn/pos/admin.py | Ibrahem3amer/pos_api | af758680c583b85f87ed2fba985b5d2955ebdb23 | [
"MIT"
] | null | null | null | from django.contrib import admin
from pos.models import *
admin.site.register(Shop)
admin.site.register(Receipt)
admin.site.register(Item) | 23.166667 | 32 | 0.81295 | 21 | 139 | 5.380952 | 0.571429 | 0.238938 | 0.451327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079137 | 139 | 6 | 33 | 23.166667 | 0.882813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
d5a4332d2e8d582e6cd2a7bb4c545c4a75442888 | 645 | py | Python | {{cookiecutter.app_name}}/management/commands/get_{{cookiecutter.provider_name}}_events.py | Feverup/cookiecutter-provider-template | 108a516a8c0e124498802ca7881ab05e0a00494f | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.app_name}}/management/commands/get_{{cookiecutter.provider_name}}_events.py | Feverup/cookiecutter-provider-template | 108a516a8c0e124498802ca7881ab05e0a00494f | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.app_name}}/management/commands/get_{{cookiecutter.provider_name}}_events.py | Feverup/cookiecutter-provider-template | 108a516a8c0e124498802ca7881ab05e0a00494f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This command generates and stores {{cookiecutter.provider_name_capitalized}} events from the {{cookiecutter.provider_name_capitalized}} client.
"""
from __future__ import absolute_import, unicode_literals, print_function
from django.core.management.base import BaseCommand
from {{cookiec... | 32.25 | 143 | 0.770543 | 72 | 645 | 6.638889 | 0.583333 | 0.209205 | 0.251046 | 0.366109 | 0.34728 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001742 | 0.110078 | 645 | 19 | 144 | 33.947368 | 0.83101 | 0.032558 | 0 | 0 | 1 | 0 | 0.127389 | 0.089172 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.428571 | null | null | 0.142857 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
638ea0962a31e4829230a7c5450fd9f01cd59d7a | 23,679 | py | Python | src/PyMIPS/tests/test_commands.py | shenganzhang/Py-MI-PS | 2d22327c75bac1b58a4804a61e7a703ecc5ba978 | [
"MIT"
] | 3 | 2019-05-14T21:24:59.000Z | 2021-08-04T01:43:22.000Z | src/PyMIPS/tests/test_commands.py | shenganzhang/Py-MI-PS | 2d22327c75bac1b58a4804a61e7a703ecc5ba978 | [
"MIT"
] | null | null | null | src/PyMIPS/tests/test_commands.py | shenganzhang/Py-MI-PS | 2d22327c75bac1b58a4804a61e7a703ecc5ba978 | [
"MIT"
] | 2 | 2021-08-04T01:43:25.000Z | 2021-11-23T06:54:17.000Z | try:
from src.PyMIPS.Datastructure.memory import Memory
from src.PyMIPS.Datastructure.instruction_types import (
IType,
JType,
RType,
BaseCommand,
DataStack,
DataHeap,
)
from src.PyMIPS.Datastructure.data_model import RegisterPool, ProgramStack
except:
... | 33.827143 | 88 | 0.579712 | 2,789 | 23,679 | 4.659735 | 0.079957 | 0.155817 | 0.23892 | 0.105263 | 0.834026 | 0.789089 | 0.762311 | 0.732918 | 0.654509 | 0.635888 | 0 | 0.054264 | 0.278559 | 23,679 | 699 | 89 | 33.875536 | 0.706492 | 0.005068 | 0 | 0.639683 | 0 | 0 | 0.048711 | 0 | 0 | 0 | 0.002212 | 0.001431 | 0.103175 | 1 | 0.090476 | false | 0.001587 | 0.011111 | 0 | 0.106349 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
63c0a6f3a06b85aac9849640aa8896d354f6d625 | 21 | py | Python | datasets/SYN/__init__.py | gjy3035/WSAL_released | fad6490d032eb37dfb62bc0a1eb30fc062dc27a4 | [
"MIT"
] | 22 | 2019-08-19T09:58:29.000Z | 2021-11-15T09:35:17.000Z | datasets/SYN/__init__.py | gjy3035/WSAL_released | fad6490d032eb37dfb62bc0a1eb30fc062dc27a4 | [
"MIT"
] | null | null | null | datasets/SYN/__init__.py | gjy3035/WSAL_released | fad6490d032eb37dfb62bc0a1eb30fc062dc27a4 | [
"MIT"
] | 4 | 2020-07-03T01:08:09.000Z | 2021-12-02T16:02:54.000Z | from .SYN import SYN
| 10.5 | 20 | 0.761905 | 4 | 21 | 4 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 21 | 1 | 21 | 21 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
894635ee30e81c6c3e9aca997c51544619df0db2 | 39 | py | Python | qiwi_handler/qiwi_handler/__init__.py | bezumnui/qiwi_handler | 9562b1a8c8fcc1910dbc722278cb6f5af313fa02 | [
"MIT"
] | null | null | null | qiwi_handler/qiwi_handler/__init__.py | bezumnui/qiwi_handler | 9562b1a8c8fcc1910dbc722278cb6f5af313fa02 | [
"MIT"
] | null | null | null | qiwi_handler/qiwi_handler/__init__.py | bezumnui/qiwi_handler | 9562b1a8c8fcc1910dbc722278cb6f5af313fa02 | [
"MIT"
] | null | null | null | from qiwi_handler.client import Client
| 19.5 | 38 | 0.871795 | 6 | 39 | 5.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 39 | 1 | 39 | 39 | 0.942857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
895af0b6106aa6243beb4a32752d3895363a5090 | 84 | py | Python | poc/gateway/celeryconfig.py | timgrossmann/SecurityCAT | 8a27fe32c7e56e10acb1ac66dda3fea6dd99c1aa | [
"Apache-2.0"
] | 4 | 2020-08-05T20:18:25.000Z | 2022-03-30T15:44:38.000Z | poc/gateway/celeryconfig.py | timgrossmann/SecurityCAT | 8a27fe32c7e56e10acb1ac66dda3fea6dd99c1aa | [
"Apache-2.0"
] | null | null | null | poc/gateway/celeryconfig.py | timgrossmann/SecurityCAT | 8a27fe32c7e56e10acb1ac66dda3fea6dd99c1aa | [
"Apache-2.0"
] | 1 | 2020-11-17T21:22:22.000Z | 2020-11-17T21:22:22.000Z | broker_url = "redis://localhost:6379/0"
result_backend = "redis://localhost:6379/0"
| 28 | 43 | 0.738095 | 12 | 84 | 5 | 0.666667 | 0.466667 | 0.6 | 0.633333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 0.071429 | 84 | 2 | 44 | 42 | 0.641026 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
895be4a922ec26ecbcbff9d422c1b46c0bb3e8a9 | 17,357 | py | Python | EMCCDCalibration.py | ryand-LANL/EMCCD-calibration | 7af67192980a6b044bc8e54c4cd19544c075bb43 | [
"BSD-3-Clause"
] | 1 | 2021-12-07T21:20:40.000Z | 2021-12-07T21:20:40.000Z | EMCCDCalibration.py | fatmac78/EMCCD-calibration | 7af67192980a6b044bc8e54c4cd19544c075bb43 | [
"BSD-3-Clause"
] | null | null | null | EMCCDCalibration.py | fatmac78/EMCCD-calibration | 7af67192980a6b044bc8e54c4cd19544c075bb43 | [
"BSD-3-Clause"
] | 1 | 2021-12-07T21:20:28.000Z | 2021-12-07T21:20:28.000Z | import tensorflow as tf
from NoiseModelWrapper import LogLikelihood
from NoiseModel_TFv1 import NoiseModel # Tensorflow v2, using v1 compatibility (eager execution disabled)
import pymc3 as pm
import theano.tensor as tt
import numpy as np
from config import * # load the default configuration settings, provides variab... | 49.031073 | 141 | 0.540243 | 2,166 | 17,357 | 4.125115 | 0.101108 | 0.071517 | 0.020369 | 0.023279 | 0.796419 | 0.794964 | 0.787577 | 0.767543 | 0.760492 | 0.739564 | 0 | 0.011946 | 0.344069 | 17,357 | 353 | 142 | 49.169972 | 0.772859 | 0.106758 | 0 | 0.704918 | 0 | 0 | 0.16681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016393 | false | 0 | 0.028689 | 0 | 0.061475 | 0.02459 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
897de39dd9b3188cda125cdc9fd3f659685ebf94 | 134 | py | Python | bomeba0/__init__.py | aloctavodia/bomeba0 | e212986d8ee60be1da91d63a7a889db14ec851c3 | [
"Apache-2.0"
] | null | null | null | bomeba0/__init__.py | aloctavodia/bomeba0 | e212986d8ee60be1da91d63a7a889db14ec851c3 | [
"Apache-2.0"
] | 28 | 2017-06-01T15:46:33.000Z | 2021-07-01T18:28:36.000Z | bomeba0/__init__.py | aloctavodia/bomeba0 | e212986d8ee60be1da91d63a7a889db14ec851c3 | [
"Apache-2.0"
] | 6 | 2017-09-30T13:26:08.000Z | 2022-02-13T10:01:18.000Z | from .molecules import *
from .visualization.plots import *
from .superposition import *
from .utils import *
from .external import *
| 22.333333 | 34 | 0.768657 | 16 | 134 | 6.4375 | 0.5 | 0.38835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 134 | 5 | 35 | 26.8 | 0.903509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
89b7f8f2a4ea46c61effb1142edc8fb810b04447 | 186 | py | Python | tests/test_passlock.py | clamytoe/passlock | c05e32462fbd164272baa715d7f26bbac912e423 | [
"Apache-2.0"
] | 1 | 2020-02-15T12:25:40.000Z | 2020-02-15T12:25:40.000Z | tests/test_passlock.py | clamytoe/passlock | c05e32462fbd164272baa715d7f26bbac912e423 | [
"Apache-2.0"
] | null | null | null | tests/test_passlock.py | clamytoe/passlock | c05e32462fbd164272baa715d7f26bbac912e423 | [
"Apache-2.0"
] | null | null | null | """
test_passlock.py
Tests for passlock.
"""
import logging
from passlock import __version__
logging.disable(logging.CRITICAL)
def test_version():
assert __version__ == '0.1.4'
| 12.4 | 33 | 0.736559 | 24 | 186 | 5.291667 | 0.666667 | 0.220472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018987 | 0.150538 | 186 | 14 | 34 | 13.285714 | 0.78481 | 0.198925 | 0 | 0 | 0 | 0 | 0.035461 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | true | 0.2 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
9872834c6871035ca3422fed47a8276629ea7d6b | 102 | py | Python | synthetic_signs/__init__.py | moabitcoin/signfeld | 55c56c707626261bf25f99e4c048492041098ea1 | [
"MIT"
] | 7 | 2020-03-26T11:56:03.000Z | 2022-03-17T19:46:09.000Z | synthetic_signs/__init__.py | moabitcoin/Signfeld | 55c56c707626261bf25f99e4c048492041098ea1 | [
"MIT"
] | null | null | null | synthetic_signs/__init__.py | moabitcoin/Signfeld | 55c56c707626261bf25f99e4c048492041098ea1 | [
"MIT"
] | 3 | 2020-03-14T05:53:33.000Z | 2021-12-09T13:07:04.000Z | from . import augmentation
from . import image_composition
from . import blending
from . import utils
| 20.4 | 31 | 0.803922 | 13 | 102 | 6.230769 | 0.538462 | 0.493827 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156863 | 102 | 4 | 32 | 25.5 | 0.94186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
98783b01395f10299b82ae03f0fb96186cb79afc | 243 | py | Python | pdf_line/services/transformation.py | NNeitman/pdf_line | d985f611d3324052929235937da91da3b7a9c921 | [
"MIT"
] | null | null | null | pdf_line/services/transformation.py | NNeitman/pdf_line | d985f611d3324052929235937da91da3b7a9c921 | [
"MIT"
] | null | null | null | pdf_line/services/transformation.py | NNeitman/pdf_line | d985f611d3324052929235937da91da3b7a9c921 | [
"MIT"
] | null | null | null | from ..utils.operation import (
OperationRequest,
OperationResult,
)
def combine_documents(pdf_request: OperationRequest) -> OperationResult:
pass
def split_documents(pdf_request: OperationRequest) -> OperationResult:
pass
| 18.692308 | 72 | 0.761317 | 22 | 243 | 8.227273 | 0.590909 | 0.513812 | 0.209945 | 0.38674 | 0.596685 | 0.596685 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160494 | 243 | 12 | 73 | 20.25 | 0.887255 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.125 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
988b47ddbe3b21ed6efcaad88f4352795c34296e | 4,945 | py | Python | capstoneproject/tests/test_ui.py | athrun22/content-rating | 25ccdb02edd18d0118d60fce609b60baadef257b | [
"Apache-2.0"
] | 1 | 2018-02-08T01:50:37.000Z | 2018-02-08T01:50:37.000Z | capstoneproject/tests/test_ui.py | jwillikers/content-rating | 25ccdb02edd18d0118d60fce609b60baadef257b | [
"Apache-2.0"
] | null | null | null | capstoneproject/tests/test_ui.py | jwillikers/content-rating | 25ccdb02edd18d0118d60fce609b60baadef257b | [
"Apache-2.0"
] | null | null | null | from django.contrib.staticfiles.testing import StaticLiveServerTestCase
from selenium.webdriver.chrome.webdriver import WebDriver
from django.test import Client
from django.contrib.auth.models import User
import re
class TestUI(StaticLiveServerTestCase):
@classmethod
def setUpClass(cls):
cls.user =... | 41.208333 | 102 | 0.687159 | 628 | 4,945 | 5.149682 | 0.154459 | 0.12987 | 0.089054 | 0.128015 | 0.740569 | 0.740569 | 0.730056 | 0.730056 | 0.730056 | 0.665121 | 0 | 0.01291 | 0.18544 | 4,945 | 119 | 103 | 41.554622 | 0.78997 | 0.010516 | 0 | 0.532609 | 0 | 0 | 0.131466 | 0.020037 | 0 | 0 | 0 | 0 | 0.108696 | 1 | 0.130435 | false | 0.152174 | 0.054348 | 0 | 0.195652 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
7f3d07491c1266f7ed43661690966094c0df7096 | 125 | py | Python | arteryfe/__init__.py | akdiem/bloodflow | b960c77b1b5430f2ef787e962108d1502d3ecb46 | [
"BSD-3-Clause"
] | 12 | 2018-11-01T17:10:13.000Z | 2022-03-18T06:04:25.000Z | arteryfe/__init__.py | akdiem/bloodflow | b960c77b1b5430f2ef787e962108d1502d3ecb46 | [
"BSD-3-Clause"
] | 4 | 2018-12-12T13:47:14.000Z | 2021-04-08T16:01:34.000Z | arteryfe/__init__.py | syverda/bloodflow | b960c77b1b5430f2ef787e962108d1502d3ecb46 | [
"BSD-3-Clause"
] | 11 | 2019-07-25T08:20:53.000Z | 2021-12-30T00:03:04.000Z | from arteryfe.utils import *
from arteryfe.param_parser import ParamParser
from arteryfe.artery_network import ArteryNetwork
| 31.25 | 49 | 0.872 | 16 | 125 | 6.6875 | 0.625 | 0.336449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096 | 125 | 3 | 50 | 41.666667 | 0.946903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
7f9677f35ddc04ae0a3d673647008681e832ac11 | 45 | py | Python | calculator/__init__.py | kamilcieslik/test_house_price_lib | 98a9c9ada05b7cac1e9b835cc15031619cfa8e13 | [
"MIT"
] | null | null | null | calculator/__init__.py | kamilcieslik/test_house_price_lib | 98a9c9ada05b7cac1e9b835cc15031619cfa8e13 | [
"MIT"
] | null | null | null | calculator/__init__.py | kamilcieslik/test_house_price_lib | 98a9c9ada05b7cac1e9b835cc15031619cfa8e13 | [
"MIT"
] | null | null | null | from .util import *
from .exception import *
| 15 | 24 | 0.733333 | 6 | 45 | 5.5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177778 | 45 | 2 | 25 | 22.5 | 0.891892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
f689507a2755ea0aabcbca4feaf5256032afff72 | 95 | py | Python | inscrawler/secret.py | pphilio/face_recognition | 58ee9465b71193f0469b45f0ea2b0792b578cb98 | [
"MIT"
] | 1 | 2020-04-22T21:10:12.000Z | 2020-04-22T21:10:12.000Z | inscrawler/secret.py | pphilio/face_recognition | 58ee9465b71193f0469b45f0ea2b0792b578cb98 | [
"MIT"
] | 1 | 2021-04-19T15:00:08.000Z | 2021-04-19T15:00:08.000Z | inscrawler/secret.py | pphilio/face_recognition | 58ee9465b71193f0469b45f0ea2b0792b578cb98 | [
"MIT"
] | 1 | 2020-01-05T14:22:54.000Z | 2020-01-05T14:22:54.000Z | import os
username = os.environ.get('USERNAME', '')
password = os.environ.get('PASSWORD', '')
| 19 | 41 | 0.673684 | 12 | 95 | 5.333333 | 0.5 | 0.28125 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115789 | 95 | 4 | 42 | 23.75 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0.168421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 6 |
f6e16e820d2ab28798a118dd640694daf45e614b | 47 | py | Python | core/__init__.py | AmazingRoad/Colaboratory | 11ae281a83aac5eb3de93bac9ea953412808af92 | [
"MIT"
] | null | null | null | core/__init__.py | AmazingRoad/Colaboratory | 11ae281a83aac5eb3de93bac9ea953412808af92 | [
"MIT"
] | null | null | null | core/__init__.py | AmazingRoad/Colaboratory | 11ae281a83aac5eb3de93bac9ea953412808af92 | [
"MIT"
] | null | null | null | from .lenet import *
from .GTSRBloader import * | 23.5 | 26 | 0.765957 | 6 | 47 | 6 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148936 | 47 | 2 | 26 | 23.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
f6ed9fd1ba0f4ba06b38404fcaa848f64bea9e82 | 161 | py | Python | huaweicloud-sdk-cloudtest/v1/exception_handler.py | NQLoong/huaweicloud-sdk-python-v3 | 677944a0b722147c6e105c53df9110724d64152a | [
"Apache-2.0"
] | 64 | 2020-06-12T07:05:07.000Z | 2022-03-30T03:32:50.000Z | huaweicloud-sdk-cloudtest/v1/exception_handler.py | mawenbo-huawei/huaweicloud-sdk-python-v3 | 677944a0b722147c6e105c53df9110724d64152a | [
"Apache-2.0"
] | 11 | 2020-07-06T07:56:54.000Z | 2022-01-11T11:14:40.000Z | huaweicloud-sdk-cloudtest/v1/exception_handler.py | mawenbo-huawei/huaweicloud-sdk-python-v3 | 677944a0b722147c6e105c53df9110724d64152a | [
"Apache-2.0"
] | 24 | 2020-06-08T11:42:13.000Z | 2022-03-04T06:44:08.000Z | # -*- coding: utf-8 -*-
import json
from huaweicloudsdkcore.exceptions import exceptions
def handle_exception(response_body):
return exceptions.SdkError() | 20.125 | 52 | 0.770186 | 18 | 161 | 6.777778 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007143 | 0.130435 | 161 | 8 | 53 | 20.125 | 0.864286 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
63e1a6e486f42a69b88134ef2f8cf8ea70a1da91 | 26 | py | Python | camper/handlers/admin/__init__.py | mrtopf/camper | 7016539f92202bbea608c6d53ce19097d4ad931d | [
"MIT"
] | 13 | 2016-03-13T02:33:39.000Z | 2021-04-01T13:09:12.000Z | camper/handlers/admin/__init__.py | comlounge/camper | 7016539f92202bbea608c6d53ce19097d4ad931d | [
"MIT"
] | 122 | 2016-03-10T09:28:09.000Z | 2021-09-07T23:49:05.000Z | camper/handlers/admin/__init__.py | mrtopf/camper | 7016539f92202bbea608c6d53ce19097d4ad931d | [
"MIT"
] | 5 | 2017-01-11T22:00:57.000Z | 2020-04-26T14:03:32.000Z | import index
import pages
| 8.666667 | 12 | 0.846154 | 4 | 26 | 5.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 26 | 2 | 13 | 13 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
63f2c20fc7cbd9421ba7c395885299481cbe6ca6 | 107 | py | Python | TBS/b2c/api/api.py | v1ct0r5u3n/TBS | 459cd7c971f6aab7bd5f4f8d1e0788b90f34e772 | [
"Apache-2.0"
] | null | null | null | TBS/b2c/api/api.py | v1ct0r5u3n/TBS | 459cd7c971f6aab7bd5f4f8d1e0788b90f34e772 | [
"Apache-2.0"
] | null | null | null | TBS/b2c/api/api.py | v1ct0r5u3n/TBS | 459cd7c971f6aab7bd5f4f8d1e0788b90f34e772 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from jewelry.models import MerchandiseRecord
def create_order(customer):
pass
| 11.888889 | 44 | 0.719626 | 13 | 107 | 5.846154 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0.158879 | 107 | 8 | 45 | 13.375 | 0.833333 | 0.196262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
d620a4234b73a31b31b2e53947e11a7ddd2d2757 | 49 | py | Python | src/py2star/tokenizers/__init__.py | la-luo/py2star | 5664a1eaed6940eb1b9c9d2dd3448001d972f356 | [
"Apache-2.0"
] | 2 | 2021-07-07T22:25:46.000Z | 2021-11-16T19:13:16.000Z | src/py2star/tokenizers/__init__.py | la-luo/py2star | 5664a1eaed6940eb1b9c9d2dd3448001d972f356 | [
"Apache-2.0"
] | 17 | 2020-11-02T19:11:11.000Z | 2021-12-29T16:36:06.000Z | src/py2star/tokenizers/__init__.py | la-luo/py2star | 5664a1eaed6940eb1b9c9d2dd3448001d972f356 | [
"Apache-2.0"
] | 3 | 2021-04-16T16:57:40.000Z | 2021-09-07T16:03:48.000Z | from .tokenize_signature import find_definitions
| 24.5 | 48 | 0.897959 | 6 | 49 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 49 | 1 | 49 | 49 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
d63b118aea4ef719a08288ebdb75753560343b74 | 5,610 | py | Python | pyjob/tests/test_local.py | fsimkovic/pyjob | c01e6e6e6757b47f3937ee5709f2c4de17f79b42 | [
"MIT"
] | 8 | 2017-06-17T13:05:47.000Z | 2020-02-06T08:54:55.000Z | pyjob/tests/test_local.py | fsimkovic/pyjob | c01e6e6e6757b47f3937ee5709f2c4de17f79b42 | [
"MIT"
] | 40 | 2017-06-04T10:40:52.000Z | 2020-03-14T22:16:36.000Z | pyjob/tests/test_local.py | fsimkovic/pyjob | c01e6e6e6757b47f3937ee5709f2c4de17f79b42 | [
"MIT"
] | 3 | 2017-09-24T15:25:32.000Z | 2020-02-03T14:23:24.000Z | import os
import sys
import time
import pytest
from pyjob.exception import PyJobError, PyJobTaskLockedError
from pyjob.local import CPU_COUNT, LocalTask
@pytest.mark.skipif(pytest.on_windows, reason="Deadlock on Windows")
class TestLocalTaskTermination(object):
def test_terminate_1(self):
scripts = [pyte... | 39.230769 | 83 | 0.640642 | 799 | 5,610 | 4.365457 | 0.106383 | 0.100631 | 0.055046 | 0.060206 | 0.869839 | 0.861812 | 0.825115 | 0.812787 | 0.802466 | 0.799885 | 0 | 0.02666 | 0.251159 | 5,610 | 142 | 84 | 39.507042 | 0.803618 | 0 | 0 | 0.637097 | 0 | 0 | 0.009091 | 0 | 0 | 0 | 0 | 0 | 0.08871 | 1 | 0.112903 | false | 0 | 0.048387 | 0 | 0.177419 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d643b8eee5d19ad6a2cc04c5b9d70ddfd17f00c4 | 18,899 | py | Python | src/ot_sparse_projection/ot_sparse_projection.py | arolet/ot-sparse-projection | 10952b9d0565a0a2b3476c28f2b8cef196fbc2c3 | [
"MIT"
] | null | null | null | src/ot_sparse_projection/ot_sparse_projection.py | arolet/ot-sparse-projection | 10952b9d0565a0a2b3476c28f2b8cef196fbc2c3 | [
"MIT"
] | null | null | null | src/ot_sparse_projection/ot_sparse_projection.py | arolet/ot-sparse-projection | 10952b9d0565a0a2b3476c28f2b8cef196fbc2c3 | [
"MIT"
] | 1 | 2021-06-03T16:19:55.000Z | 2021-06-03T16:19:55.000Z | import numpy as np
from ot_sparse_projection import proximal, optim, ot_ground_metric, log_utils
from ot_sparse_projection.histograms import entropy
TOL = 1e-8
EPS = 1e-15
MAX_ITER = 10000
class OtProjection(object):
""" An abstract adapter class for computing optimal transport regularized projection of graysca... | 50.940701 | 121 | 0.648606 | 2,440 | 18,899 | 4.832377 | 0.103689 | 0.075312 | 0.050208 | 0.011873 | 0.782376 | 0.767959 | 0.751505 | 0.740056 | 0.735561 | 0.731405 | 0 | 0.006816 | 0.270226 | 18,899 | 370 | 122 | 51.078378 | 0.8481 | 0.409281 | 0 | 0.467836 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005848 | 1 | 0.210526 | false | 0.023392 | 0.017544 | 0.05848 | 0.450292 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d64f8c66862c37a612978cdba974c455b22142fd | 178 | py | Python | seisflows/plugins/optimize/__init__.py | libcy/seisflows | 6a90d4aa442288b95e9cd7602588619813fe62fb | [
"BSD-2-Clause"
] | 5 | 2021-11-13T10:00:59.000Z | 2022-03-19T14:30:44.000Z | seisflows/plugins/optimize/__init__.py | happyhousehold/seisflows | 6a90d4aa442288b95e9cd7602588619813fe62fb | [
"BSD-2-Clause"
] | null | null | null | seisflows/plugins/optimize/__init__.py | happyhousehold/seisflows | 6a90d4aa442288b95e9cd7602588619813fe62fb | [
"BSD-2-Clause"
] | 1 | 2021-09-20T13:58:19.000Z | 2021-09-20T13:58:19.000Z |
# used by the OPTIMIZE.COMPUTE_DIRECTION class and specified by the OPTIMIZE parameter
from LBFGS import LBFGS
from LCG import LCG
from NLCG import NLCG
from PLCG import PLCG
| 19.777778 | 86 | 0.814607 | 29 | 178 | 4.965517 | 0.551724 | 0.069444 | 0.180556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174157 | 178 | 8 | 87 | 22.25 | 0.979592 | 0.47191 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
c385f42fcae581580cdd8d290d64401ca79d8fd6 | 11,518 | py | Python | tests/extensions/artificial_intelligence/intents/test_intents_extensions.py | chr0m1ng/blip-sdk-js | 74f404a3ef048a100cc330f78a9751572e31fb0b | [
"MIT"
] | null | null | null | tests/extensions/artificial_intelligence/intents/test_intents_extensions.py | chr0m1ng/blip-sdk-js | 74f404a3ef048a100cc330f78a9751572e31fb0b | [
"MIT"
] | 9 | 2021-05-27T21:08:23.000Z | 2021-06-14T20:10:10.000Z | tests/extensions/artificial_intelligence/intents/test_intents_extensions.py | chr0m1ng/blip-sdk-python | 74f404a3ef048a100cc330f78a9751572e31fb0b | [
"MIT"
] | null | null | null | from lime_python import Command
from pytest import fixture, mark
from pytest_mock import MockerFixture
from src import IntentsExtension
from ....async_mock import async_return
AI_TO = 'postmaster@ai.msging.net'
class TestIntentsExtension:
@fixture
def target(self, mocker: MockerFixture) -> IntentsExtension:... | 27.754217 | 94 | 0.579267 | 1,166 | 11,518 | 5.45283 | 0.078902 | 0.132117 | 0.054262 | 0.041837 | 0.872444 | 0.851368 | 0.824001 | 0.819912 | 0.769424 | 0.726644 | 0 | 0.01081 | 0.333391 | 11,518 | 414 | 95 | 27.821256 | 0.81727 | 0.02457 | 0 | 0.650307 | 0 | 0 | 0.097936 | 0.067644 | 0 | 0 | 0 | 0 | 0.042945 | 1 | 0.003067 | false | 0 | 0.015337 | 0 | 0.021472 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c389b5828f9528fc6bf8e7c2ad32901dc2b874ee | 25 | py | Python | sudachirs/__init__.py | faisalron/sudachirs-python | 7bdc7ef0c21e50f1b34ab048ca997cd4bef1e70e | [
"MIT"
] | 9 | 2020-07-06T01:52:00.000Z | 2021-09-29T10:34:30.000Z | sudachirs/__init__.py | faisalron/sudachirs-python | 7bdc7ef0c21e50f1b34ab048ca997cd4bef1e70e | [
"MIT"
] | null | null | null | sudachirs/__init__.py | faisalron/sudachirs-python | 7bdc7ef0c21e50f1b34ab048ca997cd4bef1e70e | [
"MIT"
] | null | null | null | from .sudachirs import *
| 12.5 | 24 | 0.76 | 3 | 25 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 25 | 1 | 25 | 25 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
c3918e67eaac832367c77286079ed09dd23e0501 | 24 | py | Python | etfl/debugging/__init__.py | CRISPRestaurant/AID-ETFL | 477d612a487f2d177932436aee6d1a2a6576f72c | [
"Apache-2.0"
] | 12 | 2019-03-28T16:45:13.000Z | 2022-02-02T09:02:20.000Z | etfl/debugging/__init__.py | CRISPRestaurant/AID-ETFL | 477d612a487f2d177932436aee6d1a2a6576f72c | [
"Apache-2.0"
] | 5 | 2019-04-24T12:21:46.000Z | 2021-05-20T18:45:11.000Z | etfl/debugging/__init__.py | CRISPRestaurant/AID-ETFL | 477d612a487f2d177932436aee6d1a2a6576f72c | [
"Apache-2.0"
] | 13 | 2019-03-30T02:03:34.000Z | 2022-03-01T23:50:15.000Z | from .debugging import * | 24 | 24 | 0.791667 | 3 | 24 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 24 | 1 | 24 | 24 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
c39686a5cfdda409af0bae58c1ceaf11df5b9959 | 14,647 | py | Python | tests/test_scripts.py | fenak/amazon-detective-multiaccount-scripts | f8f44df1784928dd12d38e09a6fbc4852d41ee99 | [
"Apache-2.0"
] | 28 | 2020-01-23T20:39:43.000Z | 2022-03-03T17:44:20.000Z | tests/test_scripts.py | fenak/amazon-detective-multiaccount-scripts | f8f44df1784928dd12d38e09a6fbc4852d41ee99 | [
"Apache-2.0"
] | 8 | 2020-01-24T22:12:20.000Z | 2021-11-03T02:40:24.000Z | tests/test_scripts.py | fenak/amazon-detective-multiaccount-scripts | f8f44df1784928dd12d38e09a6fbc4852d41ee99 | [
"Apache-2.0"
] | 29 | 2020-01-23T20:43:57.000Z | 2022-01-17T11:07:16.000Z | #!/usr/bin/env python3
import sys
sys.path.append("..")
import enableDetective
import disableDetective
import pytest
from unittest.mock import Mock
###
# The purpose of this test is to make sure our internal method _master_account_type() deals with master accounts correctly and the rest of the inputs are parsed corre... | 59.060484 | 250 | 0.707927 | 1,826 | 14,647 | 5.516977 | 0.115005 | 0.030375 | 0.018066 | 0.022335 | 0.860135 | 0.817451 | 0.796903 | 0.772087 | 0.766131 | 0.736947 | 0 | 0.098228 | 0.140916 | 14,647 | 247 | 251 | 59.299595 | 0.702376 | 0.186864 | 0 | 0.439394 | 0 | 0.151515 | 0.416012 | 0.094175 | 0 | 0 | 0 | 0 | 0.340909 | 1 | 0.068182 | false | 0 | 0.037879 | 0 | 0.106061 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c3b7b54d1c088e8c51a1e8815a367fa0b5cdba24 | 19 | py | Python | pbase_old/__init__.py | Impavidity/pinfrastructure | b5577fe1e140e0b360aec2834349ba87647eb000 | [
"MIT"
] | 10 | 2017-12-04T03:50:50.000Z | 2020-09-25T07:24:32.000Z | pbase_old/__init__.py | Impavidity/pinfrastructure | b5577fe1e140e0b360aec2834349ba87647eb000 | [
"MIT"
] | 8 | 2018-07-14T09:45:38.000Z | 2018-09-17T20:56:52.000Z | pbase_old/__init__.py | Impavidity/pinfrastructure | b5577fe1e140e0b360aec2834349ba87647eb000 | [
"MIT"
] | 1 | 2017-11-24T18:31:53.000Z | 2017-11-24T18:31:53.000Z | from pbase import * | 19 | 19 | 0.789474 | 3 | 19 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 19 | 1 | 19 | 19 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
c3f4ae7686b29f9451603504e8beb493a13bc14f | 585 | py | Python | app/infrastructure/common/filters/operators.py | francojposa/aiohttp-postgres-CRUD | d58c2cca4752195c6d3ad7e4229598c83487511b | [
"MIT"
] | 5 | 2019-10-18T22:08:24.000Z | 2020-02-08T12:11:58.000Z | app/infrastructure/common/filters/operators.py | francoposa/aiokea | d58c2cca4752195c6d3ad7e4229598c83487511b | [
"MIT"
] | null | null | null | app/infrastructure/common/filters/operators.py | francoposa/aiokea | d58c2cca4752195c6d3ad7e4229598c83487511b | [
"MIT"
] | null | null | null | from enum import Enum
EQ = "eq" # equal to
NE = "ne" # not equal to
GT = "gt" # greater than
GTE = "gte" # greater than or equal to
LT = "lt" # less than
LTE = "lte" # less than or equal to
IN = "in" # inclusion operator
class FilterOperators(Enum):
EQ = EQ # equal to
NE = NE # not equal to
GT =... | 24.375 | 55 | 0.601709 | 92 | 585 | 3.815217 | 0.326087 | 0.159544 | 0.125356 | 0.148148 | 0.717949 | 0.717949 | 0.717949 | 0.717949 | 0.717949 | 0.717949 | 0 | 0 | 0.304274 | 585 | 23 | 56 | 25.434783 | 0.862408 | 0.377778 | 0 | 0 | 0 | 0 | 0.045845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0.052632 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
7f1ed704b1a62eb1b9a140934be8abfd2a552a16 | 19,794 | py | Python | torch/fx/experimental/fx2trt/converter/vanilla_converter.py | meganhumhrey/pytorch | 41054f2ab5bb39d28a3eb8497f1a65b42385a996 | [
"Intel"
] | 7 | 2021-05-29T16:31:51.000Z | 2022-02-21T18:52:25.000Z | torch/fx/experimental/fx2trt/converter/vanilla_converter.py | meganhumhrey/pytorch | 41054f2ab5bb39d28a3eb8497f1a65b42385a996 | [
"Intel"
] | 1 | 2021-05-31T02:20:29.000Z | 2021-05-31T02:20:29.000Z | torch/fx/experimental/fx2trt/converter/vanilla_converter.py | meganhumhrey/pytorch | 41054f2ab5bb39d28a3eb8497f1a65b42385a996 | [
"Intel"
] | 1 | 2021-06-21T14:41:30.000Z | 2021-06-21T14:41:30.000Z | import operator
import torch
import tensorrt as trt
import numpy as np
from torch.fx.experimental.fx2trt.fx2trt import tensorrt_converter, torch_dtype_to_trt
def process_attr(submod: torch.nn.Module, name: str, size: int):
val = getattr(submod, name)
if not isinstance(val, tuple):
val = (val,) * size... | 33.549153 | 123 | 0.686875 | 2,696 | 19,794 | 4.839021 | 0.082344 | 0.05335 | 0.038786 | 0.020926 | 0.833206 | 0.798866 | 0.750805 | 0.739 | 0.709566 | 0.685344 | 0 | 0.011431 | 0.213297 | 19,794 | 589 | 124 | 33.606112 | 0.826355 | 0.051177 | 0 | 0.614833 | 0 | 0 | 0.116083 | 0 | 0 | 0 | 0 | 0.001698 | 0.033493 | 1 | 0.064593 | false | 0 | 0.011962 | 0.002392 | 0.138756 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
6191c4781ab8c91a16404dd6968ccbcdc2fccf63 | 58 | py | Python | cms_timetravel/__init__.py | jjanssen/django-cms-timetravel | 2a55f929d873eb22af4e3c751f970ca070ae2f0e | [
"Apache-2.0"
] | null | null | null | cms_timetravel/__init__.py | jjanssen/django-cms-timetravel | 2a55f929d873eb22af4e3c751f970ca070ae2f0e | [
"Apache-2.0"
] | null | null | null | cms_timetravel/__init__.py | jjanssen/django-cms-timetravel | 2a55f929d873eb22af4e3c751f970ca070ae2f0e | [
"Apache-2.0"
] | null | null | null | from .managers import pages
from .managers import plugins
| 19.333333 | 29 | 0.827586 | 8 | 58 | 6 | 0.625 | 0.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 58 | 2 | 30 | 29 | 0.96 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
6196e8124de1c717b4ec6a1683fc1a1ca4bd5d76 | 278 | py | Python | examples/todo-api-django-app/api/permissions.py | stphivos/bg-kube | 3936c2899f76b2f58df7a5f38fac741c638562cf | [
"MIT"
] | 8 | 2017-11-24T12:07:02.000Z | 2020-04-27T03:27:58.000Z | examples/todo-api-django-app/api/permissions.py | stphivos/bg-kube | 3936c2899f76b2f58df7a5f38fac741c638562cf | [
"MIT"
] | 19 | 2017-11-14T23:35:31.000Z | 2022-03-08T22:50:02.000Z | examples/todo-api-django-app/api/permissions.py | stphivos/bg-kube | 3936c2899f76b2f58df7a5f38fac741c638562cf | [
"MIT"
] | null | null | null | from rest_framework import permissions
class IsUserOwner(permissions.BasePermission):
def has_permission(self, request, view):
return request.user.is_authenticated()
def has_object_permission(self, request, view, obj):
return obj.user == request.user
| 27.8 | 56 | 0.744604 | 33 | 278 | 6.121212 | 0.606061 | 0.059406 | 0.207921 | 0.247525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172662 | 278 | 9 | 57 | 30.888889 | 0.878261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
f60f384f0d923f8111372786baaee1ff74934573 | 98 | py | Python | TD2/WebDynamic/CallPythonScript/externalScript.py | YannMouchon/eiin839 | e23800d0d874704b5cd9853375552552f6a467ec | [
"MIT"
] | null | null | null | TD2/WebDynamic/CallPythonScript/externalScript.py | YannMouchon/eiin839 | e23800d0d874704b5cd9853375552552f6a467ec | [
"MIT"
] | null | null | null | TD2/WebDynamic/CallPythonScript/externalScript.py | YannMouchon/eiin839 | e23800d0d874704b5cd9853375552552f6a467ec | [
"MIT"
] | null | null | null | import sys
print("<HTML><BODY> Hello " + sys.argv[1] + " et " + sys.argv[2] + " </BODY></HTML") | 32.666667 | 84 | 0.540816 | 16 | 98 | 3.375 | 0.6875 | 0.259259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024691 | 0.173469 | 98 | 3 | 84 | 32.666667 | 0.62963 | 0 | 0 | 0 | 0 | 0 | 0.377551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.5 | null | null | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 6 |
f630160a227c9bd38503b6416c77803149be720a | 154 | py | Python | storm/request/handlers/__init__.py | Rud356/Storm | 18f8b7ac89babf9252da28c39c2cc84087f2afaf | [
"Apache-2.0"
] | 1 | 2022-03-18T18:14:34.000Z | 2022-03-18T18:14:34.000Z | storm/request/handlers/__init__.py | Rud356/Storm | 18f8b7ac89babf9252da28c39c2cc84087f2afaf | [
"Apache-2.0"
] | 1 | 2021-12-23T19:39:27.000Z | 2021-12-23T19:39:27.000Z | storm/request/handlers/__init__.py | Rud356/Storm | 18f8b7ac89babf9252da28c39c2cc84087f2afaf | [
"Apache-2.0"
] | null | null | null | from .base_request_handler import StormBaseHandler
from .http_request_handler import HttpHandler
from .websocket_request_handler import WebSocketHandler
| 30.8 | 55 | 0.896104 | 18 | 154 | 7.333333 | 0.555556 | 0.318182 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084416 | 154 | 4 | 56 | 38.5 | 0.93617 | 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 | 0 | 0 | 0 | 6 |
9cb52de25bdc6cc1334463840603c816609962af | 235 | py | Python | minder_utils/models/feature_selectors/__init__.py | alexcapstick/minder_utils | 3bb9380b7796b5dd5b995ce1839ea6a94321021d | [
"MIT"
] | null | null | null | minder_utils/models/feature_selectors/__init__.py | alexcapstick/minder_utils | 3bb9380b7796b5dd5b995ce1839ea6a94321021d | [
"MIT"
] | null | null | null | minder_utils/models/feature_selectors/__init__.py | alexcapstick/minder_utils | 3bb9380b7796b5dd5b995ce1839ea6a94321021d | [
"MIT"
] | 1 | 2022-03-16T11:10:43.000Z | 2022-03-16T11:10:43.000Z | from .supervised.wrapper import *
from .supervised.filter import *
from .supervised.intrinsic import *
from .unsupervised.filter import *
__all__ = ['Supervised_Filter', 'Intrinsic_Selector', 'Wrapper_Selector', 'Unsupervised_Filter'] | 39.166667 | 96 | 0.795745 | 25 | 235 | 7.16 | 0.36 | 0.234637 | 0.223464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093617 | 235 | 6 | 96 | 39.166667 | 0.840376 | 0 | 0 | 0 | 0 | 0 | 0.29661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
140433291a8ed406405c1125a9e9bab3f06e1e4b | 46 | py | Python | sampling/io/__init__.py | teamdatatonic/tf-sampling | 2a86091e5d2b94d416601cfb8becb0bf8d6473ca | [
"MIT"
] | 11 | 2019-10-22T10:57:19.000Z | 2022-03-03T07:40:08.000Z | sampling/io/__init__.py | teamdatatonic/tf-sampling | 2a86091e5d2b94d416601cfb8becb0bf8d6473ca | [
"MIT"
] | 17 | 2020-01-28T23:04:25.000Z | 2022-02-10T01:07:15.000Z | sampling/io/__init__.py | teamdatatonic/tf-sampling | 2a86091e5d2b94d416601cfb8becb0bf8d6473ca | [
"MIT"
] | null | null | null | from .schema import *
from .input_fn import *
| 15.333333 | 23 | 0.73913 | 7 | 46 | 4.714286 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 46 | 2 | 24 | 23 | 0.868421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
146852b8549971d6763bd21dc6ea75fb6115ae1e | 7,311 | py | Python | tests/test_summary.py | tomaslaz/EduNotice | 4fd1b6139c5229ba8eaa16c65c883e70ae7a062c | [
"MIT"
] | null | null | null | tests/test_summary.py | tomaslaz/EduNotice | 4fd1b6139c5229ba8eaa16c65c883e70ae7a062c | [
"MIT"
] | null | null | null | tests/test_summary.py | tomaslaz/EduNotice | 4fd1b6139c5229ba8eaa16c65c883e70ae7a062c | [
"MIT"
] | null | null | null | """
Test summary.py module
"""
import os
import pandas as pd
from datetime import datetime, timezone
from sqlalchemy import create_engine
from edunotice.constants import (
CONST_TEST_DIR_DATA,
CONST_TEST1_FILENAME,
CONST_TEST2_FILENAME,
CONST_TEST3_FILENAME,
SQL_CONNECTION_STRING,
SQL_TEST_D... | 25.652632 | 75 | 0.672685 | 943 | 7,311 | 4.887593 | 0.114528 | 0.119766 | 0.089824 | 0.09373 | 0.845086 | 0.820135 | 0.804947 | 0.793014 | 0.777392 | 0.777392 | 0 | 0.027849 | 0.253454 | 7,311 | 284 | 76 | 25.742958 | 0.816599 | 0.113664 | 0 | 0.594059 | 0 | 0 | 0.000781 | 0 | 0 | 0 | 0 | 0 | 0.262376 | 1 | 0.014851 | false | 0 | 0.039604 | 0 | 0.054455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
14b7b4c30b5ea01b99a87cb000f16a4b69c0eb1c | 20 | py | Python | third_party/polib/__init__.py | gtmetrix/pagespeed-library | 4aac4ab995bc99c6a40f0c820cfefc88db6fcf33 | [
"Apache-2.0"
] | 11 | 2016-08-23T12:31:32.000Z | 2021-05-12T09:47:01.000Z | third_party/polib/__init__.py | gtmetrix/page-speed-library | 4aac4ab995bc99c6a40f0c820cfefc88db6fcf33 | [
"Apache-2.0"
] | null | null | null | third_party/polib/__init__.py | gtmetrix/page-speed-library | 4aac4ab995bc99c6a40f0c820cfefc88db6fcf33 | [
"Apache-2.0"
] | 1 | 2019-03-13T00:51:45.000Z | 2019-03-13T00:51:45.000Z | from polib import *
| 10 | 19 | 0.75 | 3 | 20 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 20 | 1 | 20 | 20 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
21147077b4baaaef3c2ac09f5a1c12d0c9f0daa7 | 46 | py | Python | __init__.py | zof1985/SimBioPy | 868f2a07a2a2b9e9e7fd843bb4386e4e424a8c50 | [
"MIT"
] | null | null | null | __init__.py | zof1985/SimBioPy | 868f2a07a2a2b9e9e7fd843bb4386e4e424a8c50 | [
"MIT"
] | null | null | null | __init__.py | zof1985/SimBioPy | 868f2a07a2a2b9e9e7fd843bb4386e4e424a8c50 | [
"MIT"
] | null | null | null | from .base import *
from .kinematics import *
| 15.333333 | 25 | 0.73913 | 6 | 46 | 5.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 46 | 2 | 26 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
2167c5bea8a45492301f8590996d7b4693a88d1b | 4,312 | py | Python | evaluation.py | branlulu/Chess-ai | e7feaf56ded18e679d51eac539b8354ebced7256 | [
"MIT"
] | null | null | null | evaluation.py | branlulu/Chess-ai | e7feaf56ded18e679d51eac539b8354ebced7256 | [
"MIT"
] | null | null | null | evaluation.py | branlulu/Chess-ai | e7feaf56ded18e679d51eac539b8354ebced7256 | [
"MIT"
] | null | null | null | """
This module contains all evaluation methods and heuristic functions for a chess board.
The value of the board is assigned in the perspective of the White player
(i.e. positive for White, negative for Black).
Functions:
- evaluate_board(board)
- evaluate_position(board, pos)
"""
import chess
# Piece-Square Tabl... | 35.933333 | 87 | 0.41257 | 1,001 | 4,312 | 1.766234 | 0.088911 | 0.277149 | 0.324095 | 0.357466 | 0.491516 | 0.427602 | 0.420814 | 0.414027 | 0.398756 | 0.349548 | 0 | 0.268552 | 0.303108 | 4,312 | 120 | 88 | 35.933333 | 0.3198 | 0.12384 | 0 | 0.159574 | 0 | 0 | 0.001597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0 | 0.010638 | 0 | 0.074468 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
21688fa01f228786b8958320cb26dbd13b12a6dc | 95 | py | Python | Codewars/Point_in_a_unit_circle - (7 kyu).py | maxcohen31/A-bored-math-student | 007beb4dabf7b4406f48e9a3a967c29d032eab89 | [
"MIT"
] | null | null | null | Codewars/Point_in_a_unit_circle - (7 kyu).py | maxcohen31/A-bored-math-student | 007beb4dabf7b4406f48e9a3a967c29d032eab89 | [
"MIT"
] | null | null | null | Codewars/Point_in_a_unit_circle - (7 kyu).py | maxcohen31/A-bored-math-student | 007beb4dabf7b4406f48e9a3a967c29d032eab89 | [
"MIT"
] | null | null | null | import math
def point_in_circle(x, y):
return True if math.sqrt(x**2 + y**2) < 1 else False | 31.666667 | 56 | 0.673684 | 20 | 95 | 3.1 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038961 | 0.189474 | 95 | 3 | 56 | 31.666667 | 0.766234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
0d0fc052a19f4a8f46bbc99a8e852563d6b576cb | 7,052 | py | Python | inventory/forms.py | ashbc/tgrsite | 180e5eb9c72a7a331276fe3de150ea2eea2db51e | [
"ISC"
] | 1 | 2019-06-29T15:25:05.000Z | 2019-06-29T15:25:05.000Z | inventory/forms.py | ashbc/tgrsite | 180e5eb9c72a7a331276fe3de150ea2eea2db51e | [
"ISC"
] | 70 | 2017-06-21T13:13:57.000Z | 2019-03-20T22:14:56.000Z | inventory/forms.py | ashbc/tgrsite | 180e5eb9c72a7a331276fe3de150ea2eea2db51e | [
"ISC"
] | null | null | null | import datetime
from django.core.exceptions import ValidationError
from django.forms import ModelForm, SelectDateWidget, NumberInput, ModelMultipleChoiceField, Textarea
from django.urls import reverse_lazy
from .models import Suggestion, Record, Loan
class SelectDate(SelectDateWidget):
template_name = "inventor... | 34.568627 | 113 | 0.614152 | 781 | 7,052 | 5.357234 | 0.18694 | 0.089388 | 0.078872 | 0.050191 | 0.789675 | 0.783939 | 0.769837 | 0.760038 | 0.760038 | 0.760038 | 0 | 0.002913 | 0.269711 | 7,052 | 203 | 114 | 34.738916 | 0.809515 | 0.006948 | 0 | 0.740964 | 0 | 0 | 0.162714 | 0.007714 | 0 | 0 | 0 | 0 | 0.012048 | 1 | 0.060241 | false | 0 | 0.03012 | 0.006024 | 0.23494 | 0.060241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
0d1dfc8704344612110ab1503bae1f9e3cf7bd79 | 2,274 | py | Python | tests/serializers/test_emailaddress.py | bodgerbarnett/django-rest-email-manager | e7967fee647f8ee7f64e4ce0c9dcf8733f2e2d32 | [
"BSD-3-Clause"
] | null | null | null | tests/serializers/test_emailaddress.py | bodgerbarnett/django-rest-email-manager | e7967fee647f8ee7f64e4ce0c9dcf8733f2e2d32 | [
"BSD-3-Clause"
] | null | null | null | tests/serializers/test_emailaddress.py | bodgerbarnett/django-rest-email-manager | e7967fee647f8ee7f64e4ce0c9dcf8733f2e2d32 | [
"BSD-3-Clause"
] | 1 | 2021-09-02T15:47:46.000Z | 2021-09-02T15:47:46.000Z | from unittest import mock
from rest_email_manager.serializers import EmailAddressSerializer
@mock.patch(
"rest_email_manager.models.EmailAddress.send_verification",
autospec=True,
)
def test_create(mock_send_verification, db, user, api_request):
data = {"email": "newemail@example.com", "current_password"... | 27.39759 | 74 | 0.721636 | 260 | 2,274 | 6.065385 | 0.196154 | 0.076094 | 0.136969 | 0.152188 | 0.78884 | 0.742549 | 0.726696 | 0.722257 | 0.722257 | 0.722257 | 0 | 0 | 0.163149 | 2,274 | 82 | 75 | 27.731707 | 0.828692 | 0 | 0 | 0.607143 | 0 | 0 | 0.167546 | 0.049252 | 0 | 0 | 0 | 0 | 0.196429 | 1 | 0.107143 | false | 0.125 | 0.035714 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
b4b392d556a161179cb9a7eba3a4d1fcad0d7aa4 | 174 | py | Python | tests/services/__init__.py | berry-langerak/nanoinject | fc24df7534695fda5e0f078f3f9dd6f8861dcb65 | [
"MIT"
] | null | null | null | tests/services/__init__.py | berry-langerak/nanoinject | fc24df7534695fda5e0f078f3f9dd6f8861dcb65 | [
"MIT"
] | 1 | 2020-03-25T09:58:28.000Z | 2020-03-25T09:58:28.000Z | tests/services/__init__.py | berry-langerak/nanoinject | fc24df7534695fda5e0f078f3f9dd6f8861dcb65 | [
"MIT"
] | null | null | null | from .no_arguments import NoArguments
from .with_argument import WithArgument
from .simple_argument import SimpleArgument
from .with_scalar_argument import WithScalarArgument | 43.5 | 52 | 0.890805 | 21 | 174 | 7.142857 | 0.571429 | 0.28 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086207 | 174 | 4 | 52 | 43.5 | 0.943396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
b4f88d32aa33abd017bd3fa1cb7164caf7edd0eb | 110 | py | Python | apps/core/views.py | SteinOveHelset/learndjangoin30days | bd70d5c585905ea6f9369776cec791b161bd5ae0 | [
"MIT"
] | null | null | null | apps/core/views.py | SteinOveHelset/learndjangoin30days | bd70d5c585905ea6f9369776cec791b161bd5ae0 | [
"MIT"
] | null | null | null | apps/core/views.py | SteinOveHelset/learndjangoin30days | bd70d5c585905ea6f9369776cec791b161bd5ae0 | [
"MIT"
] | 1 | 2020-11-19T16:14:38.000Z | 2020-11-19T16:14:38.000Z | from django.shortcuts import render
def frontpage(request):
return render(request, 'core/frontpage.html') | 27.5 | 49 | 0.781818 | 14 | 110 | 6.142857 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118182 | 110 | 4 | 49 | 27.5 | 0.886598 | 0 | 0 | 0 | 0 | 0 | 0.171171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
b4fa8b717478bd4fc01451a7303ca26670b3bf08 | 4,036 | py | Python | timing_tests/LJ/pnu/vel_dist.py | mccullaghlab/ISSPA-Force-Cuda | 76e05096c836e17f0e16889934b4d7c7923fd8ba | [
"Apache-2.0"
] | 1 | 2019-04-10T19:37:57.000Z | 2019-04-10T19:37:57.000Z | timing_tests/LJ/pnu/vel_dist.py | mccullaghlab/ISSPA-Force-Cuda | 76e05096c836e17f0e16889934b4d7c7923fd8ba | [
"Apache-2.0"
] | null | null | null | timing_tests/LJ/pnu/vel_dist.py | mccullaghlab/ISSPA-Force-Cuda | 76e05096c836e17f0e16889934b4d7c7923fd8ba | [
"Apache-2.0"
] | 1 | 2020-09-02T14:33:26.000Z | 2020-09-02T14:33:26.000Z | import numpy as np
import sys
import MDAnalysis as mda
import matplotlib.pyplot as plt
from matplotlib.ticker import NullFormatter
import glob
stdev = np.std
sqrt = np.sqrt
nullfmt = NullFormatter()
#def plot_3(vx, vy, vz):
# b = 20
# xhist, xedges = np.histogram(np.abs(vx),bins=b)
# yhist, yedges = np.histo... | 27.834483 | 106 | 0.598117 | 678 | 4,036 | 3.519174 | 0.169617 | 0.07544 | 0.135792 | 0.060352 | 0.83948 | 0.832355 | 0.832355 | 0.798407 | 0.733026 | 0.733026 | 0 | 0.049909 | 0.185828 | 4,036 | 144 | 107 | 28.027778 | 0.676202 | 0.301288 | 0 | 0.571429 | 0 | 0 | 0.103212 | 0.023096 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038961 | false | 0 | 0.077922 | 0 | 0.116883 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
370878876243207ef2220aac60adefecba47db17 | 192 | py | Python | test/utils.py | dezintegro/py-observable | a9b5b11ca1d1feb52b97a46f78edaff904f2ef03 | [
"BSD-2-Clause"
] | null | null | null | test/utils.py | dezintegro/py-observable | a9b5b11ca1d1feb52b97a46f78edaff904f2ef03 | [
"BSD-2-Clause"
] | 1 | 2019-03-03T17:17:45.000Z | 2019-03-03T17:17:45.000Z | test/utils.py | dezintegro/py-observable | a9b5b11ca1d1feb52b97a46f78edaff904f2ef03 | [
"BSD-2-Clause"
] | null | null | null | def assert_event_handler(expected_event, mocked_handler):
assert mocked_handler.call_count == 1
actual_event = mocked_handler.call_args[0][0]
assert actual_event == expected_event
| 38.4 | 57 | 0.786458 | 27 | 192 | 5.185185 | 0.444444 | 0.278571 | 0.257143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018072 | 0.135417 | 192 | 4 | 58 | 48 | 0.825301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.75 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
2e9f7509001441fdaa06d5cdde4dcf0e7979c679 | 6,140 | py | Python | respa_o365/tests/test_o365_notifications.py | johlindq/respa | 4a94757196fff84f15fa50838e910024588845a8 | [
"MIT"
] | null | null | null | respa_o365/tests/test_o365_notifications.py | johlindq/respa | 4a94757196fff84f15fa50838e910024588845a8 | [
"MIT"
] | null | null | null | respa_o365/tests/test_o365_notifications.py | johlindq/respa | 4a94757196fff84f15fa50838e910024588845a8 | [
"MIT"
] | null | null | null | import pytest
from respa_o365.o365_calendar import MicrosoftApi
from respa_o365.o365_notifications import O365Notifications
def create_api():
# These are some token to some test environment.
# There needs to be some kind of opt out mechanism to choose if these are run as
# test environment might not be a... | 93.030303 | 3,608 | 0.867427 | 420 | 6,140 | 12.519048 | 0.469048 | 0.004755 | 0.012172 | 0.015405 | 0.115824 | 0.115824 | 0.115824 | 0.08178 | 0.08178 | 0.08178 | 0 | 0.100245 | 0.070684 | 6,140 | 65 | 3,609 | 94.461538 | 0.821241 | 0.061564 | 0 | 0.152174 | 0 | 0.086957 | 0.731017 | 0.60278 | 0 | 1 | 0 | 0.015385 | 0.152174 | 1 | 0.086957 | false | 0 | 0.065217 | 0 | 0.173913 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
2efb97806b7a7a90eea9ad9139ff77f0914ad6dc | 47 | py | Python | python/testData/refactoring/extractmethod/BinaryExpression.after.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2018-12-29T09:53:39.000Z | 2018-12-29T09:53:42.000Z | python/testData/refactoring/extractmethod/BinaryExpression.after.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/refactoring/extractmethod/BinaryExpression.after.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | def foo():
return bbb
aaa = foo() and ccc | 9.4 | 19 | 0.574468 | 8 | 47 | 3.375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.297872 | 47 | 5 | 19 | 9.4 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 0.666667 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
25aab26f9b1e1f2f65f27b4bf6b3ba7060e43754 | 44,585 | py | Python | python/dp_accounting/privacy_loss_mechanism_test.py | Jolly608090/differential-privacy | 74d5be96d4abe6820ef4838c00a1b78c72ae01af | [
"Apache-2.0"
] | 1 | 2022-03-02T20:02:34.000Z | 2022-03-02T20:02:34.000Z | python/dp_accounting/privacy_loss_mechanism_test.py | fbalicchia/differential-privacy | 099080e49c4c047802d785bc818898c0caf84d45 | [
"Apache-2.0"
] | null | null | null | python/dp_accounting/privacy_loss_mechanism_test.py | fbalicchia/differential-privacy | 099080e49c4c047802d785bc818898c0caf84d45 | [
"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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 44.944556 | 80 | 0.544241 | 6,998 | 44,585 | 3.353815 | 0.047585 | 0.063485 | 0.043332 | 0.03187 | 0.850959 | 0.827823 | 0.784448 | 0.758159 | 0.691692 | 0.644099 | 0 | 0.234884 | 0.291847 | 44,585 | 991 | 81 | 44.989909 | 0.508472 | 0.085118 | 0 | 0.405963 | 0 | 0 | 0.000197 | 0 | 0 | 0 | 0 | 0 | 0.049312 | 1 | 0.03555 | false | 0 | 0.008028 | 0 | 0.048165 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
25c71c47bf5f91ae85d44b40a1788d52fac83764 | 970 | py | Python | tests/tfgraph/utils/test_convergence_criterion.py | tfgraph/tfgraph | 19ae968b3060275c631dc601757646abaf1f58a1 | [
"Apache-2.0"
] | 4 | 2017-07-23T13:48:35.000Z | 2021-12-03T18:11:50.000Z | tests/tfgraph/utils/test_convergence_criterion.py | tfgraph/tfgraph | 19ae968b3060275c631dc601757646abaf1f58a1 | [
"Apache-2.0"
] | 21 | 2017-07-23T13:15:20.000Z | 2020-09-28T02:13:11.000Z | tests/tfgraph/utils/test_convergence_criterion.py | tfgraph/tfgraph | 19ae968b3060275c631dc601757646abaf1f58a1 | [
"Apache-2.0"
] | 1 | 2017-07-28T10:28:04.000Z | 2017-07-28T10:28:04.000Z | import tensorflow as tf
import numpy as np
import tfgraph
def test_convergence_criterion_one():
with tf.Session() as sess:
assert False == sess.run(tfgraph.ConvergenceCriterion.INFINITY(
x=tf.constant([[1.0, 2.0, -3.0, 4.0, 5.0]]),
y=tf.constant([[1.0, 2.0, -3.0, 4.0, 5.0]]),
c=0.1,
n=5... | 26.216216 | 67 | 0.557732 | 178 | 970 | 3.005618 | 0.179775 | 0.037383 | 0.04486 | 0.059813 | 0.788785 | 0.788785 | 0.751402 | 0.751402 | 0.751402 | 0.751402 | 0 | 0.119205 | 0.221649 | 970 | 36 | 68 | 26.944444 | 0.589404 | 0 | 0 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 1 | 0.068966 | true | 0 | 0.103448 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
25f5ef41f13f783f0e2b7f9abe2aadf09939e9c7 | 1,831 | py | Python | examples/requests-ssl-verify-disabled.py | bittner/bandit | 87ecc4079ea50d77be13ed72bbf5ad2eb0673c64 | [
"Apache-2.0"
] | null | null | null | examples/requests-ssl-verify-disabled.py | bittner/bandit | 87ecc4079ea50d77be13ed72bbf5ad2eb0673c64 | [
"Apache-2.0"
] | null | null | null | examples/requests-ssl-verify-disabled.py | bittner/bandit | 87ecc4079ea50d77be13ed72bbf5ad2eb0673c64 | [
"Apache-2.0"
] | null | null | null | import httpx
import requests
requests.get('https://gmail.com', timeout=30, verify=True)
requests.get('https://gmail.com', timeout=30, verify=False)
requests.post('https://gmail.com', timeout=30, verify=True)
requests.post('https://gmail.com', timeout=30, verify=False)
requests.put('https://gmail.com', timeout=30, veri... | 44.658537 | 63 | 0.732387 | 270 | 1,831 | 4.966667 | 0.081481 | 0.238628 | 0.310216 | 0.255034 | 0.928412 | 0.928412 | 0.578673 | 0.466816 | 0 | 0 | 0 | 0.016083 | 0.049153 | 1,831 | 40 | 64 | 45.775 | 0.754164 | 0 | 0 | 0 | 0 | 0 | 0.300382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.052632 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
25f74b675d232fd0c0e0af1824c99be50a2d1e39 | 1,559 | py | Python | fluent_contents/utils/templatetags.py | francofuji/django-fluent-contents | 03da447ef0854b0e6a6f8ff39d9281d11efc8587 | [
"Apache-2.0"
] | null | null | null | fluent_contents/utils/templatetags.py | francofuji/django-fluent-contents | 03da447ef0854b0e6a6f8ff39d9281d11efc8587 | [
"Apache-2.0"
] | null | null | null | fluent_contents/utils/templatetags.py | francofuji/django-fluent-contents | 03da447ef0854b0e6a6f8ff39d9281d11efc8587 | [
"Apache-2.0"
] | null | null | null | """
Internal utilities for template tags
"""
from django.utils.safestring import SafeData
def is_true(value):
return value in (1, '1', 'true', 'True', True)
def extract_literal(templatevar):
"""
See if a template FilterExpression holds a literal value.
:type templatevar: django.template.FilterExpre... | 29.980769 | 97 | 0.655548 | 170 | 1,559 | 5.976471 | 0.294118 | 0.094488 | 0.033465 | 0.033465 | 0.751969 | 0.751969 | 0.751969 | 0.751969 | 0.751969 | 0.645669 | 0 | 0.005181 | 0.257216 | 1,559 | 51 | 98 | 30.568627 | 0.872193 | 0.434253 | 0 | 0.636364 | 0 | 0 | 0.023086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.045455 | 0.045455 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
d329335bc5d050ea1977e4cdc39644e0e8ca9629 | 1,780 | py | Python | course/notes/distributed_ml/download_data_upload_to_s3.py | xtremejake/aws_certification | cfaf7550bafb7dfe09f1767f707370023a10219d | [
"Apache-2.0"
] | null | null | null | course/notes/distributed_ml/download_data_upload_to_s3.py | xtremejake/aws_certification | cfaf7550bafb7dfe09f1767f707370023a10219d | [
"Apache-2.0"
] | null | null | null | course/notes/distributed_ml/download_data_upload_to_s3.py | xtremejake/aws_certification | cfaf7550bafb7dfe09f1767f707370023a10219d | [
"Apache-2.0"
] | null | null | null | import subprocess
CENSUS_1994_DATA = "https://archive.ics.uci.edu/ml/machine-learning-databases/adult/adult.data"
def main():
"""Prerequisites are to have installed awscli, and setup user credentials
1) sudo apt install awscli
2) navigate to the aws console at https://console.aws.amazon.com/console a... | 49.444444 | 156 | 0.711236 | 282 | 1,780 | 4.446809 | 0.365248 | 0.031898 | 0.095694 | 0.124402 | 0.757576 | 0.757576 | 0.757576 | 0.757576 | 0.757576 | 0.757576 | 0 | 0.019257 | 0.183146 | 1,780 | 35 | 157 | 50.857143 | 0.843191 | 0.786517 | 0 | 0 | 0 | 0.125 | 0.338658 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d337fa4f951b7f46987af45c56f250f94ba232a0 | 41 | py | Python | source/scripts/python/badimport/depends/__init__.py | gargakshit/core | 84868a3e3151088c68520f9db9235e03c0ac0d11 | [
"Apache-2.0"
] | 928 | 2018-12-26T22:40:59.000Z | 2022-03-31T12:17:43.000Z | source/scripts/python/badimport/depends/__init__.py | gargakshit/core | 84868a3e3151088c68520f9db9235e03c0ac0d11 | [
"Apache-2.0"
] | 132 | 2019-03-01T21:01:17.000Z | 2022-03-17T09:00:42.000Z | source/scripts/python/badimport/depends/__init__.py | gargakshit/core | 84868a3e3151088c68520f9db9235e03c0ac0d11 | [
"Apache-2.0"
] | 112 | 2019-01-15T09:36:11.000Z | 2022-03-12T06:39:01.000Z | #!/usr/bin/env python3
import badimport
| 10.25 | 22 | 0.756098 | 6 | 41 | 5.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.121951 | 41 | 3 | 23 | 13.666667 | 0.833333 | 0.512195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6caa66cc6d7b3a6e6ef90f9a1ccf469174418a91 | 23 | py | Python | reinvent-2019/fully-automated-farm/device/sensor/moisture/mqtt/__init__.py | iizus/aws-builders-fair-projects | 0d6b8b99a33fe6cadf1ef850e1f04624c4194d4f | [
"Apache-2.0"
] | 1 | 2020-01-06T08:11:54.000Z | 2020-01-06T08:11:54.000Z | reinvent-2019/fully-automated-farm/device/sensor/moisture/mqtt/__init__.py | iizus/aws-builders-fair-projects | 0d6b8b99a33fe6cadf1ef850e1f04624c4194d4f | [
"Apache-2.0"
] | null | null | null | reinvent-2019/fully-automated-farm/device/sensor/moisture/mqtt/__init__.py | iizus/aws-builders-fair-projects | 0d6b8b99a33fe6cadf1ef850e1f04624c4194d4f | [
"Apache-2.0"
] | null | null | null | from mqtt.mqtt import * | 23 | 23 | 0.782609 | 4 | 23 | 4.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6cc8f6cf3250fa43009f8853c33058356d08754d | 30 | py | Python | flask_mpd_client/__init__.py | TempletonSTEM/STEM-Music-MPD-Client | 0e33c313fd2029bfbe3161f26e9a09c01aca4d29 | [
"MIT"
] | null | null | null | flask_mpd_client/__init__.py | TempletonSTEM/STEM-Music-MPD-Client | 0e33c313fd2029bfbe3161f26e9a09c01aca4d29 | [
"MIT"
] | null | null | null | flask_mpd_client/__init__.py | TempletonSTEM/STEM-Music-MPD-Client | 0e33c313fd2029bfbe3161f26e9a09c01aca4d29 | [
"MIT"
] | null | null | null | from . import flask_mpd_client | 30 | 30 | 0.866667 | 5 | 30 | 4.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 30 | 1 | 30 | 30 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
9f82160f01314390feaf9dbaf5750127ca188eda | 320 | py | Python | configs/deepim/ycbvPbrSO/FlowNet512_1.5AugCosyAAEGray_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_ycbvPbr_SO/FlowNet512_1.5AugCosyAAEGray_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_Pbr_08_09GelatinBox.py | THU-DA-6D-Pose-Group/self6dpp | c267cfa55e440e212136a5e9940598720fa21d16 | [
"Apache-2.0"
] | 33 | 2021-12-15T07:11:47.000Z | 2022-03-29T08:58:32.000Z | configs/deepim/ycbvPbrSO/FlowNet512_1.5AugCosyAAEGray_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_ycbvPbr_SO/FlowNet512_1.5AugCosyAAEGray_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_Pbr_08_09GelatinBox.py | THU-DA-6D-Pose-Group/self6dpp | c267cfa55e440e212136a5e9940598720fa21d16 | [
"Apache-2.0"
] | 3 | 2021-12-15T11:39:54.000Z | 2022-03-29T07:24:23.000Z | configs/deepim/ycbvPbrSO/FlowNet512_1.5AugCosyAAEGray_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_ycbvPbr_SO/FlowNet512_1.5AugCosyAAEGray_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_Pbr_08_09GelatinBox.py | THU-DA-6D-Pose-Group/self6dpp | c267cfa55e440e212136a5e9940598720fa21d16 | [
"Apache-2.0"
] | null | null | null | _base_ = "./FlowNet512_1.5AugCosyAAEGray_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_Pbr_01_02MasterChefCan.py"
OUTPUT_DIR = "output/deepim/ycbvPbrSO/FlowNet512_1.5AugCosyAAEGray_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_ycbvPbr_SO/08_09GelatinBox"
DATASETS = dict(TRAIN=("ycbv_009_gelatin_box_train_pbr",))
| 80 | 143 | 0.896875 | 43 | 320 | 5.976744 | 0.697674 | 0.085603 | 0.202335 | 0.287938 | 0.529183 | 0.529183 | 0.529183 | 0.529183 | 0.529183 | 0.529183 | 0 | 0.099678 | 0.028125 | 320 | 3 | 144 | 106.666667 | 0.726688 | 0 | 0 | 0 | 0 | 0 | 0.821875 | 0.821875 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4c7ec1cdcae518a9b79587dfff8a74058280d629 | 162 | py | Python | blogs/admin.py | Satchitananda/django-simple-blog | affa9ba39a775228bad899500e8312bce9fdc447 | [
"MIT"
] | null | null | null | blogs/admin.py | Satchitananda/django-simple-blog | affa9ba39a775228bad899500e8312bce9fdc447 | [
"MIT"
] | null | null | null | blogs/admin.py | Satchitananda/django-simple-blog | affa9ba39a775228bad899500e8312bce9fdc447 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import BlogEntry
class BlogEntryAdmin(admin.ModelAdmin):
pass
admin.site.register(BlogEntry, BlogEntryAdmin)
| 18 | 46 | 0.808642 | 19 | 162 | 6.894737 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123457 | 162 | 8 | 47 | 20.25 | 0.922535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
4c8beb7892e2b963e432b5ed9a2e67ca884bcf25 | 29 | py | Python | dpipe/medim/patch.py | samokhinv/deep_pipe | 9461b02f5f32c3e9f24490619ebccf417979cffc | [
"MIT"
] | null | null | null | dpipe/medim/patch.py | samokhinv/deep_pipe | 9461b02f5f32c3e9f24490619ebccf417979cffc | [
"MIT"
] | null | null | null | dpipe/medim/patch.py | samokhinv/deep_pipe | 9461b02f5f32c3e9f24490619ebccf417979cffc | [
"MIT"
] | null | null | null | from dpipe.im.patch import *
| 14.5 | 28 | 0.758621 | 5 | 29 | 4.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 29 | 1 | 29 | 29 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4c9d510c8451dc1a90b8e4fbd3626dc8a4079e5c | 126 | py | Python | nmt/my_module/__init__.py | KyunghyunLee/RAdam | 6197297701a26194343c1daa88b5c040625e3b5f | [
"Apache-2.0"
] | 2,597 | 2019-08-09T20:42:11.000Z | 2022-03-29T14:09:17.000Z | nmt/my_module/__init__.py | KyunghyunLee/RAdam | 6197297701a26194343c1daa88b5c040625e3b5f | [
"Apache-2.0"
] | 56 | 2019-08-15T22:56:37.000Z | 2021-09-19T21:16:15.000Z | nmt/my_module/__init__.py | KyunghyunLee/RAdam | 6197297701a26194343c1daa88b5c040625e3b5f | [
"Apache-2.0"
] | 385 | 2019-08-15T23:06:09.000Z | 2022-01-04T09:22:00.000Z | from .radam import *
from .adam2 import *
from .linear_schedule import *
from .poly_schedule import *
from .novograd import *
| 21 | 30 | 0.761905 | 17 | 126 | 5.529412 | 0.470588 | 0.425532 | 0.382979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.15873 | 126 | 5 | 31 | 25.2 | 0.877358 | 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 | 0 | 0 | 0 | 6 |
9818493f3ac9aa221dd9a83ad6997db00de38883 | 3,809 | py | Python | src/imsApp/forms.py | patelgaurank/SocialSponsorProject | 4a5485cc1e4576d67b8a627221c09f9448b64171 | [
"MIT"
] | null | null | null | src/imsApp/forms.py | patelgaurank/SocialSponsorProject | 4a5485cc1e4576d67b8a627221c09f9448b64171 | [
"MIT"
] | null | null | null | src/imsApp/forms.py | patelgaurank/SocialSponsorProject | 4a5485cc1e4576d67b8a627221c09f9448b64171 | [
"MIT"
] | null | null | null | from django import forms
from django.forms import Textarea
from .models import imsData
from datetime import datetime as dt
from PIL import Image
from django.core.files.uploadedfile import SimpleUploadedFile
# Assign date input type
class DateInput(forms.DateInput):
input_type = 'date'
#Create a form for spons... | 39.677083 | 135 | 0.556839 | 420 | 3,809 | 5.004762 | 0.240476 | 0.066603 | 0.071361 | 0.041865 | 0.831589 | 0.813987 | 0.813987 | 0.813987 | 0.806851 | 0.806851 | 0 | 0.001482 | 0.291415 | 3,809 | 95 | 136 | 40.094737 | 0.777325 | 0.280126 | 0 | 0.692308 | 0 | 0 | 0.118299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.115385 | 0 | 0.346154 | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e21a5fe05493a19c98a246b00b69229b399e5a7e | 17,581 | py | Python | tests/problem/test_problem.py | miecio190/optimization | a5ce621ae2ba142c8fac0788be3654304b4cd2cb | [
"MIT"
] | 2 | 2020-08-06T10:14:07.000Z | 2021-06-14T08:20:36.000Z | tests/problem/test_problem.py | miecio190/optimization | a5ce621ae2ba142c8fac0788be3654304b4cd2cb | [
"MIT"
] | 16 | 2020-08-06T10:59:42.000Z | 2021-01-31T11:44:33.000Z | tests/problem/test_problem.py | miecio190/optimization | a5ce621ae2ba142c8fac0788be3654304b4cd2cb | [
"MIT"
] | null | null | null | import pytest
from mock import Mock, patch
from optimization.problem.problem import OptimizationType, OptimizationProblem
class TestOptimizationProblem:
"""Tests for 'OptimizationProblem' class and their methods."""
SCRIPT_LOCATION = "optimization.problem.problem"
@pytest.fixture(autouse=True)
def ... | 66.847909 | 125 | 0.661453 | 1,624 | 17,581 | 6.778941 | 0.05665 | 0.093015 | 0.052139 | 0.061041 | 0.886638 | 0.844309 | 0.79653 | 0.787537 | 0.778272 | 0.778272 | 0 | 0.000717 | 0.285592 | 17,581 | 262 | 126 | 67.103053 | 0.875796 | 0.304647 | 0 | 0.566176 | 0 | 0 | 0.03666 | 0.014716 | 0 | 0 | 0 | 0 | 0.088235 | 1 | 0.095588 | false | 0 | 0.022059 | 0 | 0.132353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e21bf2b7291263bd1cf7fc0d0f5799617a1f0f37 | 108 | py | Python | fuxictr/datasets/__init__.py | samins/FuxiCTR | da2bda7fa362a9621d7536af5649e4e3dc811c74 | [
"Apache-2.0"
] | null | null | null | fuxictr/datasets/__init__.py | samins/FuxiCTR | da2bda7fa362a9621d7536af5649e4e3dc811c74 | [
"Apache-2.0"
] | null | null | null | fuxictr/datasets/__init__.py | samins/FuxiCTR | da2bda7fa362a9621d7536af5649e4e3dc811c74 | [
"Apache-2.0"
] | null | null | null | from .data_utils import *
from . import taobao
from . import criteo
from . import avazu
from . import kkbox
| 18 | 25 | 0.759259 | 16 | 108 | 5.0625 | 0.5 | 0.493827 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 108 | 5 | 26 | 21.6 | 0.920455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
e2221e508223c45b8769bcf0f531a9142b34e53a | 26 | py | Python | src/amuse/community/fi/__init__.py | sibonyves/amuse | 5557bf88d14df1aa02133a199b6d60c0c57dcab7 | [
"Apache-2.0"
] | null | null | null | src/amuse/community/fi/__init__.py | sibonyves/amuse | 5557bf88d14df1aa02133a199b6d60c0c57dcab7 | [
"Apache-2.0"
] | 12 | 2021-11-15T09:13:03.000Z | 2022-02-02T14:53:04.000Z | src/amuse/community/fi/__init__.py | sibonyves/amuse | 5557bf88d14df1aa02133a199b6d60c0c57dcab7 | [
"Apache-2.0"
] | null | null | null | from .interface import Fi
| 13 | 25 | 0.807692 | 4 | 26 | 5.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 26 | 1 | 26 | 26 | 0.954545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
e22be31f577c1da9491e965e24649f4933ba4e15 | 119 | py | Python | kiss_cache/__init__.py | HiveTraum/KISSCache-Python | c6f601b3c510e0dd6f4340ea6c013267d8424643 | [
"MIT"
] | null | null | null | kiss_cache/__init__.py | HiveTraum/KISSCache-Python | c6f601b3c510e0dd6f4340ea6c013267d8424643 | [
"MIT"
] | null | null | null | kiss_cache/__init__.py | HiveTraum/KISSCache-Python | c6f601b3c510e0dd6f4340ea6c013267d8424643 | [
"MIT"
] | 1 | 2019-12-03T05:54:31.000Z | 2019-12-03T05:54:31.000Z | from .cache import Cache
from .stores.django_cache import DjangoCacheStore
from .stores.in_memory import InMemoryStore
| 29.75 | 49 | 0.857143 | 16 | 119 | 6.25 | 0.5625 | 0.22 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10084 | 119 | 3 | 50 | 39.666667 | 0.934579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
e26ad2c13f7cecd847ae7180ec41454340bc8113 | 153 | py | Python | bentoml/_internal/utils/pkg.py | francoisserra/BentoML | 213e9e9b39e055286f2649c733907df88e6d2503 | [
"Apache-2.0"
] | 1 | 2022-02-13T05:35:47.000Z | 2022-02-13T05:35:47.000Z | bentoml/_internal/utils/pkg.py | francoisserra/BentoML | 213e9e9b39e055286f2649c733907df88e6d2503 | [
"Apache-2.0"
] | 4 | 2021-05-16T08:06:25.000Z | 2021-11-13T08:46:36.000Z | bentoml/_internal/utils/pkg.py | francoisserra/BentoML | 213e9e9b39e055286f2649c733907df88e6d2503 | [
"Apache-2.0"
] | null | null | null | try:
import importlib.metadata as importlib_metadata
except ImportError:
import importlib_metadata
get_pkg_version = importlib_metadata.version
| 21.857143 | 51 | 0.830065 | 18 | 153 | 6.777778 | 0.555556 | 0.557377 | 0.377049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137255 | 153 | 6 | 52 | 25.5 | 0.924242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
e27980c3e2cb3d12d7c4b7d532eb982aa5212c41 | 31 | py | Python | build/lib/nums_from_string/__init__.py | DoubleBite/Numbers-from-String | 44ee503e140f2aa58525947495c92bedbbd7e285 | [
"MIT"
] | 2 | 2021-01-15T08:59:43.000Z | 2021-02-09T00:30:24.000Z | build/lib/nums_from_string/__init__.py | DoubleBite/Numbers-from-String | 44ee503e140f2aa58525947495c92bedbbd7e285 | [
"MIT"
] | 1 | 2021-03-11T11:50:36.000Z | 2021-06-30T07:46:13.000Z | build/lib/nums_from_string/__init__.py | DoubleBite/Numbers-from-String | 44ee503e140f2aa58525947495c92bedbbd7e285 | [
"MIT"
] | null | null | null | from .nums_from_string import * | 31 | 31 | 0.83871 | 5 | 31 | 4.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 31 | 1 | 31 | 31 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
e2b83e678ed0f841137c4bb5198169f1a92a35e8 | 32 | py | Python | python38-flask/src/hello_api/__init__.py | katscott/aws-lambda-examples | 476f7193c868bc3437e0b7aac4f257ffb76dcaf5 | [
"MIT"
] | null | null | null | python38-flask/src/hello_api/__init__.py | katscott/aws-lambda-examples | 476f7193c868bc3437e0b7aac4f257ffb76dcaf5 | [
"MIT"
] | null | null | null | python38-flask/src/hello_api/__init__.py | katscott/aws-lambda-examples | 476f7193c868bc3437e0b7aac4f257ffb76dcaf5 | [
"MIT"
] | null | null | null | from .app import initialize_app
| 16 | 31 | 0.84375 | 5 | 32 | 5.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 32 | 1 | 32 | 32 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
2c6c4d9fe7ee53ed72a5ef5d16f3e345f240e027 | 33 | py | Python | pyvirchow/misc/__init__.py | saketkc/pyvirchow | 00a639c461cb0905ec329738d6d499e17fdc2c0f | [
"BSD-3-Clause"
] | 4 | 2019-02-27T20:41:26.000Z | 2020-09-20T02:47:05.000Z | pyvirchow/misc/__init__.py | saketkc/pyvirchow | 00a639c461cb0905ec329738d6d499e17fdc2c0f | [
"BSD-3-Clause"
] | null | null | null | pyvirchow/misc/__init__.py | saketkc/pyvirchow | 00a639c461cb0905ec329738d6d499e17fdc2c0f | [
"BSD-3-Clause"
] | null | null | null | from .xmltojson import xmltojson
| 16.5 | 32 | 0.848485 | 4 | 33 | 7 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 33 | 1 | 33 | 33 | 0.965517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
e2e8d085030562cd83d36d780f2fe18e4532be97 | 85 | py | Python | {{ cookiecutter.model_name.lower()}}/src/{{cookiecutter.model_name.lower()}}/data.py | KasperJuunge/mlcutter | 6e0126786ebe776180169f9abf0ca7ef9a6a1287 | [
"MIT"
] | 4 | 2021-03-25T09:49:10.000Z | 2021-05-25T09:05:07.000Z | {{ cookiecutter.model_name.lower()}}/src/{{cookiecutter.model_name.lower()}}/data.py | KasperJuunge/mlcutter | 6e0126786ebe776180169f9abf0ca7ef9a6a1287 | [
"MIT"
] | 7 | 2021-03-08T09:30:44.000Z | 2021-07-05T11:51:43.000Z | {{ cookiecutter.model_name.lower()}}/src/{{cookiecutter.model_name.lower()}}/data.py | KasperJuunge/mlcutter | 6e0126786ebe776180169f9abf0ca7ef9a6a1287 | [
"MIT"
] | 3 | 2021-03-08T06:42:17.000Z | 2021-11-30T11:11:14.000Z |
def get_data():
# get raw data for modeling
print('Get data..')
return
| 14.166667 | 31 | 0.588235 | 12 | 85 | 4.083333 | 0.666667 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294118 | 85 | 5 | 32 | 17 | 0.816667 | 0.294118 | 0 | 0 | 0 | 0 | 0.175439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0 | 0 | 0.666667 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
3922833b425d1ab65bfcef1a38b9584f940c4a90 | 647 | py | Python | Refactoring/ExtractMethod.py | YasminTeles/CodeSmell | f62d0df3ae1de3c3dcf877d5de7aca7c47a21abb | [
"MIT"
] | null | null | null | Refactoring/ExtractMethod.py | YasminTeles/CodeSmell | f62d0df3ae1de3c3dcf877d5de7aca7c47a21abb | [
"MIT"
] | null | null | null | Refactoring/ExtractMethod.py | YasminTeles/CodeSmell | f62d0df3ae1de3c3dcf877d5de7aca7c47a21abb | [
"MIT"
] | null | null | null | ## Problem: Print details
def printOwing(self, amount):
self.printBanner()
# print details
print("name: ", self._name)
print("amount: ", amount)
def printLateNotice(self, amount):
self.printBanner()
self.printLateNoticeHeader()
# print details
print("name: ", self._name)
print("amou... | 23.962963 | 34 | 0.675425 | 67 | 647 | 6.477612 | 0.19403 | 0.115207 | 0.129032 | 0.230415 | 0.801843 | 0.792627 | 0.617512 | 0.539171 | 0.539171 | 0 | 0 | 0 | 0.185471 | 647 | 27 | 35 | 23.962963 | 0.823529 | 0.09119 | 0 | 0.947368 | 0 | 0 | 0.072165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0 | 0 | 0.263158 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
3950c839d5219da3055d22d7ac99f50f9fa3f954 | 87 | py | Python | cme/protocols/winrm/db_navigator.py | hantwister/CrackMapExec | 333f1c4e06884e85b2776459963ef85d182aba8e | [
"BSD-2-Clause"
] | 6,044 | 2015-08-14T18:33:09.000Z | 2022-03-31T13:40:17.000Z | cme/protocols/winrm/db_navigator.py | hantwister/CrackMapExec | 333f1c4e06884e85b2776459963ef85d182aba8e | [
"BSD-2-Clause"
] | 514 | 2015-08-19T18:57:10.000Z | 2022-03-25T21:47:27.000Z | cme/protocols/winrm/db_navigator.py | hantwister/CrackMapExec | 333f1c4e06884e85b2776459963ef85d182aba8e | [
"BSD-2-Clause"
] | 1,383 | 2015-08-16T20:05:51.000Z | 2022-03-31T19:45:19.000Z | from cme.cmedb import DatabaseNavigator
class navigator(DatabaseNavigator):
pass
| 14.5 | 39 | 0.804598 | 9 | 87 | 7.777778 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149425 | 87 | 5 | 40 | 17.4 | 0.945946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.