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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2f3126cb594e2b5c23aa88908143ed5def3dce1d | 1,857 | py | Python | ML-final/svm_models.py | magicgh/machine_learing_homework | 545de605eadfdca8c82a50de3340f3b4100b0369 | [
"MIT"
] | 1 | 2021-09-09T12:30:23.000Z | 2021-09-09T12:30:23.000Z | ML-final/svm_models.py | magicgh/machine_learing_homework | 545de605eadfdca8c82a50de3340f3b4100b0369 | [
"MIT"
] | null | null | null | ML-final/svm_models.py | magicgh/machine_learing_homework | 545de605eadfdca8c82a50de3340f3b4100b0369 | [
"MIT"
] | null | null | null | import numpy as np
from sklearn.svm import LinearSVC
from sklearn.svm import SVC
from cvxopt import matrix, solvers
def hardlims(n):
"""
Symmetrical Hard Limit
"""
if n < 0:
return -1
else:
return 1
class SklearnLinearSVC:
def __init__(self, X_train, y_train, dual=False, max_... | 29.951613 | 81 | 0.579968 | 293 | 1,857 | 3.508532 | 0.283276 | 0.038911 | 0.029183 | 0.048638 | 0.229572 | 0.202335 | 0.202335 | 0.136187 | 0.136187 | 0.136187 | 0 | 0.008895 | 0.27356 | 1,857 | 61 | 82 | 30.442623 | 0.75315 | 0.033926 | 0 | 0.113636 | 0 | 0 | 0.007312 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0 | 0.090909 | 0.068182 | 0.5 | 0.022727 | 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 | 0 | 0 | 0 | 0 | 1 |
2f3148650a287c7c829aaaf526ec3c86b0a4b6de | 812 | py | Python | pymt5adapter/types.py | arrkiin/pymt5adapter | 24666263abcaabd8b0af959690a41a79694e8cd8 | [
"BSD-2-Clause"
] | 69 | 2020-04-06T17:52:28.000Z | 2022-03-07T12:23:52.000Z | pymt5adapter/types.py | metaperl/pymt5adapter | 6b4ec33b00bc0b66d0a48fbe3bbe419832a218c0 | [
"BSD-2-Clause"
] | 10 | 2020-04-18T14:07:41.000Z | 2021-01-27T15:46:53.000Z | pymt5adapter/types.py | metaperl/pymt5adapter | 6b4ec33b00bc0b66d0a48fbe3bbe419832a218c0 | [
"BSD-2-Clause"
] | 19 | 2020-06-19T22:28:04.000Z | 2022-03-30T12:04:05.000Z | import MetaTrader5 as _mt5
from collections import namedtuple
from typing import Callable
from typing import Iterable
from typing import Tuple
from typing import Union
from typing import Any
from typing import Optional
from typing import Type
# custom namedtuples
CopyRate = namedtuple("CopyRate", "time, open, high, l... | 31.230769 | 99 | 0.814039 | 99 | 812 | 6.525253 | 0.444444 | 0.108359 | 0.173375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018233 | 0.121921 | 812 | 25 | 100 | 32.48 | 0.887798 | 0.064039 | 0 | 0 | 0 | 0 | 0.179657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2f3a1dda9dda0e0a550a7d24b37fff23b969df46 | 1,066 | py | Python | codechef/LRNDSA01/MULTHREE.py | sreshtha10/CC | 77147ce863dab64ecb2f76dd09560d963c763fa0 | [
"MIT"
] | 2 | 2021-11-26T13:50:59.000Z | 2021-11-26T14:00:16.000Z | codechef/LRNDSA01/MULTHREE.py | sreshthamehrotra00/CC | 77147ce863dab64ecb2f76dd09560d963c763fa0 | [
"MIT"
] | null | null | null | codechef/LRNDSA01/MULTHREE.py | sreshthamehrotra00/CC | 77147ce863dab64ecb2f76dd09560d963c763fa0 | [
"MIT"
] | null | null | null | try:
test = int(input().strip())
while test!=0:
k,d0,d1 = map(int,input().strip().split())
d2 = (d1+d0)%10
if k == 2:
if (d1+d0)%3 == 0:
print("YES")
continue
else:
print("NO")
continue
elif k... | 24.227273 | 50 | 0.28424 | 122 | 1,066 | 2.483607 | 0.278689 | 0.079208 | 0.09901 | 0.09901 | 0.379538 | 0.379538 | 0.379538 | 0.379538 | 0.379538 | 0.257426 | 0 | 0.118896 | 0.558161 | 1,066 | 43 | 51 | 24.790698 | 0.524416 | 0 | 0 | 0.4 | 0 | 0 | 0.014071 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.025 | 0 | 0 | 0 | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 1 |
2f4771a3cd95257918c241144d00a7394469ea3b | 2,871 | py | Python | apiritif/feeders.py | greyfenrir/apiritif | bcffa95a275451014719c7b35637fcadb35a69ed | [
"Apache-2.0"
] | null | null | null | apiritif/feeders.py | greyfenrir/apiritif | bcffa95a275451014719c7b35637fcadb35a69ed | [
"Apache-2.0"
] | null | null | null | apiritif/feeders.py | greyfenrir/apiritif | bcffa95a275451014719c7b35637fcadb35a69ed | [
"Apache-2.0"
] | null | null | null | """
Data feeders for Apiritif.
Copyright 2018 BlazeMeter 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 ag... | 27.084906 | 92 | 0.622431 | 379 | 2,871 | 4.617414 | 0.387863 | 0.044 | 0.018857 | 0.018286 | 0.081143 | 0.081143 | 0.081143 | 0.081143 | 0.081143 | 0 | 0 | 0.007278 | 0.282132 | 2,871 | 106 | 93 | 27.084906 | 0.841824 | 0.26193 | 0 | 0.292308 | 0 | 0 | 0.023278 | 0 | 0 | 0 | 0 | 0.009434 | 0 | 1 | 0.2 | false | 0.061538 | 0.061538 | 0.015385 | 0.353846 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
2f48d3a5824f20df05043ba54e9c86db4c98ed63 | 2,363 | py | Python | Server/app/docs/interview/grading.py | Jaws-bar/Entry3.0-InterviewSystem | 15385f9982c0c4e9aed970263b7ea1e50d6163ca | [
"MIT"
] | null | null | null | Server/app/docs/interview/grading.py | Jaws-bar/Entry3.0-InterviewSystem | 15385f9982c0c4e9aed970263b7ea1e50d6163ca | [
"MIT"
] | null | null | null | Server/app/docs/interview/grading.py | Jaws-bar/Entry3.0-InterviewSystem | 15385f9982c0c4e9aed970263b7ea1e50d6163ca | [
"MIT"
] | null | null | null | GRADING_POST = {
'tags': ['Interview'],
'description': '면접 결과 제출',
'parameters': [
{
'name': 'access_token',
'description': '엑세스 토큰, 헤더의 Authentication',
'in': ' header',
'type': 'str',
'required': True
},
{
'nam... | 23.39604 | 56 | 0.325434 | 153 | 2,363 | 4.986928 | 0.339869 | 0.141547 | 0.146789 | 0.068152 | 0.665793 | 0.665793 | 0.584535 | 0.579292 | 0.579292 | 0.579292 | 0 | 0.012821 | 0.504867 | 2,363 | 101 | 57 | 23.39604 | 0.639316 | 0 | 0 | 0.51 | 0 | 0 | 0.312183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 1 |
2f4b8e69ef2998935b89a8859952d9b49364375d | 1,119 | py | Python | data/core-configuration/packs/core-functions/module/frandom.py | naparuba/opsbro | 98618a002cd47250d21e7b877a24448fc95fec80 | [
"MIT"
] | 32 | 2017-08-29T08:57:16.000Z | 2021-04-21T08:53:04.000Z | data/core-configuration/packs/core-functions/module/frandom.py | naparuba/opsbro | 98618a002cd47250d21e7b877a24448fc95fec80 | [
"MIT"
] | 108 | 2017-09-04T19:59:28.000Z | 2022-03-31T08:12:07.000Z | data/core-configuration/packs/core-functions/module/frandom.py | naparuba/kunai | 98618a002cd47250d21e7b877a24448fc95fec80 | [
"MIT"
] | 8 | 2015-02-03T12:30:53.000Z | 2017-07-29T19:43:54.000Z | import random as random_lib
import copy
from opsbro.evaluater import export_evaluater_function
FUNCTION_GROUP = 'random'
@export_evaluater_function(function_group=FUNCTION_GROUP)
def random():
"""**random()** -> Returns a random float between 0 and 1
<code>
Example:
random()
Returns:
... | 16.701493 | 102 | 0.664879 | 145 | 1,119 | 4.917241 | 0.303448 | 0.12763 | 0.129032 | 0.173913 | 0.370266 | 0.319776 | 0.235624 | 0.235624 | 0.162693 | 0 | 0 | 0.038018 | 0.224307 | 1,119 | 66 | 103 | 16.954545 | 0.78341 | 0.487042 | 0 | 0.2 | 0 | 0 | 0.010753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2f4d3a74346de2bbfa4ba5f329a1a6a9410131ae | 837 | py | Python | modulo 3/aulas/1.0 - Tuplas ( ).py | GabrielBrotas/Python | 9441b6b86ff3cb7fa5921b508c484075adac08b3 | [
"MIT"
] | null | null | null | modulo 3/aulas/1.0 - Tuplas ( ).py | GabrielBrotas/Python | 9441b6b86ff3cb7fa5921b508c484075adac08b3 | [
"MIT"
] | null | null | null | modulo 3/aulas/1.0 - Tuplas ( ).py | GabrielBrotas/Python | 9441b6b86ff3cb7fa5921b508c484075adac08b3 | [
"MIT"
] | null | null | null |
# Tuplas sao imutaveis, nao se pode substituir um valor enquanto o programa estiver rodando
# oq foi definido no inicio permanece ate o final
lanche = ('hamburguer', 'pizza', 'suco', 'refri')
print(lanche[1])
print(lanche[-1]) #-1 mostra o ultimo elemento
print(sorted(lanche)) #para organizar a lista em ordem alfa... | 34.875 | 120 | 0.67264 | 132 | 837 | 4.265152 | 0.560606 | 0.058615 | 0.042629 | 0.039076 | 0.078153 | 0.078153 | 0 | 0 | 0 | 0 | 0 | 0.018265 | 0.215054 | 837 | 23 | 121 | 36.391304 | 0.838661 | 0.506571 | 0 | 0 | 0 | 0 | 0.199005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.692308 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
2f4dc7d2908cd1fd6ee7113f9eecf08bd25e78af | 32,204 | py | Python | assets/code/test.py | sfermigier/fermigier.com-gridsome | cd02a8aba46754cbbe8d080c48ee21595061b4c4 | [
"MIT"
] | null | null | null | assets/code/test.py | sfermigier/fermigier.com-gridsome | cd02a8aba46754cbbe8d080c48ee21595061b4c4 | [
"MIT"
] | 12 | 2020-05-22T07:48:50.000Z | 2022-02-26T16:04:59.000Z | assets/code/test.py | sfermigier/fermigier.com-gridsome | cd02a8aba46754cbbe8d080c48ee21595061b4c4 | [
"MIT"
] | null | null | null | #!/home/fermigier/bin/python
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should ac... | 33.165808 | 111 | 0.584089 | 4,020 | 32,204 | 4.614925 | 0.19801 | 0.010026 | 0.005929 | 0.006468 | 0.102145 | 0.075949 | 0.050183 | 0.046734 | 0.040103 | 0.035899 | 0 | 0.00728 | 0.321761 | 32,204 | 970 | 112 | 33.2 | 0.842093 | 0.075767 | 0 | 0.151659 | 0 | 0 | 0.061035 | 0.001001 | 0 | 0 | 0.000455 | 0 | 0.00158 | 0 | null | null | 0.00316 | 0.055292 | null | null | 0.063191 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2f548573e773fda1628ca2b0e066f93c13382d93 | 637 | py | Python | src/Python/201-300/283.MoveZeroes.py | Peefy/PeefyLeetCode | 92156e4b48ba19e3f02e4286b9f733e9769a1dee | [
"Apache-2.0"
] | 2 | 2018-05-03T07:50:03.000Z | 2018-06-17T04:32:13.000Z | src/Python/201-300/283.MoveZeroes.py | Peefy/PeefyLeetCode | 92156e4b48ba19e3f02e4286b9f733e9769a1dee | [
"Apache-2.0"
] | null | null | null | src/Python/201-300/283.MoveZeroes.py | Peefy/PeefyLeetCode | 92156e4b48ba19e3f02e4286b9f733e9769a1dee | [
"Apache-2.0"
] | 3 | 2018-11-09T14:18:11.000Z | 2021-11-17T15:23:52.000Z |
class Solution:
def moveZeroes(self, nums):
"""
:type nums: List[int]
:rtype: void Do not return anything, modify nums in-place instead.
"""
n = len(nums)
zeroindex = -1
for i in range(n):
if nums[i] == 0 and zeroindex == -1:
zeroi... | 26.541667 | 74 | 0.478807 | 79 | 637 | 3.759494 | 0.493671 | 0.13468 | 0.060606 | 0.060606 | 0.127946 | 0.127946 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 0.392465 | 637 | 23 | 75 | 27.695652 | 0.72093 | 0.138148 | 0 | 0 | 0 | 0 | 0.015504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0 | 0 | 0.176471 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2f56c9539773bd25685c40b0524a63d9675f9247 | 4,294 | py | Python | DontOverfit2/Overfit.py | blakefren/Kaggle | 557e515a9fbb9a6233bd570dcee116809b41c88b | [
"MIT"
] | null | null | null | DontOverfit2/Overfit.py | blakefren/Kaggle | 557e515a9fbb9a6233bd570dcee116809b41c88b | [
"MIT"
] | null | null | null | DontOverfit2/Overfit.py | blakefren/Kaggle | 557e515a9fbb9a6233bd570dcee116809b41c88b | [
"MIT"
] | null | null | null | # Starter code for Kaggle - Don't Overfit! II dataset.
#
# Objective: make predictions on a dataset after only having trained a model on ~10% of it. Don't overfit.
#
# By Blake French
import os
import re
import scipy as sp
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
... | 31.807407 | 110 | 0.648812 | 583 | 4,294 | 4.653516 | 0.329331 | 0.053078 | 0.035017 | 0.018798 | 0.192776 | 0.17066 | 0.143384 | 0.053078 | 0.053078 | 0.031699 | 0 | 0.014601 | 0.218444 | 4,294 | 134 | 111 | 32.044776 | 0.793802 | 0.183978 | 0 | 0.064103 | 0 | 0 | 0.071811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0.064103 | 0.141026 | 0 | 0.179487 | 0.076923 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
2f63b08ede72610a67dc6a76b99cbb54be81b79c | 1,926 | py | Python | colored_logs/models/animation_type.py | kkristof200/ColoredLogs | 85fa58884f2547559b4842c7bd23e2b98042e200 | [
"MIT"
] | 35 | 2020-05-02T18:25:01.000Z | 2020-05-03T14:40:58.000Z | colored_logs/models/animation_type.py | kkristof200/ColoredLogs | 85fa58884f2547559b4842c7bd23e2b98042e200 | [
"MIT"
] | 10 | 2020-05-03T20:40:50.000Z | 2020-05-12T23:02:46.000Z | colored_logs/models/animation_type.py | kkristof200/ColoredLogs | 85fa58884f2547559b4842c7bd23e2b98042e200 | [
"MIT"
] | 5 | 2020-05-04T03:17:44.000Z | 2022-03-24T15:38:03.000Z | from enum import Enum
class AnimationType(Enum):
Dots = ['. ', '.. ', '...']
Wave = [
'⸳·⸳․․․․․',
'․⸳·⸳․․․․',
'․․⸳·⸳․․․',
'․․․⸳·⸳․․',
'․․․․⸳·⸳․',
'․․․․․⸳·⸳',
'⸳․․․․․⸳·',
'·⸳․․․․․⸳'
]
WaveAutoReverse = [
'⸳·⸳․․․․․',
'․⸳·⸳․․... | 35.018182 | 124 | 0.134476 | 179 | 1,926 | 4.832402 | 0.486034 | 0.006936 | 0.010405 | 0.013873 | 0.411561 | 0.411561 | 0.286705 | 0.17341 | 0.025434 | 0.025434 | 0 | 0.005072 | 0.283489 | 1,926 | 54 | 125 | 35.666667 | 0.182609 | 0 | 0 | 0.283019 | 0 | 0 | 0.330737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018868 | 0 | 0.396226 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2f66ab12c8fc02d739de81165b27ee22012b04b6 | 4,323 | py | Python | visitor/views.py | wsyzxxxx/Teaching_management | 2fa6abb9f74f295cd5570fb07a4d9d49857c0742 | [
"MIT"
] | null | null | null | visitor/views.py | wsyzxxxx/Teaching_management | 2fa6abb9f74f295cd5570fb07a4d9d49857c0742 | [
"MIT"
] | null | null | null | visitor/views.py | wsyzxxxx/Teaching_management | 2fa6abb9f74f295cd5570fb07a4d9d49857c0742 | [
"MIT"
] | 1 | 2017-12-09T08:05:53.000Z | 2017-12-09T08:05:53.000Z | from django.shortcuts import render
from django.http import HttpResponse
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
# Create your views here.
def index(request):
tmp = []
liuyanList = [['/static/Semantic-UI-master/examples/assets/images/avatar/tom.jpg', '邢卫', '教师', '垃圾网站',
... | 60.887324 | 116 | 0.492251 | 512 | 4,323 | 4.150391 | 0.169922 | 0.013176 | 0.052706 | 0.072471 | 0.672941 | 0.661647 | 0.647529 | 0.647529 | 0.647529 | 0.647529 | 0 | 0.104067 | 0.277585 | 4,323 | 70 | 117 | 61.757143 | 0.576369 | 0.012491 | 0 | 0.4375 | 0 | 0 | 0.415612 | 0.186357 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.046875 | 0.015625 | 0.109375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2f7096552ad4b6a4f30e84cadb29ecedb856b71d | 12,189 | py | Python | pypy/interpreter/test/test_interpreter.py | Qointum/pypy | c0ed88efbc135a75a535f4534ca1f3baf0bf39d8 | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | pypy/interpreter/test/test_interpreter.py | Qointum/pypy | c0ed88efbc135a75a535f4534ca1f3baf0bf39d8 | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | pypy/interpreter/test/test_interpreter.py | Qointum/pypy | c0ed88efbc135a75a535f4534ca1f3baf0bf39d8 | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | import py
import sys
from pypy.interpreter import gateway, module, error
class TestInterpreter:
def codetest(self, source, functionname, args, kwargs={}):
"""Compile and run the given code string, and then call its function
named by 'functionname' with arguments 'args'."""
space = self.s... | 30.858228 | 83 | 0.411765 | 1,335 | 12,189 | 3.64794 | 0.179775 | 0.041684 | 0.075565 | 0.090349 | 0.380903 | 0.338193 | 0.292402 | 0.257495 | 0.225667 | 0.18501 | 0 | 0.031942 | 0.455493 | 12,189 | 394 | 84 | 30.936548 | 0.701823 | 0.029617 | 0 | 0.43038 | 0 | 0 | 0.343646 | 0 | 0 | 0 | 0.001478 | 0 | 0.129747 | 0 | null | null | 0 | 0.041139 | null | null | 0.028481 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2f755b9b3faf4f86fa92b693d31b0862421ba95b | 9,255 | py | Python | CIFAR10/main.py | ankanbansal/semi-supervised-learning | 1aa16e2a7ae10908f70bf9657d26a49bacc50be9 | [
"Apache-2.0"
] | null | null | null | CIFAR10/main.py | ankanbansal/semi-supervised-learning | 1aa16e2a7ae10908f70bf9657d26a49bacc50be9 | [
"Apache-2.0"
] | 1 | 2018-10-18T18:49:33.000Z | 2018-10-18T18:49:33.000Z | CIFAR10/main.py | ankanbansal/semi-supervised-learning | 1aa16e2a7ae10908f70bf9657d26a49bacc50be9 | [
"Apache-2.0"
] | 1 | 2018-10-18T20:59:18.000Z | 2018-10-18T20:59:18.000Z | import os
import numpy as np
import json
# import ipdb
import argparse
import models
import dataLoader
from train import train_wsod_model, validate_model
from losses import get_loss
from helperFunctions import save_checkpoint, adjust_learning_rate
import torch
import torch.nn as nn
import torch.backends.cudnn as cudn... | 48.203125 | 129 | 0.579038 | 1,046 | 9,255 | 4.91109 | 0.231358 | 0.050808 | 0.09597 | 0.018688 | 0.233599 | 0.198949 | 0.175784 | 0.142106 | 0.142106 | 0.09305 | 0 | 0.013844 | 0.297569 | 9,255 | 191 | 130 | 48.455497 | 0.776342 | 0.066018 | 0 | 0.16129 | 0 | 0 | 0.177884 | 0.01845 | 0 | 0 | 0 | 0.005236 | 0 | 0 | null | null | 0 | 0.090323 | null | null | 0.090323 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2f75ac649488963780df934a160289427490fb6d | 18,501 | py | Python | scripts/pg.py | geary/election-maps.it2013 | c01a48efe8f022764dba58524d6817ea4e9f05a0 | [
"Unlicense"
] | null | null | null | scripts/pg.py | geary/election-maps.it2013 | c01a48efe8f022764dba58524d6817ea4e9f05a0 | [
"Unlicense"
] | null | null | null | scripts/pg.py | geary/election-maps.it2013 | c01a48efe8f022764dba58524d6817ea4e9f05a0 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
import json, os, os.path, re, shutil, subprocess, tempfile, time, unicodedata
import psycopg2
from zipfile import ZipFile
import private
# 20037508.342789 is halfway around the equator in Google Mercator,
# as calculated by:
# SELECT ST_AsText(
# ST_Transform(
# ST_SetSRID(
# ST_Point(... | 25.035183 | 169 | 0.620939 | 2,103 | 18,501 | 5.412744 | 0.189253 | 0.005095 | 0.003953 | 0.014056 | 0.226829 | 0.164368 | 0.139418 | 0.123781 | 0.096635 | 0.074848 | 0 | 0.019126 | 0.228474 | 18,501 | 738 | 170 | 25.069106 | 0.778338 | 0.019512 | 0 | 0.384735 | 0 | 0.004673 | 0.304101 | 0.017495 | 0 | 0 | 0 | 0.001355 | 0 | 0 | null | null | 0.004673 | 0.006231 | null | null | 0.05296 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2f81ca754a34f796db5843c24cb78c1f30fa6924 | 1,842 | py | Python | manage.py | alexknight/headlinesmock | 6ee0afec153ad7ca9f9de0938834dcf61d9215c6 | [
"Apache-2.0"
] | null | null | null | manage.py | alexknight/headlinesmock | 6ee0afec153ad7ca9f9de0938834dcf61d9215c6 | [
"Apache-2.0"
] | null | null | null | manage.py | alexknight/headlinesmock | 6ee0afec153ad7ca9f9de0938834dcf61d9215c6 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
###########################################################################
# Copyright (C) 2005-2016 UC Mobile Limited. All Rights Reserved
# File : manage.py
#
# Creation : 2015/12/11 16:53
# Author : shufeng.lsf@ucweb.com
##################################################... | 24.56 | 86 | 0.649837 | 214 | 1,842 | 5.453271 | 0.490654 | 0.094259 | 0.102828 | 0.068552 | 0.042845 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027336 | 0.146037 | 1,842 | 74 | 87 | 24.891892 | 0.714558 | 0.115092 | 0 | 0 | 0 | 0 | 0.108237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.159091 | false | 0 | 0.136364 | 0.136364 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
2f82a901ddd2a1d34ec6c4bb640fd2781c229b40 | 1,334 | py | Python | src/oracle/handlers/handlers.py | orisi/orisi | 5ceb90c06f8545bfabd4429806bdeca08ff59ed0 | [
"MIT"
] | 70 | 2015-01-07T01:15:44.000Z | 2022-02-23T08:33:31.000Z | src/oracle/handlers/handlers.py | orisi/orisi | 5ceb90c06f8545bfabd4429806bdeca08ff59ed0 | [
"MIT"
] | 3 | 2015-01-13T10:53:52.000Z | 2015-12-15T15:54:18.000Z | src/oracle/handlers/handlers.py | orisi/orisi | 5ceb90c06f8545bfabd4429806bdeca08ff59ed0 | [
"MIT"
] | 10 | 2015-05-09T21:50:08.000Z | 2018-08-14T18:33:45.000Z | from timelock_contract.timelock_create_handler import TimelockCreateHandler
from bounty_contract.bounty_create_handler import BountyCreateHandler
from bounty_contract.bounty_redeem_handler import GuessPasswordHandler
from transactionsigner import TransactionSigner
from safe_timelock_contract.timelock_mark_release_handl... | 47.642857 | 163 | 0.793853 | 138 | 1,334 | 7.246377 | 0.362319 | 0.084 | 0.057 | 0.051 | 0.108 | 0.108 | 0.108 | 0.108 | 0.108 | 0.108 | 0 | 0.002483 | 0.094453 | 1,334 | 27 | 164 | 49.407407 | 0.825331 | 0 | 0 | 0 | 0 | 0 | 0.346587 | 0.031508 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.181818 | 0.272727 | 0 | 0.272727 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
2f8a863b2d62d33318519ac0bd941f7a89b87914 | 3,464 | py | Python | globegenerator.py | STAC-IITMandi/satellite-visualization | 0110011b8a7bcad423c7fb18ca9b015587701d24 | [
"MIT"
] | 3 | 2021-12-29T08:18:26.000Z | 2022-01-01T05:11:04.000Z | globegenerator.py | STAC-IITMandi/satellite-visualization | 0110011b8a7bcad423c7fb18ca9b015587701d24 | [
"MIT"
] | 1 | 2021-12-29T12:05:41.000Z | 2021-12-29T12:05:41.000Z | globegenerator.py | STAC-IITMandi/satellite-visualization | 0110011b8a7bcad423c7fb18ca9b015587701d24 | [
"MIT"
] | null | null | null |
import math
pi = math.pi
cos = lambda x : math.cos(x * pi/180)
sin = lambda x : math.sin(x * pi/180)
circles = []
vertices = []
vert_norm_tex = []
faces = []
# Generate coordinates
factor = 5 # 1,3,5,9,15
circles.append(([(0.,-1.,0.,0.,1.)], 0))
for theta in range(-87, 90, factor):
if abs(theta) >= 82:... | 36.851064 | 92 | 0.47142 | 666 | 3,464 | 2.424925 | 0.13964 | 0.059443 | 0.044582 | 0.039628 | 0.511455 | 0.465015 | 0.430341 | 0.39257 | 0.314551 | 0.300929 | 0 | 0.105612 | 0.259238 | 3,464 | 93 | 93 | 37.247312 | 0.523772 | 0.048788 | 0 | 0.092105 | 1 | 0 | 0.026484 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 1 | 0 | false | 0.013158 | 0.013158 | 0 | 0.013158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2f952020d169f93529aa15d80021532ea8a51795 | 2,344 | py | Python | Markdown.py | pryley/alfred-the-archive | b12dc464e3bfa9623184d5a5728d9bb0adf0eda9 | [
"MIT"
] | 34 | 2020-06-15T07:59:52.000Z | 2021-10-09T12:59:54.000Z | Markdown.py | pryley/alfred-the-archive | b12dc464e3bfa9623184d5a5728d9bb0adf0eda9 | [
"MIT"
] | 5 | 2020-06-20T10:07:54.000Z | 2022-03-29T18:37:25.000Z | Markdown.py | pryley/alfred-the-archive | b12dc464e3bfa9623184d5a5728d9bb0adf0eda9 | [
"MIT"
] | 4 | 2020-06-22T09:18:59.000Z | 2022-03-26T11:35:25.000Z | #!/usr/bin/env python
# encoding: utf-8
from Alfred import Tools
import HTMLParser
import os
import re
import urllib2
class Markdown(object):
PANDOC = '/usr/local/bin/pandoc -f html-native_divs-native_spans -t gfm --strip-comments --atx-headers '
def __init__(self, url):
self.url = url
self.... | 27.904762 | 108 | 0.538823 | 278 | 2,344 | 4.478417 | 0.363309 | 0.025703 | 0.032129 | 0.02249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 0.296502 | 2,344 | 83 | 109 | 28.240964 | 0.744694 | 0.021331 | 0 | 0.09375 | 0 | 0.015625 | 0.141423 | 0.037975 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203125 | false | 0.03125 | 0.078125 | 0.0625 | 0.484375 | 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 | 0 | 0 | 0 | 0 | 1 |
2f971c69869cd4d25e0f26519cb6265a0266871a | 511 | py | Python | yyfeed/migrations/0003_auto_20170107_0937.py | moonfruit/yysite | 92196d76edb8a30afbb7c7a59cb95a1b909fa22a | [
"MIT"
] | null | null | null | yyfeed/migrations/0003_auto_20170107_0937.py | moonfruit/yysite | 92196d76edb8a30afbb7c7a59cb95a1b909fa22a | [
"MIT"
] | null | null | null | yyfeed/migrations/0003_auto_20170107_0937.py | moonfruit/yysite | 92196d76edb8a30afbb7c7a59cb95a1b909fa22a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-01-07 01:37
from __future__ import unicode_literals
import django.utils.timezone
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('yyfeed', '0002_auto_20170106_1714'),
]
operations = [
... | 23.227273 | 74 | 0.64775 | 57 | 511 | 5.631579 | 0.754386 | 0.068536 | 0.11838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084833 | 0.238748 | 511 | 21 | 75 | 24.333333 | 0.74036 | 0.133072 | 0 | 0 | 1 | 0 | 0.111364 | 0.052273 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2fa0eb652de05fe7d771047d13cfad07740c7fd6 | 1,434 | bzl | Python | scala/bloop/ext.bzl | psilospore/rules_scala-rebloopy | 69327c55e8095882e59e5c0fe948cb31693b4e6f | [
"Apache-2.0"
] | null | null | null | scala/bloop/ext.bzl | psilospore/rules_scala-rebloopy | 69327c55e8095882e59e5c0fe948cb31693b4e6f | [
"Apache-2.0"
] | null | null | null | scala/bloop/ext.bzl | psilospore/rules_scala-rebloopy | 69327c55e8095882e59e5c0fe948cb31693b4e6f | [
"Apache-2.0"
] | null | null | null | load(
"//scala:advanced_usage/providers.bzl",
_ScalaRulePhase = "ScalaRulePhase",
)
load(
"//scala/private:phases/phases.bzl",
_phase_bloop = "phase_bloop",
)
ext_add_phase_bloop = {
"attrs": {
# "bloopDir": attr.label(
# allow_single_file = True,
# doc = "Bloop output ... | 27.056604 | 109 | 0.527197 | 131 | 1,434 | 5.458015 | 0.435115 | 0.13986 | 0.090909 | 0.083916 | 0.265734 | 0.165035 | 0.125874 | 0.125874 | 0.125874 | 0 | 0 | 0 | 0.333333 | 1,434 | 52 | 110 | 27.576923 | 0.747908 | 0.437238 | 0 | 0.193548 | 0 | 0 | 0.231754 | 0.12548 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.032258 | false | 0 | 0 | 0.032258 | 0.064516 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
85d38d325d0b2e87c10547cc44857b5980cbec31 | 8,297 | py | Python | tests/eth_detectors.py | Srinivas11789/manticore | af3c6aada811833864efaccef7477f14e9b5e0dd | [
"Apache-2.0"
] | null | null | null | tests/eth_detectors.py | Srinivas11789/manticore | af3c6aada811833864efaccef7477f14e9b5e0dd | [
"Apache-2.0"
] | null | null | null | tests/eth_detectors.py | Srinivas11789/manticore | af3c6aada811833864efaccef7477f14e9b5e0dd | [
"Apache-2.0"
] | null | null | null | """
File name is purposefully not test_* to run this test separately.
"""
import inspect
import shutil
import struct
import tempfile
import unittest
import os
from manticore.core.smtlib import operators
from eth_general import make_mock_evm_state
from manticore.ethereum import ManticoreEVM, DetectInvalid, DetectInteg... | 38.412037 | 483 | 0.696758 | 1,042 | 8,297 | 5.340691 | 0.227447 | 0.03522 | 0.099191 | 0.103504 | 0.537287 | 0.514106 | 0.486972 | 0.486972 | 0.475292 | 0.475292 | 0 | 0.022268 | 0.18814 | 8,297 | 215 | 484 | 38.590698 | 0.80389 | 0.056526 | 0 | 0.426573 | 0 | 0 | 0.120723 | 0 | 0 | 0 | 0.00581 | 0.004651 | 0.027972 | 1 | 0.216783 | false | 0 | 0.076923 | 0 | 0.384615 | 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 | 0 | 0 | 0 | 0 | 1 |
85d45a20dffe2943cd6a15db102aec32cd30f302 | 4,628 | py | Python | network_gene_analyzer.py | ndexbio/ndex-enrich | 22115bcaa322369c1b7553fc45333866e579346d | [
"BSD-2-Clause"
] | 1 | 2020-10-20T18:34:28.000Z | 2020-10-20T18:34:28.000Z | network_gene_analyzer.py | ndexbio/ndex-enrich | 22115bcaa322369c1b7553fc45333866e579346d | [
"BSD-2-Clause"
] | null | null | null | network_gene_analyzer.py | ndexbio/ndex-enrich | 22115bcaa322369c1b7553fc45333866e579346d | [
"BSD-2-Clause"
] | null | null | null | __author__ = 'dexter'
import requests
from bson.json_util import dumps
class NetworkGeneAnalyzer:
def __init__(self, network_id, ndex):
self.ndex = ndex
self.network = self.ndex.get_complete_network(network_id)
self.identifiers = []
self.node_map = self.network.get("nodes")
... | 39.555556 | 95 | 0.570009 | 528 | 4,628 | 4.706439 | 0.234848 | 0.054326 | 0.044266 | 0.053119 | 0.355734 | 0.284105 | 0.190744 | 0.177062 | 0.177062 | 0.177062 | 0 | 0.004986 | 0.306612 | 4,628 | 116 | 96 | 39.896552 | 0.769399 | 0.100691 | 0 | 0.243902 | 0 | 0.012195 | 0.100988 | 0 | 0 | 0 | 0 | 0.008621 | 0 | 0 | null | null | 0 | 0.02439 | null | null | 0.012195 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85dcff9bbc2bbe5ec088f1dc81d20b132cd2d43a | 850 | py | Python | class/point.py | selimppc/python-learning | 4bf906b4a8773b6605bc30c4270f6eff3cca7fe7 | [
"MIT"
] | null | null | null | class/point.py | selimppc/python-learning | 4bf906b4a8773b6605bc30c4270f6eff3cca7fe7 | [
"MIT"
] | null | null | null | class/point.py | selimppc/python-learning | 4bf906b4a8773b6605bc30c4270f6eff3cca7fe7 | [
"MIT"
] | null | null | null | # first letter of every word will be uppercase.
class Point:
default_color = 'red'
# magic method __init__
# constructor
def __init__(self, x, y):
"""
two attributes x and y
that belong point instances of point object
"""
self.x = x
self.y = y
... | 20.731707 | 55 | 0.624706 | 118 | 850 | 4.415254 | 0.491525 | 0.076775 | 0.065259 | 0.046065 | 0.065259 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00974 | 0.275294 | 850 | 40 | 56 | 21.25 | 0.836039 | 0.341176 | 0 | 0.111111 | 0 | 0 | 0.065463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.277778 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85e042f66d6a75fea223cd51a1ffe1b23dcf95a7 | 2,882 | py | Python | BatchBox/BatchUtils.py | kschweiger/ToolBox | 7531ec484f3185bcde56076eebd0a3ce6aaec22b | [
"MIT"
] | null | null | null | BatchBox/BatchUtils.py | kschweiger/ToolBox | 7531ec484f3185bcde56076eebd0a3ce6aaec22b | [
"MIT"
] | null | null | null | BatchBox/BatchUtils.py | kschweiger/ToolBox | 7531ec484f3185bcde56076eebd0a3ce6aaec22b | [
"MIT"
] | null | null | null | import os
import stat
import imp
import ssl
import subprocess
def get_dataset_files(dataset, storeprefix, dbs_instance):
das_client=imp.load_source("das_client", "/cvmfs/cms.cern.ch/slc6_amd64_gcc530/cms/das_client/v02.17.04/bin/das_client.py")
print 'getting files for',dataset
ckey=das_client.x509()
c... | 41.171429 | 201 | 0.647814 | 405 | 2,882 | 4.466667 | 0.37284 | 0.039801 | 0.030956 | 0.033168 | 0.149807 | 0.114981 | 0.086235 | 0.086235 | 0.086235 | 0.086235 | 0 | 0.033475 | 0.181124 | 2,882 | 69 | 202 | 41.768116 | 0.733051 | 0.087092 | 0 | 0 | 0 | 0.017241 | 0.231355 | 0.08067 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086207 | null | null | 0.086207 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85e3c92f71d7b216e2306f598f7a7daf20c7428b | 5,018 | py | Python | app/main.py | Hateehc99/Battlesnake | f867da46370d0b8313e843c84ed4439c3d2b3bc5 | [
"MIT"
] | null | null | null | app/main.py | Hateehc99/Battlesnake | f867da46370d0b8313e843c84ed4439c3d2b3bc5 | [
"MIT"
] | null | null | null | app/main.py | Hateehc99/Battlesnake | f867da46370d0b8313e843c84ed4439c3d2b3bc5 | [
"MIT"
] | null | null | null | import json
import os
import random
import bottle
import platform
from api import ping_response, start_response, move_response, end_response
lastMove = ''
@bottle.route('/')
def index():
return '''
Battlesnake documentation can be found at
<a href="https://docs.battlesnake.com">https://docs.battlesnak... | 26.834225 | 151 | 0.577521 | 660 | 5,018 | 4.309091 | 0.286364 | 0.016878 | 0.009845 | 0.014065 | 0.302743 | 0.188467 | 0.105485 | 0.037975 | 0.037975 | 0.037975 | 0 | 0.008002 | 0.30271 | 5,018 | 186 | 152 | 26.978495 | 0.804801 | 0.378238 | 0 | 0.253165 | 0 | 0.012658 | 0.133835 | 0 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0.075949 | false | 0 | 0.075949 | 0.012658 | 0.227848 | 0.037975 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
85e41f75023f01b5d553003a335695623fb21739 | 294 | py | Python | tests/conftest.py | rstms/zscli | 301c1c6d11de4bf1d8320e742914c4200fdc7221 | [
"MIT"
] | null | null | null | tests/conftest.py | rstms/zscli | 301c1c6d11de4bf1d8320e742914c4200fdc7221 | [
"MIT"
] | null | null | null | tests/conftest.py | rstms/zscli | 301c1c6d11de4bf1d8320e742914c4200fdc7221 | [
"MIT"
] | null | null | null | import os
import pytest
from zscli.cli import API
DEBUG = True
TEST_LIMIT = 10
TEST_PAGE = 1
VERBOSE = False
@pytest.fixture()
def api_key():
return os.environ["ZEROSSL_API_KEY"]
@pytest.fixture()
def test_api(api_key):
return API(DEBUG, api_key, TEST_LIMIT, TEST_PAGE, VERBOSE)
| 14 | 62 | 0.731293 | 47 | 294 | 4.361702 | 0.468085 | 0.117073 | 0.156098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012245 | 0.166667 | 294 | 20 | 63 | 14.7 | 0.82449 | 0 | 0 | 0.153846 | 0 | 0 | 0.05102 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0.153846 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
85e678db56f001d7ca09583a9b2adcc38713b6aa | 1,756 | py | Python | MPI/BFS-MPI/graph500/generator/get_AI_new.py | felidsche/BigDataBench_V5.0_BigData_ComponentBenchmark | c65c3df033b84dfb6d229f74e564d69cfe624556 | [
"Apache-2.0"
] | null | null | null | MPI/BFS-MPI/graph500/generator/get_AI_new.py | felidsche/BigDataBench_V5.0_BigData_ComponentBenchmark | c65c3df033b84dfb6d229f74e564d69cfe624556 | [
"Apache-2.0"
] | null | null | null | MPI/BFS-MPI/graph500/generator/get_AI_new.py | felidsche/BigDataBench_V5.0_BigData_ComponentBenchmark | c65c3df033b84dfb6d229f74e564d69cfe624556 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python2
import sys
inf=open(sys.argv[1])
a=[i.split() for i in inf.readlines()]
#b=0
c=0
ins=0
bran=0
load=0
store=0
fp=0
mem=0
L2=0
SSE=0
uops=0
i=1
ps=0
pd=0
ss=0
sd=0
simd=0
line=0
print "start"
while i <len(a):
if len(a[i])<7:
i+=1
continue
# b+=long(a[i][0])
c+=int(a[i][0])
ins+=int(a[i][1])
br... | 23.72973 | 68 | 0.669134 | 353 | 1,756 | 3.29745 | 0.220963 | 0.032646 | 0.068729 | 0.082474 | 0.146048 | 0.087629 | 0 | 0 | 0 | 0 | 0 | 0.121664 | 0.082574 | 1,756 | 73 | 69 | 24.054795 | 0.600869 | 0.033599 | 0 | 0.029412 | 0 | 0 | 0.165978 | 0.040756 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.014706 | null | null | 0.382353 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85e8b765d1d8c01bd08ddaacc50c82172802cd6e | 1,035 | py | Python | tests/test_augment.py | spxia/TensorFlowASR | def4be2f619fb29f7b645502b351cec310d1b85f | [
"Apache-2.0"
] | null | null | null | tests/test_augment.py | spxia/TensorFlowASR | def4be2f619fb29f7b645502b351cec310d1b85f | [
"Apache-2.0"
] | null | null | null | tests/test_augment.py | spxia/TensorFlowASR | def4be2f619fb29f7b645502b351cec310d1b85f | [
"Apache-2.0"
] | null | null | null | import os
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
#from tensorflow_asr.augmentations.augments import Augmentation
from tensorflow_asr.featurizers.speech_featurizers import read_raw_audio
from tensorflow_asr.configs.config import Config
import librosa
import matplotlib.pyplot as plt
import librosa.display
import n... | 26.538462 | 73 | 0.752657 | 138 | 1,035 | 5.478261 | 0.485507 | 0.063492 | 0.06746 | 0.074074 | 0.084656 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032511 | 0.138164 | 1,035 | 39 | 74 | 26.538462 | 0.815022 | 0.109179 | 0 | 0 | 0 | 0 | 0.15 | 0.090217 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.333333 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
85ecf5da466f0df65d97156a925dd2cbb9cc304a | 2,936 | py | Python | scripts/split.py | yannvon/higgs-boson | 4d0804e1987a9e08f6417f8d7119c37572f35515 | [
"MIT"
] | null | null | null | scripts/split.py | yannvon/higgs-boson | 4d0804e1987a9e08f6417f8d7119c37572f35515 | [
"MIT"
] | null | null | null | scripts/split.py | yannvon/higgs-boson | 4d0804e1987a9e08f6417f8d7119c37572f35515 | [
"MIT"
] | 1 | 2021-11-01T12:55:40.000Z | 2021-11-01T12:55:40.000Z | # -*- coding: utf-8 -*-
import numpy as np
# ----- This file contains all methods used to split the higgs boson data set into 3 parts, depending on jet num -------
def split_y(y, x):
'''
This method splits the labels into 3 arrays.
X must be included in order to perform the correct split
'''
y_t0 ... | 34.541176 | 120 | 0.603202 | 520 | 2,936 | 3.292308 | 0.230769 | 0.011682 | 0.031542 | 0.023364 | 0.675234 | 0.643692 | 0.643692 | 0.636682 | 0.628505 | 0.60514 | 0 | 0.09894 | 0.228883 | 2,936 | 84 | 121 | 34.952381 | 0.657244 | 0.254768 | 0 | 0.541667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104167 | false | 0 | 0.020833 | 0 | 0.229167 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85ee803d4bda856a62b82a4b384990d2127c434f | 469 | py | Python | setup.py | Vislate/ipsw-me-python | a574139f908e4bf16bd8f16970a94244d23b83c5 | [
"MIT"
] | 1 | 2021-12-02T19:39:59.000Z | 2021-12-02T19:39:59.000Z | setup.py | Locvic/ipsw-me-python | a574139f908e4bf16bd8f16970a94244d23b83c5 | [
"MIT"
] | null | null | null | setup.py | Locvic/ipsw-me-python | a574139f908e4bf16bd8f16970a94244d23b83c5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#!/usr/bin/env python3
from setuptools import find_packages, setup
setup(
name = "ipsw-me",
version = "1.0.0",
license = "MIT",
author = "Vislate",
description = "Simple & lightweight IPSW.me API wrapper written in Python",
url = "https://github.com/Vislate/ipsw-me-pytho... | 31.266667 | 82 | 0.641791 | 58 | 469 | 5.12069 | 0.775862 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018325 | 0.185501 | 469 | 15 | 83 | 31.266667 | 0.759162 | 0.089552 | 0 | 0 | 0 | 0 | 0.341176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
85ef54ef8e53a8b6a3f1e933a53f1e6e37b7c54f | 8,760 | py | Python | wordpress_rest/apps/wordpress/models.py | rosscdh/wordpress_rest | 482aa20fad9ea0cb5a22ccac70d20a654e6970ed | [
"MIT"
] | 3 | 2015-02-27T18:18:11.000Z | 2017-12-02T13:54:45.000Z | wordpress_rest/apps/wordpress/models.py | rosscdh/wordpress_rest | 482aa20fad9ea0cb5a22ccac70d20a654e6970ed | [
"MIT"
] | null | null | null | wordpress_rest/apps/wordpress/models.py | rosscdh/wordpress_rest | 482aa20fad9ea0cb5a22ccac70d20a654e6970ed | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
import phpserialize
from news import Article
from collections import OrderedDict
class CommentsMeta(models.Model):
id = models.AutoField(db_column='meta_id', primary_key=True)
comment = models.ForeignKey('wordpress.C... | 34.21875 | 221 | 0.707078 | 1,092 | 8,760 | 5.43315 | 0.162088 | 0.093545 | 0.106186 | 0.141581 | 0.529243 | 0.415136 | 0.289398 | 0.209001 | 0.191134 | 0.191134 | 0 | 0.013779 | 0.179795 | 8,760 | 255 | 222 | 34.352941 | 0.811969 | 0.023516 | 0 | 0.202128 | 0 | 0 | 0.066526 | 0.005036 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095745 | false | 0.010638 | 0.026596 | 0.074468 | 0.835106 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
85f3021807e36626b2e0939f9379bc3b271b51d0 | 657 | py | Python | oy/contrib/media/serving.py | mush42/oy-cms | 66f2490be7eab9a692a68bb635099ba21d5944ae | [
"MIT"
] | 5 | 2019-02-12T08:54:46.000Z | 2021-03-15T09:22:44.000Z | oy/contrib/media/serving.py | mush42/oy-cms | 66f2490be7eab9a692a68bb635099ba21d5944ae | [
"MIT"
] | 2 | 2020-04-30T01:27:08.000Z | 2020-07-16T18:04:16.000Z | oy/contrib/media/serving.py | mush42/oy-cms | 66f2490be7eab9a692a68bb635099ba21d5944ae | [
"MIT"
] | 3 | 2019-10-16T05:53:31.000Z | 2021-10-11T09:37:16.000Z | # -*- coding: utf-8 -*-
"""
oy.contrib.media.serving
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Provides the media serve view.
:copyright: (c) 2018 by Musharraf Omer.
:license: MIT, see LICENSE for more details.
"""
from depot.middleware import FileServeApp
from flask import abort
class ModelFileS... | 24.333333 | 79 | 0.619482 | 82 | 657 | 4.756098 | 0.707317 | 0.069231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017682 | 0.225266 | 657 | 26 | 80 | 25.269231 | 0.748527 | 0.348554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
85f3cc9e4649dd5bcb2b74a107278135cf2ff078 | 2,351 | py | Python | tests/models/test_match_format_model.py | travisbale/scorecard | c131a87bb9552b2bde2b1adb68ce7a440cb32278 | [
"MIT"
] | null | null | null | tests/models/test_match_format_model.py | travisbale/scorecard | c131a87bb9552b2bde2b1adb68ce7a440cb32278 | [
"MIT"
] | null | null | null | tests/models/test_match_format_model.py | travisbale/scorecard | c131a87bb9552b2bde2b1adb68ce7a440cb32278 | [
"MIT"
] | null | null | null | """Tests for the match format model and schema."""
import pytest
from marshmallow import ValidationError
from sqlalchemy.exc import IntegrityError
from scorecard.models.match_format import MatchFormat, MatchFormatSchema
class TestMatchFormat:
@pytest.fixture
def match_format(self):
return MatchForma... | 35.089552 | 104 | 0.740111 | 278 | 2,351 | 5.906475 | 0.219424 | 0.127284 | 0.026797 | 0.043849 | 0.317905 | 0.243605 | 0.181486 | 0.15408 | 0.093179 | 0.093179 | 0 | 0.000517 | 0.176521 | 2,351 | 66 | 105 | 35.621212 | 0.847624 | 0.018715 | 0 | 0.065217 | 0 | 0 | 0.05389 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 1 | 0.282609 | false | 0 | 0.086957 | 0.043478 | 0.456522 | 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 | 0 | 0 | 0 | 0 | 1 |
85f51f24d60f1f472b382c24c01a068becbdf32d | 2,028 | py | Python | rdfextras/__init__.py | trishnaguha/rdfextras | c66b30de4a3b9cb67090add06cb8a9cf05d2c545 | [
"BSD-3-Clause"
] | 3 | 2015-05-15T02:18:21.000Z | 2019-02-12T03:14:46.000Z | rdfextras/__init__.py | trishnaguha/rdfextras | c66b30de4a3b9cb67090add06cb8a9cf05d2c545 | [
"BSD-3-Clause"
] | 1 | 2015-11-05T15:18:36.000Z | 2015-11-05T16:44:04.000Z | rdfextras/__init__.py | trishnaguha/rdfextras | c66b30de4a3b9cb67090add06cb8a9cf05d2c545 | [
"BSD-3-Clause"
] | 4 | 2015-11-05T07:24:41.000Z | 2022-01-18T07:54:43.000Z | # -*- coding: utf-8 -*-
"""
The RDFExtras namespace package.
"""
__author__ = "Niklas Lindström"
__version__ = "1.0-dev"
# This is a namespace package.
try:
import pkg_resources
pkg_resources.declare_namespace(__name__)
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name... | 28.971429 | 73 | 0.705621 | 213 | 2,028 | 6.58216 | 0.488263 | 0.0699 | 0.078459 | 0.081312 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00363 | 0.184911 | 2,028 | 69 | 74 | 29.391304 | 0.844525 | 0.264793 | 0 | 0.108108 | 0 | 0 | 0.28914 | 0.159379 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0.054054 | 0.189189 | 0 | 0.297297 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
85fdb21870fd5a6428d5c02e5812156dddc9c81b | 7,589 | py | Python | tests/logParserTest.py | nitcbl/nitcbl | 4bb2900f0313fa93af82e9c7a8417d764f1c64da | [
"MIT"
] | 1 | 2021-11-20T01:24:34.000Z | 2021-11-20T01:24:34.000Z | tests/logParserTest.py | nitcbl/nitcbl | 4bb2900f0313fa93af82e9c7a8417d764f1c64da | [
"MIT"
] | null | null | null | tests/logParserTest.py | nitcbl/nitcbl | 4bb2900f0313fa93af82e9c7a8417d764f1c64da | [
"MIT"
] | null | null | null | #? |-----------------------------------------------------------------------------------------------|
#? | /tests/logParserTest.py |
#? | |
#? | Copyright (... | 64.313559 | 255 | 0.627619 | 936 | 7,589 | 5.073718 | 0.153846 | 0.093072 | 0.101074 | 0.106128 | 0.680354 | 0.646031 | 0.620552 | 0.598231 | 0.551485 | 0.483681 | 0 | 0.022035 | 0.138885 | 7,589 | 117 | 256 | 64.863248 | 0.704667 | 0.094874 | 0 | 0.3 | 0 | 0 | 0.369404 | 0.007729 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0375 | false | 0.0625 | 0.125 | 0 | 0.225 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
85ff5dcb838724571eaafad252ecd6ae1258756a | 2,726 | py | Python | check_bgp.py | citynetwork/network_monitoring | 4e2e5cb1a22596bb09e39bc3b1aa2b6f032b84e2 | [
"BSD-2-Clause"
] | 2 | 2019-04-15T21:57:19.000Z | 2020-08-17T08:42:39.000Z | check_bgp.py | citynetwork/network_monitoring | 4e2e5cb1a22596bb09e39bc3b1aa2b6f032b84e2 | [
"BSD-2-Clause"
] | 1 | 2022-02-16T11:00:59.000Z | 2022-02-16T11:00:59.000Z | check_bgp.py | citynetwork/network_monitoring | 4e2e5cb1a22596bb09e39bc3b1aa2b6f032b84e2 | [
"BSD-2-Clause"
] | 1 | 2019-04-15T21:57:36.000Z | 2019-04-15T21:57:36.000Z | #!/usr/bin/env python
#
# @descr Checks BGP status on Cisco IOS devices
#
# @author Johan Hedberg <jh@citynetwork.se>
#
import argparse
import ipaddress
import sys
from lib.cnh_nm import STATE_OK, STATE_CRIT, STATE_WARN
from lib.cnh_nm import my_snmp_walk, snmp_oid_decode_ip, snmpresult_to_dict
from lib.cnh_nm im... | 29 | 107 | 0.668379 | 363 | 2,726 | 4.815427 | 0.352617 | 0.028604 | 0.025744 | 0.034325 | 0.169336 | 0.138444 | 0.125286 | 0.125286 | 0.058352 | 0 | 0 | 0.009372 | 0.217168 | 2,726 | 93 | 108 | 29.311828 | 0.809747 | 0.112986 | 0 | 0.208955 | 0 | 0 | 0.183784 | 0.065281 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.089552 | null | null | 0.014925 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c824daec3b4cc4310c8af10314e74f2f4ba7a4e4 | 1,758 | py | Python | tests/jupyterclient/jupyterclient_test.py | lsst-sqre/noteburst | ff08698ca8c35f69c8c840037b9e35d43e9737de | [
"MIT"
] | null | null | null | tests/jupyterclient/jupyterclient_test.py | lsst-sqre/noteburst | ff08698ca8c35f69c8c840037b9e35d43e9737de | [
"MIT"
] | 5 | 2021-10-31T23:33:19.000Z | 2022-03-21T19:43:56.000Z | tests/jupyterclient/jupyterclient_test.py | lsst-sqre/noteburst | ff08698ca8c35f69c8c840037b9e35d43e9737de | [
"MIT"
] | null | null | null | """Test the JupyterClient."""
from __future__ import annotations
from typing import TYPE_CHECKING
import httpx
import pytest
import respx
import structlog
from noteburst.jupyterclient.jupyterlab import (
JupyterClient,
JupyterConfig,
JupyterImageSelector,
)
from noteburst.jupyterclient.user import User
... | 27.904762 | 74 | 0.69909 | 199 | 1,758 | 5.944724 | 0.40201 | 0.076923 | 0.060862 | 0.035503 | 0.042265 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002961 | 0.231513 | 1,758 | 62 | 75 | 28.354839 | 0.872687 | 0.096132 | 0 | 0 | 0 | 0 | 0.015813 | 0 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.045455 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
c825d8155423fa1e79b56f0e03a0bf19aa30a87f | 142 | py | Python | lottery/enum/CardType.py | IcyBiscuit/modian-lottery-bot | 29607d873586d42af844815fe5fa7abe02f0515e | [
"MIT"
] | 1 | 2019-06-21T08:39:49.000Z | 2019-06-21T08:39:49.000Z | lottery/enum/CardType.py | IcyBiscuit/modian-lottery-bot | 29607d873586d42af844815fe5fa7abe02f0515e | [
"MIT"
] | null | null | null | lottery/enum/CardType.py | IcyBiscuit/modian-lottery-bot | 29607d873586d42af844815fe5fa7abe02f0515e | [
"MIT"
] | 1 | 2020-06-04T16:09:27.000Z | 2020-06-04T16:09:27.000Z | from enum import Enum
class CardType(Enum):
'''
卡牌类型枚举类
'''
UR = "UR"
SSR = "SSR"
SR = "SR"
R = "R"
N = "N"
| 10.923077 | 21 | 0.422535 | 18 | 142 | 3.333333 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.408451 | 142 | 12 | 22 | 11.833333 | 0.714286 | 0.049296 | 0 | 0 | 0 | 0 | 0.07563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
c833af715aa540a1b36cf2dcb2195848c9c39a52 | 588 | py | Python | source/cyoa/__init__.py | eeyun/cyoa | ad619c60b1c960c2bfadda87f92637796d93ca8f | [
"Apache-2.0"
] | 3 | 2017-02-28T19:41:07.000Z | 2021-08-18T22:49:19.000Z | source/cyoa/__init__.py | eeyun/cyoa | ad619c60b1c960c2bfadda87f92637796d93ca8f | [
"Apache-2.0"
] | null | null | null | source/cyoa/__init__.py | eeyun/cyoa | ad619c60b1c960c2bfadda87f92637796d93ca8f | [
"Apache-2.0"
] | null | null | null | from flask import Flask
from flask.ext.socketio import SocketIO
from flask.ext.login import LoginManager
from flask.ext.sqlalchemy import SQLAlchemy
import redis
app = Flask(__name__, static_url_path='/static')
app.config.from_pyfile('./config.py')
from config import REDIS_SERVER, REDIS_PORT, REDIS_DB
redis_db = red... | 25.565217 | 77 | 0.804422 | 87 | 588 | 5.195402 | 0.344828 | 0.079646 | 0.079646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105442 | 588 | 22 | 78 | 26.727273 | 0.859316 | 0 | 0 | 0 | 0 | 0 | 0.042517 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c852eefcf1eb3f1d2b875729d8625f34bab8a508 | 1,129 | py | Python | notebook/numpy_matrix_inv.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 174 | 2018-05-30T21:14:50.000Z | 2022-03-25T07:59:37.000Z | notebook/numpy_matrix_inv.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 5 | 2019-08-10T03:22:02.000Z | 2021-07-12T20:31:17.000Z | notebook/numpy_matrix_inv.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 53 | 2018-04-27T05:26:35.000Z | 2022-03-25T07:59:37.000Z | import numpy as np
arr = np.array([[2, 5], [1, 3]])
arr_inv = np.linalg.inv(arr)
print(arr_inv)
# [[ 3. -5.]
# [-1. 2.]]
mat = np.matrix([[2, 5], [1, 3]])
mat_inv = np.linalg.inv(mat)
print(mat_inv)
# [[ 3. -5.]
# [-1. 2.]]
mat_inv = mat**-1
print(mat_inv)
# [[ 3. -5.]
# [-1. 2.]]
mat_inv = mat.I
print(mat_... | 15.053333 | 61 | 0.548273 | 200 | 1,129 | 2.99 | 0.14 | 0.033445 | 0.035117 | 0.040134 | 0.4699 | 0.366221 | 0.215719 | 0.190635 | 0.157191 | 0.080268 | 0 | 0.071661 | 0.184234 | 1,129 | 74 | 62 | 15.256757 | 0.577633 | 0.457927 | 0 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
c85412eed084eb461a598a8f14d39a38cb657e56 | 1,610 | py | Python | test/jpypetest/test_customizer.py | pitmanst/jpype | 7256261e435b5c9309941c668258bebd1bcdff2d | [
"Apache-2.0"
] | 531 | 2018-07-19T03:30:04.000Z | 2022-03-29T16:52:44.000Z | test/jpypetest/test_customizer.py | pitmanst/jpype | 7256261e435b5c9309941c668258bebd1bcdff2d | [
"Apache-2.0"
] | 715 | 2018-07-18T09:21:01.000Z | 2022-03-24T17:45:49.000Z | test/jpypetest/test_customizer.py | pitmanst/jpype | 7256261e435b5c9309941c668258bebd1bcdff2d | [
"Apache-2.0"
] | 80 | 2018-07-18T13:10:55.000Z | 2022-03-31T19:47:16.000Z | # *****************************************************************************
#
# 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
#
# ... | 34.255319 | 79 | 0.615528 | 193 | 1,610 | 5.098446 | 0.476684 | 0.060976 | 0.042683 | 0.067073 | 0.085366 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003103 | 0.199379 | 1,610 | 46 | 80 | 35 | 0.760279 | 0.450932 | 0 | 0.08 | 0 | 0 | 0.139723 | 0.053118 | 0 | 0 | 0 | 0 | 0.16 | 1 | 0.12 | false | 0.08 | 0.28 | 0 | 0.48 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
c85638187e06b7d829a63f8bd04b39bf9aaffae8 | 117 | py | Python | src/python/WMCore/WMSpec/Steps/Templates/__init__.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 21 | 2015-11-19T16:18:45.000Z | 2021-12-02T18:20:39.000Z | src/python/WMCore/WMSpec/Steps/Templates/__init__.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 5,671 | 2015-01-06T14:38:52.000Z | 2022-03-31T22:11:14.000Z | src/python/WMCore/WMSpec/Steps/Templates/__init__.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 67 | 2015-01-21T15:55:38.000Z | 2022-02-03T19:53:13.000Z | #!/usr/bin/env python
"""
_Step.Templates_
Package for containing Step Template implementations
"""
__all__ = []
| 10.636364 | 52 | 0.717949 | 13 | 117 | 6 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 117 | 10 | 53 | 11.7 | 0.787879 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
c85d83352b38378d0e357e6bdf92d02c08893eb0 | 118,413 | py | Python | cisco-ios-xe/ydk/models/cisco_ios_xe/SONET_MIB.py | bopopescu/ACI | dd717bc74739eeed4747b3ea9e36b239580df5e1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xe/ydk/models/cisco_ios_xe/SONET_MIB.py | bopopescu/ACI | dd717bc74739eeed4747b3ea9e36b239580df5e1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xe/ydk/models/cisco_ios_xe/SONET_MIB.py | bopopescu/ACI | dd717bc74739eeed4747b3ea9e36b239580df5e1 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-07-22T04:04:44.000Z | 2020-07-22T04:04:44.000Z | """ SONET_MIB
The MIB module to describe SONET/SDH interface objects.
Copyright (C) The Internet Society (2003). This version
of this MIB module is part of RFC 3592; see the RFC
itself for full legal notices.
"""
from collections import OrderedDict
from ydk.types import Entity, EntityPath, Identity, Enum, YType,... | 45.807737 | 1,507 | 0.607003 | 10,528 | 118,413 | 6.682941 | 0.0606 | 0.018306 | 0.014497 | 0.010717 | 0.553825 | 0.532633 | 0.512323 | 0.503198 | 0.494642 | 0.454348 | 0 | 0.026743 | 0.304646 | 118,413 | 2,584 | 1,508 | 45.825464 | 0.827749 | 0.374131 | 0 | 0.413187 | 0 | 0 | 0.223494 | 0.157874 | 0.007692 | 0 | 0 | 0 | 0 | 1 | 0.07033 | false | 0 | 0.005495 | 0 | 0.125275 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c85e38d386d4b5c9ea8971dec4b3ddca26df373c | 3,401 | py | Python | timez/__init__.py | hanzhichao/timez | 14f1f9090c4bbecaa4da54a6d79d42e09c24b00d | [
"MIT"
] | null | null | null | timez/__init__.py | hanzhichao/timez | 14f1f9090c4bbecaa4da54a6d79d42e09c24b00d | [
"MIT"
] | null | null | null | timez/__init__.py | hanzhichao/timez | 14f1f9090c4bbecaa4da54a6d79d42e09c24b00d | [
"MIT"
] | 1 | 2021-06-29T12:18:14.000Z | 2021-06-29T12:18:14.000Z | import os
import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
import logging
class Email(object):
def __init__(self):
self.user = os.getenv('SMTP_USER')
self.password = os.getenv('SMTP_PWD')
self.host = os.getenv('SMTP_HOST') or 'smtp.%s' % se... | 37.788889 | 111 | 0.548074 | 389 | 3,401 | 4.750643 | 0.251928 | 0.047619 | 0.038961 | 0.034632 | 0.21158 | 0.21158 | 0.21158 | 0.151515 | 0.151515 | 0.151515 | 0 | 0.003845 | 0.311673 | 3,401 | 89 | 112 | 38.213483 | 0.785562 | 0.034108 | 0 | 0.236111 | 0 | 0 | 0.105151 | 0.018897 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.083333 | 0.069444 | 0 | 0.138889 | 0.013889 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
c863cb893ca653aec6ad3d3a222a57acdf02f0bb | 1,960 | py | Python | webcrawler.py | Joaosilgo/webcrawler | 0a219203cd537f7a10138320479e3544bbad8f12 | [
"MIT"
] | null | null | null | webcrawler.py | Joaosilgo/webcrawler | 0a219203cd537f7a10138320479e3544bbad8f12 | [
"MIT"
] | null | null | null | webcrawler.py | Joaosilgo/webcrawler | 0a219203cd537f7a10138320479e3544bbad8f12 | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup
from csv import writer
html_doc = """<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
... | 32.666667 | 81 | 0.541837 | 237 | 1,960 | 4.434599 | 0.556962 | 0.028544 | 0.052331 | 0.057088 | 0.106565 | 0.106565 | 0.087536 | 0.087536 | 0 | 0 | 0 | 0.014535 | 0.297959 | 1,960 | 59 | 82 | 33.220339 | 0.749273 | 0 | 0 | 0.043478 | 0 | 0.021739 | 0.716693 | 0.043181 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.065217 | 0 | 0.065217 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c863ef602b7d375164be12bf878d5859d51ede46 | 2,852 | py | Python | AuthTools/XAuth.py | Ristellise/Lynette-Bishop | 09f5d07f7116c108d7e5e4ae76961e2c89277feb | [
"MIT"
] | null | null | null | AuthTools/XAuth.py | Ristellise/Lynette-Bishop | 09f5d07f7116c108d7e5e4ae76961e2c89277feb | [
"MIT"
] | null | null | null | AuthTools/XAuth.py | Ristellise/Lynette-Bishop | 09f5d07f7116c108d7e5e4ae76961e2c89277feb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
アカウントのアクセストークンとアクセストークンシークレットを xAuth で取得するファイル
"""
import base64
import os
import oauth2
import urllib.parse
from TwitterAPI import TwitterAPI
class TwitterXAuth:
def __init__(self):
# Windows 環境向けの hack
# 参考: https://stackoverflow.com/questions/31469707/changing-th... | 33.552941 | 120 | 0.664446 | 297 | 2,852 | 6.144781 | 0.417508 | 0.048219 | 0.032877 | 0.032877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019257 | 0.235273 | 2,852 | 84 | 121 | 33.952381 | 0.817056 | 0.197405 | 0 | 0 | 0 | 0 | 0.165838 | 0.039765 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.119048 | 0.142857 | 0 | 0.238095 | 0.071429 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
c869690699506ef3b960e6f0fdd40e5f26d88be9 | 967 | py | Python | simple_classroom/apps/downloads/urls.py | maxicecilia/simple_classroom | 1f1e21414476923952f612a35ce3ff26ac053090 | [
"MIT"
] | 7 | 2015-05-08T22:43:15.000Z | 2020-12-04T15:38:17.000Z | simple_classroom/apps/downloads/urls.py | maxicecilia/simple_classroom | 1f1e21414476923952f612a35ce3ff26ac053090 | [
"MIT"
] | 7 | 2020-06-05T17:40:40.000Z | 2022-03-11T23:17:13.000Z | simple_classroom/apps/downloads/urls.py | maxicecilia/simple_classroom | 1f1e21414476923952f612a35ce3ff26ac053090 | [
"MIT"
] | 4 | 2015-05-13T05:47:32.000Z | 2020-05-08T18:06:24.000Z | # -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from .views import DownloadsDictationView, SiteDownloadCategoryView, SiteDownloadView
urlpatterns = patterns(
'',
url(
r'^(?P<site>[A-Za-z]*)/downloads/assignments/(?P<dictation_id>\d*)/$',
DownloadsDictationView.as_view(),
... | 40.291667 | 85 | 0.648397 | 113 | 967 | 5.371681 | 0.318584 | 0.032949 | 0.041186 | 0.074135 | 0.698517 | 0.602965 | 0.602965 | 0.250412 | 0.214168 | 0 | 0 | 0.00123 | 0.159255 | 967 | 23 | 86 | 42.043478 | 0.745387 | 0.021717 | 0 | 0.238095 | 0 | 0.142857 | 0.426907 | 0.407839 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.095238 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c06e172a8feb8cb323d94b2d6501278a9c567142 | 390 | py | Python | users/migrations/0005_alert_alert_time.py | LucLapenta/is-it-raining-site | e24e89a4f7223d11994029de09d64882d380850e | [
"MIT"
] | null | null | null | users/migrations/0005_alert_alert_time.py | LucLapenta/is-it-raining-site | e24e89a4f7223d11994029de09d64882d380850e | [
"MIT"
] | null | null | null | users/migrations/0005_alert_alert_time.py | LucLapenta/is-it-raining-site | e24e89a4f7223d11994029de09d64882d380850e | [
"MIT"
] | null | null | null | # Generated by Django 2.2.3 on 2019-07-08 02:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0004_auto_20190706_1751'),
]
operations = [
migrations.AddField(
model_name='alert',
name='alert_time',
... | 20.526316 | 55 | 0.592308 | 44 | 390 | 5.136364 | 0.818182 | 0.079646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125899 | 0.287179 | 390 | 18 | 56 | 21.666667 | 0.68705 | 0.115385 | 0 | 0 | 1 | 0 | 0.148688 | 0.067055 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c06e67b5b56f0cd5fb71d68a747fc72b19555a59 | 327 | py | Python | util/get_seqs_by_acc.py | Tancata/phylo | fb397c31b5cf4cea3c1513391b330e715da2d603 | [
"MIT"
] | 5 | 2020-11-02T06:23:36.000Z | 2021-09-07T01:35:35.000Z | util/get_seqs_by_acc.py | Tancata/phylo | fb397c31b5cf4cea3c1513391b330e715da2d603 | [
"MIT"
] | 1 | 2021-11-10T13:34:23.000Z | 2021-11-10T16:53:02.000Z | util/get_seqs_by_acc.py | Tancata/phylo | fb397c31b5cf4cea3c1513391b330e715da2d603 | [
"MIT"
] | 4 | 2018-07-17T13:35:20.000Z | 2021-07-09T18:28:44.000Z | #requires edirect to be installed
import re, sys, os
from Bio import SeqIO
seqs = SeqIO.index(sys.argv[1], "fasta")
for seq in seqs:
bits = re.split("_", seq.rstrip())
tmpname = bits[1] + ".tmp"
os.system("esearch -db protein -query \"" + bits[1] + " [GI]\" | efetch -format fasta > " + tmpname)
print b... | 29.727273 | 104 | 0.623853 | 49 | 327 | 4.142857 | 0.693878 | 0.073892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.204893 | 327 | 10 | 105 | 32.7 | 0.765385 | 0.097859 | 0 | 0 | 0 | 0 | 0.261905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c0785356a1b577f2f5e1bfaa3c1b4d6a32781f86 | 472 | py | Python | setup.py | EO-Forge/eo-forge | 85cfae9fd7727edb4ee71216b46993fda80094ba | [
"BSD-3-Clause"
] | 2 | 2021-09-12T14:23:47.000Z | 2021-09-12T17:43:49.000Z | setup.py | EO-Forge/eo-forge | 85cfae9fd7727edb4ee71216b46993fda80094ba | [
"BSD-3-Clause"
] | 6 | 2021-09-13T11:08:27.000Z | 2022-02-09T18:23:19.000Z | setup.py | EO-Forge/eo-forge | 85cfae9fd7727edb4ee71216b46993fda80094ba | [
"BSD-3-Clause"
] | null | null | null | import setuptools
import os
import configparser
from pathlib import Path
PROJECT_ROOT_DIR = Path(__file__).parent
if __name__ == "__main__":
setup_cfg_path = os.path.join(os.path.dirname(__file__), "setup.cfg")
config = configparser.ConfigParser()
config.read(setup_cfg_path)
version = config["metada... | 23.6 | 74 | 0.726695 | 61 | 472 | 5.180328 | 0.491803 | 0.075949 | 0.088608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158898 | 472 | 19 | 75 | 24.842105 | 0.79597 | 0 | 0 | 0 | 0 | 0 | 0.103814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c078e9e58a4eeb50aa6531e6456c4dec20782bd2 | 7,769 | py | Python | miwell-flask-app/tests/functional_tests/page_objects/patient_page_objects/patient_greeting_page_object.py | joshuahigginson1/DevOps-Assessment-1 | d617522ada565b8b587e2ff7525e1138d1559a75 | [
"MIT"
] | 1 | 2020-08-09T20:52:42.000Z | 2020-08-09T20:52:42.000Z | miwell-flask-app/tests/functional_tests/page_objects/patient_page_objects/patient_greeting_page_object.py | joshuahigginson1/DevOps-Assessment-1 | d617522ada565b8b587e2ff7525e1138d1559a75 | [
"MIT"
] | null | null | null | miwell-flask-app/tests/functional_tests/page_objects/patient_page_objects/patient_greeting_page_object.py | joshuahigginson1/DevOps-Assessment-1 | d617522ada565b8b587e2ff7525e1138d1559a75 | [
"MIT"
] | 1 | 2020-08-08T11:47:27.000Z | 2020-08-08T11:47:27.000Z | # Contains the objects found on our user greetings page.
# Imports --------------------------------------------------------------------------------
# Page Objects ---------------------------------------------------------------------------
class PatientGreetingPageObject(object):
bio = 'This is a test bio.'
... | 41.994595 | 101 | 0.668168 | 904 | 7,769 | 5.443584 | 0.138274 | 0.07153 | 0.082504 | 0.123755 | 0.55822 | 0.521845 | 0.512091 | 0.411705 | 0.298923 | 0.058931 | 0 | 0.013208 | 0.181362 | 7,769 | 184 | 102 | 42.222826 | 0.760535 | 0.062942 | 0 | 0.066667 | 0 | 0 | 0.242741 | 0.057933 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.008333 | 0 | 0.033333 | 0.375 | 0.016667 | 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 | 0 | 0 | 0 | 0 | 1 |
c07eeb57fee8b805f6f6c57b4ac87c69b72bc1cb | 416 | py | Python | classified/migrations/0005_auto_20191028_1802.py | icnmtrx/classified | c9515352e046293dacd66ba28cb32ae378edf832 | [
"MIT"
] | null | null | null | classified/migrations/0005_auto_20191028_1802.py | icnmtrx/classified | c9515352e046293dacd66ba28cb32ae378edf832 | [
"MIT"
] | 2 | 2021-06-08T20:56:16.000Z | 2021-09-08T01:41:42.000Z | classified/migrations/0005_auto_20191028_1802.py | icnmtrx/classified | c9515352e046293dacd66ba28cb32ae378edf832 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2019-10-28 18:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('classified', '0004_auto_20191027_1129'),
]
operations = [
migrations.AlterField(
model_name='classifiedad',
name='bo... | 21.894737 | 73 | 0.615385 | 45 | 416 | 5.555556 | 0.8 | 0.064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115132 | 0.269231 | 416 | 18 | 74 | 23.111111 | 0.707237 | 0.108173 | 0 | 0 | 1 | 0 | 0.143631 | 0.062331 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c082aef4aca25ffe6b9e4ac992fe30ed3d0a0d81 | 5,988 | py | Python | localization/pipeline/InstLocUber.py | cameronwp/MMGIS | 5e6277bd4f0c8ff77cd12dce51d41abffe0ac394 | [
"Apache-2.0",
"Unlicense"
] | 63 | 2019-03-28T18:46:55.000Z | 2022-03-25T02:49:24.000Z | localization/pipeline/InstLocUber.py | cameronwp/MMGIS | 5e6277bd4f0c8ff77cd12dce51d41abffe0ac394 | [
"Apache-2.0",
"Unlicense"
] | 75 | 2019-10-14T08:54:18.000Z | 2022-03-30T02:33:29.000Z | localization/pipeline/InstLocUber.py | cameronwp/MMGIS | 5e6277bd4f0c8ff77cd12dce51d41abffe0ac394 | [
"Apache-2.0",
"Unlicense"
] | 15 | 2019-12-15T11:26:01.000Z | 2022-03-25T02:49:27.000Z | #!/tps/bin/python
#******************************************************************************
# InstLocUber.py <inst> <beginning of sol range> <end of sol range>
#
# Project: Instrument Localization for instruments in a given sol
# Purpose: Localizations for instruments in planetary global frame
# ... | 39.92 | 159 | 0.577488 | 685 | 5,988 | 5 | 0.332847 | 0.037956 | 0.022774 | 0.026277 | 0.150657 | 0.117664 | 0.079416 | 0.061898 | 0.037956 | 0.016934 | 0 | 0.006045 | 0.28173 | 5,988 | 149 | 160 | 40.187919 | 0.790281 | 0.193888 | 0 | 0.066667 | 0 | 0.011111 | 0.380737 | 0.095636 | 0.011111 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.088889 | null | null | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c0855031a70898e55e6fe91db578fa7792580ace | 2,396 | py | Python | hasty/dataset.py | hasty-ai/hasty-python | e286c6cba8216d7b840a7fde5dc37b472b23296c | [
"MIT"
] | 1 | 2022-02-27T08:09:08.000Z | 2022-02-27T08:09:08.000Z | hasty/dataset.py | hasty-ai/hasty-python | e286c6cba8216d7b840a7fde5dc37b472b23296c | [
"MIT"
] | 3 | 2021-07-26T15:20:20.000Z | 2022-03-29T22:58:27.000Z | hasty/dataset.py | hasty-ai/hasty-python | e286c6cba8216d7b840a7fde5dc37b472b23296c | [
"MIT"
] | 2 | 2021-09-12T01:59:56.000Z | 2022-03-12T02:40:06.000Z | from collections import OrderedDict
from .hasty_object import HastyObject
from .requester import Requester
class Dataset(HastyObject):
endpoint = '/v1/projects/{project_id}/datasets'
endpoint_dataset = '/v1/projects/{project_id}/datasets/{dataset_id}'
def __repr__(self):
return self.get__repr__(... | 28.188235 | 111 | 0.534641 | 253 | 2,396 | 4.833992 | 0.209486 | 0.125102 | 0.053148 | 0.04906 | 0.248569 | 0.184792 | 0.142273 | 0.094849 | 0.094849 | 0.094849 | 0 | 0.001937 | 0.353506 | 2,396 | 84 | 112 | 28.52381 | 0.787605 | 0.075125 | 0 | 0.163265 | 0 | 0 | 0.083293 | 0.039454 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204082 | false | 0 | 0.061224 | 0.020408 | 0.44898 | 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 | 0 | 0 | 0 | 0 | 1 |
c08765bfc9476ea238cf43510cf8f3bfbc71ba71 | 2,603 | py | Python | arujisama_flask/app/common/resp_string.py | RE-A/Arujisama | 9d290c0c62dd54ec87fad7833d7932d75202d280 | [
"MIT"
] | 5 | 2020-03-05T09:32:09.000Z | 2020-03-06T08:07:55.000Z | arujisama_flask/app/common/resp_string.py | RE-A/Arujisama | 9d290c0c62dd54ec87fad7833d7932d75202d280 | [
"MIT"
] | 2 | 2020-03-06T11:53:05.000Z | 2022-02-18T22:03:09.000Z | arujisama_flask/app/common/resp_string.py | RE-A/Arujisama | 9d290c0c62dd54ec87fad7833d7932d75202d280 | [
"MIT"
] | 1 | 2020-03-05T09:50:31.000Z | 2020-03-05T09:50:31.000Z | from .response_code import Response_code
ret_dict = {
Response_code.DBFUNC_UNEXPECTED: "예기치 못한 오류", # 이 부분은 쓸 일이 없어야함.
# DB 쿼리 도중 오류,
Response_code.DB_ERROR: "쿼리 도중 오류",
# response 생성시 기본 값,
Response_code.NONE: " --- ", # 이 부분은 쓸 일이 없어야함.
# idexistcheck,
Response_code.ID_NOT_EXIST: "해당 ID... | 37.724638 | 71 | 0.703035 | 411 | 2,603 | 4.136253 | 0.306569 | 0.296471 | 0.098824 | 0.055882 | 0.124706 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001917 | 0.198233 | 2,603 | 68 | 72 | 38.279412 | 0.81265 | 0.112562 | 0 | 0 | 0 | 0 | 0.193351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.022222 | 0.022222 | 0.066667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c08920aa0fbe8a2fdf64ffb0988269f0cba9c805 | 2,548 | py | Python | SRC/image/pixelselectionmod.py | usnistgov/OOF3D | 4fd423a48aea9c5dc207520f02de53ae184be74c | [
"X11"
] | 31 | 2015-04-01T15:59:36.000Z | 2022-03-18T20:21:47.000Z | SRC/image/pixelselectionmod.py | usnistgov/OOF3D | 4fd423a48aea9c5dc207520f02de53ae184be74c | [
"X11"
] | 3 | 2015-02-06T19:30:24.000Z | 2017-05-25T14:14:31.000Z | SRC/image/pixelselectionmod.py | usnistgov/OOF3D | 4fd423a48aea9c5dc207520f02de53ae184be74c | [
"X11"
] | 7 | 2015-01-23T15:19:22.000Z | 2021-06-09T09:03:59.000Z | # -*- python -*-
# This software was produced by NIST, an agency of the U.S. government,
# and by statute is not subject to copyright in the United States.
# Recipients of this software assume all responsibilities associated
# with its operation, modification and maintenance. However, to
# facilitate maintenance we as... | 38.606061 | 78 | 0.703689 | 282 | 2,548 | 6.333333 | 0.485816 | 0.044793 | 0.06271 | 0.049272 | 0.040314 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001499 | 0.214286 | 2,548 | 65 | 79 | 39.2 | 0.890609 | 0.212323 | 0 | 0 | 0 | 0 | 0.270812 | 0.072217 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.043478 | false | 0 | 0.173913 | 0 | 0.23913 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
c097c0422a84f48e0d8376d187c4eb9916bc33fc | 1,408 | py | Python | user/tests/app/rsakeygen/verify_keys.py | zsoltmazlo/indoor-controller2 | 5fde9f40b30d087af03f6cccdb97821719941955 | [
"MIT"
] | 1 | 2019-02-24T07:13:51.000Z | 2019-02-24T07:13:51.000Z | user/tests/app/rsakeygen/verify_keys.py | zsoltmazlo/indoor-controller2 | 5fde9f40b30d087af03f6cccdb97821719941955 | [
"MIT"
] | 1 | 2018-05-29T19:27:53.000Z | 2018-05-29T19:27:53.000Z | user/tests/app/rsakeygen/verify_keys.py | zsoltmazlo/indoor-controller2 | 5fde9f40b30d087af03f6cccdb97821719941955 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
import os
import subprocess
def usage():
print '%s [input_file or tty]' % (sys.argv[0])
if len(sys.argv) != 2:
usage()
sys.exit(1)
f = open(sys.argv[1], 'r')
i = -1
def hex2bin(hex):
return hex.decode('hex')
def run(cmd, stdin):
p = subprocess.Popen(cmd, stdout=... | 25.142857 | 100 | 0.565341 | 198 | 1,408 | 4.015152 | 0.373737 | 0.067925 | 0.10566 | 0.056604 | 0.110692 | 0.067925 | 0 | 0 | 0 | 0 | 0 | 0.021395 | 0.236506 | 1,408 | 55 | 101 | 25.6 | 0.71814 | 0.014205 | 0 | 0.136364 | 0 | 0 | 0.116799 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068182 | null | null | 0.113636 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c0992575e6a1f507ccfbc8b2952906df3ced2dfd | 3,518 | py | Python | FindSuccessor.py | NickMonks/AlgorithmsAndDataStructure | ec1e7164b511cb755e6ae45c172df82cd0114b57 | [
"MIT"
] | null | null | null | FindSuccessor.py | NickMonks/AlgorithmsAndDataStructure | ec1e7164b511cb755e6ae45c172df82cd0114b57 | [
"MIT"
] | null | null | null | FindSuccessor.py | NickMonks/AlgorithmsAndDataStructure | ec1e7164b511cb755e6ae45c172df82cd0114b57 | [
"MIT"
] | null | null | null | import unittest
# This is an input class. Do not edit.
class BinaryTree:
def __init__(self, value, left=None, right=None, parent=None):
self.value = value
self.left = left
self.right = right
self.parent = parent
# O(h) time | O(1) space
def findSuccessor(tree, node):
# since w... | 34.831683 | 134 | 0.714326 | 525 | 3,518 | 4.76 | 0.295238 | 0.038415 | 0.02401 | 0.013605 | 0.029612 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005789 | 0.214326 | 3,518 | 100 | 135 | 35.18 | 0.898336 | 0.45253 | 0 | 0.036364 | 1 | 0 | 0.004204 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 1 | 0.127273 | false | 0 | 0.018182 | 0 | 0.327273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c0a1957fb76739ad692606036f4ac7f5cf7ab4fc | 887 | py | Python | components/results.py | hdirenzo/DiRenzo_H_RPS | 4296496c41020995fbc8ff82ebac5937126a8777 | [
"MIT"
] | null | null | null | components/results.py | hdirenzo/DiRenzo_H_RPS | 4296496c41020995fbc8ff82ebac5937126a8777 | [
"MIT"
] | null | null | null | components/results.py | hdirenzo/DiRenzo_H_RPS | 4296496c41020995fbc8ff82ebac5937126a8777 | [
"MIT"
] | null | null | null | from random import randint
from components import winlose, choices
# add function
def winner():
# compare the two
if choices.CPU == choices.player:
# tie - nothing else to compare, exit
print("Whoops! A tie! Try again!")
elif choices.player == "rock":
if choices.CPU == "paper":
print("===you lose!===")
... | 26.878788 | 49 | 0.64938 | 108 | 887 | 5.333333 | 0.351852 | 0.083333 | 0.083333 | 0.098958 | 0.543403 | 0.543403 | 0.477431 | 0.477431 | 0.477431 | 0.477431 | 0 | 0.008264 | 0.181511 | 887 | 33 | 50 | 26.878788 | 0.785124 | 0.072153 | 0 | 0.538462 | 0 | 0 | 0.178049 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | true | 0 | 0.076923 | 0 | 0.115385 | 0.269231 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
c0a28f095ac3af4f0784f539d49a3a13bdb165a4 | 854 | py | Python | app/server/utils/messaging.py | PhilipWafula/faulu-apis-demo | 082735ce8b2bfd010d5b4be9491a5c94a8f745d6 | [
"MIT"
] | 2 | 2020-05-29T03:43:28.000Z | 2020-06-11T16:03:36.000Z | app/server/utils/messaging.py | PhilipWafula/Flask-Server-Side | 082735ce8b2bfd010d5b4be9491a5c94a8f745d6 | [
"MIT"
] | 15 | 2020-04-06T10:27:06.000Z | 2020-08-16T09:25:20.000Z | app/server/utils/messaging.py | PhilipWafula/faulu-apis-demo | 082735ce8b2bfd010d5b4be9491a5c94a8f745d6 | [
"MIT"
] | 1 | 2020-06-07T14:09:05.000Z | 2020-06-07T14:09:05.000Z | from flask import current_app
from app.server import app_logger
from app.server import ContextEnvironment
from app.server import sms
from app.server.models.user import User
def send_sms(message: str, phone_number: str):
context_env = ContextEnvironment(current_app)
if context_env.is_development or context_en... | 30.5 | 73 | 0.702576 | 116 | 854 | 4.991379 | 0.448276 | 0.048359 | 0.08981 | 0.098446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210773 | 854 | 27 | 74 | 31.62963 | 0.85905 | 0.042155 | 0 | 0 | 0 | 0 | 0.17402 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0.1 | false | 0 | 0.25 | 0 | 0.4 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
c0a6a84e0442d6fd86e7b271ca9a0bea4095fb3c | 659 | py | Python | cursoemvideo/python/exercicio/022(analisadorDeTexto).py | mateusjustino/cursos | 10927bf62f89b5847bb0acd998e9e9191472d0f4 | [
"MIT"
] | null | null | null | cursoemvideo/python/exercicio/022(analisadorDeTexto).py | mateusjustino/cursos | 10927bf62f89b5847bb0acd998e9e9191472d0f4 | [
"MIT"
] | null | null | null | cursoemvideo/python/exercicio/022(analisadorDeTexto).py | mateusjustino/cursos | 10927bf62f89b5847bb0acd998e9e9191472d0f4 | [
"MIT"
] | null | null | null | nome = 'Pedro Silva Mendonça'
print("O nome com todas as letras maiusculas:")
print(nome.upper())
print("O nome com todas as letras minusculas:")
print(nome.lower())
#da pra fazer assim
print('(Primeiro jeito) Quantas letras ao todo(sem considerar os espaços):')
print(len(nome.strip().replace(" ", "")))
#ou assim
prin... | 31.380952 | 76 | 0.722307 | 98 | 659 | 4.857143 | 0.387755 | 0.084034 | 0.151261 | 0.054622 | 0.693277 | 0.693277 | 0.693277 | 0.39916 | 0.39916 | 0.243697 | 0 | 0.001733 | 0.124431 | 659 | 20 | 77 | 32.95 | 0.823224 | 0.078907 | 0 | 0 | 0 | 0 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.857143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
c0acda4daf00ba511062631a73a94a2f11b4bdcb | 637 | py | Python | machines/migrations/0002_auto_20190921_1927.py | minikdo/domino | 16ccc5b36c730c8bee223024e02b4984feedef26 | [
"Apache-2.0"
] | null | null | null | machines/migrations/0002_auto_20190921_1927.py | minikdo/domino | 16ccc5b36c730c8bee223024e02b4984feedef26 | [
"Apache-2.0"
] | 1 | 2022-02-10T10:54:20.000Z | 2022-02-10T10:54:20.000Z | machines/migrations/0002_auto_20190921_1927.py | minikdo/domino | 16ccc5b36c730c8bee223024e02b4984feedef26 | [
"Apache-2.0"
] | 1 | 2018-11-19T23:17:52.000Z | 2018-11-19T23:17:52.000Z | # Generated by Django 2.2.5 on 2019-09-21 17:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('machines', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='device',
name='serial',
fi... | 26.541667 | 105 | 0.601256 | 69 | 637 | 5.449275 | 0.57971 | 0.047872 | 0.079787 | 0.101064 | 0.319149 | 0.319149 | 0.319149 | 0.319149 | 0.319149 | 0.319149 | 0 | 0.05423 | 0.276295 | 637 | 23 | 106 | 27.695652 | 0.761388 | 0.070644 | 0 | 0.235294 | 1 | 0 | 0.122034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c0b28414ff6350dbfc1541327e48b4a8e95562d6 | 1,315 | py | Python | actionsets/FingerGuide.py | 8Avalon8/pisces_af | d973f07ba31fa39e01e953e15c29e3030ba9ab32 | [
"MIT"
] | null | null | null | actionsets/FingerGuide.py | 8Avalon8/pisces_af | d973f07ba31fa39e01e953e15c29e3030ba9ab32 | [
"MIT"
] | null | null | null | actionsets/FingerGuide.py | 8Avalon8/pisces_af | d973f07ba31fa39e01e953e15c29e3030ba9ab32 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
username :
password :
'''
acts = ActionSet(tag=tag,desc=desc,mp=mp)
#act1
arg = { "detectRegion" : gl.R_Screen,
"imagePattern" : Pattern("6.png").similar(0.90).targetOffset(0,-69),
"loopWaitingTime": 0,
"failResponse" : "Ignore",
"loopTime": 0,
"saveI... | 30.581395 | 77 | 0.584791 | 153 | 1,315 | 5 | 0.333333 | 0.078431 | 0.088889 | 0.094118 | 0.739869 | 0.67451 | 0.606536 | 0.381699 | 0.381699 | 0.381699 | 0 | 0.043562 | 0.214449 | 1,315 | 43 | 78 | 30.581395 | 0.696999 | 0.045627 | 0 | 0.727273 | 0 | 0 | 0.266881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c0b77bfb8ee70d5b7ab44566b9f4182a56047382 | 2,031 | py | Python | draft/migrations/0001_initial.py | zffgithub/genshin-bp | acf68fb49086492fcff4a02ab9ab8e9c4346257a | [
"MIT"
] | null | null | null | draft/migrations/0001_initial.py | zffgithub/genshin-bp | acf68fb49086492fcff4a02ab9ab8e9c4346257a | [
"MIT"
] | null | null | null | draft/migrations/0001_initial.py | zffgithub/genshin-bp | acf68fb49086492fcff4a02ab9ab8e9c4346257a | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-04-17 23:13
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Champion',
fields=[
... | 43.212766 | 133 | 0.570162 | 218 | 2,031 | 5.12844 | 0.399083 | 0.167263 | 0.064401 | 0.101968 | 0.47585 | 0.368515 | 0.368515 | 0.334526 | 0.223614 | 0.141324 | 0 | 0.025833 | 0.275726 | 2,031 | 46 | 134 | 44.152174 | 0.734194 | 0.022157 | 0 | 0.307692 | 1 | 0 | 0.136089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.025641 | 0.051282 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c0c4fa25485091bde17f0c59bc81ace61db8116f | 801 | py | Python | elimika_backend/questions/serializers.py | bawabu/elimika_backend | d7a3d59454b7bebd09e6950a37532ff86848fb0b | [
"MIT"
] | null | null | null | elimika_backend/questions/serializers.py | bawabu/elimika_backend | d7a3d59454b7bebd09e6950a37532ff86848fb0b | [
"MIT"
] | null | null | null | elimika_backend/questions/serializers.py | bawabu/elimika_backend | d7a3d59454b7bebd09e6950a37532ff86848fb0b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from rest_framework import serializers
from elimika_backend.common.serializers.base import AuditFieldsMixin
from elimika_backend.users.serializers import UserSerializer
from .models import Question, Choice, Answer
class ChoiceSerialize... | 21.648649 | 68 | 0.750312 | 82 | 801 | 7.121951 | 0.512195 | 0.046233 | 0.071918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00152 | 0.178527 | 801 | 36 | 69 | 22.25 | 0.886018 | 0.026217 | 0 | 0.157895 | 0 | 0 | 0.034704 | 0.028278 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.263158 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c0c654258d1c8cfb8ea4e4533168493a4906d87b | 233 | py | Python | core/templatetags/poll_extra.py | Lok-tar-ogar/hexedu | 26d57462613d993f50d0fc00fc2637e67222f577 | [
"Unlicense"
] | null | null | null | core/templatetags/poll_extra.py | Lok-tar-ogar/hexedu | 26d57462613d993f50d0fc00fc2637e67222f577 | [
"Unlicense"
] | 5 | 2021-06-08T21:19:23.000Z | 2022-03-12T00:24:39.000Z | core/templatetags/poll_extra.py | Lok-tar-ogar/hexedu | 26d57462613d993f50d0fc00fc2637e67222f577 | [
"Unlicense"
] | 1 | 2018-06-28T06:03:39.000Z | 2018-06-28T06:03:39.000Z | from django import template
from core.models import *
register = template.Library()
import re
@register.filter(name="cimg")
def cimg(value):
if value.img.name != '':
return value.img.name[4:]
else:
return "" | 19.416667 | 33 | 0.652361 | 31 | 233 | 4.903226 | 0.612903 | 0.105263 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005464 | 0.214592 | 233 | 12 | 34 | 19.416667 | 0.825137 | 0 | 0 | 0 | 0 | 0 | 0.017094 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c0ce37dd598d72e4bb65692d0bbc18e5b021d588 | 1,553 | py | Python | src/kd/text/kd_api_kns.py | chiyukuan/ktest | 05714b683940d88a8c0b3523a5245ca056a457da | [
"MIT"
] | null | null | null | src/kd/text/kd_api_kns.py | chiyukuan/ktest | 05714b683940d88a8c0b3523a5245ca056a457da | [
"MIT"
] | null | null | null | src/kd/text/kd_api_kns.py | chiyukuan/ktest | 05714b683940d88a8c0b3523a5245ca056a457da | [
"MIT"
] | null | null | null | #! /usr/bin/env python
''' ------------------------| Python SOURCE FILE |------------------------
The Description of this file.
@copyright: Copyright (c) by Kodiak Data, Inc. All rights reserved.
'''
from kd.text.xml_base import XmlBase
class KdApiKns(XmlBase):
def __init__(self, apiKnsFN):
super(Kd... | 33.76087 | 83 | 0.564713 | 150 | 1,553 | 5.7 | 0.52 | 0.161404 | 0.084211 | 0.147368 | 0.05848 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01085 | 0.28783 | 1,553 | 45 | 84 | 34.511111 | 0.762206 | 0.013522 | 0 | 0 | 0 | 0 | 0.080242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035714 | null | null | 0.035714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c0dbcb706eb6b4118a5677ab70fdb3c263584c91 | 1,578 | py | Python | deep_ner/udpipe_data.py | bond005/elmo_ner | c6135cfca5d7bf817a22c8c8631e7f81f6f05f94 | [
"Apache-2.0"
] | 80 | 2019-03-21T13:04:32.000Z | 2021-09-27T16:53:34.000Z | deep_ner/udpipe_data.py | bond005/elmo_ner | c6135cfca5d7bf817a22c8c8631e7f81f6f05f94 | [
"Apache-2.0"
] | 7 | 2019-06-06T13:49:54.000Z | 2022-02-10T01:05:18.000Z | deep_ner/udpipe_data.py | bond005/elmo_ner | c6135cfca5d7bf817a22c8c8631e7f81f6f05f94 | [
"Apache-2.0"
] | 16 | 2019-03-20T06:54:40.000Z | 2021-09-23T17:40:24.000Z | import re
from typing import Set
import spacy_udpipe
from spacy_udpipe import UDPipeLanguage
UNIVERSAL_POS_TAGS = ['ADJ', 'ADP', 'ADV', 'AUX', 'CCONJ', 'CONJ', 'DET', 'INTJ', 'NOUN', 'NUM', 'PART', 'PRON',
'PROPN', 'PUNCT', 'SCONJ', 'SYM', 'VERB', 'X']
UNIVERSAL_DEPENDENCIES = ['acl', 'advcl', ... | 43.833333 | 119 | 0.552598 | 173 | 1,578 | 4.930636 | 0.67052 | 0.064478 | 0.044549 | 0.053927 | 0.063306 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005124 | 0.257921 | 1,578 | 35 | 120 | 45.085714 | 0.723313 | 0 | 0 | 0.071429 | 0 | 0 | 0.236375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.142857 | 0.142857 | 0 | 0.285714 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
c0e107511283dfb1a6b514ab181e584e2a4d1e9a | 660 | py | Python | plugins/bap/utils/_comment_handler.py | gitoleg/bap-ida-python | f1cdd95578c331f1f3fba2150c2e2d134b8897f0 | [
"MIT"
] | 81 | 2016-06-10T19:07:12.000Z | 2022-03-23T08:15:41.000Z | plugins/bap/utils/_comment_handler.py | gitoleg/bap-ida-python | f1cdd95578c331f1f3fba2150c2e2d134b8897f0 | [
"MIT"
] | 22 | 2016-06-16T19:35:59.000Z | 2020-12-10T14:53:38.000Z | plugins/bap/utils/_comment_handler.py | gitoleg/bap-ida-python | f1cdd95578c331f1f3fba2150c2e2d134b8897f0 | [
"MIT"
] | 29 | 2016-06-10T18:26:04.000Z | 2022-02-14T06:15:30.000Z |
class CommentHandlers(object):
def __init__(self):
self.handlers = []
self.comments = {}
def handler(self):
def wrapped(func):
self.register(func)
return func
return wrapped
def register_handler(self, func):
for handler in self.handlers:
... | 25.384615 | 52 | 0.562121 | 73 | 660 | 4.958904 | 0.328767 | 0.096685 | 0.099448 | 0.088398 | 0.132597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.328788 | 660 | 25 | 53 | 26.4 | 0.817156 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.4 | 0.05 | 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 | 0 | 0 | 0 | 0 | 1 |
c0f8b50306e1c13d41d41578a4e6de5770f22947 | 413 | py | Python | sumVita.py | DavePool/python | f5b3f116af368c5c8b332934e54efa357fc6e9f0 | [
"Apache-2.0"
] | null | null | null | sumVita.py | DavePool/python | f5b3f116af368c5c8b332934e54efa357fc6e9f0 | [
"Apache-2.0"
] | null | null | null | sumVita.py | DavePool/python | f5b3f116af368c5c8b332934e54efa357fc6e9f0 | [
"Apache-2.0"
] | null | null | null |
def fact(f):
factorial = 1
for i in range(1,f+1):
factorial *= i
return factorial
def com(n, k):
combina = fact(n)/(fact(k)*fact(n-k))
return combina
def sum(n, k):
suma = 0
for i in range(k+1):
if i % 2 == 0:
suma += com(n,i)
return suma
n, k = map(int,... | 17.208333 | 44 | 0.491525 | 74 | 413 | 2.72973 | 0.391892 | 0.059406 | 0.059406 | 0.108911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040146 | 0.336562 | 413 | 23 | 45 | 17.956522 | 0.69708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.055556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8d06f10ae2aa000f49b3d71ec21300aabace4fea | 484 | py | Python | project/apps/adjudication/migrations/0006_auto_20190920_1614.py | dbinetti/barberscore | 13c3d8193834bd2bb79922e28d3f5ab1675bdffd | [
"BSD-2-Clause"
] | 13 | 2017-08-07T15:45:49.000Z | 2019-07-03T13:58:50.000Z | project/apps/adjudication/migrations/0006_auto_20190920_1614.py | barberscore/barberscore-api | 2aa9f8598c18c28ba1d4a294f76fd055619f803e | [
"BSD-2-Clause"
] | 309 | 2017-07-14T02:34:12.000Z | 2022-01-14T21:37:02.000Z | project/apps/adjudication/migrations/0006_auto_20190920_1614.py | dbinetti/barberscore-django | 16fbd9945becda0a765bbdf52ad459a63655128f | [
"BSD-2-Clause"
] | 5 | 2017-08-07T14:01:07.000Z | 2019-06-24T19:44:55.000Z | # Generated by Django 2.2.5 on 2019-09-20 23:14
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('adjudication', '0005_auto_20190918_0711'),
]
operations = [
migrations.AlterField(
model_name='... | 24.2 | 108 | 0.650826 | 54 | 484 | 5.703704 | 0.759259 | 0.064935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084469 | 0.241736 | 484 | 19 | 109 | 25.473684 | 0.754768 | 0.092975 | 0 | 0 | 1 | 0 | 0.132723 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8d0b825d9dfcc531269820ab94195d8151e7dc66 | 951 | py | Python | bricklayer/utils/downloader.py | cbrentharris/bricklayer | c3f7ac408c50b97329438b77c617f09a91fca767 | [
"MIT"
] | null | null | null | bricklayer/utils/downloader.py | cbrentharris/bricklayer | c3f7ac408c50b97329438b77c617f09a91fca767 | [
"MIT"
] | null | null | null | bricklayer/utils/downloader.py | cbrentharris/bricklayer | c3f7ac408c50b97329438b77c617f09a91fca767 | [
"MIT"
] | null | null | null | import platform
import urllib
import subprocess
from progressbar import ProgressBar
class Downloader(object):
WINDOWS_DOWNLOAD_URL = "http://cache.lego.com/downloads/ldd2.0/installer/setupLDD-PC-4_3_8.exe"
MAC_DOWNLOAD_URL = "http://cache.lego.com/downloads/ldd2.0/installer/setupLDD-MAC-4_3_8.zip"
PB = N... | 27.970588 | 99 | 0.680336 | 121 | 951 | 5.190083 | 0.429752 | 0.070064 | 0.057325 | 0.063694 | 0.184713 | 0.184713 | 0.184713 | 0.184713 | 0.184713 | 0.184713 | 0 | 0.013193 | 0.202944 | 951 | 33 | 100 | 28.818182 | 0.815303 | 0.028391 | 0 | 0.130435 | 0 | 0.086957 | 0.182213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0.043478 | 0.173913 | 0 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8d0ccff59fae8937f7ce472e48e8e4ee372e3ad6 | 10,749 | py | Python | scripts/datasets.py | HPG-AI/bachbot | 6656e866ea67a1092a1a450117a7766c9baf88d0 | [
"MIT"
] | 380 | 2016-05-13T00:53:25.000Z | 2022-03-24T21:09:16.000Z | scripts/datasets.py | HPG-AI/bachbot | 6656e866ea67a1092a1a450117a7766c9baf88d0 | [
"MIT"
] | 11 | 2017-09-21T03:56:06.000Z | 2021-09-07T23:37:16.000Z | scripts/datasets.py | kaizengrowth/bachbot | 6656e866ea67a1092a1a450117a7766c9baf88d0 | [
"MIT"
] | 56 | 2016-08-03T22:01:06.000Z | 2022-03-03T18:45:07.000Z | import click
import json, cPickle
import requests, zipfile
import os, glob
from music21 import analysis, converter, corpus, meter
from music21.note import Note
from constants import *
@click.group()
def datasets():
"""Constructs various datasets."""
pass
@click.command()
@click.option('--keep-fermatas', ty... | 40.108209 | 157 | 0.625267 | 1,468 | 10,749 | 4.39782 | 0.223433 | 0.04461 | 0.023544 | 0.018587 | 0.233271 | 0.189281 | 0.168216 | 0.139715 | 0.122057 | 0.096964 | 0 | 0.01079 | 0.241232 | 10,749 | 267 | 158 | 40.258427 | 0.780775 | 0.072379 | 0 | 0.206522 | 0 | 0 | 0.098062 | 0 | 0 | 0 | 0 | 0.007491 | 0 | 0 | null | null | 0.005435 | 0.038043 | null | null | 0.021739 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2388bab2fac5c25969df1da7dd9c10ef1fc5271f | 2,523 | py | Python | python/stack-and-queue/tests/test_stack_and_queue.py | mohmmadnoorjebreen/data-structures-and-algorithms | ab69cd9dc48e8508947a6f3f316cb44a96c99c42 | [
"MIT"
] | null | null | null | python/stack-and-queue/tests/test_stack_and_queue.py | mohmmadnoorjebreen/data-structures-and-algorithms | ab69cd9dc48e8508947a6f3f316cb44a96c99c42 | [
"MIT"
] | 18 | 2021-07-29T19:52:28.000Z | 2021-09-11T11:22:43.000Z | python/stack-and-queue/tests/test_stack_and_queue.py | mohmmadnoorjebreen/data-structures-and-algorithms | ab69cd9dc48e8508947a6f3f316cb44a96c99c42 | [
"MIT"
] | null | null | null | from stack_and_queue import __version__
import pytest
from stack_and_queue.stack_and_queue import Stack , Queue
def test_version():
assert __version__ == '0.1.0'
def test_push_onto_a_stack():
node = Stack()
node.push(1)
excepted =1
actual = node.top.data
assert excepted == actual
def test_p... | 21.75 | 67 | 0.666667 | 355 | 2,523 | 4.44507 | 0.160563 | 0.06654 | 0.126743 | 0.145754 | 0.688213 | 0.687579 | 0.665399 | 0.585551 | 0.453105 | 0.379594 | 0 | 0.015432 | 0.229489 | 2,523 | 115 | 68 | 21.93913 | 0.796296 | 0 | 0 | 0.736842 | 0 | 0 | 0.01071 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.157895 | false | 0 | 0.031579 | 0 | 0.189474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
238cf74c8432bf9f7bd85377a3b2e61cd90a755c | 3,827 | py | Python | HOLDINgSTUFF.py | CoDay37/drmValidator | 50dc0680f9b1b8d08c5ced1c72a9dfe9c77a34c9 | [
"MIT"
] | 1 | 2018-08-03T13:47:57.000Z | 2018-08-03T13:47:57.000Z | HOLDINgSTUFF.py | CoDay37/drmValidator | 50dc0680f9b1b8d08c5ced1c72a9dfe9c77a34c9 | [
"MIT"
] | 3 | 2018-06-05T20:31:49.000Z | 2018-06-07T18:48:45.000Z | HOLDINgSTUFF.py | CoDay37/drmValidator | 50dc0680f9b1b8d08c5ced1c72a9dfe9c77a34c9 | [
"MIT"
] | null | null | null | #from pageParser
'''
lines = []
with open('output111.txt', 'rt') as in_file:
for line in in_file:
lines.append(line.rstrip('\n'))
counter = (len(lines))
holder = 0
for element in range(0, counter):
if(lines[holder].find('a') == -1):
... | 36.798077 | 124 | 0.504834 | 437 | 3,827 | 4.340961 | 0.329519 | 0.01845 | 0.023722 | 0.016869 | 0.063258 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02015 | 0.338646 | 3,827 | 104 | 125 | 36.798077 | 0.729356 | 0.725372 | 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 | 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 | 1 |
238e5e3ada76f29376614a3646b153e48497af09 | 3,248 | py | Python | getl/common/utils.py | husqvarnagroup/GETL | 37251abf12bac2efed1fe463b09a288d85969141 | [
"MIT"
] | 8 | 2020-06-10T09:00:17.000Z | 2021-06-07T18:02:19.000Z | getl/common/utils.py | husqvarnagroup/GETL | 37251abf12bac2efed1fe463b09a288d85969141 | [
"MIT"
] | 5 | 2020-07-03T10:39:25.000Z | 2021-08-30T14:52:47.000Z | getl/common/utils.py | husqvarnagroup/GETL | 37251abf12bac2efed1fe463b09a288d85969141 | [
"MIT"
] | 1 | 2020-05-28T07:53:48.000Z | 2020-05-28T07:53:48.000Z | """
The Utils module containing utility functions for lift jobs.
Utilities supported:
1. json_to_spark_schema: Converts a json schema to spark schema.
2. delete_files: Deletes a list of s3 files provided.
3. copy_keys: Copies files between S3 buckets.
4. copy_and_cleanup: Copies files between S3 and removes them from ... | 25.984 | 97 | 0.646244 | 430 | 3,248 | 4.795349 | 0.297674 | 0.033948 | 0.027158 | 0.032978 | 0.290495 | 0.226479 | 0.226479 | 0.226479 | 0.204656 | 0.168768 | 0 | 0.010318 | 0.254002 | 3,248 | 124 | 98 | 26.193548 | 0.840693 | 0.51016 | 0 | 0.111111 | 0 | 0 | 0.142552 | 0.016393 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
2394acb1c196e466ca7535d6c1d554b017e16c66 | 1,675 | py | Python | neighapp/migrations/0004_business_occupant.py | RonaldKiprotich/Neighborhood | 15f382473e6051cf92906a41f413736557ab3342 | [
"MIT"
] | null | null | null | neighapp/migrations/0004_business_occupant.py | RonaldKiprotich/Neighborhood | 15f382473e6051cf92906a41f413736557ab3342 | [
"MIT"
] | null | null | null | neighapp/migrations/0004_business_occupant.py | RonaldKiprotich/Neighborhood | 15f382473e6051cf92906a41f413736557ab3342 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2020-12-02 09:55
import cloudinary.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
(... | 42.948718 | 152 | 0.630448 | 172 | 1,675 | 6 | 0.406977 | 0.03876 | 0.054264 | 0.085271 | 0.398256 | 0.398256 | 0.398256 | 0.362403 | 0.362403 | 0.362403 | 0 | 0.025781 | 0.235821 | 1,675 | 38 | 153 | 44.078947 | 0.780469 | 0.026866 | 0 | 0.375 | 1 | 0 | 0.115479 | 0.027027 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.21875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2395d10fd24db587c5b9b7c4983e3b4ee86388be | 276 | py | Python | config.py | PashaKim/flask_blog_test | 85b55f412cfb7bdcad364367add20e9c9fdc2f5d | [
"MIT"
] | null | null | null | config.py | PashaKim/flask_blog_test | 85b55f412cfb7bdcad364367add20e9c9fdc2f5d | [
"MIT"
] | null | null | null | config.py | PashaKim/flask_blog_test | 85b55f412cfb7bdcad364367add20e9c9fdc2f5d | [
"MIT"
] | null | null | null | import os
class Configuration:
DEBUG = True
PROJECT_ROOT = os.path.dirname(os.path.realpath(__file__))
DATABASE = os.path.join(PROJECT_ROOT, 'tmp', 'flask_test.db')
SQLALCHEMY_DATABASE_URI = f'sqlite:///{DATABASE}'
SQLALCHEMY_TRACK_MODIFICATIONS = True
| 25.090909 | 65 | 0.721014 | 35 | 276 | 5.371429 | 0.685714 | 0.095745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15942 | 276 | 10 | 66 | 27.6 | 0.810345 | 0 | 0 | 0 | 0 | 0 | 0.130909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
23a341b21bff0c11940be3b5defd7d1423e1ac8a | 1,688 | py | Python | zvt/domain/quotes/stock/stock_1mon_kdata.py | webclinic017/FinanceCenter | 1511751fe6d7d1f1fb940ae66d29b45eb0782fea | [
"MIT"
] | 22 | 2020-10-22T14:24:32.000Z | 2022-03-30T22:19:14.000Z | zvt/domain/quotes/stock/stock_1mon_kdata.py | webclinic017/FinanceCenter | 1511751fe6d7d1f1fb940ae66d29b45eb0782fea | [
"MIT"
] | 1 | 2021-08-14T12:19:18.000Z | 2021-09-30T06:44:04.000Z | zvt/domain/quotes/stock/stock_1mon_kdata.py | webclinic017/FinanceCenter | 1511751fe6d7d1f1fb940ae66d29b45eb0782fea | [
"MIT"
] | 6 | 2021-01-14T20:50:06.000Z | 2022-01-11T23:12:43.000Z | # -*- coding: utf-8 -*-
# this file is generated by gen_kdata_schema function, dont't change it
from sqlalchemy.ext.declarative import declarative_base
from zvt.api.data_type import Region, Provider, EntityType
from zvt.domain.quotes import StockKdataCommon
from zvt.contract.register import register_schema
KdataBase ... | 35.166667 | 79 | 0.671801 | 174 | 1,688 | 6.206897 | 0.321839 | 0.05 | 0.094444 | 0.108333 | 0.602778 | 0.483333 | 0.483333 | 0.483333 | 0.437963 | 0.437963 | 0 | 0.010046 | 0.233412 | 1,688 | 47 | 80 | 35.914894 | 0.824575 | 0.06872 | 0 | 0.5 | 1 | 0 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
23b5e4b7a37e09c4e69a592d83c112a9b316dc68 | 542 | py | Python | ml-service/ml-server/api.py | yliang123/TeamFormationAssistant | e6b95a0d84aef3bf5659ebf8fb33e68ce9997d46 | [
"MIT"
] | 1 | 2021-09-19T20:47:44.000Z | 2021-09-19T20:47:44.000Z | ml-service/ml-server/api.py | yliang123/TeamFormationAssistant | e6b95a0d84aef3bf5659ebf8fb33e68ce9997d46 | [
"MIT"
] | 40 | 2021-09-19T21:05:41.000Z | 2021-10-02T04:09:07.000Z | ml-service/ml-server/api.py | yliang123/TeamFormationAssistant | e6b95a0d84aef3bf5659ebf8fb33e68ce9997d46 | [
"MIT"
] | 2 | 2021-10-02T05:54:12.000Z | 2021-10-11T04:17:39.000Z | # import time
from flask import Flask,redirect
from .TeamAssigner import assignTeam
from .CandidateAssigner import assignCandidate
app = Flask(__name__)
@app.route("/executeAlgo")
def execute_algo():
assignTeam()
return redirect("http://localhost:3000/team_match_success")
# return {
# "msg": "succ... | 23.565217 | 68 | 0.688192 | 55 | 542 | 6.6 | 0.490909 | 0.044077 | 0.099174 | 0.14876 | 0.170799 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018018 | 0.180812 | 542 | 22 | 69 | 24.636364 | 0.79955 | 0.175277 | 0 | 0 | 0 | 0 | 0.248292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
23c3f0f0c4e05934fee9e4d695a7abd5b779c789 | 648 | py | Python | oTree/encrypt_js/pages.py | vbenndorf/wedr | c69892cf90cbe769b0976892dff015c9289bdb30 | [
"MIT"
] | 3 | 2020-12-09T14:53:49.000Z | 2022-02-01T07:55:17.000Z | oTree/encrypt_js/pages.py | vbenndorf/wedr | c69892cf90cbe769b0976892dff015c9289bdb30 | [
"MIT"
] | null | null | null | oTree/encrypt_js/pages.py | vbenndorf/wedr | c69892cf90cbe769b0976892dff015c9289bdb30 | [
"MIT"
] | 2 | 2020-09-07T14:18:08.000Z | 2021-05-20T21:43:17.000Z | from ._builtin import Page, WaitPage
from .models import Constants
class Task(Page):
form_model = 'player'
form_fields = ['performance', 'mistakes']
if Constants.use_timeout:
timeout_seconds = Constants.seconds_per_period
def vars_for_template(self):
legend_list = [j for j in range... | 28.173913 | 66 | 0.648148 | 81 | 648 | 4.901235 | 0.493827 | 0.075567 | 0.040302 | 0.04534 | 0.080605 | 0.080605 | 0 | 0 | 0 | 0 | 0 | 0.008368 | 0.262346 | 648 | 22 | 67 | 29.454545 | 0.822176 | 0 | 0 | 0 | 0 | 0 | 0.084877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.111111 | 0 | 0.388889 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
23c5e65c2fe8411a03baee38fe4308c6ce5cb021 | 713 | py | Python | face_detection_combined.py | parthagar/FaceDetection | 90d6dcc1ec173e7475088ecfe0650606c176d014 | [
"MIT"
] | null | null | null | face_detection_combined.py | parthagar/FaceDetection | 90d6dcc1ec173e7475088ecfe0650606c176d014 | [
"MIT"
] | null | null | null | face_detection_combined.py | parthagar/FaceDetection | 90d6dcc1ec173e7475088ecfe0650606c176d014 | [
"MIT"
] | null | null | null | from detect_faces_using_cascade import detect_faces_using_cascade
from detect_faces_using_model import detect_faces_using_model
print('Using what?\n'
'1. Haar Cascades (Faster but less accurate and only detects face is parallel to capturing point\n'
'2. DNN Model (Slower but more accurate and can dete... | 37.526316 | 106 | 0.712482 | 108 | 713 | 4.537037 | 0.481481 | 0.134694 | 0.195918 | 0.140816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01406 | 0.201964 | 713 | 19 | 107 | 37.526316 | 0.8471 | 0 | 0 | 0 | 0 | 0 | 0.469828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
23ca2f6d9a3a616ebb6d88f18584f5dd3ecd6474 | 446 | py | Python | tcp_client.py | We4theReport/python-networking | 2491973ccc50af836933cc077bb1133a408105d2 | [
"MIT"
] | null | null | null | tcp_client.py | We4theReport/python-networking | 2491973ccc50af836933cc077bb1133a408105d2 | [
"MIT"
] | null | null | null | tcp_client.py | We4theReport/python-networking | 2491973ccc50af836933cc077bb1133a408105d2 | [
"MIT"
] | null | null | null | import socket
target_host = "www.google.com"
target_port = 80
# create a socket object, af_inet says we are going to use IPv4, sock_stream indicates that this will be a TCP client
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# connect the client
client.connect((target_host,target_port))
# send some da... | 23.473684 | 117 | 0.76009 | 76 | 446 | 4.355263 | 0.605263 | 0.060423 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.139013 | 446 | 18 | 118 | 24.777778 | 0.841146 | 0.374439 | 0 | 0 | 0 | 0.125 | 0.20073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
23cac308a34dcaf01cafa829f5840828d064c5be | 3,404 | py | Python | edgex_access/__init__.py | nacharya/edgex_access | c0b7599293de20ab15f026f76f6c695cbd70cf76 | [
"MIT"
] | null | null | null | edgex_access/__init__.py | nacharya/edgex_access | c0b7599293de20ab15f026f76f6c695cbd70cf76 | [
"MIT"
] | 5 | 2020-03-24T16:37:57.000Z | 2021-04-30T20:41:34.000Z | edgex_access/__init__.py | nacharya/edgex_access | c0b7599293de20ab15f026f76f6c695cbd70cf76 | [
"MIT"
] | null | null | null | import os
import sys
path = os.path.join(__path__[0], 'version.py')
__version__ = eval(open(path).read())
__all__ = ['EdgexAccess', 'EdgexConfig', 'EdgexStore', 'EdgexObject', 'EdgexHash',
'EdgexStoreBase', 'EdgexAccessBase',
'EdgexFSStore',
'EdgexFSAccess',
'EdgexGoogStore'... | 31.229358 | 82 | 0.560223 | 145 | 3,404 | 13.02069 | 0.827586 | 0.033369 | 0.047669 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001788 | 0.342832 | 3,404 | 108 | 83 | 31.518519 | 0.842199 | 0.001763 | 0 | 0 | 0 | 0 | 0.496318 | 0.186156 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086538 | 0 | 0.086538 | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
23cd0a3dc16b2607fce1df94607d1701f55a31f8 | 224 | py | Python | Basic Scripts/swap.py | rokingshubham1/Python_Scripts | 15a0ce58da80eb46af2523e6a5b2ed51ac43eeb5 | [
"Unlicense"
] | 20 | 2020-08-17T13:49:03.000Z | 2022-01-26T18:04:14.000Z | Basic Scripts/swap.py | rokingshubham1/Python_Scripts | 15a0ce58da80eb46af2523e6a5b2ed51ac43eeb5 | [
"Unlicense"
] | 20 | 2020-09-30T15:49:38.000Z | 2021-10-21T05:06:00.000Z | Basic Scripts/swap.py | rokingshubham1/Python_Scripts | 15a0ce58da80eb46af2523e6a5b2ed51ac43eeb5 | [
"Unlicense"
] | 67 | 2020-08-17T18:23:11.000Z | 2022-02-21T08:29:16.000Z | x=int(input("Enter first number:\n"))
y=int(input("Enter second number:\n"))
print("Before swapping:\n",x,"\n",y,"\n")
#Inputting two numbers from user
x,y=y,x
#Swapping two variables
print("After swapping:\n",x,"\n",y,"\n") | 32 | 41 | 0.674107 | 42 | 224 | 3.595238 | 0.452381 | 0.039735 | 0.172185 | 0.145695 | 0.172185 | 0.172185 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080357 | 224 | 7 | 42 | 32 | 0.73301 | 0.236607 | 0 | 0 | 0 | 0 | 0.505882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
23ce207ef5e7a533f8c49db1549ebc6b049ae4e9 | 342 | py | Python | test/test_models/test_region.py | clegg89/altaudit | 353484c2b39db13ecb294a55d43dd2e4e0ef6541 | [
"MIT"
] | null | null | null | test/test_models/test_region.py | clegg89/altaudit | 353484c2b39db13ecb294a55d43dd2e4e0ef6541 | [
"MIT"
] | 9 | 2020-09-23T14:47:12.000Z | 2021-04-07T22:11:16.000Z | test/test_models/test_region.py | clegg89/altaudit | 353484c2b39db13ecb294a55d43dd2e4e0ef6541 | [
"MIT"
] | null | null | null | """Unit Tests for Region model"""
import pytest
from altaudit.models import Region
def test_create_region_table(db):
assert db.has_table('regions')
def test_add_region(db_session):
us = Region(name='US')
db_session.add(us)
assert us == db_session.query(Region).filter(Region.name=='US').first()
... | 21.375 | 75 | 0.716374 | 52 | 342 | 4.519231 | 0.5 | 0.153191 | 0.102128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149123 | 342 | 15 | 76 | 22.8 | 0.80756 | 0.078947 | 0 | 0 | 0 | 0 | 0.035599 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.444444 | 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 | 0 | 0 | 0 | 0 | 1 |
23d67731e693aa173ae0a92b5d6d9fd1362a3e6c | 3,880 | py | Python | tests/views/test_oauth2_client.py | DanielGrams/gsevp | e94034f7b64de76f38754b56455e83092378261f | [
"MIT"
] | 1 | 2021-06-01T14:49:18.000Z | 2021-06-01T14:49:18.000Z | tests/views/test_oauth2_client.py | DanielGrams/gsevp | e94034f7b64de76f38754b56455e83092378261f | [
"MIT"
] | 286 | 2020-12-04T14:13:00.000Z | 2022-03-09T19:05:16.000Z | tests/views/test_oauth2_client.py | DanielGrams/gsevpt | a92f71694388e227e65ed1b24446246ee688d00e | [
"MIT"
] | null | null | null | import pytest
def test_read(client, seeder, utils):
user_id, admin_unit_id = seeder.setup_base(True)
oauth2_client_id = seeder.insert_default_oauth2_client(user_id)
url = utils.get_url("oauth2_client", id=oauth2_client_id)
utils.get_ok(url)
def test_read_notOwner(client, seeder, utils):
user_id... | 27.714286 | 82 | 0.682732 | 506 | 3,880 | 4.907115 | 0.150198 | 0.144986 | 0.090213 | 0.041079 | 0.722916 | 0.713653 | 0.686267 | 0.644785 | 0.621828 | 0.586387 | 0 | 0.018476 | 0.218814 | 3,880 | 139 | 83 | 27.913669 | 0.800726 | 0 | 0 | 0.545455 | 0 | 0 | 0.097938 | 0.01366 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.060606 | false | 0 | 0.050505 | 0 | 0.151515 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
23d7a02c0b24b72de62778450d9ac116e1264952 | 1,164 | py | Python | catalog/bindings/gmd/multi_point_coverage.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/gmd/multi_point_coverage.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/gmd/multi_point_coverage.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from bindings.gmd.multi_point_coverage_type import MultiPointCoverageType
__NAMESPACE__ = "http://www.opengis.net/gml"
@dataclass
class MultiPointCoverage(MultiPointCoverageType):
"""In a gml:MultiPointCoverage the domain set is a gml:MultiPoint, that is
a collection of arbi... | 48.5 | 145 | 0.765464 | 160 | 1,164 | 5.525 | 0.425 | 0.033937 | 0.061086 | 0.067873 | 0.290724 | 0.229638 | 0.164027 | 0.164027 | 0.164027 | 0.113122 | 0 | 0 | 0.187285 | 1,164 | 23 | 146 | 50.608696 | 0.934461 | 0.712199 | 0 | 0 | 0 | 0 | 0.180556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
23d8f50deb4ea8f6ab954ff2069796d9d8cdf2ad | 1,173 | py | Python | openhab_creator/models/configuration/equipment/bridge.py | DerOetzi/openhab_creator | 197876df5aae84192c34418f6b9a7cfcee23b195 | [
"MIT"
] | 1 | 2021-11-16T22:48:26.000Z | 2021-11-16T22:48:26.000Z | openhab_creator/models/configuration/equipment/bridge.py | DerOetzi/openhab_creator | 197876df5aae84192c34418f6b9a7cfcee23b195 | [
"MIT"
] | null | null | null | openhab_creator/models/configuration/equipment/bridge.py | DerOetzi/openhab_creator | 197876df5aae84192c34418f6b9a7cfcee23b195 | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import TYPE_CHECKING, List
from openhab_creator.models.configuration.equipment import (
Equipment, EquipmentItemIdentifiers)
if TYPE_CHECKING:
from openhab_creator.models.configuration import Configuration
from openhab_creator.models.configuration.equipment.... | 27.27907 | 105 | 0.700767 | 126 | 1,173 | 6.277778 | 0.325397 | 0.041719 | 0.068268 | 0.091024 | 0.163085 | 0.116308 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213981 | 1,173 | 42 | 106 | 27.928571 | 0.857918 | 0 | 0 | 0.107143 | 0 | 0 | 0.022165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.178571 | 0.107143 | 0.535714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
23dd3132b663b7dce902d05195f6be440294bb89 | 4,532 | py | Python | campaigns/migrations/0001_initial.py | alimahdiyar/Developing-Community-Web | a663a687e0f286f197d4a7bf347f67cd130275f7 | [
"MIT"
] | 2 | 2018-06-02T12:30:00.000Z | 2018-07-19T14:41:39.000Z | campaigns/migrations/0001_initial.py | Developing-Community/Developing-Community-Web | a663a687e0f286f197d4a7bf347f67cd130275f7 | [
"MIT"
] | 5 | 2021-06-08T19:09:00.000Z | 2022-03-11T23:25:14.000Z | campaigns/migrations/0001_initial.py | Developing-Community/web | a663a687e0f286f197d4a7bf347f67cd130275f7 | [
"MIT"
] | 2 | 2018-05-27T14:58:34.000Z | 2018-05-27T15:03:04.000Z | # Generated by Django 2.0.7 on 2018-09-21 11:24
import django.db.models.deletion
import enumfields.fields
from django.conf import settings
from django.db import migrations, models
import campaigns.models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dep... | 50.921348 | 119 | 0.569726 | 417 | 4,532 | 6.035971 | 0.247002 | 0.028605 | 0.044497 | 0.069925 | 0.547477 | 0.547477 | 0.505761 | 0.429877 | 0.414382 | 0.395312 | 0 | 0.015788 | 0.301192 | 4,532 | 88 | 120 | 51.5 | 0.778971 | 0.009929 | 0 | 0.358025 | 1 | 0 | 0.122854 | 0.022074 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.061728 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
23efb15f226b6612af104dfa1612c85bb66acf5f | 1,485 | py | Python | tests/geographic/utils/test_get_nearest_year.py | PEM-Humboldt/geographic-validation | e8584fdbccd40847e94fef2481bc8f420e7fddb3 | [
"MIT"
] | null | null | null | tests/geographic/utils/test_get_nearest_year.py | PEM-Humboldt/geographic-validation | e8584fdbccd40847e94fef2481bc8f420e7fddb3 | [
"MIT"
] | 24 | 2021-04-30T18:02:30.000Z | 2021-10-13T13:56:24.000Z | tests/geographic/utils/test_get_nearest_year.py | PEM-Humboldt/geographic-validation | e8584fdbccd40847e94fef2481bc8f420e7fddb3 | [
"MIT"
] | 1 | 2021-06-16T16:52:52.000Z | 2021-06-16T16:52:52.000Z | """
Test cases for the regi0.geographic.utils.get_nearest_year function.
"""
import numpy as np
import pandas as pd
import pytest
from regi0.geographic.utils import get_nearest_year
@pytest.fixture()
def dates():
return pd.Series(["17/08/1945", np.nan, "21/09/2011", "01/01/1984", "17/04/2009"])
@pytest.fixture... | 29.7 | 86 | 0.720539 | 215 | 1,485 | 4.813953 | 0.251163 | 0.096618 | 0.094686 | 0.096618 | 0.590338 | 0.590338 | 0.566184 | 0.566184 | 0.48599 | 0.391304 | 0 | 0.124704 | 0.146801 | 1,485 | 49 | 87 | 30.306122 | 0.692186 | 0.045791 | 0 | 0.354839 | 0 | 0 | 0.038325 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 1 | 0.225806 | false | 0 | 0.129032 | 0.064516 | 0.419355 | 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 | 0 | 0 | 0 | 0 | 1 |
23f84874c6693f225e7da04bcfec8620dab2170e | 2,165 | py | Python | CODE/loading_model.py | Sid2697/Anime-Classificaton | b3c641924f9f1fcbb25ead4ea917d832477b1974 | [
"MIT"
] | 1 | 2021-01-27T07:15:08.000Z | 2021-01-27T07:15:08.000Z | CODE/loading_model.py | Sid2697/Anime-Classificaton | b3c641924f9f1fcbb25ead4ea917d832477b1974 | [
"MIT"
] | null | null | null | CODE/loading_model.py | Sid2697/Anime-Classificaton | b3c641924f9f1fcbb25ead4ea917d832477b1974 | [
"MIT"
] | null | null | null | # importing necessary packages
from keras.models import load_model
import argparse
from sklearn.model_selection import train_test_split
from sklearn.metrics import classification_report
from preprocessing.preprocessing import AspectAwarePreprocessor, ImageToArrayPreprocessor, SimplePreprocessor
from preprocessing.datas... | 40.092593 | 133 | 0.779677 | 300 | 2,165 | 5.533333 | 0.5 | 0.027108 | 0.018072 | 0.025301 | 0.031325 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028052 | 0.110855 | 2,165 | 53 | 134 | 40.849057 | 0.834286 | 0.211085 | 0 | 0.055556 | 0 | 0 | 0.168632 | 0.064269 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0.138889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
23f926151fb0d04a9d05ac38620341d261a21d29 | 2,514 | py | Python | setup.py | nmcveity/pyfreetype | 51b0ce7d13509a556940606cbbf35b74e9130b0e | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-02-21T14:51:15.000Z | 2019-02-21T14:51:15.000Z | setup.py | nmcveity/pyfreetype | 51b0ce7d13509a556940606cbbf35b74e9130b0e | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2016-08-15T23:56:16.000Z | 2022-02-16T11:33:55.000Z | setup.py | nmcveity/pyfreetype | 51b0ce7d13509a556940606cbbf35b74e9130b0e | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | # For MSVC users, change these version numbers to match your local version
# of FreeType 2 binaries.
FT2_MAJOR = 2
FT2_MINOR = 3
FT2_PATCH = 12
from distutils.core import setup, Extension
import os
import os.path
import subprocess
import distutils
import distutils.ccompiler
compiler = distutils.ccompiler.new_compil... | 28.896552 | 108 | 0.72673 | 336 | 2,514 | 5.327381 | 0.392857 | 0.026816 | 0.039106 | 0.06257 | 0.512849 | 0.467039 | 0.29162 | 0.29162 | 0.29162 | 0.29162 | 0 | 0.009255 | 0.140414 | 2,514 | 86 | 109 | 29.232558 | 0.819065 | 0.038186 | 0 | 0.180556 | 0 | 0.027778 | 0.470174 | 0.039768 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.138889 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
23fcd01ccc9025354d919bbdbffe3bff231f8be4 | 721 | py | Python | myshopify/dto/product.py | mortendaehli/my-shopify-inventory-utils | 92f3598efb9c05ed706709f3021f8d12fa93ab50 | [
"Unlicense"
] | null | null | null | myshopify/dto/product.py | mortendaehli/my-shopify-inventory-utils | 92f3598efb9c05ed706709f3021f8d12fa93ab50 | [
"Unlicense"
] | 27 | 2022-02-06T17:48:01.000Z | 2022-02-11T13:57:38.000Z | myshopify/dto/product.py | mortendaehli/my-shopify-inventory-utils | 92f3598efb9c05ed706709f3021f8d12fa93ab50 | [
"Unlicense"
] | null | null | null | from collections import OrderedDict
from typing import Any, List, Optional
from pydantic import BaseModel, Field, HttpUrl
class ProductMetadata(BaseModel):
name: str
short_code: str
brand: str
sku: Optional[str]
url: HttpUrl
class ProductImage(BaseModel):
name: str
alt: str
suffix: ... | 21.205882 | 75 | 0.725381 | 80 | 721 | 6.45 | 0.5 | 0.075581 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209431 | 721 | 33 | 76 | 21.848485 | 0.905263 | 0 | 0 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.115385 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
9b0118a98e57c8e666bdd96d572d45af0df6d8be | 1,093 | py | Python | tests/test_fir.py | Claudjos/fir | d8dd86883a17c2cd95cb8e0c70142eab47eb1499 | [
"MIT"
] | null | null | null | tests/test_fir.py | Claudjos/fir | d8dd86883a17c2cd95cb8e0c70142eab47eb1499 | [
"MIT"
] | null | null | null | tests/test_fir.py | Claudjos/fir | d8dd86883a17c2cd95cb8e0c70142eab47eb1499 | [
"MIT"
] | null | null | null | import unittest
from ddt import ddt, file_data
from fir import http, wsgi
@ddt
class FirTestCases(unittest.TestCase):
@file_data("./data.yaml")
def test_wsgi_conversion(self, request: dict, result: dict):
"""
Creates a HTTP request from an input dictionary, then converts it
to WSGI environ and back to HTTP. ... | 34.15625 | 84 | 0.726441 | 155 | 1,093 | 5.012903 | 0.341935 | 0.081081 | 0.092664 | 0.177606 | 0.223938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145471 | 1,093 | 31 | 85 | 35.258065 | 0.831906 | 0.137237 | 0 | 0 | 0 | 0 | 0.16397 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.045455 | false | 0 | 0.136364 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9b067a745ab4bc7a2a45117e5fea75125c7016f3 | 433 | py | Python | Tuples and Sets/05. SoftUni Party.py | nrgxtra/advanced | 89f713419102c64a04b495f717cdb51bbf94213c | [
"MIT"
] | null | null | null | Tuples and Sets/05. SoftUni Party.py | nrgxtra/advanced | 89f713419102c64a04b495f717cdb51bbf94213c | [
"MIT"
] | null | null | null | Tuples and Sets/05. SoftUni Party.py | nrgxtra/advanced | 89f713419102c64a04b495f717cdb51bbf94213c | [
"MIT"
] | null | null | null | reserv_list = set()
party_list = set()
command = input()
while command != 'PARTY':
reserv_list.add(command)
command = input()
if command == 'PARTY':
command = input()
while command != 'END':
party_list.add(command)
command = input()
diff = abs(len(reserv_list) - len(party_... | 20.619048 | 47 | 0.614319 | 55 | 433 | 4.690909 | 0.363636 | 0.155039 | 0.131783 | 0.186047 | 0.20155 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.249423 | 433 | 20 | 48 | 21.65 | 0.793846 | 0 | 0 | 0.235294 | 0 | 0 | 0.031553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9b113097c833d94e89194ba7009d629159161024 | 506 | py | Python | personalwebsite/personalwebsite/urls.py | kelly-ry4n/personal-website | 0f1d1967de2bbdda4610ee7d0f01f668f6ca18d3 | [
"MIT"
] | 1 | 2016-09-25T03:20:47.000Z | 2016-09-25T03:20:47.000Z | personalwebsite/personalwebsite/urls.py | kelly-ry4n/personal-website | 0f1d1967de2bbdda4610ee7d0f01f668f6ca18d3 | [
"MIT"
] | 1 | 2016-11-25T04:14:45.000Z | 2016-11-25T19:05:42.000Z | personalwebsite/personalwebsite/urls.py | kelly-ry4n/personal-website | 0f1d1967de2bbdda4610ee7d0f01f668f6ca18d3 | [
"MIT"
] | null | null | null | from django.conf.urls import url, include
from django.contrib import admin
from rest_framework import routers
from backend.website import views as website
from django.views.generic import TemplateView
api_router = routers.DefaultRouter()
urlpatterns = [
url(r'^api/v1/', include(api_router.urls)),
url(r'^api... | 28.111111 | 83 | 0.745059 | 70 | 506 | 5.285714 | 0.442857 | 0.043243 | 0.037838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002242 | 0.118577 | 506 | 17 | 84 | 29.764706 | 0.827354 | 0 | 0 | 0 | 0 | 0 | 0.156126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9b165ce9d96a97e9cd1c98211e032b647e2e5d79 | 1,725 | py | Python | jython/one_to_many.py | dejohnam/OpenTripPlanner_analysis | a09f36b76ecf2c21e7ad012591d0060d0820c080 | [
"MIT"
] | 13 | 2017-01-11T21:01:37.000Z | 2021-12-01T00:23:34.000Z | jython/one_to_many.py | dejohnam/OpenTripPlanner_analysis | a09f36b76ecf2c21e7ad012591d0060d0820c080 | [
"MIT"
] | 2 | 2018-06-30T04:45:31.000Z | 2021-05-07T18:27:45.000Z | jython/one_to_many.py | dejohnam/OpenTripPlanner_analysis | a09f36b76ecf2c21e7ad012591d0060d0820c080 | [
"MIT"
] | 4 | 2017-07-24T19:51:12.000Z | 2021-04-28T09:55:26.000Z | # outputs travel times from one point to many points
# ouput includes ID of input destinations
from org.opentripplanner.scripting.api import *
import time
import csv
# time script
start_time = time.time()
# origin location
origin = [float(43.2), float(-79.2)]
# initial load graph - have graphs store in "graphs" fol... | 29.741379 | 88 | 0.666667 | 250 | 1,725 | 4.54 | 0.504 | 0.028194 | 0.031718 | 0.031718 | 0.096916 | 0.05815 | 0.05815 | 0.05815 | 0 | 0 | 0 | 0.018678 | 0.193043 | 1,725 | 57 | 89 | 30.263158 | 0.796695 | 0.311304 | 0 | 0.060606 | 0 | 0 | 0.133562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.151515 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9b17fd863b3cef372dd6eadba417281d7498d960 | 1,301 | py | Python | hello/migrations/0009_auto_20201228_1511.py | StafaH/jamm-bandit | 3c489817acc5c9b4d86a283809d59569b07f53d7 | [
"MIT"
] | 2 | 2021-06-30T11:22:21.000Z | 2021-06-30T11:22:23.000Z | hello/migrations/0009_auto_20201228_1511.py | StafaH/jamm-bandit | 3c489817acc5c9b4d86a283809d59569b07f53d7 | [
"MIT"
] | null | null | null | hello/migrations/0009_auto_20201228_1511.py | StafaH/jamm-bandit | 3c489817acc5c9b4d86a283809d59569b07f53d7 | [
"MIT"
] | 2 | 2020-11-12T18:05:00.000Z | 2020-11-28T20:06:58.000Z | # Generated by Django 3.1.4 on 2020-12-28 20:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hello', '0008_profile_comments'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='ethnicity',
... | 44.862069 | 311 | 0.56495 | 137 | 1,301 | 5.306569 | 0.59854 | 0.082531 | 0.103164 | 0.11967 | 0.308116 | 0.255846 | 0 | 0 | 0 | 0 | 0 | 0.021696 | 0.2206 | 1,301 | 28 | 312 | 46.464286 | 0.695266 | 0.034589 | 0 | 0.409091 | 1 | 0 | 0.3126 | 0.016746 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.