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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6a1f1b69ee306e65ab06cc8411c8b814a7455225 | 4,886 | py | Python | server/openapi_server/controllers/data_transformation_controller.py | mintproject/MINT-ModelCatalogIngestionAPI | 026d3495483a3e48ea3c1364d0dda09beeea69e4 | [
"Apache-2.0"
] | 2 | 2019-05-30T21:33:43.000Z | 2019-09-27T21:04:38.000Z | server/openapi_server/controllers/data_transformation_controller.py | mintproject/model-catalog-api | 2ad7016691891497bba37afe8ceb0fea8fe769e5 | [
"Apache-2.0"
] | 82 | 2019-10-08T16:35:34.000Z | 2022-03-15T18:25:27.000Z | server/openapi_server/controllers/data_transformation_controller.py | mintproject/model-catalog-api | 2ad7016691891497bba37afe8ceb0fea8fe769e5 | [
"Apache-2.0"
] | null | null | null | import connexion
import six
from openapi_server import query_manager
from openapi_server.utils.vars import DATATRANSFORMATION_TYPE_NAME, DATATRANSFORMATION_TYPE_URI
from openapi_server.models.data_transformation import DataTransformation # noqa: E501
from openapi_server import util
def custom_datasetspecifications_i... | 33.465753 | 134 | 0.731068 | 603 | 4,886 | 5.736318 | 0.157546 | 0.034692 | 0.052616 | 0.060711 | 0.679676 | 0.670425 | 0.662619 | 0.640648 | 0.58514 | 0.539173 | 0 | 0.012765 | 0.198322 | 4,886 | 145 | 135 | 33.696552 | 0.870309 | 0.458657 | 0 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.115385 | 0 | 0.346154 | 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 | 0 | 0 | 0 | 1 | 0 |
6a1f4e62deeca6901732e02e6f44f1571b8f71c9 | 2,634 | py | Python | shap/plots/monitoring.py | NunoEdgarGFlowHub/shap | 6992883fb3470163fcbe2bfacae0bd5f724ed1f8 | [
"MIT"
] | 8 | 2019-09-23T16:20:40.000Z | 2021-10-09T20:26:20.000Z | shap/plots/monitoring.py | NunoEdgarGFlowHub/shap | 6992883fb3470163fcbe2bfacae0bd5f724ed1f8 | [
"MIT"
] | 1 | 2019-02-22T10:16:13.000Z | 2019-02-22T10:16:13.000Z | shap/plots/monitoring.py | NunoEdgarGFlowHub/shap | 6992883fb3470163fcbe2bfacae0bd5f724ed1f8 | [
"MIT"
] | 4 | 2019-06-28T12:50:51.000Z | 2021-07-02T07:42:18.000Z | import numpy as np
import scipy
import warnings
try:
import matplotlib.pyplot as pl
import matplotlib
except ImportError:
warnings.warn("matplotlib could not be loaded!")
pass
from . import labels
from . import colors
def truncate_text(text, max_len):
if len(text) > max_len:
return text[:i... | 33.769231 | 85 | 0.648823 | 389 | 2,634 | 4.290488 | 0.442159 | 0.03595 | 0.026962 | 0.015578 | 0.051528 | 0.034751 | 0 | 0 | 0 | 0 | 0 | 0.019015 | 0.221336 | 2,634 | 78 | 86 | 33.769231 | 0.794734 | 0.291192 | 0 | 0 | 0 | 0 | 0.066443 | 0.01675 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.021739 | 0.173913 | 0 | 0.26087 | 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 | 0 | 0 | 0 | 1 | 0 |
6a2025301420406c02ae8d4c4fc4c88641b66f90 | 7,702 | py | Python | code/testbed/pde1/FemPde1.py | nicolai-schwartze/Masterthesis | 7857af20c6b233901ab3cedc325bd64704111e16 | [
"MIT"
] | 1 | 2020-06-13T10:02:02.000Z | 2020-06-13T10:02:02.000Z | code/testbed/pde1/FemPde1.py | nicolai-schwartze/Masterthesis | 7857af20c6b233901ab3cedc325bd64704111e16 | [
"MIT"
] | null | null | null | code/testbed/pde1/FemPde1.py | nicolai-schwartze/Masterthesis | 7857af20c6b233901ab3cedc325bd64704111e16 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 13 14:57:32 2020
@author: Nicolai
"""
import sys
import os
importpath = os.path.dirname(os.path.realpath(__file__)) + "/../"
sys.path.append(importpath)
from FemPdeBase import FemPdeBase
import numpy as np
# import from ngsolve
import ngsolve as ngs
from netgen.geom2d i... | 31.695473 | 199 | 0.532849 | 1,030 | 7,702 | 3.88835 | 0.296117 | 0.011985 | 0.006991 | 0.006991 | 0.210986 | 0.205493 | 0.19226 | 0.174282 | 0.137328 | 0.137328 | 0 | 0.068829 | 0.279408 | 7,702 | 243 | 200 | 31.695473 | 0.652793 | 0.343677 | 0 | 0.336538 | 0 | 0.009615 | 0.090833 | 0.023231 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0 | 0.144231 | 0 | 0.173077 | 0.086538 | 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 | 0 | 0 | 0 | 1 | 0 |
6a213e8a5b6a8886b1f3aeab6a75af090df46ca9 | 996 | py | Python | LeetCode/530 Minimum Absolute Difference in BST.py | gesuwen/Algorithms | 0c9cf4412d76f8b69ef68cc80636323f5a0e5786 | [
"MIT"
] | null | null | null | LeetCode/530 Minimum Absolute Difference in BST.py | gesuwen/Algorithms | 0c9cf4412d76f8b69ef68cc80636323f5a0e5786 | [
"MIT"
] | null | null | null | LeetCode/530 Minimum Absolute Difference in BST.py | gesuwen/Algorithms | 0c9cf4412d76f8b69ef68cc80636323f5a0e5786 | [
"MIT"
] | null | null | null | # Binary Search Tree
# Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes.
#
# Example:
#
# Input:
#
# 1
# \
# 3
# /
# 2
#
# Output:
# 1
#
# Explanation:
# The minimum absolute difference is 1, which is the difference between 2 a... | 23.162791 | 124 | 0.566265 | 126 | 996 | 4.444444 | 0.5 | 0.117857 | 0.057143 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.327309 | 996 | 42 | 125 | 23.714286 | 0.820896 | 0.49498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.416667 | 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 | 0 | 0 | 0 | 1 | 0 |
6a24c49a2e92d735c1970a4ba7a5a35023549f08 | 504 | py | Python | app/database/database.py | luisornelasch/melp | 82ff5c84d0df866ee64da10b96f61400c0809845 | [
"MIT"
] | null | null | null | app/database/database.py | luisornelasch/melp | 82ff5c84d0df866ee64da10b96f61400c0809845 | [
"MIT"
] | null | null | null | app/database/database.py | luisornelasch/melp | 82ff5c84d0df866ee64da10b96f61400c0809845 | [
"MIT"
] | null | null | null | from sqlalchemy import create_engine, engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
import os
SQLALCHEMY_DATABASE_URL = os.getenv("DATABASE_URL").replace("postgres://", "postgresql+psycopg2://")
engine = create_engine(SQLALCHEMY_DATABASE_URL)
SessionLocal = se... | 24 | 100 | 0.753968 | 59 | 504 | 6.271186 | 0.508475 | 0.113514 | 0.113514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002326 | 0.146825 | 504 | 20 | 101 | 25.2 | 0.85814 | 0 | 0 | 0 | 0 | 0 | 0.089286 | 0.043651 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.285714 | 0 | 0.357143 | 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 | 0 | 0 | 0 | 1 | 0 |
6a2905a1e278bec5cf1d153f6d2fadf970789157 | 2,657 | py | Python | tests/test_utils.py | ozora-ogino/tflite-human-tracking | d1be51c628e1464b5e2953a611df6e974a9ffbaa | [
"MIT"
] | 3 | 2021-12-20T00:43:28.000Z | 2022-03-12T00:54:42.000Z | tests/test_utils.py | ozora-ogino/tflite-human-tracking | d1be51c628e1464b5e2953a611df6e974a9ffbaa | [
"MIT"
] | null | null | null | tests/test_utils.py | ozora-ogino/tflite-human-tracking | d1be51c628e1464b5e2953a611df6e974a9ffbaa | [
"MIT"
] | 5 | 2021-12-03T08:59:18.000Z | 2022-03-17T11:25:38.000Z | from src.utils import check_direction, direction_config, is_intersect
# pylint:disable=unexpected-keyword-arg
class TestCheckDirection:
def test_true(self):
"""Test true case."""
directions = {
"right": {"prev_center": [0, 0], "current_center": [20, 0], "expect": True},
"l... | 42.174603 | 90 | 0.530297 | 315 | 2,657 | 4.326984 | 0.184127 | 0.10785 | 0.088041 | 0.070433 | 0.705062 | 0.688188 | 0.666178 | 0.55099 | 0.426999 | 0.237711 | 0 | 0.04661 | 0.289424 | 2,657 | 62 | 91 | 42.854839 | 0.675318 | 0.108393 | 0 | 0.409091 | 0 | 0 | 0.183805 | 0 | 0 | 0 | 0 | 0 | 0.113636 | 1 | 0.113636 | false | 0 | 0.022727 | 0 | 0.181818 | 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 | 0 | 0 | 0 | 1 | 0 |
6a29e328b66b3aa40c02b6c801e1beb3b20cffb7 | 1,470 | py | Python | tests/unit/transport/s3/test_settings.py | TinkoffCreditSystems/overhave | b0ab705ef5c5c5a65fa0b14b173b64fd7310e187 | [
"Apache-2.0"
] | 33 | 2021-02-01T15:49:37.000Z | 2021-12-20T00:44:43.000Z | tests/unit/transport/s3/test_settings.py | TinkoffCreditSystems/overhave | b0ab705ef5c5c5a65fa0b14b173b64fd7310e187 | [
"Apache-2.0"
] | 46 | 2021-02-03T12:56:52.000Z | 2021-12-19T18:50:27.000Z | tests/unit/transport/s3/test_settings.py | TinkoffCreditSystems/overhave | b0ab705ef5c5c5a65fa0b14b173b64fd7310e187 | [
"Apache-2.0"
] | 1 | 2021-12-07T09:02:44.000Z | 2021-12-07T09:02:44.000Z | import pytest
from pydantic import ValidationError
from overhave.transport import OverhaveS3ManagerSettings
class TestS3ManagerSettings:
""" Unit tests for :class:`OverhaveS3ManagerSettings`. """
@pytest.mark.parametrize("test_s3_enabled", [False])
def test_disabled(self, test_s3_enabled: bool) -> None:... | 39.72973 | 88 | 0.742857 | 170 | 1,470 | 6.082353 | 0.241176 | 0.110251 | 0.113153 | 0.142166 | 0.489362 | 0.246615 | 0.073501 | 0 | 0 | 0 | 0 | 0.020816 | 0.182993 | 1,470 | 36 | 89 | 40.833333 | 0.840133 | 0.034014 | 0 | 0 | 0 | 0 | 0.050283 | 0.018414 | 0 | 0 | 0 | 0 | 0.344828 | 1 | 0.103448 | false | 0 | 0.103448 | 0 | 0.241379 | 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 | 0 | 0 | 0 | 1 | 0 |
6a2a3c06f511758a8f808e719520fdb3ebac69cd | 15,015 | py | Python | examples/elCmd.py | mark-nicholson/python-editline | c23f1071c4b832a92f66e2f49142e5c5f00e500d | [
"BSD-3-Clause"
] | 4 | 2017-10-05T19:34:32.000Z | 2021-05-18T23:29:44.000Z | examples/elCmd.py | mark-nicholson/python-editline | c23f1071c4b832a92f66e2f49142e5c5f00e500d | [
"BSD-3-Clause"
] | 2 | 2018-03-30T22:38:17.000Z | 2018-03-30T22:39:13.000Z | examples/elCmd.py | mark-nicholson/python-editline | c23f1071c4b832a92f66e2f49142e5c5f00e500d | [
"BSD-3-Clause"
] | null | null | null | """A generic class to build line-oriented command interpreters.
Interpreters constructed with this class obey the following conventions:
1. End of file on input is processed as the command 'EOF'.
2. A command is parsed out of each line by collecting the prefix composed
of characters in the identchars member.
3. A ... | 35.75 | 79 | 0.556777 | 1,795 | 15,015 | 4.606685 | 0.232869 | 0.016931 | 0.019954 | 0.013545 | 0.110291 | 0.081509 | 0.039424 | 0.019108 | 0.019108 | 0.01161 | 0 | 0.005394 | 0.357909 | 15,015 | 419 | 80 | 35.835322 | 0.852297 | 0.347985 | 0 | 0.247104 | 0 | 0 | 0.044345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084942 | false | 0.019305 | 0.015444 | 0.003861 | 0.23166 | 0.042471 | 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 | 0 | 0 | 0 | 1 | 0 |
6a2bdc47419473e5c8f04286a711270211d71607 | 2,513 | py | Python | data_structures/linked_lists/ll-kth-from-end/ll_kth.py | jeremyCtown/data-structures-and-algorithms | d4ba8741f858fb5298f8ce560240373fb7742e20 | [
"MIT"
] | null | null | null | data_structures/linked_lists/ll-kth-from-end/ll_kth.py | jeremyCtown/data-structures-and-algorithms | d4ba8741f858fb5298f8ce560240373fb7742e20 | [
"MIT"
] | null | null | null | data_structures/linked_lists/ll-kth-from-end/ll_kth.py | jeremyCtown/data-structures-and-algorithms | d4ba8741f858fb5298f8ce560240373fb7742e20 | [
"MIT"
] | null | null | null | from node import Node
class LinkedList:
"""
initializes LL
"""
def __init__(self, iter=[]):
self.head = None
self._size = 0
for item in reversed(iter):
self.insert(item)
def __repr__(self):
"""
assumes head will have a val and we will need this... | 25.383838 | 58 | 0.512933 | 299 | 2,513 | 4.076923 | 0.237458 | 0.153404 | 0.053322 | 0.04676 | 0.418376 | 0.418376 | 0.378999 | 0.336341 | 0.336341 | 0.336341 | 0 | 0.004633 | 0.398727 | 2,513 | 98 | 59 | 25.642857 | 0.802118 | 0.116594 | 0 | 0.410714 | 0 | 0 | 0.021611 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.160714 | false | 0 | 0.017857 | 0 | 0.267857 | 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 | 0 | 0 | 0 | 1 | 0 |
6a2be20f58b11b8306e1cbf1b9ec46cf140c201d | 1,559 | py | Python | MuonAnalysis/MomentumScaleCalibration/test/LikelihoodPdfDBReader_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | MuonAnalysis/MomentumScaleCalibration/test/LikelihoodPdfDBReader_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | MuonAnalysis/MomentumScaleCalibration/test/LikelihoodPdfDBReader_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
process = cms.Process("LIKELIHOODPDFDBREADER")
# process.load("MuonAnalysis.MomentumScaleCalibration.local_CSA08_Y_cff")
process.source = cms.Source("EmptySource",
numberEventsInRun = cms.untracked.uint32(1),
firstRun = cms.untracked.uint32(1)
)
process.load("Configur... | 30.568627 | 79 | 0.76331 | 155 | 1,559 | 7.593548 | 0.490323 | 0.091759 | 0.047579 | 0.032285 | 0.042481 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014451 | 0.112251 | 1,559 | 50 | 80 | 31.18 | 0.835983 | 0.099423 | 0 | 0 | 0 | 0 | 0.351216 | 0.326896 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.03125 | 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 | 0 | 0 | 0 | 1 | 0 |
6a2f97206c5b9ec5564b46970658837924dcfae3 | 2,404 | py | Python | airflow/providers/microsoft/psrp/operators/psrp.py | augusto-herrmann/airflow | 7ee4295dd3f7dba4fcd763286c7823bb1707fe99 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 4 | 2021-06-26T13:37:35.000Z | 2022-01-11T15:49:44.000Z | airflow/providers/microsoft/psrp/operators/psrp.py | augusto-herrmann/airflow | 7ee4295dd3f7dba4fcd763286c7823bb1707fe99 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 33 | 2021-07-25T10:29:30.000Z | 2022-03-30T04:39:06.000Z | airflow/providers/microsoft/psrp/operators/psrp.py | augusto-herrmann/airflow | 7ee4295dd3f7dba4fcd763286c7823bb1707fe99 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 34.342857 | 89 | 0.687604 | 302 | 2,404 | 5.387417 | 0.463576 | 0.036878 | 0.024585 | 0.019668 | 0.041795 | 0.041795 | 0.041795 | 0 | 0 | 0 | 0 | 0.004308 | 0.227537 | 2,404 | 69 | 90 | 34.84058 | 0.871836 | 0.426373 | 0 | 0 | 0 | 0 | 0.120482 | 0.016566 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.142857 | 0 | 0.342857 | 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 | 0 | 0 | 0 | 1 | 0 |
6a2fb0bff9f0be5443177122a457a61eac9dfba3 | 17,104 | py | Python | appengine/monorail/services/api_pb2_v1_helpers.py | mithro/chromium-infra | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | [
"BSD-3-Clause"
] | 1 | 2018-01-02T05:47:07.000Z | 2018-01-02T05:47:07.000Z | appengine/monorail/services/api_pb2_v1_helpers.py | mithro/chromium-infra | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | [
"BSD-3-Clause"
] | null | null | null | appengine/monorail/services/api_pb2_v1_helpers.py | mithro/chromium-infra | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is govered by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
"""Convert Monorail PB objects to API PB objects"""
import datetime
import logging
import time
... | 35.485477 | 78 | 0.716265 | 2,230 | 17,104 | 5.255157 | 0.152915 | 0.011264 | 0.015018 | 0.02048 | 0.226299 | 0.171175 | 0.134653 | 0.118952 | 0.07202 | 0.056831 | 0 | 0.005348 | 0.190949 | 17,104 | 481 | 79 | 35.559252 | 0.841523 | 0.086062 | 0 | 0.149215 | 0 | 0 | 0.026999 | 0.004833 | 0 | 0 | 0 | 0.002079 | 0 | 1 | 0.052356 | false | 0 | 0.039267 | 0 | 0.151832 | 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 | 0 | 0 | 0 | 1 | 0 |
6a2fe9fc55d86e49bc69dd057bc5f300e14dbe22 | 10,782 | py | Python | excut/feedback/rulebased_deduction/deduction_engine_extended.py | mhmgad/ExCut | 09e943a23207381de3c3a9e6f70015882b8ec4af | [
"Apache-2.0"
] | 5 | 2020-11-17T19:59:49.000Z | 2021-09-23T23:10:39.000Z | excut/feedback/rulebased_deduction/deduction_engine_extended.py | mhmgad/ExCut | 09e943a23207381de3c3a9e6f70015882b8ec4af | [
"Apache-2.0"
] | null | null | null | excut/feedback/rulebased_deduction/deduction_engine_extended.py | mhmgad/ExCut | 09e943a23207381de3c3a9e6f70015882b8ec4af | [
"Apache-2.0"
] | null | null | null | """
This module contains the rule-based inference (rulebased_deduction engine)
"""
import itertools
from collections import defaultdict
from itertools import chain
from excut.explanations_mining.descriptions import dump_explanations_to_file
from excut.explanations_mining.descriptions_new import Description2, Atom, loa... | 42.785714 | 147 | 0.667501 | 1,233 | 10,782 | 5.583942 | 0.235199 | 0.019608 | 0.018591 | 0.015686 | 0.098765 | 0.052433 | 0.038635 | 0 | 0 | 0 | 0 | 0.003586 | 0.249861 | 10,782 | 251 | 148 | 42.956175 | 0.847676 | 0.235856 | 0 | 0.03252 | 0 | 0 | 0.055414 | 0.022293 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0.01626 | 0.105691 | 0.073171 | 0.390244 | 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 | 0 | 0 | 0 | 1 | 0 |
6a3060eba97a54372d78e04129b03dceb1e1d40e | 916 | py | Python | dataloader/viperlist_train.py | urasakikeisuke/rigidmask | 4bb781102218dfd11efa767e2d0ba987d9949fd1 | [
"MIT"
] | 138 | 2021-01-12T03:02:04.000Z | 2022-03-30T07:14:15.000Z | dataloader/viperlist_train.py | urasakikeisuke/rigidmask | 4bb781102218dfd11efa767e2d0ba987d9949fd1 | [
"MIT"
] | 12 | 2021-02-02T14:19:30.000Z | 2022-03-28T01:23:44.000Z | dataloader/viperlist_train.py | urasakikeisuke/rigidmask | 4bb781102218dfd11efa767e2d0ba987d9949fd1 | [
"MIT"
] | 14 | 2021-01-13T01:31:34.000Z | 2022-01-30T14:48:06.000Z | import torch.utils.data as data
from PIL import Image
import os
import os.path
import numpy as np
import pdb
import glob
IMG_EXTENSIONS = [
'.jpg', '.JPG', '.jpeg', '.JPEG',
'.png', '.PNG', '.ppm', '.PPM', '.bmp', '.BMP',
]
def is_image_file(filename):
return any(filename.endswith(extension) for extensi... | 24.756757 | 97 | 0.634279 | 138 | 916 | 4.057971 | 0.42029 | 0.0375 | 0.057143 | 0.05 | 0.082143 | 0.082143 | 0 | 0 | 0 | 0 | 0 | 0.033157 | 0.176856 | 916 | 36 | 98 | 25.444444 | 0.709549 | 0 | 0 | 0 | 0 | 0 | 0.110262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.25 | 0.035714 | 0.392857 | 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 | 0 | 0 | 0 | 1 | 0 |
6a328e84b47f7a5de237d63ba7bea1c7be663611 | 6,282 | py | Python | strava.py | AartGoossens/streamlit-activity-viewer | b43f157d8bee596908c4f2222be9bb0d8bd9b9e8 | [
"MIT"
] | 4 | 2021-05-21T11:34:00.000Z | 2022-02-17T18:22:06.000Z | strava.py | AartGoossens/streamlit-activity-viewer | b43f157d8bee596908c4f2222be9bb0d8bd9b9e8 | [
"MIT"
] | null | null | null | strava.py | AartGoossens/streamlit-activity-viewer | b43f157d8bee596908c4f2222be9bb0d8bd9b9e8 | [
"MIT"
] | null | null | null | import base64
import os
import arrow
import httpx
import streamlit as st
import sweat
from bokeh.models.widgets import Div
APP_URL = os.environ["APP_URL"]
STRAVA_CLIENT_ID = os.environ["STRAVA_CLIENT_ID"]
STRAVA_CLIENT_SECRET = os.environ["STRAVA_CLIENT_SECRET"]
STRAVA_AUTHORIZATION_URL = "https://www.strava.com/oau... | 27.552632 | 120 | 0.641356 | 773 | 6,282 | 4.956016 | 0.284605 | 0.048812 | 0.014618 | 0.01775 | 0.26651 | 0.146176 | 0.088228 | 0.066301 | 0.066301 | 0.027669 | 0 | 0.01299 | 0.24021 | 6,282 | 227 | 121 | 27.674009 | 0.78965 | 0 | 0 | 0.238372 | 0 | 0.011628 | 0.2071 | 0.031359 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075581 | false | 0 | 0.040698 | 0 | 0.19186 | 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 | 0 | 0 | 0 | 1 | 0 |
6a3376e3801e88076e88946747dfd57658118979 | 3,395 | py | Python | appliance/src/ufw_interface.py | reap3r/nmfta-bouncer | a178244dbf0b8a165aabc02a5d1ba05006f9ec22 | [
"Apache-2.0"
] | 1 | 2019-01-10T00:31:09.000Z | 2019-01-10T00:31:09.000Z | appliance/src/ufw_interface.py | nmfta-repo/nmfta-bouncer | a178244dbf0b8a165aabc02a5d1ba05006f9ec22 | [
"Apache-2.0"
] | 21 | 2019-02-28T14:23:11.000Z | 2020-07-07T20:46:37.000Z | appliance/src/ufw_interface.py | nmfta-repo/nmfta-bouncer | a178244dbf0b8a165aabc02a5d1ba05006f9ec22 | [
"Apache-2.0"
] | 2 | 2019-05-07T13:16:49.000Z | 2020-06-23T13:49:01.000Z | #!/usr/bin/env python
#shamelessy stolen from: https://gitlab.com/dhj/easyufw
# A thin wrapper over the thin wrapper that is ufw
# Usage:
# import easyufw as ufw
# ufw.disable() # disable firewall
# ufw.enable() # enable firewall
# ufw.allow() # default allow -- allow all
# ufw.allow... | 29.267241 | 77 | 0.620619 | 471 | 3,395 | 4.428875 | 0.276008 | 0.016779 | 0.021572 | 0.021093 | 0.24976 | 0.240173 | 0.220997 | 0.193193 | 0.193193 | 0.193193 | 0 | 0.016328 | 0.260383 | 3,395 | 115 | 78 | 29.521739 | 0.814417 | 0.443888 | 0 | 0.264706 | 0 | 0 | 0.040805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.014706 | 0.044118 | 0 | 0.294118 | 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 | 0 | 0 | 0 | 1 | 0 |
6a33b81f30e4d4f06b72174eedd941785bd5b519 | 1,325 | py | Python | test/libsalt/test_vehicle.py | etri-city-traffic-brain/traffic-simulator | 6d5061febeaef484388b2b5aee14d9894099d98a | [
"Apache-2.0"
] | 8 | 2020-08-27T05:44:05.000Z | 2021-12-27T05:11:17.000Z | test/libsalt/test_vehicle.py | etri-city-traffic-brain/traffic-simulator | 6d5061febeaef484388b2b5aee14d9894099d98a | [
"Apache-2.0"
] | null | null | null | test/libsalt/test_vehicle.py | etri-city-traffic-brain/traffic-simulator | 6d5061febeaef484388b2b5aee14d9894099d98a | [
"Apache-2.0"
] | 1 | 2020-11-27T05:17:29.000Z | 2020-11-27T05:17:29.000Z | import libsalt
def test(salt_scenario):
libsalt.start(salt_scenario)
libsalt.setCurrentStep(25200)
step = libsalt.getCurrentStep()
while step <= 36000:
if (step % 100 == 0):
print("Simulation Step: ", step)
test_funcs()
libsalt.simulationStep()
step = li... | 33.125 | 101 | 0.648302 | 142 | 1,325 | 5.929577 | 0.366197 | 0.064133 | 0.057007 | 0.047506 | 0.346793 | 0.078385 | 0.078385 | 0 | 0 | 0 | 0 | 0.017013 | 0.201509 | 1,325 | 39 | 102 | 33.974359 | 0.778828 | 0.394717 | 0 | 0.1 | 0 | 0 | 0.18481 | 0.097468 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.05 | 0 | 0.15 | 0.15 | 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 | 0 | 0 | 0 | 1 | 0 |
6a362d5ac32fdf3188152eb3fc2c0b00c7db0458 | 3,080 | py | Python | vunit/test/unit/test_tokenizer.py | bjacobs1/vunit | a7f7717a172855ea7852296bb768370d50cfc992 | [
"Artistic-2.0"
] | 1 | 2020-08-30T08:30:02.000Z | 2020-08-30T08:30:02.000Z | vunit/test/unit/test_tokenizer.py | smgl9/vunit | 9933d9a1ae600cc241894244361282dd7f7227d7 | [
"Artistic-2.0"
] | null | null | null | vunit/test/unit/test_tokenizer.py | smgl9/vunit | 9933d9a1ae600cc241894244361282dd7f7227d7 | [
"Artistic-2.0"
] | null | null | null | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Copyright (c) 2014-2018, Lars Asplund lars.anders.asplund@gmail.com
"""
Test of the general tokenizer
"""
from unit... | 24.64 | 98 | 0.622727 | 367 | 3,080 | 4.972752 | 0.275204 | 0.12274 | 0.093699 | 0.133151 | 0.415342 | 0.387945 | 0.264658 | 0.264658 | 0.231233 | 0.19726 | 0 | 0.014023 | 0.259091 | 3,080 | 124 | 99 | 24.83871 | 0.785714 | 0.114935 | 0 | 0.37931 | 0 | 0 | 0.164307 | 0.025335 | 0 | 0 | 0 | 0 | 0.103448 | 1 | 0.137931 | false | 0 | 0.034483 | 0.022989 | 0.218391 | 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 | 0 | 0 | 0 | 1 | 0 |
6a3701a8c1a4900d3599d12821235a51d12e4737 | 4,926 | py | Python | memeapp/views.py | barbaramootian/Memes-app | 4ffa2da997758ee4f35dc21e755e3db242b8654f | [
"MIT",
"Unlicense"
] | null | null | null | memeapp/views.py | barbaramootian/Memes-app | 4ffa2da997758ee4f35dc21e755e3db242b8654f | [
"MIT",
"Unlicense"
] | null | null | null | memeapp/views.py | barbaramootian/Memes-app | 4ffa2da997758ee4f35dc21e755e3db242b8654f | [
"MIT",
"Unlicense"
] | null | null | null | from django.shortcuts import render,redirect
from django.contrib.auth.models import User
from django.contrib import messages
from .forms import PictureUploadForm,CommentForm
from .models import Image,Profile,Likes,Comments
from django.contrib.auth.decorators import login_required
from django.contrib .auth import authen... | 35.695652 | 108 | 0.664434 | 586 | 4,926 | 5.479522 | 0.18942 | 0.037683 | 0.053254 | 0.072874 | 0.33105 | 0.296481 | 0.160698 | 0.106509 | 0.036749 | 0.036749 | 0 | 0.001295 | 0.215997 | 4,926 | 137 | 109 | 35.956204 | 0.83014 | 0 | 0 | 0.308333 | 0 | 0 | 0.118376 | 0.015025 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.025 | 0.075 | 0 | 0.3 | 0.008333 | 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 | 0 | 0 | 0 | 1 | 0 |
6a3712991b980a6711c1dba6adf131ce5c5af892 | 4,997 | py | Python | sparv/modules/hist/diapivot.py | spraakbanken/sparv-pipeline | 7293d42c577afdaf01ce8a936743f8b83d6eb962 | [
"MIT"
] | 17 | 2018-09-21T07:01:45.000Z | 2022-02-24T23:26:49.000Z | sparv/modules/hist/diapivot.py | spraakbanken/sparv-pipeline | 7293d42c577afdaf01ce8a936743f8b83d6eb962 | [
"MIT"
] | 146 | 2018-11-13T19:13:25.000Z | 2022-03-31T09:57:56.000Z | sparv/modules/hist/diapivot.py | spraakbanken/sparv-pipeline | 7293d42c577afdaf01ce8a936743f8b83d6eb962 | [
"MIT"
] | 5 | 2019-02-14T00:50:38.000Z | 2021-03-29T15:37:41.000Z | """Create diapivot annotation."""
import logging
import pickle
import xml.etree.ElementTree as etree
import sparv.util as util
from sparv import Annotation, Model, ModelOutput, Output, annotator, modelbuilder
log = logging.getLogger(__name__)
PART_DELIM1 = "^1"
# @annotator("Diapivot annotation", language=["swe-1... | 33.313333 | 119 | 0.58295 | 571 | 4,997 | 5.003503 | 0.318739 | 0.025201 | 0.017851 | 0.017851 | 0.097305 | 0.074904 | 0.074904 | 0.050403 | 0.050403 | 0.050403 | 0 | 0.003802 | 0.263158 | 4,997 | 149 | 120 | 33.536913 | 0.772135 | 0.20012 | 0 | 0.045455 | 0 | 0.011364 | 0.125965 | 0.011185 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.056818 | 0.011364 | 0.227273 | 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 | 0 | 0 | 0 | 1 | 0 |
6a388679dce82d3f7e5c312799aab790d1280f39 | 440 | py | Python | src/reporter/tests/test_api.py | msgis/ngsi-timeseries-api | 5cc7a8beab748cecfd5fba61740f3730361d4e31 | [
"MIT"
] | null | null | null | src/reporter/tests/test_api.py | msgis/ngsi-timeseries-api | 5cc7a8beab748cecfd5fba61740f3730361d4e31 | [
"MIT"
] | null | null | null | src/reporter/tests/test_api.py | msgis/ngsi-timeseries-api | 5cc7a8beab748cecfd5fba61740f3730361d4e31 | [
"MIT"
] | null | null | null | from conftest import QL_URL
import requests
def test_api():
api_url = "{}/".format(QL_URL)
r = requests.get('{}'.format(api_url))
assert r.status_code == 200, r.text
assert r.json() == {
"notify_url": "/v2/notify",
"subscriptions_url": "/v2/subscriptions",
"entities_... | 29.333333 | 53 | 0.543182 | 51 | 440 | 4.470588 | 0.490196 | 0.109649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025559 | 0.288636 | 440 | 14 | 54 | 31.428571 | 0.702875 | 0 | 0 | 0 | 0 | 0 | 0.281818 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.230769 | 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 | 0 | 0 | 0 | 1 | 0 |
6a39601bd5d34aa0ef10ce85dcff9883e1a2620c | 6,349 | py | Python | gym_combat/gym_combat/envs/main.py | refaev/combat_gym | f02fcf98e95a1dda29cdddd4ae271de3e18ea3bf | [
"MIT"
] | null | null | null | gym_combat/gym_combat/envs/main.py | refaev/combat_gym | f02fcf98e95a1dda29cdddd4ae271de3e18ea3bf | [
"MIT"
] | null | null | null | gym_combat/gym_combat/envs/main.py | refaev/combat_gym | f02fcf98e95a1dda29cdddd4ae271de3e18ea3bf | [
"MIT"
] | null | null | null | from matplotlib import style
from tqdm import tqdm
style.use("ggplot")
from gym_combat.envs.Arena.CState import State
from gym_combat.envs.Arena.Entity import Entity
from gym_combat.envs.Arena.Environment import Environment, Episode
from gym_combat.envs.Common.constants import *
from gym_combat.envs.Qtable import Qtab... | 42.326667 | 229 | 0.723106 | 860 | 6,349 | 4.925581 | 0.181395 | 0.098206 | 0.080264 | 0.042493 | 0.522191 | 0.404627 | 0.342304 | 0.267233 | 0.1695 | 0.1695 | 0 | 0.014584 | 0.200819 | 6,349 | 149 | 230 | 42.610738 | 0.82026 | 0.127422 | 0 | 0.159574 | 0 | 0 | 0.058738 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031915 | false | 0 | 0.117021 | 0 | 0.159574 | 0.212766 | 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 | 0 | 0 | 0 | 1 | 0 |
6a3afdedc7e9000d89eef5155bbd1cbb9eab9c08 | 4,132 | py | Python | libqif/core/hyper.py | ramongonze/libqif | 57be74a2342a303da5415a3d787855b8115e58f8 | [
"MIT"
] | 2 | 2021-10-16T17:34:58.000Z | 2021-11-16T16:15:13.000Z | libqif/core/hyper.py | ramongonze/libqif | 57be74a2342a303da5415a3d787855b8115e58f8 | [
"MIT"
] | null | null | null | libqif/core/hyper.py | ramongonze/libqif | 57be74a2342a303da5415a3d787855b8115e58f8 | [
"MIT"
] | null | null | null | """Hyper-distributions."""
from libqif.core.secrets import Secrets
from libqif.core.channel import Channel
from numpy import array, arange, zeros
from numpy import delete as npdelete
class Hyper:
def __init__(self, channel):
"""Hyper-distribution. To create an instance of this class it is
class i... | 37.225225 | 114 | 0.609874 | 521 | 4,132 | 4.735125 | 0.261036 | 0.043778 | 0.014593 | 0.029185 | 0.224564 | 0.162951 | 0.128902 | 0.128902 | 0.102148 | 0.102148 | 0 | 0.006849 | 0.29332 | 4,132 | 110 | 115 | 37.563636 | 0.838014 | 0.363746 | 0 | 0.208333 | 0 | 0 | 0.025497 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.083333 | 0 | 0.270833 | 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 | 0 | 0 | 0 | 1 | 0 |
6a3f937a42b26dd8a8d5325705ad3a6b2426f5e8 | 2,421 | py | Python | pong.py | Teenahshe/ponggame | 5e4032753894ce1e1ebeb51841676aac24aa22df | [
"MIT"
] | null | null | null | pong.py | Teenahshe/ponggame | 5e4032753894ce1e1ebeb51841676aac24aa22df | [
"MIT"
] | null | null | null | pong.py | Teenahshe/ponggame | 5e4032753894ce1e1ebeb51841676aac24aa22df | [
"MIT"
] | null | null | null | """
# Step 1 - Create the App
# Step 2 - Create the Game
# Step 3 - Build the Game
# Step 4 - Run the App
"""
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.properties import NumericProperty, ReferenceListProperty, ObjectProperty
from kivy.vector import Vector
from kivy.clock import C... | 28.482353 | 83 | 0.620818 | 327 | 2,421 | 4.525994 | 0.299694 | 0.064865 | 0.043243 | 0.036486 | 0.074324 | 0.02973 | 0 | 0 | 0 | 0 | 0 | 0.024812 | 0.28418 | 2,421 | 84 | 84 | 28.821429 | 0.829198 | 0.219744 | 0 | 0.041667 | 0 | 0 | 0.006145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.5 | 0.020833 | 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 | 0 | 0 | 0 | 1 | 0 |
6a3fb6dff04d4cee8ea3de55fdb86c079b4a97dc | 18,713 | py | Python | bridge_RL_agent_v16.py | EricZLou/BridgeRLAgent | 78329eec5fcf320d2850f44dc33b138919fba82d | [
"MIT"
] | null | null | null | bridge_RL_agent_v16.py | EricZLou/BridgeRLAgent | 78329eec5fcf320d2850f44dc33b138919fba82d | [
"MIT"
] | null | null | null | bridge_RL_agent_v16.py | EricZLou/BridgeRLAgent | 78329eec5fcf320d2850f44dc33b138919fba82d | [
"MIT"
] | null | null | null | """
CS 238 Final Project: Bridge RL Agent
Eric Lou & Kimberly Tran
"""
import copy
import datetime
import numpy as np
import random
from collections import namedtuple
"""'''''''''''''''''''''''''''''''''''''''''''''''''''''''''
REPRESENTATIONS OF BRIDGE
Representing a "Card" as an integer:
Cards 0 -> 12 are Club... | 37.880567 | 141 | 0.579276 | 2,554 | 18,713 | 4.036805 | 0.136257 | 0.042677 | 0.021436 | 0.021436 | 0.340834 | 0.29612 | 0.241707 | 0.193986 | 0.178274 | 0.153055 | 0 | 0.032978 | 0.288623 | 18,713 | 493 | 142 | 37.957404 | 0.741511 | 0.088708 | 0 | 0.149425 | 0 | 0.007663 | 0.088801 | 0.040498 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072797 | false | 0 | 0.019157 | 0 | 0.145594 | 0.02682 | 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 | 0 | 0 | 0 | 1 | 0 |
6a40e4db387ff19b81d94d3c6d3164793744fc01 | 1,411 | py | Python | tests/hacsbase/test_hacsbase_data.py | chbonkie/hacs | 81db513a0d3d1af1acf25da7b706ae62d8fdb6fa | [
"MIT"
] | 2 | 2019-06-18T11:30:53.000Z | 2019-10-03T21:34:11.000Z | tests/hacsbase/test_hacsbase_data.py | chbonkie/hacs | 81db513a0d3d1af1acf25da7b706ae62d8fdb6fa | [
"MIT"
] | 341 | 2019-06-18T11:30:55.000Z | 2021-07-15T05:38:46.000Z | tests/hacsbase/test_hacsbase_data.py | chbonkie/hacs | 81db513a0d3d1af1acf25da7b706ae62d8fdb6fa | [
"MIT"
] | null | null | null | """Data Test Suite."""
from aiogithubapi.objects import repository
import pytest
import os
from homeassistant.core import HomeAssistant
from custom_components.hacs.hacsbase.data import HacsData
from custom_components.hacs.helpers.classes.repository import HacsRepository
from custom_components.hacs.hacsbase.configuratio... | 30.021277 | 76 | 0.763997 | 175 | 1,411 | 5.982857 | 0.285714 | 0.045845 | 0.076409 | 0.091691 | 0.496657 | 0.43553 | 0.407832 | 0.407832 | 0.407832 | 0.362942 | 0 | 0.002502 | 0.150248 | 1,411 | 46 | 77 | 30.673913 | 0.870726 | 0.011339 | 0 | 0.5 | 0 | 0 | 0.00072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.236842 | 0 | 0.236842 | 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 | 0 | 0 | 0 | 1 | 0 |
6a42b37643b67ad750eaa6bdb4b138eb04976787 | 2,736 | py | Python | bpython/curtsiesfrontend/parse.py | dtrodrigues/bpython | 143e4e55d8f5227149528a5880a32a516a40f14d | [
"PSF-2.0"
] | 2,168 | 2015-01-01T11:41:40.000Z | 2022-03-29T07:44:48.000Z | bpython/curtsiesfrontend/parse.py | dtrodrigues/bpython | 143e4e55d8f5227149528a5880a32a516a40f14d | [
"PSF-2.0"
] | 521 | 2015-01-02T16:43:44.000Z | 2022-03-31T12:37:55.000Z | bpython/curtsiesfrontend/parse.py | dtrodrigues/bpython | 143e4e55d8f5227149528a5880a32a516a40f14d | [
"PSF-2.0"
] | 250 | 2015-01-08T21:28:18.000Z | 2022-02-28T16:07:43.000Z | import re
from curtsies.formatstring import fmtstr, FmtStr
from curtsies.termformatconstants import (
FG_COLORS,
BG_COLORS,
colors as CURTSIES_COLORS,
)
from functools import partial
from ..lazyre import LazyReCompile
COLORS = CURTSIES_COLORS + ("default",)
CNAMES = dict(zip("krgybmcwd", COLORS))
# hack... | 25.811321 | 75 | 0.592105 | 353 | 2,736 | 4.424929 | 0.303116 | 0.069142 | 0.105634 | 0.03073 | 0.21767 | 0.1242 | 0.1242 | 0.1242 | 0.099872 | 0 | 0 | 0.008538 | 0.272295 | 2,736 | 105 | 76 | 26.057143 | 0.775992 | 0.107091 | 0 | 0.081081 | 0 | 0 | 0.038514 | 0 | 0 | 0 | 0 | 0.009524 | 0.013514 | 1 | 0.067568 | false | 0 | 0.067568 | 0 | 0.202703 | 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 | 0 | 0 | 0 | 1 | 0 |
6a448dff56ffb800e61093b735c0b738b7008227 | 12,168 | py | Python | VegaZero2VegaLite.py | Thanksyy/Vega-Zero | dd25cb145faec047b01ca54c69ba96c56adb99f4 | [
"MIT"
] | 5 | 2021-09-16T11:55:12.000Z | 2022-03-03T12:20:22.000Z | VegaZero2VegaLite.py | Thanksyy/Vega-Zero | dd25cb145faec047b01ca54c69ba96c56adb99f4 | [
"MIT"
] | 1 | 2021-11-22T09:41:52.000Z | 2021-11-24T02:25:49.000Z | VegaZero2VegaLite.py | Thanksyy/Vega-Zero | dd25cb145faec047b01ca54c69ba96c56adb99f4 | [
"MIT"
] | 2 | 2021-09-17T09:44:18.000Z | 2022-03-05T19:14:45.000Z | __author__ = "Yuyu Luo"
import json
import pandas
class VegaZero2VegaLite(object):
def __init__(self):
pass
def parse_vegaZero(self, vega_zero):
self.parsed_vegaZero = {
'mark': '',
'data': '',
'encoding': {
'x': '',
'y': {
... | 48.094862 | 123 | 0.469921 | 1,095 | 12,168 | 5.050228 | 0.122374 | 0.054973 | 0.098373 | 0.136709 | 0.641591 | 0.51953 | 0.459675 | 0.37396 | 0.204521 | 0.130922 | 0 | 0.005846 | 0.353386 | 12,168 | 252 | 124 | 48.285714 | 0.697001 | 0.022436 | 0 | 0.251163 | 0 | 0 | 0.17264 | 0 | 0.018605 | 0 | 0 | 0 | 0 | 1 | 0.013953 | false | 0.009302 | 0.009302 | 0 | 0.037209 | 0.009302 | 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 | 0 | 0 | 0 | 1 | 0 |
6a452a7c2c457bc63abb482a8725d53337bd5e88 | 6,254 | py | Python | utils/dancer.py | kmzbrnoI/ac-python | 383802734e17d2a00c0b86083cf923517db02acd | [
"Apache-2.0"
] | null | null | null | utils/dancer.py | kmzbrnoI/ac-python | 383802734e17d2a00c0b86083cf923517db02acd | [
"Apache-2.0"
] | 2 | 2020-04-12T11:31:24.000Z | 2020-04-14T17:17:00.000Z | utils/dancer.py | kmzbrnoI/ac-python | 383802734e17d2a00c0b86083cf923517db02acd | [
"Apache-2.0"
] | null | null | null | """Library for executing user-defined dance."""
import logging
from typing import Any, Dict, Optional, Callable
import datetime
import ac
import ac.blocks
from ac import ACs, AC
JC = Dict[str, Any]
class DanceStartException(Exception):
pass
class Step:
"""Base class for all specific dance steps."""
... | 28.820276 | 79 | 0.570675 | 799 | 6,254 | 4.337922 | 0.166458 | 0.032314 | 0.023081 | 0.026255 | 0.306982 | 0.255049 | 0.201096 | 0.171379 | 0.160993 | 0.128679 | 0 | 0.000914 | 0.300448 | 6,254 | 216 | 80 | 28.953704 | 0.791314 | 0.044132 | 0 | 0.301282 | 0 | 0 | 0.071248 | 0.012464 | 0 | 0 | 0 | 0 | 0.025641 | 1 | 0.166667 | false | 0.044872 | 0.038462 | 0.032051 | 0.339744 | 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 | 0 | 0 | 0 | 1 | 0 |
6a46dce57aefdfdd686c732c07a762fc3d1085f3 | 780 | py | Python | praw/models/reddit/mixins/reportable.py | zachwylde00/praw | ad1d73e6a4a33397bbd983bdfde1a4f99ce5607d | [
"BSD-2-Clause"
] | 38 | 2020-03-14T22:22:40.000Z | 2022-02-24T18:05:45.000Z | praw/models/reddit/mixins/reportable.py | zachwylde00/praw | ad1d73e6a4a33397bbd983bdfde1a4f99ce5607d | [
"BSD-2-Clause"
] | 3 | 2021-03-30T13:15:12.000Z | 2021-09-22T18:55:59.000Z | praw/models/reddit/mixins/reportable.py | zachwylde00/praw | ad1d73e6a4a33397bbd983bdfde1a4f99ce5607d | [
"BSD-2-Clause"
] | 9 | 2020-02-21T23:55:13.000Z | 2021-03-22T07:48:23.000Z | """Provide the ReportableMixin class."""
from ....const import API_PATH
class ReportableMixin:
"""Interface for RedditBase classes that can be reported."""
def report(self, reason):
"""Report this object to the moderators of its subreddit.
:param reason: The reason for reporting.
Ra... | 26 | 76 | 0.60641 | 83 | 780 | 5.662651 | 0.626506 | 0.029787 | 0.076596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010601 | 0.274359 | 780 | 29 | 77 | 26.896552 | 0.819788 | 0.597436 | 0 | 0 | 0 | 0 | 0.064815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6a49b924a41db77163a887ba4fb25f3e874556fc | 3,158 | py | Python | mellon/factories/filesystem/file.py | LaudateCorpus1/mellon | a7a9f6d8abf1dd03b63a94ddb4439c6cc6c2e272 | [
"MIT"
] | 5 | 2016-12-20T19:39:01.000Z | 2021-01-08T16:19:17.000Z | mellon/factories/filesystem/file.py | CrowdStrike/mellon | 7216f255d397a41b1c2777a1b02f1c085d07ddfe | [
"MIT"
] | 1 | 2018-03-21T17:05:13.000Z | 2018-03-21T17:05:13.000Z | mellon/factories/filesystem/file.py | LaudateCorpus1/mellon | a7a9f6d8abf1dd03b63a94ddb4439c6cc6c2e272 | [
"MIT"
] | 2 | 2017-11-01T15:03:27.000Z | 2018-11-13T03:04:44.000Z | import collections
import os.path
from zope import component
from zope import interface
from zope.component.factory import Factory
from sparc.configuration import container
import mellon
@interface.implementer(mellon.IByteMellonFile)
class MellonByteFileFromFilePathAndConfig(object):
def __init__(self, file_p... | 39.974684 | 111 | 0.662445 | 290 | 3,158 | 7.003448 | 0.303448 | 0.047267 | 0.047267 | 0.068932 | 0.271787 | 0.271787 | 0.271787 | 0.181192 | 0.181192 | 0.181192 | 0 | 0.000428 | 0.260608 | 3,158 | 78 | 112 | 40.487179 | 0.869379 | 0.08993 | 0 | 0.315789 | 0 | 0 | 0.0836 | 0.056208 | 0 | 0 | 0 | 0 | 0 | 1 | 0.140351 | false | 0 | 0.122807 | 0.035088 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6a4a8d86cea615c452f20cba99db27d3430077bf | 4,840 | py | Python | set1/c06_attack_repeating_key_xor.py | kangtastic/cryptopals | 7014a08b836b3f9ebfdc889123ccf67406738dac | [
"WTFPL"
] | 1 | 2021-07-05T09:13:48.000Z | 2021-07-05T09:13:48.000Z | set1/c06_attack_repeating_key_xor.py | kangtastic/cryptopals | 7014a08b836b3f9ebfdc889123ccf67406738dac | [
"WTFPL"
] | null | null | null | set1/c06_attack_repeating_key_xor.py | kangtastic/cryptopals | 7014a08b836b3f9ebfdc889123ccf67406738dac | [
"WTFPL"
] | 1 | 2020-04-18T19:53:02.000Z | 2020-04-18T19:53:02.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Break repeating-key XOR
#
# It is officially on, now.
#
# This challenge isn't conceptually hard, but it involves actual
# error-prone coding. The other challenges in this set are there to bring
# you up to speed. This one is there to qualify you. If you can do t... | 32.266667 | 94 | 0.667355 | 766 | 4,840 | 4.168407 | 0.385117 | 0.026308 | 0.032884 | 0.015659 | 0.054494 | 0.009396 | 0 | 0 | 0 | 0 | 0 | 0.021922 | 0.23657 | 4,840 | 149 | 95 | 32.483221 | 0.842219 | 0.604132 | 0 | 0 | 0 | 0 | 0.02187 | 0 | 0 | 0 | 0.00164 | 0 | 0 | 1 | 0.068182 | false | 0.022727 | 0.136364 | 0 | 0.25 | 0.068182 | 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 | 0 | 0 | 0 | 1 | 0 |
6a4a939ebfe3446641070ee1531f5dae14b39a3f | 26,798 | py | Python | c2nl/models/transformer.py | kopf-yhs/ncscos | 8248aaad32d4d19c01d070bf0dfba7aab849ba1d | [
"MIT"
] | 22 | 2021-05-22T19:58:39.000Z | 2022-03-20T03:43:51.000Z | c2nl/models/transformer.py | kopf-yhs/ncscos | 8248aaad32d4d19c01d070bf0dfba7aab849ba1d | [
"MIT"
] | 1 | 2021-07-17T13:15:33.000Z | 2022-02-24T13:59:14.000Z | c2nl/models/transformer.py | kopf-yhs/ncscos | 8248aaad32d4d19c01d070bf0dfba7aab849ba1d | [
"MIT"
] | 2 | 2021-05-10T05:18:00.000Z | 2022-02-24T19:01:50.000Z | import torch
import torch.nn as nn
import torch.nn.functional as f
from prettytable import PrettyTable
from c2nl.modules.char_embedding import CharEmbedding
from c2nl.modules.embeddings import Embeddings
from c2nl.modules.highway import Highway
from c2nl.encoders.transformer import TransformerEncoder
from c2nl.decoder... | 42.334913 | 98 | 0.504926 | 2,930 | 26,798 | 4.305802 | 0.104096 | 0.026078 | 0.008561 | 0.002536 | 0.394499 | 0.336002 | 0.287254 | 0.245244 | 0.233672 | 0.212429 | 0 | 0.00806 | 0.412008 | 26,798 | 632 | 99 | 42.401899 | 0.7926 | 0.048996 | 0 | 0.382409 | 0 | 0 | 0.02635 | 0 | 0 | 0 | 0 | 0 | 0.013384 | 1 | 0.038241 | false | 0 | 0.024857 | 0.007648 | 0.107075 | 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 | 0 | 0 | 0 | 1 | 0 |
6a4c4690f289d0da27d1fd0d344a2302e88669f6 | 3,344 | py | Python | cattle/plugins/docker/delegate.py | cjellick/python-agent | 6991369e309d050a43cba770df6e8ddd758f671d | [
"Apache-2.0"
] | 8 | 2015-07-20T15:29:25.000Z | 2018-06-27T13:30:13.000Z | cattle/plugins/docker/delegate.py | cjellick/python-agent | 6991369e309d050a43cba770df6e8ddd758f671d | [
"Apache-2.0"
] | 47 | 2015-07-13T23:47:35.000Z | 2020-07-31T16:06:34.000Z | cattle/plugins/docker/delegate.py | cjellick/python-agent | 6991369e309d050a43cba770df6e8ddd758f671d | [
"Apache-2.0"
] | 21 | 2015-08-21T01:58:47.000Z | 2021-01-24T11:59:25.000Z | import logging
from cattle import Config
from cattle.utils import reply, popen
from .compute import DockerCompute
from cattle.agent.handler import BaseHandler
from cattle.progress import Progress
from cattle.type_manager import get_type, MARSHALLER
from . import docker_client
import subprocess
import os
import time
... | 27.636364 | 78 | 0.535287 | 366 | 3,344 | 4.825137 | 0.36612 | 0.028313 | 0.016988 | 0.018686 | 0.08154 | 0.070215 | 0.070215 | 0.070215 | 0.070215 | 0.070215 | 0 | 0.005479 | 0.345096 | 3,344 | 120 | 79 | 27.866667 | 0.800913 | 0.008971 | 0 | 0.126316 | 0 | 0 | 0.093297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042105 | false | 0.010526 | 0.115789 | 0.010526 | 0.252632 | 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 | 0 | 0 | 0 | 1 | 0 |
6a4da8a95b67b63d32309af5c23df6977103484a | 6,391 | py | Python | bitraider/strategy.py | ehickox2012/bitraider | dcc695b93dc1c22415780e3f5ff9f7ee29d6988c | [
"MIT"
] | 2 | 2015-03-05T22:28:43.000Z | 2015-03-12T23:07:54.000Z | bitraider/strategy.py | ehickox/bitraider | dcc695b93dc1c22415780e3f5ff9f7ee29d6988c | [
"MIT"
] | 2 | 2015-04-05T21:13:59.000Z | 2015-04-05T21:16:05.000Z | bitraider/strategy.py | ehickox/bitraider | dcc695b93dc1c22415780e3f5ff9f7ee29d6988c | [
"MIT"
] | 1 | 2015-08-16T18:53:00.000Z | 2015-08-16T18:53:00.000Z | import sys
import pytz
#import xml.utils.iso8601
import time
import numpy
from datetime import date, datetime, timedelta
from matplotlib import pyplot as plt
from exchange import cb_exchange as cb_exchange
from exchange import CoinbaseExchangeAuth
from abc import ABCMeta, abstractmethod
class strategy(object):
"""... | 42.324503 | 267 | 0.636833 | 801 | 6,391 | 4.913858 | 0.283396 | 0.042683 | 0.025915 | 0.022358 | 0.158283 | 0.096799 | 0.045224 | 0.032012 | 0 | 0 | 0 | 0.01592 | 0.26287 | 6,391 | 150 | 268 | 42.606667 | 0.819571 | 0.264434 | 0 | 0.020619 | 0 | 0 | 0.083315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041237 | false | 0.010309 | 0.092784 | 0 | 0.185567 | 0.113402 | 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 | 0 | 0 | 0 | 1 | 0 |
dbde2669ec80772673d5f19711266d806c399444 | 7,303 | py | Python | biggan_discovery/orojar_discover.py | andreasjansson/OroJaR | ebb8c0333bbd33c063b6dd4a21a0559eb86d13e9 | [
"BSD-2-Clause"
] | 47 | 2021-07-26T07:54:06.000Z | 2022-02-07T16:37:40.000Z | biggan_discovery/orojar_discover.py | andreasjansson/OroJaR | ebb8c0333bbd33c063b6dd4a21a0559eb86d13e9 | [
"BSD-2-Clause"
] | 1 | 2021-09-14T07:26:15.000Z | 2021-09-14T07:45:59.000Z | biggan_discovery/orojar_discover.py | andreasjansson/OroJaR | ebb8c0333bbd33c063b6dd4a21a0559eb86d13e9 | [
"BSD-2-Clause"
] | 7 | 2021-08-21T07:33:35.000Z | 2022-03-16T23:21:29.000Z | """
Learns a matrix of Z-Space directions using a pre-trained BigGAN Generator.
Modified from train.py in the PyTorch BigGAN repo.
"""
import os
from tqdm import tqdm
import torch
import torch.nn as nn
import torch.optim
import utils
import train_fns
from sync_batchnorm import patch_replication_callback
from torch.u... | 41.259887 | 113 | 0.633301 | 1,007 | 7,303 | 4.365442 | 0.285005 | 0.021838 | 0.016379 | 0.009554 | 0.223157 | 0.188581 | 0.163103 | 0.163103 | 0.163103 | 0.139445 | 0 | 0.007323 | 0.252088 | 7,303 | 176 | 114 | 41.494318 | 0.79751 | 0.169656 | 0 | 0.136752 | 0 | 0 | 0.119874 | 0.007305 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034188 | false | 0 | 0.102564 | 0 | 0.153846 | 0.051282 | 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 | 0 | 0 | 0 | 1 | 0 |
dbde9d29ec27efc6184d1b64557b595e4c3e0755 | 6,837 | py | Python | packer/resources/bootstrap_node.py | VIOOH/nile | 893802387b3891ea02aae05f39ff4aa051354f18 | [
"Apache-2.0"
] | 4 | 2021-07-09T15:55:04.000Z | 2021-12-28T10:34:12.000Z | packer/resources/bootstrap_node.py | Kishore88/nile | 893802387b3891ea02aae05f39ff4aa051354f18 | [
"Apache-2.0"
] | null | null | null | packer/resources/bootstrap_node.py | Kishore88/nile | 893802387b3891ea02aae05f39ff4aa051354f18 | [
"Apache-2.0"
] | 3 | 2021-07-09T15:55:09.000Z | 2021-07-10T10:24:02.000Z | #!/usr/bin/env python3
import os
import re
import glob
import boto3
import requests
import subprocess
from time import sleep
AWS_REGION = os.environ['AWS_REGION']
DEPLOY_UUID = os.environ['DEPLOY_UUID']
SERVICE_NAME = os.environ['SERVICE_NAME']
MOUNT_POINT = "/var/lib/" + SERVICE_NAME... | 27.130952 | 111 | 0.584321 | 928 | 6,837 | 4.104526 | 0.192888 | 0.040956 | 0.047257 | 0.052507 | 0.373851 | 0.283802 | 0.257548 | 0.203465 | 0.192964 | 0.133893 | 0 | 0.022873 | 0.271025 | 6,837 | 251 | 112 | 27.239044 | 0.741372 | 0.043733 | 0 | 0.213018 | 0 | 0 | 0.116404 | 0.011947 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053254 | false | 0 | 0.04142 | 0 | 0.118343 | 0.023669 | 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 | 0 | 0 | 0 | 1 | 0 |
dbdf10789c79bc37376b7fcca6ae9a0b284ccf83 | 4,412 | py | Python | parsers/srum_parser.py | otoriocyber/Chronos | d70e22afed723c0ad4b7e449bd253e15351bada6 | [
"MIT"
] | 12 | 2021-04-20T23:08:28.000Z | 2022-02-18T01:23:42.000Z | parsers/srum_parser.py | otoriocyber/chronos | d70e22afed723c0ad4b7e449bd253e15351bada6 | [
"MIT"
] | null | null | null | parsers/srum_parser.py | otoriocyber/chronos | d70e22afed723c0ad4b7e449bd253e15351bada6 | [
"MIT"
] | null | null | null | import csv
import datetime
import random
import os
from parsers.parser_base import ParserBase
FILE_TIME_EPOCH = datetime.datetime(1601, 1, 1)
FILE_TIME_MICROSECOND = 10
def filetime_to_epoch_datetime(file_time):
if isinstance(file_time, int):
microseconds_since_file_time_epoch = file_time / FILE_TIME_MIC... | 45.020408 | 122 | 0.522439 | 428 | 4,412 | 5.140187 | 0.299065 | 0.061364 | 0.029545 | 0.052273 | 0.232273 | 0.105455 | 0.090909 | 0.058182 | 0.058182 | 0.058182 | 0 | 0.010567 | 0.356528 | 4,412 | 97 | 123 | 45.484536 | 0.764354 | 0 | 0 | 0.178571 | 0 | 0.011905 | 0.147779 | 0.013599 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.059524 | 0 | 0.154762 | 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 | 0 | 0 | 0 | 1 | 0 |
dbe088a01c052a1745bf75ba9a62254a5f03f63b | 4,829 | py | Python | track.py | AliabbasMerchant/fileTrackAndBackup | 8cdf97be58c69061e1f60c08f89b524d91f8c17d | [
"MIT"
] | 6 | 2018-08-11T12:00:11.000Z | 2021-06-15T09:11:34.000Z | track.py | AliabbasMerchant/fileTrackAndBackup | 8cdf97be58c69061e1f60c08f89b524d91f8c17d | [
"MIT"
] | null | null | null | track.py | AliabbasMerchant/fileTrackAndBackup | 8cdf97be58c69061e1f60c08f89b524d91f8c17d | [
"MIT"
] | null | null | null | #! /usr/bin/python3
from help import *
import time
# short-forms are used, so as to reduce the .json file size
# t : type - d or f
# d : directory
# f : file
# ts : timestamp
# dirs : The dictionary containing info about directory contents
# time : edit time of the file/folder
# s : size of the file/folder
# p : full ... | 40.923729 | 120 | 0.57631 | 658 | 4,829 | 3.971125 | 0.18845 | 0.058171 | 0.053578 | 0.048986 | 0.385763 | 0.355913 | 0.355913 | 0.335247 | 0.319939 | 0.319939 | 0 | 0.003178 | 0.283288 | 4,829 | 117 | 121 | 41.273504 | 0.751806 | 0.190516 | 0 | 0.238095 | 0 | 0 | 0.103368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.02381 | 0 | 0.083333 | 0.107143 | 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 | 0 | 0 | 0 | 1 | 0 |
dbe08be9b24ad6685aafe893f7f5de89e33519df | 31,693 | py | Python | clang/tools/scan-build-py/libscanbuild/analyze.py | Kvarnefalk/llvm-project | 8b5f5798aaa24074609d151ea906d114cf5337c2 | [
"Apache-2.0"
] | 1 | 2021-02-17T04:40:38.000Z | 2021-02-17T04:40:38.000Z | clang/tools/scan-build-py/libscanbuild/analyze.py | Kvarnefalk/llvm-project | 8b5f5798aaa24074609d151ea906d114cf5337c2 | [
"Apache-2.0"
] | null | null | null | clang/tools/scan-build-py/libscanbuild/analyze.py | Kvarnefalk/llvm-project | 8b5f5798aaa24074609d151ea906d114cf5337c2 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
""" This module implements the 'scan-build' command API.
To run the static analyzer against a bui... | 39.175525 | 96 | 0.63686 | 3,956 | 31,693 | 4.954247 | 0.167088 | 0.012858 | 0.005102 | 0.008164 | 0.176182 | 0.123782 | 0.094546 | 0.079239 | 0.06434 | 0.056891 | 0 | 0.00286 | 0.260815 | 31,693 | 808 | 97 | 39.22401 | 0.833739 | 0.276055 | 0 | 0.168605 | 0 | 0 | 0.137175 | 0.026874 | 0 | 0 | 0 | 0 | 0.001938 | 1 | 0.069767 | false | 0.013566 | 0.040698 | 0 | 0.182171 | 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 | 0 | 0 | 0 | 1 | 0 |
dbe1408e84afa0a04966d9f60dcf8a3847bfc25f | 1,460 | py | Python | tableborder.py | PIRXrav/pyhack | af5c86fb721053d8a3e819ab772c8144a23b86bf | [
"MIT"
] | null | null | null | tableborder.py | PIRXrav/pyhack | af5c86fb721053d8a3e819ab772c8144a23b86bf | [
"MIT"
] | null | null | null | tableborder.py | PIRXrav/pyhack | af5c86fb721053d8a3e819ab772c8144a23b86bf | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# pylint: disable=C0103
# pylint: disable=R0902
# pylint: disable=R0903
# pylint: disable=R0913
"""
Définie la classe TableBorder
"""
class TableBorder:
"""
Facillite l'usage de l'UNICODE
"""
def __init__(self,
top_left, top_split, top_right,
mi... | 30.416667 | 56 | 0.469863 | 151 | 1,460 | 4.337748 | 0.370861 | 0.079389 | 0.033588 | 0.042748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107811 | 0.377397 | 1,460 | 47 | 57 | 31.06383 | 0.612761 | 0.125342 | 0 | 0.066667 | 0 | 0 | 0.116544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0 | 0 | 0.066667 | 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 | 0 | 0 | 0 | 1 | 0 |
dbe1aa3b9d736d93221a08965b3b705efeef3804 | 216 | py | Python | app/urls.py | tkf2019/Vue-Django-SAST-Search | 385af9819c608ce2d0845ed3e786777ff52b52b3 | [
"MIT"
] | null | null | null | app/urls.py | tkf2019/Vue-Django-SAST-Search | 385af9819c608ce2d0845ed3e786777ff52b52b3 | [
"MIT"
] | null | null | null | app/urls.py | tkf2019/Vue-Django-SAST-Search | 385af9819c608ce2d0845ed3e786777ff52b52b3 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^register/', views.register),
url(r'^login/', views.login),
url(r'logout/', views.logout),
url(r'search/', views.search)
]
| 19.636364 | 39 | 0.643519 | 30 | 216 | 4.633333 | 0.433333 | 0.115108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175926 | 216 | 10 | 40 | 21.6 | 0.780899 | 0 | 0 | 0 | 0 | 0 | 0.143519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 1 | 0 |
dbe1d984552acfc78008a25befd61632a445f85d | 28,508 | py | Python | custom_components/hasl/sensor.py | Ziqqo/hasl-platform | 27386314bf58626538d59c38d89249b07ed9256a | [
"Apache-2.0"
] | null | null | null | custom_components/hasl/sensor.py | Ziqqo/hasl-platform | 27386314bf58626538d59c38d89249b07ed9256a | [
"Apache-2.0"
] | null | null | null | custom_components/hasl/sensor.py | Ziqqo/hasl-platform | 27386314bf58626538d59c38d89249b07ed9256a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Simple service for SL (Storstockholms Lokaltrafik)."""
import datetime
import json
import logging
from datetime import timedelta
import homeassistant.helpers.config_validation as cv
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
from ho... | 35.369727 | 79 | 0.542058 | 2,842 | 28,508 | 5.234694 | 0.133357 | 0.023593 | 0.018283 | 0.009679 | 0.437655 | 0.387309 | 0.333132 | 0.31626 | 0.284735 | 0.275459 | 0 | 0.007154 | 0.357654 | 28,508 | 805 | 80 | 35.413665 | 0.805264 | 0.068753 | 0 | 0.37585 | 0 | 0 | 0.107269 | 0.002578 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052721 | false | 0 | 0.022109 | 0 | 0.146259 | 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 | 0 | 0 | 0 | 1 | 0 |
dbe25f137db8fdda41fdc3006d42e7f6d84f1a1d | 2,067 | py | Python | simbad_tools.py | ishivvers/astro | ff3f3b9f8ef4013157c277bbb5bf82ac1bd3287d | [
"MIT"
] | 1 | 2015-12-06T00:19:35.000Z | 2015-12-06T00:19:35.000Z | simbad_tools.py | ishivvers/astro | ff3f3b9f8ef4013157c277bbb5bf82ac1bd3287d | [
"MIT"
] | null | null | null | simbad_tools.py | ishivvers/astro | ff3f3b9f8ef4013157c277bbb5bf82ac1bd3287d | [
"MIT"
] | null | null | null | """
A quick library to deal with searching simbad for info
about a SN and parsing the results.
Author: Isaac Shivvers, ishivvers@berkeley.edu, 2014
example SIMBAD uri query:
http://simbad.u-strasbg.fr/simbad/sim-id?output.format=ASCII&Ident=sn%201998S
"""
import re
from urllib2 import urlopen
def get_SN_info( nam... | 32.296875 | 88 | 0.610063 | 260 | 2,067 | 4.796154 | 0.376923 | 0.028869 | 0.0417 | 0.028869 | 0.283881 | 0.283881 | 0.230954 | 0.230954 | 0.230954 | 0.230954 | 0 | 0.017165 | 0.238994 | 2,067 | 63 | 89 | 32.809524 | 0.775588 | 0.279149 | 0 | 0.361111 | 0 | 0.027778 | 0.130345 | 0.056552 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0.027778 | 0.055556 | 0 | 0.111111 | 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 | 0 | 0 | 0 | 1 | 0 |
dbe3699b610c3c766074b1340770c91698f9123b | 15,647 | py | Python | robots/environments.py | StanfordASL/soft-robot-control | 29ade9b7b952e25e639b42767a4f09c87a0e824a | [
"MIT"
] | 5 | 2021-03-07T11:42:11.000Z | 2022-02-28T09:46:05.000Z | robots/environments.py | StanfordASL/soft-robot-control | 29ade9b7b952e25e639b42767a4f09c87a0e824a | [
"MIT"
] | null | null | null | robots/environments.py | StanfordASL/soft-robot-control | 29ade9b7b952e25e639b42767a4f09c87a0e824a | [
"MIT"
] | 3 | 2021-01-23T11:09:40.000Z | 2022-03-02T11:54:57.000Z | import os
from math import cos
from math import sin
import Sofa.Core
from splib.numerics import Quat, Vec3
from sofacontrol import measurement_models
path = os.path.dirname(os.path.abspath(__file__))
class TemplateEnvironment:
def __init__(self, name='Template', rayleighMass=0.1, rayleighStiffness=0.1, dt=0.01... | 49.83121 | 148 | 0.547964 | 1,571 | 15,647 | 5.408657 | 0.185232 | 0.059315 | 0.072025 | 0.016006 | 0.625868 | 0.555608 | 0.539249 | 0.522773 | 0.491938 | 0.452277 | 0 | 0.043757 | 0.301847 | 15,647 | 313 | 149 | 49.990415 | 0.734072 | 0.130057 | 0 | 0.275701 | 0 | 0 | 0.167037 | 0.050771 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028037 | false | 0 | 0.028037 | 0 | 0.088785 | 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 | 0 | 0 | 0 | 1 | 0 |
dbe3f5f2703d36ffae51f8561d55eb622bc98049 | 21,019 | py | Python | generate_training_data_drb.py | SimonTopp/Graph-WaveNet | ef63a80cc397744667a5d27f7c410c10e3e03a4c | [
"MIT"
] | null | null | null | generate_training_data_drb.py | SimonTopp/Graph-WaveNet | ef63a80cc397744667a5d27f7c410c10e3e03a4c | [
"MIT"
] | null | null | null | generate_training_data_drb.py | SimonTopp/Graph-WaveNet | ef63a80cc397744667a5d27f7c410c10e3e03a4c | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import argparse
import numpy as np
import os
import pandas as pd
import util
import os.path
import pandas as pd
import numpy as np
import yaml
import xa... | 39.658491 | 120 | 0.63709 | 3,145 | 21,019 | 4.019396 | 0.138951 | 0.016138 | 0.012103 | 0.021359 | 0.39807 | 0.33692 | 0.304565 | 0.271418 | 0.235029 | 0.228384 | 0 | 0.012987 | 0.252676 | 21,019 | 530 | 121 | 39.658491 | 0.791762 | 0.341072 | 0 | 0.186235 | 0 | 0 | 0.088944 | 0.013684 | 0 | 0 | 0 | 0 | 0.004049 | 1 | 0.052632 | false | 0 | 0.064777 | 0 | 0.174089 | 0.004049 | 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 | 0 | 0 | 0 | 1 | 0 |
dbe6b1bbfa7c8868231f9a2e70cb8975c45626ee | 434 | py | Python | cs101/module8/8-1/chroma1.py | idsdlab/basicai_sp21 | af9acba34c0417fed830de1b61753c50fd303169 | [
"MIT"
] | 1 | 2021-03-23T16:18:00.000Z | 2021-03-23T16:18:00.000Z | cs101/module8/8-1/chroma1.py | idsdlab/basicai_sp21 | af9acba34c0417fed830de1b61753c50fd303169 | [
"MIT"
] | null | null | null | cs101/module8/8-1/chroma1.py | idsdlab/basicai_sp21 | af9acba34c0417fed830de1b61753c50fd303169 | [
"MIT"
] | null | null | null |
from cs1media import *
import math
def dist(c1, c2):
r1, g1, b1 = c1
r2, g2, b2 = c2
return math.sqrt((r1-r2)**2 + (g1-g2)**2 + (b1-b2)**2)
def chroma(img, key, threshold):
w, h = img.size()
for y in range(h):
for x in range(w):
p = img.get(x, y)
if dist(p, key) < threshold:
img.set... | 20.666667 | 56 | 0.582949 | 78 | 434 | 3.230769 | 0.589744 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08982 | 0.230415 | 434 | 20 | 57 | 21.7 | 0.664671 | 0 | 0 | 0 | 0 | 0 | 0.04157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.3125 | 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 | 0 | 0 | 0 | 1 | 0 |
dbe72fbf88b8bf3f7bd1a038ff09959ccc113054 | 3,433 | py | Python | wfirst_stars/mklc.py | RuthAngus/wfirst_stars | 60989fc56488ac915082e76c3088c6133909985b | [
"MIT"
] | null | null | null | wfirst_stars/mklc.py | RuthAngus/wfirst_stars | 60989fc56488ac915082e76c3088c6133909985b | [
"MIT"
] | null | null | null | wfirst_stars/mklc.py | RuthAngus/wfirst_stars | 60989fc56488ac915082e76c3088c6133909985b | [
"MIT"
] | null | null | null | import numpy as np
import scipy
import scipy.io
import pylab
import numpy
import glob
import pyfits
def mklc(t, nspot=200, incl=(scipy.pi)*5./12., amp=1., tau=30.5, p=10.0):
diffrot = 0.
''' This is a simplified version of the class-based routines in
spot_model.py. It generates a light curves for dark, p... | 31.787037 | 82 | 0.605884 | 506 | 3,433 | 4.043478 | 0.341897 | 0.035191 | 0.017595 | 0.024927 | 0.104594 | 0.077224 | 0.054741 | 0.054741 | 0.054741 | 0.054741 | 0 | 0.0252 | 0.271774 | 3,433 | 107 | 83 | 32.084112 | 0.7932 | 0.267987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | false | 0 | 0.137255 | 0 | 0.176471 | 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 | 0 | 0 | 0 | 1 | 0 |
dbe8f2379002738c1c16e7f2d3cd857e1c75e38f | 10,561 | py | Python | davan/http/service/telldus/tdtool.py | davandev/davanserver | 0be914268c8e34d4092251508bae213cff3ef621 | [
"MIT"
] | null | null | null | davan/http/service/telldus/tdtool.py | davandev/davanserver | 0be914268c8e34d4092251508bae213cff3ef621 | [
"MIT"
] | null | null | null | davan/http/service/telldus/tdtool.py | davandev/davanserver | 0be914268c8e34d4092251508bae213cff3ef621 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys, getopt, httplib, urllib, json, os
import oauth.oauth as oauth
import datetime
from configobj import ConfigObj
import logging
global logger
logger = logging.getLogger(os.path.basename(__file__))
import davan.util.application_logger as log_manager
#insert your ... | 35.921769 | 170 | 0.670675 | 1,326 | 10,561 | 5.259427 | 0.191554 | 0.025237 | 0.014196 | 0.011184 | 0.331087 | 0.308718 | 0.288644 | 0.247921 | 0.225695 | 0.163464 | 0 | 0.004686 | 0.171575 | 10,561 | 293 | 171 | 36.044369 | 0.792433 | 0.007954 | 0 | 0.271255 | 0 | 0.004049 | 0.343326 | 0.010598 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.008097 | 0.02834 | 0 | 0.109312 | 0.226721 | 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 | 0 | 0 | 0 | 1 | 0 |
dbe91e2d448902d1659cd842f7d5834596d34306 | 16,286 | py | Python | ichnaea/data/export.py | rajreet/ichnaea | 7bd2eaa9568f9004e566b802623299625c29f5ae | [
"Apache-2.0"
] | 348 | 2015-01-13T11:48:07.000Z | 2022-03-31T08:33:07.000Z | ichnaea/data/export.py | rajreet/ichnaea | 7bd2eaa9568f9004e566b802623299625c29f5ae | [
"Apache-2.0"
] | 1,274 | 2015-01-02T18:15:56.000Z | 2022-03-23T15:29:08.000Z | ichnaea/data/export.py | rajreet/ichnaea | 7bd2eaa9568f9004e566b802623299625c29f5ae | [
"Apache-2.0"
] | 149 | 2015-01-04T21:15:07.000Z | 2021-12-10T06:05:09.000Z | from collections import defaultdict
import json
import re
import time
from urllib.parse import urlparse
import uuid
import boto3
import boto3.exceptions
import botocore.exceptions
import markus
import redis.exceptions
import requests
import requests.exceptions
from sqlalchemy import select
import sqlalchemy.exc
from ... | 31.933333 | 86 | 0.560666 | 1,793 | 16,286 | 4.926938 | 0.215282 | 0.015621 | 0.006113 | 0.009622 | 0.146932 | 0.114331 | 0.094974 | 0.062712 | 0.055468 | 0.046185 | 0 | 0.003869 | 0.333477 | 16,286 | 509 | 87 | 31.996071 | 0.809949 | 0.083814 | 0 | 0.124339 | 0 | 0 | 0.075534 | 0.0031 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.002646 | 0.050265 | 0 | 0.177249 | 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 | 0 | 0 | 0 | 1 | 0 |
dbe92a131f4e410b11bc7e2f634cf6f5bfadbd7f | 6,636 | py | Python | test/inference_correctness/dcn_multi_hot.py | x-y-z/HugeCTR | 17bf942215df60827ece9dc015af5191ef9219b7 | [
"Apache-2.0"
] | 130 | 2021-10-11T11:55:28.000Z | 2022-03-31T21:53:07.000Z | test/inference_correctness/dcn_multi_hot.py | Teora/HugeCTR | c55a63401ad350669ccfcd374aefd7a5fc879ca2 | [
"Apache-2.0"
] | 72 | 2021-10-09T04:59:09.000Z | 2022-03-31T11:27:54.000Z | test/inference_correctness/dcn_multi_hot.py | Teora/HugeCTR | c55a63401ad350669ccfcd374aefd7a5fc879ca2 | [
"Apache-2.0"
] | 29 | 2021-11-03T22:35:01.000Z | 2022-03-30T13:11:59.000Z | import hugectr
from mpi4py import MPI
solver = hugectr.CreateSolver(model_name = "dcn",
max_eval_batches = 1,
batchsize_eval = 16384,
batchsize = 16384,
lr = 0.001,
vvgpu... | 56.717949 | 117 | 0.517179 | 628 | 6,636 | 5.187898 | 0.307325 | 0.067526 | 0.069061 | 0.099754 | 0.319521 | 0.313076 | 0.297729 | 0.255985 | 0.255985 | 0.212707 | 0 | 0.038888 | 0.387734 | 6,636 | 117 | 118 | 56.717949 | 0.762983 | 0 | 0 | 0.130435 | 0 | 0 | 0.09884 | 0.032545 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034783 | 0 | 0.034783 | 0.008696 | 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 | 0 | 0 | 0 | 1 | 0 |
dbeaa0d47dcb9a56338a2f94ede14d6545fab66f | 4,437 | py | Python | bindings/pydrake/systems/perception.py | RobotLocomotion/drake-python3.7 | ae397a4c6985262d23e9675b9bf3927c08d027f5 | [
"BSD-3-Clause"
] | 2 | 2021-02-25T02:01:02.000Z | 2021-03-17T04:52:04.000Z | bindings/pydrake/systems/perception.py | RobotLocomotion/drake-python3.7 | ae397a4c6985262d23e9675b9bf3927c08d027f5 | [
"BSD-3-Clause"
] | null | null | null | bindings/pydrake/systems/perception.py | RobotLocomotion/drake-python3.7 | ae397a4c6985262d23e9675b9bf3927c08d027f5 | [
"BSD-3-Clause"
] | 1 | 2021-06-13T12:05:39.000Z | 2021-06-13T12:05:39.000Z | import numpy as np
from pydrake.common.value import AbstractValue
from pydrake.math import RigidTransform
from pydrake.perception import BaseField, Fields, PointCloud
from pydrake.systems.framework import LeafSystem
def _TransformPoints(points_Ci, X_CiSi):
# Make homogeneous copy of points.
points_h_Ci = np.... | 34.664063 | 79 | 0.626549 | 527 | 4,437 | 5.020873 | 0.290323 | 0.060469 | 0.024187 | 0.021542 | 0.101663 | 0.067271 | 0.037037 | 0 | 0 | 0 | 0 | 0.01201 | 0.286906 | 4,437 | 127 | 80 | 34.937008 | 0.824273 | 0.22673 | 0 | 0.074627 | 0 | 0 | 0.01255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089552 | false | 0 | 0.074627 | 0.014925 | 0.238806 | 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 | 0 | 0 | 0 | 1 | 0 |
dbec8e855b885f99aff4e865947ea4c6e652c177 | 2,415 | py | Python | train.py | Farzin-Negahbani/PathoNet | b467a255fb356e64129b7942261e972ae15a2d2b | [
"MIT"
] | null | null | null | train.py | Farzin-Negahbani/PathoNet | b467a255fb356e64129b7942261e972ae15a2d2b | [
"MIT"
] | null | null | null | train.py | Farzin-Negahbani/PathoNet | b467a255fb356e64129b7942261e972ae15a2d2b | [
"MIT"
] | null | null | null | from keras.callbacks import ModelCheckpoint,Callback,LearningRateScheduler,TensorBoard
from keras.models import load_model
import random
import numpy as np
from scipy import misc
import gc
from keras.optimizers import Adam
from imageio import imread
from datetime import datetime
import os
import json
import models
from... | 41.637931 | 180 | 0.708075 | 287 | 2,415 | 5.829268 | 0.432056 | 0.0263 | 0.0526 | 0.032277 | 0.044232 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00349 | 0.169358 | 2,415 | 57 | 181 | 42.368421 | 0.830508 | 0 | 0 | 0 | 0 | 0 | 0.068737 | 0.017805 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0 | 0.283019 | 0 | 0.339623 | 0.037736 | 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 | 0 | 0 | 0 | 1 | 0 |
dbed1f6b6c1523d648a1c00ecfbe4157990ceba2 | 1,445 | py | Python | tests/chainer_tests/functions_tests/array_tests/test_flatten.py | mingxiaoh/chainer-v3 | 815ff00f5eaf7944d6e8a75662ff64a2fe046a4d | [
"BSD-3-Clause"
] | 7 | 2017-05-08T07:02:40.000Z | 2018-12-02T18:35:39.000Z | tests/chainer_tests/functions_tests/array_tests/test_flatten.py | mingxiaoh/chainer-v3 | 815ff00f5eaf7944d6e8a75662ff64a2fe046a4d | [
"BSD-3-Clause"
] | null | null | null | tests/chainer_tests/functions_tests/array_tests/test_flatten.py | mingxiaoh/chainer-v3 | 815ff00f5eaf7944d6e8a75662ff64a2fe046a4d | [
"BSD-3-Clause"
] | null | null | null | import unittest
import numpy
import chainer
from chainer import cuda
from chainer import functions
from chainer import gradient_check
from chainer import testing
from chainer.testing import attr
@testing.parameterize(*testing.product({
'shape': [(3, 4), ()],
'dtype': [numpy.float16, numpy.float32, numpy.flo... | 26.759259 | 77 | 0.680969 | 204 | 1,445 | 4.632353 | 0.245098 | 0.042328 | 0.071958 | 0.04127 | 0.080423 | 0.050794 | 0 | 0 | 0 | 0 | 0 | 0.01458 | 0.19308 | 1,445 | 53 | 78 | 27.264151 | 0.795883 | 0 | 0 | 0.052632 | 0 | 0 | 0.00692 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 1 | 0.184211 | false | 0 | 0.210526 | 0 | 0.447368 | 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 | 0 | 0 | 0 | 1 | 0 |
dbed62851d59b2fa6655d17b726752f0c24c4682 | 2,773 | py | Python | src/metarl/envs/dm_control/dm_control_env.py | neurips2020submission11699/metarl | ae4825d21478fa1fd0aa6b116941ea40caa152a5 | [
"MIT"
] | 2 | 2021-02-07T12:14:52.000Z | 2021-07-29T08:07:22.000Z | src/metarl/envs/dm_control/dm_control_env.py | neurips2020submission11699/metarl | ae4825d21478fa1fd0aa6b116941ea40caa152a5 | [
"MIT"
] | null | null | null | src/metarl/envs/dm_control/dm_control_env.py | neurips2020submission11699/metarl | ae4825d21478fa1fd0aa6b116941ea40caa152a5 | [
"MIT"
] | null | null | null | from dm_control import suite
from dm_control.rl.control import flatten_observation
from dm_env import StepType
import gym
import numpy as np
from metarl.envs import Step
from metarl.envs.dm_control.dm_control_viewer import DmControlViewer
class DmControlEnv(gym.Env):
"""
Binding for `dm_control <https://arxi... | 33.011905 | 79 | 0.586729 | 325 | 2,773 | 4.756923 | 0.301538 | 0.045278 | 0.027167 | 0.034929 | 0.085382 | 0.063389 | 0 | 0 | 0 | 0 | 0 | 0.007322 | 0.310494 | 2,773 | 83 | 80 | 33.409639 | 0.801255 | 0.040389 | 0 | 0.121212 | 0 | 0 | 0.025709 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.106061 | 0.030303 | 0.424242 | 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 | 0 | 0 | 0 | 1 | 0 |
dbef871a16cf470112cb22aef95e471326a91ea8 | 1,976 | py | Python | pype/plugins/maya/publish/validate_look_no_default_shaders.py | tokejepsen/pype | 8f2b2b631cc5d3ad93eeb5ad3bc6110d32466ed3 | [
"MIT"
] | null | null | null | pype/plugins/maya/publish/validate_look_no_default_shaders.py | tokejepsen/pype | 8f2b2b631cc5d3ad93eeb5ad3bc6110d32466ed3 | [
"MIT"
] | null | null | null | pype/plugins/maya/publish/validate_look_no_default_shaders.py | tokejepsen/pype | 8f2b2b631cc5d3ad93eeb5ad3bc6110d32466ed3 | [
"MIT"
] | null | null | null | from maya import cmds
import pyblish.api
import pype.api
import pype.maya.action
class ValidateLookNoDefaultShaders(pyblish.api.InstancePlugin):
"""Validate if any node has a connection to a default shader.
This checks whether the look has any members of:
- lambert1
- initialShadingGroup
- initi... | 31.365079 | 76 | 0.619433 | 225 | 1,976 | 5.417778 | 0.466667 | 0.068909 | 0.021329 | 0.09516 | 0.032814 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005818 | 0.30415 | 1,976 | 62 | 77 | 31.870968 | 0.880727 | 0.325911 | 0 | 0 | 0 | 0 | 0.141398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.137931 | 0 | 0.482759 | 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 | 0 | 0 | 0 | 1 | 0 |
dbeff0d906fdca4fe34a55902305e858b8a7efb0 | 446 | py | Python | data_science_app/app.py | Johne-DuChene/data_science_learning_app | 40bafce85a27155766950806b5b32a2d1f6753c4 | [
"MIT"
] | null | null | null | data_science_app/app.py | Johne-DuChene/data_science_learning_app | 40bafce85a27155766950806b5b32a2d1f6753c4 | [
"MIT"
] | null | null | null | data_science_app/app.py | Johne-DuChene/data_science_learning_app | 40bafce85a27155766950806b5b32a2d1f6753c4 | [
"MIT"
] | null | null | null | from flask import Flask
# initialize the app
app = Flask(__name__)
# execute iris function at /iris route
@app.route("/iris")
def iris():
from sklearn.datasets import load_iris
from sklearn.linear_model import LogisticRegression
X, y = load_iris(return_X_y=True)
clf = LogisticRegression(
rando... | 24.777778 | 55 | 0.674888 | 60 | 446 | 4.833333 | 0.6 | 0.02069 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008571 | 0.215247 | 446 | 18 | 56 | 24.777778 | 0.82 | 0.123318 | 0 | 0 | 0 | 0 | 0.053985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.384615 | 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 | 0 | 0 | 0 | 1 | 0 |
dbf02afc10d2a9ad48452a7e76a2ad7a46bdd3f5 | 10,714 | py | Python | vbdiar/scoring/normalization.py | VarunSrivastava19/VBDiarization | 2a460b4fc11b3a5ff73d0534cadb182be1a9d882 | [
"Apache-2.0"
] | 101 | 2017-12-19T21:55:59.000Z | 2022-03-15T06:56:06.000Z | vbdiar/scoring/normalization.py | VarunSrivastava19/VBDiarization | 2a460b4fc11b3a5ff73d0534cadb182be1a9d882 | [
"Apache-2.0"
] | 27 | 2017-07-20T06:10:42.000Z | 2020-11-22T14:15:16.000Z | vbdiar/scoring/normalization.py | VarunSrivastava19/VBDiarization | 2a460b4fc11b3a5ff73d0534cadb182be1a9d882 | [
"Apache-2.0"
] | 30 | 2017-07-17T08:53:44.000Z | 2021-05-18T07:37:46.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2018 Brno University of Technology FIT
# Author: Jan Profant <jan.profant@phonexia.com>
# All Rights Reserved
import os
import logging
import pickle
import multiprocessing
import numpy as np
from sklearn.metrics.pairwise import cosine_similarity
from vb... | 39.10219 | 119 | 0.614243 | 1,326 | 10,714 | 4.729261 | 0.165158 | 0.045926 | 0.021528 | 0.023122 | 0.215915 | 0.114176 | 0.080689 | 0.054856 | 0.046564 | 0.046564 | 0 | 0.005383 | 0.289061 | 10,714 | 273 | 120 | 39.245421 | 0.817907 | 0.200299 | 0 | 0.1 | 0 | 0.00625 | 0.048184 | 0.006115 | 0 | 0 | 0 | 0 | 0.0125 | 1 | 0.06875 | false | 0 | 0.0625 | 0.0125 | 0.2 | 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 | 0 | 0 | 0 | 1 | 0 |
dbf1c54ca3fd34dfbf7ce18d8d98a14afb9379e4 | 1,056 | py | Python | azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_security_providers.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 1 | 2021-09-07T18:36:04.000Z | 2021-09-07T18:36:04.000Z | azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_security_providers.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 2 | 2019-10-02T23:37:38.000Z | 2020-10-02T01:17:31.000Z | azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_security_providers.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | null | null | null | # 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 ... | 35.2 | 101 | 0.630682 | 98 | 1,056 | 6.622449 | 0.755102 | 0.138675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009956 | 0.143939 | 1,056 | 29 | 102 | 36.413793 | 0.707965 | 0.582386 | 0 | 0 | 0 | 0 | 0.222494 | 0.06846 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dbf2e984865e076aaf055509509eac8230a5a7d1 | 438 | py | Python | jsonresume_theme_stackoverflow/filters.py | flowgunso/jsonresume-theme-stackoverflow | 5fcadcf41a93478a09e95d79fd62d8ac3402b33b | [
"MIT"
] | null | null | null | jsonresume_theme_stackoverflow/filters.py | flowgunso/jsonresume-theme-stackoverflow | 5fcadcf41a93478a09e95d79fd62d8ac3402b33b | [
"MIT"
] | 4 | 2020-12-29T14:04:48.000Z | 2021-01-01T20:23:37.000Z | jsonresume_theme_stackoverflow/filters.py | flowgunso/jsonresume-theme-stackoverflow | 5fcadcf41a93478a09e95d79fd62d8ac3402b33b | [
"MIT"
] | null | null | null | import datetime
import re
from .exceptions import ObjectIsNotADate
def format_date(value, format="%d %M %Y"):
regex = re.match(r"(?P<year>\d{4})-(?P<month>\d{2})-(?P<day>\d{2})", value)
if regex is not None:
date = datetime.date(
int(regex.group("year")),
int(regex.group("mont... | 24.333333 | 79 | 0.586758 | 60 | 438 | 4.266667 | 0.533333 | 0.09375 | 0.152344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0.239726 | 438 | 17 | 80 | 25.764706 | 0.75976 | 0 | 0 | 0 | 0 | 0.076923 | 0.152968 | 0.107306 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.384615 | 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 | 0 | 0 | 0 | 1 | 0 |
dbf349d5a69e925a415de30492c1747e358368f6 | 3,966 | py | Python | ipec/data/core.py | wwwbbb8510/ippso | fa20d23cd8edba5908e65a0ab0ab990d7ce3d5d5 | [
"MIT"
] | 9 | 2018-05-10T01:04:34.000Z | 2019-06-28T07:47:37.000Z | ipec/data/core.py | wwwbbb8510/ippso | fa20d23cd8edba5908e65a0ab0ab990d7ce3d5d5 | [
"MIT"
] | null | null | null | ipec/data/core.py | wwwbbb8510/ippso | fa20d23cd8edba5908e65a0ab0ab990d7ce3d5d5 | [
"MIT"
] | 2 | 2020-10-12T03:54:30.000Z | 2021-09-08T14:10:21.000Z | import numpy as np
import os
import logging
from sklearn.model_selection import train_test_split
DATASET_ROOT_FOLDER = os.path.abspath('datasets')
class DataLoader:
train = None
validation = None
test = None
mode = None
partial_dataset = None
@staticmethod
def load(train_path=None, valid... | 36.054545 | 150 | 0.614977 | 439 | 3,966 | 5.355353 | 0.170843 | 0.070183 | 0.068056 | 0.08507 | 0.444492 | 0.300723 | 0.27265 | 0.261165 | 0.195236 | 0.149298 | 0 | 0.010208 | 0.283661 | 3,966 | 109 | 151 | 36.385321 | 0.817318 | 0.056228 | 0 | 0.21519 | 0 | 0 | 0.053492 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063291 | false | 0 | 0.050633 | 0 | 0.253165 | 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 | 0 | 0 | 0 | 1 | 0 |
dbf566f5e271a38bb7effb6c5cb9d1b3bcf1fdab | 22,131 | py | Python | test/python/quantum_info/operators/test_operator.py | EnriqueL8/qiskit-terra | 08b801f1f8598c4e44680b4a75c232ed92db0262 | [
"Apache-2.0"
] | 2 | 2019-06-28T19:58:42.000Z | 2019-07-26T05:04:02.000Z | test/python/quantum_info/operators/test_operator.py | EnriqueL8/qiskit-terra | 08b801f1f8598c4e44680b4a75c232ed92db0262 | [
"Apache-2.0"
] | null | null | null | test/python/quantum_info/operators/test_operator.py | EnriqueL8/qiskit-terra | 08b801f1f8598c4e44680b4a75c232ed92db0262 | [
"Apache-2.0"
] | 1 | 2020-01-24T21:01:06.000Z | 2020-01-24T21:01:06.000Z | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any... | 38.826316 | 90 | 0.592246 | 3,107 | 22,131 | 4.11812 | 0.087866 | 0.118406 | 0.091676 | 0.025791 | 0.641657 | 0.594764 | 0.552716 | 0.50934 | 0.446424 | 0.414224 | 0 | 0.042437 | 0.252542 | 22,131 | 569 | 91 | 38.894552 | 0.731048 | 0.114093 | 0 | 0.353383 | 0 | 0 | 0.005893 | 0 | 0 | 0 | 0 | 0 | 0.338346 | 1 | 0.100251 | false | 0 | 0.030075 | 0 | 0.160401 | 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 | 0 | 0 | 0 | 1 | 0 |
dbf954bdb4324156034054e74ee082a9dc8b9157 | 6,151 | py | Python | tests/test_helpers.py | ajdavis/aiohttp | d5138978f3e82aa82a2f003b00d38112c58a40c1 | [
"Apache-2.0"
] | 1 | 2021-07-07T06:36:57.000Z | 2021-07-07T06:36:57.000Z | tests/test_helpers.py | ajdavis/aiohttp | d5138978f3e82aa82a2f003b00d38112c58a40c1 | [
"Apache-2.0"
] | null | null | null | tests/test_helpers.py | ajdavis/aiohttp | d5138978f3e82aa82a2f003b00d38112c58a40c1 | [
"Apache-2.0"
] | null | null | null | import pytest
from unittest import mock
from aiohttp import helpers
import datetime
def test_parse_mimetype_1():
assert helpers.parse_mimetype('') == ('', '', '', {})
def test_parse_mimetype_2():
assert helpers.parse_mimetype('*') == ('*', '*', '', {})
def test_parse_mimetype_3():
assert (helpers.pars... | 29.572115 | 79 | 0.643635 | 789 | 6,151 | 4.806084 | 0.224335 | 0.047996 | 0.025316 | 0.042194 | 0.541403 | 0.516878 | 0.427215 | 0.400053 | 0.375791 | 0.352057 | 0 | 0.033818 | 0.206796 | 6,151 | 207 | 80 | 29.714976 | 0.74339 | 0.025687 | 0 | 0.367347 | 0 | 0.013605 | 0.144719 | 0.012868 | 0 | 0 | 0 | 0 | 0.163265 | 1 | 0.197279 | false | 0.013605 | 0.027211 | 0.013605 | 0.265306 | 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 | 0 | 0 | 0 | 1 | 0 |
dbf96ddd90a5808166e52168da5cadf7b4bb5c35 | 372 | py | Python | GenConfigs.py | truls/faas-profiler | d54ca0d9926f38c693f616ba4d08414aea823f51 | [
"MIT"
] | null | null | null | GenConfigs.py | truls/faas-profiler | d54ca0d9926f38c693f616ba4d08414aea823f51 | [
"MIT"
] | null | null | null | GenConfigs.py | truls/faas-profiler | d54ca0d9926f38c693f616ba4d08414aea823f51 | [
"MIT"
] | null | null | null | from os.path import join
FAAS_ROOT="/lhome/trulsas/faas-profiler"
WORKLOAD_SPECS=join(FAAS_ROOT, "specs", "workloads")
#FAAS_ROOT="/home/truls/uni/phd/faas-profiler"
WSK_PATH = "wsk"
OPENWHISK_PATH = "/lhome/trulsas/openwhisk"
#: Location of output data
DATA_DIR = join(FAAS_ROOT, "..", "profiler_results")
SYSTEM_CPU... | 28.615385 | 61 | 0.736559 | 64 | 372 | 4.109375 | 0.6875 | 0.121673 | 0.136882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079179 | 0.083333 | 372 | 12 | 62 | 31 | 0.692082 | 0.188172 | 0 | 0 | 0 | 0.142857 | 0.43 | 0.313333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 | 0 | 0 | 0 | 1 | 0 |
dbfbafe90d8d62c542ce03ef8a862cdef8687b06 | 5,288 | py | Python | radssh/hostkey.py | Eli-Tarrago/radssh | ebf3c8f17c3768268dcd483e899a590698de4452 | [
"BSD-3-Clause"
] | 39 | 2015-05-11T15:06:58.000Z | 2021-12-29T07:24:23.000Z | radssh/hostkey.py | Eli-Tarrago/radssh | ebf3c8f17c3768268dcd483e899a590698de4452 | [
"BSD-3-Clause"
] | 45 | 2015-01-05T22:11:18.000Z | 2021-06-02T03:57:49.000Z | radssh/hostkey.py | eorochena/radssh | b1d1ee5822036445f26a34147452df5c3142caee | [
"BSD-3-Clause"
] | 13 | 2015-05-05T12:42:09.000Z | 2022-03-03T18:09:49.000Z | #
# Copyright (c) 2014, 2016, 2018, 2020 LexisNexis Risk Data Management Inc.
#
# This file is part of the RadSSH software package.
#
# RadSSH is free software, released under the Revised BSD License.
# You are permitted to use, modify, and redsitribute this software
# according to the Revised BSD License, a copy of wh... | 39.462687 | 167 | 0.625946 | 672 | 5,288 | 4.793155 | 0.334821 | 0.037256 | 0.039118 | 0.039118 | 0.189072 | 0.092518 | 0.092518 | 0.073269 | 0.073269 | 0.073269 | 0 | 0.010493 | 0.279123 | 5,288 | 133 | 168 | 39.759399 | 0.83447 | 0.250946 | 0 | 0.222222 | 0 | 0.011111 | 0.098974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.044444 | 0 | 0.244444 | 0.155556 | 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 | 0 | 0 | 0 | 1 | 0 |
dbfc3c9f59db54005f9a1ad67dd376c6806f7fa6 | 14,153 | py | Python | nuke/pymmh3.py | jfpanisset/Cryptomatte | d7c71cff17a4e8895eb17520115aa45ff66b8540 | [
"BSD-3-Clause"
] | 543 | 2016-07-07T15:31:01.000Z | 2022-03-31T10:58:32.000Z | nuke/pymmh3.py | jfpanisset/Cryptomatte | d7c71cff17a4e8895eb17520115aa45ff66b8540 | [
"BSD-3-Clause"
] | 143 | 2016-07-07T16:56:38.000Z | 2022-02-23T23:16:52.000Z | nuke/pymmh3.py | jfpanisset/Cryptomatte | d7c71cff17a4e8895eb17520115aa45ff66b8540 | [
"BSD-3-Clause"
] | 158 | 2016-07-07T16:41:49.000Z | 2022-03-21T17:57:28.000Z | '''
pymmh3 was written by Fredrik Kihlander and enhanced by Swapnil Gusani, and is placed in the public
domain. The authors hereby disclaim copyright to this source code.
pure python implementation of the murmur3 hash algorithm
https://code.google.com/p/smhasher/wiki/MurmurHash3
This was written for the times when y... | 31.311947 | 104 | 0.464283 | 1,633 | 14,153 | 3.920392 | 0.142682 | 0.053733 | 0.06248 | 0.034989 | 0.473133 | 0.406748 | 0.385036 | 0.365979 | 0.328491 | 0.27054 | 0 | 0.146457 | 0.419628 | 14,153 | 451 | 105 | 31.381375 | 0.632944 | 0.096093 | 0 | 0.518182 | 0 | 0 | 0.006369 | 0 | 0 | 0 | 0.111496 | 0 | 0 | 1 | 0.036364 | false | 0 | 0.006061 | 0.006061 | 0.087879 | 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 | 0 | 0 | 0 | 1 | 0 |
dbfc56fb832ee5fc9af604dacd2a35c059519b31 | 950 | py | Python | bindings/python/tests/test_factory.py | pscff/dlite | 4365d828dcaa1736cc78ff6ed9a65592f198ba25 | [
"MIT"
] | 10 | 2020-04-08T06:25:27.000Z | 2022-03-15T06:54:53.000Z | bindings/python/tests/test_factory.py | pscff/dlite | 4365d828dcaa1736cc78ff6ed9a65592f198ba25 | [
"MIT"
] | 117 | 2019-12-16T14:43:41.000Z | 2022-03-21T19:46:58.000Z | bindings/python/tests/test_factory.py | pscff/dlite | 4365d828dcaa1736cc78ff6ed9a65592f198ba25 | [
"MIT"
] | 5 | 2020-04-15T16:23:29.000Z | 2021-12-07T08:40:54.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import dlite
thisdir = os.path.abspath(os.path.dirname(__file__))
class Person:
def __init__(self, name, age, skills):
self.name = name
self.age = age
self.skills = skills
def __repr__(self):
return 'Person(%r, %r, %r)'... | 25 | 78 | 0.671579 | 123 | 950 | 5.065041 | 0.455285 | 0.038523 | 0.035313 | 0.070626 | 0.093098 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021144 | 0.153684 | 950 | 37 | 79 | 25.675676 | 0.753731 | 0.095789 | 0 | 0 | 0 | 0 | 0.220794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.095238 | 0.047619 | 0.285714 | 0.190476 | 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 | 0 | 0 | 0 | 1 | 0 |
dbfcfb1df1954ace1963bc30983b96adb222d711 | 807 | py | Python | week_11_DS_N_Algorithm/03_Thr_Lecture/실습6_연속 부분 최대합.py | bky373/elice-racer-1st | ddea8079a1083796ed4f59c38650ff8f4333e6ef | [
"FSFAP"
] | 1 | 2021-11-03T18:27:37.000Z | 2021-11-03T18:27:37.000Z | week_11_DS_N_Algorithm/03_Thr_Lecture/실습6_연속 부분 최대합.py | bky373/elice-racer-1st | ddea8079a1083796ed4f59c38650ff8f4333e6ef | [
"FSFAP"
] | null | null | null | week_11_DS_N_Algorithm/03_Thr_Lecture/실습6_연속 부분 최대합.py | bky373/elice-racer-1st | ddea8079a1083796ed4f59c38650ff8f4333e6ef | [
"FSFAP"
] | 1 | 2021-02-10T15:21:53.000Z | 2021-02-10T15:21:53.000Z | '''
연속 부분 최대합
nn개의 숫자가 주어질 때, 연속 부분을 선택하여 그 합을 최대화 하는 프로그램을 작성하시오.
예를 들어, 다음과 같이 8개의 숫자가 있다고 하자.
1 2 -4 5 3 -2 9 -10
이 때, 연속 부분이란 연속하여 숫자를 선택하는 것을 말한다.
가능한 연속 부분으로써 [1, 2, -4], [5, 3, -2, 9], [9, -10] 등이 있을 수 있다.
이 연속 부분들 중에서 가장 합이 큰 연속 부분은 [5, 3, -2, 9] 이며,
이보다 더 합을 크게 할 수는 없다.
따라서 연속 부분 최대합은 5+3+(-2)+9 = 15 이다... | 17.170213 | 61 | 0.537794 | 174 | 807 | 2.448276 | 0.568966 | 0.023474 | 0.035211 | 0.046948 | 0.058685 | 0.058685 | 0.058685 | 0.042254 | 0 | 0 | 0 | 0.087189 | 0.303594 | 807 | 46 | 62 | 17.543478 | 0.670819 | 0.556382 | 0 | 0 | 0 | 0 | 0.025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.333333 | 0.083333 | 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 | 0 | 0 | 0 | 1 | 0 |
dbfd45a1262d4d81ad4ca682e226d591f37c7fd4 | 1,490 | py | Python | tests/conftest.py | zhongnansu/es-cli | e0656c21392e52a8b9cfafa69acfa0c13b743a9c | [
"Apache-2.0"
] | 6 | 2019-08-23T18:06:41.000Z | 2020-05-06T18:26:53.000Z | tests/conftest.py | zhongnansu/es-cli | e0656c21392e52a8b9cfafa69acfa0c13b743a9c | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | zhongnansu/es-cli | e0656c21392e52a8b9cfafa69acfa0c13b743a9c | [
"Apache-2.0"
] | null | null | null | """
Copyright 2019, Amazon Web Services Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... | 29.8 | 73 | 0.769799 | 219 | 1,490 | 5.114155 | 0.561644 | 0.053571 | 0.048214 | 0.028571 | 0.069643 | 0.069643 | 0 | 0 | 0 | 0 | 0 | 0.006364 | 0.156376 | 1,490 | 49 | 74 | 30.408163 | 0.884646 | 0.454362 | 0 | 0.111111 | 0 | 0 | 0.070605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.222222 | 0 | 0.388889 | 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 | 0 | 0 | 0 | 1 | 0 |
dbfd8140aa71c6ce6288cd86d96c8cf8754cf91f | 26,845 | py | Python | Cogs/ServerStats.py | Damiian1/techwizardshardware | 97ceafc15036be4136e860076d73d74f1887f041 | [
"MIT"
] | null | null | null | Cogs/ServerStats.py | Damiian1/techwizardshardware | 97ceafc15036be4136e860076d73d74f1887f041 | [
"MIT"
] | null | null | null | Cogs/ServerStats.py | Damiian1/techwizardshardware | 97ceafc15036be4136e860076d73d74f1887f041 | [
"MIT"
] | null | null | null | import asyncio
import discord
from datetime import datetime
from operator import itemgetter
from discord.ext import commands
from Cogs import Nullify
from Cogs import DisplayName
from Cogs import UserTime
from Cogs import Message
def setup(bot):
# Add the bot... | 42.076803 | 254 | 0.537568 | 2,975 | 26,845 | 4.783529 | 0.099496 | 0.01574 | 0.020027 | 0.025367 | 0.684211 | 0.63699 | 0.614012 | 0.537489 | 0.530181 | 0.518727 | 0 | 0.010217 | 0.33645 | 26,845 | 637 | 255 | 42.142857 | 0.788245 | 0.062209 | 0 | 0.593291 | 0 | 0.012579 | 0.117514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004193 | false | 0.027254 | 0.018868 | 0 | 0.050314 | 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 | 0 | 0 | 0 | 1 | 0 |
dbfe9381e4f6dcc57fd5c5d02265d7f565b40315 | 2,857 | py | Python | torch_datasets/samplers/balanced_batch_sampler.py | mingruimingrui/torch-datasets | 2640b8c4fa82156e68e617fc545a546b4e08dc4e | [
"MIT"
] | null | null | null | torch_datasets/samplers/balanced_batch_sampler.py | mingruimingrui/torch-datasets | 2640b8c4fa82156e68e617fc545a546b4e08dc4e | [
"MIT"
] | null | null | null | torch_datasets/samplers/balanced_batch_sampler.py | mingruimingrui/torch-datasets | 2640b8c4fa82156e68e617fc545a546b4e08dc4e | [
"MIT"
] | null | null | null | import random
import torch.utils.data.sampler
class BalancedBatchSampler(torch.utils.data.sampler.BatchSampler):
def __init__(
self,
dataset_labels,
batch_size=1,
steps=None,
n_classes=0,
n_samples=2
):
""" Create a balanced batch sampler for label based... | 38.608108 | 147 | 0.637382 | 381 | 2,857 | 4.493438 | 0.246719 | 0.070093 | 0.056075 | 0.070093 | 0.216122 | 0.129089 | 0.051402 | 0.051402 | 0.051402 | 0.051402 | 0 | 0.002475 | 0.292965 | 2,857 | 73 | 148 | 39.136986 | 0.84505 | 0.243962 | 0 | 0 | 0 | 0 | 0.035526 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 1 | 0.088889 | false | 0 | 0.044444 | 0.022222 | 0.2 | 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 | 0 | 0 | 0 | 1 | 0 |
dbfe9b7374d292dd3a07ffc92b4ebb9e7af2ac5d | 1,416 | py | Python | ambari-common/src/main/python/resource_management/libraries/functions/get_bare_principal.py | likenamehaojie/Apache-Ambari-ZH | 5973025bd694cdbb4b49fb4c4e0d774782811ff6 | [
"Apache-2.0"
] | 1,664 | 2015-01-03T09:35:21.000Z | 2022-03-31T04:55:24.000Z | ambari-common/src/main/python/resource_management/libraries/functions/get_bare_principal.py | likenamehaojie/Apache-Ambari-ZH | 5973025bd694cdbb4b49fb4c4e0d774782811ff6 | [
"Apache-2.0"
] | 3,018 | 2015-02-19T20:16:10.000Z | 2021-11-13T20:47:48.000Z | ambari-common/src/main/python/resource_management/libraries/functions/get_bare_principal.py | likenamehaojie/Apache-Ambari-ZH | 5973025bd694cdbb4b49fb4c4e0d774782811ff6 | [
"Apache-2.0"
] | 1,673 | 2015-01-06T14:14:42.000Z | 2022-03-31T07:22:30.000Z | #!/usr/bin/env python
"""
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License");... | 33.714286 | 97 | 0.764831 | 206 | 1,416 | 5.165049 | 0.529126 | 0.056391 | 0.108083 | 0.030075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007563 | 0.159605 | 1,416 | 42 | 98 | 33.714286 | 0.886555 | 0.759181 | 0 | 0 | 0 | 0 | 0.139241 | 0.082278 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 |
dbff3b375851c03b4ae31fb20b30423a4b9c6ad5 | 1,162 | py | Python | 04/cross_validation.01.py | study-machine-learning/dongheon.shin | 6103ef9c73b162603bc39a27e4ecca0f1ac35e57 | [
"MIT"
] | 2 | 2017-09-24T02:29:48.000Z | 2017-10-05T11:15:22.000Z | 04/cross_validation.01.py | study-machine-learning/dongheon.shin | 6103ef9c73b162603bc39a27e4ecca0f1ac35e57 | [
"MIT"
] | null | null | null | 04/cross_validation.01.py | study-machine-learning/dongheon.shin | 6103ef9c73b162603bc39a27e4ecca0f1ac35e57 | [
"MIT"
] | null | null | null | from sklearn import svm, metrics
import random
import re
def split(rows):
data = []
labels = []
for row in rows:
data.append(row[0:4])
labels.append(row[4])
return (data, labels)
def calculate_score(train, test):
train_data, train_label = split(train)
test_data, test_la... | 16.84058 | 66 | 0.620482 | 175 | 1,162 | 4.011429 | 0.354286 | 0.02849 | 0.054131 | 0.065527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008869 | 0.223752 | 1,162 | 68 | 67 | 17.088235 | 0.769401 | 0 | 0 | 0 | 0 | 0 | 0.035284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0 | 0.076923 | 0.051282 | 0.282051 | 0.051282 | 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 | 0 | 0 | 0 | 1 | 0 |
e004ab57c3294086a91490c226d7c40f3986ad7f | 4,265 | py | Python | src/reg_resampler.py | atif-hassan/Regression_ReSampling | 194b2ae8efea7598a6690792d40e42aba74c111b | [
"BSD-3-Clause"
] | 15 | 2020-06-09T20:08:04.000Z | 2021-11-21T15:58:09.000Z | src/reg_resampler.py | atif-hassan/Regression_ReSampling | 194b2ae8efea7598a6690792d40e42aba74c111b | [
"BSD-3-Clause"
] | null | null | null | src/reg_resampler.py | atif-hassan/Regression_ReSampling | 194b2ae8efea7598a6690792d40e42aba74c111b | [
"BSD-3-Clause"
] | 5 | 2020-06-13T22:07:51.000Z | 2021-05-21T03:26:45.000Z | class resampler:
def __init__(self):
import pandas as pd
from sklearn.preprocessing import LabelEncoder
from collections import Counter
import numpy as np
self.bins = 3
self.pd = pd
self.LabelEncoder = LabelEncoder
self.Counter = Counter
... | 41.813725 | 169 | 0.562251 | 537 | 4,265 | 4.351955 | 0.277467 | 0.082157 | 0.071887 | 0.023962 | 0.206247 | 0.154044 | 0.154044 | 0.154044 | 0.154044 | 0.154044 | 0 | 0.010604 | 0.336694 | 4,265 | 101 | 170 | 42.227723 | 0.815483 | 0.171864 | 0 | 0.25 | 0 | 0 | 0.053603 | 0.009959 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.055556 | 0 | 0.166667 | 0.083333 | 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 | 0 | 0 | 0 | 1 | 0 |
e0063a8b35dfc827fe158a159fe5d8b8ab703065 | 4,920 | py | Python | get_data/speech_commands.py | patrick-kidger/generalised_shapelets | 04930c89dc4673e2af402895fe67655f8375a808 | [
"MIT"
] | 32 | 2020-05-31T17:41:58.000Z | 2022-03-28T18:38:11.000Z | get_data/speech_commands.py | patrick-kidger/generalised_shapelets | 04930c89dc4673e2af402895fe67655f8375a808 | [
"MIT"
] | 1 | 2022-02-09T22:13:03.000Z | 2022-02-09T23:55:28.000Z | get_data/speech_commands.py | patrick-kidger/generalised_shapelets | 04930c89dc4673e2af402895fe67655f8375a808 | [
"MIT"
] | 9 | 2020-07-17T16:50:24.000Z | 2021-12-13T11:29:12.000Z | import os
import pathlib
import sklearn.model_selection
import tarfile
import torch
import torchaudio
import urllib.request
here = pathlib.Path(__file__).resolve().parent
def _split_data(tensor, stratify):
# 0.7/0.15/0.15 train/val/test split
(train_tensor, testval_tensor,
train_stratify, testval_strati... | 42.051282 | 120 | 0.566057 | 637 | 4,920 | 4.125589 | 0.301413 | 0.038813 | 0.020928 | 0.026636 | 0.186073 | 0.158295 | 0.089422 | 0.069635 | 0.060122 | 0.048706 | 0 | 0.02373 | 0.331911 | 4,920 | 116 | 121 | 42.413793 | 0.775783 | 0.078049 | 0 | 0.022472 | 0 | 0.011236 | 0.125414 | 0.005078 | 0 | 0 | 0 | 0 | 0.011236 | 1 | 0.05618 | false | 0 | 0.078652 | 0 | 0.168539 | 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 | 0 | 0 | 0 | 1 | 0 |
e008ab01b4020e37d916e20d303c66a51a23123e | 5,652 | py | Python | app/endpoints/products.py | duch94/spark_crud_test | 94a514797700c2e929792f0424fb0e9e911489b7 | [
"BSD-2-Clause"
] | null | null | null | app/endpoints/products.py | duch94/spark_crud_test | 94a514797700c2e929792f0424fb0e9e911489b7 | [
"BSD-2-Clause"
] | null | null | null | app/endpoints/products.py | duch94/spark_crud_test | 94a514797700c2e929792f0424fb0e9e911489b7 | [
"BSD-2-Clause"
] | null | null | null | from datetime import datetime
from typing import List
from flask import Blueprint, jsonify, request, json
from app.models.products import Product, Category, products_categories
from app import db
products_blueprint = Blueprint('products', __name__)
def create_or_get_categories(p: dict) -> List[Category]... | 45.580645 | 120 | 0.608457 | 648 | 5,652 | 5.169753 | 0.205247 | 0.029552 | 0.042687 | 0.041791 | 0.498806 | 0.408358 | 0.304179 | 0.304179 | 0.241791 | 0.152836 | 0 | 0.005947 | 0.256193 | 5,652 | 123 | 121 | 45.95122 | 0.790913 | 0.021231 | 0 | 0.171717 | 0 | 0.010101 | 0.178087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050505 | false | 0 | 0.050505 | 0.010101 | 0.20202 | 0.060606 | 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 | 0 | 0 | 0 | 1 | 0 |
e008c8c892e467ea561589969c08eaa2c9b808db | 1,701 | py | Python | util/config/validators/test/test_validate_bitbucket_trigger.py | giuseppe/quay | a1b7e4b51974edfe86f66788621011eef2667e6a | [
"Apache-2.0"
] | 2,027 | 2019-11-12T18:05:48.000Z | 2022-03-31T22:25:04.000Z | util/config/validators/test/test_validate_bitbucket_trigger.py | giuseppe/quay | a1b7e4b51974edfe86f66788621011eef2667e6a | [
"Apache-2.0"
] | 496 | 2019-11-12T18:13:37.000Z | 2022-03-31T10:43:45.000Z | util/config/validators/test/test_validate_bitbucket_trigger.py | giuseppe/quay | a1b7e4b51974edfe86f66788621011eef2667e6a | [
"Apache-2.0"
] | 249 | 2019-11-12T18:02:27.000Z | 2022-03-22T12:19:19.000Z | import pytest
from httmock import urlmatch, HTTMock
from util.config import URLSchemeAndHostname
from util.config.validator import ValidatorContext
from util.config.validators import ConfigValidationException
from util.config.validators.validate_bitbucket_trigger import BitbucketTriggerValidator
from test.fixtures i... | 29.842105 | 87 | 0.671958 | 156 | 1,701 | 7.051282 | 0.352564 | 0.101818 | 0.1 | 0.138182 | 0.147273 | 0.105455 | 0.105455 | 0.105455 | 0 | 0 | 0 | 0.006855 | 0.228101 | 1,701 | 56 | 88 | 30.375 | 0.830922 | 0 | 0 | 0.093023 | 0 | 0 | 0.156966 | 0.078777 | 0 | 0 | 0 | 0 | 0.023256 | 1 | 0.069767 | false | 0 | 0.162791 | 0 | 0.255814 | 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 | 0 | 0 | 0 | 1 | 0 |
e008cc40a9e990beff8a7a594350250e113f3691 | 2,414 | py | Python | Refraction.py | silkoch42/Geometric-Optics-from-QM | baf41b54c37835b527d5b98cb480d68bc2ff68c3 | [
"MIT"
] | null | null | null | Refraction.py | silkoch42/Geometric-Optics-from-QM | baf41b54c37835b527d5b98cb480d68bc2ff68c3 | [
"MIT"
] | null | null | null | Refraction.py | silkoch42/Geometric-Optics-from-QM | baf41b54c37835b527d5b98cb480d68bc2ff68c3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 15 16:51:16 2019
@author: Silvan
"""
import numpy as np
import scipy
import matplotlib.pyplot as plt
k=1000
n1=2.0
n2=1.0
alpha=np.pi/6.0
beta=np.arcsin(n2/n1*np.sin(alpha))
ya=1.0
xa=-ya*np.tan(alpha)
yb=-1.0
xb=-yb*np.tan(beta)
def s(x):
... | 24.383838 | 95 | 0.583264 | 510 | 2,414 | 2.75098 | 0.239216 | 0.015681 | 0.017106 | 0.102637 | 0.307912 | 0.280827 | 0.275125 | 0.273699 | 0.273699 | 0.273699 | 0 | 0.076923 | 0.154515 | 2,414 | 99 | 96 | 24.383838 | 0.610485 | 0.314002 | 0 | 0 | 0 | 0 | 0.06539 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0.047619 | 0.214286 | 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 | 0 | 0 | 0 | 1 | 0 |
e00b9ee8e43ae71af00a3fe383bedc3df745f04d | 7,574 | py | Python | train.py | vnbot2/BigGAN-PyTorch | 1725269d52e05fbd4d06dac64aa4906a8ae7a760 | [
"MIT"
] | null | null | null | train.py | vnbot2/BigGAN-PyTorch | 1725269d52e05fbd4d06dac64aa4906a8ae7a760 | [
"MIT"
] | null | null | null | train.py | vnbot2/BigGAN-PyTorch | 1725269d52e05fbd4d06dac64aa4906a8ae7a760 | [
"MIT"
] | null | null | null | """ BigGAN: The Authorized Unofficial PyTorch release
Code by A. Brock and A. Andonian
This code is an unofficial reimplementation of
"Large-Scale GAN Training for High Fidelity Natural Image Synthesis,"
by A. Brock, J. Donahue, and K. Simonyan (arXiv 1809.11096).
Let's go.
"""
import datetime
impor... | 40.287234 | 103 | 0.597571 | 992 | 7,574 | 4.382056 | 0.288306 | 0.037267 | 0.027605 | 0.010352 | 0.139176 | 0.112031 | 0.096158 | 0.096158 | 0.096158 | 0.096158 | 0 | 0.005733 | 0.28611 | 7,574 | 187 | 104 | 40.502674 | 0.798225 | 0.252046 | 0 | 0.112903 | 0 | 0 | 0.142092 | 0.003749 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016129 | false | 0 | 0.064516 | 0 | 0.080645 | 0.072581 | 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 | 0 | 0 | 0 | 1 | 0 |
e00c71d6078595059b1d0af82650622e80499174 | 1,693 | py | Python | geocamUtil/tempfiles.py | geocam/geocamUtilWeb | b64fc063c64b4b0baa140db4c126f2ff980756ab | [
"NASA-1.3"
] | 4 | 2017-03-03T16:24:24.000Z | 2018-06-24T05:50:40.000Z | geocamUtil/tempfiles.py | geocam/geocamUtilWeb | b64fc063c64b4b0baa140db4c126f2ff980756ab | [
"NASA-1.3"
] | 1 | 2021-09-29T17:17:30.000Z | 2021-09-29T17:17:30.000Z | geocamUtil/tempfiles.py | geocam/geocamUtilWeb | b64fc063c64b4b0baa140db4c126f2ff980756ab | [
"NASA-1.3"
] | 1 | 2017-12-19T20:45:53.000Z | 2017-12-19T20:45:53.000Z | # __BEGIN_LICENSE__
#Copyright (c) 2015, United States Government, as represented by the
#Administrator of the National Aeronautics and Space Administration.
#All rights reserved.
# __END_LICENSE__
import os
import time
import random
import shutil
from glob import glob
import traceback
import sys
from geocamUtil im... | 27.306452 | 93 | 0.617247 | 208 | 1,693 | 4.908654 | 0.490385 | 0.064643 | 0.082272 | 0.044074 | 0.043095 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006478 | 0.270526 | 1,693 | 61 | 94 | 27.754098 | 0.820243 | 0.111636 | 0 | 0 | 0 | 0 | 0.084112 | 0.018692 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113636 | false | 0 | 0.204545 | 0.045455 | 0.409091 | 0.045455 | 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 | 0 | 0 | 0 | 1 | 0 |
e00d7dd12724a0363ee40d8c349e7cccfb71d6f4 | 5,752 | py | Python | Ex1:Tests/ex2.py | Lludion/Exercises-SE | 4d5b2b4f2989a3e2c7891ba2b766394dbfb43973 | [
"MIT"
] | null | null | null | Ex1:Tests/ex2.py | Lludion/Exercises-SE | 4d5b2b4f2989a3e2c7891ba2b766394dbfb43973 | [
"MIT"
] | null | null | null | Ex1:Tests/ex2.py | Lludion/Exercises-SE | 4d5b2b4f2989a3e2c7891ba2b766394dbfb43973 | [
"MIT"
] | null | null | null | # Ce fichier contient (au moins) cinq erreurs.
# Instructions:
# - tester jusqu'à atteindre 100% de couverture;
# - corriger les bugs;"
# - envoyer le diff ou le dépôt git par email."""
import hypothesis
from hypothesis import given, settings
from hypothesis.strategies import integers, lists
class BinHeap:
#st... | 31.26087 | 112 | 0.604312 | 839 | 5,752 | 4.108462 | 0.210965 | 0.073107 | 0.041485 | 0.05483 | 0.342617 | 0.254424 | 0.217581 | 0.16188 | 0.099507 | 0.089063 | 0 | 0.042623 | 0.25765 | 5,752 | 184 | 113 | 31.26087 | 0.764637 | 0.160466 | 0 | 0.296552 | 0 | 0 | 0.015823 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 1 | 0.117241 | false | 0 | 0.02069 | 0 | 0.186207 | 0.02069 | 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 | 0 | 0 | 0 | 1 | 0 |
e00dbb3c20046835e182d01718caf34d09944176 | 22,455 | py | Python | python/snewpy/snowglobes.py | svalder/snewpy | 5723189ae3dce3506f2fab056bbef24c9ab1a31f | [
"BSD-3-Clause"
] | null | null | null | python/snewpy/snowglobes.py | svalder/snewpy | 5723189ae3dce3506f2fab056bbef24c9ab1a31f | [
"BSD-3-Clause"
] | null | null | null | python/snewpy/snowglobes.py | svalder/snewpy | 5723189ae3dce3506f2fab056bbef24c9ab1a31f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""The ``snewpy.snowglobes`` module contains functions for interacting with SNOwGLoBES.
`SNOwGLoBES <https://github.com/SNOwGLoBES/snowglobes>`_ can estimate detected
event rates from a given input supernova neutrino flux. It supports many
different neutrino detectors, detector materials and in... | 46.298969 | 553 | 0.631485 | 2,934 | 22,455 | 4.724608 | 0.178937 | 0.024527 | 0.016159 | 0.01111 | 0.524816 | 0.513851 | 0.479873 | 0.467104 | 0.452821 | 0.447482 | 0 | 0.013161 | 0.258962 | 22,455 | 484 | 554 | 46.394628 | 0.819892 | 0.311378 | 0 | 0.347826 | 0 | 0.01087 | 0.113608 | 0.023398 | 0.003623 | 0 | 0 | 0 | 0 | 1 | 0.028986 | false | 0 | 0.057971 | 0 | 0.115942 | 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 | 0 | 0 | 0 | 1 | 0 |
e00e074bf789711cc01d53bcaa030d52c4e69f5b | 4,621 | py | Python | rlcycle/dqn_base/loss.py | cyoon1729/Rlcycle | 5c65b9dd61a6fd5d6dfe92f0b3e04bf309828569 | [
"MIT"
] | 128 | 2020-06-29T01:40:36.000Z | 2022-03-29T15:37:39.000Z | rlcycle/dqn_base/loss.py | cyoon1729/Rlcycle | 5c65b9dd61a6fd5d6dfe92f0b3e04bf309828569 | [
"MIT"
] | 8 | 2020-06-29T03:51:50.000Z | 2020-07-22T23:55:47.000Z | rlcycle/dqn_base/loss.py | cyoon1729/Rlcycle | 5c65b9dd61a6fd5d6dfe92f0b3e04bf309828569 | [
"MIT"
] | 24 | 2020-07-02T06:03:03.000Z | 2022-03-22T11:59:53.000Z | from typing import List, Tuple
from omegaconf import DictConfig
import torch
import torch.nn as nn
import torch.nn.functional as F
from rlcycle.common.abstract.loss import Loss
class DQNLoss(Loss):
"""Compute double DQN loss"""
def __init__(self, hyper_params: DictConfig, use_cuda: bool):
Loss.__in... | 34.485075 | 86 | 0.61069 | 614 | 4,621 | 4.315961 | 0.187296 | 0.026415 | 0.067925 | 0.043019 | 0.527547 | 0.496981 | 0.496981 | 0.468679 | 0.468679 | 0.468679 | 0 | 0.012854 | 0.259251 | 4,621 | 133 | 87 | 34.744361 | 0.76132 | 0.015797 | 0 | 0.438776 | 0 | 0 | 0.000883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081633 | false | 0 | 0.061224 | 0.010204 | 0.22449 | 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 | 0 | 0 | 0 | 1 | 0 |
e00f4579dad4a0f1f3310721291b602f532b6bf5 | 12,518 | py | Python | scripts/gap_filling_viewer.py | raphischer/probgf | 01bd2be85aa98afd79fc05c1eb3e260b2bcd2ebd | [
"MIT"
] | 3 | 2020-11-19T10:28:57.000Z | 2021-04-15T17:16:24.000Z | scripts/gap_filling_viewer.py | raphischer/probgf | 01bd2be85aa98afd79fc05c1eb3e260b2bcd2ebd | [
"MIT"
] | null | null | null | scripts/gap_filling_viewer.py | raphischer/probgf | 01bd2be85aa98afd79fc05c1eb3e260b2bcd2ebd | [
"MIT"
] | null | null | null | """viewer application which allows to interactively view spatio-temporal gap filling results"""
import os
import argparse
from datetime import datetime, timedelta
from tkinter import Canvas, Tk, Button, RAISED, DISABLED, SUNKEN, NORMAL
import numpy as np
from PIL import Image, ImageTk
import probgf.media as media
cla... | 51.941909 | 158 | 0.616552 | 1,872 | 12,518 | 3.969017 | 0.149038 | 0.035532 | 0.035532 | 0.01817 | 0.493809 | 0.406864 | 0.340242 | 0.273082 | 0.237012 | 0.182638 | 0 | 0.027346 | 0.228791 | 12,518 | 240 | 159 | 52.158333 | 0.742283 | 0.023406 | 0 | 0.105528 | 0 | 0 | 0.079115 | 0.005897 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065327 | false | 0 | 0.035176 | 0 | 0.105528 | 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 | 0 | 0 | 0 | 1 | 0 |
e00f57f732929e05a58cd0ef2eae47d08e8561a9 | 4,946 | py | Python | paypal/pro/tests.py | pdfcrowd/django-paypal | 0ea56dc6c799204f0f8719481f94d0c79de6eff5 | [
"Unlicense",
"MIT"
] | 1 | 2019-06-13T15:59:48.000Z | 2019-06-13T15:59:48.000Z | pro/tests.py | sirmmo/django-paypal | 0c8aeec1c319a08ce1bfdf828534d01b69b8fa27 | [
"MIT",
"Unlicense"
] | null | null | null | pro/tests.py | sirmmo/django-paypal | 0c8aeec1c319a08ce1bfdf828534d01b69b8fa27 | [
"MIT",
"Unlicense"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
from django.conf import settings
from django.core.handlers.wsgi import WSGIRequest
from django.forms import ValidationError
from django.http import QueryDict
from django.test import TestCase
from django.test.client import Client
from paypal.pro.fields import CreditCardField
fr... | 32.973333 | 234 | 0.593207 | 507 | 4,946 | 5.731755 | 0.467456 | 0.018582 | 0.018582 | 0.01755 | 0.129387 | 0.129387 | 0.118032 | 0.084997 | 0.084997 | 0.084997 | 0 | 0.073118 | 0.247877 | 4,946 | 150 | 235 | 32.973333 | 0.708065 | 0.324909 | 0 | 0.116279 | 0 | 0 | 0.196841 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 1 | 0.093023 | false | 0.011628 | 0.093023 | 0 | 0.244186 | 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 | 0 | 0 | 0 | 1 | 0 |
e00f75413d6a65ba71109974edd248bc1533ce8f | 1,010 | py | Python | Hackerrank_Bot_Saves_Princess.py | madhurgupta96/Algorithmic-Journey | 75868af1050c99fc25e295812ba1a47468c6737f | [
"Apache-2.0"
] | null | null | null | Hackerrank_Bot_Saves_Princess.py | madhurgupta96/Algorithmic-Journey | 75868af1050c99fc25e295812ba1a47468c6737f | [
"Apache-2.0"
] | null | null | null | Hackerrank_Bot_Saves_Princess.py | madhurgupta96/Algorithmic-Journey | 75868af1050c99fc25e295812ba1a47468c6737f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Dec 7 19:46:40 2020
@author: Intel
"""
def displayPathtoPrincess(n,grid):
me_i=n//2
me_j=n//2
for i in range(n):
if 'p' in grid[i]:
pe_i=i
for j in range(n):
if 'p'==grid[i][j]:
pe... | 22.954545 | 40 | 0.372277 | 135 | 1,010 | 2.607407 | 0.325926 | 0.068182 | 0.045455 | 0.051136 | 0.278409 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0.045276 | 0.49703 | 1,010 | 44 | 41 | 22.954545 | 0.647638 | 0.073267 | 0 | 0.15625 | 0 | 0 | 0.019187 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0 | 0 | 0.03125 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
e01063b5b93496a8c88b374770c28bc942feb23d | 65,397 | py | Python | gelviz/basic.py | HiDiHlabs/gelviz | 515f0462738b44609679c2a26c7d8ac3ed3b4b2b | [
"BSD-3-Clause"
] | null | null | null | gelviz/basic.py | HiDiHlabs/gelviz | 515f0462738b44609679c2a26c7d8ac3ed3b4b2b | [
"BSD-3-Clause"
] | null | null | null | gelviz/basic.py | HiDiHlabs/gelviz | 515f0462738b44609679c2a26c7d8ac3ed3b4b2b | [
"BSD-3-Clause"
] | null | null | null | import matplotlib.pyplot as plt
import pybedtools
import pandas as pnd
import numpy as np
import tabix
import matplotlib.ticker as ticker
from matplotlib.patches import Rectangle
from matplotlib.patches import Arrow
from matplotlib.path import Path
from matplotlib.patches import PathPatch
import matplotlib.cm as cm
imp... | 35.254447 | 80 | 0.545101 | 7,733 | 65,397 | 4.448856 | 0.075779 | 0.017731 | 0.01247 | 0.015318 | 0.540273 | 0.476179 | 0.436415 | 0.396274 | 0.367875 | 0.341395 | 0 | 0.018234 | 0.360154 | 65,397 | 1,854 | 81 | 35.273463 | 0.803938 | 0.323241 | 0 | 0.470534 | 0 | 0 | 0.015456 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017495 | false | 0 | 0.012891 | 0 | 0.037753 | 0.001842 | 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 | 0 | 0 | 0 | 1 | 0 |
e010b163b6fbc347a75063de7760418370bb37d6 | 31,171 | py | Python | toc/fsa/fsa.py | djrochford/toc | 934d19b4acda55a6d4610c8a91b1a6005ff7b683 | [
"MIT"
] | null | null | null | toc/fsa/fsa.py | djrochford/toc | 934d19b4acda55a6d4610c8a91b1a6005ff7b683 | [
"MIT"
] | null | null | null | toc/fsa/fsa.py | djrochford/toc | 934d19b4acda55a6d4610c8a91b1a6005ff7b683 | [
"MIT"
] | null | null | null | """
File containing DFA and NFA public classes
"""
import collections.abc
from itertools import product, chain, combinations
from string import printable
from typing import (
AbstractSet,
Container,
FrozenSet,
Iterable,
List,
Mapping,
MutableMapping,
Optional,
Set,
Tuple,
Uni... | 39.506971 | 91 | 0.595939 | 3,719 | 31,171 | 4.838666 | 0.1331 | 0.07302 | 0.030342 | 0.017894 | 0.341039 | 0.273743 | 0.215615 | 0.188775 | 0.161378 | 0.148486 | 0 | 0.00746 | 0.320554 | 31,171 | 788 | 92 | 39.557107 | 0.841258 | 0.279715 | 0 | 0.16888 | 0 | 0 | 0.054557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083491 | false | 0 | 0.009488 | 0.009488 | 0.184061 | 0.003795 | 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 | 0 | 0 | 0 | 1 | 0 |
e013ea72c2e27425fa2415a60a17282e347acbb7 | 45,537 | py | Python | oregano_plugins/fusion/server.py | MrNaif2018/Oregano | cc08f813f9cbdb80d1ac607892f8439ec064ee04 | [
"MIT"
] | null | null | null | oregano_plugins/fusion/server.py | MrNaif2018/Oregano | cc08f813f9cbdb80d1ac607892f8439ec064ee04 | [
"MIT"
] | null | null | null | oregano_plugins/fusion/server.py | MrNaif2018/Oregano | cc08f813f9cbdb80d1ac607892f8439ec064ee04 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
# Oregano - a lightweight Ergon client
# CashFusion - an advanced coin anonymizer
#
# Copyright (C) 2020 Mark B. Lundeberg
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the So... | 45.310448 | 174 | 0.599798 | 5,520 | 45,537 | 4.811594 | 0.175725 | 0.011182 | 0.012651 | 0.007907 | 0.182417 | 0.135354 | 0.111822 | 0.083057 | 0.059676 | 0.033095 | 0 | 0.008967 | 0.324044 | 45,537 | 1,004 | 175 | 45.355578 | 0.853871 | 0.224038 | 0 | 0.254335 | 0 | 0.00289 | 0.074332 | 0.00648 | 0 | 0 | 0.000343 | 0.001992 | 0.011561 | 1 | 0.066474 | false | 0.00289 | 0.021676 | 0.00289 | 0.15896 | 0.037572 | 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 | 0 | 0 | 0 | 1 | 0 |
e014451ff2d26b3e408bb00a4f1a954adc75daa5 | 2,229 | py | Python | Excercici4Package/ex4.py | jtorrenth/CienciaDades | 81f005ed1ddcc218dcde8c5e2f1a297444389a82 | [
"MIT"
] | null | null | null | Excercici4Package/ex4.py | jtorrenth/CienciaDades | 81f005ed1ddcc218dcde8c5e2f1a297444389a82 | [
"MIT"
] | null | null | null | Excercici4Package/ex4.py | jtorrenth/CienciaDades | 81f005ed1ddcc218dcde8c5e2f1a297444389a82 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
def countvalues(dataframe, subject):
# Filtrem i tractem el dataset
economydf = filtrar(dataframe, "economy")
# el printem
printar(economydf, subject)
# Filtrem ara per subject infected i ho desem en un altre df
infectedf = filtrar(dataframe, "infected")
#... | 31.842857 | 154 | 0.674742 | 303 | 2,229 | 4.858086 | 0.382838 | 0.027174 | 0.043478 | 0.022418 | 0.175272 | 0.116848 | 0.04212 | 0 | 0 | 0 | 0 | 0.02051 | 0.190668 | 2,229 | 69 | 155 | 32.304348 | 0.795455 | 0.214895 | 0 | 0 | 0 | 0 | 0.262428 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.030303 | 0 | 0.212121 | 0.242424 | 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 | 0 | 0 | 0 | 1 | 0 |
e0161b99cffb06588c8cd2a39e9f07abf59540ea | 18,987 | bzl | Python | build/rules.bzl | filmil/bazel-ebook | 433f1e157c6c1b7867abf72bc0e882c07477d60d | [
"Apache-2.0"
] | 9 | 2020-05-31T10:24:57.000Z | 2021-12-21T10:07:51.000Z | build/rules.bzl | filmil/bazel-ebook | 433f1e157c6c1b7867abf72bc0e882c07477d60d | [
"Apache-2.0"
] | 2 | 2021-11-09T23:25:01.000Z | 2021-11-10T08:42:22.000Z | build/rules.bzl | filmil/bazel-ebook | 433f1e157c6c1b7867abf72bc0e882c07477d60d | [
"Apache-2.0"
] | 2 | 2020-06-03T13:21:33.000Z | 2021-12-01T20:17:46.000Z | # Copyright (C) 2020 Google Inc.
#
# This file has been licensed under Apache 2.0 license. Please see the LICENSE
# file at the root of the repository.
# Build rules for building ebooks.
# This is the container
CONTAINER = "filipfilmar/ebook-buildenv:1.1"
# Use this for quick local runs.
#CONTAINER = "ebook-builden... | 32.126904 | 103 | 0.599357 | 2,213 | 18,987 | 4.921826 | 0.105739 | 0.030848 | 0.012394 | 0.023136 | 0.685549 | 0.636339 | 0.567297 | 0.534613 | 0.518638 | 0.48733 | 0 | 0.002063 | 0.285195 | 18,987 | 590 | 104 | 32.181356 | 0.800472 | 0.0622 | 0 | 0.611691 | 0 | 0 | 0.172181 | 0.012942 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029228 | false | 0 | 0 | 0.010438 | 0.058455 | 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 | 0 | 0 | 0 | 1 | 0 |
e0164a1f4fee849a8bca46fb970244ecbfd603fe | 715 | py | Python | 1094 EXPERIENCIAS.py | castrolimoeiro/Uri-exercise | 7a9227c55a79f14fe8bde4aa0ebb4c268bbda4bb | [
"MIT"
] | null | null | null | 1094 EXPERIENCIAS.py | castrolimoeiro/Uri-exercise | 7a9227c55a79f14fe8bde4aa0ebb4c268bbda4bb | [
"MIT"
] | null | null | null | 1094 EXPERIENCIAS.py | castrolimoeiro/Uri-exercise | 7a9227c55a79f14fe8bde4aa0ebb4c268bbda4bb | [
"MIT"
] | null | null | null | n = int(input())
coelho = rato = sapo = contador = 0
for i in range(0, n):
q, t = input().split(' ')
t = t.upper()
q = int(q)
if 1 <= q <= 15:
contador += q
if t == 'C':
coelho += q
elif t == 'R':
rato += q
elif t == 'S':
sapo += q
po... | 25.535714 | 51 | 0.544056 | 101 | 715 | 3.851485 | 0.366337 | 0.107969 | 0.113111 | 0.100257 | 0.102828 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032755 | 0.274126 | 715 | 27 | 52 | 26.481481 | 0.716763 | 0 | 0 | 0 | 0 | 0 | 0.299301 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.291667 | 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 | 0 | 0 | 0 | 1 | 0 |
e018a8edf8d16988caad3f9660a381b73b1f97c4 | 17,156 | py | Python | tibanna/top.py | 4dn-dcic/tibanna | bb84597c425a481a230be30cb0ed9b99c774e53d | [
"MIT"
] | 62 | 2017-02-16T02:16:22.000Z | 2022-02-07T08:26:12.000Z | tibanna/top.py | 4dn-dcic/tibanna | bb84597c425a481a230be30cb0ed9b99c774e53d | [
"MIT"
] | 77 | 2017-10-26T20:17:35.000Z | 2022-03-25T22:56:32.000Z | tibanna/top.py | 4dn-dcic/tibanna | bb84597c425a481a230be30cb0ed9b99c774e53d | [
"MIT"
] | 19 | 2017-01-27T16:37:37.000Z | 2021-12-12T13:52:01.000Z | import datetime
class Top(object):
"""class TopSeries stores the information of a series of top commands
::
echo -n 'Timestamp: '; date +%F-%H:%M:%S
top -b -n1 [-i] [-c]
over short intervals to monitor the same set of processes over time.
An example input content looks like below, ... | 47.392265 | 148 | 0.6199 | 2,308 | 17,156 | 4.480069 | 0.206672 | 0.016538 | 0.013927 | 0.011605 | 0.233559 | 0.193907 | 0.155803 | 0.129594 | 0.122631 | 0.111219 | 0 | 0.023622 | 0.296747 | 17,156 | 361 | 149 | 47.523546 | 0.833402 | 0.418046 | 0 | 0.269841 | 0 | 0 | 0.054473 | 0.014426 | 0 | 0 | 0 | 0 | 0 | 1 | 0.100529 | false | 0 | 0.005291 | 0.026455 | 0.243386 | 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 | 0 | 0 | 0 | 1 | 0 |
e01a18c1d0d2ecbc1fcb6159c9f9c87becb0c6cc | 1,458 | py | Python | venv/Lib/site-packages/zmq/tests/test_draft.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 603 | 2020-12-23T13:49:32.000Z | 2022-03-31T23:38:03.000Z | venv/Lib/site-packages/zmq/tests/test_draft.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 387 | 2020-12-15T14:54:04.000Z | 2022-03-31T07:00:21.000Z | venv/Lib/site-packages/zmq/tests/test_draft.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 35 | 2021-03-26T03:12:04.000Z | 2022-03-23T10:15:10.000Z | # -*- coding: utf8 -*-
# Copyright (C) PyZMQ Developers
# Distributed under the terms of the Modified BSD License.
import os
import platform
import time
import pytest
import zmq
from zmq.tests import BaseZMQTestCase, skip_pypy
class TestDraftSockets(BaseZMQTestCase):
def setUp(self):
if not zmq.DRAFT_AP... | 29.16 | 71 | 0.593964 | 179 | 1,458 | 4.75419 | 0.50838 | 0.031727 | 0.037603 | 0.044653 | 0.051704 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01088 | 0.306584 | 1,458 | 49 | 72 | 29.755102 | 0.830861 | 0.095336 | 0 | 0 | 0 | 0 | 0.038052 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.25641 | 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 | 0 | 0 | 0 | 1 | 0 |
e01cd6185b052b2c9153c8eec135e9e3a2cf7572 | 667 | py | Python | base/site-packages/django_qbe/urls.py | edisonlz/fastor | 342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3 | [
"Apache-2.0"
] | 285 | 2019-12-23T09:50:21.000Z | 2021-12-08T09:08:49.000Z | base/site-packages/django_qbe/urls.py | jeckun/fastor | 342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3 | [
"Apache-2.0"
] | null | null | null | base/site-packages/django_qbe/urls.py | jeckun/fastor | 342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3 | [
"Apache-2.0"
] | 9 | 2019-12-23T12:59:25.000Z | 2022-03-15T05:12:11.000Z | # -*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns, url
from django_qbe.exports import formats
urlpatterns = patterns('django_qbe.views',
url(r'^$', 'qbe_form', name="qbe_form"),
url(r'^js/$', 'qbe_js', name="qbe_js"),
url(r'^results/bookmark/$',
'qbe_bookmark', name="qbe_bookma... | 37.055556 | 73 | 0.611694 | 89 | 667 | 4.393258 | 0.370787 | 0.071611 | 0.112532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00177 | 0.152924 | 667 | 17 | 74 | 39.235294 | 0.690265 | 0.031484 | 0 | 0 | 0 | 0 | 0.427019 | 0.100932 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 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 | 0 | 0 | 0 | 1 | 0 |
e01de102906f7a6f8c39855d08b6adaa53f5663c | 1,347 | py | Python | Graph/print all paths from two vertices in a directed graph.py | ikaushikpal/DS-450-python | 9466f77fb9db9e6a5bb3f20aa89ba6332f49e848 | [
"MIT"
] | 3 | 2021-06-28T12:04:19.000Z | 2021-09-07T07:23:41.000Z | Graph/print all paths from two vertices in a directed graph.py | SupriyoDam/DS-450-python | 5dc21ce61b3279e9bd9d6ef3ad236667227ca283 | [
"MIT"
] | null | null | null | Graph/print all paths from two vertices in a directed graph.py | SupriyoDam/DS-450-python | 5dc21ce61b3279e9bd9d6ef3ad236667227ca283 | [
"MIT"
] | 1 | 2021-06-28T15:42:55.000Z | 2021-06-28T15:42:55.000Z | from collections import defaultdict
class Graph:
def __init__(self):
self.graph = defaultdict(list)
def addEdge(self, starting_vertex, end_vertex):
self.graph[starting_vertex].append(end_vertex)
def printAllPaths(self, starting_vertex, target_vertex):
visitedVertices = defaultdic... | 28.659574 | 85 | 0.628062 | 146 | 1,347 | 5.547945 | 0.273973 | 0.103704 | 0.1 | 0.122222 | 0.239506 | 0.239506 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0.256125 | 1,347 | 46 | 86 | 29.282609 | 0.808383 | 0 | 0 | 0 | 0 | 0 | 0.017817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.029412 | 0 | 0.235294 | 0.088235 | 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 | 0 | 0 | 0 | 1 | 0 |
e01f044aab30cbd5165bae297a319d57b579704e | 912 | py | Python | tierpsy/debugging/catch_infinite_loop.py | mgh17/tierpsy-tracker | a18c06aa80a5fb22fd51563d82c639b520742777 | [
"MIT"
] | 9 | 2021-01-11T10:49:21.000Z | 2022-02-28T15:48:00.000Z | tierpsy/debugging/catch_infinite_loop.py | mgh17/tierpsy-tracker | a18c06aa80a5fb22fd51563d82c639b520742777 | [
"MIT"
] | 18 | 2020-05-08T15:43:08.000Z | 2022-03-23T10:19:24.000Z | tierpsy/debugging/catch_infinite_loop.py | mgh17/tierpsy-tracker | a18c06aa80a5fb22fd51563d82c639b520742777 | [
"MIT"
] | 10 | 2019-12-18T12:10:12.000Z | 2022-01-05T09:12:47.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon May 8 16:19:07 2017
@author: ajaver
"""
import os
import cv2
import sys
import glob
import threading
from functools import partial
main_dir = '/Volumes/behavgenom_archive$/Celine/raw/'
fnames = glob.glob(os.path.join(main_dir, '**', '*.avi'))
fnames =... | 21.714286 | 71 | 0.663377 | 132 | 912 | 4.454545 | 0.537879 | 0.107143 | 0.061224 | 0.061224 | 0.20068 | 0.12585 | 0.12585 | 0 | 0 | 0 | 0 | 0.021948 | 0.200658 | 912 | 42 | 72 | 21.714286 | 0.784636 | 0.105263 | 0 | 0.148148 | 0 | 0 | 0.074257 | 0.049505 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.222222 | 0 | 0.296296 | 0.074074 | 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 | 0 | 0 | 0 | 1 | 0 |
e02439282d17416800f4bfd8e050f404bc4d7706 | 5,991 | py | Python | donkeycar/parts/pytorch/torch_data.py | adricl/donkeycar | 8eb2705ed4161c0d6a9cfd9c7b0a1c0ca5abaeef | [
"MIT"
] | 1,100 | 2017-01-18T16:08:33.000Z | 2018-11-04T00:42:54.000Z | donkeycar/parts/pytorch/torch_data.py | adricl/donkeycar | 8eb2705ed4161c0d6a9cfd9c7b0a1c0ca5abaeef | [
"MIT"
] | 199 | 2016-12-20T07:45:16.000Z | 2018-11-01T02:30:12.000Z | donkeycar/parts/pytorch/torch_data.py | adricl/donkeycar | 8eb2705ed4161c0d6a9cfd9c7b0a1c0ca5abaeef | [
"MIT"
] | 521 | 2017-01-10T21:53:24.000Z | 2018-11-01T18:17:52.000Z | # PyTorch
import torch
from torch.utils.data import IterableDataset, DataLoader
from donkeycar.utils import train_test_split
from donkeycar.parts.tub_v2 import Tub
from torchvision import transforms
from typing import List, Any
from donkeycar.pipeline.types import TubRecord, TubDataset
from donkeycar.pipeline.sequence ... | 37.21118 | 95 | 0.633951 | 748 | 5,991 | 4.962567 | 0.299465 | 0.02694 | 0.015086 | 0.005927 | 0.25 | 0.235453 | 0.212284 | 0.188039 | 0.188039 | 0.188039 | 0 | 0.037366 | 0.285261 | 5,991 | 160 | 96 | 37.44375 | 0.829519 | 0.336171 | 0 | 0.125 | 0 | 0 | 0.017108 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 1 | 0.1375 | false | 0 | 0.1125 | 0.05 | 0.375 | 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 | 0 | 0 | 0 | 1 | 0 |
e025cd2fbcd0226b08e7474394109f24f199f13c | 3,857 | py | Python | homeassistant/components/sensor/hddtemp.py | mdonoughe/home-assistant | d9805160bc787146bff0c434fdcab995716f0f8c | [
"Apache-2.0"
] | 2 | 2020-02-20T18:47:55.000Z | 2021-11-09T11:33:28.000Z | homeassistant/components/sensor/hddtemp.py | mdonoughe/home-assistant | d9805160bc787146bff0c434fdcab995716f0f8c | [
"Apache-2.0"
] | 1 | 2021-02-08T20:56:06.000Z | 2021-02-08T20:56:06.000Z | homeassistant/components/sensor/hddtemp.py | diophung/home-assistant | a5aa1118937702ca8bec050614ee52dc14f8466b | [
"Apache-2.0"
] | 1 | 2020-11-21T09:37:47.000Z | 2020-11-21T09:37:47.000Z | """
Support for getting the disk temperature of a host.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.hddtemp/
"""
import logging
from datetime import timedelta
from telnetlib import Telnet
import voluptuous as vol
import homeassistant.helpers.... | 29.219697 | 79 | 0.637283 | 481 | 3,857 | 4.966736 | 0.288981 | 0.027627 | 0.025115 | 0.020092 | 0.064044 | 0.044789 | 0.033487 | 0.033487 | 0.033487 | 0 | 0 | 0.004836 | 0.249417 | 3,857 | 131 | 80 | 29.442748 | 0.82038 | 0.160747 | 0 | 0.114943 | 0 | 0 | 0.02678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.091954 | 0 | 0.287356 | 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 | 0 | 0 | 0 | 1 | 0 |
e026ba13c5f7c12090e3dee6c5f9a4f65eca3bb7 | 1,402 | py | Python | boomer.py | JohnnySn0w/BabbleBot | 03a383b063e4f28049f27f8ec669f22767ed8a87 | [
"MIT"
] | 1 | 2019-07-07T01:46:55.000Z | 2019-07-07T01:46:55.000Z | boomer.py | JohnnySn0w/BabbleBot | 03a383b063e4f28049f27f8ec669f22767ed8a87 | [
"MIT"
] | 1 | 2019-07-26T18:34:02.000Z | 2019-07-26T18:34:02.000Z | boomer.py | JohnnySn0w/BabbleBot | 03a383b063e4f28049f27f8ec669f22767ed8a87 | [
"MIT"
] | 1 | 2020-05-10T01:27:48.000Z | 2020-05-10T01:27:48.000Z | import random
prefix = [
'Look at you! ',
'Bless ',
'Bless! ',
'I heard about that! ',
'Amen!',
'You and the kids doing alright?',
'Miss ya\'ll!'
]
suffix = [
'. Amen!',
'. God bless america',
'. God bless!',
' haha',
'. love ya!',
'. love ya\'ll!',
]
def add_pre_suf(sentence):
if random.randint(1,10) <= 6:
... | 23.366667 | 76 | 0.53067 | 189 | 1,402 | 3.867725 | 0.343915 | 0.106703 | 0.076607 | 0.087551 | 0.314637 | 0.240766 | 0.240766 | 0.240766 | 0.240766 | 0.240766 | 0 | 0.038382 | 0.312411 | 1,402 | 59 | 77 | 23.762712 | 0.719917 | 0 | 0 | 0.222222 | 0 | 0 | 0.113409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.018519 | 0 | 0.203704 | 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 | 0 | 0 | 0 | 1 | 0 |