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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4c013252d03a27e172a25fc7204edb87a51f3225 | 9,126 | py | Python | salt/states/saltutil.py | vveliev-tc/salt | 899ed0046c4d05417edf26e28a30b9969c0e3253 | [
"Apache-2.0"
] | null | null | null | salt/states/saltutil.py | vveliev-tc/salt | 899ed0046c4d05417edf26e28a30b9969c0e3253 | [
"Apache-2.0"
] | null | null | null | salt/states/saltutil.py | vveliev-tc/salt | 899ed0046c4d05417edf26e28a30b9969c0e3253 | [
"Apache-2.0"
] | null | null | null | """
Saltutil State
==============
This state wraps the saltutil execution modules to make them easier to run
from a states. Rather than needing to to use ``module.run`` this state allows for
improved change detection.
.. versionadded: 3000
"""
import logging
# Define the module's virtual name
__virtualname__ = ... | 25.926136 | 81 | 0.625575 | 1,084 | 9,126 | 5.110701 | 0.100554 | 0.099639 | 0.050542 | 0.075812 | 0.744224 | 0.744224 | 0.637906 | 0.637906 | 0.624188 | 0.468953 | 0 | 0.00059 | 0.256849 | 9,126 | 351 | 82 | 26 | 0.816278 | 0.539776 | 0 | 0.268293 | 0 | 0 | 0.174101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.268293 | false | 0 | 0.012195 | 0 | 0.597561 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4c157e1c41b488a6659822286d902fa2b5d67f55 | 235 | py | Python | Python/Itertools/itertools-product.py | ekant1999/HackerRank | 084d4550b4eaf130837ab26a4efdbcaf8b667cdc | [
"MIT"
] | 9 | 2017-03-19T16:27:31.000Z | 2022-02-17T11:42:21.000Z | Python/Itertools/itertools-product.py | ekant1999/HackerRank | 084d4550b4eaf130837ab26a4efdbcaf8b667cdc | [
"MIT"
] | null | null | null | Python/Itertools/itertools-product.py | ekant1999/HackerRank | 084d4550b4eaf130837ab26a4efdbcaf8b667cdc | [
"MIT"
] | 6 | 2019-02-18T11:26:24.000Z | 2022-03-21T14:13:15.000Z | # Enter your code here. Read input from STDIN. Print output to STDOUT
from itertools import product
a = map(int, raw_input().split())
b = map(int, raw_input().split())
prod = list(product(a,b))
print(' '.join(map(str,prod))) | 26.111111 | 70 | 0.67234 | 38 | 235 | 4.105263 | 0.657895 | 0.102564 | 0.115385 | 0.179487 | 0.24359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 235 | 9 | 71 | 26.111111 | 0.8 | 0.285106 | 0 | 0 | 0 | 0 | 0.006289 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4c1bcca230f7e323c171cd6104a4726529007b13 | 460 | py | Python | Exercicios/mundo3-exercicios-72/ex107.py | rafaelbarretomg/Curso-Python-3 | 7e772cbaf4c1e1bf7f1a9fb2925ec2e0eecf2998 | [
"MIT"
] | null | null | null | Exercicios/mundo3-exercicios-72/ex107.py | rafaelbarretomg/Curso-Python-3 | 7e772cbaf4c1e1bf7f1a9fb2925ec2e0eecf2998 | [
"MIT"
] | null | null | null | Exercicios/mundo3-exercicios-72/ex107.py | rafaelbarretomg/Curso-Python-3 | 7e772cbaf4c1e1bf7f1a9fb2925ec2e0eecf2998 | [
"MIT"
] | null | null | null | # Crie um modulo chamado moeda.py que tenha as funcoes incorporadas aumentar(),
# diminuir(), dobro() e metade().
# Faca tambem um programa que importe esse modulo e use algumas dessas funcoes.
from ex107 import moeda
p = float(input('Digite o preco: R$'))
print(f'A metade de {p} eh {moeda.metade(p)}')
print(f'O dobro ... | 46 | 79 | 0.708696 | 78 | 460 | 4.179487 | 0.564103 | 0.07362 | 0.030675 | 0.06135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027708 | 0.136957 | 460 | 9 | 80 | 51.111111 | 0.793451 | 0.406522 | 0 | 0 | 0 | 0 | 0.657993 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.666667 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
4c3881eefe508aca59855dd646a18cd228b76f15 | 453 | py | Python | sum_elements_comprehesion_list.py | Furion1995/little_projects | 5373da016e8f7141a6984f7bc42b7b4ce002cbf1 | [
"MIT"
] | null | null | null | sum_elements_comprehesion_list.py | Furion1995/little_projects | 5373da016e8f7141a6984f7bc42b7b4ce002cbf1 | [
"MIT"
] | null | null | null | sum_elements_comprehesion_list.py | Furion1995/little_projects | 5373da016e8f7141a6984f7bc42b7b4ce002cbf1 | [
"MIT"
] | null | null | null | """
Built-in sum function be combined with Python’s
comprehension syntax to compute the sum of all numbers in an n×n data
set, represented as a list of lists.
"""
def sum_elements(data_set: list) -> float:
return sum(map(sum, data_set))
def sum_elements_comprehesion(data_ = list) -> float:
pass
... | 21.571429 | 71 | 0.629139 | 75 | 453 | 3.613333 | 0.64 | 0.077491 | 0.103321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 0.225166 | 453 | 20 | 72 | 22.65 | 0.717949 | 0.339956 | 0 | 0 | 0 | 0 | 0.029851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.142857 | 0 | 0.142857 | 0.428571 | 0.142857 | 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 |
4c67ca89103557d16154af374aa1e3f966fcfbd0 | 390 | py | Python | src/services/book_service.py | J-Uhero/ohtu-miniprojekti | 4e6a62447fe2a5bba0109f43f95c80653b294077 | [
"MIT"
] | null | null | null | src/services/book_service.py | J-Uhero/ohtu-miniprojekti | 4e6a62447fe2a5bba0109f43f95c80653b294077 | [
"MIT"
] | null | null | null | src/services/book_service.py | J-Uhero/ohtu-miniprojekti | 4e6a62447fe2a5bba0109f43f95c80653b294077 | [
"MIT"
] | null | null | null | from entities.book import Book
from repositories.book_repository import book_repository
class BookService:
def __init__(self, repository=book_repository):
self._repository = repository
def add_book(self, title, author, year):
book = Book(title, author, year)
self._repository.add(book)... | 26 | 56 | 0.715385 | 48 | 390 | 5.541667 | 0.416667 | 0.210526 | 0.112782 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202564 | 390 | 14 | 57 | 27.857143 | 0.855305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.2 | 0.1 | 0.7 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4c79f802bcc10c957c253c00b1f28b67309bd21d | 353 | py | Python | 6KYU/is_valid_walk.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | 4 | 2021-07-17T22:48:03.000Z | 2022-03-25T14:10:58.000Z | 6KYU/is_valid_walk.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | null | null | null | 6KYU/is_valid_walk.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | 3 | 2021-06-14T14:18:16.000Z | 2022-03-16T06:02:02.000Z | from typing import List
def is_valid_walk(walk: List[str]) -> bool:
if len(walk) != 10:
return False
string_of_my_walk_rout = ''.join(walk)
if string_of_my_walk_rout.count('n') == string_of_my_walk_rout.count('s') and string_of_my_walk_rout.count('e') == string_of_my_walk_rout.count('w'):
... | 32.090909 | 153 | 0.68272 | 59 | 353 | 3.711864 | 0.457627 | 0.182648 | 0.228311 | 0.319635 | 0.502283 | 0.420091 | 0 | 0 | 0 | 0 | 0 | 0.007018 | 0.192635 | 353 | 11 | 154 | 32.090909 | 0.761404 | 0 | 0 | 0.25 | 0 | 0 | 0.011299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.625 | 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 |
d5c94326689e65a372ce033782c5661203bda040 | 3,644 | py | Python | nex2art/functional-tests/engine/ArtifactoryAccess.py | ghl1024/nexus2artifactory | 1b300e1ea9c51d51a89096e8b710a0763750c38d | [
"Apache-2.0"
] | 50 | 2018-08-30T00:39:16.000Z | 2022-01-27T10:08:19.000Z | nex2art/functional-tests/engine/ArtifactoryAccess.py | ghl1024/nexus2artifactory | 1b300e1ea9c51d51a89096e8b710a0763750c38d | [
"Apache-2.0"
] | 68 | 2018-06-12T10:37:01.000Z | 2022-01-10T02:47:12.000Z | nex2art/functional-tests/engine/ArtifactoryAccess.py | ghl1024/nexus2artifactory | 1b300e1ea9c51d51a89096e8b710a0763750c38d | [
"Apache-2.0"
] | 38 | 2018-06-11T10:38:03.000Z | 2021-11-12T15:00:21.000Z | import logging
from HTTPAccess import HTTPAccess
'''
An API for accessing Artifactory (4.0+)
The API is for testing and not for general usage. As such, functionality such as uploading/downloading is not
implemented.
APIs for:
* Users
* Permissions
* Configurations
* Artifacts
'''
class ArtifactoryAccess... | 36.808081 | 115 | 0.701427 | 484 | 3,644 | 5.086777 | 0.223141 | 0.064988 | 0.084484 | 0.103574 | 0.465881 | 0.426076 | 0.362713 | 0.298944 | 0.127539 | 0.127539 | 0 | 0.001731 | 0.207464 | 3,644 | 98 | 116 | 37.183673 | 0.850762 | 0.222009 | 0 | 0 | 0 | 0 | 0.130503 | 0.047916 | 0 | 0 | 0 | 0 | 0 | 1 | 0.409091 | false | 0.045455 | 0.045455 | 0.363636 | 0.886364 | 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 |
d5d7f4487244ddf0e878e8bb12b45172b317d44d | 149 | py | Python | python-execercicio/soma_dois_valores.py | isaacfelipe1/exercicio-python-UEA | abf8ce998244b3689a14989d1425d02d21074435 | [
"Apache-2.0"
] | null | null | null | python-execercicio/soma_dois_valores.py | isaacfelipe1/exercicio-python-UEA | abf8ce998244b3689a14989d1425d02d21074435 | [
"Apache-2.0"
] | null | null | null | python-execercicio/soma_dois_valores.py | isaacfelipe1/exercicio-python-UEA | abf8ce998244b3689a14989d1425d02d21074435 | [
"Apache-2.0"
] | null | null | null | valor1=int(input("Informe o primeiro valor\n"))
valor2=int(input("Informe outro qualquer valor\n"))
soma = valor1 + valor2
print(" a soma é :",soma) | 29.8 | 51 | 0.718121 | 24 | 149 | 4.458333 | 0.625 | 0.149533 | 0.280374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030534 | 0.120805 | 149 | 5 | 52 | 29.8 | 0.78626 | 0 | 0 | 0 | 0 | 0 | 0.446667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d5de848e74faeed3798e5634d8b88d7268fc40ef | 54,339 | py | Python | python3/convert-dlmt-to-svg.py | flarebyte/dalmatian-media-tape | 022fabdb7cefe2064d0db875758e8aba55eda139 | [
"BSD-3-Clause"
] | null | null | null | python3/convert-dlmt-to-svg.py | flarebyte/dalmatian-media-tape | 022fabdb7cefe2064d0db875758e8aba55eda139 | [
"BSD-3-Clause"
] | null | null | null | python3/convert-dlmt-to-svg.py | flarebyte/dalmatian-media-tape | 022fabdb7cefe2064d0db875758e8aba55eda139 | [
"BSD-3-Clause"
] | null | null | null | import argparse
import json
import os
import re
import sys
import xml.etree.ElementTree as ET
from datetime import date
from enum import Enum, auto
from fractions import Fraction
from glob import glob
from math import atan, cos, degrees, pi, radians, sin
from random import choice, sample
from time import sleep, time
fr... | 40.581777 | 256 | 0.64197 | 6,985 | 54,339 | 4.806013 | 0.074302 | 0.021448 | 0.014477 | 0.010188 | 0.472237 | 0.404885 | 0.323205 | 0.255347 | 0.223473 | 0.174352 | 0 | 0.010205 | 0.229945 | 54,339 | 1,338 | 257 | 40.612108 | 0.792061 | 0.012128 | 0 | 0.340324 | 0 | 0.003813 | 0.070159 | 0.00259 | 0 | 0 | 0 | 0 | 0.032412 | 1 | 0.235462 | false | 0 | 0.014299 | 0.14204 | 0.544328 | 0.003813 | 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 |
d5df49c10a9de221255eaa8de4e77f49d24d57aa | 359 | py | Python | mmelemental/tests/test_basic.py | ccbiozhaw/mmelemental | 2e3215b3d2291cbc0f346efb05e8ad056516b15d | [
"BSD-3-Clause"
] | null | null | null | mmelemental/tests/test_basic.py | ccbiozhaw/mmelemental | 2e3215b3d2291cbc0f346efb05e8ad056516b15d | [
"BSD-3-Clause"
] | null | null | null | mmelemental/tests/test_basic.py | ccbiozhaw/mmelemental | 2e3215b3d2291cbc0f346efb05e8ad056516b15d | [
"BSD-3-Clause"
] | null | null | null | """
Basic sanity test for the mmelemental package.
"""
# import pytest
import mmelemental
from mmelemental.models.util.output import FileOutput
from mmelemental.models.molecule import Molecule
def test_mmelemental_imported():
"""Sample test, will always pass so long as import statement worked"""
import sys
... | 23.933333 | 74 | 0.771588 | 46 | 359 | 5.978261 | 0.652174 | 0.109091 | 0.152727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155989 | 359 | 14 | 75 | 25.642857 | 0.907591 | 0.350975 | 0 | 0 | 0 | 0 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | true | 0 | 0.833333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d5e78831bc4e5d9b7019e310179b47606e28e3b1 | 215 | py | Python | tziot/__init__.py | jdhxyy/tziot-python | ddeadbc54665380c0146796e2b27c58c63912d8d | [
"MIT"
] | null | null | null | tziot/__init__.py | jdhxyy/tziot-python | ddeadbc54665380c0146796e2b27c58c63912d8d | [
"MIT"
] | null | null | null | tziot/__init__.py | jdhxyy/tziot-python | ddeadbc54665380c0146796e2b27c58c63912d8d | [
"MIT"
] | null | null | null | from tziot.config import config_core_param, config_dcom_param
from tziot.conn import is_conn
from tziot.tziot import call, register, bind_pipe_net, bind_pipe, str_to_bytearray, bytearray_to_str
__version__ = '1.7'
| 35.833333 | 100 | 0.837209 | 36 | 215 | 4.555556 | 0.555556 | 0.164634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010363 | 0.102326 | 215 | 5 | 101 | 43 | 0.839378 | 0 | 0 | 0 | 0 | 0 | 0.013953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d5e9da4b07e262ce14789cc84f57dabc40c2c3f4 | 673 | py | Python | tests/python/pants_test/option/util/fakes.py | mpopenko-exos/pants | 47d27037c8b13291fc9023e56ddd1b1defdf1b8e | [
"Apache-2.0"
] | null | null | null | tests/python/pants_test/option/util/fakes.py | mpopenko-exos/pants | 47d27037c8b13291fc9023e56ddd1b1defdf1b8e | [
"Apache-2.0"
] | 1 | 2018-09-04T17:37:34.000Z | 2018-09-04T19:42:58.000Z | tests/python/pants_test/option/util/fakes.py | mpopenko-exos/pants | 47d27037c8b13291fc9023e56ddd1b1defdf1b8e | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from pants.testutil.option.fakes import _FakeOptionValues as _FakeOptionValues # noqa
from pants.testutil.option.fakes import (
_options_registration_function as _options_registration_f... | 42.0625 | 86 | 0.835067 | 86 | 673 | 6.27907 | 0.383721 | 0.083333 | 0.175926 | 0.222222 | 0.322222 | 0.322222 | 0.259259 | 0.188889 | 0.188889 | 0 | 0 | 0.00995 | 0.104012 | 673 | 15 | 87 | 44.866667 | 0.885572 | 0.216939 | 0 | 0.2 | 0 | 0 | 0.051923 | 0.051923 | 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 |
9104d96483e2a47136f0c183bccfaf9ed3326ba1 | 1,004 | py | Python | pagesext/tests/base.py | dlancer/django-pages-cms-extensions | 4aa6f2780abef9543ced20258ede01a9662167b3 | [
"BSD-3-Clause"
] | 1 | 2016-07-08T07:23:20.000Z | 2016-07-08T07:23:20.000Z | pagesext/tests/base.py | dlancer/django-pages-cms-extensions | 4aa6f2780abef9543ced20258ede01a9662167b3 | [
"BSD-3-Clause"
] | null | null | null | pagesext/tests/base.py | dlancer/django-pages-cms-extensions | 4aa6f2780abef9543ced20258ede01a9662167b3 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import unicode_literals
from django.contrib.auth.models import User
from django.contrib.sites.models import Site
from django.test import TestCase
from django.test.client import RequestFactory
from pages.models.page import Page
class PagesExtCase(TestCase):
urls = 'pagesext.tests.urls'
fixtur... | 37.185185 | 105 | 0.675299 | 131 | 1,004 | 5 | 0.412214 | 0.073282 | 0.100763 | 0.079389 | 0.20458 | 0.20458 | 0.20458 | 0.20458 | 0.20458 | 0.20458 | 0 | 0.003836 | 0.221116 | 1,004 | 26 | 106 | 38.615385 | 0.83376 | 0 | 0 | 0.105263 | 0 | 0 | 0.076693 | 0.030876 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.052632 | 0.315789 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
910f14da7abf56d43afa9eb87bd1daa7d1017adf | 6,130 | py | Python | tests/unit/test_arg_parser.py | ecmwf-lab/climetlab-cems-flood | 43822350a7fde770e13c5f4ece03f53e52d730d4 | [
"Apache-2.0"
] | null | null | null | tests/unit/test_arg_parser.py | ecmwf-lab/climetlab-cems-flood | 43822350a7fde770e13c5f4ece03f53e52d730d4 | [
"Apache-2.0"
] | null | null | null | tests/unit/test_arg_parser.py | ecmwf-lab/climetlab-cems-flood | 43822350a7fde770e13c5f4ece03f53e52d730d4 | [
"Apache-2.0"
] | null | null | null | import pytest
from climetlab_cems_flood.utils import Parser
def assert_period(years,months,days,expected):
assert years == expected[0]
assert months == expected[1]
assert days == expected[2]
def test_parser_leadtime():
parser = Parser()
assert parser.leadtime("24-72/480-600") == [
"2... | 38.074534 | 108 | 0.192333 | 297 | 6,130 | 3.925926 | 0.282828 | 0.066038 | 0.054889 | 0.027444 | 0.537736 | 0.409091 | 0.352487 | 0.338765 | 0.338765 | 0.279588 | 0 | 0.244957 | 0.716966 | 6,130 | 161 | 109 | 38.074534 | 0.427089 | 0.005873 | 0 | 0.496454 | 0 | 0 | 0.072214 | 0.014935 | 0 | 0 | 0 | 0 | 0.06383 | 1 | 0.028369 | false | 0 | 0.014184 | 0 | 0.042553 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 |
91195b9681df1379de5bb97248e4f4428c97ad06 | 3,395 | py | Python | aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DescribeDisksRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | null | null | null | aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DescribeDisksRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | null | null | null | aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DescribeDisksRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 36.505376 | 72 | 0.742268 | 456 | 3,395 | 5.335526 | 0.241228 | 0.032059 | 0.085491 | 0.106864 | 0.320592 | 0.197698 | 0.197698 | 0.197698 | 0 | 0 | 0 | 0.004147 | 0.14757 | 3,395 | 92 | 73 | 36.902174 | 0.836558 | 0.2757 | 0 | 0 | 0 | 0 | 0.112106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.473684 | false | 0 | 0.017544 | 0.22807 | 0.736842 | 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 |
911db58fb1391f067e8cfb3a5d947c9582b47419 | 1,963 | py | Python | tests/tests_base.py | mymarilyn/marilyn | cfaeec7100ed6ffb33e30e43096e234c63b80cf9 | [
"MIT"
] | 1 | 2018-03-11T22:03:51.000Z | 2018-03-11T22:03:51.000Z | tests/tests_base.py | mymarilyn/marilyn | cfaeec7100ed6ffb33e30e43096e234c63b80cf9 | [
"MIT"
] | null | null | null | tests/tests_base.py | mymarilyn/marilyn | cfaeec7100ed6ffb33e30e43096e234c63b80cf9 | [
"MIT"
] | null | null | null | import unittest
import Marilyn
from .config import login, password, api_url
class TestMarilynBase(unittest.TestCase):
api_key = ''
def test_auth(self):
merilyn = Marilyn.CoreApi(login=login, password=password, url_api=api_url)
try:
merilyn.auth()
except Marilyn.exceptio... | 28.867647 | 123 | 0.641365 | 230 | 1,963 | 5.186957 | 0.208696 | 0.060352 | 0.088013 | 0.108969 | 0.794635 | 0.715842 | 0.69824 | 0.69824 | 0.652137 | 0.652137 | 0 | 0 | 0.264391 | 1,963 | 67 | 124 | 29.298507 | 0.826177 | 0 | 0 | 0.653061 | 0 | 0 | 0.011207 | 0 | 0 | 0 | 0 | 0 | 0.163265 | 1 | 0.102041 | false | 0.122449 | 0.081633 | 0 | 0.22449 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
911de9db5627bb9000f79ab2f86db00dbfa52eae | 138 | py | Python | app/urls.py | njugunanduati/django_test_middleware | a6e0e6b920dc99357c3c4798a2bc1ee95c459458 | [
"MIT"
] | null | null | null | app/urls.py | njugunanduati/django_test_middleware | a6e0e6b920dc99357c3c4798a2bc1ee95c459458 | [
"MIT"
] | null | null | null | app/urls.py | njugunanduati/django_test_middleware | a6e0e6b920dc99357c3c4798a2bc1ee95c459458 | [
"MIT"
] | null | null | null |
from django.conf.urls import url
from app.views import get_api
urlpatterns = [
url(r'^test/(?P<duration>\w{0,50})/$', get_api,),
]
| 15.333333 | 53 | 0.65942 | 23 | 138 | 3.869565 | 0.782609 | 0.134831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.152174 | 138 | 8 | 54 | 17.25 | 0.735043 | 0 | 0 | 0 | 0 | 0 | 0.218978 | 0.218978 | 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 |
9147ef94492a3217f696753e1fd8d6ff9115471a | 9,799 | py | Python | tests/modules/test_math.py | babelsberg/babelsberg-r | 5d06594f2ece8a9bce5ddd2e8a66ef69efd61835 | [
"BSD-3-Clause"
] | 6 | 2015-04-10T20:11:03.000Z | 2021-11-10T07:03:46.000Z | tests/modules/test_math.py | babelsberg/babelsberg-r | 5d06594f2ece8a9bce5ddd2e8a66ef69efd61835 | [
"BSD-3-Clause"
] | 1 | 2017-01-24T10:17:55.000Z | 2017-01-24T10:17:55.000Z | tests/modules/test_math.py | babelsberg/babelsberg-r | 5d06594f2ece8a9bce5ddd2e8a66ef69efd61835 | [
"BSD-3-Clause"
] | 2 | 2017-01-23T18:47:35.000Z | 2019-11-13T08:31:18.000Z | import math
from rpython.rlib import rfloat
from ..base import BaseTopazTest
class TestMath(BaseTopazTest):
def assert_float_equal(self, result, expected, eps=1e-15):
assert abs(result - expected) < eps
def test_domain_error(self, space):
space.execute("Math::DomainError")
def test_pi(... | 41.345992 | 103 | 0.597714 | 1,460 | 9,799 | 3.879452 | 0.072603 | 0.064972 | 0.158898 | 0.190325 | 0.755473 | 0.731109 | 0.704096 | 0.602225 | 0.356815 | 0.279838 | 0 | 0.038584 | 0.23033 | 9,799 | 236 | 104 | 41.521186 | 0.712411 | 0 | 0 | 0.16092 | 0 | 0.017241 | 0.249719 | 0.01592 | 0 | 0 | 0 | 0 | 0.310345 | 1 | 0.178161 | false | 0 | 0.017241 | 0 | 0.201149 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
915234c41ba69916b00b52e4612dc0a0d4b89c23 | 605 | py | Python | LibNumberOne/setup.py | piqueen314/pythonMultipleProjectsOneRepoExample | 583741238373006298ba8f6f108fc7c718098238 | [
"MIT"
] | null | null | null | LibNumberOne/setup.py | piqueen314/pythonMultipleProjectsOneRepoExample | 583741238373006298ba8f6f108fc7c718098238 | [
"MIT"
] | null | null | null | LibNumberOne/setup.py | piqueen314/pythonMultipleProjectsOneRepoExample | 583741238373006298ba8f6f108fc7c718098238 | [
"MIT"
] | null | null | null | import setuptools
setuptools.setup(
name="LibNumberOne",
version='0.01',
url="https://github.com/piqueen314/pythonMultipleProjectsOneRepoExample.git",
author="Cece Hedrick",
author_email="cecehedrick@gmail.com",
description="A test python package that has one function that report its name",
... | 33.611111 | 83 | 0.66281 | 64 | 605 | 6.21875 | 0.703125 | 0.190955 | 0.251256 | 0.19598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 0.201653 | 605 | 18 | 84 | 33.611111 | 0.795031 | 0 | 0 | 0 | 0 | 0 | 0.546205 | 0.034653 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 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 |
e6705235696cc5c1309252efde19e73b16221eaf | 136 | py | Python | tracker/actor/admin.py | OpenFurry/pubtrack | 5b9f1c0acf50d6dbe9411178211ceca8510c6991 | [
"MIT"
] | null | null | null | tracker/actor/admin.py | OpenFurry/pubtrack | 5b9f1c0acf50d6dbe9411178211ceca8510c6991 | [
"MIT"
] | null | null | null | tracker/actor/admin.py | OpenFurry/pubtrack | 5b9f1c0acf50d6dbe9411178211ceca8510c6991 | [
"MIT"
] | 1 | 2018-01-06T22:01:24.000Z | 2018-01-06T22:01:24.000Z | from django.contrib import admin
from .models import (
Actor,
Group,
)
admin.site.register(Actor)
admin.site.register(Group)
| 12.363636 | 32 | 0.720588 | 18 | 136 | 5.444444 | 0.555556 | 0.183673 | 0.346939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 136 | 10 | 33 | 13.6 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 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 |
e6a4977b02d60b0a9e6932a12f3ea00e679fff96 | 162 | py | Python | icpc/2018-8-13/A-chk.py | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | 3 | 2018-08-30T09:43:20.000Z | 2019-12-03T04:53:43.000Z | icpc/2018-8-13/A-chk.py | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | icpc/2018-8-13/A-chk.py | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | #!/usr/bin/env pypy
t, n = map(int, raw_input().split())
[raw_input() for i in xrange(n - 1)]
verdict = raw_input().strip()
if verdict == 'Random':
exit(-1)
| 20.25 | 36 | 0.611111 | 28 | 162 | 3.428571 | 0.75 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014815 | 0.166667 | 162 | 7 | 37 | 23.142857 | 0.696296 | 0.111111 | 0 | 0 | 0 | 0 | 0.041958 | 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 |
e6ac871da6780075836ed75fc101de7d28e53e6e | 415 | py | Python | flare/base/config.py | Lonewolf-Information-systems/flare | 2c9b566e76d894385f8c0180f797b2b69a031c9e | [
"MIT"
] | 433 | 2017-04-23T17:28:12.000Z | 2022-03-15T22:11:56.000Z | flare/base/config.py | Lonewolf-Information-systems/flare | 2c9b566e76d894385f8c0180f797b2b69a031c9e | [
"MIT"
] | 27 | 2017-06-15T18:59:08.000Z | 2021-11-04T22:24:25.000Z | flare/base/config.py | Lonewolf-Information-systems/flare | 2c9b566e76d894385f8c0180f797b2b69a031c9e | [
"MIT"
] | 85 | 2017-05-19T18:53:14.000Z | 2022-01-18T18:54:16.000Z | import os
import sys
# Support for python3
if (sys.version_info > (3, 0)):
import configparser as cp
else:
import ConfigParser as cp
class flareConfig(object):
def __init__(self, config_in=None):
self.config_in = config_in
self.config = cp.RawConfigParser()
self.config.read(self.... | 21.842105 | 47 | 0.679518 | 57 | 415 | 4.789474 | 0.526316 | 0.21978 | 0.131868 | 0.161172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009317 | 0.224096 | 415 | 19 | 47 | 21.842105 | 0.838509 | 0.045783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.307692 | 0.076923 | 0.615385 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e6ae9b43a66349cb5fc4b45e71c677259e854f02 | 74 | py | Python | mimic/plugins/yo_plugin.py | ksheedlo/mimic | c84b6a0d336e8a37a685b5d71537aec5e44d9a8f | [
"Apache-2.0"
] | 141 | 2015-01-07T19:28:31.000Z | 2022-02-11T06:04:13.000Z | mimic/plugins/yo_plugin.py | ksheedlo/mimic | c84b6a0d336e8a37a685b5d71537aec5e44d9a8f | [
"Apache-2.0"
] | 575 | 2015-01-04T20:23:08.000Z | 2019-10-04T08:20:04.000Z | mimic/plugins/yo_plugin.py | ksheedlo/mimic | c84b6a0d336e8a37a685b5d71537aec5e44d9a8f | [
"Apache-2.0"
] | 63 | 2015-01-09T20:39:41.000Z | 2020-07-06T14:20:56.000Z | """
Plugin for Yo.
"""
from mimic.rest.yo_api import YoAPI
yo = YoAPI()
| 9.25 | 35 | 0.648649 | 12 | 74 | 3.916667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189189 | 74 | 7 | 36 | 10.571429 | 0.783333 | 0.189189 | 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 |
e6b61613b9135ea278bdccc5ef87a0bb171e1066 | 265 | py | Python | qanta/pipeline/guesser/dan.py | vivlai/qanta | 57a162b28961a1d11a82405db4f07ff824ce3faf | [
"MIT"
] | null | null | null | qanta/pipeline/guesser/dan.py | vivlai/qanta | 57a162b28961a1d11a82405db4f07ff824ce3faf | [
"MIT"
] | null | null | null | qanta/pipeline/guesser/dan.py | vivlai/qanta | 57a162b28961a1d11a82405db4f07ff824ce3faf | [
"MIT"
] | null | null | null | import luigi
from qanta.util.constants import GLOVE_WE
class GloveEmbeddings(luigi.ExternalTask):
def output(self):
return luigi.LocalTarget(GLOVE_WE)
class DANDependencies(luigi.WrapperTask):
def requires(self):
yield GloveEmbeddings()
| 20.384615 | 42 | 0.74717 | 30 | 265 | 6.533333 | 0.666667 | 0.071429 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173585 | 265 | 12 | 43 | 22.083333 | 0.894977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.875 | 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 |
e6c135e10d81e656e6a95846d5db299d23a0722c | 716 | py | Python | 2017/04_CollectionsFileIO/code/calculator.py | lfrommelt/monty | e8cabf0e4ac01ab3d97eecee5e699139076d6544 | [
"MIT"
] | null | null | null | 2017/04_CollectionsFileIO/code/calculator.py | lfrommelt/monty | e8cabf0e4ac01ab3d97eecee5e699139076d6544 | [
"MIT"
] | null | null | null | 2017/04_CollectionsFileIO/code/calculator.py | lfrommelt/monty | e8cabf0e4ac01ab3d97eecee5e699139076d6544 | [
"MIT"
] | 1 | 2020-03-20T14:26:28.000Z | 2020-03-20T14:26:28.000Z | def calculator(*args, **kwargs):
result = args[0]
if 'operation' in kwargs.keys():
for arg in args[1:]:
if kwargs['operation'] == '+':
result = result + arg
elif kwargs['operation'] == '-':
result = result - arg
elif kwargs['operation']... | 32.545455 | 53 | 0.52095 | 82 | 716 | 4.54878 | 0.292683 | 0.241287 | 0.225201 | 0.289544 | 0.546917 | 0.353887 | 0.353887 | 0.353887 | 0.353887 | 0.353887 | 0 | 0.045635 | 0.296089 | 716 | 21 | 54 | 34.095238 | 0.694444 | 0 | 0 | 0 | 0 | 0 | 0.075419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.105263 | 0.315789 | 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 |
e6c95fb9f779a726f299af6a7310fbe0f1fdea54 | 1,354 | py | Python | api/features_api.py | Subhradeep10/chromium-dashboard | 7c28b6f9523a5444bb2de692c4f9214adadca8ba | [
"Apache-2.0"
] | 2 | 2021-06-19T14:59:53.000Z | 2021-09-18T14:45:59.000Z | api/features_api.py | trancongluan/chromium-dashboard | 98a0d6308491a77430cd06b421d56b959516a35b | [
"Apache-2.0"
] | null | null | null | api/features_api.py | trancongluan/chromium-dashboard | 98a0d6308491a77430cd06b421d56b959516a35b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2021 Google Inc.
#
# 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... | 30.088889 | 74 | 0.750369 | 189 | 1,354 | 5.26455 | 0.619048 | 0.060302 | 0.057286 | 0.032161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008 | 0.169129 | 1,354 | 44 | 75 | 30.772727 | 0.876444 | 0.582718 | 0 | 0 | 0 | 0 | 0.020484 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.066667 | false | 0 | 0.466667 | 0 | 0.666667 | 0.066667 | 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 |
e6d5cc6c3a0a68fbf918246935487e815f80cf7b | 268 | py | Python | organizer/files_factory.py | jalvaradosegura/folder_organizer | 96079da76b2cc393f14580c1f0c51453e698e8db | [
"MIT"
] | 1 | 2021-06-02T16:06:19.000Z | 2021-06-02T16:06:19.000Z | organizer/files_factory.py | jalvaradosegura/folder_organizer | 96079da76b2cc393f14580c1f0c51453e698e8db | [
"MIT"
] | null | null | null | organizer/files_factory.py | jalvaradosegura/folder_organizer | 96079da76b2cc393f14580c1f0c51453e698e8db | [
"MIT"
] | null | null | null | import os
def files_factory(path, files_destination):
for key, value in files_destination.items():
with open(os.path.join(path, 'test' + value[0]), 'w'):
pass
with open(os.path.join(path, 'test' + '.random_extension'), 'w'):
pass
| 26.8 | 69 | 0.61194 | 37 | 268 | 4.324324 | 0.567568 | 0.2 | 0.125 | 0.175 | 0.325 | 0.325 | 0.325 | 0 | 0 | 0 | 0 | 0.004854 | 0.231343 | 268 | 9 | 70 | 29.777778 | 0.771845 | 0 | 0 | 0.285714 | 0 | 0 | 0.100746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.285714 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e6de0c4027d8f4e370e04a8a5fde6a17362c025d | 4,530 | py | Python | kombu/clocks.py | hudolejev/kombu | 1bd9ac8f9725a4e11520e424f927b4a43f42a4a5 | [
"BSD-3-Clause"
] | 39 | 2016-12-05T14:36:37.000Z | 2021-07-29T18:22:34.000Z | kombu/clocks.py | hudolejev/kombu | 1bd9ac8f9725a4e11520e424f927b4a43f42a4a5 | [
"BSD-3-Clause"
] | 68 | 2016-12-12T20:38:47.000Z | 2020-07-26T18:28:49.000Z | kombu/clocks.py | hudolejev/kombu | 1bd9ac8f9725a4e11520e424f927b4a43f42a4a5 | [
"BSD-3-Clause"
] | 120 | 2016-08-18T14:53:03.000Z | 2020-06-16T13:27:20.000Z | """
kombu.clocks
============
Logical Clocks and Synchronization.
"""
from __future__ import absolute_import
from threading import Lock
from itertools import islice
from operator import itemgetter
from .five import zip
__all__ = ['LamportClock', 'timetuple']
R_CLOCK = '_lamport(clock={0}, timestamp={1}, id={2} {3... | 29.225806 | 77 | 0.61479 | 595 | 4,530 | 4.566387 | 0.351261 | 0.019875 | 0.016562 | 0.014722 | 0.048583 | 0.018403 | 0 | 0 | 0 | 0 | 0 | 0.011541 | 0.292274 | 4,530 | 154 | 78 | 29.415584 | 0.835933 | 0.48543 | 0 | 0.065574 | 0 | 0 | 0.044656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.213115 | false | 0 | 0.081967 | 0.131148 | 0.688525 | 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 |
e6e18370b5afccbf40f289a2f30b49388ba22083 | 6,468 | py | Python | src/compas/geometry/__init__.py | philianeles/compas | 129a5a7e9d8832495d2bbee6ce7c6463ab50f2d1 | [
"MIT"
] | null | null | null | src/compas/geometry/__init__.py | philianeles/compas | 129a5a7e9d8832495d2bbee6ce7c6463ab50f2d1 | [
"MIT"
] | null | null | null | src/compas/geometry/__init__.py | philianeles/compas | 129a5a7e9d8832495d2bbee6ce7c6463ab50f2d1 | [
"MIT"
] | null | null | null | """
********************************************************************************
compas.geometry
********************************************************************************
.. currentmodule:: compas.geometry
Functions
=========
Basic
-----
.. autosummary::
:toctree: generated/
:nosignatures:
... | 18.219718 | 80 | 0.721552 | 721 | 6,468 | 5.836338 | 0.165049 | 0.03327 | 0.083413 | 0.120485 | 0.008555 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204082 | 6,468 | 354 | 81 | 18.271186 | 0.817405 | 0.83859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.658537 | 0 | 0.658537 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fc154add23ac097133fb468a081f277f8f76143a | 98 | py | Python | boxsdk/version.py | KentaroAOKI/box-python-sdk | e52029b34d9c265375f6b4e7affe6b4b78e20e3a | [
"Apache-2.0"
] | 1 | 2020-05-18T14:25:10.000Z | 2020-05-18T14:25:10.000Z | boxsdk/version.py | KentaroAOKI/box-python-sdk | e52029b34d9c265375f6b4e7affe6b4b78e20e3a | [
"Apache-2.0"
] | null | null | null | boxsdk/version.py | KentaroAOKI/box-python-sdk | e52029b34d9c265375f6b4e7affe6b4b78e20e3a | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
from __future__ import unicode_literals, absolute_import
__version__ = '2.0.0'
| 14 | 56 | 0.765306 | 14 | 98 | 4.642857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.142857 | 98 | 6 | 57 | 16.333333 | 0.72619 | 0.132653 | 0 | 0 | 0 | 0 | 0.060241 | 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 |
fc2c38e4b7302b77b94fde994a8be4bba5b5b2b4 | 14,276 | py | Python | google/cloud/dlp/__init__.py | renovate-bot/python-dlp | f329cf691bc8fa49b70ea5a443b5dc36c3b59eb9 | [
"Apache-2.0"
] | null | null | null | google/cloud/dlp/__init__.py | renovate-bot/python-dlp | f329cf691bc8fa49b70ea5a443b5dc36c3b59eb9 | [
"Apache-2.0"
] | null | null | null | google/cloud/dlp/__init__.py | renovate-bot/python-dlp | f329cf691bc8fa49b70ea5a443b5dc36c3b59eb9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | 42.614925 | 87 | 0.812553 | 1,669 | 14,276 | 6.852007 | 0.140803 | 0.137286 | 0.205929 | 0.247114 | 0.475866 | 0.475866 | 0.475866 | 0.475866 | 0 | 0 | 0 | 0.013019 | 0.106823 | 14,276 | 334 | 88 | 42.742515 | 0.883852 | 0.039857 | 0 | 0 | 0 | 0 | 0.201373 | 0.097363 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.496835 | 0 | 0.496835 | 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 |
fc3ba49daa3a917ab870911f60cf31fcf3cf67a4 | 6,512 | py | Python | elastic_transport/_response.py | elastic/elastic-transport-python | fb63212c0c659931da7389ed335b6160d7bcde21 | [
"Apache-2.0"
] | 7 | 2020-10-21T17:48:51.000Z | 2022-02-15T22:14:59.000Z | elastic_transport/_response.py | elastic/elastic-transport-python | fb63212c0c659931da7389ed335b6160d7bcde21 | [
"Apache-2.0"
] | 25 | 2021-06-21T09:41:38.000Z | 2022-03-16T04:53:19.000Z | elastic_transport/_response.py | elastic/elastic-transport-python | fb63212c0c659931da7389ed335b6160d7bcde21 | [
"Apache-2.0"
] | 3 | 2020-10-25T09:56:24.000Z | 2022-02-02T18:07:29.000Z | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use ... | 27.59322 | 90 | 0.640356 | 786 | 6,512 | 5.030534 | 0.225191 | 0.058422 | 0.046029 | 0.040971 | 0.381639 | 0.287304 | 0.245321 | 0.182853 | 0.129236 | 0.105716 | 0 | 0.003259 | 0.246161 | 6,512 | 235 | 91 | 27.710638 | 0.8022 | 0.219287 | 0 | 0.361842 | 0 | 0 | 0.023729 | 0.007178 | 0 | 0 | 0 | 0 | 0 | 1 | 0.276316 | false | 0 | 0.013158 | 0.157895 | 0.552632 | 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 |
fc577f5b7f0f90848ccbbc017b5dee52e02adfa0 | 276 | py | Python | src/python/WMCore/WMBS/Oracle/Fileset/DeleteCheck.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 21 | 2015-11-19T16:18:45.000Z | 2021-12-02T18:20:39.000Z | src/python/WMCore/WMBS/Oracle/Fileset/DeleteCheck.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 5,671 | 2015-01-06T14:38:52.000Z | 2022-03-31T22:11:14.000Z | src/python/WMCore/WMBS/Oracle/Fileset/DeleteCheck.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 67 | 2015-01-21T15:55:38.000Z | 2022-02-03T19:53:13.000Z | #!/usr/bin/env python
"""
_DeleteCheckFileset_
Oracle implementation of DeleteCheckFileset
"""
__all__ = []
from WMCore.WMBS.MySQL.Fileset.DeleteCheck import DeleteCheck as MySQLDeleteCheck
class DeleteCheck(MySQLDeleteCheck):
"""
Same as MySQL version
"""
| 14.526316 | 81 | 0.73913 | 27 | 276 | 7.333333 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163043 | 276 | 18 | 82 | 15.333333 | 0.857143 | 0.391304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fc6a4b818f9d3b65ac935b11ff926c56b72dd0f2 | 91 | py | Python | python.py | Jpowell10/firstrepo | c41ac4a0526b6e56449df5adaa448091d930f731 | [
"CC0-1.0"
] | null | null | null | python.py | Jpowell10/firstrepo | c41ac4a0526b6e56449df5adaa448091d930f731 | [
"CC0-1.0"
] | null | null | null | python.py | Jpowell10/firstrepo | c41ac4a0526b6e56449df5adaa448091d930f731 | [
"CC0-1.0"
] | null | null | null | # Get car A Name
put "mustang"
puts "Lexus RH400"
print (Car mustang)
sys.stdin.readline()
| 15.166667 | 20 | 0.725275 | 15 | 91 | 4.4 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038961 | 0.153846 | 91 | 5 | 21 | 18.2 | 0.818182 | 0.153846 | 0 | 0 | 0 | 0 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fc737df98725ab53801cde9dfbf15f33516def9a | 145 | py | Python | client/endpoints/receive_test.py | nathantreid/app-driver-client-python | 6419093632d5cad5a58acf19c602831ad8383e71 | [
"MIT"
] | 1 | 2018-04-10T00:01:55.000Z | 2018-04-10T00:01:55.000Z | client/endpoints/receive_test.py | nathantreid/app-driver-client-python | 6419093632d5cad5a58acf19c602831ad8383e71 | [
"MIT"
] | null | null | null | client/endpoints/receive_test.py | nathantreid/app-driver-client-python | 6419093632d5cad5a58acf19c602831ad8383e71 | [
"MIT"
] | 1 | 2018-04-10T03:24:36.000Z | 2018-04-10T03:24:36.000Z | from endpoints import endpoint
@endpoint('receive-test')
def receive_test(client, data):
print('received test')
print(data['message'])
| 18.125 | 31 | 0.717241 | 18 | 145 | 5.722222 | 0.666667 | 0.213592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144828 | 145 | 7 | 32 | 20.714286 | 0.830645 | 0 | 0 | 0 | 0 | 0 | 0.22069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0.4 | 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 |
fc805279ff3e5008eef2e0ed21864f9db4b8af3b | 65 | py | Python | exeteracovid/__init__.py | deng113jie/ExeTeraCovid | ee9ec90983d7c2c711962c7fe9ac25251392e41b | [
"Apache-2.0"
] | 3 | 2021-03-23T14:23:06.000Z | 2021-12-29T16:54:42.000Z | exeteracovid/__init__.py | deng113jie/ExeTeraCovid | ee9ec90983d7c2c711962c7fe9ac25251392e41b | [
"Apache-2.0"
] | 29 | 2021-02-22T12:12:53.000Z | 2021-09-27T10:52:25.000Z | exeteracovid/__init__.py | deng113jie/ExeTeraCovid | ee9ec90983d7c2c711962c7fe9ac25251392e41b | [
"Apache-2.0"
] | 1 | 2021-03-08T15:00:30.000Z | 2021-03-08T15:00:30.000Z | from . import algorithms, processing
__version__ = '0.2.2.dev1'
| 16.25 | 36 | 0.738462 | 9 | 65 | 4.888889 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.138462 | 65 | 3 | 37 | 21.666667 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 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 |
fc99b1caa2987813fca5d51b8a48d5df99ca9774 | 990 | py | Python | build/lib/fast_sql/utils/exception.py | tosmart01/fastsql | 1a6e3140e89c5cf99a16569a55b2d28b45a2a42e | [
"MIT"
] | 134 | 2020-01-29T15:19:48.000Z | 2022-01-13T07:57:42.000Z | build/lib/fast_sql/utils/exception.py | tosmart01/fastsql | 1a6e3140e89c5cf99a16569a55b2d28b45a2a42e | [
"MIT"
] | 4 | 2020-04-27T12:31:57.000Z | 2021-11-24T13:59:29.000Z | build/lib/fast_sql/utils/exception.py | tosmart01/fastsql | 1a6e3140e89c5cf99a16569a55b2d28b45a2a42e | [
"MIT"
] | null | null | null |
class DB_Exceptions(Exception):
def __init__(self, name, value=None):
self.name = name
self.value = value
def __str__(self):
error_format = {"DB_CONNECT:":
f'''Currently only the following objects are supported
Oracle | mysql ->sq... | 28.285714 | 84 | 0.553535 | 109 | 990 | 4.733945 | 0.440367 | 0.093023 | 0.077519 | 0.104651 | 0.234496 | 0.234496 | 0.234496 | 0.234496 | 0.143411 | 0 | 0 | 0.001515 | 0.333333 | 990 | 34 | 85 | 29.117647 | 0.780303 | 0 | 0 | 0.181818 | 0 | 0 | 0.413549 | 0.07179 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0 | 0.136364 | 0.590909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fca2917daf3660656255df511f3edd281fdd5b93 | 466 | py | Python | App/migrations/0006_remove_song_special_remove_songfileinput_special.py | dlanghorne0428/StudioMusicPlayer | 54dabab896b96d90b68d6435edfd52fe6a866bc2 | [
"MIT"
] | null | null | null | App/migrations/0006_remove_song_special_remove_songfileinput_special.py | dlanghorne0428/StudioMusicPlayer | 54dabab896b96d90b68d6435edfd52fe6a866bc2 | [
"MIT"
] | 44 | 2022-01-21T01:33:59.000Z | 2022-03-26T23:35:25.000Z | App/migrations/0006_remove_song_special_remove_songfileinput_special.py | dlanghorne0428/StudioMusicPlayer | 54dabab896b96d90b68d6435edfd52fe6a866bc2 | [
"MIT"
] | null | null | null | # Generated by Django 4.0 on 2022-02-26 02:26
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('App', '0005_alter_song_dance_type_alter_songfileinput_dance_type'),
]
operations = [
migrations.RemoveField(
model_name='song',
... | 21.181818 | 77 | 0.594421 | 46 | 466 | 5.804348 | 0.608696 | 0.029963 | 0.194757 | 0.224719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055385 | 0.302575 | 466 | 21 | 78 | 22.190476 | 0.766154 | 0.092275 | 0 | 0.4 | 1 | 0 | 0.216152 | 0.135392 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5d77d7760e9b75ebb3ebbd9c751f73840e7b5626 | 243 | py | Python | masci_tools/cmdline/commands/tools.py | JuDFTteam/masci-tools | f08f004bf9db99b687a3c67d6c82e628a9231634 | [
"MIT"
] | 15 | 2018-11-07T10:04:46.000Z | 2021-11-08T20:51:08.000Z | masci_tools/cmdline/commands/tools.py | JuDFTteam/masci-tools | f08f004bf9db99b687a3c67d6c82e628a9231634 | [
"MIT"
] | 120 | 2020-02-04T15:37:42.000Z | 2022-03-17T10:49:40.000Z | masci_tools/cmdline/commands/tools.py | JuDFTteam/masci-tools | f08f004bf9db99b687a3c67d6c82e628a9231634 | [
"MIT"
] | 11 | 2018-10-18T08:09:07.000Z | 2022-02-22T15:45:21.000Z | # -*- coding: utf-8 -*-
"""
This module provides a place for registering click commands from the tools subpackage
into the main cli
"""
from .root import cli
from masci_tools.tools.fleur_inpxml_converter import inpxml
cli.add_command(inpxml)
| 24.3 | 85 | 0.773663 | 37 | 243 | 4.972973 | 0.72973 | 0.076087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004785 | 0.139918 | 243 | 9 | 86 | 27 | 0.875598 | 0.518519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5d7cc8a48b145c04c6ae801043dbf48c146d9a00 | 274 | py | Python | RIKEN/benchmarks/cosmoflow/implementations/implementation_fugaku_closed/cosmoflow-benchmark/models/__init__.py | bgerofi/hpc_results_v0.7 | 9cd9fa80ebc57db8438b1ac8dbd2d49232da6c2e | [
"Apache-2.0"
] | 3 | 2021-11-18T20:01:35.000Z | 2021-12-17T17:47:23.000Z | RIKEN/benchmarks/cosmoflow/implementations/implementation_fugaku_closed/cosmoflow-benchmark/models/__init__.py | bgerofi/hpc_results_v0.7 | 9cd9fa80ebc57db8438b1ac8dbd2d49232da6c2e | [
"Apache-2.0"
] | 1 | 2022-03-16T07:29:30.000Z | 2022-03-31T10:19:07.000Z | RIKEN/benchmarks/cosmoflow/implementations/implementation_fugaku_closed/cosmoflow-benchmark/models/__init__.py | bgerofi/hpc_results_v0.7 | 9cd9fa80ebc57db8438b1ac8dbd2d49232da6c2e | [
"Apache-2.0"
] | 3 | 2021-01-20T13:57:25.000Z | 2021-08-05T06:48:58.000Z | """
Keras example model factory functions.
"""
import importlib
def get_model(name, **model_args):
"""Factory function for constructing a model by name with args"""
module = importlib.import_module('.' + name, 'models')
return module.build_model(**model_args)
| 24.909091 | 69 | 0.711679 | 35 | 274 | 5.428571 | 0.6 | 0.094737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160584 | 274 | 10 | 70 | 27.4 | 0.826087 | 0.357664 | 0 | 0 | 0 | 0 | 0.042945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5d8f1681062d03e2b28ad0d9b4e175f56f3e0fc1 | 302 | py | Python | urequests.auth/urequests/auth.py | AEMICS/pycopy-lib | 56f4436123e30be9928662361098a71cae82eecc | [
"PSF-2.0"
] | 126 | 2019-07-19T14:42:41.000Z | 2022-03-21T22:22:19.000Z | urequests.auth/urequests/auth.py | AEMICS/pycopy-lib | 56f4436123e30be9928662361098a71cae82eecc | [
"PSF-2.0"
] | 38 | 2019-08-28T01:46:31.000Z | 2022-03-17T05:46:51.000Z | urequests.auth/urequests/auth.py | AEMICS/pycopy-lib | 56f4436123e30be9928662361098a71cae82eecc | [
"PSF-2.0"
] | 55 | 2019-08-02T09:32:33.000Z | 2021-12-22T11:25:51.000Z | # (c) 2021 Paul Sokolovsky, MIT license, https://github.com/pfalcon/pycopy-lib
import uwwwauth
class HTTPBasicAuth:
def __init__(self, user, passwd):
self.auth = uwwwauth.basic_resp(user, passwd)
def __call__(self, r):
r.headers["Authorization"] = self.auth
return r
| 25.166667 | 78 | 0.675497 | 39 | 302 | 5 | 0.74359 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016736 | 0.208609 | 302 | 11 | 79 | 27.454545 | 0.799163 | 0.251656 | 0 | 0 | 0 | 0 | 0.058036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.285714 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5d9b219e6deb908babc9e6632250848063b6cac3 | 834 | py | Python | tests/conftest.py | fgmacedo/soonerdb-python | 4e5fc48add05f4fb467fb49e741beb2a074a83c7 | [
"MIT"
] | 12 | 2020-12-18T14:34:58.000Z | 2022-03-14T19:53:40.000Z | tests/conftest.py | fgmacedo/soonerdb-python | 4e5fc48add05f4fb467fb49e741beb2a074a83c7 | [
"MIT"
] | null | null | null | tests/conftest.py | fgmacedo/soonerdb-python | 4e5fc48add05f4fb467fb49e741beb2a074a83c7 | [
"MIT"
] | 2 | 2020-12-18T15:09:09.000Z | 2022-01-09T15:12:40.000Z | from pathlib import Path
import pytest
@pytest.fixture
def db(tmpdir):
from soonerdb import SoonerDB
return SoonerDB(tmpdir)
@pytest.fixture
def SoonerDB(tmpdir):
from soonerdb import SoonerDB
return SoonerDB
@pytest.fixture
def SSTable(tmpdir):
from soonerdb.sstable import SSTable
return... | 17.375 | 47 | 0.715827 | 98 | 834 | 6.05102 | 0.244898 | 0.153457 | 0.18887 | 0.136594 | 0.344013 | 0.344013 | 0.155143 | 0 | 0 | 0 | 0 | 0.001475 | 0.18705 | 834 | 47 | 48 | 17.744681 | 0.873156 | 0 | 0 | 0.28125 | 0 | 0 | 0.067146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0.1875 | 0.03125 | 0.625 | 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 |
5da42ffcb63758f020419a14d24cd12d25703c91 | 111 | py | Python | code/list11.py | bagustris/python-signal-processing | 82185678d4eee90992127e9a0ac51e707fad2f28 | [
"CC-BY-3.0"
] | 1 | 2021-12-11T03:33:22.000Z | 2021-12-11T03:33:22.000Z | code/list11.py | bagustris/python-signal-processing | 82185678d4eee90992127e9a0ac51e707fad2f28 | [
"CC-BY-3.0"
] | null | null | null | code/list11.py | bagustris/python-signal-processing | 82185678d4eee90992127e9a0ac51e707fad2f28 | [
"CC-BY-3.0"
] | 1 | 2021-12-02T09:19:22.000Z | 2021-12-02T09:19:22.000Z | import numpy as np
x = np.array([1, 1, 1], dtype=np.float32)
print("x =", x)
print("item size: ", x.itemsize)
| 18.5 | 41 | 0.621622 | 21 | 111 | 3.285714 | 0.619048 | 0.057971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053763 | 0.162162 | 111 | 5 | 42 | 22.2 | 0.688172 | 0 | 0 | 0 | 0 | 0 | 0.127273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
5daa3b63a3fab038bf14f8b39e197abd74950969 | 168 | py | Python | day02/loop1.py | zhangyage/Python-jike | 069b1e7f0d18739c19f0980d2f88f99ed14b70b6 | [
"Apache-2.0"
] | null | null | null | day02/loop1.py | zhangyage/Python-jike | 069b1e7f0d18739c19f0980d2f88f99ed14b70b6 | [
"Apache-2.0"
] | null | null | null | day02/loop1.py | zhangyage/Python-jike | 069b1e7f0d18739c19f0980d2f88f99ed14b70b6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
b = 0
while b <= 10:
if b <= 6:
print b
else:
print "Hello"
b = b + 1
else:
print "over" | 12 | 22 | 0.446429 | 26 | 168 | 2.884615 | 0.692308 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057692 | 0.380952 | 168 | 14 | 23 | 12 | 0.663462 | 0.244048 | 0 | 0.222222 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5dbe3914da13e5a3ddb28cfef6debeb136d936ac | 624 | py | Python | league_api/types/LobbyEvent.py | cherez/league_api | 9a53bd75c2db233f0ac2ba689397d66302d4af02 | [
"MIT"
] | 1 | 2017-05-10T14:06:52.000Z | 2017-05-10T14:06:52.000Z | league_api/types/LobbyEvent.py | cherez/league_api | 9a53bd75c2db233f0ac2ba689397d66302d4af02 | [
"MIT"
] | null | null | null | league_api/types/LobbyEvent.py | cherez/league_api | 9a53bd75c2db233f0ac2ba689397d66302d4af02 | [
"MIT"
] | null | null | null | from league_api.api import ApiType
from typing import List, Mapping
class LobbyEvent(ApiType):
eventType: str = None # The type of event that was triggered
summonerId: str = None # The summonerId that triggered the event (Encrypted)
timestamp: str = None # Timestamp from the event
@property
d... | 23.111111 | 81 | 0.684295 | 79 | 624 | 5.316456 | 0.392405 | 0.05 | 0.047619 | 0.07619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248397 | 624 | 26 | 82 | 24 | 0.895522 | 0.18109 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 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 |
5dc2a7a377e03c49c28d83ea6e45df214f9837f6 | 817 | py | Python | src/spyd/game/room/client_event_handlers/kick_handler.py | DanSeraf/spyd | af893b7f9c67785613b25754eb2cf150523a9fe4 | [
"Zlib"
] | null | null | null | src/spyd/game/room/client_event_handlers/kick_handler.py | DanSeraf/spyd | af893b7f9c67785613b25754eb2cf150523a9fe4 | [
"Zlib"
] | null | null | null | src/spyd/game/room/client_event_handlers/kick_handler.py | DanSeraf/spyd | af893b7f9c67785613b25754eb2cf150523a9fe4 | [
"Zlib"
] | null | null | null | import time
from spyd.punitive_effects.punitive_effect_info import TimedExpiryInfo, EffectInfo
from spyd.registry_manager import register
from cube2common.constants import disconnect_types
from spyd.game.server_message_formatter import error
SECONDS_PER_HOUR = 60 * 60
@register('room_client_event_handler')
class Ki... | 31.423077 | 125 | 0.768666 | 104 | 817 | 5.759615 | 0.557692 | 0.080134 | 0.046745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.148103 | 817 | 25 | 126 | 32.68 | 0.852011 | 0.029376 | 0 | 0 | 0 | 0 | 0.08091 | 0.031606 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.533333 | 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 |
5dc322d17ee06a7eb68452af1ceaa600726a8fa0 | 167 | py | Python | ImageWoofTests/over9000_backup.py | muellerzr/FastAI-Experiments-and-tips | beb244b28658ad88be3a917c97f73709f4472d3d | [
"Apache-2.0"
] | 49 | 2019-07-27T14:26:46.000Z | 2021-07-23T01:16:58.000Z | ImageWoofTests/over9000_backup.py | muellerzr/FastAI-Experiments-and-tips | beb244b28658ad88be3a917c97f73709f4472d3d | [
"Apache-2.0"
] | 2 | 2020-03-22T21:57:58.000Z | 2021-02-26T16:28:33.000Z | ImageWoofTests/over9000_backup.py | muellerzr/FastAI-Experiments-and-tips | beb244b28658ad88be3a917c97f73709f4472d3d | [
"Apache-2.0"
] | 8 | 2019-10-22T23:37:19.000Z | 2022-02-23T06:50:47.000Z | def Over9000(params, alpha=0.5, k=6, *args, **kwargs):
ralamb = Ralamb(params, *args, **kwargs)
return Lookahead(ralamb, alpha, k)
RangerLars = Over9000 | 33.4 | 55 | 0.652695 | 22 | 167 | 4.954545 | 0.636364 | 0.183486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081481 | 0.191617 | 167 | 5 | 56 | 33.4 | 0.725926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5dde5e958a3ebaf83eed584bb307070c5f5d6e3b | 510 | py | Python | lecture_02_data_structures_functions/hw/hw5.py | DKudrik/epam_python_autumn_2020 | f805a2df4ec993760d32c755482f2cff13b89549 | [
"MIT"
] | 37 | 2020-10-29T16:52:06.000Z | 2022-03-08T18:21:04.000Z | lecture_02_data_structures_functions/hw/hw5.py | DKudrik/epam_python_autumn_2020 | f805a2df4ec993760d32c755482f2cff13b89549 | [
"MIT"
] | 3 | 2020-10-29T21:41:31.000Z | 2020-11-26T12:25:42.000Z | lecture_02_data_structures_functions/hw/hw5.py | DKudrik/epam_python_autumn_2020 | f805a2df4ec993760d32c755482f2cff13b89549 | [
"MIT"
] | 118 | 2020-10-29T20:59:28.000Z | 2022-03-10T12:31:19.000Z | """
Some of the functions have a bit cumbersome behavior when we deal with
positional and keyword arguments.
Write a function that accept any iterable of unique values and then
it behaves as range function:
import string
assert = custom_range(string.ascii_lowercase, 'g') == ['a', 'b', 'c', 'd', 'e', 'f']
assert = ... | 30 | 104 | 0.631373 | 80 | 510 | 3.95 | 0.65 | 0.113924 | 0.161392 | 0.218354 | 0.357595 | 0.357595 | 0.240506 | 0 | 0 | 0 | 0 | 0.002336 | 0.160784 | 510 | 16 | 105 | 31.875 | 0.735981 | 0.980392 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5df883c07be307fb2f6ff6b14354a5bc816ce662 | 180 | py | Python | html/semantics/scripting-1/the-script-element/cacheable-script-throw.py | ziransun/wpt | ab8f451eb39eb198584d547f5d965ef54df2a86a | [
"BSD-3-Clause"
] | 8 | 2019-04-09T21:13:05.000Z | 2021-11-23T17:25:18.000Z | html/semantics/scripting-1/the-script-element/cacheable-script-throw.py | ziransun/wpt | ab8f451eb39eb198584d547f5d965ef54df2a86a | [
"BSD-3-Clause"
] | 21 | 2021-03-31T19:48:22.000Z | 2022-03-12T00:24:53.000Z | html/semantics/scripting-1/the-script-element/cacheable-script-throw.py | ziransun/wpt | ab8f451eb39eb198584d547f5d965ef54df2a86a | [
"BSD-3-Clause"
] | 11 | 2019-04-12T01:20:16.000Z | 2021-11-23T17:25:02.000Z | def main(request, response):
headers = [("Content-Type", "text/javascript"), ("Cache-control", "public, max-age=100")]
body = "throw('fox');"
return 200, headers, body
| 36 | 93 | 0.627778 | 22 | 180 | 5.136364 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039735 | 0.161111 | 180 | 4 | 94 | 45 | 0.708609 | 0 | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5df999f305a0f4351dd56d24f429d772f5c790ef | 300 | py | Python | Basics/Basics4.py | mandscouto/python-exercises | 8e90124c25d2ea2874fc9e38867f0f1c8d9e034d | [
"MIT"
] | null | null | null | Basics/Basics4.py | mandscouto/python-exercises | 8e90124c25d2ea2874fc9e38867f0f1c8d9e034d | [
"MIT"
] | null | null | null | Basics/Basics4.py | mandscouto/python-exercises | 8e90124c25d2ea2874fc9e38867f0f1c8d9e034d | [
"MIT"
] | null | null | null | n1 = float(input("Insira a nota da primeira prova: "))
n2 = float(input("Insira a nota da segunda prova: "))
n3 = float(input("Insira a nota da terceira prova: "))
n4 = float(input("Insira a nota da quarta prova: "))
media = (n1+n2+n3+n4)/4
print("A média desse estudante foi {.:2f}: ",format(media)) | 50 | 59 | 0.68 | 51 | 300 | 4 | 0.470588 | 0.196078 | 0.313725 | 0.333333 | 0.45098 | 0.45098 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0.15 | 300 | 6 | 59 | 50 | 0.760784 | 0 | 0 | 0 | 0 | 0 | 0.548173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b905c09ef06239c3e0830edc25bb1211dad923a3 | 66 | py | Python | __init__.py | retmas-dv/ruciotmpl | 923934916b75c39f16100a545345e4771be4caaf | [
"MIT"
] | null | null | null | __init__.py | retmas-dv/ruciotmpl | 923934916b75c39f16100a545345e4771be4caaf | [
"MIT"
] | null | null | null | __init__.py | retmas-dv/ruciotmpl | 923934916b75c39f16100a545345e4771be4caaf | [
"MIT"
] | null | null | null | __author__ = 'Dmitry Golubkov'
from .ruciotmpl import DDMWrapper
| 16.5 | 33 | 0.80303 | 7 | 66 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 66 | 3 | 34 | 22 | 0.859649 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 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 |
f8d658b0c7f6f3adc6360c017186587dde107681 | 1,856 | py | Python | IceSpringRealOptional/vector.py | baijifeilong/IceSpringRealOptional | dc8eba7d246a907684d65c736a826b196f39bd44 | [
"MIT"
] | 1 | 2022-03-08T13:24:21.000Z | 2022-03-08T13:24:21.000Z | IceSpringRealOptional/vector.py | baijifeilong/IceSpringRealOptional | dc8eba7d246a907684d65c736a826b196f39bd44 | [
"MIT"
] | null | null | null | IceSpringRealOptional/vector.py | baijifeilong/IceSpringRealOptional | dc8eba7d246a907684d65c736a826b196f39bd44 | [
"MIT"
] | null | null | null | # Created by BaiJiFeiLong@gmail.com at 2022/1/10 16:56
from __future__ import annotations
from typing import Generic, Callable, Any, Union, Optional
from IceSpringRealOptional.generics import T, U
from IceSpringRealOptional.maybe import Maybe
class Vector(list, Generic[T]):
@classmethod
def of(cls, *args: ... | 34.37037 | 113 | 0.630927 | 264 | 1,856 | 4.420455 | 0.295455 | 0.077121 | 0.051414 | 0.041131 | 0.155955 | 0.137104 | 0.137104 | 0.137104 | 0.137104 | 0.131962 | 0 | 0.011204 | 0.230603 | 1,856 | 53 | 114 | 35.018868 | 0.806022 | 0.028017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.371429 | false | 0 | 0.114286 | 0.314286 | 0.885714 | 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 |
5d07a577ad0663f4aae510ad3c21122a337530ab | 928 | py | Python | cloudsky_backend/apps/log/models.py | minicloudsky/cloudsky_backend | 8b48593014af3ff22a57719c59e3de77765052b6 | [
"MIT"
] | null | null | null | cloudsky_backend/apps/log/models.py | minicloudsky/cloudsky_backend | 8b48593014af3ff22a57719c59e3de77765052b6 | [
"MIT"
] | null | null | null | cloudsky_backend/apps/log/models.py | minicloudsky/cloudsky_backend | 8b48593014af3ff22a57719c59e3de77765052b6 | [
"MIT"
] | null | null | null | from django.db import models
class ApiLog(models.Model):
api_name = models.CharField(verbose_name="接口名", max_length=200)
method = models.CharField(verbose_name="请求方法", max_length=20)
param = models.TextField(verbose_name="请求参数", max_length=5000, null=True, blank=True)
comment = models.CharField(verbos... | 42.181818 | 89 | 0.731681 | 127 | 928 | 5.086614 | 0.456693 | 0.221362 | 0.23839 | 0.281734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025284 | 0.147629 | 928 | 21 | 90 | 44.190476 | 0.791403 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0.058824 | 0.882353 | 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 |
5d3907dfb342d02119669a350a288480fd14cf11 | 224 | py | Python | site_project/coffee/admin.py | clockworkk/Personal-Stat-Tracker | 7d31c635f67cea1f7310b612b951b14777722a16 | [
"MIT"
] | null | null | null | site_project/coffee/admin.py | clockworkk/Personal-Stat-Tracker | 7d31c635f67cea1f7310b612b951b14777722a16 | [
"MIT"
] | null | null | null | site_project/coffee/admin.py | clockworkk/Personal-Stat-Tracker | 7d31c635f67cea1f7310b612b951b14777722a16 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Coffee
class CoffeeAdmin(admin.ModelAdmin):
list_display = ( 'consumption_date', 'coffee_count', 'location')
# Register your models here.
admin.site.register(Coffee)
| 20.363636 | 65 | 0.776786 | 28 | 224 | 6.107143 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120536 | 224 | 10 | 66 | 22.4 | 0.86802 | 0.116071 | 0 | 0 | 0 | 0 | 0.183673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5d535b5091331a29b4a23f609c26f248786ce911 | 1,654 | py | Python | rbnf/core/Trace.py | thautwarm/Ruiko | cceec88c90f7ec95c160cfda01bfc532610985e0 | [
"MIT"
] | 44 | 2018-06-08T04:52:02.000Z | 2021-08-06T04:59:56.000Z | rbnf/core/Trace.py | thautwarm/Ruiko | cceec88c90f7ec95c160cfda01bfc532610985e0 | [
"MIT"
] | 2 | 2018-06-21T14:42:27.000Z | 2018-12-10T06:15:46.000Z | rbnf/core/Trace.py | thautwarm/Ruiko | cceec88c90f7ec95c160cfda01bfc532610985e0 | [
"MIT"
] | 2 | 2018-06-18T10:43:20.000Z | 2019-05-06T13:51:51.000Z | from typing import Sequence, List, Generic, TypeVar
from ..color import *
T = TypeVar('T')
class Trace(Sequence[T], Generic[T]):
def __len__(self) -> int:
return self._virtual_len
def __getitem__(self, i: int) -> T:
if i >= self._virtual_len:
raise IndexError
return self.... | 24.323529 | 73 | 0.575574 | 210 | 1,654 | 4.17619 | 0.27619 | 0.188141 | 0.239453 | 0.085519 | 0.379704 | 0.125428 | 0.125428 | 0.125428 | 0.125428 | 0.125428 | 0 | 0.006189 | 0.316203 | 1,654 | 67 | 74 | 24.686567 | 0.769231 | 0 | 0 | 0.27451 | 0 | 0 | 0.008464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.254902 | false | 0 | 0.039216 | 0.098039 | 0.509804 | 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 |
5d5706b816b2e0927811ea0c6e00d87276d1c3b5 | 369 | py | Python | top/api/rest/NlpPreprocessRequest.py | looio/jst | 9d8e5bb7018ad8eeef36b233cd5e076106078f80 | [
"MIT"
] | null | null | null | top/api/rest/NlpPreprocessRequest.py | looio/jst | 9d8e5bb7018ad8eeef36b233cd5e076106078f80 | [
"MIT"
] | null | null | null | top/api/rest/NlpPreprocessRequest.py | looio/jst | 9d8e5bb7018ad8eeef36b233cd5e076106078f80 | [
"MIT"
] | null | null | null | '''
Created by auto_sdk on 2016.01.12
'''
from top.api.base import RestApi
class NlpPreprocessRequest(RestApi):
def __init__(self, domain='gw.api.taobao.com', port=80):
RestApi.__init__(self, domain, port)
self.func_type = None
self.keyword = None
self.text = None
def getapina... | 23.0625 | 60 | 0.655827 | 49 | 369 | 4.734694 | 0.693878 | 0.068966 | 0.12069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035088 | 0.227642 | 369 | 15 | 61 | 24.6 | 0.778947 | 0.089431 | 0 | 0 | 0 | 0 | 0.115854 | 0.064024 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 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 |
5d6124826a8aad5a4670228cc59c097f4988d2c3 | 137 | py | Python | scripts/portal/frittoEgg_Final.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 54 | 2019-04-16T23:24:48.000Z | 2021-12-18T11:41:50.000Z | scripts/portal/frittoEgg_Final.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 3 | 2019-05-19T15:19:41.000Z | 2020-04-27T16:29:16.000Z | scripts/portal/frittoEgg_Final.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 49 | 2020-11-25T23:29:16.000Z | 2022-03-26T16:20:24.000Z | sm.stopEvents()
sm.setPlayerAsSpeaker()
sm.sendNext("You found the dragon egg!")
sm.warp(993000601, 0) # Hidden Street : Secluded Forest) | 34.25 | 56 | 0.759124 | 19 | 137 | 5.473684 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081301 | 0.10219 | 137 | 4 | 56 | 34.25 | 0.764228 | 0.233577 | 0 | 0 | 0 | 0 | 0.240385 | 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 |
538f9e0a75c74667c32bfc52ab6305d3c736367b | 4,200 | py | Python | script_official/Script02_GetAllPageEditInfo.py | Lu-MPI/FactorioBot | c542a951f63e0eb5b966ee80527d01af88510a50 | [
"MIT"
] | null | null | null | script_official/Script02_GetAllPageEditInfo.py | Lu-MPI/FactorioBot | c542a951f63e0eb5b966ee80527d01af88510a50 | [
"MIT"
] | null | null | null | script_official/Script02_GetAllPageEditInfo.py | Lu-MPI/FactorioBot | c542a951f63e0eb5b966ee80527d01af88510a50 | [
"MIT"
] | null | null | null | """ script: get all pages name """
from tool.wiki import get_official_tool as get_tool
def main():
""" save all page name """
wiki = get_tool()
en_pages = wiki.pages_lang(lang='en')
for page in en_pages:
if not need_edit(page):
continue
content = wiki.page_info(page_id=... | 31.343284 | 73 | 0.552381 | 418 | 4,200 | 5.480861 | 0.227273 | 0.433872 | 0.623309 | 0.366652 | 0.378437 | 0.378437 | 0.361851 | 0.299433 | 0.299433 | 0.299433 | 0 | 0.004748 | 0.247857 | 4,200 | 133 | 74 | 31.578947 | 0.720481 | 0.04119 | 0 | 0.161905 | 0 | 0 | 0.075094 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038095 | false | 0 | 0.009524 | 0 | 0.133333 | 0.009524 | 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 |
53902928de05c4dd93955afc16e6108ed05c7fcd | 1,514 | py | Python | python_morsels/compact/test_compact.py | stefmolin/random-fun | 59bdca29e1d51d1a21f57540ea1de66e6fa090c9 | [
"MIT"
] | 3 | 2019-09-16T08:51:10.000Z | 2020-03-21T06:00:51.000Z | 4. compact/test_compact.py | jeury301/python-morsels | fdbe0b1c80120e2d1388808816538fea5dab8892 | [
"MIT"
] | null | null | null | 4. compact/test_compact.py | jeury301/python-morsels | fdbe0b1c80120e2d1388808816538fea5dab8892 | [
"MIT"
] | null | null | null | import unittest
from compact import compact
class CompactTests(unittest.TestCase):
"""Tests for compact."""
def assertIterableEqual(self, iterable1, iterable2):
self.assertEqual(list(iterable1), list(iterable2))
def test_no_duplicates(self):
self.assertIterableEqual(compact([1, 2, 3])... | 30.897959 | 79 | 0.647952 | 195 | 1,514 | 4.892308 | 0.282051 | 0.020964 | 0.220126 | 0.213836 | 0.440252 | 0.43501 | 0.429769 | 0.400419 | 0.287212 | 0.287212 | 0 | 0.041142 | 0.213342 | 1,514 | 49 | 80 | 30.897959 | 0.759866 | 0.107662 | 0 | 0.066667 | 0 | 0 | 0.005948 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.3 | false | 0 | 0.066667 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5395f65f283a3bf4ac097b9df8febc544aed9a7b | 1,261 | py | Python | scraper/storage_spiders/mahongvn.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | null | null | null | scraper/storage_spiders/mahongvn.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 10 | 2020-02-11T23:34:28.000Z | 2022-03-11T23:16:12.000Z | scraper/storage_spiders/mahongvn.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 3 | 2018-08-05T14:54:25.000Z | 2021-06-07T01:49:59.000Z | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "/html/body/div[@class='bg']/div[@class='detail-sp']/div[@class='conten-sp']/div[@class='nd-sp']/span",
'price' : "/html/body/div[@clas... | 46.703704 | 216 | 0.632831 | 177 | 1,261 | 4.429379 | 0.440678 | 0.193878 | 0.102041 | 0.081633 | 0.357143 | 0.357143 | 0.357143 | 0.285714 | 0.285714 | 0.285714 | 0 | 0.005282 | 0.099128 | 1,261 | 26 | 217 | 48.5 | 0.684859 | 0.095163 | 0 | 0 | 1 | 0.173913 | 0.620387 | 0.501757 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5397448f3f88df07fd258fcd37db567407accb63 | 2,063 | py | Python | Data/Graph/GraphDrawLight.py | ligenvin/RealTimeRayTracing | 4bb738cbcb89ede3d462d11ea23f44c997af8892 | [
"BSD-3-Clause"
] | 2 | 2021-12-19T08:26:31.000Z | 2022-01-24T09:17:32.000Z | Data/Graph/GraphDrawLight.py | ligenvin/RealTimeRayTracing | 4bb738cbcb89ede3d462d11ea23f44c997af8892 | [
"BSD-3-Clause"
] | null | null | null | Data/Graph/GraphDrawLight.py | ligenvin/RealTimeRayTracing | 4bb738cbcb89ede3d462d11ea23f44c997af8892 | [
"BSD-3-Clause"
] | null | null | null | from falcor import *
def render_graph_DefaultRenderGraph():
g = RenderGraph('DefaultRenderGraph')
loadRenderPassLibrary('MotionedShadow.dll')
loadRenderPassLibrary('MergePass.dll')
loadRenderPassLibrary('DrawLightQuad.dll')
loadRenderPassLibrary('Utils.dll')
loadRenderPassLibrary('CSM.dll')
... | 41.26 | 54 | 0.781386 | 145 | 2,063 | 11.089655 | 0.406897 | 0.537313 | 0.03607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112458 | 2,063 | 49 | 55 | 42.102041 | 0.878209 | 0 | 0 | 0 | 0 | 0 | 0.31556 | 0.076587 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0.829787 | 0.021277 | 0 | 0.06383 | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 3 |
53a3d7bc4173066d75f57ac4b5d08e510374949f | 609 | py | Python | forti_os_api_client/utils/misc/q_type.py | DamonGroove/forti_os_api_client | 27bbb00f1876cba7dda9de6655665cc790e40690 | [
"MIT"
] | null | null | null | forti_os_api_client/utils/misc/q_type.py | DamonGroove/forti_os_api_client | 27bbb00f1876cba7dda9de6655665cc790e40690 | [
"MIT"
] | null | null | null | forti_os_api_client/utils/misc/q_type.py | DamonGroove/forti_os_api_client | 27bbb00f1876cba7dda9de6655665cc790e40690 | [
"MIT"
] | null | null | null | from RestResponse import RestResponse
# If table is being used a blank query needs to be in place, sometimes . e.g. table("")
# table parameter e.g. fortigate_api_cmdb.system.interfaces
# body parameter e.g. {"status": "enable"}; Use getObject(table) to get usable parameters
# Get the QType from a CMDB table
def ge... | 30.45 | 89 | 0.72578 | 92 | 609 | 4.73913 | 0.5 | 0.013761 | 0.050459 | 0.068807 | 0.394495 | 0.394495 | 0.394495 | 0.279817 | 0.279817 | 0.279817 | 0 | 0 | 0.172414 | 609 | 19 | 90 | 32.052632 | 0.865079 | 0.518883 | 0 | 0.285714 | 0 | 0 | 0.097902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.285714 | 0.857143 | 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 |
53a5dbd47b4d326d8e64fd63310a7cef6e79011d | 125 | py | Python | UTILS/REACLIB/REACLIB_netsu.py | mmicromegas/ransX | 2faaa786e00cfd14dce0e18f0793cd0252428d2a | [
"BSD-2-Clause"
] | 4 | 2019-04-22T11:43:47.000Z | 2020-09-16T00:28:15.000Z | UTILS/REACLIB/REACLIB_netsu.py | mmicromegas/ransX | 2faaa786e00cfd14dce0e18f0793cd0252428d2a | [
"BSD-2-Clause"
] | 34 | 2019-07-01T09:11:00.000Z | 2022-03-30T13:35:43.000Z | UTILS/REACLIB/REACLIB_netsu.py | mmicromegas/ransX | 2faaa786e00cfd14dce0e18f0793cd0252428d2a | [
"BSD-2-Clause"
] | 1 | 2020-09-16T00:28:17.000Z | 2020-09-16T00:28:17.000Z | import numpy as np
import sys
class REACLIB_netsu:
def __init__(self, filename):
fnetsu = open(filename, 'r')
| 13.888889 | 36 | 0.672 | 17 | 125 | 4.647059 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24 | 125 | 8 | 37 | 15.625 | 0.831579 | 0 | 0 | 0 | 0 | 0 | 0.008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 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 |
53b1283525189a3d0102c4e5cda174b2d715f5a3 | 290 | py | Python | src/bitlawui/threads/__init__.py | Anenome/Bitlaw | d90dfece5123bce43623a9805ce0e5acd0d99e0b | [
"MIT"
] | 3 | 2015-05-29T20:37:32.000Z | 2020-08-20T05:43:13.000Z | src/bitlawui/threads/__init__.py | Anenome/Bitlaw | d90dfece5123bce43623a9805ce0e5acd0d99e0b | [
"MIT"
] | null | null | null | src/bitlawui/threads/__init__.py | Anenome/Bitlaw | d90dfece5123bce43623a9805ce0e5acd0d99e0b | [
"MIT"
] | null | null | null | # Copyright (c) 2014 Johan Burke
# Distributed under the MIT software license. See http://www.opensource.org/licenses/mit-license.php.
# Blank file, just to allow python to treat this folder as a package
# This folder contains the source for the various threads used by the Bitlaw client. | 58 | 102 | 0.77931 | 47 | 290 | 4.808511 | 0.829787 | 0.088496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016327 | 0.155172 | 290 | 5 | 103 | 58 | 0.906122 | 0.968966 | 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 |
53b34068642e4348a5b01b9e0e6cd791181d0388 | 59 | py | Python | setup.py | idonthaveafifaaddiction/pyupgrade | f569f0d85734afa286afa10cdeff8ea9f95adc39 | [
"MIT"
] | null | null | null | setup.py | idonthaveafifaaddiction/pyupgrade | f569f0d85734afa286afa10cdeff8ea9f95adc39 | [
"MIT"
] | null | null | null | setup.py | idonthaveafifaaddiction/pyupgrade | f569f0d85734afa286afa10cdeff8ea9f95adc39 | [
"MIT"
] | 2 | 2021-06-17T14:04:43.000Z | 2022-02-22T08:10:18.000Z | from setuptools import setup
setup(
name="pyupgrade"
)
| 11.8 | 28 | 0.728814 | 7 | 59 | 6.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186441 | 59 | 4 | 29 | 14.75 | 0.895833 | 0 | 0 | 0 | 0 | 0 | 0.152542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 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 |
53b79c4d710a79f412d3d4df0f1dd8c1c1602657 | 263 | py | Python | SourceCode/Module13/PartA/auto_test.py | hackettccp/CIS106SampleCode | 0717fa0f6dc0c48bc51f16ab44e7425b186a35c3 | [
"MIT"
] | 1 | 2019-10-23T03:25:43.000Z | 2019-10-23T03:25:43.000Z | SourceCode/Module13/PartA/auto_test.py | hackettccp/CIS106 | 0717fa0f6dc0c48bc51f16ab44e7425b186a35c3 | [
"MIT"
] | null | null | null | SourceCode/Module13/PartA/auto_test.py | hackettccp/CIS106 | 0717fa0f6dc0c48bc51f16ab44e7425b186a35c3 | [
"MIT"
] | null | null | null | #Imports the Car object
from car import Car
"""
Demonstrates a Car Object.
"""
def main() :
test_car = Car("Ford", "Focus", 2013, 2)
print(test_car.getmake())
print(test_car.getmodel())
print(test_car.getyear())
print(test_car.getdoors())
main()
| 14.611111 | 42 | 0.665399 | 38 | 263 | 4.473684 | 0.526316 | 0.205882 | 0.282353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022936 | 0.171103 | 263 | 17 | 43 | 15.470588 | 0.756881 | 0.08365 | 0 | 0 | 0 | 0 | 0.044118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0.5 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
53b8f266064661cd6c944ef9c7a71e570f9086a9 | 494 | py | Python | src/django-nonrel/tests/modeltests/signals/models.py | adamjmcgrath/glancydesign | 826ede7c639879d5b79ee730eb5e91422768cb02 | [
"BSD-3-Clause"
] | 790 | 2015-01-03T02:13:39.000Z | 2020-05-10T19:53:57.000Z | tests/modeltests/signals/models.py | mradziej/django | 5d38965743a369981c9a738a298f467f854a2919 | [
"BSD-3-Clause"
] | 1,361 | 2015-01-08T23:09:40.000Z | 2020-04-14T00:03:04.000Z | tests/modeltests/signals/models.py | mradziej/django | 5d38965743a369981c9a738a298f467f854a2919 | [
"BSD-3-Clause"
] | 155 | 2015-01-08T22:59:31.000Z | 2020-04-08T08:01:53.000Z | """
Testing signals before/after saving and deleting.
"""
from django.db import models
class Person(models.Model):
first_name = models.CharField(max_length=20)
last_name = models.CharField(max_length=20)
def __unicode__(self):
return u"%s %s" % (self.first_name, self.last_name)
class Car(models... | 23.52381 | 59 | 0.690283 | 70 | 494 | 4.642857 | 0.428571 | 0.184615 | 0.221538 | 0.295385 | 0.510769 | 0.430769 | 0.326154 | 0.326154 | 0.326154 | 0.326154 | 0 | 0.019802 | 0.182186 | 494 | 20 | 60 | 24.7 | 0.784653 | 0.09919 | 0 | 0.181818 | 0 | 0 | 0.022883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.181818 | 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 | 1 | 0 | 0 | 0 | 3 |
53b93f92fb5a442ceec0674fa0058d1430455afa | 11,433 | py | Python | scripts.py | arielbro/attractor_learning | 33693847f319d294a61a00f0d5c2c6457270fbfe | [
"MIT"
] | null | null | null | scripts.py | arielbro/attractor_learning | 33693847f319d294a61a00f0d5c2c6457270fbfe | [
"MIT"
] | null | null | null | scripts.py | arielbro/attractor_learning | 33693847f319d294a61a00f0d5c2c6457270fbfe | [
"MIT"
] | null | null | null | import time
import attractors, graphs, logic, stochastic, utility, ilp, sympy
def estimate_size(n, m, T, P):
# assumes find_symmetric_threshold model, and no input vertices
vars = P*(T + 1)*(n + 2) + n + 2*m - 2*P
# constr = 4*m + 2*(n+1)*(T+1)*P + 2*n*T*P + 2*(2*n+1)*(T-1)*P + 2*P + 1
constr = 8*n*T*... | 57.742424 | 122 | 0.56853 | 1,427 | 11,433 | 4.342677 | 0.156973 | 0.028239 | 0.056479 | 0.045183 | 0.549782 | 0.473455 | 0.422785 | 0.420526 | 0.387768 | 0.387768 | 0 | 0.045818 | 0.255489 | 11,433 | 198 | 123 | 57.742424 | 0.682213 | 0.944197 | 0 | 0 | 0 | 0 | 0.040598 | 0 | 0 | 0 | 0 | 0.005051 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
53c965cf4940cf2b176586e80d189d9fb9c0c119 | 487 | py | Python | test_agent/ai_interface.py | bbpp222006/maj_ai | 48cf458f621ef7d688757efc98747d20d9f60f3e | [
"MIT"
] | null | null | null | test_agent/ai_interface.py | bbpp222006/maj_ai | 48cf458f621ef7d688757efc98747d20d9f60f3e | [
"MIT"
] | null | null | null | test_agent/ai_interface.py | bbpp222006/maj_ai | 48cf458f621ef7d688757efc98747d20d9f60f3e | [
"MIT"
] | 1 | 2021-03-17T16:26:32.000Z | 2021-03-17T16:26:32.000Z | # -*- coding: utf-8 -*-
from client.mahjong_player import MainPlayer
__author__ = "Jianyang Tang"
__email__ = "jian4yang2.tang1@gmail.com"
class AIInterface(MainPlayer):
def to_discard_tile(self):
raise NotImplementedError
def should_call_kan(self, tile136, from_opponent):
raise NotImplemen... | 22.136364 | 56 | 0.728953 | 56 | 487 | 5.964286 | 0.660714 | 0.287425 | 0.242515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025445 | 0.193018 | 487 | 21 | 57 | 23.190476 | 0.824427 | 0.043121 | 0 | 0.333333 | 0 | 0 | 0.084233 | 0.056156 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.083333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
53cbb13e7c4edb375a4ca728f02155195d76ee43 | 6,678 | py | Python | Tools/c-analyzer/c_parser/_state_machine.py | oleksandr-pavlyk/cpython | eb002dbe0da9622245a355db5f0cd5aa2fc70b40 | [
"0BSD"
] | 52,316 | 2015-01-01T15:56:25.000Z | 2022-03-31T23:19:01.000Z | Tools/c-analyzer/c_parser/_state_machine.py | dalakatt/cpython | 2f49b97cc5426087b46515254b9a97a22ee8c807 | [
"0BSD"
] | 25,286 | 2015-03-03T23:18:02.000Z | 2022-03-31T23:17:27.000Z | Tools/c-analyzer/c_parser/_state_machine.py | dalakatt/cpython | 2f49b97cc5426087b46515254b9a97a22ee8c807 | [
"0BSD"
] | 31,623 | 2015-01-01T13:29:37.000Z | 2022-03-31T19:55:06.000Z |
f'''
struct {ANON_IDENTIFIER};
struct {{ ... }}
struct {IDENTIFIER} {{ ... }}
union {ANON_IDENTIFIER};
union {{ ... }}
union {IDENTIFIER} {{ ... }}
enum {ANON_IDENTIFIER};
enum {{ ... }}
enum {IDENTIFIER} {{ ... }}
typedef {VARTYPE} {IDENTIFIER};
typedef {IDENTIFIER};
... | 27.257143 | 76 | 0.138365 | 204 | 6,678 | 4.441176 | 0.406863 | 0.011038 | 0.089404 | 0.075055 | 0.067329 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01169 | 0.718179 | 6,678 | 244 | 77 | 27.368852 | 0.469713 | 0.338724 | 0 | 0.166667 | 0 | 0 | 0.674074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
53d297c14f3fa2605bb6a2c0e474f97c4e211280 | 4,746 | py | Python | temboo/core/Library/NPR/StoryFinder/MusicGenres.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 7 | 2016-03-07T02:07:21.000Z | 2022-01-21T02:22:41.000Z | temboo/core/Library/NPR/StoryFinder/MusicGenres.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | null | null | null | temboo/core/Library/NPR/StoryFinder/MusicGenres.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 8 | 2016-06-14T06:01:11.000Z | 2020-04-22T09:21:44.000Z | # -*- coding: utf-8 -*-
###############################################################################
#
# MusicGenres
# Retrieves a list of NPR music genres and corresponding IDs. Also used to look up the IDs of specific NPR music genres by specifying those as an optional parameter.
#
# Python versions 2.6, 2.7, 3.x... | 43.944444 | 259 | 0.692794 | 591 | 4,746 | 5.494078 | 0.313029 | 0.012319 | 0.018479 | 0.023098 | 0.288882 | 0.163844 | 0.147829 | 0.087773 | 0.087773 | 0.087773 | 0 | 0.003684 | 0.199326 | 4,746 | 107 | 260 | 44.35514 | 0.850789 | 0.527813 | 0 | 0 | 0 | 0 | 0.061715 | 0.019661 | 0 | 0 | 0 | 0 | 0 | 1 | 0.371429 | false | 0 | 0.142857 | 0.142857 | 0.828571 | 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 |
53e38dc15fdcb1c0f71b4b51671000c9f5c344b1 | 379 | py | Python | utils/tests.py | Boring-Mind/bank-transactions | e537114c0dd1402c9beb579d78c31519cb6da64b | [
"MIT"
] | null | null | null | utils/tests.py | Boring-Mind/bank-transactions | e537114c0dd1402c9beb579d78c31519cb6da64b | [
"MIT"
] | 3 | 2021-06-04T23:47:36.000Z | 2021-09-22T19:30:21.000Z | utils/tests.py | Boring-Mind/bank-transactions | e537114c0dd1402c9beb579d78c31519cb6da64b | [
"MIT"
] | null | null | null | import re
from .hashers import generate_unique_sha_512
def test_generate_unique_sha_512_returns_random_hashes():
"""Check that function returns two random sha-512 hashes."""
hash1 = generate_unique_sha_512()
hash2 = generate_unique_sha_512()
assert re.fullmatch(r'[\da-f]{64}', hash1)
assert re.f... | 25.266667 | 64 | 0.722955 | 56 | 379 | 4.607143 | 0.446429 | 0.116279 | 0.263566 | 0.310078 | 0.178295 | 0.178295 | 0.178295 | 0 | 0 | 0 | 0 | 0.078616 | 0.16095 | 379 | 14 | 65 | 27.071429 | 0.732704 | 0.14248 | 0 | 0 | 1 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
53ef255a71e7a0bb4a0cde886d9a6e99d47a6708 | 533 | py | Python | gym_envs/gym-cpu/gymcpu/__init__.py | pherna06/server-consumption | fee063aa4a1c65f1f8fa188abb59b8298a63907b | [
"Apache-2.0"
] | 1 | 2020-12-16T11:19:46.000Z | 2020-12-16T11:19:46.000Z | gym_envs/gym-cpu/gymcpu/__init__.py | pherna06/server-consumption | fee063aa4a1c65f1f8fa188abb59b8298a63907b | [
"Apache-2.0"
] | null | null | null | gym_envs/gym-cpu/gymcpu/__init__.py | pherna06/server-consumption | fee063aa4a1c65f1f8fa188abb59b8298a63907b | [
"Apache-2.0"
] | null | null | null | from gym.envs.registration import register
register(
id='CPUEnv00-v0',
entry_point='gymcpu.envs:CPUEnv00',
)
register(
id='CPUEnv01-v0',
entry_point='gymcpu.envs:CPUEnv01',
)
register(
id='CPUEnv02-v0',
entry_point='gymcpu.envs:CPUEnv02',
)
register(
id='CPUEnv03-v0',
entry_point='gymcpu.envs:CPUEnv03'
)
r... | 14.805556 | 42 | 0.73546 | 69 | 533 | 5.57971 | 0.26087 | 0.181818 | 0.218182 | 0.327273 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072765 | 0.097561 | 533 | 36 | 43 | 14.805556 | 0.727651 | 0 | 0 | 0.241379 | 0 | 0 | 0.428839 | 0.123596 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.034483 | 0 | 0.034483 | 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 |
9907969297aabccd10d91f6191da2e2166283f74 | 2,485 | py | Python | bokeh/protocol/exceptions.py | g-parki/bokeh | 664ead5306bba64609e734d4105c8aa8cfb76d81 | [
"BSD-3-Clause"
] | null | null | null | bokeh/protocol/exceptions.py | g-parki/bokeh | 664ead5306bba64609e734d4105c8aa8cfb76d81 | [
"BSD-3-Clause"
] | null | null | null | bokeh/protocol/exceptions.py | g-parki/bokeh | 664ead5306bba64609e734d4105c8aa8cfb76d81 | [
"BSD-3-Clause"
] | null | null | null | #-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2022, Anaconda, Inc., and Bokeh Contributors.
# All rights reserved.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#-------------------------------------------------------------------... | 32.697368 | 78 | 0.355332 | 147 | 2,485 | 5.92517 | 0.612245 | 0.058553 | 0.065442 | 0.082664 | 0.137773 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003613 | 0.109054 | 2,485 | 75 | 79 | 33.133333 | 0.389792 | 0.823742 | 0 | 0.214286 | 0 | 0 | 0.116959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.214286 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
54cd290de84cdb84750e25c588fd6c0033237944 | 138 | py | Python | text_summary/project_folder/Rawcode/directoryCheck.py | pdmorale/Summarization | b2e68b3ec7990ee6a20c9881cb5d2012cced0d57 | [
"MIT"
] | null | null | null | text_summary/project_folder/Rawcode/directoryCheck.py | pdmorale/Summarization | b2e68b3ec7990ee6a20c9881cb5d2012cced0d57 | [
"MIT"
] | null | null | null | text_summary/project_folder/Rawcode/directoryCheck.py | pdmorale/Summarization | b2e68b3ec7990ee6a20c9881cb5d2012cced0d57 | [
"MIT"
] | null | null | null | import os
def dirCheck():
dirpath = os.getcwd()
if dirpath == None:
return "here"
else:
return dirpath | 17.25 | 26 | 0.536232 | 15 | 138 | 4.933333 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.369565 | 138 | 8 | 27 | 17.25 | 0.850575 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 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 |
54ce6edd8a2ec4b4ba0ae50eebeda9145bda17c1 | 318 | py | Python | hw_asr/augmentations/wave_augmentations/Noisify.py | s-isaev/HW.01.ASR | 12963865ed29cbb29e33658f25f7da20f67d8421 | [
"MIT"
] | null | null | null | hw_asr/augmentations/wave_augmentations/Noisify.py | s-isaev/HW.01.ASR | 12963865ed29cbb29e33658f25f7da20f67d8421 | [
"MIT"
] | null | null | null | hw_asr/augmentations/wave_augmentations/Noisify.py | s-isaev/HW.01.ASR | 12963865ed29cbb29e33658f25f7da20f67d8421 | [
"MIT"
] | null | null | null | from torch import Tensor, distributions
from hw_asr.augmentations.base import AugmentationBase
class Noisify(AugmentationBase):
def __init__(self, *args, **kwargs):
self.noiser = distributions.Normal(0, 0.001)
def __call__(self, data: Tensor):
return data + self.noiser.sample(data.size())
| 26.5 | 54 | 0.720126 | 39 | 318 | 5.641026 | 0.666667 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019011 | 0.172956 | 318 | 11 | 55 | 28.909091 | 0.81749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0.142857 | 0.857143 | 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 |
54e66385d960a5132f0466fdcec6184b4869537d | 716 | py | Python | leprikon/migrations/0030_agreements.py | leprikon-cz/leprikon | b1bec36fb6bcf0220bffccca53b6f200f9e95910 | [
"BSD-3-Clause"
] | 4 | 2018-10-29T17:46:09.000Z | 2021-12-16T08:57:48.000Z | leprikon/migrations/0030_agreements.py | leprikon-cz/leprikon | b1bec36fb6bcf0220bffccca53b6f200f9e95910 | [
"BSD-3-Clause"
] | 68 | 2016-07-11T07:48:54.000Z | 2022-03-18T01:32:06.000Z | leprikon/migrations/0030_agreements.py | leprikon-cz/leprikon | b1bec36fb6bcf0220bffccca53b6f200f9e95910 | [
"BSD-3-Clause"
] | 2 | 2016-07-12T20:39:53.000Z | 2020-10-10T03:14:42.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.23 on 2019-09-01 17:33
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('leprikon', '0029_payment_restrictions'),
]
operat... | 24.689655 | 50 | 0.621508 | 68 | 716 | 6.308824 | 0.602941 | 0.146853 | 0.181818 | 0.20979 | 0.270396 | 0.270396 | 0.270396 | 0.270396 | 0 | 0 | 0 | 0.042389 | 0.27514 | 716 | 28 | 51 | 25.571429 | 0.7842 | 0.096369 | 0 | 0.428571 | 1 | 0 | 0.218944 | 0.159938 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
54f4236932c750828dd8e7c36019560a78c22c93 | 4,099 | py | Python | tests/unit/__init__.py | Paebbels/pyCLIAbstraction | 8918b07fc13526c7a0316a0497cd9a6309acc0cb | [
"Apache-2.0"
] | null | null | null | tests/unit/__init__.py | Paebbels/pyCLIAbstraction | 8918b07fc13526c7a0316a0497cd9a6309acc0cb | [
"Apache-2.0"
] | null | null | null | tests/unit/__init__.py | Paebbels/pyCLIAbstraction | 8918b07fc13526c7a0316a0497cd9a6309acc0cb | [
"Apache-2.0"
] | null | null | null | # ==================================================================================================================== #
# _____ _ _ ____ _ ___ _ _ _ _ _ #
# _ __ _ |_ _|__ ___ | (_)_ __ __ _ / ___| | |_ _| / \ | |__ _... | 77.339623 | 120 | 0.275677 | 174 | 4,099 | 5.494253 | 0.557471 | 0.062762 | 0.037657 | 0.056485 | 0.117155 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012513 | 0.532081 | 4,099 | 52 | 121 | 78.826923 | 0.485923 | 0.868505 | 0 | 0 | 0 | 0 | 0.076271 | 0.052966 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
07005615acdddebba6a1f9fe7a30135b6956a373 | 638 | py | Python | test/json_config_test.py | GabrielGCardoso/elastic_feeder | 46831bcc2307904d46082caf4e30baaf4981ea88 | [
"MIT"
] | null | null | null | test/json_config_test.py | GabrielGCardoso/elastic_feeder | 46831bcc2307904d46082caf4e30baaf4981ea88 | [
"MIT"
] | null | null | null | test/json_config_test.py | GabrielGCardoso/elastic_feeder | 46831bcc2307904d46082caf4e30baaf4981ea88 | [
"MIT"
] | null | null | null | import json
import unittest2
import os
class TestJsonMethods(unittest2.TestCase):
def test_json(self):
with open(os.path.join(os.path.dirname(__file__), '../config.json')) as json_file:
data = json.load(json_file)
self.assertTrue(len(str(data["database"]["host"])) > 0)... | 33.578947 | 90 | 0.600313 | 78 | 638 | 4.717949 | 0.423077 | 0.190217 | 0.230978 | 0.271739 | 0.445652 | 0.445652 | 0.358696 | 0 | 0 | 0 | 0 | 0.016 | 0.216301 | 638 | 18 | 91 | 35.444444 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0.128527 | 0 | 0 | 0 | 0 | 0 | 0.357143 | 1 | 0.071429 | false | 0.071429 | 0.214286 | 0 | 0.357143 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
070a929cf1ad729d35f9733543fd4a400fc03a0a | 135 | py | Python | {{cookiecutter.project_slug}}/backend/app/app/pusher/namespaces/root.py | sam-mosleh/full-stack-fastapi-postgresql | d2274eb6da91ecee2c54bb128251b804c5ba6a1d | [
"MIT"
] | null | null | null | {{cookiecutter.project_slug}}/backend/app/app/pusher/namespaces/root.py | sam-mosleh/full-stack-fastapi-postgresql | d2274eb6da91ecee2c54bb128251b804c5ba6a1d | [
"MIT"
] | null | null | null | {{cookiecutter.project_slug}}/backend/app/app/pusher/namespaces/root.py | sam-mosleh/full-stack-fastapi-postgresql | d2274eb6da91ecee2c54bb128251b804c5ba6a1d | [
"MIT"
] | null | null | null | from .base import AuthenticatedNamespace
class RootNamespace(AuthenticatedNamespace):
pass
root_namespace = RootNamespace("/")
| 15 | 44 | 0.792593 | 11 | 135 | 9.636364 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 135 | 8 | 45 | 16.875 | 0.905983 | 0 | 0 | 0 | 0 | 0 | 0.007407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
070f8ba75b2543001c55379efeb7150f32627682 | 3,697 | py | Python | mingw-w64-python/smoketests.py | jannick0/MINGW-packages | 5ecb95273bf946ccffb2cdb584a64cc04a380b28 | [
"BSD-3-Clause"
] | 1 | 2020-09-28T12:55:29.000Z | 2020-09-28T12:55:29.000Z | mingw-w64-python/smoketests.py | jannick0/MINGW-packages | 5ecb95273bf946ccffb2cdb584a64cc04a380b28 | [
"BSD-3-Clause"
] | 1 | 2018-06-22T18:18:01.000Z | 2018-06-22T18:18:01.000Z | mingw-w64-python/smoketests.py | jannick0/MINGW-packages | 5ecb95273bf946ccffb2cdb584a64cc04a380b28 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# Copyright 2017 Christoph Reiter
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify,... | 31.87069 | 78 | 0.685691 | 481 | 3,697 | 5.12474 | 0.430353 | 0.036917 | 0.017039 | 0.013387 | 0.061258 | 0.061258 | 0.061258 | 0.038134 | 0 | 0 | 0 | 0.007376 | 0.229916 | 3,697 | 115 | 79 | 32.147826 | 0.858447 | 0.360022 | 0 | 0.095238 | 0 | 0 | 0.03466 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.222222 | false | 0.031746 | 0.31746 | 0.015873 | 0.571429 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
0712d7a0abff5f8a15d440436b2fda0456f9ef08 | 477 | py | Python | src/yellowdog_client/model/best_compute_source_report_string_constraint.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | src/yellowdog_client/model/best_compute_source_report_string_constraint.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | src/yellowdog_client/model/best_compute_source_report_string_constraint.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass, field
from typing import Optional, Set
from .best_compute_source_report_constraint import BestComputeSourceReportConstraint
@dataclass
class BestComputeSourceReportStringConstraint(BestComputeSourceReportConstraint):
type: str = field(default="co.yellowdog.platform.model.BestCo... | 36.692308 | 112 | 0.813417 | 47 | 477 | 8.170213 | 0.617021 | 0.085938 | 0.072917 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 477 | 12 | 113 | 39.75 | 0.90566 | 0 | 0 | 0 | 0 | 0 | 0.140461 | 0.140461 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
07165b68a1c4721607b0378f2024f66a6aca091f | 341 | py | Python | documentation/docgen/TemporaryDirectory.py | adamrehn/language-toolbox | f86c39784b2a6952719afdd7c3769a6a6b5f2630 | [
"MIT"
] | 2 | 2018-12-18T07:53:06.000Z | 2020-02-28T11:13:21.000Z | documentation/docgen/TemporaryDirectory.py | adamrehn/language-toolbox | f86c39784b2a6952719afdd7c3769a6a6b5f2630 | [
"MIT"
] | null | null | null | documentation/docgen/TemporaryDirectory.py | adamrehn/language-toolbox | f86c39784b2a6952719afdd7c3769a6a6b5f2630 | [
"MIT"
] | null | null | null | from contextlib import AbstractContextManager
import tempfile
class TemporaryDirectory(AbstractContextManager):
def __init__(self):
self.path = None
def __enter__(self):
self.path = tempfile.mkdtemp()
return self
def __exit__(self, exc_type, exc_val, exc_tb):
try:
shutil.rmtree(tempDir)
except:
... | 17.947368 | 49 | 0.747801 | 41 | 341 | 5.853659 | 0.634146 | 0.066667 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173021 | 341 | 18 | 50 | 18.944444 | 0.851064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.071429 | 0.142857 | 0 | 0.571429 | 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 |
072467205ab6e7b3deae40d9fb91b5b9b0e879ec | 531 | py | Python | src/test_disemvowel.py | ChristopherSClosser/code-katas | f780cade58509e66635fa965d97ebd9dfa1cde02 | [
"MIT"
] | null | null | null | src/test_disemvowel.py | ChristopherSClosser/code-katas | f780cade58509e66635fa965d97ebd9dfa1cde02 | [
"MIT"
] | 13 | 2017-10-27T17:20:29.000Z | 2018-01-12T19:21:00.000Z | src/test_disemvowel.py | ChristopherSClosser/code-katas | f780cade58509e66635fa965d97ebd9dfa1cde02 | [
"MIT"
] | null | null | null | """Test disemvowel."""
import pytest
from disemvowel import disemvowel
def test_case_1():
"""test_case_1."""
assert disemvowel("This website is for losers LOL!") == "Ths wbst s fr lsrs LL!"
def test_case_2():
"""test_case_2."""
assert disemvowel("AEIOU This website is for losers LOL!") == " Ths wbst... | 21.24 | 91 | 0.649718 | 73 | 531 | 4.506849 | 0.383562 | 0.194529 | 0.133739 | 0.097264 | 0.316109 | 0.316109 | 0.316109 | 0.316109 | 0.316109 | 0.316109 | 0 | 0.00939 | 0.19774 | 531 | 24 | 92 | 22.125 | 0.762911 | 0.141243 | 0 | 0 | 0 | 0 | 0.274419 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.363636 | true | 0 | 0.181818 | 0 | 0.545455 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
073e03d01db93a2b7aef112c6b1a601afa3b315a | 369 | py | Python | pyqode/core/_designer_plugins/tab_widget_plugin.py | SunChuquin/pyqode.core | edf29204446e3679701e74343288cf692eb07d86 | [
"MIT"
] | 42 | 2018-05-02T07:07:27.000Z | 2022-02-01T19:49:49.000Z | pyqode/core/_designer_plugins/tab_widget_plugin.py | SunChuquin/pyqode.core | edf29204446e3679701e74343288cf692eb07d86 | [
"MIT"
] | 65 | 2018-03-08T11:53:13.000Z | 2018-09-17T09:00:09.000Z | Lib/site-packages/pyqode/core/_designer_plugins/tab_widget_plugin.py | fochoao/cpython | 3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9 | [
"bzip2-1.0.6",
"0BSD"
] | 24 | 2015-01-09T14:16:41.000Z | 2021-12-06T15:11:22.000Z | # -*- coding: utf-8 -*-
"""
This module contains the TabWidget designer plugin.
"""
from pyqode.core import widgets
from pyqode.core._designer_plugins import WidgetPlugin
class TabWidgetPlugin(WidgetPlugin):
"""
Designer plugin for TabWidget.
"""
def klass(self):
return widgets.TabWidget
... | 20.5 | 54 | 0.688347 | 40 | 369 | 6.3 | 0.625 | 0.111111 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003425 | 0.208672 | 369 | 17 | 55 | 21.705882 | 0.859589 | 0.284553 | 0 | 0 | 0 | 0 | 0.037344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0.285714 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
075c5319419c5849b78399131c914fcb7668ef1b | 1,086 | py | Python | featureswitches/feature.py | FeatureSwitches/featureswitches-python | 8175467f7d01d756d3332cdcca96d3e97a56f72a | [
"MIT"
] | null | null | null | featureswitches/feature.py | FeatureSwitches/featureswitches-python | 8175467f7d01d756d3332cdcca96d3e97a56f72a | [
"MIT"
] | null | null | null | featureswitches/feature.py | FeatureSwitches/featureswitches-python | 8175467f7d01d756d3332cdcca96d3e97a56f72a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
class Feature(object):
def __init__(self, key, enabled, rollout_progress=0, rollout_target=0, include_users=[], exclude_users=[], last_sync=None):
self._feature = {
'key': key,
'enabled': enabled,
'rollout_progress': rollout_progress,
... | 25.255814 | 127 | 0.61418 | 116 | 1,086 | 5.431034 | 0.198276 | 0.139683 | 0.155556 | 0.233333 | 0.250794 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003788 | 0.270718 | 1,086 | 42 | 128 | 25.857143 | 0.791667 | 0.019337 | 0 | 0.21875 | 0 | 0 | 0.14111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.21875 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
076727c9c77ce0290de7069ef8456882dd429d03 | 313 | py | Python | classes/player.py | catornot/Followed | f2ba4c972909d81c20f601840d316c31501c1f22 | [
"MIT"
] | null | null | null | classes/player.py | catornot/Followed | f2ba4c972909d81c20f601840d316c31501c1f22 | [
"MIT"
] | 2 | 2022-03-23T01:20:53.000Z | 2022-03-25T12:18:38.000Z | classes/player.py | catornot/Followed | f2ba4c972909d81c20f601840d316c31501c1f22 | [
"MIT"
] | null | null | null | from .block import Block
class Player(Block):
def __init__(self, x, y):
super().__init__(x, y, 32, 32, (0, 255, 255))
self.symbol = "p"
self.HasInventory = True
self.inventory = { "keys": 0 }
def ClearInventory( self ) -> None:
self.inventory = { "keys": 0 }
| 26.083333 | 53 | 0.546326 | 39 | 313 | 4.179487 | 0.564103 | 0.02454 | 0.208589 | 0.220859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059633 | 0.303514 | 313 | 11 | 54 | 28.454545 | 0.688073 | 0 | 0 | 0.222222 | 0 | 0 | 0.028754 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.444444 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4ad516d7bcde4465543b1d216adce7c1e741a9a6 | 539 | py | Python | Algo and DSA/LeetCode-Solutions-master/Python/minimum-absolute-difference-in-bst.py | Sourav692/FAANG-Interview-Preparation | f523e5c94d582328b3edc449ea16ac6ab28cdc81 | [
"Unlicense"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | Algo and DSA/LeetCode-Solutions-master/Python/minimum-absolute-difference-in-bst.py | Sourav692/FAANG-Interview-Preparation | f523e5c94d582328b3edc449ea16ac6ab28cdc81 | [
"Unlicense"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | Algo and DSA/LeetCode-Solutions-master/Python/minimum-absolute-difference-in-bst.py | Sourav692/FAANG-Interview-Preparation | f523e5c94d582328b3edc449ea16ac6ab28cdc81 | [
"Unlicense"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | # Time: O(n)
# Space: O(h)
class Solution(object):
def getMinimumDifference(self, root):
"""
:type root: TreeNode
:rtype: int
"""
def inorderTraversal(root, prev, result):
if not root:
return (result, prev)
result, prev = inorderTrav... | 26.95 | 68 | 0.564007 | 58 | 539 | 5.241379 | 0.517241 | 0.263158 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002717 | 0.317254 | 539 | 19 | 69 | 28.368421 | 0.82337 | 0.105751 | 0 | 0 | 0 | 0 | 0.006696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4adc5f5be8b37a0b80c36fc08cb0a75b40b57cd4 | 1,970 | py | Python | src/user.py | JasonPuglisi/emmental | ec60e79ac7fc7322445de84e4d431a151a1e8299 | [
"MIT"
] | 2 | 2019-01-29T10:19:36.000Z | 2020-02-05T20:25:58.000Z | src/user.py | JasonPuglisi/emmental | ec60e79ac7fc7322445de84e4d431a151a1e8299 | [
"MIT"
] | 54 | 2019-01-28T02:41:58.000Z | 2019-04-16T21:24:09.000Z | src/user.py | JasonPuglisi/emmental | ec60e79ac7fc7322445de84e4d431a151a1e8299 | [
"MIT"
] | 1 | 2020-02-05T20:26:17.000Z | 2020-02-05T20:26:17.000Z | """This module contains functionality for creating application users."""
import uuid
import bcrypt
from flask_login import UserMixin
from .db import (create_user_db, get_user_id_db, is_user_created_db,
is_valid_credential_pair_db)
class User(UserMixin):
"""Simple user object containing a user ID... | 32.295082 | 77 | 0.702538 | 263 | 1,970 | 5.022814 | 0.258555 | 0.059046 | 0.049205 | 0.087055 | 0.306586 | 0.191522 | 0.166541 | 0.166541 | 0.09084 | 0.09084 | 0 | 0.003193 | 0.205076 | 1,970 | 60 | 78 | 32.833333 | 0.840358 | 0.241117 | 0 | 0 | 0 | 0 | 0.000694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0.30303 | 0.121212 | 0.030303 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
ab07c1d83de9d16462b59b2089665d0152829f8d | 696 | py | Python | mygit/constants.py | 7Bpencil/mygit | 2eda11af904442b4a460a811af75a95c0845297f | [
"WTFPL"
] | null | null | null | mygit/constants.py | 7Bpencil/mygit | 2eda11af904442b4a460a811af75a95c0845297f | [
"WTFPL"
] | null | null | null | mygit/constants.py | 7Bpencil/mygit | 2eda11af904442b4a460a811af75a95c0845297f | [
"WTFPL"
] | null | null | null | from pathlib import Path
class Constants:
def __init__(self, workspace_path: Path):
self.workspace_path = workspace_path
self.mygit_ignore_path = self.workspace_path / ".mygit_ignore"
self.mygit_path = self.workspace_path / ".mygit"
self.mygit_log_path = self.mygit_path / "mygit.lo... | 43.5 | 70 | 0.699713 | 94 | 696 | 4.776596 | 0.202128 | 0.320713 | 0.231626 | 0.18931 | 0.209354 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 696 | 15 | 71 | 46.4 | 0.813406 | 0 | 0 | 0 | 0 | 0 | 0.087644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.230769 | 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 |
ab0ac063c976bc46767edff8f0accdca629f603b | 145 | py | Python | src/const.py | latonaio/k8s-deployment-controller | a2b92290ef6a6693a393d7481e2752390fa6cc10 | [
"MIT"
] | 10 | 2021-09-22T07:19:45.000Z | 2021-11-05T01:24:27.000Z | src/const.py | latonaio/k8s-deployment-controller | a2b92290ef6a6693a393d7481e2752390fa6cc10 | [
"MIT"
] | null | null | null | src/const.py | latonaio/k8s-deployment-controller | a2b92290ef6a6693a393d7481e2752390fa6cc10 | [
"MIT"
] | null | null | null | SUCCEED_STATUS_INDEX = "3"
FAILED_STATUS_INDEX = "900"
LOCAL_IMAGE_REGISTRY = "localhost:31112"
CLUSTER_IP = "ClusterIP"
NODE_PORT = "NodePort"
| 20.714286 | 40 | 0.77931 | 19 | 145 | 5.526316 | 0.894737 | 0.209524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 0.110345 | 145 | 6 | 41 | 24.166667 | 0.744186 | 0 | 0 | 0 | 0 | 0 | 0.248276 | 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 |
ab1a0c3c72108de64e40197f5fc5db48ff91bcc0 | 53,586 | py | Python | pysnmp-with-texts/CISCO-IPSEC-PROVISIONING-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CISCO-IPSEC-PROVISIONING-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CISCO-IPSEC-PROVISIONING-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-IPSEC-PROVISIONING-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-IPSEC-PROVISIONING-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:02:32 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python vers... | 188.683099 | 4,778 | 0.80312 | 6,101 | 53,586 | 7.053598 | 0.117358 | 0.041549 | 0.07271 | 0.00818 | 0.427313 | 0.308221 | 0.271042 | 0.252335 | 0.220082 | 0.200702 | 0 | 0.034066 | 0.096126 | 53,586 | 283 | 4,779 | 189.349823 | 0.854423 | 0.006532 | 0 | 0.043956 | 0 | 0.212454 | 0.463543 | 0.102918 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.040293 | 0 | 0.040293 | 0 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ab3ba4f4ccdddb89db1727470b5b36b56fee95c0 | 93,033 | py | Python | Sublime Text 3/Packages/CompletePHP/CompletePHPInlineDocsHover.py | anekeallen/Sublime-Text-3 | 8502b9089ca4223f8ba7ff168626a0dbe67713cb | [
"MIT"
] | null | null | null | Sublime Text 3/Packages/CompletePHP/CompletePHPInlineDocsHover.py | anekeallen/Sublime-Text-3 | 8502b9089ca4223f8ba7ff168626a0dbe67713cb | [
"MIT"
] | null | null | null | Sublime Text 3/Packages/CompletePHP/CompletePHPInlineDocsHover.py | anekeallen/Sublime-Text-3 | 8502b9089ca4223f8ba7ff168626a0dbe67713cb | [
"MIT"
] | null | null | null | import sublime
import sublime_plugin
import re
functions = ["abs", "acos", "acosh", "addcslashes", "addslashes", "apache_child_terminate", "apache_get_modules", "apache_get_version", "apache_getenv", "apache_lookup_uri", "apache_note", "apache_request_headers", "apache_reset_timeout", "apache_response_headers", "apach... | 1,525.131148 | 90,735 | 0.791601 | 12,522 | 93,033 | 5.266411 | 0.201406 | 0.005201 | 0.003397 | 0.00182 | 0.030783 | 0.003609 | 0.001683 | 0.000804 | 0.000804 | 0 | 0 | 0.003624 | 0.0567 | 93,033 | 61 | 90,736 | 1,525.131148 | 0.747818 | 0.002247 | 0 | 0.16 | 0 | 0 | 0.781801 | 0.255379 | 0 | 0 | 0 | 0 | 0.02 | 1 | 0.06 | false | 0.02 | 0.08 | 0 | 0.24 | 0.12 | 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 |
ab4a12f1ce9031417ba7e9534c0d1ed77fcf9c04 | 166 | py | Python | verysimplemodule/extras/multiplication.py | ElvinIruthayam/toolbox | 535f2f5e9d39d854561d8f94a7cc04b2ea327d73 | [
"MIT"
] | null | null | null | verysimplemodule/extras/multiplication.py | ElvinIruthayam/toolbox | 535f2f5e9d39d854561d8f94a7cc04b2ea327d73 | [
"MIT"
] | null | null | null | verysimplemodule/extras/multiplication.py | ElvinIruthayam/toolbox | 535f2f5e9d39d854561d8f94a7cc04b2ea327d73 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Feb 22 11:14:18 2022
@author: EIRU0001
"""
def multiplication(x,y):
z = x*y
return z
| 11.857143 | 36 | 0.481928 | 23 | 166 | 3.478261 | 0.869565 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161905 | 0.36747 | 166 | 14 | 37 | 11.857143 | 0.6 | 0.463855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
db53b65eb83686a6f899720e443e99e33717fc7b | 173 | py | Python | scratch/scratch13.py | veritas9872/fastMRI-kspace | 4c484b3183e9f06838b5ee108af283611c2e1e77 | [
"MIT"
] | 18 | 2019-10-21T23:54:28.000Z | 2021-12-23T08:16:04.000Z | scratch/scratch13.py | veritas9872/fastMRI-kspace | 4c484b3183e9f06838b5ee108af283611c2e1e77 | [
"MIT"
] | 1 | 2020-07-11T08:05:33.000Z | 2020-07-11T08:05:33.000Z | scratch/scratch13.py | veritas9872/fastMRI-kspace | 4c484b3183e9f06838b5ee108af283611c2e1e77 | [
"MIT"
] | 5 | 2019-11-23T14:11:54.000Z | 2022-02-19T13:39:15.000Z | from time import sleep
if __name__ == '__main__':
try:
sleep(10)
except KeyboardInterrupt:
print('It worked!')
else:
print('Finished!')
| 17.3 | 29 | 0.578035 | 18 | 173 | 5.111111 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 0.306358 | 173 | 9 | 30 | 19.222222 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.156069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
db627cfdb277b7870741b84023accf938622a1ff | 15,959 | py | Python | Sprites.py | Swinir/Chicken-The-Survivor | 8dd7123d4a65774febe47613121e88e9bbe3ed98 | [
"CC0-1.0"
] | null | null | null | Sprites.py | Swinir/Chicken-The-Survivor | 8dd7123d4a65774febe47613121e88e9bbe3ed98 | [
"CC0-1.0"
] | null | null | null | Sprites.py | Swinir/Chicken-The-Survivor | 8dd7123d4a65774febe47613121e88e9bbe3ed98 | [
"CC0-1.0"
] | null | null | null | # sprites classes
import pygame
from Settings import *
import random
import math
import time
vec = pygame.math.Vector2
class PLAYER(pygame.sprite.Sprite):
def __init__(self, game):
pygame.sprite.Sprite.__init__(self)
# import command of the game
self.game = game
... | 53.019934 | 282 | 0.582179 | 2,050 | 15,959 | 4.326341 | 0.086829 | 0.150073 | 0.204645 | 0.209043 | 0.771564 | 0.708197 | 0.669523 | 0.611681 | 0.510881 | 0.483369 | 0 | 0.021564 | 0.290996 | 15,959 | 301 | 283 | 53.019934 | 0.762262 | 0.036594 | 0 | 0.280992 | 0 | 0 | 0.163191 | 0.079503 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053719 | false | 0 | 0.020661 | 0 | 0.099174 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
db6c7d3703674f766b08636aaa5b363a170a5f69 | 287 | py | Python | backend-project/small_eod/collections/tests/test_factories.py | WlodzimierzKorza/small_eod | 027022bd71122a949a2787d0fb86518df80e48cd | [
"MIT"
] | 64 | 2019-12-30T11:24:03.000Z | 2021-06-24T01:04:56.000Z | backend-project/small_eod/collections/tests/test_factories.py | WlodzimierzKorza/small_eod | 027022bd71122a949a2787d0fb86518df80e48cd | [
"MIT"
] | 465 | 2018-06-13T21:43:43.000Z | 2022-01-04T23:33:56.000Z | backend-project/small_eod/collections/tests/test_factories.py | WlodzimierzKorza/small_eod | 027022bd71122a949a2787d0fb86518df80e48cd | [
"MIT"
] | 72 | 2018-12-02T19:47:03.000Z | 2022-01-04T22:54:49.000Z | from django.test import TestCase
from ...generic.tests.mixins import FactoryTestCaseMixin
from ..factories import CollectionFactory
from ..models import Collection
class CollectionFactoryTestCase(FactoryTestCaseMixin, TestCase):
FACTORY = CollectionFactory
MODEL = Collection
| 26.090909 | 64 | 0.818815 | 27 | 287 | 8.703704 | 0.62963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125436 | 287 | 10 | 65 | 28.7 | 0.936255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
db8d72680512f5765e56779aa34b18e49f3819b4 | 117 | py | Python | solutions/50/50.py | iknoom/LeetCode-Solutions | 85c034dfaf1455bcd69c19a2009197934d83f08e | [
"MIT"
] | 4 | 2021-01-13T11:37:57.000Z | 2021-01-17T04:56:46.000Z | solutions/50/50.py | iknoom/LeetCode-Solutions | 85c034dfaf1455bcd69c19a2009197934d83f08e | [
"MIT"
] | 9 | 2021-01-21T11:16:29.000Z | 2021-02-23T14:27:00.000Z | solutions/50/50.py | iknoom/LeetCode-Solutions | 85c034dfaf1455bcd69c19a2009197934d83f08e | [
"MIT"
] | 14 | 2021-01-14T14:36:07.000Z | 2021-02-05T09:17:10.000Z | class Solution:
def myPow(self, x,n):
ans = x**n
if abs(ans) <= 10**4:
return ans | 23.4 | 30 | 0.444444 | 17 | 117 | 3.058824 | 0.764706 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044118 | 0.418803 | 117 | 5 | 31 | 23.4 | 0.720588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
db955e76e734237ae477d9efb3b6669d1b8b11ab | 2,551 | py | Python | eval/eval_json.py | zokin/ultrapose | 7c6f418956f3b5908f0d739800a3511d44433864 | [
"MIT"
] | 60 | 2021-08-07T09:16:52.000Z | 2022-03-14T09:09:00.000Z | eval/eval_json.py | zokin/ultrapose | 7c6f418956f3b5908f0d739800a3511d44433864 | [
"MIT"
] | 4 | 2021-10-14T02:44:49.000Z | 2022-03-14T08:18:20.000Z | eval/eval_json.py | zokin/ultrapose | 7c6f418956f3b5908f0d739800a3511d44433864 | [
"MIT"
] | 11 | 2021-11-01T00:30:37.000Z | 2021-12-08T10:01:52.000Z | from detectron.datasets import json_dataset
from detectron.datasets import json_dataset_evaluator
import json
import cv2
if __name__ == '__main__':
# res_path = '/home/songkey/workspace/data/densepose-gen/result/yan.haonan/model_FCN_head.test.pkl'
# res_path = '/home/songkey/workspace/data/densepose-gen/resul... | 63.775 | 156 | 0.77499 | 360 | 2,551 | 5.138889 | 0.308333 | 0.056757 | 0.054054 | 0.077838 | 0.701081 | 0.684324 | 0.581081 | 0.535676 | 0.482703 | 0.422703 | 0 | 0.080631 | 0.105449 | 2,551 | 40 | 157 | 63.775 | 0.730061 | 0.366915 | 0 | 0 | 0 | 0.352941 | 0.666249 | 0.660614 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.235294 | 0 | 0.235294 | 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 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
db9d289a542e660ff6f4cfef75ce94b4ae15db16 | 6,210 | py | Python | ml_source/src/blocktorch/blocktorch/tests/objective_tests/test_fraud_detection.py | blocktorch/blocktorch | 044aa269813ab22c5fd27f84272e5fb540fc522b | [
"MIT"
] | 1 | 2021-09-23T12:23:02.000Z | 2021-09-23T12:23:02.000Z | ml_source/src/blocktorch/blocktorch/tests/objective_tests/test_fraud_detection.py | blocktorch/blocktorch | 044aa269813ab22c5fd27f84272e5fb540fc522b | [
"MIT"
] | null | null | null | ml_source/src/blocktorch/blocktorch/tests/objective_tests/test_fraud_detection.py | blocktorch/blocktorch | 044aa269813ab22c5fd27f84272e5fb540fc522b | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import pytest
from blocktorch import AutoMLSearch
from blocktorch.objectives import FraudCost
def test_fraud_objective(X_y_binary):
X, y = X_y_binary
objective = FraudCost(
retry_percentage=0.5,
interchange_fee=0.02,
fraud_payout_percentage=0.75... | 33.934426 | 88 | 0.68132 | 938 | 6,210 | 4.28145 | 0.132196 | 0.047311 | 0.052291 | 0.056026 | 0.789592 | 0.751494 | 0.730329 | 0.685259 | 0.649402 | 0.624502 | 0 | 0.039013 | 0.190982 | 6,210 | 182 | 89 | 34.120879 | 0.76035 | 0.005475 | 0 | 0.475524 | 0 | 0 | 0.08714 | 0 | 0 | 0 | 0 | 0 | 0.097902 | 1 | 0.06993 | false | 0 | 0.034965 | 0 | 0.104895 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.