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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
683f23064e53c882ea56bc32523a8b3c20f432b5 | 1,027 | py | Python | test_parenthetics.py | Jakealope/New-Data-Structures | 0fa08a880dbf0f618c7c86c8ac318541d9381622 | [
"MIT"
] | null | null | null | test_parenthetics.py | Jakealope/New-Data-Structures | 0fa08a880dbf0f618c7c86c8ac318541d9381622 | [
"MIT"
] | null | null | null | test_parenthetics.py | Jakealope/New-Data-Structures | 0fa08a880dbf0f618c7c86c8ac318541d9381622 | [
"MIT"
] | null | null | null | from parenthetics import is_balanced
import pytest
# These are unit tests for the parenthetics.py file
def test_isone():
assert is_balanced("(") == 1
def test_isneg():
assert is_balanced(")") == -1
def test_iszero():
assert is_balanced("( )") == 0
def test_withstring():
assert is_balanced("this ... | 18.339286 | 77 | 0.629017 | 142 | 1,027 | 4.309859 | 0.359155 | 0.228758 | 0.339869 | 0.166667 | 0.454248 | 0.382353 | 0.107843 | 0.107843 | 0 | 0 | 0 | 0.015625 | 0.189873 | 1,027 | 55 | 78 | 18.672727 | 0.719952 | 0.047712 | 0 | 0 | 0 | 0 | 0.199795 | 0 | 0 | 0 | 0 | 0 | 0.464286 | 1 | 0.464286 | true | 0 | 0.071429 | 0 | 0.535714 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
6873ed48107437fbfdeff3bdadd526cecf36827a | 8,490 | py | Python | tests/test_output.py | looztra/kubespl | 44f336614af806b2ca6e8f0ce2482995fa017f86 | [
"Apache-2.0"
] | 21 | 2019-07-17T06:50:30.000Z | 2021-08-31T11:30:37.000Z | tests/test_output.py | looztra/kubespl | 44f336614af806b2ca6e8f0ce2482995fa017f86 | [
"Apache-2.0"
] | 16 | 2019-11-13T19:09:33.000Z | 2021-05-23T17:05:43.000Z | tests/test_output.py | looztra/kubesplit | 44f336614af806b2ca6e8f0ce2482995fa017f86 | [
"Apache-2.0"
] | null | null | null | """Test the output package."""
from io import StringIO
from yamkix.config import get_yamkix_config_from_default
from yamkix.yaml_writer import get_opinionated_yaml_writer
from kubesplit.k8s_descriptor import K8SDescriptor
from kubesplit.output import save_descriptor_to_stream
def test_roundtrip_when_preserve_quotes... | 26.61442 | 75 | 0.678445 | 1,032 | 8,490 | 5.260659 | 0.09593 | 0.070731 | 0.025051 | 0.033892 | 0.949899 | 0.93461 | 0.883588 | 0.883588 | 0.883588 | 0.883588 | 0 | 0.013674 | 0.216137 | 8,490 | 318 | 76 | 26.698113 | 0.802104 | 0.039812 | 0 | 0.870748 | 0 | 0 | 0.429135 | 0.047366 | 0 | 0 | 0 | 0 | 0.020408 | 1 | 0.020408 | false | 0 | 0.017007 | 0 | 0.037415 | 0.057823 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
cc1524e2bfec6dc9fbde7d8ad0fb040fb88220e3 | 151 | py | Python | util/test/report/__init__.py | henriquesimoes/humpback | ba687a71f95ef9c9c30426eefae11a69efd6f942 | [
"BSD-3-Clause"
] | null | null | null | util/test/report/__init__.py | henriquesimoes/humpback | ba687a71f95ef9c9c30426eefae11a69efd6f942 | [
"BSD-3-Clause"
] | null | null | null | util/test/report/__init__.py | henriquesimoes/humpback | ba687a71f95ef9c9c30426eefae11a69efd6f942 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from .report import ReportManager, Report | 30.2 | 41 | 0.874172 | 19 | 151 | 6.210526 | 0.473684 | 0.254237 | 0.40678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112583 | 151 | 5 | 41 | 30.2 | 0.880597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.25 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
cc227c2e44657430d5cdb9fc5e743ffd2eb9ee38 | 10,779 | py | Python | test/cbapi/psc/livequery/test_models.py | mtmcgrew/cbapi-python | 6e81507ff30a57eb1f13ae829c28e6ee339d2ad1 | [
"MIT"
] | null | null | null | test/cbapi/psc/livequery/test_models.py | mtmcgrew/cbapi-python | 6e81507ff30a57eb1f13ae829c28e6ee339d2ad1 | [
"MIT"
] | 1 | 2021-03-31T19:51:07.000Z | 2021-03-31T19:51:07.000Z | test/cbapi/psc/livequery/test_models.py | deepakmishraapi/cbresponse | 420fa05d0f7b9d61e5682d7a69a4098f6c32e61c | [
"MIT"
] | null | null | null | import pytest
from cbapi.psc.livequery.rest_api import CbLiveQueryAPI
from cbapi.psc.livequery.models import Run, Result
from cbapi.psc.livequery.query import ResultQuery, FacetQuery
from cbapi.errors import ApiError
from test.cbtest import StubResponse, patch_cbapi
def test_run_refresh(monkeypatch):
_was_called ... | 45.868085 | 118 | 0.554875 | 1,191 | 10,779 | 4.854744 | 0.135181 | 0.051366 | 0.031131 | 0.03459 | 0.812003 | 0.786579 | 0.770668 | 0.745763 | 0.725182 | 0.714978 | 0 | 0.030696 | 0.2837 | 10,779 | 234 | 119 | 46.064103 | 0.718171 | 0.014936 | 0 | 0.715 | 0 | 0 | 0.223175 | 0.035987 | 0 | 0 | 0 | 0 | 0.295 | 1 | 0.08 | false | 0 | 0.03 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
0bd51f57f44bae5f607d86154168f449e1fd52f3 | 762 | py | Python | lfd/environment/robot_world.py | def670/lfd | 9fef15f556cba49dd4b42c0c29505a4137f95fc5 | [
"BSD-2-Clause"
] | 36 | 2015-05-22T14:47:18.000Z | 2021-07-27T15:30:36.000Z | lfd/environment/robot_world.py | jeffmahler/lfd | ecc6b934db098c0b1af9946454917b6dc911cb74 | [
"BSD-2-Clause"
] | null | null | null | lfd/environment/robot_world.py | jeffmahler/lfd | ecc6b934db098c0b1af9946454917b6dc911cb74 | [
"BSD-2-Clause"
] | 13 | 2015-05-22T15:38:07.000Z | 2021-07-28T03:20:35.000Z | from __future__ import division
class RobotWorld(object):
def __init__(self):
raise NotImplementedError
def observe_cloud(self):
raise NotImplementedError
def open_gripper(self):
raise NotImplementedError
def close_gripper(self):
raise NotImplementedError
... | 22.411765 | 33 | 0.677165 | 68 | 762 | 7.294118 | 0.294118 | 0.181452 | 0.564516 | 0.5 | 0.850806 | 0.850806 | 0.850806 | 0.850806 | 0.850806 | 0.850806 | 0 | 0 | 0.275591 | 762 | 33 | 34 | 23.090909 | 0.898551 | 0 | 0 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.434783 | false | 0 | 0.043478 | 0 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 11 |
f0fbfdbf43c412792303539c3d091977f426df23 | 105 | py | Python | refactorings/move_class.py | armingh2000/CodART | 4a097ef97a927553dcecddeca757c52e2c834db6 | [
"MIT"
] | null | null | null | refactorings/move_class.py | armingh2000/CodART | 4a097ef97a927553dcecddeca757c52e2c834db6 | [
"MIT"
] | null | null | null | refactorings/move_class.py | armingh2000/CodART | 4a097ef97a927553dcecddeca757c52e2c834db6 | [
"MIT"
] | 1 | 2021-01-30T09:28:54.000Z | 2021-01-30T09:28:54.000Z | from gen.java9 import Java9_v2Listener
class MoveClassRefactoringListener(Java9_v2Listener):
pass
| 15 | 53 | 0.828571 | 11 | 105 | 7.727273 | 0.727273 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054945 | 0.133333 | 105 | 6 | 54 | 17.5 | 0.879121 | 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 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
9be38005f85b724ee668a6d85efc7fe7470bf5eb | 229 | py | Python | python/src/nnabla/experimental/graph_converters/__init__.py | syoyo/nnabla | b776b68dcdffe894cac1233dfd07c301415cc0fb | [
"Apache-2.0"
] | 1 | 2020-08-03T12:49:19.000Z | 2020-08-03T12:49:19.000Z | python/src/nnabla/experimental/graph_converters/__init__.py | langbin2014/nnabla | e94bac5bed65337010e2ac07a5937fb862ab2dd8 | [
"Apache-2.0"
] | 1 | 2020-11-09T07:33:29.000Z | 2020-11-09T07:33:29.000Z | python/src/nnabla/experimental/graph_converters/__init__.py | langbin2014/nnabla | e94bac5bed65337010e2ac07a5937fb862ab2dd8 | [
"Apache-2.0"
] | null | null | null | from .helpers import *
from .batch_normalization_folded import *
from .batch_normalization_linear import *
from .fixed_point_activation import *
from .fixed_point_weight import *
from .identity import *
from .sequential import *
| 28.625 | 41 | 0.816594 | 29 | 229 | 6.172414 | 0.448276 | 0.335196 | 0.167598 | 0.312849 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122271 | 229 | 7 | 42 | 32.714286 | 0.890547 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
9bf95c2dd4ab726163c4db8c3f7da126ebc35cd4 | 3,167 | py | Python | tests/unit/status/mysql_status/test_str.py | denssk/backup | 292d5f1b1a3765ce0ea8d3cab8bd1ae0c583f72e | [
"Apache-2.0"
] | 1 | 2019-03-22T00:04:40.000Z | 2019-03-22T00:04:40.000Z | tests/unit/status/mysql_status/test_str.py | denssk/backup | 292d5f1b1a3765ce0ea8d3cab8bd1ae0c583f72e | [
"Apache-2.0"
] | 1 | 2021-04-30T20:47:57.000Z | 2021-04-30T20:47:57.000Z | tests/unit/status/mysql_status/test_str.py | denssk/backup | 292d5f1b1a3765ce0ea8d3cab8bd1ae0c583f72e | [
"Apache-2.0"
] | 1 | 2019-09-17T08:32:52.000Z | 2019-09-17T08:32:52.000Z | from twindb_backup.status.mysql_status import MySQLStatus
def test_str_old(deprecated_status_raw_content):
status = MySQLStatus(deprecated_status_raw_content)
expected = '{"monthly": {}, "hourly": {"master1/hourly/mysql/mysql-2018-03-28_04_11_16.xbstream.gz": {"galera": false, "binlog": "mysql-bin.000001", "r... | 197.9375 | 1,845 | 0.825703 | 244 | 3,167 | 10.491803 | 0.266393 | 0.028125 | 0.034375 | 0.040625 | 0.935938 | 0.8875 | 0.885938 | 0.698047 | 0.679297 | 0.667969 | 0 | 0.142525 | 0.049574 | 3,167 | 15 | 1,846 | 211.133333 | 0.707973 | 0 | 0 | 0.222222 | 0 | 0.222222 | 0.886959 | 0.596464 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
5002522ee09d8aeb626f11de5b128ddd46a2e9a6 | 150 | py | Python | app/oauth/__init__.py | liam-carswell/flask-dance-multi-provider | 86e66154ea83963d6b729c0cc5b8a45ba2555ee8 | [
"MIT"
] | null | null | null | app/oauth/__init__.py | liam-carswell/flask-dance-multi-provider | 86e66154ea83963d6b729c0cc5b8a45ba2555ee8 | [
"MIT"
] | null | null | null | app/oauth/__init__.py | liam-carswell/flask-dance-multi-provider | 86e66154ea83963d6b729c0cc5b8a45ba2555ee8 | [
"MIT"
] | null | null | null | from .github import blueprint as github_blueprint
from .google import blueprint as google_blueprint
from .strava import blueprint as strava_blueprint
| 37.5 | 49 | 0.86 | 21 | 150 | 6 | 0.333333 | 0.357143 | 0.404762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 150 | 3 | 50 | 50 | 0.954545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 8 |
5045dd518db41d227f64eeee9e15bd9bb294d8cd | 3,398 | py | Python | timemachines/skaters/bats/allbatsskaters.py | iklasky/timemachines | 1820fa9453d31d4daaeff75274a935c7455febe3 | [
"MIT"
] | 253 | 2021-01-08T17:33:30.000Z | 2022-03-21T17:32:36.000Z | timemachines/skaters/bats/allbatsskaters.py | iklasky/timemachines | 1820fa9453d31d4daaeff75274a935c7455febe3 | [
"MIT"
] | 65 | 2021-01-20T16:43:35.000Z | 2022-03-30T19:07:22.000Z | timemachines/skaters/bats/allbatsskaters.py | iklasky/timemachines | 1820fa9453d31d4daaeff75274a935c7455febe3 | [
"MIT"
] | 28 | 2021-02-04T14:58:30.000Z | 2022-01-17T04:35:17.000Z | from timemachines.skatertools.utilities.conventions import Y_TYPE, A_TYPE, R_TYPE, E_TYPE, T_TYPE
from timemachines.skaters.bats.batsinclusion import using_bats
if using_bats:
from timemachines.skaters.bats.batsfactory import bats_factory
def bats_fast(y: Y_TYPE, s, k: int, a: A_TYPE = None, t: T_TYPE = None,... | 57.59322 | 122 | 0.654797 | 698 | 3,398 | 2.918338 | 0.054441 | 0.188513 | 0.035346 | 0.041237 | 0.814433 | 0.814433 | 0.814433 | 0.802651 | 0.799705 | 0.799705 | 0 | 0 | 0.201589 | 3,398 | 59 | 123 | 57.59322 | 0.750829 | 0 | 0 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.342857 | false | 0 | 0.085714 | 0.342857 | 0.771429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 9 |
5060eafbe4df6ee666240bdb01706082c4b9d3e0 | 167 | py | Python | app/listeners/__init__.py | LuoLuo0101/cognition-stock | 62201106fbb50635ca731921c159a700bc36ebb4 | [
"MIT"
] | null | null | null | app/listeners/__init__.py | LuoLuo0101/cognition-stock | 62201106fbb50635ca731921c159a700bc36ebb4 | [
"MIT"
] | null | null | null | app/listeners/__init__.py | LuoLuo0101/cognition-stock | 62201106fbb50635ca731921c159a700bc36ebb4 | [
"MIT"
] | null | null | null | from sanic import Sanic
from app.listeners.redis_listeners import configure_redis_listeners
def configure_listeners(app: Sanic):
configure_redis_listeners(app)
| 20.875 | 67 | 0.838323 | 22 | 167 | 6.090909 | 0.363636 | 0.313433 | 0.343284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113772 | 167 | 7 | 68 | 23.857143 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
ac95e1c12984d21e7043e2f9d40e404e892a0a65 | 12,059 | py | Python | fhir/resources/STU3/tests/test_messagedefinition.py | mmabey/fhir.resources | cc73718e9762c04726cd7de240c8f2dd5313cbe1 | [
"BSD-3-Clause"
] | null | null | null | fhir/resources/STU3/tests/test_messagedefinition.py | mmabey/fhir.resources | cc73718e9762c04726cd7de240c8f2dd5313cbe1 | [
"BSD-3-Clause"
] | null | null | null | fhir/resources/STU3/tests/test_messagedefinition.py | mmabey/fhir.resources | cc73718e9762c04726cd7de240c8f2dd5313cbe1 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Profile: http://hl7.org/fhir/StructureDefinition/MessageDefinition
Release: STU3
Version: 3.0.2
Revision: 11917
Last updated: 2019-10-24T11:53:00+11:00
"""
import io
import json
import os
import unittest
import pytest
from .. import messagedefinition
from ..fhirdate import FHIRDate
from .... | 41.297945 | 129 | 0.627001 | 1,309 | 12,059 | 5.658518 | 0.154316 | 0.193061 | 0.191711 | 0.239638 | 0.8253 | 0.81909 | 0.806804 | 0.797354 | 0.767382 | 0.760902 | 0.000166 | 0.026562 | 0.247616 | 12,059 | 291 | 130 | 41.439863 | 0.789596 | 0.014429 | 0 | 0.60223 | 0 | 0.018587 | 0.197693 | 0.028122 | 0 | 0 | 0 | 0 | 0.342007 | 1 | 0.026022 | false | 0 | 0.02974 | 0 | 0.063197 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
acb6dc5e93b58f39fd88535f2e0328cc4a243990 | 3,968 | py | Python | zmigrate/drivers.py | ziggurattech/zmigrate | 6dc2d1bc907db165869457300021840fe4c6d069 | [
"MIT"
] | null | null | null | zmigrate/drivers.py | ziggurattech/zmigrate | 6dc2d1bc907db165869457300021840fe4c6d069 | [
"MIT"
] | null | null | null | zmigrate/drivers.py | ziggurattech/zmigrate | 6dc2d1bc907db165869457300021840fe4c6d069 | [
"MIT"
] | null | null | null | from zmigrate.utils import no_impl
class Driver:
pass
class Postgres(Driver):
def __init__(self, args):
import psycopg2
self.conn = psycopg2.connect(host=args.host, user=args.user, password=args.password)
self.conn.set_session(autocommit=True)
rows = self.execute("SELECT 1 FROM pg_catalog.pg_database WHERE ... | 35.428571 | 168 | 0.672631 | 572 | 3,968 | 4.554196 | 0.146853 | 0.062188 | 0.038388 | 0.01881 | 0.854127 | 0.854127 | 0.833397 | 0.833397 | 0.833397 | 0.833397 | 0 | 0.003931 | 0.166583 | 3,968 | 111 | 169 | 35.747748 | 0.783792 | 0 | 0 | 0.839623 | 0 | 0 | 0.115171 | 0.005544 | 0.018868 | 0 | 0 | 0 | 0 | 1 | 0.169811 | false | 0.028302 | 0.028302 | 0.009434 | 0.311321 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
4a0723c93479a8bbc5ca71dc3546fad9ba304db8 | 68 | py | Python | astprint/__init__.py | fjarri-attic/astprint | b6f5113ed0dd2af0a7ba8b0445fc25ba6d970321 | [
"MIT"
] | 2 | 2016-12-25T08:13:36.000Z | 2020-05-11T01:40:00.000Z | astprint/__init__.py | fjarri-attic/astprint | b6f5113ed0dd2af0a7ba8b0445fc25ba6d970321 | [
"MIT"
] | null | null | null | astprint/__init__.py | fjarri-attic/astprint | b6f5113ed0dd2af0a7ba8b0445fc25ba6d970321 | [
"MIT"
] | 3 | 2016-12-27T07:06:47.000Z | 2021-01-20T03:22:35.000Z | from astprint.code import as_code
from astprint.tree import as_tree
| 22.666667 | 33 | 0.852941 | 12 | 68 | 4.666667 | 0.5 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 68 | 2 | 34 | 34 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 7 |
c58bc120f469b17dec4b420c96c455acecd8feb7 | 264 | py | Python | ramda/dissoc_test.py | jakobkolb/ramda.py | 982b2172f4bb95b9a5b09eff8077362d6f2f0920 | [
"MIT"
] | 56 | 2018-08-06T08:44:58.000Z | 2022-03-17T09:49:03.000Z | ramda/dissoc_test.py | jakobkolb/ramda.py | 982b2172f4bb95b9a5b09eff8077362d6f2f0920 | [
"MIT"
] | 28 | 2019-06-17T11:09:52.000Z | 2022-02-18T16:59:21.000Z | ramda/dissoc_test.py | jakobkolb/ramda.py | 982b2172f4bb95b9a5b09eff8077362d6f2f0920 | [
"MIT"
] | 5 | 2019-09-18T09:24:38.000Z | 2021-07-21T08:40:23.000Z | from ramda.dissoc import dissoc
from ramda.private.asserts import *
def dissoc_test():
assert_equal(dissoc("b", {"a": 1, "b": 2, "c": 3}), {"a": 1, "c": 3})
def dissoc_curry_test():
assert_equal(dissoc("b")({"a": 1, "b": 2, "c": 3}), {"a": 1, "c": 3})
| 24 | 73 | 0.560606 | 45 | 264 | 3.177778 | 0.377778 | 0.055944 | 0.20979 | 0.293706 | 0.447552 | 0.447552 | 0.447552 | 0.447552 | 0.447552 | 0.447552 | 0 | 0.045662 | 0.170455 | 264 | 10 | 74 | 26.4 | 0.607306 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
c5b2079cb9324fbc5d358a048634ed6c352b28be | 159 | py | Python | tests/test_environment.py | brunocriado/tcpparser | 10acb03bb0e594f5930e9e8b29541ec28ed67420 | [
"MIT"
] | null | null | null | tests/test_environment.py | brunocriado/tcpparser | 10acb03bb0e594f5930e9e8b29541ec28ed67420 | [
"MIT"
] | null | null | null | tests/test_environment.py | brunocriado/tcpparser | 10acb03bb0e594f5930e9e8b29541ec28ed67420 | [
"MIT"
] | null | null | null | from tcpparser.environment import exe_exists
def test_exe_exists():
assert exe_exists("iptables") is not None
assert exe_exists("iptabless") is None
| 22.714286 | 45 | 0.767296 | 23 | 159 | 5.086957 | 0.608696 | 0.307692 | 0.25641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157233 | 159 | 6 | 46 | 26.5 | 0.873134 | 0 | 0 | 0 | 0 | 0 | 0.106918 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.25 | true | 0 | 0.25 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c5f22875a0268f39ca8bfa40ab02f84dc9cf4ea3 | 12,755 | py | Python | ydb/public/api/grpc/ydb_rate_limiter_v1_pb2_grpc.py | gridnevvvit/ydb-python-sdk | 952f7b4f179595b07711934691d2e15643929cc5 | [
"Apache-2.0"
] | 2 | 2022-02-18T16:18:52.000Z | 2022-02-19T20:15:05.000Z | ydb/public/api/grpc/ydb_rate_limiter_v1_pb2_grpc.py | gridnevvvit/ydb-python-sdk | 952f7b4f179595b07711934691d2e15643929cc5 | [
"Apache-2.0"
] | 1 | 2022-02-09T12:49:19.000Z | 2022-02-21T08:15:36.000Z | ydb/public/api/grpc/ydb_rate_limiter_v1_pb2_grpc.py | gridnevvvit/ydb-python-sdk | 952f7b4f179595b07711934691d2e15643929cc5 | [
"Apache-2.0"
] | 2 | 2022-02-03T14:58:56.000Z | 2022-02-22T19:42:59.000Z | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from ydb.public.api.protos import ydb_rate_limiter_pb2 as ydb_dot_public_dot_api_dot_protos_dot_ydb__rate__limiter__pb2
class RateLimiterServiceStub(object):
... | 50.41502 | 145 | 0.714308 | 1,292 | 12,755 | 6.541022 | 0.104489 | 0.053366 | 0.062951 | 0.076441 | 0.844042 | 0.824399 | 0.824399 | 0.761212 | 0.761212 | 0.761212 | 0 | 0.005155 | 0.224304 | 12,755 | 252 | 146 | 50.615079 | 0.848999 | 0.079028 | 0 | 0.5 | 1 | 0 | 0.088595 | 0.057715 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072917 | false | 0 | 0.010417 | 0.03125 | 0.130208 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c5f8a1fa48d528b36896403e6a0ce66bab37764b | 76 | py | Python | core/utils/__init__.py | js-fan/MCIC | a98927e2d88452d96f1fba99a5dc25a5f518caa8 | [
"MIT"
] | 1 | 2021-07-19T21:52:46.000Z | 2021-07-19T21:52:46.000Z | core/utils/__init__.py | js-fan/MCIC | a98927e2d88452d96f1fba99a5dc25a5f518caa8 | [
"MIT"
] | null | null | null | core/utils/__init__.py | js-fan/MCIC | a98927e2d88452d96f1fba99a5dc25a5f518caa8 | [
"MIT"
] | null | null | null | from .image_tools import *
from .dataset_tools import *
from .misc import *
| 19 | 28 | 0.763158 | 11 | 76 | 5.090909 | 0.545455 | 0.392857 | 0.535714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 76 | 3 | 29 | 25.333333 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
a8664ad6fc1e1847e2ae541e0bd17d4d606ecc9c | 55,540 | py | Python | sdk/python/pulumi_oci/goldengate/deployment.py | EladGabay/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2021-08-17T11:14:46.000Z | 2021-12-31T02:07:03.000Z | sdk/python/pulumi_oci/goldengate/deployment.py | pulumi-oci/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-09-06T11:21:29.000Z | 2021-09-06T11:21:29.000Z | sdk/python/pulumi_oci/goldengate/deployment.py | pulumi-oci/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2021-08-24T23:31:30.000Z | 2022-01-02T19:26:54.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 49.811659 | 400 | 0.666547 | 6,825 | 55,540 | 5.211868 | 0.044689 | 0.084113 | 0.063366 | 0.052571 | 0.930027 | 0.90616 | 0.891288 | 0.870175 | 0.854432 | 0.819966 | 0 | 0.004642 | 0.220346 | 55,540 | 1,114 | 401 | 49.856373 | 0.816821 | 0.353529 | 0 | 0.692996 | 1 | 0 | 0.11585 | 0.014395 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166915 | false | 0.00149 | 0.010432 | 0 | 0.280179 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7698aba7811d59ab3c1731ddc2840d6eaae83577 | 45,237 | py | Python | evennia/commands/tests.py | davidrideout/evennia | 879eea55acdf4fe5cdc96ba8fd0ab5ccca4ae84b | [
"BSD-3-Clause"
] | null | null | null | evennia/commands/tests.py | davidrideout/evennia | 879eea55acdf4fe5cdc96ba8fd0ab5ccca4ae84b | [
"BSD-3-Clause"
] | null | null | null | evennia/commands/tests.py | davidrideout/evennia | 879eea55acdf4fe5cdc96ba8fd0ab5ccca4ae84b | [
"BSD-3-Clause"
] | null | null | null | """
Unit testing for the Command system itself.
"""
from django.test import override_settings
from evennia.utils.test_resources import BaseEvenniaTest, TestCase
from evennia.commands.cmdset import CmdSet
from evennia.commands.command import Command
from evennia.commands import cmdparser
# Testing-command sets
cla... | 37.634775 | 126 | 0.631563 | 6,346 | 45,237 | 4.334699 | 0.053104 | 0.063872 | 0.027483 | 0.008143 | 0.864076 | 0.841064 | 0.835648 | 0.824778 | 0.800967 | 0.798931 | 0 | 0.008992 | 0.272299 | 45,237 | 1,201 | 127 | 37.666112 | 0.826635 | 0.234609 | 0 | 0.783611 | 0 | 0 | 0.025564 | 0.003704 | 0 | 0 | 0 | 0 | 0.279129 | 1 | 0.096031 | false | 0.021767 | 0.011524 | 0.003841 | 0.172855 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
4f3cb30d86c5c85adcae719bbbd7b32d3898f2dc | 204 | py | Python | client/admin.py | goldentoaste/authentication-lab | 6b139d79e40ccf5ac053019c09f11e1c6ac8d4a5 | [
"MIT"
] | null | null | null | client/admin.py | goldentoaste/authentication-lab | 6b139d79e40ccf5ac053019c09f11e1c6ac8d4a5 | [
"MIT"
] | null | null | null | client/admin.py | goldentoaste/authentication-lab | 6b139d79e40ccf5ac053019c09f11e1c6ac8d4a5 | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from rest_framework.authtoken.admin import TokenAdmin
from rest_framework.authtoken.models import Token
TokenAdmin.raw_id_fields = ('user',) | 29.142857 | 53 | 0.828431 | 28 | 204 | 5.892857 | 0.642857 | 0.09697 | 0.206061 | 0.315152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102941 | 204 | 7 | 54 | 29.142857 | 0.901639 | 0.127451 | 0 | 0 | 0 | 0 | 0.022599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
4f3ea3918aa344407e64c97592c457f06b5e559e | 79,457 | py | Python | model.py | glee1228/segment_temporal_context_aggregation | e5778f848f1cfd89bd1f77beb5e1b38a66a2f13d | [
"Apache-2.0"
] | 1 | 2022-03-15T18:17:45.000Z | 2022-03-15T18:17:45.000Z | model.py | glee1228/segment_temporal_context_aggregation | e5778f848f1cfd89bd1f77beb5e1b38a66a2f13d | [
"Apache-2.0"
] | null | null | null | model.py | glee1228/segment_temporal_context_aggregation | e5778f848f1cfd89bd1f77beb5e1b38a66a2f13d | [
"Apache-2.0"
] | null | null | null | import copy
import math
import numpy as np
import horovod.torch as hvd
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.utils.data import DataLoader, Dataset
from torchvision import models
#
# class NetVLAD(nn.Module):
# """NetVLAD layer implementation"""
#
# def __init__(self, fea... | 39.296241 | 189 | 0.595416 | 10,803 | 79,457 | 4.168749 | 0.032306 | 0.072055 | 0.006462 | 0.023093 | 0.927567 | 0.915399 | 0.896969 | 0.889575 | 0.883557 | 0.876651 | 0 | 0.027532 | 0.278666 | 79,457 | 2,021 | 190 | 39.315685 | 0.758213 | 0.207244 | 0 | 0.780998 | 0 | 0 | 0.022678 | 0 | 0 | 0 | 0 | 0 | 0.02496 | 1 | 0.05153 | false | 0.000805 | 0.007246 | 0 | 0.10306 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
96c4771f591a1211ce3852f23686ca8d634347ab | 115 | py | Python | funcs/__init__.py | cartemic/Research-Scripts | 41977727f724a607fabe3b69714db692752b5ac4 | [
"MIT"
] | null | null | null | funcs/__init__.py | cartemic/Research-Scripts | 41977727f724a607fabe3b69714db692752b5ac4 | [
"MIT"
] | 3 | 2020-05-08T17:33:26.000Z | 2022-03-31T04:34:53.000Z | funcs/__init__.py | cartemic/Research-Scripts | 41977727f724a607fabe3b69714db692752b5ac4 | [
"MIT"
] | 1 | 2019-05-09T21:01:16.000Z | 2019-05-09T21:01:16.000Z | from . import dir, plots, post_processing, simulation
__all__ = ["dir", "plots", "post_processing", "simulation"]
| 28.75 | 59 | 0.721739 | 13 | 115 | 5.923077 | 0.615385 | 0.207792 | 0.311688 | 0.571429 | 0.831169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121739 | 115 | 3 | 60 | 38.333333 | 0.762376 | 0 | 0 | 0 | 0 | 0 | 0.286957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
8c23f2d92e1460ec7923e480c04776bd4ebc4684 | 242 | py | Python | tests/test_utils.py | humanconnectome/pipeline-runner | af8c7f2a23bcdd701cd62e0eeb7071e524031ae0 | [
"MIT"
] | null | null | null | tests/test_utils.py | humanconnectome/pipeline-runner | af8c7f2a23bcdd701cd62e0eeb7071e524031ae0 | [
"MIT"
] | 8 | 2020-08-27T02:09:20.000Z | 2020-08-27T11:37:57.000Z | tests/test_utils.py | humanconnectome/pipeline-runner | af8c7f2a23bcdd701cd62e0eeb7071e524031ae0 | [
"MIT"
] | 1 | 2021-11-18T17:47:42.000Z | 2021-11-18T17:47:42.000Z | from prunner.util.convert import split_file_component
def test_split_file_component():
assert split_file_component("Just content") == ("Just content", None)
assert split_file_component("Filename#Content") == ("Content", "Filename")
| 34.571429 | 78 | 0.760331 | 30 | 242 | 5.833333 | 0.5 | 0.205714 | 0.411429 | 0.274286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115702 | 242 | 6 | 79 | 40.333333 | 0.817757 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.25 | true | 0 | 0.25 | 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 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
4ff307a7c8fd4f66c1b2f077e44028ad36e90232 | 4,309 | py | Python | OpenGLCffi/GL/EXT/ARB/gpu_shader_int64.py | cydenix/OpenGLCffi | c78f51ae5e6b655eb2ea98f072771cf69e2197f3 | [
"MIT"
] | null | null | null | OpenGLCffi/GL/EXT/ARB/gpu_shader_int64.py | cydenix/OpenGLCffi | c78f51ae5e6b655eb2ea98f072771cf69e2197f3 | [
"MIT"
] | null | null | null | OpenGLCffi/GL/EXT/ARB/gpu_shader_int64.py | cydenix/OpenGLCffi | c78f51ae5e6b655eb2ea98f072771cf69e2197f3 | [
"MIT"
] | null | null | null | from OpenGLCffi.GL import params
@params(api='gl', prms=['location', 'x'])
def glUniform1i64ARB(location, x):
pass
@params(api='gl', prms=['location', 'x', 'y'])
def glUniform2i64ARB(location, x, y):
pass
@params(api='gl', prms=['location', 'x', 'y', 'z'])
def glUniform3i64ARB(location, x, y, z):
pass
@params(... | 23.675824 | 68 | 0.670225 | 525 | 4,309 | 5.500952 | 0.102857 | 0.207756 | 0.137119 | 0.186981 | 0.735457 | 0.725416 | 0.725416 | 0.714681 | 0.714681 | 0.690097 | 0 | 0.027218 | 0.113251 | 4,309 | 181 | 69 | 23.80663 | 0.728605 | 0 | 0 | 0.66055 | 0 | 0 | 0.171349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.330275 | false | 0.330275 | 0.009174 | 0 | 0.33945 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 9 |
8c92a3d220ed37c75a8865fe758dfc40f5b3afc2 | 2,134 | py | Python | test_balance.py | AbedFayyad/balance | 6aade43637dbcd7785f55df2965486a8da20b5df | [
"MIT"
] | 1 | 2015-11-05T16:39:07.000Z | 2015-11-05T16:39:07.000Z | test_balance.py | AbedFayyad/balance | 6aade43637dbcd7785f55df2965486a8da20b5df | [
"MIT"
] | null | null | null | test_balance.py | AbedFayyad/balance | 6aade43637dbcd7785f55df2965486a8da20b5df | [
"MIT"
] | null | null | null | #!/Library/FrameWorks/Python.framework/Versions/3.5/bin/python3
from balance import TransactionManager
from balance import Transaction
import os
import unittest
class TestTransaction(unittest.TestCase):
def test_constructor_positive_simple(self):
t = Transaction(100, [])
self.assertEqual(t.is_neg... | 31.382353 | 71 | 0.653702 | 275 | 2,134 | 4.927273 | 0.203636 | 0.232472 | 0.212546 | 0.126199 | 0.739483 | 0.727675 | 0.704059 | 0.704059 | 0.704059 | 0.704059 | 0 | 0.078537 | 0.218369 | 2,134 | 67 | 72 | 31.850746 | 0.733813 | 0.029053 | 0 | 0.490196 | 0 | 0 | 0.045872 | 0 | 0 | 0 | 0 | 0 | 0.411765 | 1 | 0.176471 | false | 0.019608 | 0.078431 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
8cd54ba8341657fdad7b120f181721a0e4fa5e8e | 4,334 | py | Python | tests/test_trimesh_circulator_halfedge_loop.py | nmaxwell/OpenMesh-Python | daa461069decb459f990bfcc1131c55a2db7b5e5 | [
"BSD-3-Clause"
] | 9 | 2019-09-16T10:03:37.000Z | 2022-02-03T17:56:24.000Z | tests/test_trimesh_circulator_halfedge_loop.py | Jiawei1996/OpenMesh-Python | daa461069decb459f990bfcc1131c55a2db7b5e5 | [
"BSD-3-Clause"
] | 2 | 2017-01-04T10:55:17.000Z | 2017-01-16T16:59:34.000Z | tests/test_trimesh_circulator_halfedge_loop.py | jjennings955/openmesh-python-subdivide | 7f39bd1693f009ddd8739c98671b122c4d4aba81 | [
"BSD-3-Clause"
] | 1 | 2020-04-13T15:23:59.000Z | 2020-04-13T15:23:59.000Z | import unittest
import openmesh
import numpy as np
class TrimeshCirculatorHalfedgeLoop(unittest.TestCase):
def setUp(self):
self.mesh = openmesh.TriMesh()
self.vhandle = []
def test_halfedge_loop_with_face(self):
# Add some vertices
self.vhandle.append(self.mesh.add_verte... | 31.867647 | 86 | 0.547993 | 534 | 4,334 | 4.294007 | 0.142322 | 0.183166 | 0.16485 | 0.201483 | 0.811601 | 0.811601 | 0.788923 | 0.753162 | 0.737462 | 0.737462 | 0 | 0.037609 | 0.312875 | 4,334 | 135 | 87 | 32.103704 | 0.732371 | 0.127596 | 0 | 0.774648 | 0 | 0 | 0.002138 | 0 | 0 | 0 | 0 | 0 | 0.112676 | 1 | 0.042254 | false | 0 | 0.042254 | 0 | 0.098592 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
8ce2dd68da3d50b98af2b33c46901c305845d73f | 47,541 | py | Python | precision_search/model/TimePPG_variants.py | EmbeddedML-EDAGroup/Q-PPG | ed42829d0a456db4f0b31d63ba8b22ba483c7b08 | [
"Apache-2.0"
] | 1 | 2021-12-18T21:04:29.000Z | 2021-12-18T21:04:29.000Z | precision_search/model/TimePPG_variants.py | EmbeddedML-EDAGroup/Q-PPG | ed42829d0a456db4f0b31d63ba8b22ba483c7b08 | [
"Apache-2.0"
] | null | null | null | precision_search/model/TimePPG_variants.py | EmbeddedML-EDAGroup/Q-PPG | ed42829d0a456db4f0b31d63ba8b22ba483c7b08 | [
"Apache-2.0"
] | null | null | null | #*----------------------------------------------------------------------------*
#* Copyright (C) 2021 Politecnico di Torino, Italy *
#* SPDX-License-Identifier: Apache-2.0 *
#* *
... | 42.108946 | 195 | 0.503124 | 5,814 | 47,541 | 3.952872 | 0.054008 | 0.024889 | 0.028196 | 0.028196 | 0.874467 | 0.866591 | 0.853451 | 0.851275 | 0.843878 | 0.834436 | 0 | 0.076761 | 0.372752 | 47,541 | 1,128 | 196 | 42.146277 | 0.69393 | 0.093288 | 0 | 0.707889 | 0 | 0 | 0.058526 | 0.033902 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056503 | false | 0.009595 | 0.018124 | 0.026652 | 0.13113 | 0.003198 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
50ae09d9ed928ff2fe69cee13beefcf7d848b329 | 550 | py | Python | eval_mosmed_timm-regnetx_002_ShiftScaleRotate.py | BrunoKrinski/segtool | cb604b5f38104c43a76450136e37c3d1c4b6d275 | [
"MIT"
] | null | null | null | eval_mosmed_timm-regnetx_002_ShiftScaleRotate.py | BrunoKrinski/segtool | cb604b5f38104c43a76450136e37c3d1c4b6d275 | [
"MIT"
] | null | null | null | eval_mosmed_timm-regnetx_002_ShiftScaleRotate.py | BrunoKrinski/segtool | cb604b5f38104c43a76450136e37c3d1c4b6d275 | [
"MIT"
] | null | null | null | import os
ls=["python main.py --configs configs/eval_mosmed_unetplusplus_timm-regnetx_002_0_ShiftScaleRotate.yml",
"python main.py --configs configs/eval_mosmed_unetplusplus_timm-regnetx_002_1_ShiftScaleRotate.yml",
"python main.py --configs configs/eval_mosmed_unetplusplus_timm-regnetx_002_2_ShiftScaleRotate.yml",
"p... | 50 | 104 | 0.849091 | 80 | 550 | 5.4625 | 0.3 | 0.114416 | 0.1373 | 0.217391 | 0.883295 | 0.883295 | 0.883295 | 0.883295 | 0.883295 | 0.883295 | 0 | 0.038536 | 0.056364 | 550 | 11 | 105 | 50 | 0.803468 | 0 | 0 | 0 | 0 | 0 | 0.880218 | 0.653358 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
50e0e5a22159288e161921eb1fd25e46702ad613 | 99 | py | Python | 2.py | chauhanmahavir/Python-Basics | c250a9eee203e1188a968ba2c60262442719fa49 | [
"MIT"
] | 1 | 2020-08-05T05:38:44.000Z | 2020-08-05T05:38:44.000Z | 2.py | chauhanmahavir/Python-Basics | c250a9eee203e1188a968ba2c60262442719fa49 | [
"MIT"
] | null | null | null | 2.py | chauhanmahavir/Python-Basics | c250a9eee203e1188a968ba2c60262442719fa49 | [
"MIT"
] | null | null | null | print('hii'+str(5))
print(int(8)+5);
print(float(8.5)+5);
print(int(8.5)+5);
#print(int('C'))
| 16.5 | 21 | 0.555556 | 21 | 99 | 2.619048 | 0.380952 | 0.436364 | 0.490909 | 0.363636 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101124 | 0.10101 | 99 | 5 | 22 | 19.8 | 0.516854 | 0.151515 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
50e3d842c8440f9384677d32fd702dce06cd98e5 | 338 | py | Python | src/interpreter/functions/compare.py | b-Development-Team/b-star | e1a47e118d0f30f7caca5ecc3ac08fadaf2227c6 | [
"MIT"
] | 1 | 2021-12-28T22:07:10.000Z | 2021-12-28T22:07:10.000Z | src/interpreter/functions/compare.py | b-Development-Team/b-star | e1a47e118d0f30f7caca5ecc3ac08fadaf2227c6 | [
"MIT"
] | 6 | 2022-01-07T22:49:19.000Z | 2022-03-11T05:39:04.000Z | src/interpreter/functions/compare.py | b-Development-Team/b-star | e1a47e118d0f30f7caca5ecc3ac08fadaf2227c6 | [
"MIT"
] | 4 | 2021-11-26T01:38:32.000Z | 2022-02-27T20:54:08.000Z | def compare(v1, operator, v2):
if operator == ">":
return v1 > v2
elif operator == "<":
return v1 < v2
elif operator == ">=":
return v1 >= v2
elif operator == "<=":
return v1 <= v2
elif operator == "=" or "==":
return v1 == v2
elif operator == "!=":
... | 24.142857 | 33 | 0.455621 | 36 | 338 | 4.277778 | 0.25 | 0.311688 | 0.38961 | 0.584416 | 0.831169 | 0.831169 | 0.831169 | 0.831169 | 0.623377 | 0.623377 | 0 | 0.066038 | 0.372781 | 338 | 13 | 34 | 26 | 0.660377 | 0 | 0 | 0 | 0 | 0 | 0.032544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 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 | 1 | 0 | 0 | 9 |
0fdd40f7d99630e4a59354a815a722227f0da17d | 12,320 | py | Python | django_lare/tests.py | iekadou/django-lare | ac9a0c37b42b30deaacf8b4c12282dd74a806b2f | [
"MIT"
] | null | null | null | django_lare/tests.py | iekadou/django-lare | ac9a0c37b42b30deaacf8b4c12282dd74a806b2f | [
"MIT"
] | 1 | 2016-05-20T08:30:28.000Z | 2016-05-20T08:30:28.000Z | django_lare/tests.py | iekadou/django-lare | ac9a0c37b42b30deaacf8b4c12282dd74a806b2f | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django import VERSION as DJANGO_VERSION
from django.test import TestCase, Client
from django_lare.models import Lare
from django_lare.test_views import *
if DJANGO_VERSION < (1,10):
from django.conf.urls import patterns, url
urlpatterns = patterns('',
url... | 52.649573 | 134 | 0.652354 | 1,352 | 12,320 | 5.695266 | 0.067308 | 0.14961 | 0.216104 | 0.116883 | 0.904805 | 0.884805 | 0.884805 | 0.882468 | 0.867792 | 0.843636 | 0 | 0.028241 | 0.221104 | 12,320 | 233 | 135 | 52.875536 | 0.774177 | 0.016964 | 0 | 0.66 | 0 | 0 | 0.167548 | 0.038334 | 0 | 0 | 0 | 0 | 0.45 | 1 | 0.09 | false | 0 | 0.055 | 0 | 0.19 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
ba10c5c24be5a493ed50999cb9c6db9320cf800b | 24,603 | py | Python | echidna/fit/test_statistic.py | snoplusuk/echidna | 9bf38f7233ab172cbf123c1ca97f63df60220f44 | [
"MIT"
] | 7 | 2015-01-29T13:59:26.000Z | 2020-01-28T20:06:32.000Z | echidna/fit/test_statistic.py | snoplusuk/echidna | 9bf38f7233ab172cbf123c1ca97f63df60220f44 | [
"MIT"
] | 142 | 2015-01-05T10:57:53.000Z | 2016-10-11T12:28:02.000Z | echidna/fit/test_statistic.py | snoplusuk/echidna | 9bf38f7233ab172cbf123c1ca97f63df60220f44 | [
"MIT"
] | 10 | 2015-01-08T10:18:32.000Z | 2016-01-29T10:54:35.000Z | """ Module to hold classes for various test statistics that can be used
for fitting.
.. note:: All forms of chi-squared are as defined in:
* S. Baker & R. D. Cousins, Nucl. Inst. and Meth. in Phys. Res. 211,
437-442 (1984)
"""
import numpy
import abc
class TestStatistic(object):
""" Base class for the cal... | 35.197425 | 78 | 0.592204 | 2,957 | 24,603 | 4.85323 | 0.066283 | 0.047383 | 0.052261 | 0.033168 | 0.882726 | 0.877291 | 0.868372 | 0.839663 | 0.831092 | 0.823357 | 0 | 0.005005 | 0.325895 | 24,603 | 698 | 79 | 35.247851 | 0.860295 | 0.479413 | 0 | 0.850187 | 0 | 0 | 0.048666 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11236 | false | 0 | 0.007491 | 0 | 0.2397 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e86a4dabb9f2d7976f62255713ee0e659b68b271 | 4,149 | py | Python | test/nn/test_grouped_convolution.py | steven-lang/e2cnn | 48f49760766ec958b52d0dd7b02483886dfa2096 | [
"BSD-3-Clause"
] | 356 | 2019-11-22T10:37:22.000Z | 2022-03-25T14:42:45.000Z | test/nn/test_grouped_convolution.py | steven-lang/e2cnn | 48f49760766ec958b52d0dd7b02483886dfa2096 | [
"BSD-3-Clause"
] | 52 | 2020-01-20T16:51:36.000Z | 2022-03-31T21:40:19.000Z | test/nn/test_grouped_convolution.py | steven-lang/e2cnn | 48f49760766ec958b52d0dd7b02483886dfa2096 | [
"BSD-3-Clause"
] | 48 | 2019-12-11T09:29:30.000Z | 2022-03-18T17:51:55.000Z | import unittest
from unittest import TestCase
from e2cnn.nn import *
from e2cnn.gspaces import *
import numpy as np
class TestGroupedConv(TestCase):
def test_cyclic(self):
N = 4
g = Rot2dOnR2(N)
groups = 5
r1 = FieldType(g, list(g.representations.values()) * groups... | 30.065217 | 91 | 0.511931 | 488 | 4,149 | 4.266393 | 0.165984 | 0.076849 | 0.067243 | 0.072046 | 0.835735 | 0.817483 | 0.817483 | 0.817483 | 0.809798 | 0.789625 | 0 | 0.035276 | 0.371415 | 4,149 | 137 | 92 | 30.284672 | 0.763037 | 0.142444 | 0 | 0.76087 | 0 | 0 | 0.010744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054348 | false | 0 | 0.054348 | 0 | 0.119565 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2cdcad2664ff4fc0a983277b7f4006530dd6c313 | 1,861 | py | Python | data/synthetic_disease/generate.py | dheeraj7596/DPPred | 125a1a9df2fdd2349ee24ad457fcada653af0975 | [
"MIT"
] | 10 | 2017-09-18T01:44:56.000Z | 2020-10-29T14:03:01.000Z | data/synthetic_disease/generate.py | dheeraj7596/DPPred | 125a1a9df2fdd2349ee24ad457fcada653af0975 | [
"MIT"
] | 1 | 2019-05-21T08:20:07.000Z | 2019-06-17T18:18:42.000Z | data/synthetic_disease/generate.py | dheeraj7596/DPPred | 125a1a9df2fdd2349ee24ad457fcada653af0975 | [
"MIT"
] | 3 | 2018-01-23T18:14:51.000Z | 2020-08-27T05:56:18.000Z | import random
random.seed(19910724)
N = 100000
out = open('train.csv', 'w')
out.write('age,gender=Male,gender=Female,LT1=A,LT1=B,LT1=O,LT1=AB,LT2,label\n')
for i in xrange(N):
feats = []
age = random.randint(1, 60)
feats.append(str(age))
gender = random.randint(0, 1)
feats.ex... | 27.367647 | 107 | 0.511553 | 280 | 1,861 | 3.4 | 0.175 | 0.05042 | 0.092437 | 0.063025 | 0.905462 | 0.905462 | 0.905462 | 0.905462 | 0.905462 | 0.905462 | 0 | 0.079087 | 0.293391 | 1,861 | 68 | 108 | 27.367647 | 0.644867 | 0 | 0 | 0.816327 | 0 | 0.040816 | 0.087465 | 0.073538 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020408 | 0 | 0.020408 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fa011c8b73ab890f35b0fd49e77a607a54bac1e2 | 4,103 | py | Python | src/propertyrentals/models.py | kaizer88/moltrandashboad | 590b3426ecc3a80aa31a08eb07bed224d0c2562d | [
"MIT"
] | null | null | null | src/propertyrentals/models.py | kaizer88/moltrandashboad | 590b3426ecc3a80aa31a08eb07bed224d0c2562d | [
"MIT"
] | 4 | 2021-04-08T22:01:45.000Z | 2021-09-22T19:50:53.000Z | src/propertyrentals/models.py | kaizer88/moltrandashboad | 590b3426ecc3a80aa31a08eb07bed224d0c2562d | [
"MIT"
] | null | null | null | from django.db import models
from lib.models import BaseModel
# Create your models here.
class Country(models.Model):
name = models.CharField(max_length=255, unique=True, null=False, blank=False)
code = models.CharField(max_length=5, unique=True, null=False, blank=False)
def __str__(self):
return... | 43.648936 | 127 | 0.737265 | 573 | 4,103 | 5.099476 | 0.109948 | 0.143737 | 0.172485 | 0.229979 | 0.863792 | 0.857632 | 0.857632 | 0.852498 | 0.785079 | 0.683436 | 0 | 0.019302 | 0.14136 | 4,103 | 94 | 128 | 43.648936 | 0.810105 | 0.005849 | 0 | 0.632353 | 0 | 0 | 0.023786 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.029412 | 0.117647 | 0.985294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 9 |
fa6a784cc54793b1609c21b911ed01ab2cdb21fc | 211 | py | Python | utils/__init__.py | xyguo/trimmedEM | c350c0f1cabd54bfefcc79ba71f16fdeee9fee36 | [
"MIT"
] | null | null | null | utils/__init__.py | xyguo/trimmedEM | c350c0f1cabd54bfefcc79ba71f16fdeee9fee36 | [
"MIT"
] | null | null | null | utils/__init__.py | xyguo/trimmedEM | c350c0f1cabd54bfefcc79ba71f16fdeee9fee36 | [
"MIT"
] | null | null | null | from .grader import gaussian_mixture_grad, regression_mixture_grad, GMMGrader, MRMGrader
__all__ = ['gaussian_mixture_grad',
'regression_mixture_grad',
'GMMGrader',
'MRMGrader'] | 35.166667 | 88 | 0.696682 | 20 | 211 | 6.75 | 0.5 | 0.325926 | 0.281481 | 0.42963 | 0.859259 | 0.859259 | 0.859259 | 0.859259 | 0 | 0 | 0 | 0 | 0.218009 | 211 | 6 | 89 | 35.166667 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.292453 | 0.207547 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
fa6bd1df1195504d8d4979c2bc0b94f51749c797 | 851 | py | Python | PaddingLocation.py | arpansarkar190794/Arpan_Sarkar | b36f66f0ed00668b005fae903ce463883a803fd5 | [
"bzip2-1.0.6"
] | null | null | null | PaddingLocation.py | arpansarkar190794/Arpan_Sarkar | b36f66f0ed00668b005fae903ce463883a803fd5 | [
"bzip2-1.0.6"
] | null | null | null | PaddingLocation.py | arpansarkar190794/Arpan_Sarkar | b36f66f0ed00668b005fae903ce463883a803fd5 | [
"bzip2-1.0.6"
] | null | null | null | from tkinter import *
gui = Tk()
w = Label( text="Bangalore", bg="red", fg="white")
w.pack(fill=X)
w = Label( text="Karnataka", bg="green", fg="black")
w.pack(fill=X)
gui.mainloop()
from tkinter import *
root = Tk()
w = Label( text="Bangalore", bg="red", fg="white")
w.pack(fill=X,padx=10)
w = L... | 19.340909 | 57 | 0.60517 | 138 | 851 | 3.731884 | 0.202899 | 0.093204 | 0.135922 | 0.116505 | 0.866019 | 0.831068 | 0.8 | 0.8 | 0.737864 | 0.737864 | 0 | 0.019971 | 0.176263 | 851 | 43 | 58 | 19.790698 | 0.714693 | 0 | 0 | 0.821429 | 0 | 0 | 0.178218 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
d70b8c49c7e6a1e50ad0599507d2af51f182e6c2 | 17,540 | py | Python | shor.py | jorgebrandao/ShorAlgorithm | 73187cb39380c2212e26a611d7cb2c2440625af8 | [
"Apache-2.0"
] | null | null | null | shor.py | jorgebrandao/ShorAlgorithm | 73187cb39380c2212e26a611d7cb2c2440625af8 | [
"Apache-2.0"
] | null | null | null | shor.py | jorgebrandao/ShorAlgorithm | 73187cb39380c2212e26a611d7cb2c2440625af8 | [
"Apache-2.0"
] | null | null | null | import sys
sys.path.append('qiskit-sdk-py-master')
from qiskit import QuantumProgram
from math import*
from qiskit.tools.visualization import plot_histogram
#####################COMO USAR AS DIFERENTES GATES######################
#.x(qr[0]) #applying x gate to the first qubit
#.y(qr[0]) ... | 22.035176 | 108 | 0.418529 | 3,693 | 17,540 | 1.984024 | 0.037097 | 0.152859 | 0.227651 | 0.095537 | 0.867613 | 0.8107 | 0.776443 | 0.766207 | 0.760748 | 0.760748 | 0 | 0.146469 | 0.289624 | 17,540 | 795 | 109 | 22.062893 | 0.441573 | 0.136488 | 0 | 0.90625 | 0 | 0 | 0.006067 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001953 | false | 0 | 0.007813 | 0 | 0.009766 | 0.003906 | 0 | 0 | 1 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
d71c65d5817c4dd938e1d20422e6341be37a2eb9 | 41,799 | py | Python | tests/WasmTest1.py | jiuen1115/SM-client-sdk-python | 88ffa77b196803fb141c0b4d27d2841aaebab800 | [
"MIT"
] | 7 | 2019-03-18T06:56:18.000Z | 2021-05-06T07:41:02.000Z | tests/WasmTest1.py | jiuen1115/SM-client-sdk-python | 88ffa77b196803fb141c0b4d27d2841aaebab800 | [
"MIT"
] | 12 | 2020-09-18T05:46:27.000Z | 2021-12-24T09:38:31.000Z | tests/WasmTest1.py | PlatONnetwork/client-sdk-python | 94ad57bb34b5ee7bb314ac858071686382c55402 | [
"MIT"
] | 16 | 2019-02-28T03:21:14.000Z | 2021-07-15T06:49:39.000Z | from hexbytes import HexBytes
from client_sdk_python import Web3, HTTPProvider
from client_sdk_python.eth import PlatON
# import binascii
# f = open('D:/juzhen/SimpleStorage.wasm','rb')
# contents=f.read()
# bytecode=binascii.b2a_hex(contents)
true = True
false = False
#10.1.1.5 ./keytool genkeypair
# Address: lax... | 564.851351 | 26,735 | 0.979736 | 348 | 41,799 | 117.58046 | 0.353448 | 0.00154 | 0.0022 | 0.002151 | 0.013466 | 0.013466 | 0.012708 | 0.012513 | 0.010998 | 0.008847 | 0 | 0.854598 | 0.006364 | 41,799 | 74 | 26,736 | 564.851351 | 0.130595 | 0.686763 | 0 | 0.166667 | 0 | 0 | 0.920416 | 0.906336 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.166667 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
d75b5508ec480c28503bcacb56ebe36b393f0827 | 70,197 | py | Python | multiple-languages/python/ros-cdk-privatelink-1.0.4/src/ros_cdk_privatelink/__init__.py | piotr-kalanski/Resource-Orchestration-Service-Cloud-Development-Kit | 2a12deea757ac69e69708dd9fd159fba12cfba0e | [
"Apache-2.0"
] | null | null | null | multiple-languages/python/ros-cdk-privatelink-1.0.4/src/ros_cdk_privatelink/__init__.py | piotr-kalanski/Resource-Orchestration-Service-Cloud-Development-Kit | 2a12deea757ac69e69708dd9fd159fba12cfba0e | [
"Apache-2.0"
] | null | null | null | multiple-languages/python/ros-cdk-privatelink-1.0.4/src/ros_cdk_privatelink/__init__.py | piotr-kalanski/Resource-Orchestration-Service-Cloud-Development-Kit | 2a12deea757ac69e69708dd9fd159fba12cfba0e | [
"Apache-2.0"
] | null | null | null | '''
## Aliyun ROS PRIVATELINK Construct Library
This module is part of the AliCloud ROS Cloud Development Kit (ROS CDK) project.
```python
import * as PRIVATELINK from '@alicloud/ros-cdk-privatelink';
```
'''
import abc
import builtins
import datetime
import enum
import typing
import jsii
import publication
import t... | 43.092081 | 274 | 0.676012 | 8,052 | 70,197 | 5.703428 | 0.031545 | 0.039326 | 0.062059 | 0.124379 | 0.929754 | 0.923896 | 0.921806 | 0.91769 | 0.915273 | 0.912137 | 0 | 0.001082 | 0.210351 | 70,197 | 1,628 | 275 | 43.11855 | 0.827407 | 0.211604 | 0 | 0.829268 | 0 | 0 | 0.119711 | 0.039369 | 0 | 0 | 0 | 0 | 0.014634 | 1 | 0.156098 | false | 0 | 0.009756 | 0.029268 | 0.302439 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
d75e8cdda844a126d86e5391f5a06866ab1c9dba | 76 | py | Python | tests/logical/OR.py | past-one/rubymine-is2018 | 9b7f38bbcab0b59434e074632e9e2fb9dbd56d29 | [
"Apache-2.0"
] | null | null | null | tests/logical/OR.py | past-one/rubymine-is2018 | 9b7f38bbcab0b59434e074632e9e2fb9dbd56d29 | [
"Apache-2.0"
] | null | null | null | tests/logical/OR.py | past-one/rubymine-is2018 | 9b7f38bbcab0b59434e074632e9e2fb9dbd56d29 | [
"Apache-2.0"
] | null | null | null | if 3 > 4 or 5 < 10: # true
pass
if 3 > 4 or 5 > 10: # false
pass
| 12.666667 | 28 | 0.460526 | 16 | 76 | 2.1875 | 0.5625 | 0.171429 | 0.228571 | 0.342857 | 0.514286 | 0.514286 | 0 | 0 | 0 | 0 | 0 | 0.232558 | 0.434211 | 76 | 5 | 29 | 15.2 | 0.581395 | 0.131579 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
d75ed40e3c19ebdc37e2ec7210107b403779c963 | 87 | py | Python | moses/organ/__init__.py | rtriangle/moses | 1ef94d32f94f4f1cd7d46a91c76722bfa8a70632 | [
"MIT"
] | 2 | 2020-07-10T03:09:17.000Z | 2020-07-10T04:28:01.000Z | moses/organ/__init__.py | stephenra/moses | 32dbc64c23bbae23fd964238108aa5c85852d537 | [
"MIT"
] | null | null | null | moses/organ/__init__.py | stephenra/moses | 32dbc64c23bbae23fd964238108aa5c85852d537 | [
"MIT"
] | null | null | null | from .config import * # noqa
from .model import * # noqa
from .trainer import * # noqa
| 21.75 | 29 | 0.689655 | 12 | 87 | 5 | 0.5 | 0.5 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 87 | 3 | 30 | 29 | 0.869565 | 0.16092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
d7687e6959b1e2f028f05deb4dc5ef8a6da2108f | 503 | py | Python | Location.py | arpansarkar190794/Arpan_Sarkar | b36f66f0ed00668b005fae903ce463883a803fd5 | [
"bzip2-1.0.6"
] | null | null | null | Location.py | arpansarkar190794/Arpan_Sarkar | b36f66f0ed00668b005fae903ce463883a803fd5 | [
"bzip2-1.0.6"
] | null | null | null | Location.py | arpansarkar190794/Arpan_Sarkar | b36f66f0ed00668b005fae903ce463883a803fd5 | [
"bzip2-1.0.6"
] | null | null | null | from tkinter import *
gui = Tk()
def Name():
Label (text='Bangalore',fg='red',bg='white',font=('arial',24,'italic')).pack(pady=10,fill=X)
Label (text='Karnataka',fg='Yellow',bg='white',font=('arial',24,'italic')).pack(pady=10,fill=X)
def Name1():
Label (text='Bangalore',fg='red',bg='white'... | 33.533333 | 100 | 0.59841 | 73 | 503 | 4.123288 | 0.369863 | 0.119601 | 0.146179 | 0.212625 | 0.810631 | 0.810631 | 0.810631 | 0.810631 | 0.810631 | 0.810631 | 0 | 0.042056 | 0.149105 | 503 | 14 | 101 | 35.928571 | 0.661215 | 0 | 0 | 0 | 0 | 0 | 0.241309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
d7742e466a3a923966f1e73b826b43872d15c153 | 34,613 | py | Python | tests/aat/api/v1/client/api/tvlp_api.py | gchagnotSpt/openperf | 0ae14cb7a685b1b059f707379773fb3bcb421d40 | [
"Apache-2.0"
] | 20 | 2019-12-04T01:28:52.000Z | 2022-03-17T14:09:34.000Z | tests/aat/api/v1/client/api/tvlp_api.py | gchagnotSpt/openperf | 0ae14cb7a685b1b059f707379773fb3bcb421d40 | [
"Apache-2.0"
] | 115 | 2020-02-04T21:29:54.000Z | 2022-02-17T13:33:51.000Z | tests/aat/api/v1/client/api/tvlp_api.py | gchagnotSpt/openperf | 0ae14cb7a685b1b059f707379773fb3bcb421d40 | [
"Apache-2.0"
] | 16 | 2019-12-03T16:41:18.000Z | 2021-11-06T04:44:11.000Z | # coding: utf-8
"""
OpenPerf API
REST API interface for OpenPerf # noqa: E501
OpenAPI spec version: 1
Contact: support@spirent.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compa... | 37.952851 | 133 | 0.604917 | 3,902 | 34,613 | 5.118913 | 0.043311 | 0.055272 | 0.025233 | 0.032442 | 0.966657 | 0.963302 | 0.958997 | 0.950986 | 0.947332 | 0.94613 | 0 | 0.017505 | 0.305174 | 34,613 | 911 | 134 | 37.994512 | 0.813015 | 0.330598 | 0 | 0.817248 | 1 | 0 | 0.165299 | 0.041688 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039014 | false | 0 | 0.008214 | 0 | 0.104723 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
ad76edca5247bb44331d9f3d8b47b2d7fbcde7da | 37 | py | Python | CodeUP/Python basic 100/6022.py | cmsong111/NJ_code | 2df6176d179e168a2789a825ddeb977a82eb8d97 | [
"MIT"
] | null | null | null | CodeUP/Python basic 100/6022.py | cmsong111/NJ_code | 2df6176d179e168a2789a825ddeb977a82eb8d97 | [
"MIT"
] | null | null | null | CodeUP/Python basic 100/6022.py | cmsong111/NJ_code | 2df6176d179e168a2789a825ddeb977a82eb8d97 | [
"MIT"
] | null | null | null | s=input()
print(s[:2],s[2:4],s[4:6])
| 12.333333 | 26 | 0.513514 | 11 | 37 | 1.727273 | 0.545455 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.054054 | 37 | 2 | 27 | 18.5 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
ad83e06fa8f1c8cf4eadc2c08bcc0419202d0d94 | 760 | py | Python | tests/test_user_agent.py | fujiawei-dev/tookit-py | 5ab3a18a41885f6166150cc27183621b96f8f991 | [
"BSD-3-Clause"
] | null | null | null | tests/test_user_agent.py | fujiawei-dev/tookit-py | 5ab3a18a41885f6166150cc27183621b96f8f991 | [
"BSD-3-Clause"
] | null | null | null | tests/test_user_agent.py | fujiawei-dev/tookit-py | 5ab3a18a41885f6166150cc27183621b96f8f991 | [
"BSD-3-Clause"
] | null | null | null | from user_agent.generate import Browser, OS, generate_user_agent
def test_generate_user_agent():
print(generate_user_agent())
print(generate_user_agent(OS.Windows, platform=None))
print(generate_user_agent(OS.Linux, platform=None))
print(generate_user_agent(OS.Mac, platform=None))
print(generate_u... | 47.5 | 70 | 0.789474 | 104 | 760 | 5.5 | 0.211538 | 0.22028 | 0.386364 | 0.423077 | 0.781469 | 0.777972 | 0.777972 | 0.41958 | 0 | 0 | 0 | 0 | 0.098684 | 760 | 15 | 71 | 50.666667 | 0.835037 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | true | 0 | 0.076923 | 0 | 0.153846 | 0.846154 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 8 |
ad9d727aa59e2cd0e0826e3e31f883ec3007b0b4 | 238 | py | Python | recipes/Python/66521_Avoiding_lambdwriting_callback/recipe-66521.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/66521_Avoiding_lambdwriting_callback/recipe-66521.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/66521_Avoiding_lambdwriting_callback/recipe-66521.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | class Command:
def __init__(self, callback, *args, **kwargs):
self.callback = callback
self.args = args
self.kwargs = kwargs
def __call__(self):
return apply(self.callback, self.args, self.kwargs)
| 26.444444 | 59 | 0.62605 | 28 | 238 | 5.035714 | 0.392857 | 0.255319 | 0.22695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.264706 | 238 | 8 | 60 | 29.75 | 0.805714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.571429 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
d1240782072c124b372f24e435b3ad3a747b3b2f | 31,194 | py | Python | etl/parsers/etw/Microsoft_Windows_Threat_Intelligence.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 104 | 2020-03-04T14:31:31.000Z | 2022-03-28T02:59:36.000Z | etl/parsers/etw/Microsoft_Windows_Threat_Intelligence.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 7 | 2020-04-20T09:18:39.000Z | 2022-03-19T17:06:19.000Z | etl/parsers/etw/Microsoft_Windows_Threat_Intelligence.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 16 | 2020-03-05T18:55:59.000Z | 2022-03-01T10:19:28.000Z | # -*- coding: utf-8 -*-
"""
Microsoft-Windows-Threat-Intelligence
GUID : f4e1897c-bb5d-5668-f1d8-040f4d8dd344
"""
from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct
from etl.utils import WString, CString, SystemTime, Guid
from etl.dtyp import Sid
... | 39.486076 | 123 | 0.66952 | 1,962 | 31,194 | 10.553007 | 0.077472 | 0.023956 | 0.032939 | 0.050906 | 0.982033 | 0.982033 | 0.980295 | 0.912195 | 0.912195 | 0.912195 | 0 | 0.076025 | 0.231294 | 31,194 | 789 | 124 | 39.536122 | 0.787439 | 0.003334 | 0 | 0.86722 | 0 | 0 | 0.440237 | 0.345227 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.005533 | 0 | 0.08852 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
d14bf4e0d49c3a77ab698d38d7c78e2725a23b73 | 18,296 | py | Python | tests/test_feature_selection/test_feature_selection.py | PanyiDong/AutoML | 4d981b0287fa27d7a38f029e4b20b3a89e1de4f9 | [
"MIT"
] | null | null | null | tests/test_feature_selection/test_feature_selection.py | PanyiDong/AutoML | 4d981b0287fa27d7a38f029e4b20b3a89e1de4f9 | [
"MIT"
] | null | null | null | tests/test_feature_selection/test_feature_selection.py | PanyiDong/AutoML | 4d981b0287fa27d7a38f029e4b20b3a89e1de4f9 | [
"MIT"
] | null | null | null | """
File: test_feature_selection.py
Author: Panyi Dong
GitHub: https://github.com/PanyiDong/
Mathematics Department, University of Illinois at Urbana-Champaign (UIUC)
Project: My_AutoML
Latest Version: 0.2.0
Relative Path: /tests/test_feature_selection/test_feature_selection.py
File Created: Friday, 15th April 2022 12... | 32.042032 | 93 | 0.690643 | 2,253 | 18,296 | 5.365291 | 0.117621 | 0.247518 | 0.034249 | 0.052945 | 0.80766 | 0.795334 | 0.772253 | 0.752813 | 0.70814 | 0.69722 | 0 | 0.008565 | 0.215129 | 18,296 | 570 | 94 | 32.098246 | 0.833217 | 0.152711 | 0 | 0.709859 | 0 | 0 | 0.13738 | 0.048358 | 0 | 0 | 0 | 0 | 0.112676 | 1 | 0.03662 | false | 0.002817 | 0.129577 | 0 | 0.166197 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
0f0be90d90114a72ba23e639875f66e9c2ca4e8c | 9,251 | py | Python | ivy/array/elementwise.py | VedPatwardhan/ivy | 7b2105fa8cf38879444a1029bfaa7f0b2f27717a | [
"Apache-2.0"
] | 1 | 2022-02-13T19:35:02.000Z | 2022-02-13T19:35:02.000Z | ivy/array/elementwise.py | Arijit1000/ivy | de193946a580ca0f54d78fe7fc4031a6ff66d2bb | [
"Apache-2.0"
] | null | null | null | ivy/array/elementwise.py | Arijit1000/ivy | de193946a580ca0f54d78fe7fc4031a6ff66d2bb | [
"Apache-2.0"
] | null | null | null | # global
import abc
from typing import Optional, Union
# local
import ivy
# ToDo: implement all methods here as public instance methods
# noinspection PyUnresolvedReferences
class ArrayWithElementwise(abc.ABC):
def abs(self: ivy.Array, out: Optional[ivy.Array] = None) -> ivy.Array:
return ivy.abs(self._... | 33.518116 | 86 | 0.60988 | 1,302 | 9,251 | 4.264977 | 0.063748 | 0.279489 | 0.123177 | 0.19503 | 0.888529 | 0.799748 | 0.759229 | 0.693859 | 0.682694 | 0.682694 | 0 | 0.008282 | 0.243001 | 9,251 | 275 | 87 | 33.64 | 0.784664 | 0.011674 | 0 | 0.436019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003636 | 0 | 1 | 0.270142 | false | 0 | 0.014218 | 0.270142 | 0.559242 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 9 |
0f550141b52201cabd98458795c733b5538fd14d | 3,970 | py | Python | core/migrations/0015_invoice_salesorder.py | tanyutao544/digitalace-backend | 3607b1325856eafa4e1c96d6189f7aed1b163a19 | [
"MIT"
] | 1 | 2021-05-28T05:22:54.000Z | 2021-05-28T05:22:54.000Z | core/migrations/0015_invoice_salesorder.py | tanyutao544/digitalace-backend | 3607b1325856eafa4e1c96d6189f7aed1b163a19 | [
"MIT"
] | 3 | 2021-05-31T15:44:14.000Z | 2021-06-29T07:48:13.000Z | core/migrations/0015_invoice_salesorder.py | tanyutao544/digitalace-backend | 3607b1325856eafa4e1c96d6189f7aed1b163a19 | [
"MIT"
] | 1 | 2021-05-30T07:42:54.000Z | 2021-05-30T07:42:54.000Z | # Generated by Django 3.2.3 on 2021-05-28 07:02
from decimal import Decimal
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0014_auto_20210528_0647'),
]
operations = [
... | 60.151515 | 149 | 0.61864 | 437 | 3,970 | 5.453089 | 0.189931 | 0.105749 | 0.146874 | 0.182123 | 0.862778 | 0.862778 | 0.862778 | 0.862778 | 0.862778 | 0.862778 | 0 | 0.030402 | 0.229471 | 3,970 | 65 | 150 | 61.076923 | 0.748611 | 0.011335 | 0 | 0.745763 | 1 | 0 | 0.115473 | 0.005863 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.067797 | 0 | 0.118644 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
7e48bcdc2792b73955fd755c598e21eebc7c8baf | 155 | py | Python | other/hex2ip.py | mmmonk/crap | 96ba81723f043503e7ed2f96ea727b524d22b83f | [
"MIT"
] | 14 | 2015-01-14T15:53:22.000Z | 2019-06-21T06:15:47.000Z | other/hex2ip.py | mmmonk/crap | 96ba81723f043503e7ed2f96ea727b524d22b83f | [
"MIT"
] | 1 | 2018-04-01T08:40:17.000Z | 2020-06-24T10:05:33.000Z | other/hex2ip.py | mmmonk/crap | 96ba81723f043503e7ed2f96ea727b524d22b83f | [
"MIT"
] | 12 | 2015-05-13T10:52:04.000Z | 2020-10-07T14:49:37.000Z | #!/usr/bin/env python
import sys
ha = sys.argv[1]
print str(int(ha[0:2],16))+"."+str(int(ha[2:4],16))+"."+str(int(ha[4:6],16))+"."+str(int(ha[6:8],16))
| 19.375 | 101 | 0.56129 | 35 | 155 | 2.485714 | 0.514286 | 0.275862 | 0.367816 | 0.344828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118881 | 0.077419 | 155 | 7 | 102 | 22.142857 | 0.48951 | 0.129032 | 0 | 0 | 0 | 0 | 0.022388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.333333 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
7e795c79ca209c2d16344444538c2d2656ad664d | 71 | py | Python | ipython/useful_functions.py | chenwang/QuantEcon.lectures.code | 8832a74acd219a71cb0a99dc63c5e976598ac999 | [
"BSD-3-Clause"
] | 56 | 2017-05-09T10:45:23.000Z | 2022-01-20T20:33:27.000Z | ipython/useful_functions.py | chenwang/QuantEcon.lectures.code | 8832a74acd219a71cb0a99dc63c5e976598ac999 | [
"BSD-3-Clause"
] | 7 | 2017-06-30T01:52:46.000Z | 2019-05-01T20:09:47.000Z | ipython/useful_functions.py | QuantEcon/QuantEcon.lectures.code | d61ac7bc54529dd5c77470c17539eb2418b047c9 | [
"BSD-3-Clause"
] | 117 | 2017-04-25T16:09:17.000Z | 2022-03-23T02:30:29.000Z | def meaning_of_life():
"Computes the meaning of life"
return 42 | 23.666667 | 34 | 0.704225 | 11 | 71 | 4.363636 | 0.727273 | 0.375 | 0.541667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 0.225352 | 71 | 3 | 35 | 23.666667 | 0.836364 | 0.394366 | 0 | 0 | 0 | 0 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
7ea95212b1dbeb19ed7cd27df4fd07c8f8bc774c | 13,473 | py | Python | bandnames/bandnames/names/tests.py | pyepye/bandnames | 6c1af25e427ddc9d5bcbdca017d39813c34030bd | [
"MIT"
] | null | null | null | bandnames/bandnames/names/tests.py | pyepye/bandnames | 6c1af25e427ddc9d5bcbdca017d39813c34030bd | [
"MIT"
] | null | null | null | bandnames/bandnames/names/tests.py | pyepye/bandnames | 6c1af25e427ddc9d5bcbdca017d39813c34030bd | [
"MIT"
] | null | null | null | import urllib2
# from django.core.management import call_command
from django.core.urlresolvers import reverse
from django.test import Client
from django.test import TestCase
from bandnames.names.models import Bands, NewBand, ReportBand
class BandNamesBasePagesTest(TestCase):
def test_home(self):
respons... | 38.384615 | 133 | 0.608699 | 1,500 | 13,473 | 5.301333 | 0.082 | 0.105634 | 0.066398 | 0.066901 | 0.870599 | 0.868587 | 0.844567 | 0.831112 | 0.793888 | 0.787349 | 0 | 0.010881 | 0.263267 | 13,473 | 350 | 134 | 38.494286 | 0.790248 | 0.071699 | 0 | 0.79538 | 0 | 0 | 0.117704 | 0 | 0 | 0 | 0 | 0 | 0.227723 | 1 | 0.069307 | false | 0 | 0.016502 | 0 | 0.09901 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7eb10e58fbaea5667fc1c4e287db11f112aa0307 | 1,552 | py | Python | data_facility_admin/migrations/0013_auto_20181120_0828.py | NYU-CI/dfadmin | 071f38c62aea8ef8bf4ae82dbd672694e719b9bf | [
"CC0-1.0"
] | 1 | 2021-04-08T05:22:35.000Z | 2021-04-08T05:22:35.000Z | data_facility_admin/migrations/0013_auto_20181120_0828.py | NYU-CI/dfadmin | 071f38c62aea8ef8bf4ae82dbd672694e719b9bf | [
"CC0-1.0"
] | 8 | 2019-08-05T18:16:07.000Z | 2019-10-29T18:42:53.000Z | data_facility_admin/migrations/0013_auto_20181120_0828.py | NYU-CI/dfadmin | 071f38c62aea8ef8bf4ae82dbd672694e719b9bf | [
"CC0-1.0"
] | 2 | 2019-09-11T15:24:32.000Z | 2020-01-08T20:34:05.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-11-20 13:28
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('data_facility_admin', '0012_auto_20181115_2045'),
]
operations = [
migrations... | 43.111111 | 233 | 0.666881 | 196 | 1,552 | 5.147959 | 0.367347 | 0.077304 | 0.091179 | 0.107037 | 0.800793 | 0.800793 | 0.800793 | 0.760159 | 0.760159 | 0.760159 | 0 | 0.037257 | 0.239046 | 1,552 | 35 | 234 | 44.342857 | 0.817104 | 0.042526 | 0 | 0.714286 | 1 | 0.071429 | 0.387053 | 0.015509 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
0e34b19ef42260550a0a33c389e7dcddd97576c8 | 189 | py | Python | didipack/__init__.py | AntoineDidisheim/didipack | 9c9266bf248cae79e6ffddd98b7e573108abaa57 | [
"MIT"
] | null | null | null | didipack/__init__.py | AntoineDidisheim/didipack | 9c9266bf248cae79e6ffddd98b7e573108abaa57 | [
"MIT"
] | null | null | null | didipack/__init__.py | AntoineDidisheim/didipack | 9c9266bf248cae79e6ffddd98b7e573108abaa57 | [
"MIT"
] | 1 | 2021-02-08T09:26:04.000Z | 2021-02-08T09:26:04.000Z | from didipack.latex_table import *
from didipack.parameters import ParamsBasis
from didipack.latex_ressource import *
from didipack.latex_paper import *
from didipack.plot_function import * | 37.8 | 43 | 0.851852 | 25 | 189 | 6.28 | 0.44 | 0.382166 | 0.324841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100529 | 189 | 5 | 44 | 37.8 | 0.923529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
0e5f41e8882e187a291d295d418d630b51cb595f | 615,523 | py | Python | hubus-dati/analisi dati.py | Liukooo/Hubus | 344cc2b42343ebf12a1817ad97c5b77c0813b31a | [
"MIT"
] | null | null | null | hubus-dati/analisi dati.py | Liukooo/Hubus | 344cc2b42343ebf12a1817ad97c5b77c0813b31a | [
"MIT"
] | null | null | null | hubus-dati/analisi dati.py | Liukooo/Hubus | 344cc2b42343ebf12a1817ad97c5b77c0813b31a | [
"MIT"
] | null | null | null | {
"cells": [
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"['2018-11-22 06:46:14', '0']\n",
"['2018-11-22 06:52:11', '0']\n",
"['2018-11-22 06:52:27', '1']\n",
"['2018-11-22 06:5... | 42.816013 | 86 | 0.462894 | 120,589 | 615,523 | 2.361849 | 0.07232 | 0.292908 | 0.34035 | 0.162328 | 0.755524 | 0.745847 | 0.29709 | 0.016014 | 0.010923 | 0.010923 | 0 | 0.549776 | 0.209131 | 615,523 | 14,375 | 87 | 42.818991 | 0.035298 | 0 | 0 | 0.016209 | 0 | 0.000278 | 0.76726 | 0.000726 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.001183 | 0.000278 | 0 | 0.000278 | 0.000209 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
0e798e739349074c7519c15de51754d0ea5fad86 | 5,430 | py | Python | InstaAutoBot.py | Unknownhacker007/Instagram-Bot | 0df77aed9383b4e475954a4c962fe0b3fdb2c6da | [
"MIT"
] | 2 | 2020-10-29T12:30:48.000Z | 2020-12-03T15:04:11.000Z | InstaAutoBot.py | Unknownhacker007/Instagram-Bot | 0df77aed9383b4e475954a4c962fe0b3fdb2c6da | [
"MIT"
] | null | null | null | InstaAutoBot.py | Unknownhacker007/Instagram-Bot | 0df77aed9383b4e475954a4c962fe0b3fdb2c6da | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import base64
import requests
import time
exec(base64.b64decode("YmFubmVyID0gIiIiCiAgICAgICAgICAgICAgICAgXyAgICAgICAgICAgXyAgICAgICAgICBfICAgICAgICAgICBfCiAgICAgICAgICAgICAgICAoXykgICAgICAgICB8IHwgICAgICAgIHwgfCAgICAgICAgIHwgfAogICAgICAgICAgICAgICAgIF8gXyBfXyAgX19ffCB8XyBfXyBfICB8IHxfX... | 678.75 | 5,354 | 0.99558 | 16 | 5,430 | 337.875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091362 | 0.00221 | 5,430 | 8 | 5,354 | 678.75 | 0.906423 | 0.003683 | 0 | 0 | 0 | 0 | 0.984843 | 0.984843 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.8 | 0 | 0.8 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 11 |
7d0741c10f65d854557515c5b7cdedc65ef3cecf | 38,821 | py | Python | sdk/python/pulumi_azure/bot/service_azure_bot.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 109 | 2018-06-18T00:19:44.000Z | 2022-02-20T05:32:57.000Z | sdk/python/pulumi_azure/bot/service_azure_bot.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 663 | 2018-06-18T21:08:46.000Z | 2022-03-31T20:10:11.000Z | sdk/python/pulumi_azure/bot/service_azure_bot.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 41 | 2018-07-19T22:37:38.000Z | 2022-03-14T10:56:26.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 48.708908 | 206 | 0.668427 | 4,858 | 38,821 | 5.108069 | 0.045492 | 0.088213 | 0.096474 | 0.07979 | 0.930445 | 0.922466 | 0.912311 | 0.902922 | 0.895789 | 0.879025 | 0 | 0.002871 | 0.237423 | 38,821 | 796 | 207 | 48.770101 | 0.83536 | 0.366554 | 0 | 0.823799 | 1 | 0 | 0.109868 | 0.050828 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16476 | false | 0.002288 | 0.011442 | 0 | 0.2746 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
adbad94dc805c53bc50b51e8480b61d4be6b09fd | 9,129 | py | Python | src/foxdot/research/ryan-kirkbride/180428_1750_weird_noises.py | Neko250/aisthesis | 1d4a2c3070d10596c28b25ea2170523583e7eff0 | [
"Apache-2.0"
] | 4 | 2018-06-29T18:39:34.000Z | 2021-06-20T16:44:29.000Z | src/foxdot/research/ryan-kirkbride/180428_1750_weird_noises.py | Neko250/aisthesis | 1d4a2c3070d10596c28b25ea2170523583e7eff0 | [
"Apache-2.0"
] | null | null | null | src/foxdot/research/ryan-kirkbride/180428_1750_weird_noises.py | Neko250/aisthesis | 1d4a2c3070d10596c28b25ea2170523583e7eff0 | [
"Apache-2.0"
] | null | null | null | """
Ryan Kirkbride - Love coding weird noises to dance to:
https://www.youtube.com/watch?v=Qc_8Pm2t-84
How to:
- Run the statements line by line (alt+enter),
go to the next one whenever you feel like
- The "#### > run block <" blocks should be
executed atomically (ctrl+enter)
- If you want to fast-... | 44.315534 | 117 | 0.56326 | 2,132 | 9,129 | 2.409475 | 0.076454 | 0.016741 | 0.022387 | 0.024917 | 0.857115 | 0.84232 | 0.818182 | 0.809422 | 0.802803 | 0.761145 | 0 | 0.160674 | 0.076898 | 9,129 | 205 | 118 | 44.531707 | 0.448914 | 0.080294 | 0 | 0.129496 | 0 | 0 | 0.051712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
bc2100eb8f2f2b395cb3343c8b2aba045380fbe2 | 146 | py | Python | sel_map_segmentation/sel_map_segmentation/src/sel_map_segmentation/__init__.py | roahmlab/sel_map | 51c5ac738eb7475f409f826c0d30f555f98757b3 | [
"MIT"
] | 2 | 2022-02-24T21:10:32.000Z | 2022-03-11T20:00:09.000Z | sel_map_segmentation/sel_map_segmentation/src/sel_map_segmentation/__init__.py | roahmlab/sel_map | 51c5ac738eb7475f409f826c0d30f555f98757b3 | [
"MIT"
] | null | null | null | sel_map_segmentation/sel_map_segmentation/src/sel_map_segmentation/__init__.py | roahmlab/sel_map | 51c5ac738eb7475f409f826c0d30f555f98757b3 | [
"MIT"
] | null | null | null | from .cameraSensor import CameraSensor
from .cameraSensor import Pose
from .BypassWrapper import BypassWrapper
from .ColorScale import ColorScale
| 29.2 | 40 | 0.863014 | 16 | 146 | 7.875 | 0.375 | 0.253968 | 0.349206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109589 | 146 | 4 | 41 | 36.5 | 0.969231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 8 |
bc3741ae59723e743ecd5a9b041ebac17e32bcf0 | 3,235 | py | Python | log_storage/tests.py | Virtualstock/log_storage | cebc78263008d626ae732330dd61517e00101c0b | [
"MIT"
] | 1 | 2018-10-10T08:59:23.000Z | 2018-10-10T08:59:23.000Z | log_storage/tests.py | Virtualstock/log_storage | cebc78263008d626ae732330dd61517e00101c0b | [
"MIT"
] | 3 | 2019-05-23T12:42:43.000Z | 2021-02-09T12:28:04.000Z | log_storage/tests.py | Virtualstock/log_storage | cebc78263008d626ae732330dd61517e00101c0b | [
"MIT"
] | 1 | 2018-10-10T08:14:51.000Z | 2018-10-10T08:14:51.000Z | # -*- coding: UTF-8 -*-
import logging
import django.test as unittest
from log_storage.models import Log
class TestLogRecordingToFile(unittest.TestCase):
def setUp(self):
self.log = Log(save_file=True)
self.logger = logging.getLogger("test." + __name__)
self.logger.setLevel(logging.DEBU... | 35.549451 | 87 | 0.632767 | 451 | 3,235 | 4.419069 | 0.128603 | 0.151029 | 0.140492 | 0.147516 | 0.884596 | 0.884596 | 0.884596 | 0.884596 | 0.884596 | 0.884596 | 0 | 0.000802 | 0.228748 | 3,235 | 90 | 88 | 35.944444 | 0.797996 | 0.05255 | 0 | 0.859155 | 0 | 0 | 0.082187 | 0.036018 | 0 | 0 | 0 | 0 | 0.309859 | 1 | 0.15493 | false | 0 | 0.042254 | 0 | 0.225352 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
cb292478e32043cbbbdc08a000de11525a6de8dd | 4,769 | py | Python | app/core/migrations/0014_basecountrystats_chinacovidstats_francecovidstats_germanycovidstats_irancovidstats_italycovidstats_r.py | mzs9540/covid19 | efe8b6e243f576f728a91fc5cde00b1ac0990ac1 | [
"MIT"
] | 1 | 2020-04-27T15:20:15.000Z | 2020-04-27T15:20:15.000Z | app/core/migrations/0014_basecountrystats_chinacovidstats_francecovidstats_germanycovidstats_irancovidstats_italycovidstats_r.py | mzs9540/covid19 | efe8b6e243f576f728a91fc5cde00b1ac0990ac1 | [
"MIT"
] | null | null | null | app/core/migrations/0014_basecountrystats_chinacovidstats_francecovidstats_germanycovidstats_irancovidstats_italycovidstats_r.py | mzs9540/covid19 | efe8b6e243f576f728a91fc5cde00b1ac0990ac1 | [
"MIT"
] | 1 | 2020-05-30T13:55:22.000Z | 2020-05-30T13:55:22.000Z | # Generated by Django 3.0.5 on 2020-04-29 10:01
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0013_auto_20200429_0516'),
]
operations = [
migrations.CreateModel(
name='BaseCountrySt... | 46.754902 | 208 | 0.613965 | 428 | 4,769 | 6.698598 | 0.151869 | 0.153471 | 0.058598 | 0.092082 | 0.808162 | 0.808162 | 0.797 | 0.797 | 0.797 | 0.797 | 0 | 0.008757 | 0.257706 | 4,769 | 101 | 209 | 47.217822 | 0.80113 | 0.009436 | 0 | 0.736842 | 1 | 0 | 0.195256 | 0.102711 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021053 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
cb6d81ab55f4eb87990716d2cb15855f9af586ec | 24,509 | py | Python | utilities/test/test_temporal_utils.py | MobilityData/mobility-database-interface | c6eb62b09e4784219c1d02e9f7cb88f77beaa2d8 | [
"Apache-2.0"
] | 4 | 2021-03-12T10:40:47.000Z | 2022-01-11T10:56:53.000Z | utilities/test/test_temporal_utils.py | MobilityData/mobility-database-interface | c6eb62b09e4784219c1d02e9f7cb88f77beaa2d8 | [
"Apache-2.0"
] | 181 | 2021-03-09T15:27:51.000Z | 2022-01-31T15:25:28.000Z | utilities/test/test_temporal_utils.py | MobilityData/mobility-database-interface | c6eb62b09e4784219c1d02e9f7cb88f77beaa2d8 | [
"Apache-2.0"
] | null | null | null | from datetime import datetime
import pandas as pd
from unittest import TestCase, mock
from unittest.mock import MagicMock, PropertyMock
from gtfs_kit.feed import Feed
from utilities.temporal_utils import *
class TestTemporalUtils(TestCase):
@mock.patch("gtfs_kit.feed.Feed")
def test_get_gtfs_date_by_type_with... | 36.745127 | 105 | 0.580399 | 2,510 | 24,509 | 5.188446 | 0.049801 | 0.081087 | 0.032097 | 0.036858 | 0.926207 | 0.895723 | 0.885357 | 0.873148 | 0.869001 | 0.859479 | 0 | 0.029183 | 0.313517 | 24,509 | 666 | 106 | 36.8003 | 0.744785 | 0 | 0 | 0.737815 | 0 | 0 | 0.123669 | 0 | 0 | 0 | 0 | 0 | 0.134454 | 1 | 0.030252 | false | 0 | 0.010084 | 0 | 0.042017 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
cbc02d8e8ef316f961ec52af60742ab843058e71 | 16,602 | py | Python | fieldkit/test/test_simulate.py | djz332/fieldkit | 3c242c2026e80100cdd6b2114d72a61122381fcd | [
"BSD-3-Clause"
] | null | null | null | fieldkit/test/test_simulate.py | djz332/fieldkit | 3c242c2026e80100cdd6b2114d72a61122381fcd | [
"BSD-3-Clause"
] | null | null | null | fieldkit/test/test_simulate.py | djz332/fieldkit | 3c242c2026e80100cdd6b2114d72a61122381fcd | [
"BSD-3-Clause"
] | null | null | null | """ Unit tests for fieldkit.simulate
"""
import unittest
import numpy as np
import fieldkit
class RandomWalkTest(unittest.TestCase):
""" Test cases for :py:class:`~fieldkit.simulate.random_walk`
"""
def test_one_step(self):
""" Test simple random walk rules for one step.
"""
mesh ... | 52.37224 | 107 | 0.604265 | 2,793 | 16,602 | 3.417472 | 0.07304 | 0.054479 | 0.052174 | 0.226296 | 0.833002 | 0.792666 | 0.760922 | 0.735987 | 0.70571 | 0.698271 | 0 | 0.076228 | 0.19323 | 16,602 | 316 | 108 | 52.537975 | 0.636404 | 0.128238 | 0 | 0.467593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003165 | 0.671296 | 1 | 0.023148 | false | 0 | 0.013889 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
cbd12c26351b0f5435c2e5ad6b4aa0d871f5d94c | 12,732 | py | Python | tests/test_maps/test_sparse_3d.py | ed741/PathBench | 50fe138eb1f824f49fe1a862705e435a1c3ec3ae | [
"BSD-3-Clause"
] | 46 | 2020-12-25T04:09:15.000Z | 2022-03-25T12:32:42.000Z | tests/test_maps/test_sparse_3d.py | ed741/PathBench | 50fe138eb1f824f49fe1a862705e435a1c3ec3ae | [
"BSD-3-Clause"
] | 36 | 2020-12-21T16:10:02.000Z | 2022-01-03T01:42:01.000Z | tests/test_maps/test_sparse_3d.py | judicaelclair/PathBenchURO | 101e67674efdfa8e27e1cf7787dac9fdf99552fe | [
"BSD-3-Clause"
] | 11 | 2021-01-06T23:34:12.000Z | 2022-03-21T17:21:47.000Z | import unittest
import copy
from unittest.mock import Mock
from algorithms.configuration.entities.agent import Agent
from algorithms.configuration.entities.goal import Goal
from algorithms.configuration.entities.obstacle import Obstacle
from algorithms.configuration.entities.trace import Trace
from algorithms.configu... | 52.395062 | 131 | 0.570924 | 1,584 | 12,732 | 4.416667 | 0.060606 | 0.172956 | 0.188679 | 0.289308 | 0.873928 | 0.84677 | 0.801458 | 0.783877 | 0.783591 | 0.763722 | 0 | 0.096882 | 0.292256 | 12,732 | 242 | 132 | 52.61157 | 0.679503 | 0 | 0 | 0.623256 | 0 | 0 | 0.048539 | 0 | 0 | 0 | 0 | 0 | 0.134884 | 1 | 0.102326 | false | 0 | 0.060465 | 0 | 0.167442 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
1de2cad401e2afd795db2942e7f9a1042c30c846 | 24,933 | py | Python | examples/tof-viewer/external/newton_host_driver/src/host_api/examples/python/tests/dms_eval_tests/fc_asm_mscm_qpump/fc_asm_mscm_qpump.py | rick-yhchen1013/aditof-sdk-rework | 911465dd1e05dd0b1c5107197b3b4dc3a10f77f9 | [
"MIT"
] | 5 | 2021-09-22T10:04:47.000Z | 2022-02-08T17:55:09.000Z | examples/tof-viewer/external/newton_host_driver/src/host_api/examples/python/tests/dms_eval_tests/fc_asm_mscm_qpump/fc_asm_mscm_qpump.py | rick-yhchen1013/aditof-sdk-rework | 911465dd1e05dd0b1c5107197b3b4dc3a10f77f9 | [
"MIT"
] | 99 | 2021-02-01T12:45:09.000Z | 2022-03-08T09:54:13.000Z | examples/tof-viewer/external/newton_host_driver/src/host_api/examples/python/tests/dms_eval_tests/fc_asm_mscm_qpump/fc_asm_mscm_qpump.py | rick-yhchen1013/aditof-sdk-rework | 911465dd1e05dd0b1c5107197b3b4dc3a10f77f9 | [
"MIT"
] | 4 | 2021-08-09T12:32:55.000Z | 2021-12-13T05:38:55.000Z | #!/usr/bin/env python
""" Script generated from simulation of the fc_asm_mscm_qpump test case.
Usage:
fc_asm_mscm_qpump.py [--no_reset]
Options:
--help Shows this help message.
"""
from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicode_literals
from doc... | 57.18578 | 85 | 0.770385 | 3,391 | 24,933 | 5.265408 | 0.047774 | 0.1986 | 0.201512 | 0.316662 | 0.956035 | 0.952786 | 0.952786 | 0.948866 | 0.786558 | 0.781406 | 0 | 0.181977 | 0.148157 | 24,933 | 435 | 86 | 57.317241 | 0.658694 | 0.170818 | 0 | 0.615385 | 1 | 0 | 0.003551 | 0.001184 | 0 | 0 | 0.231418 | 0 | 0 | 1 | 0 | false | 0 | 0.033654 | 0 | 0.033654 | 0.004808 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
383074536cb48704007be50513ddc31988c2b4bc | 8,025 | py | Python | otp/nametag/NametagConstants.py | CrankySupertoon01/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 1 | 2021-02-13T22:40:50.000Z | 2021-02-13T22:40:50.000Z | otp/nametag/NametagConstants.py | CrankySupertoonArchive/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 1 | 2018-07-28T20:07:04.000Z | 2018-07-30T18:28:34.000Z | otp/nametag/NametagConstants.py | CrankySupertoonArchive/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 2 | 2019-12-02T01:39:10.000Z | 2021-02-13T22:41:00.000Z | CFNoQuitButton=256
CFPageButton=16
CFQuicktalker=4
CFQuitButton=32
CFReversed=64
CFSndOpenchat=128
CFSpeech=1
CFThought=2
CFTimeout=8
CCNormal = 0
CCNonPlayer = 1
CCSuit = 2
CCToonBuilding = 3
CCSuitBuilding = 4
CCHouseBuilding = 5
CCSpeedChat = 6
NAMETAG_COLORS = {
CCNormal: (
# Normal FG ... | 39.146341 | 83 | 0.335826 | 1,600 | 8,025 | 1.681875 | 0.03875 | 0.200669 | 0.217391 | 0.221479 | 0.736901 | 0.735414 | 0.726496 | 0.726496 | 0.723523 | 0.723523 | 0 | 0.288062 | 0.423801 | 8,025 | 205 | 83 | 39.146341 | 0.293901 | 0.248598 | 0 | 0.554795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006849 | false | 0 | 0 | 0.006849 | 0.013699 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
3847175c1831e351c1e176a360a63bb3b77691ab | 101 | py | Python | brain/utils.py | NuChwezi/nubrain | 0b7fc9ed269a008c406ac36f49aa5ec44fca619a | [
"MIT"
] | 1 | 2015-06-25T22:09:49.000Z | 2015-06-25T22:09:49.000Z | brain/utils.py | NuChwezi/nubrain | 0b7fc9ed269a008c406ac36f49aa5ec44fca619a | [
"MIT"
] | null | null | null | brain/utils.py | NuChwezi/nubrain | 0b7fc9ed269a008c406ac36f49aa5ec44fca619a | [
"MIT"
] | null | null | null | def text_snippet_start(s, max_len=10):
return s[:max_len] + ('...' if len(s) > max_len else '')
| 25.25 | 60 | 0.613861 | 18 | 101 | 3.166667 | 0.611111 | 0.210526 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024096 | 0.178218 | 101 | 3 | 61 | 33.666667 | 0.662651 | 0 | 0 | 0 | 0 | 0 | 0.03 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
69af9cbe1a0924e12f9699b8936cf401ce8aba2e | 13,111 | py | Python | tests/test_openapi/model_name_conflict_resolution/test_model_name_conflcit_resolution.py | adriangb/xpresso | 43fcc360f7b19c00e0b78480f96390bcb4d28053 | [
"MIT"
] | 75 | 2022-01-18T02:17:57.000Z | 2022-03-24T02:30:04.000Z | tests/test_openapi/model_name_conflict_resolution/test_model_name_conflcit_resolution.py | adriangb/xpresso | 43fcc360f7b19c00e0b78480f96390bcb4d28053 | [
"MIT"
] | 73 | 2022-01-18T03:01:27.000Z | 2022-03-27T16:41:38.000Z | tests/test_openapi/model_name_conflict_resolution/test_model_name_conflcit_resolution.py | adriangb/xpresso | 43fcc360f7b19c00e0b78480f96390bcb4d28053 | [
"MIT"
] | 3 | 2022-01-18T22:47:06.000Z | 2022-01-25T02:03:53.000Z | from dataclasses import dataclass
from typing import Any, Dict
from tests.test_openapi.model_name_conflict_resolution.user1 import User as User1
from tests.test_openapi.model_name_conflict_resolution.user2 import User as User2
from xpresso import (
App,
FromFormField,
FromHeader,
FromJson,
FromMult... | 38.905045 | 139 | 0.331477 | 721 | 13,111 | 5.772538 | 0.147018 | 0.034599 | 0.05382 | 0.070639 | 0.834935 | 0.834935 | 0.823642 | 0.818357 | 0.793369 | 0.793369 | 0 | 0.013103 | 0.540157 | 13,111 | 336 | 140 | 39.020833 | 0.677227 | 0 | 0 | 0.617089 | 0 | 0 | 0.249638 | 0.085577 | 0 | 0 | 0 | 0 | 0.018987 | 1 | 0.009494 | false | 0 | 0.018987 | 0 | 0.037975 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
69df7c42a566b7483ba22ada5ccb396dd4fcf747 | 77 | py | Python | src/stk/serialization/json/deserializers/__init__.py | andrewtarzia/stk | 1ac2ecbb5c9940fe49ce04cbf5603fd7538c475a | [
"MIT"
] | 21 | 2018-04-12T16:25:24.000Z | 2022-02-14T23:05:43.000Z | src/stk/serialization/json/deserializers/__init__.py | JelfsMaterialsGroup/stk | 0d3e1b0207aa6fa4d4d5ee8dfe3a29561abb08a2 | [
"MIT"
] | 8 | 2019-03-19T12:36:36.000Z | 2020-11-11T12:46:00.000Z | src/stk/serialization/json/deserializers/__init__.py | supramolecular-toolkit/stk | 0d3e1b0207aa6fa4d4d5ee8dfe3a29561abb08a2 | [
"MIT"
] | 5 | 2018-08-07T13:00:16.000Z | 2021-11-01T00:55:10.000Z | from .molecule import * # noqa
from . constructed_molecule import * # noqa
| 25.666667 | 44 | 0.727273 | 9 | 77 | 6.111111 | 0.555556 | 0.509091 | 0.654545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194805 | 77 | 2 | 45 | 38.5 | 0.887097 | 0.116883 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
2a5535da3c1a5f74644e14fc299e9e3dffcd7fef | 8,054 | py | Python | triple_agent/tests/test_timeline_coherent.py | andrewzwicky/TripleAgent | 8d056df5c53a3d264dc778bad6771a0a2f62e7e7 | [
"MIT"
] | 3 | 2020-04-25T11:42:03.000Z | 2020-07-08T16:38:26.000Z | triple_agent/tests/test_timeline_coherent.py | andrewzwicky/TripleAgent | 8d056df5c53a3d264dc778bad6771a0a2f62e7e7 | [
"MIT"
] | 17 | 2019-08-11T19:09:55.000Z | 2021-03-30T17:12:28.000Z | triple_agent/tests/test_timeline_coherent.py | andrewzwicky/TripleAgent | 8d056df5c53a3d264dc778bad6771a0a2f62e7e7 | [
"MIT"
] | null | null | null | import pytest
from triple_agent.classes.missions import Missions
from triple_agent.classes.books import Books
from triple_agent.classes.timeline import TimelineCoherency, Timeline
SPY_CAST_INDEX = 0
AMBA_CAST_INDEX = 1
CIVILIAN_CAST_INDEX = 9
SWAP_SELECTED_INDEX = 18
INSPECT_ENABLED_INDEX = 27
GAME_START_INDEX = 31
F... | 33.280992 | 88 | 0.785572 | 986 | 8,054 | 6.100406 | 0.099391 | 0.069825 | 0.139651 | 0.174564 | 0.868495 | 0.868495 | 0.848878 | 0.813799 | 0.770906 | 0.741978 | 0 | 0.031714 | 0.130867 | 8,054 | 241 | 89 | 33.419087 | 0.827571 | 0.005711 | 0 | 0.573864 | 0 | 0 | 0.057707 | 0.057707 | 0 | 0 | 0 | 0 | 0.238636 | 1 | 0.119318 | false | 0 | 0.022727 | 0 | 0.142045 | 0.017045 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2a587ceea7996e96a61097f62af34c8de073e873 | 38,987 | py | Python | _serverApp/_logProcessServices.py | leandrou-technology-forward/ganimides_api_server | 8787927e2cf7568a070c1c65294ee76d89177908 | [
"MIT"
] | null | null | null | _serverApp/_logProcessServices.py | leandrou-technology-forward/ganimides_api_server | 8787927e2cf7568a070c1c65294ee76d89177908 | [
"MIT"
] | 1 | 2021-06-02T00:36:03.000Z | 2021-06-02T00:36:03.000Z | _serverApp/_logProcessServices.py | leandrou-technology-forward/ganimides_api_server | 8787927e2cf7568a070c1c65294ee76d89177908 | [
"MIT"
] | null | null | null | import os
import sys
import datetime
module_ProgramName = os.path.splitext(os.path.basename(__file__))[0]
module_id = '{}'.format(module_ProgramName)
module_version = 0.1
import _appEnvironment as thisApp
from _appEnvironment import FILELOG_ON,CONSOLE_ON,DEBUG_ON,log_file_name,log_errors_file_name
from _colorServices i... | 40.738767 | 255 | 0.482392 | 4,257 | 38,987 | 4.149871 | 0.056378 | 0.066738 | 0.036794 | 0.02502 | 0.802785 | 0.772897 | 0.759368 | 0.752859 | 0.749575 | 0.738651 | 0 | 0.012929 | 0.244133 | 38,987 | 957 | 256 | 40.738767 | 0.586549 | 0.196117 | 0 | 0.717877 | 0 | 0.015363 | 0.15175 | 0.035416 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027933 | false | 0.01257 | 0.01257 | 0 | 0.107542 | 0.050279 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2a613d21a0dd4eb4981aa435cb768ba20a271fc6 | 84,367 | py | Python | main.py | mmhamman/Project1 | b04910fda5a346c9d568798c2c578071d75443f7 | [
"MIT"
] | null | null | null | main.py | mmhamman/Project1 | b04910fda5a346c9d568798c2c578071d75443f7 | [
"MIT"
] | null | null | null | main.py | mmhamman/Project1 | b04910fda5a346c9d568798c2c578071d75443f7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
assert sys.version_info >= (3,9), "This script requires at least Python 3.9"
world = {
"uuid": "CDC045DF-724E-4E86-A2D1-A374D5E5636A",
"name": "Butterfly Effect",
"creator": "Twine",
"creatorVersion": "2.3.14",
"schemaName": "Harlowe 3 to JSON",
"schemaVersion": "0.0.6",
... | 69.153279 | 1,324 | 0.651333 | 12,786 | 84,367 | 4.295401 | 0.100501 | 0.00721 | 0.014858 | 0.013255 | 0.859981 | 0.855939 | 0.850731 | 0.846507 | 0.846507 | 0.844941 | 0 | 0.00525 | 0.239181 | 84,367 | 1,220 | 1,325 | 69.153279 | 0.850377 | 0.003224 | 0 | 0.3597 | 0 | 0.105745 | 0.808446 | 0.049137 | 0 | 0 | 0 | 0 | 0.000833 | 1 | 0.003331 | false | 0.085762 | 0.004163 | 0 | 0.01249 | 0.007494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 9 |
2a8725cd14056eca9aaf82f98e1d0bececf67330 | 267 | py | Python | backend/venue_service/api/venue/models/distance.py | ktodorov/aed-2018 | 337a8df6d2239d35432663e1b340977b3bfba4ae | [
"MIT"
] | null | null | null | backend/venue_service/api/venue/models/distance.py | ktodorov/aed-2018 | 337a8df6d2239d35432663e1b340977b3bfba4ae | [
"MIT"
] | null | null | null | backend/venue_service/api/venue/models/distance.py | ktodorov/aed-2018 | 337a8df6d2239d35432663e1b340977b3bfba4ae | [
"MIT"
] | null | null | null | class Distance:
kilometers = 0.0
minutes = 0.0
def __init__(self, kilometers, minutes):
self.kilometers = kilometers
self.minutes = minutes
def toJson(self):
return { "kilometers" : self.kilometers, "minutes" : self.minutes } | 26.7 | 75 | 0.632959 | 29 | 267 | 5.689655 | 0.344828 | 0.254545 | 0.254545 | 0.30303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020305 | 0.262172 | 267 | 10 | 75 | 26.7 | 0.817259 | 0 | 0 | 0 | 0 | 0 | 0.063433 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
aa51036c2107182924e8e93507c42ad5602d53ad | 43,627 | py | Python | test/test_client.py | nailor/trombi | a0a761b45abc6b22b45253cba1962f09173ffd37 | [
"MIT"
] | 1 | 2020-12-29T06:05:46.000Z | 2020-12-29T06:05:46.000Z | test/test_client.py | nailor/trombi | a0a761b45abc6b22b45253cba1962f09173ffd37 | [
"MIT"
] | null | null | null | test/test_client.py | nailor/trombi | a0a761b45abc6b22b45253cba1962f09173ffd37 | [
"MIT"
] | null | null | null | # Copuright (c) 2011 Jyrki Pulliainen <jyrki@dywypi.org>
# Copyright (c) 2010 Inoi Oy
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the... | 27.490233 | 77 | 0.581223 | 5,111 | 43,627 | 4.762473 | 0.069458 | 0.018693 | 0.033647 | 0.052627 | 0.83156 | 0.812456 | 0.798118 | 0.782959 | 0.769771 | 0.747504 | 0 | 0.00533 | 0.29468 | 43,627 | 1,586 | 78 | 27.507566 | 0.785707 | 0.027643 | 0 | 0.725649 | 0 | 0 | 0.10447 | 0.005614 | 0 | 0 | 0 | 0 | 0.038149 | 1 | 0.193182 | false | 0 | 0.008929 | 0 | 0.20211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
aa8bbbe2ab28c28e064c6f59d57341f17301ccfa | 2,041 | py | Python | src/genie/libs/parser/iosxe/tests/ShowIpOspfFastRerouteTiLfa/cli/equal/golden_output2_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/iosxe/tests/ShowIpOspfFastRerouteTiLfa/cli/equal/golden_output2_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/iosxe/tests/ShowIpOspfFastRerouteTiLfa/cli/equal/golden_output2_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z | expected_output = {
"process_id": {
65109: {
"router_id": "10.4.1.1",
"ospf_object": {
"Process ID (65109)": {
"ipfrr_enabled": "no",
"sr_enabled": "yes",
"ti_lfa_configured": "yes",
"ti_l... | 35.189655 | 55 | 0.343459 | 140 | 2,041 | 4.635714 | 0.207143 | 0.323575 | 0.123267 | 0.1849 | 0.761171 | 0.711864 | 0.711864 | 0.711864 | 0.662558 | 0.639445 | 0 | 0.021538 | 0.522293 | 2,041 | 57 | 56 | 35.807018 | 0.644103 | 0 | 0 | 0.54386 | 0 | 0 | 0.342479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 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 | 7 |
2aca00ff6ce397cc34b5cdeeb5097e6273d7258d | 3,266 | py | Python | test_case/test_sample_buffer.py | YueChen-C/ios-screen-record | ca8cc488e3ee3eb2e43d25ebb02f669aa968508c | [
"MIT"
] | 105 | 2021-03-17T05:32:50.000Z | 2022-03-30T06:35:25.000Z | test_case/test_sample_buffer.py | jiangsikai/ios-screen-record | ca8cc488e3ee3eb2e43d25ebb02f669aa968508c | [
"MIT"
] | 10 | 2021-03-23T03:06:06.000Z | 2022-01-21T08:05:46.000Z | test_case/test_sample_buffer.py | jiangsikai/ios-screen-record | ca8cc488e3ee3eb2e43d25ebb02f669aa968508c | [
"MIT"
] | 21 | 2021-03-18T03:27:16.000Z | 2022-03-29T02:36:01.000Z | import struct
from ioscreen.coremedia.CMSampleBuffer import CMSampleBuffer
from ioscreen.coremedia.CMTime import CMTimeConst
def test_feed_data():
with open('./fixtures/asyn-feed-ttas-only', "rb") as f:
data = f.read()
sbufPacket = CMSampleBuffer.from_bytesVideo(data[20:])
assert False == sbufPac... | 39.829268 | 103 | 0.740661 | 327 | 3,266 | 7.363914 | 0.183486 | 0.075581 | 0.02907 | 0.05814 | 0.861296 | 0.80897 | 0.80897 | 0.758306 | 0.758306 | 0.603821 | 0 | 0.033213 | 0.151868 | 3,266 | 81 | 104 | 40.320988 | 0.836101 | 0 | 0 | 0.630769 | 0 | 0 | 0.040454 | 0.025437 | 0 | 0 | 0.011033 | 0 | 0.569231 | 1 | 0.076923 | false | 0 | 0.046154 | 0 | 0.123077 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2ae978f617f37165f9ba7e7a19768707b32b9f97 | 18,842 | py | Python | testscripts/RDKB/component/PAM/TS_PAM_Enable2.0TelemetryVersion.py | rdkcmf/rdkb-tools-tdkb | 9f9c3600cd701d5fc90ac86a6394ebd28d49267e | [
"Apache-2.0"
] | null | null | null | testscripts/RDKB/component/PAM/TS_PAM_Enable2.0TelemetryVersion.py | rdkcmf/rdkb-tools-tdkb | 9f9c3600cd701d5fc90ac86a6394ebd28d49267e | [
"Apache-2.0"
] | null | null | null | testscripts/RDKB/component/PAM/TS_PAM_Enable2.0TelemetryVersion.py | rdkcmf/rdkb-tools-tdkb | 9f9c3600cd701d5fc90ac86a6394ebd28d49267e | [
"Apache-2.0"
] | null | null | null | ##########################################################################
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
#
# Copyright 2020 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use th... | 52.48468 | 125 | 0.625252 | 1,983 | 18,842 | 5.872416 | 0.140696 | 0.030915 | 0.02061 | 0.024045 | 0.745041 | 0.733705 | 0.720052 | 0.703392 | 0.703392 | 0.682439 | 0 | 0.017012 | 0.279323 | 18,842 | 358 | 126 | 52.631285 | 0.840563 | 0.109012 | 0 | 0.755556 | 0 | 0 | 0.365998 | 0.050475 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.013333 | null | null | 0.377778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2af57b653261588b726a18c3bfb5728aee1d403c | 85 | py | Python | mainapp/views/feeds/__init__.py | CatoTH/opensourceris | 3b4b5e4b027a96fd08147fc57b53f078a44a00a7 | [
"MIT"
] | 1 | 2022-02-17T13:46:03.000Z | 2022-02-17T13:46:03.000Z | mainapp/views/feeds/__init__.py | CatoTH/opensourceris | 3b4b5e4b027a96fd08147fc57b53f078a44a00a7 | [
"MIT"
] | 13 | 2022-02-11T14:45:36.000Z | 2022-02-22T19:54:03.000Z | mainapp/views/feeds/__init__.py | CatoTH/opensourceris | 3b4b5e4b027a96fd08147fc57b53f078a44a00a7 | [
"MIT"
] | 1 | 2022-02-17T13:44:17.000Z | 2022-02-17T13:44:17.000Z | from .latest_papers import * # noqa F401
from .search_results import * # noqa F401
| 28.333333 | 42 | 0.741176 | 12 | 85 | 5.083333 | 0.666667 | 0.327869 | 0.459016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0.188235 | 85 | 2 | 43 | 42.5 | 0.797101 | 0.223529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
2d5753edc1ae0b301e3006815b0a1ec6d47d7b24 | 1,511 | py | Python | great_international/migrations/0086_auto_20190917_0752.py | uktrade/directory-cms | 8c8d13ce29ea74ddce7a40f3dd29c8847145d549 | [
"MIT"
] | 6 | 2018-03-20T11:19:07.000Z | 2021-10-05T07:53:11.000Z | great_international/migrations/0086_auto_20190917_0752.py | uktrade/directory-cms | 8c8d13ce29ea74ddce7a40f3dd29c8847145d549 | [
"MIT"
] | 802 | 2018-02-05T14:16:13.000Z | 2022-02-10T10:59:21.000Z | great_international/migrations/0086_auto_20190917_0752.py | uktrade/directory-cms | 8c8d13ce29ea74ddce7a40f3dd29c8847145d549 | [
"MIT"
] | 6 | 2019-01-22T13:19:37.000Z | 2019-07-01T10:35:26.000Z | # Generated by Django 2.2.4 on 2019-09-17 07:52
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('great_international', '0085_auto_20190916_1443'),
]
operations = [
migrations.RemoveField(
model_name='aboutukwhychoosetheukpage',
... | 30.22 | 59 | 0.614825 | 129 | 1,511 | 6.813953 | 0.333333 | 0.215017 | 0.266212 | 0.307167 | 0.798635 | 0.798635 | 0.798635 | 0.798635 | 0.798635 | 0.798635 | 0 | 0.02919 | 0.297154 | 1,511 | 49 | 60 | 30.836735 | 0.798493 | 0.029782 | 0 | 0.627907 | 1 | 0 | 0.339481 | 0.326503 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.023256 | 0 | 0.093023 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
9328a19acee4b872a09451f40c8532237d58b7ad | 2,935 | py | Python | data/0-coot-history.py | cz-zhao-lab-ibp/edpdb | 5b0654776409fff26ca1dbd09a5f297c71dc5984 | [
"Xnet",
"X11"
] | 1 | 2021-06-24T03:33:56.000Z | 2021-06-24T03:33:56.000Z | data/0-coot-history.py | cz-zhao-lab-ibp/edpdb | 5b0654776409fff26ca1dbd09a5f297c71dc5984 | [
"Xnet",
"X11"
] | null | null | null | data/0-coot-history.py | cz-zhao-lab-ibp/edpdb | 5b0654776409fff26ca1dbd09a5f297c71dc5984 | [
"Xnet",
"X11"
] | null | null | null | filter_fileselection_filenames_state ()
get_active_map_drag_flag ()
use_graphics_interface_state ()
set_display_intro_string ("Good Morning Zhangc, Welcome to Coot.")
set_filter_fileselection_filenames (0)
unset_sticky_sort_by_date ()
set_colour_map_rotation_on_read_pdb (164963936.00)
set_colour_map_rotation_on_read_pd... | 38.116883 | 71 | 0.853492 | 467 | 2,935 | 4.762313 | 0.173448 | 0.056655 | 0.07554 | 0.125899 | 0.881745 | 0.881745 | 0.881745 | 0.881745 | 0.881745 | 0.881745 | 0 | 0.073091 | 0.063032 | 2,935 | 76 | 72 | 38.618421 | 0.735636 | 0.091993 | 0 | 0.842105 | 0 | 0 | 0.034236 | 0.009029 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
933dba7001d06c35acd08924e702dc9955e12fcb | 156,631 | py | Python | tests/unit/gapic/tasks_v2beta3/test_cloud_tasks.py | colincadams/python-tasks | e86a80b2623e812775b58950af2f858128b4bb98 | [
"Apache-2.0"
] | null | null | null | tests/unit/gapic/tasks_v2beta3/test_cloud_tasks.py | colincadams/python-tasks | e86a80b2623e812775b58950af2f858128b4bb98 | [
"Apache-2.0"
] | null | null | null | tests/unit/gapic/tasks_v2beta3/test_cloud_tasks.py | colincadams/python-tasks | e86a80b2623e812775b58950af2f858128b4bb98 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# 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 o... | 36.561858 | 111 | 0.686378 | 19,051 | 156,631 | 5.444806 | 0.021574 | 0.017276 | 0.028073 | 0.017276 | 0.947613 | 0.937925 | 0.924717 | 0.905774 | 0.893916 | 0.884844 | 0 | 0.004979 | 0.226826 | 156,631 | 4,283 | 112 | 36.570395 | 0.851556 | 0.242691 | 0 | 0.716959 | 0 | 0 | 0.072758 | 0.022262 | 0 | 0 | 0 | 0 | 0.160234 | 1 | 0.046004 | false | 0 | 0.013645 | 0.00078 | 0.060429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
9365d4790bbe98eb6dabb878b1132d53621583a6 | 18,751 | py | Python | argus/backend/api.py | dkropachev/argus | e1d7b6cecb6ffcbcfbf46b6da1346b2f8308cd26 | [
"Apache-2.0"
] | null | null | null | argus/backend/api.py | dkropachev/argus | e1d7b6cecb6ffcbcfbf46b6da1346b2f8308cd26 | [
"Apache-2.0"
] | null | null | null | argus/backend/api.py | dkropachev/argus | e1d7b6cecb6ffcbcfbf46b6da1346b2f8308cd26 | [
"Apache-2.0"
] | null | null | null | import logging
from uuid import UUID
from flask import (
Blueprint,
request
)
from flask.json import jsonify
from argus.backend.argus_service import ArgusService
from argus.backend.auth import login_required
# pylint: disable=broad-except
bp = Blueprint('api', __name__, url_prefix='/api/v1')
LOGGER = logging.... | 31.044702 | 95 | 0.599488 | 1,979 | 18,751 | 5.438605 | 0.05811 | 0.040138 | 0.037164 | 0.053517 | 0.877822 | 0.867416 | 0.835362 | 0.796339 | 0.778036 | 0.778036 | 0 | 0.000221 | 0.276359 | 18,751 | 603 | 96 | 31.096186 | 0.792984 | 0.001493 | 0 | 0.715328 | 0 | 0 | 0.216174 | 0.008386 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047445 | false | 0 | 0.010949 | 0 | 0.105839 | 0.00365 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
93821324686b194a0973439dcb99a4917275df88 | 2,031 | py | Python | pieces/queen.py | nherbert25/chess_test | 5cebe4d57c9a1bdc073925079f8530ad900041c9 | [
"MIT"
] | null | null | null | pieces/queen.py | nherbert25/chess_test | 5cebe4d57c9a1bdc073925079f8530ad900041c9 | [
"MIT"
] | null | null | null | pieces/queen.py | nherbert25/chess_test | 5cebe4d57c9a1bdc073925079f8530ad900041c9 | [
"MIT"
] | null | null | null | from pieces.piece import Piece
class Queen(Piece):
alliance = None
position = None
name = 'queen'
def __init__(self, alliance, position):
Piece.__init__(self, alliance)
self.alliance = alliance
self.position = position
def toString(self):
return("Q" if self.alliance == "Black" else "q")
def moveme... | 29.867647 | 74 | 0.753816 | 270 | 2,031 | 5.318519 | 0.144444 | 0.300836 | 0.238162 | 0.139276 | 0.768802 | 0.768802 | 0.725627 | 0.725627 | 0.725627 | 0.725627 | 0 | 0.026072 | 0.150172 | 2,031 | 68 | 75 | 29.867647 | 0.80591 | 0 | 0 | 0.148148 | 0 | 0 | 0.005906 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.018519 | 0.018519 | 0.148148 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
4f0560f751cb6660590760da9ee4bff9596b1a27 | 8,079 | py | Python | test/validation/operators/boundary/test_modified_helmholtz.py | pescap/bempp-cl | 3a68666e8db0e873d418b734289067483f68f12e | [
"MIT"
] | null | null | null | test/validation/operators/boundary/test_modified_helmholtz.py | pescap/bempp-cl | 3a68666e8db0e873d418b734289067483f68f12e | [
"MIT"
] | null | null | null | test/validation/operators/boundary/test_modified_helmholtz.py | pescap/bempp-cl | 3a68666e8db0e873d418b734289067483f68f12e | [
"MIT"
] | null | null | null | """Unit tests for modified Helmholtz operators."""
# pylint: disable=redefined-outer-name
# pylint: disable=C0103
import numpy as _np
import pytest
pytestmark = pytest.mark.usefixtures("default_parameters", "helpers")
OMEGA = 2.5
def test_modified_helmholtz_single_layer(
default_parameters, help... | 25.647619 | 85 | 0.693526 | 912 | 8,079 | 5.884868 | 0.10307 | 0.089435 | 0.089435 | 0.044718 | 0.935905 | 0.929942 | 0.921185 | 0.921185 | 0.921185 | 0.912055 | 0 | 0.006187 | 0.199777 | 8,079 | 314 | 86 | 25.729299 | 0.823975 | 0.509345 | 0 | 0.708333 | 0 | 0 | 0.06843 | 0.047441 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.041667 | false | 0 | 0.104167 | 0 | 0.145833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
87ce68122b9f404081e0df04ae6022f0dcf9d582 | 2,182 | py | Python | deepchem/data/tests/test_inmemory.py | cjgalvin/deepchem | 64993a129e7f0f78fed9500298b1828ac8a0757a | [
"MIT"
] | 3,782 | 2016-02-21T03:53:11.000Z | 2022-03-31T16:10:26.000Z | deepchem/data/tests/test_inmemory.py | cjgalvin/deepchem | 64993a129e7f0f78fed9500298b1828ac8a0757a | [
"MIT"
] | 2,666 | 2016-02-11T01:54:54.000Z | 2022-03-31T11:14:33.000Z | deepchem/data/tests/test_inmemory.py | cjgalvin/deepchem | 64993a129e7f0f78fed9500298b1828ac8a0757a | [
"MIT"
] | 1,597 | 2016-02-21T03:10:08.000Z | 2022-03-30T13:21:28.000Z | import deepchem as dc
import numpy as np
def test_inmemory_features():
smiles = ["C", "CC", "CCC", "CCCC"]
featurizer = dc.feat.CircularFingerprint(size=1024)
loader = dc.data.InMemoryLoader(tasks=["task1"], featurizer=featurizer)
dataset = loader.create_dataset(smiles, shard_size=2)
assert len(dataset) == ... | 36.983051 | 77 | 0.68561 | 311 | 2,182 | 4.694534 | 0.160772 | 0.15137 | 0.076712 | 0.063014 | 0.939726 | 0.928767 | 0.928767 | 0.880137 | 0.844521 | 0.844521 | 0 | 0.042246 | 0.142988 | 2,182 | 58 | 78 | 37.62069 | 0.738503 | 0 | 0 | 0.74 | 0 | 0 | 0.027498 | 0 | 0 | 0 | 0 | 0 | 0.42 | 1 | 0.08 | false | 0 | 0.04 | 0 | 0.12 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
87ee25c8134127b48930a2f68c6695139c16ae12 | 39 | py | Python | AUG09/03.py | Razdeep/PythonSnippets | 76f9313894f511c487a99bc38bdf0fe5e594caf5 | [
"MIT"
] | null | null | null | AUG09/03.py | Razdeep/PythonSnippets | 76f9313894f511c487a99bc38bdf0fe5e594caf5 | [
"MIT"
] | null | null | null | AUG09/03.py | Razdeep/PythonSnippets | 76f9313894f511c487a99bc38bdf0fe5e594caf5 | [
"MIT"
] | null | null | null | x=2
y=5
print(x is y)
print(x is not y) | 9.75 | 17 | 0.641026 | 13 | 39 | 1.923077 | 0.538462 | 0.48 | 0.64 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 0.205128 | 39 | 4 | 17 | 9.75 | 0.741935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 1 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
35501e543bebd7cf73f33f207e1814aa35391528 | 34,684 | py | Python | fhirclient/models/claimresponse_tests.py | carolinarsm/client-py | db1b6e3e28036dee11da75412003c7d90e591c6d | [
"Apache-2.0"
] | 418 | 2015-07-01T08:23:16.000Z | 2022-03-31T14:02:30.000Z | fhirclient/models/claimresponse_tests.py | carolinarsm/client-py | db1b6e3e28036dee11da75412003c7d90e591c6d | [
"Apache-2.0"
] | 312 | 2017-09-08T15:42:13.000Z | 2022-03-23T18:21:40.000Z | fhirclient/models/claimresponse_tests.py | carolinarsm/client-py | db1b6e3e28036dee11da75412003c7d90e591c6d | [
"Apache-2.0"
] | 185 | 2015-03-30T20:23:16.000Z | 2022-03-30T14:39:26.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.0-a53ec6ee1b on 2019-05-07.
# 2019, SMART Health IT.
import os
import io
import unittest
import json
from . import claimresponse
from .fhirdate import FHIRDate
class ClaimResponseTests(unittest.TestCase):
def instantiate_from(self, file... | 73.018947 | 210 | 0.696517 | 4,513 | 34,684 | 5.348327 | 0.067583 | 0.246095 | 0.306998 | 0.123876 | 0.922401 | 0.912458 | 0.906078 | 0.876745 | 0.847413 | 0.822016 | 0 | 0.046546 | 0.135279 | 34,684 | 474 | 211 | 73.172996 | 0.758236 | 0.003431 | 0 | 0.463252 | 1 | 0.002227 | 0.141324 | 0.005614 | 0 | 0 | 0 | 0 | 0.895323 | 1 | 0.024499 | false | 0 | 0.013363 | 0 | 0.042316 | 0.004454 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
3591ce9245724bd3904c836c9e95042ce5a506db | 324 | py | Python | SBaaS_rnasequencing/stage01_rnasequencing_genesFpkmTracking_execute.py | dmccloskey/SBaaS_rnasequencing | 521ad0b671b0bca02e9cebfc1b372f2265955418 | [
"MIT"
] | null | null | null | SBaaS_rnasequencing/stage01_rnasequencing_genesFpkmTracking_execute.py | dmccloskey/SBaaS_rnasequencing | 521ad0b671b0bca02e9cebfc1b372f2265955418 | [
"MIT"
] | null | null | null | SBaaS_rnasequencing/stage01_rnasequencing_genesFpkmTracking_execute.py | dmccloskey/SBaaS_rnasequencing | 521ad0b671b0bca02e9cebfc1b372f2265955418 | [
"MIT"
] | null | null | null | from copy import copy
#sbaas
from .stage01_rnasequencing_genesFpkmTracking_io import stage01_rnasequencing_genesFpkmTracking_io
#sbaas models
from .stage01_rnasequencing_genesFpkmTracking_postgresql_models import *
class stage01_rnasequencing_genesFpkmTracking_execute(stage01_rnasequencing_genesFpkmTracking_io):
p... | 40.5 | 98 | 0.904321 | 34 | 324 | 8.147059 | 0.382353 | 0.361011 | 0.66787 | 0.422383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033113 | 0.067901 | 324 | 8 | 99 | 40.5 | 0.884106 | 0.052469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 0.6 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 8 |
35bf551525187ed9a5c3be694ec4026e761e04b3 | 45 | py | Python | lib/protos/__init__.py | skygoo/Peppa_Pig_Face_Engine | 9e091b1da87202ae5bebb0446ae39bc101052e02 | [
"Apache-2.0"
] | 1 | 2020-06-02T09:54:24.000Z | 2020-06-02T09:54:24.000Z | lib/protos/__init__.py | skygoo/Peppa_Pig_Face_Engine | 9e091b1da87202ae5bebb0446ae39bc101052e02 | [
"Apache-2.0"
] | 6 | 2020-01-28T23:05:40.000Z | 2022-02-10T01:06:06.000Z | lib/protos/__init__.py | skygoo/Peppa_Pig_Face_Engine | 9e091b1da87202ae5bebb0446ae39bc101052e02 | [
"Apache-2.0"
] | null | null | null | # User: sky
# DATE: 2019/10/23
# TIME: 下午5:18 | 15 | 18 | 0.622222 | 9 | 45 | 3.111111 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.297297 | 0.177778 | 45 | 3 | 19 | 15 | 0.459459 | 0.866667 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ea269aa22435ff1a7d5a52c8867507efeb8081ad | 28,848 | py | Python | heat/tests/openstack/neutron/test_neutron_security_group.py | noironetworks/heat | 7cdadf1155f4d94cf8f967635b98e4012a7acfb7 | [
"Apache-2.0"
] | 1 | 2018-07-04T07:59:26.000Z | 2018-07-04T07:59:26.000Z | heat/tests/openstack/neutron/test_neutron_security_group.py | noironetworks/heat | 7cdadf1155f4d94cf8f967635b98e4012a7acfb7 | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | heat/tests/openstack/neutron/test_neutron_security_group.py | noironetworks/heat | 7cdadf1155f4d94cf8f967635b98e4012a7acfb7 | [
"Apache-2.0"
] | 2 | 2020-03-15T01:24:15.000Z | 2020-07-22T20:34:26.000Z | #
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# ... | 37.032092 | 79 | 0.440342 | 2,345 | 28,848 | 5.116844 | 0.090405 | 0.11701 | 0.040337 | 0.063339 | 0.807317 | 0.800567 | 0.783315 | 0.754313 | 0.724644 | 0.718977 | 0 | 0.046115 | 0.446755 | 28,848 | 778 | 80 | 37.079692 | 0.705702 | 0.022809 | 0 | 0.774238 | 0 | 0 | 0.309132 | 0.033409 | 0 | 0 | 0 | 0 | 0.029086 | 1 | 0.01108 | false | 0 | 0.016621 | 0.001385 | 0.037396 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
575e08c5bbbac7b9f16ee8927985ae10ecdab378 | 288 | py | Python | S4/S4 Library/simulation/venues/chalet_garden/chalet_garden_zone_director.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | 1 | 2021-05-20T19:33:37.000Z | 2021-05-20T19:33:37.000Z | S4/S4 Library/simulation/venues/chalet_garden/chalet_garden_zone_director.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | S4/S4 Library/simulation/venues/chalet_garden/chalet_garden_zone_director.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | from venues.scheduling_zone_director import SchedulingZoneDirector
from venues.visitor_situation_on_arrival_zone_director_mixin import VisitorSituationOnArrivalZoneDirectorMixin
class ChaletGardenZoneDirector(VisitorSituationOnArrivalZoneDirectorMixin, SchedulingZoneDirector):
pass
| 48 | 110 | 0.920139 | 23 | 288 | 11.173913 | 0.695652 | 0.077821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059028 | 288 | 5 | 111 | 57.6 | 0.948339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.5 | 0 | 0.75 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
5774d20f167b5c40fda99f981911ca786bf5cf81 | 270 | py | Python | src/port.py | pedroeml/network-simulator | 9fe8e884cda22e532bc75485cfe72bb09d4d946a | [
"MIT"
] | null | null | null | src/port.py | pedroeml/network-simulator | 9fe8e884cda22e532bc75485cfe72bb09d4d946a | [
"MIT"
] | null | null | null | src/port.py | pedroeml/network-simulator | 9fe8e884cda22e532bc75485cfe72bb09d4d946a | [
"MIT"
] | null | null | null |
class Port:
def __init__(self, mac_address, ip_address, mtu):
self.mac_address = mac_address
self.ip_address = ip_address
self.mtu = mtu
def __str__(self):
return '(%s - %s - %d)' % (self.mac_address, self.ip_address, self.mtu)
| 27 | 79 | 0.618519 | 38 | 270 | 3.973684 | 0.342105 | 0.264901 | 0.278146 | 0.211921 | 0.304636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259259 | 270 | 9 | 80 | 30 | 0.755 | 0 | 0 | 0 | 0 | 0 | 0.052045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
5795b3dd3a0426b7910b5d6fc9b3be0d205e4a58 | 25,766 | py | Python | project_code.py | sailalitha96/Anamoly-Detection-in-Videos | 84b10d58aece23dc898e227760e6f4ab46670cf1 | [
"MIT"
] | null | null | null | project_code.py | sailalitha96/Anamoly-Detection-in-Videos | 84b10d58aece23dc898e227760e6f4ab46670cf1 | [
"MIT"
] | null | null | null | project_code.py | sailalitha96/Anamoly-Detection-in-Videos | 84b10d58aece23dc898e227760e6f4ab46670cf1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Project Code.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1nAMbry1ZCmxpNFVkdPtLueip2rhxWk0_
"""
!pip install mxnet-cu100
import mxnet as mx
from mxnet import nd ,gluon, autograd,gpu
from google.colab im... | 38.399404 | 121 | 0.661608 | 3,781 | 25,766 | 4.356784 | 0.094684 | 0.031567 | 0.020033 | 0.019608 | 0.842955 | 0.815334 | 0.775815 | 0.737449 | 0.715777 | 0.690099 | 0 | 0.037213 | 0.183381 | 25,766 | 671 | 122 | 38.399404 | 0.745687 | 0.024257 | 0 | 0.711069 | 1 | 0 | 0.08231 | 0.030056 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02439 | null | null | 0.013133 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
17eee6ad87e3cf1b03ac559a32f34fbc0d52c3b1 | 47,566 | py | Python | tests/snapshots/snap_promgen_k8s_test.py | cmur2/promgen-k8s | df44928071896376f2c0263723aab8a8033f6263 | [
"Apache-2.0"
] | 12 | 2017-09-13T11:50:01.000Z | 2022-01-06T05:10:55.000Z | tests/snapshots/snap_promgen_k8s_test.py | cmur2/promgen-k8s | df44928071896376f2c0263723aab8a8033f6263 | [
"Apache-2.0"
] | 8 | 2017-12-04T11:33:23.000Z | 2020-04-10T15:02:43.000Z | tests/snapshots/snap_promgen_k8s_test.py | cmur2/promgen-k8s | df44928071896376f2c0263723aab8a8033f6263 | [
"Apache-2.0"
] | 2 | 2017-11-10T13:08:27.000Z | 2020-04-10T01:48:09.000Z | # -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals
from snapshottest import Snapshot
snapshots = Snapshot()
snapshots['TestPromgenK8s::test_generate 1'] = [
'---',
'global:',
' evaluation_interval: 1m',
' scrape_interval: 1m',
'rule_files... | 41.182684 | 93 | 0.542509 | 4,002 | 47,566 | 5.848076 | 0.033233 | 0.097505 | 0.05811 | 0.094428 | 0.982866 | 0.979961 | 0.978166 | 0.978166 | 0.978166 | 0.975859 | 0 | 0.006129 | 0.320817 | 47,566 | 1,154 | 94 | 41.218371 | 0.718319 | 0.001303 | 0 | 0.966028 | 0 | 0 | 0.80493 | 0.291783 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001742 | 0 | 0.001742 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
17f0168590c83cfd1b5cce5574e82fd0752fab2f | 193 | py | Python | xndtools/kernel_generator/tests/conftest.py | xnd-project/xndtools | 9478f31954091d861ce538ba278f7f888e23d19b | [
"BSD-3-Clause"
] | 3 | 2019-11-12T16:01:26.000Z | 2020-06-27T19:27:27.000Z | xndtools/kernel_generator/tests/conftest.py | xnd-project/xndtools | 9478f31954091d861ce538ba278f7f888e23d19b | [
"BSD-3-Clause"
] | 4 | 2018-04-25T17:12:43.000Z | 2018-08-23T18:17:24.000Z | xndtools/kernel_generator/tests/conftest.py | xnd-project/xndtools | 9478f31954091d861ce538ba278f7f888e23d19b | [
"BSD-3-Clause"
] | 6 | 2018-05-04T08:10:40.000Z | 2019-03-19T10:00:21.000Z | # Importing gumath prior xndtools generated extension modules avoids
# the following exception:
# ImportError: libgumath.so.0: cannot open shared object file:...
import gumath # noqa: F401
| 32.166667 | 68 | 0.772021 | 24 | 193 | 6.208333 | 0.958333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02454 | 0.15544 | 193 | 5 | 69 | 38.6 | 0.889571 | 0.870466 | 0 | 0 | 1 | 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 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
a4aa085f3d8fa8c536cbe79f9b70f0b4aeae858c | 4,348 | py | Python | src/formal_sequences.py | TillJohanndeiter/qualia-generator | 65dcc7c3b8dc301dfee2b12c6824b2b8723651a0 | [
"Unlicense"
] | null | null | null | src/formal_sequences.py | TillJohanndeiter/qualia-generator | 65dcc7c3b8dc301dfee2b12c6824b2b8723651a0 | [
"Unlicense"
] | null | null | null | src/formal_sequences.py | TillJohanndeiter/qualia-generator | 65dcc7c3b8dc301dfee2b12c6824b2b8723651a0 | [
"Unlicense"
] | null | null | null | '''
Provide the semantic sequences for the role formal.
'''
from spacy.symbols import NOUN, VERB, conj, nmod, dobj, nsubj, xcomp
from spacy.tokens.doc import Doc
from src.semantic_sequence import SemanticSequence, to_bert_seq, MASK
from src.spacy_utils import ROOT, get_ancestor, get_child
class IsSemanticSequence(S... | 35.064516 | 93 | 0.712971 | 568 | 4,348 | 5.163732 | 0.128521 | 0.217184 | 0.110126 | 0.12956 | 0.841118 | 0.817934 | 0.7985 | 0.780089 | 0.780089 | 0.780089 | 0 | 0 | 0.184223 | 4,348 | 123 | 94 | 35.349594 | 0.826896 | 0.01173 | 0 | 0.540541 | 0 | 0 | 0.04803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.351351 | false | 0 | 0.054054 | 0.256757 | 0.878378 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 10 |
10312dbe3512978e13698ac4c7fa7eee3ddc263d | 3,530 | py | Python | wtfapi/migrations/0003_country_province.py | luismasuelli/wherethefuck | 6e68543a804c299be4362836c518e34f10029b48 | [
"MIT"
] | 1 | 2019-11-18T15:02:16.000Z | 2019-11-18T15:02:16.000Z | wtfapi/migrations/0003_country_province.py | luismasuelli/wherethefuck | 6e68543a804c299be4362836c518e34f10029b48 | [
"MIT"
] | null | null | null | wtfapi/migrations/0003_country_province.py | luismasuelli/wherethefuck | 6e68543a804c299be4362836c518e34f10029b48 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.4 on 2019-12-02 22:12
from django.conf import settings
import django.contrib.gis.db.models.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wtfapi', '0002_auto_20190829_2241'),
]
... | 63.035714 | 275 | 0.650425 | 408 | 3,530 | 5.458333 | 0.264706 | 0.088909 | 0.037719 | 0.059273 | 0.825326 | 0.825326 | 0.811855 | 0.811855 | 0.811855 | 0.768747 | 0 | 0.017805 | 0.220397 | 3,530 | 55 | 276 | 64.181818 | 0.791424 | 0.012748 | 0 | 0.571429 | 1 | 0.040816 | 0.234855 | 0.020098 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.081633 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.