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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6fa8b0d447dc736b9790624203dd5045f04fd114 | 914 | py | Python | lang/Python/paraffins-3.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/paraffins-3.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/paraffins-3.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from functools import lru_cache
def Z_S(n, f, k):
"""
The cycle index of the symmetric group has recurrence
Z(S_n, f(x)) = 1/n \sum_{i=1}^n f(x^i) Z(S_{n-i}, f(x)).
This function finds the coefficient of x^k in Z(S_n, f(x))
"""
# Special case to avoid division by zero
... | 27.69697 | 93 | 0.583151 | 184 | 914 | 2.831522 | 0.320652 | 0.03071 | 0.028791 | 0.023033 | 0.222649 | 0.080614 | 0 | 0 | 0 | 0 | 0 | 0.136564 | 0.254923 | 914 | 32 | 94 | 28.5625 | 0.628488 | 0.292123 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.058824 | 0.235294 | 0.529412 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6fb4c74a0f91d3775234487fdb288250d9ae8f23 | 622 | py | Python | preprocess/stemming.py | hilalcahyo/tugas_akhir | 8bf90b0e25268d2b4034b1ac8f60b9cee9ebff40 | [
"MIT"
] | null | null | null | preprocess/stemming.py | hilalcahyo/tugas_akhir | 8bf90b0e25268d2b4034b1ac8f60b9cee9ebff40 | [
"MIT"
] | null | null | null | preprocess/stemming.py | hilalcahyo/tugas_akhir | 8bf90b0e25268d2b4034b1ac8f60b9cee9ebff40 | [
"MIT"
] | null | null | null | from typing import List
from multiprocessing import Pool, TimeoutError, cpu_count
from Sastrawi.Stemmer.StemmerFactory import StemmerFactory
import tqdm
import threading
class Stemming:
def __init__(self):
pass
def stem(self, tweets: List[str] = None, total_thread: int = 1) -> List[str]:
prin... | 31.1 | 88 | 0.680064 | 75 | 622 | 5.52 | 0.506667 | 0.10628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00207 | 0.223473 | 622 | 19 | 89 | 32.736842 | 0.855072 | 0 | 0 | 0 | 0 | 0 | 0.019293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.0625 | 0.3125 | 0 | 0.5625 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
6fb8fe8e291d1355c53cd2c376f3773cd0cfa289 | 182 | py | Python | questao/urls.py | enehias/desafio-backend | 125c2bfeb6abf9ab90fb9c7afc2e4bca7269efcc | [
"MIT"
] | null | null | null | questao/urls.py | enehias/desafio-backend | 125c2bfeb6abf9ab90fb9c7afc2e4bca7269efcc | [
"MIT"
] | null | null | null | questao/urls.py | enehias/desafio-backend | 125c2bfeb6abf9ab90fb9c7afc2e4bca7269efcc | [
"MIT"
] | null | null | null | from rest_framework import routers
from . import views
router = routers.SimpleRouter()
router.register(r'questao', views.QuestaoViewSet, basename='questao')
urlpatterns = router.urls | 36.4 | 69 | 0.813187 | 22 | 182 | 6.681818 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 182 | 5 | 70 | 36.4 | 0.885542 | 0 | 0 | 0 | 0 | 0 | 0.076503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6fcb1f2873590bd523933ffd401194eb8ccddf12 | 1,005 | py | Python | mqbench/custom_symbolic_opset.py | www516717402/MQBench | 8519ae6db18c3d09ec5dcc50a7e76349738ee819 | [
"Apache-2.0"
] | 179 | 2021-09-22T08:44:51.000Z | 2022-03-31T08:09:43.000Z | mqbench/custom_symbolic_opset.py | www516717402/MQBench | 8519ae6db18c3d09ec5dcc50a7e76349738ee819 | [
"Apache-2.0"
] | 46 | 2021-09-29T03:04:30.000Z | 2022-03-31T11:53:23.000Z | mqbench/custom_symbolic_opset.py | www516717402/MQBench | 8519ae6db18c3d09ec5dcc50a7e76349738ee819 | [
"Apache-2.0"
] | 42 | 2021-09-24T16:08:26.000Z | 2022-03-30T10:21:34.000Z | from torch.onnx import register_custom_op_symbolic
# Register symbolic op for torch.quantize_function op.
def _fake_quantize_learnable_per_tensor_affine(g, x, scale, zero_point, quant_min, quant_max, grad_factor):
return g.op("::LearnablePerTensorAffine", x, scale, zero_point, quant_min, quant_max)
register_cus... | 43.695652 | 123 | 0.821891 | 151 | 1,005 | 4.966887 | 0.231788 | 0.144 | 0.12 | 0.12 | 0.765333 | 0.657333 | 0.482667 | 0.458667 | 0.458667 | 0.458667 | 0 | 0.006543 | 0.087562 | 1,005 | 23 | 124 | 43.695652 | 0.811341 | 0.051741 | 0 | 0 | 0 | 0 | 0.191176 | 0.191176 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0.3 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6fd06d5c480addcc96a42fbf50ad20f1bb4f1d3c | 1,123 | py | Python | pcw/pcwmain.py | HidekiHrk/PyConfigWrapper | 2f1f6ff17cb95fef8827bc4912abfa31ef34ee0d | [
"MIT"
] | null | null | null | pcw/pcwmain.py | HidekiHrk/PyConfigWrapper | 2f1f6ff17cb95fef8827bc4912abfa31ef34ee0d | [
"MIT"
] | null | null | null | pcw/pcwmain.py | HidekiHrk/PyConfigWrapper | 2f1f6ff17cb95fef8827bc4912abfa31ef34ee0d | [
"MIT"
] | null | null | null | import json
import os
# Main Class for Config connection #
class Config(object):
def __init__(self, filename="config.json"):
self.filename = filename
self.__config_dict = {}
self.refresh()
def refresh(self):
if not os.path.isfile(self.filename):
with open(self.f... | 29.552632 | 75 | 0.589492 | 142 | 1,123 | 4.316901 | 0.359155 | 0.130506 | 0.182708 | 0.097879 | 0.146819 | 0.120718 | 0.120718 | 0.120718 | 0.120718 | 0.120718 | 0 | 0.005019 | 0.290294 | 1,123 | 38 | 76 | 29.552632 | 0.764115 | 0.028495 | 0 | 0.137931 | 0 | 0 | 0.028493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0 | 0.068966 | 0.103448 | 0.482759 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
6fe34a859120aa44427f0ea4104b9364f4944994 | 2,079 | py | Python | cord/exceptions.py | EveryZooM/cord-client-python | 84915dece3de45ae2be55255b709f1894dbab1f8 | [
"Apache-2.0"
] | null | null | null | cord/exceptions.py | EveryZooM/cord-client-python | 84915dece3de45ae2be55255b709f1894dbab1f8 | [
"Apache-2.0"
] | null | null | null | cord/exceptions.py | EveryZooM/cord-client-python | 84915dece3de45ae2be55255b709f1894dbab1f8 | [
"Apache-2.0"
] | 1 | 2021-01-11T22:12:47.000Z | 2021-01-11T22:12:47.000Z | #
# Copyright (c) 2020 Cord Technologies Limited
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 27.72 | 110 | 0.72102 | 254 | 2,079 | 5.854331 | 0.515748 | 0.133154 | 0.150639 | 0.172159 | 0.088769 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004782 | 0.195286 | 2,079 | 74 | 111 | 28.094595 | 0.884041 | 0.588745 | 0 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.384615 | 0 | 0.038462 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
6feb253cab5b026aed7f0719a11e295362febd13 | 599 | py | Python | clickhouse_driver/columns/numpy/floatcolumn.py | fasttrack-solutions/clickhouse-driver | 676dfb09f74b8b55bfecaedbe70ddc971e1badd7 | [
"MIT"
] | 823 | 2017-05-16T15:30:15.000Z | 2022-03-31T08:39:04.000Z | clickhouse_driver/columns/numpy/floatcolumn.py | fasttrack-solutions/clickhouse-driver | 676dfb09f74b8b55bfecaedbe70ddc971e1badd7 | [
"MIT"
] | 277 | 2017-07-11T11:35:34.000Z | 2022-03-08T06:52:09.000Z | clickhouse_driver/columns/numpy/floatcolumn.py | fasttrack-solutions/clickhouse-driver | 676dfb09f74b8b55bfecaedbe70ddc971e1badd7 | [
"MIT"
] | 175 | 2017-10-11T08:41:12.000Z | 2022-03-22T03:59:35.000Z | import numpy as np
from .base import NumpyColumn
# normalize_null_value = False due to float('nan')
# With normalization pandas.isnull will threat float('nan') as NULL value.
class NumpyFloat32Column(NumpyColumn):
dtype = np.dtype(np.float32)
ch_type = 'Float32'
normalize_null_value = False
def _ge... | 23.96 | 74 | 0.707846 | 85 | 599 | 4.823529 | 0.482353 | 0.087805 | 0.131707 | 0.168293 | 0.463415 | 0.341463 | 0.341463 | 0.341463 | 0.341463 | 0.341463 | 0 | 0.025316 | 0.208681 | 599 | 24 | 75 | 24.958333 | 0.839662 | 0.202003 | 0 | 0.428571 | 0 | 0 | 0.029474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b50e4b79e8010af439da1393949eac96806125a5 | 473 | py | Python | src/pyri_example_plugin/webui_server.py | pyri-project/pyri-example-plugin | 7665492925c2079be648661af9cbb09bec6de2a8 | [
"Apache-2.0"
] | null | null | null | src/pyri_example_plugin/webui_server.py | pyri-project/pyri-example-plugin | 7665492925c2079be648661af9cbb09bec6de2a8 | [
"Apache-2.0"
] | null | null | null | src/pyri_example_plugin/webui_server.py | pyri-project/pyri-example-plugin | 7665492925c2079be648661af9cbb09bec6de2a8 | [
"Apache-2.0"
] | null | null | null | from pyri.plugins.webui_server import PyriWebUIServerPluginFactory
from pyri.webui_server.webui_resource_router import PyriWebUIResourceRouteHandler
class PyriExampleWebUIServerPluginFactory(PyriWebUIServerPluginFactory):
def get_plugin_name(self):
return "pyri-example-plugin"
def get_plugin_route_han... | 36.384615 | 81 | 0.835095 | 44 | 473 | 8.636364 | 0.522727 | 0.047368 | 0.063158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112051 | 473 | 12 | 82 | 39.416667 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0.040169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.222222 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
82eb14da94eecee86214070d7ce30a3b25d108c8 | 1,408 | py | Python | linear_algebra/transformation_2d.py | ikr4mm/Python | 50c163ea56a411f17bc1b850ad28ac4c98eb7dff | [
"MIT"
] | 79 | 2021-09-12T02:31:14.000Z | 2022-03-29T08:46:53.000Z | linear_algebra/transformation_2d.py | ikr4mm/Python | 50c163ea56a411f17bc1b850ad28ac4c98eb7dff | [
"MIT"
] | 121 | 2021-09-10T02:38:47.000Z | 2022-03-30T03:30:35.000Z | linear_algebra/transformation_2d.py | ikr4mm/Python | 50c163ea56a411f17bc1b850ad28ac4c98eb7dff | [
"MIT"
] | 76 | 2021-09-10T02:27:28.000Z | 2022-03-28T10:24:12.000Z | # Transformasi 2D secara teratur digunakan dalam Aljabar Linier
# kode untuk matriks refleksi, proyeksi, penskalaan, dan rotasi 2D.
from math import cos, sin
from typing import List
def scaling(scaling_factor: float) -> List[List[float]]:
"""
>>> scaling(5)
[[5.0, 0.0], [0.0, 5.0]]
"""
scaling_fa... | 26.566038 | 79 | 0.610085 | 179 | 1,408 | 4.715084 | 0.340782 | 0.014218 | 0.061611 | 0.085308 | 0.272512 | 0.087678 | 0.066351 | 0.066351 | 0.066351 | 0.066351 | 0 | 0.206928 | 0.220881 | 1,408 | 52 | 80 | 27.076923 | 0.562443 | 0.413352 | 0 | 0.263158 | 0 | 0 | 0.01087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.157895 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d234fb9d752b06c65515327e80bb681394d797cc | 811 | py | Python | qlock/tests/controller/ws2801.py | perryrh0dan/qlock | ec168f6b5b8266d2f81fcd75112b3220178896bb | [
"MIT"
] | 6 | 2020-11-21T00:05:09.000Z | 2021-11-08T14:14:37.000Z | qlock/tests/controller/ws2801.py | perryrh0dan/qlock | ec168f6b5b8266d2f81fcd75112b3220178896bb | [
"MIT"
] | 1 | 2020-12-24T14:05:35.000Z | 2020-12-24T14:05:35.000Z | qlock/tests/controller/ws2801.py | perryrh0dan/qlock | ec168f6b5b8266d2f81fcd75112b3220178896bb | [
"MIT"
] | 1 | 2021-11-08T14:14:52.000Z | 2021-11-08T14:14:52.000Z | verbose = False
class Controller():
name = 'WS2801'
color = [0, 255, 0]
def change_color(self, color):
print(self.name + ' - Change color to: ' + str(color))
def change_brightness(self, brightness):
print(self.name + ' - Set brightmess to : ' + str(brightness))
def set_pixels(sel... | 26.16129 | 70 | 0.552404 | 100 | 811 | 4.41 | 0.29 | 0.142857 | 0.206349 | 0.163265 | 0.272109 | 0.272109 | 0.272109 | 0 | 0 | 0 | 0 | 0.016014 | 0.307028 | 811 | 30 | 71 | 27.033333 | 0.768683 | 0 | 0 | 0.181818 | 0 | 0 | 0.156597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0 | 0 | 0 | 0.454545 | 0.318182 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d23e101d3c632e63707c66bcf2f06e0406e66905 | 776 | py | Python | py/faint/extra/__init__.py | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | 10 | 2016-12-28T22:06:31.000Z | 2021-05-24T13:42:30.000Z | py/faint/extra/__init__.py | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | 4 | 2015-10-09T23:55:10.000Z | 2020-04-04T08:09:22.000Z | py/faint/extra/__init__.py | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 Lukas Kemmer
#
# Licensed under the Apache License, Version 2.0 (the "License"); you
# may not use this file except in compliance with the License. You
# may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 33.73913 | 70 | 0.75 | 118 | 776 | 4.915254 | 0.686441 | 0.103448 | 0.044828 | 0.055172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012678 | 0.186856 | 776 | 22 | 71 | 35.272727 | 0.906498 | 0.868557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d248ffeded6b49a9af6f0e5132c27602d7ea33d3 | 91 | py | Python | BasicPrograms/areaOfTriangle.py | shelcia/InterviewQuestionPython | c1bff9598da01e3b75472e78f7a1b28fdcb2d935 | [
"Apache-2.0"
] | 1 | 2020-09-30T19:06:15.000Z | 2020-09-30T19:06:15.000Z | BasicPrograms/areaOfTriangle.py | shelcia/InterviewQuestionPython | c1bff9598da01e3b75472e78f7a1b28fdcb2d935 | [
"Apache-2.0"
] | null | null | null | BasicPrograms/areaOfTriangle.py | shelcia/InterviewQuestionPython | c1bff9598da01e3b75472e78f7a1b28fdcb2d935 | [
"Apache-2.0"
] | null | null | null | # FINDING ARE OF TRIANGLE
N = list(map(int, input().split(' ')[:2]))
print(0.5*N[0]*N[1])
| 18.2 | 42 | 0.582418 | 18 | 91 | 2.944444 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063291 | 0.131868 | 91 | 4 | 43 | 22.75 | 0.607595 | 0.252747 | 0 | 0 | 0 | 0 | 0.015152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
d26da8c8c064530c37eeabe0dab3fffc4ca0a968 | 221 | py | Python | Dataset/Leetcode/train/136/178.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/136/178.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/136/178.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def singleNumber(self, nums: List[int]) -> int:
import collections
b = collections.Counter(nums)
if 1 in b.values():
return list(b.keys())[list(b.values()).index(1)]
| 27.625 | 57 | 0.588235 | 29 | 221 | 4.482759 | 0.655172 | 0.107692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01227 | 0.262443 | 221 | 7 | 58 | 31.571429 | 0.785276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d280a1b474630ae90f5fbb8059cc9d6b50d17704 | 194 | py | Python | pacote-download/Mundo1/ex003.py | ariadne-pereira/cev-python | b2c6bbebb5106bb0152c9127c04c83f23e9d7757 | [
"MIT"
] | null | null | null | pacote-download/Mundo1/ex003.py | ariadne-pereira/cev-python | b2c6bbebb5106bb0152c9127c04c83f23e9d7757 | [
"MIT"
] | null | null | null | pacote-download/Mundo1/ex003.py | ariadne-pereira/cev-python | b2c6bbebb5106bb0152c9127c04c83f23e9d7757 | [
"MIT"
] | null | null | null | n1 = int (input('Primeiro numero: '))
n2 = int (input('Segundo numero: '))
soma = n1+n2
# print('A soma entre ', n1, 'e ', n2, 'é ', soma)
print('A soma entre {} e {} é {}'.format(n1, n2, soma)) | 38.8 | 55 | 0.572165 | 32 | 194 | 3.46875 | 0.4375 | 0.144144 | 0.18018 | 0.27027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050633 | 0.185567 | 194 | 5 | 55 | 38.8 | 0.651899 | 0.247423 | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
962aeb3cb001074f360bd7cb639b500a8f45f3b7 | 878 | py | Python | tests/test_hotpatch.py | michael-olney/hotpatch | 9feb5343db4bed0287ca655758b58f866a4e5fe9 | [
"MIT"
] | 4 | 2019-06-27T06:43:30.000Z | 2020-08-20T12:06:24.000Z | tests/test_hotpatch.py | michael-olney/hotpatch | 9feb5343db4bed0287ca655758b58f866a4e5fe9 | [
"MIT"
] | null | null | null | tests/test_hotpatch.py | michael-olney/hotpatch | 9feb5343db4bed0287ca655758b58f866a4e5fe9 | [
"MIT"
] | 1 | 2020-04-03T03:18:04.000Z | 2020-04-03T03:18:04.000Z | from hotpatch import _make_trampoline, hotpatch
def test_make_trampoline():
def func(*args, **kwargs):
return (args, kwargs)
tramp = _make_trampoline(func)
assert tramp(1,2,a=1,b=2) == ((1, 2), {'a': 1, 'b': 2})
def test_hotpatch_more_freevars():
def f(a, b):
return a + b
c... | 17.56 | 59 | 0.526196 | 145 | 878 | 3.082759 | 0.213793 | 0.035794 | 0.071588 | 0.080537 | 0.447427 | 0.409396 | 0.380313 | 0.317673 | 0.250559 | 0.250559 | 0 | 0.080134 | 0.317768 | 878 | 49 | 60 | 17.918367 | 0.66611 | 0 | 0 | 0.424242 | 0 | 0 | 0.002281 | 0 | 0 | 0 | 0 | 0 | 0.242424 | 1 | 0.333333 | false | 0 | 0.030303 | 0.212121 | 0.575758 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
964c52a03a4c8495948d9fc3219523c5dbde235b | 10,229 | py | Python | snippets.py | aliasfoxkde/snippets | bb6dcc6597316ef9c88611f526935059451c3b5a | [
"MIT"
] | null | null | null | snippets.py | aliasfoxkde/snippets | bb6dcc6597316ef9c88611f526935059451c3b5a | [
"MIT"
] | null | null | null | snippets.py | aliasfoxkde/snippets | bb6dcc6597316ef9c88611f526935059451c3b5a | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# coding: utf-8
metadata = dict(
__author__="Aliasfox KDE",
__version__="0.0.3",
__license__="MIT License",
__email__="aliasfox@cyopsys.com",
__status__="Work in Progress",
__url__="https://github.com/aliasfoxkde/snippets",
__summary__="Simple but helpful library of ... | 28.256906 | 112 | 0.610519 | 1,500 | 10,229 | 4.096667 | 0.337333 | 0.015948 | 0.01074 | 0.014321 | 0.065419 | 0.045891 | 0.033198 | 0.02799 | 0.02799 | 0.002929 | 0 | 0.039474 | 0.219865 | 10,229 | 361 | 113 | 28.33518 | 0.730576 | 0.236191 | 0 | 0.077922 | 0 | 0 | 0.062326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.331169 | false | 0.006494 | 0.025974 | 0.188312 | 0.681818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
964d2bcd4314f91e8f4dce71de8a7148337c238b | 2,420 | py | Python | src/python/doufo/maybe.py | Hong-Xiang/doufo | 3d375fef30670597768a6eef809b75b4b1b5a3fd | [
"Apache-2.0"
] | 3 | 2018-08-05T07:16:34.000Z | 2018-08-10T05:28:24.000Z | src/python/doufo/maybe.py | tech-pi/doufo | 3d375fef30670597768a6eef809b75b4b1b5a3fd | [
"Apache-2.0"
] | 10 | 2018-09-16T15:44:19.000Z | 2018-10-06T10:39:59.000Z | src/python/doufo/maybe.py | tech-pi/doufo | 3d375fef30670597768a6eef809b75b4b1b5a3fd | [
"Apache-2.0"
] | 1 | 2018-08-04T08:13:50.000Z | 2018-08-04T08:13:50.000Z | """TM_FILENAME
Defined a `Maybe` object in `doufo`
Example: `Maybe=Union(T, None)`
Todo:
Author:
"""
from .control import Monad
from functools import partial
from typing import TypeVar, Callable
T = TypeVar('T')
B = TypeVar('B')
__all__ = ['Maybe']
class Maybe(Monad[T]):
"""doufo.Maybe define a ... | 29.512195 | 85 | 0.503719 | 292 | 2,420 | 4.10274 | 0.277397 | 0.050083 | 0.040067 | 0.046745 | 0.162771 | 0.060935 | 0 | 0 | 0 | 0 | 0 | 0 | 0.352893 | 2,420 | 81 | 86 | 29.876543 | 0.765006 | 0.519008 | 0 | 0 | 0 | 0 | 0.067416 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 1 | 0.315789 | false | 0 | 0.157895 | 0 | 0.789474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
73762d11908347661cf33151f075f68b204852a1 | 150 | py | Python | RabbitMq/tests/croppedImagesMessage_consumerTest.py | SvenSommer/LegoSorter.BrickRecognition | 1a653b597c3902f3c042182c414640eeaafcca87 | [
"MIT"
] | null | null | null | RabbitMq/tests/croppedImagesMessage_consumerTest.py | SvenSommer/LegoSorter.BrickRecognition | 1a653b597c3902f3c042182c414640eeaafcca87 | [
"MIT"
] | null | null | null | RabbitMq/tests/croppedImagesMessage_consumerTest.py | SvenSommer/LegoSorter.BrickRecognition | 1a653b597c3902f3c042182c414640eeaafcca87 | [
"MIT"
] | null | null | null | from RabbitMq.src.rabbitMqConsumer import RabbitMqConsumer
if __name__ == '__main__':
consumer_cropped = RabbitMqConsumer("CroppedBrickMessage")
| 30 | 62 | 0.813333 | 13 | 150 | 8.692308 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106667 | 150 | 4 | 63 | 37.5 | 0.843284 | 0 | 0 | 0 | 0 | 0 | 0.18 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7385f88567ef719a3a000abf71900f60ef8be315 | 871 | py | Python | PythonVersion.py | datenteiler/LibreOfficeMakrosPython | 3b7fdae9be2a3d98c1486a2ad313b16d0829a733 | [
"MIT"
] | 1 | 2020-10-05T11:57:54.000Z | 2020-10-05T11:57:54.000Z | PythonVersion.py | datenteiler/LibreOfficeMakrosPython | 3b7fdae9be2a3d98c1486a2ad313b16d0829a733 | [
"MIT"
] | null | null | null | PythonVersion.py | datenteiler/LibreOfficeMakrosPython | 3b7fdae9be2a3d98c1486a2ad313b16d0829a733 | [
"MIT"
] | null | null | null | import sys
from MsgBox import MsgBox
def getPyVers():
return "Die Python-Version ist {}.{}.{}".format(sys.version_info.major, sys.version_info.minor, sys.version_info.micro)
# Möchte man das Python-Makro aus der LO Symbolleiste aufrufen, erscheint die Fehlermeldung:
# "PythonVersion() takes 0 positional arguments... | 43.55 | 123 | 0.774971 | 116 | 871 | 5.784483 | 0.681034 | 0.044709 | 0.062593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00534 | 0.140069 | 871 | 19 | 124 | 45.842105 | 0.890521 | 0.597015 | 0 | 0 | 0 | 0 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
738e9621ca95b6c52895d385a39c34686be28a54 | 786 | py | Python | src/bitpay/models/invoice/shopper.py | ppatidar2021/python-bitpay-client | b0bd6ef6f2ce2950fb42e6583113e225639a4340 | [
"MIT"
] | 3 | 2022-01-24T17:02:22.000Z | 2022-03-10T00:57:20.000Z | src/bitpay/models/invoice/shopper.py | ppatidar2021/python-bitpay-client | b0bd6ef6f2ce2950fb42e6583113e225639a4340 | [
"MIT"
] | 1 | 2022-03-08T03:11:09.000Z | 2022-03-09T12:51:13.000Z | src/bitpay/models/invoice/shopper.py | ppatidar2021/python-bitpay-client | b0bd6ef6f2ce2950fb42e6583113e225639a4340 | [
"MIT"
] | 3 | 2021-12-24T05:57:33.000Z | 2022-03-14T09:17:40.000Z | """
Shopper
"""
from ...utils.key_utils import change_camel_case_to_snake_case
class Shopper:
"""
shopper
"""
__user = None
def __init__(self, **kwargs):
for key, value in kwargs.items():
try:
getattr(self, "set_%s" % change_camel_case_to_snake_case(key))(valu... | 19.170732 | 85 | 0.510178 | 88 | 786 | 4.261364 | 0.386364 | 0.085333 | 0.08 | 0.090667 | 0.138667 | 0.138667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.377863 | 786 | 40 | 86 | 19.65 | 0.766871 | 0.14631 | 0 | 0 | 0 | 0 | 0.017762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.0625 | 0.0625 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
739c1589646436e46a9eca446debff00672b7032 | 595 | py | Python | python/MacChange.py | evidawei/HacktoberFest_2021 | 3c950c6a6451ac732c4090f374c7dc4b6ef36c50 | [
"MIT"
] | 33 | 2021-10-01T17:51:53.000Z | 2022-03-20T11:30:09.000Z | python/MacChange.py | evidawei/HacktoberFest_2021 | 3c950c6a6451ac732c4090f374c7dc4b6ef36c50 | [
"MIT"
] | 69 | 2021-10-01T09:07:22.000Z | 2021-10-20T02:21:12.000Z | python/MacChange.py | evidawei/HacktoberFest_2021 | 3c950c6a6451ac732c4090f374c7dc4b6ef36c50 | [
"MIT"
] | 187 | 2021-10-01T09:06:51.000Z | 2022-01-29T03:18:30.000Z | # MAC Changer Snippet
import random
def GetRand():
"""Generate random sequence from the choices given"""
return random.choice('abcdef0123456789')
def NewMac():
"""Generate New MAC Address"""
new_ = ''
for i in range(0, 5):
new_ += GetRand() + GetRand() + ':'
new_ +=... | 17 | 58 | 0.573109 | 64 | 595 | 5.140625 | 0.5625 | 0.054711 | 0.118541 | 0.115502 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028777 | 0.29916 | 595 | 34 | 59 | 17.5 | 0.760192 | 0.289076 | 0 | 0.125 | 1 | 0 | 0.067935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0.0625 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
739ccdf82ae987c45079a800601d068aee2128e2 | 100 | py | Python | esercizi/DizionarioFor.py | gdv/python-alfabetizzazione | d87561222de8a230db11d8529c49cf1702aec326 | [
"MIT"
] | null | null | null | esercizi/DizionarioFor.py | gdv/python-alfabetizzazione | d87561222de8a230db11d8529c49cf1702aec326 | [
"MIT"
] | null | null | null | esercizi/DizionarioFor.py | gdv/python-alfabetizzazione | d87561222de8a230db11d8529c49cf1702aec326 | [
"MIT"
] | 1 | 2019-03-26T11:14:33.000Z | 2019-03-26T11:14:33.000Z | diz = {'a': 7, 'b': 3.0 + 5, 'c': 'pippo', 'd': 2 +1j}
for parola in diz:
print diz[parola]
| 12.5 | 54 | 0.47 | 19 | 100 | 2.473684 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082192 | 0.27 | 100 | 7 | 55 | 14.285714 | 0.561644 | 0 | 0 | 0 | 0 | 0 | 0.091837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
73a989d3cad95c7bb2a30924a1db88c37fd6bddc | 320 | py | Python | Ekeopara_Praise/Phase 2/STRINGS/Day34 Tasks/Task3.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 6 | 2020-05-23T19:53:25.000Z | 2021-05-08T20:21:30.000Z | Ekeopara_Praise/Phase 2/STRINGS/Day34 Tasks/Task3.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 8 | 2020-05-14T18:53:12.000Z | 2020-07-03T00:06:20.000Z | Ekeopara_Praise/Phase 2/STRINGS/Day34 Tasks/Task3.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 39 | 2020-05-10T20:55:02.000Z | 2020-09-12T17:40:59.000Z | '''3. Write a Python program to find the first repeated character in a given string.'''
def first_repeated_char(str1):
for index,c in enumerate(str1):
if str1[:index+1].count(c) > 1:
return c
return "None"
print(first_repeated_char("abcdabcd"))
print(first_repeated_char("abcd"))
#Reference: w3resource | 26.666667 | 87 | 0.71875 | 49 | 320 | 4.571429 | 0.632653 | 0.232143 | 0.227679 | 0.196429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025926 | 0.15625 | 320 | 12 | 88 | 26.666667 | 0.803704 | 0.321875 | 0 | 0 | 0 | 0 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0.285714 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
73be7f20c88622fb3f73a8a2e321a3650baed0ae | 1,241 | py | Python | app/contests/templatetags/filters.py | uva-slp/pico | 3a4f20ea5e9359e2e4b770442fa59ae8e0bf30ed | [
"MIT"
] | 1 | 2017-09-20T23:29:59.000Z | 2017-09-20T23:29:59.000Z | app/contests/templatetags/filters.py | uva-slp/pico | 3a4f20ea5e9359e2e4b770442fa59ae8e0bf30ed | [
"MIT"
] | null | null | null | app/contests/templatetags/filters.py | uva-slp/pico | 3a4f20ea5e9359e2e4b770442fa59ae8e0bf30ed | [
"MIT"
] | null | null | null | from django import template
from django.utils.safestring import mark_safe
from django.forms import CheckboxInput
from django.forms import CheckboxSelectMultiple
import re
'''
register = template.Library()
class_re = re.compile(r'(?<=class=["\'])(.*)(?=["\'])')
@register.filter(name='label_add_class')
def add_class(v... | 36.5 | 88 | 0.605157 | 150 | 1,241 | 4.66 | 0.3 | 0.091559 | 0.025751 | 0.028612 | 0.248927 | 0.177396 | 0.131617 | 0.120172 | 0.120172 | 0.120172 | 0 | 0.005314 | 0.241741 | 1,241 | 34 | 89 | 36.5 | 0.737513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
73d95fdc90b21a291d70a63bfc6026fb984c69f9 | 227 | py | Python | dadata/__init__.py | nalgeon/dadata | e0ad25a2bdb7608685e58e48442d74b813c74773 | [
"MIT"
] | 41 | 2020-08-06T04:56:54.000Z | 2022-02-25T16:03:17.000Z | dadata/__init__.py | nalgeon/dadata | e0ad25a2bdb7608685e58e48442d74b813c74773 | [
"MIT"
] | 6 | 2020-08-08T12:48:59.000Z | 2022-02-02T17:14:31.000Z | dadata/__init__.py | nalgeon/dadata | e0ad25a2bdb7608685e58e48442d74b813c74773 | [
"MIT"
] | 11 | 2020-10-06T13:56:52.000Z | 2022-02-11T11:11:03.000Z | """
Data cleansing and enrichment via Dadata API.
"""
from dadata.sync import DadataClient as Dadata # noqa
from dadata.asynchr import DadataClient as DadataAsync # noqa
__version__ = "21.10.1"
__all__ = [] # type: ignore
| 22.7 | 62 | 0.735683 | 30 | 227 | 5.3 | 0.733333 | 0.125786 | 0.251572 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026596 | 0.171806 | 227 | 9 | 63 | 25.222222 | 0.819149 | 0.303965 | 0 | 0 | 0 | 0 | 0.047297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
fb4b240a9467a77335b6feda1ef90646c39fddba | 3,896 | py | Python | tests/test_loadCsv.py | halx4/fortosto | 265bf75e38736bf759da0df41ebcb5350672ce4e | [
"MIT"
] | null | null | null | tests/test_loadCsv.py | halx4/fortosto | 265bf75e38736bf759da0df41ebcb5350672ce4e | [
"MIT"
] | null | null | null | tests/test_loadCsv.py | halx4/fortosto | 265bf75e38736bf759da0df41ebcb5350672ce4e | [
"MIT"
] | null | null | null | import unittest
from fortosto.commons.dao import DAO
from tests.TestConfigurationProvider import TestConfigurationProvider
import psycopg2
from fortosto.fortosto import Fortosto
class TestLoadCsv(unittest.TestCase):
def setUp(self):
conn = psycopg2.connect(
dbname=TestConfiguration... | 37.461538 | 107 | 0.63732 | 340 | 3,896 | 7.220588 | 0.235294 | 0.044807 | 0.150713 | 0.119756 | 0.769043 | 0.73442 | 0.713646 | 0.69002 | 0.69002 | 0.69002 | 0 | 0.005942 | 0.265657 | 3,896 | 103 | 108 | 37.825243 | 0.85215 | 0.041838 | 0 | 0.615385 | 0 | 0 | 0.08584 | 0.019045 | 0 | 0 | 0 | 0 | 0.115385 | 1 | 0.038462 | false | 0.025641 | 0.064103 | 0 | 0.115385 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fb4be71f884d3a57c6a689008d4421c9abdbace9 | 1,320 | py | Python | src/test_functions/other.py | vanitas-vanitatum/swarm-intelligence | 97bf985f545c612016fd6830092a6cd4ebd93cbe | [
"MIT"
] | null | null | null | src/test_functions/other.py | vanitas-vanitatum/swarm-intelligence | 97bf985f545c612016fd6830092a6cd4ebd93cbe | [
"MIT"
] | null | null | null | src/test_functions/other.py | vanitas-vanitatum/swarm-intelligence | 97bf985f545c612016fd6830092a6cd4ebd93cbe | [
"MIT"
] | null | null | null | import numpy as np
from src.test_functions.test_function import Function
class PermDBeta(Function):
"""
https://www.sfu.ca/~ssurjano/perm0db.html
"""
def __init__(self, beta=0.5):
self.beta = beta
def minimal_value(self, nb_dimensions):
return 0
def fitness_function_implement... | 26.938776 | 62 | 0.568182 | 180 | 1,320 | 4.05 | 0.355556 | 0.115226 | 0.087792 | 0.120713 | 0.469136 | 0.436214 | 0.356653 | 0.145405 | 0.145405 | 0.145405 | 0 | 0.050921 | 0.300758 | 1,320 | 48 | 63 | 27.5 | 0.738895 | 0.063636 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0.0625 | 0.125 | 0.53125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fb724e768031a759319c6ba9927f45bf5db58876 | 34 | py | Python | src/bot/config/errors.py | rdunc/rybot | ec3bf6159e095b53e69f6f81af9f10739c180b42 | [
"MIT"
] | 1 | 2016-01-11T02:10:05.000Z | 2016-01-11T02:10:05.000Z | src/bot/config/errors.py | rdunc/RyBot | ec3bf6159e095b53e69f6f81af9f10739c180b42 | [
"MIT"
] | null | null | null | src/bot/config/errors.py | rdunc/RyBot | ec3bf6159e095b53e69f6f81af9f10739c180b42 | [
"MIT"
] | null | null | null | global errors
errors = {
}
| 5.666667 | 14 | 0.529412 | 3 | 34 | 6 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.382353 | 34 | 5 | 15 | 6.8 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fb73d8c22c7f7f49f81fcec1828edf09ad13ca65 | 972 | py | Python | parser/fase2/team17/Traduccion/InterpreteF2/DML/show/show.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 35 | 2020-12-07T03:11:43.000Z | 2021-04-15T17:38:16.000Z | parser/fase2/team17/Traduccion/InterpreteF2/DML/show/show.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 47 | 2020-12-09T01:29:09.000Z | 2021-01-13T05:37:50.000Z | parser/fase2/team17/Traduccion/InterpreteF2/DML/show/show.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 556 | 2020-12-07T03:13:31.000Z | 2021-06-17T17:41:10.000Z | from InterpreteF2.NodoAST import NodoArbol
from InterpreteF2.Tabla_de_simbolos import Tabla_de_simbolos
from InterpreteF2.Arbol import Arbol
from InterpreteF2.Valor.Valor import Valor
from InterpreteF2.Primitivos.TIPO import TIPO
from InterpreteF2.Primitivos.COMPROBADOR_deTipos import COMPROBADOR_deTipos
class Show(N... | 32.4 | 80 | 0.717078 | 115 | 972 | 5.843478 | 0.321739 | 0.072917 | 0.15625 | 0.133929 | 0.30506 | 0.30506 | 0.30506 | 0.251488 | 0.191964 | 0 | 0 | 0.010191 | 0.192387 | 972 | 30 | 81 | 32.4 | 0.84586 | 0 | 0 | 0.181818 | 0 | 0 | 0.021583 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.181818 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
fb7bf349574257c070f738e702aea5a6a900e5a0 | 1,521 | py | Python | hailjwt/test/test_jwt.py | shutianxu/hail | 96d01857a6c148c44493b30f53c668d93d768e9c | [
"MIT"
] | null | null | null | hailjwt/test/test_jwt.py | shutianxu/hail | 96d01857a6c148c44493b30f53c668d93d768e9c | [
"MIT"
] | 1 | 2019-05-13T08:27:13.000Z | 2019-05-13T08:27:29.000Z | hailjwt/test/test_jwt.py | shutianxu/hail | 96d01857a6c148c44493b30f53c668d93d768e9c | [
"MIT"
] | null | null | null | import jwt
import re
import secrets
import hailjwt as hj
def test_round_trip():
c = hj.JWTClient(hj.JWTClient.generate_key())
json = {'hello': 'world'}
assert c.decode(c.encode(json)) == json
def test_fewer_than_256_bits_is_error():
try:
hj.JWTClient(secrets.token_bytes(31))
assert ... | 24.934426 | 68 | 0.653517 | 200 | 1,521 | 4.785 | 0.3 | 0.183908 | 0.095089 | 0.16092 | 0.54441 | 0.500522 | 0.46604 | 0.46604 | 0.46604 | 0.204807 | 0 | 0.009306 | 0.22288 | 1,521 | 60 | 69 | 25.35 | 0.800338 | 0 | 0 | 0.488889 | 1 | 0 | 0.068376 | 0 | 0 | 0 | 0 | 0 | 0.177778 | 1 | 0.155556 | false | 0.066667 | 0.088889 | 0 | 0.244444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
fb7de3a9601f215134f752cb6e295229d2fe3bb5 | 274 | py | Python | rtm/exceptions.py | erickirch/fdr | 6a0cc7067a135f81903862151fa25f87ac8690e2 | [
"MIT"
] | null | null | null | rtm/exceptions.py | erickirch/fdr | 6a0cc7067a135f81903862151fa25f87ac8690e2 | [
"MIT"
] | null | null | null | rtm/exceptions.py | erickirch/fdr | 6a0cc7067a135f81903862151fa25f87ac8690e2 | [
"MIT"
] | null | null | null | class RTMValidatorError(Exception):
pass
class RTMValidatorFileError(RTMValidatorError):
"""
Raise this for any errors related to the excel file itself.
Examples:
wrong file extension
file missing
missing worksheet
"""
pass
| 19.571429 | 63 | 0.667883 | 27 | 274 | 6.777778 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.281022 | 274 | 13 | 64 | 21.076923 | 0.928934 | 0.485401 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
fba8b1be3b673c5459b7f0badaea016834c72858 | 923 | py | Python | sic_assembler/errors.py | travcunn/sic_assembler | b1746ad172343dad5269daa5aae97fb0225664a2 | [
"MIT"
] | 2 | 2017-11-12T12:13:07.000Z | 2019-04-26T18:00:38.000Z | sic_assembler/errors.py | travcunn/sic_assembler | b1746ad172343dad5269daa5aae97fb0225664a2 | [
"MIT"
] | null | null | null | sic_assembler/errors.py | travcunn/sic_assembler | b1746ad172343dad5269daa5aae97fb0225664a2 | [
"MIT"
] | null | null | null | class BaseError(Exception):
def __init__(self, message, *args, **kwargs):
self.message = message
self.details = kwargs
def __str__(self):
return repr(self.message)
class InstructionError(BaseError):
def __init__(self, *args, **kwargs):
super(InstructionError, self).__init_... | 27.969697 | 67 | 0.68364 | 92 | 923 | 6.336957 | 0.206522 | 0.188679 | 0.113208 | 0.171527 | 0.457976 | 0.300172 | 0.300172 | 0 | 0 | 0 | 0 | 0 | 0.178765 | 923 | 32 | 68 | 28.84375 | 0.769129 | 0 | 0 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.047619 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
fbaa848c20bf6ac16497cbc4e6eacbd091a687f4 | 339 | py | Python | packagetrack/completeScript.py | idm2114/packagetrack | 94e88b17ea6e909f77c26d5bfb94cea6adf32d83 | [
"MIT"
] | null | null | null | packagetrack/completeScript.py | idm2114/packagetrack | 94e88b17ea6e909f77c26d5bfb94cea6adf32d83 | [
"MIT"
] | null | null | null | packagetrack/completeScript.py | idm2114/packagetrack | 94e88b17ea6e909f77c26d5bfb94cea6adf32d83 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#combining both scripts
#to run from one place easily
#author: ian macleod
from pyfiglet import Figlet
f = Figlet(font="slant")
print(f.renderText("packagetracker"))
import packagetrack.getemails
import packagetrack.inputPackage
import packagetrack.tracker
# print("Thanks for using our basic ... | 19.941176 | 54 | 0.787611 | 45 | 339 | 5.933333 | 0.777778 | 0.202247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120944 | 339 | 16 | 55 | 21.1875 | 0.895973 | 0.418879 | 0 | 0 | 0 | 0 | 0.098958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.166667 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fbb34357607fc2a2db3bf6078e0ff65e77bad69d | 220 | py | Python | Ekeopara_Praise/Phase 1/Python Basic 2/Day19 Tasks/Task6.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 6 | 2020-05-23T19:53:25.000Z | 2021-05-08T20:21:30.000Z | Ekeopara_Praise/Phase 1/Python Basic 2/Day19 Tasks/Task6.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 8 | 2020-05-14T18:53:12.000Z | 2020-07-03T00:06:20.000Z | Ekeopara_Praise/Phase 1/Python Basic 2/Day19 Tasks/Task6.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 39 | 2020-05-10T20:55:02.000Z | 2020-09-12T17:40:59.000Z | '''6. Write a Python program to compute the summation of the absolute difference of all distinct pairs in an given array (non-decreasing order).
Sample array: [1, 2, 3]
Then all the distinct pairs will be:
1 2
1 3
2 3''' | 36.666667 | 144 | 0.740909 | 42 | 220 | 3.880952 | 0.690476 | 0.159509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.181818 | 220 | 6 | 145 | 36.666667 | 0.85 | 0.972727 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fbd934761160d92f36550200c5d37ac82ca6121c | 214 | py | Python | data_collection/gazette/spiders/sc_presidente_getulio.py | kaiocp/querido-diario | 86004049c6eee305e13066cf3607d30849bb099a | [
"MIT"
] | 454 | 2018-04-07T03:32:57.000Z | 2020-08-17T19:56:22.000Z | data_collection/gazette/spiders/sc_presidente_getulio.py | kaiocp/querido-diario | 86004049c6eee305e13066cf3607d30849bb099a | [
"MIT"
] | 254 | 2020-08-18T14:09:43.000Z | 2022-03-28T11:30:51.000Z | data_collection/gazette/spiders/sc_presidente_getulio.py | kaiocp/querido-diario | 86004049c6eee305e13066cf3607d30849bb099a | [
"MIT"
] | 183 | 2018-04-11T15:09:37.000Z | 2020-08-15T18:55:11.000Z | from gazette.spiders.base.fecam import FecamGazetteSpider
class ScPresidenteGetulioSpider(FecamGazetteSpider):
name = "sc_presidente_getulio"
FECAM_QUERY = "cod_entidade:211"
TERRITORY_ID = "4214003"
| 26.75 | 57 | 0.78972 | 22 | 214 | 7.454545 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 0.135514 | 214 | 7 | 58 | 30.571429 | 0.832432 | 0 | 0 | 0 | 0 | 0 | 0.205607 | 0.098131 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
836ead11eadf29ba17492ba3ca3dcc01892fa6dd | 135 | py | Python | pglet/event.py | pglet/pglet-python | 31f65083d68888661d4780322c26bfc57c091e1c | [
"MIT"
] | 12 | 2021-05-01T17:49:57.000Z | 2022-02-12T21:20:56.000Z | pglet/event.py | pglet/pglet-python | 31f65083d68888661d4780322c26bfc57c091e1c | [
"MIT"
] | 47 | 2021-01-22T18:31:22.000Z | 2022-03-24T00:17:03.000Z | pglet/event.py | pglet/pglet-python | 31f65083d68888661d4780322c26bfc57c091e1c | [
"MIT"
] | 10 | 2021-02-08T19:13:42.000Z | 2022-03-26T10:40:20.000Z | class Event:
def __init__(self, target, name, data):
self.target = target
self.name = name
self.data = data | 27 | 43 | 0.585185 | 17 | 135 | 4.411765 | 0.470588 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.318519 | 135 | 5 | 44 | 27 | 0.815217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
837e1185e6f5b1f34c917ac289cfb9cf59ae4e19 | 3,245 | py | Python | examples/consumer_python/threat-actor-leveraging-attack-patterns-and-malware-consumer.py | emmanvg/cti-documentation | 585c182664598e87c333ea758df28bbf112e7e0c | [
"BSD-3-Clause"
] | 74 | 2017-01-21T19:29:48.000Z | 2022-02-21T09:09:56.000Z | examples/consumer_python/threat-actor-leveraging-attack-patterns-and-malware-consumer.py | joshricky26/cti-documentation | 623038adbfc68a4bab011cb0c4cb17eead62fd0c | [
"BSD-3-Clause"
] | 54 | 2017-02-28T20:47:53.000Z | 2022-02-18T20:45:25.000Z | examples/consumer_python/threat-actor-leveraging-attack-patterns-and-malware-consumer.py | joshricky26/cti-documentation | 623038adbfc68a4bab011cb0c4cb17eead62fd0c | [
"BSD-3-Clause"
] | 27 | 2016-11-08T21:07:32.000Z | 2022-01-04T05:22:54.000Z | from stix2.v21 import (Bundle)
for obj in bundle.objects:
if obj == threat_actor:
print("------------------")
print("== THREAT ACTOR ==")
print("------------------")
print("ID: " + obj.id)
print("Created: " + str(obj.created))
print("Modified: " + str(obj.modified))
... | 37.298851 | 69 | 0.490293 | 316 | 3,245 | 4.968354 | 0.129747 | 0.076433 | 0.053503 | 0.066879 | 0.72293 | 0.675796 | 0.675796 | 0.675796 | 0.675796 | 0.675796 | 0 | 0.002538 | 0.271495 | 3,245 | 86 | 70 | 37.732558 | 0.661591 | 0 | 0 | 0.746835 | 0 | 0 | 0.26718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.012658 | 0 | 0.012658 | 0.886076 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
83a460ffe283fddc8a0be9eab71e0e8fbef9d256 | 263 | py | Python | conferences/_compat.py | bionikspoon/conferences | b94f91972831bd18cc6c1929119692f54b90e513 | [
"MIT"
] | null | null | null | conferences/_compat.py | bionikspoon/conferences | b94f91972831bd18cc6c1929119692f54b90e513 | [
"MIT"
] | null | null | null | conferences/_compat.py | bionikspoon/conferences | b94f91972831bd18cc6c1929119692f54b90e513 | [
"MIT"
] | null | null | null | # coding=utf-8
"""Python 2to3 compatibility handling."""
import logging
try:
from logging import NullHandler
except ImportError: # pragma: no cover
# Python < 2.7
class NullHandler(logging.Handler):
def emit(self, record):
pass
| 20.230769 | 41 | 0.661597 | 31 | 263 | 5.612903 | 0.83871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025126 | 0.243346 | 263 | 12 | 42 | 21.916667 | 0.849246 | 0.30038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
83a99e4bf47494e0db5e73ef5f5b2a7f4f2f2e46 | 4,306 | py | Python | tests/unit/test_cli_utils.py | jlebon/packit | 0b0ca6bc12848f30b05d15a7e8234d079d4a35e8 | [
"MIT"
] | null | null | null | tests/unit/test_cli_utils.py | jlebon/packit | 0b0ca6bc12848f30b05d15a7e8234d079d4a35e8 | [
"MIT"
] | null | null | null | tests/unit/test_cli_utils.py | jlebon/packit | 0b0ca6bc12848f30b05d15a7e8234d079d4a35e8 | [
"MIT"
] | null | null | null | # MIT License
#
# Copyright (c) 2018-2019 Red Hat, Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, m... | 28.328947 | 80 | 0.756851 | 545 | 4,306 | 5.721101 | 0.255046 | 0.081142 | 0.14753 | 0.063502 | 0.640475 | 0.622194 | 0.610648 | 0.556446 | 0.491341 | 0.457665 | 0 | 0.004444 | 0.163957 | 4,306 | 151 | 81 | 28.516556 | 0.861667 | 0.24849 | 0 | 0.708861 | 0 | 0 | 0.075583 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 1 | 0.278481 | false | 0.050633 | 0.050633 | 0 | 0.379747 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
83ba5740a32ae174bc3bacb24fbfbad36c5ad3ed | 1,242 | py | Python | api/app/models/role.py | Crowd-Wire/CrowdWire | 945896ea693ccacfd5baf8f39ef0f715bbba3ac0 | [
"MIT"
] | 16 | 2021-06-17T00:21:40.000Z | 2022-03-29T08:48:03.000Z | api/app/models/role.py | Crowd-Wire/CrowdWire | 945896ea693ccacfd5baf8f39ef0f715bbba3ac0 | [
"MIT"
] | null | null | null | api/app/models/role.py | Crowd-Wire/CrowdWire | 945896ea693ccacfd5baf8f39ef0f715bbba3ac0 | [
"MIT"
] | 2 | 2021-08-10T11:55:51.000Z | 2021-11-18T23:05:42.000Z | from app.db.base_class import Base
from sqlalchemy import ForeignKey, Integer, Column, String, Boolean
from app.core.config import settings
class Role(Base):
"""
A world can have multiple roles.
"""
role_id = Column(Integer, primary_key=True, autoincrement=True)
world_id = Column(
Integer... | 41.4 | 74 | 0.718196 | 159 | 1,242 | 5.471698 | 0.320755 | 0.17931 | 0.24023 | 0.328736 | 0.516092 | 0.516092 | 0.516092 | 0.202299 | 0 | 0 | 0 | 0.001927 | 0.164251 | 1,242 | 29 | 75 | 42.827586 | 0.836224 | 0.070048 | 0 | 0 | 0 | 0 | 0.022827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
83c40d9a68343fc603e56baacd401be66dbe264a | 8,296 | py | Python | tests/stacking_node_tests.py | stanford-futuredata/Willump | bad9323823bb1becf7fa9ed8591e9fb4457d2c8b | [
"MIT"
] | 45 | 2019-02-15T20:59:14.000Z | 2022-01-15T12:07:06.000Z | tests/stacking_node_tests.py | stanford-futuredata/Willump | bad9323823bb1becf7fa9ed8591e9fb4457d2c8b | [
"MIT"
] | 6 | 2020-02-19T18:59:08.000Z | 2022-02-10T01:25:57.000Z | tests/stacking_node_tests.py | stanford-futuredata/Willump | bad9323823bb1becf7fa9ed8591e9fb4457d2c8b | [
"MIT"
] | 7 | 2019-06-26T00:41:23.000Z | 2022-01-15T12:07:07.000Z | import unittest
import numpy
import pandas as pd
import scipy.sparse
import scipy.sparse.csr
import sklearn.linear_model
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfVectorizer
import willump.evaluation.willump_executor as wexec
with open("tests/test_re... | 56.054054 | 118 | 0.727218 | 1,120 | 8,296 | 5.053571 | 0.122321 | 0.041343 | 0.041343 | 0.04523 | 0.773675 | 0.767491 | 0.723322 | 0.690813 | 0.675265 | 0.656714 | 0 | 0.019281 | 0.168515 | 8,296 | 147 | 119 | 56.435374 | 0.801247 | 0 | 0 | 0.479675 | 0 | 0 | 0.11391 | 0.025916 | 0 | 0 | 0 | 0 | 0.04065 | 1 | 0.081301 | false | 0 | 0.073171 | 0 | 0.203252 | 0.04065 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
83d74c2f289c083c52c7f216875a27d419e8331b | 189 | py | Python | cloud_info_provider/formatters/cmdb.py | sustr4/cloud-info-provider-deep | 94ba3e936991fc1fc123782cb3628c763b738e4a | [
"Apache-2.0"
] | null | null | null | cloud_info_provider/formatters/cmdb.py | sustr4/cloud-info-provider-deep | 94ba3e936991fc1fc123782cb3628c763b738e4a | [
"Apache-2.0"
] | 1 | 2018-07-12T08:28:53.000Z | 2018-07-12T08:28:53.000Z | cloud_info_provider/formatters/cmdb.py | orviz/cloud-info-provider | 5c97e11716f6c9195a034c3fc6f438dd5bce84b5 | [
"Apache-2.0"
] | null | null | null | from cloud_info_provider.formatters import base
class CMDB(base.BaseFormatter):
def __init__(self):
self.template_extension = 'cmdb.json'
self.templates = ['compute']
| 23.625 | 47 | 0.708995 | 22 | 189 | 5.772727 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 189 | 7 | 48 | 27 | 0.830065 | 0 | 0 | 0 | 0 | 0 | 0.084656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
83ef9bd452f5fb0240ab58796ad809e04251d635 | 68 | py | Python | randomit/__init__.py | dimitryzub/randomly | 80dfdb8a6991fa69b026a5cb461f3196e006f1d2 | [
"MIT"
] | null | null | null | randomit/__init__.py | dimitryzub/randomly | 80dfdb8a6991fa69b026a5cb461f3196e006f1d2 | [
"MIT"
] | null | null | null | randomit/__init__.py | dimitryzub/randomly | 80dfdb8a6991fa69b026a5cb461f3196e006f1d2 | [
"MIT"
] | 1 | 2022-03-13T04:48:48.000Z | 2022-03-13T04:48:48.000Z | '''Python library to generate random things'''
__version__ = "0.1.6" | 34 | 46 | 0.720588 | 10 | 68 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.117647 | 68 | 2 | 47 | 34 | 0.7 | 0.588235 | 0 | 0 | 1 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8600fc6fc5e2cffc5173a4638948df030a5c1d80 | 190 | py | Python | simple_tsp/helpers.py | cfld/simple_tsp | e19d6e4478d8784300350407480eccc26eef2fb5 | [
"MIT"
] | 8 | 2020-05-14T21:42:58.000Z | 2022-03-24T04:12:05.000Z | simple_tsp/helpers.py | cfld/simple_tsp | e19d6e4478d8784300350407480eccc26eef2fb5 | [
"MIT"
] | 1 | 2020-05-27T20:13:13.000Z | 2020-05-27T20:13:56.000Z | simple_tsp/helpers.py | cfld/simple_tsp | e19d6e4478d8784300350407480eccc26eef2fb5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
simple_tsp/helpers.py
"""
def route2cost(route, dist):
assert route[0] == 0
assert route[-1] == 0
return dist[(route[:-1], route[1:])].sum()
| 15.833333 | 46 | 0.563158 | 27 | 190 | 3.925926 | 0.62963 | 0.169811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047297 | 0.221053 | 190 | 11 | 47 | 17.272727 | 0.668919 | 0.221053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8603a187b5a04992911b2dfa9c15d3cf52383d0c | 234 | py | Python | uw_bookstore/util/__init__.py | uw-it-aca/uw-restclients-bookstore | fe0bf86c9eb550bc6858b61a3aff867a44bdde15 | [
"Apache-2.0"
] | null | null | null | uw_bookstore/util/__init__.py | uw-it-aca/uw-restclients-bookstore | fe0bf86c9eb550bc6858b61a3aff867a44bdde15 | [
"Apache-2.0"
] | 23 | 2017-06-20T20:44:51.000Z | 2021-05-24T16:18:16.000Z | uw_bookstore/util/__init__.py | uw-it-aca/uw-restclients-bookstore | fe0bf86c9eb550bc6858b61a3aff867a44bdde15 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0
from restclients_core.util.decorators import use_mock
from uw_bookstore import Bookstore_DAO
fdao_bookstore_override = use_mock(Bookstore_DAO())
| 29.25 | 53 | 0.833333 | 34 | 234 | 5.5 | 0.735294 | 0.074866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028436 | 0.098291 | 234 | 7 | 54 | 33.428571 | 0.85782 | 0.350427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f7d9a099871e7aa6c0fe78688f3cb0ed290adbf6 | 2,689 | py | Python | venv/Lib/site-packages/selenium/webdriver/remote/mobile.py | gilbertekalea/booking.com_crawler | 71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae | [
"MIT"
] | 25,151 | 2015-01-01T15:40:17.000Z | 2022-03-31T18:44:03.000Z | venv/Lib/site-packages/selenium/webdriver/remote/mobile.py | gilbertekalea/booking.com_crawler | 71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae | [
"MIT"
] | 9,885 | 2015-01-03T17:53:00.000Z | 2022-03-31T21:48:12.000Z | venv/Lib/site-packages/selenium/webdriver/remote/mobile.py | gilbertekalea/booking.com_crawler | 71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae | [
"MIT"
] | 8,441 | 2015-01-05T09:36:44.000Z | 2022-03-31T19:58:06.000Z | # Licensed to the Software Freedom Conservancy (SFC) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The SFC licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 30.908046 | 97 | 0.659725 | 321 | 2,689 | 5.411215 | 0.395639 | 0.040299 | 0.048935 | 0.069085 | 0.111687 | 0.055268 | 0.055268 | 0 | 0 | 0 | 0 | 0.007478 | 0.253998 | 2,689 | 86 | 98 | 31.267442 | 0.858425 | 0.380439 | 0 | 0.153846 | 0 | 0 | 0.032425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25641 | false | 0 | 0.051282 | 0.102564 | 0.641026 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f7dbe507be9ef80a374e5ab4f8d64db85796c3ad | 91 | py | Python | aiida_optimade/transformers/__init__.py | CasperWA/aiida-optimade | 9516e1521859efb9962f34841bc82d4e583dda38 | [
"MIT"
] | null | null | null | aiida_optimade/transformers/__init__.py | CasperWA/aiida-optimade | 9516e1521859efb9962f34841bc82d4e583dda38 | [
"MIT"
] | 2 | 2020-03-09T14:59:48.000Z | 2020-03-09T15:00:20.000Z | aiida_optimade/transformers/__init__.py | CasperWA/aiida-optimade | 9516e1521859efb9962f34841bc82d4e583dda38 | [
"MIT"
] | null | null | null | # pylint: disable=undefined-variable
from .aiida import *
__all__ = aiida.__all__ # noqa
| 18.2 | 36 | 0.747253 | 11 | 91 | 5.454545 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 91 | 4 | 37 | 22.75 | 0.779221 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f7ebd111bc235b5e72a299b58de7b1121598474f | 1,256 | py | Python | Shaders.py | noahiscool13/Python_raytracer | 11f556f3e6ca692bced9eb26552a2d5084321677 | [
"MIT"
] | null | null | null | Shaders.py | noahiscool13/Python_raytracer | 11f556f3e6ca692bced9eb26552a2d5084321677 | [
"MIT"
] | null | null | null | Shaders.py | noahiscool13/Python_raytracer | 11f556f3e6ca692bced9eb26552a2d5084321677 | [
"MIT"
] | null | null | null | from SceneObjects import *
def ambiant(material, scene):
return material.Ka * scene.ambiant_light
def emittance(material):
return material.Ke
def direct(material):
return material.Kd
def diffuse(normal, posHit, lightPos, material=Material(Kd=Vec3(1)), uv=Vec2(0, 0)):
lightDirection = (lightPos -... | 25.632653 | 84 | 0.644108 | 155 | 1,256 | 5.16129 | 0.367742 | 0.07 | 0.055 | 0.06 | 0.085 | 0.085 | 0 | 0 | 0 | 0 | 0 | 0.010384 | 0.23328 | 1,256 | 48 | 85 | 26.166667 | 0.820353 | 0.159236 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0 | 0.04 | 0.16 | 0.64 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f7f5a913b1a8d7482826a294101b9d878c06db31 | 162 | py | Python | CodingBat/Warmup-1/diff21.py | N-l1/dmoj | bbd55ab45731774385805eb31ea790454a3a6819 | [
"MIT"
] | null | null | null | CodingBat/Warmup-1/diff21.py | N-l1/dmoj | bbd55ab45731774385805eb31ea790454a3a6819 | [
"MIT"
] | null | null | null | CodingBat/Warmup-1/diff21.py | N-l1/dmoj | bbd55ab45731774385805eb31ea790454a3a6819 | [
"MIT"
] | null | null | null | """
Warmup-1 > diff21
Find this problem at:
https://codingbat.com/prob/p197466
"""
def diff21(n):
if n > 21:
return abs(2*(n-21))
return 21 - n
| 13.5 | 34 | 0.58642 | 26 | 162 | 3.653846 | 0.730769 | 0.063158 | 0.189474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147541 | 0.246914 | 162 | 11 | 35 | 14.727273 | 0.631148 | 0.45679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f7f857dea1a667af831b3fbd0fa512325882af92 | 141 | py | Python | practice/4. radius/4. radius/_4._radius.py | thekaranjit/pythonpractice | c87f535f694ee259a4d9de317f5b2eacd0e3748f | [
"Unlicense"
] | 1 | 2018-06-21T23:15:18.000Z | 2018-06-21T23:15:18.000Z | practice/4. radius/4. radius/_4._radius.py | thekaranjit/pythonpractice | c87f535f694ee259a4d9de317f5b2eacd0e3748f | [
"Unlicense"
] | null | null | null | practice/4. radius/4. radius/_4._radius.py | thekaranjit/pythonpractice | c87f535f694ee259a4d9de317f5b2eacd0e3748f | [
"Unlicense"
] | null | null | null | from math import pi
r = float(input("Input the radious of circle: "))
print("Area of a circle with radius" + str(r) + "is:" + str(pi *r**2))
| 35.25 | 70 | 0.64539 | 26 | 141 | 3.5 | 0.730769 | 0.065934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.177305 | 141 | 3 | 71 | 47 | 0.775862 | 0 | 0 | 0 | 0 | 0 | 0.425532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f7fd4ad24afe06422bc497d69f3c9d9e1412ca33 | 125 | py | Python | project/server/main/modules/api/routes/user/__init__.py | ardikabs/flask-server-template | e1dfb33323cc89f6163d604007263b73ec5b6e12 | [
"MIT"
] | 1 | 2019-01-15T10:33:04.000Z | 2019-01-15T10:33:04.000Z | project/server/main/modules/api/routes/user/__init__.py | ardikabs/flask-server-template | e1dfb33323cc89f6163d604007263b73ec5b6e12 | [
"MIT"
] | null | null | null | project/server/main/modules/api/routes/user/__init__.py | ardikabs/flask-server-template | e1dfb33323cc89f6163d604007263b73ec5b6e12 | [
"MIT"
] | null | null | null |
from flask_restplus import Namespace
api = Namespace("users", description="User Related Operation")
from . import resource | 20.833333 | 62 | 0.792 | 15 | 125 | 6.533333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128 | 125 | 6 | 63 | 20.833333 | 0.899083 | 0 | 0 | 0 | 0 | 0 | 0.216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f7fe4058ec82de1e42ecdc36092e184e8c69410d | 286 | py | Python | labgraph/zmq_node/zmq_message.py | Yunusbcr/labgraph | a00ae7098b7b0e0eda8ce2e7e62dae86854616fb | [
"MIT"
] | 124 | 2021-07-14T21:25:59.000Z | 2022-03-08T20:40:16.000Z | labgraph/zmq_node/zmq_message.py | VanEdward/labgraph | 9488feac59f9ef86091befdeaddb69d84e4d6fb3 | [
"MIT"
] | 46 | 2021-07-16T18:41:11.000Z | 2022-03-31T20:53:00.000Z | labgraph/zmq_node/zmq_message.py | VanEdward/labgraph | 9488feac59f9ef86091befdeaddb69d84e4d6fb3 | [
"MIT"
] | 22 | 2021-07-16T18:34:56.000Z | 2022-03-31T15:12:06.000Z | #!/usr/bin/env python3
# Copyright 2004-present Facebook. All Rights Reserved.
from ..messages import Message
from ..messages.types import BytesType
class ZMQMessage(Message):
"""
A message representing data that was/will be communicated
to ZMQ.
"""
data: bytes
| 19.066667 | 61 | 0.70979 | 36 | 286 | 5.638889 | 0.833333 | 0.118227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021834 | 0.199301 | 286 | 14 | 62 | 20.428571 | 0.864629 | 0.493007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
790a8d3e219ee2a9d7df7c77d6ce7c72b979a675 | 75 | py | Python | by-session/ta-921/j5/list7.py | amiraliakbari/sharif-mabani-python | 5d14a08d165267fe71c28389ddbafe29af7078c5 | [
"MIT"
] | 2 | 2015-04-29T20:59:35.000Z | 2018-09-26T13:33:43.000Z | by-session/ta-921/j5/list7.py | amiraliakbari/sharif-mabani-python | 5d14a08d165267fe71c28389ddbafe29af7078c5 | [
"MIT"
] | null | null | null | by-session/ta-921/j5/list7.py | amiraliakbari/sharif-mabani-python | 5d14a08d165267fe71c28389ddbafe29af7078c5 | [
"MIT"
] | null | null | null | a = [1, 1]
for i in range(10):
a.append(a[-1] + a[-2])
print a
| 10.714286 | 28 | 0.44 | 16 | 75 | 2.0625 | 0.625 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 0.333333 | 75 | 6 | 29 | 12.5 | 0.54 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7930807262c9b833a84f9f199a70af5f65af9c26 | 2,609 | py | Python | tensorbay/client/exceptions.py | YiweiLi4/tensorbay-python-sdk | 20fc8b37bad01c2d201a87b1436f1d4ff77d76df | [
"MIT"
] | null | null | null | tensorbay/client/exceptions.py | YiweiLi4/tensorbay-python-sdk | 20fc8b37bad01c2d201a87b1436f1d4ff77d76df | [
"MIT"
] | null | null | null | tensorbay/client/exceptions.py | YiweiLi4/tensorbay-python-sdk | 20fc8b37bad01c2d201a87b1436f1d4ff77d76df | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
# Copyright 2021 Graviti. Licensed under MIT License.
#
"""Classes refer to TensorBay exceptions.
+----------------------+-----------------------------------------------------+
| Error | Description |
+======================+=============... | 33.448718 | 100 | 0.576466 | 249 | 2,609 | 5.807229 | 0.313253 | 0.038728 | 0.049793 | 0.047718 | 0.419779 | 0.332642 | 0.184647 | 0.105809 | 0.076072 | 0.076072 | 0 | 0.005288 | 0.20276 | 2,609 | 77 | 101 | 33.883117 | 0.689904 | 0.588348 | 0 | 0.272727 | 0 | 0 | 0.164016 | 0.072565 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.045455 | 0.136364 | 0.590909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f7286664ea8b95c1a36f0b84b6f8e95547a6c9ae | 1,154 | py | Python | lightkube/operators.py | addyess/lightkube | 3d2f4ab41bf9daa168e923f3b820d9379d6d56b6 | [
"MIT"
] | 63 | 2020-07-04T14:40:53.000Z | 2022-03-31T07:20:23.000Z | lightkube/operators.py | addyess/lightkube | 3d2f4ab41bf9daa168e923f3b820d9379d6d56b6 | [
"MIT"
] | 15 | 2021-10-13T16:11:04.000Z | 2022-03-28T21:34:50.000Z | lightkube/operators.py | addyess/lightkube | 3d2f4ab41bf9daa168e923f3b820d9379d6d56b6 | [
"MIT"
] | 6 | 2020-10-24T08:42:37.000Z | 2022-03-10T18:11:11.000Z | from typing import Iterable
__all__ = ['in_', 'not_in', 'exists', 'not_exists', 'equal', 'not_equal']
class Operator:
def __init__(self, op_name: str, op: str, value=None):
self.op = op
self.value = value
self.op_name = op_name
def encode(self, key):
return f"{key}{self.op}{s... | 21.773585 | 73 | 0.654246 | 137 | 1,154 | 5.343066 | 0.226277 | 0.04918 | 0.053279 | 0.065574 | 0.416667 | 0.416667 | 0.14071 | 0.087432 | 0.087432 | 0 | 0 | 0 | 0.189775 | 1,154 | 52 | 74 | 22.192308 | 0.782888 | 0 | 0 | 0.103448 | 0 | 0 | 0.146574 | 0.043365 | 0 | 0 | 0 | 0 | 0 | 1 | 0.344828 | false | 0.034483 | 0.034483 | 0.310345 | 0.827586 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f738f8af0f2cf36e0effa21aab9241a41cb0ed9c | 381 | py | Python | cracking_the_coding_interview_qs/17.15/get_longest_composite_test.py | angelusualle/algorithms | 86286a49db2a755bc57330cb455bcbd8241ea6be | [
"Apache-2.0"
] | null | null | null | cracking_the_coding_interview_qs/17.15/get_longest_composite_test.py | angelusualle/algorithms | 86286a49db2a755bc57330cb455bcbd8241ea6be | [
"Apache-2.0"
] | null | null | null | cracking_the_coding_interview_qs/17.15/get_longest_composite_test.py | angelusualle/algorithms | 86286a49db2a755bc57330cb455bcbd8241ea6be | [
"Apache-2.0"
] | null | null | null | import unittest
from get_longest_composite import get_longest_composite
class Test_Case_Get_Longest_Composite(unittest.TestCase):
def test_get_longest_composite(self):
self.assertEqual(get_longest_composite(['bobby', 'brosef', 'john', 'apple', 'seed', 'pear', 'punch', 'bottom', 'appleseeds', 'applejohn']),... | 42.333333 | 160 | 0.745407 | 45 | 381 | 5.844444 | 0.577778 | 0.190114 | 0.361217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112861 | 381 | 9 | 161 | 42.333333 | 0.778107 | 0 | 0 | 0 | 0 | 0 | 0.196335 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f7425853119483c6e71a417ecdbaeeb469f18ca1 | 4,407 | py | Python | src/bytesparse/__init__.py | TexZK/bytesparse | cdb1e58e9e6a6911efd72697c1cb812bc85025c8 | [
"BSD-2-Clause"
] | null | null | null | src/bytesparse/__init__.py | TexZK/bytesparse | cdb1e58e9e6a6911efd72697c1cb812bc85025c8 | [
"BSD-2-Clause"
] | 13 | 2021-11-15T02:27:19.000Z | 2022-02-17T00:13:08.000Z | src/bytesparse/__init__.py | TexZK/bytesparse | cdb1e58e9e6a6911efd72697c1cb812bc85025c8 | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2020-2022, Andrea Zoppi.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions ... | 36.725 | 82 | 0.570683 | 596 | 4,407 | 4.204698 | 0.412752 | 0.004789 | 0.005986 | 0.009577 | 0.126496 | 0.08739 | 0.08739 | 0.08739 | 0.080607 | 0.080607 | 0 | 0.021997 | 0.195371 | 4,407 | 119 | 83 | 37.033613 | 0.684715 | 0.957341 | 0 | 0 | 0 | 0 | 0.032468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f7535ef42deb5fb0bccb939bcff54aca0e28ab5a | 326 | py | Python | Task/Pragmatic-directives/Python/pragmatic-directives-2.py | mullikine/RosettaCodeData | 4f0027c6ce83daa36118ee8b67915a13cd23ab67 | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:38.000Z | 2018-11-09T22:08:38.000Z | Task/Pragmatic-directives/Python/pragmatic-directives-2.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | null | null | null | Task/Pragmatic-directives/Python/pragmatic-directives-2.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:40.000Z | 2018-11-09T22:08:40.000Z | Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import __future__
>>> __future__.all_feature_names
['nested_scopes', 'generators', 'division', 'absolute_import', 'with_statement', 'print_function', 'unicode_literals'... | 46.571429 | 118 | 0.723926 | 45 | 326 | 4.911111 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085911 | 0.107362 | 326 | 6 | 119 | 54.333333 | 0.67354 | 0 | 0 | 0 | 0 | 0 | 0.352761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f76a498f429537f325ddf29eac20e97473849b2c | 95 | py | Python | exercices-pin-raspberry/Flasher LED/bouton.py | Elitross/Ecole-raspberrypi | 5897217550194516014562e76df8a28b2aa83480 | [
"MIT"
] | null | null | null | exercices-pin-raspberry/Flasher LED/bouton.py | Elitross/Ecole-raspberrypi | 5897217550194516014562e76df8a28b2aa83480 | [
"MIT"
] | null | null | null | exercices-pin-raspberry/Flasher LED/bouton.py | Elitross/Ecole-raspberrypi | 5897217550194516014562e76df8a28b2aa83480 | [
"MIT"
] | null | null | null | from gpiozero import Button
button = Button(2)
button.wait_for_press()
print('ayoye calisse') | 15.833333 | 27 | 0.778947 | 14 | 95 | 5.142857 | 0.785714 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0.115789 | 95 | 6 | 28 | 15.833333 | 0.845238 | 0 | 0 | 0 | 0 | 0 | 0.135417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e39bcc2f4c5181b8ab7f00de7b8f2c5830ba61d8 | 115 | py | Python | examples/tasks/create_seq2seq.py | gugarosa/textfier | 31d245218978a5a4c31f22b0fb13597327fb7d23 | [
"Apache-2.0"
] | 2 | 2020-09-12T01:47:40.000Z | 2020-10-01T22:35:39.000Z | examples/tasks/create_seq2seq.py | gugarosa/textfier | 31d245218978a5a4c31f22b0fb13597327fb7d23 | [
"Apache-2.0"
] | null | null | null | examples/tasks/create_seq2seq.py | gugarosa/textfier | 31d245218978a5a4c31f22b0fb13597327fb7d23 | [
"Apache-2.0"
] | null | null | null | from textfier.tasks import Seq2SeqTask
# Creates a sequence-to-sequence task
task = Seq2SeqTask(model='t5-small')
| 23 | 38 | 0.791304 | 16 | 115 | 5.6875 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.113043 | 115 | 4 | 39 | 28.75 | 0.862745 | 0.304348 | 0 | 0 | 0 | 0 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e3a96a3f668d55fcb4c7429f4b5b1facbcf5b427 | 872 | py | Python | applications/generate/philadelphia/source.py | pmcs/philadelphia | c82106d60c3d98e9e537bd55e63e9626afadd741 | [
"Apache-2.0"
] | 257 | 2016-06-14T06:34:47.000Z | 2022-03-15T12:24:58.000Z | applications/generate/philadelphia/source.py | pmcs/philadelphia | c82106d60c3d98e9e537bd55e63e9626afadd741 | [
"Apache-2.0"
] | 80 | 2016-04-07T09:16:31.000Z | 2022-03-28T13:25:48.000Z | applications/generate/philadelphia/source.py | pmcs/philadelphia | c82106d60c3d98e9e537bd55e63e9626afadd741 | [
"Apache-2.0"
] | 95 | 2016-06-08T14:19:07.000Z | 2022-03-15T12:25:16.000Z | #
# Copyright 2021 Philadelphia authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 34.88 | 77 | 0.759174 | 126 | 872 | 5.230159 | 0.634921 | 0.091047 | 0.07739 | 0.104704 | 0.145675 | 0.145675 | 0 | 0 | 0 | 0 | 0 | 0.010825 | 0.152523 | 872 | 24 | 78 | 36.333333 | 0.88092 | 0.638761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e3a9e56366fdb66918ee22bc1ed869d04c35298c | 351 | py | Python | Project/test.py | ee06b056/IntoToProgramInPython | 86f81bb61832ebf043c5f79f6e6262ecee36e02f | [
"MIT"
] | null | null | null | Project/test.py | ee06b056/IntoToProgramInPython | 86f81bb61832ebf043c5f79f6e6262ecee36e02f | [
"MIT"
] | null | null | null | Project/test.py | ee06b056/IntoToProgramInPython | 86f81bb61832ebf043c5f79f6e6262ecee36e02f | [
"MIT"
] | null | null | null | result = [0, 0, 0]
diff = 22
for a in range(int(200/21.99) + 1):
for b in range(int((200 - 21.99*a)//18.05)+1):
c = int((200 - 21.99 * a - 18.05 * b)//15.99) + 1
if diff > (21.99 * a + 18.05 * b + 15.99 * c - 200):
diff = 21.99 * a + 18.05 * b + 15.99 * c - 200
result = [a, b... | 31.909091 | 60 | 0.458689 | 70 | 351 | 2.3 | 0.285714 | 0.124224 | 0.124224 | 0.173913 | 0.639752 | 0.639752 | 0.490683 | 0.360248 | 0.273292 | 0.273292 | 0 | 0.300847 | 0.327635 | 351 | 11 | 61 | 31.909091 | 0.381356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 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 | 0 | 0 | 3 |
e3aec0870466cc22a34f97b1aaa95710359365c5 | 14,078 | py | Python | bifrost/bifrost/stonne/ops/conv2d.py | axelstjerngren/bifrost | 78f46d51b51b2ea6e4aa62336c052217700d7d35 | [
"MIT"
] | 1 | 2021-08-30T22:28:57.000Z | 2021-08-30T22:28:57.000Z | bifrost/bifrost/stonne/ops/conv2d.py | axelstjerngren/bifrost | 78f46d51b51b2ea6e4aa62336c052217700d7d35 | [
"MIT"
] | null | null | null | bifrost/bifrost/stonne/ops/conv2d.py | axelstjerngren/bifrost | 78f46d51b51b2ea6e4aa62336c052217700d7d35 | [
"MIT"
] | null | null | null | """
Register everything to do with conv2d
"""
import tvm
from tvm import te, relay, autotvm
from tvm.topi import generic
import tvm.relay.op as _op
from tvm.relay.op.strategy.generic import *
import os
from ..simulator import architecture
import random
_NCHWc_matcher = re.compile("^NCHW[0-9]+c$")
_OIHWio_matcher = re... | 36.097436 | 92 | 0.544893 | 1,565 | 14,078 | 4.683067 | 0.147604 | 0.021831 | 0.037522 | 0.043526 | 0.784827 | 0.751671 | 0.716059 | 0.681812 | 0.63201 | 0.6301 | 0 | 0.032999 | 0.362836 | 14,078 | 389 | 93 | 36.190231 | 0.784058 | 0.104489 | 0 | 0.662116 | 0 | 0 | 0.069969 | 0.024124 | 0 | 0 | 0 | 0 | 0.037543 | 1 | 0.017065 | false | 0 | 0.027304 | 0 | 0.068259 | 0.013652 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e3afa9d2ed4f84bc0d11aac1646be55cb7f0ac96 | 210 | py | Python | ipsc/y2018/practice/r.py | winger/team-competitions | df24b920181ddcee443764e956191ffc097f581f | [
"Unlicense"
] | 1 | 2018-10-08T07:13:27.000Z | 2018-10-08T07:13:27.000Z | ipsc/y2018/practice/r.py | winger/team-competitions | df24b920181ddcee443764e956191ffc097f581f | [
"Unlicense"
] | null | null | null | ipsc/y2018/practice/r.py | winger/team-competitions | df24b920181ddcee443764e956191ffc097f581f | [
"Unlicense"
] | null | null | null | #!/usr/bin/python3
import requests
r = requests.post('https://ipsc.ksp.sk/2018/practice/problems/r1', cookies={'ipscsessid': 'aaf5762478c617d4ea778e1cb622350bdf474520'})
print(r.status_code, r.reason, r.text)
| 35 | 134 | 0.771429 | 27 | 210 | 5.962963 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0.057143 | 210 | 5 | 135 | 42 | 0.646465 | 0.080952 | 0 | 0 | 0 | 0 | 0.494792 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e3e64e56b8412f6401c8cbe90cb5a2f2c2ca1518 | 23 | bzl | Python | maistra/vendor/upb_bazel_version/bazel_version.bzl | maistra-bot/proxy | 05a551df62d90e96c24afc649f2755983d020b5b | [
"Apache-2.0"
] | null | null | null | maistra/vendor/upb_bazel_version/bazel_version.bzl | maistra-bot/proxy | 05a551df62d90e96c24afc649f2755983d020b5b | [
"Apache-2.0"
] | null | null | null | maistra/vendor/upb_bazel_version/bazel_version.bzl | maistra-bot/proxy | 05a551df62d90e96c24afc649f2755983d020b5b | [
"Apache-2.0"
] | null | null | null | bazel_version = "2.2.0" | 23 | 23 | 0.695652 | 5 | 23 | 3 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.086957 | 23 | 1 | 23 | 23 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5412f2ea41736eccaf501308211a8adef65dcedc | 5,650 | py | Python | aliyun-python-sdk-config/aliyunsdkconfig/request/v20200907/UpdateAggregateConfigRuleRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | null | null | null | aliyun-python-sdk-config/aliyunsdkconfig/request/v20200907/UpdateAggregateConfigRuleRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | null | null | null | aliyun-python-sdk-config/aliyunsdkconfig/request/v20200907/UpdateAggregateConfigRuleRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 43.461538 | 81 | 0.779469 | 638 | 5,650 | 6.69906 | 0.206897 | 0.08891 | 0.057791 | 0.075573 | 0.246841 | 0.155358 | 0.143191 | 0.143191 | 0 | 0 | 0 | 0.003432 | 0.123363 | 5,650 | 129 | 82 | 43.79845 | 0.859479 | 0.180531 | 0 | 0 | 0 | 0 | 0.159142 | 0.065489 | 0 | 0 | 0 | 0 | 0 | 1 | 0.448276 | false | 0 | 0.022989 | 0.218391 | 0.701149 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
580b74f951b106b9289a5bc7379656f8ce185a82 | 767 | py | Python | authentik/policies/api/exec.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 15 | 2020-01-05T09:09:57.000Z | 2020-11-28T05:27:39.000Z | authentik/policies/api/exec.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 302 | 2020-01-21T08:03:59.000Z | 2020-12-04T05:04:57.000Z | authentik/policies/api/exec.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 3 | 2020-03-04T08:21:59.000Z | 2020-08-01T20:37:18.000Z | """Serializer for policy execution"""
from rest_framework.fields import BooleanField, CharField, DictField, JSONField, ListField
from rest_framework.relations import PrimaryKeyRelatedField
from authentik.core.api.utils import PassiveSerializer, is_dict
from authentik.core.models import User
class PolicyTestSerialize... | 34.863636 | 90 | 0.783572 | 84 | 767 | 7.071429 | 0.559524 | 0.050505 | 0.057239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123859 | 767 | 21 | 91 | 36.52381 | 0.883929 | 0.131682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.363636 | 0.363636 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
5820e5e5e2989b9266dce9a567c11b661cd4caa2 | 300 | py | Python | URL.py | pravanyareddy/SPI | 502e6e638461bcc31dfb4fb655a8a71879773068 | [
"MIT"
] | null | null | null | URL.py | pravanyareddy/SPI | 502e6e638461bcc31dfb4fb655a8a71879773068 | [
"MIT"
] | null | null | null | URL.py | pravanyareddy/SPI | 502e6e638461bcc31dfb4fb655a8a71879773068 | [
"MIT"
] | null | null | null | import requests
import json
DOCK_Number='20161122'
responseReceived = requests.post('http://www.cykul.com/CYKULStations/Python/Validation/getDockCurrentStatus.php?gdcsRefN=' + DOCK_Number)
decodedJSONResponse = responseReceived.json()
responseStatus = decodedJSONResponse['result_status']
| 30 | 138 | 0.806667 | 29 | 300 | 8.241379 | 0.758621 | 0.083682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029304 | 0.09 | 300 | 9 | 139 | 33.333333 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.361204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
58323a7dce4c89286c6dbbe08a03de617ac99dbe | 3,470 | py | Python | test/test_utils.py | uc-cdis/cirrus | e9f87ccd87a6eecdb21dc6bbf125f2d08f9ba6b3 | [
"Apache-2.0"
] | 1 | 2020-08-26T20:39:47.000Z | 2020-08-26T20:39:47.000Z | test/test_utils.py | uc-cdis/cirrus | e9f87ccd87a6eecdb21dc6bbf125f2d08f9ba6b3 | [
"Apache-2.0"
] | 55 | 2018-01-17T15:33:03.000Z | 2021-06-09T18:17:03.000Z | test/test_utils.py | uc-cdis/cirrus | e9f87ccd87a6eecdb21dc6bbf125f2d08f9ba6b3 | [
"Apache-2.0"
] | 1 | 2017-12-15T19:47:28.000Z | 2017-12-15T19:47:28.000Z | import pytest
from unittest.mock import MagicMock, patch
from urllib.parse import quote
from cirrus.google_cloud.utils import (
_get_string_to_sign,
get_valid_service_account_id_for_client,
get_valid_service_account_id_for_user,
)
@pytest.mark.parametrize(
"username",
[
"1",
"123... | 27.983871 | 87 | 0.658213 | 424 | 3,470 | 5.084906 | 0.228774 | 0.033395 | 0.040816 | 0.055659 | 0.786178 | 0.786178 | 0.755566 | 0.697124 | 0.697124 | 0.684137 | 0 | 0.056806 | 0.218732 | 3,470 | 123 | 88 | 28.211382 | 0.738473 | 0.042075 | 0 | 0.676768 | 0 | 0 | 0.261674 | 0.146756 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.050505 | false | 0 | 0.040404 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
583515da0343d914287ede912f84f893d6d3f2ed | 912 | py | Python | src/applications/reminders/urls.py | tgrx/obliviscor | 31f9a4476892460c931b9a8fc5403c3afcc47607 | [
"Apache-2.0"
] | null | null | null | src/applications/reminders/urls.py | tgrx/obliviscor | 31f9a4476892460c931b9a8fc5403c3afcc47607 | [
"Apache-2.0"
] | 20 | 2020-04-16T23:45:50.000Z | 2020-05-05T14:22:03.000Z | src/applications/reminders/urls.py | tgrx/obliviscor | 31f9a4476892460c931b9a8fc5403c3afcc47607 | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from applications.reminders.apps import RemindersConfig
from applications.reminders.views import AllRemindersView
from applications.reminders.views import ReminderCreateView
from applications.reminders.views import ReminderDeleteView
from applications.reminders.views import ReminderDoneVie... | 43.428571 | 76 | 0.773026 | 106 | 912 | 6.575472 | 0.292453 | 0.160689 | 0.251076 | 0.25825 | 0.3099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092105 | 912 | 20 | 77 | 45.6 | 0.841787 | 0 | 0 | 0 | 0 | 0 | 0.126096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.470588 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5873cd2ef4aefeff8c59e41fb3593e435ab0ea5a | 810 | py | Python | build/lib/pystrategy/config_libaries.py | faprieto96/pystrategy | 62f30acea88baed8819124cb94f463376d854242 | [
"MIT"
] | null | null | null | build/lib/pystrategy/config_libaries.py | faprieto96/pystrategy | 62f30acea88baed8819124cb94f463376d854242 | [
"MIT"
] | null | null | null | build/lib/pystrategy/config_libaries.py | faprieto96/pystrategy | 62f30acea88baed8819124cb94f463376d854242 | [
"MIT"
] | null | null | null | from abc import abstractmethod
import pandas as pd
import numpy as np
from zipfile import *
from Strategy import *
from classes_strategies.Optimizers import *
from classes_strategies.Strategies import *
from MaxDrawdown import *
from classes_strategies.Factory import *
from numpy import array, dot
"""
from qpsolvers ... | 27 | 57 | 0.816049 | 102 | 810 | 6.401961 | 0.5 | 0.091884 | 0.082695 | 0.124043 | 0.058193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14321 | 810 | 30 | 58 | 27 | 0.940922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
587a2ede831a23159ff19477cdc328b2650eadb0 | 1,524 | py | Python | release/stubs/Autodesk/Gis/Map/Platform/Utils/Globalization.py | paoloemilioserra/ironpython-stubs | 49d92db7f28f25ccd3654c5f6ae83daa0c401fa1 | [
"MIT"
] | null | null | null | release/stubs/Autodesk/Gis/Map/Platform/Utils/Globalization.py | paoloemilioserra/ironpython-stubs | 49d92db7f28f25ccd3654c5f6ae83daa0c401fa1 | [
"MIT"
] | null | null | null | release/stubs/Autodesk/Gis/Map/Platform/Utils/Globalization.py | paoloemilioserra/ironpython-stubs | 49d92db7f28f25ccd3654c5f6ae83daa0c401fa1 | [
"MIT"
] | null | null | null | # encoding: utf-8
# module Autodesk.Gis.Map.Platform.Utils.Globalization calls itself Globalization
# from Autodesk.Map.Platform.Utils, Version=24.0.30.14, Culture=neutral, PublicKeyToken=null
# by generator 1.145
# no doc
# no imports
# no functions
# classes
class EnumTypeConverter(EnumConverter):
""" EnumTypeC... | 34.636364 | 153 | 0.684383 | 158 | 1,524 | 6.487342 | 0.424051 | 0.087805 | 0.052683 | 0.070244 | 0.329756 | 0.329756 | 0.329756 | 0.329756 | 0.17561 | 0.17561 | 0 | 0.009804 | 0.19685 | 1,524 | 43 | 154 | 35.44186 | 0.827614 | 0.518373 | 0 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0.294118 | 0 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
58853f1ec58ee64074c41a3be5fb1461a3fe9626 | 7,929 | py | Python | test_tortuga.py | olih/visual-experiments | 4ef3eab05242d8529ad171cb78f1bbabc7bc5abd | [
"MIT"
] | null | null | null | test_tortuga.py | olih/visual-experiments | 4ef3eab05242d8529ad171cb78f1bbabc7bc5abd | [
"MIT"
] | null | null | null | test_tortuga.py | olih/visual-experiments | 4ef3eab05242d8529ad171cb78f1bbabc7bc5abd | [
"MIT"
] | null | null | null | import unittest
from fractions import Fraction
from fracgeometry import V2d, V2dList, VSegment, VPath, FractionList
from tortuga import TortugaConfig, TortugaState, TortugaAction, TortugaProducer, TortugaRuleMaker, TortugaTargetRand, TortugaActionRange
refconfig = TortugaConfig()
refconfig.set_angles_string("0/1 1/4 1... | 67.194915 | 153 | 0.710556 | 1,107 | 7,929 | 4.963866 | 0.104788 | 0.092812 | 0.080073 | 0.116106 | 0.758144 | 0.741583 | 0.714286 | 0.673157 | 0.632393 | 0.549227 | 0 | 0.063131 | 0.150965 | 7,929 | 117 | 154 | 67.769231 | 0.753119 | 0 | 0 | 0.16 | 0 | 0.1 | 0.20724 | 0 | 0 | 0 | 0 | 0 | 0.45 | 1 | 0.15 | false | 0 | 0.04 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
588e4f1a79d1f1b5917f54d540f55f419b407447 | 54 | py | Python | examples/while.py | utgwkk/tiny-python-vm | 6b67072ecd329f6c82387c5e509e06e0cf6b75ed | [
"MIT"
] | 2 | 2017-03-21T03:44:41.000Z | 2020-01-02T20:25:20.000Z | examples/while.py | utgwkk/tiny-python-vm | 6b67072ecd329f6c82387c5e509e06e0cf6b75ed | [
"MIT"
] | null | null | null | examples/while.py | utgwkk/tiny-python-vm | 6b67072ecd329f6c82387c5e509e06e0cf6b75ed | [
"MIT"
] | null | null | null | num = 10
while num:
print(num)
num = num - 1
| 9 | 17 | 0.518519 | 9 | 54 | 3.111111 | 0.555556 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 0.37037 | 54 | 5 | 18 | 10.8 | 0.735294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
589ad8e3a78ca103ac5f748d6093ba810f9ec25c | 2,815 | py | Python | tests/test_one_to_one.py | burchardtist/PanekDB | e8e9e22787324e930d16b6bf362978f30c5cd939 | [
"MIT"
] | 1 | 2020-09-02T15:24:47.000Z | 2020-09-02T15:24:47.000Z | tests/test_one_to_one.py | burchardtist/PanekDB | e8e9e22787324e930d16b6bf362978f30c5cd939 | [
"MIT"
] | null | null | null | tests/test_one_to_one.py | burchardtist/PanekDB | e8e9e22787324e930d16b6bf362978f30c5cd939 | [
"MIT"
] | null | null | null | import pytest
from panek.error import SubstitutionNotAllowedError
from tests.conftest import Ssn, SsnPerson, SsnPersonSubstitution, \
SsnSubstitution, TestPersonSsn, TestPersonSsnSubstitute
def test_add_one(one_orm: TestPersonSsn):
orm, person, ssn = one_orm
assert orm.get_relation(person.ssn) is ssn
... | 30.934066 | 89 | 0.758437 | 366 | 2,815 | 5.620219 | 0.098361 | 0.100632 | 0.099174 | 0.165289 | 0.802625 | 0.723384 | 0.679144 | 0.588721 | 0.510452 | 0.385027 | 0 | 0.000847 | 0.161279 | 2,815 | 90 | 90 | 31.277778 | 0.870394 | 0 | 0 | 0.57377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.344262 | 1 | 0.114754 | false | 0 | 0.04918 | 0 | 0.163934 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
543e447960c26a542aa965511b857ab7ec03118f | 266 | py | Python | metro/apps.py | xfenix/django-metro | bb755b855985e9766b99fcff9655d29f484c1850 | [
"MIT"
] | 10 | 2015-10-13T04:20:08.000Z | 2021-10-08T12:41:03.000Z | metro/apps.py | xfenix/django-metro | bb755b855985e9766b99fcff9655d29f484c1850 | [
"MIT"
] | 1 | 2016-09-09T12:53:41.000Z | 2016-09-09T12:53:41.000Z | metro/apps.py | xfenix/django-metro | bb755b855985e9766b99fcff9655d29f484c1850 | [
"MIT"
] | 9 | 2015-10-29T19:30:43.000Z | 2021-07-14T02:15:55.000Z | # -*- coding: utf-8 -*-
from django.conf import settings
from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class MetroConfig(AppConfig):
name = 'metro'
verbose_name = getattr(settings, 'METRO_APP_TITLE', _('Metro'))
| 26.6 | 67 | 0.740602 | 34 | 266 | 5.617647 | 0.676471 | 0.157068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004405 | 0.146617 | 266 | 9 | 68 | 29.555556 | 0.837004 | 0.078947 | 0 | 0 | 0 | 0 | 0.102881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
54883ba29d7d17028745be52de2a196ae79b6032 | 134 | py | Python | threeK_game/routing.py | catchesfire/3k-game | 5566875fd6ad8e1e8b07095a652da27157453810 | [
"MIT"
] | null | null | null | threeK_game/routing.py | catchesfire/3k-game | 5566875fd6ad8e1e8b07095a652da27157453810 | [
"MIT"
] | null | null | null | threeK_game/routing.py | catchesfire/3k-game | 5566875fd6ad8e1e8b07095a652da27157453810 | [
"MIT"
] | 4 | 2019-02-12T10:43:16.000Z | 2020-06-25T03:28:44.000Z | from django.conf.urls import url
from . import consumers
websocket_urlpatterns = [
url(r'^ws/game/$', consumers.GameConsumer),
] | 19.142857 | 47 | 0.731343 | 17 | 134 | 5.705882 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141791 | 134 | 7 | 48 | 19.142857 | 0.843478 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
549e9e5e4c7d97a41b33707c933fb63c2a9584e4 | 113 | py | Python | example_data/no02.py | Cogmob/epr | 7217c978afd2af87cce06db0ad1e0ab7e395ee9d | [
"MIT"
] | null | null | null | example_data/no02.py | Cogmob/epr | 7217c978afd2af87cce06db0ad1e0ab7e395ee9d | [
"MIT"
] | null | null | null | example_data/no02.py | Cogmob/epr | 7217c978afd2af87cce06db0ad1e0ab7e395ee9d | [
"MIT"
] | null | null | null | asldkfj aksdjf kaljsdfk asjdkfj kasldf lasdjf a
sdf
ajsdf kajdsf jas
df asdklj fasdjf
asdf jasdlkf \jalsjdfl j
| 18.833333 | 47 | 0.814159 | 18 | 113 | 5.111111 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176991 | 113 | 5 | 48 | 22.6 | 0.989247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
54b29d1a632d12943e6bbd7986c1d4c393ba5fde | 305 | py | Python | adapters/lumi/sensor_magnet.py | JanJaapKo/domoticz-zigbee2mqtt-plugin | 22ef5c668f08f302663b7877e5637a45a7978fb1 | [
"MIT"
] | null | null | null | adapters/lumi/sensor_magnet.py | JanJaapKo/domoticz-zigbee2mqtt-plugin | 22ef5c668f08f302663b7877e5637a45a7978fb1 | [
"MIT"
] | null | null | null | adapters/lumi/sensor_magnet.py | JanJaapKo/domoticz-zigbee2mqtt-plugin | 22ef5c668f08f302663b7877e5637a45a7978fb1 | [
"MIT"
] | null | null | null | from adapters.adapter_with_battery import AdapterWithBattery
from devices.door_contact_sensor import DoorContactSensor
class SensorMagnet(AdapterWithBattery):
def __init__(self, devices):
super().__init__(devices)
self.devices.append(DoorContactSensor(devices, 'sensor', 'contact'))
| 33.888889 | 76 | 0.786885 | 31 | 305 | 7.354839 | 0.612903 | 0.096491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127869 | 305 | 8 | 77 | 38.125 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.042623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
54b61548239c1d43368ee6741eca5c12baf6fed4 | 200 | py | Python | python/numpy/floor_ceil_and_rint.py | avenet/hackerrank | e522030a023af4ff50d5fc64bd3eba30144e006c | [
"MIT"
] | null | null | null | python/numpy/floor_ceil_and_rint.py | avenet/hackerrank | e522030a023af4ff50d5fc64bd3eba30144e006c | [
"MIT"
] | null | null | null | python/numpy/floor_ceil_and_rint.py | avenet/hackerrank | e522030a023af4ff50d5fc64bd3eba30144e006c | [
"MIT"
] | null | null | null | import numpy
array = numpy.array(
list(
map(
float,
input().split()
)
)
)
print(numpy.floor(array))
print(numpy.ceil(array))
print(numpy.rint(array))
| 13.333333 | 27 | 0.53 | 22 | 200 | 4.818182 | 0.545455 | 0.283019 | 0.283019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.325 | 200 | 14 | 28 | 14.285714 | 0.785185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.25 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
54b8105a39007168b1d645aa0757a8d0c192be16 | 1,970 | py | Python | folder_compiler/processors/utils/pattern_filter.py | d-krupke/folder_compiler | 926ea88ad55a301cbe9e58ea8c31d8d1f2ee4d9c | [
"MIT"
] | null | null | null | folder_compiler/processors/utils/pattern_filter.py | d-krupke/folder_compiler | 926ea88ad55a301cbe9e58ea8c31d8d1f2ee4d9c | [
"MIT"
] | null | null | null | folder_compiler/processors/utils/pattern_filter.py | d-krupke/folder_compiler | 926ea88ad55a301cbe9e58ea8c31d8d1f2ee4d9c | [
"MIT"
] | null | null | null | import re
class PatternFilter:
"""
A util for checking if the source matches a filter for inclusion or exclusion.
Per default it excepts everything.
If you use add_include_pattern(".*\\.md") it would only accept files ending
with ".md".
"""
def __init__(self, includes: list = None, exclu... | 35.818182 | 89 | 0.63401 | 256 | 1,970 | 4.683594 | 0.3125 | 0.06005 | 0.042535 | 0.021685 | 0.218515 | 0.218515 | 0.218515 | 0.218515 | 0.161802 | 0.091743 | 0 | 0.000698 | 0.272589 | 1,970 | 54 | 90 | 36.481481 | 0.836008 | 0.343655 | 0 | 0.090909 | 0 | 0 | 0.022827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0 | 0.045455 | 0.136364 | 0.590909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
54b8f7d72d7c5de242c2680f71a6774342366815 | 789 | py | Python | server/openslides/assignments/migrations/0010_voting_3.py | m-ober/OpenSlides | 06044e81c07d3029dea489e63e238dff0fca6bf4 | [
"MIT"
] | 3 | 2021-02-11T20:45:58.000Z | 2022-02-09T21:59:42.000Z | server/openslides/assignments/migrations/0010_voting_3.py | m-ober/OpenSlides | 06044e81c07d3029dea489e63e238dff0fca6bf4 | [
"MIT"
] | 2 | 2021-11-02T15:53:58.000Z | 2022-03-02T12:19:49.000Z | server/openslides/assignments/migrations/0010_voting_3.py | DLRG-Jugend-NDS/OpenSlides | 03704e4852821ccd67fe23adb6e2c38b67d93732 | [
"MIT"
] | 3 | 2021-01-18T11:44:05.000Z | 2022-01-19T16:00:23.000Z | # Generated by Finn Stutzenstein on 2019-10-29 11:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("assignments", "0009_voting_2"),
]
operations = [
migrations.AlterField(
model_name="assignmentvote",
name="valu... | 31.56 | 83 | 0.619772 | 74 | 789 | 6.5 | 0.594595 | 0.093555 | 0.216216 | 0.24948 | 0.299376 | 0.299376 | 0 | 0 | 0 | 0 | 0 | 0.0299 | 0.237009 | 789 | 24 | 84 | 32.875 | 0.769103 | 0.063371 | 0 | 0.111111 | 1 | 0 | 0.199457 | 0.028494 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
49aaad662ba36ba7e9b9af536d73c4d5dac33671 | 4,175 | py | Python | src/scs_core/aws/client/client_auth.py | seoss/scs_core | 0d4323c5697a39eb44a887f179ba5dca3716c1d2 | [
"MIT"
] | null | null | null | src/scs_core/aws/client/client_auth.py | seoss/scs_core | 0d4323c5697a39eb44a887f179ba5dca3716c1d2 | [
"MIT"
] | null | null | null | src/scs_core/aws/client/client_auth.py | seoss/scs_core | 0d4323c5697a39eb44a887f179ba5dca3716c1d2 | [
"MIT"
] | null | null | null | """
Created on 2 Apr 2018
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
WARNING: Path methods require that the __HOST field must be instantiated.
example document:
{"endpoint": "asrft7e5j5ecz.iot.us-west-2.amazonaws.com", "client-id": "bruno", "cert-id": "9f08402232"}
"""
import os
from collections im... | 27.649007 | 118 | 0.466347 | 396 | 4,175 | 4.563131 | 0.234848 | 0.053127 | 0.038738 | 0.028777 | 0.26674 | 0.21306 | 0.21306 | 0.198672 | 0.198672 | 0.198672 | 0 | 0.005461 | 0.210539 | 4,175 | 150 | 119 | 27.833333 | 0.542779 | 0.325988 | 0 | 0.231884 | 0 | 0 | 0.067126 | 0.008708 | 0 | 0 | 0 | 0 | 0 | 1 | 0.202899 | false | 0 | 0.043478 | 0.115942 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
49da8d79ad6e77ff2344a45adcdf66b35ce74d49 | 87 | py | Python | marvel/apps.py | ivetah/iveta_hristova_repo | f5f09ec663b4a9db3a75e0a9a8ab455c512c3f0b | [
"CNRI-Python"
] | null | null | null | marvel/apps.py | ivetah/iveta_hristova_repo | f5f09ec663b4a9db3a75e0a9a8ab455c512c3f0b | [
"CNRI-Python"
] | null | null | null | marvel/apps.py | ivetah/iveta_hristova_repo | f5f09ec663b4a9db3a75e0a9a8ab455c512c3f0b | [
"CNRI-Python"
] | null | null | null | from django.apps import AppConfig
class MarvelConfig(AppConfig):
name = 'marvel'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
49df1de70e5e503a23b7d3ed724ad75c62fde483 | 655 | py | Python | make_pymol_shortcut.py | bieniekmateusz/pymol-mdanalysis-open-source | 27967cd80283e8d21f46bf147a1577a4c3bfcdfd | [
"CNRI-Python"
] | 4 | 2021-01-02T00:53:36.000Z | 2022-03-15T11:29:45.000Z | make_pymol_shortcut.py | bieniekmateusz/pymol-open-source | 27967cd80283e8d21f46bf147a1577a4c3bfcdfd | [
"CNRI-Python"
] | 1 | 2022-03-25T13:50:24.000Z | 2022-03-27T11:22:36.000Z | make_pymol_shortcut.py | bieniekmateusz/pymol-mdanalysis | e0f7a4f967299706bc2e397529a778f1d6b9437f | [
"CNRI-Python"
] | 3 | 2019-05-23T22:17:19.000Z | 2020-07-03T14:40:15.000Z | #!/usr/local/env python
"""
Generate a shortcut for the application.
"""
import sys
import os
import pymol
# After the installation, create a startmenu shortcut.
# get the python entry file
pymol_file = pymol.__file__
# create a shortcut to the executable file, using the right environment
from pyshortcuts import ma... | 27.291667 | 71 | 0.705344 | 90 | 655 | 5.022222 | 0.522222 | 0.079646 | 0.057522 | 0.09292 | 0.265487 | 0.265487 | 0.265487 | 0.265487 | 0.265487 | 0.265487 | 0 | 0.003788 | 0.193893 | 655 | 24 | 72 | 27.291667 | 0.852273 | 0.378626 | 0 | 0.181818 | 1 | 0 | 0.179293 | 0.131313 | 0 | 0 | 0 | 0.041667 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
49f0ab7c174f41b75782dc803780f636d4d0760b | 202 | py | Python | byu_jwt/exceptions.py | byu-oit/byu-jwt-python | 04929526a00ea4cd7a1efcc21c7a906a5f0e6798 | [
"Apache-2.0"
] | 1 | 2019-05-10T15:36:26.000Z | 2019-05-10T15:36:26.000Z | byu_jwt/exceptions.py | byu-oit-appdev/byu-jwt-python | 04929526a00ea4cd7a1efcc21c7a906a5f0e6798 | [
"Apache-2.0"
] | null | null | null | byu_jwt/exceptions.py | byu-oit-appdev/byu-jwt-python | 04929526a00ea4cd7a1efcc21c7a906a5f0e6798 | [
"Apache-2.0"
] | null | null | null | class BYUJWTError(Exception):
"""Error handling BYU JWT"""
class JWTVerifyError(BYUJWTError):
"""Error Verifing JWT"""
class JWTHandlerError(BYUJWTError):
"""Error while handling JWT"""
| 18.363636 | 35 | 0.70297 | 20 | 202 | 7.1 | 0.55 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163366 | 202 | 10 | 36 | 20.2 | 0.840237 | 0.326733 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
49f298011e5b5e10e445075afe0293c1a0c8ce75 | 325 | py | Python | examples/demo_input_paste.py | lanza/curtsies | d80725cdbcdc5fa0fe03a1d3f7f069f57214b45e | [
"MIT"
] | 147 | 2015-01-02T13:12:13.000Z | 2022-02-13T08:59:19.000Z | examples/demo_input_paste.py | lanza/curtsies | d80725cdbcdc5fa0fe03a1d3f7f069f57214b45e | [
"MIT"
] | 54 | 2015-01-09T19:22:17.000Z | 2018-12-05T02:31:46.000Z | examples/demo_input_paste.py | lanza/curtsies | d80725cdbcdc5fa0fe03a1d3f7f069f57214b45e | [
"MIT"
] | 26 | 2015-01-19T23:00:39.000Z | 2021-08-05T00:18:04.000Z | from curtsies.input import *
def paste():
with Input() as input_generator:
print("If more than %d chars read in same read a paste event is generated" % input_generator.paste_threshold)
for e in input_generator:
print(repr(e))
time.sleep(1)
if __name__ == '__main__':
pas... | 27.083333 | 117 | 0.64 | 45 | 325 | 4.355556 | 0.688889 | 0.214286 | 0.193878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004202 | 0.267692 | 325 | 11 | 118 | 29.545455 | 0.819328 | 0 | 0 | 0 | 1 | 0 | 0.227692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 0.222222 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
49f5fa659352a8e226ad22856cae74fd0b3a44f4 | 169 | py | Python | empyror/__main__.py | GoogleGenius/empyror | c0a2db376e1e21eaa42ffda52b38ff5308e70c59 | [
"Apache-2.0"
] | null | null | null | empyror/__main__.py | GoogleGenius/empyror | c0a2db376e1e21eaa42ffda52b38ff5308e70c59 | [
"Apache-2.0"
] | null | null | null | empyror/__main__.py | GoogleGenius/empyror | c0a2db376e1e21eaa42ffda52b38ff5308e70c59 | [
"Apache-2.0"
] | null | null | null | import os
from empyror.bot import build_bot
if __name__ == "__main__":
if os.name != "nt":
import uvloop
uvloop.install()
build_bot().run()
| 13 | 33 | 0.60355 | 22 | 169 | 4.181818 | 0.590909 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.278107 | 169 | 12 | 34 | 14.083333 | 0.754098 | 0 | 0 | 0 | 0 | 0 | 0.059172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b701cf058c374762a8a00e5d150dd69fcad81066 | 2,100 | py | Python | src/graph_transpiler/webdnn/graph/operators/attributes/inplace.py | steerapi/webdnn | 1df51cc094e5a528cfd3452c264905708eadb491 | [
"MIT"
] | 1 | 2021-04-09T15:55:35.000Z | 2021-04-09T15:55:35.000Z | src/graph_transpiler/webdnn/graph/operators/attributes/inplace.py | steerapi/webdnn | 1df51cc094e5a528cfd3452c264905708eadb491 | [
"MIT"
] | null | null | null | src/graph_transpiler/webdnn/graph/operators/attributes/inplace.py | steerapi/webdnn | 1df51cc094e5a528cfd3452c264905708eadb491 | [
"MIT"
] | null | null | null | from typing import Optional
from webdnn.graph.attribute import Attribute
from webdnn.graph.operator import Operator
class InplaceOperator(Attribute):
"""InplaceOperator(op, input_name, output_name)
This attribute represents that the operation can be performed as inplace for corresponding input and output va... | 30.882353 | 137 | 0.678571 | 274 | 2,100 | 5.065693 | 0.237226 | 0.069164 | 0.060519 | 0.057637 | 0.456772 | 0.337896 | 0.315562 | 0.216138 | 0.216138 | 0 | 0 | 0.001867 | 0.234762 | 2,100 | 67 | 138 | 31.343284 | 0.861854 | 0.35619 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.09375 | 0.15625 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b71c23d332ade9dabfb4401856230883b85ffd80 | 112 | py | Python | tests/test_metrics.py | statisticsnorway/bip-initializer | 5121dbb3e808cdb7e6d5652a65bcbd84eedc4781 | [
"Apache-2.0"
] | 3 | 2021-02-22T17:42:53.000Z | 2021-05-03T11:02:16.000Z | tests/test_metrics.py | statisticsnorway/bip-initializer | 5121dbb3e808cdb7e6d5652a65bcbd84eedc4781 | [
"Apache-2.0"
] | 5 | 2021-04-28T14:55:09.000Z | 2021-11-22T12:34:27.000Z | tests/test_metrics.py | statisticsnorway/bip-initializer | 5121dbb3e808cdb7e6d5652a65bcbd84eedc4781 | [
"Apache-2.0"
] | null | null | null | def test_metrics_endpoint(client):
response = client.get("/metrics")
assert response.status_code == 200
| 28 | 38 | 0.732143 | 14 | 112 | 5.642857 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031579 | 0.151786 | 112 | 3 | 39 | 37.333333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3fbef9eabadb8dfaecc2453ad131cb0ac53df01f | 148 | py | Python | models/intphys/__init__.py | hucvl/craft | 85c50b26eb8941781dc4bb93bce61201aff4643d | [
"MIT"
] | 9 | 2021-06-02T06:05:14.000Z | 2022-02-16T09:53:51.000Z | models/intphys/__init__.py | hucvl/craft | 85c50b26eb8941781dc4bb93bce61201aff4643d | [
"MIT"
] | 2 | 2022-03-16T11:21:03.000Z | 2022-03-17T12:00:06.000Z | models/intphys/__init__.py | hucvl/craft | 85c50b26eb8941781dc4bb93bce61201aff4643d | [
"MIT"
] | null | null | null | from .data import *
from .experiment import *
from .model import *
from .submodule import *
SPLITS = (
"train",
"validation",
"test"
)
| 13.454545 | 25 | 0.628378 | 16 | 148 | 5.8125 | 0.625 | 0.322581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243243 | 148 | 10 | 26 | 14.8 | 0.830357 | 0 | 0 | 0 | 0 | 0 | 0.128378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3fc51c8f117ac7b3bc3dd1ebf1687574ffa3c6a4 | 303 | py | Python | ReCite1.py | themanyone/autokey_scripts | 9316a2b15650a73e2bc4642b3493ed1188484afb | [
"MITNFA"
] | null | null | null | ReCite1.py | themanyone/autokey_scripts | 9316a2b15650a73e2bc4642b3493ed1188484afb | [
"MITNFA"
] | null | null | null | ReCite1.py | themanyone/autokey_scripts | 9316a2b15650a73e2bc4642b3493ed1188484afb | [
"MITNFA"
] | 1 | 2020-05-24T13:54:49.000Z | 2020-05-24T13:54:49.000Z | cite = clipboard.get_selection().encode('ascii', 'ignore')
keyboard.send_key("<delete>")
try:
cite = "(" + cite.replace(" (", ", ")
cite = re.sub("[., ]*$", ".", cite)
keyboard.send_keys(cite)
except Exception as ex:
val = type(ex).__name__ + " " + ex.args[0]
keyboard.send_keys(val) | 33.666667 | 58 | 0.594059 | 38 | 303 | 4.526316 | 0.657895 | 0.209302 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004 | 0.174917 | 303 | 9 | 59 | 33.666667 | 0.684 | 0 | 0 | 0 | 0 | 0 | 0.108553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3ff621c51cf23bb4c8f460e1e5b3a18f449c8402 | 203 | py | Python | examples/quick_start.py | zhjhr181/cogdl | 42e22cb891c4877029f881a1ed8ea028237fa625 | [
"MIT"
] | 1 | 2021-05-13T14:30:26.000Z | 2021-05-13T14:30:26.000Z | examples/quick_start.py | LuChengTHU/cogdl | 90e6ea74209fd8a8a310efc4d7e7060bcb313a5e | [
"MIT"
] | null | null | null | examples/quick_start.py | LuChengTHU/cogdl | 90e6ea74209fd8a8a310efc4d7e7060bcb313a5e | [
"MIT"
] | null | null | null | from cogdl.tasks import build_task
from cogdl.options import get_default_args
args = get_default_args(task="node_classification", dataset="cora", model="gcn")
task = build_task(args)
ret = task.train()
| 29 | 80 | 0.788177 | 31 | 203 | 4.935484 | 0.580645 | 0.117647 | 0.183007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098522 | 203 | 6 | 81 | 33.833333 | 0.836066 | 0 | 0 | 0 | 0 | 0 | 0.128079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3ffeb8f40fa969674067b2294d1680c55994a5fd | 293 | py | Python | lib/JumpScale/data/serializers/SerializerSnappy.py | Jumpscale/jumpscale_core8 | f80ac9b1ab99b833ee7adb17700dcf4ef35f3734 | [
"Apache-2.0"
] | 8 | 2016-04-14T14:04:57.000Z | 2020-06-09T00:24:34.000Z | lib/JumpScale/data/serializers/SerializerSnappy.py | Jumpscale/jumpscale_core8 | f80ac9b1ab99b833ee7adb17700dcf4ef35f3734 | [
"Apache-2.0"
] | 418 | 2016-01-25T10:30:00.000Z | 2021-09-08T12:29:13.000Z | lib/JumpScale/data/serializers/SerializerSnappy.py | Jumpscale/jumpscale_core8 | f80ac9b1ab99b833ee7adb17700dcf4ef35f3734 | [
"Apache-2.0"
] | 9 | 2016-04-21T07:21:17.000Z | 2022-01-24T10:35:54.000Z |
import snappy
from SerializerBase import *
class SerializerSnappy(SerializerBase):
def __init__(self):
self.__jslocation__ = "j.data.serializer.snappy"
def dumps(self, obj):
return snappy.compress(obj)
def loads(self, s):
return snappy.decompress(s)
| 17.235294 | 56 | 0.679181 | 33 | 293 | 5.787879 | 0.606061 | 0.125654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225256 | 293 | 16 | 57 | 18.3125 | 0.84141 | 0 | 0 | 0 | 0 | 0 | 0.082474 | 0.082474 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.222222 | 0.222222 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b2075027b0919a02dc4a5fcb9e45f3cc8ff9b2e7 | 1,575 | py | Python | pymia/data/creation/fileloader.py | rundherum/pymia | 446192d56dfeee2293027b9b041a1e2140e38ae7 | [
"Apache-2.0"
] | 45 | 2018-08-04T12:08:43.000Z | 2022-02-20T02:08:24.000Z | pymia/data/creation/fileloader.py | rundherum/pymia | 446192d56dfeee2293027b9b041a1e2140e38ae7 | [
"Apache-2.0"
] | 38 | 2018-08-06T11:32:26.000Z | 2021-12-23T17:47:33.000Z | pymia/data/creation/fileloader.py | rundherum/pymia | 446192d56dfeee2293027b9b041a1e2140e38ae7 | [
"Apache-2.0"
] | 12 | 2018-08-06T11:46:31.000Z | 2021-02-23T03:47:35.000Z | import abc
import typing
import numpy as np
import SimpleITK as sitk
import pymia.data.conversion as conv
class Load(abc.ABC):
"""Interface for loading the data during the dataset creation in :meth:`.Traverser.traverse`
.. automethod:: __call__
"""
@abc.abstractmethod
def __call__(self, fi... | 35 | 109 | 0.659683 | 200 | 1,575 | 5.085 | 0.43 | 0.029499 | 0.032448 | 0.029499 | 0.234022 | 0.204523 | 0.204523 | 0.204523 | 0.204523 | 0.204523 | 0 | 0 | 0.238095 | 1,575 | 44 | 110 | 35.795455 | 0.8475 | 0.507937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.066667 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
b20e26af745bb3fe6b81c0fc408566fad7b3cec9 | 2,069 | py | Python | halo2/playerStats/models.py | cizaquita/PlayerStatsH2 | 4f379ebb0b5d104a8540e4d35866987af9dda5c9 | [
"Apache-2.0"
] | null | null | null | halo2/playerStats/models.py | cizaquita/PlayerStatsH2 | 4f379ebb0b5d104a8540e4d35866987af9dda5c9 | [
"Apache-2.0"
] | null | null | null | halo2/playerStats/models.py | cizaquita/PlayerStatsH2 | 4f379ebb0b5d104a8540e4d35866987af9dda5c9 | [
"Apache-2.0"
] | null | null | null | from django.db import models
# Create your models here.
class Player(models.Model):
"""docstring for Player"""
name = models.CharField(max_length=100, unique=True)
isMember = models.BooleanField(default=False)
isVIP = models.BooleanField(default=False)
#place = models.CharField(max_length=200)
#average_life = m... | 33.918033 | 85 | 0.770904 | 289 | 2,069 | 5.32872 | 0.242215 | 0.088312 | 0.151948 | 0.202597 | 0.761688 | 0.674026 | 0.484416 | 0.440909 | 0.380519 | 0.233766 | 0 | 0.022617 | 0.102465 | 2,069 | 61 | 86 | 33.918033 | 0.806677 | 0.097148 | 0 | 0.263158 | 0 | 0 | 0.013008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.026316 | 0.105263 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b74d6f1603d77d2c104c6920a2727f804b1a8792 | 700 | py | Python | writers/issues.py | n0s0r0g/perfect_OSM | d07fef525865a337d8d9bd3e8168cf6b411a182b | [
"MIT"
] | 4 | 2016-04-03T21:12:57.000Z | 2016-05-04T09:14:43.000Z | writers/issues.py | n0s0r0g/perfect_OSM | d07fef525865a337d8d9bd3e8168cf6b411a182b | [
"MIT"
] | null | null | null | writers/issues.py | n0s0r0g/perfect_OSM | d07fef525865a337d8d9bd3e8168cf6b411a182b | [
"MIT"
] | null | null | null | class Issues:
def __init__(self):
self.issue_types = {}
self.issues = {}
def add_issue_type(self, issue_type_id, issue_type_info):
self.issue_types[issue_type_id] = issue_type_info
def add_issue_obj(self, issue_type_id, obj_type, obj_id):
if issue_type_id not in self.issue_... | 43.75 | 86 | 0.642857 | 103 | 700 | 3.980583 | 0.23301 | 0.263415 | 0.241463 | 0.073171 | 0.326829 | 0.22439 | 0.107317 | 0 | 0 | 0 | 0 | 0 | 0.231429 | 700 | 16 | 86 | 43.75 | 0.762082 | 0 | 0 | 0 | 0 | 0 | 0.104137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b75be28141222ebb2c9110a63824dd6617b22158 | 177 | py | Python | Hurt/heart/DDoS/_.py | Alpha-Demon404/RE-14 | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 39 | 2020-02-26T09:44:36.000Z | 2022-03-23T00:18:25.000Z | Hurt/heart/DDoS/_.py | B4BY-DG/reverse-enginnering | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 15 | 2020-05-14T10:07:26.000Z | 2022-01-06T02:55:32.000Z | Hurt/heart/DDoS/_.py | B4BY-DG/reverse-enginnering | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 41 | 2020-03-16T22:36:38.000Z | 2022-03-17T14:47:19.000Z | import os
try:
ip = input(' Target IP : ')
port = '8080'
byte = '135'
os.system('python heart/DDoS/__.py -s %s -p %s -t %s' % (ip, port, byte))
except:
pass
| 19.666667 | 77 | 0.531073 | 28 | 177 | 3.285714 | 0.714286 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055118 | 0.282486 | 177 | 8 | 78 | 22.125 | 0.669291 | 0 | 0 | 0 | 0 | 0 | 0.344633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
b760e487b1fd41cc2aa6c12f7027416db156b8b3 | 500 | py | Python | exampleproject/tests/test_a.py | pjdelport/pytest-testmon | dbbaf2f29cc7e9a2745f27dae91e44ce973e8d10 | [
"MIT"
] | null | null | null | exampleproject/tests/test_a.py | pjdelport/pytest-testmon | dbbaf2f29cc7e9a2745f27dae91e44ce973e8d10 | [
"MIT"
] | null | null | null | exampleproject/tests/test_a.py | pjdelport/pytest-testmon | dbbaf2f29cc7e9a2745f27dae91e44ce973e8d10 | [
"MIT"
] | null | null | null | import unittest
import pytest
from ..a import add, subtract
from ..b import multiply, divide
from ..d import always_fail
def test_add():
assert add(1, 2) == 3
def test_subtract():
assert subtract(1 , 2) == -1
def test_add_and_multiply():
assert add(multiply(2, 1), 1) == 3
def test_error3():
pass
... | 16.666667 | 72 | 0.69 | 77 | 500 | 4.298701 | 0.454545 | 0.126888 | 0.07855 | 0.102719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027228 | 0.192 | 500 | 29 | 73 | 17.241379 | 0.792079 | 0 | 0 | 0.105263 | 0 | 0 | 0.074 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.315789 | false | 0.052632 | 0.263158 | 0 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
b764cbe7d19f5e3d8ec091c6217f2542e260463e | 1,521 | py | Python | tests/test_fallback_abstraction.py | embg/claripy | 1a5e0ca61d3f480e541226f103900e983f025e4a | [
"BSD-2-Clause"
] | 211 | 2015-08-06T23:25:01.000Z | 2022-03-26T19:34:49.000Z | tests/test_fallback_abstraction.py | embg/claripy | 1a5e0ca61d3f480e541226f103900e983f025e4a | [
"BSD-2-Clause"
] | 175 | 2015-09-03T11:09:18.000Z | 2022-03-09T20:24:33.000Z | tests/test_fallback_abstraction.py | embg/claripy | 1a5e0ca61d3f480e541226f103900e983f025e4a | [
"BSD-2-Clause"
] | 99 | 2015-08-07T10:30:08.000Z | 2022-03-26T10:32:09.000Z | import claripy
import nose
def test_fallback_abstraction():
bz = claripy.backends.z3
a = claripy.BVV(5, 32)
b = claripy.BVS('x', 32, explicit_name=True)
c = a+b
d = 5+b
e = b+5
f = b+b
g = a+a
nose.tools.assert_false(a.symbolic)
nose.tools.assert_true(b.symbolic)
nose.tool... | 37.097561 | 95 | 0.717949 | 227 | 1,521 | 4.651982 | 0.185022 | 0.161932 | 0.269886 | 0.198864 | 0.782197 | 0.63447 | 0.611742 | 0.520833 | 0.520833 | 0.359848 | 0 | 0.009863 | 0.133465 | 1,521 | 40 | 96 | 38.025 | 0.791351 | 0 | 0 | 0 | 0 | 0 | 0.023011 | 0 | 0 | 0 | 0 | 0 | 0.59375 | 1 | 0.03125 | false | 0 | 0.0625 | 0 | 0.09375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.