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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7c4b72df2d2012d9d79281852a5cd3bef3ea8e8d | 48,507 | py | Python | tensorflow/tools/compatibility/renames_v2.py | junjun315/tensorflow | 40b800fc24e1eea8642b79087925939121e8e25f | [
"Apache-2.0"
] | null | null | null | tensorflow/tools/compatibility/renames_v2.py | junjun315/tensorflow | 40b800fc24e1eea8642b79087925939121e8e25f | [
"Apache-2.0"
] | null | null | null | tensorflow/tools/compatibility/renames_v2.py | junjun315/tensorflow | 40b800fc24e1eea8642b79087925939121e8e25f | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 64.935743 | 128 | 0.744284 | 6,756 | 48,507 | 5.092362 | 0.10894 | 0.110452 | 0.137484 | 0.027468 | 0.536595 | 0.297465 | 0.172393 | 0.103593 | 0.07534 | 0.055517 | 0 | 0.014284 | 0.092213 | 48,507 | 746 | 129 | 65.022788 | 0.767021 | 0.021028 | 0 | 0 | 0 | 0 | 0.815552 | 0.672039 | 0 | 0 | 0 | 0 | 0.023513 | 1 | 0 | false | 0 | 0.005533 | 0 | 0.005533 | 0.001383 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7c4c786476fcedafe44d921c5dfd79a0be6d09a1 | 1,093 | py | Python | PyLeague/logger.py | Ahuge/PyLeague | ee8a14061c44c1c26a5102a05e33ad820f2b1b63 | [
"MIT"
] | null | null | null | PyLeague/logger.py | Ahuge/PyLeague | ee8a14061c44c1c26a5102a05e33ad820f2b1b63 | [
"MIT"
] | null | null | null | PyLeague/logger.py | Ahuge/PyLeague | ee8a14061c44c1c26a5102a05e33ad820f2b1b63 | [
"MIT"
] | null | null | null | import sys
def color(text, color):
if color == "blue":
color = "0;34m"
elif color == "green":
color = "0;32m"
elif color == "red":
color = "0;31m"
elif color == "yellow":
color = "0;33m"
else:
return text
return "\033[%s%s\033[0m\n" % (color, text)
cla... | 19.175439 | 47 | 0.426349 | 118 | 1,093 | 3.915254 | 0.330508 | 0.116883 | 0.181818 | 0.246753 | 0.367965 | 0.333333 | 0.333333 | 0 | 0 | 0 | 0 | 0.043544 | 0.390668 | 1,093 | 56 | 48 | 19.517857 | 0.65015 | 0 | 0 | 0.227273 | 0 | 0 | 0.092406 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 1 | 0.159091 | false | 0 | 0.022727 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7c4e547145402a4cf7056e9aeb596f38cf59e239 | 173 | py | Python | nightlightpi/errorstrings.py | jmb/NightLightPi | 82f5d37a35e3457e31ca100524011908e5b33c4d | [
"MIT"
] | 2 | 2018-10-01T21:45:22.000Z | 2020-07-26T09:07:09.000Z | nightlightpi/errorstrings.py | jmb/NightLightPi | 82f5d37a35e3457e31ca100524011908e5b33c4d | [
"MIT"
] | 4 | 2017-09-29T19:19:07.000Z | 2019-10-08T05:15:29.000Z | nightlightpi/errorstrings.py | jmb/NightLightPi | 82f5d37a35e3457e31ca100524011908e5b33c4d | [
"MIT"
] | 4 | 2017-10-08T22:08:25.000Z | 2019-10-20T06:03:47.000Z | # -*- coding: utf-8; -*-
"""Define error strings raised by the application."""
MISSING_CONFIG_VALUE = """
'{0}' is not specified or invalid in the config file!
""".strip()
| 24.714286 | 53 | 0.65896 | 24 | 173 | 4.666667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0.156069 | 173 | 6 | 54 | 28.833333 | 0.753425 | 0.410405 | 0 | 0 | 0 | 0 | 0.572917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7c51d040f9ea88aa996e0a5f03d0e36f5bd442f2 | 1,692 | py | Python | cmdb-compliance/biz/handlers/asset_hipaa_data.py | zjj1002/aws-cloud-cmdb-system | 47982007688e5db1272435891cb654ab11d0d60a | [
"Apache-2.0"
] | null | null | null | cmdb-compliance/biz/handlers/asset_hipaa_data.py | zjj1002/aws-cloud-cmdb-system | 47982007688e5db1272435891cb654ab11d0d60a | [
"Apache-2.0"
] | 1 | 2022-01-04T13:53:16.000Z | 2022-01-04T13:53:16.000Z | cmdb-compliance/biz/handlers/asset_hipaa_data.py | zjj1002/aws-cloud-cmdb-system | 47982007688e5db1272435891cb654ab11d0d60a | [
"Apache-2.0"
] | null | null | null | from sqlalchemy import or_
from websdk.db_context import DBContext
from libs.base_handler import BaseHandler
from libs.pagination import pagination_util
from models.hipaa_data import HipaaData, model_to_dict
class HipaaDataHandler(BaseHandler):
@pagination_util
def get(self, *args, **kwargs):
key = s... | 36.782609 | 72 | 0.544326 | 170 | 1,692 | 5.176471 | 0.405882 | 0.092045 | 0.132955 | 0.2 | 0.270455 | 0.177273 | 0.177273 | 0.086364 | 0.086364 | 0 | 0 | 0.000874 | 0.323877 | 1,692 | 46 | 73 | 36.782609 | 0.768357 | 0.002955 | 0 | 0.210526 | 0 | 0 | 0.045077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0.078947 | 0.131579 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
7c5d7a1fdf2039a9a74d4beb4a72efeb34b5199f | 201 | py | Python | tests/test_update.py | en0/pyavl3 | c9dad3189da1f18e935e61d13d7c971aceafd895 | [
"MIT"
] | null | null | null | tests/test_update.py | en0/pyavl3 | c9dad3189da1f18e935e61d13d7c971aceafd895 | [
"MIT"
] | null | null | null | tests/test_update.py | en0/pyavl3 | c9dad3189da1f18e935e61d13d7c971aceafd895 | [
"MIT"
] | null | null | null | import unittest
from pyavl3 import AVLTree
class AVLTreeUpdateTest(unittest.TestCase):
def test_add_one(self):
a = AVLTree()
a.update({1:'a'})
self.assertEqual(len(a), 1)
| 20.1 | 43 | 0.651741 | 26 | 201 | 4.961538 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019355 | 0.228856 | 201 | 9 | 44 | 22.333333 | 0.812903 | 0 | 0 | 0 | 0 | 0 | 0.004975 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7c5e5eb731f86fd4dc537483a440f05753a38fab | 600 | py | Python | custom_stocks_py/base.py | baramsalem/Custom-stocks-py | 5beeb7b6f93755ec7c00c25763accf6a52f8bbaf | [
"Unlicense"
] | null | null | null | custom_stocks_py/base.py | baramsalem/Custom-stocks-py | 5beeb7b6f93755ec7c00c25763accf6a52f8bbaf | [
"Unlicense"
] | null | null | null | custom_stocks_py/base.py | baramsalem/Custom-stocks-py | 5beeb7b6f93755ec7c00c25763accf6a52f8bbaf | [
"Unlicense"
] | null | null | null | """
custom_stocks_py base module.
This is the principal module of the custom_stocks_py project.
here you put your main classes and objects.
Be creative! do whatever you want!
If you want to replace this with a Flask application run:
$ make init
and then choose `flask` as template.
"""
class BaseClass:
de... | 18.181818 | 61 | 0.646667 | 81 | 600 | 4.654321 | 0.604938 | 0.079576 | 0.074271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265 | 600 | 32 | 62 | 18.75 | 0.854875 | 0.523333 | 0 | 0 | 0 | 0 | 0.183333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0.142857 | 1 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
7c5ff08483bb708102f0397eb8e76c57f5a75cff | 59 | py | Python | cimsparql/__init__.py | nalu-svk/cimsparql | e69b0799a2bbd70027e2c8bb9970574991597ca5 | [
"MIT"
] | null | null | null | cimsparql/__init__.py | nalu-svk/cimsparql | e69b0799a2bbd70027e2c8bb9970574991597ca5 | [
"MIT"
] | null | null | null | cimsparql/__init__.py | nalu-svk/cimsparql | e69b0799a2bbd70027e2c8bb9970574991597ca5 | [
"MIT"
] | null | null | null | """Library for CIM sparql queries"""
__version__ = "1.9.0"
| 19.666667 | 36 | 0.677966 | 9 | 59 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.135593 | 59 | 2 | 37 | 29.5 | 0.647059 | 0.508475 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7c7a936052804b42678eb433f6f64454107e4317 | 450 | py | Python | app1.py | FreakX23/EBook_Training | de445b0a9e56a1f1ffc51ae3c5e10ebe8297e9b6 | [
"MIT"
] | null | null | null | app1.py | FreakX23/EBook_Training | de445b0a9e56a1f1ffc51ae3c5e10ebe8297e9b6 | [
"MIT"
] | null | null | null | app1.py | FreakX23/EBook_Training | de445b0a9e56a1f1ffc51ae3c5e10ebe8297e9b6 | [
"MIT"
] | null | null | null | # This Part will gather Infos and demonstrate the use of Variables.
usrName = input("What is your Name?")
usrAge = int(input("What is your Age?"))
usrGPA = float(input("What is your GPA?"))
print () #cheap way to get a new line
print ("Hello, %s" % (usrName))
print ("Did you know that in two years you will be %d years ... | 45 | 98 | 0.682222 | 79 | 450 | 3.886076 | 0.696203 | 0.087948 | 0.107492 | 0.14658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.186667 | 450 | 9 | 99 | 50 | 0.830601 | 0.204444 | 0 | 0.25 | 0 | 0 | 0.532394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.625 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
7c7ce13176c091aaa43308e8a58ace22a4dd604d | 684 | py | Python | distalg/message.py | charlesemurray/DistributedProgramming | f7b5001a6acb0583cd6b7bb611f27893b830c296 | [
"MIT"
] | null | null | null | distalg/message.py | charlesemurray/DistributedProgramming | f7b5001a6acb0583cd6b7bb611f27893b830c296 | [
"MIT"
] | null | null | null | distalg/message.py | charlesemurray/DistributedProgramming | f7b5001a6acb0583cd6b7bb611f27893b830c296 | [
"MIT"
] | null | null | null | class Message:
def __init__(self, from_channel=None, **kwargs):
self._channel = from_channel
if kwargs is not None:
for key, value in kwargs.items():
setattr(self, key, value)
@property
def carrier(self):
return self._channel
def sender(self):
... | 23.586207 | 64 | 0.630117 | 81 | 684 | 5 | 0.395062 | 0.108642 | 0.103704 | 0.155556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266082 | 684 | 28 | 65 | 24.428571 | 0.806773 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.25 | false | 0 | 0 | 0.15 | 0.5 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
7ca4f5192c61086f4f74975da17d1bf4fd80a81d | 184 | py | Python | prgm6.py | pooja-bs-3003/Project_21 | dc46e66ccf10937be6f2f8369ef02eb52e139eff | [
"MIT"
] | null | null | null | prgm6.py | pooja-bs-3003/Project_21 | dc46e66ccf10937be6f2f8369ef02eb52e139eff | [
"MIT"
] | null | null | null | prgm6.py | pooja-bs-3003/Project_21 | dc46e66ccf10937be6f2f8369ef02eb52e139eff | [
"MIT"
] | 1 | 2021-01-22T15:15:02.000Z | 2021-01-22T15:15:02.000Z | str1= input("enter a string :")
l1 =""
for i in str1 [::-1]:
l1 = i+l1
print(l1)
if str1 == l1:
print("string is a palindrome")
else :
print("string is not a palindrome")
| 18.4 | 40 | 0.592391 | 31 | 184 | 3.516129 | 0.516129 | 0.12844 | 0.238532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064286 | 0.23913 | 184 | 9 | 41 | 20.444444 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7cb376c84e1d9faf8d7802d4ab0284c278818e8c | 441 | py | Python | FPRun11.py | yecfly/DEPRESSIONEST | 21b72906aac9f310e264f7a5eea348480a647197 | [
"Unlicense"
] | null | null | null | FPRun11.py | yecfly/DEPRESSIONEST | 21b72906aac9f310e264f7a5eea348480a647197 | [
"Unlicense"
] | null | null | null | FPRun11.py | yecfly/DEPRESSIONEST | 21b72906aac9f310e264f7a5eea348480a647197 | [
"Unlicense"
] | null | null | null | from Facepatchindependenttrain import runPatch
import sys
if len(sys.argv)==6:
runPatch(GPU_Device_ID=1, FacePatchID=int(sys.argv[1]),
trainpklID=int(sys.argv[2]), testpklID=int(sys.argv[3]),
NetworkType=int(sys.argv[4]),
runs=int(sys.argv[5]))
... | 40.090909 | 113 | 0.621315 | 54 | 441 | 5.037037 | 0.574074 | 0.154412 | 0.183824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.238095 | 441 | 10 | 114 | 44.1 | 0.78869 | 0 | 0 | 0 | 0 | 0.111111 | 0.229698 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 0 | 0.222222 | 0.111111 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
7cbd753ba4fba3e640a8395f823b9af2ba40868f | 400 | py | Python | triangle.py | montyshyama/python-basics | d71156d70fdadc722a192b984e9bff66401ab894 | [
"MIT"
] | null | null | null | triangle.py | montyshyama/python-basics | d71156d70fdadc722a192b984e9bff66401ab894 | [
"MIT"
] | null | null | null | triangle.py | montyshyama/python-basics | d71156d70fdadc722a192b984e9bff66401ab894 | [
"MIT"
] | 1 | 2020-04-05T20:06:08.000Z | 2020-04-05T20:06:08.000Z | side_a=int(input("Enter the first side(a):"))
side_b=int(input("Enter the second side(b):"))
side_c=int(input("Enter the third side(c):"))
if side_a==side_b and side_a==side_c:
print("The triangle is an equilateral triangle.")
elif side_a==side_b or side_a==side_c or side_b==side_c:
print("The triangle is... | 44.444444 | 57 | 0.7075 | 73 | 400 | 3.69863 | 0.315068 | 0.111111 | 0.166667 | 0.177778 | 0.185185 | 0.185185 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0.1475 | 400 | 9 | 58 | 44.444444 | 0.791789 | 0 | 0 | 0 | 0 | 0 | 0.468193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7cdbf4b64b3ba075f66b013f73d0f70e791b05ee | 52,272 | py | Python | src/skim/modeling/skim_attention/modeling_skim.py | recitalAI/skim-attention | a37a277072d1f70ea615cfd19e5b84a6effd2464 | [
"Apache-2.0"
] | 4 | 2021-09-08T17:20:59.000Z | 2021-12-08T07:49:24.000Z | src/skim/modeling/skim_attention/modeling_skim.py | recitalAI/skim-attention | a37a277072d1f70ea615cfd19e5b84a6effd2464 | [
"Apache-2.0"
] | null | null | null | src/skim/modeling/skim_attention/modeling_skim.py | recitalAI/skim-attention | a37a277072d1f70ea615cfd19e5b84a6effd2464 | [
"Apache-2.0"
] | 1 | 2021-12-09T00:02:23.000Z | 2021-12-09T00:02:23.000Z | from collections import namedtuple
import logging
from dataclasses import dataclass
from typing import Optional, Tuple
import math
import torch
from torch import nn
from torch.nn import CrossEntropyLoss, LayerNorm
from torch.autograd.function import Function
from transformers.file_utils import (
ModelOutput,
)
... | 39.540091 | 168 | 0.661674 | 6,134 | 52,272 | 5.32165 | 0.070264 | 0.034556 | 0.015164 | 0.010354 | 0.754986 | 0.720736 | 0.685936 | 0.672089 | 0.64703 | 0.620868 | 0 | 0.005837 | 0.26255 | 52,272 | 1,322 | 169 | 39.540091 | 0.840977 | 0.100953 | 0 | 0.668012 | 0 | 0 | 0.021757 | 0.002918 | 0 | 0 | 0 | 0 | 0.002018 | 1 | 0.058527 | false | 0 | 0.015136 | 0.007064 | 0.149344 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7cf6644c8071f50f1d98ec6acd6e40c622a3ce59 | 12,540 | py | Python | pysnmp-with-texts/ENTERASYS-NAC-APPLIANCE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/ENTERASYS-NAC-APPLIANCE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/ENTERASYS-NAC-APPLIANCE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module ENTERASYS-NAC-APPLIANCE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ENTERASYS-NAC-APPLIANCE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:04:09 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python versio... | 145.813953 | 1,653 | 0.817384 | 1,214 | 12,540 | 8.441516 | 0.187809 | 0.045667 | 0.079918 | 0.008977 | 0.369828 | 0.231557 | 0.133782 | 0.127342 | 0.095238 | 0.095238 | 0 | 0.046301 | 0.07512 | 12,540 | 85 | 1,654 | 147.529412 | 0.8373 | 0.027751 | 0 | 0.039474 | 0 | 0.026316 | 0.305344 | 0.093081 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.092105 | 0 | 0.092105 | 0 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7cf872b37fe89e4b5c0f3a287b43439b1d433523 | 2,923 | py | Python | burp-filter-options/filter-options.py | parsiya/Parsia-Code | e75bd9f7f295e6d8e584de67f90dd02cb75ae915 | [
"MIT"
] | 21 | 2018-09-10T03:09:17.000Z | 2022-02-07T09:20:03.000Z | burp-filter-options/filter-options.py | parsiya/Parsia-Code | e75bd9f7f295e6d8e584de67f90dd02cb75ae915 | [
"MIT"
] | 1 | 2019-11-10T21:17:23.000Z | 2020-01-19T04:36:19.000Z | burp-filter-options/filter-options.py | parsiya/Parsia-Code | e75bd9f7f295e6d8e584de67f90dd02cb75ae915 | [
"MIT"
] | 8 | 2019-10-11T23:29:58.000Z | 2021-05-26T12:11:43.000Z | # modified "example traffic redirector"
# https://raw.githubusercontent.com/PortSwigger/example-traffic-redirector/master/python/TrafficRedirector.py
# Idea: https://github.com/pajswigger/filter-options/blob/master/src/filter-options.kt
# Usage: Put both files in a directory and add filter-options.py to Burp. Nees ... | 31.095745 | 121 | 0.659254 | 299 | 2,923 | 6.441472 | 0.508361 | 0.03271 | 0.021807 | 0.037383 | 0.028037 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004176 | 0.262744 | 2,923 | 94 | 122 | 31.095745 | 0.889559 | 0.412248 | 0 | 0.394737 | 0 | 0 | 0.040176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.105263 | 0.184211 | null | null | 0.026316 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
6b0a3fda038a685ade7b25955f97976cdafc44a7 | 787 | py | Python | var/spack/repos/builtin/packages/r-viridislite/package.py | xiki-tempula/spack | 9d66c05e93ab8a933fc59915040c0e0c86a4aac4 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 9 | 2018-04-18T07:51:40.000Z | 2021-09-10T03:56:57.000Z | var/spack/repos/builtin/packages/r-viridislite/package.py | xiki-tempula/spack | 9d66c05e93ab8a933fc59915040c0e0c86a4aac4 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 907 | 2018-04-18T11:17:57.000Z | 2022-03-31T13:20:25.000Z | var/spack/repos/builtin/packages/r-viridislite/package.py | xiki-tempula/spack | 9d66c05e93ab8a933fc59915040c0e0c86a4aac4 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 29 | 2018-11-05T16:14:23.000Z | 2022-02-03T16:07:09.000Z | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RViridislite(RPackage):
"""viridisLite: Default Color Maps from 'matplotlib' (Lite Version... | 39.35 | 95 | 0.7446 | 94 | 787 | 6.202128 | 0.691489 | 0.010292 | 0.044597 | 0.048027 | 0.116638 | 0.116638 | 0.116638 | 0.116638 | 0 | 0 | 0 | 0.170767 | 0.121982 | 787 | 19 | 96 | 41.421053 | 0.672938 | 0.322745 | 0 | 0 | 0 | 0.125 | 0.604962 | 0.244275 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.625 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6b147a9cf7116a1a4434ef19b42cc9c65f9ba8e8 | 1,536 | py | Python | app/core/model/routine.py | MauricioAntonioMartinez/django-workout-tracker-api | 82f9499f172bd6d4b861f072948949dd6f8f6ec1 | [
"MIT"
] | null | null | null | app/core/model/routine.py | MauricioAntonioMartinez/django-workout-tracker-api | 82f9499f172bd6d4b861f072948949dd6f8f6ec1 | [
"MIT"
] | null | null | null | app/core/model/routine.py | MauricioAntonioMartinez/django-workout-tracker-api | 82f9499f172bd6d4b861f072948949dd6f8f6ec1 | [
"MIT"
] | null | null | null |
import os
import uuid
from django.conf import settings # this is how we can retrive variables
# for the settings file
from django.contrib.auth.models import (AbstractBaseUser, BaseUserManager,
PermissionsMixin)
from django.core.validators import MaxValueValidator, MinValueVali... | 30.72 | 74 | 0.742839 | 183 | 1,536 | 6.142077 | 0.464481 | 0.044484 | 0.062278 | 0.093416 | 0.074733 | 0.074733 | 0.074733 | 0.074733 | 0 | 0 | 0 | 0.004804 | 0.186849 | 1,536 | 50 | 75 | 30.72 | 0.895116 | 0.107422 | 0 | 0.064516 | 0 | 0 | 0.035871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.387097 | 0.032258 | 0.806452 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6b3b2f253f3b9ff3bee85537636c322b9a7a1ad0 | 8,617 | py | Python | src/mesh/azext_mesh/servicefabricmesh/mgmt/servicefabricmesh/models/__init__.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 207 | 2017-11-29T06:59:41.000Z | 2022-03-31T10:00:53.000Z | src/mesh/azext_mesh/servicefabricmesh/mgmt/servicefabricmesh/models/__init__.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 4,061 | 2017-10-27T23:19:56.000Z | 2022-03-31T23:18:30.000Z | src/mesh/azext_mesh/servicefabricmesh/mgmt/servicefabricmesh/models/__init__.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 802 | 2017-10-11T17:36:26.000Z | 2022-03-31T22:24:32.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 42.034146 | 150 | 0.82755 | 652 | 8,617 | 10.668712 | 0.337423 | 0.032202 | 0.025302 | 0.03019 | 0.093157 | 0.083381 | 0.070443 | 0.070443 | 0.070443 | 0.070443 | 0 | 0.00013 | 0.10781 | 8,617 | 204 | 151 | 42.240196 | 0.904657 | 0.052454 | 0 | 0 | 0 | 0 | 0.250307 | 0.161025 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.421875 | 0 | 0.421875 | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
860d13de1aea5d89a236db351b3f802f70a454be | 815 | py | Python | lampara/lamp.py | gventuraagramonte/python | d96796c302f2f423a8e949f9c7d33a3bfabf8a0f | [
"MIT"
] | null | null | null | lampara/lamp.py | gventuraagramonte/python | d96796c302f2f423a8e949f9c7d33a3bfabf8a0f | [
"MIT"
] | null | null | null | lampara/lamp.py | gventuraagramonte/python | d96796c302f2f423a8e949f9c7d33a3bfabf8a0f | [
"MIT"
] | null | null | null |
#Definicion de la clase
#antes de empezar una clase se declara de la siguiente manera
class Lamp:
_LAMPS = ['''
.
. | ,
\ ' /
` ,-. '
--- ( ) ---
\ /
_|=|_
|_____|
''',
'''
,-.
( )
\ /
_|=|_
|___... | 19.404762 | 114 | 0.490798 | 87 | 815 | 4.08046 | 0.471264 | 0.135211 | 0.169014 | 0.197183 | 0.101408 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004024 | 0.390184 | 815 | 41 | 115 | 19.878049 | 0.710262 | 0.192638 | 0 | 0.08 | 0 | 0 | 0.218531 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 1 | 0.16 | false | 0 | 0 | 0 | 0.24 | 0.08 | 0 | 0 | 0 | null | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
860efe37f66eefaa650bbcf92ef4ff07b3bc6d05 | 1,844 | py | Python | abtest/views.py | SchuylerGoodman/topicalguide | 7c26c8be8e1dddb7bf2be33ea9a7ba59034bf620 | [
"PostgreSQL"
] | null | null | null | abtest/views.py | SchuylerGoodman/topicalguide | 7c26c8be8e1dddb7bf2be33ea9a7ba59034bf620 | [
"PostgreSQL"
] | null | null | null | abtest/views.py | SchuylerGoodman/topicalguide | 7c26c8be8e1dddb7bf2be33ea9a7ba59034bf620 | [
"PostgreSQL"
] | null | null | null | # The Topical Guide
# Copyright 2010-2011 Brigham Young University
#
# This file is part of the Topical Guide <http://nlp.cs.byu.edu/topic_browser>.
#
# The Topical Guide is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published by the
# Free Soft... | 37.632653 | 79 | 0.750542 | 280 | 1,844 | 4.871429 | 0.517857 | 0.043988 | 0.065982 | 0.041789 | 0.073314 | 0.073314 | 0.049853 | 0 | 0 | 0 | 0 | 0.022891 | 0.170824 | 1,844 | 48 | 80 | 38.416667 | 0.869196 | 0.609544 | 0 | 0 | 0 | 0 | 0.090647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.4375 | 0.0625 | 0.6875 | 0.125 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
8611c5caf6cad3b09e4113e9f2732c41ec4305ae | 992 | py | Python | tests/conftest.py | AlanRosenthal/virtual-dealer | 5c5689172b38b122a69e5ca244497646bf9d8fa8 | [
"MIT"
] | 1 | 2020-03-23T21:03:46.000Z | 2020-03-23T21:03:46.000Z | tests/conftest.py | AlanRosenthal/virtual-dealer | 5c5689172b38b122a69e5ca244497646bf9d8fa8 | [
"MIT"
] | null | null | null | tests/conftest.py | AlanRosenthal/virtual-dealer | 5c5689172b38b122a69e5ca244497646bf9d8fa8 | [
"MIT"
] | null | null | null | """
pytest fixtures
"""
import unittest.mock as mock
import pytest
import virtual_dealer.api
@pytest.fixture(name="client")
def fixture_client():
"""
Client test fixture for testing flask APIs
"""
return virtual_dealer.api.app.test_client()
@pytest.fixture(name="store")
def fixture_store():
"""
... | 20.244898 | 87 | 0.688508 | 121 | 992 | 5.495868 | 0.264463 | 0.097744 | 0.12782 | 0.117293 | 0.159399 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188508 | 992 | 48 | 88 | 20.666667 | 0.826087 | 0.178427 | 0 | 0.1 | 0 | 0 | 0.14071 | 0.07377 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.15 | 0 | 0.55 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8621222cce83ccae2b5fe5d557b5c9ece5f258f8 | 604 | py | Python | samples/abp/test_graphics.py | jproudlo/PyModel | 2ab0e2cf821807206725adaa425409b0c28929b7 | [
"BSD-3-Clause"
] | 61 | 2015-01-29T16:18:51.000Z | 2021-09-28T10:14:02.000Z | samples/abp/test_graphics.py | vikstr/PyModel | 4fff616fe0fd8342c91a42d9db5d4097a179dff8 | [
"BSD-3-Clause"
] | 2 | 2015-02-04T11:57:53.000Z | 2021-07-18T20:59:55.000Z | samples/abp/test_graphics.py | vikstr/PyModel | 4fff616fe0fd8342c91a42d9db5d4097a179dff8 | [
"BSD-3-Clause"
] | 34 | 2015-02-04T12:00:29.000Z | 2022-03-14T07:41:25.000Z | """
ABP analyzer and graphics tests
"""
cases = [
('Run Pymodel Graphics to generate dot file from FSM model, no need use pma',
'pmg ABP'),
('Generate SVG file from dot',
'dotsvg ABP'),
# Now display ABP.dot in browser
('Run PyModel Analyzer to generate FSM from original FSM, should be the... | 24.16 | 82 | 0.653974 | 88 | 604 | 4.488636 | 0.443182 | 0.075949 | 0.091139 | 0.101266 | 0.141772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251656 | 604 | 24 | 83 | 25.166667 | 0.873894 | 0.215232 | 0 | 0 | 1 | 0 | 0.731183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8627e459bffff8a71e23af3dc3f940f880264aa8 | 65 | py | Python | scripts/apic.py | nicmatth/APIC-EM-HelloWorldv3 | c0645e6decf57dbd87c5a239b6fce36f3dcbef41 | [
"Apache-2.0"
] | null | null | null | scripts/apic.py | nicmatth/APIC-EM-HelloWorldv3 | c0645e6decf57dbd87c5a239b6fce36f3dcbef41 | [
"Apache-2.0"
] | null | null | null | scripts/apic.py | nicmatth/APIC-EM-HelloWorldv3 | c0645e6decf57dbd87c5a239b6fce36f3dcbef41 | [
"Apache-2.0"
] | null | null | null | APIC_IP="sandboxapic.cisco.com"
APIC_PORT="443"
GROUP='group-xx'
| 16.25 | 31 | 0.769231 | 11 | 65 | 4.363636 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048387 | 0.046154 | 65 | 3 | 32 | 21.666667 | 0.725806 | 0 | 0 | 0 | 0 | 0 | 0.492308 | 0.323077 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8627f95ead1f5387af07178d55a37d9519bc58b3 | 1,205 | py | Python | stella/test/external_func.py | squisher/stella | d9f0b2ebbd853b31c6f75cd0f0286037da4bcaf9 | [
"Apache-2.0"
] | 11 | 2015-08-03T17:37:46.000Z | 2021-05-26T07:29:36.000Z | stella/test/external_func.py | squisher/stella | d9f0b2ebbd853b31c6f75cd0f0286037da4bcaf9 | [
"Apache-2.0"
] | 1 | 2016-09-17T01:46:13.000Z | 2016-09-17T01:46:13.000Z | stella/test/external_func.py | squisher/stella | d9f0b2ebbd853b31c6f75cd0f0286037da4bcaf9 | [
"Apache-2.0"
] | 3 | 2016-05-21T19:17:16.000Z | 2019-05-10T17:35:37.000Z | # Copyright 2013-2015 David Mohr
#
# 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 writi... | 24.591837 | 78 | 0.692946 | 182 | 1,205 | 4.5 | 0.510989 | 0.051282 | 0.07326 | 0.039072 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056877 | 0.19751 | 1,205 | 48 | 79 | 25.104167 | 0.790072 | 0.462241 | 0 | 0.190476 | 0 | 0 | 0.007899 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.52381 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8630212a84fb76678a871b47fba5eab501615806 | 1,658 | py | Python | 292-nim-game.py | mvj3/leetcode | 3111199beeaefbb3a74173e783ed21c9e53ab203 | [
"MIT"
] | null | null | null | 292-nim-game.py | mvj3/leetcode | 3111199beeaefbb3a74173e783ed21c9e53ab203 | [
"MIT"
] | null | null | null | 292-nim-game.py | mvj3/leetcode | 3111199beeaefbb3a74173e783ed21c9e53ab203 | [
"MIT"
] | null | null | null | """
Question:
Nim Game My Submissions Question
You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 stones. The one who removes the last stone will be the winner. You will take the first turn to remove the stones.
Bot... | 36.043478 | 263 | 0.700844 | 269 | 1,658 | 4.319703 | 0.449814 | 0.108434 | 0.178141 | 0.185886 | 0.174699 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027559 | 0.234017 | 1,658 | 45 | 264 | 36.844444 | 0.887402 | 0.645356 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.529412 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
863da6290f58b36a91968cc8314fc22813d11b6c | 210 | py | Python | 5-serverless-xray-stack/app.py | mmeidlinger/cdk-microservices-labs | a646c05d4bb0950f9915f9b15f810e82ba8d4e9a | [
"MIT-0"
] | 14 | 2020-03-26T18:35:50.000Z | 2022-03-20T14:49:54.000Z | 5-serverless-xray-stack/app.py | mmeidlinger/cdk-microservices-labs | a646c05d4bb0950f9915f9b15f810e82ba8d4e9a | [
"MIT-0"
] | 1 | 2021-11-23T01:20:13.000Z | 2021-11-23T01:20:13.000Z | 5-serverless-xray-stack/app.py | mmeidlinger/cdk-microservices-labs | a646c05d4bb0950f9915f9b15f810e82ba8d4e9a | [
"MIT-0"
] | 14 | 2020-04-15T12:30:14.000Z | 2022-03-26T20:47:35.000Z | #!/usr/bin/env python3
from aws_cdk import core
from fagate_serverless.fagate_serverless_stack import FagateServerlessStack
app = core.App()
FagateServerlessStack(app, "serverless-xray-stack")
app.synth()
| 17.5 | 75 | 0.804762 | 27 | 210 | 6.111111 | 0.592593 | 0.193939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005291 | 0.1 | 210 | 11 | 76 | 19.090909 | 0.867725 | 0.1 | 0 | 0 | 0 | 0 | 0.111702 | 0.111702 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
8640b1d90a7dd7eb0d598131b239f974e433d2eb | 1,121 | py | Python | backend/api/models.py | mezidia/mezidia-airlines-backend | bc0b27b785f45ac83552f7fbb879cd977171c2fc | [
"MIT"
] | null | null | null | backend/api/models.py | mezidia/mezidia-airlines-backend | bc0b27b785f45ac83552f7fbb879cd977171c2fc | [
"MIT"
] | null | null | null | backend/api/models.py | mezidia/mezidia-airlines-backend | bc0b27b785f45ac83552f7fbb879cd977171c2fc | [
"MIT"
] | null | null | null | from sqlalchemy import Column, Integer, String, ForeignKey, Float
from sqlalchemy.orm import relationship
from .database import Base
class Post(Base):
__tablename__ = "posts"
id = Column(Integer, primary_key=True, nullable=False, index=True)
full_name = Column(String, nullable=False)
last_place = Co... | 29.5 | 70 | 0.716325 | 135 | 1,121 | 5.792593 | 0.333333 | 0.182864 | 0.179028 | 0.223785 | 0.269821 | 0.195652 | 0.195652 | 0.195652 | 0.195652 | 0.195652 | 0 | 0.002146 | 0.168599 | 1,121 | 37 | 71 | 30.297297 | 0.83691 | 0 | 0 | 0.12 | 0 | 0 | 0.038359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.04 | 0.12 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
864be7bfbe0cf81e1b82f46620ffbb10dcc091db | 108 | py | Python | figures/collide1a.py | brandon-rhodes/pycon2010-mighty-dictionary | 1f75fdd42cd243c9f86a87f7b48f6b3498d032e8 | [
"MIT"
] | 22 | 2015-05-10T10:32:47.000Z | 2021-08-21T17:29:09.000Z | figures/collide1a.py | brandon-rhodes/pycon2010-mighty-dictionary | 1f75fdd42cd243c9f86a87f7b48f6b3498d032e8 | [
"MIT"
] | 2 | 2016-05-06T20:09:17.000Z | 2020-01-23T02:29:18.000Z | figures/collide1a.py | brandon-rhodes/pycon2010-mighty-dictionary | 1f75fdd42cd243c9f86a87f7b48f6b3498d032e8 | [
"MIT"
] | 4 | 2016-04-17T23:38:11.000Z | 2019-03-06T02:28:48.000Z | import _dictdraw, sys
d = {}
surface = _dictdraw.draw_dictionary(d, [4])
surface.write_to_png(sys.argv[1])
| 18 | 43 | 0.731481 | 17 | 108 | 4.352941 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.111111 | 108 | 5 | 44 | 21.6 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8654bfcdcac1a02c8bb6c10945f68a8c090f869f | 27,781 | py | Python | pysnmp-with-texts/CISCO-DOT11-QOS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CISCO-DOT11-QOS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CISCO-DOT11-QOS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-DOT11-QOS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-DOT11-QOS-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:55:50 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default... | 156.073034 | 2,406 | 0.791908 | 3,456 | 27,781 | 6.365162 | 0.152778 | 0.049095 | 0.085917 | 0.00891 | 0.375807 | 0.273161 | 0.253296 | 0.222611 | 0.173516 | 0.163197 | 0 | 0.080347 | 0.103092 | 27,781 | 177 | 2,407 | 156.954802 | 0.802504 | 0.011951 | 0 | 0.035928 | 0 | 0.161677 | 0.433054 | 0.025911 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.053892 | 0 | 0.08982 | 0 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8657657d7e720812db7b2b5c2b5e580159afbea0 | 564 | py | Python | mathfun/lexographic.py | lsbardel/mathfun | 98e7c210409c2b5777e91059c3651cef4f3045dd | [
"BSD-3-Clause"
] | null | null | null | mathfun/lexographic.py | lsbardel/mathfun | 98e7c210409c2b5777e91059c3651cef4f3045dd | [
"BSD-3-Clause"
] | null | null | null | mathfun/lexographic.py | lsbardel/mathfun | 98e7c210409c2b5777e91059c3651cef4f3045dd | [
"BSD-3-Clause"
] | null | null | null | """
Next lexicographical permutation algorithm
https://www.nayuki.io/page/next-lexicographical-permutation-algorithm
"""
def next_lexo(S):
b = S[-1]
for i, a in enumerate(reversed(S[:-1]), 2):
if a < b:
# we have the pivot a
for j, b in enumerate(reversed(S), 1):
... | 25.636364 | 69 | 0.439716 | 76 | 564 | 3.25 | 0.460526 | 0.032389 | 0.242915 | 0.315789 | 0.17004 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01791 | 0.406028 | 564 | 21 | 70 | 26.857143 | 0.719403 | 0.237589 | 0 | 0 | 0 | 0 | 0.021327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.230769 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
865ad1612ffd549ba548de0cbe66876028b4a804 | 321 | py | Python | pycoin/symbols/doge.py | jaschadub/pycoin | 1e8d0d9fe20ce0347b97847bb529cd1bd84c7442 | [
"MIT"
] | 1 | 2018-01-17T05:08:32.000Z | 2018-01-17T05:08:32.000Z | pycoin/symbols/doge.py | impactog/pycoin | 3db6f82afa3054d8d07caca4909e1aed3de2fceb | [
"MIT"
] | null | null | null | pycoin/symbols/doge.py | impactog/pycoin | 3db6f82afa3054d8d07caca4909e1aed3de2fceb | [
"MIT"
] | 1 | 2020-03-10T12:21:51.000Z | 2020-03-10T12:21:51.000Z | from pycoin.networks.bitcoinish import create_bitcoinish_network
network = create_bitcoinish_network(
symbol="DOGE", network_name="Dogecoin", subnet_name="mainnet",
wif_prefix_hex="9e", address_prefix_hex="1e", pay_to_script_prefix_hex="16",
bip32_prv_prefix_hex="02fd3955", bip32_pub_prefix_hex="02fd3929")... | 45.857143 | 80 | 0.800623 | 44 | 321 | 5.386364 | 0.636364 | 0.189873 | 0.194093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068259 | 0.087227 | 321 | 6 | 81 | 53.5 | 0.740614 | 0 | 0 | 0 | 0 | 0 | 0.127726 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
865c3c1cc62a44e9c288bd3980673e8cb1a26d5e | 93 | py | Python | connections/mode.py | pavithra-mahamani/TAF | ff854adcc6ca3e50d9dc64e7756ca690251128d3 | [
"Apache-2.0"
] | null | null | null | connections/mode.py | pavithra-mahamani/TAF | ff854adcc6ca3e50d9dc64e7756ca690251128d3 | [
"Apache-2.0"
] | null | null | null | connections/mode.py | pavithra-mahamani/TAF | ff854adcc6ca3e50d9dc64e7756ca690251128d3 | [
"Apache-2.0"
] | null | null | null | '''
Created on Jan 18, 2018
@author: riteshagarwal
'''
java = False
rest = False
cli = False | 11.625 | 23 | 0.677419 | 13 | 93 | 4.846154 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0.193548 | 93 | 8 | 24 | 11.625 | 0.76 | 0.505376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
866961c7ba40ad3796162e785a123e4decd9a074 | 6,648 | py | Python | backend/project/settings.py | prog-serhii/MyMoney_v2 | 8d2aa3ec0497c7afd1a25bb9266bfc405e9c9397 | [
"MIT"
] | 1 | 2020-11-09T10:32:05.000Z | 2020-11-09T10:32:05.000Z | backend/project/settings.py | prog-serhii/MyMoney_v2 | 8d2aa3ec0497c7afd1a25bb9266bfc405e9c9397 | [
"MIT"
] | null | null | null | backend/project/settings.py | prog-serhii/MyMoney_v2 | 8d2aa3ec0497c7afd1a25bb9266bfc405e9c9397 | [
"MIT"
] | null | null | null | import os
from pathlib import Path
from datetime import timedelta
from celery.schedules import crontab
from django.utils.translation import gettext_lazy as _
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = os.environ.get(
'SECRET_... | 29.546667 | 91 | 0.626203 | 677 | 6,648 | 5.958641 | 0.401773 | 0.048339 | 0.032722 | 0.02231 | 0.104115 | 0.095687 | 0.057015 | 0.042638 | 0.042638 | 0.022806 | 0 | 0.01362 | 0.182762 | 6,648 | 224 | 92 | 29.678571 | 0.728879 | 0.246089 | 0 | 0.013889 | 0 | 0 | 0.519572 | 0.402341 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.034722 | 0 | 0.034722 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
866fc71e2531405289f44f8b89f61a0e57369c55 | 321 | py | Python | checkmate/contrib/plugins/all/progpilot/setup.py | marcinguy/checkmate-ce | fc33c7c27bc640ab4db5dbda274a0edd3b3db218 | [
"MIT"
] | null | null | null | checkmate/contrib/plugins/all/progpilot/setup.py | marcinguy/checkmate-ce | fc33c7c27bc640ab4db5dbda274a0edd3b3db218 | [
"MIT"
] | null | null | null | checkmate/contrib/plugins/all/progpilot/setup.py | marcinguy/checkmate-ce | fc33c7c27bc640ab4db5dbda274a0edd3b3db218 | [
"MIT"
] | null | null | null | from .analyzer import ProgpilotAnalyzer
from .issues_data import issues_data
analyzers = {
'phpanlyzer' :
{
'name' : 'phpanalyzer',
'title' : 'phpanalyzer',
'class' : ProgpilotAnalyzer,
'language' : 'all',
'issues_data' : issues_data,
},
}... | 22.928571 | 40 | 0.535826 | 24 | 321 | 7 | 0.583333 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.34891 | 321 | 13 | 41 | 24.692308 | 0.803828 | 0 | 0 | 0 | 0 | 0 | 0.211838 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
867a66ae5d5de251f9ea678d34a2cd01a411db2e | 443 | py | Python | src/ml_final_project/utils/evaluators/default.py | yuvalot/ml_final_project | fefb67c92504ceeb7999e49daa8a8aa5a60f1c61 | [
"MIT"
] | null | null | null | src/ml_final_project/utils/evaluators/default.py | yuvalot/ml_final_project | fefb67c92504ceeb7999e49daa8a8aa5a60f1c61 | [
"MIT"
] | null | null | null | src/ml_final_project/utils/evaluators/default.py | yuvalot/ml_final_project | fefb67c92504ceeb7999e49daa8a8aa5a60f1c61 | [
"MIT"
] | null | null | null | def default_evaluator(model, X_test, y_test):
"""A simple evaluator that takes in a model,
and a test set, and returns the loss.
Args:
model: The model to evaluate.
X_test: The features matrix of the test set.
y_test: The one-hot labels matrix of the test set.
... | 31.642857 | 61 | 0.598194 | 67 | 443 | 3.850746 | 0.447761 | 0.108527 | 0.116279 | 0.077519 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006734 | 0.329571 | 443 | 13 | 62 | 34.076923 | 0.861953 | 0.577878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8687b3a09f22f924b0323932d63831d4c09242d4 | 3,081 | py | Python | tests/requestreply.py | unclechu/py-radio-class | 8f96d8bcb398693d18a4ebd732415a879047edee | [
"MIT"
] | null | null | null | tests/requestreply.py | unclechu/py-radio-class | 8f96d8bcb398693d18a4ebd732415a879047edee | [
"MIT"
] | null | null | null | tests/requestreply.py | unclechu/py-radio-class | 8f96d8bcb398693d18a4ebd732415a879047edee | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from unittest import TestCase, TestLoader
from radio import (Radio, ListenerNotFound, ReplyHandlerAlreadyBound,
HandlerAlreadyBound)
def init_radio(f):
def wrap(self, *args):
self.radio = Radio()
return f(self, *args)
return wrap
class TestRadio... | 28.794393 | 75 | 0.627069 | 347 | 3,081 | 5.417867 | 0.239193 | 0.105319 | 0.062234 | 0.051064 | 0.414362 | 0.376064 | 0.253723 | 0.125532 | 0.046809 | 0.046809 | 0 | 0.010946 | 0.258682 | 3,081 | 106 | 76 | 29.066038 | 0.812172 | 0.134372 | 0 | 0.385965 | 0 | 0 | 0.027403 | 0 | 0 | 0 | 0 | 0 | 0.192982 | 1 | 0.263158 | false | 0.070175 | 0.035088 | 0.052632 | 0.350877 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
8688ffb74b8525b0642bda0ae7e8535617771ade | 243 | py | Python | tabnine-vim/third_party/ycmd/ycmd/tests/python/testdata/project/settings_extra_conf.py | MrMonk3y/vimrc | 950230fb3fd7991d1234c2ab516ec03245945677 | [
"MIT"
] | 10 | 2020-07-21T21:59:54.000Z | 2021-07-19T11:01:47.000Z | tabnine-vim/third_party/ycmd/ycmd/tests/python/testdata/project/settings_extra_conf.py | MrMonk3y/vimrc | 950230fb3fd7991d1234c2ab516ec03245945677 | [
"MIT"
] | null | null | null | tabnine-vim/third_party/ycmd/ycmd/tests/python/testdata/project/settings_extra_conf.py | MrMonk3y/vimrc | 950230fb3fd7991d1234c2ab516ec03245945677 | [
"MIT"
] | 1 | 2021-01-30T18:17:01.000Z | 2021-01-30T18:17:01.000Z | import os
import sys
DIR_OF_THIS_SCRIPT = os.path.abspath( os.path.dirname( __file__ ) )
def Settings( **kwargs ):
return {
'interpreter_path': sys.executable,
'sys_path': [ os.path.join( DIR_OF_THIS_SCRIPT, 'third_party' ) ]
}
| 20.25 | 69 | 0.691358 | 34 | 243 | 4.558824 | 0.588235 | 0.116129 | 0.116129 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17284 | 243 | 11 | 70 | 22.090909 | 0.771144 | 0 | 0 | 0 | 0 | 0 | 0.144033 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
8695dfaa20d2f47de4c76bf66aa5cf33728fae34 | 3,292 | py | Python | tests/python/correctness/simple_test_aux_index.py | dubey/weaver | 56a42fd2d0bbb14867ba792ca5461d16310a7387 | [
"BSD-3-Clause"
] | 163 | 2015-01-02T03:51:38.000Z | 2022-03-21T23:06:39.000Z | tests/python/correctness/simple_test_aux_index.py | dubey/weaver | 56a42fd2d0bbb14867ba792ca5461d16310a7387 | [
"BSD-3-Clause"
] | 1 | 2015-04-08T23:17:06.000Z | 2015-04-24T15:25:26.000Z | tests/python/correctness/simple_test_aux_index.py | dubey/weaver | 56a42fd2d0bbb14867ba792ca5461d16310a7387 | [
"BSD-3-Clause"
] | 20 | 2015-02-17T19:24:05.000Z | 2020-10-29T01:59:18.000Z | #! /usr/bin/env python
#
# ===============================================================
# Description: Sanity check for fresh install.
#
# Created: 2014-08-12 16:42:52
#
# Author: Ayush Dubey, dubey@cs.cornell.edu
#
# Copyright (C) 2013, Cornell University, see the LICENSE file
# ... | 28.626087 | 173 | 0.663123 | 508 | 3,292 | 4.17126 | 0.299213 | 0.029731 | 0.030203 | 0.029731 | 0.414346 | 0.315243 | 0.294479 | 0.254365 | 0.254365 | 0.204814 | 0 | 0.028259 | 0.140036 | 3,292 | 114 | 174 | 28.877193 | 0.72024 | 0.26853 | 0 | 0.455882 | 0 | 0 | 0.274255 | 0 | 0 | 0 | 0 | 0 | 0.191176 | 0 | null | null | 0.073529 | 0.058824 | null | null | 0.029412 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
869cca1a77b5e47ef9d5c83e59910c957d0e0eeb | 1,145 | py | Python | UI/ControlSlider/__init__.py | peerke88/SkinningTools | db761f569ba179231dc64183ebfca1684429ab96 | [
"MIT"
] | 7 | 2021-12-16T06:03:18.000Z | 2022-02-15T01:49:37.000Z | UI/weightEditor/__init__.py | peerke88/SkinningTools | db761f569ba179231dc64183ebfca1684429ab96 | [
"MIT"
] | null | null | null | UI/weightEditor/__init__.py | peerke88/SkinningTools | db761f569ba179231dc64183ebfca1684429ab96 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# SkinWeights command and component editor
# Copyright (C) 2018 Trevor van Hoof
# Website: http://www.trevorius.com
#
# pyqt attribute sliders
# Copyright (C) 2018 Daniele Niero
# Website: http://danieleniero.com/
#
# neighbour finding algorythm
# Copyright (C) 2018 Jan Pijpers
# Webs... | 36.935484 | 89 | 0.672489 | 154 | 1,145 | 5 | 0.603896 | 0.051948 | 0.072727 | 0.074026 | 0.106494 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0.019007 | 0.172926 | 1,145 | 30 | 90 | 38.166667 | 0.794087 | 0.920524 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
86a0198d73981242105ec1cd9a6582cfdecf35e4 | 317 | py | Python | tests/test-scripts/threadpools.py | whalesalad/filprofiler | 9c12cbe62ad1fed5d59d923013739bb3377bc24c | [
"Apache-2.0"
] | 521 | 2020-06-18T14:27:22.000Z | 2022-03-30T08:29:10.000Z | tests/test-scripts/threadpools.py | whalesalad/filprofiler | 9c12cbe62ad1fed5d59d923013739bb3377bc24c | [
"Apache-2.0"
] | 277 | 2020-06-18T14:11:36.000Z | 2022-03-28T09:51:11.000Z | tests/test-scripts/threadpools.py | sthagen/python-filprofiler | 5efe9fcca539d31f5423bbfa39a3f49176925350 | [
"Apache-2.0"
] | 17 | 2020-06-26T05:29:43.000Z | 2022-03-28T09:57:08.000Z | """Validate that number of threads in thread pools is set to 1."""
import numexpr
import blosc
import threadpoolctl
# APIs that return previous number of threads:
assert numexpr.set_num_threads(2) == 1
assert blosc.set_nthreads(2) == 1
for d in threadpoolctl.threadpool_info():
assert d["num_threads"] == 1, d
| 24.384615 | 66 | 0.747634 | 50 | 317 | 4.64 | 0.54 | 0.068966 | 0.12931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 0.157729 | 317 | 12 | 67 | 26.416667 | 0.846442 | 0.334385 | 0 | 0 | 0 | 0 | 0.053659 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
86c29a98e5b655839d8db00b70a6a8da9b1ef8d8 | 388 | py | Python | config.py | Rinku92/Mini_Project3 | eab11ce3743fddda2ccc158367a37d4522ba1e39 | [
"MIT"
] | null | null | null | config.py | Rinku92/Mini_Project3 | eab11ce3743fddda2ccc158367a37d4522ba1e39 | [
"MIT"
] | null | null | null | config.py | Rinku92/Mini_Project3 | eab11ce3743fddda2ccc158367a37d4522ba1e39 | [
"MIT"
] | null | null | null | import os
'''
user = os.environ['POSTGRES_USER']
password = os.environ['POSTGRES_PASSWORD']
host = os.environ['POSTGRES_HOST']
database = os.environ['POSTGRES_DB']
port = os.environ['POSTGRES_PORT']
'''
user = 'test'
password = 'password'
host = 'localhost'
database = 'example'
port = '5432'
DATABASE_CONNECTION_URI =... | 24.25 | 93 | 0.716495 | 48 | 388 | 5.645833 | 0.395833 | 0.166052 | 0.313653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.097938 | 388 | 16 | 93 | 24.25 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0.489796 | 0.326531 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.285714 | 0.142857 | 0 | 0.142857 | 0 | 0 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
86c60d6dd1a1d7d8e36a571eddb9e98fee94282b | 108 | py | Python | HW6/YuliiaKutsyk/3_ unfinished_loop_bug_fixing.py | kolyasalubov/Lv-677.PythonCore | c9f9107c734a61e398154a90b8a3e249276c2704 | [
"MIT"
] | null | null | null | HW6/YuliiaKutsyk/3_ unfinished_loop_bug_fixing.py | kolyasalubov/Lv-677.PythonCore | c9f9107c734a61e398154a90b8a3e249276c2704 | [
"MIT"
] | null | null | null | HW6/YuliiaKutsyk/3_ unfinished_loop_bug_fixing.py | kolyasalubov/Lv-677.PythonCore | c9f9107c734a61e398154a90b8a3e249276c2704 | [
"MIT"
] | 6 | 2022-02-22T22:30:49.000Z | 2022-03-28T12:51:19.000Z | def create_array(n):
res=[]
i=1
while i<=n:
res.append(i)
i += 1
return res
| 13.5 | 21 | 0.453704 | 17 | 108 | 2.823529 | 0.588235 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.407407 | 108 | 7 | 22 | 15.428571 | 0.71875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
86c9f566a6eb8b7449c2eceeae4f2a4b402b56f5 | 3,115 | py | Python | indico/core/signals/event/core.py | tobiashuste/indico | c1e6ec0c8c84745988e38c9b1768142a6feb9e0e | [
"MIT"
] | null | null | null | indico/core/signals/event/core.py | tobiashuste/indico | c1e6ec0c8c84745988e38c9b1768142a6feb9e0e | [
"MIT"
] | null | null | null | indico/core/signals/event/core.py | tobiashuste/indico | c1e6ec0c8c84745988e38c9b1768142a6feb9e0e | [
"MIT"
] | null | null | null | # This file is part of Indico.
# Copyright (C) 2002 - 2020 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from indico.core.signals.event import _signals
sidemenu = _signals.signal('sidemenu', """
Expected to re... | 35.804598 | 81 | 0.741252 | 473 | 3,115 | 4.816068 | 0.32981 | 0.079895 | 0.048288 | 0.055312 | 0.159789 | 0.1036 | 0.048288 | 0 | 0 | 0 | 0 | 0.003031 | 0.152809 | 3,115 | 86 | 82 | 36.22093 | 0.860174 | 0.064205 | 0 | 0.225806 | 0 | 0 | 0.765131 | 0.02304 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.064516 | 0.016129 | 0 | 0.016129 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
86d3d194e9e0137871f97d1ad57cf24e9f4a90e3 | 1,672 | py | Python | chroma_agent/action_plugins/manage_node.py | whamcloud/iml-agent | fecb2468fd6edc822f3ab37ced444d98d8725730 | [
"MIT"
] | 1 | 2020-04-22T16:43:09.000Z | 2020-04-22T16:43:09.000Z | chroma_agent/action_plugins/manage_node.py | AlexTalker/iml-agent | 5ebcfe96be670912d9a9b7fbb23431af0d54f768 | [
"MIT"
] | 53 | 2018-07-07T18:17:50.000Z | 2021-03-19T23:15:28.000Z | chroma_agent/action_plugins/manage_node.py | AlexTalker/iml-agent | 5ebcfe96be670912d9a9b7fbb23431af0d54f768 | [
"MIT"
] | 6 | 2018-06-18T08:51:38.000Z | 2019-10-24T12:16:42.000Z | # Copyright (c) 2018 DDN. All rights reserved.
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
import os
from chroma_agent.lib.shell import AgentShell
from chroma_agent.log import console_log
from chroma_agent.device_plugins.action_runner import CallbackAfterResp... | 27.866667 | 75 | 0.703947 | 233 | 1,672 | 4.892704 | 0.472103 | 0.052632 | 0.070175 | 0.031579 | 0.221053 | 0.168421 | 0.168421 | 0.119298 | 0.119298 | 0.119298 | 0 | 0.005957 | 0.19677 | 1,672 | 59 | 76 | 28.338983 | 0.842889 | 0.231459 | 0 | 0.2 | 0 | 0 | 0.146552 | 0 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.233333 | false | 0 | 0.166667 | 0 | 0.4 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
86e7d2f1d51490654abf153935c59b83db56caad | 597 | py | Python | flasky.py | ZxShane/slam_hospital | 302704b3a188cea07dddfb23595dd75f8d3cd636 | [
"Apache-2.0"
] | null | null | null | flasky.py | ZxShane/slam_hospital | 302704b3a188cea07dddfb23595dd75f8d3cd636 | [
"Apache-2.0"
] | 1 | 2020-11-17T16:47:19.000Z | 2021-01-26T10:16:33.000Z | flasky.py | ZxShane/slam_hospital | 302704b3a188cea07dddfb23595dd75f8d3cd636 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os
from flask_migrate import Migrate
from app import create_app, db
from app.models import User, Role, PoseToLocation
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
migrate = Migrate(app, db)
# migrate 的新建 我们需要扫描到这些文件我们才能创建
@app.shell_context_processor
def make_shell_conte... | 22.111111 | 75 | 0.730318 | 80 | 597 | 5.35 | 0.525 | 0.03271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003929 | 0.147404 | 597 | 26 | 76 | 22.961538 | 0.836935 | 0.128978 | 0 | 0 | 0 | 0 | 0.046967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.357143 | 0.071429 | 0.571429 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
86ff60feba2c3198cb1453cbf355794a3010628a | 195 | py | Python | CV Model/Model - JupyterNotebook/mrcnn/tfliteconverter.py | fcsiba/Smart-Cart | 7d45b9f2a2be2015936c2a61068b2fd8b6c95fe5 | [
"MIT"
] | null | null | null | CV Model/Model - JupyterNotebook/mrcnn/tfliteconverter.py | fcsiba/Smart-Cart | 7d45b9f2a2be2015936c2a61068b2fd8b6c95fe5 | [
"MIT"
] | null | null | null | CV Model/Model - JupyterNotebook/mrcnn/tfliteconverter.py | fcsiba/Smart-Cart | 7d45b9f2a2be2015936c2a61068b2fd8b6c95fe5 | [
"MIT"
] | null | null | null | import tensorflow as tf
# Convert the model.
converter = tf.lite.TFLiteConverter.from_saved_model('model.py')
tflite_model = converter.convert()
open("trash_ai.tflite", "wb").write(tflite_model) | 32.5 | 64 | 0.784615 | 28 | 195 | 5.285714 | 0.678571 | 0.189189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082051 | 195 | 6 | 65 | 32.5 | 0.826816 | 0.092308 | 0 | 0 | 0 | 0 | 0.142045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8102b4059df75e35791f0dfa9ba091b4276e3aff | 12,313 | py | Python | test/tracerEq/test_steady_adv-diff_mms.py | jhill1/thetis | 1be5d28d5d0d7248f2bbce4986b3e886116e103a | [
"MIT"
] | null | null | null | test/tracerEq/test_steady_adv-diff_mms.py | jhill1/thetis | 1be5d28d5d0d7248f2bbce4986b3e886116e103a | [
"MIT"
] | null | null | null | test/tracerEq/test_steady_adv-diff_mms.py | jhill1/thetis | 1be5d28d5d0d7248f2bbce4986b3e886116e103a | [
"MIT"
] | null | null | null | """
Testing 3D tracer advection-diffusion equation with method of manufactured solution (MMS).
"""
from thetis import *
import numpy
from scipy import stats
import pytest
class Setup1:
"""
Constant bathymetry and u velocty, zero diffusivity, non-trivial tracer
"""
def bath(self, x, y, lx, ly):
... | 37.769939 | 1,095 | 0.559165 | 2,119 | 12,313 | 3.14252 | 0.134969 | 0.031837 | 0.025229 | 0.018772 | 0.436702 | 0.398108 | 0.384292 | 0.384292 | 0.377985 | 0.377985 | 0 | 0.070536 | 0.252741 | 12,313 | 325 | 1,096 | 37.886154 | 0.65319 | 0.069114 | 0 | 0.402655 | 0 | 0 | 0.036333 | 0 | 0.004425 | 0 | 0 | 0 | 0.004425 | 1 | 0.150442 | false | 0.004425 | 0.022124 | 0.132743 | 0.331858 | 0.022124 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
810ae31f2bd87d1c18d17e372bfc5f6a1cddf8a3 | 268 | py | Python | main.py | KH241/Geohashing | d5d51278776c4dc0e3d6e6c39cbd31c1f4442fc1 | [
"CC0-1.0"
] | null | null | null | main.py | KH241/Geohashing | d5d51278776c4dc0e3d6e6c39cbd31c1f4442fc1 | [
"CC0-1.0"
] | null | null | null | main.py | KH241/Geohashing | d5d51278776c4dc0e3d6e6c39cbd31c1f4442fc1 | [
"CC0-1.0"
] | null | null | null | import webbrowser
import config
from Generator import Generator
def main():
generator = Generator()
latitude, longitude = generator.getCoordinates()
webbrowser.open(config.api_request.format(latitude, longitude))
if __name__ == '__main__':
main()
| 17.866667 | 67 | 0.735075 | 28 | 268 | 6.714286 | 0.571429 | 0.180851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16791 | 268 | 14 | 68 | 19.142857 | 0.843049 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
810c8d17b4b4f09855fad0d286b79401e57777c2 | 307 | py | Python | tests/task/manager_test.py | altenia/taskmator | 4090d414125614a57649c5c92a017c12a231a2ef | [
"MIT"
] | 2 | 2015-06-06T04:59:53.000Z | 2020-08-15T22:45:01.000Z | tests/task/manager_test.py | altenia/taskmator | 4090d414125614a57649c5c92a017c12a231a2ef | [
"MIT"
] | 1 | 2015-06-06T05:02:24.000Z | 2015-06-06T05:02:24.000Z | tests/task/manager_test.py | altenia/taskmator | 4090d414125614a57649c5c92a017c12a231a2ef | [
"MIT"
] | null | null | null | import unittest
from testbase import TaskmatorTestBase
from taskmator.task import core, util
from taskmator import context
class ManagerTest(TaskmatorTestBase):
def testManager(self):
print ("Pending")
def main():
unittest.main()
if __name__ == '__main__':
unittest.main()
| 17.055556 | 38 | 0.710098 | 33 | 307 | 6.363636 | 0.606061 | 0.12381 | 0.152381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205212 | 307 | 17 | 39 | 18.058824 | 0.860656 | 0 | 0 | 0.181818 | 0 | 0 | 0.04886 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.363636 | 0 | 0.636364 | 0.090909 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
811f8f9936b98c79ae19160b05e347adf2265632 | 1,131 | py | Python | dev/Code/Framework/AzFramework/CodeGen/AzEBusInline.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 1,738 | 2017-09-21T10:59:12.000Z | 2022-03-31T21:05:46.000Z | dev/Code/Framework/AzFramework/CodeGen/AzEBusInline.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 427 | 2017-09-29T22:54:36.000Z | 2022-02-15T19:26:50.000Z | dev/Code/Framework/AzFramework/CodeGen/AzEBusInline.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 671 | 2017-09-21T08:04:01.000Z | 2022-03-29T14:30:07.000Z | #
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
# its licensors.
#
# For complete copyright and license terms please see the LICENSE at the root of this
# distribution (the "License"). All use of this software is governed by the License,
# or, if provided, by the license below or th... | 39 | 95 | 0.763042 | 162 | 1,131 | 5.166667 | 0.580247 | 0.059737 | 0.028674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16534 | 1,131 | 28 | 96 | 40.392857 | 0.886653 | 0.480106 | 0 | 0 | 0 | 0 | 0.060764 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.083333 | 0.666667 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8120d71f9f5dd96debf5a9a973a1d872ce6a5597 | 561 | py | Python | main/rates/migrations/0002_auto_20170625_1510.py | Hawk94/coin_tracker | 082909e17308a8dd460225c1b035751d12a27106 | [
"MIT"
] | null | null | null | main/rates/migrations/0002_auto_20170625_1510.py | Hawk94/coin_tracker | 082909e17308a8dd460225c1b035751d12a27106 | [
"MIT"
] | null | null | null | main/rates/migrations/0002_auto_20170625_1510.py | Hawk94/coin_tracker | 082909e17308a8dd460225c1b035751d12a27106 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-25 15:10
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('rates', '0001_initial'),
]
operations = [
migrations.RenameField(
model... | 21.576923 | 48 | 0.568627 | 60 | 561 | 5.05 | 0.633333 | 0.138614 | 0.171617 | 0.19802 | 0.270627 | 0.270627 | 0.270627 | 0 | 0 | 0 | 0 | 0.054545 | 0.313725 | 561 | 25 | 49 | 22.44 | 0.732468 | 0.121212 | 0 | 0.333333 | 1 | 0 | 0.12449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8120ff16ad9dc50c24922ea0574196c48067cace | 2,357 | py | Python | setup.py | dojeda/quetzal-openapi-client | d9d4dc99bb425a3f89dcbb80d5096f554bc42fff | [
"BSD-3-Clause"
] | null | null | null | setup.py | dojeda/quetzal-openapi-client | d9d4dc99bb425a3f89dcbb80d5096f554bc42fff | [
"BSD-3-Clause"
] | 1 | 2019-09-17T09:11:01.000Z | 2019-09-17T09:11:01.000Z | setup.py | dojeda/quetzal-openapi-client | d9d4dc99bb425a3f89dcbb80d5096f554bc42fff | [
"BSD-3-Clause"
] | 1 | 2021-04-28T13:06:38.000Z | 2021-04-28T13:06:38.000Z | # coding: utf-8
"""
Quetzal API
Quetzal: an API to manage data files and their associated metadata.
OpenAPI spec version: 0.5.0
Contact: support@quetz.al
Generated by: https://openapi-generator.tech
"""
from setuptools import setup, find_packages # noqa: H301
NAME = "quetzal-openapi-client"
V... | 32.287671 | 85 | 0.666101 | 283 | 2,357 | 5.5053 | 0.477032 | 0.026958 | 0.077022 | 0.050064 | 0.148909 | 0.114249 | 0.114249 | 0.114249 | 0.061617 | 0.061617 | 0 | 0.014041 | 0.184132 | 2,357 | 72 | 86 | 32.736111 | 0.796152 | 0.142554 | 0 | 0 | 1 | 0 | 0.646526 | 0.033233 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020833 | 0 | 0.020833 | 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 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
812528562760727190e13a89643039e9938a674f | 632 | py | Python | tests/either_catch_test.py | funnel-io/python-on-rails | cccd2284c7dab32a37d573042531a54454164f6a | [
"MIT"
] | 1 | 2022-02-08T11:12:12.000Z | 2022-02-08T11:12:12.000Z | tests/either_catch_test.py | funnel-io/python-on-rails | cccd2284c7dab32a37d573042531a54454164f6a | [
"MIT"
] | 1 | 2022-02-08T11:26:24.000Z | 2022-02-08T11:26:24.000Z | tests/either_catch_test.py | funnel-io/python-on-rails | cccd2284c7dab32a37d573042531a54454164f6a | [
"MIT"
] | null | null | null | from python_on_rails.either import as_either, Failure, Success
@as_either(TypeError)
def add_one(x):
return x + 1
@as_either()
def times_five(x):
return x * 5
def test_success_executes_bindings():
result = Success(1).bind(add_one).bind(times_five)
assert isinstance(result, Success)
assert resu... | 25.28 | 93 | 0.726266 | 92 | 632 | 4.75 | 0.478261 | 0.05492 | 0.036613 | 0.064073 | 0.20595 | 0.20595 | 0.20595 | 0.20595 | 0.20595 | 0 | 0 | 0.009381 | 0.156646 | 632 | 24 | 94 | 26.333333 | 0.810507 | 0 | 0 | 0 | 0 | 0 | 0.087025 | 0 | 0 | 0 | 0 | 0 | 0.3125 | 1 | 0.25 | false | 0 | 0.0625 | 0.125 | 0.4375 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
8129c2d37ff5ea88cc0452e98c6e15446ea19cc4 | 329 | py | Python | python/molecular_diameter.py | wutobias/collection | fdac4ce5bb99c31115efdbed7db3316eea4b2826 | [
"MIT"
] | 2 | 2020-03-25T14:41:53.000Z | 2021-04-08T05:38:02.000Z | python/molecular_diameter.py | wutobias/collection | fdac4ce5bb99c31115efdbed7db3316eea4b2826 | [
"MIT"
] | null | null | null | python/molecular_diameter.py | wutobias/collection | fdac4ce5bb99c31115efdbed7db3316eea4b2826 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
import parmed as pmd
import numpy as np
from scipy.spatial import distance
if len(sys.argv) < 2:
print "Usage: molecular_diameter.py <mymolecule.mol2>"
exit(1)
mol = pmd.load_file(sys.argv[1])
crds = mol.coordinates
dist = distance.cdist(crds, crds, 'euclidean')
print np.max(dist... | 19.352941 | 55 | 0.735562 | 55 | 329 | 4.363636 | 0.690909 | 0.058333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017606 | 0.136778 | 329 | 17 | 56 | 19.352941 | 0.827465 | 0.06079 | 0 | 0 | 0 | 0 | 0.177994 | 0.067961 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.166667 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
81388e81430c58269d1e2c8e97af2f8dbcc4ac2d | 936 | py | Python | forms.py | Joshua-Barawa/pitches-IP | 41d9d0d2fbecab50e82a4ee64a036952b8d785e1 | [
"PostgreSQL",
"Unlicense"
] | null | null | null | forms.py | Joshua-Barawa/pitches-IP | 41d9d0d2fbecab50e82a4ee64a036952b8d785e1 | [
"PostgreSQL",
"Unlicense"
] | null | null | null | forms.py | Joshua-Barawa/pitches-IP | 41d9d0d2fbecab50e82a4ee64a036952b8d785e1 | [
"PostgreSQL",
"Unlicense"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField
from wtforms.validators import InputRequired, Email, ValidationError
from models import User
class RegistrationForm(FlaskForm):
email = StringField('Your Email Address', validators=[InputRequired(), Email()])
username ... | 40.695652 | 84 | 0.746795 | 93 | 936 | 7.462366 | 0.44086 | 0.165706 | 0.057637 | 0.07781 | 0.293948 | 0.293948 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147436 | 936 | 22 | 85 | 42.545455 | 0.869674 | 0 | 0 | 0 | 0 | 0 | 0.126068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.176471 | 0.235294 | 0 | 0.823529 | 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 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
813f340b009c015cf7a900f2f532f4b131c3414d | 1,766 | py | Python | main.py | alamin3637k/Searcher | bb948b373d1bd1261930a47c37fa9210a98e9ef3 | [
"MIT"
] | 1 | 2021-12-13T06:30:54.000Z | 2021-12-13T06:30:54.000Z | main.py | alamin3637k/Searcher | bb948b373d1bd1261930a47c37fa9210a98e9ef3 | [
"MIT"
] | null | null | null | main.py | alamin3637k/Searcher | bb948b373d1bd1261930a47c37fa9210a98e9ef3 | [
"MIT"
] | null | null | null | import webbrowser
import wikipedia
import requests
def yt_search(search: str):
webbrowser.open_new_tab(f"https://www.youtube.com/results?search_query={search}")
def google_search(search: str):
webbrowser.open_new_tab(f"https://www.google.com/search?q={search}")
def bing_search(search: str):
webbrowser.op... | 30.448276 | 85 | 0.701586 | 261 | 1,766 | 4.59387 | 0.264368 | 0.130108 | 0.150125 | 0.229358 | 0.486239 | 0.454545 | 0.454545 | 0.391159 | 0.391159 | 0.220183 | 0 | 0.003322 | 0.147792 | 1,766 | 57 | 86 | 30.982456 | 0.793355 | 0.024915 | 0 | 0.146341 | 0 | 0 | 0.289627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.317073 | false | 0 | 0.073171 | 0 | 0.463415 | 0.097561 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d49b6df009b775a63c890cb5c9656357e0580e52 | 3,532 | py | Python | Core/pre.py | Cyber-Dioxide/CyberPhish | bc2e39d8612ef657d481cdd40d676983f7bf190c | [
"Apache-2.0"
] | 9 | 2021-12-28T08:17:41.000Z | 2022-03-20T17:49:21.000Z | Core/pre.py | Cyber-Dioxide/CyberPhish | bc2e39d8612ef657d481cdd40d676983f7bf190c | [
"Apache-2.0"
] | null | null | null | Core/pre.py | Cyber-Dioxide/CyberPhish | bc2e39d8612ef657d481cdd40d676983f7bf190c | [
"Apache-2.0"
] | 1 | 2021-12-27T08:13:50.000Z | 2021-12-27T08:13:50.000Z | import os
import random
try:
from colorama import Fore, Style
except ModuleNotFoundError:
os.system("pip install colorama")
from urllib.request import urlopen
from Core.helper.color import green, white, blue, red, start, alert
Version = "2.2"
yellow = ("\033[1;33;40m")
def connected(host='http://duckduckgo.com'):... | 49.746479 | 144 | 0.473386 | 378 | 3,532 | 5.320106 | 0.375661 | 0.218797 | 0.089508 | 0.033814 | 0.115863 | 0.082546 | 0.082546 | 0.082546 | 0 | 0 | 0 | 0.019509 | 0.216308 | 3,532 | 70 | 145 | 50.457143 | 0.579841 | 0 | 0 | 0.072727 | 0 | 0 | 0.304077 | 0.045583 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072727 | false | 0 | 0.090909 | 0 | 0.2 | 0.527273 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
d49d0bb7116e3f907afff13646fa7b6a2ac9aa13 | 66,873 | py | Python | viphoneme/T2IPA.py | NoahDrisort/ViSV2TTS | bea6fa1f85527c824c85986d8b7bfa3e3efd120a | [
"MIT"
] | 1 | 2021-09-23T15:46:14.000Z | 2021-09-23T15:46:14.000Z | viphoneme/T2IPA.py | v-nhandt21/ViSV2TTS | bea6fa1f85527c824c85986d8b7bfa3e3efd120a | [
"MIT"
] | null | null | null | viphoneme/T2IPA.py | v-nhandt21/ViSV2TTS | bea6fa1f85527c824c85986d8b7bfa3e3efd120a | [
"MIT"
] | null | null | null | #Grapheme
Rime_tone=[ "a","ă","â","e","ê","i","o","ô","ơ","u","ư","y","iê","oa","oă","oe","oo","uâ","uê","uô","uơ","uy","ươ","uyê","yê", #blank
"á","ắ","ấ","é","ế","í","ó","ố","ớ","ú","ứ","ý","iế","óa","oắ","óe","oó","uấ","uế","uố","ướ","úy","ướ","uyế","yế", #grave
... | 56.243061 | 821 | 0.384759 | 13,324 | 66,873 | 1.927424 | 0.088862 | 0.012305 | 0.013434 | 0.007476 | 0.675207 | 0.659748 | 0.648923 | 0.639773 | 0.630894 | 0.619057 | 0 | 0.025229 | 0.320144 | 66,873 | 1,189 | 822 | 56.243061 | 0.536314 | 0.08552 | 0 | 0.582192 | 0 | 0 | 0.177649 | 0.006335 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011416 | false | 0.001142 | 0.009132 | 0 | 0.034247 | 0.026256 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
d49d9d1e84095417ae691e1ba67e4e09f88e34fb | 505 | py | Python | taskengine/sessions.py | retmas-dv/deftcore | 23052549e8948bbedfb958a96683b84b46820b09 | [
"Apache-2.0"
] | null | null | null | taskengine/sessions.py | retmas-dv/deftcore | 23052549e8948bbedfb958a96683b84b46820b09 | [
"Apache-2.0"
] | 9 | 2019-05-24T08:10:59.000Z | 2020-07-23T13:20:35.000Z | taskengine/sessions.py | retmas-dv/deftcore | 23052549e8948bbedfb958a96683b84b46820b09 | [
"Apache-2.0"
] | null | null | null | __author__ = 'Dmitry Golubkov'
from django.contrib.sessions.base_session import AbstractBaseSession
from django.contrib.sessions.backends.db import SessionStore as DBStore
class CustomSession(AbstractBaseSession):
@classmethod
def get_session_store_class(cls):
return SessionStore
class Meta:
... | 24.047619 | 71 | 0.742574 | 56 | 505 | 6.428571 | 0.553571 | 0.055556 | 0.094444 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186139 | 505 | 20 | 72 | 25.25 | 0.875912 | 0 | 0 | 0.142857 | 0 | 0 | 0.104951 | 0.057426 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.642857 | 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 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
d4a110091d70cdb8869da346b91adb821033a70e | 102,577 | py | Python | pysnmp-with-texts/CISCO-TRUSTSEC-POLICY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CISCO-TRUSTSEC-POLICY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CISCO-TRUSTSEC-POLICY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-TRUSTSEC-POLICY-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-TRUSTSEC-POLICY-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:14:36 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.... | 166.79187 | 10,104 | 0.796192 | 11,753 | 102,577 | 6.948779 | 0.062622 | 0.04937 | 0.086398 | 0.009698 | 0.540046 | 0.413217 | 0.369345 | 0.346533 | 0.313803 | 0.298742 | 0 | 0.041879 | 0.093062 | 102,577 | 614 | 10,105 | 167.063518 | 0.83599 | 0.003354 | 0 | 0.046358 | 0 | 0.124172 | 0.382855 | 0.078455 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021523 | 0 | 0.021523 | 0 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d4b30ff4f1cdba84270695cf02e3415880246ea6 | 5,458 | py | Python | pydlm/tests/base/testKalmanFilter.py | onnheimm/pydlm | 4693af6e621e3b75feda7ca15327b69a4ca622a7 | [
"BSD-3-Clause"
] | 423 | 2016-09-15T06:45:26.000Z | 2022-03-29T08:41:11.000Z | pydlm/tests/base/testKalmanFilter.py | onnheimm/pydlm | 4693af6e621e3b75feda7ca15327b69a4ca622a7 | [
"BSD-3-Clause"
] | 50 | 2016-09-14T19:45:49.000Z | 2021-07-26T17:04:10.000Z | pydlm/tests/base/testKalmanFilter.py | onnheimm/pydlm | 4693af6e621e3b75feda7ca15327b69a4ca622a7 | [
"BSD-3-Clause"
] | 99 | 2016-09-19T08:08:41.000Z | 2022-03-07T13:47:36.000Z | import numpy as np
import unittest
from pydlm.modeler.trends import trend
from pydlm.modeler.seasonality import seasonality
from pydlm.modeler.builder import builder
from pydlm.base.kalmanFilter import kalmanFilter
class testKalmanFilter(unittest.TestCase):
def setUp(self):
self.kf1 = kalmanFilter(disc... | 35.212903 | 80 | 0.622756 | 711 | 5,458 | 4.763713 | 0.16737 | 0.125185 | 0.212578 | 0.256864 | 0.63478 | 0.583407 | 0.52731 | 0.475642 | 0.43667 | 0.362267 | 0 | 0.06409 | 0.251008 | 5,458 | 154 | 81 | 35.441558 | 0.764432 | 0.09399 | 0 | 0.439252 | 0 | 0 | 0.003647 | 0 | 0 | 0 | 0 | 0 | 0.280374 | 1 | 0.074766 | false | 0 | 0.056075 | 0 | 0.140187 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d4b440c6e516a3bf9860aad41ef519824e8ea929 | 158 | py | Python | 1/puzzle1.py | tjol/advent-of-code-2021 | 16def395df091d5a8ae9ceb66ba3370554bdf40b | [
"0BSD"
] | 1 | 2021-12-20T19:56:56.000Z | 2021-12-20T19:56:56.000Z | 1/puzzle1.py | tjol/advent-of-code-2021 | 16def395df091d5a8ae9ceb66ba3370554bdf40b | [
"0BSD"
] | null | null | null | 1/puzzle1.py | tjol/advent-of-code-2021 | 16def395df091d5a8ae9ceb66ba3370554bdf40b | [
"0BSD"
] | null | null | null | #!/usr/bin/env python3
import sys
depths = list(map(int, sys.stdin))
increased = [a > b for (a, b) in zip(depths[1:], depths[:-1])]
print(sum(increased))
| 15.8 | 62 | 0.639241 | 27 | 158 | 3.740741 | 0.740741 | 0.039604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022388 | 0.151899 | 158 | 9 | 63 | 17.555556 | 0.731343 | 0.132911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d4b78df5fd076f594376f0529e58415b66407a89 | 579 | py | Python | quick_start/my_text_classifier/predictors/sentence_classifier_predictor.py | ramild/allennlp-guide | 4cff916e7bc4629184bc70594e213ef56e14ec70 | [
"MIT"
] | 71 | 2020-06-06T03:12:44.000Z | 2022-03-12T20:21:48.000Z | quick_start/my_text_classifier/predictors/sentence_classifier_predictor.py | ramild/allennlp-guide | 4cff916e7bc4629184bc70594e213ef56e14ec70 | [
"MIT"
] | 50 | 2020-06-18T14:19:15.000Z | 2022-03-28T07:04:16.000Z | quick_start/my_text_classifier/predictors/sentence_classifier_predictor.py | ramild/allennlp-guide | 4cff916e7bc4629184bc70594e213ef56e14ec70 | [
"MIT"
] | 37 | 2020-06-05T19:08:44.000Z | 2022-03-17T08:23:41.000Z | from allennlp.common import JsonDict
from allennlp.data import DatasetReader, Instance
from allennlp.models import Model
from allennlp.predictors import Predictor
from overrides import overrides
@Predictor.register("sentence_classifier")
class SentenceClassifierPredictor(Predictor):
def predict(self, sentence: st... | 34.058824 | 65 | 0.775475 | 66 | 579 | 6.636364 | 0.439394 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145078 | 579 | 16 | 66 | 36.1875 | 0.884848 | 0 | 0 | 0 | 0 | 0 | 0.060449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.384615 | 0.076923 | 0.769231 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d4bd39d2862e151f45c3d33b0cd79ef62c908dbf | 1,760 | py | Python | Exercises/W08D04_Exercise_01_Django_Cat_Collector/main_app/models.py | Roger-Takeshita/Software_Engineer | ec647bb969aa02453dae1884b5787d2045f7b4e2 | [
"MIT"
] | 2 | 2019-12-27T06:15:26.000Z | 2020-05-21T17:37:12.000Z | Exercises/W08D04_Exercise_01_Django_Cat_Collector/main_app/models.py | Roger-Takeshita/Bootcamp-Software-Engineer | ec647bb969aa02453dae1884b5787d2045f7b4e2 | [
"MIT"
] | null | null | null | Exercises/W08D04_Exercise_01_Django_Cat_Collector/main_app/models.py | Roger-Takeshita/Bootcamp-Software-Engineer | ec647bb969aa02453dae1884b5787d2045f7b4e2 | [
"MIT"
] | null | null | null | from django.db import models
from django.urls import reverse
from datetime import date
from django.contrib.auth.models import User #! 1 - Import user models
MEALS = (
('B', 'Breakfast'),
('L', 'Lunch'),
('D', 'Dinner')
)
class Toy(models.Model):
name = models.CharField(max_length=5... | 28.852459 | 160 | 0.691477 | 249 | 1,760 | 4.730924 | 0.389558 | 0.05348 | 0.091681 | 0.122241 | 0.280136 | 0.254669 | 0.254669 | 0.188455 | 0.188455 | 0.188455 | 0 | 0.015235 | 0.179545 | 1,760 | 61 | 161 | 28.852459 | 0.800554 | 0.114773 | 0 | 0.217391 | 0 | 0 | 0.095177 | 0.016077 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152174 | false | 0 | 0.086957 | 0.152174 | 0.782609 | 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 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
d4bdefb01d0a762af075c93831d87a0e10dd81de | 79 | py | Python | kedro-airflow/kedro_airflow/__init__.py | kedro-org/kedro-plugins | ad0755f503b275b73aeb8feb592a0ec0ea1bca8e | [
"Apache-2.0"
] | 6 | 2022-01-21T07:37:05.000Z | 2022-03-31T09:41:29.000Z | kedro-airflow/kedro_airflow/__init__.py | kedro-org/kedro-plugins | ad0755f503b275b73aeb8feb592a0ec0ea1bca8e | [
"Apache-2.0"
] | 7 | 2022-01-20T10:59:29.000Z | 2022-03-30T17:59:12.000Z | kedro-airflow/kedro_airflow/__init__.py | kedro-org/kedro-plugins | ad0755f503b275b73aeb8feb592a0ec0ea1bca8e | [
"Apache-2.0"
] | 1 | 2022-03-29T09:12:00.000Z | 2022-03-29T09:12:00.000Z | """ Kedro plugin for running a project with Airflow """
__version__ = "0.5.0"
| 19.75 | 55 | 0.683544 | 12 | 79 | 4.166667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046154 | 0.177215 | 79 | 3 | 56 | 26.333333 | 0.723077 | 0.594937 | 0 | 0 | 0 | 0 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d4be731c2fefcf29455273684888ea746824bba4 | 713 | py | Python | soccer/gameplay/plays/testing/debug_window_evaluator.py | AniruddhaG123/robocup-software | 0eb3b3957428894f2f39341594800be803665f44 | [
"Apache-2.0"
] | 1 | 2019-09-24T22:59:25.000Z | 2019-09-24T22:59:25.000Z | soccer/gameplay/plays/testing/debug_window_evaluator.py | ananth-kumar01/robocup-software | 4043a7f9590d02f617d8e9a762697e4aaa27f1a6 | [
"Apache-2.0"
] | null | null | null | soccer/gameplay/plays/testing/debug_window_evaluator.py | ananth-kumar01/robocup-software | 4043a7f9590d02f617d8e9a762697e4aaa27f1a6 | [
"Apache-2.0"
] | null | null | null | import play
import behavior
import main
import robocup
import constants
import time
import math
## This isn't a real play, but it's pretty useful
# Turn it on and we'll draw the window evaluator stuff on-screen from the ball to our goal
class DebugWindowEvaluator(play.Play):
def __init__(self):
super().__... | 29.708333 | 90 | 0.678822 | 95 | 713 | 4.915789 | 0.621053 | 0.044968 | 0.038544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241234 | 713 | 23 | 91 | 31 | 0.863216 | 0.189341 | 0 | 0 | 0 | 0 | 0.019164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.411765 | 0 | 0.588235 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d4bf375fc83f7c0bd614c1589d9466c6217e84ec | 331 | py | Python | rainbowconnection/sources/phoenix/utils.py | zkbt/rainbow-connection | 53828fd0b63a552a22a6aa38393cefda27c61b9a | [
"MIT"
] | 6 | 2019-09-04T20:22:02.000Z | 2020-12-30T05:00:10.000Z | rainbowconnection/sources/phoenix/utils.py | zkbt/rainbow-connection | 53828fd0b63a552a22a6aa38393cefda27c61b9a | [
"MIT"
] | 8 | 2019-05-23T18:06:51.000Z | 2020-02-13T22:15:07.000Z | rainbowconnection/sources/phoenix/utils.py | zkbt/rainbow-connection | 53828fd0b63a552a22a6aa38393cefda27c61b9a | [
"MIT"
] | null | null | null | from ...imports import *
def stringify_metallicity(Z):
"""
Convert a metallicity into a PHOENIX-style string.
Parameters
----------
Z : float
[Fe/H]-style metallicity (= 0.0 for solar)
"""
if Z <= 0:
return "-{:03.1f}".format(np.abs(Z))
else:
return "+{:03.1f}"... | 19.470588 | 54 | 0.531722 | 42 | 331 | 4.166667 | 0.666667 | 0.091429 | 0.114286 | 0.182857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037975 | 0.283988 | 331 | 16 | 55 | 20.6875 | 0.700422 | 0.392749 | 0 | 0 | 0 | 0 | 0.106509 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d4bffb102dcb1752fbd5cc9d9f62656784042e5e | 1,506 | py | Python | shipane_sdk/transaction.py | awfssv/ShiPanE-Python-SDK | 678790e5eb220cf685e5f8d03ba3310f3fbb8d22 | [
"MIT"
] | 1 | 2016-12-19T16:05:23.000Z | 2016-12-19T16:05:23.000Z | shipane_sdk/transaction.py | awfssv/ShiPanE-Python-SDK | 678790e5eb220cf685e5f8d03ba3310f3fbb8d22 | [
"MIT"
] | null | null | null | shipane_sdk/transaction.py | awfssv/ShiPanE-Python-SDK | 678790e5eb220cf685e5f8d03ba3310f3fbb8d22 | [
"MIT"
] | 1 | 2021-05-21T02:12:04.000Z | 2021-05-21T02:12:04.000Z | # -*- coding: utf-8 -*-
class Transaction(object):
def __init__(self, **kwargs):
self._completed_at = kwargs.get('completed_at')
self._type = kwargs.get('type')
self._symbol = kwargs.get('symbol')
self._price = kwargs.get('price')
self._amount = kwargs.get('amount')
de... | 22.477612 | 55 | 0.581009 | 180 | 1,506 | 4.672222 | 0.177778 | 0.117717 | 0.083234 | 0.080856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000967 | 0.313413 | 1,506 | 66 | 56 | 22.818182 | 0.812379 | 0.013944 | 0 | 0.196078 | 0 | 0 | 0.026972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.254902 | false | 0 | 0 | 0.117647 | 0.509804 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
d4ec0fc927b4e34cca6fab5d967b009070fe2201 | 294 | py | Python | dml/errors.py | RGBCube/dml | f551821545a062e15aea1f2c2444e6016748ea34 | [
"MIT"
] | 2 | 2022-03-19T19:15:28.000Z | 2022-03-19T19:15:32.000Z | dml/errors.py | RGBCube/dml | f551821545a062e15aea1f2c2444e6016748ea34 | [
"MIT"
] | null | null | null | dml/errors.py | RGBCube/dml | f551821545a062e15aea1f2c2444e6016748ea34 | [
"MIT"
] | null | null | null | __all__ = ("DottedMarkupLanguageException", "DecodeError")
class DottedMarkupLanguageException(Exception):
"""Base class for all exceptions in this module."""
pass
class DecodeError(DottedMarkupLanguageException):
"""Raised when there is an error decoding a string."""
pass
| 24.5 | 58 | 0.744898 | 28 | 294 | 7.678571 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159864 | 294 | 11 | 59 | 26.727273 | 0.870445 | 0.319728 | 0 | 0.4 | 0 | 0 | 0.21164 | 0.153439 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.4 | 0 | 0 | 0.4 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d4ef39805175a5dc26b4a7a21bf430a89fe73653 | 321 | py | Python | part02/part02-e11_rows_and_columns/src/rows_and_columns.py | davide-butera/data-analysis-with-python | 78ba3d3d060ddb305bfd84b9a122409c15c47006 | [
"MIT"
] | null | null | null | part02/part02-e11_rows_and_columns/src/rows_and_columns.py | davide-butera/data-analysis-with-python | 78ba3d3d060ddb305bfd84b9a122409c15c47006 | [
"MIT"
] | null | null | null | part02/part02-e11_rows_and_columns/src/rows_and_columns.py | davide-butera/data-analysis-with-python | 78ba3d3d060ddb305bfd84b9a122409c15c47006 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import numpy as np
def get_rows(a):
return list(a)
def get_columns(a):
return list(a.T)
def main():
np.random.seed(0)
a=np.random.randint(0,10, (4,4))
print("a:", a)
print("Rows:", get_rows(a))
print("Columns:", get_columns(a))
if __name__ == "__main__":
main()... | 16.894737 | 37 | 0.601246 | 54 | 321 | 3.351852 | 0.481481 | 0.066298 | 0.088398 | 0.132597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027451 | 0.205607 | 321 | 18 | 38 | 17.833333 | 0.682353 | 0.065421 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.153846 | 0.461538 | 0.230769 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
d4f583072901ee0ab94c10d93e238c7f33bf30a3 | 4,745 | py | Python | lib/tool_shed/scripts/bootstrap_tool_shed/bootstrap_util.py | blankenberg/galaxy-data-resource | ca32a1aafd64948f489a4e5cf88096f32391b1d9 | [
"CC-BY-3.0"
] | null | null | null | lib/tool_shed/scripts/bootstrap_tool_shed/bootstrap_util.py | blankenberg/galaxy-data-resource | ca32a1aafd64948f489a4e5cf88096f32391b1d9 | [
"CC-BY-3.0"
] | 1 | 2015-02-21T18:48:19.000Z | 2015-02-27T15:50:32.000Z | lib/tool_shed/scripts/bootstrap_tool_shed/bootstrap_util.py | blankenberg/galaxy-data-resource | ca32a1aafd64948f489a4e5cf88096f32391b1d9 | [
"CC-BY-3.0"
] | 3 | 2015-02-22T13:34:16.000Z | 2020-10-01T01:28:04.000Z | #!/usr/bin/python
import argparse
import ConfigParser
import os
import sys
new_path = [ os.path.join( os.getcwd(), "lib" ) ]
new_path.extend( sys.path[1:] )
sys.path = new_path
from galaxy import eggs
eggs.require( "SQLAlchemy >= 0.4" )
import galaxy.webapps.tool_shed.model.mapping as tool_shed_model
from sqlalchemy.... | 36.221374 | 140 | 0.641307 | 605 | 4,745 | 4.814876 | 0.276033 | 0.086509 | 0.025747 | 0.023344 | 0.215929 | 0.132853 | 0.076553 | 0 | 0 | 0 | 0 | 0.007907 | 0.253741 | 4,745 | 130 | 141 | 36.5 | 0.814742 | 0.003372 | 0 | 0.261261 | 0 | 0.009009 | 0.241751 | 0.02242 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.072072 | 0.081081 | null | null | 0.063063 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d4f6be38b9352af5e1c2c173a5437dc5e5702e4d | 4,359 | py | Python | tools/jslib_builder.py | Jumpscale/jumpscale_portal8 | 3a4d56a1ba985b68fe9b525aed2486a54808332f | [
"Apache-2.0"
] | null | null | null | tools/jslib_builder.py | Jumpscale/jumpscale_portal8 | 3a4d56a1ba985b68fe9b525aed2486a54808332f | [
"Apache-2.0"
] | 74 | 2015-12-28T16:17:20.000Z | 2021-09-08T12:28:59.000Z | tools/jslib_builder.py | Jumpscale/jumpscale_portal8 | 3a4d56a1ba985b68fe9b525aed2486a54808332f | [
"Apache-2.0"
] | null | null | null |
from JumpScale import j
class builder():
# @property
# def buildDir(self):
# return j.sal.fs.joinPaths(j.dirs.tmpDir, "jsbuilder")
@property
def cuisine(self):
return j.tools.cuisine.local
# ALL NOT NEEDED ANY LONGER USE bower
# def angular(self):
# version = "1.5... | 36.630252 | 175 | 0.566873 | 537 | 4,359 | 4.582868 | 0.268156 | 0.035758 | 0.046323 | 0.048761 | 0.543681 | 0.453474 | 0.432345 | 0.366518 | 0.338074 | 0.303129 | 0 | 0.006225 | 0.262904 | 4,359 | 118 | 176 | 36.940678 | 0.759726 | 0.73549 | 0 | 0 | 0 | 0 | 0.125235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0.111111 | 0.444444 | 0.055556 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
d4ff76335b31237c5497fc74cfffe7b1e1ab18a8 | 317 | py | Python | shorty/models.py | gkiserpong/shorty | 5795e26f3221d581223e37353bee360454532211 | [
"MIT"
] | null | null | null | shorty/models.py | gkiserpong/shorty | 5795e26f3221d581223e37353bee360454532211 | [
"MIT"
] | null | null | null | shorty/models.py | gkiserpong/shorty | 5795e26f3221d581223e37353bee360454532211 | [
"MIT"
] | null | null | null | from django.db import models
from shorty.manager import UrlManager
class Url(models.Model):
long_url = models.URLField()
short_id = models.SlugField()
counter = models.IntegerField(default=0)
def __str__(self):
return "%s -- %s" % (self.long_url, self.short_id)
objects = UrlManager() | 22.642857 | 58 | 0.684543 | 41 | 317 | 5.097561 | 0.634146 | 0.086124 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003937 | 0.198738 | 317 | 14 | 59 | 22.642857 | 0.818898 | 0 | 0 | 0 | 0 | 0 | 0.025157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 1 | 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 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
be035d1ced1e70706ec7a59e81ecf6539a9f044b | 3,960 | py | Python | applications/ChimeraApplication/tests/chimera_analysis_base_test.py | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 778 | 2017-01-27T16:29:17.000Z | 2022-03-30T03:01:51.000Z | applications/ChimeraApplication/tests/chimera_analysis_base_test.py | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 6,634 | 2017-01-15T22:56:13.000Z | 2022-03-31T15:03:36.000Z | applications/ChimeraApplication/tests/chimera_analysis_base_test.py | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 224 | 2017-02-07T14:12:49.000Z | 2022-03-06T23:09:34.000Z | import KratosMultiphysics
import KratosMultiphysics.KratosUnittest as UnitTest
import KratosMultiphysics.ChimeraApplication
from KratosMultiphysics.ChimeraApplication.fluid_chimera_analysis import FluidChimeraAnalysis
class ChimeraAnalysisBaseTest(UnitTest.TestCase):
def setUp(self):
# Set to true to get ... | 58.235294 | 114 | 0.474495 | 276 | 3,960 | 6.438406 | 0.347826 | 0.030388 | 0.060777 | 0.023635 | 0.625774 | 0.625774 | 0.625774 | 0.625774 | 0.625774 | 0.625774 | 0 | 0.001812 | 0.442677 | 3,960 | 67 | 115 | 59.104478 | 0.803353 | 0.027273 | 0 | 0.622951 | 0 | 0 | 0.805404 | 0.209145 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032787 | false | 0 | 0.065574 | 0 | 0.114754 | 0.032787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
be04a0613039c84ca76bcc0ca57e9da1601cdaf5 | 403 | py | Python | examples/laser.py | MPI-IS/reactive_pepper | 079f9b0627bfd6c9e3f2a4466c95ad662002a600 | [
"BSD-3-Clause"
] | null | null | null | examples/laser.py | MPI-IS/reactive_pepper | 079f9b0627bfd6c9e3f2a4466c95ad662002a600 | [
"BSD-3-Clause"
] | null | null | null | examples/laser.py | MPI-IS/reactive_pepper | 079f9b0627bfd6c9e3f2a4466c95ad662002a600 | [
"BSD-3-Clause"
] | null | null | null | import math,time,random
import pepper_interface
IP = "192.168.0.147"
PORT = 9559
simulation = False
with pepper_interface.get(IP,PORT,simulation) as pepper:
time.sleep(1.0)
values,time_stamp = pepper.laser.get()
print
print "Front"
print values["Front"]
print
print "Left"
print va... | 14.392857 | 56 | 0.647643 | 54 | 403 | 4.777778 | 0.5 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052459 | 0.243176 | 403 | 27 | 57 | 14.925926 | 0.793443 | 0 | 0 | 0.222222 | 0 | 0 | 0.101737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.555556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
be09ff199c76d0416c7ca2377918a44850900a71 | 909 | py | Python | setup.py | pnxenopoulos/soccer-data-gen | bdc31be973eb12cdd9f58b04ab61ea9d5d1aa7a5 | [
"MIT"
] | null | null | null | setup.py | pnxenopoulos/soccer-data-gen | bdc31be973eb12cdd9f58b04ab61ea9d5d1aa7a5 | [
"MIT"
] | null | null | null | setup.py | pnxenopoulos/soccer-data-gen | bdc31be973eb12cdd9f58b04ab61ea9d5d1aa7a5 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="soccergen",
version="0.1",
packages=find_packages(),
# Project uses reStructuredText, so ensure that the docutils get
# installed or upgraded on the target machine
install_requires=["gfootball>=2.8",],
# metadata to display on PyPI
... | 39.521739 | 87 | 0.693069 | 109 | 909 | 5.733945 | 0.633028 | 0.08 | 0.0896 | 0.1664 | 0.2624 | 0.2624 | 0.2624 | 0.1376 | 0 | 0 | 0 | 0.005305 | 0.170517 | 909 | 22 | 88 | 41.318182 | 0.823607 | 0.176018 | 0 | 0 | 0 | 0 | 0.544355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
be0fe0b9b27dc32e6433b7115d2cc69a3736598b | 362 | py | Python | custom_components/snowtire/__init__.py | borys-kupar/smart-home | f9c5ac949106e09278b97f49d5e08f0d495b24ef | [
"MIT"
] | 128 | 2021-03-04T21:54:04.000Z | 2022-03-17T22:53:20.000Z | custom_components/snowtire/__init__.py | borys-kupar/smart-home | f9c5ac949106e09278b97f49d5e08f0d495b24ef | [
"MIT"
] | 4 | 2021-03-07T21:18:12.000Z | 2021-09-24T13:09:39.000Z | custom_components/snowtire/__init__.py | borys-kupar/smart-home | f9c5ac949106e09278b97f49d5e08f0d495b24ef | [
"MIT"
] | 15 | 2021-03-05T07:29:31.000Z | 2022-03-31T10:07:06.000Z | #
# Copyright (c) 2020, Andrey "Limych" Khrolenok <andrey@khrolenok.ru>
# Creative Commons BY-NC-SA 4.0 International Public License
# (see LICENSE.md or https://creativecommons.org/licenses/by-nc-sa/4.0/)
#
"""
The Snowtire binary sensor.
For more details about this platform, please refer to the documentation at
h... | 30.166667 | 74 | 0.743094 | 54 | 362 | 4.981481 | 0.777778 | 0.02974 | 0.04461 | 0.052045 | 0.05948 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025316 | 0.127072 | 362 | 11 | 75 | 32.909091 | 0.825949 | 0.950276 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
be0fff91b15ea92d0c10da9f061370eeda2b8af8 | 23,079 | py | Python | tests/test_bayes_classifier.py | manishgit138/pomegranate | 3457dcefdd623483b8efec7e9d87fd1bf4c115b0 | [
"MIT"
] | 3,019 | 2015-01-04T23:19:03.000Z | 2022-03-31T12:55:46.000Z | tests/test_bayes_classifier.py | manishgit138/pomegranate | 3457dcefdd623483b8efec7e9d87fd1bf4c115b0 | [
"MIT"
] | 818 | 2015-01-05T10:15:57.000Z | 2022-03-07T19:30:28.000Z | tests/test_bayes_classifier.py | manishgit138/pomegranate | 3457dcefdd623483b8efec7e9d87fd1bf4c115b0 | [
"MIT"
] | 639 | 2015-01-05T04:16:42.000Z | 2022-03-29T11:08:00.000Z | from __future__ import (division)
from pomegranate import *
from pomegranate.io import DataGenerator
from pomegranate.io import DataFrameGenerator
from nose.tools import with_setup
from nose.tools import assert_almost_equal
from nose.tools import assert_equal
from nose.tools import assert_not_equal
from nose.tools im... | 32.597458 | 126 | 0.716669 | 3,403 | 23,079 | 4.63973 | 0.108728 | 0.066882 | 0.051682 | 0.066882 | 0.77497 | 0.710875 | 0.687567 | 0.639116 | 0.617329 | 0.595098 | 0 | 0.227955 | 0.131721 | 23,079 | 708 | 127 | 32.597458 | 0.559958 | 0 | 0 | 0.573529 | 0 | 0 | 0.007322 | 0 | 0 | 0 | 0 | 0 | 0.240809 | 1 | 0.080882 | false | 0.003676 | 0.029412 | 0 | 0.110294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
be14596b5522e0877a99c1e6b243c1003263e5ff | 71 | py | Python | Chapter 2 - Variables & Data Types/05_pr_set_add_two_no.py | alex-dsouza777/Python-Basics | 8f1c406f2319cd65b5d54dfea990d09fa69d9adf | [
"MIT"
] | null | null | null | Chapter 2 - Variables & Data Types/05_pr_set_add_two_no.py | alex-dsouza777/Python-Basics | 8f1c406f2319cd65b5d54dfea990d09fa69d9adf | [
"MIT"
] | null | null | null | Chapter 2 - Variables & Data Types/05_pr_set_add_two_no.py | alex-dsouza777/Python-Basics | 8f1c406f2319cd65b5d54dfea990d09fa69d9adf | [
"MIT"
] | 1 | 2021-04-21T10:23:08.000Z | 2021-04-21T10:23:08.000Z | #Addition of two numbers
a = 30
b = 17
print("Sum of a and b is",a + b) | 17.75 | 32 | 0.633803 | 17 | 71 | 2.647059 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0.239437 | 71 | 4 | 32 | 17.75 | 0.759259 | 0.323944 | 0 | 0 | 0 | 0 | 0.354167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
077cca840f68935d92c69072c7307ddde041c399 | 818 | py | Python | tests/util_test.py | NLESC-JCER/pyspectra | b7ece1fff537039f3306b23e00812aa1c8ffc729 | [
"Apache-2.0"
] | 1 | 2021-01-05T01:52:31.000Z | 2021-01-05T01:52:31.000Z | tests/util_test.py | NLESC-JCER/pyspectra | b7ece1fff537039f3306b23e00812aa1c8ffc729 | [
"Apache-2.0"
] | 2 | 2020-07-03T07:54:46.000Z | 2020-07-03T07:59:08.000Z | tests/util_test.py | NLESC-JCER/pyspectra | b7ece1fff537039f3306b23e00812aa1c8ffc729 | [
"Apache-2.0"
] | null | null | null | """Helper functions to tests."""
import numpy as np
def norm(vs: np.array) -> float:
"""Compute the norm of a vector."""
return np.sqrt(np.dot(vs, vs))
def create_random_matrix(size: int) -> np.array:
"""Create a numpy random matrix."""
return np.random.normal(size=size ** 2).reshape(size, size)
... | 27.266667 | 68 | 0.640587 | 111 | 818 | 4.657658 | 0.468468 | 0.040619 | 0.069633 | 0.085106 | 0.123791 | 0.123791 | 0.123791 | 0.123791 | 0 | 0 | 0 | 0.004695 | 0.218826 | 818 | 29 | 69 | 28.206897 | 0.804382 | 0.196822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.266667 | false | 0 | 0.066667 | 0 | 0.533333 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0784261b13ef0cb016c21f71e6bc994a164d136e | 2,234 | py | Python | apps/addons/management/commands/jetpackers.py | clouserw/olympia | 1d5755b08a526372ec66e6bc64ab636018181969 | [
"BSD-3-Clause"
] | 1 | 2017-07-14T19:22:39.000Z | 2017-07-14T19:22:39.000Z | apps/addons/management/commands/jetpackers.py | clouserw/olympia | 1d5755b08a526372ec66e6bc64ab636018181969 | [
"BSD-3-Clause"
] | 6 | 2021-02-02T23:08:48.000Z | 2021-09-08T02:47:17.000Z | apps/addons/management/commands/jetpackers.py | clouserw/olympia | 1d5755b08a526372ec66e6bc64ab636018181969 | [
"BSD-3-Clause"
] | 1 | 2021-03-13T00:33:12.000Z | 2021-03-13T00:33:12.000Z | import logging
from django.core import mail
from django.conf import settings
from django.core.management.base import BaseCommand
import amo.utils
from users.models import UserProfile
log = logging.getLogger('z.mailer')
FROM = settings.DEFAULT_FROM_EMAIL
class Command(BaseCommand):
help = "Send the email for bu... | 34.369231 | 80 | 0.717995 | 371 | 2,234 | 4.28841 | 0.442049 | 0.021999 | 0.020113 | 0.032055 | 0.125079 | 0.100566 | 0.100566 | 0.100566 | 0.069139 | 0.069139 | 0 | 0.016667 | 0.19427 | 2,234 | 64 | 81 | 34.90625 | 0.867222 | 0.001791 | 0 | 0 | 0 | 0.061224 | 0.628366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.122449 | null | null | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
07afa89bd7f7b951972777c2099542dd2fbf96da | 304 | py | Python | 1186.py | TheLurkingCat/TIOJ | 077e1cd22239d8f6bc1cd7561f27c68143e80263 | [
"MIT"
] | null | null | null | 1186.py | TheLurkingCat/TIOJ | 077e1cd22239d8f6bc1cd7561f27c68143e80263 | [
"MIT"
] | null | null | null | 1186.py | TheLurkingCat/TIOJ | 077e1cd22239d8f6bc1cd7561f27c68143e80263 | [
"MIT"
] | null | null | null | a = int(input())
while a:
for x in range(a-1):
out = '*' + ' ' * (a-x-2) + '*' + ' ' * (a-x-2) + '*'
print(out.center(2*a-1))
print('*' * (2 * a - 1))
for x in range(a-1):
out = '*' + ' ' * x + '*' + ' ' * x + '*'
print(out.center(2*a-1))
a = int(input())
| 27.636364 | 61 | 0.348684 | 46 | 304 | 2.304348 | 0.282609 | 0.09434 | 0.084906 | 0.207547 | 0.622642 | 0.622642 | 0.301887 | 0 | 0 | 0 | 0 | 0.050761 | 0.351974 | 304 | 10 | 62 | 30.4 | 0.48731 | 0 | 0 | 0.6 | 0 | 0 | 0.036184 | 0 | 0.2 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
07b0911062690c0f062a5b15420ab76dd3a0ddb5 | 807 | py | Python | schoolio/migrations/0005_auto_20190927_1423.py | schoolio-co/schoolio_site | a616807c504c7a7cab3b9f7c3dab42f827cb0580 | [
"MIT",
"Unlicense"
] | null | null | null | schoolio/migrations/0005_auto_20190927_1423.py | schoolio-co/schoolio_site | a616807c504c7a7cab3b9f7c3dab42f827cb0580 | [
"MIT",
"Unlicense"
] | null | null | null | schoolio/migrations/0005_auto_20190927_1423.py | schoolio-co/schoolio_site | a616807c504c7a7cab3b9f7c3dab42f827cb0580 | [
"MIT",
"Unlicense"
] | null | null | null | # Generated by Django 2.2.1 on 2019-09-27 14:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('schoolio', '0004_auto_20190927_0405'),
]
operations = [
migrations.AlterField(
model_name='student_assessment',
name... | 27.827586 | 74 | 0.607187 | 80 | 807 | 5.9625 | 0.5375 | 0.125786 | 0.157233 | 0.18239 | 0.524109 | 0.524109 | 0.524109 | 0.524109 | 0.377358 | 0.377358 | 0 | 0.058824 | 0.283767 | 807 | 28 | 75 | 28.821429 | 0.766436 | 0.055762 | 0 | 0.5 | 1 | 0 | 0.177632 | 0.030263 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
07c453afd778414ad9fee5c8bcdaf13018eeb9f5 | 1,755 | py | Python | pkg_resources/_vendor/packaging/_typing.py | GDGSNF/setuptools | 3a209029fd2217c039593cd1f6cb378a28527a59 | [
"MIT"
] | null | null | null | pkg_resources/_vendor/packaging/_typing.py | GDGSNF/setuptools | 3a209029fd2217c039593cd1f6cb378a28527a59 | [
"MIT"
] | null | null | null | pkg_resources/_vendor/packaging/_typing.py | GDGSNF/setuptools | 3a209029fd2217c039593cd1f6cb378a28527a59 | [
"MIT"
] | null | null | null | """For neatly implementing static typing in packaging.
`mypy` - the static type analysis tool we use - uses the `typing` module, which
provides core functionality fundamental to mypy's functioning.
Generally, `typing` would be imported at runtime and used in that fashion -
it acts as a no-op at runtime and does not h... | 37.340426 | 79 | 0.756125 | 286 | 1,755 | 4.597902 | 0.465035 | 0.054753 | 0.027376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004208 | 0.187464 | 1,755 | 46 | 80 | 38.152174 | 0.917952 | 0.8849 | 0 | 0 | 0 | 0 | 0.091892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
07df8ef3eee337410a8a9059f852b86e3f074f99 | 102 | py | Python | Python/factorial.py | devaslooper/Code-Overflow | d7d55ea0f5015bccb5c4100c4240464fcda8504a | [
"MIT"
] | null | null | null | Python/factorial.py | devaslooper/Code-Overflow | d7d55ea0f5015bccb5c4100c4240464fcda8504a | [
"MIT"
] | null | null | null | Python/factorial.py | devaslooper/Code-Overflow | d7d55ea0f5015bccb5c4100c4240464fcda8504a | [
"MIT"
] | null | null | null | n=int(input("Enter number "))
fact=1
for i in range(1,n+1):
fact=fact*i
print("Factorial is ",fact)
| 17 | 29 | 0.666667 | 21 | 102 | 3.238095 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034091 | 0.137255 | 102 | 5 | 30 | 20.4 | 0.738636 | 0 | 0 | 0 | 0 | 0 | 0.254902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
07f699666466b24dd921c96e35a918f2fe5e627b | 293 | py | Python | sleep.py | SkylerHoward/O | 989246a5cdc297ab9f76cb6b26daebd799a03741 | [
"MIT"
] | null | null | null | sleep.py | SkylerHoward/O | 989246a5cdc297ab9f76cb6b26daebd799a03741 | [
"MIT"
] | null | null | null | sleep.py | SkylerHoward/O | 989246a5cdc297ab9f76cb6b26daebd799a03741 | [
"MIT"
] | null | null | null | import time, morning
from datetime import datetime
def main():
while True:
a = time.mktime(datetime.now().timetuple())
n = datetime.now()
if n.hour == 6 and (n.minute-(n.minute%5)) == 15:
return morning.main()
time.sleep(300 - (time.mktime(datetime.now().timetuple())-a)) | 29.3 | 63 | 0.648464 | 43 | 293 | 4.418605 | 0.55814 | 0.173684 | 0.189474 | 0.221053 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028926 | 0.174061 | 293 | 10 | 63 | 29.3 | 0.756198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
07f8b674abd2c96105f1e6a593d1a4ae299e109a | 5,389 | py | Python | restapi/services/Utils/test_getters.py | Varun487/CapstoneProject_TradingSystem | b21e3f2c6c5e75596927666bf65294a2014babcf | [
"MIT"
] | 3 | 2022-01-10T01:39:00.000Z | 2022-01-11T13:17:36.000Z | restapi/services/Utils/test_getters.py | Varun487/CapstoneProject_TradingSystem | b21e3f2c6c5e75596927666bf65294a2014babcf | [
"MIT"
] | null | null | null | restapi/services/Utils/test_getters.py | Varun487/CapstoneProject_TradingSystem | b21e3f2c6c5e75596927666bf65294a2014babcf | [
"MIT"
] | 1 | 2022-01-09T07:30:36.000Z | 2022-01-09T07:30:36.000Z | from django.test import TestCase
import pandas as pd
from .getters import Getter
from .converter import Converter
from strategies.models import Company
from strategies.models import IndicatorType
class GetDataTestCase(TestCase):
def setUp(self) -> None:
# Dummy company data
Company.objects.cre... | 52.833333 | 119 | 0.660419 | 637 | 5,389 | 5.370487 | 0.10832 | 0.089448 | 0.128617 | 0.126279 | 0.806197 | 0.729027 | 0.583455 | 0.550132 | 0.466823 | 0.351944 | 0 | 0 | 0.200779 | 5,389 | 101 | 120 | 53.356436 | 0.794288 | 0.06903 | 0 | 0.189189 | 0 | 0 | 0.067389 | 0 | 0 | 0 | 0 | 0 | 0.310811 | 1 | 0.094595 | false | 0 | 0.081081 | 0 | 0.189189 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5800bf043c25e136451e6eec4f012f681fa98619 | 336 | py | Python | epiphancloud/models/settings.py | epiphan-video/epiphancloud_api | 8799591ea4d3a7285976e0038716b23c9ffe7061 | [
"MIT"
] | null | null | null | epiphancloud/models/settings.py | epiphan-video/epiphancloud_api | 8799591ea4d3a7285976e0038716b23c9ffe7061 | [
"MIT"
] | null | null | null | epiphancloud/models/settings.py | epiphan-video/epiphancloud_api | 8799591ea4d3a7285976e0038716b23c9ffe7061 | [
"MIT"
] | null | null | null | class DeviceSettings:
def __init__(self, settings):
self._id = settings["id"]
self._title = settings["title"]
self._type = settings["type"]["name"]
self._value = settings["value"]
@property
def id(self):
return self._id
@property
def value(self):
ret... | 22.4 | 45 | 0.583333 | 37 | 336 | 5.027027 | 0.351351 | 0.064516 | 0.150538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.28869 | 336 | 14 | 46 | 24 | 0.778243 | 0 | 0 | 0.166667 | 0 | 0 | 0.059524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.166667 | 0.5 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
5807aa2f208ead7fccb84b1ddddcf37b4c200266 | 12,661 | py | Python | tests/unittests/command_parse/test_stream.py | itamarhaber/iredis | 61208aab34c731f88232abd2cacdf0e075e701f2 | [
"BSD-3-Clause"
] | 1,857 | 2019-08-09T02:36:13.000Z | 2022-03-31T05:53:09.000Z | tests/unittests/command_parse/test_stream.py | itamarhaber/iredis | 61208aab34c731f88232abd2cacdf0e075e701f2 | [
"BSD-3-Clause"
] | 281 | 2019-08-08T16:00:59.000Z | 2022-03-07T14:05:36.000Z | tests/unittests/command_parse/test_stream.py | itamarhaber/iredis | 61208aab34c731f88232abd2cacdf0e075e701f2 | [
"BSD-3-Clause"
] | 105 | 2019-08-09T04:36:12.000Z | 2022-02-03T13:27:29.000Z | def test_xrange(judge_command):
judge_command(
"XRANGE somestream - +",
{"command": "XRANGE", "key": "somestream", "stream_id": ["-", "+"]},
)
judge_command(
"XRANGE somestream 1526985054069 1526985055069",
{
"command": "XRANGE",
"key": "somestream",
... | 27.523913 | 86 | 0.477766 | 1,037 | 12,661 | 5.699132 | 0.108968 | 0.140102 | 0.043147 | 0.060914 | 0.801184 | 0.711337 | 0.553299 | 0.483926 | 0.435871 | 0.349746 | 0 | 0.092985 | 0.373983 | 12,661 | 459 | 87 | 27.583878 | 0.652662 | 0.015086 | 0 | 0.504717 | 0 | 0 | 0.402311 | 0 | 0 | 0 | 0 | 0.002179 | 0 | 1 | 0.035377 | false | 0 | 0 | 0 | 0.035377 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6af312eaf5ecd0a0c44737d1362c73e2f2338489 | 2,512 | py | Python | kadal/query.py | Bucolo/Kadal | a0085f15df4f8ebbf5ec4cd4344e207773c6b498 | [
"MIT"
] | 1 | 2022-03-12T15:04:01.000Z | 2022-03-12T15:04:01.000Z | kadal/query.py | Bucolo/Kadal | a0085f15df4f8ebbf5ec4cd4344e207773c6b498 | [
"MIT"
] | null | null | null | kadal/query.py | Bucolo/Kadal | a0085f15df4f8ebbf5ec4cd4344e207773c6b498 | [
"MIT"
] | null | null | null | MEDIA_SEARCH = """
query ($search: String, $type: MediaType, $exclude: MediaFormat, $isAdult: Boolean) {
Media(search: $search, type: $type, format_not: $exclude, isAdult: $isAdult) {
id
type
format
title {
english
romaji
native
}
synonyms
status
description
start... | 14.03352 | 104 | 0.515525 | 214 | 2,512 | 5.995327 | 0.266355 | 0.042089 | 0.056118 | 0.039751 | 0.712393 | 0.690569 | 0.690569 | 0.690569 | 0.690569 | 0.690569 | 0 | 0 | 0.399682 | 2,512 | 178 | 105 | 14.11236 | 0.850796 | 0 | 0 | 0.683908 | 0 | 0.017241 | 0.956608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ed0441122c358fac6781aee918c51f234c854920 | 288 | py | Python | resolwe/__init__.py | plojyon/resolwe | 1bee6f0860fdd087534adf1680e9350d79ab97cf | [
"Apache-2.0"
] | 27 | 2015-12-07T18:29:12.000Z | 2022-03-16T08:01:47.000Z | resolwe/__init__.py | plojyon/resolwe | 1bee6f0860fdd087534adf1680e9350d79ab97cf | [
"Apache-2.0"
] | 681 | 2015-12-01T11:52:24.000Z | 2022-03-21T07:43:37.000Z | resolwe/__init__.py | plojyon/resolwe | 1bee6f0860fdd087534adf1680e9350d79ab97cf | [
"Apache-2.0"
] | 28 | 2015-12-01T08:32:57.000Z | 2021-12-14T00:04:16.000Z | """.. Ignore pydocstyle D400.
=======
Resolwe
=======
Open source enterprise dataflow engine in Django.
"""
from resolwe.__about__ import ( # noqa: F401
__author__,
__copyright__,
__email__,
__license__,
__summary__,
__title__,
__url__,
__version__,
)
| 14.4 | 49 | 0.638889 | 25 | 288 | 5.92 | 0.96 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027149 | 0.232639 | 288 | 19 | 50 | 15.157895 | 0.642534 | 0.395833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ed0683361fef86b73c36e55f72fcd846b4e5dd8c | 1,019 | py | Python | footy/engine/UpdateEngine.py | dallinb/footy | d6879481a85b4a84023805bf29bd7dff32afa67f | [
"BSD-3-Clause"
] | 2 | 2020-08-27T17:59:13.000Z | 2021-10-10T02:26:20.000Z | footy/engine/UpdateEngine.py | FootyStats/footy | d6879481a85b4a84023805bf29bd7dff32afa67f | [
"BSD-3-Clause"
] | 32 | 2020-08-24T15:01:57.000Z | 2022-03-12T00:47:02.000Z | footy/engine/UpdateEngine.py | dallinb/footy | d6879481a85b4a84023805bf29bd7dff32afa67f | [
"BSD-3-Clause"
] | null | null | null | """Prediction Engine - Update the data model with the most resent fixtures and results."""
from footy.domain import Competition
class UpdateEngine:
"""Prediction Engine - Update the data model with the most resent fixtures and results."""
def __init__(self):
"""Construct a UpdateEngine object."""
... | 29.970588 | 109 | 0.649657 | 111 | 1,019 | 5.90991 | 0.306306 | 0.053354 | 0.083841 | 0.114329 | 0.664634 | 0.620427 | 0.620427 | 0.567073 | 0.567073 | 0.567073 | 0 | 0 | 0.284593 | 1,019 | 33 | 110 | 30.878788 | 0.899863 | 0.614328 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0.142857 | 0 | 1 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
ed2d4c9ed22365d84b24c00ca0cddff12ecae572 | 1,105 | py | Python | emailthreads/util.py | emersion/python-emailthreads | 99f1a04fa0dd2ce8a9c870016b067bf56f3d3bfd | [
"MIT"
] | 34 | 2018-06-14T09:30:29.000Z | 2022-03-13T20:56:06.000Z | emailthreads/util.py | emersion/python-emailreview | 99f1a04fa0dd2ce8a9c870016b067bf56f3d3bfd | [
"MIT"
] | 5 | 2019-12-01T20:20:51.000Z | 2022-01-26T08:42:37.000Z | emailthreads/util.py | emersion/python-emailreview | 99f1a04fa0dd2ce8a9c870016b067bf56f3d3bfd | [
"MIT"
] | 3 | 2019-06-21T20:31:42.000Z | 2021-12-18T00:09:07.000Z | import re
import sys
from email.message import EmailMessage
def get_message_by_id(msgs, msg_id):
# TODO: handle weird brackets stuff
for msg in msgs:
if msg["message-id"] == msg_id:
return msg
return None
def strip_prefix(s, prefix):
if s.startswith(prefix):
s = s[len(prefix):]
return s
def flatten_heade... | 22.1 | 69 | 0.709502 | 172 | 1,105 | 4.424419 | 0.383721 | 0.04205 | 0.034166 | 0.039422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002151 | 0.158371 | 1,105 | 49 | 70 | 22.55102 | 0.816129 | 0.079638 | 0 | 0.052632 | 0 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.184211 | false | 0 | 0.078947 | 0.026316 | 0.552632 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
ed2e4b3cf6fdf1d5d74d3435c7259f6fa34ae5df | 297,511 | py | Python | languages/pt-br.py | unimauro/eden | b739d334e6828d0db14b3790f2f5e2666fc83576 | [
"MIT"
] | 1 | 2017-03-15T23:29:41.000Z | 2017-03-15T23:29:41.000Z | languages/pt-br.py | unimauro/eden | b739d334e6828d0db14b3790f2f5e2666fc83576 | [
"MIT"
] | null | null | null | languages/pt-br.py | unimauro/eden | b739d334e6828d0db14b3790f2f5e2666fc83576 | [
"MIT"
] | null | null | null | # coding: utf8
{
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" é uma expressão opcional como "field1=\'newvalue\'". Não é possível atualizar ou excluir os resultados de uma junção',
'# of International Staff': '# De equipe internacional'... | 61.737082 | 995 | 0.74161 | 39,493 | 297,511 | 5.586256 | 0.132353 | 0.003236 | 0.004469 | 0.001636 | 0.210572 | 0.166967 | 0.142101 | 0.124129 | 0.108436 | 0.09322 | 0 | 0.002867 | 0.147746 | 297,511 | 4,818 | 996 | 61.749896 | 0.867232 | 0.00004 | 0 | 0.000415 | 0 | 0.047955 | 0.868241 | 0.001442 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.003737 | 0.007266 | 0 | 0.007266 | 0.001038 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ed3e7f550a07ae5965b40bbbda69660ec272d2cf | 6,077 | py | Python | autoscalingsim/scaling/policiesbuilder/metric/correlator/correlator.py | Remit/autoscaling-simulator | 091943c0e9eedf9543e9305682a067ab60f56def | [
"MIT"
] | 6 | 2021-03-10T16:23:10.000Z | 2022-01-14T04:57:46.000Z | autoscalingsim/scaling/policiesbuilder/metric/correlator/correlator.py | Remit/autoscaling-simulator | 091943c0e9eedf9543e9305682a067ab60f56def | [
"MIT"
] | null | null | null | autoscalingsim/scaling/policiesbuilder/metric/correlator/correlator.py | Remit/autoscaling-simulator | 091943c0e9eedf9543e9305682a067ab60f56def | [
"MIT"
] | 1 | 2022-01-14T04:57:55.000Z | 2022-01-14T04:57:55.000Z | from abc import ABC, abstractmethod
import collections
import pandas as pd
from autoscalingsim.utils.error_check import ErrorChecker
class Correlator(ABC):
_Registry = {}
@abstractmethod
def _compute_correlation(self, metrics_vals_1 : pd.Series, metrics_vals_2 : pd.Series, lag : int):
pass
... | 57.87619 | 245 | 0.751687 | 803 | 6,077 | 5.17061 | 0.135741 | 0.156551 | 0.229287 | 0.188584 | 0.661609 | 0.570087 | 0.427023 | 0.329721 | 0.299374 | 0.283478 | 0 | 0.003158 | 0.1662 | 6,077 | 104 | 246 | 58.432692 | 0.816262 | 0 | 0 | 0.081081 | 0 | 0 | 0.02419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0.013514 | 0.067568 | 0 | 0.27027 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ed3f423aba07bd3e0294dc5b518080a8998ed87f | 1,047 | py | Python | sarpy/io/nitf/tres/unclass/ENGRDA.py | anielsen001/sarpy | 07bf157f54a5304185fc0e1c34010053fd6ae9d9 | [
"MIT"
] | null | null | null | sarpy/io/nitf/tres/unclass/ENGRDA.py | anielsen001/sarpy | 07bf157f54a5304185fc0e1c34010053fd6ae9d9 | [
"MIT"
] | null | null | null | sarpy/io/nitf/tres/unclass/ENGRDA.py | anielsen001/sarpy | 07bf157f54a5304185fc0e1c34010053fd6ae9d9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from ..tre_elements import TREExtension, TREElement
__classification__ = "UNCLASSIFIED"
__author__ = "Thomas McCullough"
class RECORD(TREElement):
def __init__(self, value):
super(RECORD, self).__init__()
self.add_field('ENGLN', 'd', 2, value)
self.add_field('ENG... | 29.914286 | 60 | 0.621777 | 132 | 1,047 | 4.621212 | 0.371212 | 0.137705 | 0.216393 | 0.25082 | 0.347541 | 0.163934 | 0 | 0 | 0 | 0 | 0 | 0.013366 | 0.213945 | 1,047 | 34 | 61 | 30.794118 | 0.727825 | 0.020057 | 0 | 0.083333 | 0 | 0 | 0.118164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.041667 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ed44fdb0f01181ea268ba486b1d64620229b6b81 | 634 | py | Python | xos/ec2_observer/steps/__init__.py | wathsalav/xos | f6bcaa37a948ee41729236afe7fce0802e002404 | [
"Apache-2.0"
] | null | null | null | xos/ec2_observer/steps/__init__.py | wathsalav/xos | f6bcaa37a948ee41729236afe7fce0802e002404 | [
"Apache-2.0"
] | null | null | null | xos/ec2_observer/steps/__init__.py | wathsalav/xos | f6bcaa37a948ee41729236afe7fce0802e002404 | [
"Apache-2.0"
] | null | null | null | #from .sync_external_routes import SyncExternalRoutes
#from .sync_network_slivers import SyncNetworkSlivers
#from .sync_networks import SyncNetworks
#from .sync_network_deployments import SyncNetworkDeployments
#from .sync_site_privileges import SyncSitePrivilege
#from .sync_slice_memberships import SyncSliceMembership... | 39.625 | 61 | 0.865931 | 76 | 634 | 6.960526 | 0.473684 | 0.196597 | 0.056711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089905 | 634 | 15 | 62 | 42.266667 | 0.916811 | 0.954259 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ed4e6dc26f15763248de005c84025114cd89fa6c | 436 | py | Python | src/infi/mount_utils/solaris/mounter.py | Infinidat/mount-utils | e4e08e21c278a2391494a7b9d9d7efdaeb393a9c | [
"BSD-3-Clause"
] | null | null | null | src/infi/mount_utils/solaris/mounter.py | Infinidat/mount-utils | e4e08e21c278a2391494a7b9d9d7efdaeb393a9c | [
"BSD-3-Clause"
] | null | null | null | src/infi/mount_utils/solaris/mounter.py | Infinidat/mount-utils | e4e08e21c278a2391494a7b9d9d7efdaeb393a9c | [
"BSD-3-Clause"
] | null | null | null | from ..base.mounter import MounterMixin, execute_mount
class SolarisMounterMixin(MounterMixin):
def _get_fstab_path(self):
return "/etc/fstab"
def _get_entry_format(self, entry):
return entry.get_format_solaris()
def mount_entry(self, entry):
args = ["-F", entry.get_typename(), en... | 31.142857 | 84 | 0.694954 | 54 | 436 | 5.314815 | 0.481481 | 0.111498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188073 | 436 | 13 | 85 | 33.538462 | 0.810734 | 0 | 0 | 0 | 0 | 0 | 0.027523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0.2 | 0.7 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
ed5484913e5b4d8984ea6ca02d8e86830b881e11 | 4,857 | py | Python | app/internal/module/video/database.py | kuropengin/SHINtube-video-api | 8a4b068fb95a9a2736b3dba3782dbbbf73815290 | [
"MIT"
] | null | null | null | app/internal/module/video/database.py | kuropengin/SHINtube-video-api | 8a4b068fb95a9a2736b3dba3782dbbbf73815290 | [
"MIT"
] | null | null | null | app/internal/module/video/database.py | kuropengin/SHINtube-video-api | 8a4b068fb95a9a2736b3dba3782dbbbf73815290 | [
"MIT"
] | null | null | null | import glob
import pathlib
from .filemanager import filemanager_class
class database_class(filemanager_class):
def __init__(self):
filemanager_class.__init__(self)
async def update_info(self, year, cid, vid, title, explanation):
# 既存のjsonを読み込み
json_file = "/".join([self.video_dir, str... | 33.267123 | 71 | 0.558369 | 557 | 4,857 | 4.61939 | 0.136445 | 0.062184 | 0.051302 | 0.04625 | 0.717062 | 0.698018 | 0.688302 | 0.678197 | 0.678197 | 0.678197 | 0 | 0.004254 | 0.322421 | 4,857 | 145 | 72 | 33.496552 | 0.777575 | 0.02656 | 0 | 0.713043 | 0 | 0 | 0.104158 | 0.013152 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008696 | false | 0.008696 | 0.026087 | 0 | 0.191304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
ed62a4dc340088a21f482019440f649f39123cfc | 1,293 | py | Python | secretpy/ciphers/rot18.py | tigertv/crypt | e464f998e5540f52e269fe360ec9d3a08e976b2e | [
"MIT"
] | 51 | 2019-01-09T02:38:03.000Z | 2022-03-19T19:08:02.000Z | secretpy/ciphers/rot18.py | tigertv/crypt | e464f998e5540f52e269fe360ec9d3a08e976b2e | [
"MIT"
] | 7 | 2019-10-03T19:50:32.000Z | 2021-05-28T22:52:09.000Z | secretpy/ciphers/rot18.py | tigertv/crypt | e464f998e5540f52e269fe360ec9d3a08e976b2e | [
"MIT"
] | 13 | 2019-04-16T16:39:44.000Z | 2021-06-01T21:50:12.000Z | #!/usr/bin/python
from .rot13 import Rot13
import secretpy.alphabets as al
class Rot18:
"""
The Rot18 Cipher
"""
__rot13 = Rot13()
def __init__(self):
alphabet = al.ENGLISH
half = len(alphabet) >> 1
self.__alphabet = alphabet[:half] + al.DECIMAL[:5] + alphabet[half:] + al... | 24.396226 | 93 | 0.58314 | 150 | 1,293 | 4.853333 | 0.3 | 0.098901 | 0.049451 | 0.057692 | 0.576923 | 0.458791 | 0.384615 | 0.384615 | 0.384615 | 0.384615 | 0 | 0.019187 | 0.314772 | 1,293 | 52 | 94 | 24.865385 | 0.802483 | 0.320959 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.125 | 0.125 | 0.8125 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.