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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d743ccacc9eed7a98fc0037b0cee3b6a9824523c | 36,588 | py | Python | billforward/apis/couponmodifier_api.py | billforward/bf-python | d2b812329ca3ed1fd94364d7f46f69ad74665596 | [
"Apache-2.0"
] | 2 | 2016-11-23T17:32:37.000Z | 2022-02-24T05:13:20.000Z | billforward/apis/couponmodifier_api.py | billforward/bf-python | d2b812329ca3ed1fd94364d7f46f69ad74665596 | [
"Apache-2.0"
] | null | null | null | billforward/apis/couponmodifier_api.py | billforward/bf-python | d2b812329ca3ed1fd94364d7f46f69ad74665596 | [
"Apache-2.0"
] | 1 | 2016-12-30T20:02:48.000Z | 2016-12-30T20:02:48.000Z | # coding: utf-8
"""
BillForward REST API
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
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... | 45.226205 | 148 | 0.602766 | 3,791 | 36,588 | 5.594039 | 0.064099 | 0.063375 | 0.02867 | 0.023766 | 0.94615 | 0.938369 | 0.929976 | 0.913661 | 0.910124 | 0.896591 | 0 | 0.000557 | 0.313627 | 36,588 | 808 | 149 | 45.282178 | 0.843906 | 0.389226 | 0 | 0.790885 | 1 | 0 | 0.185416 | 0.06222 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040214 | false | 0 | 0.018767 | 0 | 0.117962 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
ad018a2f54bd6c77f38f3a756696bc50adb9c64e | 3,890 | py | Python | backend/api/tests/unit_tests/test_workspaces.py | hieutt99/aidudu | 00dff59e8dff109904b340cd7ae763d6201773e8 | [
"MIT"
] | 3 | 2021-10-31T19:32:20.000Z | 2022-01-02T15:31:11.000Z | backend/api/tests/unit_tests/test_workspaces.py | hieutt99/aidudu | 00dff59e8dff109904b340cd7ae763d6201773e8 | [
"MIT"
] | 49 | 2021-10-31T16:08:35.000Z | 2022-01-04T16:29:06.000Z | backend/api/tests/unit_tests/test_workspaces.py | hieutt99/aidudu | 00dff59e8dff109904b340cd7ae763d6201773e8 | [
"MIT"
] | 2 | 2021-12-19T17:03:22.000Z | 2022-01-03T08:27:01.000Z | from api.tests.unit_tests.utils import *
class WorkSpacesListTest(APITestCase):
url = reverse("workspace-list")
def setUp(self):
hook_init_APITestCase(self)
self.other_user = ['kevin bacon','lalaland@john.snow','Tremors']
self.test_user = CustomUser.objects.create_user(
use... | 45.232558 | 154 | 0.661183 | 476 | 3,890 | 5.243697 | 0.210084 | 0.098958 | 0.041667 | 0.03125 | 0.814904 | 0.796474 | 0.796474 | 0.796474 | 0.745192 | 0.745192 | 0 | 0.009474 | 0.213111 | 3,890 | 85 | 155 | 45.764706 | 0.805946 | 0.050643 | 0 | 0.723077 | 0 | 0 | 0.084714 | 0.016834 | 0 | 0 | 0 | 0 | 0.138462 | 1 | 0.123077 | false | 0.030769 | 0.015385 | 0 | 0.184615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ad0b4f0605b073651b043fd484aa32a43bdd5d07 | 3,643 | py | Python | inventario/forms.py | vvilche1/odin | ca24e727d94b34b33eb51de50fbcc8a5505cc559 | [
"Apache-2.0"
] | null | null | null | inventario/forms.py | vvilche1/odin | ca24e727d94b34b33eb51de50fbcc8a5505cc559 | [
"Apache-2.0"
] | null | null | null | inventario/forms.py | vvilche1/odin | ca24e727d94b34b33eb51de50fbcc8a5505cc559 | [
"Apache-2.0"
] | null | null | null | from django import forms
from .models import Usuario, Libros, Issue, Resp, Cd, Inventario
class UsuarioForm(forms.ModelForm):
class Meta:
model = Usuario
fields = ('id_cam','idusuario','nombre','rut','password')
class LibrosForm(forms.ModelForm):
class Meta:
model = Libros
fi... | 35.715686 | 65 | 0.583036 | 311 | 3,643 | 6.276527 | 0.176849 | 0.307377 | 0.139344 | 0.070697 | 0.840164 | 0.754098 | 0.754098 | 0.754098 | 0.754098 | 0.754098 | 0 | 0 | 0.342575 | 3,643 | 101 | 66 | 36.069307 | 0.815031 | 0 | 0 | 0.741573 | 0 | 0 | 0.47406 | 0.381005 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.011236 | 0.022472 | 0 | 0.157303 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
ad5e89bbeacf4d05eed6ad9bd2d30785b4556f93 | 13,254 | py | Python | tests/pytests/functional/modules/state/requisites/test_onfail.py | tomdoherty/salt | f87d5d7abbf9777773c4d91fdafecb8b1a728e76 | [
"Apache-2.0"
] | 9,425 | 2015-01-01T05:59:24.000Z | 2022-03-31T20:44:05.000Z | tests/pytests/functional/modules/state/requisites/test_onfail.py | tomdoherty/salt | f87d5d7abbf9777773c4d91fdafecb8b1a728e76 | [
"Apache-2.0"
] | 33,507 | 2015-01-01T00:19:56.000Z | 2022-03-31T23:48:20.000Z | tests/pytests/functional/modules/state/requisites/test_onfail.py | tomdoherty/salt | f87d5d7abbf9777773c4d91fdafecb8b1a728e76 | [
"Apache-2.0"
] | 5,810 | 2015-01-01T19:11:45.000Z | 2022-03-31T02:37:20.000Z | import pytest
from . import normalize_ret
pytestmark = [
pytest.mark.windows_whitelisted,
]
def test_requisites_onfail_any(state, state_tree):
"""
Call sls file containing several require_in and require.
Ensure that some of them are failing and that the order is right.
"""
sls_contents = ""... | 25.007547 | 85 | 0.505885 | 1,511 | 13,254 | 4.195235 | 0.08405 | 0.045433 | 0.075722 | 0.059631 | 0.899353 | 0.868907 | 0.835936 | 0.818268 | 0.764474 | 0.710995 | 0 | 0.009276 | 0.36555 | 13,254 | 529 | 86 | 25.05482 | 0.744559 | 0.068885 | 0 | 0.78271 | 0 | 0 | 0.585067 | 0.030343 | 0 | 0 | 0 | 0 | 0.051402 | 1 | 0.021028 | false | 0.007009 | 0.004673 | 0 | 0.025701 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ad7ef914f1c2aa04c659da3945b1654027d7ade0 | 171,151 | py | Python | src/oci/jms/java_management_service_client.py | pabs3/oci-python-sdk | 437ba18ce39af2d1090e277c4bb8750c89f83021 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/jms/java_management_service_client.py | pabs3/oci-python-sdk | 437ba18ce39af2d1090e277c4bb8750c89f83021 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/jms/java_management_service_client.py | pabs3/oci-python-sdk | 437ba18ce39af2d1090e277c4bb8750c89f83021 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 48.63626 | 245 | 0.646061 | 20,432 | 171,151 | 5.196457 | 0.028044 | 0.0622 | 0.028821 | 0.005143 | 0.925528 | 0.912125 | 0.901379 | 0.888749 | 0.880912 | 0.870335 | 0 | 0.003113 | 0.271696 | 171,151 | 3,518 | 246 | 48.650085 | 0.848664 | 0.383036 | 0 | 0.824818 | 0 | 0.013034 | 0.189414 | 0.027838 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013556 | false | 0.000521 | 0.004692 | 0 | 0.044838 | 0.000521 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
66fd66879d72c204d9658a9b23c6921e36b36b71 | 235 | py | Python | graphene_pony/__init__.py | sostholm/graphene-pony | c38f9c340d344306015a9963b701d56f2e381e90 | [
"MIT"
] | null | null | null | graphene_pony/__init__.py | sostholm/graphene-pony | c38f9c340d344306015a9963b701d56f2e381e90 | [
"MIT"
] | null | null | null | graphene_pony/__init__.py | sostholm/graphene-pony | c38f9c340d344306015a9963b701d56f2e381e90 | [
"MIT"
] | null | null | null | # from .fields import MongoengineConnectionField
# from .types import MongoengineObjectType
# __version__ = "0.1.1"
# __all__ = ["__version__", "MongoengineObjectType", "MongoengineConnectionField"]
from .types import PonyObjectType | 29.375 | 82 | 0.791489 | 20 | 235 | 8.7 | 0.55 | 0.344828 | 0.402299 | 0.471264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014354 | 0.110638 | 235 | 8 | 83 | 29.375 | 0.818182 | 0.808511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 9 |
0f3b16eba797aafdd705d96a38707edba7d36245 | 54,743 | py | Python | py_files/field.py | jagarciap/SCSI | 0972548adf17a27b78ef2865a837bf20aadca3e9 | [
"MIT"
] | null | null | null | py_files/field.py | jagarciap/SCSI | 0972548adf17a27b78ef2865a837bf20aadca3e9 | [
"MIT"
] | null | null | null | py_files/field.py | jagarciap/SCSI | 0972548adf17a27b78ef2865a837bf20aadca3e9 | [
"MIT"
] | 1 | 2022-01-18T10:24:39.000Z | 2022-01-18T10:24:39.000Z | #Data structures that contain the fields of the system
from functools import reduce
import copy
import numpy
import pdb
import sys
from vtk.util.numpy_support import vtk_to_numpy
import accelerated_functions as af
import constants as c
from mesh import Mesh_recursive
from pic import PIC_recursive
import solver as slv... | 54.040474 | 200 | 0.671739 | 7,376 | 54,743 | 4.833107 | 0.069008 | 0.023563 | 0.034868 | 0.011108 | 0.85691 | 0.838537 | 0.82151 | 0.809055 | 0.807288 | 0.796376 | 0 | 0.007135 | 0.224303 | 54,743 | 1,012 | 201 | 54.093874 | 0.832376 | 0.379373 | 0 | 0.785592 | 0 | 0 | 0.039187 | 0.003033 | 0 | 0 | 0 | 0.000988 | 0 | 1 | 0.13036 | false | 0.013722 | 0.020583 | 0.012007 | 0.214408 | 0.037736 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
0f66ba79bdda8f7c73b260585daa7102329cf4eb | 7,494 | py | Python | tests/test_wrangler_admin.py | douglatornell/randopony-tetra | 258b0a8223b2a820d66b1a4d98eb0a54e07afa25 | [
"BSD-3-Clause"
] | 1 | 2020-06-30T18:56:22.000Z | 2020-06-30T18:56:22.000Z | tests/test_wrangler_admin.py | douglatornell/randopony-tetra | 258b0a8223b2a820d66b1a4d98eb0a54e07afa25 | [
"BSD-3-Clause"
] | null | null | null | tests/test_wrangler_admin.py | douglatornell/randopony-tetra | 258b0a8223b2a820d66b1a4d98eb0a54e07afa25 | [
"BSD-3-Clause"
] | null | null | null | """Tests for RandoPony administrator (aka wrangler) admin views and
functionality.
"""
import unittest
from unittest.mock import MagicMock, patch
from pyramid import testing
from sqlalchemy import create_engine
from randopony.models.meta import (
Base,
DBSession,
)
class TestWranglerCreate(unittest.TestCase... | 35.856459 | 77 | 0.618495 | 798 | 7,494 | 5.654135 | 0.16416 | 0.037677 | 0.02305 | 0.031915 | 0.804521 | 0.802083 | 0.78945 | 0.781693 | 0.763076 | 0.739583 | 0 | 0.000365 | 0.267948 | 7,494 | 208 | 78 | 36.028846 | 0.822093 | 0.14625 | 0 | 0.723684 | 0 | 0 | 0.147415 | 0.018188 | 0 | 0 | 0 | 0.009615 | 0.078947 | 1 | 0.105263 | false | 0.046053 | 0.098684 | 0.013158 | 0.243421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
0f7067c3d7a5792f5be66297bfcace6f1afe8681 | 82 | py | Python | docx2txt/__init__.py | ankushshah89/python-docx2text | c94663234d2882aa75932f9c9973eb5a804df13b | [
"MIT"
] | 369 | 2015-10-29T08:59:07.000Z | 2022-03-21T11:02:19.000Z | docx2txt/__init__.py | ankushshah89/python-docx2text | c94663234d2882aa75932f9c9973eb5a804df13b | [
"MIT"
] | 34 | 2015-11-04T19:06:22.000Z | 2021-08-24T16:07:37.000Z | docx2txt/__init__.py | ankushshah89/python-docx2text | c94663234d2882aa75932f9c9973eb5a804df13b | [
"MIT"
] | 87 | 2015-11-12T20:39:44.000Z | 2022-02-12T21:41:03.000Z | from .docx2txt import process
from .docx2txt import process_args
VERSION = '0.8'
| 16.4 | 34 | 0.780488 | 12 | 82 | 5.25 | 0.666667 | 0.380952 | 0.571429 | 0.793651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 0.146341 | 82 | 4 | 35 | 20.5 | 0.842857 | 0 | 0 | 0 | 0 | 0 | 0.036585 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
7e13dce1a7b4c574cc719f7dbcc2185b76c4cb20 | 17,352 | py | Python | apps/superbonus/calculations.py | MiloshBogdanovic/Auri-Soft | ab9f1540f3a9c91463bfb965d7399779f97717c0 | [
"MIT"
] | null | null | null | apps/superbonus/calculations.py | MiloshBogdanovic/Auri-Soft | ab9f1540f3a9c91463bfb965d7399779f97717c0 | [
"MIT"
] | null | null | null | apps/superbonus/calculations.py | MiloshBogdanovic/Auri-Soft | ab9f1540f3a9c91463bfb965d7399779f97717c0 | [
"MIT"
] | null | null | null | from .models import *
from django.core.exceptions import ValidationError
from django.contrib import messages
from decimal import Decimal
def overall_calculation_villa(costs):
try:
excluding_vat = OverallInterCostsNOVat.objects.get(pk=costs.excluding_vat_id)
if costs.taxable_vat:
taxabl... | 59.834483 | 122 | 0.693811 | 2,106 | 17,352 | 5.206553 | 0.037987 | 0.080438 | 0.114911 | 0.083721 | 0.953671 | 0.94145 | 0.888372 | 0.888372 | 0.878796 | 0.878796 | 0 | 0.008698 | 0.244698 | 17,352 | 290 | 123 | 59.834483 | 0.827941 | 0 | 0 | 0.816 | 0 | 0 | 0.006915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012 | false | 0 | 0.016 | 0 | 0.076 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7e823081530edfced4083eb407969d82c1d1559a | 19,526 | py | Python | AutomationFramework/page_objects/interfaces/interfaces.py | sbarguil/Testing-framework | f3ef69f1c4f0aeafd02e222d846162c711783b15 | [
"Apache-2.0"
] | 1 | 2020-04-23T15:22:16.000Z | 2020-04-23T15:22:16.000Z | AutomationFramework/page_objects/interfaces/interfaces.py | sbarguil/Testing-framework | f3ef69f1c4f0aeafd02e222d846162c711783b15 | [
"Apache-2.0"
] | 44 | 2020-08-13T19:35:41.000Z | 2021-03-01T09:08:00.000Z | AutomationFramework/page_objects/interfaces/interfaces.py | sbarguil/Testing-framework | f3ef69f1c4f0aeafd02e222d846162c711783b15 | [
"Apache-2.0"
] | 6 | 2020-04-23T15:29:38.000Z | 2022-03-03T14:23:38.000Z | import xmltodict
from AutomationFramework.page_objects.base.base_page_object import BasePageObject
class Interfaces(BasePageObject):
variables_paths = {
'if_subif_description': [
{
'interface_name': 'interfaces/interface/name',
'index': 'interfaces/interface/sub... | 46.601432 | 161 | 0.573441 | 1,788 | 19,526 | 6.007271 | 0.069351 | 0.201657 | 0.085653 | 0.113211 | 0.858579 | 0.817894 | 0.768364 | 0.737548 | 0.709897 | 0.681221 | 0 | 0.001312 | 0.297552 | 19,526 | 418 | 162 | 46.712919 | 0.781788 | 0 | 0 | 0.477723 | 0 | 0.014851 | 0.47383 | 0.293301 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014851 | false | 0 | 0.004951 | 0 | 0.029703 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7ed03c6cc9317ca2813840905cca5fd99f09ff3a | 1,774 | py | Python | PullNames.py | CorySparks/TwitterBots | 5e30fbe1d23c5818e95a9a4201202144e87124a8 | [
"MIT"
] | 5 | 2017-12-03T11:53:20.000Z | 2022-01-08T22:23:34.000Z | PullNames.py | CorySparks/TwitterBots | 5e30fbe1d23c5818e95a9a4201202144e87124a8 | [
"MIT"
] | null | null | null | PullNames.py | CorySparks/TwitterBots | 5e30fbe1d23c5818e95a9a4201202144e87124a8 | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup
while True:
def GirlNames():
print "Working"
# Collect first page of boy name list
page = requests.get("http://www.babywonderland.co.uk/baby-names/girls-names/girls-a-z-traditional.html")
# Create a BeautifulSoup object
soup = B... | 32.254545 | 112 | 0.588501 | 224 | 1,774 | 4.638393 | 0.334821 | 0.030799 | 0.036574 | 0.046198 | 0.829644 | 0.829644 | 0.829644 | 0.829644 | 0.829644 | 0.829644 | 0 | 0.005682 | 0.305524 | 1,774 | 54 | 113 | 32.851852 | 0.837662 | 0.180947 | 0 | 0.666667 | 0 | 0.055556 | 0.256925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.222222 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7d1acb1e8a82de5afddc218ee1db14b31828aec4 | 7,775 | py | Python | pyQPanda/example/test_circuit_draw.py | QianJianhua1/QPanda-2 | a13c7b733031b1d0007dceaf1dae6ad447bb969c | [
"Apache-2.0"
] | 631 | 2019-01-21T01:33:38.000Z | 2022-03-31T07:33:04.000Z | pyQPanda/example/test_circuit_draw.py | QianJianhua1/QPanda-2 | a13c7b733031b1d0007dceaf1dae6ad447bb969c | [
"Apache-2.0"
] | 24 | 2019-02-01T10:12:45.000Z | 2021-12-02T01:49:57.000Z | pyQPanda/example/test_circuit_draw.py | QianJianhua1/QPanda-2 | a13c7b733031b1d0007dceaf1dae6ad447bb969c | [
"Apache-2.0"
] | 80 | 2019-01-21T03:04:20.000Z | 2022-03-29T15:38:45.000Z | import pyqpanda.pyQPanda as pq
from pyqpanda.Visualization.circuit_draw import *
import numpy as np
import math
import networkx as nx
import matplotlib.pyplot as plt
import unittest
class InitQMachine:
def __init__(self, machineType=pq.QMachineType.CPU):
self.m_machine = pq.init_quantum_machine(machineTyp... | 59.807692 | 160 | 0.530675 | 1,712 | 7,775 | 2.387266 | 0.070678 | 0.328848 | 0.208466 | 0.049914 | 0.784928 | 0.776119 | 0.75263 | 0.75263 | 0.747737 | 0.747737 | 0 | 0.086112 | 0.178521 | 7,775 | 129 | 161 | 60.271318 | 0.553781 | 0.700322 | 0 | 0.051282 | 0 | 0 | 0.031111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0 | 0.230769 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7d2d81b868d78570f829b82f7e1a603d8f307c26 | 25,424 | py | Python | causallearn/score/LocalScoreFunction.py | softsys4ai/causal-config-labyrinth | 4f50f9ff15429b0ac6ad0a99fbe4cfdd17e360fc | [
"MIT"
] | 15 | 2022-01-20T12:35:35.000Z | 2022-03-24T16:25:24.000Z | causallearn/score/LocalScoreFunction.py | softsys4ai/unicorn | 4f50f9ff15429b0ac6ad0a99fbe4cfdd17e360fc | [
"MIT"
] | 14 | 2022-01-23T00:20:00.000Z | 2022-02-22T01:40:43.000Z | causallearn/score/LocalScoreFunction.py | softsys4ai/causal-config-labyrinth | 4f50f9ff15429b0ac6ad0a99fbe4cfdd17e360fc | [
"MIT"
] | 1 | 2022-02-23T08:59:24.000Z | 2022-02-23T08:59:24.000Z | import math
import pandas as pd
from causallearn.utils.ScoreUtils import *
def local_score_BIC(Data, i, PAi, parameters=None):
'''
Calculate the *negative* local score with BIC for the linear Gaussian continue data case
Parameters
----------
Data: ndarray, (sample, features)
i: current inde... | 40.484076 | 115 | 0.48411 | 3,883 | 25,424 | 3.07726 | 0.05949 | 0.02745 | 0.020085 | 0.01406 | 0.876893 | 0.854046 | 0.844255 | 0.829693 | 0.816303 | 0.809859 | 0 | 0.042765 | 0.352502 | 25,424 | 627 | 116 | 40.548644 | 0.683088 | 0.16158 | 0 | 0.826923 | 0 | 0 | 0.013142 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014423 | false | 0 | 0.007212 | 0 | 0.036058 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ada6f6bc8f31f3064b8d889f66103c621edb2090 | 2,019 | py | Python | tests/addons/criterions/test_ts_triplet_loss.py | khirotaka/enchanter | 71faa51f998da5c8d9185a979a4f5849c9b5f9e6 | [
"Apache-2.0"
] | 8 | 2020-04-18T03:09:19.000Z | 2021-05-05T17:57:27.000Z | tests/addons/criterions/test_ts_triplet_loss.py | khirotaka/enchanter | 71faa51f998da5c8d9185a979a4f5849c9b5f9e6 | [
"Apache-2.0"
] | 107 | 2020-02-12T11:35:06.000Z | 2022-03-24T20:49:43.000Z | tests/addons/criterions/test_ts_triplet_loss.py | khirotaka/enchanter | 71faa51f998da5c8d9185a979a4f5849c9b5f9e6 | [
"Apache-2.0"
] | 2 | 2020-02-12T12:23:51.000Z | 2021-07-19T11:41:04.000Z | import torch
import enchanter.addons.criterions as C
import enchanter
def test_generate_sample_indices_1():
n_rand_samples: int = 10
batch_size: int = 32
length: int = 100
begin_batches, len_anchor, end_pos, len_pos_neg, begin_neg_samples = C.generate_sample_indices(
n_rand_samples, batch_siz... | 24.035714 | 103 | 0.67162 | 284 | 2,019 | 4.373239 | 0.15493 | 0.057971 | 0.169082 | 0.084541 | 0.842995 | 0.797907 | 0.78905 | 0.78905 | 0.78905 | 0.78905 | 0 | 0.019359 | 0.258049 | 2,019 | 83 | 104 | 24.325301 | 0.809746 | 0 | 0 | 0.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.079365 | false | 0.190476 | 0.047619 | 0 | 0.126984 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
70e6e506219e02474fd560b66dca20f49f176cea | 63,377 | py | Python | machine-learning-gists/dd4b5aa1e205d8984595b20eed060aec214c74d0/snippet.py | qwbjtu2015/dockerizeme | 9039beacf281ea7058d721784ed4eff054453b09 | [
"Apache-2.0"
] | null | null | null | machine-learning-gists/dd4b5aa1e205d8984595b20eed060aec214c74d0/snippet.py | qwbjtu2015/dockerizeme | 9039beacf281ea7058d721784ed4eff054453b09 | [
"Apache-2.0"
] | null | null | null | machine-learning-gists/dd4b5aa1e205d8984595b20eed060aec214c74d0/snippet.py | qwbjtu2015/dockerizeme | 9039beacf281ea7058d721784ed4eff054453b09 | [
"Apache-2.0"
] | null | null | null | {
"metadata": {
"name": "Random Forest Variable Importance"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "code",
"collapsed": false,
"input": [
"import pandas as pd\n",
"import numpy as np\n",
"import pylab as pl\n",
"import ra... | 106.695286 | 22,978 | 0.757357 | 4,014 | 63,377 | 11.940708 | 0.465371 | 0.011579 | 0.016691 | 0.008888 | 0.070979 | 0.062487 | 0.055164 | 0.049614 | 0.046067 | 0.041957 | 0 | 0.159945 | 0.143128 | 63,377 | 594 | 22,979 | 106.695286 | 0.722646 | 0 | 0 | 0.454545 | 0 | 0.010101 | 0.884755 | 0.682193 | 0 | 1 | 0.000347 | 0 | 0 | 1 | 0 | true | 0 | 0.035354 | 0 | 0.035354 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
cb4f633acb40deac6a0408add28957990f49aa42 | 123,611 | py | Python | 030_ClassificationWebsite/apps/words/titles.py | cogeorg/RegulatoryComplexity_Public | c9578ce012ba1e84dbebb029e30d98eff3430fd6 | [
"Apache-2.0"
] | null | null | null | 030_ClassificationWebsite/apps/words/titles.py | cogeorg/RegulatoryComplexity_Public | c9578ce012ba1e84dbebb029e30d98eff3430fd6 | [
"Apache-2.0"
] | null | null | null | 030_ClassificationWebsite/apps/words/titles.py | cogeorg/RegulatoryComplexity_Public | c9578ce012ba1e84dbebb029e30d98eff3430fd6 | [
"Apache-2.0"
] | null | null | null | from flask import request, jsonify, redirect, url_for,flash, render_template, request, session, abort
from views import app
@app.route('/title_0_Y')
def title_0_Y():
return render_template('PreClass/title_0.html')
@app.route('/title_1_Y')
def title_1_Y():
return render_template('PreClass/title_1.html')
@app... | 24.628611 | 102 | 0.736043 | 18,828 | 123,611 | 4.499203 | 0.034523 | 0.207411 | 0.192443 | 0.251455 | 0.830719 | 0.623414 | 0.408707 | 0 | 0 | 0 | 0 | 0.095682 | 0.101577 | 123,611 | 5,018 | 103 | 24.633519 | 0.667102 | 0 | 0 | 0 | 0 | 0 | 0.341361 | 0.231549 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333156 | true | 0 | 0.000531 | 0.333156 | 0.666844 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 8 |
cb940c96c38d2cfdd8fa3f8ee13600147911a45c | 186 | py | Python | utils/naming.py | iDoka/rgen | cd89427f0699aeca9738cc0be7444bb43959adf9 | [
"Apache-2.0"
] | 7 | 2016-06-28T06:30:12.000Z | 2022-01-24T03:29:16.000Z | utils/naming.py | iDoka/rgen | cd89427f0699aeca9738cc0be7444bb43959adf9 | [
"Apache-2.0"
] | 2 | 2017-03-24T09:43:57.000Z | 2017-06-02T12:40:25.000Z | utils/naming.py | iDoka/rgen | cd89427f0699aeca9738cc0be7444bb43959adf9 | [
"Apache-2.0"
] | 2 | 2017-05-12T07:12:05.000Z | 2021-06-27T10:54:59.000Z | def get_register_class(register):
return register.name.lower() + "_reg"
def get_register_inst(register):
return register.name
def get_field_inst(field):
return field.name
| 18.6 | 41 | 0.747312 | 26 | 186 | 5.076923 | 0.384615 | 0.136364 | 0.212121 | 0.393939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155914 | 186 | 9 | 42 | 20.666667 | 0.840764 | 0 | 0 | 0 | 0 | 0 | 0.021505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
cba4434ceddc754afaf4e0fa066da1a33529136a | 26,116 | py | Python | tests/test_user_routes.py | Bilb/session-pysogs | eb6f13e26d16f0119e87b41ffb86813c3c177ab9 | [
"MIT"
] | 1 | 2022-03-08T06:34:34.000Z | 2022-03-08T06:34:34.000Z | tests/test_user_routes.py | Bilb/session-pysogs | eb6f13e26d16f0119e87b41ffb86813c3c177ab9 | [
"MIT"
] | null | null | null | tests/test_user_routes.py | Bilb/session-pysogs | eb6f13e26d16f0119e87b41ffb86813c3c177ab9 | [
"MIT"
] | null | null | null | import pytest
from sogs import db, utils
import werkzeug.exceptions as wexc
from request import sogs_get, sogs_post
from util import pad64
import time
def test_global_mods(client, room, room2, user, user2, mod, admin, global_admin, global_mod):
assert not room2.check_moderator(user)
assert not room2.check_mo... | 37.415473 | 100 | 0.659289 | 3,679 | 26,116 | 4.478119 | 0.049198 | 0.061184 | 0.106222 | 0.091836 | 0.911684 | 0.89997 | 0.884674 | 0.86434 | 0.840425 | 0.799393 | 0 | 0.028952 | 0.197197 | 26,116 | 697 | 101 | 37.469154 | 0.756844 | 0.077347 | 0 | 0.744275 | 0 | 0 | 0.113245 | 0.034547 | 0 | 0 | 0 | 0 | 0.480916 | 1 | 0.015267 | false | 0 | 0.013359 | 0 | 0.030534 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
1de3f7b9f566b2f8919f9d3a12648b7fce55bdd2 | 76,277 | py | Python | cogs/utils.py | alexyy802/chad-the-discord-bot | c1d121fcfa278f5cd0fa0242c4b0c760d1eebb85 | [
"Unlicense",
"MIT"
] | 1 | 2021-12-20T16:15:20.000Z | 2021-12-20T16:15:20.000Z | cogs/utils.py | alexyy802/chad-the-discord-bot | c1d121fcfa278f5cd0fa0242c4b0c760d1eebb85 | [
"Unlicense",
"MIT"
] | 1 | 2021-10-04T16:00:35.000Z | 2021-10-04T16:00:35.000Z | cogs/utils.py | alexyy802/chad-the-discord-bot | c1d121fcfa278f5cd0fa0242c4b0c760d1eebb85 | [
"Unlicense",
"MIT"
] | 2 | 2021-10-04T16:16:44.000Z | 2021-11-15T19:19:07.000Z | import discord
import nextcord
import asyncio
from nextcord.ext import commands
import calendar
import time
from tzlocal import get_localzone
from datetime import datetime, timedelta
import aiohttp
from tinydb import TinyDB, Query
from discord_slash import cog_ext, SlashContext
from discord_slash.utils.manag... | 53.906007 | 740 | 0.532598 | 8,303 | 76,277 | 4.831386 | 0.082982 | 0.027122 | 0.05564 | 0.050854 | 0.865935 | 0.839536 | 0.83141 | 0.813436 | 0.795089 | 0.772803 | 0 | 0.009693 | 0.36433 | 76,277 | 1,414 | 741 | 53.94413 | 0.817642 | 0 | 0 | 0.752278 | 0 | 0.025684 | 0.24332 | 0.017859 | 0 | 0 | 0.000219 | 0 | 0 | 1 | 0.004971 | false | 0.001657 | 0.009942 | 0.003314 | 0.048882 | 0.001657 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1df1b07ab4c9ed45578e63812a878115a28688b0 | 25,236 | py | Python | post_optimization_studies/mad_analyses/ma100MeV_L1pt8-2pt4TeV_deta2/Output/Histos/MadAnalysis5job_0/selection_12.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null | post_optimization_studies/mad_analyses/ma100MeV_L1pt8-2pt4TeV_deta2/Output/Histos/MadAnalysis5job_0/selection_12.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null | post_optimization_studies/mad_analyses/ma100MeV_L1pt8-2pt4TeV_deta2/Output/Histos/MadAnalysis5job_0/selection_12.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null | def selection_12():
# Library import
import numpy
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
# Library version
matplotlib_version = matplotlib.__version__
numpy_version = numpy.__version__
# Histo binning
xBinning = numpy.li... | 115.761468 | 1,121 | 0.724877 | 5,544 | 25,236 | 3.130592 | 0.11075 | 0.275294 | 0.404125 | 0.52731 | 0.601521 | 0.597142 | 0.59599 | 0.582047 | 0.572021 | 0.569601 | 0 | 0.399889 | 0.074378 | 25,236 | 217 | 1,122 | 116.294931 | 0.343123 | 0.06043 | 0 | 0.171875 | 0 | 0.007813 | 0.049045 | 0.008576 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007813 | false | 0 | 0.03125 | 0 | 0.039063 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3801d8fe2bd03644728e88a0292da980d4a98cc1 | 4,486 | py | Python | tests/test_linux_syslog.py | nkaleiya/splunk-connect-for-syslog | 16dc25c030c0017fdcd7f6b615ae6f755cd97833 | [
"BSD-2-Clause",
"CC0-1.0"
] | null | null | null | tests/test_linux_syslog.py | nkaleiya/splunk-connect-for-syslog | 16dc25c030c0017fdcd7f6b615ae6f755cd97833 | [
"BSD-2-Clause",
"CC0-1.0"
] | 1 | 2020-06-16T01:11:23.000Z | 2020-06-16T01:11:23.000Z | tests/test_linux_syslog.py | nkaleiya/splunk-connect-for-syslog | 16dc25c030c0017fdcd7f6b615ae6f755cd97833 | [
"BSD-2-Clause",
"CC0-1.0"
] | null | null | null | # Copyright 2019 Splunk, Inc.
#
# Use of this source code is governed by a BSD-2-clause-style
# license that can be found in the LICENSE-BSD2 file or at
# https://opensource.org/licenses/BSD-2-Clause
import datetime
import random
import pytz
from jinja2 import Environment, environment
from .sendmessage import *
from ... | 36.770492 | 122 | 0.681676 | 589 | 4,486 | 5.039049 | 0.188455 | 0.075472 | 0.045822 | 0.067385 | 0.884771 | 0.869272 | 0.869272 | 0.869272 | 0.869272 | 0.869272 | 0 | 0.02942 | 0.158939 | 4,486 | 121 | 123 | 37.07438 | 0.757222 | 0.07646 | 0 | 0.763889 | 0 | 0.055556 | 0.166989 | 0.021297 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.055556 | false | 0 | 0.097222 | 0 | 0.152778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
382e79f328dd4ff140659ef884d11fd77609f27a | 2,202 | py | Python | basic_op_show_img px by px.py | kostaskaragiorgos/Python-Opencv-Learning-Path | dcb861433a248ca9e2ac60d60a2f464b17c1541e | [
"MIT"
] | null | null | null | basic_op_show_img px by px.py | kostaskaragiorgos/Python-Opencv-Learning-Path | dcb861433a248ca9e2ac60d60a2f464b17c1541e | [
"MIT"
] | null | null | null | basic_op_show_img px by px.py | kostaskaragiorgos/Python-Opencv-Learning-Path | dcb861433a248ca9e2ac60d60a2f464b17c1541e | [
"MIT"
] | null | null | null | import cv2
import numpy as np
img = np.array([
[
[255,0,0],
[255,0,0],
[255,0,0],
[255,0,0],
],
[
[255,0,0],
[255,0,0],
[255,0,0],
[255,0,0],
... | 26.214286 | 70 | 0.167121 | 188 | 2,202 | 1.957447 | 0.074468 | 0.608696 | 0.76087 | 1.195652 | 0.76087 | 0.76087 | 0.76087 | 0.76087 | 0.76087 | 0.76087 | 0 | 0.402817 | 0.677566 | 2,202 | 84 | 71 | 26.214286 | 0.115493 | 0 | 0 | 0.833333 | 0 | 0 | 0.001887 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02381 | 0 | 0.02381 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 13 |
69954d646e6d10135766d4670eaf0914d9c70e50 | 16 | py | Python | tests/syntax/unicode_fraction2.py | hoefling/friendly-traceback | 26acac903521c5f0e5cf837d32bda750918d4afb | [
"MIT"
] | 45 | 2021-07-06T03:30:20.000Z | 2022-03-16T17:30:58.000Z | tests/syntax/unicode_fraction2.py | hoefling/friendly-traceback | 26acac903521c5f0e5cf837d32bda750918d4afb | [
"MIT"
] | 110 | 2021-06-28T11:48:46.000Z | 2022-03-25T20:41:25.000Z | tests/syntax/unicode_fraction2.py | hoefling/friendly-traceback | 26acac903521c5f0e5cf837d32bda750918d4afb | [
"MIT"
] | 4 | 2021-07-05T20:56:39.000Z | 2021-11-11T20:24:34.000Z | a = 1½ # 1 1/2
| 8 | 15 | 0.375 | 7 | 16 | 1.142857 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 0.4375 | 16 | 1 | 16 | 16 | 0.111111 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
69a4137c98c5f0e9f213531efb429fb668f1b0d4 | 5,493 | py | Python | dialRL/utils/reward_functions.py | PawelMlyniec/Dail-a-ride | 2b8954f9041b7635bcf8fa44e9129f2cd391f457 | [
"MIT"
] | 1 | 2020-12-24T22:08:52.000Z | 2020-12-24T22:08:52.000Z | dialRL/utils/reward_functions.py | Thibaud-Ardoin/Dial-a-Ride | 7d9b3cd904d3194dccad31fec2533e2cf58cad0c | [
"MIT"
] | null | null | null | dialRL/utils/reward_functions.py | Thibaud-Ardoin/Dial-a-Ride | 7d9b3cd904d3194dccad31fec2533e2cf58cad0c | [
"MIT"
] | null | null | null |
class BaseReward():
def __init__(self):
pass
def compute(self, distance, done):
return 1
def __repr__(self):
return self.__str__()
def __str__(self):
return "(Reward function D->X)"
class ConstantReward(BaseReward):
def __init__(self):
""" This functio... | 28.169231 | 87 | 0.577098 | 630 | 5,493 | 4.801587 | 0.130159 | 0.03438 | 0.067438 | 0.083306 | 0.745455 | 0.732562 | 0.710083 | 0.700165 | 0.686612 | 0.686612 | 0 | 0.010776 | 0.341161 | 5,493 | 194 | 88 | 28.314433 | 0.82509 | 0.225742 | 0 | 0.733333 | 0 | 0 | 0.005594 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216667 | false | 0.008333 | 0 | 0.025 | 0.591667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
69b8cacf0e7644bdfdd4349a3804ff08a11ed2f3 | 177 | py | Python | src/sample/topology_injection/optimizer.py | aolarchive/Hydro | 8580aebc30694156c436e5ba7470d3fcbb46896b | [
"MIT"
] | 42 | 2015-03-04T09:05:00.000Z | 2018-12-01T15:13:48.000Z | src/sample/topology_injection/optimizer.py | aolarchive/Hydro | 8580aebc30694156c436e5ba7470d3fcbb46896b | [
"MIT"
] | 5 | 2015-05-11T08:18:12.000Z | 2016-03-22T19:11:01.000Z | src/sample/topology_injection/optimizer.py | Convertro/Hydro | 8580aebc30694156c436e5ba7470d3fcbb46896b | [
"MIT"
] | 4 | 2015-03-05T09:07:27.000Z | 2018-12-01T15:13:49.000Z | __author__ = 'moshebasanchig'
from hydro.base_classes import PlanObject
from hydro.base_classes import OptimizerBase
class TopologyInjectionOptimizer(OptimizerBase):
pass | 22.125 | 48 | 0.841808 | 18 | 177 | 7.944444 | 0.666667 | 0.125874 | 0.181818 | 0.27972 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112994 | 177 | 8 | 49 | 22.125 | 0.910828 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.4 | 0 | 0.6 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
0e0d423bbf55cad23e0c77f571788a760781a614 | 64,019 | py | Python | isl-0.14.1/interface/isl.py | libertine-linux-packages/isl | 8e4b7f9d34451f46816a32f348ad0c00198a53f1 | [
"MIT"
] | null | null | null | isl-0.14.1/interface/isl.py | libertine-linux-packages/isl | 8e4b7f9d34451f46816a32f348ad0c00198a53f1 | [
"MIT"
] | null | null | null | isl-0.14.1/interface/isl.py | libertine-linux-packages/isl | 8e4b7f9d34451f46816a32f348ad0c00198a53f1 | [
"MIT"
] | null | null | null | from ctypes import *
isl = cdll.LoadLibrary("libisl.so")
libc = cdll.LoadLibrary("libc.so.6")
class Error(Exception):
pass
class Context:
defaultInstance = None
def __init__(self):
ptr = isl.isl_ctx_alloc()
self.ptr = ptr
def __del__(self):
isl.isl_ctx_free(self)
def fr... | 34.418817 | 116 | 0.583093 | 8,943 | 64,019 | 3.806329 | 0.012188 | 0.083901 | 0.047474 | 0.036222 | 0.98302 | 0.974148 | 0.96413 | 0.945329 | 0.884313 | 0.81792 | 0 | 0.030327 | 0.328871 | 64,019 | 1,859 | 117 | 34.437332 | 0.761946 | 0 | 0 | 0.779837 | 0 | 0 | 0.004218 | 0.000844 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.000545 | 0.002725 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
385ef1f51359806a12c0fac198f18d79bf878763 | 4,863 | py | Python | tests/test_managedblockchain/test_managedblockchain_networks.py | orenmazor/moto | 4778377e8ecaf729d26602a2c5202b72c1438503 | [
"Apache-2.0"
] | null | null | null | tests/test_managedblockchain/test_managedblockchain_networks.py | orenmazor/moto | 4778377e8ecaf729d26602a2c5202b72c1438503 | [
"Apache-2.0"
] | 4 | 2017-09-30T07:52:52.000Z | 2021-12-13T06:56:55.000Z | tests/test_managedblockchain/test_managedblockchain_networks.py | orenmazor/moto | 4778377e8ecaf729d26602a2c5202b72c1438503 | [
"Apache-2.0"
] | 2 | 2021-11-24T08:05:43.000Z | 2021-11-25T16:18:48.000Z | from __future__ import unicode_literals
import boto3
import pytest
import sure # noqa
from botocore.exceptions import ClientError
from moto import mock_managedblockchain
from . import helpers
@mock_managedblockchain
def test_create_network():
conn = boto3.client("managedblockchain", region_name="us-east-1")
... | 34.985612 | 83 | 0.702241 | 495 | 4,863 | 6.743434 | 0.189899 | 0.058718 | 0.04314 | 0.05033 | 0.848412 | 0.848412 | 0.775015 | 0.775015 | 0.775015 | 0.748053 | 0 | 0.019153 | 0.184043 | 4,863 | 138 | 84 | 35.23913 | 0.822077 | 0.016451 | 0 | 0.706422 | 0 | 0 | 0.192171 | 0.016956 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055046 | false | 0 | 0.06422 | 0 | 0.119266 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
387e185d2c68beef49c2e337421ecbac42da30c9 | 9,820 | py | Python | test/test_utils.py | cthoyt/OpenBioLink | c5f85b99f9104f70493136c343e4554261e990a5 | [
"MIT"
] | null | null | null | test/test_utils.py | cthoyt/OpenBioLink | c5f85b99f9104f70493136c343e4554261e990a5 | [
"MIT"
] | null | null | null | test/test_utils.py | cthoyt/OpenBioLink | c5f85b99f9104f70493136c343e4554261e990a5 | [
"MIT"
] | null | null | null | import os
import unittest
import src.openbiolink.utils as utils
import pandas
import numpy as np
from src.openbiolink.edgeType import EdgeType
class TestUtils(unittest.TestCase):
# ----- get_leaf_subclasses -------
def test_get_leaf_subclasses_no_subclasses(self):
# given
class A:
... | 33.515358 | 142 | 0.541039 | 1,138 | 9,820 | 4.439367 | 0.118629 | 0.061362 | 0.085511 | 0.045131 | 0.867379 | 0.787015 | 0.761679 | 0.748416 | 0.740697 | 0.732779 | 0 | 0.026988 | 0.301935 | 9,820 | 293 | 143 | 33.515358 | 0.709993 | 0.043279 | 0 | 0.658031 | 0 | 0 | 0.073249 | 0.002249 | 0 | 0 | 0 | 0 | 0.07772 | 1 | 0.11399 | false | 0.051813 | 0.031088 | 0 | 0.202073 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
38a6abce8e0a2754c1369a8db802f34df83b8520 | 880,823 | py | Python | objTonode/neo_classes.py | wkid-neu/Schema | 4854720a15894dd814691a55e03329ecbbb6f558 | [
"MIT"
] | 3 | 2021-11-06T12:29:05.000Z | 2022-03-22T12:48:55.000Z | objTonode/neo_classes.py | DylanNEU/Schema | 4854720a15894dd814691a55e03329ecbbb6f558 | [
"MIT"
] | null | null | null | objTonode/neo_classes.py | DylanNEU/Schema | 4854720a15894dd814691a55e03329ecbbb6f558 | [
"MIT"
] | 1 | 2021-11-06T12:29:12.000Z | 2021-11-06T12:29:12.000Z |
from django_neomodel import DjangoNode
from neomodel import (config, StructuredNode, Property, StringProperty, IntegerProperty,
UniqueIdProperty, BooleanProperty, DateProperty, DateTimeProperty,
ArrayProperty, JSONProperty, FloatProperty, RelationshipTo, RelationshipFrom... | 199.733107 | 9,732 | 0.744394 | 57,438 | 880,823 | 11.373185 | 0.03865 | 0.033341 | 0.036984 | 0.013557 | 0.937713 | 0.933204 | 0.925311 | 0.916082 | 0.913493 | 0.910586 | 0 | 0.000069 | 0.076565 | 880,823 | 4,409 | 9,733 | 199.778408 | 0.803062 | 0 | 0 | 0.442883 | 0 | 0 | 0.67952 | 0.070557 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.174977 | 0.00136 | 0 | 0.824569 | 0.001813 | 0 | 0 | 1 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 12 |
38e0bd15aca8b48224e4dcb0e7b2165f2f90dee8 | 92 | py | Python | covid19uncle/__init__.py | MartinThoma/covid19 | fe460b162117d9fd44594f07f8967f2690188cb9 | [
"MIT"
] | 12 | 2020-03-22T08:47:31.000Z | 2021-04-20T01:55:58.000Z | covid19uncle/__init__.py | MartinThoma/covid19 | fe460b162117d9fd44594f07f8967f2690188cb9 | [
"MIT"
] | 1 | 2020-03-30T07:23:10.000Z | 2020-04-01T08:40:16.000Z | covid19uncle/__init__.py | MartinThoma/covid19 | fe460b162117d9fd44594f07f8967f2690188cb9 | [
"MIT"
] | 14 | 2020-03-21T23:19:13.000Z | 2020-12-22T06:21:50.000Z | from covid19uncle.covid19 import GlobalCovid19
from covid19uncle.covid19 import ThaiCovid19 | 46 | 47 | 0.891304 | 10 | 92 | 8.2 | 0.6 | 0.390244 | 0.560976 | 0.707317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.086957 | 92 | 2 | 48 | 46 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
2a1fac5f4b767b9ae2d6bf66a2fb91e5660f824b | 12,234 | py | Python | tests/test_unit_image.py | stephengaito/cekit | d6d254af6bb6820e5c725680bd77b6c195636cf6 | [
"MIT"
] | null | null | null | tests/test_unit_image.py | stephengaito/cekit | d6d254af6bb6820e5c725680bd77b6c195636cf6 | [
"MIT"
] | null | null | null | tests/test_unit_image.py | stephengaito/cekit | d6d254af6bb6820e5c725680bd77b6c195636cf6 | [
"MIT"
] | null | null | null | import logging
import pytest
import yaml
from collections import OrderedDict
from cekit.descriptor import Image, Overrides, Module
from cekit.generator.base import ModuleRegistry
from cekit.tools import Map
from cekit.errors import CekitError
def test_image_overrides_with_content_sets_none():
image = Image(yaml... | 31.209184 | 213 | 0.631355 | 1,537 | 12,234 | 4.813923 | 0.098243 | 0.062171 | 0.068523 | 0.064333 | 0.870388 | 0.854169 | 0.81903 | 0.802406 | 0.763752 | 0.746858 | 0 | 0.012189 | 0.228789 | 12,234 | 391 | 214 | 31.289003 | 0.772019 | 0.003351 | 0 | 0.789831 | 0 | 0.013559 | 0.379706 | 0.011484 | 0 | 0 | 0 | 0 | 0.138983 | 1 | 0.047458 | false | 0 | 0.027119 | 0 | 0.074576 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2a2eeda2d0f0a7e6fc8f0c055eae0c4e652a64b9 | 53,627 | py | Python | data_generation/shapeset/shapeset2_1cspo_2_3.5000.test_code/grammar_v3.py | j3bian/Image-Background-Compression | 62937707e3d1e503b3b567a6fd695cec5f80751a | [
"Apache-2.0"
] | 3 | 2018-04-18T02:13:41.000Z | 2019-12-01T12:45:24.000Z | data_generation/shapeset/shapeset2_1cspo_2_3.5000.test_code/grammar_v3.py | j3bian/Image-Background-Compression | 62937707e3d1e503b3b567a6fd695cec5f80751a | [
"Apache-2.0"
] | null | null | null | data_generation/shapeset/shapeset2_1cspo_2_3.5000.test_code/grammar_v3.py | j3bian/Image-Background-Compression | 62937707e3d1e503b3b567a6fd695cec5f80751a | [
"Apache-2.0"
] | 1 | 2018-10-21T09:30:13.000Z | 2018-10-21T09:30:13.000Z | #!/usr/local/bin/python
# includes built-in modules
import sys
import os
import shutil
import random
from os.path import *
from math import *
# all templates
from templates_v3 import *
#++++++++
from problem import *
# related changes: FID_input changed to be a scene
# reason: we don't want to have to read fro... | 39.172389 | 235 | 0.669719 | 7,178 | 53,627 | 4.734884 | 0.044302 | 0.067084 | 0.033542 | 0.034837 | 0.941948 | 0.935211 | 0.922529 | 0.915732 | 0.912584 | 0.896872 | 0 | 0.019056 | 0.172152 | 53,627 | 1,368 | 236 | 39.201023 | 0.746503 | 0.095996 | 0 | 0.860691 | 0 | 0 | 0.106207 | 0.002723 | 0.00216 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.008639 | null | null | 0.12419 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
2a3ca988689aa03e27bd6dabbeeb836943aaf042 | 26,757 | py | Python | bifacialvf/tests/__init__.py | shirubana/bifacialvf | 7cd1c4c658bb7a68f0815b2bd1a6d5c492ca7300 | [
"BSD-3-Clause"
] | 16 | 2018-01-17T06:03:23.000Z | 2021-11-08T18:54:20.000Z | bifacialvf/tests/__init__.py | shirubana/bifacialvf | 7cd1c4c658bb7a68f0815b2bd1a6d5c492ca7300 | [
"BSD-3-Clause"
] | 36 | 2018-03-16T15:17:58.000Z | 2022-03-18T17:54:49.000Z | bifacialvf/tests/__init__.py | shirubana/bifacialvf | 7cd1c4c658bb7a68f0815b2bd1a6d5c492ca7300 | [
"BSD-3-Clause"
] | 15 | 2018-01-11T09:11:13.000Z | 2022-03-21T11:37:42.000Z | import numpy as np
SKY_BETA160_C05_D1 = np.array(
[[0.39344519, 0.39292569, 0.39240611, 0.39188644, 0.3913667 ,
0.39084688, 0.39032699, 0.38980703, 0.389287 , 0.38876691,
0.38824676, 0.38772654, 0.38720627, 0.38668595, 0.38616558,
0.38564515, 0.38512468, 0.38460417, 0.38408362, 0.38356304,
... | 63.555819 | 67 | 0.671376 | 4,064 | 26,757 | 4.412894 | 0.249262 | 0.003903 | 0.004461 | 0.003346 | 0.993866 | 0.98751 | 0.98751 | 0.98751 | 0.98751 | 0.98751 | 0 | 0.805251 | 0.175767 | 26,757 | 421 | 68 | 63.555819 | 0.007935 | 0 | 0 | 0.875912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.002433 | 0 | 0.002433 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
2a536125aaded0e0e1f64896ac0a1a6b2293f6b2 | 3,649 | py | Python | test/comments/typing1.py | kylebarron/MagicPython | da6fa0793e2c85d3bf7709ff1d4f65ccf468db11 | [
"MIT"
] | 1,482 | 2015-10-16T21:59:32.000Z | 2022-03-30T11:44:40.000Z | test/comments/typing1.py | kylebarron/MagicPython | da6fa0793e2c85d3bf7709ff1d4f65ccf468db11 | [
"MIT"
] | 226 | 2015-10-15T15:53:44.000Z | 2022-03-25T03:08:27.000Z | test/comments/typing1.py | kylebarron/MagicPython | da6fa0793e2c85d3bf7709ff1d4f65ccf468db11 | [
"MIT"
] | 129 | 2015-10-20T02:41:49.000Z | 2022-03-22T01:44:36.000Z | # type: ignore # test
# type: ignore
# type:ignore
#type:ignore
# type: ignore 1
# type: 1 ignore
# type : ignore
##type: ignore
#.type: ignore
# : comment.line.number-sign.python, meta.typehint.comment.python, source.python
type: : comment.line.number-sign.python, comment.typehint.directive.no... | 79.326087 | 136 | 0.734996 | 449 | 3,649 | 5.973274 | 0.037862 | 0.135347 | 0.209172 | 0.258389 | 0.991051 | 0.991051 | 0.98956 | 0.962714 | 0.962714 | 0.962714 | 0 | 0.001278 | 0.141957 | 3,649 | 45 | 137 | 81.088889 | 0.855318 | 0 | 0 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
2a6026e1731b96eac7a98635295459c442131a46 | 1,023 | py | Python | pybithumb/__init__.py | baobabtr33/pybithumb | 74fac759502f20c653c9916d831509f1f384e164 | [
"MIT"
] | null | null | null | pybithumb/__init__.py | baobabtr33/pybithumb | 74fac759502f20c653c9916d831509f1f384e164 | [
"MIT"
] | null | null | null | pybithumb/__init__.py | baobabtr33/pybithumb | 74fac759502f20c653c9916d831509f1f384e164 | [
"MIT"
] | null | null | null | from pybithumb.client import Bithumb
from .history import *
def get_ohlc(order_currency, payment_currency="KRW"):
return Bithumb.get_ohlc(order_currency, payment_currency)
def get_tickers(payment_currency="KRW"):
return Bithumb.get_tickers(payment_currency)
def get_market_detail(order_currency, payment_cu... | 35.275862 | 86 | 0.821114 | 133 | 1,023 | 5.954887 | 0.210526 | 0.265152 | 0.30303 | 0.424242 | 0.799242 | 0.795455 | 0.5 | 0.17803 | 0 | 0 | 0 | 0.005382 | 0.091887 | 1,023 | 29 | 86 | 35.275862 | 0.847147 | 0 | 0 | 0 | 0 | 0 | 0.023438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4375 | false | 0 | 0.125 | 0.4375 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
2a64675fbf86a732c82186347ac1b8f1c8ed9848 | 66,428 | py | Python | functions/blip_functions.py | mtasa-typescript/mtasa-wiki-dump | edea1746850fb6c99d6155d1d7891e2cceb33a5c | [
"MIT"
] | null | null | null | functions/blip_functions.py | mtasa-typescript/mtasa-wiki-dump | edea1746850fb6c99d6155d1d7891e2cceb33a5c | [
"MIT"
] | 1 | 2021-02-24T21:50:18.000Z | 2021-02-24T21:50:18.000Z | functions/blip_functions.py | mtasa-typescript/mtasa-wiki-dump | edea1746850fb6c99d6155d1d7891e2cceb33a5c | [
"MIT"
] | null | null | null | # Autogenerated file. ANY CHANGES WILL BE OVERWRITTEN
from to_python.core.types import FunctionType, \
FunctionArgument, \
FunctionArgumentValues, \
FunctionReturnTypes, \
FunctionSignature, \
FunctionDoc, \
FunctionData, \
CompoundFunctionData
DUMP_PARTIAL = [
CompoundFunctionData(
... | 40.878769 | 279 | 0.314039 | 3,429 | 66,428 | 5.971129 | 0.057743 | 0.08967 | 0.091429 | 0.110476 | 0.989695 | 0.986178 | 0.97094 | 0.97094 | 0.97094 | 0.97094 | 0 | 0.008466 | 0.623035 | 66,428 | 1,624 | 280 | 40.903941 | 0.809193 | 0.000768 | 0 | 0.835006 | 1 | 0.017566 | 0.138757 | 0.007051 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.003764 | 0.000627 | 0 | 0.000627 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
2a6ae73bc2dc1f855595fdb6792a7f0d899eff63 | 23,511 | py | Python | crystalpy/examples/Si111_simple_xraylib_dabax_comparison.py | oasys-kit/crystalpy | 4852851c622ef914844178577dea4075e92cd8dd | [
"MIT"
] | null | null | null | crystalpy/examples/Si111_simple_xraylib_dabax_comparison.py | oasys-kit/crystalpy | 4852851c622ef914844178577dea4075e92cd8dd | [
"MIT"
] | null | null | null | crystalpy/examples/Si111_simple_xraylib_dabax_comparison.py | oasys-kit/crystalpy | 4852851c622ef914844178577dea4075e92cd8dd | [
"MIT"
] | null | null | null |
#
#
# This example shows the diffraction by a Si 111 crystal calculated in its simplest implementation:
#
#
# - calculate_simple_diffraction()
# Uses a crystal setup and calculates the complex transmitivity and reflectivity
#
#
import numpy
from crystalpy.diffraction.GeometryType import BraggDiffraction
fro... | 46.281496 | 148 | 0.514823 | 2,108 | 23,511 | 5.550285 | 0.087761 | 0.051453 | 0.039487 | 0.020513 | 0.929658 | 0.921538 | 0.90188 | 0.900598 | 0.900598 | 0.900598 | 0 | 0.020584 | 0.411084 | 23,511 | 507 | 149 | 46.372781 | 0.824426 | 0.154991 | 0 | 0.904437 | 0 | 0 | 0.05404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013652 | false | 0 | 0.054608 | 0 | 0.068259 | 0.040956 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2a7558e1d67e4e5ea0e241b3288fb5143325f020 | 182 | py | Python | admin.py | dboutmybizness/ideation | 043fccea44835d7c23d1c020ab958e385255eb90 | [
"MIT"
] | 1 | 2015-07-02T19:58:07.000Z | 2015-07-02T19:58:07.000Z | admin.py | dboutmybizness/ideation | 043fccea44835d7c23d1c020ab958e385255eb90 | [
"MIT"
] | null | null | null | admin.py | dboutmybizness/ideation | 043fccea44835d7c23d1c020ab958e385255eb90 | [
"MIT"
] | null | null | null | from django.contrib import admin
from ideas.models import *
admin.site.register(Idea)
admin.site.register(Idea_Type)
admin.site.register(Note)
#admin.site.register(Recently_Viewed)
| 22.75 | 37 | 0.818681 | 27 | 182 | 5.444444 | 0.518519 | 0.244898 | 0.462585 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 182 | 7 | 38 | 26 | 0.869822 | 0.197802 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
2a98dcf96c65d014c285833e2938b785dfd4dc3e | 1,634 | py | Python | 0123_BestTimeToBuyAndSellStock(3).py | yingzhuo1994/LeetCode | 636eef90867d21e3439d258ec99fbb8e5ad5a742 | [
"MIT"
] | null | null | null | 0123_BestTimeToBuyAndSellStock(3).py | yingzhuo1994/LeetCode | 636eef90867d21e3439d258ec99fbb8e5ad5a742 | [
"MIT"
] | null | null | null | 0123_BestTimeToBuyAndSellStock(3).py | yingzhuo1994/LeetCode | 636eef90867d21e3439d258ec99fbb8e5ad5a742 | [
"MIT"
] | null | null | null | # 1st solution
# O(kn) time | O(kn) space
# where k = 2
class Solution:
def maxProfit(self, prices: List[int]) -> int:
if len(prices) <= 1:
return 0
n, k = len(prices), 2
profits = [prices[i + 1] - prices[i] for i in range(len(prices) - 1)]
if k > len(prices) // 2:
... | 31.423077 | 82 | 0.446756 | 277 | 1,634 | 2.617329 | 0.140794 | 0.096552 | 0.024828 | 0.06069 | 0.833103 | 0.833103 | 0.833103 | 0.833103 | 0.833103 | 0.833103 | 0 | 0.059961 | 0.367197 | 1,634 | 52 | 83 | 31.423077 | 0.641199 | 0.069155 | 0 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0 | 0 | 0.30303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
aa4bd3ccebfff826b73a9aba68cea8d48ca9246c | 108,325 | py | Python | src/isanlp_rst/td_rst_parser/src/utils/transform.py | tchewik/isanlp_rst | 459864b3daeeb702acf5e65543181068439ce12c | [
"MIT"
] | 6 | 2020-05-09T01:13:10.000Z | 2021-02-05T01:02:40.000Z | src/isanlp_rst/td_rst_parser/src/utils/transform.py | tchewik/isanlp_rst | 459864b3daeeb702acf5e65543181068439ce12c | [
"MIT"
] | 2 | 2019-09-26T11:32:46.000Z | 2020-07-24T13:44:46.000Z | src/isanlp_rst/td_rst_parser/src/utils/transform.py | tchewik/isanlp_rst | 459864b3daeeb702acf5e65543181068439ce12c | [
"MIT"
] | 3 | 2019-09-26T13:39:26.000Z | 2021-04-12T14:34:50.000Z | # -*- coding: utf-8 -*-
from collections.abc import Iterable
import nltk, re
from src.utils.logging import get_logger, progress_bar
from src.utils.util_discourse import RelationAndNucleus2Label, Label2RelationAndNucleus
from src.utils.util_spmrl import custom_chomsky_normal_form, clean_leaves
logger = get_logger(__n... | 41.156915 | 199 | 0.521495 | 12,684 | 108,325 | 4.253784 | 0.045017 | 0.03692 | 0.004393 | 0.004893 | 0.870373 | 0.858994 | 0.85032 | 0.843129 | 0.836568 | 0.82667 | 0 | 0.021417 | 0.368105 | 108,325 | 2,632 | 200 | 41.156915 | 0.766823 | 0.364948 | 0 | 0.817826 | 0 | 0.006255 | 0.040626 | 0.018328 | 0.001564 | 0 | 0 | 0 | 0.013292 | 1 | 0.082877 | false | 0 | 0.0086 | 0.021892 | 0.200156 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
aa52e66134ad40fc12bbe83f3a0ee5634c91050c | 4,792 | py | Python | app/tests/views/test_api.py | FundingCircle/DjanGoat | 013c7367294682955daf9eba205270bd2f9725cd | [
"MIT"
] | 1 | 2019-05-07T09:49:25.000Z | 2019-05-07T09:49:25.000Z | app/tests/views/test_api.py | FundingCircle/DjanGoat | 013c7367294682955daf9eba205270bd2f9725cd | [
"MIT"
] | null | null | null | app/tests/views/test_api.py | FundingCircle/DjanGoat | 013c7367294682955daf9eba205270bd2f9725cd | [
"MIT"
] | null | null | null |
import datetime
import pytz
from django.test import TestCase, RequestFactory, Client
import app.views.api.users.views as api_users_views
from app.models import User
from app.tests.mixins import AuthRouteTestingWithKwargs
class TestApiMobileIndex(TestCase):
def setUp(self):
self.client = Client()
... | 37.4375 | 90 | 0.628548 | 574 | 4,792 | 5 | 0.162021 | 0.033449 | 0.039024 | 0.044599 | 0.849477 | 0.836237 | 0.819512 | 0.819512 | 0.819512 | 0.819512 | 0 | 0.062553 | 0.266068 | 4,792 | 127 | 91 | 37.732283 | 0.753483 | 0.01899 | 0 | 0.745455 | 0 | 0 | 0.106274 | 0.057192 | 0 | 0 | 0 | 0 | 0.036364 | 1 | 0.054545 | false | 0.072727 | 0.054545 | 0 | 0.145455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
aa5cf834deeaac7e8fa203b5a8802a14e8ebba02 | 1,319 | py | Python | octicons16px/paintbrush.py | andrewp-as-is/octicons16px.py | 1272dc9f290619d83bd881e87dbd723b0c48844c | [
"Unlicense"
] | 1 | 2021-01-28T06:47:39.000Z | 2021-01-28T06:47:39.000Z | octicons16px/paintbrush.py | andrewp-as-is/octicons16px.py | 1272dc9f290619d83bd881e87dbd723b0c48844c | [
"Unlicense"
] | null | null | null | octicons16px/paintbrush.py | andrewp-as-is/octicons16px.py | 1272dc9f290619d83bd881e87dbd723b0c48844c | [
"Unlicense"
] | null | null | null |
OCTICON_PAINTBRUSH = """
<svg class="octicon octicon-paintbrush" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M11.134 1.535C9.722 2.562 8.16 4.057 6.889 5.312 5.8 6.387 5.041 7.401 4.575 8.294a3.745 3.745 0 00-3.227 1.054c-.43.431-.69 1.066-.86 1.657a11.982... | 263.8 | 1,288 | 0.673237 | 351 | 1,319 | 2.527066 | 0.566952 | 0.027058 | 0.015784 | 0.018038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.608264 | 0.082638 | 1,319 | 4 | 1,289 | 329.75 | 0.124793 | 0 | 0 | 0 | 0 | 0.333333 | 0.978756 | 0.332322 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2d6aaf036c1e83dbe1702973e9c671ef1e4c4085 | 32,743 | py | Python | v6.0.5/firewall/test_fortios_firewall_vip6.py | fortinet-solutions-cse/ansible_fgt_modules | c45fba49258d7c9705e7a8fd9c2a09ea4c8a4719 | [
"Apache-2.0"
] | 14 | 2018-09-25T20:35:25.000Z | 2021-07-14T04:30:54.000Z | v6.0.6/firewall/test_fortios_firewall_vip6.py | fortinet-solutions-cse/ansible_fgt_modules | c45fba49258d7c9705e7a8fd9c2a09ea4c8a4719 | [
"Apache-2.0"
] | 32 | 2018-10-09T04:13:42.000Z | 2020-05-11T07:20:28.000Z | v6.0.6/firewall/test_fortios_firewall_vip6.py | fortinet-solutions-cse/ansible_fgt_modules | c45fba49258d7c9705e7a8fd9c2a09ea4c8a4719 | [
"Apache-2.0"
] | 11 | 2018-10-09T00:14:53.000Z | 2021-11-03T10:54:09.000Z | # Copyright 2019 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the... | 41.446835 | 142 | 0.551477 | 3,442 | 32,743 | 4.916909 | 0.074375 | 0.063815 | 0.025999 | 0.028362 | 0.93849 | 0.934885 | 0.929272 | 0.929272 | 0.929272 | 0.929272 | 0 | 0.02651 | 0.299545 | 32,743 | 789 | 143 | 41.499366 | 0.711402 | 0.020279 | 0 | 0.94773 | 0 | 0 | 0.47731 | 0.152824 | 0 | 0 | 0 | 0 | 0.049519 | 1 | 0.009629 | false | 0 | 0.011004 | 0 | 0.022008 | 0.001376 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2dede3b8299b2c83367e78304017ee70a3105db8 | 508 | py | Python | venv/ex109/moeda.py | carlosdaniel-cyber/my-python-exercises | 0d6b2874448e0bc1f8c4a5948b0beae56b95ba6b | [
"MIT"
] | null | null | null | venv/ex109/moeda.py | carlosdaniel-cyber/my-python-exercises | 0d6b2874448e0bc1f8c4a5948b0beae56b95ba6b | [
"MIT"
] | null | null | null | venv/ex109/moeda.py | carlosdaniel-cyber/my-python-exercises | 0d6b2874448e0bc1f8c4a5948b0beae56b95ba6b | [
"MIT"
] | null | null | null | def aumentar(valor=0, taxa=0, fmt=False):
res = valor + (valor * taxa/100)
return moeda(res) if fmt else res
def diminuir(valor=0, taxa=0, fmt=False):
res = valor - (valor * taxa / 100)
return moeda(res) if fmt else res
def dobro(valor=0, fmt=False):
res = valor * 2
return moeda(res) if fmt ... | 22.086957 | 50 | 0.61811 | 85 | 508 | 3.694118 | 0.247059 | 0.095541 | 0.11465 | 0.152866 | 0.764331 | 0.764331 | 0.764331 | 0.764331 | 0.764331 | 0.764331 | 0 | 0.043147 | 0.224409 | 508 | 22 | 51 | 23.090909 | 0.753807 | 0 | 0 | 0.285714 | 0 | 0 | 0.043307 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0 | 0.071429 | 0.714286 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
93393007cad5d10a9d44e687658d4289aa8454d4 | 15,074 | py | Python | test/deprecated/test_parse_project_page.py | jwodder/pypi-simple | 5a33e2c31a6896bc0f019ae7e72135b4af7b5a8d | [
"MIT"
] | 18 | 2018-08-31T19:29:43.000Z | 2022-02-25T20:43:33.000Z | test/deprecated/test_parse_project_page.py | jwodder/pypi-simple | 5a33e2c31a6896bc0f019ae7e72135b4af7b5a8d | [
"MIT"
] | 4 | 2018-09-04T08:46:46.000Z | 2020-11-24T08:16:55.000Z | test/deprecated/test_parse_project_page.py | jwodder/pypi-simple | 5a33e2c31a6896bc0f019ae7e72135b4af7b5a8d | [
"MIT"
] | 5 | 2019-06-26T17:41:36.000Z | 2021-08-06T04:16:55.000Z | import os
from os.path import dirname, join
import pytest
from pypi_simple import PYPI_SIMPLE_ENDPOINT, DistributionPackage, parse_project_page
DATA_DIR = join(dirname(__file__), os.pardir, "data")
def test_empty():
with pytest.warns(DeprecationWarning):
files = parse_project_page("", PYPI_SIMPLE_ENDPOIN... | 43.440922 | 231 | 0.612843 | 1,447 | 15,074 | 6.277125 | 0.098825 | 0.02312 | 0.01189 | 0.018496 | 0.821535 | 0.813718 | 0.787075 | 0.768138 | 0.732357 | 0.710118 | 0 | 0.211432 | 0.267679 | 15,074 | 346 | 232 | 43.566474 | 0.611378 | 0 | 0 | 0.832836 | 0 | 0.077612 | 0.413228 | 0.025474 | 0 | 0 | 0 | 0 | 0.014925 | 1 | 0.014925 | false | 0 | 0.01194 | 0 | 0.026866 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
93808cb505c96653ed014de6444656696833425e | 160 | py | Python | test/test_version.py | briis/pyweatherflowudp | 5a28d674aff4aac8c5cdf6c27f71eee4b98c25e3 | [
"MIT"
] | 3 | 2021-12-22T21:53:07.000Z | 2022-01-11T17:28:35.000Z | test/test_version.py | briis/pyweatherflowudp | 5a28d674aff4aac8c5cdf6c27f71eee4b98c25e3 | [
"MIT"
] | 2 | 2021-12-01T06:27:58.000Z | 2021-12-02T08:45:32.000Z | test/test_version.py | briis/pyweatherflowudp | 5a28d674aff4aac8c5cdf6c27f71eee4b98c25e3 | [
"MIT"
] | 1 | 2021-12-26T18:24:13.000Z | 2021-12-26T18:24:13.000Z | """Test the module version."""
from pyweatherflowudp import __version__
def test_version() -> None:
"""Test version."""
assert __version__ == "1.3.0"
| 20 | 40 | 0.66875 | 19 | 160 | 5.157895 | 0.684211 | 0.22449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.175 | 160 | 7 | 41 | 22.857143 | 0.719697 | 0.2375 | 0 | 0 | 0 | 0 | 0.045045 | 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 | 1 | 0 | 0 | 7 |
fa94d8a496300d9af492396b2ba59fa171ad4b86 | 4,937 | py | Python | tests/unit/test_instance_scheduler.py | jaash7zohz/terraform-aws-lambda-scheduler-stop-start | b4cc0fe603c02a4a9fc32841cb473e338e350f1e | [
"Apache-2.0"
] | 46 | 2019-02-15T23:12:24.000Z | 2022-02-03T08:52:46.000Z | tests/unit/test_instance_scheduler.py | jaash7zohz/terraform-aws-lambda-scheduler-stop-start | b4cc0fe603c02a4a9fc32841cb473e338e350f1e | [
"Apache-2.0"
] | 16 | 2020-02-07T16:19:15.000Z | 2021-12-14T08:48:34.000Z | tests/unit/test_instance_scheduler.py | jaash7zohz/terraform-aws-lambda-scheduler-stop-start | b4cc0fe603c02a4a9fc32841cb473e338e350f1e | [
"Apache-2.0"
] | 39 | 2019-09-24T10:01:20.000Z | 2022-03-28T04:56:50.000Z | # -*- coding: utf-8 -*-
"""Tests for the instance scheduler class."""
import boto3
from moto import (
mock_autoscaling,
mock_cloudwatch,
mock_ec2,
mock_resourcegroupstaggingapi,
)
from package.scheduler.cloudwatch_handler import CloudWatchAlarmScheduler
from package.scheduler.instance_handler import... | 30.288344 | 75 | 0.616974 | 516 | 4,937 | 5.664729 | 0.135659 | 0.073897 | 0.032843 | 0.043791 | 0.875128 | 0.851522 | 0.851522 | 0.830996 | 0.813206 | 0.746835 | 0 | 0.020757 | 0.229086 | 4,937 | 162 | 76 | 30.475309 | 0.747241 | 0.026939 | 0 | 0.742857 | 0 | 0 | 0.16792 | 0 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.028571 | false | 0 | 0.042857 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fa9b53e37d93918fd3d307efe4c15b5099190d5b | 3,422 | py | Python | src/compas_view2/objects/polygonobject.py | selinabitting/compas_view2 | cac8abaf8fbde13ceabe35324be92779ea2e535f | [
"MIT"
] | 5 | 2021-03-03T13:07:31.000Z | 2022-02-05T01:07:31.000Z | src/compas_view2/objects/polygonobject.py | selinabitting/compas_view2 | cac8abaf8fbde13ceabe35324be92779ea2e535f | [
"MIT"
] | 91 | 2021-01-29T14:26:28.000Z | 2022-03-22T17:15:58.000Z | src/compas_view2/objects/polygonobject.py | selinabitting/compas_view2 | cac8abaf8fbde13ceabe35324be92779ea2e535f | [
"MIT"
] | 6 | 2021-01-29T11:13:45.000Z | 2022-02-05T00:56:24.000Z | from compas.geometry import centroid_points
from compas.utilities import pairwise
from .polylineobject import PolylineObject
class PolygonObject(PolylineObject):
"""Object for displaying COMPAS Polygon geometry."""
def __init__(self, polygon, show_face=True, facecolor=None, **kwargs):
super().__init_... | 32.283019 | 76 | 0.504676 | 354 | 3,422 | 4.816384 | 0.146893 | 0.211144 | 0.239296 | 0.242815 | 0.809384 | 0.809384 | 0.809384 | 0.809384 | 0.809384 | 0.809384 | 0 | 0.016811 | 0.391584 | 3,422 | 105 | 77 | 32.590476 | 0.802113 | 0.013442 | 0 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.030303 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
fac5e09c224af9aa1c7f19771d9eb2c7a02c0f28 | 155 | py | Python | extra_tests/snippets/builtin_hex.py | dbrgn/RustPython | 6d371cea8a62d84dbbeec5a53cfd040f45899211 | [
"CC-BY-4.0",
"MIT"
] | 11,058 | 2018-05-29T07:40:06.000Z | 2022-03-31T11:38:42.000Z | extra_tests/snippets/builtin_hex.py | dbrgn/RustPython | 6d371cea8a62d84dbbeec5a53cfd040f45899211 | [
"CC-BY-4.0",
"MIT"
] | 2,105 | 2018-06-01T10:07:16.000Z | 2022-03-31T14:56:42.000Z | extra_tests/snippets/builtin_hex.py | dbrgn/RustPython | 6d371cea8a62d84dbbeec5a53cfd040f45899211 | [
"CC-BY-4.0",
"MIT"
] | 914 | 2018-07-27T09:36:14.000Z | 2022-03-31T19:56:34.000Z | from testutils import assert_raises
assert hex(16) == '0x10'
assert hex(-16) == '-0x10'
assert_raises(TypeError, hex, {}, _msg='ord() called with dict')
| 22.142857 | 64 | 0.696774 | 22 | 155 | 4.772727 | 0.636364 | 0.228571 | 0.209524 | 0.285714 | 0.342857 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074627 | 0.135484 | 155 | 6 | 65 | 25.833333 | 0.708955 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0.051613 | 0 | 1 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
87946635cd1397b14afaeaea1f455b41e0a5cfc5 | 22,200 | py | Python | pys/03.1 Hyperparameter Optimization.py | kahramankostas/IoTDevIDv2 | 3ca0003f2e740143e8f8f121ffc81f190947f0dc | [
"MIT"
] | 4 | 2022-01-11T10:04:10.000Z | 2022-03-21T08:23:07.000Z | pys/03.1 Hyperparameter Optimization.py | kahramankostas/IoTDevIDv2 | 3ca0003f2e740143e8f8f121ffc81f190947f0dc | [
"MIT"
] | null | null | null | pys/03.1 Hyperparameter Optimization.py | kahramankostas/IoTDevIDv2 | 3ca0003f2e740143e8f8f121ffc81f190947f0dc | [
"MIT"
] | 1 | 2021-12-23T05:21:37.000Z | 2021-12-23T05:21:37.000Z |
# coding: utf-8
# In[1]:
get_ipython().run_line_magic('matplotlib', 'inline')
from scipy.stats import randint as sp_randint
from scipy.stats import uniform
from scipy.stats import uniform as sp_randFloat
from sklearn import svm
from sklearn.ensemble import GradientBoostingClassifier
from sklearn.ensemble import Ran... | 26.555024 | 407 | 0.657703 | 3,337 | 22,200 | 4.19089 | 0.074318 | 0.026171 | 0.015016 | 0.025742 | 0.931284 | 0.923132 | 0.918198 | 0.911906 | 0.886521 | 0.875867 | 0 | 0.040149 | 0.167523 | 22,200 | 835 | 408 | 26.586826 | 0.716574 | 0.099324 | 0 | 0.872979 | 0 | 0 | 0.16587 | 0.02069 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013857 | false | 0 | 0.143187 | 0 | 0.170901 | 0.076212 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
87b421b804595a1b801a30c336427f6f487d5749 | 6,050 | py | Python | evallpy.py | BrunoKrinski/segtool | cb604b5f38104c43a76450136e37c3d1c4b6d275 | [
"MIT"
] | null | null | null | evallpy.py | BrunoKrinski/segtool | cb604b5f38104c43a76450136e37c3d1c4b6d275 | [
"MIT"
] | null | null | null | evallpy.py | BrunoKrinski/segtool | cb604b5f38104c43a76450136e37c3d1c4b6d275 | [
"MIT"
] | null | null | null | import os
ls = ["python eval_covid19china_timm-regnetx_002_Clahe.py",
"python eval_covid19china_timm-regnetx_002_CoarseDropout.py",
"python eval_covid19china_timm-regnetx_002_ElasticTransform.py",
"python eval_covid19china_timm-regnetx_002_Emboss.py",
"python eval_covid19china_timm-regnetx_002_Flip.py",
"python eval_c... | 54.504505 | 72 | 0.873884 | 852 | 6,050 | 5.712441 | 0.046948 | 0.215739 | 0.302034 | 0.112184 | 0.99322 | 0.989521 | 0.985001 | 0 | 0 | 0 | 0 | 0.072153 | 0.037851 | 6,050 | 111 | 73 | 54.504505 | 0.763958 | 0.001322 | 0 | 0 | 0 | 0 | 0.921715 | 0.800066 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.009259 | 0 | 0.009259 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
87f7837c86e0f205df1933577c33bc709e65201b | 6,970 | py | Python | tt/ksl/ksl.py | rborrelli/ttpy | d3923692495d2e03d3667354e29882935820fa94 | [
"MIT"
] | null | null | null | tt/ksl/ksl.py | rborrelli/ttpy | d3923692495d2e03d3667354e29882935820fa94 | [
"MIT"
] | null | null | null | tt/ksl/ksl.py | rborrelli/ttpy | d3923692495d2e03d3667354e29882935820fa94 | [
"MIT"
] | null | null | null | """ Dynamical TT-approximation """
from __future__ import print_function, absolute_import, division
import numpy as np
from . import dyn_tt
import tt
def ksl(A, y0, tau, verb=1, scheme='symm', space=8, rmax=2000, use_normest=1):
""" Dynamical tensor-train approximation based on projector splitting
This fun... | 29.786325 | 187 | 0.541463 | 985 | 6,970 | 3.775635 | 0.225381 | 0.021511 | 0.021511 | 0.01936 | 0.870933 | 0.8669 | 0.854531 | 0.82818 | 0.82818 | 0.82818 | 0 | 0.064046 | 0.350359 | 6,970 | 233 | 188 | 29.914163 | 0.757288 | 0.571449 | 0 | 0.735849 | 0 | 0 | 0.006121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.037736 | 0 | 0.075472 | 0.009434 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
355ab41d7bb83c37ca752069908e9b177ffbd187 | 22,925 | py | Python | tests/crypto_tests.py | webclinic017/polygon | bddbb6ab7a250d3a40f88c8973484c399b72d7d5 | [
"MIT"
] | null | null | null | tests/crypto_tests.py | webclinic017/polygon | bddbb6ab7a250d3a40f88c8973484c399b72d7d5 | [
"MIT"
] | null | null | null | tests/crypto_tests.py | webclinic017/polygon | bddbb6ab7a250d3a40f88c8973484c399b72d7d5 | [
"MIT"
] | null | null | null | # ========================================================= #
import unittest
import polygon
from polygon import cred
import datetime
from requests.models import Response
import asyncio
from httpx import Response as HttpxResponse
# ========================================================= #
# Test Runners
cred.KEY = c... | 42.770522 | 117 | 0.600218 | 2,526 | 22,925 | 5.317894 | 0.051465 | 0.148887 | 0.075337 | 0.085163 | 0.935383 | 0.926673 | 0.925408 | 0.902479 | 0.891461 | 0.880667 | 0 | 0.034014 | 0.26133 | 22,925 | 535 | 118 | 42.850467 | 0.759242 | 0.04602 | 0 | 0.755668 | 0 | 0 | 0.066703 | 0 | 0 | 0 | 0 | 0 | 0.440806 | 1 | 0.035264 | false | 0 | 0.017632 | 0 | 0.062972 | 0.002519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
357affd4415b3cf4b19d869383756fa295a84f1b | 29,737 | py | Python | line4py/service/SecondaryQrCodeLoginPermitService/SecondaryQrCodeLoginPermitService.py | mopeneko/line4py | 2e35e2dcf1e03720644639520a598244ff0932a8 | [
"MIT"
] | 23 | 2020-06-02T03:28:20.000Z | 2022-03-05T12:40:23.000Z | line4py/service/SecondaryQrCodeLoginPermitService/SecondaryQrCodeLoginPermitService.py | mopeneko/line4py | 2e35e2dcf1e03720644639520a598244ff0932a8 | [
"MIT"
] | null | null | null | line4py/service/SecondaryQrCodeLoginPermitService/SecondaryQrCodeLoginPermitService.py | mopeneko/line4py | 2e35e2dcf1e03720644639520a598244ff0932a8 | [
"MIT"
] | 6 | 2020-06-02T04:42:10.000Z | 2020-12-24T10:04:29.000Z | #
# Autogenerated by Thrift Compiler (0.13.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
from thrift.protocol.TProtocol import TProtocolException
from thrift.TRecursive impo... | 33.449944 | 134 | 0.600699 | 2,972 | 29,737 | 5.787012 | 0.055855 | 0.015408 | 0.027734 | 0.020931 | 0.837025 | 0.808303 | 0.776906 | 0.756381 | 0.756381 | 0.747543 | 0 | 0.002745 | 0.301712 | 29,737 | 888 | 135 | 33.487613 | 0.825524 | 0.019471 | 0 | 0.807299 | 1 | 0 | 0.03634 | 0.001812 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116788 | false | 0.005839 | 0.011679 | 0.035036 | 0.229197 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
3585192a3e085d6b481fa5f8502c93d40c91fa84 | 20,400 | py | Python | sdk/python/pulumi_azure/loganalytics/data_source_windows_event.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 109 | 2018-06-18T00:19:44.000Z | 2022-02-20T05:32:57.000Z | sdk/python/pulumi_azure/loganalytics/data_source_windows_event.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 663 | 2018-06-18T21:08:46.000Z | 2022-03-31T20:10:11.000Z | sdk/python/pulumi_azure/loganalytics/data_source_windows_event.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 41 | 2018-07-19T22:37:38.000Z | 2022-03-14T10:56:26.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 52.040816 | 257 | 0.689265 | 2,458 | 20,400 | 5.514239 | 0.078112 | 0.066549 | 0.069205 | 0.081452 | 0.866681 | 0.849786 | 0.838572 | 0.809134 | 0.802272 | 0.784861 | 0 | 0.005007 | 0.22652 | 20,400 | 391 | 258 | 52.173913 | 0.853983 | 0.446373 | 0 | 0.616505 | 1 | 0 | 0.114322 | 0.015081 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15534 | false | 0.004854 | 0.024272 | 0 | 0.271845 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
35947754fad3a1f43da0ac15d2e3b8f0ef642eb3 | 7,973 | py | Python | pvlib_python/test/test_pvl_tools.py | cwhanse/PVLIB_Python | 4ed3dbb9dfd4d4fc9f594580809fc3c09fa8e93d | [
"BSD-3-Clause"
] | 4 | 2017-08-31T21:09:14.000Z | 2020-09-09T18:47:32.000Z | pvlib_python/test/test_pvl_tools.py | cwhanse/PVLIB_Python | 4ed3dbb9dfd4d4fc9f594580809fc3c09fa8e93d | [
"BSD-3-Clause"
] | null | null | null | pvlib_python/test/test_pvl_tools.py | cwhanse/PVLIB_Python | 4ed3dbb9dfd4d4fc9f594580809fc3c09fa8e93d | [
"BSD-3-Clause"
] | 1 | 2020-09-09T18:47:40.000Z | 2020-09-09T18:47:40.000Z |
from .. import pvl_tools
from nose.tools import *
import numpy as np
import pandas as pd
#Baseline functioning test
def test_inputs_pvl():
kwargs={'AMRelative': np.array([4,5]),
'Pressure': np.array([5,8]),
'setting': 'yes'
}
Expect={'AMRelative': ('num'),
'Pressure': ('num', '>0'),
'setting': ('se... | 24.838006 | 117 | 0.609056 | 1,065 | 7,973 | 4.44507 | 0.110798 | 0.038868 | 0.060414 | 0.088297 | 0.851922 | 0.843684 | 0.825518 | 0.793832 | 0.778834 | 0.765737 | 0 | 0.034148 | 0.1332 | 7,973 | 321 | 118 | 24.838006 | 0.650846 | 0.019942 | 0 | 0.66171 | 0 | 0 | 0.228937 | 0 | 0 | 0 | 0 | 0 | 0.040892 | 0 | null | null | 0 | 0.018587 | null | null | 0.003717 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
35e51a9fb0ea7fccc7243be4637d5041bcf28382 | 12,129 | py | Python | tests/st/optimizer/test_dynamic_weight_decay_ascend.py | httpsgithu/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | 1 | 2022-02-23T09:13:43.000Z | 2022-02-23T09:13:43.000Z | tests/st/optimizer/test_dynamic_weight_decay_ascend.py | 949144093/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | null | null | null | tests/st/optimizer/test_dynamic_weight_decay_ascend.py | 949144093/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 48.710843 | 120 | 0.726523 | 1,651 | 12,129 | 5.12235 | 0.073895 | 0.163888 | 0.104292 | 0.045406 | 0.929644 | 0.929644 | 0.92787 | 0.92787 | 0.92787 | 0.92787 | 0 | 0.053636 | 0.157639 | 12,129 | 248 | 121 | 48.907258 | 0.774102 | 0.214775 | 0 | 0.818898 | 0 | 0 | 0.053498 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094488 | false | 0 | 0.023622 | 0 | 0.11811 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ea1032adb9b14dbc51465a7359ae063e494a5925 | 995 | py | Python | tests/lib/bes/common/test_bool_util.py | reconstruir/bes | 82ff54b2dadcaef6849d7de424787f1dedace85c | [
"Apache-2.0"
] | null | null | null | tests/lib/bes/common/test_bool_util.py | reconstruir/bes | 82ff54b2dadcaef6849d7de424787f1dedace85c | [
"Apache-2.0"
] | null | null | null | tests/lib/bes/common/test_bool_util.py | reconstruir/bes | 82ff54b2dadcaef6849d7de424787f1dedace85c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#-*- coding:utf-8 -*-
#
from bes.testing.unit_test import unit_test
from bes.common.bool_util import bool_util
class test_bool_util(unit_test):
def test_parse_bool(self):
self.assertEqual( True, bool_util.parse_bool(True) )
self.assertEqual( True, bool_util.parse_bool('True') )
se... | 35.535714 | 60 | 0.718593 | 144 | 995 | 4.659722 | 0.215278 | 0.19076 | 0.251863 | 0.329359 | 0.752608 | 0.752608 | 0.752608 | 0.752608 | 0.639344 | 0.639344 | 0 | 0.007018 | 0.140704 | 995 | 27 | 61 | 36.851852 | 0.777778 | 0.040201 | 0 | 0 | 0 | 0 | 0.031513 | 0 | 0 | 0 | 0 | 0 | 0.684211 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ea37058bc51926de878f6e24271b168ff3176109 | 5,094 | py | Python | pygmentify/tests/__init__.py | richardcornish/django-pygmentize | a2d3f6b3c3019d810d46f6ff6beb4e9f53190e7b | [
"BSD-3-Clause"
] | 6 | 2016-09-25T22:42:40.000Z | 2021-03-24T00:35:24.000Z | pygmentify/tests/__init__.py | richardcornish/django-pygmentize | a2d3f6b3c3019d810d46f6ff6beb4e9f53190e7b | [
"BSD-3-Clause"
] | 1 | 2018-10-03T03:07:37.000Z | 2018-10-03T03:07:37.000Z | pygmentify/tests/__init__.py | richardcornish/django-pygmentify | a2d3f6b3c3019d810d46f6ff6beb4e9f53190e7b | [
"BSD-3-Clause"
] | null | null | null | from __future__ import unicode_literals
from django.template import Context, Template
from django.test import TestCase
class PygmentifyTestCase(TestCase):
"""Pygmentify test cases."""
def test_pygmentify_html(self):
out = Template(
"{% load pygmentify_tags %}"
"{% pygmentify ... | 47.607477 | 410 | 0.553396 | 586 | 5,094 | 4.733788 | 0.102389 | 0.109589 | 0.145278 | 0.085797 | 0.914924 | 0.914924 | 0.898342 | 0.892213 | 0.797044 | 0.689978 | 0 | 0.001783 | 0.229486 | 5,094 | 106 | 411 | 48.056604 | 0.704968 | 0.004319 | 0 | 0.706522 | 0 | 0.076087 | 0.574023 | 0.33261 | 0 | 0 | 0 | 0 | 0.108696 | 1 | 0.108696 | false | 0 | 0.032609 | 0 | 0.152174 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ea416769c31745446a98d792ebdd4422f3a25db3 | 103 | py | Python | pyckaxe/utils/cache/__init__.py | Arcensoth/pyckaxe | 09ed0828d6660a233b827721454293579329991b | [
"MIT"
] | 3 | 2018-09-23T05:16:44.000Z | 2021-12-23T03:06:07.000Z | pyckaxe/utils/cache/__init__.py | Arcensoth/pyckaxe | 09ed0828d6660a233b827721454293579329991b | [
"MIT"
] | 5 | 2018-07-11T02:31:56.000Z | 2018-07-11T03:15:05.000Z | pyckaxe/utils/cache/__init__.py | Arcensoth/pyckaxe | 09ed0828d6660a233b827721454293579329991b | [
"MIT"
] | null | null | null | from .abc import *
from .lru_cache import *
from .static_cache import *
from .unbounded_cache import *
| 20.6 | 30 | 0.76699 | 15 | 103 | 5.066667 | 0.466667 | 0.394737 | 0.394737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15534 | 103 | 4 | 31 | 25.75 | 0.873563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
ea6f59f6a32b410a66cc254450173b582755ae08 | 4,586 | py | Python | pset/pset7/compare_webservers.py | jamestiotio/esc | 971d9018e389b5ac374438792a417c74541898e2 | [
"MIT"
] | null | null | null | pset/pset7/compare_webservers.py | jamestiotio/esc | 971d9018e389b5ac374438792a417c74541898e2 | [
"MIT"
] | 1 | 2021-11-04T15:56:26.000Z | 2021-11-04T15:56:26.000Z | pset/pset7/compare_webservers.py | jamestiotio/esc | 971d9018e389b5ac374438792a417c74541898e2 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
def plot_non_executor_web_servers():
"""
Cohort Exercise 2
"""
sns.set_theme(style="darkgrid")
sns.color_palette("bright")
palette = ["r", "b"]
fig, ax = plt.subplots(1, 2)
df = pd.read_csv("n... | 29.779221 | 103 | 0.484954 | 483 | 4,586 | 4.465839 | 0.217391 | 0.037089 | 0.069541 | 0.052851 | 0.890589 | 0.799722 | 0.799722 | 0.799722 | 0.799722 | 0.799722 | 0 | 0.021224 | 0.383559 | 4,586 | 154 | 104 | 29.779221 | 0.741776 | 0.037505 | 0 | 0.709924 | 0 | 0 | 0.225063 | 0.011413 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015267 | false | 0 | 0.030534 | 0 | 0.045802 | 0.015267 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ea7683c922a61e4d2f59c08f15abffb0d26143bd | 4,459 | py | Python | adv/migrations/0001_initial.py | muddy-minds/back-end | b4f05dd19cbf442ac020dd38b922cf1c1156cb82 | [
"MIT"
] | null | null | null | adv/migrations/0001_initial.py | muddy-minds/back-end | b4f05dd19cbf442ac020dd38b922cf1c1156cb82 | [
"MIT"
] | 6 | 2019-12-04T23:58:17.000Z | 2022-02-10T08:13:01.000Z | adv/migrations/0001_initial.py | muddy-minds/back-end | b4f05dd19cbf442ac020dd38b922cf1c1156cb82 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.3 on 2019-08-01 23:44
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Player',
fields=[
... | 45.969072 | 135 | 0.559991 | 454 | 4,459 | 5.361233 | 0.162996 | 0.046015 | 0.088743 | 0.118324 | 0.811011 | 0.811011 | 0.795399 | 0.795399 | 0.795399 | 0.758422 | 0 | 0.017072 | 0.290648 | 4,459 | 96 | 136 | 46.447917 | 0.75245 | 0.010092 | 0 | 0.685393 | 1 | 0 | 0.094742 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022472 | 0 | 0.067416 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ea859c095196cac546eba07a661582a510f8a888 | 3,754 | py | Python | src/aws_environments/migrations/0029_auto_20200430_1959.py | chiliseed/hub | 83f29fbdd12e2260397e18e635f508459fa4990e | [
"Apache-2.0"
] | null | null | null | src/aws_environments/migrations/0029_auto_20200430_1959.py | chiliseed/hub | 83f29fbdd12e2260397e18e635f508459fa4990e | [
"Apache-2.0"
] | 4 | 2021-04-08T20:10:15.000Z | 2021-06-10T20:18:17.000Z | src/aws_environments/migrations/0029_auto_20200430_1959.py | chiliseed/hub | 83f29fbdd12e2260397e18e635f508459fa4990e | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.2 on 2020-04-30 19:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("aws_environments", "0028_auto_20200430_1813"),
]
operations = [
migrations.AlterField(
model_name="environment",
nam... | 32.929825 | 65 | 0.563133 | 330 | 3,754 | 6.272727 | 0.154545 | 0.193237 | 0.241546 | 0.280193 | 0.923672 | 0.923672 | 0.802415 | 0.802415 | 0.802415 | 0.802415 | 0 | 0.012205 | 0.323388 | 3,754 | 113 | 66 | 33.221239 | 0.802756 | 0.011987 | 0 | 0.934579 | 1 | 0 | 0.124359 | 0.006204 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.009346 | 0 | 0.037383 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
a4ae31ff4e139e35e99381b1f2fe121b1e47cc94 | 51,476 | py | Python | parser/team25/code/astDML.py | itsmjoe/tytus | 3b0341cc854d67979b766c5c8b06ed172ce0c913 | [
"MIT"
] | null | null | null | parser/team25/code/astDML.py | itsmjoe/tytus | 3b0341cc854d67979b766c5c8b06ed172ce0c913 | [
"MIT"
] | null | null | null | parser/team25/code/astDML.py | itsmjoe/tytus | 3b0341cc854d67979b766c5c8b06ed172ce0c913 | [
"MIT"
] | null | null | null | from astDDL import Instruccion
import storageManager.jsonMode as DBMS
from useDB.instanciaDB import DB_ACTUAL
import typeChecker.typeReference as TypeCheck
from astExpresion import TIPO_DE_DATO
from astFunciones import FuncionTime
from useDB import instanciaDB
import sqlErrors
def parseToNumber(input:str):
try:
... | 76.71535 | 240 | 0.418545 | 3,473 | 51,476 | 6.123812 | 0.085517 | 0.068836 | 0.138377 | 0.092157 | 0.847235 | 0.834634 | 0.828569 | 0.822127 | 0.812206 | 0.781926 | 0 | 0.010917 | 0.505323 | 51,476 | 671 | 241 | 76.71535 | 0.824301 | 0.031801 | 0 | 0.813421 | 0 | 0 | 0.043346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016367 | false | 0 | 0.013093 | 0 | 0.050737 | 0.0982 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
10570b619bfa36400daf239de0b486fe6c6d878b | 4,232 | py | Python | examples/regression_california/example_rf_california.py | c60evaporator/param-tuning-utility | 80625f875428badac37d8439195a9327a565b040 | [
"BSD-3-Clause"
] | null | null | null | examples/regression_california/example_rf_california.py | c60evaporator/param-tuning-utility | 80625f875428badac37d8439195a9327a565b040 | [
"BSD-3-Clause"
] | null | null | null | examples/regression_california/example_rf_california.py | c60evaporator/param-tuning-utility | 80625f875428badac37d8439195a9327a565b040 | [
"BSD-3-Clause"
] | 1 | 2022-01-06T05:13:07.000Z | 2022-01-06T05:13:07.000Z | # %% RandomForestRegressor, GridSearch, no argument
import parent_import
from tune_easy import RFRegressorTuning
from sklearn.datasets import fetch_california_housing
import pandas as pd
import numpy as np
# Load dataset
TARGET_VARIABLE = 'price' # Target variable
USE_EXPLANATORY = ['MedInc', 'AveOccup', 'Latitude', '... | 45.021277 | 120 | 0.821361 | 536 | 4,232 | 6.182836 | 0.136194 | 0.184671 | 0.106216 | 0.026554 | 0.962885 | 0.962885 | 0.962885 | 0.962885 | 0.962885 | 0.962885 | 0 | 0.015568 | 0.089319 | 4,232 | 93 | 121 | 45.505376 | 0.844318 | 0.14414 | 0 | 0.935065 | 0 | 0 | 0.038932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.311688 | 0 | 0.311688 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 8 |
109aad36580c44643df764948932443804cf2511 | 148 | py | Python | app/bootstrap/console/__init__.py | ShawnZhang31/flask-artisan | 7e2c044b44191edab902e349bb79559513b3ff6f | [
"MIT"
] | null | null | null | app/bootstrap/console/__init__.py | ShawnZhang31/flask-artisan | 7e2c044b44191edab902e349bb79559513b3ff6f | [
"MIT"
] | null | null | null | app/bootstrap/console/__init__.py | ShawnZhang31/flask-artisan | 7e2c044b44191edab902e349bb79559513b3ff6f | [
"MIT"
] | null | null | null | '''
/*
* @Author: Shawn Zhang
* @Date: 2019-09-08 17:47:48
* @Last Modified by: Shawn Zhang
* @Last Modified time: 2019-09-08 21:11:29
*/
''' | 18.5 | 43 | 0.594595 | 24 | 148 | 3.666667 | 0.708333 | 0.227273 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237288 | 0.202703 | 148 | 8 | 44 | 18.5 | 0.508475 | 0.945946 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 1 | 1 | 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 | 7 |
eac2b0cae947bc620ed99feac676193ad2a67239 | 3,825 | py | Python | try.py | Rachit8484/Mavs-Abroad | b063cade1a52353864b913fa5569004c9b4aae9f | [
"MIT"
] | 2 | 2021-09-18T03:58:04.000Z | 2021-09-21T20:59:10.000Z | try.py | Rachit8484/Mavs-Abroad | b063cade1a52353864b913fa5569004c9b4aae9f | [
"MIT"
] | null | null | null | try.py | Rachit8484/Mavs-Abroad | b063cade1a52353864b913fa5569004c9b4aae9f | [
"MIT"
] | null | null | null | # Rachit Agarwal
# 1001664316
# Jacobi method
# u1 = lambda a, b, c, p, q, r: (5-r+2*b)/6
# u2 = lambda a, b, c, p, q, r: (3+2*a+2*c-q)/6
# u3 = lambda a, b, c, p, q, r: (1+b+p)/3
# u4 = lambda a, b, c, p, q, r: (1+c+q)/3
# u5 = lambda a, b, c, p, q, r: (3-b+2*p+2*r)/6
# u6 = lambda a, b, c, p, q, r: (5-a+2*q)/6
# a0 ... | 28.544776 | 115 | 0.490196 | 857 | 3,825 | 2.187865 | 0.091015 | 0.0672 | 0.0768 | 0.0864 | 0.926933 | 0.9152 | 0.871467 | 0.864 | 0.805333 | 0.805333 | 0 | 0.178775 | 0.265882 | 3,825 | 133 | 116 | 28.759399 | 0.48896 | 0.629281 | 0 | 0 | 0 | 0.05 | 0.144895 | 0.054805 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ead8c4d0421ee27fb75cb4c984207e91ac8c8aa3 | 190 | py | Python | .history/Time_20200514082034.py | EvanthiosPapadopoulos/Python3 | ab773fd458e365c1510f98ecac65965234c881e8 | [
"MIT"
] | 1 | 2020-05-18T17:50:00.000Z | 2020-05-18T17:50:00.000Z | Udemy/Complete_Python_Bootcamp/AdvanceP/Time.py | EvanthiosPapadopoulos/Python3 | ab773fd458e365c1510f98ecac65965234c881e8 | [
"MIT"
] | null | null | null | Udemy/Complete_Python_Bootcamp/AdvanceP/Time.py | EvanthiosPapadopoulos/Python3 | ab773fd458e365c1510f98ecac65965234c881e8 | [
"MIT"
] | null | null | null | from HeaderFiles import Header1
import timeit
print(timeit.timeit('"-".join(str(n) for n in range(100))', number=10000))
print(timeit.timeit('"-".join(map(str, range(100)))', number=10000))
| 38 | 74 | 0.715789 | 29 | 190 | 4.689655 | 0.551724 | 0.161765 | 0.25 | 0.308824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097143 | 0.078947 | 190 | 4 | 75 | 47.5 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0.347368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 7 |
eaeb759e1d33fc654c9e0803b3ab3982fb054b71 | 127,123 | py | Python | a.py | haijuga7/Dec-Enc-Hash | 3a64feb73940c955419d97ddd5001f77aa19dba9 | [
"Apache-2.0"
] | 3 | 2018-06-29T00:36:54.000Z | 2020-04-12T00:53:50.000Z | a.py | haijuga7/Dec-Enc-Hash | 3a64feb73940c955419d97ddd5001f77aa19dba9 | [
"Apache-2.0"
] | null | null | null | a.py | haijuga7/Dec-Enc-Hash | 3a64feb73940c955419d97ddd5001f77aa19dba9 | [
"Apache-2.0"
] | null | null | null | #Created By Mr.A_S
import marshal
exec(marshal.loads('''c\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00@\x00\x00\x00s~\r\x00\x00d\x00\x00d\x01\x00l\x00\x00Z\x00\x00i}\x00d\x02\x00d\x03\x006d\x04\x00d\x05\x006d\x06\x00d\x07\x006d\x08\x00d\t\x006d\n\x00d\x0b\x006d\x0c\x00d\r\x006d\x0e\x00d\x0f\x006d\x10\x00d\x11\x006d\... | 42,374.333333 | 127,089 | 0.771104 | 27,684 | 127,123 | 3.54024 | 0.033232 | 0.372337 | 0.215615 | 0.156722 | 0.827065 | 0.810852 | 0.800557 | 0.794588 | 0.792517 | 0.785946 | 0 | 0.448383 | 0.000716 | 127,123 | 3 | 127,089 | 42,374.333333 | 0.323139 | 0.000134 | 0 | 0 | 0 | 0.5 | 0.999654 | 0.998206 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 20 |
eaf0b91cc66e81f78e221c0781b99db261e83e51 | 112 | py | Python | __init__.py | Sherevv/robot | 84586670ff06e95eb0a4d73971b37f939e8dac67 | [
"MIT"
] | null | null | null | __init__.py | Sherevv/robot | 84586670ff06e95eb0a4d73971b37f939e8dac67 | [
"MIT"
] | null | null | null | __init__.py | Sherevv/robot | 84586670ff06e95eb0a4d73971b37f939e8dac67 | [
"MIT"
] | 1 | 2019-10-09T17:34:42.000Z | 2019-10-09T17:34:42.000Z | from .robot import Robot, RobotRot, RobotOrt, robot_engine
from .robot import exceptions
from .robot import bug
| 28 | 58 | 0.8125 | 16 | 112 | 5.625 | 0.5 | 0.3 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133929 | 112 | 3 | 59 | 37.333333 | 0.927835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
eaf8cb22310115004243097d8007fbc6fda1c804 | 2,861 | py | Python | deepconcolic/gen_fashion_mnist.py | nberth/DeepConcolic | baece182b34a50fbc781993b1d46bb293976ca9a | [
"BSD-3-Clause"
] | 102 | 2018-05-10T05:46:47.000Z | 2022-01-31T12:40:22.000Z | deepconcolic/gen_fashion_mnist.py | eriksali/DeepConcolic | baece182b34a50fbc781993b1d46bb293976ca9a | [
"BSD-3-Clause"
] | 19 | 2018-07-29T12:45:21.000Z | 2022-03-16T13:09:00.000Z | deepconcolic/gen_fashion_mnist.py | eriksali/DeepConcolic | baece182b34a50fbc781993b1d46bb293976ca9a | [
"BSD-3-Clause"
] | 43 | 2018-05-02T15:09:20.000Z | 2022-02-02T10:36:30.000Z | #!/usr/bin/env python3
from training import *
from datasets import load_fashion_mnist_data as load_data
# def make_small_model (input_shape, **kwds):
# return tf.keras.models.Sequential([
# tf.keras.layers.Conv2D(6, (5, 5), input_shape = input_shape),
# tf.keras.layers.Activation('relu'),
# ... | 38.146667 | 71 | 0.608528 | 367 | 2,861 | 4.626703 | 0.166213 | 0.19788 | 0.344523 | 0.243816 | 0.905772 | 0.859835 | 0.859835 | 0.857479 | 0.762073 | 0.742638 | 0 | 0.038949 | 0.228242 | 2,861 | 74 | 72 | 38.662162 | 0.730072 | 0.226844 | 0 | 0.711538 | 0 | 0 | 0.045993 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.038462 | 0.038462 | 0.115385 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
eaf92de11e6a9293ce8a63d78d2d14f9b87e3a70 | 107 | py | Python | test/__init__.py | ShabbirHasan1/cysimdjson | c83b2be6bc001358d2fde189d87be3d40f54d1de | [
"Apache-2.0"
] | 178 | 2021-03-09T15:10:32.000Z | 2022-03-31T10:03:06.000Z | test/__init__.py | ShabbirHasan1/cysimdjson | c83b2be6bc001358d2fde189d87be3d40f54d1de | [
"Apache-2.0"
] | 23 | 2021-03-09T15:15:47.000Z | 2022-03-23T12:20:37.000Z | test/__init__.py | ShabbirHasan1/cysimdjson | c83b2be6bc001358d2fde189d87be3d40f54d1de | [
"Apache-2.0"
] | 4 | 2021-03-15T01:57:33.000Z | 2022-03-28T13:13:57.000Z | from .test_array import *
from .test_document import *
from .test_scalar import *
from .test_capi import *
| 21.4 | 28 | 0.775701 | 16 | 107 | 4.9375 | 0.4375 | 0.405063 | 0.531646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149533 | 107 | 4 | 29 | 26.75 | 0.868132 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
d8153bd6a9ac901172e4d4c0dd6836a90dbc963d | 171,860 | py | Python | neutrinoBisect.py | HCasler/NeutrinoBisect | 6b35adcdf2703ecfeebcd152f6a813654d5a0327 | [
"MIT"
] | null | null | null | neutrinoBisect.py | HCasler/NeutrinoBisect | 6b35adcdf2703ecfeebcd152f6a813654d5a0327 | [
"MIT"
] | null | null | null | neutrinoBisect.py | HCasler/NeutrinoBisect | 6b35adcdf2703ecfeebcd152f6a813654d5a0327 | [
"MIT"
] | null | null | null | #! usr/bin/env python
import numpy as np
from datetime import datetime
import numpy.linalg as linalg
import math
import sys
class EventInput:
def __init__(self):
self.totalEnergy = 0.0
self.totalP = np.array([0.0, 0.0, 0.0])
self.antiMuP = np.array([0.0, 0.0, 0.0])
self.muP = np.a... | 328.604207 | 51,766 | 0.640975 | 36,678 | 171,860 | 3.002563 | 0.012487 | 0.041043 | 0.051322 | 0.036594 | 0.920157 | 0.905791 | 0.885542 | 0.850301 | 0.811665 | 0.788719 | 0 | 0.164501 | 0.087763 | 171,860 | 522 | 51,767 | 329.233716 | 0.537949 | 0.019632 | 0 | 0.311751 | 0 | 0 | 0.001639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.01199 | null | null | 0.002398 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
dc645228ccb100b1d855eee639dd758c50d3f8f6 | 3,806 | py | Python | userbot/plugins/nekos_stickers.py | meaall-com/Telebot | a08193ae6c3e5814b309d079e95c4951eafcbc19 | [
"MIT"
] | null | null | null | userbot/plugins/nekos_stickers.py | meaall-com/Telebot | a08193ae6c3e5814b309d079e95c4951eafcbc19 | [
"MIT"
] | null | null | null | userbot/plugins/nekos_stickers.py | meaall-com/Telebot | a08193ae6c3e5814b309d079e95c4951eafcbc19 | [
"MIT"
] | null | null | null | # Made
# Re-written by
# Kangers kwwp the credits
#Made
#From Nekos API
import datetime
from telethon import events
from telethon.errors.rpcerrorlist import YouBlockedUserError
from telethon.tl.functions.account import UpdateNotifySettingsRequest
from uniborg.util import admin_cmd
@borg.on(admin_... | 39.645833 | 102 | 0.622438 | 434 | 3,806 | 5.382488 | 0.221198 | 0.068493 | 0.047945 | 0.023973 | 0.844606 | 0.844606 | 0.844606 | 0.844606 | 0.844606 | 0.828767 | 0 | 0.014352 | 0.267735 | 3,806 | 95 | 103 | 40.063158 | 0.823825 | 0.034682 | 0 | 0.777778 | 0 | 0 | 0.210983 | 0.012889 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.061728 | 0 | 0.160494 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
f4d658a88e9d1eeb121247b89fe970c1a948472b | 39,336 | py | Python | vendor/penguin_client/penguin_client/api/_deprecated_ap_is_api.py | Sait0Yuuki/ArknightsAutoHelper | 5ecec0d120482c930181346cfdb8542090e169c1 | [
"MIT"
] | 1,035 | 2019-05-14T11:58:32.000Z | 2022-03-16T15:09:53.000Z | vendor/penguin_client/penguin_client/api/_deprecated_ap_is_api.py | Sait0Yuuki/ArknightsAutoHelper | 5ecec0d120482c930181346cfdb8542090e169c1 | [
"MIT"
] | 209 | 2019-05-11T13:19:57.000Z | 2022-03-12T01:42:11.000Z | vendor/penguin_client/penguin_client/api/_deprecated_ap_is_api.py | Sait0Yuuki/ArknightsAutoHelper | 5ecec0d120482c930181346cfdb8542090e169c1 | [
"MIT"
] | 254 | 2019-05-13T09:06:54.000Z | 2022-03-16T09:47:44.000Z | # coding: utf-8
"""
Penguin Statistics - REST APIs
Backend APIs for Arknights drop rate statistics website 'Penguin Statistics': https://penguin-stats.io/ # noqa: E501
OpenAPI spec version: 2.0.0
Contact: alvissreimu@gmail.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
... | 37.320683 | 136 | 0.604357 | 4,660 | 39,336 | 4.788841 | 0.03927 | 0.04732 | 0.027604 | 0.03549 | 0.949588 | 0.939147 | 0.925928 | 0.912619 | 0.904284 | 0.895994 | 0 | 0.01781 | 0.304861 | 39,336 | 1,053 | 137 | 37.356125 | 0.79831 | 0.30092 | 0 | 0.774869 | 0 | 0 | 0.174225 | 0.058325 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04014 | false | 0 | 0.006981 | 0 | 0.106457 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
f4f95b5a6e8a416e1850ff36d84db23b8fbd90bf | 26,474 | py | Python | tests/bugs/core_2238_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2022-02-05T11:37:13.000Z | 2022-02-05T11:37:13.000Z | tests/bugs/core_2238_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-09-03T11:47:00.000Z | 2021-09-03T12:42:10.000Z | tests/bugs/core_2238_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-06-30T14:14:16.000Z | 2021-06-30T14:14:16.000Z | #coding:utf-8
#
# id: bugs.core_2238
# title: UTF8 and large varchar fields, is disinct from > Implementation limit exceeded.
# decription:
# Test operates with literals of utf8 charset with length = exactly 8191 symbols.
# We insert such literal and then try to u... | 389.323529 | 8,211 | 0.819257 | 3,451 | 26,474 | 6.272095 | 0.231817 | 0.00693 | 0.002772 | 0.004435 | 0.953153 | 0.953153 | 0.953153 | 0.950889 | 0.950889 | 0.950889 | 0 | 0.002909 | 0.143122 | 26,474 | 67 | 8,212 | 395.134328 | 0.951245 | 0.030823 | 0 | 0.361111 | 0 | 0.083333 | 0.980458 | 0.005032 | 0 | 0 | 0 | 0 | 0.027778 | 1 | 0.027778 | false | 0 | 0.055556 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
7621fa787cc5d04ebb04f7b7b4d20aebdd830c54 | 152 | py | Python | tests/fixtures/defxmlschema/chapter04/__init__.py | nimish/xsdata | 7afe2781b66982428cc1731f53c065086acd35c1 | [
"MIT"
] | null | null | null | tests/fixtures/defxmlschema/chapter04/__init__.py | nimish/xsdata | 7afe2781b66982428cc1731f53c065086acd35c1 | [
"MIT"
] | null | null | null | tests/fixtures/defxmlschema/chapter04/__init__.py | nimish/xsdata | 7afe2781b66982428cc1731f53c065086acd35c1 | [
"MIT"
] | null | null | null | from tests.fixtures.defxmlschema.chapter04.example04053 import OrderDetails
from tests.fixtures.defxmlschema.chapter04.example04052 import OrderSummary
| 50.666667 | 75 | 0.894737 | 16 | 152 | 8.5 | 0.625 | 0.132353 | 0.25 | 0.426471 | 0.558824 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097222 | 0.052632 | 152 | 2 | 76 | 76 | 0.847222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
520048f32c5df01577f8ce76e053c32474eafc6e | 4,402 | py | Python | authors/apps/articles/tests/test_search.py | andela/ah-backend-zeus | 44e2f554c4a7a10c06bd3c7be42fc91571c09f29 | [
"BSD-3-Clause"
] | 1 | 2019-03-22T09:13:35.000Z | 2019-03-22T09:13:35.000Z | authors/apps/articles/tests/test_search.py | andela/ah-backend-zeus | 44e2f554c4a7a10c06bd3c7be42fc91571c09f29 | [
"BSD-3-Clause"
] | 13 | 2018-11-27T16:48:25.000Z | 2021-06-10T21:00:19.000Z | authors/apps/articles/tests/test_search.py | andela/ah-backend-zeus | 44e2f554c4a7a10c06bd3c7be42fc91571c09f29 | [
"BSD-3-Clause"
] | 9 | 2018-11-23T11:10:24.000Z | 2019-04-04T11:04:33.000Z | from rest_framework.test import APIClient
from rest_framework import status
from .base_test import BaseTest
class SearchTest(BaseTest):
def test_search_article_by_author(self):
reponse = self.client.post(
'/api/articles/',
data=self.new_article,
format='json')
... | 34.661417 | 76 | 0.625625 | 500 | 4,402 | 5.326 | 0.102 | 0.129553 | 0.073601 | 0.060083 | 0.903868 | 0.883214 | 0.871198 | 0.871198 | 0.865941 | 0.865941 | 0 | 0.016487 | 0.242163 | 4,402 | 127 | 77 | 34.661417 | 0.781775 | 0 | 0 | 0.755319 | 0 | 0 | 0.143539 | 0.06064 | 0 | 0 | 0 | 0 | 0.255319 | 1 | 0.085106 | false | 0 | 0.031915 | 0 | 0.12766 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
520376800e12355c3c4d39dac0e20d661f57ecf7 | 3,469 | py | Python | tests/test_dag.py | ligo-asimov/asimov | 0b4e59bbd88ccab642ff044208a55cdf7333d81b | [
"0BSD"
] | 2 | 2020-11-27T02:56:12.000Z | 2021-05-26T01:08:52.000Z | tests/test_dag.py | transientlunatic/asimov | 93d0b52be43b2a6ad0a1ee424338d98a69354bda | [
"0BSD"
] | 3 | 2022-02-16T17:42:41.000Z | 2022-03-17T20:55:02.000Z | tests/test_dag.py | ligo-asimov/asimov | 0b4e59bbd88ccab642ff044208a55cdf7333d81b | [
"0BSD"
] | null | null | null | import os
import unittest
import asimov.event
import git
class DAGTests(unittest.TestCase):
"""All the tests to check production DAGs are generated successfully."""
@classmethod
def setUpClass(cls):
cls.cwd = os.getcwd()
repo = git.Repo.init(cls.cwd+"/tests/test_data/s000000xx/")
os... | 27.975806 | 89 | 0.659556 | 435 | 3,469 | 5.181609 | 0.23908 | 0.042591 | 0.051908 | 0.103815 | 0.751553 | 0.751553 | 0.744011 | 0.717391 | 0.696096 | 0.673026 | 0 | 0.071799 | 0.221101 | 3,469 | 123 | 90 | 28.203252 | 0.762398 | 0.087922 | 0 | 0.705357 | 1 | 0 | 0.631931 | 0.192798 | 0 | 0 | 0 | 0 | 0.026786 | 1 | 0.053571 | false | 0.017857 | 0.035714 | 0 | 0.098214 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
870010ddf78ef3beedd3ecdececf05145dadf419 | 7,861 | py | Python | tests/unit/apps/forum_member/test_receivers.py | tim-schilling/django-machina | c48d31b2313b59d810771ee53909d941e7475679 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/apps/forum_member/test_receivers.py | tim-schilling/django-machina | c48d31b2313b59d810771ee53909d941e7475679 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/apps/forum_member/test_receivers.py | tim-schilling/django-machina | c48d31b2313b59d810771ee53909d941e7475679 | [
"BSD-3-Clause"
] | null | null | null | import pytest
from machina.core.db.models import get_model
from machina.test.factories import PostFactory, UserFactory, create_forum, create_topic
ForumProfile = get_model('forum_member', 'ForumProfile')
@pytest.mark.django_db
class TestIncreasePostsCountReceiver(object):
def test_can_increase_the_posts_count_... | 37.793269 | 99 | 0.680066 | 957 | 7,861 | 5.297806 | 0.095089 | 0.095464 | 0.071795 | 0.149112 | 0.891716 | 0.840039 | 0.839448 | 0.808876 | 0.776134 | 0.729191 | 0 | 0.01228 | 0.233431 | 7,861 | 207 | 100 | 37.975845 | 0.829074 | 0.036637 | 0 | 0.77931 | 0 | 0 | 0.004248 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 1 | 0.089655 | false | 0 | 0.02069 | 0 | 0.144828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
870f1f15b94799af9cb23688a7222482e32a4c9a | 71 | py | Python | tests/test_logic.py | gaborbernat/pugs | 7585a2c6775998d9d3946db08629c5d08096088d | [
"MIT"
] | 14 | 2019-02-13T08:41:48.000Z | 2021-09-15T06:59:26.000Z | tests/test_logic.py | gaborbernat/pugs | 7585a2c6775998d9d3946db08629c5d08096088d | [
"MIT"
] | null | null | null | tests/test_logic.py | gaborbernat/pugs | 7585a2c6775998d9d3946db08629c5d08096088d | [
"MIT"
] | 3 | 2019-02-14T05:12:09.000Z | 2020-11-09T13:21:31.000Z | from pugs.logic import do_tell
def test_init():
assert do_tell()
| 11.833333 | 30 | 0.71831 | 12 | 71 | 4 | 0.833333 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197183 | 71 | 5 | 31 | 14.2 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 7 |
876faf72b14c1d70355b0ac166d329525741a492 | 160 | py | Python | botmaker/helpers.py | cuenca-mx/botmaker-python | ac5d99f99b1cb463359941e19e9188f05649f084 | [
"MIT"
] | 2 | 2019-02-06T19:02:32.000Z | 2020-04-15T16:44:43.000Z | botmaker/helpers.py | cuenca-mx/botmaker-python | ac5d99f99b1cb463359941e19e9188f05649f084 | [
"MIT"
] | 13 | 2019-02-07T20:43:03.000Z | 2022-03-23T17:52:03.000Z | botmaker/helpers.py | cuenca-mx/botmaker-python | ac5d99f99b1cb463359941e19e9188f05649f084 | [
"MIT"
] | 1 | 2020-01-29T21:04:32.000Z | 2020-01-29T21:04:32.000Z | import re
SANITIZE_PHONE_NUMBER = re.compile(r'[+.()\-\s]')
def sanitize_phone_number(phone_number):
return SANITIZE_PHONE_NUMBER.sub(r'', phone_number)
| 20 | 55 | 0.74375 | 23 | 160 | 4.826087 | 0.478261 | 0.495496 | 0.513514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10625 | 160 | 7 | 56 | 22.857143 | 0.776224 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
5e4fb26bf46acf1640d433ab4c822d6e03631faf | 2,337 | py | Python | bitbar/battery.5s.py | fenhl/syncbin | 1dd83837721e6c74ed7e564cabe592dfe3245acf | [
"MIT"
] | 3 | 2020-01-21T10:12:29.000Z | 2020-10-22T05:00:18.000Z | bitbar/battery.5s.py | fenhl/syncbin | 1dd83837721e6c74ed7e564cabe592dfe3245acf | [
"MIT"
] | 3 | 2017-09-30T05:29:11.000Z | 2021-07-16T13:39:18.000Z | bitbar/battery.5s.py | fenhl/syncbin | 1dd83837721e6c74ed7e564cabe592dfe3245acf | [
"MIT"
] | null | null | null | #!/usr/local/bin/python3
import sys
sys.path.append('/opt/git/fenhl.net/syncbin-private/master/python')
import batcharge_macbook
BATTERY_IMAGE = 'iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAABYlAAAWJQFJUiTwAAABWWlUWHRYTUw6Y2... | 111.285714 | 919 | 0.914848 | 92 | 2,337 | 23.108696 | 0.565217 | 0.045155 | 0.041392 | 0.56444 | 0.060207 | 0.060207 | 0.060207 | 0.060207 | 0.060207 | 0.060207 | 0 | 0.096145 | 0.034232 | 2,337 | 20 | 920 | 116.85 | 0.845813 | 0.009842 | 0 | 0.142857 | 0 | 0.071429 | 0.810203 | 0.781669 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.428571 | 0 | 0 | 1 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
5e7d249fd8385cd6f8b41a540fad65489cdaab3e | 139 | py | Python | api/movie_database/movies/admin.py | cocorocho/movie_database | a1fbcb432612c00cf8bd43952442714b5f2bdb35 | [
"MIT"
] | null | null | null | api/movie_database/movies/admin.py | cocorocho/movie_database | a1fbcb432612c00cf8bd43952442714b5f2bdb35 | [
"MIT"
] | null | null | null | api/movie_database/movies/admin.py | cocorocho/movie_database | a1fbcb432612c00cf8bd43952442714b5f2bdb35 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Genre, Director, Movie, Poster
admin.site.register([Genre, Director, Movie, Poster]) | 27.8 | 53 | 0.784173 | 19 | 139 | 5.736842 | 0.631579 | 0.238532 | 0.330275 | 0.440367 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115108 | 139 | 5 | 53 | 27.8 | 0.886179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
5eb79a15273693040686b8985bc9cf6a76a413ed | 1,313 | py | Python | examples/domain_relevant.py | jinji-hanbin/python-sdk | db11d919e0db433d6f12507a58a149191d7ccd35 | [
"MIT"
] | 494 | 2015-01-08T09:56:30.000Z | 2022-03-28T03:15:22.000Z | examples/domain_relevant.py | jinji-hanbin/python-sdk | db11d919e0db433d6f12507a58a149191d7ccd35 | [
"MIT"
] | 189 | 2015-01-26T06:46:19.000Z | 2022-03-28T04:06:16.000Z | examples/domain_relevant.py | jinji-hanbin/python-sdk | db11d919e0db433d6f12507a58a149191d7ccd35 | [
"MIT"
] | 306 | 2015-01-24T05:56:05.000Z | 2021-12-21T12:15:57.000Z | # -*- coding: utf-8 -*-
from qiniu import QiniuMacAuth, DomainManager
import json
"""域名上线"""
# 七牛账号的 公钥和私钥
access_key = "<access_key>"
secret_key = "<secret_key>"
auth = QiniuMacAuth(access_key, secret_key)
manager = DomainManager(auth)
# 域名
name = "zhuchangzhao2.peterpy.cn"
ret, res = manager.domain_online(name)... | 21.52459 | 75 | 0.718964 | 190 | 1,313 | 4.778947 | 0.242105 | 0.089207 | 0.118943 | 0.118943 | 0.84141 | 0.84141 | 0.84141 | 0.84141 | 0.84141 | 0.84141 | 0 | 0.006897 | 0.116527 | 1,313 | 60 | 76 | 21.883333 | 0.775862 | 0.050267 | 0 | 0.793103 | 0 | 0 | 0.111663 | 0.019851 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.068966 | 0.206897 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
0d7c7a3671bbdb3ef2873101ad3358379800ea73 | 3,831 | py | Python | backend/django/campsignup/backend/tests/test_groups_owners.py | Ring-deutscher-PfadfinderInnenverbande/campsignup | 1e182322d31dc41083fa06138d709eddc4f448be | [
"MIT"
] | null | null | null | backend/django/campsignup/backend/tests/test_groups_owners.py | Ring-deutscher-PfadfinderInnenverbande/campsignup | 1e182322d31dc41083fa06138d709eddc4f448be | [
"MIT"
] | null | null | null | backend/django/campsignup/backend/tests/test_groups_owners.py | Ring-deutscher-PfadfinderInnenverbande/campsignup | 1e182322d31dc41083fa06138d709eddc4f448be | [
"MIT"
] | null | null | null | import json
from django.test import TestCase
from django.core import management
from pprint import pprint
from rest_framework.test import APIClient
from backend.models import Participant, Group
from .common import common
class GroupOwnerTestCase(TestCase):
def setUp(self):
management.call_command("crea... | 37.558824 | 84 | 0.651266 | 450 | 3,831 | 5.488889 | 0.188889 | 0.103239 | 0.076923 | 0.076923 | 0.778947 | 0.778947 | 0.778947 | 0.778947 | 0.778947 | 0.778947 | 0 | 0.025429 | 0.209606 | 3,831 | 102 | 85 | 37.558824 | 0.790291 | 0.029496 | 0 | 0.710526 | 0 | 0 | 0.145244 | 0.062247 | 0 | 0 | 0 | 0 | 0.223684 | 1 | 0.026316 | false | 0.131579 | 0.092105 | 0 | 0.131579 | 0.013158 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
0da0677bca9b21c67265e3764d6a8204de84507e | 36,236 | py | Python | nitorch/core/fft.py | balbasty/nitorch | d30c3125a8a66ea1434f2b39ed03338afd9724b4 | [
"MIT"
] | 46 | 2020-07-31T10:14:05.000Z | 2022-03-24T12:51:46.000Z | nitorch/core/fft.py | balbasty/nitorch | d30c3125a8a66ea1434f2b39ed03338afd9724b4 | [
"MIT"
] | 36 | 2020-10-06T19:01:38.000Z | 2022-02-03T18:07:35.000Z | nitorch/core/fft.py | balbasty/nitorch | d30c3125a8a66ea1434f2b39ed03338afd9724b4 | [
"MIT"
] | 6 | 2021-01-05T14:59:05.000Z | 2021-11-18T18:26:45.000Z | """Fourier transform module with backward compatibility
PyTorch introduced support for complex data types in version 1.6.
Before that, complex tensor were stored in real data types with an
additional dimension encoding the real and imaginary components.
Specifically, this convention was used in the fft/rfft/ifft funct... | 32.152618 | 83 | 0.599956 | 5,065 | 36,236 | 4.235538 | 0.071668 | 0.018599 | 0.013984 | 0.02657 | 0.810143 | 0.788281 | 0.764695 | 0.744092 | 0.723768 | 0.718175 | 0 | 0.013265 | 0.292665 | 36,236 | 1,126 | 84 | 32.181172 | 0.823729 | 0.495805 | 0 | 0.710177 | 0 | 0 | 0.018297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044248 | false | 0 | 0.00885 | 0 | 0.150442 | 0.004425 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
0dba8f98a1e2e6c36375e44e91609ed0b3a5e5d2 | 32,777 | py | Python | sdk/python/pulumi_azure/devtest/schedule.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 109 | 2018-06-18T00:19:44.000Z | 2022-02-20T05:32:57.000Z | sdk/python/pulumi_azure/devtest/schedule.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 663 | 2018-06-18T21:08:46.000Z | 2022-03-31T20:10:11.000Z | sdk/python/pulumi_azure/devtest/schedule.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 41 | 2018-07-19T22:37:38.000Z | 2022-03-14T10:56:26.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 47.229107 | 214 | 0.661348 | 3,780 | 32,777 | 5.52328 | 0.058201 | 0.082719 | 0.07108 | 0.053741 | 0.91115 | 0.900613 | 0.874126 | 0.861912 | 0.858799 | 0.835329 | 0 | 0.002994 | 0.235714 | 32,777 | 693 | 215 | 47.297258 | 0.830426 | 0.308143 | 0 | 0.769417 | 1 | 0 | 0.150458 | 0.06751 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162621 | false | 0.002427 | 0.01699 | 0.029126 | 0.276699 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
2195fbd37ec78f0c6c799da7c276cff1a2fd1e6c | 2,384 | py | Python | coh-metrix_3/lsa_cos3.py | Lee-guccii/ExtensiveReading_YL_Estimation | 89e3d4aacdc6e7d812b8cedc24f37e1f173087bc | [
"MIT"
] | null | null | null | coh-metrix_3/lsa_cos3.py | Lee-guccii/ExtensiveReading_YL_Estimation | 89e3d4aacdc6e7d812b8cedc24f37e1f173087bc | [
"MIT"
] | null | null | null | coh-metrix_3/lsa_cos3.py | Lee-guccii/ExtensiveReading_YL_Estimation | 89e3d4aacdc6e7d812b8cedc24f37e1f173087bc | [
"MIT"
] | null | null | null | from numpy import *
from scipy import linalg
#lsa.pyで出てきた配列をAに代入する
A = matrix([ [0.0, 0.040156145945947554, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.02998017555240157, 0.0, 0.05996035110480314, 0.02998017555240157, 0.02998017555240157, 0.02998017555240157, 0.0, 0.02998017555240157, 0.0, 0.0, 0.02998017555240157, 0.0, 0.0,... | 88.296296 | 391 | 0.699245 | 437 | 2,384 | 3.814645 | 0.100687 | 0.284343 | 0.343731 | 0.34793 | 0.773845 | 0.720456 | 0.716857 | 0.629874 | 0.605879 | 0.45051 | 0 | 0.677918 | 0.105285 | 2,384 | 26 | 392 | 91.692308 | 0.10361 | 0.017617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.055556 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 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 | 7 |
21a11cec17006998db2cd69cfb41b493e49eb088 | 203 | py | Python | savageml/models/__init__.py | savagewil/SavageML | d5aa9a5305b5de088e3bf32778252c877faec41d | [
"MIT"
] | null | null | null | savageml/models/__init__.py | savagewil/SavageML | d5aa9a5305b5de088e3bf32778252c877faec41d | [
"MIT"
] | null | null | null | savageml/models/__init__.py | savagewil/SavageML | d5aa9a5305b5de088e3bf32778252c877faec41d | [
"MIT"
] | null | null | null | from .base_model import BaseModel
from .matix_net_model import MatrixNetModel
from .layerless_dense_net_model import LayerlessDenseNetModel
from .layerless_sparse_net_model import LayerlessSparseNetModel | 50.75 | 63 | 0.906404 | 25 | 203 | 7 | 0.52 | 0.251429 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073892 | 203 | 4 | 63 | 50.75 | 0.930851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
21f281f83ae8638074a29bcdd23a8c16debf1ad5 | 175 | py | Python | qutip/quantum_info/__init__.py | trxw/qutip | b923c973edd9a071d86eb849650661549f73585f | [
"BSD-3-Clause"
] | 1 | 2015-11-06T06:35:06.000Z | 2015-11-06T06:35:06.000Z | qutip/quantum_info/__init__.py | trxw/qutip | b923c973edd9a071d86eb849650661549f73585f | [
"BSD-3-Clause"
] | null | null | null | qutip/quantum_info/__init__.py | trxw/qutip | b923c973edd9a071d86eb849650661549f73585f | [
"BSD-3-Clause"
] | null | null | null | from qutip.quantum_info.register import Register
from qutip.quantum_info.circuit import Circuit
from qutip.quantum_info.states import *
from qutip.quantum_info.gates import *
| 35 | 48 | 0.851429 | 26 | 175 | 5.576923 | 0.346154 | 0.248276 | 0.441379 | 0.551724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091429 | 175 | 4 | 49 | 43.75 | 0.91195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
21fb5f77cdb7e3926bc65f97979729bea5a142c3 | 42,526 | py | Python | tests/github-triggers.py | fossabot/kraken-3 | 7ac472de8ff6f44aac4dbd231f896f00e6f3b278 | [
"Apache-2.0"
] | 66 | 2020-08-14T12:52:39.000Z | 2022-03-31T13:56:25.000Z | tests/github-triggers.py | kinsanras/kraken | 3938ee4e65ba8f67ec5ee0e912b43fad84548f2c | [
"Apache-2.0"
] | 110 | 2020-07-23T07:12:09.000Z | 2022-03-26T05:54:18.000Z | tests/github-triggers.py | kinsanras/kraken | 3938ee4e65ba8f67ec5ee0e912b43fad84548f2c | [
"Apache-2.0"
] | 4 | 2021-03-10T05:25:03.000Z | 2022-01-24T10:12:33.000Z | #!/usr/bin/env python3
import json
import urllib.request
def do_push():
payload = {
"ref": "refs/heads/master",
"before": "c172e165cd0982046b3578afe2b01efa901f5b4f",
"after": "6ce92756d435d9a73171ea935572b71b82d0c141",
"repository": {
"id": 280832057,
"node_id": "MDEwOlJlc... | 53.967005 | 126 | 0.568852 | 4,691 | 42,526 | 5.043914 | 0.072266 | 0.116774 | 0.159165 | 0.193272 | 0.918516 | 0.914881 | 0.910908 | 0.908077 | 0.906471 | 0.904738 | 0 | 0.040709 | 0.254268 | 42,526 | 787 | 127 | 54.035578 | 0.705389 | 0.010558 | 0 | 0.784759 | 0 | 0.058824 | 0.633971 | 0.042387 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004011 | false | 0 | 0.002674 | 0 | 0.006684 | 0.002674 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
df23a8a0f8f41fe5e1b7ecc7609a47a2d61a6bdf | 50,847 | py | Python | src/business/migrations/0001_initial.py | 559Labs/printaura-api-sync | d126d750b1f2915987c0b3b10b5ff395516c371d | [
"Apache-2.0"
] | 7 | 2016-12-16T12:02:56.000Z | 2021-03-14T03:13:20.000Z | src/business/migrations/0001_initial.py | 559Labs/printaura-api-sync | d126d750b1f2915987c0b3b10b5ff395516c371d | [
"Apache-2.0"
] | 95 | 2016-12-07T19:13:51.000Z | 2017-03-10T16:16:16.000Z | src/business/migrations/0001_initial.py | 559Labs/printaura-api-sync | d126d750b1f2915987c0b3b10b5ff395516c371d | [
"Apache-2.0"
] | 3 | 2021-02-19T10:16:01.000Z | 2021-03-14T03:13:21.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-08 23:38
from __future__ import unicode_literals
from decimal import Decimal
from django.db import migrations, models
import django.db.models.deletion
import timezone_field.fields
import uuid
class Migration(migrations.Migration):
initial = True
... | 66.992095 | 247 | 0.599957 | 5,257 | 50,847 | 5.634582 | 0.067339 | 0.130718 | 0.104318 | 0.080821 | 0.815604 | 0.79869 | 0.737922 | 0.723237 | 0.711927 | 0.697647 | 0 | 0.011573 | 0.245482 | 50,847 | 758 | 248 | 67.080475 | 0.760511 | 0.001337 | 0 | 0.62 | 1 | 0.001333 | 0.187057 | 0.010989 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.008 | 0 | 0.013333 | 0.001333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
df2d09f6e50834c8a101d86b240f75873567ab0d | 83 | py | Python | todo/todos/models/__init__.py | hadipirhadi/scalors-assignment-backend | 93d28b9be23375eeb27eaa17663bd86e06318000 | [
"MIT"
] | null | null | null | todo/todos/models/__init__.py | hadipirhadi/scalors-assignment-backend | 93d28b9be23375eeb27eaa17663bd86e06318000 | [
"MIT"
] | null | null | null | todo/todos/models/__init__.py | hadipirhadi/scalors-assignment-backend | 93d28b9be23375eeb27eaa17663bd86e06318000 | [
"MIT"
] | null | null | null | from .board_model import *
from .todo_model import *
from .reminder_model import *
| 20.75 | 29 | 0.783133 | 12 | 83 | 5.166667 | 0.5 | 0.532258 | 0.483871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144578 | 83 | 3 | 30 | 27.666667 | 0.873239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
10d57ca4c602b6d7d61fb7f16776e481a3867f0d | 730 | py | Python | Codewars/8kyu/a-wolf-in-sheeps-clothing/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | 7 | 2017-09-20T16:40:39.000Z | 2021-08-31T18:15:08.000Z | Codewars/8kyu/a-wolf-in-sheeps-clothing/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | Codewars/8kyu/a-wolf-in-sheeps-clothing/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | # Python - 3.6.0
test.assert_equals(warn_the_sheep(['sheep', 'sheep', 'sheep', 'sheep', 'sheep', 'wolf', 'sheep', 'sheep']), 'Oi! Sheep number 2! You are about to be eaten by a wolf!')
test.assert_equals(warn_the_sheep(['sheep', 'wolf', 'sheep', 'sheep', 'sheep', 'sheep', 'sheep']), 'Oi! Sheep number 5! You are about ... | 91.25 | 167 | 0.673973 | 122 | 730 | 3.909836 | 0.254098 | 0.398323 | 0.377358 | 0.33543 | 0.87631 | 0.819707 | 0.78826 | 0.769392 | 0.530398 | 0.530398 | 0 | 0.010989 | 0.127397 | 730 | 7 | 168 | 104.285714 | 0.737834 | 0.019178 | 0 | 0 | 0 | 0 | 0.553221 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
803c0ba19b6c3ef6580f2e474ea806f5cfc1086b | 124 | py | Python | tssearch/__init__.py | mluacnunes/tssearch | e8e2cd9f07d66eeec8a839fe72c259232f968da9 | [
"BSD-3-Clause"
] | 11 | 2021-11-11T15:21:14.000Z | 2022-03-31T23:28:34.000Z | tssearch/__init__.py | MargaridaAntunes/tssearch | d29c47c6176ebbb25c8785da843946bf3eb27721 | [
"BSD-3-Clause"
] | 1 | 2022-01-23T02:36:02.000Z | 2022-01-24T17:13:32.000Z | tssearch/__init__.py | MargaridaAntunes/tssearch | d29c47c6176ebbb25c8785da843946bf3eb27721 | [
"BSD-3-Clause"
] | 5 | 2021-12-13T21:46:36.000Z | 2022-03-31T23:29:36.000Z | from tssearch.utils import *
from tssearch.search import *
from tssearch.distances import *
from tssearch.examples import *
| 24.8 | 32 | 0.806452 | 16 | 124 | 6.25 | 0.4375 | 0.48 | 0.54 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 124 | 4 | 33 | 31 | 0.925926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
33872c09f0ad4442e9ccc284b58573e9e2e475dc | 43,340 | py | Python | KAFIU 2021-1.0-^.py | ArdaKC/KCS-Auto-Firefox-Installer-Uninstaller | 884d866670afaa69593d8c9c43237f53958e1cd1 | [
"MIT"
] | 2 | 2021-08-25T11:01:12.000Z | 2021-08-31T22:19:51.000Z | KAFIU 2021-1.0-^.py | ArdaKC/KCS-Auto-Firefox-Installer-Uninstaller | 884d866670afaa69593d8c9c43237f53958e1cd1 | [
"MIT"
] | null | null | null | KAFIU 2021-1.0-^.py | ArdaKC/KCS-Auto-Firefox-Installer-Uninstaller | 884d866670afaa69593d8c9c43237f53958e1cd1 | [
"MIT"
] | null | null | null | import os
import requests
import tarfile
import shutil
import base64
language = "1"
if language == "1":
print("KCS Auto Firefox Installer & Uninstaller 2021.1.0-^")
print("Hangi Firefox Sürümünü Kurmak İstiyorsunuz?")
print("Firefox Release : 1")
print("Firefox Beta ... | 121.061453 | 4,943 | 0.849885 | 1,521 | 43,340 | 24.206443 | 0.12689 | 0.005215 | 0.011951 | 0.016133 | 0.976859 | 0.975583 | 0.969743 | 0.964746 | 0.962383 | 0.962383 | 0 | 0.129481 | 0.108468 | 43,340 | 357 | 4,944 | 121.40056 | 0.822925 | 0 | 0 | 0.766038 | 0 | 0.030189 | 0.789481 | 0.705846 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018868 | 0 | 0.018868 | 0.237736 | 0 | 0 | 1 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 13 |
1d3d5229ab1a4c8c9203c84ea9d576ff699f039e | 188 | py | Python | example/example/settings_docs.py | beatap123/django-getpaid | 12dd78715b3b20ef00d7a1fc1dc8e3c15f2371a3 | [
"MIT"
] | 15 | 2019-03-11T12:54:54.000Z | 2021-05-28T03:55:12.000Z | example/example/settings_docs.py | beatap123/django-getpaid | 12dd78715b3b20ef00d7a1fc1dc8e3c15f2371a3 | [
"MIT"
] | null | null | null | example/example/settings_docs.py | beatap123/django-getpaid | 12dd78715b3b20ef00d7a1fc1dc8e3c15f2371a3 | [
"MIT"
] | 4 | 2019-01-10T10:58:39.000Z | 2021-01-15T23:14:13.000Z | # flake8: noqa
import os
import sys
sys.path.insert(0, os.getcwd())
sys.path.insert(0, os.path.join(os.getcwd(), os.pardir))
# noinspection PyUnresolvedReferences
from .settings import *
| 20.888889 | 56 | 0.75 | 28 | 188 | 5.035714 | 0.535714 | 0.099291 | 0.184397 | 0.198582 | 0.22695 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.106383 | 188 | 8 | 57 | 23.5 | 0.821429 | 0.255319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
1d6289e23ccd65b3e06a3a48dc743275c7a75ac9 | 4,610 | py | Python | tests/test_load_balancers.py | geraxe/dolib | 2728db044a65b0bba15e7bfbc633d24a21b955d0 | [
"MIT"
] | 5 | 2020-05-30T05:20:06.000Z | 2021-05-21T21:42:34.000Z | tests/test_load_balancers.py | geraxe/dolib | 2728db044a65b0bba15e7bfbc633d24a21b955d0 | [
"MIT"
] | 17 | 2020-05-30T08:17:10.000Z | 2021-06-20T13:26:37.000Z | tests/test_load_balancers.py | geraxe/dolib | 2728db044a65b0bba15e7bfbc633d24a21b955d0 | [
"MIT"
] | 3 | 2020-05-30T05:28:08.000Z | 2021-04-10T17:07:02.000Z | import pytest
from dolib.client import AsyncClient, Client
from dolib.models import LoadBalancer
@pytest.mark.vcr
@pytest.mark.block_network()
def test_crud_load_balancers(client: Client) -> None:
load_balancer = LoadBalancer(
name="dolib-test-loadbalancer",
region="fra1",
forwarding_rule... | 31.575342 | 88 | 0.706508 | 543 | 4,610 | 5.668508 | 0.11418 | 0.218324 | 0.135153 | 0.05848 | 0.934373 | 0.931124 | 0.899285 | 0.866797 | 0.866797 | 0.830409 | 0 | 0.008774 | 0.208894 | 4,610 | 145 | 89 | 31.793103 | 0.835207 | 0.066594 | 0 | 0.607843 | 0 | 0 | 0.038282 | 0.02521 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.009804 | false | 0 | 0.029412 | 0 | 0.039216 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.