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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1c0d70c16ee254868874225d028ab4f38cbaa475 | 15,211 | py | Python | trax/backend.py | vkataev/trax | 648f02bb5e064209fa08af5f048dfc2cfdc0ddca | [
"Apache-2.0"
] | null | null | null | trax/backend.py | vkataev/trax | 648f02bb5e064209fa08af5f048dfc2cfdc0ddca | [
"Apache-2.0"
] | null | null | null | trax/backend.py | vkataev/trax | 648f02bb5e064209fa08af5f048dfc2cfdc0ddca | [
"Apache-2.0"
] | 1 | 2021-07-08T16:35:30.000Z | 2021-07-08T16:35:30.000Z | # coding=utf-8
# Copyright 2019 The Trax 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 a... | 30.180556 | 94 | 0.687595 | 2,197 | 15,211 | 4.597178 | 0.186163 | 0.049505 | 0.03802 | 0.052376 | 0.291683 | 0.254356 | 0.226733 | 0.220198 | 0.203762 | 0.189604 | 0 | 0.003594 | 0.195253 | 15,211 | 503 | 95 | 30.240557 | 0.821502 | 0.35356 | 0 | 0.051181 | 0 | 0 | 0.081098 | 0 | 0 | 0 | 0 | 0.001988 | 0 | 1 | 0.212598 | false | 0 | 0.066929 | 0.125984 | 0.523622 | 0.003937 | 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 |
1c172bfc75ec5e302d3deea3bcc6d11e42341547 | 367 | py | Python | yamtbx/command_line/kamo_auto_multi_merge_report.py | 7l2icj/kamo_clone | 5f4a5eed3cd9d91a021d805e46125c19cc2ed1b6 | [
"BSD-3-Clause"
] | 16 | 2016-05-20T11:19:40.000Z | 2021-01-01T19:44:23.000Z | yamtbx/command_line/kamo_auto_multi_merge_report.py | 7l2icj/kamo_clone | 5f4a5eed3cd9d91a021d805e46125c19cc2ed1b6 | [
"BSD-3-Clause"
] | 4 | 2017-03-10T00:51:11.000Z | 2021-02-07T17:18:46.000Z | yamtbx/command_line/kamo_auto_multi_merge_report.py | 7l2icj/kamo_clone | 5f4a5eed3cd9d91a021d805e46125c19cc2ed1b6 | [
"BSD-3-Clause"
] | 9 | 2016-12-15T16:00:06.000Z | 2021-09-10T08:34:14.000Z | # LIBTBX_SET_DISPATCHER_NAME kamo.auto_multi_merge_report
"""
(c) RIKEN 2017. All rights reserved.
Author: Keitaro Yamashita
This software is released under the new BSD License; see LICENSE.
"""
from yamtbx.dataproc.auto.command_line import auto_multi_merge_report
if __name__ == "__main__":
import sys
auto_... | 26.214286 | 69 | 0.787466 | 55 | 367 | 4.836364 | 0.745455 | 0.101504 | 0.157895 | 0.225564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015674 | 0.13079 | 367 | 13 | 70 | 28.230769 | 0.818182 | 0.509537 | 0 | 0 | 0 | 0 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1c181ef48fa3030d2469fe53946cd18db79b0bd0 | 187 | py | Python | data_collection/gazette/spiders/sc_orleans.py | Jefersonalves/diario-oficial | 9a4bdfe2e31414c993d88831a67160c49a5ee657 | [
"MIT"
] | 3 | 2021-08-18T17:50:31.000Z | 2021-11-12T23:36:33.000Z | data_collection/gazette/spiders/sc_orleans.py | Jefersonalves/diario-oficial | 9a4bdfe2e31414c993d88831a67160c49a5ee657 | [
"MIT"
] | 4 | 2021-02-10T02:36:48.000Z | 2022-03-02T14:55:34.000Z | data_collection/gazette/spiders/sc_orleans.py | Jefersonalves/diario-oficial | 9a4bdfe2e31414c993d88831a67160c49a5ee657 | [
"MIT"
] | null | null | null | from gazette.spiders.base import FecamGazetteSpider
class ScOrleansSpider(FecamGazetteSpider):
name = "sc_orleans"
FECAM_QUERY = "cod_entidade:179"
TERRITORY_ID = "4211702"
| 23.375 | 51 | 0.764706 | 20 | 187 | 6.95 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063291 | 0.15508 | 187 | 7 | 52 | 26.714286 | 0.816456 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 0 | 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 |
1c27bdc6471b29c968ea2d2a27d674ea59e0580b | 757 | py | Python | src/data/IndoorOutdoorData.py | stefantaubert/imageclef-lifelog-2019 | e779526583978be828ebc096538d094cc3cc260e | [
"MIT"
] | 1 | 2020-08-15T01:55:07.000Z | 2020-08-15T01:55:07.000Z | src/data/IndoorOutdoorData.py | stefantaubert/imageclef-lifelog-2019 | e779526583978be828ebc096538d094cc3cc260e | [
"MIT"
] | null | null | null | src/data/IndoorOutdoorData.py | stefantaubert/imageclef-lifelog-2019 | e779526583978be828ebc096538d094cc3cc260e | [
"MIT"
] | null | null | null | from src.io.ReadingContext import ReadingContext
from src.data.DataBase import DataBase
from src.globals import vc_cat_cols
from src.globals import vc_cat_score_cols
name_io = "indoor_outdoor"
indoor_outdoor = [
"indoor",
"outdoor",
]
class IndoorOutdoorData(DataBase):
def __init__(self, ctx: ReadingCont... | 22.264706 | 48 | 0.668428 | 99 | 757 | 4.636364 | 0.333333 | 0.061002 | 0.061002 | 0.087146 | 0.204793 | 0.108932 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258917 | 757 | 33 | 49 | 22.939394 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.035667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.16 | 0.2 | 0.72 | 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 |
1c47e7970da9d61be8311b50ed64ed5185e5dfd2 | 4,712 | py | Python | tests/test_albumentations_pytorch.py | brandongk-ubco/autoalbument | 1735ea4376694c2179ac62ce7d100a10b26f2558 | [
"MIT"
] | 135 | 2020-11-03T15:48:30.000Z | 2022-03-16T10:52:57.000Z | tests/test_albumentations_pytorch.py | brandongk-ubco/autoalbument | 1735ea4376694c2179ac62ce7d100a10b26f2558 | [
"MIT"
] | 31 | 2020-11-04T10:20:56.000Z | 2022-03-24T13:46:07.000Z | tests/test_albumentations_pytorch.py | brandongk-ubco/autoalbument | 1735ea4376694c2179ac62ce7d100a10b26f2558 | [
"MIT"
] | 16 | 2020-11-16T08:33:48.000Z | 2022-03-17T18:34:24.000Z | import albumentations.augmentations.functional as F
import pytest
import torch
from torch.autograd import gradcheck
import autoalbument.albumentations_pytorch.functional as PF
from tests.utils import assert_batches_match
class Base:
def scalar_to_tensor(self, arg, requires_grad=False, dtype=torch.float32):
... | 28.215569 | 105 | 0.66702 | 642 | 4,712 | 4.694704 | 0.149533 | 0.099536 | 0.099204 | 0.094891 | 0.654612 | 0.627737 | 0.603517 | 0.58361 | 0.553749 | 0.481752 | 0 | 0.030588 | 0.209041 | 4,712 | 166 | 106 | 28.385542 | 0.778106 | 0 | 0 | 0.571429 | 0 | 0 | 0.006367 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 1 | 0.222222 | false | 0.055556 | 0.047619 | 0.126984 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
1c52f6f06e4f0e934cef9e2b1e4b6a67534d50d6 | 158 | py | Python | wipy/flash/boot.py | scudderfish/SFL525R | 507dfaf2e6ad21004b91b66f709ffbd1fdca7b8b | [
"MIT"
] | 1 | 2015-11-08T18:07:05.000Z | 2015-11-08T18:07:05.000Z | wipy/flash/boot.py | scudderfish/SFL525R | 507dfaf2e6ad21004b91b66f709ffbd1fdca7b8b | [
"MIT"
] | null | null | null | wipy/flash/boot.py | scudderfish/SFL525R | 507dfaf2e6ad21004b91b66f709ffbd1fdca7b8b | [
"MIT"
] | null | null | null | # boot.py -- run on boot-up
# can run arbitrary Python, but best to keep it minimal
from machine import UART
import os
uart = UART(0, 115200)
os.dupterm(uart) | 26.333333 | 55 | 0.740506 | 29 | 158 | 4.034483 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053435 | 0.170886 | 158 | 6 | 56 | 26.333333 | 0.839695 | 0.5 | 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 |
1c5b39d6b1c3cd61c5995ed3bf62415a34b72de6 | 759 | py | Python | core/cpu/config/memory_config.py | rafael-junio/JustAChip8PythonEmulator | ff9c2d67aeaf4f87ff3b5fd6f0231702587455a7 | [
"MIT"
] | null | null | null | core/cpu/config/memory_config.py | rafael-junio/JustAChip8PythonEmulator | ff9c2d67aeaf4f87ff3b5fd6f0231702587455a7 | [
"MIT"
] | null | null | null | core/cpu/config/memory_config.py | rafael-junio/JustAChip8PythonEmulator | ff9c2d67aeaf4f87ff3b5fd6f0231702587455a7 | [
"MIT"
] | null | null | null | import numpy as np
class Config:
MEMORY_START_ADDRESS = 0x200
FONT_SET_START_ADDRESS = 0x50
FONT_SET = np.array([
0xF0, 0x90, 0x90, 0x90, 0xF0,
0x20, 0x60, 0x20, 0x20, 0x70,
0xF0, 0x10, 0xF0, 0x80, 0xF0,
0xF0, 0x10, 0xF0, 0x10, 0xF0,
0x90, 0x90, 0xF0, 0x10, 0x10,
... | 29.192308 | 37 | 0.55863 | 102 | 759 | 4.098039 | 0.245098 | 0.15311 | 0.172249 | 0.076555 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.41165 | 0.321476 | 759 | 25 | 38 | 30.36 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.433465 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1c72957c2da5cb0e001f95d435b4075a2b23a57b | 182 | py | Python | 1011-Sphere.py | OrianaCadavid/uri-oj | 256c811007712e85f636ae5b9357a59cf608daa8 | [
"MIT"
] | null | null | null | 1011-Sphere.py | OrianaCadavid/uri-oj | 256c811007712e85f636ae5b9357a59cf608daa8 | [
"MIT"
] | null | null | null | 1011-Sphere.py | OrianaCadavid/uri-oj | 256c811007712e85f636ae5b9357a59cf608daa8 | [
"MIT"
] | null | null | null | def main():
PI = 3.14159
radio = int(raw_input())
volume = (4 / 3.0) * PI * (radio**3)
print 'VOLUME = {:.3f}'.format(volume)
if __name__ == '__main__':
main()
| 18.2 | 42 | 0.527473 | 25 | 182 | 3.48 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08209 | 0.263736 | 182 | 9 | 43 | 20.222222 | 0.567164 | 0 | 0 | 0 | 0 | 0 | 0.126374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.142857 | 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 |
98c0f397465044e70322a7cc5fa906267af672e6 | 161 | py | Python | notebooks/_solutions/11-xarray-intro23.py | jorisvandenbossche/DS-python-geospatial | 893a12edc5c203a75815f6dcb5f1e18c577c8cd5 | [
"BSD-3-Clause"
] | 58 | 2020-10-09T10:10:59.000Z | 2022-03-07T14:58:07.000Z | notebooks/_solutions/11-xarray-intro23.py | jorisvandenbossche/DS-python-geospatial | 893a12edc5c203a75815f6dcb5f1e18c577c8cd5 | [
"BSD-3-Clause"
] | 24 | 2020-09-30T19:57:14.000Z | 2021-10-05T07:21:09.000Z | notebooks/_solutions/11-xarray-intro23.py | jorisvandenbossche/DS-python-geospatial | 893a12edc5c203a75815f6dcb5f1e18c577c8cd5 | [
"BSD-3-Clause"
] | 19 | 2020-10-05T09:32:18.000Z | 2022-03-20T00:09:14.000Z | # Rescale the data to 0-1
b4_data = (b4_data - b4_data.min())/(b4_data.max() - b4_data.min())
b8_data = (b8_data - b8_data.min())/(b8_data.max() - b8_data.min()) | 53.666667 | 67 | 0.658385 | 32 | 161 | 3 | 0.3125 | 0.3125 | 0.166667 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084507 | 0.118012 | 161 | 3 | 68 | 53.666667 | 0.591549 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 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 |
98c2bcec63f14addaa5393177aaf219c2619341c | 549 | py | Python | ois_api_client/v3_0/dto/LineAmountsSimplified.py | peterkulik/ois_api_client | 51dabcc9f920f89982c4419bb058f5a88193cee0 | [
"MIT"
] | 7 | 2020-10-22T08:15:29.000Z | 2022-01-27T07:59:39.000Z | ois_api_client/v3_0/dto/LineAmountsSimplified.py | peterkulik/ois_api_client | 51dabcc9f920f89982c4419bb058f5a88193cee0 | [
"MIT"
] | null | null | null | ois_api_client/v3_0/dto/LineAmountsSimplified.py | peterkulik/ois_api_client | 51dabcc9f920f89982c4419bb058f5a88193cee0 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from .VatRate import VatRate
@dataclass
class LineAmountsSimplified:
"""Item value data to be completed in case of simplified invoice
:param line_vat_rate: Tax rate or tax exemption marking
:param line_gross_amount_simplified: Gross amount of the item expressed in the cu... | 32.294118 | 106 | 0.790528 | 78 | 549 | 5.333333 | 0.423077 | 0.158654 | 0.144231 | 0.240385 | 0.367788 | 0.149038 | 0.149038 | 0 | 0 | 0 | 0 | 0 | 0.176685 | 549 | 16 | 107 | 34.3125 | 0.920354 | 0.553734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.857143 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
98c55fd058eda4b35a21cc0bc5a857c5a400bef6 | 1,556 | py | Python | src/compas/datastructures/__init__.py | philianeles/compas | 129a5a7e9d8832495d2bbee6ce7c6463ab50f2d1 | [
"MIT"
] | null | null | null | src/compas/datastructures/__init__.py | philianeles/compas | 129a5a7e9d8832495d2bbee6ce7c6463ab50f2d1 | [
"MIT"
] | null | null | null | src/compas/datastructures/__init__.py | philianeles/compas | 129a5a7e9d8832495d2bbee6ce7c6463ab50f2d1 | [
"MIT"
] | null | null | null | """
********************************************************************************
compas.datastructures
********************************************************************************
.. currentmodule:: compas.datastructures
Mesh
====
The mesh is implemented as a half-edge datastructure.
It is meant... | 21.915493 | 84 | 0.624036 | 184 | 1,556 | 5.163043 | 0.38587 | 0.021053 | 0.063158 | 0.069474 | 0.168421 | 0.126316 | 0.065263 | 0 | 0 | 0 | 0 | 0 | 0.210154 | 1,556 | 70 | 85 | 22.228571 | 0.772986 | 0.77635 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.7 | 0 | 0.8 | 0.1 | 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 |
98e873e47bc6b6abccbae68f6983f04daf0bf30f | 15,026 | py | Python | src/robotkernel/constants.py | martinRenou/robotkernel | 827435dbaa5a201db4640f92ac2c4a7ead8f50cd | [
"BSD-3-Clause"
] | 56 | 2019-01-19T22:46:34.000Z | 2022-03-03T07:28:19.000Z | src/robotkernel/constants.py | martinRenou/robotkernel | 827435dbaa5a201db4640f92ac2c4a7ead8f50cd | [
"BSD-3-Clause"
] | 42 | 2019-01-09T18:16:32.000Z | 2022-03-29T20:18:41.000Z | src/robotkernel/constants.py | admariner/robotkernel | 6b0c3334a4aeb3f7e4f735613cf6be04cd950fd6 | [
"BSD-3-Clause"
] | 9 | 2019-01-25T03:54:49.000Z | 2021-12-05T11:20:59.000Z | # -*- coding: utf-8 -*-
from robot.libdocpkg.model import KeywordDoc
import pkg_resources
import re
try:
pkg_resources.get_distribution("robotframework>=3.2a1")
HAS_RF32_PARSER = True
except pkg_resources.VersionConflict:
HAS_RF32_PARSER = False
try:
pkg_resources.get_distribution("nbimporter")
H... | 48.00639 | 4,329 | 0.789299 | 1,265 | 15,026 | 9.235573 | 0.16996 | 0.023966 | 0.052384 | 0.066935 | 0.466575 | 0.435933 | 0.405889 | 0.395618 | 0.388171 | 0.37944 | 0 | 0.040788 | 0.12871 | 15,026 | 312 | 4,330 | 48.160256 | 0.851589 | 0.02702 | 0 | 0.478814 | 0 | 0.063559 | 0.856888 | 0.296441 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.063559 | 0 | 0.063559 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
98f42c78aefc2c25a2e513650fdc030a048a47f9 | 708 | py | Python | src/plotter/printer.py | lmiguelvargasf/trajectory_tracking | 90e59c66294105b963a6f9a6ebba1419d93f210b | [
"MIT"
] | 54 | 2017-04-07T08:55:19.000Z | 2022-03-23T01:29:12.000Z | src/plotter/printer.py | sweetquiet/trajectory_tracking | 90e59c66294105b963a6f9a6ebba1419d93f210b | [
"MIT"
] | 2 | 2017-07-28T15:52:03.000Z | 2018-12-14T02:02:44.000Z | src/plotter/printer.py | lmiguelvargasf/trajectory_tracking | 90e59c66294105b963a6f9a6ebba1419d93f210b | [
"MIT"
] | 24 | 2017-09-15T11:56:51.000Z | 2022-01-18T09:58:19.000Z | #!/usr/bin/env python
def print_error_message():
print('Error using module plotter!')
print('Try python -m plotter --help for more information')
def print_usage_message():
print('Usage:')
print('python -m plotter /path/to/database/results.db [simulation_A] [simulation_B]')
print('\tPlots the resu... | 44.25 | 113 | 0.731638 | 103 | 708 | 4.92233 | 0.436893 | 0.086785 | 0.08284 | 0.12426 | 0.453649 | 0.331361 | 0.331361 | 0.331361 | 0.16568 | 0 | 0 | 0 | 0.158192 | 708 | 15 | 114 | 47.2 | 0.850671 | 0.028249 | 0 | 0 | 0 | 0 | 0.732169 | 0.081514 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | true | 0 | 0 | 0 | 0.181818 | 1 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
c70e12552c350f643e2f09ca61e9cfd71f154465 | 194 | py | Python | yggdrasil/communication/tests/test_JSONFileComm.py | astro-friedel/yggdrasil | 5ecbfd083240965c20c502b4795b6dc93d94b020 | [
"BSD-3-Clause"
] | null | null | null | yggdrasil/communication/tests/test_JSONFileComm.py | astro-friedel/yggdrasil | 5ecbfd083240965c20c502b4795b6dc93d94b020 | [
"BSD-3-Clause"
] | null | null | null | yggdrasil/communication/tests/test_JSONFileComm.py | astro-friedel/yggdrasil | 5ecbfd083240965c20c502b4795b6dc93d94b020 | [
"BSD-3-Clause"
] | null | null | null | from yggdrasil.communication.tests import test_FileComm as parent
class TestJSONFileComm(parent.TestFileComm):
r"""Test for JSONFileComm communication class."""
comm = 'JSONFileComm'
| 24.25 | 65 | 0.778351 | 21 | 194 | 7.142857 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139175 | 194 | 7 | 66 | 27.714286 | 0.898204 | 0.216495 | 0 | 0 | 0 | 0 | 0.082192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.75 | 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 |
c70e544d336bc2be1cdfaa6f8e3c33339201ab93 | 669 | py | Python | src/envs/__init__.py | benellis3/REFIL | fe3d6ea5a6eb307128cf8a47ddc6e59cb126a52a | [
"MIT"
] | 25 | 2020-07-20T01:44:12.000Z | 2021-04-26T07:38:01.000Z | src/envs/__init__.py | benellis3/REFIL | fe3d6ea5a6eb307128cf8a47ddc6e59cb126a52a | [
"MIT"
] | 1 | 2021-11-04T13:17:54.000Z | 2021-11-06T04:42:16.000Z | src/envs/__init__.py | benellis3/REFIL | fe3d6ea5a6eb307128cf8a47ddc6e59cb126a52a | [
"MIT"
] | 7 | 2020-08-05T21:12:11.000Z | 2021-04-12T14:23:43.000Z | from functools import partial
from .multiagentenv import MultiAgentEnv
from .starcraft2 import StarCraft2Env, StarCraft2CustomEnv
from .group_matching import GroupMatching
from .starcraft2 import custom_scenario_registry as sc_scenarios
# TODO: Do we need this?
def env_fn(env, **kwargs) -> MultiAgentEnv: # TODO: thi... | 30.409091 | 87 | 0.77429 | 85 | 669 | 5.929412 | 0.458824 | 0.039683 | 0.063492 | 0.089286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013652 | 0.124066 | 669 | 21 | 88 | 31.857143 | 0.846416 | 0.152466 | 0 | 0 | 0 | 0 | 0.046181 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0.076923 | 0.538462 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c70e76a7849b373e0f23e0c1129d1fc219623216 | 120 | py | Python | backend/api/routers/contact_router.py | ferdn4ndo/infotrem | 4728c5fe8385dcc0a1c75068429fa20e2afbf6f2 | [
"MIT"
] | null | null | null | backend/api/routers/contact_router.py | ferdn4ndo/infotrem | 4728c5fe8385dcc0a1c75068429fa20e2afbf6f2 | [
"MIT"
] | 1 | 2020-06-21T18:38:14.000Z | 2020-06-21T21:57:09.000Z | backend/api/routers/contact_router.py | ferdn4ndo/infotrem | 4728c5fe8385dcc0a1c75068429fa20e2afbf6f2 | [
"MIT"
] | null | null | null | from django.urls import path
from api.views import ContactView
urlpatterns = [
path('', ContactView.as_view()),
]
| 15 | 36 | 0.716667 | 15 | 120 | 5.666667 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 120 | 7 | 37 | 17.142857 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c70fa1d86117072efb06dd7512c2459723da115c | 96 | py | Python | stateinterpreter/_configs.py | luigibonati/md-stateinterpreter | ad49ffdeaef236aeebcec781eb0de22bc840c113 | [
"MIT"
] | 1 | 2022-02-14T10:06:45.000Z | 2022-02-14T10:06:45.000Z | stateinterpreter/_configs.py | luigibonati/md-stateinterpreter | ad49ffdeaef236aeebcec781eb0de22bc840c113 | [
"MIT"
] | 3 | 2021-10-01T11:17:52.000Z | 2022-01-27T11:36:41.000Z | stateinterpreter/_configs.py | luigibonati/md-stateinterpreter | ad49ffdeaef236aeebcec781eb0de22bc840c113 | [
"MIT"
] | null | null | null | __all__ = ["__DEV__", "__EPS__", "__useTeX__"]
__DEV__ = True
__EPS__ = 1e-8
__useTeX__ = False | 19.2 | 46 | 0.697917 | 11 | 96 | 3.545455 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.145833 | 96 | 5 | 47 | 19.2 | 0.45122 | 0 | 0 | 0 | 0 | 0 | 0.247423 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c71ce8a5fb99887305a63b44ff2d1abcaed2a00c | 5,447 | py | Python | yudzuki/channel.py | LunaProject-Discord/yudzuki.py | 7ff2d1f9e39ed5300a46c48fb95df50046814ede | [
"MIT"
] | 6 | 2021-04-29T12:48:55.000Z | 2021-06-25T06:54:37.000Z | yudzuki/channel.py | LunaProject-Discord/yudzuki.py | 7ff2d1f9e39ed5300a46c48fb95df50046814ede | [
"MIT"
] | null | null | null | yudzuki/channel.py | LunaProject-Discord/yudzuki.py | 7ff2d1f9e39ed5300a46c48fb95df50046814ede | [
"MIT"
] | null | null | null | __all__ = (
"TextChannel",
"VoiceChannel",
"StoreChannel",
"CategoryChannel",
"Channel"
)
class TextChannel:
def __init__(self, data):
self.data = data
self._update(data)
def __repr__(self):
return (
f"<TextChannel id={self.id} name={self.na... | 22.052632 | 131 | 0.541399 | 610 | 5,447 | 4.55082 | 0.077049 | 0.144092 | 0.161383 | 0.051873 | 0.679035 | 0.647695 | 0.623199 | 0.594741 | 0.573487 | 0.491715 | 0 | 0.001403 | 0.345511 | 5,447 | 246 | 132 | 22.142276 | 0.777279 | 0 | 0 | 0.682796 | 0 | 0.010753 | 0.140077 | 0.047916 | 0 | 0 | 0 | 0 | 0 | 1 | 0.274194 | false | 0.005376 | 0 | 0.215054 | 0.548387 | 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 |
c71e0991e35616c6424a86b7c85cff93575242bf | 1,443 | py | Python | em_examples/__init__.py | debnoob/em_examples | c137108b51118855296d02ac8c31ed299bb23e34 | [
"MIT"
] | 9 | 2017-09-06T15:08:22.000Z | 2021-05-07T01:17:03.000Z | em_examples/__init__.py | debnoob/em_examples | c137108b51118855296d02ac8c31ed299bb23e34 | [
"MIT"
] | 37 | 2016-02-04T04:48:13.000Z | 2017-01-20T22:05:13.000Z | em_examples/__init__.py | debnoob/em_examples | c137108b51118855296d02ac8c31ed299bb23e34 | [
"MIT"
] | 7 | 2018-03-03T18:04:56.000Z | 2021-01-30T10:02:21.000Z | from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicode_literals
import sys
from . import Attenuation
from . import BiotSavart
from . import CondUtils
from . import DC_cylinder
from . import DCLayers
from . import DCsphere
from . import DC_Pseudosections
from . impor... | 27.226415 | 53 | 0.820513 | 167 | 1,443 | 6.832335 | 0.419162 | 0.324277 | 0.042068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018459 | 0.136521 | 1,443 | 52 | 54 | 27.75 | 0.897271 | 0 | 0 | 0 | 0 | 0 | 0.050589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.875 | 0 | 0.875 | 0.020833 | 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 |
c720622b3e39d8c3814fdc6afe5b3d28301a5912 | 5,078 | py | Python | tests/scheduler/schedules/test_verification.py | quantify-os/quantify-scheduler | 9dee17ca9345560b998b52f956c23b79a9ab287f | [
"BSD-4-Clause"
] | 1 | 2022-03-23T16:55:07.000Z | 2022-03-23T16:55:07.000Z | tests/scheduler/schedules/test_verification.py | quantify-os/quantify-scheduler | 9dee17ca9345560b998b52f956c23b79a9ab287f | [
"BSD-4-Clause"
] | null | null | null | tests/scheduler/schedules/test_verification.py | quantify-os/quantify-scheduler | 9dee17ca9345560b998b52f956c23b79a9ab287f | [
"BSD-4-Clause"
] | null | null | null | # pylint: disable=missing-module-docstring
# pylint: disable=missing-class-docstring
# pylint: disable=missing-function-docstring
# pylint: disable=redefined-outer-name
import pytest
import numpy as np
from numpy.testing import assert_array_equal
from quantify_core.data.handling import set_datadir
from quantify_sched... | 32.974026 | 95 | 0.736314 | 667 | 5,078 | 5.190405 | 0.178411 | 0.109185 | 0.108319 | 0.105142 | 0.769497 | 0.746967 | 0.712305 | 0.712305 | 0.644714 | 0.584633 | 0 | 0.013721 | 0.167586 | 5,078 | 153 | 96 | 33.189542 | 0.805299 | 0.059275 | 0 | 0.509615 | 0 | 0 | 0.141988 | 0.055789 | 0 | 0 | 0 | 0 | 0.086538 | 1 | 0.115385 | false | 0 | 0.067308 | 0 | 0.201923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c7334080759ef110dd0a4cb10174518be1bb580e | 1,231 | py | Python | regulations/tests/urls_test.py | johnnyporkchops/regulations-site | 6ada2d584e3abafddf9d462a13302ef617b9ac84 | [
"CC0-1.0"
] | null | null | null | regulations/tests/urls_test.py | johnnyporkchops/regulations-site | 6ada2d584e3abafddf9d462a13302ef617b9ac84 | [
"CC0-1.0"
] | null | null | null | regulations/tests/urls_test.py | johnnyporkchops/regulations-site | 6ada2d584e3abafddf9d462a13302ef617b9ac84 | [
"CC0-1.0"
] | 1 | 2020-04-07T18:47:46.000Z | 2020-04-07T18:47:46.000Z | from unittest import TestCase
from django.urls import reverse
class UrlTests(TestCase):
def test_about(self):
r = reverse('about')
self.assertEqual(r, '/about')
def test_chrome_section_url(self):
r = reverse('chrome_section_view', args=('201-2', '2012-1123'))
self.assertEqual(... | 34.194444 | 78 | 0.607636 | 167 | 1,231 | 4.299401 | 0.197605 | 0.066852 | 0.155989 | 0.100279 | 0.770195 | 0.738162 | 0.671309 | 0.593315 | 0.43454 | 0.345404 | 0 | 0.256303 | 0.226645 | 1,231 | 35 | 79 | 35.171429 | 0.497899 | 0 | 0 | 0.185185 | 0 | 0 | 0.363119 | 0.168968 | 0 | 0 | 0 | 0 | 0.259259 | 1 | 0.148148 | false | 0 | 0.074074 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c743d6be7ee7d8569576f3e77548a917b9e589f9 | 141 | py | Python | lx147.py | ggznmg/spider | 04cc769f35ee14e56f05dd10d8d8ee6cacd574ce | [
"Apache-2.0"
] | null | null | null | lx147.py | ggznmg/spider | 04cc769f35ee14e56f05dd10d8d8ee6cacd574ce | [
"Apache-2.0"
] | null | null | null | lx147.py | ggznmg/spider | 04cc769f35ee14e56f05dd10d8d8ee6cacd574ce | [
"Apache-2.0"
] | null | null | null | import re
content = 'Extra stings Hello 2134567 World_This is a Regex Demo Extra stings'
result = re.sub('\d+','hahah',content)
print(result) | 35.25 | 78 | 0.751773 | 23 | 141 | 4.565217 | 0.782609 | 0.209524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056911 | 0.12766 | 141 | 4 | 79 | 35.25 | 0.796748 | 0 | 0 | 0 | 0 | 0 | 0.521127 | 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 |
c75601b963d887cf03b38bde025c7fe0ea8cc135 | 3,021 | py | Python | generate_figures/figure_compare_sfo_N.py | marinajacks/Sum-of-Functions-Optimizer | 3809555d9d0a0a2c01ebbd18302afdd7b744273b | [
"MIT"
] | 1 | 2020-04-07T01:17:35.000Z | 2020-04-07T01:17:35.000Z | generate_figures/figure_compare_sfo_N.py | marinajacks/Sum-of-Functions-Optimizer | 3809555d9d0a0a2c01ebbd18302afdd7b744273b | [
"MIT"
] | null | null | null | generate_figures/figure_compare_sfo_N.py | marinajacks/Sum-of-Functions-Optimizer | 3809555d9d0a0a2c01ebbd18302afdd7b744273b | [
"MIT"
] | null | null | null | """
This code generates the convergence comparison for SFO with different numbers
of subfunctions N.
Adjust the arrays "models_to_train" and "N_set" in the function
"generate_data_SFO_N()" in order to choose which objective functions and
numbers of subfunctions are tested.
Author: Jascha Sohl-Dickstein (2014)
Web: ht... | 41.383562 | 121 | 0.720291 | 424 | 3,021 | 4.882075 | 0.337264 | 0.047826 | 0.043478 | 0.034783 | 0.485024 | 0.433333 | 0.401932 | 0.300483 | 0.300483 | 0.263768 | 0 | 0.010097 | 0.180404 | 3,021 | 72 | 122 | 41.958333 | 0.825929 | 0.205892 | 0 | 0.074074 | 1 | 0 | 0.088363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.185185 | 0.185185 | null | null | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
c7a3027c235549c21105230be5ba30baaa3716c1 | 125 | py | Python | backend/apps/basics/system/apps.py | wuchaofan1654/tester | ff38d42e06cbdfa04882e8e95ada2dd93e6609f2 | [
"MIT"
] | null | null | null | backend/apps/basics/system/apps.py | wuchaofan1654/tester | ff38d42e06cbdfa04882e8e95ada2dd93e6609f2 | [
"MIT"
] | null | null | null | backend/apps/basics/system/apps.py | wuchaofan1654/tester | ff38d42e06cbdfa04882e8e95ada2dd93e6609f2 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class SystemConfig(AppConfig):
name = 'apps.basics.system'
verbose_name = "系统管理"
| 17.857143 | 33 | 0.728 | 15 | 125 | 6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176 | 125 | 6 | 34 | 20.833333 | 0.873786 | 0 | 0 | 0 | 0 | 0 | 0.176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 |
c7a3c369ac3b9ee713b9efb0e295b63b53ef829e | 987 | py | Python | opticverge/core/meta/solver_meta.py | opticverge/scikit-evolution | fdd69468c0aacfba4c1ff82a6619f20abfd5f77b | [
"MIT"
] | null | null | null | opticverge/core/meta/solver_meta.py | opticverge/scikit-evolution | fdd69468c0aacfba4c1ff82a6619f20abfd5f77b | [
"MIT"
] | null | null | null | opticverge/core/meta/solver_meta.py | opticverge/scikit-evolution | fdd69468c0aacfba4c1ff82a6619f20abfd5f77b | [
"MIT"
] | null | null | null | import uuid
from typing import Dict
from opticverge.core.chromosome.abstract_chromosome import AbstractChromosome
class SolverMeta(object):
""" The SolverMeta class tracks additional data within the evolutionary process"""
def __init__(self):
"""
The id of a solver is set automatically
... | 27.416667 | 86 | 0.671733 | 103 | 987 | 6.184466 | 0.407767 | 0.160126 | 0.098901 | 0.075353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002706 | 0.251266 | 987 | 35 | 87 | 28.2 | 0.859269 | 0.116515 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.176471 | 0.117647 | 0.588235 | 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 |
c7c628231d3070f9909a5a7f049b13efe3efcc6b | 417 | py | Python | xfel/merging/application/modify/factory.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | xfel/merging/application/modify/factory.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | xfel/merging/application/modify/factory.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | from __future__ import division
from xfel.merging.application.modify.polarization import polarization
from xfel.merging.application.worker import factory as factory_base
class factory(factory_base):
""" Factory class for modification of intensites. """
@staticmethod
def from_parameters(params, additional_info=No... | 37.909091 | 69 | 0.793765 | 48 | 417 | 6.729167 | 0.625 | 0.049536 | 0.092879 | 0.160991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1247 | 417 | 10 | 70 | 41.7 | 0.884932 | 0.220624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.857143 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
c7c66de1b614260c18a9bcf0c0c00466d2fc2eca | 19,662 | py | Python | SeleniumLibrary-5.0.0/utest/test/keywords/test_selenium_options_parser.py | nhutnb22/DieuAuto | e2ec2ba4630735f11035a1c63500e7f84f77ff24 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | SeleniumLibrary-5.0.0/utest/test/keywords/test_selenium_options_parser.py | nhutnb22/DieuAuto | e2ec2ba4630735f11035a1c63500e7f84f77ff24 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | SeleniumLibrary-5.0.0/utest/test/keywords/test_selenium_options_parser.py | nhutnb22/DieuAuto | e2ec2ba4630735f11035a1c63500e7f84f77ff24 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | import inspect
import os
import unittest
import pytest
from approvaltests.approvals import verify_all
from approvaltests.reporters.generic_diff_reporter_factory import (
GenericDiffReporterFactory,
)
from mockito import mock, when, unstub, ANY
from robot.utils import WINDOWS
from selenium import webdriver
from Se... | 38.030948 | 87 | 0.722205 | 2,239 | 19,662 | 6.085753 | 0.088879 | 0.062968 | 0.070454 | 0.055042 | 0.849699 | 0.790254 | 0.722809 | 0.668942 | 0.635183 | 0.593718 | 0 | 0.005418 | 0.155223 | 19,662 | 516 | 88 | 38.104651 | 0.814931 | 0 | 0 | 0.520737 | 0 | 0.002304 | 0.146272 | 0.034991 | 0 | 0 | 0 | 0 | 0.057604 | 1 | 0.085253 | false | 0 | 0.057604 | 0.002304 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c7cdd5e7481af6659f1ef2fdb4782247dc0c6e6c | 171 | py | Python | disco/gateway/encoding/__init__.py | Lymia/rowboat | 391e1eab0323e4fc295404f367e62136265e9a60 | [
"MIT"
] | 6 | 2018-07-20T04:07:51.000Z | 2021-01-15T04:52:34.000Z | disco/gateway/encoding/__init__.py | Lymia/rowboat | 391e1eab0323e4fc295404f367e62136265e9a60 | [
"MIT"
] | 1 | 2018-11-05T22:47:43.000Z | 2020-10-04T09:45:42.000Z | disco/gateway/encoding/__init__.py | Lymia/rowboat | 391e1eab0323e4fc295404f367e62136265e9a60 | [
"MIT"
] | 6 | 2018-07-20T03:19:30.000Z | 2021-11-05T22:51:18.000Z | from .json import JSONEncoder
ENCODERS = {
'json': JSONEncoder,
}
try:
from .etf import ETFEncoder
ENCODERS['etf'] = ETFEncoder
except ImportError:
pass
| 14.25 | 32 | 0.678363 | 18 | 171 | 6.444444 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22807 | 171 | 11 | 33 | 15.545455 | 0.878788 | 0 | 0 | 0 | 0 | 0 | 0.040936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.333333 | 0 | 0.333333 | 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 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
c7d472c655cbd0137af96f245c1020a44aa49296 | 274 | py | Python | raspy/illegal_argument_exception.py | cyrusbuilt/RasPy | 1e34840cc90ea7f19317e881162209d3d819eb09 | [
"MIT"
] | null | null | null | raspy/illegal_argument_exception.py | cyrusbuilt/RasPy | 1e34840cc90ea7f19317e881162209d3d819eb09 | [
"MIT"
] | null | null | null | raspy/illegal_argument_exception.py | cyrusbuilt/RasPy | 1e34840cc90ea7f19317e881162209d3d819eb09 | [
"MIT"
] | null | null | null | """This module provides the IllegalArgumentException exception class."""
class IllegalArgumentException(Exception):
"""Illegal argument exception.
The exception that is thrown if an argument value passed to a function
is illegal or invalid.
"""
pass
| 22.833333 | 74 | 0.733577 | 31 | 274 | 6.483871 | 0.709677 | 0.328358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20073 | 274 | 11 | 75 | 24.909091 | 0.917808 | 0.689781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
c7d9bcfa90b666582b56cedd7b3e9507b7c7f115 | 884 | py | Python | decompiler.py | TheProgrammingKid/credential_manager | 5bd0ceb19f3c407ba314cda30c4a8e7bf4aa22a7 | [
"MIT"
] | null | null | null | decompiler.py | TheProgrammingKid/credential_manager | 5bd0ceb19f3c407ba314cda30c4a8e7bf4aa22a7 | [
"MIT"
] | null | null | null | decompiler.py | TheProgrammingKid/credential_manager | 5bd0ceb19f3c407ba314cda30c4a8e7bf4aa22a7 | [
"MIT"
] | null | null | null | class Decompiler(object):
def __init__(self, compiled_password):
self.compiled_password = compiled_password
self.characters = {'a':'hg4','b':'t9d','c':'8u3','d':'89o','e':'7fr','f':'u8e','g':'671','h':'7c5','i':'8hf','j':'hdk','k':'y8c','l':'yt7','m':'8gh','n':'84w','o':'89f','p':'23z','q':'12l',... | 55.25 | 378 | 0.5181 | 134 | 884 | 3.343284 | 0.664179 | 0.214286 | 0.223214 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076495 | 0.186652 | 884 | 15 | 379 | 58.933333 | 0.546592 | 0 | 0 | 0 | 0 | 0 | 0.161105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.545455 | 0 | 0 | 0.363636 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
c7dc8ff9abd2a40c32f53150706a067e6c714ce9 | 1,224 | py | Python | cherry/envs/base.py | ngoby/cherry | ec88bac03bf3ac3fae1010c5db8329db595dc5d6 | [
"Apache-2.0"
] | null | null | null | cherry/envs/base.py | ngoby/cherry | ec88bac03bf3ac3fae1010c5db8329db595dc5d6 | [
"Apache-2.0"
] | null | null | null | cherry/envs/base.py | ngoby/cherry | ec88bac03bf3ac3fae1010c5db8329db595dc5d6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import gym
from .utils import get_space_dimension, is_vectorized, is_discrete
class Wrapper(gym.Wrapper):
"""
This class allows to chain Environment Wrappers while still being able to
access the properties of wrapped wrappers.
Example:
env = gym.make('MyEnv-v0')
... | 24.979592 | 81 | 0.663399 | 151 | 1,224 | 5.178808 | 0.390728 | 0.076726 | 0.081841 | 0.084399 | 0.225064 | 0.163683 | 0.163683 | 0.163683 | 0.163683 | 0.163683 | 0 | 0.004353 | 0.249183 | 1,224 | 48 | 82 | 25.5 | 0.846572 | 0.242647 | 0 | 0.28 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.08 | 0.12 | 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 |
c7e2f1709d0bb727be37d4287444593948be1851 | 208 | py | Python | tags/urls.py | KibetRonoh/Movie_Zone_-Django | 901b211540943a98b531db2bc77d6b3a483a694a | [
"MIT"
] | 58 | 2021-03-13T21:00:01.000Z | 2022-03-29T05:59:39.000Z | tags/urls.py | KibetRonoh/Movie_Zone_-Django | 901b211540943a98b531db2bc77d6b3a483a694a | [
"MIT"
] | 1 | 2021-05-21T16:40:00.000Z | 2021-05-21T16:40:00.000Z | tags/urls.py | KibetRonoh/Movie_Zone_-Django | 901b211540943a98b531db2bc77d6b3a483a694a | [
"MIT"
] | 35 | 2021-03-17T12:04:30.000Z | 2022-03-18T02:06:31.000Z | from django.urls import path
from .views import TaggedItemListView, TaggedItemDetailView
urlpatterns = [
path("<slug:tag>", TaggedItemDetailView.as_view()),
path('', TaggedItemListView.as_view()),
] | 26 | 59 | 0.745192 | 21 | 208 | 7.285714 | 0.619048 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 208 | 8 | 60 | 26 | 0.840659 | 0 | 0 | 0 | 0 | 0 | 0.047847 | 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 |
c7e31fd28f3db1e829acf70af316022fdb0adf8c | 981 | py | Python | 03musicForensics/music.py | lxl0928/info_safety_class_project | 6c40535cd901d8de92a2525ba0484614cf70a4c4 | [
"Apache-2.0"
] | 1 | 2019-01-10T03:20:35.000Z | 2019-01-10T03:20:35.000Z | 03musicForensics/music.py | lxl0928/info_safety_class_project | 6c40535cd901d8de92a2525ba0484614cf70a4c4 | [
"Apache-2.0"
] | null | null | null | 03musicForensics/music.py | lxl0928/info_safety_class_project | 6c40535cd901d8de92a2525ba0484614cf70a4c4 | [
"Apache-2.0"
] | null | null | null | #! -*- coding: utf-8 -*-
from tinytag import TinyTag
def handle_mp3(filename):
tag = TinyTag.get(filename)
data_list = []
data_list.append('the album is: %s.' % tag.album)
data_list.append('the artist is: %s.' % tag.artist)
data_list.append('the audio_offset is: %s.' % tag.audio_offset)
data_l... | 42.652174 | 67 | 0.654434 | 154 | 981 | 4.019481 | 0.227273 | 0.206785 | 0.31664 | 0.384491 | 0.210016 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002475 | 0.176351 | 981 | 22 | 68 | 44.590909 | 0.763614 | 0.023445 | 0 | 0 | 0 | 0 | 0.283177 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c7f5ad2fc6eec2d0aee9eb90ee98e89c2a3b008e | 626 | py | Python | hwtLib/amba/axis_comp/cdc.py | optical-o/hwtLib | edad621f5ad4cdbea20a5751ff4468979afe2f77 | [
"MIT"
] | 24 | 2017-02-23T10:00:50.000Z | 2022-01-28T12:20:21.000Z | hwtLib/amba/axis_comp/cdc.py | optical-o/hwtLib | edad621f5ad4cdbea20a5751ff4468979afe2f77 | [
"MIT"
] | 32 | 2017-04-28T10:29:34.000Z | 2021-04-27T09:16:43.000Z | hwtLib/amba/axis_comp/cdc.py | optical-o/hwtLib | edad621f5ad4cdbea20a5751ff4468979afe2f77 | [
"MIT"
] | 8 | 2019-09-19T03:34:36.000Z | 2022-01-21T06:56:58.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from hwt.serializer.mode import serializeParamsUniq
from hwtLib.amba.axis_comp.base import AxiSCompBase
from hwtLib.handshaked.cdc import HandshakedCdc
@serializeParamsUniq
class AxiSCdc(AxiSCompBase, HandshakedCdc):
"""
CDC (Clock domain crossing) for axi-strea... | 20.866667 | 62 | 0.71885 | 77 | 626 | 5.636364 | 0.61039 | 0.096774 | 0.087558 | 0.041475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003854 | 0.170927 | 626 | 29 | 63 | 21.586207 | 0.83237 | 0.300319 | 0 | 0 | 0 | 0 | 0.01937 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.583333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1be036e43d18e4bd0e8ea27f44e1d122a9967a6b | 1,305 | py | Python | internal/handlers/iceland.py | fillingthemoon/cartogram-web | 58b645bca0c22b9bccdb2a5a8213a5a24a7e5958 | [
"MIT"
] | null | null | null | internal/handlers/iceland.py | fillingthemoon/cartogram-web | 58b645bca0c22b9bccdb2a5a8213a5a24a7e5958 | [
"MIT"
] | 20 | 2019-10-20T11:27:38.000Z | 2022-03-12T00:28:17.000Z | internal/handlers/iceland.py | fillingthemoon/cartogram-web | 58b645bca0c22b9bccdb2a5a8213a5a24a7e5958 | [
"MIT"
] | 16 | 2019-08-22T04:49:44.000Z | 2021-06-09T04:44:57.000Z | import settings
import handlers.base_handler
import csv
class CartogramHandler(handlers.base_handler.BaseCartogramHandler):
def get_name(self):
return "Iceland"
def get_gen_file(self):
return "{}/isl_processedmap.json".format(settings.CARTOGRAM_DATA_DIR)
def validate_values(self, val... | 32.625 | 438 | 0.664368 | 164 | 1,305 | 5.164634 | 0.414634 | 0.035419 | 0.044864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024062 | 0.203831 | 1,305 | 39 | 439 | 33.461538 | 0.791145 | 0 | 0 | 0.142857 | 0 | 0 | 0.353257 | 0.018391 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.107143 | 0.178571 | 0.642857 | 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 |
1be671f1072c8014de0eecf19ac5b5b6fbf9cfc0 | 9,327 | py | Python | test/test_issue_ggo.py | project-origin/datahub_processor | 9abdf64d22f7487d0eaa34d92ebc3f09089d4105 | [
"MIT"
] | null | null | null | test/test_issue_ggo.py | project-origin/datahub_processor | 9abdf64d22f7487d0eaa34d92ebc3f09089d4105 | [
"MIT"
] | null | null | null | test/test_issue_ggo.py | project-origin/datahub_processor | 9abdf64d22f7487d0eaa34d92ebc3f09089d4105 | [
"MIT"
] | null | null | null | import unittest
import pytest
import json
from sawtooth_sdk.processor.exceptions import InvalidTransaction, InternalError
from src.datahub_processor.issue_ggo_transaction_handler import IssueGGOTransactionHandler
from .mocks import MockContext, FakeTransaction, FakeTransactionHeader
class TestIssueGGO(unittest.Te... | 32.726316 | 182 | 0.55334 | 749 | 9,327 | 6.739653 | 0.17223 | 0.019017 | 0.019017 | 0.012678 | 0.737916 | 0.715927 | 0.707013 | 0.680269 | 0.671157 | 0.671157 | 0 | 0.147533 | 0.335049 | 9,327 | 285 | 183 | 32.726316 | 0.666398 | 0 | 0 | 0.693694 | 0 | 0 | 0.223628 | 0.126072 | 0 | 0 | 0 | 0 | 0.117117 | 1 | 0.036036 | false | 0 | 0.027027 | 0.004505 | 0.072072 | 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 |
1be8f15c36a4bcf10ed5fe79d6045507d5934dc6 | 200 | py | Python | buckets/router.py | atalaydev/cardify | 594a7421580dd5cdc47d5da0d68c7298189a0422 | [
"MIT"
] | null | null | null | buckets/router.py | atalaydev/cardify | 594a7421580dd5cdc47d5da0d68c7298189a0422 | [
"MIT"
] | null | null | null | buckets/router.py | atalaydev/cardify | 594a7421580dd5cdc47d5da0d68c7298189a0422 | [
"MIT"
] | null | null | null | from buckets.viewsets import BucketViewSet
from rest_framework.routers import DefaultRouter
router = DefaultRouter(trailing_slash=False)
router.register(r'buckets', BucketViewSet, basename='bucket')
| 33.333333 | 61 | 0.845 | 23 | 200 | 7.26087 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075 | 200 | 5 | 62 | 40 | 0.902703 | 0 | 0 | 0 | 0 | 0 | 0.065 | 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 |
400bce2933c8ba9d8d07eefb1466fd529ae9250f | 417 | py | Python | test/test_graphics_capture_interop.py | pywinrt/pywinrt | b86e80fc497cb405c79b85d542a889057c3aa084 | [
"MIT"
] | 3 | 2022-02-12T19:40:06.000Z | 2022-03-29T20:39:26.000Z | test/test_graphics_capture_interop.py | pywinrt/pywinrt | b86e80fc497cb405c79b85d542a889057c3aa084 | [
"MIT"
] | 8 | 2022-01-27T19:11:26.000Z | 2022-03-24T01:25:12.000Z | test/test_graphics_capture_interop.py | pywinrt/pywinrt | b86e80fc497cb405c79b85d542a889057c3aa084 | [
"MIT"
] | null | null | null | import os
import unittest
from winrt.windows.graphics.capture.interop import create_for_monitor
ON_CI = os.environ.get("CI")
class TestGraphicsCaptureInterop(unittest.TestCase):
@unittest.skipIf(ON_CI, "CI does not have a monitor")
def test_create_for_monitor(self):
"""test create_for_monitor() meth... | 27.8 | 69 | 0.743405 | 56 | 417 | 5.321429 | 0.607143 | 0.120805 | 0.214765 | 0.134228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002849 | 0.158273 | 417 | 14 | 70 | 29.785714 | 0.846154 | 0.076739 | 0 | 0 | 0 | 0 | 0.073879 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4050076447bafc7dc879cea06f8e886472a39bf4 | 411 | py | Python | sketchgraphs_models/graph/__init__.py | applied-exploration/contraint-based-parametric-modelling | ec6a4a36528a0e06e3fe8b43623ad5339ce442eb | [
"MIT"
] | 204 | 2020-07-17T15:00:31.000Z | 2022-03-23T19:24:37.000Z | sketchgraphs_models/graph/__init__.py | applied-exploration/contraint-based-parametric-modelling | ec6a4a36528a0e06e3fe8b43623ad5339ce442eb | [
"MIT"
] | 17 | 2020-08-20T18:04:37.000Z | 2021-09-01T09:07:20.000Z | sketchgraphs_models/graph/__init__.py | applied-exploration/contraint-based-parametric-modelling | ec6a4a36528a0e06e3fe8b43623ad5339ce442eb | [
"MIT"
] | 34 | 2020-07-18T17:38:31.000Z | 2022-03-13T02:56:58.000Z | """ This module contains the main implementation for the graph models.
The graph models represent a family of models which recursively build
the sketch by viewing the sketch as a graph of entities and constraints.
As described in the paper, the baseline generative model does not consider
entity (primitive) coordinates... | 41.1 | 74 | 0.810219 | 62 | 411 | 5.370968 | 0.677419 | 0.048048 | 0.084084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160584 | 411 | 9 | 75 | 45.666667 | 0.965217 | 0.975669 | 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 |
405723a42f150b6418ed5401158da50351755952 | 323 | py | Python | tests/test_padding.py | fperrin/pyi-dunno | fa08fc382b8e5eacec5141e5900f0079f4140289 | [
"MIT"
] | null | null | null | tests/test_padding.py | fperrin/pyi-dunno | fa08fc382b8e5eacec5141e5900f0079f4140289 | [
"MIT"
] | null | null | null | tests/test_padding.py | fperrin/pyi-dunno | fa08fc382b8e5eacec5141e5900f0079f4140289 | [
"MIT"
] | null | null | null | import i_dunno
import ipaddress
def test_with_padding():
"""Decode a form that has extra padding"""
form = b'S\xef\x99\x94\x1a1\xc7\xa4"w\xe5\xa7\x86\xd0\xb4\xd9\x92\xe9\x85\x8d\xd2\x87\xc2\xae'
v6addr = "a7ec:a869:89e4:45dd:671a:1a65:2914:d90e"
assert i_dunno.decode(form) == ipaddress.ip_address(v6add... | 35.888889 | 98 | 0.718266 | 58 | 323 | 3.913793 | 0.844828 | 0.052863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169611 | 0.123839 | 323 | 8 | 99 | 40.375 | 0.632509 | 0.111455 | 0 | 0 | 0 | 0.166667 | 0.437722 | 0.437722 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
406075d39321188d99c5db36a00afc7c23353f88 | 3,779 | py | Python | centralreport/tests/utils/text.py | haiyangd/CentralReport | 421447f31d07321f65198c5b5746baa16c9d9725 | [
"Apache-2.0"
] | 8 | 2015-08-17T20:25:12.000Z | 2019-03-04T04:42:31.000Z | centralreport/tests/utils/text.py | haiyangd/CentralReport | 421447f31d07321f65198c5b5746baa16c9d9725 | [
"Apache-2.0"
] | 3 | 2015-03-29T01:33:45.000Z | 2016-01-15T22:44:08.000Z | centralreport/tests/utils/text.py | haiyangd/CentralReport | 421447f31d07321f65198c5b5746baa16c9d9725 | [
"Apache-2.0"
] | 3 | 2016-08-06T19:49:42.000Z | 2018-03-28T09:42:58.000Z | # -*- coding: utf-8 -*-
"""
CentralReport - Tests for cr.utils.text module
Please see: http://docs.python.org/2/library/unittest.html
https://github.com/CentralReport
"""
import unittest
from cr.utils import text as cr_text
class SpecialCharactersTest(unittest.TestCase):
"""
Tests for t... | 31.491667 | 120 | 0.71765 | 506 | 3,779 | 5.06917 | 0.245059 | 0.053801 | 0.148148 | 0.163743 | 0.546199 | 0.394542 | 0.345809 | 0.275634 | 0.25848 | 0.187524 | 0 | 0.04928 | 0.173062 | 3,779 | 119 | 121 | 31.756303 | 0.77152 | 0.120402 | 0 | 0 | 0 | 0 | 0.069592 | 0 | 0 | 0 | 0 | 0 | 0.372881 | 1 | 0.389831 | false | 0 | 0.033898 | 0 | 0.525424 | 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 |
40880d010753e35253da5f55e0d290c476550a8b | 191 | py | Python | drive/users/urls.py | amirasaad/drive | 6c8692884d16544b2713071cb652458af1af95c7 | [
"MIT"
] | null | null | null | drive/users/urls.py | amirasaad/drive | 6c8692884d16544b2713071cb652458af1af95c7 | [
"MIT"
] | null | null | null | drive/users/urls.py | amirasaad/drive | 6c8692884d16544b2713071cb652458af1af95c7 | [
"MIT"
] | null | null | null | from rest_framework.routers import DefaultRouter
from drive.users import viewsets
app_name = "users"
users_router = DefaultRouter()
users_router.register(r"users", viewsets.UsersViewSet)
| 19.1 | 54 | 0.816754 | 24 | 191 | 6.333333 | 0.625 | 0.144737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104712 | 191 | 9 | 55 | 21.222222 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0.052356 | 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 |
4093a64b664ef0db0fe60600e87bbc7c39d6bfc4 | 3,778 | py | Python | sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/models/_application_insights_management_client_enums.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-09T08:59:13.000Z | 2022-03-09T08:59:13.000Z | sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/models/_application_insights_management_client_enums.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/models/_application_insights_management_client_enums.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-04T06:21:56.000Z | 2022-03-04T06:21:56.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 31.483333 | 99 | 0.692959 | 401 | 3,778 | 6.471322 | 0.38404 | 0.075145 | 0.19422 | 0.210405 | 0.356069 | 0.206936 | 0.206936 | 0.184971 | 0.144894 | 0.096339 | 0 | 0.000324 | 0.183695 | 3,778 | 119 | 100 | 31.747899 | 0.841115 | 0.374537 | 0 | 0.280702 | 0 | 0 | 0.14519 | 0.018094 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 1 | 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 |
40b4ba223ca2b2cdf389f26b34548e503eb6f4c4 | 145 | py | Python | Lib/site-packages/tests/urls/multiple.py | valdyrtorres/shortener | 62f02777d3c279629dc0823ca97a9c7a7ea987f0 | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/tests/urls/multiple.py | valdyrtorres/shortener | 62f02777d3c279629dc0823ca97a9c7a7ea987f0 | [
"bzip2-1.0.6"
] | 9 | 2020-06-06T01:35:57.000Z | 2022-02-10T12:12:35.000Z | cvproject/Lib/site-packages/tests/urls/multiple.py | MdReyajuddin/Big-Project-Codes | 79ab22f2f51e29e2ff17f680306877559c719a56 | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import url
from django.shortcuts import render
urlpatterns = [
url(r'^multiple/$', render, name='multiple-direct'),
]
| 20.714286 | 56 | 0.724138 | 19 | 145 | 5.526316 | 0.684211 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 145 | 6 | 57 | 24.166667 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0.17931 | 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 |
40bcfaefccbf6696e6149775b6a0fd7a53e89373 | 570 | py | Python | python-spider/first_scrapy/first_scrapy/items.py | meteor1993/python-learning | 4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40 | [
"MIT"
] | 83 | 2019-10-15T06:54:06.000Z | 2022-03-28T14:08:21.000Z | python-spider/first_scrapy/first_scrapy/items.py | wenxuefeng3930/python-learning | 4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40 | [
"MIT"
] | 1 | 2020-04-16T08:13:19.000Z | 2020-07-14T01:52:46.000Z | python-spider/first_scrapy/first_scrapy/items.py | wenxuefeng3930/python-learning | 4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40 | [
"MIT"
] | 74 | 2019-11-02T08:10:36.000Z | 2022-02-19T12:23:36.000Z | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class QuoteItem(scrapy.Item):
text = scrapy.Field()
author = scrapy.Field()
tags = scrapy.Field()
class ImageItem(scrapy.Item):
colle... | 21.111111 | 53 | 0.659649 | 73 | 570 | 5.150685 | 0.589041 | 0.234043 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002217 | 0.208772 | 570 | 26 | 54 | 21.923077 | 0.831486 | 0.361404 | 0 | 0 | 0 | 0 | 0.014045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.076923 | 0 | 1 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
40c97e2a0725b73e5d65317d63fb29a158b427b1 | 571 | py | Python | python/kadpy/pnt.py | orihikarna/Herm | 7078ca5d0ab26fec01deb4df8207ae03f8257036 | [
"CC0-1.0"
] | 5 | 2021-09-27T13:23:49.000Z | 2022-03-29T11:50:47.000Z | python/kadpy/pnt.py | orihikarna/Hermit | 7078ca5d0ab26fec01deb4df8207ae03f8257036 | [
"CC0-1.0"
] | null | null | null | python/kadpy/pnt.py | orihikarna/Hermit | 7078ca5d0ab26fec01deb4df8207ae03f8257036 | [
"CC0-1.0"
] | null | null | null | import pcbnew
# unit conversion utility
def mm2unit( a ):
return pcbnew.wxPointMM( a[0], a[1] )
def mils2unit( a ):
return pcbnew.wxPointMils( a[0], a[1] )
def unit2mm( pnt ):
return (pcbnew.ToMM( pnt[0] ), pcbnew.ToMM( pnt[1] ) )
def unit2mils( pnt ):
return (pcbnew.ToMils( pnt[0] ), pcbnew.ToMils... | 20.392857 | 62 | 0.604203 | 85 | 571 | 3.941176 | 0.305882 | 0.143284 | 0.095522 | 0.023881 | 0.214925 | 0.173134 | 0.173134 | 0.173134 | 0.173134 | 0.173134 | 0 | 0.038095 | 0.264448 | 571 | 27 | 63 | 21.148148 | 0.759524 | 0.04028 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0.052632 | 0.210526 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
40d85ecad79592588b009e4d86c4c668e8c0ad41 | 194 | py | Python | Python/Desafios/tarefas/exe 14 temperatura.py | Kaioguilherme1/PythonCodigos | 76d078c09f825d5fc81d21ba9cc14793a546847c | [
"MIT"
] | 2 | 2020-05-21T16:02:43.000Z | 2020-05-23T17:51:55.000Z | Python/Desafios/tarefas/exe 14 temperatura.py | Kaioguilherme1/EstudoDeLinguagens | f2acc5fc74178bd33d503de19f817c69959c1690 | [
"MIT"
] | null | null | null | Python/Desafios/tarefas/exe 14 temperatura.py | Kaioguilherme1/EstudoDeLinguagens | f2acc5fc74178bd33d503de19f817c69959c1690 | [
"MIT"
] | null | null | null | C = float(input('digite a temperatura em C° >'))
F = float(((C/5)*9)+32)
K = float(C + 273)
print('a temperatura de {}'.format(C,))
print('tambem e {} F°'.format(F,))
print('e {} K '.format(K,)) | 32.333333 | 48 | 0.582474 | 37 | 194 | 3.108108 | 0.513514 | 0.208696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041916 | 0.139175 | 194 | 6 | 49 | 32.333333 | 0.634731 | 0 | 0 | 0 | 0 | 0 | 0.348718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 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 | 1 | 0 | 3 |
40da24f1be0b4dc2ff63c54d0bf9e69c49cacc5d | 509 | py | Python | ee/clickhouse/test/test_calculate_event_property_usage.py | msnitish/posthog | cb86113f568e72eedcb64b5fd00c313d21e72f90 | [
"MIT"
] | null | null | null | ee/clickhouse/test/test_calculate_event_property_usage.py | msnitish/posthog | cb86113f568e72eedcb64b5fd00c313d21e72f90 | [
"MIT"
] | null | null | null | ee/clickhouse/test/test_calculate_event_property_usage.py | msnitish/posthog | cb86113f568e72eedcb64b5fd00c313d21e72f90 | [
"MIT"
] | null | null | null | from uuid import uuid4
from ee.clickhouse.models.event import create_event
from ee.clickhouse.util import ClickhouseTestMixin
from posthog.tasks.test.test_calculate_event_property_usage import calculate_event_property_usage_test_factory
def _create_event(**kwargs) -> None:
pk = uuid4()
kwargs.update({"event_... | 28.277778 | 110 | 0.803536 | 63 | 509 | 6.15873 | 0.444444 | 0.113402 | 0.170103 | 0.208763 | 0.195876 | 0.195876 | 0 | 0 | 0 | 0 | 0 | 0.004464 | 0.119843 | 509 | 17 | 111 | 29.941176 | 0.861607 | 0.023576 | 0 | 0 | 0 | 0 | 0.020202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.333333 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
40f0a6153efb650d7cf5b85f05c5bdb03e44e0f4 | 33,152 | py | Python | constructure/scaffolds.py | lilyminium/constructure | db3a9e0afb2e98e451959fb62009a733a2cac546 | [
"MIT"
] | null | null | null | constructure/scaffolds.py | lilyminium/constructure | db3a9e0afb2e98e451959fb62009a733a2cac546 | [
"MIT"
] | null | null | null | constructure/scaffolds.py | lilyminium/constructure | db3a9e0afb2e98e451959fb62009a733a2cac546 | [
"MIT"
] | null | null | null | from typing import TYPE_CHECKING, Dict, List, Literal
from pydantic import BaseModel
RGroup = Literal["hydrogen", "acyl", "alkyl", "aryl", "halogen", "hetero"]
if TYPE_CHECKING:
RGroup = str
class Scaffold(BaseModel):
"""A model describing a particular molecular scaffold.
Examples:
Defines a s... | 28.047377 | 86 | 0.397593 | 3,155 | 33,152 | 4.128685 | 0.073851 | 0.219714 | 0.268847 | 0.105635 | 0.770689 | 0.718102 | 0.643943 | 0.585137 | 0.518118 | 0.490941 | 0 | 0.034606 | 0.357595 | 33,152 | 1,181 | 87 | 28.071126 | 0.57703 | 0.038278 | 0 | 0.595109 | 0 | 0.001812 | 0.328938 | 0.062685 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001812 | 0 | 0.004529 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dc0706b6f34032da410d59c60b3204a456813d26 | 141 | py | Python | data/groups.py | poliakiwi/python_training | fdd28a2aa5bb2ce3314d639acb15d25c770c0406 | [
"Apache-2.0"
] | null | null | null | data/groups.py | poliakiwi/python_training | fdd28a2aa5bb2ce3314d639acb15d25c770c0406 | [
"Apache-2.0"
] | null | null | null | data/groups.py | poliakiwi/python_training | fdd28a2aa5bb2ce3314d639acb15d25c770c0406 | [
"Apache-2.0"
] | null | null | null | from model.group import Group
testdata = [
Group(name="n1", header="h1", footer="f1"),
Group(name="n2", header="h2", footer="f2")
] | 20.142857 | 47 | 0.617021 | 20 | 141 | 4.35 | 0.7 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050847 | 0.163121 | 141 | 7 | 48 | 20.142857 | 0.686441 | 0 | 0 | 0 | 0 | 0 | 0.084507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
dc18b7e4f9b70a049fc2d7053f0a5be532b4c2f4 | 721 | py | Python | commanderbot/ext/automod/conditions/author_is_not_bot.py | CommanderBot-Dev/commanderbot-py | 835841f733e466c5a0e6724d4020747c55856fe3 | [
"MIT"
] | 1 | 2021-09-12T11:04:01.000Z | 2021-09-12T11:04:01.000Z | commanderbot/ext/automod/conditions/author_is_not_bot.py | CommanderBot-Dev/commanderbot-py | 835841f733e466c5a0e6724d4020747c55856fe3 | [
"MIT"
] | 23 | 2021-08-30T04:07:29.000Z | 2021-11-08T17:44:41.000Z | commanderbot/ext/automod/conditions/author_is_not_bot.py | CommanderBot-Dev/commanderbot-py | 835841f733e466c5a0e6724d4020747c55856fe3 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from typing import Optional, TypeVar
from discord import Member
from commanderbot.ext.automod.automod_condition import AutomodCondition
from commanderbot.ext.automod.automod_event import AutomodEvent
from commanderbot.ext.automod.conditions.abc.target_is_not_bot_base import (
Tar... | 25.75 | 76 | 0.782247 | 86 | 721 | 6.453488 | 0.488372 | 0.115315 | 0.102703 | 0.140541 | 0.118919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144244 | 721 | 27 | 77 | 26.703704 | 0.899514 | 0.0638 | 0 | 0 | 0 | 0 | 0.003035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.4375 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
9065c606c5cc819191e1249769d72ad4acbdeb07 | 302 | py | Python | backend/usd_backend/usd_rest_api/admin.py | Reevo55/usd-project | 25c967620a3d0b7b2a8da72ba9ec5b9e02a5ee69 | [
"MIT"
] | null | null | null | backend/usd_backend/usd_rest_api/admin.py | Reevo55/usd-project | 25c967620a3d0b7b2a8da72ba9ec5b9e02a5ee69 | [
"MIT"
] | null | null | null | backend/usd_backend/usd_rest_api/admin.py | Reevo55/usd-project | 25c967620a3d0b7b2a8da72ba9ec5b9e02a5ee69 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Event, Course, Lesson, Account, Comment, Teacher
# Register your models here.
admin.site.register(Event)
admin.site.register(Course)
admin.site.register(Lesson)
admin.site.register(Account)
admin.site.register(Comment)
admin.site.register(Teacher)
| 27.454545 | 68 | 0.807947 | 42 | 302 | 5.809524 | 0.380952 | 0.221311 | 0.418033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082781 | 302 | 10 | 69 | 30.2 | 0.880866 | 0.086093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
90825bd21cef07f61694b9ac724405dad570aed9 | 73 | py | Python | microbeannotator/__init__.py | silvtal/MicrobeAnnotator | ff5ee0c09fe0223879c9be7dac90dbcbcae9a106 | [
"Artistic-2.0"
] | 56 | 2020-07-22T03:26:01.000Z | 2022-03-30T08:55:39.000Z | microbeannotator/__init__.py | silvtal/MicrobeAnnotator | ff5ee0c09fe0223879c9be7dac90dbcbcae9a106 | [
"Artistic-2.0"
] | 43 | 2020-06-05T08:37:35.000Z | 2022-03-30T09:19:31.000Z | microbeannotator/__init__.py | silvtal/MicrobeAnnotator | ff5ee0c09fe0223879c9be7dac90dbcbcae9a106 | [
"Artistic-2.0"
] | 14 | 2020-05-11T03:16:05.000Z | 2022-03-23T08:13:14.000Z | version_info = (2, 0, 5)
version = '.'.join(str(c) for c in version_info) | 36.5 | 48 | 0.657534 | 14 | 73 | 3.285714 | 0.714286 | 0.478261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048387 | 0.150685 | 73 | 2 | 48 | 36.5 | 0.693548 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
908cf7fe684de83c7ba40c08dd55a9cf65363373 | 2,582 | py | Python | dsl_parser/tests/utils.py | mistio/cloudify-common | 3b706ba31a3371052fbdd12486d4a0befbcf491b | [
"Apache-2.0"
] | 6 | 2018-10-13T20:36:40.000Z | 2021-07-04T17:19:13.000Z | dsl_parser/tests/utils.py | mistio/cloudify-common | 3b706ba31a3371052fbdd12486d4a0befbcf491b | [
"Apache-2.0"
] | 97 | 2018-05-25T12:10:19.000Z | 2022-03-30T10:16:40.000Z | dsl_parser/tests/utils.py | mistio/cloudify-common | 3b706ba31a3371052fbdd12486d4a0befbcf491b | [
"Apache-2.0"
] | 15 | 2018-10-13T20:36:42.000Z | 2021-09-06T15:19:11.000Z | ########
# Copyright (c) 2018 Cloudify Platform Ltd. All rights reserved
#
# 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 requi... | 43.033333 | 79 | 0.681255 | 299 | 2,582 | 5.64214 | 0.381271 | 0.042679 | 0.060462 | 0.037344 | 0.042679 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005189 | 0.253679 | 2,582 | 59 | 80 | 43.762712 | 0.870265 | 0.426414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.703704 | 0.037037 | 1.037037 | 0.407407 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 3 |
909b4a8f0747fd58d4c3c9fb19916a45f4ca429a | 80 | py | Python | python/842.split-array-into-fibonacci-sequence.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/842.split-array-into-fibonacci-sequence.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/842.split-array-into-fibonacci-sequence.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | class Solution:
def splitIntoFibonacci(self, S: str) -> List[int]:
| 20 | 54 | 0.6125 | 9 | 80 | 5.444444 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2625 | 80 | 3 | 55 | 26.666667 | 0.830508 | 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 |
90a9dd269198074a743b674ae0b4d91078223fd0 | 494 | py | Python | system_generation.py | BTCallahan/super-ds9 | 0649cea1b0b2c6fdc64095b228c537c54e42f84e | [
"MIT"
] | null | null | null | system_generation.py | BTCallahan/super-ds9 | 0649cea1b0b2c6fdc64095b228c537c54e42f84e | [
"MIT"
] | null | null | null | system_generation.py | BTCallahan/super-ds9 | 0649cea1b0b2c6fdc64095b228c537c54e42f84e | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import TYPE_CHECKING, Iterable
from collections import defaultdict
from enum import Enum, auto
from random import choice, random, uniform, randrange
import colors
from coords import Coords
from data_globals import PlanetHabitation, life_supporting_planets
from game_data im... | 19.76 | 66 | 0.840081 | 66 | 494 | 6.106061 | 0.530303 | 0.059553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145749 | 494 | 24 | 67 | 20.583333 | 0.954976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.928571 | 0 | 0.928571 | 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 |
90bd22c1328b8552276448f0415ad5a8df5c6eaf | 541 | py | Python | venv/cell.py | LC5273/A-Pathfinder | eae11796d7288c0004cea639b6110237a55266c7 | [
"MIT"
] | 1 | 2021-07-16T21:32:06.000Z | 2021-07-16T21:32:06.000Z | venv/cell.py | LC5273/A-Pathfinder | eae11796d7288c0004cea639b6110237a55266c7 | [
"MIT"
] | null | null | null | venv/cell.py | LC5273/A-Pathfinder | eae11796d7288c0004cea639b6110237a55266c7 | [
"MIT"
] | null | null | null | class cell:
def __init__(self, position:(), parent:()):
# f = g + h
self.position = position
self.parent = parent
self.f = 0 # Total distance
self.g = 0 # Distance to start node
self.h = 0 # Distance to end node
# Compare nodes
def __eq__(self, other):
... | 25.761905 | 58 | 0.561922 | 70 | 541 | 4.114286 | 0.4 | 0.166667 | 0.076389 | 0.131944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.316081 | 541 | 20 | 59 | 27.05 | 0.764865 | 0.192237 | 0 | 0 | 0 | 0 | 0.020979 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0 | 0.230769 | 0.615385 | 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 |
90faaaa39e578bb9b4137a77651d38045644cc1e | 214 | py | Python | samples/show-fees.py | Queeq/btce-api | b9f1045e604e46d89574a960915c51d8076a5c6d | [
"MIT"
] | 1 | 2018-04-16T09:04:37.000Z | 2018-04-16T09:04:37.000Z | samples/show-fees.py | Queeq/btce-api | b9f1045e604e46d89574a960915c51d8076a5c6d | [
"MIT"
] | null | null | null | samples/show-fees.py | Queeq/btce-api | b9f1045e604e46d89574a960915c51d8076a5c6d | [
"MIT"
] | null | null | null | #!/usr/bin/python
import btceapi
print "Trading fees:"
connection = btceapi.BTCEConnection()
for pair in btceapi.all_pairs:
fee = btceapi.getTradeFee(pair, connection)
print " %s %.3f %%" % (pair, fee)
| 23.777778 | 47 | 0.686916 | 27 | 214 | 5.407407 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00565 | 0.172897 | 214 | 8 | 48 | 26.75 | 0.819209 | 0.074766 | 0 | 0 | 0 | 0 | 0.137056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | 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 |
290f998c3bbd3c1fe3b37b1ab349e1e3820a2e55 | 1,155 | py | Python | tests/test_news_article.py | gkarumba/NEWS-API | 39b0294af25ece1c8b390587bff8cf0c736bfe5d | [
"MIT"
] | null | null | null | tests/test_news_article.py | gkarumba/NEWS-API | 39b0294af25ece1c8b390587bff8cf0c736bfe5d | [
"MIT"
] | null | null | null | tests/test_news_article.py | gkarumba/NEWS-API | 39b0294af25ece1c8b390587bff8cf0c736bfe5d | [
"MIT"
] | null | null | null | import unittest
from app.models import NewsArticles
class TestNewsArticle(unittest.TestCase):
'''
test the behaviour of the NewsArticles class
'''
def setUp(self):
'''
test that will run before every test
'''
self.new_NewsArticle = NewsArticles('Nation','http://corazon.c... | 41.25 | 174 | 0.682251 | 135 | 1,155 | 5.755556 | 0.444444 | 0.081081 | 0.208494 | 0.198198 | 0.395109 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030075 | 0.193939 | 1,155 | 27 | 175 | 42.777778 | 0.804511 | 0.105628 | 0 | 0 | 0 | 0 | 0.173018 | 0 | 0 | 0 | 0 | 0 | 0.533333 | 1 | 0.2 | false | 0 | 0.133333 | 0 | 0.4 | 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 |
292861effa12acc9a99f2894939aead10602b3f8 | 188 | py | Python | tests/resource/constants.py | Patrizio1301/pyspark-config | c50cfb8130e54620bd90e77b77b2a2c228e59f1d | [
"BSD-3-Clause"
] | null | null | null | tests/resource/constants.py | Patrizio1301/pyspark-config | c50cfb8130e54620bd90e77b77b2a2c228e59f1d | [
"BSD-3-Clause"
] | null | null | null | tests/resource/constants.py | Patrizio1301/pyspark-config | c50cfb8130e54620bd90e77b77b2a2c228e59f1d | [
"BSD-3-Clause"
] | 1 | 2021-10-05T09:12:56.000Z | 2021-10-05T09:12:56.000Z |
class SOURCES:
CSV_SOURCE={'type': 'Csv',
'label': 'csv_input_example',
'csv_path': 'example.csv',
'delimiter': ","
} | 20.888889 | 45 | 0.414894 | 15 | 188 | 4.933333 | 0.666667 | 0.27027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.430851 | 188 | 9 | 46 | 20.888889 | 0.691589 | 0 | 0 | 0 | 0 | 0 | 0.31016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.333333 | 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 |
292eab82ae9fb5b74fcf496ca9f604374637f071 | 240 | py | Python | dictionary.py | yyechan/noun_extractor | db4a95ed7d8e5efa512b0e6a700f6e89ec5c1a33 | [
"MIT"
] | null | null | null | dictionary.py | yyechan/noun_extractor | db4a95ed7d8e5efa512b0e6a700f6e89ec5c1a33 | [
"MIT"
] | null | null | null | dictionary.py | yyechan/noun_extractor | db4a95ed7d8e5efa512b0e6a700f6e89ec5c1a33 | [
"MIT"
] | null | null | null | import utils
class Dictionary:
data = None
def load_dict(self, file_name):
with open('data/dict/' + file_name, 'rb') as f:
self.data = utils.pickle.load(f)
def get_data(self):
return self.data | 20 | 55 | 0.591667 | 34 | 240 | 4.058824 | 0.588235 | 0.115942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.295833 | 240 | 12 | 56 | 20 | 0.816568 | 0 | 0 | 0 | 0 | 0 | 0.049793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.75 | 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 |
294877a4b0396a2cae604ba90fbb32665432ea20 | 481 | py | Python | tests/file/orphan_function/get_relative_path.py | dem4ply/chibi | 1f13db8200e8e60bbb839436d4c995d6b6220957 | [
"WTFPL"
] | null | null | null | tests/file/orphan_function/get_relative_path.py | dem4ply/chibi | 1f13db8200e8e60bbb839436d4c995d6b6220957 | [
"WTFPL"
] | null | null | null | tests/file/orphan_function/get_relative_path.py | dem4ply/chibi | 1f13db8200e8e60bbb839436d4c995d6b6220957 | [
"WTFPL"
] | null | null | null | from unittest import TestCase
from chibi.file.snippets import get_relative_path
class Test_get_relative_path( TestCase ):
def test_should_return_the_relative_paths( self ):
result = get_relative_path( '/usr/var/log', '/usr/var/security' )
self.assertEqual( [ 'log', 'security' ], result )
de... | 34.357143 | 73 | 0.698545 | 63 | 481 | 5.031746 | 0.396825 | 0.189274 | 0.189274 | 0.119874 | 0.403785 | 0.403785 | 0.214511 | 0.214511 | 0 | 0 | 0 | 0 | 0.185031 | 481 | 13 | 74 | 37 | 0.808673 | 0 | 0 | 0 | 0 | 0 | 0.130977 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 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 | 0 | 1 | 0 | 0 | 3 |
294d58cd2eae2819366e4f9cb2e49195e4fd518a | 9 | py | Python | src/it/simple-it/src/main/notebooks/bde.tools.integration-test/databricks-maven-plugin-stream-it/level1/test2.py | MikhailKavaliou/databricks-maven-plugin | c6a7e53c05effd90239c7e772b4f704a93f588fc | [
"Apache-2.0"
] | 6 | 2019-01-15T13:55:25.000Z | 2022-01-02T13:32:30.000Z | src/it/simple-it/src/main/notebooks/bde.tools.integration-test/databricks-maven-plugin-stream-it/level1/test2.py | MikhailKavaliou/databricks-maven-plugin | c6a7e53c05effd90239c7e772b4f704a93f588fc | [
"Apache-2.0"
] | 48 | 2018-09-20T21:36:35.000Z | 2022-03-23T21:02:55.000Z | src/it/simple-it/src/main/notebooks/bde.tools.integration-test/databricks-maven-plugin-stream-it/level1/test2.py | MikhailKavaliou/databricks-maven-plugin | c6a7e53c05effd90239c7e772b4f704a93f588fc | [
"Apache-2.0"
] | 11 | 2018-12-13T21:10:05.000Z | 2022-01-27T22:04:49.000Z | test = 1
| 4.5 | 8 | 0.555556 | 2 | 9 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0.333333 | 9 | 1 | 9 | 9 | 0.666667 | 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 |
2962ec26aa7fc24141c0269372468f7b6d31ce1b | 161 | py | Python | securenative/http/http_response.py | securenative/securenative-python | 0313808d6c4f282dd4ad21c7d3cab328ba414782 | [
"MIT"
] | null | null | null | securenative/http/http_response.py | securenative/securenative-python | 0313808d6c4f282dd4ad21c7d3cab328ba414782 | [
"MIT"
] | 10 | 2019-07-16T07:23:46.000Z | 2020-11-22T15:01:07.000Z | securenative/http/http_response.py | securenative/securenative-python | 0313808d6c4f282dd4ad21c7d3cab328ba414782 | [
"MIT"
] | null | null | null | class HttpResponse(object):
def __init__(self, ok, status_code, body):
self.ok = ok
self.status_code = status_code
self.body = body
| 23 | 46 | 0.627329 | 21 | 161 | 4.47619 | 0.47619 | 0.319149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.279503 | 161 | 6 | 47 | 26.833333 | 0.810345 | 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 |
296ca0d0a7d220f10abbb1f183aec51669ce51a8 | 492 | py | Python | custom_components/ha_kia_hyundai/api_action_status.py | jaywryan/ha_kia_hyundai | 422790bb42f0a402e9f9eb03834fca73fc195b09 | [
"MIT"
] | 9 | 2021-12-18T21:30:10.000Z | 2022-03-03T21:44:49.000Z | custom_components/ha_kia_hyundai/api_action_status.py | jaywryan/ha_kia_hyundai | 422790bb42f0a402e9f9eb03834fca73fc195b09 | [
"MIT"
] | 34 | 2021-11-30T19:17:46.000Z | 2021-12-16T01:33:24.000Z | custom_components/ha_kia_hyundai/api_action_status.py | jaywryan/ha_kia_hyundai | 422790bb42f0a402e9f9eb03834fca73fc195b09 | [
"MIT"
] | 1 | 2022-01-14T08:00:44.000Z | 2022-01-14T08:00:44.000Z | import time
from .const import ACTION_LOCK_TIMEOUT_IN_SECONDS
class ApiActionStatus:
xid = None
_completed = False
def __init__(self, name: str):
self.name = name
self.start_time = time.time()
def set_xid(self, xid):
self.xid = xid
def complete(self):
self._comp... | 19.68 | 77 | 0.652439 | 63 | 492 | 4.809524 | 0.412698 | 0.079208 | 0.112211 | 0.125413 | 0.171617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26626 | 492 | 24 | 78 | 20.5 | 0.839335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.125 | 0.125 | 0.75 | 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 |
4629bcc36f0843e4cb3786c29ed275534b067f6a | 4,661 | py | Python | python_modules/dagster/dagster_tests/core_tests/definitions_tests/decorators_tests/test_op.py | NicolasPA/dagster | 948bfc7b5582230417465b5662bd9f907c0e51c9 | [
"Apache-2.0"
] | 1 | 2021-07-03T09:05:58.000Z | 2021-07-03T09:05:58.000Z | python_modules/dagster/dagster_tests/core_tests/definitions_tests/decorators_tests/test_op.py | NicolasPA/dagster | 948bfc7b5582230417465b5662bd9f907c0e51c9 | [
"Apache-2.0"
] | null | null | null | python_modules/dagster/dagster_tests/core_tests/definitions_tests/decorators_tests/test_op.py | NicolasPA/dagster | 948bfc7b5582230417465b5662bd9f907c0e51c9 | [
"Apache-2.0"
] | null | null | null | from typing import Tuple
from dagster import (
In,
MultiOut,
Nothing,
Out,
Output,
build_op_context,
execute_pipeline,
graph,
op,
)
def execute_op_in_job(an_op):
@graph
def my_graph():
an_op()
result = execute_pipeline(my_graph.to_job())
assert result.succ... | 23.189055 | 100 | 0.589573 | 717 | 4,661 | 3.595537 | 0.096234 | 0.082234 | 0.093095 | 0.103181 | 0.72149 | 0.704034 | 0.685803 | 0.638867 | 0.618697 | 0.618697 | 0 | 0.023014 | 0.235572 | 4,661 | 200 | 101 | 23.305 | 0.700533 | 0 | 0 | 0.521127 | 0 | 0 | 0.028749 | 0 | 0 | 0 | 0 | 0 | 0.295775 | 1 | 0.225352 | false | 0.014085 | 0.014085 | 0.077465 | 0.323944 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4655dfbb5f33e0cb801b2db3b9374967fd1ef998 | 77 | py | Python | testData/completion/targetName5.py | lukaszwawrzyk/intellij-pants-plugin | 35604586a0d59ac67550bb70f5fe59b72116e378 | [
"Apache-2.0"
] | 68 | 2015-01-14T16:27:50.000Z | 2021-06-18T15:52:48.000Z | testData/completion/targetName5.py | lukaszwawrzyk/intellij-pants-plugin | 35604586a0d59ac67550bb70f5fe59b72116e378 | [
"Apache-2.0"
] | 380 | 2015-01-17T01:39:31.000Z | 2021-10-15T10:36:44.000Z | testData/completion/targetName5.py | lukaszwawrzyk/intellij-pants-plugin | 35604586a0d59ac67550bb70f5fe59b72116e378 | [
"Apache-2.0"
] | 60 | 2015-02-19T10:29:58.000Z | 2021-09-02T09:33:16.000Z | jar_library(
name='bin',
dependencies=[
'foo:<caret>'
]
) | 12.833333 | 21 | 0.493506 | 7 | 77 | 5.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.324675 | 77 | 6 | 22 | 12.833333 | 0.711538 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4661822a6b6577ea9b867c14fc11490d9397e3f3 | 33,983 | py | Python | collectlinks/collectlinksFL.py | kendalled/GetScraped | feec6c9db8f9f216bbc77faf216185a4298c8fff | [
"MIT"
] | null | null | null | collectlinks/collectlinksFL.py | kendalled/GetScraped | feec6c9db8f9f216bbc77faf216185a4298c8fff | [
"MIT"
] | null | null | null | collectlinks/collectlinksFL.py | kendalled/GetScraped | feec6c9db8f9f216bbc77faf216185a4298c8fff | [
"MIT"
] | null | null | null | # Kendall Jackson MIT License
# GetScraped Private v1
#parse_listing from https://github.com/scrapehero/yellowpages-scraper
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import requests
from lxml import html
import unicodecsv as csv
#import argparse
final_list = []
state = 'FL'
categories = ['Abrasive Dealer... | 152.390135 | 16,678 | 0.731925 | 3,918 | 33,983 | 6.334099 | 0.490812 | 0.013781 | 0.002055 | 0.001934 | 0.007414 | 0.0054 | 0.002982 | 0.002982 | 0 | 0 | 0 | 0.001759 | 0.096695 | 33,983 | 222 | 16,679 | 153.076577 | 0.806691 | 0.011006 | 0 | 0.126582 | 0 | 0.050633 | 0.758505 | 0.013345 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025316 | false | 0.025316 | 0.037975 | 0 | 0.139241 | 0.101266 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
467ea9e891864d0e16dffa681d4093d4f1902b86 | 500 | py | Python | concur/integrations/__init__.py | ggrrin/python-concur | 585ea8557a28178682dde2e6e430ae51bd2e66fd | [
"MIT"
] | 40 | 2019-10-24T12:58:23.000Z | 2020-12-13T20:22:41.000Z | concur/integrations/__init__.py | ggrrin/python-concur | 585ea8557a28178682dde2e6e430ae51bd2e66fd | [
"MIT"
] | 33 | 2020-01-27T18:42:06.000Z | 2020-11-19T22:13:46.000Z | concur/integrations/__init__.py | ggrrin/python-concur | 585ea8557a28178682dde2e6e430ae51bd2e66fd | [
"MIT"
] | 4 | 2019-11-25T14:37:29.000Z | 2021-12-22T13:49:41.000Z | """ Integration with the host system: windowing, user input, etc.
Even using PyImGui's integration code, quite a bit of boilerplate is needed just to create a window,
or to display an image. This module provides functions that simplify getting stuff rendered to just
a couple of lines of code.
"""
import concur.integr... | 33.333333 | 100 | 0.798 | 76 | 500 | 5.210526 | 0.644737 | 0.090909 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146 | 500 | 14 | 101 | 35.714286 | 0.9274 | 0.58 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
46846c32b57ed183ccae653eed741f85b5600baf | 134 | py | Python | tests/test_unnamedopetope_opetopicinteger.py | altaris/opetopy | 285ba1d4c7ed94af2e0a76815e553d56498cff60 | [
"MIT"
] | 14 | 2018-09-28T14:31:07.000Z | 2021-03-10T16:40:04.000Z | tests/test_unnamedopetope_opetopicinteger.py | altaris/opetopy | 285ba1d4c7ed94af2e0a76815e553d56498cff60 | [
"MIT"
] | 6 | 2018-10-16T14:49:05.000Z | 2018-11-21T10:53:23.000Z | tests/test_unnamedopetope_opetopicinteger.py | altaris/opetopy | 285ba1d4c7ed94af2e0a76815e553d56498cff60 | [
"MIT"
] | 1 | 2021-05-06T12:37:13.000Z | 2021-05-06T12:37:13.000Z | import sys
sys.path.insert(0, "../")
from opetopy.UnnamedOpetope import OpetopicInteger
oi5 = OpetopicInteger(5)
print(oi5.eval())
| 14.888889 | 50 | 0.746269 | 17 | 134 | 5.882353 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033613 | 0.11194 | 134 | 8 | 51 | 16.75 | 0.806723 | 0 | 0 | 0 | 0 | 0 | 0.022388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 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 |
468eacb7992b1e5268358e2041ed2ab32b0aace9 | 364 | py | Python | examples/config_load.py | idax4325/veropt | 6e8c83bc15329ef55b962c16a6e934e6215e13e1 | [
"MIT"
] | 2 | 2022-01-11T14:45:49.000Z | 2022-02-14T21:27:36.000Z | examples/config_load.py | idax4325/veropt | 6e8c83bc15329ef55b962c16a6e934e6215e13e1 | [
"MIT"
] | null | null | null | examples/config_load.py | idax4325/veropt | 6e8c83bc15329ef55b962c16a6e934e6215e13e1 | [
"MIT"
] | null | null | null | from veropt import load_optimiser
from veropt.gui import veropt_gui
# optimiser = load_optimiser("Optimiser_PredefinedTestFunction_2021_04_20_14_47_41.pkl")
optimiser = load_optimiser("Optimiser_PredefinedTestFunction_2021_03_26_17_18_58.pkl")
# optimiser = load_optimiser("Optimiser_PredefinedTestFunction_2021_04_24_1... | 30.333333 | 88 | 0.865385 | 51 | 364 | 5.647059 | 0.411765 | 0.180556 | 0.229167 | 0.322917 | 0.628472 | 0.628472 | 0.628472 | 0 | 0 | 0 | 0 | 0.123894 | 0.068681 | 364 | 11 | 89 | 33.090909 | 0.725664 | 0.475275 | 0 | 0 | 0 | 0 | 0.302703 | 0.302703 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 |
46a18b7ea2316fb076e2e4f26c8ce4c7fcac4e72 | 116 | py | Python | Dataset/Leetcode/valid/136/606.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/136/606.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/136/606.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def singleNumber(self, nums: List[int]) -> int:
return 2 * sum(set(nums)) - sum(nums)
| 23.2 | 51 | 0.603448 | 16 | 116 | 4.375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.241379 | 116 | 4 | 52 | 29 | 0.784091 | 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 |
46a8bcfbaf57fdaab24d833bfa41e127ccba99b0 | 21,608 | py | Python | sdk/python/pulumi_azure_native/devtestlab/disk.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/devtestlab/disk.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/devtestlab/disk.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | 41.553846 | 356 | 0.629211 | 2,709 | 21,608 | 4.714286 | 0.06866 | 0.093023 | 0.094276 | 0.079242 | 0.808707 | 0.740428 | 0.661499 | 0.584606 | 0.5572 | 0.504894 | 0 | 0.003056 | 0.258006 | 21,608 | 519 | 357 | 41.633911 | 0.793488 | 0.217836 | 0 | 0.420561 | 1 | 0 | 0.118034 | 0.014659 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152648 | false | 0.003115 | 0.018692 | 0 | 0.271028 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 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 |
d3cfd9ad26ce4c0fbf60459ad661fa2887ed1a05 | 119 | py | Python | exercicios.py/ex010.py | Gabriel-Richard/Python-projects | bd4111ccb0a1c23f228b4e4e2d6699ea86d5352a | [
"MIT"
] | 1 | 2021-05-03T03:16:09.000Z | 2021-05-03T03:16:09.000Z | exercicios.py/ex010.py | Gabriel-Richard/Python-projects | bd4111ccb0a1c23f228b4e4e2d6699ea86d5352a | [
"MIT"
] | null | null | null | exercicios.py/ex010.py | Gabriel-Richard/Python-projects | bd4111ccb0a1c23f228b4e4e2d6699ea86d5352a | [
"MIT"
] | null | null | null | d = float(input('quantia de dinheiro na carteira: '))
print('com:',d,'Real voce terá: {:.2f} Dolares'.format(d/3.27))
| 29.75 | 63 | 0.655462 | 20 | 119 | 3.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038095 | 0.117647 | 119 | 3 | 64 | 39.666667 | 0.704762 | 0 | 0 | 0 | 0 | 0 | 0.567797 | 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 |
d3f07faadc48a12a48e7807914d684346e9d80ec | 12,009 | py | Python | src/n11_bot.py | atlas-hackathon/atlas | 02895c958cd210c767f7dea291e62e18fc7b136e | [
"MIT"
] | 3 | 2019-12-01T06:35:54.000Z | 2021-05-07T13:57:59.000Z | src/n11_bot.py | atlas-hackathon/atlas | 02895c958cd210c767f7dea291e62e18fc7b136e | [
"MIT"
] | null | null | null | src/n11_bot.py | atlas-hackathon/atlas | 02895c958cd210c767f7dea291e62e18fc7b136e | [
"MIT"
] | 1 | 2019-12-05T15:39:24.000Z | 2019-12-05T15:39:24.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import urllib.request
import html
import time
import sys
import os
import emoji
TAG_RE = re.compile(r'<[^>]+>')
# Gelen html verisi içinden tagları tamamen temizliyor
def remove_tags(text):
return TAG_RE.sub('', text)
# Müşterinin seçtiğ... | 44.150735 | 221 | 0.444916 | 1,395 | 12,009 | 3.777778 | 0.189247 | 0.063757 | 0.062619 | 0.047818 | 0.7463 | 0.726945 | 0.698672 | 0.685009 | 0.685009 | 0.683302 | 0 | 0.030708 | 0.370889 | 12,009 | 271 | 222 | 44.313653 | 0.664593 | 0.064868 | 0 | 0.714286 | 0 | 0.02521 | 0.169925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033613 | false | 0.02521 | 0.029412 | 0.004202 | 0.096639 | 0.109244 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 3 |
d3f7ee908546c693a5c40af314b70e41a5ca7423 | 168 | py | Python | effector/reverser.py | hrb23m/pydifier | 407f2be1787f5d963ab091670944d6629961198d | [
"MIT"
] | null | null | null | effector/reverser.py | hrb23m/pydifier | 407f2be1787f5d963ab091670944d6629961198d | [
"MIT"
] | null | null | null | effector/reverser.py | hrb23m/pydifier | 407f2be1787f5d963ab091670944d6629961198d | [
"MIT"
] | null | null | null | from effector import Effector
class Reverser(Effector):
def apply(self, pdf):
pages = pdf.getPages()
pages.reverse()
pdf.setPages(pages)
return pdf
| 16.8 | 29 | 0.684524 | 21 | 168 | 5.47619 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 168 | 9 | 30 | 18.666667 | 0.871212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 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 |
d3fc73976789421cc12e15be6eb2618986a30b7b | 503 | py | Python | research/importfromfbx.py | autodesk-nicolas-holst/forge-3dsmax-poc | 28d4dd060583f4683394da4858c39404849055b0 | [
"MIT"
] | null | null | null | research/importfromfbx.py | autodesk-nicolas-holst/forge-3dsmax-poc | 28d4dd060583f4683394da4858c39404849055b0 | [
"MIT"
] | 3 | 2019-01-10T12:38:17.000Z | 2019-01-10T12:38:40.000Z | research/importfromfbx.py | autodesk-nicolas-holst/forge-3dsmax-poc | 28d4dd060583f4683394da4858c39404849055b0 | [
"MIT"
] | null | null | null | # TODO code to import
# in maxscript you do:
# importfile "c:/temp/test.fbx" #noPrompt using:FBXIMP
# and to make sure we're not adding it to the current scene you would do:
# resetMaxFile #noprompt
# So now for the python equivalents:
from pymxs import runtime as rt
rt.resetMaxFile(rt.Name("noPrompt"))
rt.exportF... | 31.4375 | 121 | 0.735586 | 83 | 503 | 4.457831 | 0.638554 | 0.048649 | 0.113514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002331 | 0.147117 | 503 | 15 | 122 | 33.533333 | 0.86014 | 0.677932 | 0 | 0 | 0 | 0 | 0.258278 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
310da44061f18f15a248ba0af6c2ab297c7a6ea4 | 624 | py | Python | checkov/terraform/checks_infra/solvers/filter_solvers/within_filter_solver.py | kylelaker/checkov | 6eada26030a87f397a6bf1831827b3dc6c5dad2d | [
"Apache-2.0"
] | 5 | 2021-07-29T18:08:40.000Z | 2022-03-21T04:39:32.000Z | checkov/terraform/checks_infra/solvers/filter_solvers/within_filter_solver.py | kylelaker/checkov | 6eada26030a87f397a6bf1831827b3dc6c5dad2d | [
"Apache-2.0"
] | 16 | 2021-03-09T07:38:38.000Z | 2021-06-09T03:53:55.000Z | checkov/terraform/checks_infra/solvers/filter_solvers/within_filter_solver.py | kylelaker/checkov | 6eada26030a87f397a6bf1831827b3dc6c5dad2d | [
"Apache-2.0"
] | 2 | 2021-08-23T13:25:36.000Z | 2021-11-05T21:44:52.000Z | from checkov.common.graph.checks_infra.enums import Operators
from checkov.terraform.checks_infra.solvers.filter_solvers.base_filter_solver import BaseFilterSolver
class WithinFilterSolver(BaseFilterSolver):
operator = Operators.WITHIN
def __init__(self, resource_types, attribute, value):
super().__i... | 36.705882 | 101 | 0.735577 | 72 | 624 | 6.083333 | 0.486111 | 0.089041 | 0.100457 | 0.086758 | 0.159817 | 0.159817 | 0.159817 | 0 | 0 | 0 | 0 | 0 | 0.171474 | 624 | 16 | 102 | 39 | 0.847195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0.181818 | 0.818182 | 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 |
3129e6410fefcd7e013cd6b27dcc150f70a6b0aa | 263 | py | Python | model.py | thibaultbarbie/chainer_classifier | ccc25a4afd3fcf3f546721e13b6d587f286b0ef5 | [
"MIT"
] | null | null | null | model.py | thibaultbarbie/chainer_classifier | ccc25a4afd3fcf3f546721e13b6d587f286b0ef5 | [
"MIT"
] | null | null | null | model.py | thibaultbarbie/chainer_classifier | ccc25a4afd3fcf3f546721e13b6d587f286b0ef5 | [
"MIT"
] | null | null | null | import numpy as np
import chainer
from chainer import Chain
import chainer.functions as F
import chainer.links as L
from models.mlp import *
def import_model(model_name):
all_models={"MLP1" : MLP(50,2),"MLP2" : MLP(10,2)}
return all_models[model_name]
| 20.230769 | 54 | 0.745247 | 44 | 263 | 4.340909 | 0.522727 | 0.204188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036199 | 0.159696 | 263 | 12 | 55 | 21.916667 | 0.828054 | 0 | 0 | 0 | 0 | 0 | 0.030418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.777778 | 0 | 1 | 0 | 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 |
312d2af484f9ca289d09846000431f9cc2baec05 | 84 | py | Python | trade_remedies_caseworker/core/apps.py | uktrade/trade-remedies-caseworker | fece9fde3cb241d96cbc1aaf7188d976f8621600 | [
"MIT"
] | 1 | 2020-08-27T09:53:00.000Z | 2020-08-27T09:53:00.000Z | trade_remedies_caseworker/core/apps.py | uktrade/trade-remedies-caseworker | fece9fde3cb241d96cbc1aaf7188d976f8621600 | [
"MIT"
] | 7 | 2020-10-14T16:23:42.000Z | 2021-09-24T14:18:47.000Z | trade_remedies_caseworker/core/apps.py | uktrade/trade-remedies-caseworker | fece9fde3cb241d96cbc1aaf7188d976f8621600 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class CasesConfig(AppConfig):
name = "core"
| 14 | 33 | 0.738095 | 10 | 84 | 6.2 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 84 | 5 | 34 | 16.8 | 0.898551 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 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 |
312fda5fe9513e8203269af6c386155f0b6db26d | 236 | py | Python | api_grpc/grpc/codegen.py | rodrigolampier/deploy-ml-app-web-api-rest-grpc | cc7d0337c0befeb2f049f242552f610a007c914c | [
"MIT"
] | null | null | null | api_grpc/grpc/codegen.py | rodrigolampier/deploy-ml-app-web-api-rest-grpc | cc7d0337c0befeb2f049f242552f610a007c914c | [
"MIT"
] | null | null | null | api_grpc/grpc/codegen.py | rodrigolampier/deploy-ml-app-web-api-rest-grpc | cc7d0337c0befeb2f049f242552f610a007c914c | [
"MIT"
] | null | null | null | # Instale os pacotes:
# pip install grpcio
# pip install grpcio.tools
from grpc.tools import protoc
protoc.main(
(
'',
'-I.',
'--python_out=.',
'--grpc_python_out=.',
'./iris.proto',
)
) | 15.733333 | 30 | 0.521186 | 25 | 236 | 4.8 | 0.68 | 0.166667 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.313559 | 236 | 15 | 31 | 15.733333 | 0.740741 | 0.266949 | 0 | 0 | 0 | 0 | 0.282353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
314eab88896b84a36e3e09a0120b1642f2cb22d2 | 376 | py | Python | dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/request/__init__.py | mjames-upc/python-awips | e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c | [
"BSD-3-Clause"
] | null | null | null | dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/request/__init__.py | mjames-upc/python-awips | e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c | [
"BSD-3-Clause"
] | null | null | null | dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/request/__init__.py | mjames-upc/python-awips | e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c | [
"BSD-3-Clause"
] | null | null | null | ##
##
# File auto-generated by PythonFileGenerator
__all__ = [
'CommitGridRequest',
'GetGridRequest',
'LockRequest',
'LockTableRequest'
]
from .CommitGridRequest import CommitGridRequest
from .GetGridRequest import GetGridRequest
from .LockRequest import Lock... | 20.888889 | 48 | 0.68883 | 26 | 376 | 9.807692 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24734 | 376 | 17 | 49 | 22.117647 | 0.90106 | 0.111702 | 0 | 0 | 1 | 0 | 0.17737 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
315a6603efed31463359de99f750bd72ea2fd51a | 12,610 | py | Python | nebula2/sclient/GraphStorageClient.py | defp/nebula-python | 425f4c6fcc836e3154326708b318ccda0753672f | [
"Apache-2.0"
] | null | null | null | nebula2/sclient/GraphStorageClient.py | defp/nebula-python | 425f4c6fcc836e3154326708b318ccda0753672f | [
"Apache-2.0"
] | null | null | null | nebula2/sclient/GraphStorageClient.py | defp/nebula-python | 425f4c6fcc836e3154326708b318ccda0753672f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# --coding:utf-8--
# Copyright (c) 2020 vesoft inc. All rights reserved.
#
# This source code is licensed under Apache 2.0 License,
# attached with Common Clause Condition 1.0, found in the LICENSES directory.
"""
The client to scan vertex and edge from storage,
the return data is from thr graph... | 39.40625 | 103 | 0.539492 | 1,336 | 12,610 | 4.795659 | 0.13024 | 0.042141 | 0.058374 | 0.061807 | 0.770407 | 0.759638 | 0.705634 | 0.696582 | 0.679725 | 0.679725 | 0 | 0.003745 | 0.407058 | 12,610 | 319 | 104 | 39.529781 | 0.85315 | 0.248374 | 0 | 0.686636 | 0 | 0 | 0.010619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0553 | false | 0 | 0.023041 | 0.009217 | 0.133641 | 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 |
315b10756ee97cac0d3f25e7cf5f6b1e25aee541 | 1,680 | py | Python | rml/rml/asdl/expr.py | thautwarm/merlin | 6dc597349201779e5dcd82dfc8de93db5939e6bc | [
"MIT"
] | 2 | 2018-06-24T16:28:43.000Z | 2018-11-08T02:34:31.000Z | rml/rml/asdl/expr.py | thautwarm/merlin | 6dc597349201779e5dcd82dfc8de93db5939e6bc | [
"MIT"
] | 2 | 2018-06-25T14:31:47.000Z | 2018-07-03T04:46:15.000Z | rml/rml/asdl/expr.py | thautwarm/merlin | 6dc597349201779e5dcd82dfc8de93db5939e6bc | [
"MIT"
] | null | null | null | from .basic import *
from .pattern import Pattern
@record
class FunctionCall(ASDL, NamedTuple):
lineno: int
colno: int
s_expr: Tuple[ASDL, ...]
@record
class Accessor(ASDL, NamedTuple):
lineno: int
colno: int
value: ASDL
attributes: Tuple[Symbol, ...]
@record
class IndexItem(ASDL, Na... | 14.358974 | 42 | 0.588095 | 182 | 1,680 | 5.417582 | 0.263736 | 0.14503 | 0.263692 | 0.303245 | 0.525355 | 0.525355 | 0.305274 | 0.305274 | 0.179513 | 0.179513 | 0 | 0 | 0.3 | 1,680 | 116 | 43 | 14.482759 | 0.838435 | 0 | 0 | 0.571429 | 0 | 0 | 0.017857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.025974 | 0 | 0.818182 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3163ad668e43049db29377b36a4eb8ec71b82e48 | 2,221 | py | Python | chaospy/distributions/collection/f.py | lblonk/chaospy | 1759a4307c6134b74ce63ff44973195f1e185f94 | [
"MIT"
] | 1 | 2020-04-29T20:53:25.000Z | 2020-04-29T20:53:25.000Z | chaospy/distributions/collection/f.py | agonzs11/Polinomio-del-caos | 5a415ece07e6535488174bac69a6c0fcc2ca272d | [
"MIT"
] | null | null | null | chaospy/distributions/collection/f.py | agonzs11/Polinomio-del-caos | 5a415ece07e6535488174bac69a6c0fcc2ca272d | [
"MIT"
] | null | null | null | """(Non-central) F distribution."""
import numpy
from scipy import special
from ..baseclass import Dist
from ..operators.addition import Add
class f(Dist):
"""F distribution."""
def __init__(self, dfn, dfd, nc):
Dist.__init__(self, dfn=dfn, dfd=dfd, nc=nc)
def _pdf(self, x, dfn, dfd, nc):
... | 30.847222 | 93 | 0.533994 | 333 | 2,221 | 3.495496 | 0.282282 | 0.046392 | 0.04811 | 0.036082 | 0.188144 | 0.136598 | 0.06701 | 0 | 0 | 0 | 0 | 0.087336 | 0.278253 | 2,221 | 71 | 94 | 31.28169 | 0.638802 | 0.431337 | 0 | 0 | 0 | 0 | 0.012357 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.148148 | 0.111111 | 0.592593 | 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 |
31855f731236d324190099a5adfc857298fc5532 | 16,119 | py | Python | tests/e2e/conftest.py | danparisd/InterleavedResourcesGenerator | 150e6c223e2eb9f63ebb41c6ba4b7c5d3337e1dc | [
"MIT"
] | null | null | null | tests/e2e/conftest.py | danparisd/InterleavedResourcesGenerator | 150e6c223e2eb9f63ebb41c6ba4b7c5d3337e1dc | [
"MIT"
] | null | null | null | tests/e2e/conftest.py | danparisd/InterleavedResourcesGenerator | 150e6c223e2eb9f63ebb41c6ba4b7c5d3337e1dc | [
"MIT"
] | 1 | 2021-09-10T20:37:07.000Z | 2021-09-10T20:37:07.000Z | """This module provides fixtures for e2e tests."""
import itertools
import pathlib
import pydantic
import pytest
import random
from typing import Any, List, Tuple
from document.config import settings
from document.domain import bible_books, model
from document.utils import file_utils
# Good enough for now. May put i... | 34.814255 | 86 | 0.733668 | 2,119 | 16,119 | 5.351109 | 0.134969 | 0.065261 | 0.053973 | 0.038099 | 0.781109 | 0.74257 | 0.720522 | 0.693712 | 0.661787 | 0.652791 | 0 | 0.001545 | 0.197159 | 16,119 | 462 | 87 | 34.88961 | 0.874662 | 0.385446 | 0 | 0.555556 | 0 | 0 | 0.013559 | 0.00269 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0.019841 | 0.035714 | 0.011905 | 0.25 | 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 |
3194426e1ae80f59262f8a8910494fb4507068ca | 1,293 | py | Python | webdriver/tests/fullscreen_window/fullscreen.py | ziransun/wpt | ab8f451eb39eb198584d547f5d965ef54df2a86a | [
"BSD-3-Clause"
] | 8 | 2019-04-09T21:13:05.000Z | 2021-11-23T17:25:18.000Z | webdriver/tests/fullscreen_window/fullscreen.py | ziransun/wpt | ab8f451eb39eb198584d547f5d965ef54df2a86a | [
"BSD-3-Clause"
] | 21 | 2021-03-31T19:48:22.000Z | 2022-03-12T00:24:53.000Z | webdriver/tests/fullscreen_window/fullscreen.py | ziransun/wpt | ab8f451eb39eb198584d547f5d965ef54df2a86a | [
"BSD-3-Clause"
] | 11 | 2019-04-12T01:20:16.000Z | 2021-11-23T17:25:02.000Z | from tests.support.asserts import assert_error, assert_success
from tests.support.helpers import is_fullscreen
def fullscreen(session):
return session.transport.send(
"POST", "session/{session_id}/window/fullscreen".format(**vars(session)))
def test_no_browsing_context(session, closed_window):
respo... | 26.387755 | 81 | 0.733179 | 156 | 1,293 | 5.910256 | 0.294872 | 0.20282 | 0.135575 | 0.168113 | 0.279826 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002786 | 0.167053 | 1,293 | 48 | 82 | 26.9375 | 0.853296 | 0 | 0 | 0.181818 | 0 | 0 | 0.071152 | 0.029389 | 0 | 0 | 0 | 0 | 0.575758 | 1 | 0.151515 | false | 0 | 0.060606 | 0.030303 | 0.242424 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
31b52fb31f5c780858ac5c750d4f2d548c7b066e | 233 | py | Python | Entities_Cloud.py | ZerethjiN/SweetNightmare | 18dc60794f9c09b434df07a21974fa23e945d53b | [
"MIT"
] | null | null | null | Entities_Cloud.py | ZerethjiN/SweetNightmare | 18dc60794f9c09b434df07a21974fa23e945d53b | [
"MIT"
] | null | null | null | Entities_Cloud.py | ZerethjiN/SweetNightmare | 18dc60794f9c09b434df07a21974fa23e945d53b | [
"MIT"
] | null | null | null | import Utils_Model as Model
import Utils_Position as Position
class Cloud(Model.Drawable):
def __init__(self, texture):
super().__init__(texture)
self.origin = Position.Position()
self.speed = 16
| 25.888889 | 42 | 0.669528 | 28 | 233 | 5.214286 | 0.571429 | 0.150685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.244635 | 233 | 8 | 43 | 29.125 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 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 |
31c84b5bfc787034829c96e189424b32cb9b1c13 | 401 | py | Python | benchmark/models/utils.py | FederalLab/benchmark-lightly | ff05a99a19c0e1dcddf16996f922431e09771c4c | [
"MIT"
] | null | null | null | benchmark/models/utils.py | FederalLab/benchmark-lightly | ff05a99a19c0e1dcddf16996f922431e09771c4c | [
"MIT"
] | null | null | null | benchmark/models/utils.py | FederalLab/benchmark-lightly | ff05a99a19c0e1dcddf16996f922431e09771c4c | [
"MIT"
] | null | null | null | # @Author : FederalLab
# @Date : 2021-09-26 00:28:50
# @Last Modified by : Chen Dengsheng
# @Last Modified time: 2021-09-26 00:28:50
# Copyright (c) FederalLab. All rights reserved.
def top_one_acc(target, predict):
# Start a standard forward inference pass.
predict = predict.max(1, kee... | 40.1 | 66 | 0.663342 | 58 | 401 | 4.534483 | 0.724138 | 0.045627 | 0.060837 | 0.076046 | 0.106464 | 0.106464 | 0 | 0 | 0 | 0 | 0 | 0.094637 | 0.209476 | 401 | 9 | 67 | 44.555556 | 0.735016 | 0.591022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
31d7fba1c7bec4c0a5a33c3fef86bd8396f749ac | 540 | py | Python | tests/util/test_queue.py | nathanawmk/fidesops | 1ab840206a78e60673aebd5838ba567095512a58 | [
"Apache-2.0"
] | null | null | null | tests/util/test_queue.py | nathanawmk/fidesops | 1ab840206a78e60673aebd5838ba567095512a58 | [
"Apache-2.0"
] | null | null | null | tests/util/test_queue.py | nathanawmk/fidesops | 1ab840206a78e60673aebd5838ba567095512a58 | [
"Apache-2.0"
] | null | null | null | from fidesops.util.queue import *
def test_queue() -> None:
queue = Queue("A", "B", "B1", "C")
assert queue.pop() == "A"
assert queue.pop_first_match(lambda x: x.startswith("B")) == "B"
assert queue.pop_first_match(lambda x: x.startswith("B")) == "B1"
assert queue.pop_first_match(lambda x: x.start... | 31.764706 | 69 | 0.614815 | 82 | 540 | 3.902439 | 0.317073 | 0.275 | 0.175 | 0.178125 | 0.6625 | 0.596875 | 0.596875 | 0.596875 | 0.596875 | 0.403125 | 0 | 0.004598 | 0.194444 | 540 | 16 | 70 | 33.75 | 0.731034 | 0 | 0 | 0.357143 | 0 | 0 | 0.031481 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9ed30fd3185162a739a838d3923dd30c505139a5 | 111 | py | Python | HackerRank Python Solutions/009. Tuples.py | aravind-alpha/Hackerrank-Solutions | 489ea4760d0f67bf257d2f20320e24f1cba5ec11 | [
"MIT"
] | 1 | 2021-05-02T06:05:35.000Z | 2021-05-02T06:05:35.000Z | HackerRank Python Solutions/009. Tuples.py | aravind-alpha/Hackerrank-Solutions | 489ea4760d0f67bf257d2f20320e24f1cba5ec11 | [
"MIT"
] | null | null | null | HackerRank Python Solutions/009. Tuples.py | aravind-alpha/Hackerrank-Solutions | 489ea4760d0f67bf257d2f20320e24f1cba5ec11 | [
"MIT"
] | 2 | 2021-12-01T06:42:21.000Z | 2021-12-29T17:12:53.000Z | # Tuples in Python
n = int(input())
integer_list = tuple(map(int, input().split()))
print(hash(integer_list))
| 18.5 | 47 | 0.693694 | 17 | 111 | 4.411765 | 0.764706 | 0.213333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117117 | 111 | 5 | 48 | 22.2 | 0.765306 | 0.144144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
9ef20f9c9002c203f09010e7eb691084cf973827 | 120 | py | Python | tests/basics/int2.py | learnforpractice/micropython-cpp | 004bc8382f74899e7b876cc29bfa6a9cc976ba10 | [
"MIT"
] | 13,648 | 2015-01-01T01:34:51.000Z | 2022-03-31T16:19:53.000Z | tests/basics/int2.py | learnforpractice/micropython-cpp | 004bc8382f74899e7b876cc29bfa6a9cc976ba10 | [
"MIT"
] | 7,092 | 2015-01-01T07:59:11.000Z | 2022-03-31T23:52:18.000Z | tests/basics/int2.py | learnforpractice/micropython-cpp | 004bc8382f74899e7b876cc29bfa6a9cc976ba10 | [
"MIT"
] | 4,942 | 2015-01-02T11:48:50.000Z | 2022-03-31T19:57:10.000Z | # test basic int operations
# test conversion of bool on RHS of binary op
a = False
print(1 + a)
a = True
print(1 + a)
| 15 | 45 | 0.683333 | 23 | 120 | 3.565217 | 0.695652 | 0.146341 | 0.170732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.233333 | 120 | 7 | 46 | 17.142857 | 0.869565 | 0.575 | 0 | 0.5 | 0 | 0 | 0 | 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 |
733903a53d7c3fff6b86d0aff2092c5252279f5a | 330 | py | Python | util/math_util.py | JULIELab/dan | 6e96da44994bf39c3e8513076df9706bc80dff32 | [
"MIT"
] | 242 | 2015-07-29T03:38:26.000Z | 2022-02-06T05:54:26.000Z | util/math_util.py | JULIELab/dan | 6e96da44994bf39c3e8513076df9706bc80dff32 | [
"MIT"
] | 6 | 2016-02-03T02:17:02.000Z | 2022-01-18T22:12:54.000Z | util/math_util.py | JULIELab/dan | 6e96da44994bf39c3e8513076df9706bc80dff32 | [
"MIT"
] | 67 | 2015-07-29T06:07:48.000Z | 2021-02-14T07:41:37.000Z | from numpy import *
def softmax(w):
ew = exp(w - max(w))
return ew / sum(ew)
def relu(x):
return x * (x > 0)
def drelu(x):
return x > 0
def crossent(label, classification):
return -sum(label * log(classification))
def dcrossent(label, classification):
return classificati... | 19.411765 | 45 | 0.606061 | 44 | 330 | 4.545455 | 0.454545 | 0.07 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008368 | 0.275758 | 330 | 17 | 46 | 19.411765 | 0.828452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0 | 0.083333 | 0.333333 | 0.916667 | 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 |
733c2534018c321e91770d1b8d5a60afeb7d5c57 | 3,266 | py | Python | trove_dashboard/api/trove.py | rmyers/trove-dashboard | 94089c8eeb1a5ae41a89e0955d0eabbdfcccda51 | [
"Apache-2.0"
] | null | null | null | trove_dashboard/api/trove.py | rmyers/trove-dashboard | 94089c8eeb1a5ae41a89e0955d0eabbdfcccda51 | [
"Apache-2.0"
] | null | null | null | trove_dashboard/api/trove.py | rmyers/trove-dashboard | 94089c8eeb1a5ae41a89e0955d0eabbdfcccda51 | [
"Apache-2.0"
] | null | null | null | """
Simple Trove API
===================
This is meant to be a simple wrapper around the Trove API.
"""
from troveclient import client
from troveclient.auth import ServiceCatalog
class TokenAuth(object):
"""Simple Token Authentication handler for trove api"""
def __init__(self, client, auth_strategy, auth_u... | 28.902655 | 78 | 0.667177 | 374 | 3,266 | 5.641711 | 0.216578 | 0.094787 | 0.169194 | 0.098104 | 0.287204 | 0.262559 | 0.262559 | 0.092891 | 0.048341 | 0 | 0 | 0 | 0.234844 | 3,266 | 112 | 79 | 29.160714 | 0.844338 | 0.059094 | 0 | 0 | 0 | 0 | 0.010131 | 0 | 0 | 0 | 0 | 0.008929 | 0 | 1 | 0.3125 | false | 0.015625 | 0.03125 | 0.25 | 0.65625 | 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 |
733e5b90e0e07c28f7580407d1c0a1cd8fab111f | 702 | py | Python | 30-Day-Challange/Day-13/min-rotated-2.py | EashanKaushik/LeetCode | 8ee2a61cefa42b332b6252fafff4a2772d25aa31 | [
"Apache-2.0"
] | null | null | null | 30-Day-Challange/Day-13/min-rotated-2.py | EashanKaushik/LeetCode | 8ee2a61cefa42b332b6252fafff4a2772d25aa31 | [
"Apache-2.0"
] | null | null | null | 30-Day-Challange/Day-13/min-rotated-2.py | EashanKaushik/LeetCode | 8ee2a61cefa42b332b6252fafff4a2772d25aa31 | [
"Apache-2.0"
] | null | null | null | class Solution:
def findMin(self, nums):
left = 0
right = len(nums) - 1
while left < right:
mid = left + (right - left)//2
if mid > 0 and nums[mid] < nums[mid - 1]:
return nums[mid]
if nums[mid] == nums[left] and nums[mid] == nums[right... | 22.645161 | 69 | 0.440171 | 88 | 702 | 3.511364 | 0.306818 | 0.203884 | 0.249191 | 0.18123 | 0.368932 | 0.368932 | 0.368932 | 0.368932 | 0.368932 | 0.2589 | 0 | 0.0375 | 0.430199 | 702 | 30 | 70 | 23.4 | 0.735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.2 | 0.05 | 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 |
7345c3b21e57f2e7b2c5037bc0bb2a4667c99d12 | 2,504 | py | Python | test/OrderOfOperationsTestLaunch.py | janion/EquationParser | 7b80aa3170cf40d4d751199c3f04391f01558bf7 | [
"BSD-2-Clause"
] | null | null | null | test/OrderOfOperationsTestLaunch.py | janion/EquationParser | 7b80aa3170cf40d4d751199c3f04391f01558bf7 | [
"BSD-2-Clause"
] | null | null | null | test/OrderOfOperationsTestLaunch.py | janion/EquationParser | 7b80aa3170cf40d4d751199c3f04391f01558bf7 | [
"BSD-2-Clause"
] | null | null | null | '''
Created on 8 May 2017
@author: Janion
'''
from eqn.OrderOfOperations import OrderOfOperations
failed = False
def assertEquals(expected, actual):
global failed
if expected != actual:
failed = True
print(expected + " != " + actual)
if __name__ == '__main__':
o = OrderOfOperations()
... | 53.276596 | 118 | 0.432508 | 351 | 2,504 | 3.062678 | 0.119658 | 0.245581 | 0.033488 | 0.037209 | 0.666047 | 0.633488 | 0.535814 | 0.405581 | 0.383256 | 0.383256 | 0 | 0.136442 | 0.30631 | 2,504 | 46 | 119 | 54.434783 | 0.482441 | 0.015176 | 0 | 0 | 0 | 0.117647 | 0.355574 | 0.076892 | 0 | 0 | 0 | 0 | 0.676471 | 1 | 0.029412 | false | 0 | 0.029412 | 0 | 0.058824 | 0.058824 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
736452a40b980dd7f712006fc599a985cc582944 | 23,768 | py | Python | training/exm_deeplearn_lib/exmsyn_compile.py | JaneliaSciComp/exllsm-synapse-detector | bb2683009fb18dfaea2743e15747f6bd86254940 | [
"BSD-3-Clause"
] | null | null | null | training/exm_deeplearn_lib/exmsyn_compile.py | JaneliaSciComp/exllsm-synapse-detector | bb2683009fb18dfaea2743e15747f6bd86254940 | [
"BSD-3-Clause"
] | null | null | null | training/exm_deeplearn_lib/exmsyn_compile.py | JaneliaSciComp/exllsm-synapse-detector | bb2683009fb18dfaea2743e15747f6bd86254940 | [
"BSD-3-Clause"
] | null | null | null | import os
import numpy as np
from exm_deeplearn_lib.exmsyn_data import tif_read, augment_small_sample, augment_random
from scipy.ndimage import zoom
from random import shuffle, sample
import nrrd
def _get_data_small_sample(img_mask_name, neg_mask_val=False, is_zoom=1.0):
"""
for DeepMask network
get an... | 45.100569 | 153 | 0.63535 | 3,837 | 23,768 | 3.677091 | 0.059682 | 0.036714 | 0.039124 | 0.010135 | 0.786023 | 0.742576 | 0.707846 | 0.685166 | 0.661634 | 0.622369 | 0 | 0.02817 | 0.248738 | 23,768 | 527 | 154 | 45.100569 | 0.761985 | 0.233886 | 0 | 0.594286 | 0 | 0 | 0.017647 | 0 | 0 | 0 | 0 | 0 | 0.017143 | 1 | 0.031429 | false | 0 | 0.017143 | 0 | 0.065714 | 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 |
7df6dae4da2e03afa21cd2bf1fee892530d7f7f1 | 421 | py | Python | autojail/config/passes.py | ekut-es/autojail | bc16e40e6df55c0a28a3059715851ffa59b14ba8 | [
"MIT"
] | 6 | 2020-08-12T08:16:15.000Z | 2022-03-05T02:25:53.000Z | autojail/config/passes.py | ekut-es/autojail | bc16e40e6df55c0a28a3059715851ffa59b14ba8 | [
"MIT"
] | 1 | 2021-03-30T10:34:51.000Z | 2021-06-09T11:24:00.000Z | autojail/config/passes.py | ekut-es/autojail | bc16e40e6df55c0a28a3059715851ffa59b14ba8 | [
"MIT"
] | 1 | 2021-11-21T09:30:58.000Z | 2021-11-21T09:30:58.000Z | from abc import ABC
from typing import Tuple
from ..model import Board, JailhouseConfig
from ..utils.logging import getLogger
class BasePass(ABC):
def __init__(self) -> None:
self.logger = getLogger()
def __call__(
self, board: Board, config: JailhouseConfig
) -> Tuple[Board, JailhouseCo... | 21.05 | 51 | 0.667458 | 48 | 421 | 5.520833 | 0.520833 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24228 | 421 | 19 | 52 | 22.157895 | 0.830721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.142857 | 0.285714 | 0.071429 | 0.642857 | 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 |
b4004ba3b421d0674edca434fa747e564593a297 | 414 | py | Python | pic/flash.py | SuperOxigen/pic16f917-simulator | 7eb5f36871473374b5434dbab02924fc0f1addf6 | [
"MIT"
] | null | null | null | pic/flash.py | SuperOxigen/pic16f917-simulator | 7eb5f36871473374b5434dbab02924fc0f1addf6 | [
"MIT"
] | null | null | null | pic/flash.py | SuperOxigen/pic16f917-simulator | 7eb5f36871473374b5434dbab02924fc0f1addf6 | [
"MIT"
] | null | null | null |
class ProgramMemory(object):
def __init__(self, size: int, programCounter):
self._operations = [None] * size
self._programCounter = programCounter
@property
def operations(self) -> list:
return self._operations
@property
def programCounter(self):
return self._prog... | 23 | 59 | 0.671498 | 40 | 414 | 6.75 | 0.4 | 0.155556 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241546 | 414 | 17 | 60 | 24.352941 | 0.859873 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b4034884fab059c132d374b36e46dda27f742b3f | 1,440 | bzl | Python | third_party/org_ow2_asm.bzl | wix/exodus | dfb0c9713b07a8b6a49b548b7b543021e748d80b | [
"MIT"
] | 186 | 2019-06-05T01:02:53.000Z | 2022-03-31T10:44:19.000Z | third_party/org_ow2_asm.bzl | wix/exodus | dfb0c9713b07a8b6a49b548b7b543021e748d80b | [
"MIT"
] | 25 | 2019-06-04T23:18:55.000Z | 2021-09-22T03:44:25.000Z | third_party/org_ow2_asm.bzl | wix/exodus | dfb0c9713b07a8b6a49b548b7b543021e748d80b | [
"MIT"
] | 17 | 2019-06-04T18:45:19.000Z | 2022-01-20T09:40:04.000Z | load("//:import_external.bzl", import_external = "safe_wix_scala_maven_import_external")
def dependencies():
import_external(
name = "org_ow2_asm_asm_analysis",
artifact = "org.ow2.asm:asm-analysis:6.2.1",
artifact_sha256 = "4c9342c98e746e9c2d7f2cdc6896f7348317e9b1e5a6c591047fc8969def4b23",
... | 32.727273 | 91 | 0.723611 | 121 | 1,440 | 8.239669 | 0.289256 | 0.066199 | 0.099298 | 0.132397 | 0.34002 | 0.160481 | 0.160481 | 0.100301 | 0.100301 | 0.100301 | 0 | 0.308411 | 0.182639 | 1,440 | 43 | 92 | 33.488372 | 0.538658 | 0 | 0 | 0.342857 | 0 | 0 | 0.5625 | 0.513194 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | true | 0 | 0.142857 | 0 | 0.171429 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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.