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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f707082ecc50ab313ab037c031d2b914ba9a2a34 | 70 | py | Python | sphinx/build/reamber/algorithms/generate/sv/generators/svOsuMeasureLine-1.py | Bestfast/reamberPy | 91b76ca6adf11fbe8b7cee7c186481776a4d7aaa | [
"MIT"
] | 10 | 2020-06-28T11:16:36.000Z | 2021-08-09T21:41:43.000Z | sphinx/build/reamber/algorithms/generate/sv/generators/svOsuMeasureLine-1.py | Bestfast/reamberPy | 91b76ca6adf11fbe8b7cee7c186481776a4d7aaa | [
"MIT"
] | 35 | 2020-06-18T13:05:50.000Z | 2022-02-18T10:13:35.000Z | docs/reamber/algorithms/generate/sv/generators/SvOsuMeasureLine-1.py | Eve-ning/reamber_base_py | 6d19c84f2c110b60e633b82b73e0516396466f56 | [
"MIT"
] | 2 | 2021-05-26T17:05:06.000Z | 2021-06-12T18:42:13.000Z | import matplotlib.pyplot as plt
from math import pi
import numpy as np | 23.333333 | 31 | 0.828571 | 13 | 70 | 4.461538 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157143 | 70 | 3 | 32 | 23.333333 | 0.983051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
f7542ba8526bc71f5ad701b7d7171ada72b47cfa | 8,557 | py | Python | tests/test_csek.py | noahdietz/storage-testbench | b122e47b69cabcdf981969068df0e9d805f129a3 | [
"Apache-2.0"
] | 4 | 2021-08-20T12:27:11.000Z | 2022-01-24T12:20:19.000Z | tests/test_csek.py | noahdietz/storage-testbench | b122e47b69cabcdf981969068df0e9d805f129a3 | [
"Apache-2.0"
] | 260 | 2021-06-29T00:50:44.000Z | 2022-03-30T12:25:26.000Z | tests/test_csek.py | noahdietz/storage-testbench | b122e47b69cabcdf981969068df0e9d805f129a3 | [
"Apache-2.0"
] | 11 | 2021-06-14T16:25:31.000Z | 2022-03-22T19:42:49.000Z | #!/usr/bin/env python3
#
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Test for CSEK helpers."""
import base64
import hashlib
import unittest
from unittest.mock import ANY, Mock
import grpc
from werkzeug.test import create_environ
from werkzeug.wrappers import Request
from google.storage.v2 import storage_pb2
from testbench import csek, error
class TestCSEK(unittest.TestCase):
def test_extract_insert(self):
environ = create_environ(
base_url="http://localhost:8080",
content_type="application/json",
method="POST",
headers={
"x-goog-encryption-algorithm": "AES",
"x-goog-encryption-key": "test-only-invalid-key",
"x-goog-encryption-key-sha256": "test-only-invalid-sha",
},
)
algorithm, key, sha256 = csek.extract(Request(environ), False, None)
self.assertEqual(algorithm, "AES")
self.assertEqual(key, "test-only-invalid-key")
self.assertEqual(sha256, "test-only-invalid-sha")
def test_extract_copy(self):
environ = create_environ(
base_url="http://localhost:8080",
content_type="application/json",
method="POST",
headers={
"x-goog-copy-source-encryption-algorithm": "AES",
"x-goog-copy-source-encryption-key": "test-only-invalid-key",
"x-goog-copy-source-encryption-key-sha256": "test-only-invalid-sha",
},
)
algorithm, key, sha256 = csek.extract(Request(environ), True, None)
self.assertEqual(algorithm, "AES")
self.assertEqual(key, "test-only-invalid-key")
self.assertEqual(sha256, "test-only-invalid-sha")
def test_extract_grpc(self):
key_bytes = b"\001\002\003\004\005\006\007\010"
key_hash = hashlib.sha256(key_bytes).digest()
context = unittest.mock.Mock()
algorithm, key, sha256 = csek.extract(
storage_pb2.RewriteObjectRequest(
common_object_request_params=storage_pb2.CommonObjectRequestParams(
encryption_algorithm="AES256",
encryption_key_bytes=key_bytes,
encryption_key_sha256_bytes=key_hash,
)
),
is_source=False,
context=context,
)
self.assertEqual(algorithm, "AES256")
self.assertEqual(key, base64.b64encode(key_bytes).decode("utf-8"))
self.assertEqual(sha256, base64.b64encode(key_hash).decode("utf-8"))
def test_extract_grpc_source(self):
key_bytes = b"\001\002\003\004\005\006\007\010"
key_hash = hashlib.sha256(key_bytes).digest()
context = unittest.mock.Mock()
algorithm, key, sha256 = csek.extract(
storage_pb2.RewriteObjectRequest(
copy_source_encryption_algorithm="AES256",
copy_source_encryption_key_bytes=key_bytes,
copy_source_encryption_key_sha256_bytes=key_hash,
),
is_source=True,
context=context,
)
self.assertEqual(algorithm, "AES256")
self.assertEqual(key, base64.b64encode(key_bytes).decode("utf-8"))
self.assertEqual(sha256, base64.b64encode(key_hash).decode("utf-8"))
def test_check_success(self):
key = b"1234567890" + b"1234567890" + b"1234567890" + b"AA"
key_sha256 = hashlib.sha256(key).digest()
key_b64 = base64.b64encode(key)
expected = hashlib.sha256(key).digest()
actual = csek.check("AES256", key_b64, key_sha256, None)
self.assertEqual(expected, actual)
def test_check_invalid_algorithm(self):
key = b"1234567890" + b"1234567890" + b"1234567890" + b"AA"
key_sha256 = hashlib.sha256(key).digest()
key_b64 = base64.b64encode(key)
with self.assertRaises(error.RestException) as rest:
_ = csek.check("#### INVALID ####", key_b64, key_sha256, None)
self.assertEqual(rest.exception.code, 400)
context = Mock()
_ = csek.check("#### INVALID ####", key_b64, key_sha256, context)
context.abort.assert_called_once_with(grpc.StatusCode.INVALID_ARGUMENT, ANY)
def test_check_invalid_key_length(self):
key = b"## INVALID ##"
key_sha256 = hashlib.sha256(key).digest()
key_b64 = base64.b64encode(key)
with self.assertRaises(error.RestException) as rest:
_ = csek.check("AES256", key_b64, key_sha256, None)
self.assertEqual(rest.exception.code, 400)
context = Mock()
_ = csek.check("AES256", key_b64, key_sha256, context)
context.abort.assert_called_once_with(grpc.StatusCode.INVALID_ARGUMENT, ANY)
def test_check_invalid_hash(self):
key = b"1234567890" + b"1234567890" + b"1234567890" + b"AA"
key_sha256 = hashlib.sha256(b"## INVALID ##").digest()
key_b64 = base64.b64encode(key)
with self.assertRaises(error.RestException) as rest:
_ = csek.check("AES256", key_b64, key_sha256, None)
self.assertEqual(rest.exception.code, 400)
context = Mock()
_ = csek.check("AES256", key_b64, key_sha256, context)
context.abort.assert_called_once_with(grpc.StatusCode.INVALID_ARGUMENT, ANY)
def test_validation_success(self):
key = b"1234567890" + b"1234567890" + b"1234567890" + b"AA"
key_sha256 = hashlib.sha256(key).digest()
key_b64 = base64.b64encode(key)
key_sha256_b64 = base64.b64encode(key_sha256).decode("utf-8")
environ = create_environ(
base_url="http://localhost:8080",
content_type="application/json",
method="POST",
headers={
"x-goog-encryption-algorithm": "AES256",
"x-goog-encryption-key": key_b64,
"x-goog-encryption-key-sha256": key_sha256_b64,
},
)
csek.validation(Request(environ), key_sha256, False, None)
def test_validation_failure(self):
key = b"1234567890" + b"1234567890" + b"1234567890" + b"AA"
key_sha256 = hashlib.sha256(key).digest()
key_b64 = base64.b64encode(key)
key_sha256_b64 = base64.b64encode(key_sha256).decode("utf-8")
environ = create_environ(
base_url="http://localhost:8080",
content_type="application/json",
method="POST",
headers={
"x-goog-encryption-algorithm": "## INVALID ##",
"x-goog-encryption-key": key_b64,
"x-goog-encryption-key-sha256": key_sha256_b64,
},
)
with self.assertRaises(error.RestException) as rest:
csek.validation(Request(environ), key_sha256, False, None)
self.assertEqual(rest.exception.code, 400)
def test_validation_nothing_expected_failure(self):
key = b"1234567890" + b"1234567890" + b"1234567890" + b"AA"
key_sha256 = hashlib.sha256(key).digest()
key_b64 = base64.b64encode(key)
key_sha256_b64 = base64.b64encode(key_sha256).decode("utf-8")
environ = create_environ(
base_url="http://localhost:8080",
content_type="application/json",
method="POST",
headers={
"x-goog-encryption-algorithm": "AES256",
"x-goog-encryption-key": key_b64,
"x-goog-encryption-key-sha256": key_sha256_b64,
},
)
with self.assertRaises(error.RestException) as rest:
csek.validation(Request(environ), b"", False, None)
self.assertEqual(rest.exception.code, 400)
def test_validation_nothing_expected_success(self):
environ = create_environ(
base_url="http://localhost:8080",
content_type="application/json",
method="POST",
headers={},
)
csek.validation(Request(environ), b"", False, None)
if __name__ == "__main__":
unittest.main()
| 40.363208 | 84 | 0.623934 | 988 | 8,557 | 5.234818 | 0.171053 | 0.062645 | 0.041763 | 0.051044 | 0.790217 | 0.770495 | 0.765661 | 0.755414 | 0.715777 | 0.715777 | 0 | 0.090309 | 0.255931 | 8,557 | 211 | 85 | 40.554502 | 0.722004 | 0.069183 | 0 | 0.630058 | 0 | 0 | 0.161108 | 0.081561 | 0 | 0 | 0 | 0 | 0.150289 | 1 | 0.069364 | false | 0 | 0.052023 | 0 | 0.127168 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
f7885b97a4bfb050ba21c4ddf274e893b05d98a3 | 136 | py | Python | mealie/db/user_models.py | zackbcom/mealie | f5ab2dcde8bd87d5a9a54f3ebe3615e3f52ba118 | [
"MIT"
] | null | null | null | mealie/db/user_models.py | zackbcom/mealie | f5ab2dcde8bd87d5a9a54f3ebe3615e3f52ba118 | [
"MIT"
] | null | null | null | mealie/db/user_models.py | zackbcom/mealie | f5ab2dcde8bd87d5a9a54f3ebe3615e3f52ba118 | [
"MIT"
] | null | null | null |
import mongoengine
class User(mongoengine.Document):
username: mongoengine.EmailField()
# password: mongoengine.ReferenceField | 22.666667 | 42 | 0.786765 | 12 | 136 | 8.916667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132353 | 136 | 6 | 42 | 22.666667 | 0.90678 | 0.264706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
e3c599cde2325e8dc47f3d7e11fde349608ec5fb | 283 | py | Python | python/ray/tune/automlboard/manage.py | firebolt55439/ray | 215300b070628c06f0106906fc6c03bd70ebf140 | [
"Apache-2.0"
] | 21,382 | 2016-09-26T23:12:52.000Z | 2022-03-31T21:47:45.000Z | python/ray/tune/automlboard/manage.py | firebolt55439/ray | 215300b070628c06f0106906fc6c03bd70ebf140 | [
"Apache-2.0"
] | 19,689 | 2016-09-17T08:21:25.000Z | 2022-03-31T23:59:30.000Z | python/ray/tune/automlboard/manage.py | firebolt55439/ray | 215300b070628c06f0106906fc6c03bd70ebf140 | [
"Apache-2.0"
] | 4,114 | 2016-09-23T18:54:01.000Z | 2022-03-31T15:07:32.000Z | #!/usr/bin/env python
from django.core.management import execute_from_command_line
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE",
"ray.tune.automlboard.settings")
execute_from_command_line(sys.argv)
| 28.3 | 60 | 0.720848 | 36 | 283 | 5.222222 | 0.694444 | 0.117021 | 0.191489 | 0.234043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183746 | 283 | 9 | 61 | 31.444444 | 0.813853 | 0.070671 | 0 | 0 | 0 | 0 | 0.225191 | 0.194656 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
e3d076530fc6102b390134fbfe9641645954ab60 | 88 | py | Python | 02-Homework/09-SQL/Solution/config.py | anirudhmungre/sneaky-lessons | 8e48015c50865059db96f8cd369bcc15365d66c7 | [
"ADSL"
] | null | null | null | 02-Homework/09-SQL/Solution/config.py | anirudhmungre/sneaky-lessons | 8e48015c50865059db96f8cd369bcc15365d66c7 | [
"ADSL"
] | null | null | null | 02-Homework/09-SQL/Solution/config.py | anirudhmungre/sneaky-lessons | 8e48015c50865059db96f8cd369bcc15365d66c7 | [
"ADSL"
] | null | null | null | # username = <Add PostgreSQL Username Here>
# password = <Add PostgreSQL Password Here>
| 29.333333 | 43 | 0.75 | 10 | 88 | 6.6 | 0.5 | 0.393939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159091 | 88 | 2 | 44 | 44 | 0.891892 | 0.943182 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
5400649422cebbe6ae7806065a1c1afee51ac355 | 42 | py | Python | osmABTS/trips.py | ZSSVE/osmABTS | c833aa61740cca557674b3531a33096674e8e711 | [
"MIT"
] | 1 | 2020-03-13T05:38:11.000Z | 2020-03-13T05:38:11.000Z | osmABTS/trips.py | ZSSVE/osmABTS | c833aa61740cca557674b3531a33096674e8e711 | [
"MIT"
] | null | null | null | osmABTS/trips.py | ZSSVE/osmABTS | c833aa61740cca557674b3531a33096674e8e711 | [
"MIT"
] | null | null | null | """
Trip generation
===============
"""
| 6 | 15 | 0.333333 | 2 | 42 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 42 | 6 | 16 | 7 | 0.4 | 0.738095 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
540ade044e4f0144500e9022357df5631fa1b70f | 1,562 | py | Python | tests/test_utils.py | FloLie/openssh_key_parser | 44cdc6c2085069e7c2612841de38f581f8ef226c | [
"MIT"
] | null | null | null | tests/test_utils.py | FloLie/openssh_key_parser | 44cdc6c2085069e7c2612841de38f581f8ef226c | [
"MIT"
] | null | null | null | tests/test_utils.py | FloLie/openssh_key_parser | 44cdc6c2085069e7c2612841de38f581f8ef226c | [
"MIT"
] | null | null | null | import abc
from openssh_key import utils
def test_is_abstract_not_abstract():
class C:
def f(self):
pass
assert not utils.is_abstract(C)
def test_is_abstract_abstract():
class C(abc.ABC):
@abc.abstractmethod
def f(self):
pass
assert utils.is_abstract(C)
def test_is_abstract_concrete():
class C(abc.ABC):
@abc.abstractmethod
def f(self):
pass
class D(C):
def f(self):
pass
assert not utils.is_abstract(D)
def test_readonly_static_property_manual_get_call():
def f():
return 1
p = utils.readonly_static_property(f)
class C:
@staticmethod
def f():
return 2
assert p.__get__(C()) == 2
assert p.__get__(None, C) == 2
def test_readonly_static_property_same_class():
class C:
@staticmethod
def f():
return 1
p = utils.readonly_static_property(f)
assert C().p == 1
assert C.p == 1
def test_readonly_static_property_subclass_overrides():
class C:
@staticmethod
def f():
return 1
p = utils.readonly_static_property(f)
class D(C):
@staticmethod
def f():
return 2
assert D().p == 2
assert D.p == 2
def test_readonly_static_property_subclass_inherits():
class C:
@staticmethod
def f():
return 1
p = utils.readonly_static_property(f)
class D(C):
pass
assert D().p == 1
assert D.p == 1
| 18.376471 | 55 | 0.570423 | 205 | 1,562 | 4.097561 | 0.17561 | 0.047619 | 0.209524 | 0.10119 | 0.77381 | 0.719048 | 0.594048 | 0.52381 | 0.463095 | 0.463095 | 0 | 0.013527 | 0.337388 | 1,562 | 84 | 56 | 18.595238 | 0.798068 | 0 | 0 | 0.677419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177419 | 1 | 0.274194 | false | 0.080645 | 0.032258 | 0.096774 | 0.612903 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 5 |
587110978099859317e8022afb5bc30aedb916d0 | 11,519 | py | Python | sublime/SuperPlugin/SuperPlugin.py | zubko/utility-scripts | c7d31ad4760eea5da55f617a8df2db66fa9cb488 | [
"MIT"
] | null | null | null | sublime/SuperPlugin/SuperPlugin.py | zubko/utility-scripts | c7d31ad4760eea5da55f617a8df2db66fa9cb488 | [
"MIT"
] | null | null | null | sublime/SuperPlugin/SuperPlugin.py | zubko/utility-scripts | c7d31ad4760eea5da55f617a8df2db66fa9cb488 | [
"MIT"
] | null | null | null | # Performing very custom task, but some parts can be reused if needed:
# Add key combination:
# { "keys": ["control+m"], "command": "super_plugin_clean_line" }
#
# Api reference http://www.sublimetext.com/docs/3/api_reference.html
#
import sublime, sublime_plugin, re, json
class SuperPluginConvertFile(sublime_plugin.TextCommand):
def run(self, edit):
content = self.getAllContents()
lines = content.split("\n")
if len(lines[-1]) == 0:
lines.pop()
lines = map(lambda s: self.fixLine(s), lines)
content = ",\n".join(lines)
content = "{\n \"id\": \"\",\n \"title\": \"\",\n \"text\": \"\",\n \"sync\": [\n%s\n ]\n}\n" % content
self.view.replace(edit, self.getWholeRegion(), content)
def fixLine(self, line):
line = re.sub("\"", "\\\"", line)
line = re.sub(r"(\d+),(\d+)", r"\1.\2", line)
return " \"" + line + "\""
def getWholeRegion(self):
return sublime.Region(0, self.view.size());
def getAllContents(self):
return self.view.substr(sublime.Region(0, self.view.size()))
class SuperPluginCleanLineCommand(sublime_plugin.TextCommand):
def run(self, edit):
lineContents = self.currentLineContent()
fixedContents = self.fixedLine(lineContents)
self.replaceCurrentLine(edit, fixedContents)
self.moveCursorToNextLine()
def currentLine(self):
view = self.view
region = self.view.sel()[0]
return self.view.line(region)
def currentLineContent(self):
line = self.currentLine()
return self.view.substr(line)
def replaceCurrentLine(self, edit, newContent):
self.view.replace(edit, self.currentLine(), newContent)
def fixedLine(self, line):
if (line.startswith("//")):
return ""
line = re.sub(r"^#define (.*) NSLocalizedString\(@\"(.*)\"\s?, @\"\"\)$", r'#define \1 NSLocalizedString(@"\1", @"")', line)
return line
# line = re.sub(r"^\d+\s+", "", line)
# line = re.sub(r"^([a-zA-Z\s,\-&\.\'\(\):/]+)\s+\d.*$", r"\1", line)
# line = re.sub(r"^(.*),\s[A-Z\-]+$", r"\1", line)
# for c in codes:
# name = c['Name'].split(", ")[0]
# code = c['Code']
# index = line.find(name)
# if index != -1:
# r1 = r"^{0}\s(.*)$".format(name)
# r2 = r"{0},{1},\1".format(code, name)
# line = re.sub(r1, r2, line)
# return line
def moveCursorToNextLine(self):
(row,col) = self.view.rowcol(self.view.sel()[0].begin())
target = self.view.text_point(row + 1, 0)
self.view.sel().clear()
self.view.sel().add(sublime.Region(target))
self.view.show(target)
class SuperPluginRenameCountryCommand(sublime_plugin.TextCommand):
def run(self, edit):
print(codes[0]['Name'])
codes = json.loads("""[{"Name":"Afghanistan","Code":"AF"},{"Name":"Åland Islands","Code":"AX"},{"Name":"Albania","Code":"AL"},{"Name":"Algeria","Code":"DZ"},{"Name":"American Samoa","Code":"AS"},{"Name":"Andorra","Code":"AD"},{"Name":"Angola","Code":"AO"},{"Name":"Anguilla","Code":"AI"},{"Name":"Antarctica","Code":"AQ"},{"Name":"Antigua and Barbuda","Code":"AG"},{"Name":"Argentina","Code":"AR"},{"Name":"Armenia","Code":"AM"},{"Name":"Aruba","Code":"AW"},{"Name":"Australia","Code":"AU"},{"Name":"Austria","Code":"AT"},{"Name":"Azerbaijan","Code":"AZ"},{"Name":"Bahamas","Code":"BS"},{"Name":"Bahrain","Code":"BH"},{"Name":"Bangladesh","Code":"BD"},{"Name":"Barbados","Code":"BB"},{"Name":"Belarus","Code":"BY"},{"Name":"Belgium","Code":"BE"},{"Name":"Belize","Code":"BZ"},{"Name":"Benin","Code":"BJ"},{"Name":"Bermuda","Code":"BM"},{"Name":"Bhutan","Code":"BT"},{"Name":"Bolivia, Plurinational State of","Code":"BO"},{"Name":"Bonaire, Sint Eustatius and Saba","Code":"BQ"},{"Name":"Bosnia and Herzegovina","Code":"BA"},{"Name":"Botswana","Code":"BW"},{"Name":"Bouvet Island","Code":"BV"},{"Name":"Brazil","Code":"BR"},{"Name":"British Indian Ocean Territory","Code":"IO"},{"Name":"Brunei Darussalam","Code":"BN"},{"Name":"Bulgaria","Code":"BG"},{"Name":"Burkina Faso","Code":"BF"},{"Name":"Burundi","Code":"BI"},{"Name":"Cambodia","Code":"KH"},{"Name":"Cameroon","Code":"CM"},{"Name":"Canada","Code":"CA"},{"Name":"Cape Verde","Code":"CV"},{"Name":"Cayman Islands","Code":"KY"},{"Name":"Central African Republic","Code":"CF"},{"Name":"Chad","Code":"TD"},{"Name":"Chile","Code":"CL"},{"Name":"China","Code":"CN"},{"Name":"Christmas Island","Code":"CX"},{"Name":"Cocos (Keeling) Islands","Code":"CC"},{"Name":"Colombia","Code":"CO"},{"Name":"Comoros","Code":"KM"},{"Name":"Congo","Code":"CG"},{"Name":"Congo, the Democratic Republic of the","Code":"CD"},{"Name":"Cook Islands","Code":"CK"},{"Name":"Costa Rica","Code":"CR"},{"Name":"Côte d'Ivoire","Code":"CI"},{"Name":"Croatia","Code":"HR"},{"Name":"Cuba","Code":"CU"},{"Name":"Curaçao","Code":"CW"},{"Name":"Cyprus","Code":"CY"},{"Name":"Czech Republic","Code":"CZ"},{"Name":"Denmark","Code":"DK"},{"Name":"Djibouti","Code":"DJ"},{"Name":"Dominica","Code":"DM"},{"Name":"Dominican Republic","Code":"DO"},{"Name":"Ecuador","Code":"EC"},{"Name":"Egypt","Code":"EG"},{"Name":"El Salvador","Code":"SV"},{"Name":"Equatorial Guinea","Code":"GQ"},{"Name":"Eritrea","Code":"ER"},{"Name":"Estonia","Code":"EE"},{"Name":"Ethiopia","Code":"ET"},{"Name":"Falkland Islands (Malvinas)","Code":"FK"},{"Name":"Faroe Islands","Code":"FO"},{"Name":"Fiji","Code":"FJ"},{"Name":"Finland","Code":"FI"},{"Name":"France","Code":"FR"},{"Name":"French Guiana","Code":"GF"},{"Name":"French Polynesia","Code":"PF"},{"Name":"French Southern Territories","Code":"TF"},{"Name":"Gabon","Code":"GA"},{"Name":"Gambia","Code":"GM"},{"Name":"Georgia","Code":"GE"},{"Name":"Germany","Code":"DE"},{"Name":"Ghana","Code":"GH"},{"Name":"Gibraltar","Code":"GI"},{"Name":"Greece","Code":"GR"},{"Name":"Greenland","Code":"GL"},{"Name":"Grenada","Code":"GD"},{"Name":"Guadeloupe","Code":"GP"},{"Name":"Guam","Code":"GU"},{"Name":"Guatemala","Code":"GT"},{"Name":"Guernsey","Code":"GG"},{"Name":"Guinea","Code":"GN"},{"Name":"Guinea-Bissau","Code":"GW"},{"Name":"Guyana","Code":"GY"},{"Name":"Haiti","Code":"HT"},{"Name":"Heard Island and McDonald Islands","Code":"HM"},{"Name":"Holy See (Vatican City State)","Code":"VA"},{"Name":"Honduras","Code":"HN"},{"Name":"Hong Kong","Code":"HK"},{"Name":"Hungary","Code":"HU"},{"Name":"Iceland","Code":"IS"},{"Name":"India","Code":"IN"},{"Name":"Indonesia","Code":"ID"},{"Name":"Iran, Islamic Republic of","Code":"IR"},{"Name":"Iraq","Code":"IQ"},{"Name":"Ireland","Code":"IE"},{"Name":"Isle of Man","Code":"IM"},{"Name":"Israel","Code":"IL"},{"Name":"Italy","Code":"IT"},{"Name":"Jamaica","Code":"JM"},{"Name":"Japan","Code":"JP"},{"Name":"Jersey","Code":"JE"},{"Name":"Jordan","Code":"JO"},{"Name":"Kazakhstan","Code":"KZ"},{"Name":"Kenya","Code":"KE"},{"Name":"Kiribati","Code":"KI"},{"Name":"Korea, Democratic People's Republic of","Code":"KP"},{"Name":"Korea, Republic of","Code":"KR"},{"Name":"Kuwait","Code":"KW"},{"Name":"Kyrgyzstan","Code":"KG"},{"Name":"Lao People's Democratic Republic","Code":"LA"},{"Name":"Latvia","Code":"LV"},{"Name":"Lebanon","Code":"LB"},{"Name":"Lesotho","Code":"LS"},{"Name":"Liberia","Code":"LR"},{"Name":"Libya","Code":"LY"},{"Name":"Liechtenstein","Code":"LI"},{"Name":"Lithuania","Code":"LT"},{"Name":"Luxembourg","Code":"LU"},{"Name":"Macao","Code":"MO"},{"Name":"Macedonia, the Former Yugoslav Republic of","Code":"MK"},{"Name":"Madagascar","Code":"MG"},{"Name":"Malawi","Code":"MW"},{"Name":"Malaysia","Code":"MY"},{"Name":"Maldives","Code":"MV"},{"Name":"Mali","Code":"ML"},{"Name":"Malta","Code":"MT"},{"Name":"Marshall Islands","Code":"MH"},{"Name":"Martinique","Code":"MQ"},{"Name":"Mauritania","Code":"MR"},{"Name":"Mauritius","Code":"MU"},{"Name":"Mayotte","Code":"YT"},{"Name":"Mexico","Code":"MX"},{"Name":"Micronesia, Federated States of","Code":"FM"},{"Name":"Moldova, Republic of","Code":"MD"},{"Name":"Monaco","Code":"MC"},{"Name":"Mongolia","Code":"MN"},{"Name":"Montenegro","Code":"ME"},{"Name":"Montserrat","Code":"MS"},{"Name":"Morocco","Code":"MA"},{"Name":"Mozambique","Code":"MZ"},{"Name":"Myanmar","Code":"MM"},{"Name":"Namibia","Code":"NA"},{"Name":"Nauru","Code":"NR"},{"Name":"Nepal","Code":"NP"},{"Name":"Netherlands","Code":"NL"},{"Name":"New Caledonia","Code":"NC"},{"Name":"New Zealand","Code":"NZ"},{"Name":"Nicaragua","Code":"NI"},{"Name":"Niger","Code":"NE"},{"Name":"Nigeria","Code":"NG"},{"Name":"Niue","Code":"NU"},{"Name":"Norfolk Island","Code":"NF"},{"Name":"Northern Mariana Islands","Code":"MP"},{"Name":"Norway","Code":"NO"},{"Name":"Oman","Code":"OM"},{"Name":"Pakistan","Code":"PK"},{"Name":"Palau","Code":"PW"},{"Name":"Palestine, State of","Code":"PS"},{"Name":"Panama","Code":"PA"},{"Name":"Papua New Guinea","Code":"PG"},{"Name":"Paraguay","Code":"PY"},{"Name":"Peru","Code":"PE"},{"Name":"Philippines","Code":"PH"},{"Name":"Pitcairn","Code":"PN"},{"Name":"Poland","Code":"PL"},{"Name":"Portugal","Code":"PT"},{"Name":"Puerto Rico","Code":"PR"},{"Name":"Qatar","Code":"QA"},{"Name":"Réunion","Code":"RE"},{"Name":"Romania","Code":"RO"},{"Name":"Russian Federation","Code":"RU"},{"Name":"Rwanda","Code":"RW"},{"Name":"Saint Barthélemy","Code":"BL"},{"Name":"Saint Helena, Ascension and Tristan da Cunha","Code":"SH"},{"Name":"Saint Kitts and Nevis","Code":"KN"},{"Name":"Saint Lucia","Code":"LC"},{"Name":"Saint Martin (French part)","Code":"MF"},{"Name":"Saint Pierre and Miquelon","Code":"PM"},{"Name":"Saint Vincent and the Grenadines","Code":"VC"},{"Name":"Samoa","Code":"WS"},{"Name":"San Marino","Code":"SM"},{"Name":"Sao Tome and Principe","Code":"ST"},{"Name":"Saudi Arabia","Code":"SA"},{"Name":"Senegal","Code":"SN"},{"Name":"Serbia","Code":"RS"},{"Name":"Seychelles","Code":"SC"},{"Name":"Sierra Leone","Code":"SL"},{"Name":"Singapore","Code":"SG"},{"Name":"Sint Maarten (Dutch part)","Code":"SX"},{"Name":"Slovakia","Code":"SK"},{"Name":"Slovenia","Code":"SI"},{"Name":"Solomon Islands","Code":"SB"},{"Name":"Somalia","Code":"SO"},{"Name":"South Africa","Code":"ZA"},{"Name":"South Georgia and the South Sandwich Islands","Code":"GS"},{"Name":"South Sudan","Code":"SS"},{"Name":"Spain","Code":"ES"},{"Name":"Sri Lanka","Code":"LK"},{"Name":"Sudan","Code":"SD"},{"Name":"Suriname","Code":"SR"},{"Name":"Svalbard and Jan Mayen","Code":"SJ"},{"Name":"Swaziland","Code":"SZ"},{"Name":"Sweden","Code":"SE"},{"Name":"Switzerland","Code":"CH"},{"Name":"Syrian Arab Republic","Code":"SY"},{"Name":"Taiwan, Province of China","Code":"TW"},{"Name":"Tajikistan","Code":"TJ"},{"Name":"Tanzania, United Republic of","Code":"TZ"},{"Name":"Thailand","Code":"TH"},{"Name":"Timor-Leste","Code":"TL"},{"Name":"Togo","Code":"TG"},{"Name":"Tokelau","Code":"TK"},{"Name":"Tonga","Code":"TO"},{"Name":"Trinidad and Tobago","Code":"TT"},{"Name":"Tunisia","Code":"TN"},{"Name":"Turkey","Code":"TR"},{"Name":"Turkmenistan","Code":"TM"},{"Name":"Turks and Caicos Islands","Code":"TC"},{"Name":"Tuvalu","Code":"TV"},{"Name":"Uganda","Code":"UG"},{"Name":"Ukraine","Code":"UA"},{"Name":"United Arab Emirates","Code":"AE"},{"Name":"United Kingdom","Code":"GB"},{"Name":"United States","Code":"US"},{"Name":"United States Minor Outlying Islands","Code":"UM"},{"Name":"Uruguay","Code":"UY"},{"Name":"Uzbekistan","Code":"UZ"},{"Name":"Vanuatu","Code":"VU"},{"Name":"Venezuela, Bolivarian Republic of","Code":"VE"},{"Name":"Viet Nam","Code":"VN"},{"Name":"Virgin Islands, British","Code":"VG"},{"Name":"Virgin Islands, U.S.","Code":"VI"},{"Name":"Wallis and Futuna","Code":"WF"},{"Name":"Western Sahara","Code":"EH"},{"Name":"Yemen","Code":"YE"},{"Name":"Zambia","Code":"ZM"},{"Name":"Zimbabwe","Code":"ZW"}]""")
| 140.47561 | 8,830 | 0.585988 | 1,514 | 11,519 | 4.452444 | 0.444518 | 0.018988 | 0.009346 | 0.009642 | 0.040053 | 0.029076 | 0.016911 | 0 | 0 | 0 | 0 | 0.002396 | 0.057991 | 11,519 | 81 | 8,831 | 142.209877 | 0.618837 | 0.05339 | 0 | 0.061224 | 0 | 0.020408 | 0.825432 | 0.752664 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22449 | false | 0 | 0.020408 | 0.040816 | 0.44898 | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
5893d67c38c26ccbcdf9f0552ce0036452989ac3 | 26 | py | Python | specvqgan/onset_baseline/data/__init__.py | XYPB/SpecVQGAN | ed3c0f86c41bc408824979305d9c4f6df0877973 | [
"MIT"
] | null | null | null | specvqgan/onset_baseline/data/__init__.py | XYPB/SpecVQGAN | ed3c0f86c41bc408824979305d9c4f6df0877973 | [
"MIT"
] | null | null | null | specvqgan/onset_baseline/data/__init__.py | XYPB/SpecVQGAN | ed3c0f86c41bc408824979305d9c4f6df0877973 | [
"MIT"
] | null | null | null | from .greatesthit import * | 26 | 26 | 0.807692 | 3 | 26 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 26 | 1 | 26 | 26 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
589fd30d828ef425d612a910b26b54c1c66c9f9a | 89 | py | Python | fantasy_application/config.py | RobBlumberg/espn_fantasy_my_matchup | fb51f4ee71dfced8de339469fb3fbf8fc2f0bae1 | [
"MIT"
] | null | null | null | fantasy_application/config.py | RobBlumberg/espn_fantasy_my_matchup | fb51f4ee71dfced8de339469fb3fbf8fc2f0bae1 | [
"MIT"
] | null | null | null | fantasy_application/config.py | RobBlumberg/espn_fantasy_my_matchup | fb51f4ee71dfced8de339469fb3fbf8fc2f0bae1 | [
"MIT"
] | null | null | null | import os
class Config(object):
SECRET_KEY = os.environ.get("SECRET_KEY", "dummy")
| 14.833333 | 54 | 0.696629 | 13 | 89 | 4.615385 | 0.769231 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157303 | 89 | 5 | 55 | 17.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
58a3946b3996d88eb4c67d02658dc8a4c4422af4 | 149 | py | Python | graphdatascience/model/link_prediction_model.py | soerenreichardt/graph-data-science-client | 845c79cabdb21d57b590d51e4ddad0fa7a1caeab | [
"Apache-2.0"
] | 10 | 2022-01-21T10:22:49.000Z | 2022-03-21T03:32:01.000Z | graphdatascience/model/link_prediction_model.py | soerenreichardt/graph-data-science-client | 845c79cabdb21d57b590d51e4ddad0fa7a1caeab | [
"Apache-2.0"
] | 6 | 2022-02-10T15:19:53.000Z | 2022-03-22T11:54:25.000Z | graphdatascience/model/link_prediction_model.py | soerenreichardt/graph-data-science-client | 845c79cabdb21d57b590d51e4ddad0fa7a1caeab | [
"Apache-2.0"
] | 4 | 2022-01-21T10:35:52.000Z | 2022-03-16T10:27:40.000Z | from .model import Model
class LPModel(Model):
def _query_prefix(self) -> str:
return "CALL gds.beta.pipeline.linkPrediction.predict."
| 21.285714 | 63 | 0.711409 | 19 | 149 | 5.473684 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181208 | 149 | 6 | 64 | 24.833333 | 0.852459 | 0 | 0 | 0 | 0 | 0 | 0.308725 | 0.275168 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
542dcdb01d0e19fdcb1529513650cd9b4804565d | 227 | py | Python | flexinfer/postprocess/obj_det/converters/__init__.py | wty980711/flexinfer | 8724bca8cb2e885b26f7d00937b6c1fc4752f009 | [
"Apache-2.0"
] | null | null | null | flexinfer/postprocess/obj_det/converters/__init__.py | wty980711/flexinfer | 8724bca8cb2e885b26f7d00937b6c1fc4752f009 | [
"Apache-2.0"
] | null | null | null | flexinfer/postprocess/obj_det/converters/__init__.py | wty980711/flexinfer | 8724bca8cb2e885b26f7d00937b6c1fc4752f009 | [
"Apache-2.0"
] | null | null | null | from .bbox_anchor_converter import BBoxAnchorConverter
from .builder import build_converter
from .point_anchor_converter import PointAnchorConverter
__all__ = ['BBoxAnchorConverter', 'PointAnchorConverter', 'build_converter']
| 37.833333 | 76 | 0.859031 | 22 | 227 | 8.409091 | 0.5 | 0.162162 | 0.227027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079295 | 227 | 5 | 77 | 45.4 | 0.885167 | 0 | 0 | 0 | 0 | 0 | 0.237885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
542eedd2ed7f7ee5e1fa43772d24fc6f819d0d02 | 33 | py | Python | test.py | Yuanpengli/jd_competition | 37c37b9f745d9d50cf2e81cd54ff2bfbbbfe3b9b | [
"MIT"
] | null | null | null | test.py | Yuanpengli/jd_competition | 37c37b9f745d9d50cf2e81cd54ff2bfbbbfe3b9b | [
"MIT"
] | null | null | null | test.py | Yuanpengli/jd_competition | 37c37b9f745d9d50cf2e81cd54ff2bfbbbfe3b9b | [
"MIT"
] | null | null | null | #test git
# motify master branch
| 11 | 22 | 0.757576 | 5 | 33 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 33 | 2 | 23 | 16.5 | 0.925926 | 0.878788 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
544904bd10b6f7c0528b2cdf5c5839e918de68c8 | 36 | py | Python | deck/__init__.py | Mozirra/mtghelper | 57ccc201e385edc2166cfe9746b47f1b224359e9 | [
"MIT"
] | null | null | null | deck/__init__.py | Mozirra/mtghelper | 57ccc201e385edc2166cfe9746b47f1b224359e9 | [
"MIT"
] | null | null | null | deck/__init__.py | Mozirra/mtghelper | 57ccc201e385edc2166cfe9746b47f1b224359e9 | [
"MIT"
] | null | null | null | """The "Deck" Django applcation."""
| 18 | 35 | 0.638889 | 4 | 36 | 5.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 36 | 1 | 36 | 36 | 0.71875 | 0.805556 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
5451e2a0840ebe06f264ac81696ad2c026941a2c | 7,912 | py | Python | openstack/tests/unit/bare_metal/v1/test_node.py | wangrui1121/huaweicloud-sdk-python | 240abe00288760115d1791012d4e3c4592d77ad1 | [
"Apache-2.0"
] | 43 | 2018-12-19T08:39:15.000Z | 2021-07-21T02:45:43.000Z | openstack/tests/unit/bare_metal/v1/test_node.py | wangrui1121/huaweicloud-sdk-python | 240abe00288760115d1791012d4e3c4592d77ad1 | [
"Apache-2.0"
] | 11 | 2019-03-17T13:28:56.000Z | 2020-09-23T23:57:50.000Z | openstack/tests/unit/bare_metal/v1/test_node.py | wangrui1121/huaweicloud-sdk-python | 240abe00288760115d1791012d4e3c4592d77ad1 | [
"Apache-2.0"
] | 47 | 2018-12-19T05:14:25.000Z | 2022-03-19T15:28:30.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
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import testtools
from openstack.bare_metal.v1 import node
# NOTE: Sample data from api-ref doc
FAKE = {
"chassis_uuid": "1", # NOTE: missed in api-ref sample
"clean_step": {},
"console_enabled": False,
"created_at": "2016-08-18T22:28:48.643434+00:00",
"driver": "agent_ipmitool",
"driver_info": {
"ipmi_password": "******",
"ipmi_username": "******"
},
"driver_internal_info": {},
"extra": {},
"inspection_finished_at": None,
"inspection_started_at": None,
"instance_info": {},
"instance_uuid": None,
"last_error": None,
"links": [
{
"href": "http://127.0.0.1:6385/v1/nodes/<NODE_ID>",
"rel": "self"
},
{
"href": "http://127.0.0.1:6385/nodes/<NODE_ID>",
"rel": "bookmark"
}
],
"maintenance": False,
"maintenance_reason": None,
"name": "test_node",
"network_interface": "flat",
"portgroups": [
{
"href": "http://127.0.0.1:6385/v1/nodes/<NODE_ID>/portgroups",
"rel": "self"
},
{
"href": "http://127.0.0.1:6385/nodes/<NODE_ID>/portgroups",
"rel": "bookmark"
}
],
"ports": [
{
"href": "http://127.0.0.1:6385/v1/nodes/<NODE_ID>/ports",
"rel": "self"
},
{
"href": "http://127.0.0.1:6385/nodes/<NODE_ID>/ports",
"rel": "bookmark"
}
],
"power_state": None,
"properties": {},
"provision_state": "enroll",
"provision_updated_at": None,
"raid_config": {},
"reservation": None,
"resource_class": None,
"states": [
{
"href": "http://127.0.0.1:6385/v1/nodes/<NODE_ID>/states",
"rel": "self"
},
{
"href": "http://127.0.0.1:6385/nodes/<NODE_ID>/states",
"rel": "bookmark"
}
],
"target_power_state": None,
"target_provision_state": None,
"target_raid_config": {},
"updated_at": None,
"uuid": "6d85703a-565d-469a-96ce-30b6de53079d"
}
class TestNode(testtools.TestCase):
def test_basic(self):
sot = node.Node()
self.assertIsNone(sot.resource_key)
self.assertEqual('nodes', sot.resources_key)
self.assertEqual('/nodes', sot.base_path)
self.assertEqual('baremetal', sot.service.service_type)
self.assertTrue(sot.allow_create)
self.assertTrue(sot.allow_get)
self.assertTrue(sot.allow_update)
self.assertTrue(sot.allow_delete)
self.assertTrue(sot.allow_list)
self.assertTrue(sot.patch_update)
def test_instantiate(self):
sot = node.Node(**FAKE)
self.assertEqual(FAKE['uuid'], sot.id)
self.assertEqual(FAKE['name'], sot.name)
self.assertEqual(FAKE['chassis_uuid'], sot.chassis_id)
self.assertEqual(FAKE['clean_step'], sot.clean_step)
self.assertEqual(FAKE['created_at'], sot.created_at)
self.assertEqual(FAKE['driver'], sot.driver)
self.assertEqual(FAKE['driver_info'], sot.driver_info)
self.assertEqual(FAKE['driver_internal_info'],
sot.driver_internal_info)
self.assertEqual(FAKE['extra'], sot.extra)
self.assertEqual(FAKE['instance_info'], sot.instance_info)
self.assertEqual(FAKE['instance_uuid'], sot.instance_id)
self.assertEqual(FAKE['console_enabled'], sot.is_console_enabled)
self.assertEqual(FAKE['maintenance'], sot.is_maintenance)
self.assertEqual(FAKE['last_error'], sot.last_error)
self.assertEqual(FAKE['links'], sot.links)
self.assertEqual(FAKE['maintenance_reason'], sot.maintenance_reason)
self.assertEqual(FAKE['name'], sot.name)
self.assertEqual(FAKE['network_interface'], sot.network_interface)
self.assertEqual(FAKE['ports'], sot.ports)
self.assertEqual(FAKE['portgroups'], sot.port_groups)
self.assertEqual(FAKE['power_state'], sot.power_state)
self.assertEqual(FAKE['properties'], sot.properties)
self.assertEqual(FAKE['provision_state'], sot.provision_state)
self.assertEqual(FAKE['raid_config'], sot.raid_config)
self.assertEqual(FAKE['reservation'], sot.reservation)
self.assertEqual(FAKE['resource_class'], sot.resource_class)
self.assertEqual(FAKE['states'], sot.states)
self.assertEqual(FAKE['target_provision_state'],
sot.target_provision_state)
self.assertEqual(FAKE['target_power_state'], sot.target_power_state)
self.assertEqual(FAKE['target_raid_config'], sot.target_raid_config)
self.assertEqual(FAKE['updated_at'], sot.updated_at)
class TestNodeDetail(testtools.TestCase):
def test_basic(self):
sot = node.NodeDetail()
self.assertIsNone(sot.resource_key)
self.assertEqual('nodes', sot.resources_key)
self.assertEqual('/nodes/detail', sot.base_path)
self.assertEqual('baremetal', sot.service.service_type)
self.assertFalse(sot.allow_create)
self.assertFalse(sot.allow_get)
self.assertFalse(sot.allow_update)
self.assertFalse(sot.allow_delete)
self.assertTrue(sot.allow_list)
def test_instantiate(self):
sot = node.NodeDetail(**FAKE)
self.assertEqual(FAKE['uuid'], sot.id)
self.assertEqual(FAKE['name'], sot.name)
self.assertEqual(FAKE['chassis_uuid'], sot.chassis_id)
self.assertEqual(FAKE['clean_step'], sot.clean_step)
self.assertEqual(FAKE['created_at'], sot.created_at)
self.assertEqual(FAKE['driver'], sot.driver)
self.assertEqual(FAKE['driver_info'], sot.driver_info)
self.assertEqual(FAKE['driver_internal_info'],
sot.driver_internal_info)
self.assertEqual(FAKE['extra'], sot.extra)
self.assertEqual(FAKE['instance_info'], sot.instance_info)
self.assertEqual(FAKE['instance_uuid'], sot.instance_id)
self.assertEqual(FAKE['console_enabled'], sot.is_console_enabled)
self.assertEqual(FAKE['maintenance'], sot.is_maintenance)
self.assertEqual(FAKE['last_error'], sot.last_error)
self.assertEqual(FAKE['links'], sot.links)
self.assertEqual(FAKE['maintenance_reason'], sot.maintenance_reason)
self.assertEqual(FAKE['name'], sot.name)
self.assertEqual(FAKE['network_interface'], sot.network_interface)
self.assertEqual(FAKE['ports'], sot.ports)
self.assertEqual(FAKE['portgroups'], sot.port_groups)
self.assertEqual(FAKE['power_state'], sot.power_state)
self.assertEqual(FAKE['properties'], sot.properties)
self.assertEqual(FAKE['provision_state'], sot.provision_state)
self.assertEqual(FAKE['raid_config'], sot.raid_config)
self.assertEqual(FAKE['reservation'], sot.reservation)
self.assertEqual(FAKE['resource_class'], sot.resource_class)
self.assertEqual(FAKE['states'], sot.states)
self.assertEqual(FAKE['target_provision_state'],
sot.target_provision_state)
self.assertEqual(FAKE['target_power_state'], sot.target_power_state)
self.assertEqual(FAKE['target_raid_config'], sot.target_raid_config)
self.assertEqual(FAKE['updated_at'], sot.updated_at)
| 39.758794 | 76 | 0.637892 | 927 | 7,912 | 5.268608 | 0.185545 | 0.208845 | 0.241196 | 0.019656 | 0.716421 | 0.705979 | 0.694103 | 0.694103 | 0.661343 | 0.661343 | 0 | 0.021939 | 0.216507 | 7,912 | 198 | 77 | 39.959596 | 0.76593 | 0.074317 | 0 | 0.526316 | 0 | 0 | 0.239808 | 0.024213 | 0 | 0 | 0 | 0 | 0.473684 | 1 | 0.023392 | false | 0.005848 | 0.011696 | 0 | 0.046784 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 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 | 5 |
545be75906cfaa9c8e4e04b3f1625762db2a5b09 | 500 | py | Python | tests/test_simulate.py | devonwa/ladder2x | a8604fb61eaa193d9a6e0239474a6c0af1bc2b49 | [
"Unlicense"
] | null | null | null | tests/test_simulate.py | devonwa/ladder2x | a8604fb61eaa193d9a6e0239474a6c0af1bc2b49 | [
"Unlicense"
] | null | null | null | tests/test_simulate.py | devonwa/ladder2x | a8604fb61eaa193d9a6e0239474a6c0af1bc2b49 | [
"Unlicense"
] | null | null | null | """Tests for the simulate module."""
import pytest
import ladder.function as fn
import ladder.simulate as sim
def test_scan_function_continue_scan():
assert sim.scan_function(fn.If, (True,), ())
assert not sim.scan_function(fn.If, (False,), ())
assert sim.scan_function(fn.Set, (), (True,))
with pytest.raises(TypeError):
assert sim.scan_function(fn.Set, (True,), (True,))
with pytest.raises(TypeError):
assert sim.scan_function(fn.Set, (), (True, False))
| 29.411765 | 59 | 0.674 | 69 | 500 | 4.753623 | 0.362319 | 0.219512 | 0.228659 | 0.259146 | 0.573171 | 0.439024 | 0.439024 | 0.359756 | 0.359756 | 0.359756 | 0 | 0 | 0.174 | 500 | 16 | 60 | 31.25 | 0.794189 | 0.06 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.454545 | 1 | 0.090909 | true | 0 | 0.272727 | 0 | 0.363636 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
5466f8a25ba47e9974d58d1a794861bbfb82631d | 170 | py | Python | slackcat/config.py | nficano/slackcat | 004a0e28dc8ac58cc74c68e48a3542e58009964a | [
"MIT-0"
] | 25 | 2017-08-23T15:41:17.000Z | 2019-09-07T16:26:08.000Z | slackcat/config.py | nficano/slackcat | 004a0e28dc8ac58cc74c68e48a3542e58009964a | [
"MIT-0"
] | 45 | 2017-09-01T07:11:42.000Z | 2022-01-12T17:51:22.000Z | slackcat/config.py | nficano/slackcat | 004a0e28dc8ac58cc74c68e48a3542e58009964a | [
"MIT-0"
] | 4 | 2017-09-01T22:50:33.000Z | 2018-06-14T14:41:07.000Z | import os
webhook_url = os.environ.get('SLACKCAT_WEBHOOK_URL')
username = os.environ.get('SLACKCAT_USERNAME', 'slackcat')
icon_url = os.environ.get('SLACKCAT_ICON_URL')
| 28.333333 | 58 | 0.782353 | 25 | 170 | 5.04 | 0.36 | 0.214286 | 0.285714 | 0.47619 | 0.365079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076471 | 170 | 5 | 59 | 34 | 0.802548 | 0 | 0 | 0 | 0 | 0 | 0.364706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
548ddb4e918743251573656e565fda8c8833c18a | 56 | py | Python | src/main/resources/domain/common/root/home/jupyter/jupyter_notebook_config.py | scVENUS/ApacheSparkModule | 2ccb8c3c55003b469791a29e6ac6297b505b5139 | [
"Apache-2.0"
] | 1 | 2017-12-15T12:01:34.000Z | 2017-12-15T12:01:34.000Z | src/main/resources/domain/common/root/home/jupyter/jupyter_notebook_config.py | scVENUS/ApacheSparkModule | 2ccb8c3c55003b469791a29e6ac6297b505b5139 | [
"Apache-2.0"
] | null | null | null | src/main/resources/domain/common/root/home/jupyter/jupyter_notebook_config.py | scVENUS/ApacheSparkModule | 2ccb8c3c55003b469791a29e6ac6297b505b5139 | [
"Apache-2.0"
] | null | null | null |
c.NotebookApp.password = u'%%NOTEBOOK_PASSWORD_HASH%%'
| 18.666667 | 54 | 0.767857 | 7 | 56 | 5.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 56 | 2 | 55 | 28 | 0.788462 | 0 | 0 | 0 | 0 | 0 | 0.472727 | 0.472727 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
5492e993015c0b25d8afa6581d181e76f3394013 | 57 | py | Python | app/api/__init__.py | Lyle-Wong/Python_NetEaseMusicAPI | 6071453e0293e06d7dc2d059bf9e2a71a1b6b018 | [
"MIT"
] | 48 | 2020-03-09T09:27:31.000Z | 2022-03-28T09:54:36.000Z | app/api/__init__.py | Lyle-Wong/Python_NetEaseMusicAPI | 6071453e0293e06d7dc2d059bf9e2a71a1b6b018 | [
"MIT"
] | 9 | 2020-04-08T04:03:09.000Z | 2021-07-08T11:07:00.000Z | app/api/__init__.py | Lyle-Wong/Python_NetEaseMusicAPI | 6071453e0293e06d7dc2d059bf9e2a71a1b6b018 | [
"MIT"
] | 15 | 2020-03-09T09:28:04.000Z | 2022-03-09T12:07:08.000Z | from .utils.send import send
from .utils.public import *
| 19 | 28 | 0.77193 | 9 | 57 | 4.888889 | 0.555556 | 0.409091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140351 | 57 | 2 | 29 | 28.5 | 0.897959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
549a156a1343c4274afc1babc3a344fd292baafe | 71 | py | Python | cride/betfriends/models/__init__.py | albertoaldanar/betmatcherAPI | c0590025efd79f4e489f9c9433b17554ea6ba23f | [
"MIT"
] | null | null | null | cride/betfriends/models/__init__.py | albertoaldanar/betmatcherAPI | c0590025efd79f4e489f9c9433b17554ea6ba23f | [
"MIT"
] | 7 | 2020-06-05T20:53:27.000Z | 2022-03-11T23:47:12.000Z | cride/betfriends/models/__init__.py | albertoaldanar/betmatcherAPI | c0590025efd79f4e489f9c9433b17554ea6ba23f | [
"MIT"
] | null | null | null | from .betfriends import BetFriend
from .frequests import FriendRequest
| 23.666667 | 36 | 0.859155 | 8 | 71 | 7.625 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112676 | 71 | 2 | 37 | 35.5 | 0.968254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
49c255d716cb1156d65a51d4fc771e3bf653a736 | 145 | py | Python | python/decorators-2-name-directory.py | gajubadge11/HackerRank-1 | 7b136ccaa1ed47ae737467ace6b494c720ccb942 | [
"MIT"
] | 340 | 2018-06-17T19:45:56.000Z | 2022-03-22T02:26:15.000Z | python/decorators-2-name-directory.py | gajubadge11/HackerRank-1 | 7b136ccaa1ed47ae737467ace6b494c720ccb942 | [
"MIT"
] | 3 | 2021-02-02T17:17:29.000Z | 2021-05-18T10:06:04.000Z | python/decorators-2-name-directory.py | gajubadge11/HackerRank-1 | 7b136ccaa1ed47ae737467ace6b494c720ccb942 | [
"MIT"
] | 229 | 2019-04-20T08:28:49.000Z | 2022-03-31T04:23:52.000Z | def person_lister(func):
def inner(people):
return [ func(p) for p in sorted(people, key = lambda x: (int(x[2])))]
return inner
| 24.166667 | 78 | 0.613793 | 23 | 145 | 3.826087 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 0.241379 | 145 | 5 | 79 | 29 | 0.790909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
49dbb6a26dfdb5736df82899f46f285a4bb33002 | 139 | py | Python | app/services/tokyo_commodities_exchange/export_site_to_db/abstract/destinations/tokyo_c_e_historical_db/__init__.py | Tinitto/crypto-exchange | cb61664ff0119d8120315b8c6feb77aeba0ec050 | [
"MIT"
] | null | null | null | app/services/tokyo_commodities_exchange/export_site_to_db/abstract/destinations/tokyo_c_e_historical_db/__init__.py | Tinitto/crypto-exchange | cb61664ff0119d8120315b8c6feb77aeba0ec050 | [
"MIT"
] | null | null | null | app/services/tokyo_commodities_exchange/export_site_to_db/abstract/destinations/tokyo_c_e_historical_db/__init__.py | Tinitto/crypto-exchange | cb61664ff0119d8120315b8c6feb77aeba0ec050 | [
"MIT"
] | null | null | null | """Entry point for package"""
from .connection import TokyoCEHistoricalDbConnectionConfig
from .model import TokyoCEHistoricalDBBaseModel
| 27.8 | 59 | 0.848921 | 12 | 139 | 9.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093525 | 139 | 4 | 60 | 34.75 | 0.936508 | 0.165468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
49e47e0c78cb5b6fda373345aa82d02602776586 | 95 | py | Python | application/domain/accounts/defines.py | chaotism/fastapi-purser | c83a063e953efdf95fddf95828f5fa2d75933363 | [
"MIT"
] | null | null | null | application/domain/accounts/defines.py | chaotism/fastapi-purser | c83a063e953efdf95fddf95828f5fa2d75933363 | [
"MIT"
] | null | null | null | application/domain/accounts/defines.py | chaotism/fastapi-purser | c83a063e953efdf95fddf95828f5fa2d75933363 | [
"MIT"
] | null | null | null | from enum import Enum
class CurrencyType(Enum): # TODO: add encoder to json
usd = 'usd'
| 15.833333 | 54 | 0.684211 | 14 | 95 | 4.642857 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231579 | 95 | 5 | 55 | 19 | 0.890411 | 0.263158 | 0 | 0 | 0 | 0 | 0.044118 | 0 | 0 | 0 | 0 | 0.2 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
49fcc5d0bca4340439409cbd97416cbc3ea23c78 | 178 | py | Python | test_extras/__init__.py | ZumatechLtd/django-test-extras | aeb29f61636ba42606dc9b44a22477036967a8e3 | [
"Unlicense"
] | 3 | 2015-03-01T13:10:22.000Z | 2018-05-03T12:01:14.000Z | test_extras/__init__.py | ZumatechLtd/django-test-extras | aeb29f61636ba42606dc9b44a22477036967a8e3 | [
"Unlicense"
] | 6 | 2015-01-09T10:32:39.000Z | 2015-09-15T13:32:11.000Z | test_extras/__init__.py | ZumatechLtd/django-test-extras | aeb29f61636ba42606dc9b44a22477036967a8e3 | [
"Unlicense"
] | 2 | 2015-03-22T02:25:24.000Z | 2020-01-31T14:59:49.000Z | # -*- coding: utf-8 -*-
# (c) 2012-2015 Bright Interactive Limited. All rights reserved.
# http://www.bright-interactive.com | info@bright-interactive.com
__version__ = '4.0.0'
| 29.666667 | 65 | 0.702247 | 25 | 178 | 4.84 | 0.76 | 0.421488 | 0.330579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.123596 | 178 | 5 | 66 | 35.6 | 0.698718 | 0.831461 | 0 | 0 | 0 | 0 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
b71b3eb32254426df2ae94bad93b8547f37b1bfd | 970 | py | Python | tests/webhook/test_handlers.py | vz10/greenBotMessenger | 2ff537ef57732cebf72a4176c74adb09338d69e3 | [
"MIT"
] | 2 | 2018-07-21T14:47:23.000Z | 2018-07-27T07:07:51.000Z | tests/webhook/test_handlers.py | vz10/greenBotMessenger | 2ff537ef57732cebf72a4176c74adb09338d69e3 | [
"MIT"
] | null | null | null | tests/webhook/test_handlers.py | vz10/greenBotMessenger | 2ff537ef57732cebf72a4176c74adb09338d69e3 | [
"MIT"
] | 1 | 2018-08-28T15:03:45.000Z | 2018-08-28T15:03:45.000Z | import unittest
from mock import patch
from webhook.handlers import handle_token
FAKE_TOKEN = 'fake_token_123'
class TestHandleToken(unittest.TestCase):
@patch('webhook.handlers.token.FB_VERIFY_TOKEN', FAKE_TOKEN)
@patch('webhook.handlers.token.write_http_response')
def tests_handle_token_correct(self, mock_write_http_response):
params = {'hub.mode': 'subscribe', 'hub.verify_token': FAKE_TOKEN, 'hub.challenge': 'challenge_accepted'}
handle_token(params)
mock_write_http_response.assert_called_with(200, body=params['hub.challenge'])
@patch('webhook.handlers.token.FB_VERIFY_TOKEN', FAKE_TOKEN)
@patch('webhook.handlers.token.write_http_response')
def test_handle_token_wrong(self, mock_write_http_response):
params = {'hub.mode': 'subscribe', 'hub.verify_token': 'WRONG_TOKEN', 'hub.challenge': 'challenge_accepted'}
handle_token(params)
mock_write_http_response.assert_called_with(403)
| 38.8 | 116 | 0.754639 | 125 | 970 | 5.504 | 0.296 | 0.078488 | 0.148256 | 0.145349 | 0.700581 | 0.700581 | 0.700581 | 0.700581 | 0.700581 | 0.700581 | 0 | 0.010676 | 0.130928 | 970 | 24 | 117 | 40.416667 | 0.805457 | 0 | 0 | 0.352941 | 0 | 0 | 0.336082 | 0.164948 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
b74318f996264b5e6ba458af2448c7583eeb8ec8 | 172 | py | Python | scripts/mGear_riggingTools.py | KRNKRS/mgear | 06ddc26c5adb5eab07ca470c7fafa77404c8a1de | [
"MIT"
] | 94 | 2017-12-16T07:42:06.000Z | 2022-03-28T07:40:04.000Z | scripts/mGear_riggingTools.py | KRNKRS/mgear | 06ddc26c5adb5eab07ca470c7fafa77404c8a1de | [
"MIT"
] | 66 | 2017-12-02T14:30:35.000Z | 2019-01-14T01:17:38.000Z | scripts/mGear_riggingTools.py | KRNKRS/mgear | 06ddc26c5adb5eab07ca470c7fafa77404c8a1de | [
"MIT"
] | 27 | 2018-06-11T14:16:17.000Z | 2022-01-09T15:19:32.000Z | from maya import cmds
from mgear.maya.rigbits import *
cmds.warning(
"[mgear] DEPRECATED: You should import mgear.maya.rigbits "
"instead of mGear_riggingTools."
)
| 24.571429 | 63 | 0.744186 | 23 | 172 | 5.521739 | 0.565217 | 0.15748 | 0.251969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162791 | 172 | 6 | 64 | 28.666667 | 0.881944 | 0 | 0 | 0 | 0 | 0 | 0.505814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
3f969e3650610f8df94ea99166e6d5992215ba07 | 168 | py | Python | flask_website/views/general.py | WEIZIBIN/PersonalWebsite | 47d509d4ec92c6b6117d27542847eeac45d94cc6 | [
"MIT"
] | 1 | 2021-09-03T02:37:56.000Z | 2021-09-03T02:37:56.000Z | flask_website/views/general.py | WEIZIBIN/PersonalWebsite | 47d509d4ec92c6b6117d27542847eeac45d94cc6 | [
"MIT"
] | 1 | 2021-04-30T20:35:45.000Z | 2021-04-30T20:35:45.000Z | flask_website/views/general.py | WEIZIBIN/PersonalWebsite | 47d509d4ec92c6b6117d27542847eeac45d94cc6 | [
"MIT"
] | null | null | null | from flask import Blueprint, redirect, url_for
general = Blueprint('general', __name__)
@general.route('/')
def index():
return redirect(url_for('chat.index'))
| 16.8 | 46 | 0.714286 | 21 | 168 | 5.428571 | 0.666667 | 0.192982 | 0.245614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136905 | 168 | 9 | 47 | 18.666667 | 0.786207 | 0 | 0 | 0 | 0 | 0 | 0.107784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0.4 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
3f9b4b574b21e14c1cc712a7970044e773d593be | 166 | py | Python | packages/random/src/uniform.py | markupCode/mip-examples | 83048ba34432e8c760f5877b80fde9431e3c9bd7 | [
"MIT"
] | null | null | null | packages/random/src/uniform.py | markupCode/mip-examples | 83048ba34432e8c760f5877b80fde9431e3c9bd7 | [
"MIT"
] | null | null | null | packages/random/src/uniform.py | markupCode/mip-examples | 83048ba34432e8c760f5877b80fde9431e3c9bd7 | [
"MIT"
] | null | null | null | from random import random
class UniformRandom():
def next(self, bounds: (float, float)) -> float:
return bounds[0] + random() * (bounds[1] - bounds[0])
| 23.714286 | 61 | 0.63253 | 21 | 166 | 5 | 0.619048 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022901 | 0.210843 | 166 | 6 | 62 | 27.666667 | 0.778626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
b20a15db95e5f3f3ddcd3c7b3edf0ada1c8fb4ed | 17,550 | py | Python | stable_baselines/common/policies.py | jfsantos/stable-baselines | 5bd4ffa98e364b9e8e8b4e64bc2d1be9b6e4897a | [
"MIT"
] | null | null | null | stable_baselines/common/policies.py | jfsantos/stable-baselines | 5bd4ffa98e364b9e8e8b4e64bc2d1be9b6e4897a | [
"MIT"
] | null | null | null | stable_baselines/common/policies.py | jfsantos/stable-baselines | 5bd4ffa98e364b9e8e8b4e64bc2d1be9b6e4897a | [
"MIT"
] | 1 | 2019-12-25T16:45:54.000Z | 2019-12-25T16:45:54.000Z | import numpy as np
import tensorflow as tf
from gym.spaces import Discrete
from stable_baselines.a2c.utils import conv, linear, conv_to_fc, batch_to_seq, seq_to_batch, lstm
from stable_baselines.common.distributions import make_proba_dist_type
from stable_baselines.common.input import observation_input
def nature_cnn(unscaled_images, **kwargs):
"""
CNN from Nature paper.
:param unscaled_images: (TensorFlow Tensor) Image input placeholder
:param kwargs: (dict) Extra keywords parameters for the convolutional layers of the CNN
:return: (TensorFlow Tensor) The CNN output layer
"""
scaled_images = tf.cast(unscaled_images, tf.float32) / 255.
activ = tf.nn.relu
layer_1 = activ(conv(scaled_images, 'c1', n_filters=32, filter_size=8, stride=4, init_scale=np.sqrt(2), **kwargs))
layer_2 = activ(conv(layer_1, 'c2', n_filters=64, filter_size=4, stride=2, init_scale=np.sqrt(2), **kwargs))
layer_3 = activ(conv(layer_2, 'c3', n_filters=64, filter_size=3, stride=1, init_scale=np.sqrt(2), **kwargs))
layer_3 = conv_to_fc(layer_3)
return activ(linear(layer_3, 'fc1', n_hidden=512, init_scale=np.sqrt(2)))
class ActorCriticPolicy(object):
def __init__(self, sess, ob_space, ac_space, n_env, n_steps, n_batch, n_lstm=256, reuse=False):
"""
Policy object that implements actor critic
:param sess: (TensorFlow session) The current TensorFlow session
:param ob_space: (Gym Space) The observation space of the environment
:param ac_space: (Gym Space) The action space of the environment
:param n_env: (int) The number of environments to run
:param n_steps: (int) The number of steps to run for each environment
:param n_batch: (int) The number of batch to run (n_envs * n_steps)
:param n_lstm: (int) The number of LSTM cells (for reccurent policies)
:param reuse: (bool) If the policy is reusable or not
"""
self.n_env = n_env
self.n_steps = n_steps
self.obs_ph, self.processed_x = observation_input(ob_space, n_batch)
self.masks_ph = tf.placeholder(tf.float32, [n_batch]) # mask (done t-1)
self.states_ph = tf.placeholder(tf.float32, [self.n_env, n_lstm * 2]) # states
self.pdtype = make_proba_dist_type(ac_space)
self.sess = sess
self.reuse = reuse
self.is_discrete = isinstance(ac_space, Discrete)
self.policy = None
self.proba_distribution = None
self.value_fn = None
def _setup_init(self):
"""
sets up the distibutions, actions, and value
"""
assert self.policy is not None and self.proba_distribution is not None and self.value_fn is not None
self.action = self.proba_distribution.sample()
self.neglogp = self.proba_distribution.neglogp(self.action)
self.policy_proba = self.policy
if self.is_discrete:
self.policy_proba = tf.nn.softmax(self.policy_proba)
self._value = self.value_fn[:, 0]
def step(self, obs, state=None, mask=None):
"""
Returns the policy for a single step
:param obs: ([float] or [int]) The current observation of the environment
:param state: ([float]) The last states (used in reccurent policies)
:param mask: ([float]) The last masks (used in reccurent policies)
:return: ([float], [float], [float], [float]) actions, values, states, neglogp
"""
raise NotImplementedError
def proba_step(self, obs, state=None, mask=None):
"""
Returns the action probability for a single step
:param obs: ([float] or [int]) The current observation of the environment
:param state: ([float]) The last states (used in reccurent policies)
:param mask: ([float]) The last masks (used in reccurent policies)
:return: ([float]) the action probability
"""
raise NotImplementedError
def value(self, obs, state=None, mask=None):
"""
Returns the value for a single step
:param obs: ([float] or [int]) The current observation of the environment
:param state: ([float]) The last states (used in reccurent policies)
:param mask: ([float]) The last masks (used in reccurent policies)
:return: ([float]) The associated value of the action
"""
raise NotImplementedError
class LstmPolicy(ActorCriticPolicy):
def __init__(self, sess, ob_space, ac_space, n_env, n_steps, n_batch, n_lstm=256, reuse=False, layers=None,
cnn_extractor=nature_cnn, layer_norm=False, feature_extraction="cnn", **kwargs):
"""
Policy object that implements actor critic, using LSTMs
:param sess: (TensorFlow session) The current TensorFlow session
:param ob_space: (Gym Space) The observation space of the environment
:param ac_space: (Gym Space) The action space of the environment
:param n_env: (int) The number of environments to run
:param n_steps: (int) The number of steps to run for each environment
:param n_batch: (int) The number of batch to run (n_envs * n_steps)
:param n_lstm: (int) The number of LSTM cells (for reccurent policies)
:param reuse: (bool) If the policy is reusable or not
:param layers: ([int]) The size of the Neural network before the LSTM layer (if None, default to [64, 64])
:param cnn_extractor: (function (TensorFlow Tensor, **kwargs): (TensorFlow Tensor)) the CNN feature extraction
:param layer_norm: (bool) Whether or not to use layer normalizing LSTMs
:param feature_extraction: (str) The feature extraction type ("cnn" or "mlp")
:param kwargs: (dict) Extra keyword arguments for the nature CNN feature extraction
"""
super(LstmPolicy, self).__init__(sess, ob_space, ac_space, n_env, n_steps, n_batch, n_lstm, reuse)
if layers is None:
layers = [64, 64]
with tf.variable_scope("model", reuse=reuse):
if feature_extraction == "cnn":
extracted_features = cnn_extractor(self.processed_x, **kwargs)
else:
activ = tf.tanh
extracted_features = tf.layers.flatten(self.processed_x)
for i, layer_size in enumerate(layers):
extracted_features = activ(linear(extracted_features, 'pi_fc' + str(i), n_hidden=layer_size,
init_scale=np.sqrt(2)))
input_sequence = batch_to_seq(extracted_features, self.n_env, n_steps)
masks = batch_to_seq(self.masks_ph, self.n_env, n_steps)
rnn_output, self.snew = lstm(input_sequence, masks, self.states_ph, 'lstm1', n_hidden=n_lstm,
layer_norm=layer_norm)
rnn_output = seq_to_batch(rnn_output)
value_fn = linear(rnn_output, 'vf', 1)
self.proba_distribution, self.policy, self.q_value = \
self.pdtype.proba_distribution_from_latent(rnn_output, rnn_output)
self.value_fn = value_fn
self.initial_state = np.zeros((self.n_env, n_lstm * 2), dtype=np.float32)
self._setup_init()
def step(self, obs, state=None, mask=None):
return self.sess.run([self.action, self._value, self.snew, self.neglogp],
{self.obs_ph: obs, self.states_ph: state, self.masks_ph: mask})
def proba_step(self, obs, state=None, mask=None):
return self.sess.run(self.policy_proba, {self.obs_ph: obs, self.states_ph: state, self.masks_ph: mask})
def value(self, obs, state=None, mask=None):
return self.sess.run(self._value, {self.obs_ph: obs, self.states_ph: state, self.masks_ph: mask})
class FeedForwardPolicy(ActorCriticPolicy):
def __init__(self, sess, ob_space, ac_space, n_env, n_steps, n_batch, reuse=False, layers=None,
cnn_extractor=nature_cnn, feature_extraction="cnn", **kwargs):
"""
Policy object that implements actor critic, using a feed forward neural network
:param sess: (TensorFlow session) The current TensorFlow session
:param ob_space: (Gym Space) The observation space of the environment
:param ac_space: (Gym Space) The action space of the environment
:param n_env: (int) The number of environments to run
:param n_steps: (int) The number of steps to run for each environment
:param n_batch: (int) The number of batch to run (n_envs * n_steps)
:param reuse: (bool) If the policy is reusable or not
:param layers: ([int]) The size of the Neural network for the policy (if None, default to [64, 64])
:param cnn_extractor: (function (TensorFlow Tensor, **kwargs): (TensorFlow Tensor)) the CNN feature extraction
:param feature_extraction: (str) The feature extraction type ("cnn" or "mlp")
:param kwargs: (dict) Extra keyword arguments for the nature CNN feature extraction
"""
super(FeedForwardPolicy, self).__init__(sess, ob_space, ac_space, n_env, n_steps, n_batch, n_lstm=256,
reuse=reuse)
if layers is None:
layers = [64, 64]
with tf.variable_scope("model", reuse=reuse):
if feature_extraction == "cnn":
extracted_features = cnn_extractor(self.processed_x, **kwargs)
value_fn = linear(extracted_features, 'vf', 1)
pi_latent = extracted_features
vf_latent = extracted_features
else:
activ = tf.tanh
processed_x = tf.layers.flatten(self.processed_x)
pi_h = processed_x
vf_h = processed_x
for i, layer_size in enumerate(layers):
pi_h = activ(linear(pi_h, 'pi_fc' + str(i), n_hidden=layer_size, init_scale=np.sqrt(2)))
vf_h = activ(linear(vf_h, 'vf_fc' + str(i), n_hidden=layer_size, init_scale=np.sqrt(2)))
value_fn = linear(vf_h, 'vf', 1)
pi_latent = pi_h
vf_latent = vf_h
self.proba_distribution, self.policy, self.q_value = \
self.pdtype.proba_distribution_from_latent(pi_latent, vf_latent, init_scale=0.01)
self.value_fn = value_fn
self.initial_state = None
self._setup_init()
def step(self, obs, state=None, mask=None):
action, value, neglogp = self.sess.run([self.action, self._value, self.neglogp], {self.obs_ph: obs})
return action, value, self.initial_state, neglogp
def proba_step(self, obs, state=None, mask=None):
return self.sess.run(self.policy_proba, {self.obs_ph: obs})
def value(self, obs, state=None, mask=None):
return self.sess.run(self._value, {self.obs_ph: obs})
class CnnPolicy(FeedForwardPolicy):
def __init__(self, sess, ob_space, ac_space, n_env, n_steps, n_batch, reuse=False, **_kwargs):
"""
Policy object that implements actor critic, using a CNN (the nature CNN)
:param sess: (TensorFlow session) The current TensorFlow session
:param ob_space: (Gym Space) The observation space of the environment
:param ac_space: (Gym Space) The action space of the environment
:param n_env: (int) The number of environments to run
:param n_steps: (int) The number of steps to run for each environment
:param n_batch: (int) The number of batch to run (n_envs * n_steps)
:param reuse: (bool) If the policy is reusable or not
:param _kwargs: (dict) Extra keyword arguments for the nature CNN feature extraction
"""
super(CnnPolicy, self).__init__(sess, ob_space, ac_space, n_env, n_steps, n_batch, reuse,
feature_extraction="cnn", **_kwargs)
class CnnLstmPolicy(LstmPolicy):
def __init__(self, sess, ob_space, ac_space, n_env, n_steps, n_batch, n_lstm=256, reuse=False, **_kwargs):
"""
Policy object that implements actor critic, using LSTMs with a CNN feature extraction
:param sess: (TensorFlow session) The current TensorFlow session
:param ob_space: (Gym Space) The observation space of the environment
:param ac_space: (Gym Space) The action space of the environment
:param n_env: (int) The number of environments to run
:param n_steps: (int) The number of steps to run for each environment
:param n_batch: (int) The number of batch to run (n_envs * n_steps)
:param n_lstm: (int) The number of LSTM cells (for reccurent policies)
:param reuse: (bool) If the policy is reusable or not
:param kwargs: (dict) Extra keyword arguments for the nature CNN feature extraction
"""
super(CnnLstmPolicy, self).__init__(sess, ob_space, ac_space, n_env, n_steps, n_batch, n_lstm, reuse,
layer_norm=False, feature_extraction="cnn", **_kwargs)
class CnnLnLstmPolicy(LstmPolicy):
def __init__(self, sess, ob_space, ac_space, n_env, n_steps, n_batch, n_lstm=256, reuse=False, **_kwargs):
"""
Policy object that implements actor critic, using a layer normalized LSTMs with a CNN feature extraction
:param sess: (TensorFlow session) The current TensorFlow session
:param ob_space: (Gym Space) The observation space of the environment
:param ac_space: (Gym Space) The action space of the environment
:param n_env: (int) The number of environments to run
:param n_steps: (int) The number of steps to run for each environment
:param n_batch: (int) The number of batch to run (n_envs * n_steps)
:param n_lstm: (int) The number of LSTM cells (for reccurent policies)
:param reuse: (bool) If the policy is reusable or not
:param kwargs: (dict) Extra keyword arguments for the nature CNN feature extraction
"""
super(CnnLnLstmPolicy, self).__init__(sess, ob_space, ac_space, n_env, n_steps, n_batch, n_lstm, reuse,
layer_norm=True, feature_extraction="cnn", **_kwargs)
class MlpPolicy(FeedForwardPolicy):
def __init__(self, sess, ob_space, ac_space, n_env, n_steps, n_batch, reuse=False, **_kwargs):
"""
Policy object that implements actor critic, using an MLP (2 layers of 64)
:param sess: (TensorFlow session) The current TensorFlow session
:param ob_space: (Gym Space) The observation space of the environment
:param ac_space: (Gym Space) The action space of the environment
:param n_env: (int) The number of environments to run
:param n_steps: (int) The number of steps to run for each environment
:param n_batch: (int) The number of batch to run (n_envs * n_steps)
:param reuse: (bool) If the policy is reusable or not
:param _kwargs: (dict) Extra keyword arguments for the nature CNN feature extraction
"""
super(MlpPolicy, self).__init__(sess, ob_space, ac_space, n_env, n_steps, n_batch, reuse,
feature_extraction="mlp", **_kwargs)
class MlpLstmPolicy(LstmPolicy):
def __init__(self, sess, ob_space, ac_space, n_env, n_steps, n_batch, n_lstm=256, reuse=False, **_kwargs):
"""
Policy object that implements actor critic, using LSTMs with a MLP feature extraction
:param sess: (TensorFlow session) The current TensorFlow session
:param ob_space: (Gym Space) The observation space of the environment
:param ac_space: (Gym Space) The action space of the environment
:param n_env: (int) The number of environments to run
:param n_steps: (int) The number of steps to run for each environment
:param n_batch: (int) The number of batch to run (n_envs * n_steps)
:param n_lstm: (int) The number of LSTM cells (for reccurent policies)
:param reuse: (bool) If the policy is reusable or not
:param kwargs: (dict) Extra keyword arguments for the nature CNN feature extraction
"""
super(MlpLstmPolicy, self).__init__(sess, ob_space, ac_space, n_env, n_steps, n_batch, n_lstm, reuse,
layer_norm=False, feature_extraction="mlp", **_kwargs)
class MlpLnLstmPolicy(LstmPolicy):
def __init__(self, sess, ob_space, ac_space, n_env, n_steps, n_batch, n_lstm=256, reuse=False, **_kwargs):
"""
Policy object that implements actor critic, using a layer normalized LSTMs with a MLP feature extraction
:param sess: (TensorFlow session) The current TensorFlow session
:param ob_space: (Gym Space) The observation space of the environment
:param ac_space: (Gym Space) The action space of the environment
:param n_env: (int) The number of environments to run
:param n_steps: (int) The number of steps to run for each environment
:param n_batch: (int) The number of batch to run (n_envs * n_steps)
:param n_lstm: (int) The number of LSTM cells (for reccurent policies)
:param reuse: (bool) If the policy is reusable or not
:param kwargs: (dict) Extra keyword arguments for the nature CNN feature extraction
"""
super(MlpLnLstmPolicy, self).__init__(sess, ob_space, ac_space, n_env, n_steps, n_batch, n_lstm, reuse,
layer_norm=True, feature_extraction="mlp", **_kwargs)
| 53.506098 | 118 | 0.655783 | 2,437 | 17,550 | 4.530981 | 0.087403 | 0.021192 | 0.035863 | 0.04184 | 0.779478 | 0.759102 | 0.746151 | 0.741623 | 0.715903 | 0.700507 | 0 | 0.007409 | 0.254017 | 17,550 | 327 | 119 | 53.669725 | 0.836007 | 0.439715 | 0 | 0.296296 | 0 | 0 | 0.008584 | 0 | 0 | 0 | 0 | 0 | 0.007407 | 1 | 0.148148 | false | 0 | 0.044444 | 0.037037 | 0.311111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
b78fe2a0e18dfd82c683273e358dbb0b741e9dfc | 47 | py | Python | pyNSID/__version__.py | pycroscopy/pyNSID | 7d7a1813d09419eeaa2c6267d2966f365411d349 | [
"MIT"
] | 1 | 2020-05-25T17:14:40.000Z | 2020-05-25T17:14:40.000Z | pyNSID/__version__.py | pycroscopy/pyNSID | 7d7a1813d09419eeaa2c6267d2966f365411d349 | [
"MIT"
] | 34 | 2020-06-05T20:19:02.000Z | 2021-10-15T21:31:12.000Z | pyNSID/__version__.py | pycroscopy/pyNSID | 7d7a1813d09419eeaa2c6267d2966f365411d349 | [
"MIT"
] | 3 | 2020-05-22T20:35:24.000Z | 2020-09-11T19:22:41.000Z | version = '0.0.3'
time = '2021-10-15 16:55:25'
| 15.666667 | 28 | 0.595745 | 11 | 47 | 2.545455 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.425 | 0.148936 | 47 | 2 | 29 | 23.5 | 0.275 | 0 | 0 | 0 | 0 | 0 | 0.510638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
b79d5586057524a6c6b7b4e72753bdd6a0fd0335 | 91 | py | Python | data_parser/exceptions/__init__.py | AndersonSMed/PythonParser | b85116aca9a4742b0df1dd3f617f666693fde052 | [
"MIT"
] | null | null | null | data_parser/exceptions/__init__.py | AndersonSMed/PythonParser | b85116aca9a4742b0df1dd3f617f666693fde052 | [
"MIT"
] | null | null | null | data_parser/exceptions/__init__.py | AndersonSMed/PythonParser | b85116aca9a4742b0df1dd3f617f666693fde052 | [
"MIT"
] | null | null | null | class InvalidFormatError(Exception):
pass
class InvalidXMLError(Exception):
pass
| 13 | 36 | 0.758242 | 8 | 91 | 8.625 | 0.625 | 0.376812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175824 | 91 | 6 | 37 | 15.166667 | 0.92 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 0 | 5 |
b7db0fd8c4db076fd3a0e8b65f46174dfbd20ffe | 82 | py | Python | pytorch_bcnn/links/noise/__init__.py | psadda/pytorch_bayesian_unet | bb22b44c64f5d83d78aa93880da97e0e6168dc1c | [
"MIT"
] | 34 | 2020-03-30T16:48:45.000Z | 2022-03-25T15:53:08.000Z | pytorch_bcnn/links/noise/__init__.py | IhabBendidi/pytorch_bayesian_unet | cc09653a051072790760447c711887e289ed11dc | [
"MIT"
] | 2 | 2021-01-24T04:21:16.000Z | 2021-04-25T19:22:14.000Z | pytorch_bcnn/links/noise/__init__.py | IhabBendidi/pytorch_bayesian_unet | cc09653a051072790760447c711887e289ed11dc | [
"MIT"
] | 15 | 2020-04-10T05:29:31.000Z | 2022-01-03T08:45:02.000Z | from __future__ import absolute_import
from .mc_dropout import MCDropout # NOQA
| 20.5 | 41 | 0.829268 | 11 | 82 | 5.636364 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 82 | 3 | 42 | 27.333333 | 0.885714 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
4d02092105f41ce2d47fc5c562f10ee35d030a4b | 1,006 | py | Python | per/migrations/0028_auto_20201102_1154.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 11 | 2018-06-11T06:05:12.000Z | 2022-03-25T09:31:44.000Z | per/migrations/0028_auto_20201102_1154.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 498 | 2017-11-07T21:20:13.000Z | 2022-03-31T14:37:18.000Z | per/migrations/0028_auto_20201102_1154.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 6 | 2018-04-11T13:29:50.000Z | 2020-07-16T16:52:11.000Z | # Generated by Django 2.2.13 on 2020-11-02 11:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('per', '0027_auto_20201030_1539'),
]
operations = [
migrations.AddField(
model_name='formcomponent',
name='title_ar',
field=models.CharField(max_length=250, null=True, verbose_name='title'),
),
migrations.AddField(
model_name='formcomponent',
name='title_en',
field=models.CharField(max_length=250, null=True, verbose_name='title'),
),
migrations.AddField(
model_name='formcomponent',
name='title_es',
field=models.CharField(max_length=250, null=True, verbose_name='title'),
),
migrations.AddField(
model_name='formcomponent',
name='title_fr',
field=models.CharField(max_length=250, null=True, verbose_name='title'),
),
]
| 29.588235 | 84 | 0.590457 | 105 | 1,006 | 5.47619 | 0.390476 | 0.125217 | 0.16 | 0.187826 | 0.730435 | 0.730435 | 0.730435 | 0.645217 | 0.645217 | 0.645217 | 0 | 0.061453 | 0.28827 | 1,006 | 33 | 85 | 30.484848 | 0.74162 | 0.045726 | 0 | 0.592593 | 1 | 0 | 0.135699 | 0.024008 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 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 | 5 |
4d5dcb1119e907288ab7d6bb6879da675f5e7a9a | 3,980 | py | Python | pmfp/entrypoint/build_/build_go.py | Python-Tools/pmfp | 832273890eec08e84f9c68d03f3316b2c8139133 | [
"MIT"
] | 4 | 2017-09-15T03:38:56.000Z | 2019-12-16T02:03:14.000Z | pmfp/entrypoint/build_/build_go.py | Python-Tools/pmfp | 832273890eec08e84f9c68d03f3316b2c8139133 | [
"MIT"
] | 1 | 2021-04-27T10:51:42.000Z | 2021-04-27T10:51:42.000Z | pmfp/entrypoint/build_/build_go.py | Python-Tools/pmfp | 832273890eec08e84f9c68d03f3316b2c8139133 | [
"MIT"
] | null | null | null | """编译go语言模块."""
import os
# from pmfp.entrypoint.build_ import build
import warnings
from typing import Optional
from pathlib import Path
from pmfp.utils.run_command_utils import run
from pmfp.utils.fs_utils import path_to_str
from pmfp.const import PLATFORM
from .utils import upx_process, zip_pack
def build_exec(code: str, project_name: str, *,
output_dir: Path,
cwd: Path,
upx: bool = False,
mini: bool = False,
for_linux_arch: Optional[str] = None) -> None:
if not cwd.joinpath("go.mod").exists():
warnings.warn("go语言项目需要先有go.mod")
return
default_environ = dict(os.environ)
env = {"GO111MODULE": "on", "GOPROXY": "https://goproxy.io"}
env.update(default_environ)
command = "go build"
if mini:
command += ' -ldflags "-s -w"'
bin_name = project_name
if PLATFORM == 'Windows' and not for_linux_arch:
bin_name = f"{project_name}.exe"
target_str = path_to_str(output_dir.joinpath(bin_name))
command += f" -o {target_str} {code}"
if for_linux_arch:
env.update({
"GOARCH": for_linux_arch,
"GOOS": "linux"
})
run(command, cwd=cwd, env=env, visible=True, fail_exit=True)
if upx:
upx_process(target_str, cwd=cwd)
def build_alib(code: str, project_name: str, *,
output_dir: Path,
cwd: Path,
for_linux_arch: Optional[str] = None) -> None:
if not cwd.joinpath("go.mod").exists():
warnings.warn("go语言项目需要先有go.mod")
return
default_environ = dict(os.environ)
env = {"GO111MODULE": "on", "GOPROXY": "https://goproxy.io"}
env.update(default_environ)
command = "go build"
bin_name = f"{project_name}.a"
target_str = path_to_str(output_dir.joinpath(bin_name))
command += f" -o {target_str} {code}"
if for_linux_arch:
env.update({
"GOARCH": for_linux_arch,
"GOOS": "linux"
})
run(command, cwd=cwd, env=env, visible=True, fail_exit=True)
def build_dlib(code: str, project_name: str, *,
output_dir: Path,
cwd: Path,
for_linux_arch: Optional[str] = None) -> None:
if not cwd.joinpath("go.mod").exists():
warnings.warn("go语言项目需要先有go.mod")
return
default_environ = dict(os.environ)
env = {"GO111MODULE": "on", "GOPROXY": "https://goproxy.io"}
env.update(default_environ)
command = "go build -buildmode=plugin"
bin_name = f"{project_name}.plugin"
target_str = path_to_str(output_dir.joinpath(bin_name))
command += f" -o {target_str} {code}"
if for_linux_arch:
env.update({
"GOARCH": for_linux_arch,
"GOOS": "linux"
})
run(command, cwd=cwd, env=env, visible=True, fail_exit=True)
def go_build(code: str, project_name: str, *,
output_dir: Path,
cwd: Path,
upx: bool = False,
mini: bool = False,
build_as: str = "exec",
for_linux_arch: Optional[str] = None,
) -> None:
if build_as == "exec":
build_exec(code=code,
project_name=project_name,
output_dir=output_dir,
cwd=cwd,
upx=upx,
mini=mini,
for_linux_arch=for_linux_arch)
elif build_as == "zip":
zip_pack(code=code, output_dir=output_dir, cwd=cwd, project_name=project_name)
elif build_as == "alib":
build_alib(code=code,
project_name=project_name,
output_dir=output_dir,
cwd=cwd,
for_linux_arch=for_linux_arch)
elif build_as == "dlib":
build_dlib(code=code,
project_name=project_name,
output_dir=output_dir,
cwd=cwd,
for_linux_arch=for_linux_arch)
| 33.445378 | 86 | 0.576382 | 494 | 3,980 | 4.408907 | 0.163968 | 0.062443 | 0.093664 | 0.033058 | 0.754362 | 0.728191 | 0.717172 | 0.717172 | 0.70202 | 0.6809 | 0 | 0.003256 | 0.305528 | 3,980 | 118 | 87 | 33.728814 | 0.784732 | 0.012814 | 0 | 0.669811 | 0 | 0 | 0.11063 | 0.005353 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0 | 0.075472 | 0 | 0.141509 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
4d69c63b79516b16ca732b4d9c70e82bbf402ce4 | 62 | py | Python | hexastore/disk/__init__.py | alexchamberlain/mutant | 3f4ec0df8b83b2de18766e2c9e1808cff4fd52a9 | [
"MIT"
] | 3 | 2019-06-15T13:13:39.000Z | 2020-02-07T19:54:12.000Z | hexastore/disk/__init__.py | alexchamberlain/mutant | 3f4ec0df8b83b2de18766e2c9e1808cff4fd52a9 | [
"MIT"
] | 276 | 2019-07-03T06:18:37.000Z | 2021-07-28T05:24:59.000Z | hexastore/disk/__init__.py | alexchamberlain/mutant | 3f4ec0df8b83b2de18766e2c9e1808cff4fd52a9 | [
"MIT"
] | null | null | null | from .builder import Builder
from .handler import FileHandler
| 20.666667 | 32 | 0.83871 | 8 | 62 | 6.5 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 62 | 2 | 33 | 31 | 0.962963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
4dae104ce377c3155f380abacc7b1a945c56bb59 | 27 | py | Python | 01.Fundamentals/_02_Primitie-Data-Types-and-Variables/_04_UnicodeCharacter.py | VProfirov/Telerik-Academy-Course_Python-version_Homeworks-and-Exams | d8dadce0a3084d466d522292038ef1ff3b876891 | [
"MIT"
] | null | null | null | 01.Fundamentals/_02_Primitie-Data-Types-and-Variables/_04_UnicodeCharacter.py | VProfirov/Telerik-Academy-Course_Python-version_Homeworks-and-Exams | d8dadce0a3084d466d522292038ef1ff3b876891 | [
"MIT"
] | null | null | null | 01.Fundamentals/_02_Primitie-Data-Types-and-Variables/_04_UnicodeCharacter.py | VProfirov/Telerik-Academy-Course_Python-version_Homeworks-and-Exams | d8dadce0a3084d466d522292038ef1ff3b876891 | [
"MIT"
] | null | null | null | # Unicode code 42 => \u00xx | 27 | 27 | 0.666667 | 4 | 27 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0.185185 | 27 | 1 | 27 | 27 | 0.636364 | 0.925926 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
4de5ac84aec8ff04b451f8ca077579722ae5ccb8 | 80 | py | Python | pyaid/functions.py | lotcarnage/pyaid | 4697fcbd9ec664f1848aafb15f2fc9efb1c0647e | [
"MIT"
] | null | null | null | pyaid/functions.py | lotcarnage/pyaid | 4697fcbd9ec664f1848aafb15f2fc9efb1c0647e | [
"MIT"
] | null | null | null | pyaid/functions.py | lotcarnage/pyaid | 4697fcbd9ec664f1848aafb15f2fc9efb1c0647e | [
"MIT"
] | null | null | null | def argsort(array):
return sorted(range(len(array)), key=array.__getitem__)
| 26.666667 | 59 | 0.7375 | 11 | 80 | 5 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1125 | 80 | 2 | 60 | 40 | 0.774648 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
4dec88933b6a02f44b1c9c9d0ff0f3c2630d1c85 | 175 | py | Python | moto/glacier/__init__.py | symroe/moto | 4e106995af6f2820273528fca8a4e9ee288690a5 | [
"Apache-2.0"
] | null | null | null | moto/glacier/__init__.py | symroe/moto | 4e106995af6f2820273528fca8a4e9ee288690a5 | [
"Apache-2.0"
] | 1 | 2022-02-19T02:10:45.000Z | 2022-02-19T02:15:52.000Z | moto/glacier/__init__.py | symroe/moto | 4e106995af6f2820273528fca8a4e9ee288690a5 | [
"Apache-2.0"
] | null | null | null | from .models import glacier_backends
from ..core.models import base_decorator
glacier_backend = glacier_backends["us-east-1"]
mock_glacier = base_decorator(glacier_backends)
| 29.166667 | 47 | 0.834286 | 24 | 175 | 5.791667 | 0.541667 | 0.323741 | 0.28777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00625 | 0.085714 | 175 | 5 | 48 | 35 | 0.8625 | 0 | 0 | 0 | 0 | 0 | 0.051429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
150939bf5209c2fb25dfa9d9a8046ef3255bfdaa | 49 | py | Python | HW7/Vaulin/CW7.2.py | kolyasalubov/Lv-677.PythonCore | c9f9107c734a61e398154a90b8a3e249276c2704 | [
"MIT"
] | null | null | null | HW7/Vaulin/CW7.2.py | kolyasalubov/Lv-677.PythonCore | c9f9107c734a61e398154a90b8a3e249276c2704 | [
"MIT"
] | null | null | null | HW7/Vaulin/CW7.2.py | kolyasalubov/Lv-677.PythonCore | c9f9107c734a61e398154a90b8a3e249276c2704 | [
"MIT"
] | 6 | 2022-02-22T22:30:49.000Z | 2022-03-28T12:51:19.000Z | def reverse_list(l):
l.reverse()
return l | 16.333333 | 20 | 0.632653 | 8 | 49 | 3.75 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244898 | 49 | 3 | 21 | 16.333333 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 5 |
150960517091afe6850218652cf6ccb820ff2a5d | 208 | py | Python | src/app/cli.py | ppmzhang2/pyagent | a72fbdcb5d4719e6cc56e766d84f413eccb061ba | [
"Apache-2.0"
] | null | null | null | src/app/cli.py | ppmzhang2/pyagent | a72fbdcb5d4719e6cc56e766d84f413eccb061ba | [
"Apache-2.0"
] | 1 | 2022-03-21T05:44:42.000Z | 2022-03-21T05:44:42.000Z | src/app/cli.py | ppmzhang2/pyagent | a72fbdcb5d4719e6cc56e766d84f413eccb061ba | [
"Apache-2.0"
] | null | null | null | """all commands here"""
import click
from .serv import run_client
from .serv import run_server
@click.group()
def cli():
"""all clicks here"""
cli.add_command(run_client)
cli.add_command(run_server)
| 13.866667 | 28 | 0.725962 | 32 | 208 | 4.53125 | 0.5 | 0.110345 | 0.193103 | 0.234483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 208 | 14 | 29 | 14.857143 | 0.814607 | 0.158654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.428571 | 0 | 0.571429 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
1291f0af0e76406e3b7096cc49f00779cf7bc9fe | 184 | py | Python | tests/web_platform/css_grid_1/alignment/test_grid_alignment_implies_size_change.py | jonboland/colosseum | cbf974be54fd7f6fddbe7285704cfaf7a866c5c5 | [
"BSD-3-Clause"
] | 71 | 2015-04-13T09:44:14.000Z | 2019-03-24T01:03:02.000Z | tests/web_platform/css_grid_1/alignment/test_grid_alignment_implies_size_change.py | jonboland/colosseum | cbf974be54fd7f6fddbe7285704cfaf7a866c5c5 | [
"BSD-3-Clause"
] | 35 | 2019-05-06T15:26:09.000Z | 2022-03-28T06:30:33.000Z | tests/web_platform/css_grid_1/alignment/test_grid_alignment_implies_size_change.py | jonboland/colosseum | cbf974be54fd7f6fddbe7285704cfaf7a866c5c5 | [
"BSD-3-Clause"
] | 139 | 2015-05-30T18:37:43.000Z | 2019-03-27T17:14:05.000Z | from tests.utils import W3CTestCase
class TestGridAlignmentImpliesSizeChange(W3CTestCase):
vars().update(W3CTestCase.find_tests(__file__, 'grid-alignment-implies-size-change-'))
| 30.666667 | 90 | 0.815217 | 19 | 184 | 7.631579 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017647 | 0.076087 | 184 | 5 | 91 | 36.8 | 0.835294 | 0 | 0 | 0 | 0 | 0 | 0.190217 | 0.190217 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
12a56e09abcc8c98f598986c6c40deab69a596ef | 180 | py | Python | datasets/__init__.py | bolianchen/pytorch_depth_from_videos_in_the_wild | 6f013154ba9f3a8de944c788a9370980e4c2b7c8 | [
"MIT"
] | 5 | 2022-02-25T04:38:16.000Z | 2022-03-28T17:38:03.000Z | datasets/__init__.py | bolianchen/pytorch_depth_from_videos_in_the_wild | 6f013154ba9f3a8de944c788a9370980e4c2b7c8 | [
"MIT"
] | 5 | 2022-02-25T07:26:39.000Z | 2022-03-02T06:04:32.000Z | datasets/__init__.py | bolianchen/pytorch_depth_from_videos_in_the_wild | 6f013154ba9f3a8de944c788a9370980e4c2b7c8 | [
"MIT"
] | null | null | null | # for the training process
from .custom_mono_dataset import CustomMonoDataset
from .mixed_mono_dataset import MixedMonoDataset
from .auxiliary_datasets import ProcessedImageFolder
| 36 | 52 | 0.883333 | 21 | 180 | 7.333333 | 0.714286 | 0.142857 | 0.220779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094444 | 180 | 4 | 53 | 45 | 0.944785 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
12b77cfe7b0c0d5c759333cd487a73b67923bbf8 | 34 | py | Python | test/login.py | xyh-2012/xyh-test | 37db9e3f004f8f75a3e63656088b768e14ce7977 | [
"MIT"
] | null | null | null | test/login.py | xyh-2012/xyh-test | 37db9e3f004f8f75a3e63656088b768e14ce7977 | [
"MIT"
] | null | null | null | test/login.py | xyh-2012/xyh-test | 37db9e3f004f8f75a3e63656088b768e14ce7977 | [
"MIT"
] | null | null | null | num1 = 15
num2 = 36
num3 = 9117
| 5.666667 | 11 | 0.588235 | 6 | 34 | 3.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.478261 | 0.323529 | 34 | 5 | 12 | 6.8 | 0.391304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
4201e01c00c8707ce8cdc2e9599b725602d223fe | 116 | py | Python | app/schemas/error.py | wlsouza/cashbackgb | c5cffe782eb0f8c2ec0303405820e49c494d04a3 | [
"MIT"
] | 4 | 2021-09-09T00:20:21.000Z | 2022-01-12T09:08:07.000Z | app/schemas/error.py | wlsouza/fastapi-todolist | c7c75bd73754dde8687e1486a80c77d903e33b31 | [
"MIT"
] | null | null | null | app/schemas/error.py | wlsouza/fastapi-todolist | c7c75bd73754dde8687e1486a80c77d903e33b31 | [
"MIT"
] | 1 | 2022-02-10T04:15:19.000Z | 2022-02-10T04:15:19.000Z | from typing import Optional
from pydantic import BaseModel
class HTTPError(BaseModel):
detail: Optional[str]
| 14.5 | 30 | 0.784483 | 14 | 116 | 6.5 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163793 | 116 | 7 | 31 | 16.571429 | 0.938144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
420ba21078fa1d5597e58d14e37a5fc001fa0579 | 5,863 | py | Python | typer/params.py | dwreeves/typer | 2b9db5936989fa2c653f18b73b3ccc05ac2e4089 | [
"MIT"
] | null | null | null | typer/params.py | dwreeves/typer | 2b9db5936989fa2c653f18b73b3ccc05ac2e4089 | [
"MIT"
] | null | null | null | typer/params.py | dwreeves/typer | 2b9db5936989fa2c653f18b73b3ccc05ac2e4089 | [
"MIT"
] | null | null | null | from typing import TYPE_CHECKING, Any, Callable, List, Optional, Type, Union
import click
from .models import ArgumentInfo, OptionInfo
if TYPE_CHECKING: # pragma: no cover
import click.shell_completion
def Option(
# Parameter
default: Optional[Any],
*param_decls: str,
callback: Optional[Callable[..., Any]] = None,
metavar: Optional[str] = None,
expose_value: bool = True,
is_eager: bool = False,
envvar: Optional[Union[str, List[str]]] = None,
shell_complete: Optional[
Callable[
[click.Context, click.Parameter, str],
Union[List["click.shell_completion.CompletionItem"], List[str]],
]
] = None,
autocompletion: Optional[Callable[..., Any]] = None,
param_type: Optional[click.ParamType] = None,
# Option
show_default: bool = True,
prompt: Union[bool, str] = False,
confirmation_prompt: bool = False,
prompt_required: bool = True,
hide_input: bool = False,
is_flag: Optional[bool] = None,
flag_value: Optional[Any] = None,
count: bool = False,
allow_from_autoenv: bool = True,
help: Optional[str] = None,
hidden: bool = False,
show_choices: bool = True,
show_envvar: bool = True,
# Choice
case_sensitive: bool = True,
# Numbers
min: Optional[Union[int, float]] = None,
max: Optional[Union[int, float]] = None,
clamp: bool = False,
# DateTime
formats: Optional[Union[List[str]]] = None,
# File
mode: Optional[str] = None,
encoding: Optional[str] = None,
errors: Optional[str] = "strict",
lazy: Optional[bool] = None,
atomic: bool = False,
# Path
exists: bool = False,
file_okay: bool = True,
dir_okay: bool = True,
writable: bool = False,
readable: bool = True,
resolve_path: bool = False,
allow_dash: bool = False,
path_type: Union[None, Type[str], Type[bytes]] = None,
) -> Any:
return OptionInfo(
# Parameter
default=default,
param_decls=param_decls,
callback=callback,
metavar=metavar,
expose_value=expose_value,
is_eager=is_eager,
envvar=envvar,
shell_complete=shell_complete,
autocompletion=autocompletion,
param_type=param_type,
# Option
show_default=show_default,
prompt=prompt,
confirmation_prompt=confirmation_prompt,
prompt_required=prompt_required,
hide_input=hide_input,
is_flag=is_flag,
flag_value=flag_value,
count=count,
allow_from_autoenv=allow_from_autoenv,
help=help,
hidden=hidden,
show_choices=show_choices,
show_envvar=show_envvar,
# Choice
case_sensitive=case_sensitive,
# Numbers
min=min,
max=max,
clamp=clamp,
# DateTime
formats=formats,
# File
mode=mode,
encoding=encoding,
errors=errors,
lazy=lazy,
atomic=atomic,
# Path
exists=exists,
file_okay=file_okay,
dir_okay=dir_okay,
writable=writable,
readable=readable,
resolve_path=resolve_path,
allow_dash=allow_dash,
path_type=path_type,
)
def Argument(
# Parameter
default: Optional[Any],
*,
callback: Optional[Callable[..., Any]] = None,
metavar: Optional[str] = None,
expose_value: bool = True,
is_eager: bool = False,
envvar: Optional[Union[str, List[str]]] = None,
shell_complete: Optional[
Callable[
[click.Context, click.Parameter, str],
Union[List["click.shell_completion.CompletionItem"], List[str]],
]
] = None,
autocompletion: Optional[Callable[..., Any]] = None,
param_type: Optional[click.ParamType] = None,
# TyperArgument
show_default: Union[bool, str] = True,
show_choices: bool = True,
show_envvar: bool = True,
help: Optional[str] = None,
hidden: bool = False,
# Choice
case_sensitive: bool = True,
# Numbers
min: Optional[Union[int, float]] = None,
max: Optional[Union[int, float]] = None,
clamp: bool = False,
# DateTime
formats: Optional[Union[List[str]]] = None,
# File
mode: Optional[str] = None,
encoding: Optional[str] = None,
errors: Optional[str] = "strict",
lazy: Optional[bool] = None,
atomic: bool = False,
# Path
exists: bool = False,
file_okay: bool = True,
dir_okay: bool = True,
writable: bool = False,
readable: bool = True,
resolve_path: bool = False,
allow_dash: bool = False,
path_type: Union[None, Type[str], Type[bytes]] = None,
) -> Any:
return ArgumentInfo(
# Parameter
default=default,
# Arguments can only have one param declaration
# it will be generated from the param name
param_decls=None,
callback=callback,
metavar=metavar,
expose_value=expose_value,
is_eager=is_eager,
envvar=envvar,
shell_complete=shell_complete,
autocompletion=autocompletion,
param_type=param_type,
# TyperArgument
show_default=show_default,
show_choices=show_choices,
show_envvar=show_envvar,
help=help,
hidden=hidden,
# Choice
case_sensitive=case_sensitive,
# Numbers
min=min,
max=max,
clamp=clamp,
# DateTime
formats=formats,
# File
mode=mode,
encoding=encoding,
errors=errors,
lazy=lazy,
atomic=atomic,
# Path
exists=exists,
file_okay=file_okay,
dir_okay=dir_okay,
writable=writable,
readable=readable,
resolve_path=resolve_path,
allow_dash=allow_dash,
path_type=path_type,
)
| 28.052632 | 76 | 0.606686 | 644 | 5,863 | 5.35559 | 0.152174 | 0.04958 | 0.034793 | 0.026674 | 0.732386 | 0.732386 | 0.732386 | 0.732386 | 0.688895 | 0.66454 | 0 | 0 | 0.289101 | 5,863 | 208 | 77 | 28.1875 | 0.827495 | 0.05475 | 0 | 0.795322 | 0 | 0 | 0.015608 | 0.01343 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011696 | false | 0 | 0.023392 | 0.011696 | 0.046784 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 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 | 5 |
426bcdc59feeef050ae77da7d530c9a0a9f2585a | 130 | py | Python | py2store/persisters/w_aiofile.py | i2mint/py2store | 1b8ccb21cdff6ffb269460eebbe813cc471be748 | [
"MIT"
] | 10 | 2019-03-04T15:02:15.000Z | 2020-09-16T11:57:30.000Z | py2store/persisters/w_aiofile.py | i2mint/py2store | 1b8ccb21cdff6ffb269460eebbe813cc471be748 | [
"MIT"
] | 60 | 2019-08-08T14:38:56.000Z | 2021-04-08T15:19:11.000Z | py2store/persisters/w_aiofile.py | i2mint/py2store | 1b8ccb21cdff6ffb269460eebbe813cc471be748 | [
"MIT"
] | 10 | 2019-08-08T03:15:35.000Z | 2020-06-18T16:19:18.000Z | """Forwards to aiofiledol
"""
from contextlib import suppress
with suppress(ModuleNotFoundError):
from aiofiledol import *
| 14.444444 | 35 | 0.761538 | 13 | 130 | 7.615385 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161538 | 130 | 8 | 36 | 16.25 | 0.908257 | 0.169231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
428843b0ee0fa8dd0722f9a90e7b7a6c2b9601e8 | 141 | py | Python | routerling/errors.py | rayattack/pyrouterling | 124a36e5266d18a6f6d1e33287b7cf4338054d54 | [
"MIT"
] | 1 | 2021-03-06T20:26:36.000Z | 2021-03-06T20:26:36.000Z | routerling/errors.py | rayattack/routerling | 124a36e5266d18a6f6d1e33287b7cf4338054d54 | [
"MIT"
] | null | null | null | routerling/errors.py | rayattack/routerling | 124a36e5266d18a6f6d1e33287b7cf4338054d54 | [
"MIT"
] | null | null | null | class AbortException(Exception):...
class SubdomainError(Exception):...
class UrlError(Exception):...
class UrlDuplicateError(Exception):...
| 28.2 | 38 | 0.77305 | 12 | 141 | 9.083333 | 0.5 | 0.385321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056738 | 141 | 4 | 39 | 35.25 | 0.819549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 5 |
428a2a0c1fdc6b1f2b7ade2a74b5180ff74e12a6 | 288 | py | Python | src/py-common/nightjar_common/validation/__init__.py | groboclown/nightjar-mesh | 3655307b4a0ad00a0f18db835b3a0d04cb8e9615 | [
"MIT"
] | 3 | 2019-12-23T23:46:02.000Z | 2020-08-07T23:10:20.000Z | src/py-common/nightjar_common/validation/__init__.py | groboclown/nightjar-mesh | 3655307b4a0ad00a0f18db835b3a0d04cb8e9615 | [
"MIT"
] | 2 | 2020-02-07T15:59:15.000Z | 2020-08-05T21:55:27.000Z | src/py-common/nightjar_common/validation/__init__.py | groboclown/nightjar-mesh | 3655307b4a0ad00a0f18db835b3a0d04cb8e9615 | [
"MIT"
] | 1 | 2020-05-28T00:46:05.000Z | 2020-05-28T00:46:05.000Z |
"""
Auto-generated validation code.
"""
from .proxy_input import validate_proxy_input_schema_yaml as validate_proxy_input
from .discovery_map import validate_discovery_map_schema_yaml as validate_discovery_map
from .templates import validate_templates_schema_yaml as validate_templates
| 32 | 87 | 0.875 | 40 | 288 | 5.85 | 0.375 | 0.128205 | 0.153846 | 0.25641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086806 | 288 | 8 | 88 | 36 | 0.889734 | 0.107639 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
42949156011871d18d58b0d93c2f75df853d9947 | 251 | py | Python | env/lib/python3.7/site-packages/backpack/collections/collection.py | Kolawole39/masonite-guides-tutorial | 9a21cc635291a42f0722f69925be1809bb20e01c | [
"MIT"
] | 55 | 2016-08-04T22:29:19.000Z | 2022-03-06T19:37:17.000Z | env/lib/python3.7/site-packages/backpack/collections/collection.py | Kolawole39/masonite-guides-tutorial | 9a21cc635291a42f0722f69925be1809bb20e01c | [
"MIT"
] | 1 | 2020-06-08T15:07:14.000Z | 2021-05-26T02:26:51.000Z | env/lib/python3.7/site-packages/backpack/collections/collection.py | Kolawole39/masonite-guides-tutorial | 9a21cc635291a42f0722f69925be1809bb20e01c | [
"MIT"
] | 17 | 2016-12-24T13:18:57.000Z | 2021-08-06T00:54:54.000Z | # -*- coding: utf-8 -*-
from .base_collection import BaseCollection
try:
from ._collection import Collection as ExtCollection
except ImportError:
class ExtCollection:
pass
class Collection(ExtCollection, BaseCollection):
pass
| 16.733333 | 56 | 0.729084 | 25 | 251 | 7.24 | 0.6 | 0.176796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004975 | 0.199203 | 251 | 14 | 57 | 17.928571 | 0.895522 | 0.083665 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.375 | 0 | 0.625 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 5 |
c4071de476cd98f8e0a7b50ce96af5ba9108207b | 120 | py | Python | discodo/natives/__init__.py | AkiaCode/discodo | 0a76afb196a7945f525896f56f431e82aaf83f44 | [
"MIT"
] | null | null | null | discodo/natives/__init__.py | AkiaCode/discodo | 0a76afb196a7945f525896f56f431e82aaf83f44 | [
"MIT"
] | null | null | null | discodo/natives/__init__.py | AkiaCode/discodo | 0a76afb196a7945f525896f56f431e82aaf83f44 | [
"MIT"
] | null | null | null | from . import opus
from .AudioFifo import AudioFifo
from .AudioFilter import AudioFilter
from .encrypt import Encrypter
| 24 | 36 | 0.833333 | 15 | 120 | 6.666667 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 120 | 4 | 37 | 30 | 0.961538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
c418d304026d70c1b10d971738339e878138064a | 158 | py | Python | __init__.py | danijeljw/pymbo | 562df0fff0392fac9bc09474dd29fcb1dc835a95 | [
"MIT"
] | null | null | null | __init__.py | danijeljw/pymbo | 562df0fff0392fac9bc09474dd29fcb1dc835a95 | [
"MIT"
] | 2 | 2018-02-23T05:14:36.000Z | 2018-02-23T05:29:17.000Z | __init__.py | danijeljw/pymbo | 562df0fff0392fac9bc09474dd29fcb1dc835a95 | [
"MIT"
] | null | null | null | #Python libraries that we need to import for our bot
from flask import Flask, request
from pymessenger.bot import Bot
import random
from keys import fb_keys
| 22.571429 | 52 | 0.816456 | 27 | 158 | 4.740741 | 0.62963 | 0.140625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164557 | 158 | 6 | 53 | 26.333333 | 0.969697 | 0.322785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
c423e0c89f5fd092c005407fbacf80e0c6eb494c | 84 | py | Python | matury/2020/zad32.py | bartekpacia/informatyka | 04a290282df2dc052b3e1dff54b556b563fd8cb5 | [
"MIT"
] | 2 | 2021-12-23T21:39:10.000Z | 2022-01-17T17:38:30.000Z | matury/2020/zad32.py | bartekpacia/informatyka | 04a290282df2dc052b3e1dff54b556b563fd8cb5 | [
"MIT"
] | 1 | 2021-07-03T10:23:30.000Z | 2021-07-03T10:23:30.000Z | matury/2020/zad32.py | bartekpacia/informatyka | 04a290282df2dc052b3e1dff54b556b563fd8cb5 | [
"MIT"
] | 1 | 2021-07-02T20:13:06.000Z | 2021-07-02T20:13:06.000Z | n = 45788
w = 0
while n != 0:
w = w + (n % 10)
n = n // 10
print(f"{w=}")
| 9.333333 | 20 | 0.369048 | 17 | 84 | 1.823529 | 0.470588 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215686 | 0.392857 | 84 | 8 | 21 | 10.5 | 0.392157 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
c45962c0045e8fbe2f0c7d31874423bb575e8345 | 30 | py | Python | tests/data/testpackage/subpackage_02/__init__.py | nazavode/slab | 3d687b16e6ff1a40b1aad4f4445248bede2ef06e | [
"Apache-2.0"
] | null | null | null | tests/data/testpackage/subpackage_02/__init__.py | nazavode/slab | 3d687b16e6ff1a40b1aad4f4445248bede2ef06e | [
"Apache-2.0"
] | null | null | null | tests/data/testpackage/subpackage_02/__init__.py | nazavode/slab | 3d687b16e6ff1a40b1aad4f4445248bede2ef06e | [
"Apache-2.0"
] | null | null | null | # This is an empty init file.
| 15 | 29 | 0.7 | 6 | 30 | 3.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233333 | 30 | 1 | 30 | 30 | 0.913043 | 0.9 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
6711b9e73ab296e77c6c441f9ee3574097b3955a | 1,525 | py | Python | tests/test_cosmos.py | b-biswas/BlendingToolKit | 2e85da4df99a84bcdff1d85ed66eb8589eb72499 | [
"MIT"
] | null | null | null | tests/test_cosmos.py | b-biswas/BlendingToolKit | 2e85da4df99a84bcdff1d85ed66eb8589eb72499 | [
"MIT"
] | null | null | null | tests/test_cosmos.py | b-biswas/BlendingToolKit | 2e85da4df99a84bcdff1d85ed66eb8589eb72499 | [
"MIT"
] | null | null | null | from conftest import data_dir
from btk.catalog import CosmosCatalog
from btk.draw_blends import CosmosGenerator
from btk.sampling_functions import DefaultSampling
from btk.survey import get_surveys
COSMOS_CATALOG_PATHS = [
str(data_dir / "cosmos/real_galaxy_catalog_23.5_example.fits"),
str(data_dir / "cosmos/real_galaxy_catalog_23.5_example_fits.fits"),
]
COSMOS_EXT_CATALOG_PATHS = [
str(data_dir / "cosmos/real_galaxy_catalog_26_extension_example.fits"),
str(data_dir / "cosmos/real_galaxy_catalog_26_extension_example_fits.fits"),
]
def test_cosmos_galaxies():
stamp_size = 24.0
batch_size = 2
catalog = CosmosCatalog.from_file(COSMOS_CATALOG_PATHS)
sampling_function = DefaultSampling(stamp_size=stamp_size)
HST = get_surveys("HST")
draw_generator = CosmosGenerator(
catalog,
sampling_function,
HST,
batch_size=batch_size,
stamp_size=stamp_size,
cpus=1,
add_noise="all",
verbose=True,
)
_ = next(draw_generator)
def test_cosmos_ext_galaxies():
stamp_size = 24.0
batch_size = 2
catalog = CosmosCatalog.from_file(COSMOS_EXT_CATALOG_PATHS)
sampling_function = DefaultSampling(stamp_size=stamp_size)
HST = get_surveys("HST")
draw_generator = CosmosGenerator(
catalog,
sampling_function,
HST,
batch_size=batch_size,
stamp_size=stamp_size,
cpus=1,
add_noise="all",
verbose=True,
)
_ = next(draw_generator)
| 25.847458 | 80 | 0.706885 | 191 | 1,525 | 5.251309 | 0.26178 | 0.089731 | 0.077767 | 0.063809 | 0.775673 | 0.775673 | 0.775673 | 0.775673 | 0.775673 | 0.751745 | 0 | 0.016639 | 0.211803 | 1,525 | 58 | 81 | 26.293103 | 0.817804 | 0 | 0 | 0.595745 | 0 | 0 | 0.140328 | 0.132459 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.106383 | 0 | 0.148936 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
6738f8470d9838809169b9111956864e305c23ce | 8,185 | py | Python | tests/test_connect_walls.py | kellerroman/elekro_planner | 8cba04c6743f4d02709336086f363f35b701227d | [
"MIT"
] | null | null | null | tests/test_connect_walls.py | kellerroman/elekro_planner | 8cba04c6743f4d02709336086f363f35b701227d | [
"MIT"
] | null | null | null | tests/test_connect_walls.py | kellerroman/elekro_planner | 8cba04c6743f4d02709336086f363f35b701227d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from elektro_planner.read_anschluesse import read_anschluesse
from elektro_planner.read_struktur import read_struktur
from elektro_planner.connect_walls import (
create_nodes_from_walls,
create_nodes_from_connectors,
)
from elektro_planner.data import Haus
from elektro_planner.create_svg import create_svg
import simple_haus
def test_read_struktur():
haus = Haus()
yaml = simple_haus.define_testcase()
read_struktur(haus, yaml["struktur"])
read_anschluesse(haus, yaml["anschluesse"])
create_nodes_from_walls(haus)
create_svg(haus)
assert len(haus.nodes) == 24
assert len(haus.geschosse) == 2
assert len(haus.geschosse[0].walls) == 2
nodes = haus.geschosse[0].nodes
assert len(nodes) == 8
# for e in nodes:
# print("Edge: {}".format(e))
# for c in e.get_connected_nodes():
# print("-- connected to {}".format(c))
assert len(nodes[0].get_connected_nodes()) == 3
assert nodes[0].get_connected_nodes()[0] == nodes[1]
assert nodes[0].get_connected_nodes()[1] == nodes[2]
assert nodes[0].get_connected_nodes()[2] == nodes[4]
assert len(nodes[1].get_connected_nodes()) == 2
assert nodes[1].get_connected_nodes()[0] == nodes[0]
assert nodes[1].get_connected_nodes()[1] == nodes[5]
assert len(nodes[2].get_connected_nodes()) == 3
assert nodes[2].get_connected_nodes()[0] == nodes[3]
assert nodes[2].get_connected_nodes()[1] == nodes[0]
assert nodes[2].get_connected_nodes()[2] == nodes[6]
assert len(nodes[3].get_connected_nodes()) == 2
assert nodes[3].get_connected_nodes()[0] == nodes[2]
assert nodes[3].get_connected_nodes()[1] == nodes[7]
# upper nodes
assert len(nodes[4].get_connected_nodes()) == 3
assert nodes[4].get_connected_nodes()[0] == nodes[0]
assert nodes[4].get_connected_nodes()[1] == nodes[5]
assert nodes[4].get_connected_nodes()[2] == nodes[6]
assert len(nodes[5].get_connected_nodes()) == 2
assert nodes[5].get_connected_nodes()[0].id == nodes[4].id
assert nodes[5].get_connected_nodes()[1].id == nodes[1].id
assert len(nodes[6].get_connected_nodes()) == 3
assert nodes[6].get_connected_nodes()[0] == nodes[4]
assert nodes[6].get_connected_nodes()[1] == nodes[2]
assert nodes[6].get_connected_nodes()[2] == nodes[7]
assert len(nodes[7].get_connected_nodes()) == 2
assert nodes[7].get_connected_nodes()[0] == nodes[6]
assert nodes[7].get_connected_nodes()[1] == nodes[3]
## obergeschoss
assert len(haus.geschosse[1].walls) == 4
nodes = haus.geschosse[1].nodes
assert len(nodes) == 16
for i, e in enumerate(nodes):
print("Node: {}".format(e))
for c in e.get_connected_nodes():
print("-- connected to {}".format(c))
if i < 8: # nodes at bottom of the wall
assert e.z == 250
else: # nodes at top of the wall
assert e.z == 550
assert len(nodes[0].get_connected_nodes()) == 3
assert nodes[0].get_connected_nodes()[0].id == nodes[1].id
assert nodes[0].get_connected_nodes()[1].id == nodes[2].id
assert nodes[0].get_connected_nodes()[2].id == nodes[8].id
assert len(nodes[1].get_connected_nodes()) == 2
assert nodes[1].get_connected_nodes()[0].id == nodes[0].id
assert nodes[1].get_connected_nodes()[1].id == nodes[9].id
assert len(nodes[2].get_connected_nodes()) == 3
assert nodes[2].get_connected_nodes()[0].id == nodes[6].id
assert nodes[2].get_connected_nodes()[1].id == nodes[0].id
assert nodes[2].get_connected_nodes()[2].id == nodes[10].id
assert len(nodes[3].get_connected_nodes()) == 3
assert nodes[3].get_connected_nodes()[0].id == nodes[4].id
assert nodes[3].get_connected_nodes()[1].id == nodes[6].id
assert nodes[3].get_connected_nodes()[2].id == nodes[11].id
assert len(nodes[4].get_connected_nodes()) == 3
assert nodes[4].get_connected_nodes()[0].id == nodes[5].id
assert nodes[4].get_connected_nodes()[1].id == nodes[3].id
assert nodes[4].get_connected_nodes()[2].id == nodes[13].id
assert len(nodes[5].get_connected_nodes()) == 2
assert nodes[5].get_connected_nodes()[0].id == nodes[4].id
assert nodes[5].get_connected_nodes()[1].id == nodes[14].id
assert len(nodes[6].get_connected_nodes()) == 4
assert nodes[6].get_connected_nodes()[0].id == nodes[7].id
assert nodes[6].get_connected_nodes()[1].id == nodes[2].id
assert nodes[6].get_connected_nodes()[2].id == nodes[3].id
assert nodes[6].get_connected_nodes()[3].id == nodes[12].id
assert len(nodes[7].get_connected_nodes()) == 2
assert nodes[7].get_connected_nodes()[0].id == nodes[6].id
assert nodes[7].get_connected_nodes()[1].id == nodes[15].id
# upper nodes
assert len(nodes[8].get_connected_nodes()) == 3
assert nodes[8].get_connected_nodes()[0].id == nodes[0].id
assert nodes[8].get_connected_nodes()[1].id == nodes[9].id
assert nodes[8].get_connected_nodes()[2].id == nodes[10].id
assert len(nodes[9].get_connected_nodes()) == 2
assert nodes[9].get_connected_nodes()[0].id == nodes[8].id
assert nodes[9].get_connected_nodes()[1].id == nodes[1].id
assert len(nodes[10].get_connected_nodes()) == 3
assert nodes[10].get_connected_nodes()[0].id == nodes[8].id
assert nodes[10].get_connected_nodes()[1].id == nodes[2].id
assert nodes[10].get_connected_nodes()[2].id == nodes[12].id
assert len(nodes[11].get_connected_nodes()) == 3
assert nodes[11].get_connected_nodes()[0].id == nodes[3].id
assert nodes[11].get_connected_nodes()[1].id == nodes[12].id
assert nodes[11].get_connected_nodes()[2].id == nodes[13].id
assert len(nodes[12].get_connected_nodes()) == 4
assert nodes[12].get_connected_nodes()[0].id == nodes[10].id
assert nodes[12].get_connected_nodes()[1].id == nodes[11].id
assert nodes[12].get_connected_nodes()[2].id == nodes[6].id
assert nodes[12].get_connected_nodes()[3].id == nodes[15].id
assert len(nodes[13].get_connected_nodes()) == 3
assert nodes[13].get_connected_nodes()[0].id == nodes[11].id
assert nodes[13].get_connected_nodes()[1].id == nodes[4].id
assert nodes[13].get_connected_nodes()[2].id == nodes[14].id
assert len(nodes[14].get_connected_nodes()) == 2
assert nodes[14].get_connected_nodes()[0].id == nodes[13].id
assert nodes[14].get_connected_nodes()[1].id == nodes[5].id
assert len(nodes[15].get_connected_nodes()) == 2
assert nodes[15].get_connected_nodes()[0].id == nodes[12].id
assert nodes[15].get_connected_nodes()[1].id == nodes[7].id
def test_connector_waagrecht():
haus = (
simple_haus.HausCreator()
.geschoss()
.wall(0, 0, 40, 400)
.wall(0, 0, 400, 40)
.wall(360, 0, 40, 400)
.con(0, 250, 0, 400, 0, 0)
.room()
.Steckdose(40, 200)
.Steckdose(360, 200)
.get_house()
)
create_nodes_from_walls(haus)
assert len(haus.nodes) == 12
create_nodes_from_connectors(haus)
assert len(haus.nodes) == 14
assert haus.geschosse[-1].nodes[13].is_connected(haus.geschosse[-1].nodes[12])
def test_connector_senkrecht():
haus = (
simple_haus.HausCreator()
.geschoss()
.wall(0, 0, 40, 400)
.room()
.Steckdose(40, 200)
.geschoss()
.wall(0, 0, 40, 400)
.room()
.Steckdose(40, 200)
.con(0, 250, 100, 0, 0, 300)
.get_house()
)
create_nodes_from_walls(haus)
assert len(haus.nodes) == 8
create_nodes_from_connectors(haus)
assert len(haus.nodes) == 10
assert len(haus.geschosse[0].walls[0].nodes) == 5
assert len(haus.geschosse[0].walls[0].nodes[4].get_connected_nodes()) == 3
assert (
haus.geschosse[0]
.walls[0]
.nodes[4]
.is_connected(haus.geschosse[0].walls[0].nodes[2])
)
assert (
haus.geschosse[0]
.walls[0]
.nodes[4]
.is_connected(haus.geschosse[0].walls[0].nodes[3])
)
assert len(haus.geschosse[1].walls[0].nodes) == 5
# assert haus.geschosse[0].nodes[4].is_connected(haus.geschosse[1].nodes[4])
| 41.974359 | 82 | 0.646915 | 1,261 | 8,185 | 4.012688 | 0.070579 | 0.21581 | 0.305731 | 0.085375 | 0.83834 | 0.799407 | 0.65415 | 0.491107 | 0.416601 | 0.373518 | 0 | 0.062388 | 0.179475 | 8,185 | 194 | 83 | 42.190722 | 0.691036 | 0.038974 | 0 | 0.263158 | 0 | 0 | 0.00573 | 0 | 0 | 0 | 0 | 0 | 0.619883 | 1 | 0.017544 | false | 0 | 0.035088 | 0 | 0.052632 | 0.011696 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
674505e962bbfadacb016158ad9b199a38e25e4f | 3,961 | py | Python | HoverGames_FireDetection/modules/CameraCapture/app/AnnotationParser.py | howeverpw/Hovergames | 71f4e589bc68afc95d4d7a15b4cd187636cb87d0 | [
"BSD-3-Clause"
] | null | null | null | HoverGames_FireDetection/modules/CameraCapture/app/AnnotationParser.py | howeverpw/Hovergames | 71f4e589bc68afc95d4d7a15b4cd187636cb87d0 | [
"BSD-3-Clause"
] | null | null | null | HoverGames_FireDetection/modules/CameraCapture/app/AnnotationParser.py | howeverpw/Hovergames | 71f4e589bc68afc95d4d7a15b4cd187636cb87d0 | [
"BSD-3-Clause"
] | null | null | null | # To make python 2 and python 3 compatible code
from __future__ import absolute_import
# Returns rectangle boundaries in the CV2 format (topLeftX, topLeftY, bottomRightX, bottomRightY) given by a processing service
class AnnotationParser:
def getCV2RectanglesFromProcessingService1(self, response):
try:
listOfCV2Rectangles = []
for item in response["regions"]:
for decoration in item:
if "box" in decoration.lower():
rectList = item[decoration].split(",")
top = int(rectList[0])
left = int(rectList[1])
width = int(rectList[2])
height = int(rectList[3])
for decorationProperty in item[decoration]:
if "top" in decorationProperty.lower():
top = int(item[decoration][decorationProperty])
if "left" in decorationProperty.lower():
left = int(item[decoration]
[decorationProperty])
if "width" in decorationProperty.lower():
width = int(item[decoration]
[decorationProperty])
if "height" in decorationProperty.lower():
height = int(item[decoration]
[decorationProperty])
if top is not None and left is not None and width is not None and height is not None:
topLeftX = left
topLeftY = top
bottomRightX = left + width
bottomRightY = top + height
listOfCV2Rectangles.append(
[topLeftX, topLeftY, bottomRightX, bottomRightY])
return listOfCV2Rectangles
except:
# Ignoring exceptions for now so that video can be read and analyzed without post-processing in case of errors
pass
def getCV2RectanglesFromProcessingService2(self, response):
try:
listOfCV2Rectangles = []
for item in response:
for decoration in item:
if "rect" in decoration.lower():
for decorationProperty in item[decoration]:
if "top" in decorationProperty.lower():
top = int(item[decoration][decorationProperty])
if "left" in decorationProperty.lower():
left = int(item[decoration]
[decorationProperty])
if "width" in decorationProperty.lower():
width = int(item[decoration]
[decorationProperty])
if "height" in decorationProperty.lower():
height = int(item[decoration]
[decorationProperty])
if top is not None and left is not None and width is not None and height is not None:
topLeftX = left
topLeftY = top
bottomRightX = left + width
bottomRightY = top + height
listOfCV2Rectangles.append(
[topLeftX, topLeftY, bottomRightX, bottomRightY])
return listOfCV2Rectangles
except:
# Ignoring exceptions for now so that video can be read and analyzed without post-processing in case of errors
pass
| 55.013889 | 128 | 0.466296 | 299 | 3,961 | 6.160535 | 0.257525 | 0.083605 | 0.108578 | 0.152009 | 0.774159 | 0.751357 | 0.751357 | 0.751357 | 0.695983 | 0.695983 | 0 | 0.008228 | 0.478415 | 3,961 | 71 | 129 | 55.788732 | 0.883349 | 0.098208 | 0 | 0.793651 | 0 | 0 | 0.014588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031746 | false | 0.031746 | 0.015873 | 0 | 0.095238 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 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 | 5 |
67638281cc8660851b17d69d656a072b2daaf2b7 | 257 | py | Python | osparc/api/__init__.py | pcrespov/osparc-simcore-python-client | 3edac609404ccbcb039a1a68cbc7a66c37c2b37e | [
"MIT"
] | 1 | 2020-07-03T20:49:16.000Z | 2020-07-03T20:49:16.000Z | osparc/api/__init__.py | pcrespov/osparc-simcore-python-client | 3edac609404ccbcb039a1a68cbc7a66c37c2b37e | [
"MIT"
] | 5 | 2020-07-05T14:16:35.000Z | 2021-05-25T08:29:27.000Z | osparc/api/__init__.py | pcrespov/osparc-simcore-python-client | 3edac609404ccbcb039a1a68cbc7a66c37c2b37e | [
"MIT"
] | 2 | 2020-07-21T01:55:45.000Z | 2022-01-18T08:56:20.000Z | from __future__ import absolute_import
# flake8: noqa
# import apis into api package
from osparc.api.files_api import FilesApi
from osparc.api.meta_api import MetaApi
from osparc.api.solvers_api import SolversApi
from osparc.api.users_api import UsersApi
| 25.7 | 45 | 0.836576 | 40 | 257 | 5.15 | 0.475 | 0.194175 | 0.252427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004425 | 0.120623 | 257 | 9 | 46 | 28.555556 | 0.90708 | 0.159533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 5 |
676ef0928d2f47e4a7cbaa1fd599f72ab99fae5b | 324 | py | Python | noscrapy/tests/test_utils_json.py | hwms/noscrapy | c7ccdb0f842eaa482c08b0932901c8a0a283f754 | [
"MIT"
] | 3 | 2017-05-04T03:25:16.000Z | 2017-12-24T10:08:17.000Z | noscrapy/tests/test_utils_json.py | hwms/noscrapy | c7ccdb0f842eaa482c08b0932901c8a0a283f754 | [
"MIT"
] | null | null | null | noscrapy/tests/test_utils_json.py | hwms/noscrapy | c7ccdb0f842eaa482c08b0932901c8a0a283f754 | [
"MIT"
] | null | null | null | from noscrapy.utils import json
def test_dumps():
class Foo(object):
def __getstate__(self):
return {1: 2}
foo = Foo()
assert json.dumps(foo) == '{"1": 2}'
assert json.dumps(Foo) == '"<class \'noscrapy.tests.test_utils_json.test_dumps.<locals>.Foo\'>"'
assert json.dumps(1) == '1'
| 24.923077 | 100 | 0.598765 | 44 | 324 | 4.227273 | 0.431818 | 0.16129 | 0.241935 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023904 | 0.225309 | 324 | 12 | 101 | 27 | 0.717131 | 0 | 0 | 0 | 0 | 0 | 0.061728 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
678b69726250512226c81bece762858028d757f2 | 325 | py | Python | iexexamples/__init__.py | iexcloud/examples | 86f4610c6941d2ca02c588ea92937559119511c1 | [
"Apache-2.0"
] | 6 | 2021-07-26T14:53:40.000Z | 2022-03-31T20:55:10.000Z | iexexamples/__init__.py | iexcloud/examples | 86f4610c6941d2ca02c588ea92937559119511c1 | [
"Apache-2.0"
] | 3 | 2021-07-26T15:16:45.000Z | 2021-09-09T15:22:53.000Z | iexexamples/__init__.py | iexcloud/examples | 86f4610c6941d2ca02c588ea92937559119511c1 | [
"Apache-2.0"
] | 3 | 2021-07-26T14:53:43.000Z | 2021-12-02T02:03:39.000Z | # *****************************************************************************
#
# Copyright (c) 2021, the iexexamples authors.
#
# This file is part of the iexexamples library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
from ._version import __version__
| 32.5 | 79 | 0.569231 | 38 | 325 | 4.736842 | 0.710526 | 0.155556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021583 | 0.144615 | 325 | 9 | 80 | 36.111111 | 0.625899 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
67ae0fdc998e73d6475b9a8b561ffcbc3b643958 | 237 | py | Python | samples/LuceneInAction/AdvancedQueryParserTest.py | romanchyla/pylucene-trunk | 990079ff0c76b972ce5ef2bac9b85334a0a1f27a | [
"Apache-2.0"
] | 15 | 2015-05-21T09:28:01.000Z | 2022-03-18T23:41:49.000Z | samples/LuceneInAction/AdvancedQueryParserTest.py | fnp/pylucene | fb16ac375de5479dec3919a5559cda02c899e387 | [
"Apache-2.0"
] | 1 | 2021-09-30T03:59:43.000Z | 2021-09-30T03:59:43.000Z | samples/LuceneInAction/AdvancedQueryParserTest.py | romanchyla/pylucene-trunk | 990079ff0c76b972ce5ef2bac9b85334a0a1f27a | [
"Apache-2.0"
] | 13 | 2015-04-18T23:05:11.000Z | 2021-11-29T21:23:26.000Z |
import os, sys, unittest, lucene
lucene.initVM()
sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
import lia.extsearch.queryparser.AdvancedQueryParserTest
unittest.main(lia.extsearch.queryparser.AdvancedQueryParserTest)
| 26.333333 | 64 | 0.818565 | 30 | 237 | 6.466667 | 0.566667 | 0.061856 | 0.237113 | 0.474227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004464 | 0.054852 | 237 | 8 | 65 | 29.625 | 0.861607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
67b6984df320b4320d8f5d5be585857764a4e730 | 56 | py | Python | first.py | 571034553/test_1 | 8e03ee826dee6959021b1e737aca814bd1ca197c | [
"MIT"
] | null | null | null | first.py | 571034553/test_1 | 8e03ee826dee6959021b1e737aca814bd1ca197c | [
"MIT"
] | null | null | null | first.py | 571034553/test_1 | 8e03ee826dee6959021b1e737aca814bd1ca197c | [
"MIT"
] | null | null | null | b = 3
c = 2
a = 1
b = 2
c = 3
d = 4
e = 5
wangyun = 'a'
| 6.222222 | 13 | 0.392857 | 16 | 56 | 1.375 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21875 | 0.428571 | 56 | 8 | 14 | 7 | 0.46875 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
67dabd8a324e20063fd7843e47df30b944e5ab0f | 145 | py | Python | dash_docs/chapters/dash_enterprise/__init__.py | houtanb/dash-docs | daf5f555117ff5ba53d7d5161c5f08e8c270cad9 | [
"MIT"
] | 1 | 2021-01-25T09:19:49.000Z | 2021-01-25T09:19:49.000Z | dash_docs/chapters/dash_enterprise/__init__.py | houtanb/dash-docs | daf5f555117ff5ba53d7d5161c5f08e8c270cad9 | [
"MIT"
] | null | null | null | dash_docs/chapters/dash_enterprise/__init__.py | houtanb/dash-docs | daf5f555117ff5ba53d7d5161c5f08e8c270cad9 | [
"MIT"
] | null | null | null | from .import index
from .import dash_enterprise_chapters
from .import application_structure
from .import continuous_integration
from .import api
| 24.166667 | 37 | 0.862069 | 19 | 145 | 6.368421 | 0.578947 | 0.413223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 145 | 5 | 38 | 29 | 0.930769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
67e3c49d1c66fbb1877d8435b5e4794f20c8d659 | 27 | py | Python | tensorclan/model/zoo/__init__.py | extensive-vision-ai/TheTensorClan | 54b50fcb8f309909478547f37f171d022a838167 | [
"MIT"
] | null | null | null | tensorclan/model/zoo/__init__.py | extensive-vision-ai/TheTensorClan | 54b50fcb8f309909478547f37f171d022a838167 | [
"MIT"
] | 11 | 2020-07-31T02:26:29.000Z | 2022-02-08T18:59:59.000Z | tensorclan/model/zoo/__init__.py | extensive-vision-ai/TheTensorClan | 54b50fcb8f309909478547f37f171d022a838167 | [
"MIT"
] | 1 | 2020-11-24T17:02:54.000Z | 2020-11-24T17:02:54.000Z | from .mnist import MNISTV1
| 13.5 | 26 | 0.814815 | 4 | 27 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.148148 | 27 | 1 | 27 | 27 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
67f7a315de06436a3f3ef2cddca8becc4e983c2f | 144 | py | Python | app/test/jupyter_server_config.py | krassowski/retrolab | c2daaae20e6a0e8bbd2c140e3ca3151a9b81be5b | [
"BSD-3-Clause"
] | 81 | 2020-12-08T08:13:54.000Z | 2021-05-17T15:44:37.000Z | app/test/jupyter_server_config.py | krassowski/retrolab | c2daaae20e6a0e8bbd2c140e3ca3151a9b81be5b | [
"BSD-3-Clause"
] | 73 | 2020-12-07T17:30:56.000Z | 2021-05-19T08:51:18.000Z | app/test/jupyter_server_config.py | admariner/retrolab | 540a45ae553364386111991a4e6559c93914937b | [
"BSD-3-Clause"
] | 9 | 2020-12-11T11:13:20.000Z | 2021-05-06T06:29:34.000Z | c.ServerApp.port = 8889
c.ServerApp.token = ""
c.ServerApp.password = ""
c.ServerApp.disable_check_xsrf = True
c.ServerApp.open_browser = False
| 24 | 37 | 0.763889 | 21 | 144 | 5.095238 | 0.619048 | 0.46729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031008 | 0.104167 | 144 | 5 | 38 | 28.8 | 0.79845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 5 |
db0096b334b42e9653f9d449517f7c52802a7b65 | 270 | py | Python | src/sensu_go/resources/v2.py | xlab-steampunk/sensu-go-python | 8dbd7e554047341bb61327d80da3e41172924831 | [
"MIT"
] | 1 | 2021-04-11T16:04:40.000Z | 2021-04-11T16:04:40.000Z | src/sensu_go/resources/v2.py | xlab-steampunk/sensu-go-python | 8dbd7e554047341bb61327d80da3e41172924831 | [
"MIT"
] | null | null | null | src/sensu_go/resources/v2.py | xlab-steampunk/sensu-go-python | 8dbd7e554047341bb61327d80da3e41172924831 | [
"MIT"
] | null | null | null | # Copyright (c) 2020 XLAB Steampunk
from sensu_go.typing import JSONItem
class V2Mixin:
@staticmethod
def api_to_native(data: JSONItem) -> JSONItem:
return data
@staticmethod
def native_to_api(data: JSONItem) -> JSONItem:
return data
| 19.285714 | 50 | 0.692593 | 33 | 270 | 5.515152 | 0.606061 | 0.164835 | 0.21978 | 0.285714 | 0.32967 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024272 | 0.237037 | 270 | 13 | 51 | 20.769231 | 0.859223 | 0.122222 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.25 | 0.75 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
db0d08968a5a31bc73785ef99ee6cd82876ed4d4 | 1,023 | py | Python | pymtl3/passes/backends/yosys/TranslationImportPass.py | mondO/pymtl3 | 9869dda28c01926cee6da94ebdeac2a210150c62 | [
"BSD-3-Clause"
] | 1 | 2022-01-03T06:22:11.000Z | 2022-01-03T06:22:11.000Z | pymtl3/passes/backends/yosys/TranslationImportPass.py | mondO/pymtl3 | 9869dda28c01926cee6da94ebdeac2a210150c62 | [
"BSD-3-Clause"
] | null | null | null | pymtl3/passes/backends/yosys/TranslationImportPass.py | mondO/pymtl3 | 9869dda28c01926cee6da94ebdeac2a210150c62 | [
"BSD-3-Clause"
] | null | null | null | #=========================================================================
# TranslationImportPass.py
#=========================================================================
# Translate and import components having the `yosys_translate_import`
# attribute.
#
# Author : Peitian Pan
# Date : Aug 6, 2019
from pymtl3.passes.backends.verilog.TranslationImportPass import (
TranslationImportPass as VerilogTranslationImportPass,
)
from .import_.VerilatorImportPass import VerilatorImportPass
from .translation.TranslationPass import TranslationPass
class TranslationImportPass( VerilogTranslationImportPass ):
def get_translation_pass( s ):
return TranslationPass()
def get_import_pass( s ):
return VerilatorImportPass()
def get_flag_name( s ):
return "yosys_translate_import"
def get_translation_flag_name( s ):
return "yosys_translate"
def get_import_flag_name( s ):
return "config_yosys_import"
def get_translation_pass_namespace( s ):
return "_pass_yosys_translation"
| 27.648649 | 74 | 0.668622 | 94 | 1,023 | 7 | 0.393617 | 0.054711 | 0.077508 | 0.068389 | 0.088146 | 0.088146 | 0 | 0 | 0 | 0 | 0 | 0.006749 | 0.130987 | 1,023 | 36 | 75 | 28.416667 | 0.733408 | 0.285435 | 0 | 0 | 0 | 0 | 0.109267 | 0.062241 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.611111 | 0.555556 | 0.333333 | 1.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 5 |
db205b480780ded1f846d216fc5d3e1fb19b3b10 | 120 | py | Python | 001_problem.py | kupresanin99/euler | 85a120e41cf0a526369887453777fdebc795bd2f | [
"MIT"
] | null | null | null | 001_problem.py | kupresanin99/euler | 85a120e41cf0a526369887453777fdebc795bd2f | [
"MIT"
] | null | null | null | 001_problem.py | kupresanin99/euler | 85a120e41cf0a526369887453777fdebc795bd2f | [
"MIT"
] | null | null | null | list_3_5 = []
for i in range(1, 1000):
if (i % 3 == 0) | (i % 5 == 0):
list_3_5.append(i)
print(sum(list_3_5))
| 12 | 33 | 0.525 | 26 | 120 | 2.192308 | 0.538462 | 0.263158 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 0.258333 | 120 | 9 | 34 | 13.333333 | 0.47191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
e1d60b3d4018d7890b19f17bf87e5d7db833d92f | 115 | py | Python | blog/admin.py | meysam81/portfolio_project | 6be3a4ed958b3b7cdb874804444e0d151d5b9afa | [
"MIT"
] | 1 | 2019-09-21T10:05:55.000Z | 2019-09-21T10:05:55.000Z | Python/Django/myportfolio-project/blog/admin.py | MKY01/Portfolio | aab2d184674e376e7bfea89f85987a2bbb296b66 | [
"Apache-2.0"
] | 4 | 2020-05-15T10:37:28.000Z | 2020-08-10T21:23:10.000Z | blog/admin.py | meysam81/portfolio_project | 6be3a4ed958b3b7cdb874804444e0d151d5b9afa | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from .models import Blog
admin.site.register(Blog)
| 16.428571 | 32 | 0.791304 | 17 | 115 | 5.352941 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13913 | 115 | 6 | 33 | 19.166667 | 0.919192 | 0.226087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
e1f31b99a963562c9fc51a13aef6a5454d9105a5 | 107 | py | Python | passmanBackend/vault_backend/tests.py | sharanvarma0/passman-backend | d210fcc43886bd9be40ceaba3411209799cb8476 | [
"BSD-3-Clause"
] | null | null | null | passmanBackend/vault_backend/tests.py | sharanvarma0/passman-backend | d210fcc43886bd9be40ceaba3411209799cb8476 | [
"BSD-3-Clause"
] | null | null | null | passmanBackend/vault_backend/tests.py | sharanvarma0/passman-backend | d210fcc43886bd9be40ceaba3411209799cb8476 | [
"BSD-3-Clause"
] | null | null | null | from django.test import TestCase
# Create your tests here.
# Pending testing. Will do in the near future.
| 21.4 | 46 | 0.766355 | 17 | 107 | 4.823529 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17757 | 107 | 4 | 47 | 26.75 | 0.931818 | 0.635514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
e1f757bdab36a8c2dc3762f3a6e01d4f129c3b37 | 50 | py | Python | test/IECoreHoudini/ops/meshNormalsOp/meshNormalsOp-1.py | gcodebackups/cortex-vfx | 72fa6c6eb3327fce4faf01361c8fcc2e1e892672 | [
"BSD-3-Clause"
] | 5 | 2016-07-26T06:09:28.000Z | 2022-03-07T03:58:51.000Z | test/IECoreHoudini/ops/meshNormalsOp/meshNormalsOp-1.py | turbosun/cortex | 4bdc01a692652cd562f3bfa85f3dae99d07c0b15 | [
"BSD-3-Clause"
] | null | null | null | test/IECoreHoudini/ops/meshNormalsOp/meshNormalsOp-1.py | turbosun/cortex | 4bdc01a692652cd562f3bfa85f3dae99d07c0b15 | [
"BSD-3-Clause"
] | 3 | 2015-03-25T18:45:24.000Z | 2020-02-15T15:37:18.000Z | from IECore import MeshNormalsOp as meshNormalsOp
| 25 | 49 | 0.88 | 6 | 50 | 7.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 50 | 1 | 50 | 50 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
c037761efaba0a9dd01b1e441a5a1f25b6388a2c | 87,165 | py | Python | models_nonconvex_simple/autocorr_bern45-11.py | grossmann-group/pyomo-MINLP-benchmarking | 714f0a0dffd61675649a805683c0627af6b4929e | [
"MIT"
] | 7 | 2019-05-08T19:14:34.000Z | 2021-12-24T00:00:40.000Z | models_nonconvex_simple/autocorr_bern45-11.py | grossmann-group/pyomo-MINLP-benchmarking | 714f0a0dffd61675649a805683c0627af6b4929e | [
"MIT"
] | null | null | null | models_nonconvex_simple/autocorr_bern45-11.py | grossmann-group/pyomo-MINLP-benchmarking | 714f0a0dffd61675649a805683c0627af6b4929e | [
"MIT"
] | 1 | 2019-05-10T18:34:18.000Z | 2019-05-10T18:34:18.000Z | # MINLP written by GAMS Convert at 08/13/20 17:37:49
#
# Equation counts
# Total E G L N X C B
# 1 0 0 1 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc si
# Total cont binary integer sos1 sos2 scont sint
# 46 1 45 0 0 0 0 0
# FX 0 0 0 0 0 0 0 0
#
# Nonzero counts
# Total const NL DLL
# 46 1 45 0
from pyomo.environ import *
model = m = ConcreteModel()
m.b1 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b2 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b3 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b4 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b5 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b6 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b7 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b8 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b9 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b10 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b11 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b12 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b13 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b14 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b15 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b16 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b17 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b18 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b19 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b20 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b21 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b22 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b23 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b24 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b25 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b26 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b27 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b28 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b29 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b30 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b31 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b32 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b33 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b34 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b35 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b36 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b37 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b38 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b39 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b40 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b41 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b42 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b43 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b44 = Var(within=Binary,bounds=(0,1),initialize=0)
m.b45 = Var(within=Binary,bounds=(0,1),initialize=0)
m.x46 = Var(within=Reals,bounds=(None,None),initialize=0)
m.obj = Objective(expr=m.x46, sense=minimize)
m.c1 = Constraint(expr=64*m.b1*m.b2*m.b3*m.b4 + 64*m.b1*m.b2*m.b4*m.b5 + 64*m.b1*m.b2*m.b5*m.b6 + 64*m.b1*m.b2*m.b6*m.b7
+ 64*m.b1*m.b2*m.b7*m.b8 + 64*m.b1*m.b2*m.b8*m.b9 + 64*m.b1*m.b2*m.b9*m.b10 + 64*m.b1*m.b2*m.b10
*m.b11 + 64*m.b1*m.b3*m.b4*m.b6 + 64*m.b1*m.b3*m.b5*m.b7 + 64*m.b1*m.b3*m.b6*m.b8 + 64*m.b1*m.b3*
m.b7*m.b9 + 64*m.b1*m.b3*m.b8*m.b10 + 64*m.b1*m.b3*m.b9*m.b11 + 64*m.b1*m.b4*m.b5*m.b8 + 64*m.b1*
m.b4*m.b6*m.b9 + 64*m.b1*m.b4*m.b7*m.b10 + 64*m.b1*m.b4*m.b8*m.b11 + 64*m.b1*m.b5*m.b6*m.b10 + 64
*m.b1*m.b5*m.b7*m.b11 + 128*m.b2*m.b3*m.b4*m.b5 + 128*m.b2*m.b3*m.b5*m.b6 + 128*m.b2*m.b3*m.b6*
m.b7 + 128*m.b2*m.b3*m.b7*m.b8 + 128*m.b2*m.b3*m.b8*m.b9 + 128*m.b2*m.b3*m.b9*m.b10 + 128*m.b2*
m.b3*m.b10*m.b11 + 64*m.b2*m.b3*m.b11*m.b12 + 128*m.b2*m.b4*m.b5*m.b7 + 128*m.b2*m.b4*m.b6*m.b8
+ 128*m.b2*m.b4*m.b7*m.b9 + 128*m.b2*m.b4*m.b8*m.b10 + 128*m.b2*m.b4*m.b9*m.b11 + 64*m.b2*m.b4*
m.b10*m.b12 + 128*m.b2*m.b5*m.b6*m.b9 + 128*m.b2*m.b5*m.b7*m.b10 + 128*m.b2*m.b5*m.b8*m.b11 + 64*
m.b2*m.b5*m.b9*m.b12 + 128*m.b2*m.b6*m.b7*m.b11 + 64*m.b2*m.b6*m.b8*m.b12 + 192*m.b3*m.b4*m.b5*
m.b6 + 192*m.b3*m.b4*m.b6*m.b7 + 192*m.b3*m.b4*m.b7*m.b8 + 192*m.b3*m.b4*m.b8*m.b9 + 192*m.b3*
m.b4*m.b9*m.b10 + 192*m.b3*m.b4*m.b10*m.b11 + 128*m.b3*m.b4*m.b11*m.b12 + 64*m.b3*m.b4*m.b12*
m.b13 + 192*m.b3*m.b5*m.b6*m.b8 + 192*m.b3*m.b5*m.b7*m.b9 + 192*m.b3*m.b5*m.b8*m.b10 + 192*m.b3*
m.b5*m.b9*m.b11 + 128*m.b3*m.b5*m.b10*m.b12 + 64*m.b3*m.b5*m.b11*m.b13 + 192*m.b3*m.b6*m.b7*m.b10
+ 192*m.b3*m.b6*m.b8*m.b11 + 128*m.b3*m.b6*m.b9*m.b12 + 64*m.b3*m.b6*m.b10*m.b13 + 128*m.b3*m.b7
*m.b8*m.b12 + 64*m.b3*m.b7*m.b9*m.b13 + 256*m.b4*m.b5*m.b6*m.b7 + 256*m.b4*m.b5*m.b7*m.b8 + 256*
m.b4*m.b5*m.b8*m.b9 + 256*m.b4*m.b5*m.b9*m.b10 + 256*m.b4*m.b5*m.b10*m.b11 + 192*m.b4*m.b5*m.b11*
m.b12 + 128*m.b4*m.b5*m.b12*m.b13 + 64*m.b4*m.b5*m.b13*m.b14 + 256*m.b4*m.b6*m.b7*m.b9 + 256*m.b4
*m.b6*m.b8*m.b10 + 256*m.b4*m.b6*m.b9*m.b11 + 192*m.b4*m.b6*m.b10*m.b12 + 128*m.b4*m.b6*m.b11*
m.b13 + 64*m.b4*m.b6*m.b12*m.b14 + 256*m.b4*m.b7*m.b8*m.b11 + 192*m.b4*m.b7*m.b9*m.b12 + 128*m.b4
*m.b7*m.b10*m.b13 + 64*m.b4*m.b7*m.b11*m.b14 + 128*m.b4*m.b8*m.b9*m.b13 + 64*m.b4*m.b8*m.b10*
m.b14 + 320*m.b5*m.b6*m.b7*m.b8 + 320*m.b5*m.b6*m.b8*m.b9 + 320*m.b5*m.b6*m.b9*m.b10 + 320*m.b5*
m.b6*m.b10*m.b11 + 256*m.b5*m.b6*m.b11*m.b12 + 192*m.b5*m.b6*m.b12*m.b13 + 128*m.b5*m.b6*m.b13*
m.b14 + 64*m.b5*m.b6*m.b14*m.b15 + 320*m.b5*m.b7*m.b8*m.b10 + 320*m.b5*m.b7*m.b9*m.b11 + 256*m.b5
*m.b7*m.b10*m.b12 + 192*m.b5*m.b7*m.b11*m.b13 + 128*m.b5*m.b7*m.b12*m.b14 + 64*m.b5*m.b7*m.b13*
m.b15 + 256*m.b5*m.b8*m.b9*m.b12 + 192*m.b5*m.b8*m.b10*m.b13 + 128*m.b5*m.b8*m.b11*m.b14 + 64*
m.b5*m.b8*m.b12*m.b15 + 128*m.b5*m.b9*m.b10*m.b14 + 64*m.b5*m.b9*m.b11*m.b15 + 384*m.b6*m.b7*m.b8
*m.b9 + 384*m.b6*m.b7*m.b9*m.b10 + 384*m.b6*m.b7*m.b10*m.b11 + 320*m.b6*m.b7*m.b11*m.b12 + 256*
m.b6*m.b7*m.b12*m.b13 + 192*m.b6*m.b7*m.b13*m.b14 + 128*m.b6*m.b7*m.b14*m.b15 + 64*m.b6*m.b7*
m.b15*m.b16 + 384*m.b6*m.b8*m.b9*m.b11 + 320*m.b6*m.b8*m.b10*m.b12 + 256*m.b6*m.b8*m.b11*m.b13 +
192*m.b6*m.b8*m.b12*m.b14 + 128*m.b6*m.b8*m.b13*m.b15 + 64*m.b6*m.b8*m.b14*m.b16 + 256*m.b6*m.b9*
m.b10*m.b13 + 192*m.b6*m.b9*m.b11*m.b14 + 128*m.b6*m.b9*m.b12*m.b15 + 64*m.b6*m.b9*m.b13*m.b16 +
128*m.b6*m.b10*m.b11*m.b15 + 64*m.b6*m.b10*m.b12*m.b16 + 448*m.b7*m.b8*m.b9*m.b10 + 448*m.b7*m.b8
*m.b10*m.b11 + 384*m.b7*m.b8*m.b11*m.b12 + 320*m.b7*m.b8*m.b12*m.b13 + 256*m.b7*m.b8*m.b13*m.b14
+ 192*m.b7*m.b8*m.b14*m.b15 + 128*m.b7*m.b8*m.b15*m.b16 + 64*m.b7*m.b8*m.b16*m.b17 + 384*m.b7*
m.b9*m.b10*m.b12 + 320*m.b7*m.b9*m.b11*m.b13 + 256*m.b7*m.b9*m.b12*m.b14 + 192*m.b7*m.b9*m.b13*
m.b15 + 128*m.b7*m.b9*m.b14*m.b16 + 64*m.b7*m.b9*m.b15*m.b17 + 256*m.b7*m.b10*m.b11*m.b14 + 192*
m.b7*m.b10*m.b12*m.b15 + 128*m.b7*m.b10*m.b13*m.b16 + 64*m.b7*m.b10*m.b14*m.b17 + 128*m.b7*m.b11*
m.b12*m.b16 + 64*m.b7*m.b11*m.b13*m.b17 + 512*m.b8*m.b9*m.b10*m.b11 + 448*m.b8*m.b9*m.b11*m.b12
+ 384*m.b8*m.b9*m.b12*m.b13 + 320*m.b8*m.b9*m.b13*m.b14 + 256*m.b8*m.b9*m.b14*m.b15 + 192*m.b8*
m.b9*m.b15*m.b16 + 128*m.b8*m.b9*m.b16*m.b17 + 64*m.b8*m.b9*m.b17*m.b18 + 384*m.b8*m.b10*m.b11*
m.b13 + 320*m.b8*m.b10*m.b12*m.b14 + 256*m.b8*m.b10*m.b13*m.b15 + 192*m.b8*m.b10*m.b14*m.b16 +
128*m.b8*m.b10*m.b15*m.b17 + 64*m.b8*m.b10*m.b16*m.b18 + 256*m.b8*m.b11*m.b12*m.b15 + 192*m.b8*
m.b11*m.b13*m.b16 + 128*m.b8*m.b11*m.b14*m.b17 + 64*m.b8*m.b11*m.b15*m.b18 + 128*m.b8*m.b12*m.b13
*m.b17 + 64*m.b8*m.b12*m.b14*m.b18 + 512*m.b9*m.b10*m.b11*m.b12 + 448*m.b9*m.b10*m.b12*m.b13 +
384*m.b9*m.b10*m.b13*m.b14 + 320*m.b9*m.b10*m.b14*m.b15 + 256*m.b9*m.b10*m.b15*m.b16 + 192*m.b9*
m.b10*m.b16*m.b17 + 128*m.b9*m.b10*m.b17*m.b18 + 64*m.b9*m.b10*m.b18*m.b19 + 384*m.b9*m.b11*m.b12
*m.b14 + 320*m.b9*m.b11*m.b13*m.b15 + 256*m.b9*m.b11*m.b14*m.b16 + 192*m.b9*m.b11*m.b15*m.b17 +
128*m.b9*m.b11*m.b16*m.b18 + 64*m.b9*m.b11*m.b17*m.b19 + 256*m.b9*m.b12*m.b13*m.b16 + 192*m.b9*
m.b12*m.b14*m.b17 + 128*m.b9*m.b12*m.b15*m.b18 + 64*m.b9*m.b12*m.b16*m.b19 + 128*m.b9*m.b13*m.b14
*m.b18 + 64*m.b9*m.b13*m.b15*m.b19 + 512*m.b10*m.b11*m.b12*m.b13 + 448*m.b10*m.b11*m.b13*m.b14 +
384*m.b10*m.b11*m.b14*m.b15 + 320*m.b10*m.b11*m.b15*m.b16 + 256*m.b10*m.b11*m.b16*m.b17 + 192*
m.b10*m.b11*m.b17*m.b18 + 128*m.b10*m.b11*m.b18*m.b19 + 64*m.b10*m.b11*m.b19*m.b20 + 384*m.b10*
m.b12*m.b13*m.b15 + 320*m.b10*m.b12*m.b14*m.b16 + 256*m.b10*m.b12*m.b15*m.b17 + 192*m.b10*m.b12*
m.b16*m.b18 + 128*m.b10*m.b12*m.b17*m.b19 + 64*m.b10*m.b12*m.b18*m.b20 + 256*m.b10*m.b13*m.b14*
m.b17 + 192*m.b10*m.b13*m.b15*m.b18 + 128*m.b10*m.b13*m.b16*m.b19 + 64*m.b10*m.b13*m.b17*m.b20 +
128*m.b10*m.b14*m.b15*m.b19 + 64*m.b10*m.b14*m.b16*m.b20 + 512*m.b11*m.b12*m.b13*m.b14 + 448*
m.b11*m.b12*m.b14*m.b15 + 384*m.b11*m.b12*m.b15*m.b16 + 320*m.b11*m.b12*m.b16*m.b17 + 256*m.b11*
m.b12*m.b17*m.b18 + 192*m.b11*m.b12*m.b18*m.b19 + 128*m.b11*m.b12*m.b19*m.b20 + 64*m.b11*m.b12*
m.b20*m.b21 + 384*m.b11*m.b13*m.b14*m.b16 + 320*m.b11*m.b13*m.b15*m.b17 + 256*m.b11*m.b13*m.b16*
m.b18 + 192*m.b11*m.b13*m.b17*m.b19 + 128*m.b11*m.b13*m.b18*m.b20 + 64*m.b11*m.b13*m.b19*m.b21 +
256*m.b11*m.b14*m.b15*m.b18 + 192*m.b11*m.b14*m.b16*m.b19 + 128*m.b11*m.b14*m.b17*m.b20 + 64*
m.b11*m.b14*m.b18*m.b21 + 128*m.b11*m.b15*m.b16*m.b20 + 64*m.b11*m.b15*m.b17*m.b21 + 512*m.b12*
m.b13*m.b14*m.b15 + 448*m.b12*m.b13*m.b15*m.b16 + 384*m.b12*m.b13*m.b16*m.b17 + 320*m.b12*m.b13*
m.b17*m.b18 + 256*m.b12*m.b13*m.b18*m.b19 + 192*m.b12*m.b13*m.b19*m.b20 + 128*m.b12*m.b13*m.b20*
m.b21 + 64*m.b12*m.b13*m.b21*m.b22 + 384*m.b12*m.b14*m.b15*m.b17 + 320*m.b12*m.b14*m.b16*m.b18 +
256*m.b12*m.b14*m.b17*m.b19 + 192*m.b12*m.b14*m.b18*m.b20 + 128*m.b12*m.b14*m.b19*m.b21 + 64*
m.b12*m.b14*m.b20*m.b22 + 256*m.b12*m.b15*m.b16*m.b19 + 192*m.b12*m.b15*m.b17*m.b20 + 128*m.b12*
m.b15*m.b18*m.b21 + 64*m.b12*m.b15*m.b19*m.b22 + 128*m.b12*m.b16*m.b17*m.b21 + 64*m.b12*m.b16*
m.b18*m.b22 + 512*m.b13*m.b14*m.b15*m.b16 + 448*m.b13*m.b14*m.b16*m.b17 + 384*m.b13*m.b14*m.b17*
m.b18 + 320*m.b13*m.b14*m.b18*m.b19 + 256*m.b13*m.b14*m.b19*m.b20 + 192*m.b13*m.b14*m.b20*m.b21
+ 128*m.b13*m.b14*m.b21*m.b22 + 64*m.b13*m.b14*m.b22*m.b23 + 384*m.b13*m.b15*m.b16*m.b18 + 320*
m.b13*m.b15*m.b17*m.b19 + 256*m.b13*m.b15*m.b18*m.b20 + 192*m.b13*m.b15*m.b19*m.b21 + 128*m.b13*
m.b15*m.b20*m.b22 + 64*m.b13*m.b15*m.b21*m.b23 + 256*m.b13*m.b16*m.b17*m.b20 + 192*m.b13*m.b16*
m.b18*m.b21 + 128*m.b13*m.b16*m.b19*m.b22 + 64*m.b13*m.b16*m.b20*m.b23 + 128*m.b13*m.b17*m.b18*
m.b22 + 64*m.b13*m.b17*m.b19*m.b23 + 512*m.b14*m.b15*m.b16*m.b17 + 448*m.b14*m.b15*m.b17*m.b18 +
384*m.b14*m.b15*m.b18*m.b19 + 320*m.b14*m.b15*m.b19*m.b20 + 256*m.b14*m.b15*m.b20*m.b21 + 192*
m.b14*m.b15*m.b21*m.b22 + 128*m.b14*m.b15*m.b22*m.b23 + 64*m.b14*m.b15*m.b23*m.b24 + 384*m.b14*
m.b16*m.b17*m.b19 + 320*m.b14*m.b16*m.b18*m.b20 + 256*m.b14*m.b16*m.b19*m.b21 + 192*m.b14*m.b16*
m.b20*m.b22 + 128*m.b14*m.b16*m.b21*m.b23 + 64*m.b14*m.b16*m.b22*m.b24 + 256*m.b14*m.b17*m.b18*
m.b21 + 192*m.b14*m.b17*m.b19*m.b22 + 128*m.b14*m.b17*m.b20*m.b23 + 64*m.b14*m.b17*m.b21*m.b24 +
128*m.b14*m.b18*m.b19*m.b23 + 64*m.b14*m.b18*m.b20*m.b24 + 512*m.b15*m.b16*m.b17*m.b18 + 448*
m.b15*m.b16*m.b18*m.b19 + 384*m.b15*m.b16*m.b19*m.b20 + 320*m.b15*m.b16*m.b20*m.b21 + 256*m.b15*
m.b16*m.b21*m.b22 + 192*m.b15*m.b16*m.b22*m.b23 + 128*m.b15*m.b16*m.b23*m.b24 + 64*m.b15*m.b16*
m.b24*m.b25 + 384*m.b15*m.b17*m.b18*m.b20 + 320*m.b15*m.b17*m.b19*m.b21 + 256*m.b15*m.b17*m.b20*
m.b22 + 192*m.b15*m.b17*m.b21*m.b23 + 128*m.b15*m.b17*m.b22*m.b24 + 64*m.b15*m.b17*m.b23*m.b25 +
256*m.b15*m.b18*m.b19*m.b22 + 192*m.b15*m.b18*m.b20*m.b23 + 128*m.b15*m.b18*m.b21*m.b24 + 64*
m.b15*m.b18*m.b22*m.b25 + 128*m.b15*m.b19*m.b20*m.b24 + 64*m.b15*m.b19*m.b21*m.b25 + 512*m.b16*
m.b17*m.b18*m.b19 + 448*m.b16*m.b17*m.b19*m.b20 + 384*m.b16*m.b17*m.b20*m.b21 + 320*m.b16*m.b17*
m.b21*m.b22 + 256*m.b16*m.b17*m.b22*m.b23 + 192*m.b16*m.b17*m.b23*m.b24 + 128*m.b16*m.b17*m.b24*
m.b25 + 64*m.b16*m.b17*m.b25*m.b26 + 384*m.b16*m.b18*m.b19*m.b21 + 320*m.b16*m.b18*m.b20*m.b22 +
256*m.b16*m.b18*m.b21*m.b23 + 192*m.b16*m.b18*m.b22*m.b24 + 128*m.b16*m.b18*m.b23*m.b25 + 64*
m.b16*m.b18*m.b24*m.b26 + 256*m.b16*m.b19*m.b20*m.b23 + 192*m.b16*m.b19*m.b21*m.b24 + 128*m.b16*
m.b19*m.b22*m.b25 + 64*m.b16*m.b19*m.b23*m.b26 + 128*m.b16*m.b20*m.b21*m.b25 + 64*m.b16*m.b20*
m.b22*m.b26 + 512*m.b17*m.b18*m.b19*m.b20 + 448*m.b17*m.b18*m.b20*m.b21 + 384*m.b17*m.b18*m.b21*
m.b22 + 320*m.b17*m.b18*m.b22*m.b23 + 256*m.b17*m.b18*m.b23*m.b24 + 192*m.b17*m.b18*m.b24*m.b25
+ 128*m.b17*m.b18*m.b25*m.b26 + 64*m.b17*m.b18*m.b26*m.b27 + 384*m.b17*m.b19*m.b20*m.b22 + 320*
m.b17*m.b19*m.b21*m.b23 + 256*m.b17*m.b19*m.b22*m.b24 + 192*m.b17*m.b19*m.b23*m.b25 + 128*m.b17*
m.b19*m.b24*m.b26 + 64*m.b17*m.b19*m.b25*m.b27 + 256*m.b17*m.b20*m.b21*m.b24 + 192*m.b17*m.b20*
m.b22*m.b25 + 128*m.b17*m.b20*m.b23*m.b26 + 64*m.b17*m.b20*m.b24*m.b27 + 128*m.b17*m.b21*m.b22*
m.b26 + 64*m.b17*m.b21*m.b23*m.b27 + 512*m.b18*m.b19*m.b20*m.b21 + 448*m.b18*m.b19*m.b21*m.b22 +
384*m.b18*m.b19*m.b22*m.b23 + 320*m.b18*m.b19*m.b23*m.b24 + 256*m.b18*m.b19*m.b24*m.b25 + 192*
m.b18*m.b19*m.b25*m.b26 + 128*m.b18*m.b19*m.b26*m.b27 + 64*m.b18*m.b19*m.b27*m.b28 + 384*m.b18*
m.b20*m.b21*m.b23 + 320*m.b18*m.b20*m.b22*m.b24 + 256*m.b18*m.b20*m.b23*m.b25 + 192*m.b18*m.b20*
m.b24*m.b26 + 128*m.b18*m.b20*m.b25*m.b27 + 64*m.b18*m.b20*m.b26*m.b28 + 256*m.b18*m.b21*m.b22*
m.b25 + 192*m.b18*m.b21*m.b23*m.b26 + 128*m.b18*m.b21*m.b24*m.b27 + 64*m.b18*m.b21*m.b25*m.b28 +
128*m.b18*m.b22*m.b23*m.b27 + 64*m.b18*m.b22*m.b24*m.b28 + 512*m.b19*m.b20*m.b21*m.b22 + 448*
m.b19*m.b20*m.b22*m.b23 + 384*m.b19*m.b20*m.b23*m.b24 + 320*m.b19*m.b20*m.b24*m.b25 + 256*m.b19*
m.b20*m.b25*m.b26 + 192*m.b19*m.b20*m.b26*m.b27 + 128*m.b19*m.b20*m.b27*m.b28 + 64*m.b19*m.b20*
m.b28*m.b29 + 384*m.b19*m.b21*m.b22*m.b24 + 320*m.b19*m.b21*m.b23*m.b25 + 256*m.b19*m.b21*m.b24*
m.b26 + 192*m.b19*m.b21*m.b25*m.b27 + 128*m.b19*m.b21*m.b26*m.b28 + 64*m.b19*m.b21*m.b27*m.b29 +
256*m.b19*m.b22*m.b23*m.b26 + 192*m.b19*m.b22*m.b24*m.b27 + 128*m.b19*m.b22*m.b25*m.b28 + 64*
m.b19*m.b22*m.b26*m.b29 + 128*m.b19*m.b23*m.b24*m.b28 + 64*m.b19*m.b23*m.b25*m.b29 + 512*m.b20*
m.b21*m.b22*m.b23 + 448*m.b20*m.b21*m.b23*m.b24 + 384*m.b20*m.b21*m.b24*m.b25 + 320*m.b20*m.b21*
m.b25*m.b26 + 256*m.b20*m.b21*m.b26*m.b27 + 192*m.b20*m.b21*m.b27*m.b28 + 128*m.b20*m.b21*m.b28*
m.b29 + 64*m.b20*m.b21*m.b29*m.b30 + 384*m.b20*m.b22*m.b23*m.b25 + 320*m.b20*m.b22*m.b24*m.b26 +
256*m.b20*m.b22*m.b25*m.b27 + 192*m.b20*m.b22*m.b26*m.b28 + 128*m.b20*m.b22*m.b27*m.b29 + 64*
m.b20*m.b22*m.b28*m.b30 + 256*m.b20*m.b23*m.b24*m.b27 + 192*m.b20*m.b23*m.b25*m.b28 + 128*m.b20*
m.b23*m.b26*m.b29 + 64*m.b20*m.b23*m.b27*m.b30 + 128*m.b20*m.b24*m.b25*m.b29 + 64*m.b20*m.b24*
m.b26*m.b30 + 512*m.b21*m.b22*m.b23*m.b24 + 448*m.b21*m.b22*m.b24*m.b25 + 384*m.b21*m.b22*m.b25*
m.b26 + 320*m.b21*m.b22*m.b26*m.b27 + 256*m.b21*m.b22*m.b27*m.b28 + 192*m.b21*m.b22*m.b28*m.b29
+ 128*m.b21*m.b22*m.b29*m.b30 + 64*m.b21*m.b22*m.b30*m.b31 + 384*m.b21*m.b23*m.b24*m.b26 + 320*
m.b21*m.b23*m.b25*m.b27 + 256*m.b21*m.b23*m.b26*m.b28 + 192*m.b21*m.b23*m.b27*m.b29 + 128*m.b21*
m.b23*m.b28*m.b30 + 64*m.b21*m.b23*m.b29*m.b31 + 256*m.b21*m.b24*m.b25*m.b28 + 192*m.b21*m.b24*
m.b26*m.b29 + 128*m.b21*m.b24*m.b27*m.b30 + 64*m.b21*m.b24*m.b28*m.b31 + 128*m.b21*m.b25*m.b26*
m.b30 + 64*m.b21*m.b25*m.b27*m.b31 + 512*m.b22*m.b23*m.b24*m.b25 + 448*m.b22*m.b23*m.b25*m.b26 +
384*m.b22*m.b23*m.b26*m.b27 + 320*m.b22*m.b23*m.b27*m.b28 + 256*m.b22*m.b23*m.b28*m.b29 + 192*
m.b22*m.b23*m.b29*m.b30 + 128*m.b22*m.b23*m.b30*m.b31 + 64*m.b22*m.b23*m.b31*m.b32 + 384*m.b22*
m.b24*m.b25*m.b27 + 320*m.b22*m.b24*m.b26*m.b28 + 256*m.b22*m.b24*m.b27*m.b29 + 192*m.b22*m.b24*
m.b28*m.b30 + 128*m.b22*m.b24*m.b29*m.b31 + 64*m.b22*m.b24*m.b30*m.b32 + 256*m.b22*m.b25*m.b26*
m.b29 + 192*m.b22*m.b25*m.b27*m.b30 + 128*m.b22*m.b25*m.b28*m.b31 + 64*m.b22*m.b25*m.b29*m.b32 +
128*m.b22*m.b26*m.b27*m.b31 + 64*m.b22*m.b26*m.b28*m.b32 + 512*m.b23*m.b24*m.b25*m.b26 + 448*
m.b23*m.b24*m.b26*m.b27 + 384*m.b23*m.b24*m.b27*m.b28 + 320*m.b23*m.b24*m.b28*m.b29 + 256*m.b23*
m.b24*m.b29*m.b30 + 192*m.b23*m.b24*m.b30*m.b31 + 128*m.b23*m.b24*m.b31*m.b32 + 64*m.b23*m.b24*
m.b32*m.b33 + 384*m.b23*m.b25*m.b26*m.b28 + 320*m.b23*m.b25*m.b27*m.b29 + 256*m.b23*m.b25*m.b28*
m.b30 + 192*m.b23*m.b25*m.b29*m.b31 + 128*m.b23*m.b25*m.b30*m.b32 + 64*m.b23*m.b25*m.b31*m.b33 +
256*m.b23*m.b26*m.b27*m.b30 + 192*m.b23*m.b26*m.b28*m.b31 + 128*m.b23*m.b26*m.b29*m.b32 + 64*
m.b23*m.b26*m.b30*m.b33 + 128*m.b23*m.b27*m.b28*m.b32 + 64*m.b23*m.b27*m.b29*m.b33 + 512*m.b24*
m.b25*m.b26*m.b27 + 448*m.b24*m.b25*m.b27*m.b28 + 384*m.b24*m.b25*m.b28*m.b29 + 320*m.b24*m.b25*
m.b29*m.b30 + 256*m.b24*m.b25*m.b30*m.b31 + 192*m.b24*m.b25*m.b31*m.b32 + 128*m.b24*m.b25*m.b32*
m.b33 + 64*m.b24*m.b25*m.b33*m.b34 + 384*m.b24*m.b26*m.b27*m.b29 + 320*m.b24*m.b26*m.b28*m.b30 +
256*m.b24*m.b26*m.b29*m.b31 + 192*m.b24*m.b26*m.b30*m.b32 + 128*m.b24*m.b26*m.b31*m.b33 + 64*
m.b24*m.b26*m.b32*m.b34 + 256*m.b24*m.b27*m.b28*m.b31 + 192*m.b24*m.b27*m.b29*m.b32 + 128*m.b24*
m.b27*m.b30*m.b33 + 64*m.b24*m.b27*m.b31*m.b34 + 128*m.b24*m.b28*m.b29*m.b33 + 64*m.b24*m.b28*
m.b30*m.b34 + 512*m.b25*m.b26*m.b27*m.b28 + 448*m.b25*m.b26*m.b28*m.b29 + 384*m.b25*m.b26*m.b29*
m.b30 + 320*m.b25*m.b26*m.b30*m.b31 + 256*m.b25*m.b26*m.b31*m.b32 + 192*m.b25*m.b26*m.b32*m.b33
+ 128*m.b25*m.b26*m.b33*m.b34 + 64*m.b25*m.b26*m.b34*m.b35 + 384*m.b25*m.b27*m.b28*m.b30 + 320*
m.b25*m.b27*m.b29*m.b31 + 256*m.b25*m.b27*m.b30*m.b32 + 192*m.b25*m.b27*m.b31*m.b33 + 128*m.b25*
m.b27*m.b32*m.b34 + 64*m.b25*m.b27*m.b33*m.b35 + 256*m.b25*m.b28*m.b29*m.b32 + 192*m.b25*m.b28*
m.b30*m.b33 + 128*m.b25*m.b28*m.b31*m.b34 + 64*m.b25*m.b28*m.b32*m.b35 + 128*m.b25*m.b29*m.b30*
m.b34 + 64*m.b25*m.b29*m.b31*m.b35 + 512*m.b26*m.b27*m.b28*m.b29 + 448*m.b26*m.b27*m.b29*m.b30 +
384*m.b26*m.b27*m.b30*m.b31 + 320*m.b26*m.b27*m.b31*m.b32 + 256*m.b26*m.b27*m.b32*m.b33 + 192*
m.b26*m.b27*m.b33*m.b34 + 128*m.b26*m.b27*m.b34*m.b35 + 64*m.b26*m.b27*m.b35*m.b36 + 384*m.b26*
m.b28*m.b29*m.b31 + 320*m.b26*m.b28*m.b30*m.b32 + 256*m.b26*m.b28*m.b31*m.b33 + 192*m.b26*m.b28*
m.b32*m.b34 + 128*m.b26*m.b28*m.b33*m.b35 + 64*m.b26*m.b28*m.b34*m.b36 + 256*m.b26*m.b29*m.b30*
m.b33 + 192*m.b26*m.b29*m.b31*m.b34 + 128*m.b26*m.b29*m.b32*m.b35 + 64*m.b26*m.b29*m.b33*m.b36 +
128*m.b26*m.b30*m.b31*m.b35 + 64*m.b26*m.b30*m.b32*m.b36 + 512*m.b27*m.b28*m.b29*m.b30 + 448*
m.b27*m.b28*m.b30*m.b31 + 384*m.b27*m.b28*m.b31*m.b32 + 320*m.b27*m.b28*m.b32*m.b33 + 256*m.b27*
m.b28*m.b33*m.b34 + 192*m.b27*m.b28*m.b34*m.b35 + 128*m.b27*m.b28*m.b35*m.b36 + 64*m.b27*m.b28*
m.b36*m.b37 + 384*m.b27*m.b29*m.b30*m.b32 + 320*m.b27*m.b29*m.b31*m.b33 + 256*m.b27*m.b29*m.b32*
m.b34 + 192*m.b27*m.b29*m.b33*m.b35 + 128*m.b27*m.b29*m.b34*m.b36 + 64*m.b27*m.b29*m.b35*m.b37 +
256*m.b27*m.b30*m.b31*m.b34 + 192*m.b27*m.b30*m.b32*m.b35 + 128*m.b27*m.b30*m.b33*m.b36 + 64*
m.b27*m.b30*m.b34*m.b37 + 128*m.b27*m.b31*m.b32*m.b36 + 64*m.b27*m.b31*m.b33*m.b37 + 512*m.b28*
m.b29*m.b30*m.b31 + 448*m.b28*m.b29*m.b31*m.b32 + 384*m.b28*m.b29*m.b32*m.b33 + 320*m.b28*m.b29*
m.b33*m.b34 + 256*m.b28*m.b29*m.b34*m.b35 + 192*m.b28*m.b29*m.b35*m.b36 + 128*m.b28*m.b29*m.b36*
m.b37 + 64*m.b28*m.b29*m.b37*m.b38 + 384*m.b28*m.b30*m.b31*m.b33 + 320*m.b28*m.b30*m.b32*m.b34 +
256*m.b28*m.b30*m.b33*m.b35 + 192*m.b28*m.b30*m.b34*m.b36 + 128*m.b28*m.b30*m.b35*m.b37 + 64*
m.b28*m.b30*m.b36*m.b38 + 256*m.b28*m.b31*m.b32*m.b35 + 192*m.b28*m.b31*m.b33*m.b36 + 128*m.b28*
m.b31*m.b34*m.b37 + 64*m.b28*m.b31*m.b35*m.b38 + 128*m.b28*m.b32*m.b33*m.b37 + 64*m.b28*m.b32*
m.b34*m.b38 + 512*m.b29*m.b30*m.b31*m.b32 + 448*m.b29*m.b30*m.b32*m.b33 + 384*m.b29*m.b30*m.b33*
m.b34 + 320*m.b29*m.b30*m.b34*m.b35 + 256*m.b29*m.b30*m.b35*m.b36 + 192*m.b29*m.b30*m.b36*m.b37
+ 128*m.b29*m.b30*m.b37*m.b38 + 64*m.b29*m.b30*m.b38*m.b39 + 384*m.b29*m.b31*m.b32*m.b34 + 320*
m.b29*m.b31*m.b33*m.b35 + 256*m.b29*m.b31*m.b34*m.b36 + 192*m.b29*m.b31*m.b35*m.b37 + 128*m.b29*
m.b31*m.b36*m.b38 + 64*m.b29*m.b31*m.b37*m.b39 + 256*m.b29*m.b32*m.b33*m.b36 + 192*m.b29*m.b32*
m.b34*m.b37 + 128*m.b29*m.b32*m.b35*m.b38 + 64*m.b29*m.b32*m.b36*m.b39 + 128*m.b29*m.b33*m.b34*
m.b38 + 64*m.b29*m.b33*m.b35*m.b39 + 512*m.b30*m.b31*m.b32*m.b33 + 448*m.b30*m.b31*m.b33*m.b34 +
384*m.b30*m.b31*m.b34*m.b35 + 320*m.b30*m.b31*m.b35*m.b36 + 256*m.b30*m.b31*m.b36*m.b37 + 192*
m.b30*m.b31*m.b37*m.b38 + 128*m.b30*m.b31*m.b38*m.b39 + 64*m.b30*m.b31*m.b39*m.b40 + 384*m.b30*
m.b32*m.b33*m.b35 + 320*m.b30*m.b32*m.b34*m.b36 + 256*m.b30*m.b32*m.b35*m.b37 + 192*m.b30*m.b32*
m.b36*m.b38 + 128*m.b30*m.b32*m.b37*m.b39 + 64*m.b30*m.b32*m.b38*m.b40 + 256*m.b30*m.b33*m.b34*
m.b37 + 192*m.b30*m.b33*m.b35*m.b38 + 128*m.b30*m.b33*m.b36*m.b39 + 64*m.b30*m.b33*m.b37*m.b40 +
128*m.b30*m.b34*m.b35*m.b39 + 64*m.b30*m.b34*m.b36*m.b40 + 512*m.b31*m.b32*m.b33*m.b34 + 448*
m.b31*m.b32*m.b34*m.b35 + 384*m.b31*m.b32*m.b35*m.b36 + 320*m.b31*m.b32*m.b36*m.b37 + 256*m.b31*
m.b32*m.b37*m.b38 + 192*m.b31*m.b32*m.b38*m.b39 + 128*m.b31*m.b32*m.b39*m.b40 + 64*m.b31*m.b32*
m.b40*m.b41 + 384*m.b31*m.b33*m.b34*m.b36 + 320*m.b31*m.b33*m.b35*m.b37 + 256*m.b31*m.b33*m.b36*
m.b38 + 192*m.b31*m.b33*m.b37*m.b39 + 128*m.b31*m.b33*m.b38*m.b40 + 64*m.b31*m.b33*m.b39*m.b41 +
256*m.b31*m.b34*m.b35*m.b38 + 192*m.b31*m.b34*m.b36*m.b39 + 128*m.b31*m.b34*m.b37*m.b40 + 64*
m.b31*m.b34*m.b38*m.b41 + 128*m.b31*m.b35*m.b36*m.b40 + 64*m.b31*m.b35*m.b37*m.b41 + 512*m.b32*
m.b33*m.b34*m.b35 + 448*m.b32*m.b33*m.b35*m.b36 + 384*m.b32*m.b33*m.b36*m.b37 + 320*m.b32*m.b33*
m.b37*m.b38 + 256*m.b32*m.b33*m.b38*m.b39 + 192*m.b32*m.b33*m.b39*m.b40 + 128*m.b32*m.b33*m.b40*
m.b41 + 64*m.b32*m.b33*m.b41*m.b42 + 384*m.b32*m.b34*m.b35*m.b37 + 320*m.b32*m.b34*m.b36*m.b38 +
256*m.b32*m.b34*m.b37*m.b39 + 192*m.b32*m.b34*m.b38*m.b40 + 128*m.b32*m.b34*m.b39*m.b41 + 64*
m.b32*m.b34*m.b40*m.b42 + 256*m.b32*m.b35*m.b36*m.b39 + 192*m.b32*m.b35*m.b37*m.b40 + 128*m.b32*
m.b35*m.b38*m.b41 + 64*m.b32*m.b35*m.b39*m.b42 + 128*m.b32*m.b36*m.b37*m.b41 + 64*m.b32*m.b36*
m.b38*m.b42 + 512*m.b33*m.b34*m.b35*m.b36 + 448*m.b33*m.b34*m.b36*m.b37 + 384*m.b33*m.b34*m.b37*
m.b38 + 320*m.b33*m.b34*m.b38*m.b39 + 256*m.b33*m.b34*m.b39*m.b40 + 192*m.b33*m.b34*m.b40*m.b41
+ 128*m.b33*m.b34*m.b41*m.b42 + 64*m.b33*m.b34*m.b42*m.b43 + 384*m.b33*m.b35*m.b36*m.b38 + 320*
m.b33*m.b35*m.b37*m.b39 + 256*m.b33*m.b35*m.b38*m.b40 + 192*m.b33*m.b35*m.b39*m.b41 + 128*m.b33*
m.b35*m.b40*m.b42 + 64*m.b33*m.b35*m.b41*m.b43 + 256*m.b33*m.b36*m.b37*m.b40 + 192*m.b33*m.b36*
m.b38*m.b41 + 128*m.b33*m.b36*m.b39*m.b42 + 64*m.b33*m.b36*m.b40*m.b43 + 128*m.b33*m.b37*m.b38*
m.b42 + 64*m.b33*m.b37*m.b39*m.b43 + 512*m.b34*m.b35*m.b36*m.b37 + 448*m.b34*m.b35*m.b37*m.b38 +
384*m.b34*m.b35*m.b38*m.b39 + 320*m.b34*m.b35*m.b39*m.b40 + 256*m.b34*m.b35*m.b40*m.b41 + 192*
m.b34*m.b35*m.b41*m.b42 + 128*m.b34*m.b35*m.b42*m.b43 + 64*m.b34*m.b35*m.b43*m.b44 + 384*m.b34*
m.b36*m.b37*m.b39 + 320*m.b34*m.b36*m.b38*m.b40 + 256*m.b34*m.b36*m.b39*m.b41 + 192*m.b34*m.b36*
m.b40*m.b42 + 128*m.b34*m.b36*m.b41*m.b43 + 64*m.b34*m.b36*m.b42*m.b44 + 256*m.b34*m.b37*m.b38*
m.b41 + 192*m.b34*m.b37*m.b39*m.b42 + 128*m.b34*m.b37*m.b40*m.b43 + 64*m.b34*m.b37*m.b41*m.b44 +
128*m.b34*m.b38*m.b39*m.b43 + 64*m.b34*m.b38*m.b40*m.b44 + 512*m.b35*m.b36*m.b37*m.b38 + 448*
m.b35*m.b36*m.b38*m.b39 + 384*m.b35*m.b36*m.b39*m.b40 + 320*m.b35*m.b36*m.b40*m.b41 + 256*m.b35*
m.b36*m.b41*m.b42 + 192*m.b35*m.b36*m.b42*m.b43 + 128*m.b35*m.b36*m.b43*m.b44 + 64*m.b35*m.b36*
m.b44*m.b45 + 384*m.b35*m.b37*m.b38*m.b40 + 320*m.b35*m.b37*m.b39*m.b41 + 256*m.b35*m.b37*m.b40*
m.b42 + 192*m.b35*m.b37*m.b41*m.b43 + 128*m.b35*m.b37*m.b42*m.b44 + 64*m.b35*m.b37*m.b43*m.b45 +
256*m.b35*m.b38*m.b39*m.b42 + 192*m.b35*m.b38*m.b40*m.b43 + 128*m.b35*m.b38*m.b41*m.b44 + 64*
m.b35*m.b38*m.b42*m.b45 + 128*m.b35*m.b39*m.b40*m.b44 + 64*m.b35*m.b39*m.b41*m.b45 + 448*m.b36*
m.b37*m.b38*m.b39 + 384*m.b36*m.b37*m.b39*m.b40 + 320*m.b36*m.b37*m.b40*m.b41 + 256*m.b36*m.b37*
m.b41*m.b42 + 192*m.b36*m.b37*m.b42*m.b43 + 128*m.b36*m.b37*m.b43*m.b44 + 64*m.b36*m.b37*m.b44*
m.b45 + 320*m.b36*m.b38*m.b39*m.b41 + 256*m.b36*m.b38*m.b40*m.b42 + 192*m.b36*m.b38*m.b41*m.b43
+ 128*m.b36*m.b38*m.b42*m.b44 + 64*m.b36*m.b38*m.b43*m.b45 + 192*m.b36*m.b39*m.b40*m.b43 + 128*
m.b36*m.b39*m.b41*m.b44 + 64*m.b36*m.b39*m.b42*m.b45 + 64*m.b36*m.b40*m.b41*m.b45 + 384*m.b37*
m.b38*m.b39*m.b40 + 320*m.b37*m.b38*m.b40*m.b41 + 256*m.b37*m.b38*m.b41*m.b42 + 192*m.b37*m.b38*
m.b42*m.b43 + 128*m.b37*m.b38*m.b43*m.b44 + 64*m.b37*m.b38*m.b44*m.b45 + 256*m.b37*m.b39*m.b40*
m.b42 + 192*m.b37*m.b39*m.b41*m.b43 + 128*m.b37*m.b39*m.b42*m.b44 + 64*m.b37*m.b39*m.b43*m.b45 +
128*m.b37*m.b40*m.b41*m.b44 + 64*m.b37*m.b40*m.b42*m.b45 + 320*m.b38*m.b39*m.b40*m.b41 + 256*
m.b38*m.b39*m.b41*m.b42 + 192*m.b38*m.b39*m.b42*m.b43 + 128*m.b38*m.b39*m.b43*m.b44 + 64*m.b38*
m.b39*m.b44*m.b45 + 192*m.b38*m.b40*m.b41*m.b43 + 128*m.b38*m.b40*m.b42*m.b44 + 64*m.b38*m.b40*
m.b43*m.b45 + 64*m.b38*m.b41*m.b42*m.b45 + 256*m.b39*m.b40*m.b41*m.b42 + 192*m.b39*m.b40*m.b42*
m.b43 + 128*m.b39*m.b40*m.b43*m.b44 + 64*m.b39*m.b40*m.b44*m.b45 + 128*m.b39*m.b41*m.b42*m.b44 +
64*m.b39*m.b41*m.b43*m.b45 + 192*m.b40*m.b41*m.b42*m.b43 + 128*m.b40*m.b41*m.b43*m.b44 + 64*m.b40
*m.b41*m.b44*m.b45 + 64*m.b40*m.b42*m.b43*m.b45 + 128*m.b41*m.b42*m.b43*m.b44 + 64*m.b41*m.b42*
m.b44*m.b45 + 64*m.b42*m.b43*m.b44*m.b45 - 32*m.b1*m.b2*m.b3 - 64*m.b1*m.b2*m.b4 - 64*m.b1*m.b2*
m.b5 - 64*m.b1*m.b2*m.b6 - 64*m.b1*m.b2*m.b7 - 64*m.b1*m.b2*m.b8 - 64*m.b1*m.b2*m.b9 - 64*m.b1*
m.b2*m.b10 - 32*m.b1*m.b2*m.b11 - 64*m.b1*m.b3*m.b4 - 32*m.b1*m.b3*m.b5 - 64*m.b1*m.b3*m.b6 - 64*
m.b1*m.b3*m.b7 - 64*m.b1*m.b3*m.b8 - 64*m.b1*m.b3*m.b9 - 32*m.b1*m.b3*m.b10 - 32*m.b1*m.b3*m.b11
- 64*m.b1*m.b4*m.b5 - 64*m.b1*m.b4*m.b6 - 32*m.b1*m.b4*m.b7 - 64*m.b1*m.b4*m.b8 - 32*m.b1*m.b4*
m.b9 - 32*m.b1*m.b4*m.b10 - 32*m.b1*m.b4*m.b11 - 64*m.b1*m.b5*m.b6 - 64*m.b1*m.b5*m.b7 - 32*m.b1*
m.b5*m.b8 - 32*m.b1*m.b5*m.b10 - 32*m.b1*m.b5*m.b11 - 32*m.b1*m.b6*m.b7 - 32*m.b1*m.b6*m.b8 - 32*
m.b1*m.b6*m.b9 - 32*m.b1*m.b6*m.b10 - 32*m.b1*m.b7*m.b8 - 32*m.b1*m.b7*m.b9 - 32*m.b1*m.b7*m.b10
- 32*m.b1*m.b7*m.b11 - 32*m.b1*m.b8*m.b9 - 32*m.b1*m.b8*m.b10 - 32*m.b1*m.b8*m.b11 - 32*m.b1*
m.b9*m.b10 - 32*m.b1*m.b9*m.b11 - 32*m.b1*m.b10*m.b11 - 96*m.b2*m.b3*m.b4 - 128*m.b2*m.b3*m.b5 -
128*m.b2*m.b3*m.b6 - 128*m.b2*m.b3*m.b7 - 128*m.b2*m.b3*m.b8 - 128*m.b2*m.b3*m.b9 - 128*m.b2*m.b3
*m.b10 - 96*m.b2*m.b3*m.b11 - 32*m.b2*m.b3*m.b12 - 160*m.b2*m.b4*m.b5 - 64*m.b2*m.b4*m.b6 - 128*
m.b2*m.b4*m.b7 - 128*m.b2*m.b4*m.b8 - 128*m.b2*m.b4*m.b9 - 96*m.b2*m.b4*m.b10 - 64*m.b2*m.b4*
m.b11 - 32*m.b2*m.b4*m.b12 - 160*m.b2*m.b5*m.b6 - 128*m.b2*m.b5*m.b7 - 64*m.b2*m.b5*m.b8 - 96*
m.b2*m.b5*m.b9 - 64*m.b2*m.b5*m.b10 - 64*m.b2*m.b5*m.b11 - 32*m.b2*m.b5*m.b12 - 160*m.b2*m.b6*
m.b7 - 96*m.b2*m.b6*m.b8 - 64*m.b2*m.b6*m.b9 - 64*m.b2*m.b6*m.b11 - 32*m.b2*m.b6*m.b12 - 96*m.b2*
m.b7*m.b8 - 64*m.b2*m.b7*m.b9 - 64*m.b2*m.b7*m.b10 - 64*m.b2*m.b7*m.b11 - 96*m.b2*m.b8*m.b9 - 64*
m.b2*m.b8*m.b10 - 64*m.b2*m.b8*m.b11 - 32*m.b2*m.b8*m.b12 - 96*m.b2*m.b9*m.b10 - 64*m.b2*m.b9*
m.b11 - 32*m.b2*m.b9*m.b12 - 96*m.b2*m.b10*m.b11 - 32*m.b2*m.b10*m.b12 - 32*m.b2*m.b11*m.b12 -
160*m.b3*m.b4*m.b5 - 224*m.b3*m.b4*m.b6 - 192*m.b3*m.b4*m.b7 - 192*m.b3*m.b4*m.b8 - 192*m.b3*m.b4
*m.b9 - 192*m.b3*m.b4*m.b10 - 160*m.b3*m.b4*m.b11 - 96*m.b3*m.b4*m.b12 - 32*m.b3*m.b4*m.b13 - 256
*m.b3*m.b5*m.b6 - 128*m.b3*m.b5*m.b7 - 192*m.b3*m.b5*m.b8 - 192*m.b3*m.b5*m.b9 - 160*m.b3*m.b5*
m.b10 - 128*m.b3*m.b5*m.b11 - 64*m.b3*m.b5*m.b12 - 32*m.b3*m.b5*m.b13 - 256*m.b3*m.b6*m.b7 - 224*
m.b3*m.b6*m.b8 - 64*m.b3*m.b6*m.b9 - 128*m.b3*m.b6*m.b10 - 96*m.b3*m.b6*m.b11 - 64*m.b3*m.b6*
m.b12 - 32*m.b3*m.b6*m.b13 - 224*m.b3*m.b7*m.b8 - 160*m.b3*m.b7*m.b9 - 96*m.b3*m.b7*m.b10 - 64*
m.b3*m.b7*m.b12 - 32*m.b3*m.b7*m.b13 - 160*m.b3*m.b8*m.b9 - 128*m.b3*m.b8*m.b10 - 96*m.b3*m.b8*
m.b11 - 64*m.b3*m.b8*m.b12 - 160*m.b3*m.b9*m.b10 - 128*m.b3*m.b9*m.b11 - 64*m.b3*m.b9*m.b12 - 32*
m.b3*m.b9*m.b13 - 160*m.b3*m.b10*m.b11 - 64*m.b3*m.b10*m.b12 - 32*m.b3*m.b10*m.b13 - 96*m.b3*
m.b11*m.b12 - 32*m.b3*m.b11*m.b13 - 32*m.b3*m.b12*m.b13 - 224*m.b4*m.b5*m.b6 - 320*m.b4*m.b5*m.b7
- 288*m.b4*m.b5*m.b8 - 256*m.b4*m.b5*m.b9 - 256*m.b4*m.b5*m.b10 - 224*m.b4*m.b5*m.b11 - 160*m.b4
*m.b5*m.b12 - 96*m.b4*m.b5*m.b13 - 32*m.b4*m.b5*m.b14 - 352*m.b4*m.b6*m.b7 - 192*m.b4*m.b6*m.b8
- 288*m.b4*m.b6*m.b9 - 224*m.b4*m.b6*m.b10 - 192*m.b4*m.b6*m.b11 - 128*m.b4*m.b6*m.b12 - 64*m.b4
*m.b6*m.b13 - 32*m.b4*m.b6*m.b14 - 352*m.b4*m.b7*m.b8 - 288*m.b4*m.b7*m.b9 - 96*m.b4*m.b7*m.b10
- 160*m.b4*m.b7*m.b11 - 96*m.b4*m.b7*m.b12 - 64*m.b4*m.b7*m.b13 - 32*m.b4*m.b7*m.b14 - 288*m.b4*
m.b8*m.b9 - 224*m.b4*m.b8*m.b10 - 160*m.b4*m.b8*m.b11 - 64*m.b4*m.b8*m.b13 - 32*m.b4*m.b8*m.b14
- 224*m.b4*m.b9*m.b10 - 192*m.b4*m.b9*m.b11 - 96*m.b4*m.b9*m.b12 - 64*m.b4*m.b9*m.b13 - 224*m.b4
*m.b10*m.b11 - 128*m.b4*m.b10*m.b12 - 64*m.b4*m.b10*m.b13 - 32*m.b4*m.b10*m.b14 - 160*m.b4*m.b11*
m.b12 - 64*m.b4*m.b11*m.b13 - 32*m.b4*m.b11*m.b14 - 96*m.b4*m.b12*m.b13 - 32*m.b4*m.b12*m.b14 -
32*m.b4*m.b13*m.b14 - 288*m.b5*m.b6*m.b7 - 416*m.b5*m.b6*m.b8 - 384*m.b5*m.b6*m.b9 - 352*m.b5*
m.b6*m.b10 - 288*m.b5*m.b6*m.b11 - 224*m.b5*m.b6*m.b12 - 160*m.b5*m.b6*m.b13 - 96*m.b5*m.b6*m.b14
- 32*m.b5*m.b6*m.b15 - 448*m.b5*m.b7*m.b8 - 256*m.b5*m.b7*m.b9 - 352*m.b5*m.b7*m.b10 - 288*m.b5*
m.b7*m.b11 - 192*m.b5*m.b7*m.b12 - 128*m.b5*m.b7*m.b13 - 64*m.b5*m.b7*m.b14 - 32*m.b5*m.b7*m.b15
- 416*m.b5*m.b8*m.b9 - 352*m.b5*m.b8*m.b10 - 128*m.b5*m.b8*m.b11 - 160*m.b5*m.b8*m.b12 - 96*m.b5
*m.b8*m.b13 - 64*m.b5*m.b8*m.b14 - 32*m.b5*m.b8*m.b15 - 352*m.b5*m.b9*m.b10 - 288*m.b5*m.b9*m.b11
- 160*m.b5*m.b9*m.b12 - 64*m.b5*m.b9*m.b14 - 32*m.b5*m.b9*m.b15 - 288*m.b5*m.b10*m.b11 - 192*
m.b5*m.b10*m.b12 - 96*m.b5*m.b10*m.b13 - 64*m.b5*m.b10*m.b14 - 224*m.b5*m.b11*m.b12 - 128*m.b5*
m.b11*m.b13 - 64*m.b5*m.b11*m.b14 - 32*m.b5*m.b11*m.b15 - 160*m.b5*m.b12*m.b13 - 64*m.b5*m.b12*
m.b14 - 32*m.b5*m.b12*m.b15 - 96*m.b5*m.b13*m.b14 - 32*m.b5*m.b13*m.b15 - 32*m.b5*m.b14*m.b15 -
352*m.b6*m.b7*m.b8 - 512*m.b6*m.b7*m.b9 - 480*m.b6*m.b7*m.b10 - 416*m.b6*m.b7*m.b11 - 288*m.b6*
m.b7*m.b12 - 224*m.b6*m.b7*m.b13 - 160*m.b6*m.b7*m.b14 - 96*m.b6*m.b7*m.b15 - 32*m.b6*m.b7*m.b16
- 544*m.b6*m.b8*m.b9 - 288*m.b6*m.b8*m.b10 - 416*m.b6*m.b8*m.b11 - 288*m.b6*m.b8*m.b12 - 192*
m.b6*m.b8*m.b13 - 128*m.b6*m.b8*m.b14 - 64*m.b6*m.b8*m.b15 - 32*m.b6*m.b8*m.b16 - 480*m.b6*m.b9*
m.b10 - 416*m.b6*m.b9*m.b11 - 128*m.b6*m.b9*m.b12 - 160*m.b6*m.b9*m.b13 - 96*m.b6*m.b9*m.b14 - 64
*m.b6*m.b9*m.b15 - 32*m.b6*m.b9*m.b16 - 416*m.b6*m.b10*m.b11 - 288*m.b6*m.b10*m.b12 - 160*m.b6*
m.b10*m.b13 - 64*m.b6*m.b10*m.b15 - 32*m.b6*m.b10*m.b16 - 288*m.b6*m.b11*m.b12 - 192*m.b6*m.b11*
m.b13 - 96*m.b6*m.b11*m.b14 - 64*m.b6*m.b11*m.b15 - 224*m.b6*m.b12*m.b13 - 128*m.b6*m.b12*m.b14
- 64*m.b6*m.b12*m.b15 - 32*m.b6*m.b12*m.b16 - 160*m.b6*m.b13*m.b14 - 64*m.b6*m.b13*m.b15 - 32*
m.b6*m.b13*m.b16 - 96*m.b6*m.b14*m.b15 - 32*m.b6*m.b14*m.b16 - 32*m.b6*m.b15*m.b16 - 416*m.b7*
m.b8*m.b9 - 608*m.b7*m.b8*m.b10 - 544*m.b7*m.b8*m.b11 - 416*m.b7*m.b8*m.b12 - 288*m.b7*m.b8*m.b13
- 224*m.b7*m.b8*m.b14 - 160*m.b7*m.b8*m.b15 - 96*m.b7*m.b8*m.b16 - 32*m.b7*m.b8*m.b17 - 608*m.b7
*m.b9*m.b10 - 320*m.b7*m.b9*m.b11 - 416*m.b7*m.b9*m.b12 - 288*m.b7*m.b9*m.b13 - 192*m.b7*m.b9*
m.b14 - 128*m.b7*m.b9*m.b15 - 64*m.b7*m.b9*m.b16 - 32*m.b7*m.b9*m.b17 - 544*m.b7*m.b10*m.b11 -
416*m.b7*m.b10*m.b12 - 128*m.b7*m.b10*m.b13 - 160*m.b7*m.b10*m.b14 - 96*m.b7*m.b10*m.b15 - 64*
m.b7*m.b10*m.b16 - 32*m.b7*m.b10*m.b17 - 416*m.b7*m.b11*m.b12 - 288*m.b7*m.b11*m.b13 - 160*m.b7*
m.b11*m.b14 - 64*m.b7*m.b11*m.b16 - 32*m.b7*m.b11*m.b17 - 288*m.b7*m.b12*m.b13 - 192*m.b7*m.b12*
m.b14 - 96*m.b7*m.b12*m.b15 - 64*m.b7*m.b12*m.b16 - 224*m.b7*m.b13*m.b14 - 128*m.b7*m.b13*m.b15
- 64*m.b7*m.b13*m.b16 - 32*m.b7*m.b13*m.b17 - 160*m.b7*m.b14*m.b15 - 64*m.b7*m.b14*m.b16 - 32*
m.b7*m.b14*m.b17 - 96*m.b7*m.b15*m.b16 - 32*m.b7*m.b15*m.b17 - 32*m.b7*m.b16*m.b17 - 480*m.b8*
m.b9*m.b10 - 672*m.b8*m.b9*m.b11 - 544*m.b8*m.b9*m.b12 - 416*m.b8*m.b9*m.b13 - 288*m.b8*m.b9*
m.b14 - 224*m.b8*m.b9*m.b15 - 160*m.b8*m.b9*m.b16 - 96*m.b8*m.b9*m.b17 - 32*m.b8*m.b9*m.b18 - 672
*m.b8*m.b10*m.b11 - 320*m.b8*m.b10*m.b12 - 416*m.b8*m.b10*m.b13 - 288*m.b8*m.b10*m.b14 - 192*m.b8
*m.b10*m.b15 - 128*m.b8*m.b10*m.b16 - 64*m.b8*m.b10*m.b17 - 32*m.b8*m.b10*m.b18 - 544*m.b8*m.b11*
m.b12 - 416*m.b8*m.b11*m.b13 - 128*m.b8*m.b11*m.b14 - 160*m.b8*m.b11*m.b15 - 96*m.b8*m.b11*m.b16
- 64*m.b8*m.b11*m.b17 - 32*m.b8*m.b11*m.b18 - 416*m.b8*m.b12*m.b13 - 288*m.b8*m.b12*m.b14 - 160*
m.b8*m.b12*m.b15 - 64*m.b8*m.b12*m.b17 - 32*m.b8*m.b12*m.b18 - 288*m.b8*m.b13*m.b14 - 192*m.b8*
m.b13*m.b15 - 96*m.b8*m.b13*m.b16 - 64*m.b8*m.b13*m.b17 - 224*m.b8*m.b14*m.b15 - 128*m.b8*m.b14*
m.b16 - 64*m.b8*m.b14*m.b17 - 32*m.b8*m.b14*m.b18 - 160*m.b8*m.b15*m.b16 - 64*m.b8*m.b15*m.b17 -
32*m.b8*m.b15*m.b18 - 96*m.b8*m.b16*m.b17 - 32*m.b8*m.b16*m.b18 - 32*m.b8*m.b17*m.b18 - 512*m.b9*
m.b10*m.b11 - 672*m.b9*m.b10*m.b12 - 544*m.b9*m.b10*m.b13 - 416*m.b9*m.b10*m.b14 - 288*m.b9*m.b10
*m.b15 - 224*m.b9*m.b10*m.b16 - 160*m.b9*m.b10*m.b17 - 96*m.b9*m.b10*m.b18 - 32*m.b9*m.b10*m.b19
- 672*m.b9*m.b11*m.b12 - 320*m.b9*m.b11*m.b13 - 416*m.b9*m.b11*m.b14 - 288*m.b9*m.b11*m.b15 -
192*m.b9*m.b11*m.b16 - 128*m.b9*m.b11*m.b17 - 64*m.b9*m.b11*m.b18 - 32*m.b9*m.b11*m.b19 - 544*
m.b9*m.b12*m.b13 - 416*m.b9*m.b12*m.b14 - 128*m.b9*m.b12*m.b15 - 160*m.b9*m.b12*m.b16 - 96*m.b9*
m.b12*m.b17 - 64*m.b9*m.b12*m.b18 - 32*m.b9*m.b12*m.b19 - 416*m.b9*m.b13*m.b14 - 288*m.b9*m.b13*
m.b15 - 160*m.b9*m.b13*m.b16 - 64*m.b9*m.b13*m.b18 - 32*m.b9*m.b13*m.b19 - 288*m.b9*m.b14*m.b15
- 192*m.b9*m.b14*m.b16 - 96*m.b9*m.b14*m.b17 - 64*m.b9*m.b14*m.b18 - 224*m.b9*m.b15*m.b16 - 128*
m.b9*m.b15*m.b17 - 64*m.b9*m.b15*m.b18 - 32*m.b9*m.b15*m.b19 - 160*m.b9*m.b16*m.b17 - 64*m.b9*
m.b16*m.b18 - 32*m.b9*m.b16*m.b19 - 96*m.b9*m.b17*m.b18 - 32*m.b9*m.b17*m.b19 - 32*m.b9*m.b18*
m.b19 - 512*m.b10*m.b11*m.b12 - 672*m.b10*m.b11*m.b13 - 544*m.b10*m.b11*m.b14 - 416*m.b10*m.b11*
m.b15 - 288*m.b10*m.b11*m.b16 - 224*m.b10*m.b11*m.b17 - 160*m.b10*m.b11*m.b18 - 96*m.b10*m.b11*
m.b19 - 32*m.b10*m.b11*m.b20 - 672*m.b10*m.b12*m.b13 - 320*m.b10*m.b12*m.b14 - 416*m.b10*m.b12*
m.b15 - 288*m.b10*m.b12*m.b16 - 192*m.b10*m.b12*m.b17 - 128*m.b10*m.b12*m.b18 - 64*m.b10*m.b12*
m.b19 - 32*m.b10*m.b12*m.b20 - 544*m.b10*m.b13*m.b14 - 416*m.b10*m.b13*m.b15 - 128*m.b10*m.b13*
m.b16 - 160*m.b10*m.b13*m.b17 - 96*m.b10*m.b13*m.b18 - 64*m.b10*m.b13*m.b19 - 32*m.b10*m.b13*
m.b20 - 416*m.b10*m.b14*m.b15 - 288*m.b10*m.b14*m.b16 - 160*m.b10*m.b14*m.b17 - 64*m.b10*m.b14*
m.b19 - 32*m.b10*m.b14*m.b20 - 288*m.b10*m.b15*m.b16 - 192*m.b10*m.b15*m.b17 - 96*m.b10*m.b15*
m.b18 - 64*m.b10*m.b15*m.b19 - 224*m.b10*m.b16*m.b17 - 128*m.b10*m.b16*m.b18 - 64*m.b10*m.b16*
m.b19 - 32*m.b10*m.b16*m.b20 - 160*m.b10*m.b17*m.b18 - 64*m.b10*m.b17*m.b19 - 32*m.b10*m.b17*
m.b20 - 96*m.b10*m.b18*m.b19 - 32*m.b10*m.b18*m.b20 - 32*m.b10*m.b19*m.b20 - 512*m.b11*m.b12*
m.b13 - 672*m.b11*m.b12*m.b14 - 544*m.b11*m.b12*m.b15 - 416*m.b11*m.b12*m.b16 - 288*m.b11*m.b12*
m.b17 - 224*m.b11*m.b12*m.b18 - 160*m.b11*m.b12*m.b19 - 96*m.b11*m.b12*m.b20 - 32*m.b11*m.b12*
m.b21 - 672*m.b11*m.b13*m.b14 - 320*m.b11*m.b13*m.b15 - 416*m.b11*m.b13*m.b16 - 288*m.b11*m.b13*
m.b17 - 192*m.b11*m.b13*m.b18 - 128*m.b11*m.b13*m.b19 - 64*m.b11*m.b13*m.b20 - 32*m.b11*m.b13*
m.b21 - 544*m.b11*m.b14*m.b15 - 416*m.b11*m.b14*m.b16 - 128*m.b11*m.b14*m.b17 - 160*m.b11*m.b14*
m.b18 - 96*m.b11*m.b14*m.b19 - 64*m.b11*m.b14*m.b20 - 32*m.b11*m.b14*m.b21 - 416*m.b11*m.b15*
m.b16 - 288*m.b11*m.b15*m.b17 - 160*m.b11*m.b15*m.b18 - 64*m.b11*m.b15*m.b20 - 32*m.b11*m.b15*
m.b21 - 288*m.b11*m.b16*m.b17 - 192*m.b11*m.b16*m.b18 - 96*m.b11*m.b16*m.b19 - 64*m.b11*m.b16*
m.b20 - 224*m.b11*m.b17*m.b18 - 128*m.b11*m.b17*m.b19 - 64*m.b11*m.b17*m.b20 - 32*m.b11*m.b17*
m.b21 - 160*m.b11*m.b18*m.b19 - 64*m.b11*m.b18*m.b20 - 32*m.b11*m.b18*m.b21 - 96*m.b11*m.b19*
m.b20 - 32*m.b11*m.b19*m.b21 - 32*m.b11*m.b20*m.b21 - 512*m.b12*m.b13*m.b14 - 672*m.b12*m.b13*
m.b15 - 544*m.b12*m.b13*m.b16 - 416*m.b12*m.b13*m.b17 - 288*m.b12*m.b13*m.b18 - 224*m.b12*m.b13*
m.b19 - 160*m.b12*m.b13*m.b20 - 96*m.b12*m.b13*m.b21 - 32*m.b12*m.b13*m.b22 - 672*m.b12*m.b14*
m.b15 - 320*m.b12*m.b14*m.b16 - 416*m.b12*m.b14*m.b17 - 288*m.b12*m.b14*m.b18 - 192*m.b12*m.b14*
m.b19 - 128*m.b12*m.b14*m.b20 - 64*m.b12*m.b14*m.b21 - 32*m.b12*m.b14*m.b22 - 544*m.b12*m.b15*
m.b16 - 416*m.b12*m.b15*m.b17 - 128*m.b12*m.b15*m.b18 - 160*m.b12*m.b15*m.b19 - 96*m.b12*m.b15*
m.b20 - 64*m.b12*m.b15*m.b21 - 32*m.b12*m.b15*m.b22 - 416*m.b12*m.b16*m.b17 - 288*m.b12*m.b16*
m.b18 - 160*m.b12*m.b16*m.b19 - 64*m.b12*m.b16*m.b21 - 32*m.b12*m.b16*m.b22 - 288*m.b12*m.b17*
m.b18 - 192*m.b12*m.b17*m.b19 - 96*m.b12*m.b17*m.b20 - 64*m.b12*m.b17*m.b21 - 224*m.b12*m.b18*
m.b19 - 128*m.b12*m.b18*m.b20 - 64*m.b12*m.b18*m.b21 - 32*m.b12*m.b18*m.b22 - 160*m.b12*m.b19*
m.b20 - 64*m.b12*m.b19*m.b21 - 32*m.b12*m.b19*m.b22 - 96*m.b12*m.b20*m.b21 - 32*m.b12*m.b20*m.b22
- 32*m.b12*m.b21*m.b22 - 512*m.b13*m.b14*m.b15 - 672*m.b13*m.b14*m.b16 - 544*m.b13*m.b14*m.b17
- 416*m.b13*m.b14*m.b18 - 288*m.b13*m.b14*m.b19 - 224*m.b13*m.b14*m.b20 - 160*m.b13*m.b14*m.b21
- 96*m.b13*m.b14*m.b22 - 32*m.b13*m.b14*m.b23 - 672*m.b13*m.b15*m.b16 - 320*m.b13*m.b15*m.b17 -
416*m.b13*m.b15*m.b18 - 288*m.b13*m.b15*m.b19 - 192*m.b13*m.b15*m.b20 - 128*m.b13*m.b15*m.b21 -
64*m.b13*m.b15*m.b22 - 32*m.b13*m.b15*m.b23 - 544*m.b13*m.b16*m.b17 - 416*m.b13*m.b16*m.b18 - 128
*m.b13*m.b16*m.b19 - 160*m.b13*m.b16*m.b20 - 96*m.b13*m.b16*m.b21 - 64*m.b13*m.b16*m.b22 - 32*
m.b13*m.b16*m.b23 - 416*m.b13*m.b17*m.b18 - 288*m.b13*m.b17*m.b19 - 160*m.b13*m.b17*m.b20 - 64*
m.b13*m.b17*m.b22 - 32*m.b13*m.b17*m.b23 - 288*m.b13*m.b18*m.b19 - 192*m.b13*m.b18*m.b20 - 96*
m.b13*m.b18*m.b21 - 64*m.b13*m.b18*m.b22 - 224*m.b13*m.b19*m.b20 - 128*m.b13*m.b19*m.b21 - 64*
m.b13*m.b19*m.b22 - 32*m.b13*m.b19*m.b23 - 160*m.b13*m.b20*m.b21 - 64*m.b13*m.b20*m.b22 - 32*
m.b13*m.b20*m.b23 - 96*m.b13*m.b21*m.b22 - 32*m.b13*m.b21*m.b23 - 32*m.b13*m.b22*m.b23 - 512*
m.b14*m.b15*m.b16 - 672*m.b14*m.b15*m.b17 - 544*m.b14*m.b15*m.b18 - 416*m.b14*m.b15*m.b19 - 288*
m.b14*m.b15*m.b20 - 224*m.b14*m.b15*m.b21 - 160*m.b14*m.b15*m.b22 - 96*m.b14*m.b15*m.b23 - 32*
m.b14*m.b15*m.b24 - 672*m.b14*m.b16*m.b17 - 320*m.b14*m.b16*m.b18 - 416*m.b14*m.b16*m.b19 - 288*
m.b14*m.b16*m.b20 - 192*m.b14*m.b16*m.b21 - 128*m.b14*m.b16*m.b22 - 64*m.b14*m.b16*m.b23 - 32*
m.b14*m.b16*m.b24 - 544*m.b14*m.b17*m.b18 - 416*m.b14*m.b17*m.b19 - 128*m.b14*m.b17*m.b20 - 160*
m.b14*m.b17*m.b21 - 96*m.b14*m.b17*m.b22 - 64*m.b14*m.b17*m.b23 - 32*m.b14*m.b17*m.b24 - 416*
m.b14*m.b18*m.b19 - 288*m.b14*m.b18*m.b20 - 160*m.b14*m.b18*m.b21 - 64*m.b14*m.b18*m.b23 - 32*
m.b14*m.b18*m.b24 - 288*m.b14*m.b19*m.b20 - 192*m.b14*m.b19*m.b21 - 96*m.b14*m.b19*m.b22 - 64*
m.b14*m.b19*m.b23 - 224*m.b14*m.b20*m.b21 - 128*m.b14*m.b20*m.b22 - 64*m.b14*m.b20*m.b23 - 32*
m.b14*m.b20*m.b24 - 160*m.b14*m.b21*m.b22 - 64*m.b14*m.b21*m.b23 - 32*m.b14*m.b21*m.b24 - 96*
m.b14*m.b22*m.b23 - 32*m.b14*m.b22*m.b24 - 32*m.b14*m.b23*m.b24 - 512*m.b15*m.b16*m.b17 - 672*
m.b15*m.b16*m.b18 - 544*m.b15*m.b16*m.b19 - 416*m.b15*m.b16*m.b20 - 288*m.b15*m.b16*m.b21 - 224*
m.b15*m.b16*m.b22 - 160*m.b15*m.b16*m.b23 - 96*m.b15*m.b16*m.b24 - 32*m.b15*m.b16*m.b25 - 672*
m.b15*m.b17*m.b18 - 320*m.b15*m.b17*m.b19 - 416*m.b15*m.b17*m.b20 - 288*m.b15*m.b17*m.b21 - 192*
m.b15*m.b17*m.b22 - 128*m.b15*m.b17*m.b23 - 64*m.b15*m.b17*m.b24 - 32*m.b15*m.b17*m.b25 - 544*
m.b15*m.b18*m.b19 - 416*m.b15*m.b18*m.b20 - 128*m.b15*m.b18*m.b21 - 160*m.b15*m.b18*m.b22 - 96*
m.b15*m.b18*m.b23 - 64*m.b15*m.b18*m.b24 - 32*m.b15*m.b18*m.b25 - 416*m.b15*m.b19*m.b20 - 288*
m.b15*m.b19*m.b21 - 160*m.b15*m.b19*m.b22 - 64*m.b15*m.b19*m.b24 - 32*m.b15*m.b19*m.b25 - 288*
m.b15*m.b20*m.b21 - 192*m.b15*m.b20*m.b22 - 96*m.b15*m.b20*m.b23 - 64*m.b15*m.b20*m.b24 - 224*
m.b15*m.b21*m.b22 - 128*m.b15*m.b21*m.b23 - 64*m.b15*m.b21*m.b24 - 32*m.b15*m.b21*m.b25 - 160*
m.b15*m.b22*m.b23 - 64*m.b15*m.b22*m.b24 - 32*m.b15*m.b22*m.b25 - 96*m.b15*m.b23*m.b24 - 32*m.b15
*m.b23*m.b25 - 32*m.b15*m.b24*m.b25 - 512*m.b16*m.b17*m.b18 - 672*m.b16*m.b17*m.b19 - 544*m.b16*
m.b17*m.b20 - 416*m.b16*m.b17*m.b21 - 288*m.b16*m.b17*m.b22 - 224*m.b16*m.b17*m.b23 - 160*m.b16*
m.b17*m.b24 - 96*m.b16*m.b17*m.b25 - 32*m.b16*m.b17*m.b26 - 672*m.b16*m.b18*m.b19 - 320*m.b16*
m.b18*m.b20 - 416*m.b16*m.b18*m.b21 - 288*m.b16*m.b18*m.b22 - 192*m.b16*m.b18*m.b23 - 128*m.b16*
m.b18*m.b24 - 64*m.b16*m.b18*m.b25 - 32*m.b16*m.b18*m.b26 - 544*m.b16*m.b19*m.b20 - 416*m.b16*
m.b19*m.b21 - 128*m.b16*m.b19*m.b22 - 160*m.b16*m.b19*m.b23 - 96*m.b16*m.b19*m.b24 - 64*m.b16*
m.b19*m.b25 - 32*m.b16*m.b19*m.b26 - 416*m.b16*m.b20*m.b21 - 288*m.b16*m.b20*m.b22 - 160*m.b16*
m.b20*m.b23 - 64*m.b16*m.b20*m.b25 - 32*m.b16*m.b20*m.b26 - 288*m.b16*m.b21*m.b22 - 192*m.b16*
m.b21*m.b23 - 96*m.b16*m.b21*m.b24 - 64*m.b16*m.b21*m.b25 - 224*m.b16*m.b22*m.b23 - 128*m.b16*
m.b22*m.b24 - 64*m.b16*m.b22*m.b25 - 32*m.b16*m.b22*m.b26 - 160*m.b16*m.b23*m.b24 - 64*m.b16*
m.b23*m.b25 - 32*m.b16*m.b23*m.b26 - 96*m.b16*m.b24*m.b25 - 32*m.b16*m.b24*m.b26 - 32*m.b16*m.b25
*m.b26 - 512*m.b17*m.b18*m.b19 - 672*m.b17*m.b18*m.b20 - 544*m.b17*m.b18*m.b21 - 416*m.b17*m.b18*
m.b22 - 288*m.b17*m.b18*m.b23 - 224*m.b17*m.b18*m.b24 - 160*m.b17*m.b18*m.b25 - 96*m.b17*m.b18*
m.b26 - 32*m.b17*m.b18*m.b27 - 672*m.b17*m.b19*m.b20 - 320*m.b17*m.b19*m.b21 - 416*m.b17*m.b19*
m.b22 - 288*m.b17*m.b19*m.b23 - 192*m.b17*m.b19*m.b24 - 128*m.b17*m.b19*m.b25 - 64*m.b17*m.b19*
m.b26 - 32*m.b17*m.b19*m.b27 - 544*m.b17*m.b20*m.b21 - 416*m.b17*m.b20*m.b22 - 128*m.b17*m.b20*
m.b23 - 160*m.b17*m.b20*m.b24 - 96*m.b17*m.b20*m.b25 - 64*m.b17*m.b20*m.b26 - 32*m.b17*m.b20*
m.b27 - 416*m.b17*m.b21*m.b22 - 288*m.b17*m.b21*m.b23 - 160*m.b17*m.b21*m.b24 - 64*m.b17*m.b21*
m.b26 - 32*m.b17*m.b21*m.b27 - 288*m.b17*m.b22*m.b23 - 192*m.b17*m.b22*m.b24 - 96*m.b17*m.b22*
m.b25 - 64*m.b17*m.b22*m.b26 - 224*m.b17*m.b23*m.b24 - 128*m.b17*m.b23*m.b25 - 64*m.b17*m.b23*
m.b26 - 32*m.b17*m.b23*m.b27 - 160*m.b17*m.b24*m.b25 - 64*m.b17*m.b24*m.b26 - 32*m.b17*m.b24*
m.b27 - 96*m.b17*m.b25*m.b26 - 32*m.b17*m.b25*m.b27 - 32*m.b17*m.b26*m.b27 - 512*m.b18*m.b19*
m.b20 - 672*m.b18*m.b19*m.b21 - 544*m.b18*m.b19*m.b22 - 416*m.b18*m.b19*m.b23 - 288*m.b18*m.b19*
m.b24 - 224*m.b18*m.b19*m.b25 - 160*m.b18*m.b19*m.b26 - 96*m.b18*m.b19*m.b27 - 32*m.b18*m.b19*
m.b28 - 672*m.b18*m.b20*m.b21 - 320*m.b18*m.b20*m.b22 - 416*m.b18*m.b20*m.b23 - 288*m.b18*m.b20*
m.b24 - 192*m.b18*m.b20*m.b25 - 128*m.b18*m.b20*m.b26 - 64*m.b18*m.b20*m.b27 - 32*m.b18*m.b20*
m.b28 - 544*m.b18*m.b21*m.b22 - 416*m.b18*m.b21*m.b23 - 128*m.b18*m.b21*m.b24 - 160*m.b18*m.b21*
m.b25 - 96*m.b18*m.b21*m.b26 - 64*m.b18*m.b21*m.b27 - 32*m.b18*m.b21*m.b28 - 416*m.b18*m.b22*
m.b23 - 288*m.b18*m.b22*m.b24 - 160*m.b18*m.b22*m.b25 - 64*m.b18*m.b22*m.b27 - 32*m.b18*m.b22*
m.b28 - 288*m.b18*m.b23*m.b24 - 192*m.b18*m.b23*m.b25 - 96*m.b18*m.b23*m.b26 - 64*m.b18*m.b23*
m.b27 - 224*m.b18*m.b24*m.b25 - 128*m.b18*m.b24*m.b26 - 64*m.b18*m.b24*m.b27 - 32*m.b18*m.b24*
m.b28 - 160*m.b18*m.b25*m.b26 - 64*m.b18*m.b25*m.b27 - 32*m.b18*m.b25*m.b28 - 96*m.b18*m.b26*
m.b27 - 32*m.b18*m.b26*m.b28 - 32*m.b18*m.b27*m.b28 - 512*m.b19*m.b20*m.b21 - 672*m.b19*m.b20*
m.b22 - 544*m.b19*m.b20*m.b23 - 416*m.b19*m.b20*m.b24 - 288*m.b19*m.b20*m.b25 - 224*m.b19*m.b20*
m.b26 - 160*m.b19*m.b20*m.b27 - 96*m.b19*m.b20*m.b28 - 32*m.b19*m.b20*m.b29 - 672*m.b19*m.b21*
m.b22 - 320*m.b19*m.b21*m.b23 - 416*m.b19*m.b21*m.b24 - 288*m.b19*m.b21*m.b25 - 192*m.b19*m.b21*
m.b26 - 128*m.b19*m.b21*m.b27 - 64*m.b19*m.b21*m.b28 - 32*m.b19*m.b21*m.b29 - 544*m.b19*m.b22*
m.b23 - 416*m.b19*m.b22*m.b24 - 128*m.b19*m.b22*m.b25 - 160*m.b19*m.b22*m.b26 - 96*m.b19*m.b22*
m.b27 - 64*m.b19*m.b22*m.b28 - 32*m.b19*m.b22*m.b29 - 416*m.b19*m.b23*m.b24 - 288*m.b19*m.b23*
m.b25 - 160*m.b19*m.b23*m.b26 - 64*m.b19*m.b23*m.b28 - 32*m.b19*m.b23*m.b29 - 288*m.b19*m.b24*
m.b25 - 192*m.b19*m.b24*m.b26 - 96*m.b19*m.b24*m.b27 - 64*m.b19*m.b24*m.b28 - 224*m.b19*m.b25*
m.b26 - 128*m.b19*m.b25*m.b27 - 64*m.b19*m.b25*m.b28 - 32*m.b19*m.b25*m.b29 - 160*m.b19*m.b26*
m.b27 - 64*m.b19*m.b26*m.b28 - 32*m.b19*m.b26*m.b29 - 96*m.b19*m.b27*m.b28 - 32*m.b19*m.b27*m.b29
- 32*m.b19*m.b28*m.b29 - 512*m.b20*m.b21*m.b22 - 672*m.b20*m.b21*m.b23 - 544*m.b20*m.b21*m.b24
- 416*m.b20*m.b21*m.b25 - 288*m.b20*m.b21*m.b26 - 224*m.b20*m.b21*m.b27 - 160*m.b20*m.b21*m.b28
- 96*m.b20*m.b21*m.b29 - 32*m.b20*m.b21*m.b30 - 672*m.b20*m.b22*m.b23 - 320*m.b20*m.b22*m.b24 -
416*m.b20*m.b22*m.b25 - 288*m.b20*m.b22*m.b26 - 192*m.b20*m.b22*m.b27 - 128*m.b20*m.b22*m.b28 -
64*m.b20*m.b22*m.b29 - 32*m.b20*m.b22*m.b30 - 544*m.b20*m.b23*m.b24 - 416*m.b20*m.b23*m.b25 - 128
*m.b20*m.b23*m.b26 - 160*m.b20*m.b23*m.b27 - 96*m.b20*m.b23*m.b28 - 64*m.b20*m.b23*m.b29 - 32*
m.b20*m.b23*m.b30 - 416*m.b20*m.b24*m.b25 - 288*m.b20*m.b24*m.b26 - 160*m.b20*m.b24*m.b27 - 64*
m.b20*m.b24*m.b29 - 32*m.b20*m.b24*m.b30 - 288*m.b20*m.b25*m.b26 - 192*m.b20*m.b25*m.b27 - 96*
m.b20*m.b25*m.b28 - 64*m.b20*m.b25*m.b29 - 224*m.b20*m.b26*m.b27 - 128*m.b20*m.b26*m.b28 - 64*
m.b20*m.b26*m.b29 - 32*m.b20*m.b26*m.b30 - 160*m.b20*m.b27*m.b28 - 64*m.b20*m.b27*m.b29 - 32*
m.b20*m.b27*m.b30 - 96*m.b20*m.b28*m.b29 - 32*m.b20*m.b28*m.b30 - 32*m.b20*m.b29*m.b30 - 512*
m.b21*m.b22*m.b23 - 672*m.b21*m.b22*m.b24 - 544*m.b21*m.b22*m.b25 - 416*m.b21*m.b22*m.b26 - 288*
m.b21*m.b22*m.b27 - 224*m.b21*m.b22*m.b28 - 160*m.b21*m.b22*m.b29 - 96*m.b21*m.b22*m.b30 - 32*
m.b21*m.b22*m.b31 - 672*m.b21*m.b23*m.b24 - 320*m.b21*m.b23*m.b25 - 416*m.b21*m.b23*m.b26 - 288*
m.b21*m.b23*m.b27 - 192*m.b21*m.b23*m.b28 - 128*m.b21*m.b23*m.b29 - 64*m.b21*m.b23*m.b30 - 32*
m.b21*m.b23*m.b31 - 544*m.b21*m.b24*m.b25 - 416*m.b21*m.b24*m.b26 - 128*m.b21*m.b24*m.b27 - 160*
m.b21*m.b24*m.b28 - 96*m.b21*m.b24*m.b29 - 64*m.b21*m.b24*m.b30 - 32*m.b21*m.b24*m.b31 - 416*
m.b21*m.b25*m.b26 - 288*m.b21*m.b25*m.b27 - 160*m.b21*m.b25*m.b28 - 64*m.b21*m.b25*m.b30 - 32*
m.b21*m.b25*m.b31 - 288*m.b21*m.b26*m.b27 - 192*m.b21*m.b26*m.b28 - 96*m.b21*m.b26*m.b29 - 64*
m.b21*m.b26*m.b30 - 224*m.b21*m.b27*m.b28 - 128*m.b21*m.b27*m.b29 - 64*m.b21*m.b27*m.b30 - 32*
m.b21*m.b27*m.b31 - 160*m.b21*m.b28*m.b29 - 64*m.b21*m.b28*m.b30 - 32*m.b21*m.b28*m.b31 - 96*
m.b21*m.b29*m.b30 - 32*m.b21*m.b29*m.b31 - 32*m.b21*m.b30*m.b31 - 512*m.b22*m.b23*m.b24 - 672*
m.b22*m.b23*m.b25 - 544*m.b22*m.b23*m.b26 - 416*m.b22*m.b23*m.b27 - 288*m.b22*m.b23*m.b28 - 224*
m.b22*m.b23*m.b29 - 160*m.b22*m.b23*m.b30 - 96*m.b22*m.b23*m.b31 - 32*m.b22*m.b23*m.b32 - 672*
m.b22*m.b24*m.b25 - 320*m.b22*m.b24*m.b26 - 416*m.b22*m.b24*m.b27 - 288*m.b22*m.b24*m.b28 - 192*
m.b22*m.b24*m.b29 - 128*m.b22*m.b24*m.b30 - 64*m.b22*m.b24*m.b31 - 32*m.b22*m.b24*m.b32 - 544*
m.b22*m.b25*m.b26 - 416*m.b22*m.b25*m.b27 - 128*m.b22*m.b25*m.b28 - 160*m.b22*m.b25*m.b29 - 96*
m.b22*m.b25*m.b30 - 64*m.b22*m.b25*m.b31 - 32*m.b22*m.b25*m.b32 - 416*m.b22*m.b26*m.b27 - 288*
m.b22*m.b26*m.b28 - 160*m.b22*m.b26*m.b29 - 64*m.b22*m.b26*m.b31 - 32*m.b22*m.b26*m.b32 - 288*
m.b22*m.b27*m.b28 - 192*m.b22*m.b27*m.b29 - 96*m.b22*m.b27*m.b30 - 64*m.b22*m.b27*m.b31 - 224*
m.b22*m.b28*m.b29 - 128*m.b22*m.b28*m.b30 - 64*m.b22*m.b28*m.b31 - 32*m.b22*m.b28*m.b32 - 160*
m.b22*m.b29*m.b30 - 64*m.b22*m.b29*m.b31 - 32*m.b22*m.b29*m.b32 - 96*m.b22*m.b30*m.b31 - 32*m.b22
*m.b30*m.b32 - 32*m.b22*m.b31*m.b32 - 512*m.b23*m.b24*m.b25 - 672*m.b23*m.b24*m.b26 - 544*m.b23*
m.b24*m.b27 - 416*m.b23*m.b24*m.b28 - 288*m.b23*m.b24*m.b29 - 224*m.b23*m.b24*m.b30 - 160*m.b23*
m.b24*m.b31 - 96*m.b23*m.b24*m.b32 - 32*m.b23*m.b24*m.b33 - 672*m.b23*m.b25*m.b26 - 320*m.b23*
m.b25*m.b27 - 416*m.b23*m.b25*m.b28 - 288*m.b23*m.b25*m.b29 - 192*m.b23*m.b25*m.b30 - 128*m.b23*
m.b25*m.b31 - 64*m.b23*m.b25*m.b32 - 32*m.b23*m.b25*m.b33 - 544*m.b23*m.b26*m.b27 - 416*m.b23*
m.b26*m.b28 - 128*m.b23*m.b26*m.b29 - 160*m.b23*m.b26*m.b30 - 96*m.b23*m.b26*m.b31 - 64*m.b23*
m.b26*m.b32 - 32*m.b23*m.b26*m.b33 - 416*m.b23*m.b27*m.b28 - 288*m.b23*m.b27*m.b29 - 160*m.b23*
m.b27*m.b30 - 64*m.b23*m.b27*m.b32 - 32*m.b23*m.b27*m.b33 - 288*m.b23*m.b28*m.b29 - 192*m.b23*
m.b28*m.b30 - 96*m.b23*m.b28*m.b31 - 64*m.b23*m.b28*m.b32 - 224*m.b23*m.b29*m.b30 - 128*m.b23*
m.b29*m.b31 - 64*m.b23*m.b29*m.b32 - 32*m.b23*m.b29*m.b33 - 160*m.b23*m.b30*m.b31 - 64*m.b23*
m.b30*m.b32 - 32*m.b23*m.b30*m.b33 - 96*m.b23*m.b31*m.b32 - 32*m.b23*m.b31*m.b33 - 32*m.b23*m.b32
*m.b33 - 512*m.b24*m.b25*m.b26 - 672*m.b24*m.b25*m.b27 - 544*m.b24*m.b25*m.b28 - 416*m.b24*m.b25*
m.b29 - 288*m.b24*m.b25*m.b30 - 224*m.b24*m.b25*m.b31 - 160*m.b24*m.b25*m.b32 - 96*m.b24*m.b25*
m.b33 - 32*m.b24*m.b25*m.b34 - 672*m.b24*m.b26*m.b27 - 320*m.b24*m.b26*m.b28 - 416*m.b24*m.b26*
m.b29 - 288*m.b24*m.b26*m.b30 - 192*m.b24*m.b26*m.b31 - 128*m.b24*m.b26*m.b32 - 64*m.b24*m.b26*
m.b33 - 32*m.b24*m.b26*m.b34 - 544*m.b24*m.b27*m.b28 - 416*m.b24*m.b27*m.b29 - 128*m.b24*m.b27*
m.b30 - 160*m.b24*m.b27*m.b31 - 96*m.b24*m.b27*m.b32 - 64*m.b24*m.b27*m.b33 - 32*m.b24*m.b27*
m.b34 - 416*m.b24*m.b28*m.b29 - 288*m.b24*m.b28*m.b30 - 160*m.b24*m.b28*m.b31 - 64*m.b24*m.b28*
m.b33 - 32*m.b24*m.b28*m.b34 - 288*m.b24*m.b29*m.b30 - 192*m.b24*m.b29*m.b31 - 96*m.b24*m.b29*
m.b32 - 64*m.b24*m.b29*m.b33 - 224*m.b24*m.b30*m.b31 - 128*m.b24*m.b30*m.b32 - 64*m.b24*m.b30*
m.b33 - 32*m.b24*m.b30*m.b34 - 160*m.b24*m.b31*m.b32 - 64*m.b24*m.b31*m.b33 - 32*m.b24*m.b31*
m.b34 - 96*m.b24*m.b32*m.b33 - 32*m.b24*m.b32*m.b34 - 32*m.b24*m.b33*m.b34 - 512*m.b25*m.b26*
m.b27 - 672*m.b25*m.b26*m.b28 - 544*m.b25*m.b26*m.b29 - 416*m.b25*m.b26*m.b30 - 288*m.b25*m.b26*
m.b31 - 224*m.b25*m.b26*m.b32 - 160*m.b25*m.b26*m.b33 - 96*m.b25*m.b26*m.b34 - 32*m.b25*m.b26*
m.b35 - 672*m.b25*m.b27*m.b28 - 320*m.b25*m.b27*m.b29 - 416*m.b25*m.b27*m.b30 - 288*m.b25*m.b27*
m.b31 - 192*m.b25*m.b27*m.b32 - 128*m.b25*m.b27*m.b33 - 64*m.b25*m.b27*m.b34 - 32*m.b25*m.b27*
m.b35 - 544*m.b25*m.b28*m.b29 - 416*m.b25*m.b28*m.b30 - 128*m.b25*m.b28*m.b31 - 160*m.b25*m.b28*
m.b32 - 96*m.b25*m.b28*m.b33 - 64*m.b25*m.b28*m.b34 - 32*m.b25*m.b28*m.b35 - 416*m.b25*m.b29*
m.b30 - 288*m.b25*m.b29*m.b31 - 160*m.b25*m.b29*m.b32 - 64*m.b25*m.b29*m.b34 - 32*m.b25*m.b29*
m.b35 - 288*m.b25*m.b30*m.b31 - 192*m.b25*m.b30*m.b32 - 96*m.b25*m.b30*m.b33 - 64*m.b25*m.b30*
m.b34 - 224*m.b25*m.b31*m.b32 - 128*m.b25*m.b31*m.b33 - 64*m.b25*m.b31*m.b34 - 32*m.b25*m.b31*
m.b35 - 160*m.b25*m.b32*m.b33 - 64*m.b25*m.b32*m.b34 - 32*m.b25*m.b32*m.b35 - 96*m.b25*m.b33*
m.b34 - 32*m.b25*m.b33*m.b35 - 32*m.b25*m.b34*m.b35 - 512*m.b26*m.b27*m.b28 - 672*m.b26*m.b27*
m.b29 - 544*m.b26*m.b27*m.b30 - 416*m.b26*m.b27*m.b31 - 288*m.b26*m.b27*m.b32 - 224*m.b26*m.b27*
m.b33 - 160*m.b26*m.b27*m.b34 - 96*m.b26*m.b27*m.b35 - 32*m.b26*m.b27*m.b36 - 672*m.b26*m.b28*
m.b29 - 320*m.b26*m.b28*m.b30 - 416*m.b26*m.b28*m.b31 - 288*m.b26*m.b28*m.b32 - 192*m.b26*m.b28*
m.b33 - 128*m.b26*m.b28*m.b34 - 64*m.b26*m.b28*m.b35 - 32*m.b26*m.b28*m.b36 - 544*m.b26*m.b29*
m.b30 - 416*m.b26*m.b29*m.b31 - 128*m.b26*m.b29*m.b32 - 160*m.b26*m.b29*m.b33 - 96*m.b26*m.b29*
m.b34 - 64*m.b26*m.b29*m.b35 - 32*m.b26*m.b29*m.b36 - 416*m.b26*m.b30*m.b31 - 288*m.b26*m.b30*
m.b32 - 160*m.b26*m.b30*m.b33 - 64*m.b26*m.b30*m.b35 - 32*m.b26*m.b30*m.b36 - 288*m.b26*m.b31*
m.b32 - 192*m.b26*m.b31*m.b33 - 96*m.b26*m.b31*m.b34 - 64*m.b26*m.b31*m.b35 - 224*m.b26*m.b32*
m.b33 - 128*m.b26*m.b32*m.b34 - 64*m.b26*m.b32*m.b35 - 32*m.b26*m.b32*m.b36 - 160*m.b26*m.b33*
m.b34 - 64*m.b26*m.b33*m.b35 - 32*m.b26*m.b33*m.b36 - 96*m.b26*m.b34*m.b35 - 32*m.b26*m.b34*m.b36
- 32*m.b26*m.b35*m.b36 - 512*m.b27*m.b28*m.b29 - 672*m.b27*m.b28*m.b30 - 544*m.b27*m.b28*m.b31
- 416*m.b27*m.b28*m.b32 - 288*m.b27*m.b28*m.b33 - 224*m.b27*m.b28*m.b34 - 160*m.b27*m.b28*m.b35
- 96*m.b27*m.b28*m.b36 - 32*m.b27*m.b28*m.b37 - 672*m.b27*m.b29*m.b30 - 320*m.b27*m.b29*m.b31 -
416*m.b27*m.b29*m.b32 - 288*m.b27*m.b29*m.b33 - 192*m.b27*m.b29*m.b34 - 128*m.b27*m.b29*m.b35 -
64*m.b27*m.b29*m.b36 - 32*m.b27*m.b29*m.b37 - 544*m.b27*m.b30*m.b31 - 416*m.b27*m.b30*m.b32 - 128
*m.b27*m.b30*m.b33 - 160*m.b27*m.b30*m.b34 - 96*m.b27*m.b30*m.b35 - 64*m.b27*m.b30*m.b36 - 32*
m.b27*m.b30*m.b37 - 416*m.b27*m.b31*m.b32 - 288*m.b27*m.b31*m.b33 - 160*m.b27*m.b31*m.b34 - 64*
m.b27*m.b31*m.b36 - 32*m.b27*m.b31*m.b37 - 288*m.b27*m.b32*m.b33 - 192*m.b27*m.b32*m.b34 - 96*
m.b27*m.b32*m.b35 - 64*m.b27*m.b32*m.b36 - 224*m.b27*m.b33*m.b34 - 128*m.b27*m.b33*m.b35 - 64*
m.b27*m.b33*m.b36 - 32*m.b27*m.b33*m.b37 - 160*m.b27*m.b34*m.b35 - 64*m.b27*m.b34*m.b36 - 32*
m.b27*m.b34*m.b37 - 96*m.b27*m.b35*m.b36 - 32*m.b27*m.b35*m.b37 - 32*m.b27*m.b36*m.b37 - 512*
m.b28*m.b29*m.b30 - 672*m.b28*m.b29*m.b31 - 544*m.b28*m.b29*m.b32 - 416*m.b28*m.b29*m.b33 - 288*
m.b28*m.b29*m.b34 - 224*m.b28*m.b29*m.b35 - 160*m.b28*m.b29*m.b36 - 96*m.b28*m.b29*m.b37 - 32*
m.b28*m.b29*m.b38 - 672*m.b28*m.b30*m.b31 - 320*m.b28*m.b30*m.b32 - 416*m.b28*m.b30*m.b33 - 288*
m.b28*m.b30*m.b34 - 192*m.b28*m.b30*m.b35 - 128*m.b28*m.b30*m.b36 - 64*m.b28*m.b30*m.b37 - 32*
m.b28*m.b30*m.b38 - 544*m.b28*m.b31*m.b32 - 416*m.b28*m.b31*m.b33 - 128*m.b28*m.b31*m.b34 - 160*
m.b28*m.b31*m.b35 - 96*m.b28*m.b31*m.b36 - 64*m.b28*m.b31*m.b37 - 32*m.b28*m.b31*m.b38 - 416*
m.b28*m.b32*m.b33 - 288*m.b28*m.b32*m.b34 - 160*m.b28*m.b32*m.b35 - 64*m.b28*m.b32*m.b37 - 32*
m.b28*m.b32*m.b38 - 288*m.b28*m.b33*m.b34 - 192*m.b28*m.b33*m.b35 - 96*m.b28*m.b33*m.b36 - 64*
m.b28*m.b33*m.b37 - 224*m.b28*m.b34*m.b35 - 128*m.b28*m.b34*m.b36 - 64*m.b28*m.b34*m.b37 - 32*
m.b28*m.b34*m.b38 - 160*m.b28*m.b35*m.b36 - 64*m.b28*m.b35*m.b37 - 32*m.b28*m.b35*m.b38 - 96*
m.b28*m.b36*m.b37 - 32*m.b28*m.b36*m.b38 - 32*m.b28*m.b37*m.b38 - 512*m.b29*m.b30*m.b31 - 672*
m.b29*m.b30*m.b32 - 544*m.b29*m.b30*m.b33 - 416*m.b29*m.b30*m.b34 - 288*m.b29*m.b30*m.b35 - 224*
m.b29*m.b30*m.b36 - 160*m.b29*m.b30*m.b37 - 96*m.b29*m.b30*m.b38 - 32*m.b29*m.b30*m.b39 - 672*
m.b29*m.b31*m.b32 - 320*m.b29*m.b31*m.b33 - 416*m.b29*m.b31*m.b34 - 288*m.b29*m.b31*m.b35 - 192*
m.b29*m.b31*m.b36 - 128*m.b29*m.b31*m.b37 - 64*m.b29*m.b31*m.b38 - 32*m.b29*m.b31*m.b39 - 544*
m.b29*m.b32*m.b33 - 416*m.b29*m.b32*m.b34 - 128*m.b29*m.b32*m.b35 - 160*m.b29*m.b32*m.b36 - 96*
m.b29*m.b32*m.b37 - 64*m.b29*m.b32*m.b38 - 32*m.b29*m.b32*m.b39 - 416*m.b29*m.b33*m.b34 - 288*
m.b29*m.b33*m.b35 - 160*m.b29*m.b33*m.b36 - 64*m.b29*m.b33*m.b38 - 32*m.b29*m.b33*m.b39 - 288*
m.b29*m.b34*m.b35 - 192*m.b29*m.b34*m.b36 - 96*m.b29*m.b34*m.b37 - 64*m.b29*m.b34*m.b38 - 224*
m.b29*m.b35*m.b36 - 128*m.b29*m.b35*m.b37 - 64*m.b29*m.b35*m.b38 - 32*m.b29*m.b35*m.b39 - 160*
m.b29*m.b36*m.b37 - 64*m.b29*m.b36*m.b38 - 32*m.b29*m.b36*m.b39 - 96*m.b29*m.b37*m.b38 - 32*m.b29
*m.b37*m.b39 - 32*m.b29*m.b38*m.b39 - 512*m.b30*m.b31*m.b32 - 672*m.b30*m.b31*m.b33 - 544*m.b30*
m.b31*m.b34 - 416*m.b30*m.b31*m.b35 - 288*m.b30*m.b31*m.b36 - 224*m.b30*m.b31*m.b37 - 160*m.b30*
m.b31*m.b38 - 96*m.b30*m.b31*m.b39 - 32*m.b30*m.b31*m.b40 - 672*m.b30*m.b32*m.b33 - 320*m.b30*
m.b32*m.b34 - 416*m.b30*m.b32*m.b35 - 288*m.b30*m.b32*m.b36 - 192*m.b30*m.b32*m.b37 - 128*m.b30*
m.b32*m.b38 - 64*m.b30*m.b32*m.b39 - 32*m.b30*m.b32*m.b40 - 544*m.b30*m.b33*m.b34 - 416*m.b30*
m.b33*m.b35 - 128*m.b30*m.b33*m.b36 - 160*m.b30*m.b33*m.b37 - 96*m.b30*m.b33*m.b38 - 64*m.b30*
m.b33*m.b39 - 32*m.b30*m.b33*m.b40 - 416*m.b30*m.b34*m.b35 - 288*m.b30*m.b34*m.b36 - 160*m.b30*
m.b34*m.b37 - 64*m.b30*m.b34*m.b39 - 32*m.b30*m.b34*m.b40 - 288*m.b30*m.b35*m.b36 - 192*m.b30*
m.b35*m.b37 - 96*m.b30*m.b35*m.b38 - 64*m.b30*m.b35*m.b39 - 224*m.b30*m.b36*m.b37 - 128*m.b30*
m.b36*m.b38 - 64*m.b30*m.b36*m.b39 - 32*m.b30*m.b36*m.b40 - 160*m.b30*m.b37*m.b38 - 64*m.b30*
m.b37*m.b39 - 32*m.b30*m.b37*m.b40 - 96*m.b30*m.b38*m.b39 - 32*m.b30*m.b38*m.b40 - 32*m.b30*m.b39
*m.b40 - 512*m.b31*m.b32*m.b33 - 672*m.b31*m.b32*m.b34 - 544*m.b31*m.b32*m.b35 - 416*m.b31*m.b32*
m.b36 - 288*m.b31*m.b32*m.b37 - 224*m.b31*m.b32*m.b38 - 160*m.b31*m.b32*m.b39 - 96*m.b31*m.b32*
m.b40 - 32*m.b31*m.b32*m.b41 - 672*m.b31*m.b33*m.b34 - 320*m.b31*m.b33*m.b35 - 416*m.b31*m.b33*
m.b36 - 288*m.b31*m.b33*m.b37 - 192*m.b31*m.b33*m.b38 - 128*m.b31*m.b33*m.b39 - 64*m.b31*m.b33*
m.b40 - 32*m.b31*m.b33*m.b41 - 544*m.b31*m.b34*m.b35 - 416*m.b31*m.b34*m.b36 - 128*m.b31*m.b34*
m.b37 - 160*m.b31*m.b34*m.b38 - 96*m.b31*m.b34*m.b39 - 64*m.b31*m.b34*m.b40 - 32*m.b31*m.b34*
m.b41 - 416*m.b31*m.b35*m.b36 - 288*m.b31*m.b35*m.b37 - 160*m.b31*m.b35*m.b38 - 64*m.b31*m.b35*
m.b40 - 32*m.b31*m.b35*m.b41 - 288*m.b31*m.b36*m.b37 - 192*m.b31*m.b36*m.b38 - 96*m.b31*m.b36*
m.b39 - 64*m.b31*m.b36*m.b40 - 224*m.b31*m.b37*m.b38 - 128*m.b31*m.b37*m.b39 - 64*m.b31*m.b37*
m.b40 - 32*m.b31*m.b37*m.b41 - 160*m.b31*m.b38*m.b39 - 64*m.b31*m.b38*m.b40 - 32*m.b31*m.b38*
m.b41 - 96*m.b31*m.b39*m.b40 - 32*m.b31*m.b39*m.b41 - 32*m.b31*m.b40*m.b41 - 512*m.b32*m.b33*
m.b34 - 672*m.b32*m.b33*m.b35 - 544*m.b32*m.b33*m.b36 - 416*m.b32*m.b33*m.b37 - 288*m.b32*m.b33*
m.b38 - 224*m.b32*m.b33*m.b39 - 160*m.b32*m.b33*m.b40 - 96*m.b32*m.b33*m.b41 - 32*m.b32*m.b33*
m.b42 - 672*m.b32*m.b34*m.b35 - 320*m.b32*m.b34*m.b36 - 416*m.b32*m.b34*m.b37 - 288*m.b32*m.b34*
m.b38 - 192*m.b32*m.b34*m.b39 - 128*m.b32*m.b34*m.b40 - 64*m.b32*m.b34*m.b41 - 32*m.b32*m.b34*
m.b42 - 544*m.b32*m.b35*m.b36 - 416*m.b32*m.b35*m.b37 - 128*m.b32*m.b35*m.b38 - 160*m.b32*m.b35*
m.b39 - 96*m.b32*m.b35*m.b40 - 64*m.b32*m.b35*m.b41 - 32*m.b32*m.b35*m.b42 - 416*m.b32*m.b36*
m.b37 - 288*m.b32*m.b36*m.b38 - 160*m.b32*m.b36*m.b39 - 64*m.b32*m.b36*m.b41 - 32*m.b32*m.b36*
m.b42 - 288*m.b32*m.b37*m.b38 - 192*m.b32*m.b37*m.b39 - 96*m.b32*m.b37*m.b40 - 64*m.b32*m.b37*
m.b41 - 224*m.b32*m.b38*m.b39 - 128*m.b32*m.b38*m.b40 - 64*m.b32*m.b38*m.b41 - 32*m.b32*m.b38*
m.b42 - 160*m.b32*m.b39*m.b40 - 64*m.b32*m.b39*m.b41 - 32*m.b32*m.b39*m.b42 - 96*m.b32*m.b40*
m.b41 - 32*m.b32*m.b40*m.b42 - 32*m.b32*m.b41*m.b42 - 512*m.b33*m.b34*m.b35 - 672*m.b33*m.b34*
m.b36 - 544*m.b33*m.b34*m.b37 - 416*m.b33*m.b34*m.b38 - 288*m.b33*m.b34*m.b39 - 224*m.b33*m.b34*
m.b40 - 160*m.b33*m.b34*m.b41 - 96*m.b33*m.b34*m.b42 - 32*m.b33*m.b34*m.b43 - 672*m.b33*m.b35*
m.b36 - 320*m.b33*m.b35*m.b37 - 416*m.b33*m.b35*m.b38 - 288*m.b33*m.b35*m.b39 - 192*m.b33*m.b35*
m.b40 - 128*m.b33*m.b35*m.b41 - 64*m.b33*m.b35*m.b42 - 32*m.b33*m.b35*m.b43 - 544*m.b33*m.b36*
m.b37 - 416*m.b33*m.b36*m.b38 - 128*m.b33*m.b36*m.b39 - 160*m.b33*m.b36*m.b40 - 96*m.b33*m.b36*
m.b41 - 64*m.b33*m.b36*m.b42 - 32*m.b33*m.b36*m.b43 - 416*m.b33*m.b37*m.b38 - 288*m.b33*m.b37*
m.b39 - 160*m.b33*m.b37*m.b40 - 64*m.b33*m.b37*m.b42 - 32*m.b33*m.b37*m.b43 - 288*m.b33*m.b38*
m.b39 - 192*m.b33*m.b38*m.b40 - 96*m.b33*m.b38*m.b41 - 64*m.b33*m.b38*m.b42 - 224*m.b33*m.b39*
m.b40 - 128*m.b33*m.b39*m.b41 - 64*m.b33*m.b39*m.b42 - 32*m.b33*m.b39*m.b43 - 160*m.b33*m.b40*
m.b41 - 64*m.b33*m.b40*m.b42 - 32*m.b33*m.b40*m.b43 - 96*m.b33*m.b41*m.b42 - 32*m.b33*m.b41*m.b43
- 32*m.b33*m.b42*m.b43 - 512*m.b34*m.b35*m.b36 - 672*m.b34*m.b35*m.b37 - 544*m.b34*m.b35*m.b38
- 416*m.b34*m.b35*m.b39 - 288*m.b34*m.b35*m.b40 - 224*m.b34*m.b35*m.b41 - 160*m.b34*m.b35*m.b42
- 96*m.b34*m.b35*m.b43 - 32*m.b34*m.b35*m.b44 - 672*m.b34*m.b36*m.b37 - 320*m.b34*m.b36*m.b38 -
416*m.b34*m.b36*m.b39 - 288*m.b34*m.b36*m.b40 - 192*m.b34*m.b36*m.b41 - 128*m.b34*m.b36*m.b42 -
64*m.b34*m.b36*m.b43 - 32*m.b34*m.b36*m.b44 - 544*m.b34*m.b37*m.b38 - 416*m.b34*m.b37*m.b39 - 128
*m.b34*m.b37*m.b40 - 160*m.b34*m.b37*m.b41 - 96*m.b34*m.b37*m.b42 - 64*m.b34*m.b37*m.b43 - 32*
m.b34*m.b37*m.b44 - 416*m.b34*m.b38*m.b39 - 288*m.b34*m.b38*m.b40 - 160*m.b34*m.b38*m.b41 - 64*
m.b34*m.b38*m.b43 - 32*m.b34*m.b38*m.b44 - 288*m.b34*m.b39*m.b40 - 192*m.b34*m.b39*m.b41 - 96*
m.b34*m.b39*m.b42 - 64*m.b34*m.b39*m.b43 - 224*m.b34*m.b40*m.b41 - 128*m.b34*m.b40*m.b42 - 64*
m.b34*m.b40*m.b43 - 32*m.b34*m.b40*m.b44 - 160*m.b34*m.b41*m.b42 - 64*m.b34*m.b41*m.b43 - 32*
m.b34*m.b41*m.b44 - 96*m.b34*m.b42*m.b43 - 32*m.b34*m.b42*m.b44 - 32*m.b34*m.b43*m.b44 - 512*
m.b35*m.b36*m.b37 - 672*m.b35*m.b36*m.b38 - 544*m.b35*m.b36*m.b39 - 416*m.b35*m.b36*m.b40 - 288*
m.b35*m.b36*m.b41 - 224*m.b35*m.b36*m.b42 - 160*m.b35*m.b36*m.b43 - 96*m.b35*m.b36*m.b44 - 32*
m.b35*m.b36*m.b45 - 672*m.b35*m.b37*m.b38 - 320*m.b35*m.b37*m.b39 - 416*m.b35*m.b37*m.b40 - 288*
m.b35*m.b37*m.b41 - 192*m.b35*m.b37*m.b42 - 128*m.b35*m.b37*m.b43 - 64*m.b35*m.b37*m.b44 - 32*
m.b35*m.b37*m.b45 - 544*m.b35*m.b38*m.b39 - 416*m.b35*m.b38*m.b40 - 128*m.b35*m.b38*m.b41 - 160*
m.b35*m.b38*m.b42 - 96*m.b35*m.b38*m.b43 - 64*m.b35*m.b38*m.b44 - 32*m.b35*m.b38*m.b45 - 416*
m.b35*m.b39*m.b40 - 288*m.b35*m.b39*m.b41 - 160*m.b35*m.b39*m.b42 - 64*m.b35*m.b39*m.b44 - 32*
m.b35*m.b39*m.b45 - 288*m.b35*m.b40*m.b41 - 192*m.b35*m.b40*m.b42 - 96*m.b35*m.b40*m.b43 - 64*
m.b35*m.b40*m.b44 - 224*m.b35*m.b41*m.b42 - 128*m.b35*m.b41*m.b43 - 64*m.b35*m.b41*m.b44 - 32*
m.b35*m.b41*m.b45 - 160*m.b35*m.b42*m.b43 - 64*m.b35*m.b42*m.b44 - 32*m.b35*m.b42*m.b45 - 96*
m.b35*m.b43*m.b44 - 32*m.b35*m.b43*m.b45 - 32*m.b35*m.b44*m.b45 - 480*m.b36*m.b37*m.b38 - 608*
m.b36*m.b37*m.b39 - 480*m.b36*m.b37*m.b40 - 352*m.b36*m.b37*m.b41 - 224*m.b36*m.b37*m.b42 - 160*
m.b36*m.b37*m.b43 - 96*m.b36*m.b37*m.b44 - 32*m.b36*m.b37*m.b45 - 608*m.b36*m.b38*m.b39 - 288*
m.b36*m.b38*m.b40 - 352*m.b36*m.b38*m.b41 - 224*m.b36*m.b38*m.b42 - 128*m.b36*m.b38*m.b43 - 64*
m.b36*m.b38*m.b44 - 32*m.b36*m.b38*m.b45 - 480*m.b36*m.b39*m.b40 - 352*m.b36*m.b39*m.b41 - 96*
m.b36*m.b39*m.b42 - 96*m.b36*m.b39*m.b43 - 64*m.b36*m.b39*m.b44 - 32*m.b36*m.b39*m.b45 - 352*
m.b36*m.b40*m.b41 - 224*m.b36*m.b40*m.b42 - 128*m.b36*m.b40*m.b43 - 32*m.b36*m.b40*m.b45 - 256*
m.b36*m.b41*m.b42 - 160*m.b36*m.b41*m.b43 - 64*m.b36*m.b41*m.b44 - 32*m.b36*m.b41*m.b45 - 192*
m.b36*m.b42*m.b43 - 96*m.b36*m.b42*m.b44 - 32*m.b36*m.b42*m.b45 - 128*m.b36*m.b43*m.b44 - 32*
m.b36*m.b43*m.b45 - 64*m.b36*m.b44*m.b45 - 416*m.b37*m.b38*m.b39 - 544*m.b37*m.b38*m.b40 - 416*
m.b37*m.b38*m.b41 - 288*m.b37*m.b38*m.b42 - 160*m.b37*m.b38*m.b43 - 96*m.b37*m.b38*m.b44 - 32*
m.b37*m.b38*m.b45 - 512*m.b37*m.b39*m.b40 - 256*m.b37*m.b39*m.b41 - 288*m.b37*m.b39*m.b42 - 160*
m.b37*m.b39*m.b43 - 64*m.b37*m.b39*m.b44 - 32*m.b37*m.b39*m.b45 - 384*m.b37*m.b40*m.b41 - 288*
m.b37*m.b40*m.b42 - 64*m.b37*m.b40*m.b43 - 64*m.b37*m.b40*m.b44 - 32*m.b37*m.b40*m.b45 - 256*
m.b37*m.b41*m.b42 - 192*m.b37*m.b41*m.b43 - 96*m.b37*m.b41*m.b44 - 192*m.b37*m.b42*m.b43 - 128*
m.b37*m.b42*m.b44 - 32*m.b37*m.b42*m.b45 - 128*m.b37*m.b43*m.b44 - 64*m.b37*m.b43*m.b45 - 64*
m.b37*m.b44*m.b45 - 352*m.b38*m.b39*m.b40 - 448*m.b38*m.b39*m.b41 - 352*m.b38*m.b39*m.b42 - 224*
m.b38*m.b39*m.b43 - 96*m.b38*m.b39*m.b44 - 32*m.b38*m.b39*m.b45 - 416*m.b38*m.b40*m.b41 - 192*
m.b38*m.b40*m.b42 - 224*m.b38*m.b40*m.b43 - 96*m.b38*m.b40*m.b44 - 32*m.b38*m.b40*m.b45 - 288*
m.b38*m.b41*m.b42 - 192*m.b38*m.b41*m.b43 - 64*m.b38*m.b41*m.b44 - 32*m.b38*m.b41*m.b45 - 192*
m.b38*m.b42*m.b43 - 128*m.b38*m.b42*m.b44 - 64*m.b38*m.b42*m.b45 - 128*m.b38*m.b43*m.b44 - 64*
m.b38*m.b43*m.b45 - 64*m.b38*m.b44*m.b45 - 288*m.b39*m.b40*m.b41 - 352*m.b39*m.b40*m.b42 - 256*
m.b39*m.b40*m.b43 - 160*m.b39*m.b40*m.b44 - 32*m.b39*m.b40*m.b45 - 320*m.b39*m.b41*m.b42 - 128*
m.b39*m.b41*m.b43 - 128*m.b39*m.b41*m.b44 - 64*m.b39*m.b41*m.b45 - 192*m.b39*m.b42*m.b43 - 128*
m.b39*m.b42*m.b44 - 32*m.b39*m.b42*m.b45 - 128*m.b39*m.b43*m.b44 - 64*m.b39*m.b43*m.b45 - 64*
m.b39*m.b44*m.b45 - 224*m.b40*m.b41*m.b42 - 256*m.b40*m.b41*m.b43 - 160*m.b40*m.b41*m.b44 - 64*
m.b40*m.b41*m.b45 - 224*m.b40*m.b42*m.b43 - 64*m.b40*m.b42*m.b44 - 64*m.b40*m.b42*m.b45 - 128*
m.b40*m.b43*m.b44 - 64*m.b40*m.b43*m.b45 - 64*m.b40*m.b44*m.b45 - 160*m.b41*m.b42*m.b43 - 160*
m.b41*m.b42*m.b44 - 64*m.b41*m.b42*m.b45 - 128*m.b41*m.b43*m.b44 - 32*m.b41*m.b43*m.b45 - 64*
m.b41*m.b44*m.b45 - 96*m.b42*m.b43*m.b44 - 64*m.b42*m.b43*m.b45 - 64*m.b42*m.b44*m.b45 - 32*m.b43
*m.b44*m.b45 + 128*m.b1*m.b2 + 120*m.b1*m.b3 + 112*m.b1*m.b4 + 104*m.b1*m.b5 + 96*m.b1*m.b6 + 104
*m.b1*m.b7 + 96*m.b1*m.b8 + 88*m.b1*m.b9 + 80*m.b1*m.b10 + 72*m.b1*m.b11 + 256*m.b2*m.b3 + 256*
m.b2*m.b4 + 240*m.b2*m.b5 + 224*m.b2*m.b6 + 224*m.b2*m.b7 + 224*m.b2*m.b8 + 208*m.b2*m.b9 + 192*
m.b2*m.b10 + 160*m.b2*m.b11 + 72*m.b2*m.b12 + 400*m.b3*m.b4 + 392*m.b3*m.b5 + 384*m.b3*m.b6 + 360
*m.b3*m.b7 + 368*m.b3*m.b8 + 360*m.b3*m.b9 + 320*m.b3*m.b10 + 280*m.b3*m.b11 + 160*m.b3*m.b12 +
72*m.b3*m.b13 + 560*m.b4*m.b5 + 544*m.b4*m.b6 + 528*m.b4*m.b7 + 528*m.b4*m.b8 + 512*m.b4*m.b9 +
480*m.b4*m.b10 + 416*m.b4*m.b11 + 280*m.b4*m.b12 + 160*m.b4*m.b13 + 72*m.b4*m.b14 + 736*m.b5*m.b6
+ 712*m.b5*m.b7 + 672*m.b5*m.b8 + 664*m.b5*m.b9 + 640*m.b5*m.b10 + 584*m.b5*m.b11 + 416*m.b5*
m.b12 + 280*m.b5*m.b13 + 160*m.b5*m.b14 + 72*m.b5*m.b15 + 912*m.b6*m.b7 + 864*m.b6*m.b8 + 816*
m.b6*m.b9 + 784*m.b6*m.b10 + 736*m.b6*m.b11 + 584*m.b6*m.b12 + 416*m.b6*m.b13 + 280*m.b6*m.b14 +
160*m.b6*m.b15 + 72*m.b6*m.b16 + 1072*m.b7*m.b8 + 1000*m.b7*m.b9 + 944*m.b7*m.b10 + 888*m.b7*
m.b11 + 736*m.b7*m.b12 + 584*m.b7*m.b13 + 416*m.b7*m.b14 + 280*m.b7*m.b15 + 160*m.b7*m.b16 + 72*
m.b7*m.b17 + 1216*m.b8*m.b9 + 1136*m.b8*m.b10 + 1056*m.b8*m.b11 + 888*m.b8*m.b12 + 736*m.b8*m.b13
+ 584*m.b8*m.b14 + 416*m.b8*m.b15 + 280*m.b8*m.b16 + 160*m.b8*m.b17 + 72*m.b8*m.b18 + 1344*m.b9*
m.b10 + 1256*m.b9*m.b11 + 1056*m.b9*m.b12 + 888*m.b9*m.b13 + 736*m.b9*m.b14 + 584*m.b9*m.b15 +
416*m.b9*m.b16 + 280*m.b9*m.b17 + 160*m.b9*m.b18 + 72*m.b9*m.b19 + 1472*m.b10*m.b11 + 1256*m.b10*
m.b12 + 1056*m.b10*m.b13 + 888*m.b10*m.b14 + 736*m.b10*m.b15 + 584*m.b10*m.b16 + 416*m.b10*m.b17
+ 280*m.b10*m.b18 + 160*m.b10*m.b19 + 72*m.b10*m.b20 + 1472*m.b11*m.b12 + 1256*m.b11*m.b13 +
1056*m.b11*m.b14 + 888*m.b11*m.b15 + 736*m.b11*m.b16 + 584*m.b11*m.b17 + 416*m.b11*m.b18 + 280*
m.b11*m.b19 + 160*m.b11*m.b20 + 72*m.b11*m.b21 + 1472*m.b12*m.b13 + 1256*m.b12*m.b14 + 1056*m.b12
*m.b15 + 888*m.b12*m.b16 + 736*m.b12*m.b17 + 584*m.b12*m.b18 + 416*m.b12*m.b19 + 280*m.b12*m.b20
+ 160*m.b12*m.b21 + 72*m.b12*m.b22 + 1472*m.b13*m.b14 + 1256*m.b13*m.b15 + 1056*m.b13*m.b16 +
888*m.b13*m.b17 + 736*m.b13*m.b18 + 584*m.b13*m.b19 + 416*m.b13*m.b20 + 280*m.b13*m.b21 + 160*
m.b13*m.b22 + 72*m.b13*m.b23 + 1472*m.b14*m.b15 + 1256*m.b14*m.b16 + 1056*m.b14*m.b17 + 888*m.b14
*m.b18 + 736*m.b14*m.b19 + 584*m.b14*m.b20 + 416*m.b14*m.b21 + 280*m.b14*m.b22 + 160*m.b14*m.b23
+ 72*m.b14*m.b24 + 1472*m.b15*m.b16 + 1256*m.b15*m.b17 + 1056*m.b15*m.b18 + 888*m.b15*m.b19 +
736*m.b15*m.b20 + 584*m.b15*m.b21 + 416*m.b15*m.b22 + 280*m.b15*m.b23 + 160*m.b15*m.b24 + 72*
m.b15*m.b25 + 1472*m.b16*m.b17 + 1256*m.b16*m.b18 + 1056*m.b16*m.b19 + 888*m.b16*m.b20 + 736*
m.b16*m.b21 + 584*m.b16*m.b22 + 416*m.b16*m.b23 + 280*m.b16*m.b24 + 160*m.b16*m.b25 + 72*m.b16*
m.b26 + 1472*m.b17*m.b18 + 1256*m.b17*m.b19 + 1056*m.b17*m.b20 + 888*m.b17*m.b21 + 736*m.b17*
m.b22 + 584*m.b17*m.b23 + 416*m.b17*m.b24 + 280*m.b17*m.b25 + 160*m.b17*m.b26 + 72*m.b17*m.b27 +
1472*m.b18*m.b19 + 1256*m.b18*m.b20 + 1056*m.b18*m.b21 + 888*m.b18*m.b22 + 736*m.b18*m.b23 + 584*
m.b18*m.b24 + 416*m.b18*m.b25 + 280*m.b18*m.b26 + 160*m.b18*m.b27 + 72*m.b18*m.b28 + 1472*m.b19*
m.b20 + 1256*m.b19*m.b21 + 1056*m.b19*m.b22 + 888*m.b19*m.b23 + 736*m.b19*m.b24 + 584*m.b19*m.b25
+ 416*m.b19*m.b26 + 280*m.b19*m.b27 + 160*m.b19*m.b28 + 72*m.b19*m.b29 + 1472*m.b20*m.b21 + 1256
*m.b20*m.b22 + 1056*m.b20*m.b23 + 888*m.b20*m.b24 + 736*m.b20*m.b25 + 584*m.b20*m.b26 + 416*m.b20
*m.b27 + 280*m.b20*m.b28 + 160*m.b20*m.b29 + 72*m.b20*m.b30 + 1472*m.b21*m.b22 + 1256*m.b21*m.b23
+ 1056*m.b21*m.b24 + 888*m.b21*m.b25 + 736*m.b21*m.b26 + 584*m.b21*m.b27 + 416*m.b21*m.b28 + 280
*m.b21*m.b29 + 160*m.b21*m.b30 + 72*m.b21*m.b31 + 1472*m.b22*m.b23 + 1256*m.b22*m.b24 + 1056*
m.b22*m.b25 + 888*m.b22*m.b26 + 736*m.b22*m.b27 + 584*m.b22*m.b28 + 416*m.b22*m.b29 + 280*m.b22*
m.b30 + 160*m.b22*m.b31 + 72*m.b22*m.b32 + 1472*m.b23*m.b24 + 1256*m.b23*m.b25 + 1056*m.b23*m.b26
+ 888*m.b23*m.b27 + 736*m.b23*m.b28 + 584*m.b23*m.b29 + 416*m.b23*m.b30 + 280*m.b23*m.b31 + 160*
m.b23*m.b32 + 72*m.b23*m.b33 + 1472*m.b24*m.b25 + 1256*m.b24*m.b26 + 1056*m.b24*m.b27 + 888*m.b24
*m.b28 + 736*m.b24*m.b29 + 584*m.b24*m.b30 + 416*m.b24*m.b31 + 280*m.b24*m.b32 + 160*m.b24*m.b33
+ 72*m.b24*m.b34 + 1472*m.b25*m.b26 + 1256*m.b25*m.b27 + 1056*m.b25*m.b28 + 888*m.b25*m.b29 +
736*m.b25*m.b30 + 584*m.b25*m.b31 + 416*m.b25*m.b32 + 280*m.b25*m.b33 + 160*m.b25*m.b34 + 72*
m.b25*m.b35 + 1472*m.b26*m.b27 + 1256*m.b26*m.b28 + 1056*m.b26*m.b29 + 888*m.b26*m.b30 + 736*
m.b26*m.b31 + 584*m.b26*m.b32 + 416*m.b26*m.b33 + 280*m.b26*m.b34 + 160*m.b26*m.b35 + 72*m.b26*
m.b36 + 1472*m.b27*m.b28 + 1256*m.b27*m.b29 + 1056*m.b27*m.b30 + 888*m.b27*m.b31 + 736*m.b27*
m.b32 + 584*m.b27*m.b33 + 416*m.b27*m.b34 + 280*m.b27*m.b35 + 160*m.b27*m.b36 + 72*m.b27*m.b37 +
1472*m.b28*m.b29 + 1256*m.b28*m.b30 + 1056*m.b28*m.b31 + 888*m.b28*m.b32 + 736*m.b28*m.b33 + 584*
m.b28*m.b34 + 416*m.b28*m.b35 + 280*m.b28*m.b36 + 160*m.b28*m.b37 + 72*m.b28*m.b38 + 1472*m.b29*
m.b30 + 1256*m.b29*m.b31 + 1056*m.b29*m.b32 + 888*m.b29*m.b33 + 736*m.b29*m.b34 + 584*m.b29*m.b35
+ 416*m.b29*m.b36 + 280*m.b29*m.b37 + 160*m.b29*m.b38 + 72*m.b29*m.b39 + 1472*m.b30*m.b31 + 1256
*m.b30*m.b32 + 1056*m.b30*m.b33 + 888*m.b30*m.b34 + 736*m.b30*m.b35 + 584*m.b30*m.b36 + 416*m.b30
*m.b37 + 280*m.b30*m.b38 + 160*m.b30*m.b39 + 72*m.b30*m.b40 + 1472*m.b31*m.b32 + 1256*m.b31*m.b33
+ 1056*m.b31*m.b34 + 888*m.b31*m.b35 + 736*m.b31*m.b36 + 584*m.b31*m.b37 + 416*m.b31*m.b38 + 280
*m.b31*m.b39 + 160*m.b31*m.b40 + 72*m.b31*m.b41 + 1472*m.b32*m.b33 + 1256*m.b32*m.b34 + 1056*
m.b32*m.b35 + 888*m.b32*m.b36 + 736*m.b32*m.b37 + 584*m.b32*m.b38 + 416*m.b32*m.b39 + 280*m.b32*
m.b40 + 160*m.b32*m.b41 + 72*m.b32*m.b42 + 1472*m.b33*m.b34 + 1256*m.b33*m.b35 + 1056*m.b33*m.b36
+ 888*m.b33*m.b37 + 736*m.b33*m.b38 + 584*m.b33*m.b39 + 416*m.b33*m.b40 + 280*m.b33*m.b41 + 160*
m.b33*m.b42 + 72*m.b33*m.b43 + 1472*m.b34*m.b35 + 1256*m.b34*m.b36 + 1056*m.b34*m.b37 + 888*m.b34
*m.b38 + 736*m.b34*m.b39 + 584*m.b34*m.b40 + 416*m.b34*m.b41 + 280*m.b34*m.b42 + 160*m.b34*m.b43
+ 72*m.b34*m.b44 + 1472*m.b35*m.b36 + 1256*m.b35*m.b37 + 1056*m.b35*m.b38 + 888*m.b35*m.b39 +
736*m.b35*m.b40 + 584*m.b35*m.b41 + 416*m.b35*m.b42 + 280*m.b35*m.b43 + 160*m.b35*m.b44 + 72*
m.b35*m.b45 + 1344*m.b36*m.b37 + 1136*m.b36*m.b38 + 944*m.b36*m.b39 + 784*m.b36*m.b40 + 640*m.b36
*m.b41 + 480*m.b36*m.b42 + 320*m.b36*m.b43 + 192*m.b36*m.b44 + 80*m.b36*m.b45 + 1216*m.b37*m.b38
+ 1000*m.b37*m.b39 + 816*m.b37*m.b40 + 664*m.b37*m.b41 + 512*m.b37*m.b42 + 360*m.b37*m.b43 + 208
*m.b37*m.b44 + 88*m.b37*m.b45 + 1072*m.b38*m.b39 + 864*m.b38*m.b40 + 672*m.b38*m.b41 + 528*m.b38*
m.b42 + 368*m.b38*m.b43 + 224*m.b38*m.b44 + 96*m.b38*m.b45 + 912*m.b39*m.b40 + 712*m.b39*m.b41 +
528*m.b39*m.b42 + 360*m.b39*m.b43 + 224*m.b39*m.b44 + 104*m.b39*m.b45 + 736*m.b40*m.b41 + 544*
m.b40*m.b42 + 384*m.b40*m.b43 + 224*m.b40*m.b44 + 96*m.b40*m.b45 + 560*m.b41*m.b42 + 392*m.b41*
m.b43 + 240*m.b41*m.b44 + 104*m.b41*m.b45 + 400*m.b42*m.b43 + 256*m.b42*m.b44 + 112*m.b42*m.b45
+ 256*m.b43*m.b44 + 120*m.b43*m.b45 + 128*m.b44*m.b45 - 180*m.b1 - 388*m.b2 - 616*m.b3 - 856*
m.b4 - 1100*m.b5 - 1340*m.b6 - 1584*m.b7 - 1824*m.b8 - 2052*m.b9 - 2260*m.b10 - 2440*m.b11 - 2440
*m.b12 - 2440*m.b13 - 2440*m.b14 - 2440*m.b15 - 2440*m.b16 - 2440*m.b17 - 2440*m.b18 - 2440*m.b19
- 2440*m.b20 - 2440*m.b21 - 2440*m.b22 - 2440*m.b23 - 2440*m.b24 - 2440*m.b25 - 2440*m.b26 -
2440*m.b27 - 2440*m.b28 - 2440*m.b29 - 2440*m.b30 - 2440*m.b31 - 2440*m.b32 - 2440*m.b33 - 2440*
m.b34 - 2440*m.b35 - 2260*m.b36 - 2052*m.b37 - 1824*m.b38 - 1584*m.b39 - 1340*m.b40 - 1100*m.b41
- 856*m.b42 - 616*m.b43 - 388*m.b44 - 180*m.b45 - m.x46 <= 0)
| 112.181467 | 120 | 0.495841 | 20,777 | 87,165 | 2.080185 | 0.008375 | 0.02957 | 0.018047 | 0.021865 | 0.833804 | 0.808191 | 0.215965 | 0.169621 | 0.062217 | 0 | 0 | 0.375597 | 0.26537 | 87,165 | 776 | 121 | 112.326031 | 0.299357 | 0.007182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001326 | 0 | 0.001326 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
22479695f35a4f5da13057af6526a13a2f147a63 | 94 | py | Python | backend/admin.py | y-a-r-g/idea-color-themes | c770dd14ee6cca58a5078c8885a7d8adac34965b | [
"MIT"
] | 19 | 2015-04-29T16:16:07.000Z | 2018-08-21T18:18:18.000Z | backend/admin.py | sdvoynikov/idea-color-themes | c770dd14ee6cca58a5078c8885a7d8adac34965b | [
"MIT"
] | 2 | 2015-08-14T20:20:12.000Z | 2015-10-21T17:15:28.000Z | backend/admin.py | sdvoynikov/idea-color-themes | c770dd14ee6cca58a5078c8885a7d8adac34965b | [
"MIT"
] | 5 | 2015-07-04T02:29:05.000Z | 2018-02-21T06:28:35.000Z | from django.contrib import admin
from backend.models import Theme
admin.site.register(Theme)
| 18.8 | 32 | 0.829787 | 14 | 94 | 5.571429 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 94 | 4 | 33 | 23.5 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
2256c0a0a361df9d3783572e35a62a372af55723 | 183 | py | Python | src/datalabs/evaluation/processors/__init__.py | xcfcode/DataLab | d1a310de4986cb704b1fe3dea859452b8c14fc71 | [
"Apache-2.0"
] | null | null | null | src/datalabs/evaluation/processors/__init__.py | xcfcode/DataLab | d1a310de4986cb704b1fe3dea859452b8c14fc71 | [
"Apache-2.0"
] | null | null | null | src/datalabs/evaluation/processors/__init__.py | xcfcode/DataLab | d1a310de4986cb704b1fe3dea859452b8c14fc71 | [
"Apache-2.0"
] | null | null | null | # flake8: noqa
# when a new processor is implemented, remember to import it here so it gets registered
from . import text_classification
from .processor_registry import get_processor
| 36.6 | 87 | 0.819672 | 27 | 183 | 5.444444 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00641 | 0.147541 | 183 | 4 | 88 | 45.75 | 0.935897 | 0.535519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
225f4862d5511535ae78317835900b5ae4341c16 | 419 | py | Python | homework/day_5/mc_package_usman/mc_sim_usman/__init__.py | msse-2021-bootcamp/team2-project | 3915fd811be09e79d7ea5c9a368d7849ef5b629b | [
"BSD-3-Clause"
] | null | null | null | homework/day_5/mc_package_usman/mc_sim_usman/__init__.py | msse-2021-bootcamp/team2-project | 3915fd811be09e79d7ea5c9a368d7849ef5b629b | [
"BSD-3-Clause"
] | 22 | 2021-08-10T20:36:55.000Z | 2021-08-20T02:35:02.000Z | homework/day_5/mc_package_usman/mc_sim_usman/__init__.py | msse-2021-bootcamp/team2-project | 3915fd811be09e79d7ea5c9a368d7849ef5b629b | [
"BSD-3-Clause"
] | null | null | null | from .monte_carlo_numpy_usman import calculate_distance_np, calculate_LJ_np, calculate_pair_energy_np, calculate_total_energy_np
from .monte_carlo_usman import calculate_distance, calculate_LJ, calculate_pair_energy, calculate_total_energy
from .run_mc_usman import run_simulation_np
from .utilities_usman import calculate_tail_correction, read_xyz, accept_or_reject
from .time_avg_rdf_usman import radial_distribution
| 69.833333 | 128 | 0.902148 | 63 | 419 | 5.444444 | 0.460317 | 0.16035 | 0.174927 | 0.163265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066826 | 419 | 5 | 129 | 83.8 | 0.877238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
22758f1526fd43a8e804149b899a8d44e99f76c8 | 829 | py | Python | active_module_sampler/active_learning_sampler.py | Jwy-Leo/SSD_Detection | 2d19a36ab6815a8546b3730eb6a6b1810f1df708 | [
"MIT"
] | null | null | null | active_module_sampler/active_learning_sampler.py | Jwy-Leo/SSD_Detection | 2d19a36ab6815a8546b3730eb6a6b1810f1df708 | [
"MIT"
] | null | null | null | active_module_sampler/active_learning_sampler.py | Jwy-Leo/SSD_Detection | 2d19a36ab6815a8546b3730eb6a6b1810f1df708 | [
"MIT"
] | null | null | null | import numpy as np
class _sampler(object):
def __init__(self):
pass
def __call__(self, reference_set):
pass
class random_sampler(_sampler):
def __init__(self):
super(random_sampler,self).__init__()
def __call__(self, reference_set, sample_num):
assert type(reference_set) is list
sample_index = np.random.choice(reference_set, sample_num)
return sample_index
class uncertainty_sampler(_sampler):
def __init__(self):
super(uncertainty_sampelr,self).__init__()
def __call__(self, reference_set):
# assert type(reference_set) is list
# assert type(reference_set[0]) is tuple
assert type(reference_set) is np.ndarray
index_max = reference_set[:,0].argsort()
data = reference_set[index_max,1]
return data
| 34.541667 | 66 | 0.680338 | 105 | 829 | 4.847619 | 0.32381 | 0.235756 | 0.149312 | 0.172888 | 0.442043 | 0.349705 | 0.121807 | 0 | 0 | 0 | 0 | 0.004702 | 0.230398 | 829 | 23 | 67 | 36.043478 | 0.793103 | 0.088058 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0.285714 | false | 0.095238 | 0.047619 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 5 |
97da110e83b009a0b548c5f284fe1df3df6a8a5e | 141 | py | Python | trame/internal/utils/string.py | DavidBerger98/trame | 60d521338559d4c9434073ed3818afd9f1411a90 | [
"BSD-3-Clause"
] | null | null | null | trame/internal/utils/string.py | DavidBerger98/trame | 60d521338559d4c9434073ed3818afd9f1411a90 | [
"BSD-3-Clause"
] | null | null | null | trame/internal/utils/string.py | DavidBerger98/trame | 60d521338559d4c9434073ed3818afd9f1411a90 | [
"BSD-3-Clause"
] | null | null | null | def is_dunder(s):
# Check if this is a double underscore (dunder) name
return len(s) > 4 and s.isascii() and s[:2] == s[-2:] == "__"
| 35.25 | 65 | 0.595745 | 25 | 141 | 3.24 | 0.68 | 0.098765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027523 | 0.22695 | 141 | 3 | 66 | 47 | 0.715596 | 0.35461 | 0 | 0 | 0 | 0 | 0.022472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
97f3abb0d7b0a5ef8e8f56424cd72ba8004958d4 | 4,909 | py | Python | publish/tools/url_fixer.py | nhsengland/publish-o-matic | dc8f16cb83a2360989afa44d887e63b5cde6af29 | [
"MIT"
] | null | null | null | publish/tools/url_fixer.py | nhsengland/publish-o-matic | dc8f16cb83a2360989afa44d887e63b5cde6af29 | [
"MIT"
] | 11 | 2015-03-02T16:30:20.000Z | 2016-11-29T12:16:15.000Z | publish/tools/url_fixer.py | nhsengland/publish-o-matic | dc8f16cb83a2360989afa44d887e63b5cde6af29 | [
"MIT"
] | 2 | 2020-12-25T20:38:31.000Z | 2021-04-11T07:35:01.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Fixes URLs from the hashed name, and copies them to the proper name
'''
import collections
import ConfigParser
import hashlib
import json
import os
import sys
import time
import slugify
import boto.s3.key as s3key
import boto.s3.connection as s3connection
import ffs
import ckanapi
from publish.lib.manifest import get_scraper_names
RESOURCES = ["013ae123-f05f-4a73-9806-b16f3e925c32", "04a2e903-8114-4037-bac1-480c6cdeb32e","0a873564-0a18-4edc-b7e8-5cadc40eecec",
"1e653985-8598-42b7-aefa-8db9122dbae4", "1eaaf9d4-fca2-4c7c-9c00-e2c223430a64", "212b6adb-3196-4854-af7d-1f146a2d3ec9",
"215f73ee-41b3-40fa-8ea7-b6d13f1337ec", "27031f95-dc3b-4874-b25a-e2c2e7402cc4",
"29674e39-589b-4d89-aca3-fb12f120f895", "2c6daf45-eb12-47c6-ab83-100bbdfbb413",
"32a57fe6-c29a-4000-bb7b-7026df930a98", "334e87c4-3060-4bb0-9517-8eedf47e3523",
"434ee817-f6f2-419c-be5f-2d4629e05a69", "44e582af-d838-4fc4-a39a-231bcc2770d9",
"4a7905f9-9461-4a38-9b32-e3f2eeaae756", "4aa9d478-5e08-4086-bd56-5781df2f200f",
"5a621b1a-4e49-4a5a-8cbd-2fad43ef139d",
"5aa31d25-4161-43f4-b091-7f1a56cc690b", "5d9308b6-4a8c-4d80-88a0-c85ec2392a8d",
"67fbde94-a46a-4843-b60e-d66fa63e41eb", "6ec9b5f0-c6e6-4bdb-afef-8956468ecf85", "8f5cd034-9219-45ad-bfdd-49aa6541ccc5",
"90035b42-d2b3-405f-9d63-3e0455cf2e05", "982c5943-e3f3-48f8-bd85-84e0c6c608f0", "a07a2b4f-277f-46fe-9e5a-b13991b03faa",
"a5594295-26a5-4d79-a00a-41f38e867b1e","a70defff-b6d2-4d36-9486-d4d0eba99a10", "ad7d4ce2-a8b1-4fc5-8b5e-ce5394423986",
"afb3049d-78f6-4048-9a4e-6638d2688e0d", "b3c83e2b-3e86-4179-a960-f6b6e726f19f", "b44fd4e7-fdc7-4a70-8a66-c2e5a078c44d",
"ba2fcfae-4d97-4b95-a8d2-81be857add66", "bbed9698-57a7-4c10-a2d1-aacc176727ad", "c36b3b07-2845-4fac-87b6-bf6819457459", "c51f2ae6-7950-419b-bb4b-5d8fca5b0c84",
"cee5f646-0fa5-40fb-8484-3ebcb5effd53", "d07d271c-5933-4eb2-a70b-ef7551563269", "d16afb5b-2575-4068-a4c5-be04c966f543",
"dadfd925-f491-46f3-92c1-f84959325969", "e01fc8b5-6c9b-4a56-9063-4b170cc97dee","e560de1c-8a06-49a6-969c-11535c3ef2e6",
"e6d5b531-2572-48b6-9689-e17461240bce", "f075e75a-387e-4f36-8514-fc662507d3da", "f0b07d1e-910f-42da-a875-91478ff5c415", "f3142c2e-ffa3-42d3-a733-97d88228e4a1",]
import boto.s3.key as s3key
import boto.s3.connection as s3connection
def main():
"""
Finds all the metadata .json files and builds a list of the URLs. Will
then try and copy them using the filename of the URL rather than the hash
"""
c = ConfigParser.ConfigParser()
c.read(ffs.Path('~/.dc.ini').abspath)
bucket_name = c.get('ckan', 'aws_bucket')
conn = s3connection.S3Connection(c.get('ckan', 'aws_access_key'),
c.get('ckan', 'aws_secret_key'))
bucket = conn.get_bucket(bucket_name)
print "Server is ", c.get('ckan', 'url')
ckan = ckanapi.RemoteCKAN(c.get('ckan', 'url'),
apikey=c.get('ckan', 'api_key'))
active = 0
"""
res = ckan.action.resource_search(query="url_type:upload")
for r in res['results']:
if 'download' in r['url']:
rid = r['id']
print rid
key = u'/{}/{}/{}/{}'.format(
rid[0:3], rid[3:6], rid[6:], r['url'].split('/')[-1]
)
k = s3key.Key(bucket)
k.key = key
k.set_acl('public-read')
if r['url'].split('/')[-1] == 'upload':
# need to rename the upload to the resource name
try:
new_key = u'/{}/{}/{}/{}'.format(
rid[0:3], rid[3:6], rid[6:], slugify.slugify(r['name']) + "." + r['format'].lower()
)
xk = s3key.Key(bucket)
xk.key = new_key
if not xk.exists():
print new_key, "does not exist"
print " ... updating S3 file ... "
blob = k.get_contents_as_string()
xk.set_contents_from_string(blob)
xk.set_acl('public-read')
key = new_key
except Exception, e:
import time
time.sleep(5)
print "Copy failed"
print e
r['url_type'] = ''
r['url'] = "https://nhsenglandfilestore.s3.amazonaws.com{}".format(key)
print "Updating CKAN resource ---"
try:
ckan.action.resource_update(**r)
except:
print "Failed to process resource id ", r['id']
continue
"""
for r in RESOURCES:
print r
resource = ckan.action.resource_show(id=r)
print resource['id'], resource['datastore_active']
#res = ckan.action.datapusher_submit(resource_id=r, ignore_hash=True)
#print res
if __name__ == "__main__":
main() | 41.601695 | 160 | 0.621104 | 598 | 4,909 | 5.031773 | 0.61204 | 0.007976 | 0.015952 | 0.010967 | 0.054503 | 0.054503 | 0.054503 | 0.054503 | 0.054503 | 0.054503 | 0 | 0.248011 | 0.232023 | 4,909 | 118 | 161 | 41.601695 | 0.550133 | 0.024241 | 0 | 0.081633 | 0 | 0 | 0.606695 | 0.564854 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.306122 | null | null | 0.061224 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
3f0d63a55f29dbbd8066559e3f9d6ecbfca3e7e0 | 174 | py | Python | allauth/socialaccount/providers/trello_provider/urls.py | Fuzzwah/django-allauth | 071cbef1388bb61a563d3e41197bd5b7c26664d2 | [
"MIT"
] | null | null | null | allauth/socialaccount/providers/trello_provider/urls.py | Fuzzwah/django-allauth | 071cbef1388bb61a563d3e41197bd5b7c26664d2 | [
"MIT"
] | null | null | null | allauth/socialaccount/providers/trello_provider/urls.py | Fuzzwah/django-allauth | 071cbef1388bb61a563d3e41197bd5b7c26664d2 | [
"MIT"
] | null | null | null | from allauth.socialaccount.providers.oauth_provider.urls import default_urlpatterns
from .provider import TrelloProvider
urlpatterns = default_urlpatterns(TrelloProvider)
| 24.857143 | 83 | 0.873563 | 18 | 174 | 8.277778 | 0.611111 | 0.241611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08046 | 174 | 6 | 84 | 29 | 0.93125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
3f0fba3975c31e71ce209f0a97d9c85ea8beb899 | 217 | py | Python | problems/replace_with_alphabet_position.py | stereoabuse/codewars | d6437afaef38c3601903891b8b9cb0f84c108c54 | [
"MIT"
] | null | null | null | problems/replace_with_alphabet_position.py | stereoabuse/codewars | d6437afaef38c3601903891b8b9cb0f84c108c54 | [
"MIT"
] | null | null | null | problems/replace_with_alphabet_position.py | stereoabuse/codewars | d6437afaef38c3601903891b8b9cb0f84c108c54 | [
"MIT"
] | null | null | null | ## Replace With Alphabet Position
## 6 kyu
## https://www.codewars.com/kata/546f922b54af40e1e90001da
def alphabet_position(text):
return " ".join([str(ord(c.lower()) - 96) for c in text if c.isalpha()]) | 31 | 76 | 0.672811 | 30 | 217 | 4.833333 | 0.833333 | 0.22069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105556 | 0.170507 | 217 | 7 | 76 | 31 | 0.7 | 0.428571 | 0 | 0 | 0 | 0 | 0.009009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
3f54a13bd64de4907ea1557de2fda724cf06e8d2 | 653 | py | Python | game/gamestate/basegamestate.py | Sipondo/ulix-dexflow | de46482fe08e3d600dd5da581f0524b55e5df961 | [
"MIT"
] | 5 | 2021-06-25T16:44:38.000Z | 2021-12-31T01:29:00.000Z | game/gamestate/basegamestate.py | Sipondo/ulix-dexflow | de46482fe08e3d600dd5da581f0524b55e5df961 | [
"MIT"
] | null | null | null | game/gamestate/basegamestate.py | Sipondo/ulix-dexflow | de46482fe08e3d600dd5da581f0524b55e5df961 | [
"MIT"
] | 1 | 2021-06-25T20:33:47.000Z | 2021-06-25T20:33:47.000Z | import abc
class BaseGameState(abc.ABC):
def __init__(self, game, config=None):
self.game = game
self.animations = None
self.lock = False
self.block_input = False
@abc.abstractmethod
def on_enter(self, **kwargs):
pass
@abc.abstractmethod
def on_tick(self, time, frame_time):
return self.lock
# @abc.abstractmethod
def on_render(self, time, frame_time):
return self.lock
@abc.abstractmethod
def on_exit(self):
pass
@abc.abstractmethod
def event_keypress(self, key, modifiers):
pass
def event_unicode(self, char):
pass
| 19.787879 | 45 | 0.618683 | 79 | 653 | 4.949367 | 0.405063 | 0.217391 | 0.255754 | 0.225064 | 0.2711 | 0.2711 | 0.2711 | 0.2711 | 0.2711 | 0.2711 | 0 | 0 | 0.290965 | 653 | 32 | 46 | 20.40625 | 0.844492 | 0.029096 | 0 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304348 | false | 0.173913 | 0.043478 | 0.086957 | 0.478261 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
3f7222b91b7769e56272bf1626e8a78ad9fefa5f | 3,366 | py | Python | src/python/test_sort.py | ibusybox/algorithm | 5f19d3837ac78f76766073b7a32a85c9e0863a9f | [
"Apache-2.0"
] | null | null | null | src/python/test_sort.py | ibusybox/algorithm | 5f19d3837ac78f76766073b7a32a85c9e0863a9f | [
"Apache-2.0"
] | null | null | null | src/python/test_sort.py | ibusybox/algorithm | 5f19d3837ac78f76766073b7a32a85c9e0863a9f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#coding: utf-8
import unittest
import sort
class TestInsertionSort(unittest.TestCase):
def setUp(self):
print "start insertion sort test"
def tearDown(self):
print "end insertion sort test"
def test_case01(self):
A = [3,2,1]
print "origin A=%s" % A
sort.insertion_sort(A)
print "insertion sorted A=%s" % A
self.assertTrue([1,2,3] == A)
def test_case02(self):
A = [3,1]
print "origin A=%s" % A
sort.insertion_sort(A)
print "insertion sorted A=%s" % A
self.assertTrue([1,3] == A)
def test_case03(self):
A = [3,4,5,2,1]
print "origin A=%s" % A
sort.insertion_sort(A)
print "insertion sorted A=%s" % A
self.assertTrue([1,2,3,4,5] == A)
class TestSelectionSort(unittest.TestCase):
def setUp(self):
print "start selection sort test"
def tearDown(self):
print "end selection sort test"
def test_case01(self):
A = [3,2,1]
print "origin A=%s" % A
sort.selection_sort(A)
print "selection sorted A=%s" % A
self.assertTrue([1,2,3] == A)
def test_case02(self):
A = [3,1]
print "origin A=%s" % A
sort.selection_sort(A)
print "selection sorted A=%s" % A
self.assertTrue([1,3] == A)
def test_case03(self):
A = [3,4,5,2,1]
print "origin A=%s" % A
sort.selection_sort(A)
print "selection sorted A=%s" % A
self.assertTrue([1,2,3,4,5] == A)
class TestBubbleSort(unittest.TestCase):
def setUp(self):
print "start bubble sort test"
def tearDown(self):
print "end bubble sort test"
def test_case01(self):
A = [3,2,1]
print "origin A=%s" % A
sort.bubble_sort(A)
print "bubble sorted A=%s" % A
self.assertTrue([1,2,3] == A)
def test_case02(self):
A = [3,1]
print "origin A=%s" % A
sort.bubble_sort(A)
print "bubble sorted A=%s" % A
self.assertTrue([1,3] == A)
def test_case03(self):
A = [3,4,5,2,1]
print "origin A=%s" % A
sort.bubble_sort(A)
print "bubble sorted A=%s" % A
self.assertTrue([1,2,3,4,5] == A)
class TestMergeSort(unittest.TestCase):
def setUp(self):
print "start merge sort test"
def tearDown(self):
print "end merge sort test"
def test_case01(self):
A = [3,2,1]
print "origin A=%s" % A
sort.merge_sort(A, 0, len(A))
print "merge sorted A=%s" % A
self.assertTrue([1,2,3] == A)
def test_case02(self):
A = [3,1]
print "origin A=%s" % A
sort.merge_sort(A, 0, len(A))
print "merge sorted A=%s" % A
self.assertTrue([1,3] == A)
def test_case03(self):
A = [3,4,5,2,1]
print "origin A=%s" % A
sort.merge_sort(A, 0, len(A))
print "merge sorted A=%s" % A
self.assertTrue([1,2,3,4,5] == A)
if __name__ == '__main__':
suit = unittest.TestSuite()
suit.addTest(unittest.makeSuite(TestSelectionSort))
suit.addTest(unittest.makeSuite(TestInsertionSort))
suit.addTest(unittest.makeSuite(TestBubbleSort))
suit.addTest(unittest.makeSuite(TestMergeSort))
runner = unittest.TextTestRunner()
runner.run(suit)
| 30.053571 | 55 | 0.559121 | 488 | 3,366 | 3.790984 | 0.108607 | 0.025946 | 0.038919 | 0.084324 | 0.774054 | 0.774054 | 0.774054 | 0.624865 | 0.624865 | 0.624865 | 0 | 0.045647 | 0.297089 | 3,366 | 111 | 56 | 30.324324 | 0.736264 | 0.009804 | 0 | 0.784314 | 0 | 0 | 0.164815 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 0 | null | null | 0 | 0.019608 | null | null | 0.313725 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 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 | 5 |
58b664c52a85d268ef56d37f54f443a79ba0e185 | 168 | py | Python | python/Alura/data science/numpy/importando.py | alifoliveira/rep-estudos | 73ffb7cfe77890f6cca8b5447db332f88454ef7e | [
"MIT"
] | null | null | null | python/Alura/data science/numpy/importando.py | alifoliveira/rep-estudos | 73ffb7cfe77890f6cca8b5447db332f88454ef7e | [
"MIT"
] | null | null | null | python/Alura/data science/numpy/importando.py | alifoliveira/rep-estudos | 73ffb7cfe77890f6cca8b5447db332f88454ef7e | [
"MIT"
] | null | null | null | # import
import numpy
# import convenção
import numpy as np
# import especifico
from numpy import arange
print(numpy.arange(10))
print(np.arange(10))
print(arange(10)) | 16.8 | 24 | 0.77381 | 26 | 168 | 5 | 0.384615 | 0.184615 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0.125 | 168 | 10 | 25 | 16.8 | 0.843537 | 0.244048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 5 |
58e9bc05bda95f82de8e4561bf04af51a3fce443 | 37 | py | Python | hyades/parsers/__init__.py | renatoalmeidaoliveira/Hyades | 2b6aa6ff609fda3c684c3479919cfd5e497d7ec0 | [
"MIT"
] | 1 | 2021-10-17T15:27:26.000Z | 2021-10-17T15:27:26.000Z | hyades/parsers/__init__.py | renatoalmeidaoliveira/Hyades | 2b6aa6ff609fda3c684c3479919cfd5e497d7ec0 | [
"MIT"
] | null | null | null | hyades/parsers/__init__.py | renatoalmeidaoliveira/Hyades | 2b6aa6ff609fda3c684c3479919cfd5e497d7ec0 | [
"MIT"
] | null | null | null | from hyades.parsers.wrappers import * | 37 | 37 | 0.837838 | 5 | 37 | 6.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 37 | 1 | 37 | 37 | 0.911765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
450d01e1a8639a3d8f3d3e3fed61c70cf34900f1 | 90 | py | Python | watch/core/rest/__init__.py | ResonantGeoData/RD-WATCH | d40b3d7927b9c999b9809291ee97f27d361c4c3a | [
"Apache-2.0"
] | 2 | 2022-01-24T21:43:47.000Z | 2022-01-28T05:22:12.000Z | watch/core/rest/__init__.py | ResonantGeoData/RD-WATCH | d40b3d7927b9c999b9809291ee97f27d361c4c3a | [
"Apache-2.0"
] | 42 | 2021-07-01T20:12:50.000Z | 2022-03-22T17:38:30.000Z | watch/core/rest/__init__.py | ResonantGeoData/RD-WATCH | d40b3d7927b9c999b9809291ee97f27d361c4c3a | [
"Apache-2.0"
] | null | null | null | __all__ = [
'get',
'post',
'stac_file',
]
from . import get, post, stac_file
| 11.25 | 34 | 0.544444 | 11 | 90 | 3.909091 | 0.636364 | 0.325581 | 0.511628 | 0.697674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.288889 | 90 | 7 | 35 | 12.857143 | 0.671875 | 0 | 0 | 0 | 0 | 0 | 0.177778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
189673b31e3778cef7ee59ffbc50beb5cecfb62e | 76 | py | Python | source/interstate_love_song/mapping/__init__.py | ilpvfx/interstate_love_song | 36d65def92ac067e6a25a68bb24a948d2048e0df | [
"Apache-2.0"
] | 9 | 2020-06-28T17:00:48.000Z | 2022-03-04T22:10:21.000Z | source/interstate_love_song/mapping/__init__.py | ilpvfx/interstate_love_song | 36d65def92ac067e6a25a68bb24a948d2048e0df | [
"Apache-2.0"
] | 6 | 2020-06-26T16:31:47.000Z | 2020-09-01T10:59:36.000Z | source/interstate_love_song/mapping/__init__.py | ilpvfx/interstate_love_song | 36d65def92ac067e6a25a68bb24a948d2048e0df | [
"Apache-2.0"
] | 1 | 2020-06-27T13:15:24.000Z | 2020-06-27T13:15:24.000Z | from .base import MapperResult, MapperStatus, Mapper, Credentials, Resource
| 38 | 75 | 0.828947 | 8 | 76 | 7.875 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 76 | 1 | 76 | 76 | 0.926471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
189942bc48708786adfce1683dc9547da44c795c | 208 | py | Python | ticketing/ticketing/models.py | EdgardoDev/ticketing-system | 550cf5d5f281151e791b4d33ed304e29c2b54be3 | [
"MIT"
] | null | null | null | ticketing/ticketing/models.py | EdgardoDev/ticketing-system | 550cf5d5f281151e791b4d33ed304e29c2b54be3 | [
"MIT"
] | null | null | null | ticketing/ticketing/models.py | EdgardoDev/ticketing-system | 550cf5d5f281151e791b4d33ed304e29c2b54be3 | [
"MIT"
] | null | null | null | from django.db import models
class Ticket(models.Model):
submitter = models.CharField(max_length=100)
body = models.CharField(max_length=1000)
created_at = models.DateTimeField(auto_now_add=True) | 34.666667 | 56 | 0.774038 | 29 | 208 | 5.37931 | 0.758621 | 0.192308 | 0.230769 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038674 | 0.129808 | 208 | 6 | 56 | 34.666667 | 0.823204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 5 |
1899a980f1ef8d6ae8c9eead98e77db305bf7b11 | 802 | py | Python | src/node/ext/ldap/__init__.py | enfold/node.ext.ldap | 28127057be6ba3092389f3c920575292d43d9f94 | [
"BSD-2-Clause"
] | 3 | 2016-04-22T00:37:17.000Z | 2020-04-03T07:14:54.000Z | src/node/ext/ldap/__init__.py | enfold/node.ext.ldap | 28127057be6ba3092389f3c920575292d43d9f94 | [
"BSD-2-Clause"
] | 51 | 2015-02-10T11:14:01.000Z | 2021-05-05T11:06:59.000Z | src/node/ext/ldap/__init__.py | enfold/node.ext.ldap | 28127057be6ba3092389f3c920575292d43d9f94 | [
"BSD-2-Clause"
] | 12 | 2016-08-09T09:39:35.000Z | 2020-04-18T14:53:56.000Z | # -*- coding: utf-8 -*-
# do not change import order
from node.ext.ldap.scope import BASE
from node.ext.ldap.scope import ONELEVEL
from node.ext.ldap.scope import SUBTREE
from node.ext.ldap.base import LDAPCommunicator
from node.ext.ldap.base import LDAPConnector
from node.ext.ldap.base import testLDAPConnectivity
from node.ext.ldap.session import LDAPSession
from node.ext.ldap._node import LDAPNode
from node.ext.ldap._node import LDAPNodeAttributes
from node.ext.ldap._node import LDAPStorage
from node.ext.ldap.filter import LDAPDictFilter
from node.ext.ldap.filter import LDAPFilter
from node.ext.ldap.filter import LDAPRelationFilter
from node.ext.ldap.properties import LDAPProps
from node.ext.ldap.properties import LDAPServerProperties # BBB
from node.ext.ldap.schema import LDAPSchemaInfo
| 42.210526 | 64 | 0.829177 | 121 | 802 | 5.471074 | 0.280992 | 0.193353 | 0.265861 | 0.362538 | 0.560423 | 0.560423 | 0 | 0 | 0 | 0 | 0 | 0.001381 | 0.097257 | 802 | 18 | 65 | 44.555556 | 0.912983 | 0.064838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
18ec4736f8e11d151829b50dadb167b9a9a74bdf | 16,167 | py | Python | python/megaio/megaio/__init__.py | SequentMicrosystems/megaio-rpi | 2651581ac8c99b93a067add73dca6e662ad6f40c | [
"MIT"
] | 10 | 2018-09-11T17:39:15.000Z | 2021-12-06T14:57:25.000Z | python/megaio/megaio/__init__.py | SequentMicrosystems/megaio-rpi | 2651581ac8c99b93a067add73dca6e662ad6f40c | [
"MIT"
] | 12 | 2018-10-24T20:36:55.000Z | 2020-10-28T22:53:54.000Z | python/megaio/megaio/__init__.py | SequentMicrosystems/megaio-rpi | 2651581ac8c99b93a067add73dca6e662ad6f40c | [
"MIT"
] | 7 | 2019-01-24T00:11:45.000Z | 2021-08-10T20:26:52.000Z | import smbus
import RPi.GPIO as GPIO
# bus = smbus.SMBus(1) # 0 = /dev/i2c-0 (port I2C0), 1 = /dev/i2c-1 (port I2C1)
DEVICE_ADDRESS = 0x31 # 7 bit address (will be left shifted to add the read write bit)
RETRY_TIMES = 10
RELAY_MEM_ADD = 0x00
RELAY_ON_MEM_ADD = 0x01
RELAY_OFF_MEM_ADD = 0x02
OPTO_IN_MEM_ADD = 0x03
OC_OUT_VAL_MEM_ADD = 0x04
OC_OUT_SET_MEM_ADD = 0x05
OC_OUT_CLR_MEM_ADD = 0x06
ADC_VAL_MEM_ADD = 0x07
DAC_VAL_H_MEM_ADD = 0x17
DAC_VAL_L_MEM_ADD = 0x18
GPIO_VAL_MEM_ADD = 0x19
GPIO_SET_MEM_ADD = 0x1a
GPIO_CLR_MEM_ADD = 0x1b
GPIO_DIR_MEM_ADD = 0x1c
OPTO_IT_RISING_MEM_ADD = 0x1d # 1B
OPTO_IT_FALLING_MEM_ADD = 0x1e # 1B
GPIO_EXT_IT_RISING_MEM_ADD = 0x1f # 1B
GPIO_EXT_IT_FALLING_MEM_ADD = 0x20 # 1B
OPTO_IT_FLAGS_MEM_ADD = 0x21 # 1B
GPIO_IT_FLAGS_MEM_ADD = 0x22 # 1B
REVISION_HW_MAJOR_MEM_ADD = 0x3c
REVISION_HW_MINOR_MEM_ADD = 0x3d
REVISION_MAJOR_MEM_ADD = 0x3e
REVISION_MINOR_MEM_ADD = 0x3f
RISING = 1
FALLING = 0
opto_callbacks = {}
gpio_callbacks = {}
GPIO.setmode(GPIO.BCM)
GPIO.setup(4, GPIO.IN, pull_up_down=GPIO.PUD_UP)
def version():
print("megaio python library v1.3.1 Sequent Microsystems")
def set_relay(stack, relay, value):
if stack < 0 or stack > 3:
raise ValueError('Invalid stack level')
if relay < 1 or relay > 8:
raise ValueError('Invalid relay number')
bus = smbus.SMBus(1)
try:
if value == 0:
bus.write_byte_data(DEVICE_ADDRESS + stack, RELAY_OFF_MEM_ADD, relay)
else:
bus.write_byte_data(DEVICE_ADDRESS + stack, RELAY_ON_MEM_ADD, relay)
except Exception as e:
bus.close()
raise Exception(e)
bus.close()
def set_relays(stack, value):
if stack < 0 or stack > 3:
raise ValueError('Invalid stack level')
if value > 255:
raise ValueError('Invalid relay value')
if value < 0:
raise ValueError('Invalid relay value')
bus = smbus.SMBus(1)
try:
bus.write_byte_data(DEVICE_ADDRESS + stack, RELAY_MEM_ADD, value)
except Exception as e:
bus.close()
raise Exception(e)
bus.close()
def get_relay(stack, relay):
if stack < 0 or stack > 3:
raise ValueError('Invalid stack level')
if relay < 1 or relay > 8:
raise ValueError('Invalid relay number')
bus = smbus.SMBus(1)
try:
outVal = (bus.read_byte_data(DEVICE_ADDRESS + stack, RELAY_MEM_ADD) >> (relay - 1)) & 0x01
except Exception as e:
bus.close()
raise Exception(e)
bus.close()
return outVal
def get_relays(stack):
bus = smbus.SMBus(1)
if stack < 0 or stack > 3:
raise ValueError('Invalid stack level')
bus = smbus.SMBus(1)
try:
outVal = bus.read_byte_data(DEVICE_ADDRESS + stack, RELAY_MEM_ADD)
except Exception as e:
bus.close()
raise Exception(e)
bus.close()
return outVal
def get_adc(stack, channel):
if stack < 0 or stack > 3:
raise ValueError('Invalid stack level')
if channel < 1 or channel > 8:
raise ValueError('Invalid channel number')
bus = smbus.SMBus(1)
try:
aux = bus.read_word_data(DEVICE_ADDRESS + stack, ADC_VAL_MEM_ADD + 2 * (channel - 1))
outData = (0xff00 & (aux << 8)) + (0xff & (aux >> 8))
except Exception as e:
bus.close()
raise Exception(e)
bus.close()
return outData
def get_adc_volt(stack, channel):
if stack < 0 or stack > 3:
raise ValueError('Invalid stack level')
if channel < 1 or channel > 8:
raise ValueError('Invalid channel number')
bus = smbus.SMBus(1)
try:
aux = bus.read_word_data(DEVICE_ADDRESS + stack, ADC_VAL_MEM_ADD + 2 * (channel - 1))
outData = (0xff00 & (aux << 8)) + (0xff & (aux >> 8))
outData = 3.3 * outData / 4096
except Exception as e:
bus.close()
raise Exception(e)
bus.close()
return outData
def set_dac(stack, value):
if stack < 0 or stack > 3:
raise ValueError('Invalid stack level')
if value < 0 or value > 4095:
raise ValueError('Invalid DAC value')
bus = smbus.SMBus(1)
try:
outData = (0xff00 & (value << 8)) + (0xff & (value >> 8))
bus.write_word_data(DEVICE_ADDRESS + stack, DAC_VAL_H_MEM_ADD, outData)
except Exception as e:
bus.close()
raise Exception(e)
bus.close()
def set_dac_volt(stack, value):
if stack < 0 or stack > 3:
raise ValueError('Invalid stack level')
if value < 0 or value > 3.3:
raise ValueError('Invalid DAC value')
bus = smbus.SMBus(1)
try:
ival = int(4095 * value / 3.3);
outData = (0xff00 & (ival << 8)) + (0xff & (ival >> 8))
bus.write_word_data(DEVICE_ADDRESS + stack, DAC_VAL_H_MEM_ADD, outData)
except Exception as e:
bus.close()
raise Exception(e)
bus.close()
def get_dac(stack):
if stack < 0 or stack > 3:
raise ValueError('Invalid stack level')
bus = smbus.SMBus(1)
try:
aux = bus.read_word_data(DEVICE_ADDRESS + stack, DAC_VAL_H_MEM_ADD)
except Exceptions as e:
bus.close()
raise Exception(e)
bus.close()
outData = (0xff00 & (aux << 8)) + (0xff & (aux >> 8))
return outData
def get_opto_in(stack):
if stack < 0 or stack > 3:
raise ValueError('Invalid stack level')
try:
bus = smbus.SMBus(1)
outData = bus.read_byte_data(DEVICE_ADDRESS + stack, OPTO_IN_MEM_ADD)
except Exceptions as e:
bus.close()
raise Exception(e)
bus.close()
return outData
def get_opto_in_ch(stack, ch):
if stack < 0 or stack > 3:
raise ValueError('Invalid stack level')
if ch < 1 or ch > 8:
raise ValueError('Invalid opto channel')
bus = smbus.SMBus(1)
try:
outData = bus.read_byte_data(DEVICE_ADDRESS + stack, OPTO_IN_MEM_ADD)
except Exceptions as e:
bus.close()
raise Exception(e)
bus.close()
if (1 << (ch - 1)) & outData != 0:
return 1
return 0
def set_io_pin_dir(stack, pin, dir):
if stack < 0 or stack > 3:
raise ValueError('Invalid stack level')
if pin < 1 or pin > 6:
raise ValueError('Invalid IO pin number')
if dir != 0 and dir != 1:
raise ValueError('Invalid IO direction')
bus = smbus.SMBus(1)
try:
inData = bus.read_byte_data(DEVICE_ADDRESS + stack, GPIO_DIR_MEM_ADD)
aux = 1 << (pin - 1)
if dir == 1:
inData = inData | aux
else:
inData = inData & (~aux)
bus.write_byte_data(DEVICE_ADDRESS + stack, GPIO_DIR_MEM_ADD, inData)
except Exceptions as e:
bus.close()
raise Exception(e)
bus.close()
def get_io_val(stack):
if stack < 0 or stack > 3:
raise ValueError('Invalid stack level')
bus = smbus.SMBus(1)
try:
outVal = bus.read_byte_data(DEVICE_ADDRESS + stack, GPIO_VAL_MEM_ADD)
except Exceptions as e:
bus.close()
raise Exception(e)
bus.close()
return outVal
def get_io_pin_val(stack, pin):
if stack < 0 or stack > 3:
raise ValueError('Invalid stack level')
if pin < 1 or pin > 6:
raise ValueError('Invalid GPIO pin')
bus = smbus.SMBus(1)
try:
outVal = (bus.read_byte_data(DEVICE_ADDRESS + stack, GPIO_VAL_MEM_ADD) >> (pin - 1)) & 0x01
except Exceptions as e:
bus.close()
raise Exception(e)
bus.close()
return outVal
def set_io_pin(stack, pin, val):
if stack < 0 or stack > 3:
raise ValueError('Invalid stack level')
if pin < 1 or pin > 6:
raise ValueError('Invalid IO pin number')
if val != 0 and val != 1:
raise ValueError('Invalid IO output level')
bus = smbus.SMBus(1)
try:
if val == 1:
bus.write_byte_data(DEVICE_ADDRESS + stack, GPIO_SET_MEM_ADD, pin)
else:
bus.write_byte_data(DEVICE_ADDRESS + stack, GPIO_CLR_MEM_ADD, pin)
except Exceptions as e:
bus.close()
raise Exception(e)
bus.close()
def set_oc_pin(stack, pin, val):
if stack < 0 or stack > 3:
raise ValueError('Invalid stack level')
if pin < 1 or pin > 4:
raise ValueError('Invalid OC channel number')
if val != 0 and val != 1:
raise ValueError('Invalid OC value')
bus = smbus.SMBus(1)
try:
if val == 1:
bus.write_byte_data(DEVICE_ADDRESS + stack, OC_OUT_SET_MEM_ADD, pin)
else:
bus.write_byte_data(DEVICE_ADDRESS + stack, OC_OUT_CLR_MEM_ADD, pin)
except Exceptions as e:
bus.close()
raise Exception(e)
bus.close()
def get_oc_val(stack):
if stack < 0 or stack > 3:
raise ValueError('Invalid stack level')
bus = smbus.SMBus(1)
try:
outVal = bus.read_byte_data(DEVICE_ADDRESS + stack, OC_OUT_VAL_MEM_ADD)
except Exceptions as e:
bus.close()
raise Exception(e)
bus.close()
return outVal
# External interrupt setup functions ###########################################
# add optocupled input event
def add_opto_event(stack, ch, edge, callback):
global opto_callbacks
if stack < 0 or stack > 3:
raise ValueError('Invalid stack level')
if edge != RISING and edge != FALLING or ch < 1 or ch > 8:
raise ValueError('Invalid edge or channel')
if stack not in opto_callbacks:
opto_callbacks[stack] = {}
if ch not in opto_callbacks[stack]:
opto_callbacks[stack][ch] = {}
opto_callbacks[stack][ch][edge] = callback
bus = smbus.SMBus(1)
aux = 1 << (ch - 1)
try:
if edge == RISING:
inData = bus.read_byte_data(DEVICE_ADDRESS + stack, OPTO_IT_RISING_MEM_ADD)
inData = inData | aux;
bus.write_byte_data(DEVICE_ADDRESS + stack, OPTO_IT_RISING_MEM_ADD, inData)
else:
inData = bus.read_byte_data(DEVICE_ADDRESS + stack, OPTO_IT_FALLING_MEM_ADD)
inData = inData | aux;
bus.write_byte_data(DEVICE_ADDRESS + stack, OPTO_IT_FALLING_MEM_ADD, inData)
except Exceptions as e:
bus.close()
raise Exception(e)
bus.close()
def remove_opto_event(stack, ch, edge):# remove optocupled input event
global opto_callbacks
if stack < 0 or stack > 3:
raise ValueError('Invalid stack level')
if edge != RISING and edge != FALLING or ch < 1 or ch > 8:
raise ValueError('Invalid edge or channel')
if stack in opto_callbacks:
if ch in opto_callbacks[stack]:
if edge in opto_callbacks[stack][ch]:
del opto_callbacks[stack][ch][edge]
bus = smbus.SMBus(1)
aux = ~(1 << (ch - 1))
try:
if edge == RISING:
inData = bus.read_byte_data(DEVICE_ADDRESS + stack, OPTO_IT_RISING_MEM_ADD)
inData = inData & aux;
bus.write_byte_data(DEVICE_ADDRESS + stack, OPTO_IT_RISING_MEM_ADD, inData)
else:
inData = bus.read_byte_data(DEVICE_ADDRESS + stack, OPTO_IT_FALLING_MEM_ADD)
inData = inData & aux;
bus.write_byte_data(DEVICE_ADDRESS + stack, OPTO_IT_FALLING_MEM_ADD, inData)
except Exceptions as e:
bus.close()
raise Exception(e)
bus.close()
def remove_all_opto_events(): # remove all optocupled input events
global opto_callbacks
for stack in opto_callbacks:
for ch in opto_callbacks[stack]:
remove_opto_event(stack, ch, RISING)
remove_opto_event(stack, ch, FALLING)
del opto_callbacks
def add_gpio_event(stack, ch, edge, callback):# add gpio input event
global gpio_callbacks
if stack < 0 or stack > 3:
raise ValueError('Invalid stack level')
if edge != RISING and edge != FALLING or ch < 1 or ch > 6:
raise ValueError('Invalid edge or channel')
if stack not in gpio_callbacks:
gpio_callbacks[stack] = {}
if ch not in gpio_callbacks[stack]:
gpio_callbacks[stack][ch] = {}
gpio_callbacks[stack][ch][edge] = callback
bus = smbus.SMBus(1)
aux = 1 << (ch - 1);
try:
if edge == RISING:
inData = bus.read_byte_data(DEVICE_ADDRESS + stack, GPIO_EXT_IT_RISING_MEM_ADD)
inData = inData | aux;
bus.write_byte_data(DEVICE_ADDRESS + stack, GPIO_EXT_IT_RISING_MEM_ADD, inData)
else:
inData = bus.read_byte_data(DEVICE_ADDRESS + stack, GPIO_EXT_IT_FALLING_MEM_ADD)
inData = inData | aux;
bus.write_byte_data(DEVICE_ADDRESS + stack, GPIO_EXT_IT_FALLING_MEM_ADD, inData)
except Exceptions as e:
bus.close()
raise Exception(e)
bus.close()
def remove_gpio_event(stack, ch, edge): # remove gpio input event
global gpio_callbacks
if stack < 0 or stack > 3:
raise ValueError('Invalid stack level')
if edge != RISING and edge != FALLING or ch < 1 or ch > 6:
raise ValueError('Invalid edge or channel')
if stack in gpio_callbacks:
if ch in gpio_callbacks[stack]:
if edge in gpio_callbacks[stack][ch]:
del gpio_callbacks[stack][ch][edge]
bus = smbus.SMBus(1)
aux = ~(1 << (ch - 1));
try:
if edge == RISING:
inData = bus.read_byte_data(DEVICE_ADDRESS + stack, GPIO_EXT_IT_RISING_MEM_ADD)
inData = inData & aux;
bus.write_byte_data(DEVICE_ADDRESS + stack, GPIO_EXT_IT_RISING_MEM_ADD, inData)
else:
inData = bus.read_byte_data(DEVICE_ADDRESS + stack, GPIO_EXT_IT_FALLING_MEM_ADD)
inData = inData & aux;
bus.write_byte_data(DEVICE_ADDRESS + stack, GPIO_EXT_IT_FALLING_MEM_ADD, inData)
except Exceptions as e:
bus.close()
raise Exception(e)
bus.close()
def remove_all_gpio_events():# remove all gpio input events
global gpio_callbacks
for stack in gpio_callbacks:
for ch in gpio_callbacks[stack]:
remove_gpio_event(stack, ch, RISING)
remove_gpio_event(stack, ch, FALLING)
del gpio_callbacks
def process_isr(channel):# Process the interrupt
bus = smbus.SMBus(1)
try:
for stack in opto_callbacks:
opto_it_flags = bus.read_byte_data(DEVICE_ADDRESS + stack, OPTO_IT_FLAGS_MEM_ADD)
opto_val = bus.read_byte_data(DEVICE_ADDRESS + stack, OPTO_IN_MEM_ADD)
for ch in opto_callbacks[stack]:
if ((opto_it_flags >> (ch - 1)) & 1) == 1:
if ((opto_val >> (ch - 1)) & 1) == 1:
if RISING in opto_callbacks[stack][ch]: # rising edge
opto_callbacks[stack][ch][RISING](ch)
else:
if FALLING in opto_callbacks[stack][ch]:
opto_callbacks[stack][ch][FALLING](ch)
for stack in gpio_callbacks:
gpio_it_flags = bus.read_byte_data(DEVICE_ADDRESS + stack, GPIO_IT_FLAGS_MEM_ADD)
gpio_val = bus.read_byte_data(DEVICE_ADDRESS + stack, GPIO_VAL_MEM_ADD)
for ch in gpio_callbacks[stack]:
if ((gpio_it_flags >> (ch - 1)) & 1) == 1:
if ((gpio_val >> (ch - 1)) & 1) == 1:
if RISING in gpio_callbacks[stack][ch]: # rising edge
gpio_callbacks[stack][ch][RISING](ch)
else:
if FALLING in gpio_callbacks[stack][ch]:
gpio_callbacks[stack][ch][FALLING](ch)
except Exceptions as e:
bus.close()
raise Exception(e)
bus.close()
GPIO.add_event_detect(4, GPIO.FALLING, callback=process_isr, bouncetime=200)
| 32.993878 | 100 | 0.599431 | 2,211 | 16,167 | 4.166893 | 0.073722 | 0.042331 | 0.042983 | 0.097905 | 0.831651 | 0.751764 | 0.715945 | 0.709649 | 0.672854 | 0.647563 | 0 | 0.025703 | 0.304509 | 16,167 | 489 | 101 | 33.06135 | 0.793668 | 0.025237 | 0 | 0.653938 | 0 | 0 | 0.056421 | 0 | 0 | 0 | 0.01039 | 0 | 0 | 1 | 0.059666 | false | 0 | 0.004773 | 0 | 0.090692 | 0.002387 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
e13bec04a6769d0edb89be7e7195ad259d1da7df | 48 | py | Python | nerves_hub_client/resources/__init__.py | sparkmeter/py-nerves-hub-client | 5aacf22738969d78f85331bca68bca1cd63568c7 | [
"MIT"
] | 1 | 2022-02-03T19:29:52.000Z | 2022-02-03T19:29:52.000Z | nerves_hub_client/resources/__init__.py | sparkmeter/py-nerves-hub-client | 5aacf22738969d78f85331bca68bca1cd63568c7 | [
"MIT"
] | 2 | 2022-02-22T23:31:26.000Z | 2022-03-14T23:19:39.000Z | nerves_hub_client/resources/__init__.py | sparkmeter/py-nerves-hub-client | 5aacf22738969d78f85331bca68bca1cd63568c7 | [
"MIT"
] | null | null | null | """Empty package for storing resource files."""
| 24 | 47 | 0.729167 | 6 | 48 | 5.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 48 | 1 | 48 | 48 | 0.833333 | 0.854167 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
e13ed2296a5a3cc2476225cd8da5caf0373410cc | 57 | py | Python | test/test_default.py | Machine-Learning-Builds/ML-python-catboost-serving | ef5cd8461f77240c6cd19ac5f5678b6e4c47c780 | [
"Apache-2.0"
] | null | null | null | test/test_default.py | Machine-Learning-Builds/ML-python-catboost-serving | ef5cd8461f77240c6cd19ac5f5678b6e4c47c780 | [
"Apache-2.0"
] | 1 | 2019-10-29T22:39:42.000Z | 2019-10-29T22:39:42.000Z | test/test_default.py | Machine-Learning-Builds/ML-python-catboost-serving | ef5cd8461f77240c6cd19ac5f5678b6e4c47c780 | [
"Apache-2.0"
] | 1 | 2019-10-29T22:36:43.000Z | 2019-10-29T22:36:43.000Z | # Using py.test framework
def test_default():
pass
| 9.5 | 25 | 0.684211 | 8 | 57 | 4.75 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22807 | 57 | 5 | 26 | 11.4 | 0.863636 | 0.403509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
e143c0875cdf8403d239a99565ef3e0a1db9b418 | 473 | py | Python | tests/test_strike.py | d21d3q/thermalprinter | a502fe8a7b7ab5a0773e92a37e6539f73b34b950 | [
"MIT"
] | 28 | 2016-08-31T15:50:38.000Z | 2022-03-24T15:19:17.000Z | tests/test_strike.py | d21d3q/thermalprinter | a502fe8a7b7ab5a0773e92a37e6539f73b34b950 | [
"MIT"
] | 11 | 2016-09-28T15:46:46.000Z | 2021-03-09T16:37:13.000Z | tests/test_strike.py | d21d3q/thermalprinter | a502fe8a7b7ab5a0773e92a37e6539f73b34b950 | [
"MIT"
] | 10 | 2017-03-02T19:08:15.000Z | 2021-02-19T16:11:06.000Z | # coding: utf-8
def test_default_value(printer):
assert printer._strike is False
def test_changing_no_value(printer):
printer.strike()
assert printer._strike is False
def test_changing_state_on(printer):
printer.strike(True)
assert printer._strike is True
def test_changing_state_off(printer):
printer.strike(False)
assert printer._strike is False
def test_reset_value(printer):
printer.reset()
assert printer._strike is False
| 18.192308 | 37 | 0.750529 | 66 | 473 | 5.106061 | 0.287879 | 0.308605 | 0.281899 | 0.311573 | 0.418398 | 0.341246 | 0.341246 | 0.243323 | 0 | 0 | 0 | 0.002564 | 0.175476 | 473 | 25 | 38 | 18.92 | 0.861538 | 0.027484 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.357143 | 1 | 0.357143 | false | 0 | 0 | 0 | 0.357143 | 1 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 5 |
e145559ca99c60ee0a7eae59ca8a8b05c36dae2b | 49 | py | Python | tests/__init__.py | dcopm999/tensorflow_examples | 8d0f8be193c289785482f0a48438586345e10318 | [
"MIT"
] | null | null | null | tests/__init__.py | dcopm999/tensorflow_examples | 8d0f8be193c289785482f0a48438586345e10318 | [
"MIT"
] | null | null | null | tests/__init__.py | dcopm999/tensorflow_examples | 8d0f8be193c289785482f0a48438586345e10318 | [
"MIT"
] | null | null | null | """Unit test package for tensorflow_examples."""
| 24.5 | 48 | 0.755102 | 6 | 49 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102041 | 49 | 1 | 49 | 49 | 0.818182 | 0.857143 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
e14aeb94c68b2ccbc1be9f2ee9e81327ed5d28f1 | 157 | py | Python | django_app/hello/admin.py | masa1203/django_chou_nyumon | 3b9f610b84d037a357ade63b877bfdd366297486 | [
"MIT"
] | null | null | null | django_app/hello/admin.py | masa1203/django_chou_nyumon | 3b9f610b84d037a357ade63b877bfdd366297486 | [
"MIT"
] | null | null | null | django_app/hello/admin.py | masa1203/django_chou_nyumon | 3b9f610b84d037a357ade63b877bfdd366297486 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Friend, Message
# Register your models here.
admin.site.register(Friend)
admin.site.register(Message)
| 19.625 | 35 | 0.802548 | 22 | 157 | 5.727273 | 0.545455 | 0.142857 | 0.269841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11465 | 157 | 7 | 36 | 22.428571 | 0.906475 | 0.165605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
e151713d0353632bc7ba7cbe4f4e83ad046a1e50 | 213 | py | Python | src/_meta.py | batflyer/awesome-bayes-nets | e11ec9d98acb72bb90928e212021fed55fd1b233 | [
"CC0-1.0"
] | 8 | 2019-06-15T09:15:20.000Z | 2022-02-20T03:08:13.000Z | src/_meta.py | batflyer/awesome-bayes-nets | e11ec9d98acb72bb90928e212021fed55fd1b233 | [
"CC0-1.0"
] | null | null | null | src/_meta.py | batflyer/awesome-bayes-nets | e11ec9d98acb72bb90928e212021fed55fd1b233 | [
"CC0-1.0"
] | 3 | 2020-01-28T20:16:41.000Z | 2021-08-17T18:56:21.000Z | # Copyright © 2019 Alexander L. Hayes
# MIT License
__author__ = "Alexander L. Hayes"
__copyright__ = "Copyright © 2019 Alexander L. Hayes"
__license__ = "MIT"
__email__ = "hayesall@iu.edu"
__version__ = "0.0.1"
| 23.666667 | 53 | 0.723005 | 29 | 213 | 4.689655 | 0.551724 | 0.220588 | 0.330882 | 0.338235 | 0.426471 | 0.426471 | 0 | 0 | 0 | 0 | 0 | 0.061111 | 0.15493 | 213 | 8 | 54 | 26.625 | 0.683333 | 0.220657 | 0 | 0 | 0 | 0 | 0.466258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
e1674f46135ba2907d34dcace1b5b89082b4836b | 138 | py | Python | composeexample/utils.py | Oppoin/django-green | 83c7ea1198aa3593021598e29b4a3e5f6e0a8736 | [
"MIT"
] | null | null | null | composeexample/utils.py | Oppoin/django-green | 83c7ea1198aa3593021598e29b4a3e5f6e0a8736 | [
"MIT"
] | null | null | null | composeexample/utils.py | Oppoin/django-green | 83c7ea1198aa3593021598e29b4a3e5f6e0a8736 | [
"MIT"
] | 1 | 2020-12-24T08:15:25.000Z | 2020-12-24T08:15:25.000Z | import unittest
def isGood():
return True
class UtilsTest(unittest.TestCase):
def test(self):
self.assertTrue(isGood())
| 15.333333 | 35 | 0.681159 | 16 | 138 | 5.875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210145 | 138 | 8 | 36 | 17.25 | 0.862385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
e1687fd01ff0010f46a02e28d76c3babb9c1acdd | 127 | py | Python | pylablib/core/gui/qt/widgets/__init__.py | AlexShkarin/pyLabLib-v0 | 1c3c59d4bcbea4a16eee916033972ee13a7d1af6 | [
"MIT"
] | 8 | 2021-03-06T08:31:39.000Z | 2022-03-16T15:02:06.000Z | pylablib/core/gui/qt/widgets/__init__.py | AlexShkarin/pyLabLib-v0 | 1c3c59d4bcbea4a16eee916033972ee13a7d1af6 | [
"MIT"
] | 7 | 2020-09-10T17:25:10.000Z | 2021-12-07T20:49:22.000Z | pylablib/core/gui/qt/widgets/__init__.py | AlexShkarin/pyLabLib-v0 | 1c3c59d4bcbea4a16eee916033972ee13a7d1af6 | [
"MIT"
] | 7 | 2020-08-16T09:02:55.000Z | 2022-03-21T10:58:53.000Z | from .edit import LVNumEdit, LVTextEdit
from .label import LVNumLabel
from .plot import MPLFigureCanvas, MPLFigureToolbarCanvas | 42.333333 | 57 | 0.858268 | 14 | 127 | 7.785714 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102362 | 127 | 3 | 57 | 42.333333 | 0.95614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
e18240ab6667cab3976634b32f8f48bb36df829f | 24,872 | py | Python | test/shed_functional/functional/test_0440_deleting_dependency_definitions.py | bensellak/galaxy | 020b145c8c0ee5f61543e87e5d1867ae717a6871 | [
"CC-BY-3.0"
] | 4 | 2018-10-29T18:34:38.000Z | 2021-09-29T23:30:42.000Z | test/shed_functional/functional/test_0440_deleting_dependency_definitions.py | bensellak/galaxy | 020b145c8c0ee5f61543e87e5d1867ae717a6871 | [
"CC-BY-3.0"
] | 30 | 2016-10-20T15:35:12.000Z | 2018-10-02T15:59:54.000Z | test/shed_functional/functional/test_0440_deleting_dependency_definitions.py | bensellak/galaxy | 020b145c8c0ee5f61543e87e5d1867ae717a6871 | [
"CC-BY-3.0"
] | 7 | 2016-11-03T19:11:01.000Z | 2020-05-11T14:23:52.000Z | from shed_functional.base.twilltestcase import common, ShedTwillTestCase
column_repository_name = 'column_maker_0440'
column_repository_description = "Add column"
column_repository_long_description = "Compute an expression on every row"
convert_repository_name = 'convert_chars_0440'
convert_repository_description = "Convert delimiters"
convert_repository_long_description = "Convert delimiters to tab"
bwa_package_repository_name = 'bwa_package_0440'
bwa_package_repository_description = "BWA Package Repository"
bwa_package_repository_long_description = "BWA repository with a package tool dependency defined for BWA 0.5.9."
bwa_base_repository_name = 'bwa_base_0440'
bwa_base_repository_description = "BWA Base"
bwa_base_repository_long_description = "NT space mapping with BWA"
bwa_tool_dependency_repository_name = 'bwa_tool_dependency_0440'
bwa_tool_dependency_repository_description = "BWA Base"
bwa_tool_dependency_repository_long_description = "NT space mapping with BWA"
'''
Simple repository dependencies:
1. Create and populate column_maker_0440 so that it has an installable revision 0.
2. Create and populate convert_chars_0440 so that it has an installable revision 0.
3. Add a valid simple repository_dependencies.xml to convert_chars_0440 that points to the installable revision of column_maker_0440.
4. Make sure the installable revision of convert_chars_0440 is now revision 1 instead of revision 0.
5. Delete repository_dependencies.xml from convert_chars_0440, and make sure convert_chars_0440 now has two installable revisions: 1 and 2
Complex repository dependencies:
1. Create and populate bwa_package_0440 so that it has a valid tool dependency definition and an installable revision 0.
2. Create and populate bwa_base_0440 so that it has an installable revision 0.
3. Add a valid complex repository dependency tool_dependencies.xml to bwa_base_0440 that points to the installable revision 0 of bwa_package_0440.
4. Make sure that bwa_base_0440 installable revision is now revision 1 instead of revision 0.
5. Delete tool_dependencies.xml from bwa_base_0440, and make sure bwa_base_0440 now has two installable revisions: 1 and 2
Tool dependencies:
1. Create and populate bwa_tool_dependency_0440 so that it has a valid tool dependency definition and an installable revision 0.
2. Delete tool_dependencies.xml from bwa_tool_dependency_0440, and make sure that bwa_tool_dependency_0440 still has
a single installable revision 0.
3. Add the same tool_dependencies.xml file to bwa_tool_dependency_0440, and make sure that bwa_tool_dependency_0440
still has a single installable revision 0.
'''
class TestDeletedDependencies(ShedTwillTestCase):
'''Test metadata setting when dependency definitions are deleted.'''
def test_0000_initiate_users(self):
"""Create necessary user accounts and login as an admin user."""
"""
Create all the user accounts that are needed for this test script to run independently of other tests.
Previously created accounts will not be re-created.
"""
self.login(email=common.test_user_1_email, username=common.test_user_1_name)
test_user_1 = self.test_db_util.get_user(common.test_user_1_email)
assert test_user_1 is not None, 'Problem retrieving user with email %s from the database' % common.test_user_1_email
self.test_db_util.get_private_role(test_user_1)
self.login(email=common.admin_email, username=common.admin_username)
admin_user = self.test_db_util.get_user(common.admin_email)
assert admin_user is not None, 'Problem retrieving user with email %s from the database' % common.admin_email
self.test_db_util.get_private_role(admin_user)
def test_0005_create_column_maker_repository(self):
'''Create and populate a repository named column_maker_0440.'''
'''
We are at simple repository dependencies, step 1 - Create and populate column_maker_0440 so that it has an installable revision 0.
'''
category = self.create_category(name='Test 0440 Deleted Dependency Definitions',
description='Description of Deleted Dependency Definitions category for test 0440')
self.login(email=common.test_user_1_email, username=common.test_user_1_name)
strings_displayed = ["Repository <b>column_maker_0440</b> has been created"]
repository = self.get_or_create_repository(name=column_repository_name,
description=column_repository_description,
long_description=column_repository_long_description,
owner=common.test_user_1_name,
category_id=self.security.encode_id(category.id),
strings_displayed=strings_displayed)
self.upload_file(repository,
filename='column_maker/column_maker.tar',
filepath=None,
valid_tools_only=True,
uncompress_file=True,
remove_repo_files_not_in_tar=False,
commit_message='Uploaded column maker tool tarball.',
strings_displayed=[],
strings_not_displayed=[])
def test_0010_create_convert_chars_repository(self):
'''Create and populate a repository named convert_chars_0440.'''
'''
We are at simple repository dependencies, step 2 - Create and populate convert_chars_0440 so that it has an installable revision 0.
'''
category = self.test_db_util.get_category_by_name('Test 0440 Deleted Dependency Definitions')
self.login(email=common.test_user_1_email, username=common.test_user_1_name)
strings_displayed = ["Repository <b>convert_chars_0440</b> has been created"]
repository = self.get_or_create_repository(name=convert_repository_name,
description=convert_repository_description,
long_description=convert_repository_long_description,
owner=common.test_user_1_name,
category_id=self.security.encode_id(category.id),
strings_displayed=strings_displayed)
self.upload_file(repository,
filename='convert_chars/convert_chars.tar',
filepath=None,
valid_tools_only=True,
uncompress_file=True,
remove_repo_files_not_in_tar=False,
commit_message='Uploaded convert chars tool tarball.',
strings_displayed=[],
strings_not_displayed=[])
def test_0015_create_dependency_on_convert_chars(self):
'''Create a dependency definition file that specifies column_maker_0440 and upload it to convert_chars_0440.'''
'''
We are at simple repository dependencies, step 3 - Add a valid simple repository_dependencies.xml to
convert_chars_0440 that points to the installable revision of column_maker_0440.
'''
convert_repository = self.test_db_util.get_repository_by_name_and_owner(convert_repository_name, common.test_user_1_name)
column_repository = self.test_db_util.get_repository_by_name_and_owner(column_repository_name, common.test_user_1_name)
dependency_xml_path = self.generate_temp_path('test_0440', additional_paths=['dependencies'])
column_tuple = (self.url, column_repository.name, column_repository.user.username, self.get_repository_tip(column_repository))
# After this, convert_chars_0440 should depend on column_maker_0440.
self.create_repository_dependency(repository=convert_repository,
repository_tuples=[column_tuple],
filepath=dependency_xml_path,
prior_installation_required=True)
self.check_repository_dependency(convert_repository, column_repository)
def test_0020_verify_dependency_metadata(self):
'''Verify that uploading the dependency moved metadata to the tip.'''
'''
We are at simple repository dependencies, step 4 - Make sure the installable revision of convert_chars_0440 is now
revision 1 (the tip) instead of revision 0.
'''
repository = self.test_db_util.get_repository_by_name_and_owner(convert_repository_name, common.test_user_1_name)
tip = self.get_repository_tip(repository)
metadata_record = self.get_repository_metadata_by_changeset_revision(repository, tip)
# Make sure that the new tip is now downloadable, and that there are no other downloadable revisions.
assert metadata_record.downloadable, 'Tip is not downloadable.'
assert len(repository.downloadable_revisions) == 1, 'Repository %s has %d downloadable revisions, expected 1.' % \
(repository.name, len(repository.downloadable_revisions))
def test_0025_delete_repository_dependency(self):
'''Delete the repository_dependencies.xml from convert_chars_0440.'''
'''
We are at simple repository dependencies, steps 5 and 6 - Delete repository_dependencies.xml from convert_chars_0440.
Make sure convert_chars_0440 now has two installable revisions: 1 and 2
'''
repository = self.test_db_util.get_repository_by_name_and_owner(convert_repository_name, common.test_user_1_name)
# Record the current tip, so we can verify that it's still a downloadable revision after repository_dependencies.xml
# is deleted and a new downloadable revision is created.
old_changeset_revision = self.get_repository_tip(repository)
self.delete_files_from_repository(repository, filenames=['repository_dependencies.xml'])
new_changeset_revision = self.get_repository_tip(repository)
# Check that the old changeset revision is still downloadable.
metadata_record = self.get_repository_metadata_by_changeset_revision(repository, old_changeset_revision)
assert metadata_record.downloadable, 'The revision of %s that contains repository_dependencies.xml is no longer downloadable.' % \
repository.name
# Check that the new tip is also downloadable.
metadata_record = self.get_repository_metadata_by_changeset_revision(repository, new_changeset_revision)
assert metadata_record.downloadable, 'The revision of %s that does not contain repository_dependencies.xml is not downloadable.' % \
repository.name
# Explicitly reload the repository instance from the database, to avoid potential caching issues.
self.test_db_util.refresh(repository)
# Verify that there are only two downloadable revisions.
assert len(repository.downloadable_revisions) == 2, 'Repository %s has %d downloadable revisions, expected 2.' % \
(repository.name, len(repository.downloadable_revisions))
def test_0030_create_bwa_package_repository(self):
'''Create and populate the bwa_package_0440 repository.'''
'''
We are at complex repository dependencies, step 1 - Create and populate bwa_package_0440 so that it has a valid
tool dependency definition and an installable revision 0.
'''
category = self.test_db_util.get_category_by_name('Test 0440 Deleted Dependency Definitions')
self.login(email=common.test_user_1_email, username=common.test_user_1_name)
strings_displayed = ["Repository <b>bwa_package_0440</b> has been created"]
repository = self.get_or_create_repository(name=bwa_package_repository_name,
description=bwa_package_repository_description,
long_description=bwa_package_repository_long_description,
owner=common.test_user_1_name,
category_id=self.security.encode_id(category.id),
strings_displayed=strings_displayed)
self.upload_file(repository,
filename='bwa/complex/tool_dependencies.xml',
filepath=None,
valid_tools_only=True,
uncompress_file=True,
remove_repo_files_not_in_tar=False,
commit_message='Uploaded package tool dependency definition.',
strings_displayed=[],
strings_not_displayed=[])
def test_0035_create_bwa_base_repository(self):
'''Create and populate the bwa_base_0440 repository.'''
'''
We are at complex repository dependencies, step 2 - Create and populate bwa_base_0440 so that it has an installable revision 0.
This repository should contain a tool with a defined dependency that will be satisfied by the tool dependency defined in bwa_package_0440.
'''
category = self.test_db_util.get_category_by_name('Test 0440 Deleted Dependency Definitions')
self.login(email=common.test_user_1_email, username=common.test_user_1_name)
strings_displayed = ["Repository <b>bwa_base_0440</b> has been created"]
repository = self.get_or_create_repository(name=bwa_base_repository_name,
description=bwa_base_repository_description,
long_description=bwa_base_repository_long_description,
owner=common.test_user_1_name,
category_id=self.security.encode_id(category.id),
strings_displayed=strings_displayed)
self.upload_file(repository,
filename='bwa/complex/bwa_base.tar',
filepath=None,
valid_tools_only=True,
uncompress_file=True,
remove_repo_files_not_in_tar=False,
commit_message='Uploaded BWA nucleotide space mapping tool tarball.',
strings_displayed=[],
strings_not_displayed=[])
def test_0040_create_dependency_on_bwa_package_repository(self):
'''Create a complex repository dependency on bwa_package_0440 and upload it to bwa_tool_0440.'''
'''
We are at complex repository dependencies, step 3 - Add a valid complex repository dependency tool_dependencies.xml to
bwa_base_0440 that points to the installable revision 0 of bwa_package_0440.
'''
bwa_package_repository = self.test_db_util.get_repository_by_name_and_owner(bwa_package_repository_name, common.test_user_1_name)
bwa_base_repository = self.test_db_util.get_repository_by_name_and_owner(bwa_base_repository_name, common.test_user_1_name)
dependency_path = self.generate_temp_path('test_0440', additional_paths=['complex'])
changeset_revision = self.get_repository_tip(bwa_package_repository)
bwa_tuple = (self.url, bwa_package_repository.name, bwa_package_repository.user.username, changeset_revision)
self.create_repository_dependency(repository=bwa_base_repository,
repository_tuples=[bwa_tuple],
filepath=dependency_path,
prior_installation_required=True,
complex=True,
package='bwa',
version='0.5.9')
def test_0045_verify_dependency_metadata(self):
'''Verify that uploading the dependency moved metadata to the tip.'''
'''
We are at complex repository dependencies, step 4 - Make sure that bwa_base_0440 installable revision is now revision 1
instead of revision 0.
'''
repository = self.test_db_util.get_repository_by_name_and_owner(bwa_base_repository_name, common.test_user_1_name)
tip = self.get_repository_tip(repository)
metadata_record = self.get_repository_metadata_by_changeset_revision(repository, tip)
# Make sure that the new tip is now downloadable, and that there are no other downloadable revisions.
assert metadata_record.downloadable, 'Tip is not downloadable.'
assert len(repository.downloadable_revisions) == 1, 'Repository %s has %d downloadable revisions, expected 1.' % \
(repository.name, len(repository.downloadable_revisions))
def test_0050_delete_complex_repository_dependency(self):
'''Delete the tool_dependencies.xml from bwa_base_0440.'''
'''
We are at complex repository dependencies, step 5 - Delete tool_dependencies.xml from bwa_base_0440,
and make sure bwa_base_0440 now has two installable revisions: 1 and 2
'''
repository = self.test_db_util.get_repository_by_name_and_owner(bwa_base_repository_name, common.test_user_1_name)
# Record the current tip, so we can verify that it's still a downloadable revision after tool_dependencies.xml
# is deleted and a new downloadable revision is created.
old_changeset_revision = self.get_repository_tip(repository)
self.delete_files_from_repository(repository, filenames=['tool_dependencies.xml'])
new_changeset_revision = self.get_repository_tip(repository)
# Check that the old changeset revision is still downloadable.
metadata_record = self.get_repository_metadata_by_changeset_revision(repository, old_changeset_revision)
assert metadata_record.downloadable, 'The revision of %s that contains tool_dependencies.xml is no longer downloadable.' % \
repository.name
# Check that the new tip is also downloadable.
metadata_record = self.get_repository_metadata_by_changeset_revision(repository, new_changeset_revision)
assert metadata_record.downloadable, 'The revision of %s that does not contain tool_dependencies.xml is not downloadable.' % \
repository.name
# Verify that there are only two downloadable revisions.
assert len(repository.downloadable_revisions) == 2, 'Repository %s has %d downloadable revisions, expected 2.' % \
(repository.name, len(repository.downloadable_revisions))
def test_0055_create_bwa_tool_dependency_repository(self):
'''Create and populate the bwa_tool_dependency_0440 repository.'''
'''
We are at tool dependencies, step 1 - Create and populate bwa_tool_dependency_0440 so that it has a valid tool
dependency definition and an installable revision 0.
'''
category = self.test_db_util.get_category_by_name('Test 0440 Deleted Dependency Definitions')
self.login(email=common.test_user_1_email, username=common.test_user_1_name)
strings_displayed = ["Repository <b>bwa_tool_dependency_0440</b> has been created"]
repository = self.get_or_create_repository(name=bwa_tool_dependency_repository_name,
description=bwa_tool_dependency_repository_description,
long_description=bwa_tool_dependency_repository_long_description,
owner=common.test_user_1_name,
category_id=self.security.encode_id(category.id),
strings_displayed=strings_displayed)
self.upload_file(repository,
filename='bwa/complex/tool_dependencies.xml',
filepath=None,
valid_tools_only=True,
uncompress_file=True,
remove_repo_files_not_in_tar=False,
commit_message='Uploaded package tool dependency definition.',
strings_displayed=[],
strings_not_displayed=[])
def test_0060_delete_bwa_tool_dependency_definition(self):
'''Delete the tool_dependencies.xml file from bwa_tool_dependency_0440.'''
'''
We are at tool dependencies, step 2 - Delete tool_dependencies.xml from bwa_tool_dependency_0440.
Make sure bwa_tool_dependency_0440 still has a downloadable changeset revision at the old tip.
'''
repository = self.test_db_util.get_repository_by_name_and_owner(bwa_tool_dependency_repository_name, common.test_user_1_name)
# Record the current tip, so we can verify that it's still a downloadable revision after repository_dependencies.xml
# is deleted and a new downloadable revision is created.
old_changeset_revision = self.get_repository_tip(repository)
self.delete_files_from_repository(repository, filenames=['tool_dependencies.xml'])
new_changeset_revision = self.get_repository_tip(repository)
# Check that the old changeset revision is still downloadable.
metadata_record = self.get_repository_metadata_by_changeset_revision(repository, old_changeset_revision)
assert metadata_record.downloadable, 'The revision of %s that contains tool_dependencies.xml is no longer downloadable.' % \
repository.name
# Check that the new tip does not have a metadata revision.
metadata_record = self.get_repository_metadata_by_changeset_revision(repository, new_changeset_revision)
# If a changeset revision does not have metadata, the above method will return None.
assert metadata_record is None, 'The tip revision of %s should not have metadata, but metadata was found.' % repository.name
# Verify that the new changeset revision is not downloadable.
assert len(repository.downloadable_revisions) == 1, 'Repository %s has %d downloadable revisions, expected 1.' % \
(repository.name, len(repository.downloadable_revisions))
def test_0065_reupload_bwa_tool_dependency_definition(self):
'''Reupload the tool_dependencies.xml file to bwa_tool_dependency_0440.'''
'''
We are at tool dependencies, step 3 - Add the same tool_dependencies.xml file to bwa_tool_dependency_0440, and make sure
that bwa_tool_dependency_0440 still has a single installable revision 0.
'''
repository = self.test_db_util.get_repository_by_name_and_owner(bwa_tool_dependency_repository_name, common.test_user_1_name)
# Record the current tip, so we can verify that it's still not a downloadable revision after tool_dependencies.xml
# is re-uploaded and a new downloadable revision is created.
old_changeset_revision = self.get_repository_tip(repository)
self.upload_file(repository,
filename='bwa/complex/tool_dependencies.xml',
filepath=None,
valid_tools_only=True,
uncompress_file=True,
remove_repo_files_not_in_tar=False,
commit_message='Uploaded package tool dependency definition.',
strings_displayed=[],
strings_not_displayed=[])
new_changeset_revision = self.get_repository_tip(repository)
# Check that the old changeset revision is still downloadable.
metadata_record = self.get_repository_metadata_by_changeset_revision(repository, old_changeset_revision)
assert metadata_record is None, 'The revision of %s that does not contain tool_dependencies.xml should not be downloadable, but is.' % \
repository.name
# Check that the new tip is also downloadable.
metadata_record = self.get_repository_metadata_by_changeset_revision(repository, new_changeset_revision)
assert metadata_record.downloadable, 'The revision of %s that contains tool_dependencies.xml is not downloadable.' % \
repository.name
# Verify that there are only two downloadable revisions.
assert len(repository.downloadable_revisions) == 1, 'Repository %s has %d downloadable revisions, expected 1.' % \
(repository.name, len(repository.downloadable_revisions))
| 69.47486 | 146 | 0.685068 | 2,973 | 24,872 | 5.427178 | 0.076354 | 0.035575 | 0.017849 | 0.02696 | 0.82603 | 0.779548 | 0.757236 | 0.731577 | 0.695445 | 0.668361 | 0 | 0.024489 | 0.257921 | 24,872 | 357 | 147 | 69.669468 | 0.849705 | 0.11125 | 0 | 0.56621 | 0 | 0 | 0.147054 | 0.030748 | 0 | 0 | 0 | 0 | 0.082192 | 1 | 0.063927 | false | 0 | 0.004566 | 0 | 0.073059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
e19affb6cd0c6afbee7083aef3c100c3b845c030 | 154 | py | Python | py_tdlib/constructors/notification.py | Mr-TelegramBot/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 24 | 2018-10-05T13:04:30.000Z | 2020-05-12T08:45:34.000Z | py_tdlib/constructors/notification.py | MrMahdi313/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 3 | 2019-06-26T07:20:20.000Z | 2021-05-24T13:06:56.000Z | py_tdlib/constructors/notification.py | MrMahdi313/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 5 | 2018-10-05T14:29:28.000Z | 2020-08-11T15:04:10.000Z | from ..factory import Type
class notification(Type):
id = None # type: "int32"
date = None # type: "int32"
type = None # type: "NotificationType"
| 19.25 | 40 | 0.662338 | 19 | 154 | 5.368421 | 0.578947 | 0.235294 | 0.254902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.207792 | 154 | 7 | 41 | 22 | 0.803279 | 0.337662 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 5 |
e1aedaee6250e759d4414e3716ac9ecec139c3cb | 194 | py | Python | sql/sql_parameters.py | geoser/azureservices | 00f713275e86e195b0dc492a4590c8c503042720 | [
"MIT"
] | null | null | null | sql/sql_parameters.py | geoser/azureservices | 00f713275e86e195b0dc492a4590c8c503042720 | [
"MIT"
] | null | null | null | sql/sql_parameters.py | geoser/azureservices | 00f713275e86e195b0dc492a4590c8c503042720 | [
"MIT"
] | null | null | null | import uuid
class SqlParameters:
administrator_login:str = "userLogin"
administrator_password:str
collation:str = "SQL_Latin1_General_CP1_CI_AS"
database_name:str = "tks-testdb" | 27.714286 | 50 | 0.768041 | 24 | 194 | 5.875 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.154639 | 194 | 7 | 51 | 27.714286 | 0.847561 | 0 | 0 | 0 | 0 | 0 | 0.241026 | 0.14359 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.166667 | 0.166667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 5 |
e1c61ca1b29ec03825863a59fd6560106f5d0985 | 172 | py | Python | app/modules/adminroles/schema.py | DsCodeStudio98m0f/DTia-Nugrahab | 218ef140727849206fe76f42f43a5a231cfda9d9 | [
"Apache-2.0"
] | 16 | 2020-03-26T13:21:15.000Z | 2021-07-25T18:49:05.000Z | app/modules/adminroles/schema.py | DsCodeStudio98m0f/DTia-Nugrahab | 218ef140727849206fe76f42f43a5a231cfda9d9 | [
"Apache-2.0"
] | 13 | 2020-03-24T18:19:48.000Z | 2022-03-12T00:18:59.000Z | app/modules/adminroles/schema.py | DsCodeStudio98m0f/DTia-Nugrahab | 218ef140727849206fe76f42f43a5a231cfda9d9 | [
"Apache-2.0"
] | 14 | 2020-03-31T01:02:38.000Z | 2021-09-17T01:10:36.000Z | from flask_restplus_patched import ModelSchema
from flask_marshmallow import base_fields
from app.common.schema import BasicSchema,BasicPagerSchema
from .model import *
| 21.5 | 58 | 0.860465 | 22 | 172 | 6.545455 | 0.681818 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110465 | 172 | 7 | 59 | 24.571429 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.