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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1ada41c174e08b929d3d7bf9ab1f0f24b13058f3 | 189 | py | Python | servicebox/tenancy/admin.py | FlxPeters/servicebox | 2fc39fa5ec6e629a0794fda003a7a0e4adf05202 | [
"Apache-2.0"
] | null | null | null | servicebox/tenancy/admin.py | FlxPeters/servicebox | 2fc39fa5ec6e629a0794fda003a7a0e4adf05202 | [
"Apache-2.0"
] | null | null | null | servicebox/tenancy/admin.py | FlxPeters/servicebox | 2fc39fa5ec6e629a0794fda003a7a0e4adf05202 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import Tenant, TenantGroup
from mptt.admin import MPTTModelAdmin
admin.site.register(TenantGroup, MPTTModelAdmin)
admin.site.register(Tenant)
| 27 | 48 | 0.84127 | 24 | 189 | 6.625 | 0.5 | 0.238994 | 0.289308 | 0.389937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089947 | 189 | 6 | 49 | 31.5 | 0.924419 | 0 | 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 | 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 |
1ae528b0b3c66ec299c29d01fe2ed3cbe07122b6 | 47,578 | py | Python | UnitTest/testData.py | STRATOLOGIC/SpacePyLibrary | 89fc3873c6d787ad4e391f6080d9dd3218ffc4a2 | [
"MIT"
] | 22 | 2015-01-22T13:40:22.000Z | 2022-02-19T02:03:12.000Z | UnitTest/testData.py | STRATOLOGIC/SpacePyLibrary | 89fc3873c6d787ad4e391f6080d9dd3218ffc4a2 | [
"MIT"
] | 3 | 2018-09-28T13:14:40.000Z | 2022-02-08T14:19:13.000Z | UnitTest/testData.py | STRATOLOGIC/SpacePyLibrary | 89fc3873c6d787ad4e391f6080d9dd3218ffc4a2 | [
"MIT"
] | 11 | 2016-06-01T11:53:56.000Z | 2022-02-08T14:19:34.000Z | #******************************************************************************
# (C) 2018, Stefan Korner, Austria *
# *
# The Space Python Library is free software; you can redistribute it and/or *
... | 47.388446 | 106 | 0.655849 | 7,491 | 47,578 | 4.105593 | 0.059805 | 0.844351 | 1.181466 | 1.481125 | 0.874199 | 0.861486 | 0.844578 | 0.841977 | 0.834954 | 0.834954 | 0 | 0.472546 | 0.193472 | 47,578 | 1,003 | 107 | 47.435693 | 0.328929 | 0.02539 | 0 | 0.601626 | 0 | 0 | 0.003195 | 0.003108 | 0 | 0 | 0.569344 | 0 | 0 | 1 | 0 | false | 0.002033 | 0.003049 | 0 | 0.003049 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 |
21299f77861a1b79cc9153eaf28da32ebd5e4a0c | 240 | py | Python | jam/frontend/views.py | altear/jam | ef49d13204716e76b79840dbfcee9d7e4148f35e | [
"MIT"
] | null | null | null | jam/frontend/views.py | altear/jam | ef49d13204716e76b79840dbfcee9d7e4148f35e | [
"MIT"
] | null | null | null | jam/frontend/views.py | altear/jam | ef49d13204716e76b79840dbfcee9d7e4148f35e | [
"MIT"
] | null | null | null | from django.shortcuts import redirect, render
from backend.views import create_game
def game(request, game_uid):
return render(request, 'frontend/index.html')
def start_game(request):
return render(request, 'frontend/index.html')
| 26.666667 | 49 | 0.775 | 33 | 240 | 5.545455 | 0.545455 | 0.120219 | 0.20765 | 0.295082 | 0.393443 | 0.393443 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 240 | 8 | 50 | 30 | 0.871429 | 0 | 0 | 0.333333 | 0 | 0 | 0.158333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
216a1ab5c9398b70814de631b2d4c530cc46f09b | 2,992 | py | Python | word_relay.py | calderdigihub/PiWars21_crashBot | 6ff60cffdca7cb90261fcb2283adc43cf619f37b | [
"MIT"
] | null | null | null | word_relay.py | calderdigihub/PiWars21_crashBot | 6ff60cffdca7cb90261fcb2283adc43cf619f37b | [
"MIT"
] | null | null | null | word_relay.py | calderdigihub/PiWars21_crashBot | 6ff60cffdca7cb90261fcb2283adc43cf619f37b | [
"MIT"
] | 1 | 2021-06-25T10:57:24.000Z | 2021-06-25T10:57:24.000Z | #pip3 install SpeechRecognition
#pip3 install pyaudio
#https://realpython.com/python-speech-recognition/#picking-a-python-speech-recognition-package
#https://maker.pro/raspberry-pi/tutorial/the-best-voice-recognition-software-for-raspberry-pi
import speech_recognition as sr
import directions
from time import slee... | 24.933333 | 95 | 0.659759 | 370 | 2,992 | 5.262162 | 0.202703 | 0.143811 | 0.16641 | 0.20339 | 0.845917 | 0.833077 | 0.833077 | 0.833077 | 0.833077 | 0.833077 | 0 | 0.01261 | 0.20488 | 2,992 | 119 | 96 | 25.142857 | 0.805801 | 0.099599 | 0 | 0.945455 | 0 | 0 | 0.142968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027273 | 0 | 0.027273 | 0.090909 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
b4a78744b90d425d112d6838c10a298c204aae21 | 71 | py | Python | addons/generic_request/wizard/__init__.py | marionumza/vocal_v12 | 480990e919c9410903e06e7813ee92800bd6a569 | [
"Unlicense"
] | null | null | null | addons/generic_request/wizard/__init__.py | marionumza/vocal_v12 | 480990e919c9410903e06e7813ee92800bd6a569 | [
"Unlicense"
] | null | null | null | addons/generic_request/wizard/__init__.py | marionumza/vocal_v12 | 480990e919c9410903e06e7813ee92800bd6a569 | [
"Unlicense"
] | 1 | 2021-05-05T07:59:08.000Z | 2021-05-05T07:59:08.000Z | from . import request_wizard_close
from . import request_wizard_assign
| 23.666667 | 35 | 0.859155 | 10 | 71 | 5.7 | 0.6 | 0.350877 | 0.596491 | 0.807018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112676 | 71 | 2 | 36 | 35.5 | 0.904762 | 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 |
b4c45fa67a43655553bf06e727360350d23df829 | 10,892 | py | Python | tests/geo/python/test_geo_mercator.py | marek-cel/libmcutils | 671a20f37378d32ade4decefdbfba70448d12504 | [
"MIT"
] | null | null | null | tests/geo/python/test_geo_mercator.py | marek-cel/libmcutils | 671a20f37378d32ade4decefdbfba70448d12504 | [
"MIT"
] | null | null | null | tests/geo/python/test_geo_mercator.py | marek-cel/libmcutils | 671a20f37378d32ade4decefdbfba70448d12504 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
################################################################################
import pyproj
################################################################################
t_geo2merc = pyproj.Transformer.from_crs(
{"proj":'latlong', "ellps":'WGS84', "datum":'WGS84'},
{"proj":'merc... | 26.501217 | 80 | 0.336302 | 1,184 | 10,892 | 3.018581 | 0.04223 | 0.156128 | 0.045048 | 0.096531 | 0.934527 | 0.921097 | 0.882764 | 0.882764 | 0.882764 | 0.882764 | 0 | 0.034743 | 0.122659 | 10,892 | 410 | 81 | 26.565854 | 0.339263 | 0.001928 | 0 | 0.692308 | 0 | 0 | 0.114065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.004808 | 0 | 0.004808 | 0.25 | 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 |
3722d035b6ea3d4eddbd0fdf9e5098f87201d3d1 | 33,844 | py | Python | tccli/services/tione/tione_client.py | ws0416/tencentcloud-cli | 0a90fa77c8be1efa30b196a3eeb31b8be1f6a325 | [
"Apache-2.0"
] | null | null | null | tccli/services/tione/tione_client.py | ws0416/tencentcloud-cli | 0a90fa77c8be1efa30b196a3eeb31b8be1f6a325 | [
"Apache-2.0"
] | null | null | null | tccli/services/tione/tione_client.py | ws0416/tencentcloud-cli | 0a90fa77c8be1efa30b196a3eeb31b8be1f6a325 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import json
import tccli.options_define as OptionsDefine
import tccli.format_output as FormatOutput
from tccli import __version__
from tccli.utils import Utils
from tccli.exceptions import ConfigurationError
from tencentcloud.common import credential
from tencentcloud.common.profile.ht... | 43.726098 | 105 | 0.729849 | 3,764 | 33,844 | 6.325186 | 0.051541 | 0.079889 | 0.225848 | 0.053511 | 0.802587 | 0.794985 | 0.791961 | 0.788936 | 0.784988 | 0.736979 | 0 | 0.009093 | 0.164874 | 33,844 | 773 | 106 | 43.782665 | 0.833251 | 0.007416 | 0 | 0.689349 | 0 | 0 | 0.043942 | 0.011589 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036982 | false | 0 | 0.017751 | 0.001479 | 0.057692 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 |
372e734f2bc96b2c515ece1d9e247142d822e603 | 69 | py | Python | model_code/__init__.py | jmalles/water_terminating_module | 8c0a6e3a756697296c2426458e3c846336a14ea8 | [
"BSD-3-Clause"
] | null | null | null | model_code/__init__.py | jmalles/water_terminating_module | 8c0a6e3a756697296c2426458e3c846336a14ea8 | [
"BSD-3-Clause"
] | null | null | null | model_code/__init__.py | jmalles/water_terminating_module | 8c0a6e3a756697296c2426458e3c846336a14ea8 | [
"BSD-3-Clause"
] | null | null | null | from model_code.FluxModel import*
from model_code.aux_funcs import * | 34.5 | 34 | 0.84058 | 11 | 69 | 5 | 0.636364 | 0.327273 | 0.472727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101449 | 69 | 2 | 35 | 34.5 | 0.887097 | 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 |
25a7f92e6515e7427684f5919e524a26cb52bd4e | 11,408 | py | Python | tests/test_gowl_vs_grab.py | cmazzaanthony/ccgowl | 31e12579449c296d7581c2838b5d7d7873361b48 | [
"MIT"
] | 8 | 2019-06-20T17:26:15.000Z | 2020-08-26T04:19:22.000Z | tests/test_gowl_vs_grab.py | cmazzaanthony/ccgowl | 31e12579449c296d7581c2838b5d7d7873361b48 | [
"MIT"
] | 3 | 2021-03-25T22:42:42.000Z | 2021-06-01T23:52:14.000Z | tests/test_gowl_vs_grab.py | cmazzaanthony/ccgowl | 31e12579449c296d7581c2838b5d7d7873361b48 | [
"MIT"
] | null | null | null | import unittest
import numpy as np
from sklearn.metrics import f1_score
import ccgowl.models.grab.GRAB as grab
from ccgowl.data.make_synthetic_data import generate_theta_star_gowl, standardize, Block, generate_synthetic_data
from ccgowl.evaluation.cluster_metrics import spectral_clustering
from ccgowl.evaluation.fit_... | 42.408922 | 118 | 0.48203 | 1,255 | 11,408 | 4.080478 | 0.114741 | 0.049209 | 0.032806 | 0.065612 | 0.82894 | 0.818004 | 0.792423 | 0.774653 | 0.738918 | 0.722906 | 0 | 0.036109 | 0.436799 | 11,408 | 268 | 119 | 42.567164 | 0.760934 | 0.02919 | 0 | 0.733624 | 1 | 0 | 0.083695 | 0.008044 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026201 | false | 0 | 0.039301 | 0 | 0.069869 | 0.026201 | 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 |
25aaee5d891a3ecb5fc6e7628bcd6fcb9e885808 | 259 | py | Python | discretisedfield/plotting/__init__.py | ubermag/discretisedfield | fec016c85fcc091006e678845bca999b993b987c | [
"BSD-3-Clause"
] | 9 | 2019-08-30T14:00:43.000Z | 2022-01-16T15:01:44.000Z | discretisedfield/plotting/__init__.py | ubermag/discretisedfield | fec016c85fcc091006e678845bca999b993b987c | [
"BSD-3-Clause"
] | 50 | 2019-06-13T13:41:57.000Z | 2022-03-28T09:14:33.000Z | discretisedfield/plotting/__init__.py | ubermag/discretisedfield | fec016c85fcc091006e678845bca999b993b987c | [
"BSD-3-Clause"
] | 7 | 2019-08-28T14:16:10.000Z | 2021-12-13T21:06:06.000Z | """Matplotlib based plotting."""
from discretisedfield.plotting.mpl import Mpl, add_colorwheel
from discretisedfield.plotting.mpl_region import MplRegion
from discretisedfield.plotting.k3d import K3d
from discretisedfield.plotting.k3d_region import K3dRegion
| 43.166667 | 61 | 0.861004 | 31 | 259 | 7.096774 | 0.419355 | 0.363636 | 0.509091 | 0.281818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016736 | 0.07722 | 259 | 5 | 62 | 51.8 | 0.903766 | 0.100386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
25d5353bdabae5608bf9385eba3678470fe776a6 | 44,855 | py | Python | tests/test_core_boards.py | tmooney101/gurutest1 | 2bd84ce9931e0fefbeacfd19dfc6abcf52a15b30 | [
"MIT"
] | 1 | 2021-08-10T20:21:54.000Z | 2021-08-10T20:21:54.000Z | tests/test_core_boards.py | tmooney101/gurutest1 | 2bd84ce9931e0fefbeacfd19dfc6abcf52a15b30 | [
"MIT"
] | 26 | 2021-03-15T20:20:01.000Z | 2022-03-03T23:31:35.000Z | tests/test_core_boards.py | tmooney101/gurutest1 | 2bd84ce9931e0fefbeacfd19dfc6abcf52a15b30 | [
"MIT"
] | 1 | 2021-12-15T22:04:18.000Z | 2021-12-15T22:04:18.000Z |
import json
import yaml
import time
import unittest
import responses
from unittest.mock import Mock, patch
from tests.util import use_guru, get_calls
import guru
class TestCore(unittest.TestCase):
@use_guru()
@responses.activate
def test_get_board(self, g):
responses.add(responses.GET, "https://api.getg... | 31.433076 | 142 | 0.567139 | 5,260 | 44,855 | 4.756654 | 0.035171 | 0.068425 | 0.128297 | 0.153957 | 0.916427 | 0.894444 | 0.877138 | 0.867466 | 0.851279 | 0.840887 | 0 | 0.125426 | 0.228759 | 44,855 | 1,427 | 143 | 31.433076 | 0.59782 | 0.011548 | 0 | 0.812888 | 0 | 0.049689 | 0.417169 | 0.036548 | 0 | 0 | 0 | 0 | 0.046584 | 1 | 0.031832 | false | 0 | 0.006211 | 0 | 0.03882 | 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 |
d3539b069277c89b63b61fda3fe8119ecc7453a7 | 39 | py | Python | python/miniconda/vendored/vendor/noarch/click-8.0.1-pyhd3eb1b0_0/info/test/run_test.py | kvedurmu/paketo-samples | 525b49f14883a6aa54959de3232430f0fdc1e66e | [
"Apache-2.0"
] | 1 | 2021-11-08T01:25:40.000Z | 2021-11-08T01:25:40.000Z | python/miniconda/vendored/vendor/noarch/click-8.0.1-pyhd3eb1b0_0/info/test/run_test.py | kvedurmu/paketo-samples | 525b49f14883a6aa54959de3232430f0fdc1e66e | [
"Apache-2.0"
] | 19 | 2021-03-10T21:30:56.000Z | 2022-02-27T06:45:03.000Z | python/miniconda/vendored/vendor/noarch/click-8.0.1-pyhd3eb1b0_0/info/test/run_test.py | kvedurmu/paketo-samples | 525b49f14883a6aa54959de3232430f0fdc1e66e | [
"Apache-2.0"
] | 2 | 2021-11-08T01:25:30.000Z | 2022-01-13T07:53:38.000Z | print("import: 'click'")
import click
| 9.75 | 24 | 0.692308 | 5 | 39 | 5.4 | 0.6 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 39 | 3 | 25 | 13 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0.394737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.5 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 7 |
d3afc759a7d07c8d7dd5b6e507d468fa6b33ed5f | 734 | py | Python | simhunt.py | Bhai4You/SimHunt | 42d0955de0273b3db615f368e611327354e08cb7 | [
"Apache-2.0"
] | 3 | 2022-03-31T12:30:56.000Z | 2022-03-31T12:31:03.000Z | simhunt.py | Bhai4You/SimHunt | 42d0955de0273b3db615f368e611327354e08cb7 | [
"Apache-2.0"
] | null | null | null | simhunt.py | Bhai4You/SimHunt | 42d0955de0273b3db615f368e611327354e08cb7 | [
"Apache-2.0"
] | null | null | null | import marshal
exec(marshal.loads('c\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00@\x00\x00\x00s7\x00\x00\x00d\x00\x00d\x01\x00l\x00\x00Z\x00\x00e\x00\x00j\x01\x00d\x02\x00\x83\x01\x00\x01e\x00\x00j\x01\x00d\x03\x00\x83\x01\x00\x01e\x00\x00j\x01\x00d\x04\x00\x83\x01\x00\x01d\x01\x00S(\x05\x00\x00\x00i\xff\xff\xff\xff... | 244.666667 | 718 | 0.769755 | 153 | 734 | 3.69281 | 0.366013 | 0.382301 | 0.334513 | 0.318584 | 0.233628 | 0.20708 | 0.20708 | 0.20708 | 0.164602 | 0.058407 | 0 | 0.324138 | 0.012262 | 734 | 2 | 719 | 367 | 0.455172 | 0 | 0 | 0 | 0 | 0.5 | 0.946866 | 0.798365 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 12 |
6caaa6f84344e211b747a7824cb606b22c7ed992 | 163 | py | Python | tests/unit/docker/test_helper.py | facebbook/jina | e8079af3d58f1de0f51f8aef6cdf1eb3d87a9873 | [
"Apache-2.0"
] | null | null | null | tests/unit/docker/test_helper.py | facebbook/jina | e8079af3d58f1de0f51f8aef6cdf1eb3d87a9873 | [
"Apache-2.0"
] | 2 | 2021-02-15T01:40:38.000Z | 2021-02-15T02:00:21.000Z | tests/unit/docker/test_helper.py | facebbook/jina | e8079af3d58f1de0f51f8aef6cdf1eb3d87a9873 | [
"Apache-2.0"
] | null | null | null | from pathlib import PosixPath
from jina.docker.helper import credentials_file
def test_credentials_file():
assert isinstance(credentials_file(), PosixPath)
| 20.375 | 52 | 0.815951 | 20 | 163 | 6.45 | 0.65 | 0.348837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122699 | 163 | 7 | 53 | 23.285714 | 0.902098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | true | 0 | 0.5 | 0 | 0.75 | 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 |
9f5b1839892b8641e5d1acb9f0a21e640521ed33 | 41,164 | py | Python | fireant/tests/queries/test_data_blending_integration.py | RobinPapke/fireant | 822a5306b981549cb21a508a9b35729ecb8af6ec | [
"Apache-2.0"
] | 2 | 2019-05-12T15:14:52.000Z | 2020-05-28T07:13:34.000Z | fireant/tests/queries/test_data_blending_integration.py | RobinPapke/fireant | 822a5306b981549cb21a508a9b35729ecb8af6ec | [
"Apache-2.0"
] | null | null | null | fireant/tests/queries/test_data_blending_integration.py | RobinPapke/fireant | 822a5306b981549cb21a508a9b35729ecb8af6ec | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
import fireant as f
from fireant import DataSet, DataType, Database, Field, ReactTable
from pypika import Tables
from fireant.tests.database.mock_database import TestDatabase
class DataSetBlenderIntegrationTests(TestCase):
maxDiff = None
def test_use_metric_from_primary_datase... | 31.375 | 107 | 0.409678 | 3,035 | 41,164 | 5.404283 | 0.049423 | 0.036581 | 0.073162 | 0.065724 | 0.880685 | 0.871479 | 0.856237 | 0.843129 | 0.833862 | 0.829594 | 0 | 0.024942 | 0.469172 | 41,164 | 1,311 | 108 | 31.398932 | 0.725688 | 0 | 0 | 0.857257 | 0 | 0.000797 | 0.205932 | 0.030026 | 0 | 0 | 0 | 0 | 0.015949 | 1 | 0.013557 | false | 0 | 0.003987 | 0 | 0.020734 | 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 |
9fa540d4375e649f42a935f0475414ba40ef444e | 239 | py | Python | virtualMachine/__init__.py | olefran/Pound | 737a245602df600a6de8df9b749cddf17f4127f6 | [
"MIT"
] | 1 | 2020-04-21T09:30:17.000Z | 2020-04-21T09:30:17.000Z | virtualMachine/__init__.py | olefran/Patitoplusplus | 737a245602df600a6de8df9b749cddf17f4127f6 | [
"MIT"
] | null | null | null | virtualMachine/__init__.py | olefran/Patitoplusplus | 737a245602df600a6de8df9b749cddf17f4127f6 | [
"MIT"
] | null | null | null | from .structures import *
from .virtualMachine import main
# ========================================================================== #
# init VirtualMachine
# ========================================================================== #
| 39.833333 | 78 | 0.276151 | 9 | 239 | 7.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07113 | 239 | 5 | 79 | 47.8 | 0.297297 | 0.711297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
9fbb3f1fdb890b70b18e4d82358fbd801faf7b72 | 9,240 | py | Python | generated/domain/tests.py | oreon/rtbp | c35f1a712bdc36c725e68a98b21105654c5f5fdc | [
"MIT"
] | 1 | 2017-12-12T17:28:16.000Z | 2017-12-12T17:28:16.000Z | generated/domain/tests.py | oreon/rtbp | c35f1a712bdc36c725e68a98b21105654c5f5fdc | [
"MIT"
] | null | null | null | generated/domain/tests.py | oreon/rtbp | c35f1a712bdc36c725e68a98b21105654c5f5fdc | [
"MIT"
] | null | null | null |
from django.contrib import admin
from . import models
from restbase.commons import CustomModelAdminMixin
class AppUserTests(BaseTest):
url = 'appUser'
fixtures = [' AppUsers.json','patients.json']
def test_createAppUserByNotAllowed AppUser(self):
self.... | 35.538462 | 75 | 0.602381 | 963 | 9,240 | 5.655244 | 0.09865 | 0.088138 | 0.047741 | 0.069776 | 0.797833 | 0.7556 | 0.7556 | 0.7556 | 0.7556 | 0.7556 | 0 | 0.009134 | 0.289069 | 9,240 | 260 | 76 | 35.538462 | 0.819912 | 0 | 0 | 0.725389 | 0 | 0 | 0.086626 | 0 | 0 | 0 | 0 | 0 | 0.103627 | 0 | null | null | 0 | 0.015544 | null | null | 0.103627 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
4ce0d144fd57d0744e77aab899e24cb13679a759 | 155,112 | py | Python | gpMgmt/bin/gppylib/operations/test/unit/test_unit_dump.py | Tanzu-Solutions-Engineering/gpdb | bfc409a97c190cd21997d63cf5c5082208cd6853 | [
"PostgreSQL",
"Apache-2.0"
] | 2 | 2016-07-08T10:15:24.000Z | 2017-12-31T03:44:50.000Z | gpMgmt/bin/gppylib/operations/test/unit/test_unit_dump.py | Tanzu-Solutions-Engineering/gpdb | bfc409a97c190cd21997d63cf5c5082208cd6853 | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | gpMgmt/bin/gppylib/operations/test/unit/test_unit_dump.py | Tanzu-Solutions-Engineering/gpdb | bfc409a97c190cd21997d63cf5c5082208cd6853 | [
"PostgreSQL",
"Apache-2.0"
] | 2 | 2015-11-08T15:35:58.000Z | 2016-11-14T14:44:30.000Z | #!/usr/bin/env python
#
# Copyright (c) Greenplum Inc 2012. All Rights Reserved.
#
import os
import shutil
import time
import unittest2 as unittest
from datetime import datetime
from gppylib.commands.base import CommandResult
from gppylib.operations.backup_utils import write_lines_to_file
from gppylib.operations.dump ... | 54.463483 | 359 | 0.717552 | 18,671 | 155,112 | 5.581972 | 0.025815 | 0.063452 | 0.077979 | 0.095297 | 0.951325 | 0.935051 | 0.923787 | 0.91117 | 0.906343 | 0.894973 | 0 | 0.049201 | 0.184196 | 155,112 | 2,847 | 360 | 54.482613 | 0.774413 | 0.001096 | 0 | 0.797907 | 0 | 0.003221 | 0.23015 | 0.14361 | 0 | 0 | 0 | 0 | 0.055153 | 0 | null | null | 0 | 0.005233 | 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 |
e21ed6113a86d76e34af42093fa22f53b649c4aa | 59 | py | Python | bot/utils/__init__.py | Im-zeus/Stickers | f2484a1ecc9a3e4a2029eaadbde4ae1b0fe74536 | [
"MIT"
] | 44 | 2018-10-30T14:47:14.000Z | 2022-03-26T15:17:52.000Z | bot/utils/__init__.py | Im-zeus/Stickers | f2484a1ecc9a3e4a2029eaadbde4ae1b0fe74536 | [
"MIT"
] | 37 | 2018-11-09T11:51:15.000Z | 2021-12-27T15:08:48.000Z | bot/utils/__init__.py | Im-zeus/Stickers | f2484a1ecc9a3e4a2029eaadbde4ae1b0fe74536 | [
"MIT"
] | 38 | 2019-03-27T21:12:23.000Z | 2022-01-08T07:57:39.000Z | from .helpers import utils
from .helpers import decorators
| 19.666667 | 31 | 0.830508 | 8 | 59 | 6.125 | 0.625 | 0.44898 | 0.693878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135593 | 59 | 2 | 32 | 29.5 | 0.960784 | 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 |
e23ad8c48b2a29515ca040bd3244c89203ecb80c | 30 | py | Python | 001113StepikPyGEK/StepikPyGEK001113сh01p04st12C05_20200407.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | 001113StepikPyGEK/StepikPyGEK001113сh01p04st12C05_20200407.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | 001113StepikPyGEK/StepikPyGEK001113сh01p04st12C05_20200407.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | print(5 ** 0.36 * 25 ** 0.32)
| 15 | 29 | 0.466667 | 7 | 30 | 2 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.391304 | 0.233333 | 30 | 1 | 30 | 30 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
2c36833902e5ea02dad2f75d26f73c64c79c6046 | 338,141 | py | Python | tests/solver.py | MostAwesomeDude/cozy | e7b0ace2915c54b1176fc4d3eed289ede109a058 | [
"Apache-2.0"
] | null | null | null | tests/solver.py | MostAwesomeDude/cozy | e7b0ace2915c54b1176fc4d3eed289ede109a058 | [
"Apache-2.0"
] | null | null | null | tests/solver.py | MostAwesomeDude/cozy | e7b0ace2915c54b1176fc4d3eed289ede109a058 | [
"Apache-2.0"
] | null | null | null | import unittest
from cozy.common import OrderedSet
from cozy.solver import satisfy, valid, satisfiable, IncrementalSolver, ModelCachingSolver
from cozy.typecheck import typecheck, retypecheck
from cozy.target_syntax import *
from cozy.structures.heaps import *
from cozy.syntax_tools import pprint, equal, implies, mk_l... | 676.282 | 99,331 | 0.673293 | 38,666 | 338,141 | 5.699374 | 0.014483 | 0.090683 | 0.040659 | 0.0432 | 0.976426 | 0.969642 | 0.962041 | 0.956147 | 0.946345 | 0.938032 | 0 | 0.008139 | 0.054897 | 338,141 | 499 | 99,332 | 677.637275 | 0.681433 | 0.000621 | 0 | 0.29803 | 0 | 0 | 0.387114 | 0.070915 | 0.029557 | 0 | 0 | 0 | 0.165025 | 1 | 0.20936 | false | 0 | 0.017241 | 0 | 0.229064 | 0.014778 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
e2df7ba2aa0a124ebf151c5c4119b1d69723d3f0 | 8,780 | py | Python | data/example_project/settings.py | mariask2/PAL-A-tool-for-Pre-annotation-and-Active-Learning | 9529531436cd665272c0f7ac27444b33ee8efa6c | [
"BSD-2-Clause"
] | 19 | 2017-04-17T07:19:11.000Z | 2021-09-09T08:34:30.000Z | data/example_project/settings.py | mariask2/PAL-A-tool-for-Pre-annotation-and-Active-Learning | 9529531436cd665272c0f7ac27444b33ee8efa6c | [
"BSD-2-Clause"
] | null | null | null | data/example_project/settings.py | mariask2/PAL-A-tool-for-Pre-annotation-and-Active-Learning | 9529531436cd665272c0f7ac27444b33ee8efa6c | [
"BSD-2-Clause"
] | 3 | 2017-10-06T14:53:25.000Z | 2019-07-04T06:11:13.000Z | """
Documentation of settings:
##############
minority_classes:
# Minority classes with their prefix. If the classes in the labelled data
# are not present in this list, they will be ignored
# They should be prefixed with "B" or "I" (matching beginning_prefix below)
minority_classes = ["B-speculation", "I-speculation"... | 39.372197 | 137 | 0.748405 | 1,289 | 8,780 | 4.930954 | 0.190846 | 0.010069 | 0.00944 | 0.00944 | 0.869729 | 0.853367 | 0.849906 | 0.841095 | 0.841095 | 0.823002 | 0 | 0.01076 | 0.163781 | 8,780 | 222 | 138 | 39.54955 | 0.854944 | 0.901822 | 0 | 0 | 0 | 0.111111 | 0.218807 | 0.17179 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e2e1ce857dd9f3f0ed1d6dd6e46e212e468a16b0 | 206 | py | Python | qctests/EN_spike_and_step_suspect.py | BillMills/AutoQC | cb56fa5bb2115170ec204edd84e2d69ce84be820 | [
"MIT"
] | 17 | 2015-01-31T00:35:58.000Z | 2020-10-26T19:01:46.000Z | qctests/EN_spike_and_step_suspect.py | castelao/AutoQC | eb85422c1a6a5ff965a1ef96b3cb29240a66b506 | [
"MIT"
] | 163 | 2015-01-21T03:44:42.000Z | 2022-01-09T22:03:12.000Z | qctests/EN_spike_and_step_suspect.py | BillMills/AutoQC | cb56fa5bb2115170ec204edd84e2d69ce84be820 | [
"MIT"
] | 11 | 2015-06-04T14:32:22.000Z | 2021-04-11T05:18:09.000Z | '''Returns the suspect levels found by the EN spike and step check.'''
from . import EN_spike_and_step_check
def test(p, parameters):
return EN_spike_and_step_check.test(p, parameters, suspect=True)
| 25.75 | 70 | 0.76699 | 34 | 206 | 4.411765 | 0.558824 | 0.14 | 0.2 | 0.28 | 0.38 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145631 | 206 | 7 | 71 | 29.428571 | 0.852273 | 0.31068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
e2f3b2930561653d52430b28dc92e09e111da71c | 1,979 | py | Python | PP.py | MusicGivesMeLife/PasswordPermutations | 105d4120e455a635a8f7cea2f36028484152d399 | [
"MIT"
] | null | null | null | PP.py | MusicGivesMeLife/PasswordPermutations | 105d4120e455a635a8f7cea2f36028484152d399 | [
"MIT"
] | null | null | null | PP.py | MusicGivesMeLife/PasswordPermutations | 105d4120e455a635a8f7cea2f36028484152d399 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#TODO libraries
import re
import inflect
ilist = open("list.txt", "r")
pplist = ilist.readlines()
spec_chars = ['@', '!', '$', '-', '.', ':', '_', '%', '?']
p = inflect.engine()
def num_to_stri(numl):
numlist = []
numchar = list(numl)
for numi in range(len(numchar)):
if numc... | 30.921875 | 58 | 0.482567 | 210 | 1,979 | 4.528571 | 0.285714 | 0.462671 | 0.283912 | 0.07571 | 0.780231 | 0.780231 | 0.780231 | 0.780231 | 0.780231 | 0.780231 | 0 | 0.015873 | 0.331481 | 1,979 | 63 | 59 | 31.412698 | 0.702948 | 0.017686 | 0 | 0.448276 | 0 | 0 | 0.060762 | 0 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0.017241 | false | 0 | 0.034483 | 0 | 0.051724 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
1a7187833bbca15cac0020ce52caf9f2868e3d16 | 81 | py | Python | jingu/__init__.py | shiimaxx/jingu | 75176f3befa248ffb936a177d91c4feee0eef98b | [
"MIT"
] | null | null | null | jingu/__init__.py | shiimaxx/jingu | 75176f3befa248ffb936a177d91c4feee0eef98b | [
"MIT"
] | null | null | null | jingu/__init__.py | shiimaxx/jingu | 75176f3befa248ffb936a177d91c4feee0eef98b | [
"MIT"
] | null | null | null | # flake8: noqa
from .template import Environment
from .template import Template
| 16.2 | 33 | 0.802469 | 10 | 81 | 6.5 | 0.6 | 0.369231 | 0.553846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.148148 | 81 | 4 | 34 | 20.25 | 0.927536 | 0.148148 | 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 |
2053f57c05e4f4f25fe746c3ad60edaabf2f753d | 189 | py | Python | hangout_api/__init__.py | enkidulan/hangout_api | 60bb389afd7ceb790e6562073303762078997f7b | [
"Apache-2.0"
] | 6 | 2015-03-08T18:45:15.000Z | 2021-01-06T21:02:51.000Z | hangout_api/__init__.py | enkidulan/hangout_api | 60bb389afd7ceb790e6562073303762078997f7b | [
"Apache-2.0"
] | 1 | 2016-01-26T17:46:14.000Z | 2016-01-29T09:01:15.000Z | hangout_api/__init__.py | enkidulan/hangout_api | 60bb389afd7ceb790e6562073303762078997f7b | [
"Apache-2.0"
] | 1 | 2020-01-29T02:01:20.000Z | 2020-01-29T02:01:20.000Z | """
Python API for controlling Google+ Hangouts
===========================================
"""
from .base import Hangouts
from hangout_api import settings
from hangout_api import gadgets
| 21 | 43 | 0.613757 | 20 | 189 | 5.7 | 0.6 | 0.210526 | 0.245614 | 0.350877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116402 | 189 | 8 | 44 | 23.625 | 0.682635 | 0.460317 | 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 |
644acfc00a840653d4bda0d763992a8f69a7bf94 | 12,548 | py | Python | src/waldur_ansible/python_management/migrations/0001_initial.py | opennode/waldur-ansible | c81c5f0491be02fa9a55a6d5bf9d845750fd1ba9 | [
"MIT"
] | 1 | 2017-09-05T08:09:47.000Z | 2017-09-05T08:09:47.000Z | src/waldur_ansible/python_management/migrations/0001_initial.py | opennode/waldur-ansible | c81c5f0491be02fa9a55a6d5bf9d845750fd1ba9 | [
"MIT"
] | null | null | null | src/waldur_ansible/python_management/migrations/0001_initial.py | opennode/waldur-ansible | c81c5f0491be02fa9a55a6d5bf9d845750fd1ba9 | [
"MIT"
] | 3 | 2017-09-24T03:13:19.000Z | 2018-08-12T07:44:38.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-03-05 21:05
from __future__ import unicode_literals
import django.utils.timezone
import django_fsm
import model_utils.fields
from django.conf import settings
from django.db import migrations, models
import waldur_core.core.fields
import waldur_core.core.val... | 60.912621 | 180 | 0.600574 | 1,178 | 12,548 | 6.231749 | 0.128183 | 0.038959 | 0.052309 | 0.049585 | 0.820597 | 0.808064 | 0.791309 | 0.777687 | 0.777687 | 0.771148 | 0 | 0.011427 | 0.253746 | 12,548 | 205 | 181 | 61.209756 | 0.772533 | 0.005419 | 0 | 0.725888 | 1 | 0 | 0.18458 | 0.060912 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.040609 | 0 | 0.060914 | 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 |
6458786375925fa52609259016cc004c623e096a | 5,255 | py | Python | pooling.py | RetrainIt/Perfect-Half-Million-Beauty-Product-Image-Recognition-Challenge | 080aa5ae2f2755c6dc10b7cdc910ec0f76bc82c3 | [
"Apache-2.0"
] | 15 | 2018-07-06T09:29:20.000Z | 2021-05-15T05:22:36.000Z | pooling.py | X-Lambert/Perfect-Half-Million-Beauty-Product-Image-Recognition-Challenge | 55b1be6fdb80e403efb495000e85157bbc626dbf | [
"Apache-2.0"
] | 1 | 2019-03-17T12:11:30.000Z | 2019-03-27T02:47:51.000Z | pooling.py | X-Lambert/Perfect-Half-Million-Beauty-Product-Image-Recognition-Challenge | 55b1be6fdb80e403efb495000e85157bbc626dbf | [
"Apache-2.0"
] | 3 | 2018-07-06T09:29:22.000Z | 2021-05-15T05:22:37.000Z | import torch
import torch.nn as nn
import math
import torch.nn.functional as F
# --------------------------------------
# Pooling layers
# --------------------------------------
def rmac(x, L=3, eps=1e-6):
ovr = 0.4 # desired overlap of neighboring regions
steps = torch.Tensor([2, 3, 4, 5, 6, 7]) # possible r... | 30.201149 | 167 | 0.484681 | 796 | 5,255 | 3.074121 | 0.133166 | 0.053944 | 0.065386 | 0.046588 | 0.896199 | 0.896199 | 0.850429 | 0.850429 | 0.826318 | 0.771148 | 0 | 0.038889 | 0.314938 | 5,255 | 173 | 168 | 30.375723 | 0.640833 | 0.105994 | 0 | 0.806452 | 0 | 0 | 0.003423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112903 | false | 0 | 0.032258 | 0.064516 | 0.258065 | 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 |
645d25deb639ac0ff39214e91c75e4c8e692b7e5 | 52,193 | py | Python | oops/account_functions.py | mtasa-typescript/mtasa-wiki-dump | edea1746850fb6c99d6155d1d7891e2cceb33a5c | [
"MIT"
] | null | null | null | oops/account_functions.py | mtasa-typescript/mtasa-wiki-dump | edea1746850fb6c99d6155d1d7891e2cceb33a5c | [
"MIT"
] | 1 | 2021-02-24T21:50:18.000Z | 2021-02-24T21:50:18.000Z | oops/account_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, \
FunctionOOP, \
FunctionOOPField, \
CompoundOOPData, \
FunctionData, \
Co... | 37.930959 | 470 | 0.354435 | 2,900 | 52,193 | 6.267931 | 0.09931 | 0.058921 | 0.050338 | 0.051054 | 0.782692 | 0.769984 | 0.762667 | 0.727458 | 0.626726 | 0.617099 | 0 | 0.000137 | 0.580193 | 52,193 | 1,375 | 471 | 37.958545 | 0.829446 | 0.000977 | 0 | 0.760181 | 1 | 0.012821 | 0.163751 | 0.000518 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.013575 | 0.000754 | 0 | 0.000754 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 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 | 7 |
6477b53d43f918c8a790ba36d2049f79db9f0018 | 1,869 | py | Python | utils/single-layer-dim-comp.py | egaebel/cifar-neural-networks | 036b7aed2923dd8fede1fdc241088a91dd83f369 | [
"MIT"
] | null | null | null | utils/single-layer-dim-comp.py | egaebel/cifar-neural-networks | 036b7aed2923dd8fede1fdc241088a91dd83f369 | [
"MIT"
] | null | null | null | utils/single-layer-dim-comp.py | egaebel/cifar-neural-networks | 036b7aed2923dd8fede1fdc241088a91dd83f369 | [
"MIT"
] | null | null | null | from math import floor
def single_layer_compute(width, height, kW, kH, dW, dH, padW=0, padH=0):
# width = 28
# height = 28
# kW = 3
# kH = 3
# dW = 1
# dH = 1
# padW = 0
# padH = 0
owidth = floor((width + 2 * padW - kW) / dW + 1)
oheight = floor((height + 2 * padH - kH) / dH +... | 30.639344 | 73 | 0.655966 | 304 | 1,869 | 3.832237 | 0.134868 | 0.32103 | 0.185408 | 0.23691 | 0.740773 | 0.711588 | 0.637768 | 0.590558 | 0.569957 | 0.527897 | 0 | 0.083106 | 0.214553 | 1,869 | 60 | 74 | 31.15 | 0.71049 | 0.074906 | 0 | 0.162162 | 0 | 0 | 0.011635 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.243243 | false | 0 | 0.027027 | 0.189189 | 0.513514 | 0.027027 | 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 |
6486c6de50939a54d5930e572e20a98c1ab8577a | 144 | py | Python | pytorch_bcnn/functions/accuracy/__init__.py | psadda/pytorch_bayesian_unet | bb22b44c64f5d83d78aa93880da97e0e6168dc1c | [
"MIT"
] | 36 | 2019-12-04T02:09:25.000Z | 2022-03-31T07:18:40.000Z | pytorch_bcnn/functions/accuracy/__init__.py | IhabBendidi/pytorch_bayesian_unet | cc09653a051072790760447c711887e289ed11dc | [
"MIT"
] | 2 | 2021-01-24T04:21:16.000Z | 2021-04-25T19:22:14.000Z | pytorch_bcnn/functions/accuracy/__init__.py | IhabBendidi/pytorch_bayesian_unet | cc09653a051072790760447c711887e289ed11dc | [
"MIT"
] | 15 | 2020-04-10T05:29:31.000Z | 2022-01-03T08:45:02.000Z | from __future__ import absolute_import
from .discrete_dice import softmax_discrete_dice
from .discrete_jaccard import softmax_discrete_jaccard
| 28.8 | 54 | 0.895833 | 19 | 144 | 6.210526 | 0.421053 | 0.20339 | 0.355932 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090278 | 144 | 4 | 55 | 36 | 0.900763 | 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 |
64898ffe8f64a964467f128e04d3bb04fdff98b5 | 18,181 | py | Python | test/python/transpiler/test_vf2_post_layout.py | t-imamichi/qiskit-core | 8d2eeeac44f97af1e10514cdae4157e5923ff2e5 | [
"Apache-2.0"
] | 1,456 | 2017-08-05T16:33:05.000Z | 2018-06-05T04:15:35.000Z | test/python/transpiler/test_vf2_post_layout.py | t-imamichi/qiskit-core | 8d2eeeac44f97af1e10514cdae4157e5923ff2e5 | [
"Apache-2.0"
] | 365 | 2017-08-04T06:09:16.000Z | 2018-06-05T08:33:37.000Z | test/python/transpiler/test_vf2_post_layout.py | declanmillar/qiskit-terra | 43e4a72c9c1537dd3d220a52f7e56423dfdd926c | [
"Apache-2.0"
] | 463 | 2017-08-05T04:10:01.000Z | 2018-06-05T06:43:21.000Z | # This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | 40.492205 | 100 | 0.651999 | 2,269 | 18,181 | 4.986778 | 0.098722 | 0.039859 | 0.033142 | 0.009898 | 0.884224 | 0.872117 | 0.869289 | 0.866991 | 0.866372 | 0.866372 | 0 | 0.024255 | 0.247126 | 18,181 | 448 | 101 | 40.582589 | 0.802382 | 0.130356 | 0 | 0.845029 | 0 | 0 | 0.033604 | 0.020962 | 0 | 0 | 0 | 0 | 0.128655 | 1 | 0.081871 | false | 0.225146 | 0.02924 | 0 | 0.125731 | 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 |
64c5110a531e2cc6dff0ae2c80d574e65c23ef40 | 5,175 | py | Python | tests/terraform/checks/resource/azure/test_StorageAccountMinimumTlsVersion.py | antonblr/checkov | 9415c6593c537945c08f7a19f28bdd8b96966f67 | [
"Apache-2.0"
] | 4,013 | 2019-12-09T13:16:54.000Z | 2022-03-31T14:31:01.000Z | tests/terraform/checks/resource/azure/test_StorageAccountMinimumTlsVersion.py | antonblr/checkov | 9415c6593c537945c08f7a19f28bdd8b96966f67 | [
"Apache-2.0"
] | 1,258 | 2019-12-17T09:55:51.000Z | 2022-03-31T19:17:17.000Z | tests/terraform/checks/resource/azure/test_StorageAccountMinimumTlsVersion.py | antonblr/checkov | 9415c6593c537945c08f7a19f28bdd8b96966f67 | [
"Apache-2.0"
] | 638 | 2019-12-19T08:57:38.000Z | 2022-03-30T21:38:37.000Z | import unittest
import hcl2
from checkov.common.models.enums import CheckResult
from checkov.terraform.checks.resource.azure.StorageAccountMinimumTlsVersion import check
class TestAppServiceMinTLSVersion(unittest.TestCase):
def test_failure_option_not_present(self):
hcl_res = hcl2.loads("""
... | 45.79646 | 89 | 0.551691 | 476 | 5,175 | 5.615546 | 0.155462 | 0.072952 | 0.078563 | 0.104751 | 0.899364 | 0.891508 | 0.891508 | 0.891508 | 0.891508 | 0.891508 | 0 | 0.016149 | 0.365797 | 5,175 | 112 | 90 | 46.205357 | 0.798294 | 0 | 0 | 0.742574 | 0 | 0 | 0.6943 | 0.201932 | 0 | 0 | 0 | 0 | 0.049505 | 1 | 0.049505 | false | 0.019802 | 0.039604 | 0 | 0.09901 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
64c5f7674df0e36c1bd797d0e288c1045b3025f6 | 285 | py | Python | deeprobust/image/defense/__init__.py | smaranjitghose/DeepRobust | 91f2b922e61a3fa0987e37b7ea6c1cd9150c1c81 | [
"MIT"
] | 647 | 2020-02-08T02:13:21.000Z | 2022-03-31T07:44:00.000Z | deeprobust/image/defense/__init__.py | qilong-zhang/DeepRobust | 276a7048aded2cf3a190d3851ffd4587b7d1dd49 | [
"MIT"
] | 77 | 2020-03-21T11:27:30.000Z | 2022-03-23T10:55:53.000Z | deeprobust/image/defense/__init__.py | qilong-zhang/DeepRobust | 276a7048aded2cf3a190d3851ffd4587b7d1dd49 | [
"MIT"
] | 139 | 2020-03-04T00:25:12.000Z | 2022-03-21T15:45:29.000Z | from deeprobust.image.defense import base_defense
from deeprobust.image.defense import pgdtraining
from deeprobust.image.defense import fgsmtraining
from deeprobust.image.defense import TherEncoding
from deeprobust.image.defense import trades
from deeprobust.image.defense import YOPO
| 40.714286 | 49 | 0.873684 | 37 | 285 | 6.702703 | 0.297297 | 0.33871 | 0.459677 | 0.629032 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084211 | 285 | 6 | 50 | 47.5 | 0.950192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
b383dbf6bd180ad3ad98a20b1b1bbe5473eb30b4 | 138 | py | Python | tests/unit/metadata_normaliser/cli/conftest.py | meaningfy-ws/ted-xml-2-rdf | ac26a19f3761b7cf79d79a46be6323b658f067eb | [
"Apache-2.0"
] | 1 | 2022-03-21T12:32:52.000Z | 2022-03-21T12:32:52.000Z | tests/unit/metadata_normaliser/cli/conftest.py | meaningfy-ws/ted-xml-2-rdf | ac26a19f3761b7cf79d79a46be6323b658f067eb | [
"Apache-2.0"
] | 24 | 2022-02-10T10:43:56.000Z | 2022-03-29T12:36:21.000Z | tests/unit/metadata_normaliser/cli/conftest.py | meaningfy-ws/ted-sws | d1e351eacb2900f84ec7edc457e49d8202fbaff5 | [
"Apache-2.0"
] | null | null | null | import pytest
from tests import TEST_DATA_PATH
@pytest.fixture
def queries_folder_path():
return TEST_DATA_PATH / "sparql_queries"
| 15.333333 | 44 | 0.797101 | 20 | 138 | 5.15 | 0.65 | 0.15534 | 0.23301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144928 | 138 | 8 | 45 | 17.25 | 0.872881 | 0 | 0 | 0 | 0 | 0 | 0.101449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
b3caf1cc5ac1b3f9bd44d60161c6e4b9adbf3f76 | 1,264 | py | Python | tests/test_response_model_invalid.py | broHeryk/squall | 47c844d45548ed62745ee8385d6e6bda9e8269ad | [
"MIT"
] | 27 | 2021-12-04T15:54:59.000Z | 2022-02-19T15:37:35.000Z | tests/test_response_model_invalid.py | broHeryk/squall | 47c844d45548ed62745ee8385d6e6bda9e8269ad | [
"MIT"
] | 21 | 2021-12-04T21:17:54.000Z | 2022-01-30T23:45:43.000Z | tests/test_response_model_invalid.py | broHeryk/squall | 47c844d45548ed62745ee8385d6e6bda9e8269ad | [
"MIT"
] | 2 | 2021-12-29T10:53:59.000Z | 2022-01-12T05:01:02.000Z | from typing import List
import pytest
from apischema import Unsupported
from squall import Squall
class NonPydanticModel:
pass
# from apischema.schemas import
def test_invalid_response_model_raises():
with pytest.raises(Unsupported):
app = Squall()
@app.get("/", response_model=NonPydanti... | 24.784314 | 75 | 0.671677 | 139 | 1,264 | 5.892086 | 0.251799 | 0.095238 | 0.068376 | 0.107448 | 0.835165 | 0.802198 | 0.802198 | 0.752137 | 0.698413 | 0.634921 | 0 | 0.006085 | 0.219937 | 1,264 | 50 | 76 | 25.28 | 0.824544 | 0.073576 | 0 | 0.59375 | 0 | 0 | 0.087554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.15625 | 0.125 | 0 | 0.40625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
b3e93ba97cbea51bc9ef571684770068c72421ec | 22,722 | py | Python | marknote/tests/test_folder.py | sheldonkwoodward/marknote | d752f86b5b29416e77d38ec31090841d6119a750 | [
"MIT"
] | 5 | 2018-09-07T02:14:19.000Z | 2018-11-13T16:37:22.000Z | marknote/tests/test_folder.py | sheldonkwoodward/marknote | d752f86b5b29416e77d38ec31090841d6119a750 | [
"MIT"
] | 2 | 2020-02-11T23:19:58.000Z | 2020-06-05T18:53:11.000Z | marknote/tests/test_folder.py | sheldonkwoodward/marknote | d752f86b5b29416e77d38ec31090841d6119a750 | [
"MIT"
] | 1 | 2018-09-07T14:48:04.000Z | 2018-09-07T14:48:04.000Z | from django.contrib.auth.models import Permission, User
from rest_framework import status
from rest_framework.reverse import reverse
from rest_framework.test import APITestCase, APIClient
import json
from marknote.models import Folder
class TestFolderLCPost(APITestCase):
"""
Test cases for POST requests on ... | 39.311419 | 109 | 0.635463 | 2,599 | 22,722 | 5.421316 | 0.065795 | 0.083038 | 0.078353 | 0.03506 | 0.852803 | 0.820369 | 0.79638 | 0.782399 | 0.758765 | 0.721576 | 0 | 0.009649 | 0.251958 | 22,722 | 577 | 110 | 39.379549 | 0.819321 | 0.155444 | 0 | 0.680723 | 0 | 0 | 0.066131 | 0.019073 | 0 | 0 | 0 | 0 | 0.26506 | 1 | 0.093373 | false | 0.072289 | 0.018072 | 0 | 0.126506 | 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 |
3737ecef26e9ea2c09b84624f5f162a7078223f6 | 47,788 | py | Python | Dictator_service/views_.py | FurqanKhan1/Dictator | 74e29c12a8f92292ab3275661622c0632cdd0a7b | [
"Unlicense"
] | 5 | 2019-03-14T10:17:22.000Z | 2019-10-23T14:04:12.000Z | Dictator_service/views_.py | FurqanKhan1/Dictator | 74e29c12a8f92292ab3275661622c0632cdd0a7b | [
"Unlicense"
] | null | null | null | Dictator_service/views_.py | FurqanKhan1/Dictator | 74e29c12a8f92292ab3275661622c0632cdd0a7b | [
"Unlicense"
] | 14 | 2019-03-14T10:34:02.000Z | 2021-10-31T17:34:13.000Z | """
@Author :Furqan Khan
@Email :furqankhan08@gmail.com
@Date :1/3/2017
Objective :
The purpose of this file /module /Class is to map to serve teh Rest request
Depending upon the requested url the views module will fetch the data from the backend
python files and would transform the data to json format ,and would... | 35.556548 | 247 | 0.731376 | 6,356 | 47,788 | 5.309314 | 0.068282 | 0.171339 | 0.05571 | 0.069223 | 0.852131 | 0.834084 | 0.817786 | 0.802228 | 0.789279 | 0.778314 | 0 | 0.002447 | 0.153553 | 47,788 | 1,343 | 248 | 35.583023 | 0.831817 | 1.562401 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
375286b65637da0b80f9c862c886b4a0a94d6014 | 96 | py | Python | pyplus/autotest/__init__.py | tornadoyi/pyplus | 4b98f0eff9c2f027a601ade220c2aaf1769850fd | [
"Apache-2.0"
] | 2 | 2018-09-26T14:01:12.000Z | 2020-04-02T13:44:53.000Z | pyplus/autotest/__init__.py | tornadoyi/pyplus | 4b98f0eff9c2f027a601ade220c2aaf1769850fd | [
"Apache-2.0"
] | null | null | null | pyplus/autotest/__init__.py | tornadoyi/pyplus | 4b98f0eff9c2f027a601ade220c2aaf1769850fd | [
"Apache-2.0"
] | null | null | null |
from .manager import Manager
def add(*args, **kwargs): return Manager().add(*args, **kwargs)
| 16 | 63 | 0.6875 | 13 | 96 | 5.076923 | 0.615385 | 0.212121 | 0.393939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135417 | 96 | 5 | 64 | 19.2 | 0.795181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0.5 | 0.5 | 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 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 8 |
3753af53db2dc239bd9271843290bf411e309d23 | 10,911 | py | Python | test/myproject/map/python_function/EC2-logs-yeonseok.py | d0r6y/CloudKloud | 33747e208bd625a6c80bae0f87a0997181be4298 | [
"MIT"
] | null | null | null | test/myproject/map/python_function/EC2-logs-yeonseok.py | d0r6y/CloudKloud | 33747e208bd625a6c80bae0f87a0997181be4298 | [
"MIT"
] | null | null | null | test/myproject/map/python_function/EC2-logs-yeonseok.py | d0r6y/CloudKloud | 33747e208bd625a6c80bae0f87a0997181be4298 | [
"MIT"
] | null | null | null | import boto3
import json
import time
from datetime import datetime
nowtime = datetime.now()
AWS_ACCESS_KEY_ID =""
AWS_SECRET_ACCESS_KEY = ""
AWS_DEFAULT_REGION = "ap-northeast-2"
# 이건 VPC Flow 틀어놓은 개인계정
logs = boto3.client('logs', aws_access_key_id=AWS_ACCESS_KEY_ID, aws_secret_access_key=AWS_SECRET_ACCESS_KEY,
... | 36.614094 | 229 | 0.524425 | 1,116 | 10,911 | 4.994624 | 0.184588 | 0.007535 | 0.036598 | 0.017582 | 0.85235 | 0.834051 | 0.834051 | 0.834051 | 0.827054 | 0.797632 | 0 | 0.010066 | 0.344423 | 10,911 | 297 | 230 | 36.737374 | 0.769188 | 0.011181 | 0 | 0.730924 | 0 | 0 | 0.145798 | 0.040789 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012048 | false | 0 | 0.016064 | 0 | 0.040161 | 0.104418 | 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 |
3798dec12ccebabee92bafb450ba38c1bfdbf844 | 44,839 | py | Python | Packs/CrowdStrikeFalconX/Integrations/CrowdStrikeFalconX/TestsInput/context.py | jrauen/content | 81a92be1cbb053a5f26a6f325eff3afc0ca840e0 | [
"MIT"
] | 1 | 2021-11-02T05:36:38.000Z | 2021-11-02T05:36:38.000Z | Packs/CrowdStrikeFalconX/Integrations/CrowdStrikeFalconX/TestsInput/context.py | jrauen/content | 81a92be1cbb053a5f26a6f325eff3afc0ca840e0 | [
"MIT"
] | 61 | 2021-10-07T08:54:38.000Z | 2022-03-31T10:25:35.000Z | Packs/CrowdStrikeFalconX/Integrations/CrowdStrikeFalconX/TestsInput/context.py | jrauen/content | 81a92be1cbb053a5f26a6f325eff3afc0ca840e0 | [
"MIT"
] | 1 | 2021-12-20T15:12:22.000Z | 2021-12-20T15:12:22.000Z | from CommonServerPython import DemistoException
SEND_UPLOADED_FILE_TO_SENDBOX_ANALYSIS_CONTEXT = {
'submitted_id': 'id',
'state': 'created',
'created_timestamp': '2020-05-12T15:34:11Z',
'environment_id': 160,
'sha256': 'sha256'
}
SEND_URL_TO_SANDBOX_ANALYSIS_CONTEXT = {
'submitted_id': 'id',
... | 81.083183 | 153 | 0.336024 | 2,919 | 44,839 | 4.959233 | 0.096608 | 0.038685 | 0.036474 | 0.059063 | 0.923529 | 0.921594 | 0.921594 | 0.914134 | 0.911923 | 0.911923 | 0 | 0.082039 | 0.543299 | 44,839 | 552 | 154 | 81.230072 | 0.624866 | 0 | 0 | 0.73849 | 0 | 0.009208 | 0.340418 | 0.080979 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001842 | 0 | 0.001842 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
80b081952e1929306b16b59823a4d98a0b30eb7a | 11,040 | py | Python | src/temp/chart66.py | joshmaglione/SingularZeta | 5ff9167cec8233c575fa421e4c99b95f06eb90d0 | [
"MIT"
] | 1 | 2019-11-21T17:37:09.000Z | 2019-11-21T17:37:09.000Z | src/temp/chart66.py | joshmaglione/SingularZeta | 5ff9167cec8233c575fa421e4c99b95f06eb90d0 | [
"MIT"
] | 1 | 2019-05-21T07:22:08.000Z | 2019-05-21T07:22:08.000Z | src/temp/chart66.py | joshmaglione/SingularZeta | 5ff9167cec8233c575fa421e4c99b95f06eb90d0 | [
"MIT"
] | null | null | null | ################################################################################
# These computations are based off of Bernd Schober's notes for chart 66 in
# August.
# Maglione, August 2019
######################################################################... | 45.245902 | 96 | 0.293569 | 1,540 | 11,040 | 1.992208 | 0.046104 | 0.255541 | 0.310952 | 0.323338 | 0.770535 | 0.764016 | 0.734355 | 0.721969 | 0.718709 | 0.541069 | 0 | 0.127926 | 0.291938 | 11,040 | 243 | 97 | 45.432099 | 0.264552 | 0.296467 | 0 | 0.618421 | 0 | 0 | 0.001662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.019737 | 0 | 0.019737 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
03c7dd19278b73fdc9b2eb9992ed303afe3394fd | 12,751 | py | Python | account/forms.py | Mohsen7640/PicoSchool | 69d8658111b27e843928f2458f9a7108ab8bd4e0 | [
"Apache-2.0"
] | 48 | 2022-02-05T10:07:33.000Z | 2022-03-30T18:14:45.000Z | account/forms.py | Mohsen7640/PicoSchool | 69d8658111b27e843928f2458f9a7108ab8bd4e0 | [
"Apache-2.0"
] | 2 | 2022-02-10T11:56:42.000Z | 2022-02-16T13:27:26.000Z | account/forms.py | Mohsen7640/PicoSchool | 69d8658111b27e843928f2458f9a7108ab8bd4e0 | [
"Apache-2.0"
] | 14 | 2022-02-05T13:46:17.000Z | 2022-02-23T16:23:12.000Z | from django import forms
from django.contrib.admin.views import autocomplete
from django.contrib.admin.widgets import FilteredSelectMultiple
from django.contrib.auth.hashers import make_password
from .models import User
widget_fields = {
'first_name': forms.TextInput(
attrs={'placeholder': 'نام را وارد کن... | 47.051661 | 113 | 0.641518 | 1,446 | 12,751 | 5.428077 | 0.091978 | 0.076443 | 0.092751 | 0.140145 | 0.912346 | 0.908014 | 0.878583 | 0.878583 | 0.848006 | 0.838578 | 0 | 0 | 0.223041 | 12,751 | 270 | 114 | 47.225926 | 0.792268 | 0 | 0 | 0.796681 | 0 | 0 | 0.262176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.062241 | false | 0.033195 | 0.020747 | 0 | 0.170124 | 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 |
03ff4affb7e6de3fb9bd01b6c9456c24dde54402 | 1,060 | py | Python | Stage A/2. Hamoye Numpy/convention for importing numpy.py | tripleaceme/Hamoye-Data-StoryTelling | fdc7dedeb102def50086e0ca26d19de28a79c30a | [
"MIT"
] | null | null | null | Stage A/2. Hamoye Numpy/convention for importing numpy.py | tripleaceme/Hamoye-Data-StoryTelling | fdc7dedeb102def50086e0ca26d19de28a79c30a | [
"MIT"
] | null | null | null | Stage A/2. Hamoye Numpy/convention for importing numpy.py | tripleaceme/Hamoye-Data-StoryTelling | fdc7dedeb102def50086e0ca26d19de28a79c30a | [
"MIT"
] | null | null | null | # convention for importing numpy
import numpy as np
arr = [6, 7, 8, 9]
print(type(arr)) # prints <class 'list'>
a = np.array(arr)
print(type(a)) # prints <class 'numpy.ndarray'>
print(a.shape) # prints (4,) - a is a 1d array with 4 items
print(a.dtype) # prints int64
# get the dimension of a with ndim
print(a.nd... | 28.648649 | 76 | 0.570755 | 192 | 1,060 | 3.151042 | 0.21875 | 0.059504 | 0.019835 | 0.026446 | 0.955372 | 0.955372 | 0.955372 | 0.955372 | 0.955372 | 0.955372 | 0 | 0.073107 | 0.277358 | 1,060 | 37 | 77 | 28.648649 | 0.71671 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.538462 | 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 | 1 | 0 | 9 |
207f13359eb4f92f65ea549fd1ca75c04bafc24f | 69 | py | Python | python/testData/console/indent3.after.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/console/indent3.after.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/console/indent3.after.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | for i in range(1, 10):
print i
for i in range(1, 10):
print i | 17.25 | 22 | 0.57971 | 16 | 69 | 2.5 | 0.4375 | 0.2 | 0.3 | 0.55 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0.125 | 0.304348 | 69 | 4 | 23 | 17.25 | 0.708333 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 1 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 11 |
20a95ea3363f731685ab5c1233857fe37e74fa93 | 61,025 | py | Python | reviewboard/reviews/tests/test_views.py | jeyaprabum/Reviewboard | fe4dc611ef961b12b6991a74faa24a22d393fb4a | [
"MIT"
] | 1 | 2019-08-20T03:39:04.000Z | 2019-08-20T03:39:04.000Z | reviewboard/reviews/tests/test_views.py | jeyaprabum/Reviewboard | fe4dc611ef961b12b6991a74faa24a22d393fb4a | [
"MIT"
] | 1 | 2019-08-20T03:39:45.000Z | 2019-08-20T03:39:45.000Z | reviewboard/reviews/tests/test_views.py | jeyaprabum/Reviewboard | fe4dc611ef961b12b6991a74faa24a22d393fb4a | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from datetime import timedelta
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from djblets.siteconfig.models import SiteConfiguration
from djblets.testing.decorators import add_fixtures
from reviewboard.extensions.tests import TestServ... | 40.792112 | 79 | 0.601344 | 6,520 | 61,025 | 5.394939 | 0.057975 | 0.118635 | 0.036389 | 0.041194 | 0.862033 | 0.841535 | 0.832893 | 0.81032 | 0.793376 | 0.775267 | 0 | 0.017596 | 0.306186 | 61,025 | 1,495 | 80 | 40.819398 | 0.813179 | 0.105072 | 0 | 0.774133 | 0 | 0.001874 | 0.104624 | 0.013894 | 0 | 0 | 0 | 0 | 0.125586 | 1 | 0.05717 | false | 0.021556 | 0.022493 | 0 | 0.088097 | 0.003749 | 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 |
20d678e47a33b8d683c196926a71e7d69b000001 | 16,728 | py | Python | test/testsArithmeticExpressions/testMin.py | mouton5000/DiscreteEventApplicationEditor | 4a4272fd9b0a7f3f228fee1e9e7b351e4a21cd33 | [
"MIT"
] | null | null | null | test/testsArithmeticExpressions/testMin.py | mouton5000/DiscreteEventApplicationEditor | 4a4272fd9b0a7f3f228fee1e9e7b351e4a21cd33 | [
"MIT"
] | null | null | null | test/testsArithmeticExpressions/testMin.py | mouton5000/DiscreteEventApplicationEditor | 4a4272fd9b0a7f3f228fee1e9e7b351e4a21cd33 | [
"MIT"
] | null | null | null | __author__ = 'mouton'
from triggerExpressions import Evaluation
from unittest import TestCase
from math import pi, sqrt
from arithmeticExpressions import ALitteral, Min, UndefinedLitteral, SelfLitteral
from database import Variable
class TestMin(TestCase):
@classmethod
def setUpClass(cls):
import gr... | 33.456 | 81 | 0.629902 | 2,044 | 16,728 | 4.936399 | 0.0318 | 0.051338 | 0.066006 | 0.080674 | 0.95332 | 0.941923 | 0.922795 | 0.897621 | 0.849257 | 0.79554 | 0 | 0.040892 | 0.260282 | 16,728 | 499 | 82 | 33.523046 | 0.774527 | 0 | 0 | 0.77381 | 0 | 0 | 0.007054 | 0 | 0 | 0 | 0 | 0 | 0.17619 | 1 | 0.180952 | false | 0 | 0.014286 | 0 | 0.197619 | 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 |
455966bb2a729bc0c659a9da8ace2c2df1bdd2e1 | 2,037 | py | Python | website/home/models.py | divyam3897/VayuAnukulani | d1b881ac6268c24761dc0ef6db296d7e5ee1a22e | [
"MIT"
] | 1 | 2019-04-05T18:14:01.000Z | 2019-04-05T18:14:01.000Z | website/home/models.py | m-santh/VayuAnukulani | d1b881ac6268c24761dc0ef6db296d7e5ee1a22e | [
"MIT"
] | 18 | 2020-01-28T22:36:26.000Z | 2020-07-28T17:01:35.000Z | website/home/models.py | m-santh/VayuAnukulani | d1b881ac6268c24761dc0ef6db296d7e5ee1a22e | [
"MIT"
] | 3 | 2019-04-01T10:33:20.000Z | 2020-10-23T23:29:09.000Z | from django.db import models
from django.utils import timezone
class pollutants(models.Model):
date = models.DateTimeField(auto_now_add=True)
pm25 = models.FloatField(null=True, blank=True)
pm10 = models.FloatField(null=True, blank=True)
no2 = models.FloatField(null=True, blank=True)
so2 = models.... | 37.036364 | 54 | 0.713304 | 266 | 2,037 | 5.37218 | 0.157895 | 0.13436 | 0.218335 | 0.285514 | 0.914626 | 0.914626 | 0.855843 | 0.855843 | 0.855843 | 0.855843 | 0 | 0.021752 | 0.164948 | 2,037 | 54 | 55 | 37.722222 | 0.818342 | 0 | 0 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.043478 | 0.086957 | 1 | 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 | 1 | 0 | 0 | 10 |
4559dcf0eef681deca7849bd9cb3131b00838397 | 10,008 | py | Python | putcall/formulas/interest_rate_options/bachelier.py | pbrisk/optionpricing | a5984b52cb7bae33cfd48490439acea4844af0f9 | [
"Apache-2.0"
] | null | null | null | putcall/formulas/interest_rate_options/bachelier.py | pbrisk/optionpricing | a5984b52cb7bae33cfd48490439acea4844af0f9 | [
"Apache-2.0"
] | null | null | null | putcall/formulas/interest_rate_options/bachelier.py | pbrisk/optionpricing | a5984b52cb7bae33cfd48490439acea4844af0f9 | [
"Apache-2.0"
] | 2 | 2017-12-08T10:18:08.000Z | 2018-10-20T15:59:33.000Z | # -*- coding: utf-8 -*-
# putcall
# -------
# Collection of classical option pricing formulas.
#
# Author: sonntagsgesicht, based on a fork of Deutsche Postbank [pbrisk]
# Version: 0.2, copyright Wednesday, 18 September 2019
# Website: https://github.com/sonntagsgesicht/putcall
# License: Apache License 2.0 (see... | 34.75 | 103 | 0.731715 | 1,409 | 10,008 | 4.946771 | 0.069553 | 0.068867 | 0.088235 | 0.095696 | 0.873888 | 0.866284 | 0.839168 | 0.83056 | 0.824964 | 0.814347 | 0 | 0.009076 | 0.196343 | 10,008 | 287 | 104 | 34.87108 | 0.857516 | 0.496403 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013937 | 0 | 1 | 0.175676 | false | 0 | 0.054054 | 0 | 0.567568 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 8 |
4584f08390f63c05a52d49e5831c5ef7f101e8fc | 107 | py | Python | pyvista/examples/__init__.py | sampotter/pyvista | 491f9b103db907f3ba42fdc34135512ecc92727b | [
"MIT"
] | 2 | 2020-12-11T07:31:21.000Z | 2021-04-07T09:05:21.000Z | pyvista/examples/__init__.py | sampotter/pyvista | 491f9b103db907f3ba42fdc34135512ecc92727b | [
"MIT"
] | 6 | 2022-03-11T23:21:22.000Z | 2022-03-25T03:32:21.000Z | pyvista/examples/__init__.py | sampotter/pyvista | 491f9b103db907f3ba42fdc34135512ecc92727b | [
"MIT"
] | 1 | 2020-03-23T15:46:56.000Z | 2020-03-23T15:46:56.000Z | """Examples routines."""
from pyvista.examples.downloads import *
from pyvista.examples.examples import *
| 21.4 | 40 | 0.775701 | 12 | 107 | 6.916667 | 0.5 | 0.26506 | 0.457831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102804 | 107 | 4 | 41 | 26.75 | 0.864583 | 0.168224 | 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 |
45a12b512a8371ed1afd458212f0b26a4f4d764f | 1,140 | py | Python | web/models.py | Chaixi/My-Django-Demo | 43cea290f4a4a1c1a3b981eae3be11cc1188b103 | [
"MIT"
] | null | null | null | web/models.py | Chaixi/My-Django-Demo | 43cea290f4a4a1c1a3b981eae3be11cc1188b103 | [
"MIT"
] | null | null | null | web/models.py | Chaixi/My-Django-Demo | 43cea290f4a4a1c1a3b981eae3be11cc1188b103 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class News(models.Model):
title = models.CharField(max_length=100)
content = models.TextField()
source = models.CharField(max_length=100)
link = models.CharField(max_length=255)
release_time = models.DateTimeField()
read_status = models.In... | 35.625 | 45 | 0.729825 | 140 | 1,140 | 5.778571 | 0.221429 | 0.222497 | 0.266996 | 0.355995 | 0.932015 | 0.932015 | 0.932015 | 0.932015 | 0.932015 | 0.932015 | 0 | 0.037696 | 0.162281 | 1,140 | 32 | 46 | 35.625 | 0.809424 | 0.021053 | 0 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 1 | 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 | 1 | 0 | 0 | 11 |
45c37290aba50b71d6025dbf3abf806d4bb00a63 | 15,870 | py | Python | menu/tests/tests_views.py | pawelszopa/django_api_menu | 292c117aa4fea57aed80bbfc9cc2bece5c0da434 | [
"Beerware"
] | null | null | null | menu/tests/tests_views.py | pawelszopa/django_api_menu | 292c117aa4fea57aed80bbfc9cc2bece5c0da434 | [
"Beerware"
] | null | null | null | menu/tests/tests_views.py | pawelszopa/django_api_menu | 292c117aa4fea57aed80bbfc9cc2bece5c0da434 | [
"Beerware"
] | null | null | null | import json
from datetime import timedelta, date, datetime
from django.contrib.auth import get_user_model
from django.test import Client, TestCase
from django.urls import reverse
from rest_framework import status
from rest_framework.exceptions import ErrorDetail
from menu.models import Dish, Menu
from menu.serializer... | 41.653543 | 126 | 0.643226 | 1,940 | 15,870 | 5.030928 | 0.068557 | 0.09375 | 0.127254 | 0.109939 | 0.91998 | 0.903074 | 0.89416 | 0.871516 | 0.858607 | 0.826742 | 0 | 0.018829 | 0.226969 | 15,870 | 381 | 127 | 41.653543 | 0.776736 | 0 | 0 | 0.616314 | 0 | 0 | 0.114801 | 0 | 0 | 0 | 0 | 0 | 0.18429 | 1 | 0.117825 | false | 0.060423 | 0.02719 | 0 | 0.151057 | 0.003021 | 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 |
b31f4512e412d79bf186b3732ec103b5037e1679 | 1,294 | py | Python | mymoney/core/tests/test_validators.py | ychab/mymoney-server | 40dc9fdd08b3561287a9153342b25c58de8ad8ce | [
"BSD-3-Clause"
] | 6 | 2015-12-11T13:36:27.000Z | 2018-10-17T03:08:15.000Z | mymoney/core/tests/test_validators.py | ychab/mymoney-server | 40dc9fdd08b3561287a9153342b25c58de8ad8ce | [
"BSD-3-Clause"
] | 2 | 2016-06-12T12:42:47.000Z | 2017-12-12T14:05:14.000Z | mymoney/core/tests/test_validators.py | ychab/mymoney-server | 40dc9fdd08b3561287a9153342b25c58de8ad8ce | [
"BSD-3-Clause"
] | 1 | 2022-02-21T21:20:51.000Z | 2022-02-21T21:20:51.000Z | from django.test import TestCase
from rest_framework import serializers
from ..validators import MinMaxValidator
class MinMaxValidatorTestCase(TestCase):
def test_no_min(self):
validator = MinMaxValidator(field_min='min', field_max='max')
validator(data={'max': 10})
def test_no_max(self):
... | 33.179487 | 69 | 0.653787 | 157 | 1,294 | 5.22293 | 0.203822 | 0.059756 | 0.239024 | 0.281707 | 0.715854 | 0.715854 | 0.715854 | 0.715854 | 0.715854 | 0.715854 | 0 | 0.021256 | 0.200155 | 1,294 | 38 | 70 | 34.052632 | 0.771014 | 0 | 0 | 0.333333 | 0 | 0 | 0.060278 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 1 | 0.259259 | false | 0 | 0.111111 | 0 | 0.407407 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
b32c32914a8d32e0e1eb433916215e999193e5a2 | 1,715 | py | Python | tests/test_transform.py | tylerbwong/octohook | f0372f98dba16d653ab9beda42e4a9dd508dd3b1 | [
"MIT"
] | 4 | 2020-04-24T18:25:51.000Z | 2020-11-11T01:38:17.000Z | tests/test_transform.py | tylerbwong/octohook | f0372f98dba16d653ab9beda42e4a9dd508dd3b1 | [
"MIT"
] | 11 | 2020-03-24T03:35:06.000Z | 2022-03-31T09:50:49.000Z | tests/test_transform.py | tylerbwong/octohook | f0372f98dba16d653ab9beda42e4a9dd508dd3b1 | [
"MIT"
] | 2 | 2020-05-19T14:03:51.000Z | 2022-03-31T04:23:53.000Z | import pytest
from octohook.models import _transform as transform
@pytest.mark.parametrize(
"url, local_variables, expected",
[
("url/{a}/{b}", {"a": "a", "b": "b"}, "url/a/b"),
("url/some/more/{a}...{b}", {"a": "a", "b": "b"}, "url/some/more/a...b"),
],
)
def test_no_optional(url, local_... | 35.729167 | 81 | 0.441399 | 251 | 1,715 | 2.952191 | 0.099602 | 0.099865 | 0.155196 | 0.303644 | 0.873144 | 0.846154 | 0.821862 | 0.809717 | 0.793522 | 0.767881 | 0 | 0 | 0.208163 | 1,715 | 47 | 82 | 36.489362 | 0.545655 | 0 | 0 | 0.35 | 0 | 0 | 0.28863 | 0.013411 | 0 | 0 | 0 | 0 | 0.075 | 1 | 0.075 | false | 0 | 0.05 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 |
b3480b6664a1dda51644a15add4202651fd548bb | 11,778 | py | Python | symposion_project/apps/symposion/schedule/management/commands/load_sessions.py | mzdaniel/symposion | b2f557ca1be3bd61db2d902a31d57049fb6855c5 | [
"MIT"
] | 1 | 2017-09-04T08:19:08.000Z | 2017-09-04T08:19:08.000Z | symposion_project/apps/symposion/schedule/management/commands/load_sessions.py | mzdaniel/symposion | b2f557ca1be3bd61db2d902a31d57049fb6855c5 | [
"MIT"
] | null | null | null | symposion_project/apps/symposion/schedule/management/commands/load_sessions.py | mzdaniel/symposion | b2f557ca1be3bd61db2d902a31d57049fb6855c5 | [
"MIT"
] | null | null | null | from datetime import datetime
from django.core.management.base import BaseCommand
from schedule.models import Track, Session, Slot
friday_plenaries = [
[
{
"start": datetime(2011, 3, 11, 7, 0),
"end": datetime(2011, 3, 11, 8, 0),
},
{
"start": datetime... | 26.768182 | 84 | 0.393955 | 1,279 | 11,778 | 3.566849 | 0.06724 | 0.36826 | 0.398948 | 0.276195 | 0.853354 | 0.833187 | 0.5 | 0.464051 | 0.434239 | 0.434239 | 0 | 0.225144 | 0.438105 | 11,778 | 439 | 85 | 26.829157 | 0.464189 | 0 | 0 | 0.236277 | 0 | 0 | 0.085074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.00716 | null | null | 0.011933 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
2fc505b34cdc88027dc226646e2f50f00ec5f7aa | 3,165 | py | Python | hp_transfer_benchmarks/fcnet/_configspaces.py | hp-transfer/ht_benchmarks | fed6b15d2feea19dbb5bbe4cb10dacdf41d7f400 | [
"MIT"
] | 1 | 2021-03-16T22:50:11.000Z | 2021-03-16T22:50:11.000Z | hp_transfer_benchmarks/fcnet/_configspaces.py | hp-transfer/ht_benchmarks | fed6b15d2feea19dbb5bbe4cb10dacdf41d7f400 | [
"MIT"
] | null | null | null | hp_transfer_benchmarks/fcnet/_configspaces.py | hp-transfer/ht_benchmarks | fed6b15d2feea19dbb5bbe4cb10dacdf41d7f400 | [
"MIT"
] | null | null | null | import ConfigSpace as CS
class FCNetConfigspaceA(CS.ConfigurationSpace):
n_development_stages = 2
def __init__(self, development_stage=-1):
super().__init__()
self.development_stage = development_stage
self.add_hyperparameter(
CS.UniformIntegerHyperparameter("dropout_1",... | 32.628866 | 89 | 0.581675 | 306 | 3,165 | 5.732026 | 0.166667 | 0.127708 | 0.167617 | 0.18358 | 0.86146 | 0.86146 | 0.86146 | 0.843786 | 0.843786 | 0.801026 | 0 | 0.02802 | 0.312164 | 3,165 | 96 | 90 | 32.96875 | 0.777676 | 0 | 0 | 0.621951 | 0 | 0 | 0.103949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.012195 | 0 | 0.158537 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 |
2fe6f6f9083cb29233a5052bd405894fd8dda281 | 779 | py | Python | restraint/tests/commands_tests.py | ambitioninc/django-restraint | 993b071cd020310b42c1f85ae08e45c0fbd8a6f9 | [
"MIT"
] | 12 | 2015-03-20T19:09:22.000Z | 2017-08-31T16:47:10.000Z | restraint/tests/commands_tests.py | ambitioninc/django-restraint | 993b071cd020310b42c1f85ae08e45c0fbd8a6f9 | [
"MIT"
] | 4 | 2015-03-23T17:14:52.000Z | 2016-07-28T15:49:28.000Z | restraint/tests/commands_tests.py | ambitioninc/django-restraint | 993b071cd020310b42c1f85ae08e45c0fbd8a6f9 | [
"MIT"
] | 9 | 2015-03-18T13:29:58.000Z | 2021-08-13T18:25:14.000Z | from django.core.management import call_command
from django.test import SimpleTestCase
from mock import patch
class UpdateRestraintDbTest(SimpleTestCase):
@patch('restraint.management.commands.update_restraint_db.update_restraint_db', spec_set=True)
def test_wo_flush_default_access(self, mock_update_restraint... | 48.6875 | 98 | 0.827985 | 105 | 779 | 5.67619 | 0.304762 | 0.251678 | 0.285235 | 0.14094 | 0.718121 | 0.718121 | 0.718121 | 0.718121 | 0.718121 | 0.718121 | 0 | 0 | 0.102696 | 779 | 15 | 99 | 51.933333 | 0.852647 | 0 | 0 | 0.166667 | 0 | 0 | 0.225931 | 0.17715 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.5 | 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 |
2ff1526848a19cda2f12371bb318124eac6738ff | 1,931 | py | Python | python files/map_creator.py | dhbesson/abc_visualization | b024bf551e0e331e3f7bd9d63dbe1437a3c25aa7 | [
"MIT"
] | null | null | null | python files/map_creator.py | dhbesson/abc_visualization | b024bf551e0e331e3f7bd9d63dbe1437a3c25aa7 | [
"MIT"
] | null | null | null | python files/map_creator.py | dhbesson/abc_visualization | b024bf551e0e331e3f7bd9d63dbe1437a3c25aa7 | [
"MIT"
] | null | null | null | from PIL import Image
def create_map(im_loc,im_save, b_thresh):
# im = Image.open('networks/mesh_1000W_2m/0128210631_ABC.4326.png') # Can be many different formats.
im = Image.open(im_loc) # Can be many different formats.
pix = im.load()
print(im.size)
for x in range(im.size[0]):
... | 47.097561 | 109 | 0.520974 | 327 | 1,931 | 2.984709 | 0.16208 | 0.098361 | 0.122951 | 0.081967 | 0.952869 | 0.92418 | 0.92418 | 0.92418 | 0.92418 | 0.92418 | 0 | 0.152125 | 0.305541 | 1,931 | 40 | 110 | 48.275 | 0.57569 | 0.47333 | 0 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.043478 | 0 | 0.130435 | 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 |
6419e2f1a4724d2fcbbf62346e7e76fde98dba23 | 46 | py | Python | src/big_torch/utils/__init__.py | Denchidlo/big-torch | f5a65e6216e46e6d4fe98670c52618e4cccc8163 | [
"MIT"
] | null | null | null | src/big_torch/utils/__init__.py | Denchidlo/big-torch | f5a65e6216e46e6d4fe98670c52618e4cccc8163 | [
"MIT"
] | 1 | 2021-11-21T13:11:31.000Z | 2021-11-22T00:18:29.000Z | src/big_torch/utils/__init__.py | Denchidlo/big-torch | f5a65e6216e46e6d4fe98670c52618e4cccc8163 | [
"MIT"
] | null | null | null | from . import registry
from . import warnings
| 15.333333 | 22 | 0.782609 | 6 | 46 | 6 | 0.666667 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 46 | 2 | 23 | 23 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
ff3e43dde2acc5d2503545f1960375b698e9bdf4 | 403 | py | Python | src/utils/import_models.py | RUBIX-ML/credit-analysis | 68c4c2a16176f295e852800483802e4183d1df43 | [
"MIT"
] | 1 | 2019-09-23T04:55:20.000Z | 2019-09-23T04:55:20.000Z | src/utils/import_models.py | RUBIX-ML/credit-analysis | 68c4c2a16176f295e852800483802e4183d1df43 | [
"MIT"
] | null | null | null | src/utils/import_models.py | RUBIX-ML/credit-analysis | 68c4c2a16176f295e852800483802e4183d1df43 | [
"MIT"
] | null | null | null | from lightgbm import LGBMClassifier
from xgboost import XGBClassifier
from sklearn.ensemble import ExtraTreesClassifier
from sklearn.ensemble import GradientBoostingClassifier
from sklearn.ensemble import AdaBoostClassifier
from sklearn.ensemble import RandomForestClassifier
from sklearn.svm import SVC
from sklearn.tre... | 40.3 | 55 | 0.8933 | 44 | 403 | 8.159091 | 0.431818 | 0.214485 | 0.211699 | 0.278552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08933 | 403 | 9 | 56 | 44.777778 | 0.978202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
ffac39a9257069a125f151739509359b910f6871 | 6,645 | py | Python | pydda/tests/test_plots.py | mmenickelly/PyDDA | a896c6b0268afed1a853f2f593f58103da6c4cb7 | [
"BSD-3-Clause"
] | 49 | 2018-10-15T23:16:57.000Z | 2022-02-22T20:53:33.000Z | pydda/tests/test_plots.py | mmenickelly/PyDDA | a896c6b0268afed1a853f2f593f58103da6c4cb7 | [
"BSD-3-Clause"
] | 21 | 2018-12-11T15:33:02.000Z | 2022-03-04T09:28:06.000Z | pydda/tests/test_plots.py | mmenickelly/PyDDA | a896c6b0268afed1a853f2f593f58103da6c4cb7 | [
"BSD-3-Clause"
] | 26 | 2018-10-15T15:40:44.000Z | 2022-03-24T11:55:59.000Z | """ Testing module for PyDDA visualizations """
from matplotlib import use
use('agg')
import pydda
import pyart
import pytest
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
@pytest.mark.mpl_image_compare(tolerance=50)
def test_plot_horiz_xsection_barbs():
Grids = [pyart.io.read_grid(pydda.tests.EXAMPL... | 40.272727 | 77 | 0.597442 | 862 | 6,645 | 4.310905 | 0.099768 | 0.04521 | 0.071044 | 0.096878 | 0.949677 | 0.949139 | 0.931647 | 0.926803 | 0.926803 | 0.926803 | 0 | 0.041266 | 0.296163 | 6,645 | 164 | 78 | 40.518293 | 0.753261 | 0.005869 | 0 | 0.716418 | 0 | 0 | 0.018645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089552 | false | 0 | 0.044776 | 0 | 0.223881 | 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 |
44378e6d4dc555ac97c2cf82f9528da7748a2313 | 32 | py | Python | pyesl/esl_helpers/__init__.py | pinoeottavio/ESLEx | 9d203da5b46c8d66ade827c237c738a35928af48 | [
"MIT"
] | 1 | 2020-01-16T22:33:48.000Z | 2020-01-16T22:33:48.000Z | pyesl/esl_helpers/__init__.py | pinoeottavio/ESLEx | 9d203da5b46c8d66ade827c237c738a35928af48 | [
"MIT"
] | null | null | null | pyesl/esl_helpers/__init__.py | pinoeottavio/ESLEx | 9d203da5b46c8d66ade827c237c738a35928af48 | [
"MIT"
] | null | null | null | from .plt_style import plt_style | 32 | 32 | 0.875 | 6 | 32 | 4.333333 | 0.666667 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 32 | 1 | 32 | 32 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
4453dc4603b51129a42ebe98021c14b72485b9e3 | 71 | py | Python | ch01/hw01_05/hw01_05.py | z2x3c4v5bz/pybook_wenlongtsai_etc | 0a3e90d9f53a1d33e31b27f40de8abdce56e7e2a | [
"MIT"
] | 4 | 2021-06-12T07:51:22.000Z | 2021-12-20T11:35:12.000Z | ch01/hw01_05/hw01_05.py | z2x3c4v5bz/pybook_wenlongtsai_etc | 0a3e90d9f53a1d33e31b27f40de8abdce56e7e2a | [
"MIT"
] | null | null | null | ch01/hw01_05/hw01_05.py | z2x3c4v5bz/pybook_wenlongtsai_etc | 0a3e90d9f53a1d33e31b27f40de8abdce56e7e2a | [
"MIT"
] | 1 | 2021-11-08T03:36:43.000Z | 2021-11-08T03:36:43.000Z | # hw01_05
print('3 + 4 =', end=' ')
print(3 + 4)
'''
3 + 4 = 7
'''
| 6.454545 | 25 | 0.380282 | 12 | 71 | 2.166667 | 0.583333 | 0.230769 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22449 | 0.309859 | 71 | 10 | 26 | 7.1 | 0.306122 | 0.098592 | 0 | 0 | 0 | 0 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
446896220fd34eb16df59369093dd332306838f9 | 12,192 | py | Python | ner/tests/data/test_bilstm_gat_model_collate.py | freedomkite/easytext | ef83261a366bd8d7c259aa112da14f3fa7cdf918 | [
"MIT"
] | 17 | 2020-06-19T12:12:13.000Z | 2022-01-28T02:07:01.000Z | ner/tests/data/test_bilstm_gat_model_collate.py | freedomkite/easytext | ef83261a366bd8d7c259aa112da14f3fa7cdf918 | [
"MIT"
] | 24 | 2020-06-08T08:51:36.000Z | 2022-02-08T03:30:19.000Z | ner/tests/data/test_bilstm_gat_model_collate.py | freedomkite/easytext | ef83261a366bd8d7c259aa112da14f3fa7cdf918 | [
"MIT"
] | 7 | 2020-07-20T06:40:00.000Z | 2022-01-28T03:52:49.000Z | #!/usr/bin/env python 3
# -*- coding: utf-8 -*-
#
# Copyright (c) 2021 PanXu, Inc. All Rights Reserved
#
"""
测试 bilstm gat model collate
Authors: PanXu
Date: 2021/02/18 12:14:00
"""
import logging
import torch
from easytext.utils.json_util import json2str
from easytext.data import Vocabulary, LabelVocabulary, P... | 107.893805 | 2,777 | 0.446358 | 3,165 | 12,192 | 1.662875 | 0.036651 | 0.837925 | 1.152575 | 1.406042 | 0.689151 | 0.640319 | 0.607828 | 0.607828 | 0.567547 | 0.546266 | 0 | 0.318434 | 0.291667 | 12,192 | 112 | 2,778 | 108.857143 | 0.290991 | 0.019275 | 0 | 0.101695 | 0 | 0 | 0.008975 | 0 | 0 | 0 | 0 | 0 | 0.118644 | 1 | 0.016949 | false | 0 | 0.169492 | 0 | 0.186441 | 0 | 0 | 0 | 1 | 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 | 8 |
925312b7b0772fc6c9c9ce19ac91eda11a5cd03c | 509 | py | Python | currency.py | Aashish2023/hacktoberfest2021 | fdbc50a297deab5dc1a5e5e6360c5a0b07a705a6 | [
"CC0-1.0"
] | null | null | null | currency.py | Aashish2023/hacktoberfest2021 | fdbc50a297deab5dc1a5e5e6360c5a0b07a705a6 | [
"CC0-1.0"
] | null | null | null | currency.py | Aashish2023/hacktoberfest2021 | fdbc50a297deab5dc1a5e5e6360c5a0b07a705a6 | [
"CC0-1.0"
] | null | null | null | options = [
"USD",
"EUR",
"JPY",
"GBP",
"AUD",
"CAD",
"CHF",
"CNY",
"HKD",
"NZD",
"SEK",
"KRW",
"SGD",
"NOK",
"MXN",
"INR",
"RUB",
"ZAR",
"TRY",
"BRL",
]
opt2=[
"USD",
"EUR",
"JPY",
"GBP",
"A... | 11.065217 | 12 | 0.257367 | 42 | 509 | 3.119048 | 0.52381 | 0.091603 | 0.137405 | 0.183206 | 0.916031 | 0.916031 | 0.916031 | 0.916031 | 0.916031 | 0.916031 | 0 | 0.003891 | 0.495088 | 509 | 45 | 13 | 11.311111 | 0.505837 | 0 | 0 | 0.909091 | 0 | 0 | 0.258621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
2bb06c95522b4a76c61d0a737a2e5be28087649f | 26,020 | py | Python | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ip_pfilter_oper.py | tkamata-test/ydk-py | b637e7853a8edbbd31fbc05afa3aa4110b31c5f9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ip_pfilter_oper.py | tkamata-test/ydk-py | b637e7853a8edbbd31fbc05afa3aa4110b31c5f9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ip_pfilter_oper.py | tkamata-test/ydk-py | b637e7853a8edbbd31fbc05afa3aa4110b31c5f9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | """ Cisco_IOS_XR_ip_pfilter_oper
This module contains a collection of YANG definitions
for Cisco IOS\-XR ip\-pfilter package operational data.
This module contains definitions
for the following management objects\:
pfilter\-ma\: Root class of PfilterMa Oper schema
Copyright (c) 2013\-2016 by Cisco Systems, Inc.
A... | 41.301587 | 313 | 0.441045 | 2,352 | 26,020 | 4.655612 | 0.053571 | 0.048219 | 0.060274 | 0.047123 | 0.916347 | 0.901553 | 0.889589 | 0.8621 | 0.85516 | 0.851598 | 0 | 0.0143 | 0.478632 | 26,020 | 629 | 314 | 41.36725 | 0.792865 | 0.190046 | 0 | 0.826923 | 0 | 0.012821 | 0.117042 | 0.064931 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.054487 | 0.00641 | 0.535256 | 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 |
921223c8a5bd9c0de56f1c6678abcdba366dc933 | 5,240 | py | Python | naloga13.py | BarbaraPal/Project-Euler | 78ec9d62f452b99aaf24eca1b2c253d04d7ea830 | [
"MIT"
] | null | null | null | naloga13.py | BarbaraPal/Project-Euler | 78ec9d62f452b99aaf24eca1b2c253d04d7ea830 | [
"MIT"
] | null | null | null | naloga13.py | BarbaraPal/Project-Euler | 78ec9d62f452b99aaf24eca1b2c253d04d7ea830 | [
"MIT"
] | null | null | null | # Large sum
x = 371072875339021027987979982208375902465101357402504637693767749000971264812489697007805041701826053874324986199524741059474233309513058123726617309629919422133635741615725224305633018110724061549082502306758820753934617117198031042104751377806324667689261670696623633820136378418383684178734361726757281... | 349.333333 | 5,004 | 0.977863 | 44 | 5,240 | 116.409091 | 0.522727 | 0.004295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.969985 | 0.014504 | 5,240 | 15 | 5,005 | 349.333333 | 0.021882 | 0.001718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.090909 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
921af7fa2f2cf265271a4413ba1f0d086d17e33b | 934 | py | Python | tests/test_data.py | ONSdigital/sdx-receipt-rrm | b281cca78b56632765b1f4ec8bd9db54134f948e | [
"MIT"
] | null | null | null | tests/test_data.py | ONSdigital/sdx-receipt-rrm | b281cca78b56632765b1f4ec8bd9db54134f948e | [
"MIT"
] | 69 | 2016-12-22T15:16:20.000Z | 2021-03-19T23:58:24.000Z | tests/test_data.py | ONSdigital/sdx-receipt-rrm | b281cca78b56632765b1f4ec8bd9db54134f948e | [
"MIT"
] | 1 | 2021-04-11T07:51:27.000Z | 2021-04-11T07:51:27.000Z | test_secret = "seB388LNHgxcuvAcg1pOV20_VR7uJWNGAznE0fOqKxg=".encode('ascii')
test_data = {
'valid':
'{"tx_id":"0f534ffc-9442-414c-b39f-a756b4adc6cb", "case_id":"0f534ffc-9442-414c-b39f-a756b4adc6cb","collection":'
'{"exercise_sid":"hfjdskf"},"metadata":{"user_id":"789473423","ru_ref":"12345678901A"... | 58.375 | 126 | 0.654176 | 100 | 934 | 5.87 | 0.31 | 0.102215 | 0.143101 | 0.183986 | 0.773424 | 0.773424 | 0.773424 | 0.770017 | 0.770017 | 0.770017 | 0 | 0.212304 | 0.11242 | 934 | 15 | 127 | 62.266667 | 0.495778 | 0 | 0 | 0.285714 | 0 | 0.142857 | 0.807281 | 0.720557 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
a6197ccdd79e53c7abb6df016114a37b8d84888b | 5,487 | py | Python | orc.py | NicholasFry/chp_orc | c41a026b819db91ae8cab47620795840e3113778 | [
"MIT"
] | null | null | null | orc.py | NicholasFry/chp_orc | c41a026b819db91ae8cab47620795840e3113778 | [
"MIT"
] | null | null | null | orc.py | NicholasFry/chp_orc | c41a026b819db91ae8cab47620795840e3113778 | [
"MIT"
] | null | null | null | from tespy.connections import Connection
from tespy.components import (
HeatExchanger, Pump, Turbine, Source, Sink, CycleCloser,
Condenser, Drum
)
from tespy.components.subsystem import Subsystem
class ORC_without_ihe(Subsystem):
def create_comps(self):
"""Create the subsystem's components."""
... | 34.727848 | 72 | 0.516494 | 585 | 5,487 | 4.817094 | 0.097436 | 0.220369 | 0.161817 | 0.036196 | 0.898155 | 0.898155 | 0.898155 | 0.84528 | 0.791341 | 0.791341 | 0 | 0.03043 | 0.305267 | 5,487 | 157 | 73 | 34.949045 | 0.708814 | 0.053581 | 0 | 0.651163 | 0 | 0 | 0.189388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031008 | false | 0 | 0.023256 | 0 | 0.069767 | 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 |
a66e6afd4ce7ee8489002ea44cf38e7ad4654dce | 2,812 | py | Python | python/udemy-data-analysis-and-visualization/lecture09_numpy_indexing_arrays.py | juancarlosqr/datascience | 2e4d78365b059a3e501e988bee53970ac0d718fc | [
"MIT"
] | null | null | null | python/udemy-data-analysis-and-visualization/lecture09_numpy_indexing_arrays.py | juancarlosqr/datascience | 2e4d78365b059a3e501e988bee53970ac0d718fc | [
"MIT"
] | null | null | null | python/udemy-data-analysis-and-visualization/lecture09_numpy_indexing_arrays.py | juancarlosqr/datascience | 2e4d78365b059a3e501e988bee53970ac0d718fc | [
"MIT"
] | null | null | null | import numpy as np
arr = np.arange(0, 11)
print(arr)
# [ 0 1 2 3 4 5 6 7 8 9 10]
print(arr[8])
# 8
print(arr[1:5])
# [1 2 3 4]
# change elements
arr[0:5] = 100
print(arr)
# [100 100 100 100 100 5 6 7 8 9 10]
# reset original array
arr = np.arange(0, 11)
# slicing
slice1 = arr[0:6]
print(slice... | 20.985075 | 53 | 0.396515 | 618 | 2,812 | 1.762136 | 0.090615 | 0.214876 | 0.31405 | 0.407714 | 0.613407 | 0.573921 | 0.519743 | 0.499541 | 0.488522 | 0.451791 | 0 | 0.316732 | 0.364509 | 2,812 | 133 | 54 | 21.142857 | 0.292669 | 0.156828 | 0 | 0.371429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028571 | 0 | 0.028571 | 0.571429 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
a6cb4c87e3f50e3c1f785147bd640649a391f768 | 111 | py | Python | addons14/github_connector/wizards/__init__.py | odoochain/addons_oca | 55d456d798aebe16e49b4a6070765f206a8885ca | [
"MIT"
] | 1 | 2021-06-10T14:59:13.000Z | 2021-06-10T14:59:13.000Z | addons14/github_connector/wizards/__init__.py | odoochain/addons_oca | 55d456d798aebe16e49b4a6070765f206a8885ca | [
"MIT"
] | null | null | null | addons14/github_connector/wizards/__init__.py | odoochain/addons_oca | 55d456d798aebe16e49b4a6070765f206a8885ca | [
"MIT"
] | 1 | 2021-04-09T09:44:44.000Z | 2021-04-09T09:44:44.000Z | from . import wizard_create_team
from . import wizard_create_repository
from . import wizard_load_github_model
| 27.75 | 38 | 0.864865 | 16 | 111 | 5.5625 | 0.5625 | 0.337079 | 0.539326 | 0.494382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 111 | 3 | 39 | 37 | 0.89899 | 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 |
a6ce347e176a15aec5c8a1eb37b29510d17cc478 | 34,387 | py | Python | dmClusteringEval.py | daishuanglu/dmClustering | 4c4dbaa6ca0dbb983e88e315383659aab6a6b6a9 | [
"MIT"
] | null | null | null | dmClusteringEval.py | daishuanglu/dmClustering | 4c4dbaa6ca0dbb983e88e315383659aab6a6b6a9 | [
"MIT"
] | null | null | null | dmClusteringEval.py | daishuanglu/dmClustering | 4c4dbaa6ca0dbb983e88e315383659aab6a6b6a9 | [
"MIT"
] | null | null | null | from dmClustering import pwise_Euclid, dmClustering, group_label_acc, group_label
from dataReader import dataReader
import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
from collections import Counter
from sklearn.cluster import KMeans, SpectralClustering
from sklearn import dat... | 40.985697 | 121 | 0.630849 | 4,374 | 34,387 | 4.888889 | 0.071102 | 0.048354 | 0.039749 | 0.024878 | 0.873878 | 0.869342 | 0.833895 | 0.828563 | 0.802796 | 0.797372 | 0 | 0.028826 | 0.219153 | 34,387 | 838 | 122 | 41.034606 | 0.767569 | 0.013464 | 0 | 0.752577 | 0 | 0 | 0.102812 | 0.004203 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04768 | false | 0 | 0.015464 | 0 | 0.123711 | 0.18299 | 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 |
5b25e423e287221ea7925e7bc808c299cd760d0b | 68,586 | py | Python | benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_mylocality/cmp_hmmer/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_mylocality/cmp_hmmer/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_mylocality/cmp_hmmer/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | power = {'BUSES': {'Area': 1.33155,
'Bus/Area': 1.33155,
'Bus/Gate Leakage': 0.00662954,
'Bus/Peak Dynamic': 0.0,
'Bus/Runtime Dynamic': 0.0,
'Bus/Subthreshold Leakage': 0.0691322,
'Bus/Subthreshold Leakage with power gating': 0.0259246,
'Gate... | 75.039387 | 124 | 0.681743 | 8,098 | 68,586 | 5.768091 | 0.066313 | 0.123657 | 0.113038 | 0.093513 | 0.942539 | 0.934661 | 0.923485 | 0.899144 | 0.875294 | 0.856969 | 0 | 0.130971 | 0.224404 | 68,586 | 914 | 125 | 75.039387 | 0.747119 | 0 | 0 | 0.658643 | 0 | 0 | 0.657632 | 0.048114 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5b57f3da536331d6b74ea46e82e8140eeef724d2 | 50,820 | py | Python | skfem/quadrature.py | carlosal1015/scikit-fem | 1e73a417e9b43fe0a36e29807792c41fa289b77d | [
"BSD-3-Clause"
] | null | null | null | skfem/quadrature.py | carlosal1015/scikit-fem | 1e73a417e9b43fe0a36e29807792c41fa289b77d | [
"BSD-3-Clause"
] | null | null | null | skfem/quadrature.py | carlosal1015/scikit-fem | 1e73a417e9b43fe0a36e29807792c41fa289b77d | [
"BSD-3-Clause"
] | null | null | null | """Tabulated and generated quadrature points for various reference domains."""
import numpy as np
from typing import Tuple
def get_quadrature(refdom: str, norder: int) -> Tuple[np.ndarray, np.ndarray]:
"""Return a nth order accurate quadrature rule for different reference
domains.
Parame... | 91.567568 | 132 | 0.624262 | 4,278 | 50,820 | 7.409771 | 0.107994 | 0.009496 | 0.010347 | 0.019307 | 0.93719 | 0.919997 | 0.911575 | 0.892678 | 0.881668 | 0.814568 | 0 | 0.804056 | 0.279162 | 50,820 | 554 | 133 | 91.732852 | 0.061256 | 0.039276 | 0 | 0.623984 | 1 | 0 | 0.003952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010163 | false | 0 | 0.004065 | 0 | 0.034553 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
5bd73be13eb29a31bdfe6b6dbc1f3334675f52c1 | 494,316 | py | Python | project7/extra.py | MaxRobinson/CS449 | cdc65ce4784fb15eeb0a17a50498217f07aa190c | [
"Apache-2.0"
] | null | null | null | project7/extra.py | MaxRobinson/CS449 | cdc65ce4784fb15eeb0a17a50498217f07aa190c | [
"Apache-2.0"
] | null | null | null | project7/extra.py | MaxRobinson/CS449 | cdc65ce4784fb15eeb0a17a50498217f07aa190c | [
"Apache-2.0"
] | 1 | 2019-09-15T02:22:40.000Z | 2019-09-15T02:22:40.000Z | """ Created by Max 12/10/2017 """
from ValueIteration import ValueIteration
from Game import Game
x = {(0, 32, -5, -5): None,
(0, 32, -5, -4): None,
(0, 32, -5, -3): None,
(0, 32, -5, -2): None,
(0, 32, -5, -1): None,
(0, 32, -5, 0): None,
(0, 32, -5, 1): None,
(0, 32, -5, 2): None,
(0, 32, -5, 3): None,
(0,... | 24.880008 | 52 | 0.276726 | 118,163 | 494,316 | 1.157494 | 0.00055 | 0.16648 | 0.055779 | 0.016465 | 0.997748 | 0.910838 | 0.888823 | 0.871634 | 0.862509 | 0.820542 | 0 | 0.372237 | 0.27918 | 494,316 | 19,867 | 53 | 24.88126 | 0.011619 | 0.00018 | 0 | 0 | 0 | 0 | 0.000036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.000101 | 0 | 0.000101 | 0.00005 | 0 | 0 | 1 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 9 |
75375a6b5384a95f883762b6f1a0d5aeff004466 | 180 | py | Python | external/fv3fit/tests/keras/test_doctest.py | ai2cm/fv3net | e62038aee0a97d6207e66baabd8938467838cf51 | [
"MIT"
] | 1 | 2021-12-14T23:43:35.000Z | 2021-12-14T23:43:35.000Z | external/fv3fit/tests/keras/test_doctest.py | ai2cm/fv3net | e62038aee0a97d6207e66baabd8938467838cf51 | [
"MIT"
] | 195 | 2021-09-16T05:47:18.000Z | 2022-03-31T22:03:15.000Z | external/fv3fit/tests/keras/test_doctest.py | ai2cm/fv3net | e62038aee0a97d6207e66baabd8938467838cf51 | [
"MIT"
] | null | null | null | import doctest
from fv3fit.keras._models.shared import spectral_normalization
def test_spectral_normalization():
doctest.testmod(spectral_normalization, raise_on_error=True)
| 25.714286 | 64 | 0.85 | 22 | 180 | 6.636364 | 0.727273 | 0.431507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006098 | 0.088889 | 180 | 6 | 65 | 30 | 0.884146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.5 | 0 | 0.75 | 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 |
754e1621bf34fb30741b36ffe91d925f721c193f | 5,258 | py | Python | test_grad/test2_53_BottleNeck_grad_2pytorch.py | jie311/miemiedetection | b0e7a45717fe6c9cf9bf3c0f47d47a2e6c68b1b6 | [
"Apache-2.0"
] | 65 | 2021-12-30T03:30:52.000Z | 2022-03-25T01:44:32.000Z | test_grad/test2_53_BottleNeck_grad_2pytorch.py | jie311/miemiedetection | b0e7a45717fe6c9cf9bf3c0f47d47a2e6c68b1b6 | [
"Apache-2.0"
] | 1 | 2021-12-31T01:51:35.000Z | 2022-01-01T14:42:37.000Z | test_grad/test2_53_BottleNeck_grad_2pytorch.py | jie311/miemiedetection | b0e7a45717fe6c9cf9bf3c0f47d47a2e6c68b1b6 | [
"Apache-2.0"
] | 7 | 2021-12-31T09:25:06.000Z | 2022-03-10T01:25:09.000Z | import pickle
import six
import torch
from mmdet.models import BottleNeck
ch_in = 64
ch_out = 64
stride = 1
shortcut = False
variant = 'd'
groups = 1
base_width = 64
lr = 1.0
norm_type = 'bn'
norm_decay = 0.0
freeze_norm = False
dcn_v2 = False
std_senet = False
ch_in = 256
ch_out = 64
stride = 1
shortcut = True
vari... | 17.127036 | 80 | 0.628756 | 840 | 5,258 | 3.702381 | 0.102381 | 0.023151 | 0.072026 | 0.07717 | 0.850482 | 0.850482 | 0.845981 | 0.845981 | 0.845981 | 0.845981 | 0 | 0.072936 | 0.269874 | 5,258 | 306 | 81 | 17.183007 | 0.737171 | 0 | 0 | 0.878229 | 0 | 0 | 0.054244 | 0.010278 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00369 | false | 0 | 0.01476 | 0 | 0.01845 | 0.01107 | 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 |
f38b7fb27242c070c45634e3957b4311a05009e7 | 104 | py | Python | versions.py | CyrusDobbs/mining-argument-relations-using-transformers | a0732a782a64c1347a0a8ec375df43261b19c931 | [
"Apache-2.0"
] | null | null | null | versions.py | CyrusDobbs/mining-argument-relations-using-transformers | a0732a782a64c1347a0a8ec375df43261b19c931 | [
"Apache-2.0"
] | null | null | null | versions.py | CyrusDobbs/mining-argument-relations-using-transformers | a0732a782a64c1347a0a8ec375df43261b19c931 | [
"Apache-2.0"
] | null | null | null | import torch
print("Torch: {}".format(torch.__version__))
print("CUDA: {}".format(torch.version.cuda)) | 26 | 45 | 0.711538 | 13 | 104 | 5.384615 | 0.461538 | 0.314286 | 0.514286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067308 | 104 | 4 | 45 | 26 | 0.721649 | 0 | 0 | 0 | 0 | 0 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.666667 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 7 |
f38c84afb5e5323219467e7efc63691905a57722 | 9,513 | py | Python | recipes-webadmin/magicmodem/files/lcdproc/widgets.py | nixiesoft/manaospre | 38700be096679f234413977d577e057c730fdba1 | [
"MIT"
] | 2 | 2019-03-01T19:19:39.000Z | 2021-11-28T03:50:56.000Z | recipes-webadmin/magicmodem/files/lcdproc/widgets.py | nixiesoft/manaospre | 38700be096679f234413977d577e057c730fdba1 | [
"MIT"
] | null | null | null | recipes-webadmin/magicmodem/files/lcdproc/widgets.py | nixiesoft/manaospre | 38700be096679f234413977d577e057c730fdba1 | [
"MIT"
] | 4 | 2019-06-29T02:36:22.000Z | 2020-08-10T04:12:11.000Z | import urllib.request, urllib.parse, urllib.error
class StringWidget(object):
""" String Widget """
def __init__(self, screen, ref, x, y, text):
self.screen = screen
self.ref = ref
self.x = x
self.y = y
self.text = text
self.screen.server.request("wid... | 28.567568 | 122 | 0.389888 | 897 | 9,513 | 4.047938 | 0.053512 | 0.029744 | 0.031396 | 0.024236 | 0.854586 | 0.854586 | 0.845773 | 0.81355 | 0.795373 | 0.788763 | 0 | 0 | 0.51498 | 9,513 | 333 | 123 | 28.567568 | 0.786953 | 0.002838 | 0 | 0.810427 | 0 | 0.004739 | 0.043809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.218009 | false | 0 | 0.004739 | 0 | 0.260664 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
cacbebe378f5561f5f0ba3d416a58a0a29df1caf | 7,603 | py | Python | setup.py | Folamh/atreoraigh | 97a4fba51908df6aa2f3a34f934fce6ef1bc5dcc | [
"MIT"
] | null | null | null | setup.py | Folamh/atreoraigh | 97a4fba51908df6aa2f3a34f934fce6ef1bc5dcc | [
"MIT"
] | null | null | null | setup.py | Folamh/atreoraigh | 97a4fba51908df6aa2f3a34f934fce6ef1bc5dcc | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='Atreoraigh',
version='1',
packages=['venv.lib.python3.6.site-packages.scapy', 'venv.lib.python3.6.site-packages.scapy.arch',
'venv.lib.python3.6.site-packages.scapy.arch.windows', 'venv.lib.python3.6.site-packages.scapy.asn1',
'venv.lib.... | 86.397727 | 137 | 0.65632 | 1,259 | 7,603 | 3.915012 | 0.057983 | 0.136336 | 0.204504 | 0.34084 | 0.97464 | 0.97464 | 0.97464 | 0.866707 | 0.832217 | 0.832217 | 0 | 0.094504 | 0.155202 | 7,603 | 87 | 138 | 87.390805 | 0.672894 | 0 | 0 | 0 | 0 | 0.767442 | 0.79587 | 0.792713 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.011628 | 0 | 0.011628 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 12 |
cae14de87aeaef74c3e80270ac96023f446764c4 | 136 | py | Python | tools/Polygraphy/polygraphy/tools/template/subtool/__init__.py | leo0519/TensorRT | 498dcb009fe4c2dedbe9c61044d3de4f3c04a41b | [
"Apache-2.0"
] | 5,249 | 2019-06-17T17:20:34.000Z | 2022-03-31T17:56:05.000Z | tools/Polygraphy/polygraphy/tools/template/subtool/__init__.py | leo0519/TensorRT | 498dcb009fe4c2dedbe9c61044d3de4f3c04a41b | [
"Apache-2.0"
] | 1,721 | 2019-06-17T18:13:29.000Z | 2022-03-31T16:09:53.000Z | tools/Polygraphy/polygraphy/tools/template/subtool/__init__.py | leo0519/TensorRT | 498dcb009fe4c2dedbe9c61044d3de4f3c04a41b | [
"Apache-2.0"
] | 1,414 | 2019-06-18T04:01:17.000Z | 2022-03-31T09:16:53.000Z | from polygraphy.tools.template.subtool.trt_network import TrtNetwork
from polygraphy.tools.template.subtool.trt_config import TrtConfig
| 45.333333 | 68 | 0.882353 | 18 | 136 | 6.555556 | 0.611111 | 0.237288 | 0.322034 | 0.457627 | 0.627119 | 0.627119 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 136 | 2 | 69 | 68 | 0.921875 | 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 |
caf0722eca8f9f2034688029b073fa5cee9c2743 | 4,019 | py | Python | tasks_user/install_snakemake.py | dahak-metagenomics/dahak-yeti | 292b777220a1227715107f1659492a4622814f6e | [
"BSD-3-Clause"
] | null | null | null | tasks_user/install_snakemake.py | dahak-metagenomics/dahak-yeti | 292b777220a1227715107f1659492a4622814f6e | [
"BSD-3-Clause"
] | 8 | 2018-03-04T06:29:59.000Z | 2018-10-24T22:03:33.000Z | tasks_user/install_snakemake.py | dahak-metagenomics/dahak-yeti | 292b777220a1227715107f1659492a4622814f6e | [
"BSD-3-Clause"
] | 1 | 2018-10-25T05:05:54.000Z | 2018-10-25T05:05:54.000Z | #!/usr/bin/env python3
import os, sys
import getpass
import tempfile
import subprocess
"""
Install Snakemake
This script runs the necessary commands to install Snakemake.
"""
def install_snakemake_the_slightly_easier_way():
user = getpass.getuser()
if(user=="root"):
raise Exception("You are root - y... | 28.707143 | 91 | 0.520527 | 394 | 4,019 | 5.261421 | 0.215736 | 0.101302 | 0.100338 | 0.062711 | 0.841293 | 0.804149 | 0.743367 | 0.738543 | 0.708635 | 0.708635 | 0 | 0.004977 | 0.300075 | 4,019 | 139 | 92 | 28.913669 | 0.731959 | 0.038816 | 0 | 0.855556 | 0 | 0 | 0.319533 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0.033333 | 0.066667 | 0 | 0.088889 | 0.3 | 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 |
1b6c224b18b53bbafce76d001e6ba08d2a53ecdc | 1,283 | py | Python | web2py-appliances-master/Appliances/controllers/default.py | wantsomechocolate/WantsomeBeanstalk | 8c8a0a80490d04ea52661a3114fd3db8de65a01e | [
"BSD-3-Clause"
] | null | null | null | web2py-appliances-master/Appliances/controllers/default.py | wantsomechocolate/WantsomeBeanstalk | 8c8a0a80490d04ea52661a3114fd3db8de65a01e | [
"BSD-3-Clause"
] | null | null | null | web2py-appliances-master/Appliances/controllers/default.py | wantsomechocolate/WantsomeBeanstalk | 8c8a0a80490d04ea52661a3114fd3db8de65a01e | [
"BSD-3-Clause"
] | null | null | null | apps = ["admin", "AjaxSpreadsheet", "AppointmentManager", "ArXivInterface", "BingApi", "BitcoinExample", "CarSales", "CeleryIntegrationExample", "CookbookExample", "CssDesigner", "CustomerRelationshipManagement", "DnaAnalysisNeedlemanWunsh", "eCardsOnMap", "EmailContactForm", "EStoreExample", "FacebookClone", "Facebook... | 256.6 | 1,241 | 0.782541 | 72 | 1,283 | 13.944444 | 0.972222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006628 | 0.059236 | 1,283 | 4 | 1,242 | 320.75 | 0.825186 | 0 | 0 | 0 | 0 | 0 | 0.759158 | 0.128605 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 0.666667 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 8 |
1b7986dda6ca73063822fb89bf962e8738337650 | 65,281 | py | Python | app/uniquepair/service/tests/site-packages/buzzblog/gen/TUniquepairService.py | quyuyi/6365BuzzBlogApp | def9c033d56f65bb558cc1ee3260ac0d4229e690 | [
"Apache-2.0"
] | null | null | null | app/uniquepair/service/tests/site-packages/buzzblog/gen/TUniquepairService.py | quyuyi/6365BuzzBlogApp | def9c033d56f65bb558cc1ee3260ac0d4229e690 | [
"Apache-2.0"
] | null | null | null | app/uniquepair/service/tests/site-packages/buzzblog/gen/TUniquepairService.py | quyuyi/6365BuzzBlogApp | def9c033d56f65bb558cc1ee3260ac0d4229e690 | [
"Apache-2.0"
] | null | null | null | #
# 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.426011 | 134 | 0.588977 | 7,068 | 65,281 | 5.169921 | 0.028297 | 0.030048 | 0.028078 | 0.023152 | 0.930544 | 0.913412 | 0.898744 | 0.885225 | 0.864673 | 0.848964 | 0 | 0.007852 | 0.309386 | 65,281 | 1,952 | 135 | 33.443135 | 0.802657 | 0.022013 | 0 | 0.83944 | 1 | 0 | 0.037025 | 0.004467 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116589 | false | 0.005996 | 0.00533 | 0.035976 | 0.22052 | 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 |
9427574db88840f97658c978a59ed5f0b49702c9 | 142 | py | Python | tests/test_compound_wires.py | araghukas/nwlattice | 443d0a000c2b68cd99070245eede032e912c1a40 | [
"MIT"
] | 1 | 2020-11-23T01:00:34.000Z | 2020-11-23T01:00:34.000Z | tests/test_compound_wires.py | araghukas/nwlattice | 443d0a000c2b68cd99070245eede032e912c1a40 | [
"MIT"
] | null | null | null | tests/test_compound_wires.py | araghukas/nwlattice | 443d0a000c2b68cd99070245eede032e912c1a40 | [
"MIT"
] | null | null | null | """
TODO:
- does the last plane fit the first plane?
"""
def is_periodic(wire) -> bool:
return wire.planes[0].fits(wire.planes[-1])
| 15.777778 | 47 | 0.633803 | 22 | 142 | 4.045455 | 0.772727 | 0.224719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.197183 | 142 | 8 | 48 | 17.75 | 0.763158 | 0.366197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
947640153e954d0d2bf2942d9fa660df841ef86d | 2,635 | py | Python | core/data_viewmodels.py | ClairBerlin/managair | 44af9f73039ecdb7dd959dacda5470a103795ac3 | [
"BSD-3-Clause"
] | 4 | 2020-11-22T17:07:14.000Z | 2020-11-26T07:53:08.000Z | core/data_viewmodels.py | ClairBerlin/managair | 44af9f73039ecdb7dd959dacda5470a103795ac3 | [
"BSD-3-Clause"
] | 18 | 2020-12-04T07:48:13.000Z | 2022-01-26T18:09:33.000Z | core/data_viewmodels.py | ClairBerlin/managair | 44af9f73039ecdb7dd959dacda5470a103795ac3 | [
"BSD-3-Clause"
] | 1 | 2021-01-15T10:41:33.000Z | 2021-01-15T10:41:33.000Z | from datetime import datetime
class NodeTimeseriesListViewModel:
def __init__(
self,
pk,
node_alias: str,
sample_count: int,
query_timestamp_s: int = round(datetime.now().timestamp()),
from_timestamp_s: int = 0,
to_timestamp_s: int = round(datetime.now().tim... | 29.606742 | 75 | 0.618596 | 293 | 2,635 | 5.139932 | 0.116041 | 0.239044 | 0.119522 | 0.095618 | 0.89907 | 0.89907 | 0.89907 | 0.89907 | 0.84595 | 0.84595 | 0 | 0.002158 | 0.296395 | 2,635 | 89 | 76 | 29.606742 | 0.81014 | 0 | 0 | 0.860759 | 0 | 0 | 0.014416 | 0.008725 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050633 | false | 0 | 0.012658 | 0 | 0.139241 | 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 |
84793756ae99b3e0fb5f3ba915e3eccdfe31a0f5 | 4,887 | py | Python | webservice/netconfnc/create_vlan_nc.py | galenothiago/switch-automation | 91d5494425e4d5dd00d2387631cd2983cfca51a2 | [
"MIT"
] | null | null | null | webservice/netconfnc/create_vlan_nc.py | galenothiago/switch-automation | 91d5494425e4d5dd00d2387631cd2983cfca51a2 | [
"MIT"
] | null | null | null | webservice/netconfnc/create_vlan_nc.py | galenothiago/switch-automation | 91d5494425e4d5dd00d2387631cd2983cfca51a2 | [
"MIT"
] | 1 | 2020-12-13T12:19:29.000Z | 2020-12-13T12:19:29.000Z | #!/bin/python
import json
import requests
from ncclient import manager
from config.settings import DEVICE_PARAMS
def create_vlan(ip, user, password, port_link_type, dados_vlan):
device_kargs = {'port': 830, 'hostkey_verify': False, 'allow_agent': False,
'look_for_keys': False, 'devi... | 46.990385 | 131 | 0.431962 | 437 | 4,887 | 4.576659 | 0.173913 | 0.06 | 0.0495 | 0.0675 | 0.7835 | 0.7825 | 0.769 | 0.7585 | 0.7585 | 0.7585 | 0 | 0.013233 | 0.458768 | 4,887 | 103 | 132 | 47.446602 | 0.742911 | 0.006548 | 0 | 0.758621 | 0 | 0.045977 | 0.62342 | 0.11984 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011494 | false | 0.022989 | 0.045977 | 0 | 0.057471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
847cb88a2b548ecbd95fce7d3d6233ca871c9a04 | 9,140 | py | Python | wpkit/basic/filetools.py | Peiiii/wpkit | 23a07548be766b559b80e3114ecc24e3f2f65ea5 | [
"MIT"
] | null | null | null | wpkit/basic/filetools.py | Peiiii/wpkit | 23a07548be766b559b80e3114ecc24e3f2f65ea5 | [
"MIT"
] | null | null | null | wpkit/basic/filetools.py | Peiiii/wpkit | 23a07548be766b559b80e3114ecc24e3f2f65ea5 | [
"MIT"
] | null | null | null |
import glob,os,re
def count(arr,sort=True):
items=set(arr)
counts=[0]*len(items)
for i,el in enumerate(arr):
for j,item in enumerate(items):
if el==item:
counts[j]+=1
res=list(zip(items,counts))
if sort:
res.sort(key=lambda item:item[1],reverse=True)
... | 33.977695 | 85 | 0.521663 | 1,218 | 9,140 | 3.811166 | 0.070608 | 0.048255 | 0.031021 | 0.018957 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0.012888 | 0.337856 | 9,140 | 269 | 86 | 33.977695 | 0.754131 | 0.059847 | 0 | 1 | 0 | 0 | 0.027532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090164 | false | 0 | 0.008197 | 0.008197 | 0.221311 | 0.016393 | 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 |
84ade3c78a7039a0c6978925fcb68af5cf8371f8 | 3,131 | py | Python | bitsandbytes/optim/adagrad.py | acarapetis/bitsandbytes | 4e60e7dc62c50b6ba9b6becf6e779a1d48906be2 | [
"MIT"
] | 438 | 2021-10-07T01:43:58.000Z | 2022-03-31T12:39:23.000Z | bitsandbytes/optim/adagrad.py | acarapetis/bitsandbytes | 4e60e7dc62c50b6ba9b6becf6e779a1d48906be2 | [
"MIT"
] | 21 | 2021-10-10T09:09:54.000Z | 2022-03-25T16:23:00.000Z | bitsandbytes/optim/adagrad.py | acarapetis/bitsandbytes | 4e60e7dc62c50b6ba9b6becf6e779a1d48906be2 | [
"MIT"
] | 27 | 2021-10-06T23:43:17.000Z | 2022-02-23T19:23:44.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import torch
from bitsandbytes.optim.optimizer import Optimizer1State
torch.optim.Adagrad
class Adagrad(Optimizer1State):
def __init... | 53.982759 | 107 | 0.651868 | 428 | 3,131 | 4.567757 | 0.17757 | 0.030691 | 0.036829 | 0.110486 | 0.840921 | 0.840921 | 0.840921 | 0.840921 | 0.819437 | 0.771356 | 0 | 0.051059 | 0.230597 | 3,131 | 57 | 108 | 54.929825 | 0.760482 | 0.055254 | 0 | 0.714286 | 0 | 0 | 0.16661 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 1 | 0.061224 | false | 0 | 0.040816 | 0 | 0.163265 | 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 |
84b10bd5509806828597505e50d9e0e28db64b54 | 112 | py | Python | weatherapp/core/commands/__init__.py | midasinc/weatherapp.core | 583f4687ba706d8159a506e844d7630645f39f07 | [
"MIT"
] | null | null | null | weatherapp/core/commands/__init__.py | midasinc/weatherapp.core | 583f4687ba706d8159a506e844d7630645f39f07 | [
"MIT"
] | null | null | null | weatherapp/core/commands/__init__.py | midasinc/weatherapp.core | 583f4687ba706d8159a506e844d7630645f39f07 | [
"MIT"
] | 1 | 2019-01-28T17:22:09.000Z | 2019-01-28T17:22:09.000Z | from weatherapp.core.commands.config import Configurate
from weatherapp.core.commands.providers import Providers | 56 | 56 | 0.883929 | 14 | 112 | 7.071429 | 0.571429 | 0.282828 | 0.363636 | 0.525253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 112 | 2 | 56 | 56 | 0.942857 | 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 |
ca6a5a4d43ac796d2a5022c3720e6a72b9b17466 | 8,237 | py | Python | database/query/category.py | KWY-Q/SDUST-ACMER | 76796f975edbea379adb1ebec1d654ed88a38d36 | [
"MIT"
] | 2 | 2017-03-02T13:44:40.000Z | 2019-02-12T09:41:11.000Z | database/query/category.py | KWY-Q/SDUST-ACMER | 76796f975edbea379adb1ebec1d654ed88a38d36 | [
"MIT"
] | 1 | 2018-10-26T09:09:34.000Z | 2018-10-26T09:09:34.000Z | database/query/category.py | KWY-Q/SDUST-ACMER | 76796f975edbea379adb1ebec1d654ed88a38d36 | [
"MIT"
] | 1 | 2018-10-26T09:04:37.000Z | 2018-10-26T09:04:37.000Z | from ..models import ProblemCategory as __Category
from ..models import User as __User
from ..models import ProblemUserRelation as __ProblemUserRelation
from .util import first_one as __database_get
from .util import to_dict as __to_dict
from .util import to_list as __to_list
def get_category_basic(cat_name):
""... | 27.006557 | 112 | 0.57011 | 969 | 8,237 | 4.588235 | 0.072239 | 0.040936 | 0.027215 | 0.043185 | 0.857175 | 0.828385 | 0.796896 | 0.773504 | 0.744714 | 0.744714 | 0 | 0.005648 | 0.312128 | 8,237 | 304 | 113 | 27.095395 | 0.779033 | 0.048683 | 0 | 0.843137 | 0 | 0 | 0.075732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044118 | false | 0 | 0.029412 | 0 | 0.156863 | 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 |
ca7930d11814c45d5d77f75da19c6c8959af8d8c | 292 | py | Python | plynx/web/__init__.py | plynx-team/plynx | 4b53ca3500c629f1c0201cc8f4910a1f2a276a32 | [
"Apache-2.0"
] | 100 | 2020-03-12T05:14:48.000Z | 2022-03-30T09:26:53.000Z | plynx/web/__init__.py | plynx-team/plynx | 4b53ca3500c629f1c0201cc8f4910a1f2a276a32 | [
"Apache-2.0"
] | 48 | 2020-03-12T00:54:51.000Z | 2022-03-15T02:52:14.000Z | plynx/web/__init__.py | plynx-team/plynx | 4b53ca3500c629f1c0201cc8f4910a1f2a276a32 | [
"Apache-2.0"
] | 24 | 2020-04-23T03:14:37.000Z | 2022-03-27T12:10:49.000Z | # flake8: noqa
from plynx.web.common import app, verify_password, authenticate, requires_auth, register_user, make_fail_response, run_api
import plynx.web.node
import plynx.web.resource
import plynx.web.user
import plynx.web.state
import plynx.web.health
from gevent.pywsgi import WSGIServer
| 32.444444 | 122 | 0.835616 | 45 | 292 | 5.288889 | 0.6 | 0.201681 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003774 | 0.092466 | 292 | 8 | 123 | 36.5 | 0.89434 | 0.041096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.142857 | 1 | 0 | 1 | 0 | 0 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
0474e5ee4249578e9a9c7449b0c0dd31299b1616 | 149 | py | Python | atest/testresources/testlibs/pythonmodule/submodule/sublib.py | phil-davis/robotframework | 4d4ce686cbe01e293bb86ea6ff34330e8c45fc43 | [
"ECL-2.0",
"Apache-2.0"
] | 7,073 | 2015-01-01T17:19:16.000Z | 2022-03-31T22:01:29.000Z | atest/testresources/testlibs/pythonmodule/submodule/sublib.py | phil-davis/robotframework | 4d4ce686cbe01e293bb86ea6ff34330e8c45fc43 | [
"ECL-2.0",
"Apache-2.0"
] | 2,412 | 2015-01-02T09:29:05.000Z | 2022-03-31T13:10:46.000Z | atest/testresources/testlibs/pythonmodule/submodule/sublib.py | phil-davis/robotframework | 4d4ce686cbe01e293bb86ea6ff34330e8c45fc43 | [
"ECL-2.0",
"Apache-2.0"
] | 2,298 | 2015-01-03T02:47:15.000Z | 2022-03-31T02:00:16.000Z | def keyword_from_deeper_submodule():
return 'hi again'
class Sub:
def keyword_from_class_in_deeper_submodule(self):
return 'bye'
| 14.9 | 53 | 0.718121 | 20 | 149 | 4.95 | 0.65 | 0.20202 | 0.282828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208054 | 149 | 9 | 54 | 16.555556 | 0.838983 | 0 | 0 | 0 | 0 | 0 | 0.074324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
04b93455aac7c09c36eac4a92b591a61e5aac74c | 6,063 | py | Python | web/events/management/sources.py | vtalks/vtalks.net | 80fb19ff9684e0854c6abe5f0eef73e80ec326a6 | [
"Apache-2.0"
] | 1 | 2017-11-28T03:17:23.000Z | 2017-11-28T03:17:23.000Z | web/events/management/sources.py | vtalks/vtalks.net | 80fb19ff9684e0854c6abe5f0eef73e80ec326a6 | [
"Apache-2.0"
] | 56 | 2018-01-14T18:03:03.000Z | 2018-06-25T17:59:02.000Z | web/events/management/sources.py | vtalks/vtalks.net | 80fb19ff9684e0854c6abe5f0eef73e80ec326a6 | [
"Apache-2.0"
] | null | null | null | source_urls = {
"2014": [
"https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2014/javascript.json",
"https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2014/ruby.json",
"https://raw.githubusercontent.com/tech-conferences/... | 85.394366 | 117 | 0.757216 | 690 | 6,063 | 6.649275 | 0.050725 | 0.090671 | 0.283348 | 0.31735 | 0.977986 | 0.977986 | 0.977986 | 0.977986 | 0.977986 | 0.977986 | 0 | 0.042037 | 0.089725 | 6,063 | 70 | 118 | 86.614286 | 0.789273 | 0 | 0 | 0.073529 | 0 | 0.764706 | 0.87234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
ca0125f63ff8845e92fa1da8f0f095eeff20facb | 27,122 | py | Python | unit_tests/add_land_charge/test_location.py | LandRegistry/maintain-frontend | d92446a9972ebbcd9a43a7a7444a528aa2f30bf7 | [
"MIT"
] | 1 | 2019-10-03T13:58:29.000Z | 2019-10-03T13:58:29.000Z | unit_tests/add_land_charge/test_location.py | LandRegistry/maintain-frontend | d92446a9972ebbcd9a43a7a7444a528aa2f30bf7 | [
"MIT"
] | null | null | null | unit_tests/add_land_charge/test_location.py | LandRegistry/maintain-frontend | d92446a9972ebbcd9a43a7a7444a528aa2f30bf7 | [
"MIT"
] | 1 | 2021-04-11T05:24:57.000Z | 2021-04-11T05:24:57.000Z | from maintain_frontend import main
from flask_testing import TestCase
from unit_tests.utilities import Utilities
from flask import url_for
from unittest.mock import patch
from maintain_frontend.dependencies.session_api.session import Session
from maintain_frontend.models import LocalLandChargeItem
from maintain_fronten... | 43.815832 | 118 | 0.625581 | 2,757 | 27,122 | 5.823359 | 0.064563 | 0.050701 | 0.046154 | 0.05886 | 0.939894 | 0.939022 | 0.936095 | 0.93516 | 0.934662 | 0.934662 | 0 | 0.113615 | 0.24906 | 27,122 | 618 | 119 | 43.886731 | 0.67467 | 0 | 0 | 0.838843 | 0 | 0 | 0.291866 | 0.197183 | 0 | 0 | 0 | 0 | 0.113636 | 1 | 0.041322 | false | 0 | 0.020661 | 0 | 0.066116 | 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 |
b6c9616f41f34d4aa170cf2e27db78a43fbac1cf | 14,793 | py | Python | great_international/migrations/0101_remove_limit_on_atlas_landing_page_block_main_content.py | uktrade/directory-cms | 8c8d13ce29ea74ddce7a40f3dd29c8847145d549 | [
"MIT"
] | 6 | 2018-03-20T11:19:07.000Z | 2021-10-05T07:53:11.000Z | great_international/migrations/0101_remove_limit_on_atlas_landing_page_block_main_content.py | uktrade/directory-cms | 8c8d13ce29ea74ddce7a40f3dd29c8847145d549 | [
"MIT"
] | 802 | 2018-02-05T14:16:13.000Z | 2022-02-10T10:59:21.000Z | great_international/migrations/0101_remove_limit_on_atlas_landing_page_block_main_content.py | uktrade/directory-cms | 8c8d13ce29ea74ddce7a40f3dd29c8847145d549 | [
"MIT"
] | 6 | 2019-01-22T13:19:37.000Z | 2019-07-01T10:35:26.000Z | # Generated by Django 2.2.24 on 2021-09-06 13:11
from django.db import migrations
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.images.blocks
class Migration(migrations.Migration):
dependencies = [
('great_international', '0100_refactor_international_homepage'),
]
operati... | 238.596774 | 1,469 | 0.745082 | 1,995 | 14,793 | 5.423058 | 0.058145 | 0.139292 | 0.199556 | 0.129772 | 0.975783 | 0.975783 | 0.975783 | 0.975783 | 0.968851 | 0.968851 | 0 | 0.014319 | 0.09829 | 14,793 | 61 | 1,470 | 242.508197 | 0.796761 | 0.00311 | 0 | 0.654545 | 1 | 0.163636 | 0.306816 | 0.021567 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.072727 | 0 | 0.127273 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
8e08aaa4bcbcaeeb49c0995b980389fbb4038c75 | 12,102 | py | Python | monai/networks/nets/gmvae.py | albarqounilab/MONAI | bb0b307d68021a243011a58fd82a1d275f00a51a | [
"Apache-2.0"
] | null | null | null | monai/networks/nets/gmvae.py | albarqounilab/MONAI | bb0b307d68021a243011a58fd82a1d275f00a51a | [
"Apache-2.0"
] | null | null | null | monai/networks/nets/gmvae.py | albarqounilab/MONAI | bb0b307d68021a243011a58fd82a1d275f00a51a | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
import numpy as np
from typing import Sequence
from monai.networks.blocks import Convolution
from monai.networks.layers.convutils import weights_init
from monai.utils.misc import generate_tensor
from monai.networks.nets.convolutional_autoencoders import *
__all__ = ["GaussianMixtureV... | 45.156716 | 125 | 0.597257 | 1,600 | 12,102 | 4.211875 | 0.07375 | 0.016916 | 0.065292 | 0.089034 | 0.880991 | 0.864668 | 0.855171 | 0.85072 | 0.828461 | 0.81748 | 0 | 0.008775 | 0.293753 | 12,102 | 267 | 126 | 45.325843 | 0.779689 | 0.061808 | 0 | 0.75 | 0 | 0 | 0.028264 | 0.006953 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.04878 | 0 | 0.152439 | 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 |
ed9e92cd7647004f9b215a116f74fc70fbaf3764 | 48,407 | py | Python | src/syft/proto/grid/messages/role_messages_pb2.py | dnabanita7/PySyft | ce2510e65f5bad382e88806bcde30fa38c3c76c4 | [
"Apache-2.0"
] | 2 | 2018-07-23T20:34:10.000Z | 2020-08-01T09:09:09.000Z | packages/syft/src/syft/proto/grid/messages/role_messages_pb2.py | Metrix1010/PySyft | 6477f64b63dc285059c3766deab3993653cead2e | [
"Apache-2.0"
] | 5 | 2020-09-11T05:47:12.000Z | 2020-10-13T08:36:17.000Z | packages/syft/src/syft/proto/grid/messages/role_messages_pb2.py | Metrix1010/PySyft | 6477f64b63dc285059c3766deab3993653cead2e | [
"Apache-2.0"
] | 1 | 2020-10-15T06:13:38.000Z | 2020-10-15T06:13:38.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: proto/grid/messages/role_messages.proto
"""Generated protocol buffer code."""
# third party
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import refle... | 33.407177 | 3,373 | 0.617762 | 5,062 | 48,407 | 5.552746 | 0.037732 | 0.0444 | 0.065569 | 0.058595 | 0.835065 | 0.823111 | 0.773303 | 0.77188 | 0.77188 | 0.766259 | 0 | 0.037766 | 0.285062 | 48,407 | 1,448 | 3,374 | 33.430249 | 0.774416 | 0.02384 | 0 | 0.830925 | 1 | 0.004335 | 0.132165 | 0.098689 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.004335 | 0 | 0.004335 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
611bc4b32eaac10d967df72ee0843c3e4d1282c2 | 5,335 | py | Python | FT_to_generation/extend_pos.py | bm2-lab/X-MOL | a64cd4222ab819326767224d91fa8605f52f4fc4 | [
"Apache-2.0"
] | 19 | 2021-01-27T16:54:24.000Z | 2022-03-30T02:54:47.000Z | FT_to_generation/extend_pos.py | bm2-lab/X-MOL | a64cd4222ab819326767224d91fa8605f52f4fc4 | [
"Apache-2.0"
] | 1 | 2022-02-20T08:30:52.000Z | 2022-02-21T07:40:49.000Z | FT_to_generation/extend_pos.py | bm2-lab/X-MOL | a64cd4222ab819326767224d91fa8605f52f4fc4 | [
"Apache-2.0"
] | 5 | 2021-09-27T09:45:31.000Z | 2022-02-21T07:27:47.000Z | import os
import numpy as np
import argparse
import paddle.fluid as fluid
import sys
import json
def init_emb(size, dim):
program = fluid.Program()
global_block = program.global_block()
global_block.create_parameter(name="add_emb",
shape=[size, dim],
dtype='float32',
initializer=flu... | 30.3125 | 116 | 0.681912 | 771 | 5,335 | 4.40856 | 0.136187 | 0.055605 | 0.052957 | 0.030009 | 0.866431 | 0.839365 | 0.797882 | 0.797882 | 0.797882 | 0.785819 | 0 | 0.010979 | 0.197563 | 5,335 | 175 | 117 | 30.485714 | 0.782995 | 0.036739 | 0 | 0.741935 | 0 | 0 | 0.075799 | 0.013445 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.048387 | 0 | 0.169355 | 0.040323 | 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 |
b64a9199e5329adebd9761c6c2cf07a7f4f57956 | 3,069 | py | Python | stable_baselines3/common/corrective_feedback.py | corgiTrax/stable-baselines3 | 95dc5e30ab6a21225da4b718953e83870e4f146b | [
"MIT"
] | null | null | null | stable_baselines3/common/corrective_feedback.py | corgiTrax/stable-baselines3 | 95dc5e30ab6a21225da4b718953e83870e4f146b | [
"MIT"
] | null | null | null | stable_baselines3/common/corrective_feedback.py | corgiTrax/stable-baselines3 | 95dc5e30ab6a21225da4b718953e83870e4f146b | [
"MIT"
] | null | null | null | from pynput import keyboard, mouse
# Behavior Robot Corrective Action:
# order: torso - x, y, z, roll, pitch, yaw
# head
# left hand
# right hand
# gripper
behavior_robot = {
keyboard.KeyCode.from_char("a"): [
0,
1,
0,
0,
0,
0,
0,
... | 14.077982 | 78 | 0.244053 | 339 | 3,069 | 2.168142 | 0.091445 | 0.451701 | 0.563265 | 0.620408 | 0.92517 | 0.92517 | 0.92517 | 0.92517 | 0.92517 | 0.92517 | 0 | 0.19171 | 0.622678 | 3,069 | 217 | 79 | 14.142857 | 0.443005 | 0.099707 | 0 | 0.935961 | 0 | 0 | 0.004383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.004926 | 0 | 0.004926 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 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 | 12 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.