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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
12c910019ee898a49353296cfa1151794de23e8c | 76,959 | py | Python | sdk/python/pulumi_azure_native/migrate/v20210101/_inputs.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/migrate/v20210101/_inputs.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/migrate/v20210101/_inputs.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | 42.707547 | 579 | 0.675035 | 8,813 | 76,959 | 5.69284 | 0.038806 | 0.098005 | 0.080365 | 0.047358 | 0.879911 | 0.817424 | 0.769468 | 0.690837 | 0.654482 | 0.612465 | 0 | 0.000752 | 0.222157 | 76,959 | 1,801 | 580 | 42.73126 | 0.837359 | 0.269728 | 0 | 0.562985 | 1 | 0 | 0.174531 | 0.097249 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210271 | false | 0 | 0.005814 | 0 | 0.334302 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4203372672fd1f953102458a86d8342c87caa1c6 | 32,867 | py | Python | airdrop/testcases/unit_testcases/test_airdrop_claims.py | raamb/airdrop-services | f386dc6f3f8e1633d1c27d014c4a4483870b79ed | [
"MIT"
] | null | null | null | airdrop/testcases/unit_testcases/test_airdrop_claims.py | raamb/airdrop-services | f386dc6f3f8e1633d1c27d014c4a4483870b79ed | [
"MIT"
] | null | null | null | airdrop/testcases/unit_testcases/test_airdrop_claims.py | raamb/airdrop-services | f386dc6f3f8e1633d1c27d014c4a4483870b79ed | [
"MIT"
] | null | null | null | import unittest
from unittest import TestCase
from unittest.mock import Mock, patch
from airdrop.application.services.airdrop_services import AirdropServices
from http import HTTPStatus
from airdrop.constants import AirdropClaimStatus
from airdrop.infrastructure.repositories.airdrop_repository import AirdropRepository
... | 50.956589 | 272 | 0.703502 | 3,289 | 32,867 | 6.549711 | 0.062025 | 0.07302 | 0.037601 | 0.034816 | 0.869139 | 0.850989 | 0.820026 | 0.797605 | 0.782054 | 0.773744 | 0 | 0.085888 | 0.225971 | 32,867 | 644 | 273 | 51.035714 | 0.760888 | 0.012657 | 0 | 0.688805 | 0 | 0.003795 | 0.264834 | 0.197978 | 0 | 0 | 0.085627 | 0 | 0.055028 | 1 | 0.037951 | false | 0 | 0.018975 | 0 | 0.062619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
420871f98779a91192c69b649cb828ea1542b43e | 66,702 | py | Python | tcplotter/tcplotter.py | HUGG/gchron-plotters | 6f8115c62431030f59bbe6203b243f88d96527e0 | [
"MIT"
] | null | null | null | tcplotter/tcplotter.py | HUGG/gchron-plotters | 6f8115c62431030f59bbe6203b243f88d96527e0 | [
"MIT"
] | 5 | 2022-02-04T07:13:32.000Z | 2022-03-15T14:15:04.000Z | tcplotter/tcplotter.py | HUGG/gchron-plotters | 6f8115c62431030f59bbe6203b243f88d96527e0 | [
"MIT"
] | null | null | null | # Import libraries we need
import matplotlib.pyplot as plt
from matplotlib.ticker import ScalarFormatter
import numpy as np
import os
from pathlib import Path
from scipy.interpolate import interp1d
import shutil
import subprocess
# Define function for calculating effective uranium concentration
def calc_eu(uranium, t... | 34.311728 | 220 | 0.586564 | 8,977 | 66,702 | 4.152389 | 0.056478 | 0.025968 | 0.024144 | 0.019959 | 0.848455 | 0.814626 | 0.78238 | 0.75676 | 0.723951 | 0.691169 | 0 | 0.026678 | 0.320575 | 66,702 | 1,943 | 221 | 34.329388 | 0.79481 | 0.314323 | 0 | 0.658197 | 0 | 0.011475 | 0.118924 | 0.008353 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004918 | false | 0.00082 | 0.011475 | 0 | 0.021311 | 0.013934 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
423765663e86f9b54dcaace491c71c52f7fbc487 | 131 | py | Python | tests/learnergy/visual/test_tensor.py | anukaal/learnergy | 704fc2b3fcb80df41ed28d750dc4e6475df23315 | [
"Apache-2.0"
] | 39 | 2020-02-27T00:47:45.000Z | 2022-03-28T14:57:26.000Z | tests/learnergy/visual/test_tensor.py | anukaal/learnergy | 704fc2b3fcb80df41ed28d750dc4e6475df23315 | [
"Apache-2.0"
] | 5 | 2021-05-11T08:23:37.000Z | 2022-01-20T12:50:59.000Z | tests/learnergy/visual/test_tensor.py | anukaal/learnergy | 704fc2b3fcb80df41ed28d750dc4e6475df23315 | [
"Apache-2.0"
] | 6 | 2020-04-15T00:23:13.000Z | 2022-01-29T16:22:05.000Z | import torch
from learnergy.visual import tensor
def test_show_tensor():
t = torch.zeros(28, 28)
tensor.show_tensor(t)
| 13.1 | 35 | 0.717557 | 20 | 131 | 4.55 | 0.6 | 0.21978 | 0.241758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.19084 | 131 | 9 | 36 | 14.555556 | 0.820755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
429f38443b1a508db9b8162d08534dfe1d6b5446 | 99 | py | Python | mitmirror/main/routes/__init__.py | Claayton/mitmirror-api | a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1 | [
"MIT"
] | null | null | null | mitmirror/main/routes/__init__.py | Claayton/mitmirror-api | a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1 | [
"MIT"
] | 1 | 2021-10-09T20:42:03.000Z | 2021-10-09T20:42:03.000Z | mitmirror/main/routes/__init__.py | Claayton/mitmirror-api | a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1 | [
"MIT"
] | null | null | null | """Inicializacao do modulo routes"""
from .users_routes import users
from .auth_routes import auth
| 24.75 | 36 | 0.79798 | 14 | 99 | 5.5 | 0.571429 | 0.311688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 99 | 3 | 37 | 33 | 0.885057 | 0.30303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6732b42dce2262de2e645552dcc98a01c5aaf093 | 91 | py | Python | function.py | bconti123/Python-Practice | 207e9108ef80841fb96ba32a3ec46f5c962e3399 | [
"MIT"
] | null | null | null | function.py | bconti123/Python-Practice | 207e9108ef80841fb96ba32a3ec46f5c962e3399 | [
"MIT"
] | null | null | null | function.py | bconti123/Python-Practice | 207e9108ef80841fb96ba32a3ec46f5c962e3399 | [
"MIT"
] | null | null | null |
def bryant():
print("Hey Bryant!!!")
print("You're awesome!!!")
bryant() | 15.166667 | 31 | 0.505495 | 10 | 91 | 4.6 | 0.7 | 0.478261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.274725 | 91 | 6 | 32 | 15.166667 | 0.69697 | 0 | 0 | 0 | 0 | 0 | 0.348837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0 | 0 | 0.25 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
674095f2e116c3d63a2396277fc614d244a605a2 | 19,759 | py | Python | tests/encoding/ndn_format_0_3_test.py | Zhiyi-Zhang/python-ndn | b05ed72dc7f0190e015edecf81d8949fb2eefe64 | [
"Apache-2.0"
] | null | null | null | tests/encoding/ndn_format_0_3_test.py | Zhiyi-Zhang/python-ndn | b05ed72dc7f0190e015edecf81d8949fb2eefe64 | [
"Apache-2.0"
] | null | null | null | tests/encoding/ndn_format_0_3_test.py | Zhiyi-Zhang/python-ndn | b05ed72dc7f0190e015edecf81d8949fb2eefe64 | [
"Apache-2.0"
] | null | null | null | # -----------------------------------------------------------------------------
# Copyright (C) 2019 Xinyu Ma
#
# This file is part of python-ndn.
#
# 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... | 45.111872 | 119 | 0.613948 | 2,683 | 19,759 | 4.414089 | 0.140887 | 0.022967 | 0.027358 | 0.043908 | 0.804864 | 0.775986 | 0.74601 | 0.717048 | 0.701934 | 0.65735 | 0 | 0.154714 | 0.250569 | 19,759 | 437 | 120 | 45.215103 | 0.645057 | 0.03735 | 0 | 0.668478 | 0 | 0.130435 | 0.317371 | 0.264379 | 0 | 0 | 0.002736 | 0 | 0.255435 | 1 | 0.065217 | false | 0.002717 | 0.013587 | 0.005435 | 0.097826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
674f39756110b4725329e9294de8ee0f8aa529b3 | 47 | py | Python | pyjsonata/__init__.py | qlyoung/pyjsonata | 70bc8e993d70cea3f8731e45761319ab89859fec | [
"MIT"
] | 10 | 2020-03-06T16:01:43.000Z | 2022-01-24T02:28:39.000Z | pyjsonata/__init__.py | qlyoung/pyjsonata | 70bc8e993d70cea3f8731e45761319ab89859fec | [
"MIT"
] | 1 | 2021-09-23T04:48:39.000Z | 2021-09-23T04:48:39.000Z | pyjsonata/__init__.py | qlyoung/pyjsonata | 70bc8e993d70cea3f8731e45761319ab89859fec | [
"MIT"
] | 1 | 2021-08-28T21:15:10.000Z | 2021-08-28T21:15:10.000Z | from .pyjsonata import jsonata, PyjsonataError
| 23.5 | 46 | 0.851064 | 5 | 47 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 47 | 1 | 47 | 47 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6751bb6d266304b9e951eb5e64ac7f5222225524 | 39,027 | py | Python | alembic/versions/554365813a89_add_25x25_records.py | mchen91/mismatch-bot | 60dfada418d4783601f036855533c08d439b7946 | [
"MIT"
] | null | null | null | alembic/versions/554365813a89_add_25x25_records.py | mchen91/mismatch-bot | 60dfada418d4783601f036855533c08d439b7946 | [
"MIT"
] | null | null | null | alembic/versions/554365813a89_add_25x25_records.py | mchen91/mismatch-bot | 60dfada418d4783601f036855533c08d439b7946 | [
"MIT"
] | null | null | null | """add 25x25 records
Revision ID: 554365813a89
Revises: a67c2dc410d2
Create Date: 2021-02-15 20:36:37.952280
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "554365813a89"
down_revision = "a67c2dc410d2"
branch_labels = None
depends_on = None
def upgrade():
... | 175.008969 | 1,393 | 0.788582 | 6,163 | 39,027 | 4.962031 | 0.202823 | 0.143095 | 0.268304 | 0.321965 | 0.551388 | 0.488244 | 0.078022 | 0.047023 | 0.010693 | 0.010693 | 0 | 0.114757 | 0.07851 | 39,027 | 222 | 1,394 | 175.797297 | 0.735589 | 0.00451 | 0 | 0.168317 | 0 | 0.371287 | 0.918722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009901 | false | 0.009901 | 0.039604 | 0 | 0.049505 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
67c93adf38f6d5d28a731d8427b567858e9fcbc5 | 240 | py | Python | src/compas_fea/fea/ansys/ansys_file_writer.py | yijiangh/compas_fea | 632542da6a3794f6a82c30131c61a421a10a9aa8 | [
"MIT"
] | null | null | null | src/compas_fea/fea/ansys/ansys_file_writer.py | yijiangh/compas_fea | 632542da6a3794f6a82c30131c61a421a10a9aa8 | [
"MIT"
] | null | null | null | src/compas_fea/fea/ansys/ansys_file_writer.py | yijiangh/compas_fea | 632542da6a3794f6a82c30131c61a421a10a9aa8 | [
"MIT"
] | null | null | null |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# Author(s): Tomas Mendez Echenagucia (github.com/tmsmendez)
class AnsysFileWriter(object):
def __init__():
pass
| 17.142857 | 60 | 0.770833 | 28 | 240 | 5.964286 | 0.75 | 0.179641 | 0.287425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170833 | 240 | 13 | 61 | 18.461538 | 0.839196 | 0.241667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0.166667 | 0.5 | 0 | 0.833333 | 0.166667 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
e1fb235f2307f4a990da16809f783d3b9c0de1d2 | 10,079 | py | Python | src/grana_model/objectdata.py | fieryWalrus1002/grana_model | 5fb4de5249ce27fce98eaa8bfe2aed0abbcb62a9 | [
"MIT"
] | null | null | null | src/grana_model/objectdata.py | fieryWalrus1002/grana_model | 5fb4de5249ce27fce98eaa8bfe2aed0abbcb62a9 | [
"MIT"
] | null | null | null | src/grana_model/objectdata.py | fieryWalrus1002/grana_model | 5fb4de5249ce27fce98eaa8bfe2aed0abbcb62a9 | [
"MIT"
] | null | null | null | from typing import Any, Iterator
import pandas as pd
import random
from math import pi
import numpy as np
import pickle
import os
class ObjectData:
"""This data structure"""
def __init__(
self,
pos_csv_filename: str,
spawn_seed=0,
res_path: str = "src/grana_model/res/",
):... | 37.191882 | 86 | 0.570692 | 1,296 | 10,079 | 4.180556 | 0.131944 | 0.068475 | 0.040605 | 0.03876 | 0.898302 | 0.881506 | 0.876707 | 0.870801 | 0.863234 | 0.863234 | 0 | 0.037367 | 0.309654 | 10,079 | 270 | 87 | 37.32963 | 0.741305 | 0.358468 | 0 | 0.606897 | 0 | 0 | 0.128327 | 0.051918 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082759 | false | 0.006897 | 0.103448 | 0 | 0.268966 | 0.006897 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c027be3dd22e68d1e18e4e6bc09e9a7b1e0e48e9 | 90 | py | Python | faker/providers/user_agent/en_US/__iniut__.py | bdclauser/Faker | b676668214f5f4cf2849eea16d50c835ffba5be9 | [
"MIT"
] | 1 | 2021-01-21T03:44:59.000Z | 2021-01-21T03:44:59.000Z | faker/providers/user_agent/en_US/__iniut__.py | bdclauser/Faker | b676668214f5f4cf2849eea16d50c835ffba5be9 | [
"MIT"
] | null | null | null | faker/providers/user_agent/en_US/__iniut__.py | bdclauser/Faker | b676668214f5f4cf2849eea16d50c835ffba5be9 | [
"MIT"
] | null | null | null | from .. import Provider as UserAgentProvider
class Provider(UserAgentProvider):
pass | 18 | 44 | 0.788889 | 9 | 90 | 7.888889 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155556 | 90 | 5 | 45 | 18 | 0.934211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
c03c0d5ad25e527ddaf3cc171824f0666037ad14 | 33 | py | Python | RoboHashpy/__init__.py | namanko/RoboHash | 64f76f381628160872e2156cf5f0cd8e3c4e1cc2 | [
"MIT"
] | 2 | 2021-11-09T13:41:02.000Z | 2021-11-10T09:19:13.000Z | RoboHashpy/__init__.py | namanko/RoboHash | 64f76f381628160872e2156cf5f0cd8e3c4e1cc2 | [
"MIT"
] | null | null | null | RoboHashpy/__init__.py | namanko/RoboHash | 64f76f381628160872e2156cf5f0cd8e3c4e1cc2 | [
"MIT"
] | null | null | null | from .RoboHashpy import RoboHash
| 16.5 | 32 | 0.848485 | 4 | 33 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 33 | 1 | 33 | 33 | 0.965517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
c05a21c58ee5e9082d1aa5a90befba64327a20aa | 6,091 | py | Python | drivers/eza2500/command0301.py | jinupygogo/apis-dcdc_batt_comm | 7fc4317df414d1b4a4efea271605a52d6aae950b | [
"Apache-2.0"
] | 3 | 2020-12-01T04:30:12.000Z | 2021-12-28T02:42:44.000Z | drivers/eza2500/command0301.py | jinupygogo/apis-dcdc_batt_comm | 7fc4317df414d1b4a4efea271605a52d6aae950b | [
"Apache-2.0"
] | null | null | null | drivers/eza2500/command0301.py | jinupygogo/apis-dcdc_batt_comm | 7fc4317df414d1b4a4efea271605a52d6aae950b | [
"Apache-2.0"
] | 2 | 2020-12-01T14:07:48.000Z | 2021-02-19T07:10:23.000Z | # -*- coding: utf-8 -*-
from struct import pack, unpack
import os
from essx import essx_debug
from essx.essx_exception import ESSXDeviceException, ESSXValueException, ESSXParameterException, ESSXException
from eza2500 import eza2500_base
from eza2500 import eza2500_util
class Command0301(eza2500_base.EZA2500CommandBa... | 29.712195 | 110 | 0.616648 | 823 | 6,091 | 4.306197 | 0.157959 | 0.046558 | 0.03386 | 0.025395 | 0.792325 | 0.735892 | 0.735892 | 0.711061 | 0.711061 | 0.711061 | 0 | 0.079673 | 0.237564 | 6,091 | 204 | 111 | 29.857843 | 0.683463 | 0.026761 | 0 | 0.789474 | 0 | 0 | 0.059252 | 0 | 0 | 0 | 0.005417 | 0 | 0 | 1 | 0.093567 | false | 0 | 0.064327 | 0.011696 | 0.274854 | 0.011696 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c05c37dc984dcc04d7f07c7ece3abf0472f5d6d9 | 7,470 | py | Python | dhc_os_auth/tests/tests.py | dreamhost/dreamhost_openstack_auth | 9134a2ce9bf807ee6b6b0cedc340ff5de3ffc40a | [
"BSD-3-Clause"
] | null | null | null | dhc_os_auth/tests/tests.py | dreamhost/dreamhost_openstack_auth | 9134a2ce9bf807ee6b6b0cedc340ff5de3ffc40a | [
"BSD-3-Clause"
] | null | null | null | dhc_os_auth/tests/tests.py | dreamhost/dreamhost_openstack_auth | 9134a2ce9bf807ee6b6b0cedc340ff5de3ffc40a | [
"BSD-3-Clause"
] | null | null | null | from django import test
from django.conf import settings
from django.core.urlresolvers import reverse
from keystoneclient import exceptions as keystone_exceptions
from keystoneclient.v2_0 import client
import mox
from .data import generate_test_data
class OpenStackAuthTests(test.TestCase):
def setUp(self):
... | 36.79803 | 78 | 0.601071 | 798 | 7,470 | 5.481203 | 0.134085 | 0.028807 | 0.069959 | 0.076818 | 0.782579 | 0.742341 | 0.722679 | 0.706447 | 0.701646 | 0.685871 | 0 | 0.004776 | 0.299331 | 7,470 | 202 | 79 | 36.980198 | 0.830913 | 0.034672 | 0 | 0.659574 | 0 | 0 | 0.060539 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 1 | 0.049645 | false | 0.078014 | 0.049645 | 0 | 0.106383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
227bd906c6afba5a3135961cdc318f0957d0dc4d | 23,913 | py | Python | examples/vm.py | oreuta/fuzzy-voxels | c3d684a7299cd8b9316a015353f71cce8e6ef1da | [
"MIT"
] | null | null | null | examples/vm.py | oreuta/fuzzy-voxels | c3d684a7299cd8b9316a015353f71cce8e6ef1da | [
"MIT"
] | null | null | null | examples/vm.py | oreuta/fuzzy-voxels | c3d684a7299cd8b9316a015353f71cce8e6ef1da | [
"MIT"
] | null | null | null | import numpy as np
import bpy
def draw_voxel_model(V, N, M, K, group_name='VM'):
g = bpy.data.groups.new(group_name)
mat_dict = dict()
Nh = N/2
Mh = M/2
Kh = K/2
for i in range(N):
for j in range(M):
for k in range(K):
p = V[i,j,k]
if p > 0:
mat_name = 'm'+str(p)[2:]
... | 17.467495 | 82 | 0.481328 | 8,150 | 23,913 | 1.410184 | 0.011043 | 0.305577 | 0.203167 | 0.043853 | 0.956669 | 0 | 0 | 0 | 0 | 0 | 0 | 0.427014 | 0.179233 | 23,913 | 1,368 | 83 | 17.480263 | 0.158557 | 0 | 0 | 0 | 0 | 0 | 0.000125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.000734 | false | 0 | 0.001467 | 0 | 0.002935 | 0 | 0 | 0 | 1 | null | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
97f41302bffab8aea500ac607cc8ac3aa035a62b | 59 | py | Python | kornia/io/__init__.py | kornia/kornia-io | 35b121f1a434a3868d346a757be0ec24bbdaee65 | [
"Apache-2.0"
] | 2 | 2020-04-12T10:17:14.000Z | 2021-12-22T14:50:17.000Z | kornia/io/__init__.py | kornia/kornia-io | 35b121f1a434a3868d346a757be0ec24bbdaee65 | [
"Apache-2.0"
] | null | null | null | kornia/io/__init__.py | kornia/kornia-io | 35b121f1a434a3868d346a757be0ec24bbdaee65 | [
"Apache-2.0"
] | null | null | null | from .dali import DaliImageReader, DaliImageCollateWrapper
| 29.5 | 58 | 0.881356 | 5 | 59 | 10.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084746 | 59 | 1 | 59 | 59 | 0.962963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
3f53b0d2db6006a738ae704fe74197533caab1c6 | 651 | py | Python | examples/minitwit/inst2016.py | txdywy/flask | 5cf167b448267aedec8f5b2e30ad4ee0ad9b3f55 | [
"BSD-3-Clause"
] | 2 | 2015-08-07T18:01:01.000Z | 2015-08-14T03:29:10.000Z | examples/minitwit/inst2016.py | txdywy/flask | 5cf167b448267aedec8f5b2e30ad4ee0ad9b3f55 | [
"BSD-3-Clause"
] | 2 | 2015-03-30T05:28:35.000Z | 2015-06-28T01:08:50.000Z | examples/minitwit/inst2016.py | txdywy/flask | 5cf167b448267aedec8f5b2e30ad4ee0ad9b3f55 | [
"BSD-3-Clause"
] | 2 | 2015-03-04T05:06:55.000Z | 2015-03-29T22:46:19.000Z | import mei
import time
t = "IGSC341f55974baadb2775ff551acc9fb1625fb9466061411e4e6a8ad0cd8806d7c0%3AUQR4evOb50AbefuIH60POSuGzddobOKU%3A%7B%22asns%22%3A%7B%22time%22%3A1498550402%2C%2223.99.114.67%22%3A8075%7D%2C%22_auth_user_hash%22%3A%22%22%2C%22_auth_user_backend%22%3A%22accounts.backends.CaseInsensitiveModelBackend%... | 81.375 | 566 | 0.855607 | 90 | 651 | 6.022222 | 0.544444 | 0.04428 | 0.04428 | 0.066421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.377389 | 0.03533 | 651 | 7 | 567 | 93 | 0.485669 | 0 | 0 | 0 | 0 | 0.166667 | 0.860215 | 0.860215 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
58c672442b8959c32add3d6af0706cda47534803 | 32 | py | Python | src/example_package/random_file.py | szemyd/packaging-python-public | e16fed1f335d5f5153f21e40afb1add21c712973 | [
"MIT"
] | null | null | null | src/example_package/random_file.py | szemyd/packaging-python-public | e16fed1f335d5f5153f21e40afb1add21c712973 | [
"MIT"
] | null | null | null | src/example_package/random_file.py | szemyd/packaging-python-public | e16fed1f335d5f5153f21e40afb1add21c712973 | [
"MIT"
] | null | null | null | def random_function():
pass
| 10.666667 | 22 | 0.6875 | 4 | 32 | 5.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21875 | 32 | 2 | 23 | 16 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
58e32aefef70cad8d1a60c31bff1a82852871c22 | 19 | py | Python | pyocs/__init__.py | rzshrote/PyOCS | c02422b418961aa5a1f308d0251b8bf551912db2 | [
"Apache-2.0"
] | null | null | null | pyocs/__init__.py | rzshrote/PyOCS | c02422b418961aa5a1f308d0251b8bf551912db2 | [
"Apache-2.0"
] | null | null | null | pyocs/__init__.py | rzshrote/PyOCS | c02422b418961aa5a1f308d0251b8bf551912db2 | [
"Apache-2.0"
] | null | null | null | from .ocs import *
| 9.5 | 18 | 0.684211 | 3 | 19 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 19 | 1 | 19 | 19 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
450ce03465dd38bb4ca1b797bfd63bb0d079a316 | 1,930 | py | Python | python/tests/generated/errors/parsing/test_missing_element_for_continuation.py | eno-lang/enolib | 4175f7c1e8246493b6758c29bddc80d20eaf15f7 | [
"MIT"
] | 17 | 2019-04-15T21:03:37.000Z | 2022-01-24T11:03:34.000Z | python/tests/generated/errors/parsing/test_missing_element_for_continuation.py | eno-lang/enolib | 4175f7c1e8246493b6758c29bddc80d20eaf15f7 | [
"MIT"
] | 20 | 2019-03-13T23:23:40.000Z | 2022-03-29T13:40:57.000Z | python/tests/generated/errors/parsing/test_missing_element_for_continuation.py | eno-lang/enolib | 4175f7c1e8246493b6758c29bddc80d20eaf15f7 | [
"MIT"
] | 4 | 2019-04-15T21:18:03.000Z | 2019-09-21T16:18:10.000Z | import enolib
def test_parsing_a_line_continuation_without_any_prior_element_raises_the_expected_parseerror():
error = None
input = ("| continuation")
try:
enolib.parse(input)
except enolib.ParseError as _error:
if isinstance(_error, enolib.ParseError):
error = _error
... | 29.692308 | 104 | 0.58601 | 209 | 1,930 | 5.244019 | 0.272727 | 0.120438 | 0.145985 | 0.087591 | 0.895985 | 0.841241 | 0.784672 | 0.709854 | 0.709854 | 0.709854 | 0 | 0.011896 | 0.303109 | 1,930 | 65 | 105 | 29.692308 | 0.802974 | 0 | 0 | 0.553191 | 0 | 0 | 0.230968 | 0 | 0 | 0 | 0 | 0 | 0.297872 | 1 | 0.042553 | false | 0 | 0.021277 | 0 | 0.06383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4513f4aed71a1d907d2b7f0c327e4f99644ddd96 | 49 | py | Python | oceans/plotting/__init__.py | arnaldorusso/python-oceans | fb4dc2a7ee1add14b023b4830f47993061fe2e6a | [
"MIT"
] | null | null | null | oceans/plotting/__init__.py | arnaldorusso/python-oceans | fb4dc2a7ee1add14b023b4830f47993061fe2e6a | [
"MIT"
] | null | null | null | oceans/plotting/__init__.py | arnaldorusso/python-oceans | fb4dc2a7ee1add14b023b4830f47993061fe2e6a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .plotting import *
| 12.25 | 23 | 0.571429 | 6 | 49 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.204082 | 49 | 3 | 24 | 16.333333 | 0.692308 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
452a06e1996d47be0d14cef67bc448612881b74e | 2,462 | py | Python | nengo/utils/tests/test_functions_piecewise.py | HugoChateauLaurent/nengo | 749893186ee09aa6c621a40da3ffd3878114db9c | [
"BSD-2-Clause"
] | null | null | null | nengo/utils/tests/test_functions_piecewise.py | HugoChateauLaurent/nengo | 749893186ee09aa6c621a40da3ffd3878114db9c | [
"BSD-2-Clause"
] | null | null | null | nengo/utils/tests/test_functions_piecewise.py | HugoChateauLaurent/nengo | 749893186ee09aa6c621a40da3ffd3878114db9c | [
"BSD-2-Clause"
] | null | null | null | import numpy as np
import pytest
from nengo.exceptions import ValidationError
from nengo.utils.functions import piecewise
@pytest.mark.filterwarnings('ignore::DeprecationWarning')
def test_basic():
f = piecewise({0.5: 1, 1.0: 0})
assert np.allclose(f(-10), [0])
assert np.allclose(f(0), [0])
assert np... | 30.02439 | 59 | 0.622665 | 406 | 2,462 | 3.746305 | 0.123153 | 0.147272 | 0.294543 | 0.312952 | 0.806049 | 0.780408 | 0.748849 | 0.57002 | 0.257068 | 0.132807 | 0 | 0.089295 | 0.176686 | 2,462 | 81 | 60 | 30.395062 | 0.661075 | 0 | 0 | 0.206349 | 0 | 0 | 0.07433 | 0.073924 | 0 | 0 | 0 | 0 | 0.492063 | 1 | 0.142857 | false | 0 | 0.063492 | 0.031746 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7a0c067979eaca2f0dbd403e40b13050c938165c | 4,652 | py | Python | tests/unit/test_repair.py | luminartech/auditwheel | 83440f278c7c12c265c5e6d450305facc29f0a5e | [
"BSD-2-Clause"
] | 280 | 2016-02-07T18:41:15.000Z | 2022-03-26T05:28:26.000Z | tests/unit/test_repair.py | luminartech/auditwheel | 83440f278c7c12c265c5e6d450305facc29f0a5e | [
"BSD-2-Clause"
] | 331 | 2016-02-01T19:19:31.000Z | 2022-03-25T01:30:27.000Z | tests/unit/test_repair.py | luminartech/auditwheel | 83440f278c7c12c265c5e6d450305facc29f0a5e | [
"BSD-2-Clause"
] | 110 | 2016-03-16T11:33:18.000Z | 2022-02-23T11:58:21.000Z | import os
from unittest.mock import call, patch
from auditwheel.patcher import Patchelf
from auditwheel.repair import append_rpath_within_wheel
@patch("auditwheel.patcher._verify_patchelf")
@patch("auditwheel.patcher.check_output")
@patch("auditwheel.patcher.check_call")
class TestRepair:
def test_append_rpath(s... | 40.103448 | 86 | 0.612425 | 540 | 4,652 | 4.925926 | 0.142593 | 0.073684 | 0.066165 | 0.069173 | 0.809023 | 0.792481 | 0.792481 | 0.792481 | 0.776316 | 0.776316 | 0 | 0 | 0.290198 | 4,652 | 115 | 87 | 40.452174 | 0.805572 | 0.10963 | 0 | 0.677083 | 0 | 0 | 0.145208 | 0.037754 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.09375 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7a0d4755742d3c57ea1bebff1a07e0e2429908b6 | 69 | py | Python | contesto/utils/lambda_object.py | kaktaktoa/contesto | c31d10959abf1397182c24216880c487d29ac184 | [
"MIT"
] | null | null | null | contesto/utils/lambda_object.py | kaktaktoa/contesto | c31d10959abf1397182c24216880c487d29ac184 | [
"MIT"
] | null | null | null | contesto/utils/lambda_object.py | kaktaktoa/contesto | c31d10959abf1397182c24216880c487d29ac184 | [
"MIT"
] | null | null | null | def LambdaObject():
return type('LambdaObject', (object,), {})()
| 23 | 48 | 0.623188 | 6 | 69 | 7.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144928 | 69 | 2 | 49 | 34.5 | 0.728814 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
e1350354e041c53cb2aafc1747d8dd85b1f91903 | 350 | py | Python | proboards_scraper/scraper/__init__.py | ScottMastro/proboards-scraper | d970ba14b3ab4ea0b210f4d78664be4a13ca442a | [
"MIT"
] | 2 | 2021-07-05T12:03:00.000Z | 2022-03-06T21:31:49.000Z | proboards_scraper/scraper/__init__.py | ScottMastro/proboards-scraper | d970ba14b3ab4ea0b210f4d78664be4a13ca442a | [
"MIT"
] | 17 | 2021-05-17T03:46:46.000Z | 2022-03-11T21:19:45.000Z | proboards_scraper/scraper/__init__.py | ScottMastro/proboards-scraper | d970ba14b3ab4ea0b210f4d78664be4a13ca442a | [
"MIT"
] | 2 | 2022-01-21T22:03:07.000Z | 2022-02-17T21:38:38.000Z | from .scrape import (
scrape_board, scrape_forum, scrape_poll, scrape_shoutbox,
scrape_smileys, scrape_thread, scrape_user, scrape_users,
)
from .utils import split_url
__all__ = [
"scrape_board", "scrape_forum", "scrape_poll", "scrape_shoutbox",
"scrape_smileys", "scrape_thread", "scrape_user", "scra... | 26.923077 | 69 | 0.731429 | 43 | 350 | 5.44186 | 0.348837 | 0.094017 | 0.145299 | 0.188034 | 0.786325 | 0.786325 | 0.786325 | 0.786325 | 0.786325 | 0.786325 | 0 | 0 | 0.148571 | 350 | 12 | 70 | 29.166667 | 0.785235 | 0 | 0 | 0 | 0 | 0 | 0.311429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e14113a4ab06ee975be83075712e9d1190dfcb4d | 45 | py | Python | models/ops/depthavgpooling/modules/__init__.py | E18301194/DepthAwareCNN | 8ae98f7f18b69f79e7df03397dec2543d3d0c8eb | [
"MIT"
] | 278 | 2018-05-09T03:08:56.000Z | 2022-03-10T08:05:10.000Z | models/ops/depthavgpooling/modules/__init__.py | jfzhang95/DepthAwareCNN | 2076c751279637f112d9ea9ce33459b6f3b20063 | [
"MIT"
] | 35 | 2018-05-31T15:42:44.000Z | 2022-03-17T09:36:13.000Z | models/ops/depthavgpooling/modules/__init__.py | jfzhang95/DepthAwareCNN | 2076c751279637f112d9ea9ce33459b6f3b20063 | [
"MIT"
] | 80 | 2018-06-03T10:04:48.000Z | 2022-03-05T12:57:31.000Z | from .depthavgpooling import Depthavgpooling
| 22.5 | 44 | 0.888889 | 4 | 45 | 10 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 45 | 1 | 45 | 45 | 0.97561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
e1a000c7113a09deb6f5c8b378767f827a2d33ea | 190 | py | Python | postalcodes_ni/exceptions.py | oscarmcm/postalcodes-ni | adf04e73f076d2cefab71d8266d33e272eeb0af8 | [
"MIT"
] | 3 | 2019-03-28T16:14:13.000Z | 2019-03-28T17:16:22.000Z | postalcodes_ni/exceptions.py | oscarmcm/postalcodes-ni | adf04e73f076d2cefab71d8266d33e272eeb0af8 | [
"MIT"
] | null | null | null | postalcodes_ni/exceptions.py | oscarmcm/postalcodes-ni | adf04e73f076d2cefab71d8266d33e272eeb0af8 | [
"MIT"
] | null | null | null | class ISOCodeError(Exception):
""" Thrown when ISO code doesnt exists
"""
pass
class PostalCodeError(Exception):
""" Thrown when postal code doesnt exists
"""
pass
| 17.272727 | 45 | 0.652632 | 20 | 190 | 6.2 | 0.6 | 0.241935 | 0.306452 | 0.322581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252632 | 190 | 10 | 46 | 19 | 0.873239 | 0.405263 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
becb55f399547d4b74117ed5e2f1d11d6c064bb0 | 39 | py | Python | scripts/generate_secret.py | rohittiwari07/coinculture | 57523a52c57ceb71b09a28a951f8ad61decf835d | [
"Apache-2.0"
] | null | null | null | scripts/generate_secret.py | rohittiwari07/coinculture | 57523a52c57ceb71b09a28a951f8ad61decf835d | [
"Apache-2.0"
] | null | null | null | scripts/generate_secret.py | rohittiwari07/coinculture | 57523a52c57ceb71b09a28a951f8ad61decf835d | [
"Apache-2.0"
] | null | null | null | import os
print(os.urandom(24).hex())
| 9.75 | 27 | 0.692308 | 7 | 39 | 3.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 0.102564 | 39 | 3 | 28 | 13 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 6 |
832ebfefe195e112cd9537b3795803a7dd82371e | 204 | py | Python | mara_storage/config.py | mara/mara-storage | ab3797bfe079dc24599e394660e47cf6fac63cc6 | [
"MIT"
] | null | null | null | mara_storage/config.py | mara/mara-storage | ab3797bfe079dc24599e394660e47cf6fac63cc6 | [
"MIT"
] | 1 | 2021-12-04T12:52:22.000Z | 2021-12-04T12:52:22.000Z | mara_storage/config.py | mara/mara-storage | ab3797bfe079dc24599e394660e47cf6fac63cc6 | [
"MIT"
] | 2 | 2021-09-21T15:44:42.000Z | 2022-02-22T17:16:08.000Z | """Configuration of storage connections"""
import mara_storage.storages
def storages() -> {str: mara_storage.storages.Storage}:
"""The list of storage connections to use, by alias"""
return {}
| 22.666667 | 58 | 0.710784 | 25 | 204 | 5.72 | 0.64 | 0.125874 | 0.27972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161765 | 204 | 8 | 59 | 25.5 | 0.836257 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
8365bc936c324205b037b74a0af488e145590304 | 107 | py | Python | bostaSDK/pickup/delete/__init__.py | bostaapp/bosta-python | df3f48dafac49b2577669fd4d74a5e5e9d28f2c1 | [
"MIT"
] | null | null | null | bostaSDK/pickup/delete/__init__.py | bostaapp/bosta-python | df3f48dafac49b2577669fd4d74a5e5e9d28f2c1 | [
"MIT"
] | 1 | 2020-11-18T11:01:32.000Z | 2020-11-18T11:10:52.000Z | bostaSDK/pickup/delete/__init__.py | bostaapp/bosta-python | df3f48dafac49b2577669fd4d74a5e5e9d28f2c1 | [
"MIT"
] | null | null | null | from .DeletePickupRequest import DeletePickupRequest
from .DeletePickupResponse import DeletePickupResonse
| 35.666667 | 53 | 0.906542 | 8 | 107 | 12.125 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074766 | 107 | 2 | 54 | 53.5 | 0.979798 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
55c8c4438ce66b66ea540210ba98b38b413b2f7c | 16,635 | py | Python | python/LearningDataIncorrectBinaryOperand.py | mast-group/DeepSStuBs | ea6621f9678c1bf2110641e7794309b832f81e2f | [
"MIT"
] | 1 | 2020-08-17T02:23:10.000Z | 2020-08-17T02:23:10.000Z | python/LearningDataIncorrectBinaryOperand.py | mast-group/DeepSStuBs | ea6621f9678c1bf2110641e7794309b832f81e2f | [
"MIT"
] | null | null | null | python/LearningDataIncorrectBinaryOperand.py | mast-group/DeepSStuBs | ea6621f9678c1bf2110641e7794309b832f81e2f | [
"MIT"
] | null | null | null | '''
Created on Nov 13, 2017
@author: Michael Pradel
'''
import Util
from collections import namedtuple
import random
import numpy as np
from Util import clean_string
type_embedding_size = 5
node_type_embedding_size = 8 # if changing here, then also change in LearningDataBinOperator
class CodePiece(object):
de... | 44.242021 | 165 | 0.613766 | 2,072 | 16,635 | 4.564672 | 0.084459 | 0.060266 | 0.045676 | 0.028759 | 0.818038 | 0.78727 | 0.750159 | 0.720025 | 0.720025 | 0.707655 | 0 | 0.006116 | 0.292275 | 16,635 | 376 | 166 | 44.242021 | 0.797248 | 0.076285 | 0 | 0.671378 | 0 | 0 | 0.040191 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045936 | false | 0 | 0.017668 | 0.010601 | 0.130742 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
55f4cd07b7fde69aebc7a5ead510e1cd4ad0133e | 44 | py | Python | Vitis-AI-Quantizer/vai_q_pytorch/pytorch_binding/pytorch_nndct/nn/__init__.py | dendisuhubdy/Vitis-AI | 524f65224c52314155dafc011d488ed30e458fcb | [
"Apache-2.0"
] | 1 | 2021-04-01T06:38:48.000Z | 2021-04-01T06:38:48.000Z | Vitis-AI-Quantizer/vai_q_pytorch/pytorch_binding/pytorch_nndct/nn/__init__.py | dendisuhubdy/Vitis-AI | 524f65224c52314155dafc011d488ed30e458fcb | [
"Apache-2.0"
] | null | null | null | Vitis-AI-Quantizer/vai_q_pytorch/pytorch_binding/pytorch_nndct/nn/__init__.py | dendisuhubdy/Vitis-AI | 524f65224c52314155dafc011d488ed30e458fcb | [
"Apache-2.0"
] | null | null | null | from .modules import *
from .utils import *
| 14.666667 | 22 | 0.727273 | 6 | 44 | 5.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 44 | 2 | 23 | 22 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
36228be9485ecd40061323da030826d86967f4e0 | 107 | py | Python | kabuka/__main__.py | sdanaipat/kabuka | e9c9356d1d0987ff708c915133c8dd780302f5f4 | [
"MIT"
] | null | null | null | kabuka/__main__.py | sdanaipat/kabuka | e9c9356d1d0987ff708c915133c8dd780302f5f4 | [
"MIT"
] | null | null | null | kabuka/__main__.py | sdanaipat/kabuka | e9c9356d1d0987ff708c915133c8dd780302f5f4 | [
"MIT"
] | null | null | null | import fire
from kabuka import get_latest_price
if __name__ == '__main__':
fire.Fire(get_latest_price)
| 15.285714 | 35 | 0.785047 | 16 | 107 | 4.5 | 0.625 | 0.25 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140187 | 107 | 6 | 36 | 17.833333 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
364c84b276c07dd62723f4fa75f714a42d780b76 | 22 | py | Python | energyOptimal/sensors/rapl/__init__.py | VitorRamos/energy | 0b048b624cda2db4b9c2100508156679daacd61c | [
"MIT"
] | 1 | 2018-09-11T18:46:23.000Z | 2018-09-11T18:46:23.000Z | energyOptimal/sensors/rapl/__init__.py | VitorRamos/energy | 0b048b624cda2db4b9c2100508156679daacd61c | [
"MIT"
] | 4 | 2018-09-29T20:02:01.000Z | 2018-09-30T21:01:22.000Z | energyOptimal/sensors/rapl/__init__.py | VitorRamos/energy | 0b048b624cda2db4b9c2100508156679daacd61c | [
"MIT"
] | 1 | 2019-03-24T01:34:28.000Z | 2019-03-24T01:34:28.000Z | from .rapl import RAPL | 22 | 22 | 0.818182 | 4 | 22 | 4.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 22 | 1 | 22 | 22 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
364f8352237d28509f6842ec9b5f0fafb438bd25 | 34 | py | Python | embracenet_pytorch/__init__.py | idearibosome/embracenet | c61b63dadc6fc8d719bb77475f4734f62697144e | [
"MIT"
] | 73 | 2019-04-18T02:39:02.000Z | 2022-03-25T22:59:34.000Z | embracenet_tf2/__init__.py | Jaehoon9201/embracenet | c61b63dadc6fc8d719bb77475f4734f62697144e | [
"MIT"
] | null | null | null | embracenet_tf2/__init__.py | Jaehoon9201/embracenet | c61b63dadc6fc8d719bb77475f4734f62697144e | [
"MIT"
] | 24 | 2019-07-08T14:29:18.000Z | 2022-03-19T13:57:34.000Z | from .embracenet import EmbraceNet | 34 | 34 | 0.882353 | 4 | 34 | 7.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 34 | 1 | 34 | 34 | 0.967742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
368913361556ab70196b404e04cddb66927b53c8 | 169 | py | Python | main/admin.py | elhamrazi/ElhamBlog | e10240f16770b3aec505dda27cb0456be05bdddc | [
"MIT"
] | 5 | 2021-10-19T06:23:23.000Z | 2022-03-09T13:57:06.000Z | main/admin.py | elhamrazi/ElhamBlog | e10240f16770b3aec505dda27cb0456be05bdddc | [
"MIT"
] | null | null | null | main/admin.py | elhamrazi/ElhamBlog | e10240f16770b3aec505dda27cb0456be05bdddc | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import *
admin.site.register(Author)
admin.site.register(Post)
admin.site.register(Comment)
# Register your models here.
| 18.777778 | 32 | 0.792899 | 24 | 169 | 5.583333 | 0.541667 | 0.201493 | 0.380597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106509 | 169 | 8 | 33 | 21.125 | 0.887417 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
36b1ac352f724f2747a428cd2d23936e86bd2c75 | 59 | py | Python | config/__init__.py | rrhg/accounting-data-entry-helper | 81486c4b4bdff315966a7a61b2c45aa4d8e71fe8 | [
"MIT"
] | null | null | null | config/__init__.py | rrhg/accounting-data-entry-helper | 81486c4b4bdff315966a7a61b2c45aa4d8e71fe8 | [
"MIT"
] | 1 | 2022-02-07T20:22:13.000Z | 2022-02-07T20:22:13.000Z | config/__init__.py | rrhg/accounting-data-entry-helper | 81486c4b4bdff315966a7a61b2c45aa4d8e71fe8 | [
"MIT"
] | null | null | null | from .config import *
# TODO should config be just a file
| 14.75 | 35 | 0.728814 | 10 | 59 | 4.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220339 | 59 | 3 | 36 | 19.666667 | 0.934783 | 0.559322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
7ffcdee24bc66e9564535ceea05f47eb2500d311 | 40 | py | Python | python/qitest/test/projects/testme/test/test_foo.py | vbarbaresi/qibuild | eab6b815fe0af49ea5c41ccddcd0dff2363410e1 | [
"BSD-3-Clause"
] | null | null | null | python/qitest/test/projects/testme/test/test_foo.py | vbarbaresi/qibuild | eab6b815fe0af49ea5c41ccddcd0dff2363410e1 | [
"BSD-3-Clause"
] | null | null | null | python/qitest/test/projects/testme/test/test_foo.py | vbarbaresi/qibuild | eab6b815fe0af49ea5c41ccddcd0dff2363410e1 | [
"BSD-3-Clause"
] | null | null | null | def test_foo():
assert 42 == 40 + 2
| 13.333333 | 23 | 0.55 | 7 | 40 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 0.3 | 40 | 2 | 24 | 20 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.5 | true | 0 | 0 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
3d38ae78810fb35113d3b4230abb796352905155 | 203 | py | Python | frappe_health_ec/frappe_health_ec/doctype/identificationtype/identificationtype.py | lapillaga/frappe_health_ec | 5675e3da97550b6e8cf10d15d342144818ec2fee | [
"MIT"
] | null | null | null | frappe_health_ec/frappe_health_ec/doctype/identificationtype/identificationtype.py | lapillaga/frappe_health_ec | 5675e3da97550b6e8cf10d15d342144818ec2fee | [
"MIT"
] | null | null | null | frappe_health_ec/frappe_health_ec/doctype/identificationtype/identificationtype.py | lapillaga/frappe_health_ec | 5675e3da97550b6e8cf10d15d342144818ec2fee | [
"MIT"
] | null | null | null | # Copyright (c) 2021, Lugo S.A.S and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class IdentificationType(Document):
pass
| 22.555556 | 49 | 0.788177 | 28 | 203 | 5.714286 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022857 | 0.137931 | 203 | 8 | 50 | 25.375 | 0.891429 | 0.536946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
3d41dc13aee94ef6c2f512b23f7f9ddb8708986c | 75,681 | py | Python | tests/test_crn_bisimulation.py | DNA-and-Natural-Algorithms-Group/crnverifier | c78b1165bd4fdfc3972cf943b9e8e1b1c9ee42fe | [
"MIT"
] | null | null | null | tests/test_crn_bisimulation.py | DNA-and-Natural-Algorithms-Group/crnverifier | c78b1165bd4fdfc3972cf943b9e8e1b1c9ee42fe | [
"MIT"
] | null | null | null | tests/test_crn_bisimulation.py | DNA-and-Natural-Algorithms-Group/crnverifier | c78b1165bd4fdfc3972cf943b9e8e1b1c9ee42fe | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# tests/test_crn_bisimulation.py
# Original source from the Nuskell compiler project
#
import logging
logger = logging.getLogger()
logger.setLevel(logging.INFO)
import unittest
from crnverifier.utils import parse_crn
from crnverifier.crn_bisimulation import (SpeciesAssignmentError,
... | 44.103147 | 208 | 0.414569 | 8,810 | 75,681 | 3.456073 | 0.055846 | 0.017998 | 0.008572 | 0.026668 | 0.815226 | 0.782941 | 0.75647 | 0.71673 | 0.694266 | 0.646282 | 0 | 0.061702 | 0.345569 | 75,681 | 1,715 | 209 | 44.128863 | 0.553061 | 0.046696 | 0 | 0.556246 | 0 | 0 | 0.158171 | 0.009789 | 0 | 0 | 0 | 0.000583 | 0.21256 | 1 | 0.043478 | false | 0.055901 | 0.002761 | 0 | 0.05314 | 0.020014 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
3d47ee59d2b01dc2c0ca4844f4c1b82592af1e25 | 1,484 | py | Python | haesh/util.py | VincentHokie/haesh | 5d6eb19d6836a8f94181a33f27c3ffce98c43548 | [
"MIT"
] | null | null | null | haesh/util.py | VincentHokie/haesh | 5d6eb19d6836a8f94181a33f27c3ffce98c43548 | [
"MIT"
] | null | null | null | haesh/util.py | VincentHokie/haesh | 5d6eb19d6836a8f94181a33f27c3ffce98c43548 | [
"MIT"
] | null | null | null | import os
import random
RANGE_MIN = 1
RANGE_MAX = 1000
class HaeshKeyGenerator(object):
def __init__(self, file_path, text):
self._file_path = file_path
self._text = text
def get_text_signature_key(self):
file_size = self._get_file_size_int_signature()
mod_time = self._get_f... | 32.977778 | 67 | 0.68531 | 207 | 1,484 | 4.458937 | 0.188406 | 0.07584 | 0.071506 | 0.045504 | 0.824485 | 0.776815 | 0.75948 | 0.75948 | 0.75948 | 0.75948 | 0 | 0.012079 | 0.219003 | 1,484 | 44 | 68 | 33.727273 | 0.784297 | 0 | 0 | 0.542857 | 0 | 0 | 0.076819 | 0.045822 | 0 | 0 | 0 | 0 | 0 | 1 | 0.171429 | false | 0 | 0.057143 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e9fcd2f820cb41fd8c2698188d2a3c8973c76cba | 8,017 | py | Python | CTFR-Penyelesaian/018 Warna warni 2/warna warni 2/decode.py | dimasma0305/PicoCTF-Penyelesaian | 69c315b269412c766d91bc909b75c8bbfebdc12c | [
"MIT"
] | 1 | 2022-01-01T14:37:49.000Z | 2022-01-01T14:37:49.000Z | CTFR-Penyelesaian/018 Warna warni 2/warna warni 2/decode.py | dimasma0305/PicoCTF-Penyelesaian | 69c315b269412c766d91bc909b75c8bbfebdc12c | [
"MIT"
] | null | null | null | CTFR-Penyelesaian/018 Warna warni 2/warna warni 2/decode.py | dimasma0305/PicoCTF-Penyelesaian | 69c315b269412c766d91bc909b75c8bbfebdc12c | [
"MIT"
] | 1 | 2021-12-30T07:48:32.000Z | 2021-12-30T07:48:32.000Z | flag = [3752536516130773641885711225353928704, 5117095249269236784389606216391720960, 5312032211146160090461591215111405568, 5117095249269236784389606216391720960, 5360766451615390916979587464791326720, 1559495695015386448575879989757476864, 5604437653961545049569568713190932480, 4922158287392313478317621217672036352, ... | 1,002.125 | 7,846 | 0.942248 | 228 | 8,017 | 33.131579 | 0.241228 | 0.039185 | 0.029388 | 0.039185 | 0.003707 | 0 | 0 | 0 | 0 | 0 | 0 | 0.959302 | 0.02844 | 8,017 | 8 | 7,847 | 1,002.125 | 0.010528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
18084de3d9a6c6eb8ab988ae0f6b5f439d237d81 | 5,361 | py | Python | koku/reporting/migrations/0160_auto_20210114_1548.py | cgoodfred/koku | f1de8bc90d6a818c4f77af710cafe50dc1274700 | [
"Apache-2.0"
] | 2 | 2022-01-12T03:42:39.000Z | 2022-01-12T03:42:40.000Z | koku/reporting/migrations/0160_auto_20210114_1548.py | cgoodfred/koku | f1de8bc90d6a818c4f77af710cafe50dc1274700 | [
"Apache-2.0"
] | null | null | null | koku/reporting/migrations/0160_auto_20210114_1548.py | cgoodfred/koku | f1de8bc90d6a818c4f77af710cafe50dc1274700 | [
"Apache-2.0"
] | 1 | 2021-07-21T09:33:59.000Z | 2021-07-21T09:33:59.000Z | # Generated by Django 3.1.3 on 2021-01-14 15:48
import django.contrib.postgres.fields
from django.db import migrations
from django.db import models
class Migration(migrations.Migration):
dependencies = [("reporting", "0159_gcp_cost_summary")]
operations = [
migrations.CreateModel(
name="... | 52.558824 | 113 | 0.59653 | 532 | 5,361 | 5.789474 | 0.171053 | 0.057143 | 0.075974 | 0.101299 | 0.82013 | 0.748377 | 0.729545 | 0.672078 | 0.659416 | 0.623701 | 0 | 0.02048 | 0.262265 | 5,361 | 101 | 114 | 53.079208 | 0.758281 | 0.008394 | 0 | 0.708333 | 1 | 0 | 0.179902 | 0.053632 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
183917ac1e7481ce6e906b9e3654634c5daf4f13 | 527 | py | Python | py/tests/test_day02.py | andrewblim/advent-of-code-2020 | dbc45b9967770f8015f3609b88873bdefcfdc28a | [
"MIT"
] | null | null | null | py/tests/test_day02.py | andrewblim/advent-of-code-2020 | dbc45b9967770f8015f3609b88873bdefcfdc28a | [
"MIT"
] | null | null | null | py/tests/test_day02.py | andrewblim/advent-of-code-2020 | dbc45b9967770f8015f3609b88873bdefcfdc28a | [
"MIT"
] | null | null | null | from .context import advent_of_code_2020
from advent_of_code_2020.day02 import *
def test_validate_policy_and_password():
assert validate_policy_and_password("1-3 a: abcde")
assert not validate_policy_and_password("1-3 b: cdefg")
assert validate_policy_and_password("2-9 c: ccccccccc")
def test_validate_... | 35.133333 | 64 | 0.787476 | 83 | 527 | 4.614458 | 0.325301 | 0.292428 | 0.355091 | 0.261097 | 0.710183 | 0.456919 | 0.177546 | 0.177546 | 0.177546 | 0 | 0 | 0.056522 | 0.127135 | 527 | 14 | 65 | 37.642857 | 0.776087 | 0 | 0 | 0 | 0 | 0 | 0.151803 | 0 | 0 | 0 | 0 | 0 | 0.6 | 1 | 0.2 | true | 0.8 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
18435ad772fd56915c305b23813e73a1757d9dd7 | 14,996 | py | Python | brownie/tests/test_charity_deploy.py | SuperZooper3/CharityRaffle | cc77af4ddf77c8c72790687eed983285b019c4b2 | [
"MIT"
] | 1 | 2021-12-30T22:24:18.000Z | 2021-12-30T22:24:18.000Z | brownie/tests/test_charity_deploy.py | SuperZooper3/CharityRaffle | cc77af4ddf77c8c72790687eed983285b019c4b2 | [
"MIT"
] | null | null | null | brownie/tests/test_charity_deploy.py | SuperZooper3/CharityRaffle | cc77af4ddf77c8c72790687eed983285b019c4b2 | [
"MIT"
] | null | null | null | from scripts.helpers import get_account, smart_get_account, get_contract, fund_link, LOCAL_BLOCKCHAIN_ENVIRONMENTS
from brownie import network, accounts, config, CharityRaffle
import time
import pytest
from random import randint
ticketPrice = 0.001*10**18
exp_time, length = 0, 0
def init_values():
global exp_tim... | 38.352941 | 133 | 0.691985 | 1,901 | 14,996 | 5.281957 | 0.098369 | 0.079673 | 0.118016 | 0.111642 | 0.791853 | 0.768549 | 0.747933 | 0.74385 | 0.728613 | 0.728613 | 0 | 0.031321 | 0.182449 | 14,996 | 391 | 134 | 38.352941 | 0.787684 | 0.090091 | 0 | 0.709898 | 0 | 0 | 0.066107 | 0.006191 | 0 | 0 | 0.006191 | 0 | 0.078498 | 1 | 0.071672 | false | 0 | 0.017065 | 0 | 0.09215 | 0.037543 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
a1219f3c76316365e985614b5bda06b494c56bf4 | 38,796 | py | Python | networking_bagpipe/tests/unit/bagpipe_bgp/test_tracker_worker.py | mail2nsrajesh/networking-bagpipe | e802ead8e3b4cecab6b65a9e441c3cf762bfbbb2 | [
"Apache-2.0"
] | null | null | null | networking_bagpipe/tests/unit/bagpipe_bgp/test_tracker_worker.py | mail2nsrajesh/networking-bagpipe | e802ead8e3b4cecab6b65a9e441c3cf762bfbbb2 | [
"Apache-2.0"
] | null | null | null | networking_bagpipe/tests/unit/bagpipe_bgp/test_tracker_worker.py | mail2nsrajesh/networking-bagpipe | e802ead8e3b4cecab6b65a9e441c3cf762bfbbb2 | [
"Apache-2.0"
] | null | null | null | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# encoding: utf-8
# Copyright 2014 Orange
#
# 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
#
# Un... | 44.954809 | 79 | 0.62924 | 5,146 | 38,796 | 4.470463 | 0.064516 | 0.066899 | 0.066507 | 0.039904 | 0.809737 | 0.78935 | 0.771528 | 0.746707 | 0.724103 | 0.716105 | 0 | 0.033332 | 0.277735 | 38,796 | 862 | 80 | 45.006961 | 0.787659 | 0.197881 | 0 | 0.696028 | 0 | 0 | 0.066296 | 0 | 0 | 0 | 0 | 0 | 0.072539 | 1 | 0.044905 | false | 0.003454 | 0.015544 | 0.001727 | 0.072539 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
a15cee3e5ac8f54ea19e07ce6e0e45ba938225f6 | 18,818 | py | Python | web_ui/controllers/apic_controller.py | ProgrammabilityandAutomation/ACI-conf-converter | e2be783109c6343539dee626971c215027831d00 | [
"Apache-2.0"
] | null | null | null | web_ui/controllers/apic_controller.py | ProgrammabilityandAutomation/ACI-conf-converter | e2be783109c6343539dee626971c215027831d00 | [
"Apache-2.0"
] | null | null | null | web_ui/controllers/apic_controller.py | ProgrammabilityandAutomation/ACI-conf-converter | e2be783109c6343539dee626971c215027831d00 | [
"Apache-2.0"
] | null | null | null | """
Manages calls to the ACI Controller (APIC)
Examples:
Syslog
method: POST
url: https://apic-lab.dcloud.cisco.com/api/node/mo/uni/fabric/slgroup-groupte-test.json
payload{"syslogGroup":{"attributes":{"dn":"uni/fabric/slgroup-groupte-test","name":"groupte-test","rn":"slgroup-groupte-test","status":"created"},"chil... | 44.173709 | 828 | 0.654427 | 2,429 | 18,818 | 4.956361 | 0.07534 | 0.038874 | 0.053659 | 0.066285 | 0.851317 | 0.814519 | 0.798239 | 0.749398 | 0.724479 | 0.700723 | 0 | 0.01734 | 0.181741 | 18,818 | 425 | 829 | 44.277647 | 0.764515 | 0.286428 | 0 | 0.564516 | 0 | 0.026882 | 0.241008 | 0.120075 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0.021505 | 0.026882 | 0 | 0.129032 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
b810eaf224975e532d563bd0655e6bd8375bdbde | 9,581 | py | Python | src/python2/sdp/model/collision/ADAS_file.py | LeiShi/Synthetic-Diagnostics-Platform | 870120d3fd14b2a3c89c6e6e85625d1e9109a2de | [
"BSD-3-Clause"
] | 5 | 2019-08-16T22:08:19.000Z | 2021-02-24T02:47:05.000Z | src/python2/sdp/model/collision/ADAS_file.py | justthepython/Synthetic-Diagnostics-Platform | 5f1cb5c29d182490acbd4f3c167f0e09ec211236 | [
"BSD-3-Clause"
] | 1 | 2016-05-11T12:58:00.000Z | 2016-05-11T17:18:36.000Z | src/python2/sdp/model/collision/ADAS_file.py | justthepython/Synthetic-Diagnostics-Platform | 5f1cb5c29d182490acbd4f3c167f0e09ec211236 | [
"BSD-3-Clause"
] | 5 | 2018-04-29T12:35:59.000Z | 2020-01-10T03:38:30.000Z | """ class and subclass reading different kind of adas file
"""
import numpy as np
import scipy.interpolate as ip
class ADAS_file(object):
""" Parent class for defining the different kind of database readers.
This class is for inheritence purpose only. It will be inherited
by all the ADAS readers.
It... | 36.708812 | 132 | 0.579793 | 1,400 | 9,581 | 3.880714 | 0.128571 | 0.027609 | 0.026321 | 0.022087 | 0.787778 | 0.787778 | 0.782809 | 0.771029 | 0.766611 | 0.766611 | 0 | 0.014787 | 0.322409 | 9,581 | 260 | 133 | 36.85 | 0.822089 | 0.541488 | 0 | 0.8125 | 0 | 0 | 0.003084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.025 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
62edaa1e325beae4fabc588cf1cdc99434e8b794 | 120 | py | Python | csgoinvshuffle/__init__.py | kreyoo/csgo-inv-shuffle | 6392dd1eef1ca87ec25c9cf4845af3f8df3594a5 | [
"MIT"
] | null | null | null | csgoinvshuffle/__init__.py | kreyoo/csgo-inv-shuffle | 6392dd1eef1ca87ec25c9cf4845af3f8df3594a5 | [
"MIT"
] | 5 | 2021-12-22T19:25:51.000Z | 2022-03-28T19:27:34.000Z | csgoinvshuffle/__init__.py | kreyoo/csgo-inv-shuffle | 6392dd1eef1ca87ec25c9cf4845af3f8df3594a5 | [
"MIT"
] | null | null | null | # flake8: noqa
from csgoinvshuffle.shuffle import ShuffleConfig
from csgoinvshuffle.inventory import get_inventory
| 24 | 51 | 0.833333 | 13 | 120 | 7.615385 | 0.692308 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0.133333 | 120 | 4 | 52 | 30 | 0.942308 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
1a02a187fddf59fcbd0886d14177835d9bc97547 | 5,290 | py | Python | tests/integration/test_handlers.py | singingwolfboy/tartiflette-aiohttp | c805ef37a6ba7182f59fa9555fce5f0154e13dd5 | [
"MIT"
] | 40 | 2019-05-28T04:24:45.000Z | 2021-12-26T10:04:11.000Z | tests/integration/test_handlers.py | singingwolfboy/tartiflette-aiohttp | c805ef37a6ba7182f59fa9555fce5f0154e13dd5 | [
"MIT"
] | 116 | 2019-06-19T18:39:11.000Z | 2022-03-28T07:06:24.000Z | tests/integration/test_handlers.py | singingwolfboy/tartiflette-aiohttp | c805ef37a6ba7182f59fa9555fce5f0154e13dd5 | [
"MIT"
] | 7 | 2020-01-25T12:06:59.000Z | 2021-11-08T15:39:22.000Z | try:
from contextlib import asynccontextmanager # Python 3.7+
except ImportError:
from async_generator import asynccontextmanager # Python 3.6
from functools import partial
from unittest.mock import Mock
import pytest
from tartiflette_aiohttp import default_context_factory
def prepare_response(_, data, _... | 27.128205 | 79 | 0.643856 | 579 | 5,290 | 5.495682 | 0.143351 | 0.074796 | 0.064111 | 0.082967 | 0.808297 | 0.808297 | 0.799497 | 0.799497 | 0.762728 | 0.704903 | 0 | 0.00177 | 0.252552 | 5,290 | 194 | 80 | 27.268041 | 0.802984 | 0.004159 | 0 | 0.572519 | 0 | 0 | 0.166352 | 0.080872 | 0 | 0 | 0 | 0 | 0.045802 | 1 | 0.007634 | false | 0 | 0.114504 | 0.007634 | 0.19084 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1a165df035c59673db52d5bc54e80f81a1cbbf2f | 3,767 | py | Python | conkit/io/tests/test_bbcontacts.py | mesdaghi/conkit | 01468761352bd3ac5078e5e9fef6f73c8c49036e | [
"BSD-3-Clause"
] | 12 | 2017-06-12T17:20:32.000Z | 2021-12-10T09:35:26.000Z | conkit/io/tests/test_bbcontacts.py | mesdaghi/conkit | 01468761352bd3ac5078e5e9fef6f73c8c49036e | [
"BSD-3-Clause"
] | 60 | 2017-02-08T19:29:34.000Z | 2022-03-17T16:00:54.000Z | conkit/io/tests/test_bbcontacts.py | mesdaghi/conkit | 01468761352bd3ac5078e5e9fef6f73c8c49036e | [
"BSD-3-Clause"
] | 12 | 2017-09-25T07:25:35.000Z | 2022-02-27T18:59:13.000Z | """Testing facility for conkit.io.Bbcontacts"""
__author__ = "Felix Simkovic"
__date__ = "26 Oct 2016"
import os
import unittest
from conkit.io.bbcontacts import BbcontactsParser
from conkit.io.tests.helpers import ParserTestCase
class TestBbcontactsParser(ParserTestCase):
def test_read_1(self):
conten... | 48.922078 | 104 | 0.575259 | 508 | 3,767 | 4.13189 | 0.187008 | 0.042878 | 0.060029 | 0.090519 | 0.844212 | 0.814674 | 0.814674 | 0.788947 | 0.787041 | 0.756551 | 0 | 0.196393 | 0.337669 | 3,767 | 76 | 105 | 49.565789 | 0.64489 | 0.010884 | 0 | 0.545455 | 0 | 0 | 0.45 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.045455 | false | 0 | 0.060606 | 0 | 0.121212 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
a7e1d0a60216acb1aae2a0ac9b9d5edaddc8bd81 | 45 | py | Python | api/models/__init__.py | pythonkr/pyconkr-api | 077e122a0af37122c5b424870cf91b8fca91a9f5 | [
"Apache-2.0"
] | 25 | 2018-12-09T07:56:16.000Z | 2020-12-24T08:20:41.000Z | api/models/__init__.py | pythonkr/pyconkr-api | 077e122a0af37122c5b424870cf91b8fca91a9f5 | [
"Apache-2.0"
] | 100 | 2018-12-13T02:01:42.000Z | 2022-03-11T23:40:25.000Z | api/models/__init__.py | pythonkr/pyconkr-api | 077e122a0af37122c5b424870cf91b8fca91a9f5 | [
"Apache-2.0"
] | 8 | 2019-01-05T05:02:27.000Z | 2019-08-09T08:14:49.000Z | from .program import *
from .review import *
| 15 | 22 | 0.733333 | 6 | 45 | 5.5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177778 | 45 | 2 | 23 | 22.5 | 0.891892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
c50cf38641274a902d4599be0f8fdc911694bf87 | 87 | py | Python | Algorithm/__init__.py | Errare-humanum-est/ProtoGen | e8701dbfabb9c5148abc649fc76c5095d9cc4f9f | [
"MIT"
] | 13 | 2018-06-10T07:14:31.000Z | 2022-01-06T20:44:16.000Z | Algorithm/__init__.py | Errare-humanum-est/ProtoGen | e8701dbfabb9c5148abc649fc76c5095d9cc4f9f | [
"MIT"
] | 1 | 2018-06-12T15:03:12.000Z | 2018-06-12T15:03:12.000Z | Algorithm/__init__.py | icsa-caps/ProtoGen | 639c62947314c427661cb66ebc3ac7e26798fc7e | [
"MIT"
] | 5 | 2018-06-12T14:45:38.000Z | 2021-03-20T06:29:25.000Z | import Algorithm.ProtoAlgorithm
import Algorithm.ProtoConfig
import Algorithm.TraceNode | 29 | 31 | 0.908046 | 9 | 87 | 8.777778 | 0.555556 | 0.56962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057471 | 87 | 3 | 32 | 29 | 0.963415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
c550fa64c0093e0973cd67a8294ff679fcb503b3 | 66 | py | Python | img2bw/__init__.py | salvacarrion/img2bw | 4228bdd0020b7e6ec48b6b1132602505e7f622ee | [
"MIT"
] | 3 | 2020-07-16T08:40:31.000Z | 2022-01-07T14:05:58.000Z | img2bw/__init__.py | salvacarrion/img2bw | 4228bdd0020b7e6ec48b6b1132602505e7f622ee | [
"MIT"
] | 1 | 2021-06-24T05:14:43.000Z | 2021-06-24T05:14:43.000Z | img2bw/__init__.py | salvacarrion/img2bw | 4228bdd0020b7e6ec48b6b1132602505e7f622ee | [
"MIT"
] | 1 | 2021-08-10T04:58:14.000Z | 2021-08-10T04:58:14.000Z | from .main import *
from .binarizer import *
from .utils import *
| 16.5 | 24 | 0.727273 | 9 | 66 | 5.333333 | 0.555556 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 66 | 3 | 25 | 22 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
c5558943a964ccce17d3367746199a99a3beaed2 | 15,945 | py | Python | protopipe/scripts/tests/test_pipeline.py | Iburelli/protopipe | 1f392ea5abca6b09b684fca1e4ff3b138faa0b5a | [
"CECILL-B"
] | null | null | null | protopipe/scripts/tests/test_pipeline.py | Iburelli/protopipe | 1f392ea5abca6b09b684fca1e4ff3b138faa0b5a | [
"CECILL-B"
] | null | null | null | protopipe/scripts/tests/test_pipeline.py | Iburelli/protopipe | 1f392ea5abca6b09b684fca1e4ff3b138faa0b5a | [
"CECILL-B"
] | null | null | null | from pathlib import Path
from os import system
from pkg_resources import resource_filename
import tables
import pytest
from ctapipe.utils.datasets import get_dataset_path
from protopipe.scripts import (
data_training,
build_model,
write_dl2,
make_performance_EventDisplay,
)
# PROD 3B
# CONFIG FILES... | 30.604607 | 102 | 0.662716 | 1,935 | 15,945 | 5.155556 | 0.10491 | 0.054531 | 0.036889 | 0.035786 | 0.825882 | 0.811949 | 0.772855 | 0.750802 | 0.73757 | 0.71672 | 0 | 0.016258 | 0.213045 | 15,945 | 520 | 103 | 30.663462 | 0.77877 | 0.079147 | 0 | 0.605063 | 0 | 0 | 0.250615 | 0.078573 | 0 | 0 | 0 | 0 | 0.063291 | 1 | 0.027848 | false | 0 | 0.020253 | 0 | 0.048101 | 0.027848 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
3d9cd23d91423db9039803de218c1b03f9c82210 | 21,107 | py | Python | tests/unittests/test_datasource.py | ZPascal/grafana_api_sdk | 97c347790200e8e9a2aafd47e322297aa97b964c | [
"Apache-2.0"
] | 2 | 2022-02-01T20:18:48.000Z | 2022-02-02T01:22:14.000Z | tests/unittests/test_datasource.py | ZPascal/grafana_api_sdk | 97c347790200e8e9a2aafd47e322297aa97b964c | [
"Apache-2.0"
] | 5 | 2022-01-12T06:55:54.000Z | 2022-03-26T13:35:50.000Z | tests/unittests/test_datasource.py | ZPascal/grafana_api_sdk | 97c347790200e8e9a2aafd47e322297aa97b964c | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
from unittest.mock import MagicMock, Mock, patch
from src.grafana_api.model import APIModel, DatasourceQuery
from src.grafana_api.datasource import Datasource
class DatasourceTestCase(TestCase):
@patch("src.grafana_api.api.Api.call_the_api")
def test_get_all_datasources(self, ca... | 39.087037 | 88 | 0.697967 | 2,542 | 21,107 | 5.471676 | 0.028324 | 0.048314 | 0.06902 | 0.064419 | 0.968078 | 0.953483 | 0.941405 | 0.928535 | 0.919045 | 0.908836 | 0 | 0.003235 | 0.19458 | 21,107 | 539 | 89 | 39.159555 | 0.814941 | 0 | 0 | 0.692308 | 0 | 0 | 0.076183 | 0.054579 | 0 | 0 | 0 | 0 | 0.124668 | 1 | 0.124668 | false | 0 | 0.01061 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
3da4b20133d96b74e66d0da8f82e2025b544c943 | 103 | py | Python | homeassistant/components/frontend/mdi_version.py | instantchow/home-assistant | 6797365d4fd74328a0c9e961f652cfb37f48bc7d | [
"MIT"
] | null | null | null | homeassistant/components/frontend/mdi_version.py | instantchow/home-assistant | 6797365d4fd74328a0c9e961f652cfb37f48bc7d | [
"MIT"
] | null | null | null | homeassistant/components/frontend/mdi_version.py | instantchow/home-assistant | 6797365d4fd74328a0c9e961f652cfb37f48bc7d | [
"MIT"
] | null | null | null | """DO NOT MODIFY. Auto-generated by update_mdi script."""
VERSION = "e85dc66e1a0730e44f79ed11501cd79a"
| 34.333333 | 57 | 0.786408 | 11 | 103 | 7.272727 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215054 | 0.097087 | 103 | 2 | 58 | 51.5 | 0.645161 | 0.495146 | 0 | 0 | 1 | 0 | 0.695652 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
3da8c9fefbc02f0574644b6d491b6432e543733c | 238 | py | Python | Codewars/8kyu/get-nth-even-number/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | 7 | 2017-09-20T16:40:39.000Z | 2021-08-31T18:15:08.000Z | Codewars/8kyu/get-nth-even-number/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | Codewars/8kyu/get-nth-even-number/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | # Python - 3.6.0
Test.describe('Basic tests')
Test.assert_equals(nth_even(1), 0)
Test.assert_equals(nth_even(2), 2)
Test.assert_equals(nth_even(3), 4)
Test.assert_equals(nth_even(100), 198)
Test.assert_equals(nth_even(1298734), 2597466)
| 26.444444 | 46 | 0.764706 | 43 | 238 | 4 | 0.44186 | 0.290698 | 0.465116 | 0.552326 | 0.668605 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131222 | 0.071429 | 238 | 8 | 47 | 29.75 | 0.647059 | 0.058824 | 0 | 0 | 0 | 0 | 0.04955 | 0 | 0 | 0 | 0 | 0 | 0.833333 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
3db10460de291f312c4ec5cac23bc86109a6fde6 | 10,507 | py | Python | data/datasets.py | ws-choi/Conditioned-U-Net-pytorch | 1335d2b858565bc15eb795f3cc132409ecc96561 | [
"MIT"
] | 7 | 2020-08-11T01:06:43.000Z | 2021-11-22T12:36:04.000Z | data/datasets.py | ws-choi/Conditioned-U-Net-pytorch | 1335d2b858565bc15eb795f3cc132409ecc96561 | [
"MIT"
] | null | null | null | data/datasets.py | ws-choi/Conditioned-U-Net-pytorch | 1335d2b858565bc15eb795f3cc132409ecc96561 | [
"MIT"
] | 1 | 2021-05-26T01:41:51.000Z | 2021-05-26T01:41:51.000Z | import torch
from torch.utils.data import Dataset
import numpy as np
import musdb
from tqdm import tqdm
class MusdbLoader(object):
def __init__(self, musdb_root='data/musdb18_wav/', is_wav=True):
self.musdb_train = musdb.DB(root=musdb_root, subsets="train", split='train', is_wav=is_wav)
self.musd... | 38.914815 | 118 | 0.639478 | 1,395 | 10,507 | 4.551971 | 0.08172 | 0.050236 | 0.047244 | 0.028346 | 0.807244 | 0.780945 | 0.755276 | 0.750236 | 0.717638 | 0.699528 | 0 | 0.012926 | 0.256305 | 10,507 | 269 | 119 | 39.05948 | 0.799718 | 0.016846 | 0 | 0.632653 | 0 | 0 | 0.023157 | 0 | 0 | 0 | 0 | 0 | 0.005102 | 1 | 0.107143 | false | 0 | 0.035714 | 0.020408 | 0.244898 | 0.015306 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
3def77f0f65c19ed8863a45e66c01746e1dad288 | 23 | py | Python | filterv/__init__.py | ParthikB/filterv | 6a79296fb95ed0111d591eb77faab475723318b7 | [
"MIT"
] | 1 | 2020-08-05T11:55:46.000Z | 2020-08-05T11:55:46.000Z | filterv/__init__.py | ParthikB/filterv | 6a79296fb95ed0111d591eb77faab475723318b7 | [
"MIT"
] | null | null | null | filterv/__init__.py | ParthikB/filterv | 6a79296fb95ed0111d591eb77faab475723318b7 | [
"MIT"
] | null | null | null | import filterv.filter
| 11.5 | 22 | 0.826087 | 3 | 23 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
9ab2dc11034527cdd02d3a02393be7c06c760edc | 27 | py | Python | tests/test_start.py | PerU-MoNsteR/EduRobot | 9f473eb6a0f193ceaf47f501d67b8780cf770b2f | [
"MIT"
] | 3 | 2020-12-12T02:33:24.000Z | 2020-12-13T03:42:23.000Z | tests/test_start.py | PerU-MoNsteR/EduRobot | 9f473eb6a0f193ceaf47f501d67b8780cf770b2f | [
"MIT"
] | null | null | null | tests/test_start.py | PerU-MoNsteR/EduRobot | 9f473eb6a0f193ceaf47f501d67b8780cf770b2f | [
"MIT"
] | 1 | 2020-12-12T03:02:44.000Z | 2020-12-12T03:02:44.000Z | def test_start():
pass
| 9 | 17 | 0.62963 | 4 | 27 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259259 | 27 | 2 | 18 | 13.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
9aedb71c87fc60b753cbd97005aa2d0abe4b1934 | 41 | py | Python | test/fixtures/python/analysis/c/__init__.py | matsubara0507/semantic | 67899f701abc0f1f0cb4374d8d3c249afc33a272 | [
"MIT"
] | 8,844 | 2019-05-31T15:47:12.000Z | 2022-03-31T18:33:51.000Z | test/fixtures/python/analysis/c/__init__.py | matsubara0507/semantic | 67899f701abc0f1f0cb4374d8d3c249afc33a272 | [
"MIT"
] | 401 | 2019-05-31T18:30:26.000Z | 2022-03-31T16:32:29.000Z | test/fixtures/python/analysis/c/__init__.py | matsubara0507/semantic | 67899f701abc0f1f0cb4374d8d3c249afc33a272 | [
"MIT"
] | 504 | 2019-05-31T17:55:03.000Z | 2022-03-30T04:15:04.000Z | from . import utils
print(utils.to_s())
| 10.25 | 19 | 0.707317 | 7 | 41 | 4 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 41 | 3 | 20 | 13.666667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 6 |
9afdbcf5bfe052427b27f1be44a3bbc96f1f5db4 | 126 | py | Python | api_project_generator/helpers/git_repo.py | gustcorrea/api-project-generator | efb0f94f66ecd6e6aba0abb04aa366c030bdf885 | [
"MIT"
] | null | null | null | api_project_generator/helpers/git_repo.py | gustcorrea/api-project-generator | efb0f94f66ecd6e6aba0abb04aa366c030bdf885 | [
"MIT"
] | null | null | null | api_project_generator/helpers/git_repo.py | gustcorrea/api-project-generator | efb0f94f66ecd6e6aba0abb04aa366c030bdf885 | [
"MIT"
] | null | null | null | from pathlib import Path
from git import Repo
def init_repository(path: Path) -> Repo:
return Repo.init(path)
| 14 | 41 | 0.68254 | 18 | 126 | 4.722222 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246032 | 126 | 8 | 42 | 15.75 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
b10381c9309212170ec699c814c617e4426b4242 | 936 | py | Python | cookbook/example.py | benmaier/vaccontrib | 1be75e049d3069ba465e7779e850c2e2504daae9 | [
"MIT"
] | 1 | 2021-12-14T15:51:19.000Z | 2021-12-14T15:51:19.000Z | cookbook/example.py | benmaier/vaccontrib | 1be75e049d3069ba465e7779e850c2e2504daae9 | [
"MIT"
] | null | null | null | cookbook/example.py | benmaier/vaccontrib | 1be75e049d3069ba465e7779e850c2e2504daae9 | [
"MIT"
] | null | null | null | from vaccontrib.io import (
get_contact_matrix,
get_vaccine_fractions,
get_fraction_vaccinated,
get_population_sizes,
get_susceptibility_reduction,
get_transmissibility_reduction,
... | 31.2 | 51 | 0.535256 | 75 | 936 | 6.066667 | 0.386667 | 0.105495 | 0.07033 | 0.083516 | 0.852747 | 0.852747 | 0.852747 | 0.852747 | 0.852747 | 0.852747 | 0 | 0 | 0.428419 | 936 | 29 | 52 | 32.275862 | 0.850467 | 0 | 0 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.038462 | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
b12535067005480d5db27dc8492c9c22f0ce8677 | 16,094 | py | Python | tests/test_mrf.py | paschalidoud/raynet | bf468dadddaf30da9cf5b1ecdfbcf4f161476242 | [
"MIT"
] | 76 | 2018-04-08T04:33:26.000Z | 2021-09-24T15:05:45.000Z | tests/test_mrf.py | paschalidoud/raynet | bf468dadddaf30da9cf5b1ecdfbcf4f161476242 | [
"MIT"
] | 8 | 2018-08-24T16:56:19.000Z | 2021-04-11T08:41:31.000Z | tests/test_mrf.py | paschalidoud/raynet | bf468dadddaf30da9cf5b1ecdfbcf4f161476242 | [
"MIT"
] | 18 | 2018-06-28T13:23:22.000Z | 2021-03-29T03:17:39.000Z | import numpy as np
import matplotlib
matplotlib.use("agg")
import matplotlib.pyplot as plt
import unittest
from raynet.common.generation_parameters import GenerationParameters
from raynet.mrf.bp_inference import get_bp_backend
from raynet.mrf.mrf_np import compute_occupancy_probabilities
from raynet.ray_marching.ray... | 38.228029 | 128 | 0.554989 | 2,229 | 16,094 | 3.798116 | 0.078959 | 0.046303 | 0.071108 | 0.028349 | 0.860265 | 0.830617 | 0.811009 | 0.791755 | 0.787503 | 0.771911 | 0 | 0.08131 | 0.324469 | 16,094 | 420 | 129 | 38.319048 | 0.697388 | 0.066298 | 0 | 0.668657 | 0 | 0 | 0.015408 | 0.013941 | 0 | 0 | 0 | 0 | 0.032836 | 1 | 0.023881 | false | 0 | 0.023881 | 0.002985 | 0.056716 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
b1732832ed81e62d59805322219f19b4edea9227 | 84 | py | Python | tests/test_chapter4_hello.py | paiml/testing-in-python | d670b97c0377f4deaf3ddf9acf7f86be281c95e3 | [
"MIT"
] | 7 | 2020-02-24T14:59:00.000Z | 2022-02-22T19:17:42.000Z | tests/test_chapter4_hello.py | paiml/testing-in-python | d670b97c0377f4deaf3ddf9acf7f86be281c95e3 | [
"MIT"
] | 1 | 2020-02-16T18:15:12.000Z | 2020-03-04T22:57:28.000Z | tests/test_chapter4_hello.py | paiml/testing-in-python | d670b97c0377f4deaf3ddf9acf7f86be281c95e3 | [
"MIT"
] | 4 | 2020-12-25T22:52:22.000Z | 2022-01-23T03:53:28.000Z | from chapter4 import hello
def test_hello_toyou():
assert hello.toyou() == "hi" | 21 | 32 | 0.714286 | 12 | 84 | 4.833333 | 0.75 | 0.344828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.166667 | 84 | 4 | 32 | 21 | 0.814286 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
b176e555bf32ec63b806ec28a7f25a87503710f9 | 2,096 | py | Python | commentdater/test.py | lsingh123/commentdater | 36f4d5ada9be83c55b7a9b24454776f9c594cbe2 | [
"MIT"
] | null | null | null | commentdater/test.py | lsingh123/commentdater | 36f4d5ada9be83c55b7a9b24454776f9c594cbe2 | [
"MIT"
] | null | null | null | commentdater/test.py | lsingh123/commentdater | 36f4d5ada9be83c55b7a9b24454776f9c594cbe2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 25 12:25:15 2019
@author: lavanyasingh
"""
import unittest
import os
import importlib
import src
importlib.reload(src)
class Tester(unittest.TestCase):
def test_py(self):
with open("test_data/test_output.txt", "w") as fd:
... | 38.814815 | 99 | 0.642653 | 285 | 2,096 | 4.621053 | 0.294737 | 0.060744 | 0.063781 | 0.118451 | 0.810175 | 0.794229 | 0.794229 | 0.794229 | 0.794229 | 0.794229 | 0 | 0.025835 | 0.242844 | 2,096 | 54 | 100 | 38.814815 | 0.804033 | 0.260019 | 0 | 0.296296 | 0 | 0 | 0.317264 | 0.196091 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.074074 | false | 0 | 0.185185 | 0 | 0.296296 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4930e0a4be4772bcd6fe7237a8ab9657447ea050 | 96 | py | Python | venv/lib/python3.8/site-packages/pip/_internal/commands/completion.py | Retraces/UkraineBot | 3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71 | [
"MIT"
] | 2 | 2022-03-13T01:58:52.000Z | 2022-03-31T06:07:54.000Z | venv/lib/python3.8/site-packages/pip/_internal/commands/completion.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | 19 | 2021-11-20T04:09:18.000Z | 2022-03-23T15:05:55.000Z | venv/lib/python3.8/site-packages/pip/_internal/commands/completion.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | null | null | null | /home/runner/.cache/pip/pool/53/14/b4/f6cf2b127534f000223778077502235385c64a5bf9489deb209753ca10 | 96 | 96 | 0.895833 | 9 | 96 | 9.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.510417 | 0 | 96 | 1 | 96 | 96 | 0.385417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
49756a2848cd575f371ecf656bb8c5e98f2823b8 | 3,528 | py | Python | tests/test_constraints.py | anthonydugois/dstf | a08bfc8927910e104234e4189113c40029cf96c0 | [
"MIT"
] | null | null | null | tests/test_constraints.py | anthonydugois/dstf | a08bfc8927910e104234e4189113c40029cf96c0 | [
"MIT"
] | null | null | null | tests/test_constraints.py | anthonydugois/dstf | a08bfc8927910e104234e4189113c40029cf96c0 | [
"MIT"
] | null | null | null | from dstf import *
def test_isvalid__no_simultaneous_execution():
task = Task("t0")
node = "n0"
sched = Schedule()
sched.apply(AppendOperator(Chunk(task, 10, {node: 10})))
ctr = NoSimultaneousExecutionConstraint()
assert ctr.isvalid(sched, Chunk(task, 20, {node: 10}))
assert ctr.isvalid... | 32.366972 | 107 | 0.63407 | 518 | 3,528 | 4.256757 | 0.1139 | 0.130612 | 0.197279 | 0.263039 | 0.814966 | 0.775057 | 0.757823 | 0.735601 | 0.61678 | 0.493878 | 0 | 0.069338 | 0.186508 | 3,528 | 108 | 108 | 32.666667 | 0.698955 | 0 | 0 | 0.39726 | 0 | 0 | 0.010204 | 0 | 0 | 0 | 0 | 0 | 0.39726 | 1 | 0.109589 | false | 0 | 0.013699 | 0 | 0.123288 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
498629b32fad75b1a1d8c62bcbb3cf7f40209d9c | 31,643 | py | Python | tests/plugins/test_objectstorage_summary_service.py | papodaca/opsconsole-server | 952e5765cd22bf7cf364d89bf5cce14440ddc575 | [
"Apache-2.0"
] | null | null | null | tests/plugins/test_objectstorage_summary_service.py | papodaca/opsconsole-server | 952e5765cd22bf7cf364d89bf5cce14440ddc575 | [
"Apache-2.0"
] | null | null | null | tests/plugins/test_objectstorage_summary_service.py | papodaca/opsconsole-server | 952e5765cd22bf7cf364d89bf5cce14440ddc575 | [
"Apache-2.0"
] | null | null | null | # (c) Copyright 2016-2017 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017 SUSE LLC
from mock import patch
from bll import api
from bll.api.auth_token import TokenHelpers
from bll.api.request import BllRequest
from bll.plugins import objectstorage_summary_service
from monascaclient.v2_0.alarms import Alar... | 47.087798 | 79 | 0.482634 | 2,918 | 31,643 | 4.988005 | 0.089445 | 0.078873 | 0.031879 | 0.03078 | 0.814428 | 0.791549 | 0.764754 | 0.753006 | 0.738784 | 0.738509 | 0 | 0.108528 | 0.403344 | 31,643 | 671 | 80 | 47.157973 | 0.662394 | 0.002939 | 0 | 0.651888 | 0 | 0 | 0.205725 | 0.086823 | 0 | 0 | 0 | 0 | 0.006568 | 1 | 0.077176 | false | 0 | 0.014778 | 0.00821 | 0.103448 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4995a348fa06dc9c2cf2d62fef99d47af3de03bb | 212 | py | Python | mlreflect/xrrloader/footprint/normalization.py | schreiber-lab/mlreflect | 88a80ccac48461cc8934a46041726b70e469c6b8 | [
"MIT"
] | null | null | null | mlreflect/xrrloader/footprint/normalization.py | schreiber-lab/mlreflect | 88a80ccac48461cc8934a46041726b70e469c6b8 | [
"MIT"
] | null | null | null | mlreflect/xrrloader/footprint/normalization.py | schreiber-lab/mlreflect | 88a80ccac48461cc8934a46041726b70e469c6b8 | [
"MIT"
] | null | null | null | import numpy as np
from numpy import ndarray
def normalize_to_max(intensity: ndarray):
return intensity / np.max(intensity)
def normalize_to_first(intensity: ndarray):
return intensity / intensity[0]
| 19.272727 | 43 | 0.768868 | 29 | 212 | 5.482759 | 0.482759 | 0.150943 | 0.176101 | 0.389937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005618 | 0.160377 | 212 | 10 | 44 | 21.2 | 0.88764 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
b8f4ba3689f43767f473b430a7da90308aba2479 | 12,430 | py | Python | gym_snake/envs/snake/grid_unittests.py | Maarten1999/Minor_ML3_Snake_AI | 8a579634c94feb8f73b9bf00db78d6852993d3f6 | [
"MIT"
] | null | null | null | gym_snake/envs/snake/grid_unittests.py | Maarten1999/Minor_ML3_Snake_AI | 8a579634c94feb8f73b9bf00db78d6852993d3f6 | [
"MIT"
] | null | null | null | gym_snake/envs/snake/grid_unittests.py | Maarten1999/Minor_ML3_Snake_AI | 8a579634c94feb8f73b9bf00db78d6852993d3f6 | [
"MIT"
] | null | null | null | import unittest
from grid import Grid
from snake import Snake
import numpy as np
class GridTests(unittest.TestCase):
grid_size = [30,30]
unit_size = 10
def test_grid_Initialization(self):
grid = Grid(self.grid_size, self.unit_size)
expected_size = [300,300,3]
expected_grid = np.ze... | 40.888158 | 213 | 0.624055 | 1,831 | 12,430 | 4.022392 | 0.047515 | 0.077122 | 0.092872 | 0.065173 | 0.878072 | 0.847251 | 0.806653 | 0.781399 | 0.762933 | 0.712152 | 0 | 0.031654 | 0.247707 | 12,430 | 303 | 214 | 41.023102 | 0.755962 | 0 | 0 | 0.646154 | 0 | 0 | 0.000644 | 0 | 0 | 0 | 0 | 0 | 0.173077 | 1 | 0.130769 | false | 0 | 0.015385 | 0 | 0.157692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7709a71f9cd643d0ad9f16d72743a68ea6962bc8 | 126 | py | Python | deepctr/layers/__init__.py | osljw/keras_tf | 400f7e8438216ff15e91509472dc028605ed97aa | [
"MIT"
] | null | null | null | deepctr/layers/__init__.py | osljw/keras_tf | 400f7e8438216ff15e91509472dc028605ed97aa | [
"MIT"
] | null | null | null | deepctr/layers/__init__.py | osljw/keras_tf | 400f7e8438216ff15e91509472dc028605ed97aa | [
"MIT"
] | null | null | null | from .core import *
from .interaction import *
from .normalization import *
from .activation import *
from .sequence import *
| 21 | 28 | 0.761905 | 15 | 126 | 6.4 | 0.466667 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15873 | 126 | 5 | 29 | 25.2 | 0.90566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
772f3c7f03d49bf47956f5d9be27a237a1a62995 | 30,725 | py | Python | tests/framework/cli/micropkg/test_micropkg_pull.py | avan-sh/kedro | bb3ca393f6f0e4103f7215aa0f8b4d6bd25efb07 | [
"Apache-2.0"
] | null | null | null | tests/framework/cli/micropkg/test_micropkg_pull.py | avan-sh/kedro | bb3ca393f6f0e4103f7215aa0f8b4d6bd25efb07 | [
"Apache-2.0"
] | null | null | null | tests/framework/cli/micropkg/test_micropkg_pull.py | avan-sh/kedro | bb3ca393f6f0e4103f7215aa0f8b4d6bd25efb07 | [
"Apache-2.0"
] | null | null | null | import filecmp
import shutil
import textwrap
from pathlib import Path
import pytest
import toml
import yaml
from click import ClickException
from click.testing import CliRunner
from kedro.framework.cli.micropkg import _get_sdist_name
from kedro.framework.project import settings
PIPELINE_NAME = "my_pipeline"
def ca... | 36.404028 | 104 | 0.615818 | 3,511 | 30,725 | 5.05554 | 0.074907 | 0.059493 | 0.058366 | 0.04969 | 0.824732 | 0.804676 | 0.797746 | 0.776169 | 0.75707 | 0.736338 | 0 | 0.002648 | 0.287225 | 30,725 | 843 | 105 | 36.447212 | 0.807854 | 0.051261 | 0 | 0.65812 | 0 | 0.001425 | 0.134204 | 0.036143 | 0 | 0 | 0 | 0 | 0.125356 | 1 | 0.032764 | false | 0 | 0.034188 | 0 | 0.069801 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7734ad4d5ca2800b65ba911d0e6a3864866d2e85 | 7,262 | py | Python | rltf/utils/layouts.py | nikonikolov/rltf | d56714494f73e53ed4b41d6376d942332b406885 | [
"MIT"
] | 90 | 2018-05-02T17:15:52.000Z | 2021-11-09T08:53:44.000Z | rltf/utils/layouts.py | arita37/rltf | d56714494f73e53ed4b41d6376d942332b406885 | [
"MIT"
] | 1 | 2019-10-01T11:41:53.000Z | 2019-12-08T15:38:53.000Z | rltf/utils/layouts.py | arita37/rltf | d56714494f73e53ed4b41d6376d942332b406885 | [
"MIT"
] | 25 | 2018-01-14T16:56:44.000Z | 2021-11-09T08:53:48.000Z | from collections import OrderedDict
def plot_bars(ax, kwargs, env, color):
x = atari_labels(env.unwrapped.get_action_meanings())
return ax.bar(x=x, **kwargs, color=color)
def plot_highlight_bars(ax, kwargs, env, color_n='#1f77b4', color_hi='#d62728'):
x = atari_labels(env.unwrapped.get_action_meanings())
col... | 28.256809 | 80 | 0.495731 | 847 | 7,262 | 4.072019 | 0.141677 | 0.066686 | 0.09336 | 0.120035 | 0.81067 | 0.799072 | 0.799072 | 0.799072 | 0.772398 | 0.753842 | 0 | 0.035945 | 0.318094 | 7,262 | 256 | 81 | 28.367188 | 0.660541 | 0.062104 | 0 | 0.604545 | 0 | 0 | 0.192461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013636 | false | 0 | 0.004545 | 0 | 0.031818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
773ac63ab0430b4500d79b608bc9cee6f43580ec | 33 | py | Python | proxmoxmanager/__init__.py | igorlitvak/proxmoxmanager | 3cd31a394350dd555236fa363b37fcb9e86fa20c | [
"MIT"
] | null | null | null | proxmoxmanager/__init__.py | igorlitvak/proxmoxmanager | 3cd31a394350dd555236fa363b37fcb9e86fa20c | [
"MIT"
] | null | null | null | proxmoxmanager/__init__.py | igorlitvak/proxmoxmanager | 3cd31a394350dd555236fa363b37fcb9e86fa20c | [
"MIT"
] | null | null | null | from .main import ProxmoxManager
| 16.5 | 32 | 0.848485 | 4 | 33 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 33 | 1 | 33 | 33 | 0.965517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
77496336f4868d138adf58642534e63629aea473 | 7,284 | py | Python | sales_main.py | svenhsia/Entropic-Wasserstein-Embedding | db837b92759cb5c921e7c06b2357861ec687e9de | [
"MIT"
] | 10 | 2019-08-01T07:41:11.000Z | 2021-08-09T20:52:37.000Z | sales_main.py | svenhsia/Entropic-Wasserstein-Embedding | db837b92759cb5c921e7c06b2357861ec687e9de | [
"MIT"
] | null | null | null | sales_main.py | svenhsia/Entropic-Wasserstein-Embedding | db837b92759cb5c921e7c06b2357861ec687e9de | [
"MIT"
] | null | null | null | import os
import sys
from time import time
import logging
logging.basicConfig(format='%(asctime)s - %(levelname)s - %(message)s', level=logging.INFO)
import numpy as np
import tensorflow as tf
from utils import *
org_distances = np.loadtxt('./data/Sales_Transaction_Dataset.dist', delimiter=',')
logging.info("Load DT... | 43.357143 | 111 | 0.662685 | 916 | 7,284 | 4.956332 | 0.122271 | 0.065198 | 0.039648 | 0.066079 | 0.813436 | 0.788767 | 0.771586 | 0.758811 | 0.758811 | 0.704626 | 0 | 0.011636 | 0.221307 | 7,284 | 167 | 112 | 43.616766 | 0.788787 | 0.260708 | 0 | 0.552381 | 0 | 0 | 0.132284 | 0.02492 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
622916e739637a1f160999cffcb577b6be273cba | 22 | py | Python | mercy/utils/__init__.py | monokrome/mercy | 8274be29e66297ef1e718cd8de9b3993bf878a76 | [
"BSD-3-Clause"
] | null | null | null | mercy/utils/__init__.py | monokrome/mercy | 8274be29e66297ef1e718cd8de9b3993bf878a76 | [
"BSD-3-Clause"
] | null | null | null | mercy/utils/__init__.py | monokrome/mercy | 8274be29e66297ef1e718cd8de9b3993bf878a76 | [
"BSD-3-Clause"
] | null | null | null | from . import objects
| 11 | 21 | 0.772727 | 3 | 22 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 22 | 1 | 22 | 22 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6555535ba14dc4c2849554f46164bbaf35276415 | 101 | py | Python | CH8_trees/type_hints_test.py | B-T-D/DSAP | 427da326373d3e197c54c0ce291b588e2dea67a2 | [
"CNRI-Python"
] | 1 | 2022-02-07T15:54:30.000Z | 2022-02-07T15:54:30.000Z | CH8_trees/type_hints_test.py | B-T-D/DSAP | 427da326373d3e197c54c0ce291b588e2dea67a2 | [
"CNRI-Python"
] | null | null | null | CH8_trees/type_hints_test.py | B-T-D/DSAP | 427da326373d3e197c54c0ce291b588e2dea67a2 | [
"CNRI-Python"
] | 1 | 2021-04-27T14:02:40.000Z | 2021-04-27T14:02:40.000Z | def double(x: int=4):
return x * 2
print(double())
print(double(3))
# confirmed correct syntax
| 12.625 | 26 | 0.663366 | 16 | 101 | 4.1875 | 0.75 | 0.328358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036585 | 0.188119 | 101 | 7 | 27 | 14.428571 | 0.780488 | 0.237624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 6 |
658d2d27417a464531cf4a4c9af619515137783b | 293 | py | Python | toontown/cogdominium/DistCogdoGameBase.py | LittleNed/toontown-stride | 1252a8f9a8816c1810106006d09c8bdfe6ad1e57 | [
"Apache-2.0"
] | 3 | 2020-01-02T08:43:36.000Z | 2020-07-05T08:59:02.000Z | toontown/cogdominium/DistCogdoGameBase.py | NoraTT/Historical-Commits-Project-Altis-Source | fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179 | [
"Apache-2.0"
] | null | null | null | toontown/cogdominium/DistCogdoGameBase.py | NoraTT/Historical-Commits-Project-Altis-Source | fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179 | [
"Apache-2.0"
] | 4 | 2019-06-20T23:45:23.000Z | 2020-10-14T20:30:15.000Z |
class DistCogdoGameBase:
def local2GameTime(self, timestamp):
return timestamp - self._startTime
def game2LocalTime(self, timestamp):
return timestamp + self._startTime
def getCurrentGameTime(self):
return self.local2GameTime(globalClock.getFrameTime()) | 26.636364 | 62 | 0.723549 | 26 | 293 | 8.076923 | 0.461538 | 0.12381 | 0.180952 | 0.266667 | 0.419048 | 0.419048 | 0.419048 | 0 | 0 | 0 | 0 | 0.012821 | 0.201365 | 293 | 11 | 62 | 26.636364 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0.428571 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
02b818febef4bd058845e7d71c9a5f17c5bd3193 | 11,226 | py | Python | p4gen/ptp_base.py | jiru000000/p4benchmark | 9e4f4628a630d7a0f572e3ab5b41662f588251d6 | [
"Apache-2.0"
] | null | null | null | p4gen/ptp_base.py | jiru000000/p4benchmark | 9e4f4628a630d7a0f572e3ab5b41662f588251d6 | [
"Apache-2.0"
] | null | null | null | p4gen/ptp_base.py | jiru000000/p4benchmark | 9e4f4628a630d7a0f572e3ab5b41662f588251d6 | [
"Apache-2.0"
] | 1 | 2021-06-04T09:41:08.000Z | 2021-06-04T09:41:08.000Z | from scapy.fields import BitEnumField, \
BitField, \
ByteField, \
IntField, \
ConditionalField, \
FlagsField, \
LongField, ... | 31.622535 | 64 | 0.561286 | 875 | 11,226 | 7.136 | 0.118857 | 0.017937 | 0.024343 | 0.034593 | 0.806374 | 0.800448 | 0.800448 | 0.72902 | 0.72902 | 0.72902 | 0 | 0.08742 | 0.289774 | 11,226 | 354 | 65 | 31.711864 | 0.695723 | 0.072867 | 0 | 0.688406 | 0 | 0 | 0.300986 | 0.012952 | 0 | 0 | 0.046685 | 0 | 0 | 1 | 0 | false | 0 | 0.007246 | 0 | 0.144928 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
02de16e29605f5a1daa10d952ea002a4f013143b | 47 | py | Python | __init__.py | GPaolo/SERENE | 83bc38a37ad8f1be9695d2483fd463428d4dae23 | [
"MIT"
] | 3 | 2021-04-19T21:55:00.000Z | 2021-12-20T15:26:12.000Z | __init__.py | GPaolo/SERENE | 83bc38a37ad8f1be9695d2483fd463428d4dae23 | [
"MIT"
] | null | null | null | __init__.py | GPaolo/SERENE | 83bc38a37ad8f1be9695d2483fd463428d4dae23 | [
"MIT"
] | null | null | null | # Created by Giuseppe Paolo
# Date: 27/07/2020 | 23.5 | 28 | 0.723404 | 8 | 47 | 4.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205128 | 0.170213 | 47 | 2 | 29 | 23.5 | 0.666667 | 0.914894 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
b8232813dcb83e39ca973743933c60beeb43a867 | 206 | py | Python | codes_/0405_Convert_a_Number_to_Hexadecimal.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | codes_/0405_Convert_a_Number_to_Hexadecimal.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | codes_/0405_Convert_a_Number_to_Hexadecimal.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | # %% [405. Convert a Number to Hexadecimal](https://leetcode.com/problems/convert-a-number-to-hexadecimal/)
class Solution:
def toHex(self, num: int) -> str:
return hex(num & (2 ** 32 - 1))[2:]
| 41.2 | 107 | 0.640777 | 30 | 206 | 4.4 | 0.766667 | 0.121212 | 0.212121 | 0.242424 | 0.409091 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047059 | 0.174757 | 206 | 4 | 108 | 51.5 | 0.729412 | 0.509709 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
b82e3d0ae7d612c7601d575c83a3600914225bdb | 29 | py | Python | gva/data/formats/__init__.py | gva-jjoyce/gva_data | cda990d0abb4b175025aaf16e75192bd9cc213af | [
"Apache-2.0"
] | null | null | null | gva/data/formats/__init__.py | gva-jjoyce/gva_data | cda990d0abb4b175025aaf16e75192bd9cc213af | [
"Apache-2.0"
] | 24 | 2020-12-24T12:21:42.000Z | 2021-01-28T14:22:38.000Z | gva/data/formats/__init__.py | gva-jjoyce/gva_data | cda990d0abb4b175025aaf16e75192bd9cc213af | [
"Apache-2.0"
] | null | null | null | from .group_by import Groups
| 14.5 | 28 | 0.827586 | 5 | 29 | 4.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 29 | 1 | 29 | 29 | 0.92 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
b853f3fb8076032159e18ff8756b360d2904f2ad | 30 | py | Python | act3.py | hummusM/cs3240-labdemo | f96d71caabf44e10321e0831442bc3263bfedbd0 | [
"MIT"
] | null | null | null | act3.py | hummusM/cs3240-labdemo | f96d71caabf44e10321e0831442bc3263bfedbd0 | [
"MIT"
] | null | null | null | act3.py | hummusM/cs3240-labdemo | f96d71caabf44e10321e0831442bc3263bfedbd0 | [
"MIT"
] | null | null | null |
print ("I am trying part 3.") | 15 | 29 | 0.633333 | 6 | 30 | 3.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.2 | 30 | 2 | 29 | 15 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.633333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
b87cb3bdaeac134027ad869cc9067e4eb3c2d627 | 20 | py | Python | tests/__init__.py | bitsf/load-m3u8 | f1b9ac875bbd4be625adf9303fe112b2f02af68e | [
"Apache-2.0"
] | null | null | null | tests/__init__.py | bitsf/load-m3u8 | f1b9ac875bbd4be625adf9303fe112b2f02af68e | [
"Apache-2.0"
] | null | null | null | tests/__init__.py | bitsf/load-m3u8 | f1b9ac875bbd4be625adf9303fe112b2f02af68e | [
"Apache-2.0"
] | null | null | null | # _*_coding:utf-8_*_ | 20 | 20 | 0.7 | 3 | 20 | 3.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.05 | 20 | 1 | 20 | 20 | 0.473684 | 0.9 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
b885c3edef9aa23aeaa2cd623011541f4af58c37 | 48 | py | Python | src/aves/models/network/__init__.py | sergioangulo/aves | 43a14ec9c82929136a39590b15fe7f92182aae20 | [
"CC-BY-3.0"
] | 34 | 2020-10-23T08:57:03.000Z | 2022-03-23T17:07:20.000Z | src/aves/models/network/__init__.py | sergioangulo/aves | 43a14ec9c82929136a39590b15fe7f92182aae20 | [
"CC-BY-3.0"
] | 3 | 2021-12-02T22:42:25.000Z | 2021-12-10T02:37:01.000Z | src/aves/models/network/__init__.py | sergioangulo/aves | 43a14ec9c82929136a39590b15fe7f92182aae20 | [
"CC-BY-3.0"
] | 11 | 2021-03-25T02:40:34.000Z | 2022-01-03T22:41:29.000Z | from .base import Network
from .edge import Edge | 24 | 25 | 0.8125 | 8 | 48 | 4.875 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145833 | 48 | 2 | 26 | 24 | 0.95122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
b895018e5389ab1b02cd0bba6ca315a7ffc7558b | 32 | py | Python | transform/__init__.py | vmproj/conformer-vc | 224d330692cf3245c805bbf78c3e58a7805126d1 | [
"MIT"
] | 1 | 2022-01-24T05:43:13.000Z | 2022-01-24T05:43:13.000Z | transform/__init__.py | vmproj/conformer-vc | 224d330692cf3245c805bbf78c3e58a7805126d1 | [
"MIT"
] | null | null | null | transform/__init__.py | vmproj/conformer-vc | 224d330692cf3245c805bbf78c3e58a7805126d1 | [
"MIT"
] | null | null | null | from .audio import TacotronSTFT
| 16 | 31 | 0.84375 | 4 | 32 | 6.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 32 | 1 | 32 | 32 | 0.964286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
b8b5ad4c039cfa4c2f665f679ae234c59cc10487 | 2,061 | py | Python | Laelia/apps/base/migrations/0006_auto_20201001_1731.py | arantesdv/LaeliaAppProject | 93fca5393cb8406694903d9adde02067480c792e | [
"MIT"
] | null | null | null | Laelia/apps/base/migrations/0006_auto_20201001_1731.py | arantesdv/LaeliaAppProject | 93fca5393cb8406694903d9adde02067480c792e | [
"MIT"
] | null | null | null | Laelia/apps/base/migrations/0006_auto_20201001_1731.py | arantesdv/LaeliaAppProject | 93fca5393cb8406694903d9adde02067480c792e | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-10-01 17:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('base', '0005_auto_20201001_1634'),
]
operations = [
migrations.AddField(
model_name='patient',
name='address',
... | 34.932203 | 103 | 0.583697 | 211 | 2,061 | 5.549763 | 0.232227 | 0.138343 | 0.176772 | 0.207515 | 0.838599 | 0.838599 | 0.695132 | 0.695132 | 0.695132 | 0.695132 | 0 | 0.034812 | 0.28918 | 2,061 | 58 | 104 | 35.534483 | 0.764505 | 0.021834 | 0 | 0.826923 | 1 | 0 | 0.136544 | 0.01142 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.019231 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
b24a8c999e3a0582f4bd37d888451058ae06ad93 | 187 | py | Python | app/user/resources.py | guidiego/pyground | 962ba01f5a18391b86d091176b056f0ba0431f04 | [
"MIT"
] | 1 | 2016-10-17T15:56:27.000Z | 2016-10-17T15:56:27.000Z | app/user/resources.py | guidiego/pyground | 962ba01f5a18391b86d091176b056f0ba0431f04 | [
"MIT"
] | null | null | null | app/user/resources.py | guidiego/pyground | 962ba01f5a18391b86d091176b056f0ba0431f04 | [
"MIT"
] | null | null | null | from utils.generic_resource import GenericResource
from user.models import User
from utils.generic_resource import router_build
user_routes = router_build(GenericResource(User), "user")
| 31.166667 | 57 | 0.850267 | 25 | 187 | 6.16 | 0.44 | 0.116883 | 0.207792 | 0.311688 | 0.38961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 187 | 5 | 58 | 37.4 | 0.905882 | 0 | 0 | 0 | 0 | 0 | 0.02139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
b25711a881b06349619f034bb0b4405f9aaf2eba | 231 | py | Python | paper_forms/conf.py | dldevinc/paper-forms | 6430382a2c369ef346e702d3644f23eba7bd8354 | [
"BSD-3-Clause"
] | 1 | 2021-05-12T06:50:44.000Z | 2021-05-12T06:50:44.000Z | paper_forms/conf.py | dldevinc/paper-forms | 6430382a2c369ef346e702d3644f23eba7bd8354 | [
"BSD-3-Clause"
] | null | null | null | paper_forms/conf.py | dldevinc/paper-forms | 6430382a2c369ef346e702d3644f23eba7bd8354 | [
"BSD-3-Clause"
] | null | null | null | from django.conf import settings
DEFAULT_COMPOSER = getattr(settings, "PAPER_FORMS_DEFAULT_COMPOSER", "paper_forms.composers.base.BaseComposer")
DEFAULT_FORM_RENDERER = getattr(settings, "PAPER_FORMS_DEFAULT_FORM_RENDERER", None)
| 46.2 | 111 | 0.848485 | 29 | 231 | 6.37931 | 0.551724 | 0.162162 | 0.216216 | 0.27027 | 0.345946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064935 | 231 | 4 | 112 | 57.75 | 0.856481 | 0 | 0 | 0 | 0 | 0 | 0.4329 | 0.4329 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
b2958878e4ed3b91cf7c14255db618ab28317d50 | 1,570 | bzl | Python | github.com/gogo/protobuf/deps.bzl | mirandacong/rules_proto | b74e93b3a197401da858423d2758aaf4f38be4f9 | [
"Apache-2.0"
] | null | null | null | github.com/gogo/protobuf/deps.bzl | mirandacong/rules_proto | b74e93b3a197401da858423d2758aaf4f38be4f9 | [
"Apache-2.0"
] | null | null | null | github.com/gogo/protobuf/deps.bzl | mirandacong/rules_proto | b74e93b3a197401da858423d2758aaf4f38be4f9 | [
"Apache-2.0"
] | null | null | null | load("//:deps.bzl",
"io_bazel_rules_go",
)
# Same as rules_go as rules_go is already loading gogo protobuf
def gogo_proto_compile(**kwargs):
io_bazel_rules_go(**kwargs)
def gogo_grpc_compile(**kwargs):
gogo_proto_compile(**kwargs)
def gogo_proto_library(**kwargs):
gogo_proto_compile(**kwargs)
def ... | 22.112676 | 63 | 0.75414 | 204 | 1,570 | 5.372549 | 0.117647 | 0.249088 | 0.180657 | 0.140511 | 0.77281 | 0.74635 | 0.725365 | 0.57573 | 0 | 0 | 0 | 0 | 0.120382 | 1,570 | 70 | 64 | 22.428571 | 0.793628 | 0.038854 | 0 | 0.454545 | 0 | 0 | 0.01858 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.454545 | true | 0 | 0 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
a23e117ffaa984577c6715bf73d510266debeb43 | 156 | py | Python | pyjswidgets/pyjamas/ui/FlashPanel.ie6.py | takipsizad/pyjs | 54db0ba6747aca744f9f3c3e985a17e913dfb951 | [
"ECL-2.0",
"Apache-2.0"
] | 739 | 2015-01-01T02:05:11.000Z | 2022-03-30T15:26:16.000Z | pyjswidgets/pyjamas/ui/FlashPanel.ie6.py | takipsizad/pyjs | 54db0ba6747aca744f9f3c3e985a17e913dfb951 | [
"ECL-2.0",
"Apache-2.0"
] | 33 | 2015-03-25T23:17:04.000Z | 2021-08-19T08:25:22.000Z | pyjswidgets/pyjamas/ui/FlashPanel.ie6.py | takipsizad/pyjs | 54db0ba6747aca744f9f3c3e985a17e913dfb951 | [
"ECL-2.0",
"Apache-2.0"
] | 167 | 2015-01-01T22:27:47.000Z | 2022-03-17T13:29:19.000Z | """
@license: Apache License Version 2.0
@copyright: 2009 Tobias Weber
@author: Tobias Weber
@contact: tobi-weber@gmx.de
"""
def browser():
return 'ie' | 17.333333 | 36 | 0.698718 | 22 | 156 | 4.954545 | 0.818182 | 0.201835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.153846 | 156 | 9 | 37 | 17.333333 | 0.780303 | 0.74359 | 0 | 0 | 0 | 0 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 6 |
a2597139c66ebffd2c6f35590322a282d4ab7671 | 2,055 | py | Python | winxp_sp3/trun/disable_firewall/registry_openport/trun_openport-registry_poc.py | danf42/vulnserver | 1b01aaa0f0b5706b5bc24c5f64d99dddcdcfe913 | [
"MIT"
] | null | null | null | winxp_sp3/trun/disable_firewall/registry_openport/trun_openport-registry_poc.py | danf42/vulnserver | 1b01aaa0f0b5706b5bc24c5f64d99dddcdcfe913 | [
"MIT"
] | null | null | null | winxp_sp3/trun/disable_firewall/registry_openport/trun_openport-registry_poc.py | danf42/vulnserver | 1b01aaa0f0b5706b5bc24c5f64d99dddcdcfe913 | [
"MIT"
] | null | null | null | import socket
import struct
print "\nTRUN Command - Open port 4445\n"
ip_addr = '192.168.199.130'
port = 9999
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
s.connect((ip_addr, int(port)))
except Exception as e:
print "[-] Failed to connect to service %s" % e
else:
print "[+] Connected to ... | 34.830508 | 75 | 0.648662 | 397 | 2,055 | 3.327456 | 0.602015 | 0.027252 | 0.02271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241826 | 0.13674 | 2,055 | 58 | 76 | 35.431034 | 0.502818 | 0.068613 | 0 | 0 | 0 | 0.47619 | 0.674175 | 0.603457 | 0 | 1 | 0.005238 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.119048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
a2621b4d1bfc9f2bb9223c69f40ff04bd74ea3d9 | 63 | py | Python | parallel_wavegan/models/__init__.py | mukeshv0/ParallelWaveGAN | 40fd282d0364c8d8711efed21d9689653d85b3a2 | [
"MIT"
] | 4 | 2020-01-10T06:26:50.000Z | 2022-03-22T23:40:03.000Z | parallel_wavegan/models/__init__.py | idcore/ParallelWaveGAN | 2908bc5bce95f903f27a015f172ffd1b20017560 | [
"MIT"
] | null | null | null | parallel_wavegan/models/__init__.py | idcore/ParallelWaveGAN | 2908bc5bce95f903f27a015f172ffd1b20017560 | [
"MIT"
] | null | null | null | from parallel_wavegan.models.parallel_wavegan import * # NOQA
| 31.5 | 62 | 0.825397 | 8 | 63 | 6.25 | 0.75 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 63 | 1 | 63 | 63 | 0.892857 | 0.063492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
a299892ea61b1937f748a80fcb1f49c65d0dad27 | 57,547 | py | Python | data/dataset.py | XDUxyLi/SCEN-master | 43c3cc60fb20054bb55c0d9d9eb4e1f6082a1377 | [
"MIT"
] | null | null | null | data/dataset.py | XDUxyLi/SCEN-master | 43c3cc60fb20054bb55c0d9d9eb4e1f6082a1377 | [
"MIT"
] | null | null | null | data/dataset.py | XDUxyLi/SCEN-master | 43c3cc60fb20054bb55c0d9d9eb4e1f6082a1377 | [
"MIT"
] | null | null | null | # # #external libs
# import numpy as np
# from tqdm import tqdm
# from PIL import Image
# from PIL import ImageFilter
# import os
# import random
# from os.path import join as ospj
# from glob import glob
# #torch libs
# from torch.utils.data import Dataset
# import torch
# import torchvision.transforms as transforms
#... | 37.735738 | 117 | 0.561107 | 7,038 | 57,547 | 4.389031 | 0.044757 | 0.028553 | 0.025639 | 0.019035 | 0.994367 | 0.990515 | 0.988087 | 0.984623 | 0.984234 | 0.979767 | 0 | 0.009397 | 0.321355 | 57,547 | 1,524 | 118 | 37.760499 | 0.781559 | 0.694545 | 0 | 0.204969 | 0 | 0 | 0.047993 | 0.001633 | 0 | 0 | 0 | 0.001969 | 0 | 1 | 0.055901 | false | 0 | 0.046584 | 0 | 0.152174 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
a2a0bab466ef19b487aa54f070b631438b2c3d1b | 38 | py | Python | stweet/parse/__init__.py | enginbozaba/stweet-twitter-api | 060250e00a01ae53c2ca12954719b5efc918e132 | [
"MIT"
] | null | null | null | stweet/parse/__init__.py | enginbozaba/stweet-twitter-api | 060250e00a01ae53c2ca12954719b5efc918e132 | [
"MIT"
] | null | null | null | stweet/parse/__init__.py | enginbozaba/stweet-twitter-api | 060250e00a01ae53c2ca12954719b5efc918e132 | [
"MIT"
] | null | null | null | from .tweet_parser import TweetParser
| 19 | 37 | 0.868421 | 5 | 38 | 6.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 38 | 1 | 38 | 38 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
a2b93caa7e021ef11faa817317f239f8bb2da229 | 9,428 | py | Python | scripts/md_init_ins.py | chengtachu/GEDM | a34f0553602d543f25a731e2e2baa95c93d773ff | [
"MIT"
] | 1 | 2021-01-12T15:25:27.000Z | 2021-01-12T15:25:27.000Z | scripts/md_init_ins.py | qc-an/GEDM | ad373050e3bc089bb42789a3ad8584a100f7c7e0 | [
"MIT"
] | null | null | null | scripts/md_init_ins.py | qc-an/GEDM | ad373050e3bc089bb42789a3ad8584a100f7c7e0 | [
"MIT"
] | 2 | 2020-11-25T14:07:39.000Z | 2021-02-17T12:20:20.000Z | #
# General Electricity sector Decarbonization Model (GEDM)
# Copyright (C) 2020 Cheng-Ta Chu.
# Licensed under the MIT License (see LICENSE file).
#
# Module note:
# Functions to initialize instance settings
#
#----------------------------------------------------
# sets
#---------------------------------------------... | 34.283636 | 107 | 0.555155 | 949 | 9,428 | 5.432034 | 0.173867 | 0.028516 | 0.03259 | 0.025218 | 0.82192 | 0.82192 | 0.777498 | 0.746654 | 0.688264 | 0.641125 | 0 | 0.018217 | 0.336233 | 9,428 | 274 | 108 | 34.408759 | 0.805529 | 0.201952 | 0 | 0.802469 | 0 | 0 | 0.000409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104938 | false | 0 | 0 | 0 | 0.209877 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
a2ec7a207dbf87a2092479c3f4ae30d8e8e6fbce | 36 | py | Python | clickhouse_bundle/__init__.py | applauncher-team/clickhouse_bundle | 484e048ebe57685ffccdc2bfd049b68fdae07795 | [
"Apache-2.0"
] | null | null | null | clickhouse_bundle/__init__.py | applauncher-team/clickhouse_bundle | 484e048ebe57685ffccdc2bfd049b68fdae07795 | [
"Apache-2.0"
] | null | null | null | clickhouse_bundle/__init__.py | applauncher-team/clickhouse_bundle | 484e048ebe57685ffccdc2bfd049b68fdae07795 | [
"Apache-2.0"
] | null | null | null | from .bundle import ClickhouseBundle | 36 | 36 | 0.888889 | 4 | 36 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 36 | 1 | 36 | 36 | 0.969697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.