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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b89599557ae0e8f28b22f6a5b231f1a76058dd6a | 516 | py | Python | area.py | afontainec/evalpro-demand-estimate | a4423b16dd2d81904b861f71d6a630454b77eda4 | [
"MIT"
] | null | null | null | area.py | afontainec/evalpro-demand-estimate | a4423b16dd2d81904b861f71d6a630454b77eda4 | [
"MIT"
] | null | null | null | area.py | afontainec/evalpro-demand-estimate | a4423b16dd2d81904b861f71d6a630454b77eda4 | [
"MIT"
] | null | null | null | class Zone:
age_piramid = {'men': {},
'women': {}}
def __init__(self, id):
self.id = id
def adjust_parameters():
adjust_population()
adjust_porcentage_that_will_go()
# NOT IMPLEMENTED
def adjust_population():
return ''
# NOT IMPLEMENTED: ... | 20.64 | 86 | 0.596899 | 55 | 516 | 5.290909 | 0.490909 | 0.092784 | 0.103093 | 0.164948 | 0.178694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.312016 | 516 | 24 | 87 | 21.5 | 0.819718 | 0.217054 | 0 | 0.214286 | 0 | 0 | 0.02 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0 | 0.214286 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
b8b9d7b2fab7f43d41b7099aa9fd3358dbae230f | 438 | py | Python | crack-data-structures-and-algorithms/leetcode/python-impl/palindrome_number_q9.py | Watch-Later/Eureka | 3065e76d5bf8b37d5de4f9ee75b2714a42dd4c35 | [
"MIT"
] | 20 | 2016-05-16T11:09:04.000Z | 2021-12-08T09:30:33.000Z | crack-data-structures-and-algorithms/leetcode/python-impl/palindrome_number_q9.py | Watch-Later/Eureka | 3065e76d5bf8b37d5de4f9ee75b2714a42dd4c35 | [
"MIT"
] | 1 | 2018-12-30T09:55:31.000Z | 2018-12-30T14:08:30.000Z | crack-data-structures-and-algorithms/leetcode/python-impl/palindrome_number_q9.py | Watch-Later/Eureka | 3065e76d5bf8b37d5de4f9ee75b2714a42dd4c35 | [
"MIT"
] | 11 | 2016-05-02T09:17:12.000Z | 2021-12-08T09:30:35.000Z | # -*- coding: utf-8 -*-
# 0xCCCCCCCC
def is_palindrome(x):
"""
:type x: int
:rtype: bool
"""
if x < 0:
return False
# if x == 0, then y == 0 and we will never go in the loop.
y = 0
n = x
while n > 0:
y = y * 10 + n % 10
n //= 10
return x == y
print(is_... | 16.846154 | 62 | 0.534247 | 69 | 438 | 3.304348 | 0.478261 | 0.315789 | 0.372807 | 0.175439 | 0.324561 | 0.324561 | 0.324561 | 0 | 0 | 0 | 0 | 0.08 | 0.315068 | 438 | 25 | 63 | 17.52 | 0.68 | 0.26484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.214286 | 0.357143 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b2453da120f6033e2c2df02017e7fe225885356d | 52,826 | py | Python | mayaSDK/maya/app/renderSetup/model/selector.py | FXTD-ODYSSEY/vscode-mayapy | 7a21872f80b5b740fc653e79c3f9b5268e87b3c3 | [
"MIT"
] | 20 | 2019-09-20T00:30:22.000Z | 2021-12-26T06:56:16.000Z | mayaSDK/maya/app/renderSetup/model/selector.py | minjiang999/vscode-mayapy | 7a21872f80b5b740fc653e79c3f9b5268e87b3c3 | [
"MIT"
] | 5 | 2019-12-29T15:19:03.000Z | 2022-03-29T16:54:19.000Z | mayaSDK/maya/app/renderSetup/model/selector.py | minjiang999/vscode-mayapy | 7a21872f80b5b740fc653e79c3f9b5268e87b3c3 | [
"MIT"
] | 8 | 2019-09-23T05:46:44.000Z | 2022-01-11T14:42:14.000Z | """
In the render setup system, a selector is a node that identifies which
nodes (or more properly instances) to apply overrides to. One selector
node is associated with each collection: the collection is
considered to own its associated selector. The output of a selector
node is a multi-line string, with one node na... | 29.009336 | 414 | 0.610892 | 5,938 | 52,826 | 5.41967 | 0.172112 | 0.037847 | 0.00752 | 0.007395 | 0.317258 | 0.284445 | 0.258312 | 0.239388 | 0.228264 | 0.21481 | 0 | 0.002026 | 0.336444 | 52,826 | 1,820 | 415 | 29.025275 | 0.91607 | 0.599383 | 0 | 0.550308 | 0 | 0 | 0.009952 | 0 | 0 | 0 | 0 | 0.000549 | 0 | 1 | 0.390144 | false | 0.396304 | 0.008214 | 0 | 0.595483 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
b2486f2252e846f4a42a91df6a2da9e2e2603cd5 | 251 | py | Python | Desafios/Desafio007.py | vaniaferreira/Python | 5b3158836d47c0bb7bc446e6636e7b3dcea8a0ab | [
"MIT"
] | null | null | null | Desafios/Desafio007.py | vaniaferreira/Python | 5b3158836d47c0bb7bc446e6636e7b3dcea8a0ab | [
"MIT"
] | null | null | null | Desafios/Desafio007.py | vaniaferreira/Python | 5b3158836d47c0bb7bc446e6636e7b3dcea8a0ab | [
"MIT"
] | null | null | null | # Desenvolva um programa que leia duas notas de um aluno. Calcule e mostre sua média
n1 = float(input('Informe sua primeira nota:'))
n2 = float(input('Informe sua segunda nota:'))
media = (n1 + n2) / 2
print ('A media de é: {:.1f}'.format(media))
| 25.1 | 84 | 0.681275 | 41 | 251 | 4.170732 | 0.707317 | 0.116959 | 0.19883 | 0.233918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029126 | 0.179283 | 251 | 9 | 85 | 27.888889 | 0.800971 | 0.326693 | 0 | 0 | 0 | 0 | 0.427711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b2563f0ab779860e929ccd86ded2d74d1afed193 | 1,145 | py | Python | teny/loss.py | FrankLeeC/MachineLearning | 3a927ba35ac9da634ae9334a0d621f8c34d8bac8 | [
"MIT"
] | null | null | null | teny/loss.py | FrankLeeC/MachineLearning | 3a927ba35ac9da634ae9334a0d621f8c34d8bac8 | [
"MIT"
] | null | null | null | teny/loss.py | FrankLeeC/MachineLearning | 3a927ba35ac9da634ae9334a0d621f8c34d8bac8 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*
import numpy as np
class BinaryCrossEntropy:
'''
loss = -ylog(py) - (1-y)log(1-py)
'''
def __init__(self, epsilon=1e-8):
self.epsilon = epsilon
self.s = 0.0
self.count = 0
# y: real value
# py: predict value
def calculate(self, y, py):
... | 21.203704 | 78 | 0.535371 | 166 | 1,145 | 3.596386 | 0.204819 | 0.120603 | 0.093802 | 0.073702 | 0.623116 | 0.616415 | 0.616415 | 0.616415 | 0.616415 | 0.428811 | 0 | 0.023929 | 0.30655 | 1,145 | 54 | 79 | 21.203704 | 0.72796 | 0.089956 | 0 | 0.580645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.322581 | false | 0 | 0.032258 | 0.129032 | 0.548387 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b267f6f733e4a1a46004840f5fcd6fa5d0bf17b0 | 697 | py | Python | academic/schools/models.py | sebastiansalazar123/final | 85e9b822919d946b250070ac63504b2270e59ad1 | [
"MIT"
] | null | null | null | academic/schools/models.py | sebastiansalazar123/final | 85e9b822919d946b250070ac63504b2270e59ad1 | [
"MIT"
] | null | null | null | academic/schools/models.py | sebastiansalazar123/final | 85e9b822919d946b250070ac63504b2270e59ad1 | [
"MIT"
] | null | null | null | from django.db import models
from django.db.models.base import Model
class student(models.Model):
first_name = models.CharField(max_length=50)
last_name = models.CharField(max_length=50)
code = models.CharField(max_length=10)
created_at = models.DateTimeField()
class subject(models.Model) :
n... | 33.190476 | 69 | 0.748924 | 92 | 697 | 5.51087 | 0.326087 | 0.177515 | 0.213018 | 0.284024 | 0.426036 | 0.236686 | 0 | 0 | 0 | 0 | 0 | 0.020202 | 0.147776 | 697 | 20 | 70 | 34.85 | 0.833333 | 0 | 0 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b26ae2d68b0dd9be5c46c5661ea1ec13212b1446 | 3,682 | py | Python | fingerprint/CMSeeK/deepscans/joom/backups.py | c0dejump/CredzCheckr | cac325b50464cf2eb853540be3efdf993c903691 | [
"MIT"
] | null | null | null | fingerprint/CMSeeK/deepscans/joom/backups.py | c0dejump/CredzCheckr | cac325b50464cf2eb853540be3efdf993c903691 | [
"MIT"
] | null | null | null | fingerprint/CMSeeK/deepscans/joom/backups.py | c0dejump/CredzCheckr | cac325b50464cf2eb853540be3efdf993c903691 | [
"MIT"
] | 1 | 2021-11-28T18:01:33.000Z | 2021-11-28T18:01:33.000Z | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# This is a part of CMSeeK, check the LICENSE file for more information
# Copyright (c) 2018 - 2020 Tuhinshubhra
import threading
import cmseekdb.basic as cmseek
joom_bak_found = 0
joom_backups = []
def check_backup(url,file,ua):
global joom_bak_found, joom_backups
... | 118.774194 | 2,810 | 0.687127 | 599 | 3,682 | 4.186978 | 0.130217 | 0.075359 | 0.023923 | 0.019139 | 0.064593 | 0.023126 | 0 | 0 | 0 | 0 | 0 | 0.013448 | 0.050788 | 3,682 | 30 | 2,811 | 122.733333 | 0.704149 | 0.040196 | 0 | 0.2 | 0 | 0 | 0.630878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b27fd912fb263b6ef1363fe704195f2d788212fa | 4,950 | py | Python | srcnn/msanomalydetector/boundary_utils.py | G-santini/anomalydetector | f41be86d357cba7c164a02947b28d5c70ee3e451 | [
"MIT"
] | null | null | null | srcnn/msanomalydetector/boundary_utils.py | G-santini/anomalydetector | f41be86d357cba7c164a02947b28d5c70ee3e451 | [
"MIT"
] | null | null | null | srcnn/msanomalydetector/boundary_utils.py | G-santini/anomalydetector | f41be86d357cba7c164a02947b28d5c70ee3e451 | [
"MIT"
] | null | null | null | import bisect
import numpy as np
from srcnn.msanomalydetector._anomaly_kernel_cython import median_filter
# pseudo - code to generate the factors.
# factors = [1]
# for i in range(50):
# if i < 40:
# factors.append(factors[-1] / (1.15 + 0.001 * i))
# else:
# factors.append(factors[-1] / (1.25 ... | 40.909091 | 132 | 0.712525 | 612 | 4,950 | 5.681373 | 0.405229 | 0.020708 | 0.005177 | 0.009491 | 0.125683 | 0.057521 | 0.037964 | 0.020708 | 0 | 0 | 0 | 0.444281 | 0.175152 | 4,950 | 120 | 133 | 41.25 | 0.407299 | 0.068081 | 0 | 0.102564 | 1 | 0 | 0.025212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.038462 | 0 | 0.269231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b2853b8368c4e23a5b0b3848aeba9f8ccaa11c89 | 77 | py | Python | gamelib/config.py | Sveder/pyweek24 | 68ff874895e4e5e8a5963099617a0010b5b3f520 | [
"Apache-2.0"
] | null | null | null | gamelib/config.py | Sveder/pyweek24 | 68ff874895e4e5e8a5963099617a0010b5b3f520 | [
"Apache-2.0"
] | 1 | 2021-07-20T16:50:03.000Z | 2021-07-20T21:55:42.000Z | gamelib/config.py | Sveder/pyweek24 | 68ff874895e4e5e8a5963099617a0010b5b3f520 | [
"Apache-2.0"
] | null | null | null | SCREEN_WIDTH = 1200
SCREEN_HEIGHT = 720
GROUND_HEIGHT = SCREEN_HEIGHT - 130
| 15.4 | 35 | 0.792208 | 11 | 77 | 5.181818 | 0.636364 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0.155844 | 77 | 4 | 36 | 19.25 | 0.723077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b2942a780682d5426cb251c9f13503fd4f0c6bab | 189 | py | Python | game/serializers.py | shoeberto/online-rpg | 022dfc9c67749eea416897fc501888ff22699fc2 | [
"MIT"
] | null | null | null | game/serializers.py | shoeberto/online-rpg | 022dfc9c67749eea416897fc501888ff22699fc2 | [
"MIT"
] | null | null | null | game/serializers.py | shoeberto/online-rpg | 022dfc9c67749eea416897fc501888ff22699fc2 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from game.models import Game
class GameSerializer(serializers.ModelSerializer):
class Meta:
model = Game
fields = ('id', 'world') | 27 | 50 | 0.714286 | 21 | 189 | 6.380952 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206349 | 189 | 7 | 51 | 27 | 0.893333 | 0 | 0 | 0 | 0 | 0 | 0.036842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a22b28a7ccc2c3f811db068c1fcd4630bff49ca5 | 262 | py | Python | apps/avatar/serializers.py | hashqueue/drf_vue_blog | cd36412135373faa555e9a90fae5fc491c67f12b | [
"MIT"
] | null | null | null | apps/avatar/serializers.py | hashqueue/drf_vue_blog | cd36412135373faa555e9a90fae5fc491c67f12b | [
"MIT"
] | null | null | null | apps/avatar/serializers.py | hashqueue/drf_vue_blog | cd36412135373faa555e9a90fae5fc491c67f12b | [
"MIT"
] | null | null | null | """w created serializers.py at 2021/9/3 下午12:12"""
from utils.drf_utils.base_model_serializer import BaseModelSerializer
from .models import Avatar
class AvatarsSerializer(BaseModelSerializer):
class Meta:
model = Avatar
fields = "__all__"
| 26.2 | 69 | 0.744275 | 32 | 262 | 5.875 | 0.78125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046296 | 0.175573 | 262 | 9 | 70 | 29.111111 | 0.824074 | 0.167939 | 0 | 0 | 0 | 0 | 0.033019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a2374c8e78e28d2c96567354b0a8658747ea7b92 | 253 | py | Python | src/pydash/exceptions.py | pedrooa/pydash | 1b4b425cecca275b8ba4c0584b40f9adae1cc097 | [
"MIT"
] | 3 | 2021-07-09T20:41:47.000Z | 2021-11-17T10:25:01.000Z | src/pydash/exceptions.py | pedrooa/pydash | 1b4b425cecca275b8ba4c0584b40f9adae1cc097 | [
"MIT"
] | 3 | 2021-06-08T21:06:32.000Z | 2022-01-13T02:22:38.000Z | src/pydash/exceptions.py | pedrooa/pydash | 1b4b425cecca275b8ba4c0584b40f9adae1cc097 | [
"MIT"
] | 1 | 2021-09-09T20:24:07.000Z | 2021-09-09T20:24:07.000Z | # -*- coding: utf-8 -*-
"""Exception classes.
.. versionadded:: 1.0.0
"""
class InvalidMethod(Exception):
"""Raised when an invalid pydash method is invoked through
:func:`pydash.chaining.chain`.
.. versionadded:: 1.0.0
"""
pass
| 16.866667 | 62 | 0.620553 | 30 | 253 | 5.233333 | 0.766667 | 0.165605 | 0.178344 | 0.191083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034826 | 0.205534 | 253 | 14 | 63 | 18.071429 | 0.746269 | 0.703557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a239a23c42541507914701273dd3bbcd135ee209 | 1,922 | py | Python | KT17/_CFunctions.py | mattkjames7/KT17 | 5550afeb9fea4255b0f0105021df23743c14744f | [
"MIT"
] | 2 | 2020-03-12T13:39:04.000Z | 2022-03-15T13:52:05.000Z | KT17/_CFunctions.py | mattkjames7/KT17 | 5550afeb9fea4255b0f0105021df23743c14744f | [
"MIT"
] | null | null | null | KT17/_CFunctions.py | mattkjames7/KT17 | 5550afeb9fea4255b0f0105021df23743c14744f | [
"MIT"
] | null | null | null | import numpy as np
from .ct import c_char_p,c_bool,c_bool_ptr,c_int,c_int_ptr
from .ct import c_float,c_float_ptr,c_double,c_double_ptr,c_double_ptr_ptr
from ._CppLib import _GetLib
#try loading the C++ library
libkt17 = _GetLib()
_CWithinMP = libkt17.WithinMP
_CWithinMP.argtypes = [ c_double, #x MSM
c_double,... | 25.626667 | 74 | 0.627992 | 282 | 1,922 | 3.840426 | 0.251773 | 0.271468 | 0.258541 | 0.156048 | 0.124654 | 0.072022 | 0.042475 | 0 | 0 | 0 | 0 | 0.011817 | 0.295525 | 1,922 | 74 | 75 | 25.972973 | 0.788035 | 0.12487 | 0 | 0.71875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
a24982481d38abf71dec7b7b7b2bf572225291da | 164 | py | Python | app/auth/__init__.py | Kopei/manualscore | 4b085eb88b4373a773f276615dbced969c0cc58a | [
"MIT"
] | null | null | null | app/auth/__init__.py | Kopei/manualscore | 4b085eb88b4373a773f276615dbced969c0cc58a | [
"MIT"
] | null | null | null | app/auth/__init__.py | Kopei/manualscore | 4b085eb88b4373a773f276615dbced969c0cc58a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
from flask import Blueprint
auth = Blueprint('auth', __name__)
from . import views
| 16.4 | 34 | 0.713415 | 22 | 164 | 5.136364 | 0.590909 | 0.070796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014184 | 0.140244 | 164 | 9 | 35 | 18.222222 | 0.787234 | 0.128049 | 0 | 0 | 0 | 0 | 0.06383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a2501fb8df56f61ed8f36e29da33306529060460 | 319 | py | Python | utils.py | hlipinski/python-fractals | 76be83f787746879dd3cc9fd66d874dbb3b82954 | [
"MIT"
] | 1 | 2021-04-10T19:20:39.000Z | 2021-04-10T19:20:39.000Z | utils.py | hlipinski/python-fractals | 76be83f787746879dd3cc9fd66d874dbb3b82954 | [
"MIT"
] | null | null | null | utils.py | hlipinski/python-fractals | 76be83f787746879dd3cc9fd66d874dbb3b82954 | [
"MIT"
] | null | null | null | import sys, os
def get_level_input():
try:
return float(sys.argv[1])
except IndexError:
return 2
def get_const_input():
try:
return complex(float(sys.argv[2]), float(sys.argv[3]))
except IndexError:
return 0
if not os.path.exists("output/"):
os.makedirs("output/") | 19.9375 | 62 | 0.61442 | 45 | 319 | 4.266667 | 0.555556 | 0.125 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020921 | 0.250784 | 319 | 16 | 63 | 19.9375 | 0.782427 | 0 | 0 | 0.307692 | 0 | 0 | 0.04375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | true | 0 | 0.076923 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a25c070b8c7c01f0d44b077266251df90a501a0e | 26,400 | py | Python | cogs/mod.py | lyricalpaws/snekbot | 704197777dbaa284d163a95642e224d6efe2c4b2 | [
"MIT"
] | 13 | 2018-11-26T15:55:28.000Z | 2022-02-05T16:07:02.000Z | cogs/mod.py | lyricalpaws/snekbot | 704197777dbaa284d163a95642e224d6efe2c4b2 | [
"MIT"
] | 8 | 2018-11-12T19:04:01.000Z | 2018-11-23T15:11:55.000Z | cogs/mod.py | lyricalpaws/snekbot | 704197777dbaa284d163a95642e224d6efe2c4b2 | [
"MIT"
] | 23 | 2019-01-01T23:53:37.000Z | 2022-03-12T14:52:45.000Z | import discord
import re
import random
from io import BytesIO
from discord.ext import commands
from utils import permissions, default
class MemberID(commands.Converter):
async def convert(self, ctx, argument):
try:
m = await commands.MemberConverter().convert(ctx, argument)
except com... | 40.803709 | 194 | 0.568902 | 3,166 | 26,400 | 4.715098 | 0.10518 | 0.032154 | 0.033762 | 0.025322 | 0.75268 | 0.725013 | 0.717645 | 0.686897 | 0.649116 | 0.625871 | 0 | 0.011896 | 0.305871 | 26,400 | 646 | 195 | 40.866873 | 0.802074 | 0 | 0 | 0.59745 | 0 | 0.021858 | 0.186984 | 0.022341 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010929 | false | 0.007286 | 0.010929 | 0.005464 | 0.08561 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a2605dbc25d7fdcfe94a72493abb539d05c2f930 | 6,008 | py | Python | lector/settings.py | UNIZAR-30226-2021-05/Lector--Backend | 8cc285216972f7485781ece51a88d5f02dc85013 | [
"MIT"
] | null | null | null | lector/settings.py | UNIZAR-30226-2021-05/Lector--Backend | 8cc285216972f7485781ece51a88d5f02dc85013 | [
"MIT"
] | null | null | null | lector/settings.py | UNIZAR-30226-2021-05/Lector--Backend | 8cc285216972f7485781ece51a88d5f02dc85013 | [
"MIT"
] | null | null | null | """
Django settings for lector project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import os
from... | 27.309091 | 98 | 0.686252 | 626 | 6,008 | 6.464856 | 0.439297 | 0.073882 | 0.058809 | 0.043242 | 0.104522 | 0.104522 | 0.065975 | 0.065975 | 0.029652 | 0 | 0 | 0.009602 | 0.185253 | 6,008 | 219 | 99 | 27.43379 | 0.81716 | 0.252996 | 0 | 0.017391 | 1 | 0 | 0.573719 | 0.483049 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.113043 | 0.026087 | 0 | 0.026087 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a263685f931cca8e6260fbb7c8a8e59adc2d93b3 | 352 | py | Python | test/csv/report/test_validators.py | blinkace/pxp | 9155103dc166674137bd0e2fddb609ca44875761 | [
"MIT"
] | 1 | 2022-01-27T14:53:23.000Z | 2022-01-27T14:53:23.000Z | test/csv/report/test_validators.py | blinkace/pxp | 9155103dc166674137bd0e2fddb609ca44875761 | [
"MIT"
] | null | null | null | test/csv/report/test_validators.py | blinkace/pxp | 9155103dc166674137bd0e2fddb609ca44875761 | [
"MIT"
] | null | null | null | from xbrl.csv.report.validators import isValidIdentifier
def test_validate_identifier():
assert isValidIdentifier("abcd")
assert isValidIdentifier("a123bcd")
assert not isValidIdentifier("1a12bcd")
assert not isValidIdentifier("a123.bcd")
assert not isValidIdentifier("|aa12bcd")
assert not isV... | 32 | 56 | 0.769886 | 35 | 352 | 7.685714 | 0.6 | 0.133829 | 0.386617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036184 | 0.136364 | 352 | 10 | 57 | 35.2 | 0.848684 | 0 | 0 | 0 | 0 | 0 | 0.133523 | 0 | 0 | 0 | 0 | 0 | 0.75 | 1 | 0.125 | true | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a2771f15a506a83eb51477ea129b4db7ad14749c | 15,374 | py | Python | pritunl_api/__init__.py | quyetnguyen0989/pritunl-api-python | c2749da1b364880f52d646d2084d3ae9f35c4ee4 | [
"MIT"
] | 14 | 2017-05-19T11:55:02.000Z | 2022-03-10T07:37:43.000Z | pritunl_api/__init__.py | quyetnguyen0989/pritunl-api-python | c2749da1b364880f52d646d2084d3ae9f35c4ee4 | [
"MIT"
] | 3 | 2019-04-02T09:27:32.000Z | 2022-03-04T13:01:24.000Z | pritunl_api/__init__.py | quyetnguyen0989/pritunl-api-python | c2749da1b364880f52d646d2084d3ae9f35c4ee4 | [
"MIT"
] | 16 | 2017-10-02T12:02:40.000Z | 2022-02-21T10:50:24.000Z | #!/usr/bin/python
# Created by Ijat.my
import json
import logging as log
import sys
import base64
import hashlib
import hmac
import random
import requests
import time
import uuid
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)... | 43.676136 | 124 | 0.510537 | 1,769 | 15,374 | 4.256077 | 0.107971 | 0.064816 | 0.03719 | 0.072254 | 0.751893 | 0.746978 | 0.719219 | 0.685616 | 0.67592 | 0.659981 | 0 | 0.020136 | 0.360414 | 15,374 | 351 | 125 | 43.80057 | 0.745551 | 0.004618 | 0 | 0.533762 | 0 | 0 | 0.090077 | 0.006864 | 0 | 0 | 0 | 0 | 0 | 1 | 0.080386 | false | 0.006431 | 0.03537 | 0.003215 | 0.196141 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a278431294191ff3847f72e7369b60103d90ada9 | 1,357 | py | Python | crash/db.py | zzzzer91/crash | 6aae0e3cca538842690d4c1eff2d9cb6bb3a3be5 | [
"MIT"
] | null | null | null | crash/db.py | zzzzer91/crash | 6aae0e3cca538842690d4c1eff2d9cb6bb3a3be5 | [
"MIT"
] | null | null | null | crash/db.py | zzzzer91/crash | 6aae0e3cca538842690d4c1eff2d9cb6bb3a3be5 | [
"MIT"
] | 1 | 2020-07-19T00:41:13.000Z | 2020-07-19T00:41:13.000Z | """一些 MySQL 数据库操作。
create: 2018-12-12
modified:
"""
import pymysql
from .types import *
def insert_data(mysql_config: MysqlConfig, sql: str, item: Dict) -> int:
"""插入数据。"""
mysql_conn = pymysql.connect(
host=mysql_config['host'], port=mysql_config['port'],
user=mysql_config['user'], pas... | 21.539683 | 72 | 0.638909 | 166 | 1,357 | 5.042169 | 0.283133 | 0.236559 | 0.078853 | 0.082437 | 0.74313 | 0.713262 | 0.636798 | 0.500597 | 0.500597 | 0.500597 | 0 | 0.007421 | 0.205601 | 1,357 | 62 | 73 | 21.887097 | 0.769017 | 0.048637 | 0 | 0.588235 | 0 | 0 | 0.057526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0.088235 | 0.058824 | 0 | 0.205882 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a279c4c89a86cb699b4053fff12df667881a2656 | 122 | py | Python | example/production.py | klen/modconfig | 6c9c1b72f4991a4e6c26e9f65701b2a095ce0aa3 | [
"MIT"
] | 1 | 2020-07-08T11:24:11.000Z | 2020-07-08T11:24:11.000Z | example/production.py | klen/modconfig | 6c9c1b72f4991a4e6c26e9f65701b2a095ce0aa3 | [
"MIT"
] | null | null | null | example/production.py | klen/modconfig | 6c9c1b72f4991a4e6c26e9f65701b2a095ce0aa3 | [
"MIT"
] | null | null | null | import datetime as dt
from .defaults import * # noqa
SECRET = 'secure production secret'
DATABASE['host'] = 'db.com'
| 13.555556 | 35 | 0.696721 | 16 | 122 | 5.3125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188525 | 122 | 8 | 36 | 15.25 | 0.858586 | 0.032787 | 0 | 0 | 0 | 0 | 0.293103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a27b6422688870e7e2bc448db1b0695bb2662263 | 428 | py | Python | ecommerce/migrations/0004_auto_20200405_1814.py | sakshipatil16/Knowledge-sharing-platform | b6638a5eee33dd149fabf1c655ace4a4226decfb | [
"bzip2-1.0.6"
] | null | null | null | ecommerce/migrations/0004_auto_20200405_1814.py | sakshipatil16/Knowledge-sharing-platform | b6638a5eee33dd149fabf1c655ace4a4226decfb | [
"bzip2-1.0.6"
] | 9 | 2021-03-19T01:09:53.000Z | 2022-01-13T02:25:14.000Z | ecommerce/migrations/0004_auto_20200405_1814.py | sakshipatil16/Ease-Sharing | b6638a5eee33dd149fabf1c655ace4a4226decfb | [
"bzip2-1.0.6"
] | null | null | null | # Generated by Django 3.0.4 on 2020-04-05 12:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ecommerce', '0003_auto_20200405_1811'),
]
operations = [
migrations.RemoveField(
model_name='item',
name='contact',
... | 19.454545 | 49 | 0.556075 | 42 | 428 | 5.547619 | 0.738095 | 0.180258 | 0.223176 | 0.257511 | 0.32618 | 0.32618 | 0 | 0 | 0 | 0 | 0 | 0.108014 | 0.329439 | 428 | 21 | 50 | 20.380952 | 0.703833 | 0.10514 | 0 | 0.4 | 1 | 0 | 0.133858 | 0.060367 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a27d46fd4f05a4378432f4c780f58fb5b46ece20 | 86 | py | Python | src/sw_website/sw_app/apps.py | afd57/sw | 4787ef13a7bc40df19c5cf4916c3a8ec42ccf902 | [
"MIT"
] | null | null | null | src/sw_website/sw_app/apps.py | afd57/sw | 4787ef13a7bc40df19c5cf4916c3a8ec42ccf902 | [
"MIT"
] | null | null | null | src/sw_website/sw_app/apps.py | afd57/sw | 4787ef13a7bc40df19c5cf4916c3a8ec42ccf902 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class SwAppConfig(AppConfig):
name = 'sw_app'
| 14.333333 | 33 | 0.744186 | 11 | 86 | 5.727273 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174419 | 86 | 5 | 34 | 17.2 | 0.887324 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a281ce74a1556f573fe1c724e537bd4caa065328 | 688 | py | Python | src/a03pakiety/a05pakiety.py | tborzyszkowski/PSPI_Wstep_do_programowania | 4aca4dfe5a8daed19d7852dd29b6cfa57df8f51c | [
"MIT"
] | null | null | null | src/a03pakiety/a05pakiety.py | tborzyszkowski/PSPI_Wstep_do_programowania | 4aca4dfe5a8daed19d7852dd29b6cfa57df8f51c | [
"MIT"
] | null | null | null | src/a03pakiety/a05pakiety.py | tborzyszkowski/PSPI_Wstep_do_programowania | 4aca4dfe5a8daed19d7852dd29b6cfa57df8f51c | [
"MIT"
] | null | null | null | import sys
print ("Przed:\n", sys.path)
sys.path.append(r'C:\home\tomek\UG\Zajecia\Python\Wyklad\PythonWyklad\_03_Pakiety')
print ("Po:\n", sys.path)
import pakiet
print (dir(pakiet))
from pakiet import *
# dir(pakiet)
# dir(pierwszy)
#
# import pakiet.pierwszy
# dir(pakiet)
# dir(pakiet.pierwszy)
# from pakiet.pierw... | 20.235294 | 83 | 0.74564 | 104 | 688 | 4.884615 | 0.403846 | 0.212598 | 0.11811 | 0.141732 | 0.295276 | 0.181102 | 0.181102 | 0.181102 | 0.181102 | 0 | 0 | 0.008237 | 0.117733 | 688 | 33 | 84 | 20.848485 | 0.828666 | 0.405523 | 0 | 0.333333 | 0 | 0 | 0.192893 | 0.159898 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a286c3bfac0f18ff478dc2fe874249a84b0e81b9 | 6,526 | py | Python | scripts/test/test_conversion.py | JMejlsted/iGEM-distribution | ae5adc0c24614c6fae3c70b4a51ba96f9f9210ac | [
"CC-BY-4.0"
] | null | null | null | scripts/test/test_conversion.py | JMejlsted/iGEM-distribution | ae5adc0c24614c6fae3c70b4a51ba96f9f9210ac | [
"CC-BY-4.0"
] | null | null | null | scripts/test/test_conversion.py | JMejlsted/iGEM-distribution | ae5adc0c24614c6fae3c70b4a51ba96f9f9210ac | [
"CC-BY-4.0"
] | null | null | null | import unittest
import os
import filecmp
import sbol2
import sbol3
from Bio import SeqIO
import datetime
import scripts.scriptutils
from scripts.test.helpers import copy_to_tmp
class Test2To3Conversion(unittest.TestCase):
def test_convert_identities(self):
"""Test conversion of a complex file"""
... | 49.067669 | 115 | 0.681581 | 852 | 6,526 | 5.039906 | 0.174883 | 0.047508 | 0.046577 | 0.04844 | 0.744294 | 0.72776 | 0.717979 | 0.693759 | 0.682813 | 0.661854 | 0 | 0.042791 | 0.205026 | 6,526 | 132 | 116 | 49.439394 | 0.784888 | 0.159056 | 0 | 0.483146 | 0 | 0 | 0.234082 | 0.049319 | 0 | 0 | 0 | 0.007576 | 0.191011 | 1 | 0.089888 | false | 0 | 0.146067 | 0 | 0.247191 | 0.022472 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a28aaf382c3779c9fe12982c6fa41227e8a81623 | 2,020 | py | Python | weather.py | Joe-Sin7h/web_scraper | 6dae6b0418f1ed2b9e98092deb0061110a30e76c | [
"MIT"
] | 1 | 2021-08-22T16:55:18.000Z | 2021-08-22T16:55:18.000Z | weather.py | Joe-Sin7h/web_scraper | 6dae6b0418f1ed2b9e98092deb0061110a30e76c | [
"MIT"
] | null | null | null | weather.py | Joe-Sin7h/web_scraper | 6dae6b0418f1ed2b9e98092deb0061110a30e76c | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
from selenium.co... | 51.794872 | 258 | 0.719307 | 322 | 2,020 | 4.413043 | 0.21118 | 0.219564 | 0.202674 | 0.168895 | 0.551724 | 0.551724 | 0.5095 | 0.5095 | 0.5095 | 0.5095 | 0 | 0.025084 | 0.111881 | 2,020 | 38 | 259 | 53.157895 | 0.767001 | 0.010396 | 0 | 0.133333 | 0 | 0.133333 | 0.376915 | 0.332993 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.266667 | 0 | 0.4 | 0.033333 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a295eb21ca1e067e1fb1f2e40c3c40a3c4872ec5 | 225 | py | Python | DecemberCodinChallenge/Day-15-Squares-of-a-Sorted-Array.py | muskaan-codes/leetcoding-challenges | ed32337e8c8ac67b4c5b183d1e1e38fa77b60775 | [
"MIT"
] | null | null | null | DecemberCodinChallenge/Day-15-Squares-of-a-Sorted-Array.py | muskaan-codes/leetcoding-challenges | ed32337e8c8ac67b4c5b183d1e1e38fa77b60775 | [
"MIT"
] | null | null | null | DecemberCodinChallenge/Day-15-Squares-of-a-Sorted-Array.py | muskaan-codes/leetcoding-challenges | ed32337e8c8ac67b4c5b183d1e1e38fa77b60775 | [
"MIT"
] | null | null | null | class Solution(object):
def sortedSquares(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
square = map(lambda x: x*x, nums)
square.sort()
return square
| 22.5 | 41 | 0.506667 | 25 | 225 | 4.56 | 0.68 | 0.122807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.36 | 225 | 9 | 42 | 25 | 0.791667 | 0.173333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a298832be366cb9be8b5dfd6307a55b0c17a54a9 | 168 | py | Python | osmaxx/job_progress/urls.py | tyrasd/osmaxx | da4454083d17b2ef8b0623cad62e39992b6bd52a | [
"MIT"
] | 27 | 2015-03-30T14:17:26.000Z | 2022-02-19T17:30:44.000Z | osmaxx/job_progress/urls.py | tyrasd/osmaxx | da4454083d17b2ef8b0623cad62e39992b6bd52a | [
"MIT"
] | 483 | 2015-03-09T16:58:03.000Z | 2022-03-14T09:29:06.000Z | osmaxx/job_progress/urls.py | tyrasd/osmaxx | da4454083d17b2ef8b0623cad62e39992b6bd52a | [
"MIT"
] | 6 | 2015-04-07T07:38:30.000Z | 2020-04-01T12:45:53.000Z | from django.conf.urls import url
from osmaxx.job_progress import views
urlpatterns = [
url(r'^tracker/(?P<export_id>[0-9]+)/$', views.tracker, name='tracker'),
]
| 21 | 76 | 0.696429 | 25 | 168 | 4.6 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013605 | 0.125 | 168 | 7 | 77 | 24 | 0.768707 | 0 | 0 | 0 | 0 | 0 | 0.232143 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a2999d262f844ca43af98d98cbfcebe76d9aadd0 | 818 | py | Python | src/server/oasisapi/files/models.py | cdlhub/OasisPlatform | b9e23448f9ddb18ba589081ee9f702f5c50c2b78 | [
"BSD-3-Clause"
] | null | null | null | src/server/oasisapi/files/models.py | cdlhub/OasisPlatform | b9e23448f9ddb18ba589081ee9f702f5c50c2b78 | [
"BSD-3-Clause"
] | null | null | null | src/server/oasisapi/files/models.py | cdlhub/OasisPlatform | b9e23448f9ddb18ba589081ee9f702f5c50c2b78 | [
"BSD-3-Clause"
] | null | null | null | import os
from uuid import uuid4
from django.conf import settings
from django.db import models
from django.utils.translation import ugettext_lazy as _
from model_utils.models import TimeStampedModel
def random_file_name(instance, filename):
ext = os.path.splitext(filename)[-1]
return '{}{}'.format(uuid4().he... | 31.461538 | 89 | 0.734719 | 110 | 818 | 5.281818 | 0.545455 | 0.051635 | 0.048193 | 0.082616 | 0.092943 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012912 | 0.147922 | 818 | 25 | 90 | 32.72 | 0.82066 | 0 | 0 | 0 | 0 | 0 | 0.03423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.111111 | 0.944444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
a29ce4f365060fd4413544902f0a647449e72718 | 5,701 | py | Python | neodroid/messaging/fbs/FBSModels/FState.py | sintefneodroid/neo | 0999f1dff95c4a8c5880a9b3add532d74f38586a | [
"Apache-2.0"
] | 7 | 2017-09-13T08:28:37.000Z | 2022-01-21T15:59:14.000Z | neodroid/messaging/fbs/FBSModels/FState.py | sintefneodroid/neo | 0999f1dff95c4a8c5880a9b3add532d74f38586a | [
"Apache-2.0"
] | 25 | 2019-03-25T13:49:43.000Z | 2019-05-02T13:58:13.000Z | neodroid/messaging/fbs/FBSModels/FState.py | sintefneodroid/neo | 0999f1dff95c4a8c5880a9b3add532d74f38586a | [
"Apache-2.0"
] | 2 | 2017-09-21T10:14:39.000Z | 2017-10-21T09:57:04.000Z | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: State
import flatbuffers
class FState(object):
__slots__ = ["_tab"]
@classmethod
def GetRootAsFState(cls, buf, offset):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = FState()
... | 29.386598 | 88 | 0.656902 | 615 | 5,701 | 5.946341 | 0.180488 | 0.072737 | 0.150397 | 0.191414 | 0.484277 | 0.461034 | 0.352748 | 0.352748 | 0.335794 | 0.335794 | 0 | 0.017507 | 0.248553 | 5,701 | 193 | 89 | 29.53886 | 0.836134 | 0.030521 | 0 | 0.351145 | 1 | 0 | 0.000726 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206107 | false | 0 | 0.030534 | 0.015267 | 0.458015 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a2ac98e8b128e98efb6abcba24d18ab161f75384 | 1,370 | py | Python | tests/core/shh-module/test_shh_key_pair.py | y19818/web3.py | 32a85a287ab63220d1e0c06d77be74de595ff02f | [
"MIT"
] | null | null | null | tests/core/shh-module/test_shh_key_pair.py | y19818/web3.py | 32a85a287ab63220d1e0c06d77be74de595ff02f | [
"MIT"
] | null | null | null | tests/core/shh-module/test_shh_key_pair.py | y19818/web3.py | 32a85a287ab63220d1e0c06d77be74de595ff02f | [
"MIT"
] | null | null | null | def test_shh_asymmetric_key_pair(web3, skip_if_testrpc):
skip_if_testrpc(web3)
# Test generating key
key_id = web3.shh.newKeyPair()
assert web3.shh.hasKeyPair(key_id)
assert len(web3.shh.getPublicKey(key_id)) == 132
private_key = web3.shh.getPrivateKey(key_id)
assert len(private_k... | 29.782609 | 70 | 0.705839 | 201 | 1,370 | 4.562189 | 0.18408 | 0.114504 | 0.141767 | 0.065431 | 0.76663 | 0.708833 | 0.536532 | 0.326063 | 0.229008 | 0.229008 | 0 | 0.032787 | 0.19854 | 1,370 | 45 | 71 | 30.444444 | 0.802368 | 0.054745 | 0 | 0.448276 | 0 | 0 | 0.009639 | 0 | 0 | 0 | 0 | 0 | 0.551724 | 1 | 0.103448 | false | 0.068966 | 0 | 0 | 0.103448 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a2b4ebc8908a4a6068901b7d023f41e5ad5211a4 | 1,256 | py | Python | collections/reducer.py | rolandovillca/python_introduction_basic | d1333a832a9e2b103e128a9dfc0c0da0952c267f | [
"MIT"
] | null | null | null | collections/reducer.py | rolandovillca/python_introduction_basic | d1333a832a9e2b103e128a9dfc0c0da0952c267f | [
"MIT"
] | null | null | null | collections/reducer.py | rolandovillca/python_introduction_basic | d1333a832a9e2b103e128a9dfc0c0da0952c267f | [
"MIT"
] | null | null | null | # EXAMPLE 1:
# ==============================================================================
print myreduce((lambda x, y: x * y), [1, 2, 3, 4])
print myreduce((lambda x, y: x / y), [1, 2, 3, 4])
# EXAMPLE 2:
# ==============================================================================
reduce(lambda x, y: x + y, [... | 29.904762 | 94 | 0.332006 | 116 | 1,256 | 3.594828 | 0.362069 | 0.047962 | 0.095923 | 0.107914 | 0.244604 | 0.244604 | 0.129496 | 0.129496 | 0.129496 | 0.129496 | 0 | 0.03442 | 0.121019 | 1,256 | 41 | 95 | 30.634146 | 0.343297 | 0.553344 | 0 | 0.2 | 0 | 0 | 0.093407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.533333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
0c11b717ec4c35a187916b9f8d501ecb77b5a77d | 135 | py | Python | code/chp03-csv-json-xml/import_json_data.py | HiAwesome/data-process-practice | 5e1de524c7a97534ec453cf616d140b98d61c1f4 | [
"Apache-2.0"
] | null | null | null | code/chp03-csv-json-xml/import_json_data.py | HiAwesome/data-process-practice | 5e1de524c7a97534ec453cf616d140b98d61c1f4 | [
"Apache-2.0"
] | null | null | null | code/chp03-csv-json-xml/import_json_data.py | HiAwesome/data-process-practice | 5e1de524c7a97534ec453cf616d140b98d61c1f4 | [
"Apache-2.0"
] | null | null | null | import json
json_data = open('../../data/chp3/data-text.json').read()
data = json.loads(json_data)
for item in data:
print item
| 15 | 57 | 0.674074 | 22 | 135 | 4.045455 | 0.545455 | 0.179775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008772 | 0.155556 | 135 | 8 | 58 | 16.875 | 0.77193 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0c1992579b1baa02c0f92ede218a9611a4f0b6f4 | 315 | py | Python | dnplab/__init__.py | ongjj323/DNPLab | 09fd9f21c3c48a3f122d0b0295cc982f689a9842 | [
"MIT"
] | null | null | null | dnplab/__init__.py | ongjj323/DNPLab | 09fd9f21c3c48a3f122d0b0295cc982f689a9842 | [
"MIT"
] | null | null | null | dnplab/__init__.py | ongjj323/DNPLab | 09fd9f21c3c48a3f122d0b0295cc982f689a9842 | [
"MIT"
] | null | null | null | from .dnpData import dnpdata, dnpdata_collection, create_workspace
from .dnpImport import load
from .dnpSave import save
from .dnpNMR import *
from . import dnpIO
from .dnpFit import *
from .dnpTools import *
from .dnpHydration import *
from . import core
from .dnpResults import *
from .version import __version__
| 26.25 | 66 | 0.796825 | 41 | 315 | 5.97561 | 0.439024 | 0.204082 | 0.130612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146032 | 315 | 11 | 67 | 28.636364 | 0.910781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0c1a68084a80e0024e6573910dd54847fd91fa58 | 22,392 | py | Python | Exp_3_Synt_DriftDetection_MCAR.py | Anjin-Liu/TFS-MDL-FWF | 3bc50ede719bf2e35c8c5edf976284be660c4ee1 | [
"MIT"
] | 2 | 2020-11-12T00:33:05.000Z | 2021-05-26T14:44:06.000Z | Exp_3_Synt_DriftDetection_MCAR.py | Anjin-Liu/TFS-MDL-FWF | 3bc50ede719bf2e35c8c5edf976284be660c4ee1 | [
"MIT"
] | null | null | null | Exp_3_Synt_DriftDetection_MCAR.py | Anjin-Liu/TFS-MDL-FWF | 3bc50ede719bf2e35c8c5edf976284be660c4ee1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 4 11:43:35 2019
@author: Anjin Liu
@email: anjin.liu@uts.edu.au
@affiliation: The Drift, DeSI, CAI, UTS
"""
from mf_distance import data_handler as dh
import numpy as np
import sys
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.experimental import... | 45.236364 | 182 | 0.692792 | 3,126 | 22,392 | 4.515675 | 0.079015 | 0.08161 | 0.11108 | 0.052139 | 0.764948 | 0.736682 | 0.712525 | 0.674483 | 0.653089 | 0.631978 | 0 | 0.023169 | 0.230931 | 22,392 | 494 | 183 | 45.327935 | 0.796528 | 0.041086 | 0 | 0.506173 | 0 | 0 | 0.029613 | 0.004668 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024691 | false | 0.006173 | 0.046296 | 0 | 0.095679 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0c544bd5f56e8bd451e5764a864daed6a185a741 | 178 | py | Python | comarray/py2.5/__init__.py | leschzinerlab/myami-3.2-freeHand | 974b8a48245222de0d9cfb0f433533487ecce60d | [
"MIT"
] | null | null | null | comarray/py2.5/__init__.py | leschzinerlab/myami-3.2-freeHand | 974b8a48245222de0d9cfb0f433533487ecce60d | [
"MIT"
] | null | null | null | comarray/py2.5/__init__.py | leschzinerlab/myami-3.2-freeHand | 974b8a48245222de0d9cfb0f433533487ecce60d | [
"MIT"
] | 1 | 2019-09-05T20:58:37.000Z | 2019-09-05T20:58:37.000Z | import sys
# use precompiled NumpySafeArray dll only if python 2.5
v = sys.version_info
if v[:2] == (2,5):
from NumpySafeArray import *
else:
from NumpySafeArraySlow import *
| 19.777778 | 55 | 0.741573 | 27 | 178 | 4.851852 | 0.62963 | 0.030534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033784 | 0.168539 | 178 | 8 | 56 | 22.25 | 0.851351 | 0.297753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a7581f7f209eac00c0dbb873b706a5091997a3dc | 245 | py | Python | hydroserver/controllers/__init__.py | gfvandehei/hydroponics-rpi-server | e9c0cdbb2a72f908dae299f28d00dad23d7b5bb6 | [
"MIT"
] | null | null | null | hydroserver/controllers/__init__.py | gfvandehei/hydroponics-rpi-server | e9c0cdbb2a72f908dae299f28d00dad23d7b5bb6 | [
"MIT"
] | null | null | null | hydroserver/controllers/__init__.py | gfvandehei/hydroponics-rpi-server | e9c0cdbb2a72f908dae299f28d00dad23d7b5bb6 | [
"MIT"
] | null | null | null | """
hydroserver/controllers is a place for any database/system interactions
and any physical system mapping containers
for example a component that initializes a pump from the database and keeps track of said
pump for a view to access
""" | 35 | 90 | 0.787755 | 38 | 245 | 5.078947 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179592 | 245 | 7 | 91 | 35 | 0.960199 | 0.942857 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a779e32da503e498ba11b601cf2394f8aabf666d | 71 | py | Python | PythonPractice/RecursionPractice.py | neil92/MiscScripts2 | b65444d99c057c305c1bebb437402004c5345b7b | [
"MIT"
] | null | null | null | PythonPractice/RecursionPractice.py | neil92/MiscScripts2 | b65444d99c057c305c1bebb437402004c5345b7b | [
"MIT"
] | null | null | null | PythonPractice/RecursionPractice.py | neil92/MiscScripts2 | b65444d99c057c305c1bebb437402004c5345b7b | [
"MIT"
] | null | null | null | #!/usr/bin/python
#Neil A. Patel
#Recursion Practice
#20150418
| 10.142857 | 20 | 0.661972 | 9 | 71 | 5.222222 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.211268 | 71 | 6 | 21 | 11.833333 | 0.696429 | 0.774648 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a77f0267589a70be3373439d13a9cf4ddd937e24 | 201 | py | Python | tools/test/config_test/test24/test_data.py | pradeep-gr/mbed-os5-onsemi | 576d096f2d9933c39b8a220f486e9756d89173f2 | [
"Apache-2.0"
] | 7 | 2017-01-15T16:37:41.000Z | 2021-08-10T02:14:04.000Z | tools/test/config_test/test24/test_data.py | pradeep-gr/mbed-os5-onsemi | 576d096f2d9933c39b8a220f486e9756d89173f2 | [
"Apache-2.0"
] | 1 | 2017-02-20T10:48:02.000Z | 2017-02-21T11:34:16.000Z | tools/test/config_test/test24/test_data.py | pradeep-gr/mbed-os5-onsemi | 576d096f2d9933c39b8a220f486e9756d89173f2 | [
"Apache-2.0"
] | 9 | 2017-04-27T07:54:26.000Z | 2021-08-10T02:14:05.000Z | # Testing if features can enable other features
expected_results = {
"test_target": {
"desc": "test recursive features",
"expected_features": ["IPV4", "STORAGE", "UVISOR"]
}
}
| 22.333333 | 58 | 0.621891 | 20 | 201 | 6.1 | 0.75 | 0.262295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006536 | 0.238806 | 201 | 8 | 59 | 25.125 | 0.79085 | 0.223881 | 0 | 0 | 0 | 0 | 0.467532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a7812354f9948b5e4dec9f48af06992ce89da6bf | 341 | py | Python | test/motor.py | slipstreamJumper/RaspberryPy | 40e91b73a1b21c84b0b66f193a955e53c5286a38 | [
"MIT"
] | 1 | 2022-01-23T19:21:08.000Z | 2022-01-23T19:21:08.000Z | test/motor.py | slipstreamJumper/RaspberryPy | 40e91b73a1b21c84b0b66f193a955e53c5286a38 | [
"MIT"
] | 2 | 2020-07-22T17:20:33.000Z | 2020-07-23T00:30:55.000Z | test/motor.py | slipstreamJumper/RaspberryPy | 40e91b73a1b21c84b0b66f193a955e53c5286a38 | [
"MIT"
] | 2 | 2019-07-02T00:26:25.000Z | 2020-07-22T17:26:56.000Z | from raspberrypy.motor.L289N import L289N
from time import sleep
if __name__ == '__main__':
motor = L289N()
print motor
# motor.left_forward(0.5)
# motor.right_forward(0.5)
# motor.right_backward(0.5)
# motor.left_backward(0.5)
motor.spin_left(0.2)
motor.stop(0.5)
motor.spin_right(0.2)
# motor.forward(0.5)
#... | 21.3125 | 41 | 0.721408 | 59 | 341 | 3.932203 | 0.338983 | 0.060345 | 0.181034 | 0.181034 | 0.163793 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090604 | 0.1261 | 341 | 15 | 42 | 22.733333 | 0.687919 | 0.404692 | 0 | 0 | 0 | 0 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a79a1ad699acb824bc24776b0053adfca49fe444 | 2,138 | py | Python | expkit/format/time.py | jonathangingras/expkit | 1943543ac6b23e80c59b56b4e998f0b0aaa7d6c8 | [
"WTFPL"
] | null | null | null | expkit/format/time.py | jonathangingras/expkit | 1943543ac6b23e80c59b56b4e998f0b0aaa7d6c8 | [
"WTFPL"
] | null | null | null | expkit/format/time.py | jonathangingras/expkit | 1943543ac6b23e80c59b56b4e998f0b0aaa7d6c8 | [
"WTFPL"
] | null | null | null | from time import gmtime, strftime, mktime, struct_time
import calendar
from datetime import datetime
from dateutil import tz
class TimeDelta(object):
def __init__(self, total_seconds):
self.total_seconds = int(total_seconds)
@property
def total_hours(self):
return self.total_seconds // 3... | 22.505263 | 105 | 0.646399 | 265 | 2,138 | 4.856604 | 0.230189 | 0.10878 | 0.080808 | 0.073815 | 0.227661 | 0.205128 | 0.10101 | 0.051282 | 0 | 0 | 0 | 0.011152 | 0.245089 | 2,138 | 94 | 106 | 22.744681 | 0.786245 | 0 | 0 | 0.245614 | 0 | 0 | 0.068288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0.070175 | 0.263158 | 0.701754 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a79cca9577b81613efae9d48c51d4e04ae4e200e | 417 | py | Python | src/upload.py | shy2052/fontObfuscator | 295f65e0c97849f23fd51cec8aeac7d49df1b5fe | [
"MIT"
] | 136 | 2019-12-03T04:34:39.000Z | 2022-02-07T09:41:12.000Z | src/upload.py | shy2052/fontObfuscator | 295f65e0c97849f23fd51cec8aeac7d49df1b5fe | [
"MIT"
] | 82 | 2019-12-04T05:13:14.000Z | 2022-03-16T20:17:08.000Z | src/upload.py | solarhell/fontObfuscator | e06cdd9054fabb5938712a9f2110114187310592 | [
"MIT"
] | 13 | 2019-12-03T04:34:31.000Z | 2022-01-23T15:06:20.000Z | from pathlib import Path
import oss2
from config import BUCKET_API_ENDPOINT, BUCKET_NAME, BUCKET_API_KEY, BUCKET_API_SECRET
def upload_to_oss(key: str, filename: str):
auth = oss2.Auth(BUCKET_API_KEY, BUCKET_API_SECRET)
bucket = oss2.Bucket(auth, BUCKET_API_ENDPOINT, BUCKET_NAME)
bucket.put_ob... | 26.0625 | 87 | 0.752998 | 61 | 417 | 4.819672 | 0.393443 | 0.183673 | 0.115646 | 0.156463 | 0.387755 | 0.387755 | 0 | 0 | 0 | 0 | 0 | 0.008646 | 0.167866 | 417 | 15 | 88 | 27.8 | 0.838617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a7b4765730e1cc534de0e7ee9311bc7adb07b9cf | 1,090 | py | Python | setup.py | vladpopovici/CP_wsi | ea76d4cc725186f42958bb9aea62f5c6ba76bf96 | [
"MIT"
] | null | null | null | setup.py | vladpopovici/CP_wsi | ea76d4cc725186f42958bb9aea62f5c6ba76bf96 | [
"MIT"
] | null | null | null | setup.py | vladpopovici/CP_wsi | ea76d4cc725186f42958bb9aea62f5c6ba76bf96 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# --------------------------------------------------------------------
# Copyright (c) 2022 Vlad Popovici <popovici@bioxlab.org>
#
# Licensed under the MIT License. See LICENSE file in root folder.
# --------------------------------------------------------------------
from setuptools im... | 31.142857 | 71 | 0.506422 | 102 | 1,090 | 5.362745 | 0.686275 | 0.13894 | 0.182815 | 0.190128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020556 | 0.241284 | 1,090 | 34 | 72 | 32.058824 | 0.640871 | 0.26055 | 0 | 0.083333 | 0 | 0 | 0.527638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a7c2432d11ef0a046acc85ef77b4cd958a9fbe91 | 90 | py | Python | mundi/types/typing.py | pydemic/mundi | 7c88037bd5aaff8bbed4c63b52f05bebc989b0e4 | [
"MIT"
] | 2 | 2020-05-28T22:03:12.000Z | 2020-09-30T12:16:04.000Z | mundi/types/typing.py | pydemic/mundi | 7c88037bd5aaff8bbed4c63b52f05bebc989b0e4 | [
"MIT"
] | null | null | null | mundi/types/typing.py | pydemic/mundi | 7c88037bd5aaff8bbed4c63b52f05bebc989b0e4 | [
"MIT"
] | null | null | null | import pandas as pd
from typing import *
PandasT = Union[pd.DataFrame, pd.Series]
del pd
| 15 | 40 | 0.755556 | 15 | 90 | 4.533333 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 90 | 5 | 41 | 18 | 0.906667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a7c468be241145fe25dfdcf9e34f7c9c79480ace | 3,353 | py | Python | cgt/api_autogen.py | rohanraja/cgt_distributed | 3d8ee39460eadc96739d55eb46eed92f12ea1e22 | [
"MIT"
] | 698 | 2015-08-25T08:17:42.000Z | 2022-02-08T10:08:01.000Z | cgt/api_autogen.py | xiaohu2015/cgt | 90b15ab041fc2137e62b96e8612ccee605f71ceb | [
"MIT"
] | 59 | 2015-08-25T17:45:24.000Z | 2021-11-14T16:58:52.000Z | cgt/api_autogen.py | xiaohu2015/cgt | 90b15ab041fc2137e62b96e8612ccee605f71ceb | [
"MIT"
] | 111 | 2015-08-25T20:35:17.000Z | 2021-09-18T03:35:28.000Z | # This file was autogenerated by gen_py.py. Do not edit.
from . import core
def abs(x):
"Applies function abs elementwise to argument x"
return core.Result(core.ElwiseUnary("abs"), [x])
def ceil(x):
"Applies function ceil elementwise to argument x"
return core.Result(core.ElwiseUnary("ceil"), [x])... | 31.336449 | 65 | 0.674918 | 473 | 3,353 | 4.7463 | 0.107822 | 0.029399 | 0.106904 | 0.146993 | 0.685523 | 0.621381 | 0.621381 | 0.621381 | 0.621381 | 0.267261 | 0 | 0 | 0.201312 | 3,353 | 107 | 66 | 31.336449 | 0.838312 | 0.410677 | 0 | 0 | 1 | 0 | 0.416616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.329114 | false | 0 | 0.012658 | 0 | 0.670886 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a7cabdf804fc3b8959eb9e2456684154e426cb7b | 305 | py | Python | src/coliseum/game.py | rokujyouhitoma/coliseum-game-py | 886c804022adf863cd71409d8dbe3a62f617135d | [
"MIT"
] | null | null | null | src/coliseum/game.py | rokujyouhitoma/coliseum-game-py | 886c804022adf863cd71409d8dbe3a62f617135d | [
"MIT"
] | null | null | null | src/coliseum/game.py | rokujyouhitoma/coliseum-game-py | 886c804022adf863cd71409d8dbe3a62f617135d | [
"MIT"
] | null | null | null | import typing
class Game:
pass
class Combat:
pass
class Actor:
pass
class ActionRequest:
actor: Actor
class ActionResult:
request: ActionRequest
class CombatTurnRequest:
actors: typing.List[Actor]
class CombatTurnResult:
action_results: typing.List[ActionResult]
| 10.166667 | 45 | 0.718033 | 32 | 305 | 6.8125 | 0.5 | 0.123853 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22623 | 305 | 29 | 46 | 10.517241 | 0.923729 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 0.066667 | 0 | 0.8 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
a7db2b0ab8f74fc8ff95418c8334a68e58716e14 | 258 | py | Python | sentence_reversal.py | akanksha234/Python-Interview-Questions | 431913628fbef0c9e503cf1915136fae21e8b023 | [
"MIT"
] | null | null | null | sentence_reversal.py | akanksha234/Python-Interview-Questions | 431913628fbef0c9e503cf1915136fae21e8b023 | [
"MIT"
] | null | null | null | sentence_reversal.py | akanksha234/Python-Interview-Questions | 431913628fbef0c9e503cf1915136fae21e8b023 | [
"MIT"
] | null | null | null | def reverse_sentence(sentence):
sentence = sentence.rstrip().lstrip()
wordArray = sentence.split()
reversedSentence =""
for word in wordArray[::-1] :
reversedSentence += ' ' + word
return reversedSentence.lstrip()
| 21.5 | 42 | 0.620155 | 22 | 258 | 7.227273 | 0.590909 | 0.301887 | 0.301887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005236 | 0.25969 | 258 | 11 | 43 | 23.454545 | 0.827225 | 0 | 0 | 0 | 0 | 0 | 0.004082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ac09e85df6ad051e81278194e054bed8ccdf2dc8 | 488 | py | Python | kisensum/openadr/openadr/vtn/migrations/0034_auto_20171116_1837.py | ChargePoint/volttron-applications | 8d99c01a93f7c1ea98d4e4b0cfcefe85fe26320b | [
"BSD-3-Clause"
] | null | null | null | kisensum/openadr/openadr/vtn/migrations/0034_auto_20171116_1837.py | ChargePoint/volttron-applications | 8d99c01a93f7c1ea98d4e4b0cfcefe85fe26320b | [
"BSD-3-Clause"
] | 4 | 2021-03-19T23:36:34.000Z | 2021-12-13T19:45:54.000Z | kisensum/openadr/openadr/vtn/migrations/0034_auto_20171116_1837.py | ChargePoint/volttron-applications | 8d99c01a93f7c1ea98d4e4b0cfcefe85fe26320b | [
"BSD-3-Clause"
] | 1 | 2020-05-25T05:03:55.000Z | 2020-05-25T05:03:55.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-11-16 18:37
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('vtn', '0033_auto_20171116_1719'),
]
operations = [
migrations.RemoveField(
... | 20.333333 | 48 | 0.57377 | 50 | 488 | 5.4 | 0.72 | 0.155556 | 0.192593 | 0.222222 | 0.296296 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0.097633 | 0.307377 | 488 | 23 | 49 | 21.217391 | 0.701183 | 0.139344 | 0 | 0.375 | 1 | 0 | 0.110312 | 0.055156 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ac1e6c4ac255264e3d1f0d0fa81c02485465f2f3 | 750 | py | Python | intro_DS/GOLDTRIP.py | Rijul24/Codechef-Codes | 3715c3e3ed8232540fb7fcbcae8c2ee7434d90c9 | [
"MIT"
] | null | null | null | intro_DS/GOLDTRIP.py | Rijul24/Codechef-Codes | 3715c3e3ed8232540fb7fcbcae8c2ee7434d90c9 | [
"MIT"
] | null | null | null | intro_DS/GOLDTRIP.py | Rijul24/Codechef-Codes | 3715c3e3ed8232540fb7fcbcae8c2ee7434d90c9 | [
"MIT"
] | null | null | null | import sys
def get_inpt(): return sys.stdin.readline().strip()
def get_int(): return int(sys.stdin.readline().strip())
def get_ints(): return map(int, sys.stdin.readline().strip().split())
def get_array(): return list(map(int, sys.stdin.readline().strip().split()))
T= int(input())
while T!=0:
T-=1
n = int(in... | 28.846154 | 76 | 0.589333 | 119 | 750 | 3.672269 | 0.302521 | 0.06865 | 0.146453 | 0.19222 | 0.379863 | 0.270023 | 0.146453 | 0 | 0 | 0 | 0 | 0.022147 | 0.217333 | 750 | 26 | 77 | 28.846154 | 0.722317 | 0.116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0.210526 | 0.263158 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
ac1e95e07e01006bbbc60400ca1984c155cad5db | 2,020 | py | Python | tinymce_4/widgets.py | ITCase-django/django-tinymce-4 | cae6b852bff0a419844240e1a90c578c4ef60de1 | [
"MIT"
] | 13 | 2015-02-17T15:48:04.000Z | 2020-01-26T22:28:59.000Z | tinymce_4/widgets.py | ITCase-django/django-tinymce-4 | cae6b852bff0a419844240e1a90c578c4ef60de1 | [
"MIT"
] | 7 | 2015-07-10T10:36:51.000Z | 2021-07-14T21:36:25.000Z | tinymce_4/widgets.py | ITCase-django/django-tinymce-4 | cae6b852bff0a419844240e1a90c578c4ef60de1 | [
"MIT"
] | 6 | 2016-01-20T11:31:55.000Z | 2019-06-18T14:24:29.000Z | # -*- coding: utf-8 -*-
from django import forms
class TinyMCEWidget(forms.Textarea):
'''
Textarea form widget with support TinyMCE.
See: http://www.tinymce.com/wiki.php/TinyMCE
'''
tiny_class = 'tinymce4'
def __init__(self, attrs={}):
css_class = attrs.get('class', '')
attr... | 29.705882 | 63 | 0.60495 | 233 | 2,020 | 5.06867 | 0.266094 | 0.135478 | 0.257409 | 0.274344 | 0.648603 | 0.50127 | 0.452159 | 0.294666 | 0.225233 | 0.225233 | 0 | 0.014805 | 0.264356 | 2,020 | 67 | 64 | 30.149254 | 0.779946 | 0.181683 | 0 | 0.2 | 0 | 0 | 0.476371 | 0.462508 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.025 | 0 | 0.225 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ac1f4c20d40141e0d7ad915e5d47c03dfefec22f | 54 | py | Python | boost/inception/__init__.py | igorMIA/bus_com_parser | 07de65f3106c302d96b5fd9dad89562de44ec63f | [
"MIT"
] | null | null | null | boost/inception/__init__.py | igorMIA/bus_com_parser | 07de65f3106c302d96b5fd9dad89562de44ec63f | [
"MIT"
] | 12 | 2020-02-12T01:09:12.000Z | 2022-03-11T23:54:05.000Z | boost/inception/__init__.py | igorMIA/bus_com_parser | 07de65f3106c302d96b5fd9dad89562de44ec63f | [
"MIT"
] | null | null | null | default_app_config = 'inception.apps.InceptionConfig'
| 27 | 53 | 0.851852 | 6 | 54 | 7.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 54 | 1 | 54 | 54 | 0.862745 | 0 | 0 | 0 | 0 | 0 | 0.555556 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ac458f5e7dca6b45e2cfd57db0c960d7a04548bc | 185 | py | Python | src/utils/__init__.py | lilin-hitcrt/OverlapNet | 33088bf0c5cc8c2e607b630dc5d3d6054b9efb73 | [
"MIT"
] | 441 | 2020-05-29T10:05:32.000Z | 2022-03-24T17:18:15.000Z | src/utils/__init__.py | lilin-hitcrt/OverlapNet | 33088bf0c5cc8c2e607b630dc5d3d6054b9efb73 | [
"MIT"
] | 22 | 2020-06-12T02:25:46.000Z | 2022-03-21T10:33:42.000Z | src/utils/__init__.py | lilin-hitcrt/OverlapNet | 33088bf0c5cc8c2e607b630dc5d3d6054b9efb73 | [
"MIT"
] | 98 | 2020-05-29T12:56:19.000Z | 2022-03-06T07:55:55.000Z | #!/usr/bin/env python3
# Developed by Xieyuanli Chen and Thomas Läbe
# This file is covered by the LICENSE file in the root of this project.
# Brief: Dummy file to make this a package.
| 37 | 71 | 0.756757 | 33 | 185 | 4.242424 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006623 | 0.183784 | 185 | 4 | 72 | 46.25 | 0.92053 | 0.956757 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ac4d4fcaae878aad71c5bf497dcbe6a573814041 | 208 | py | Python | components/log.py | huzexi/SADenseNet | 95ab1b6b29f6dff973f3770ecd8b23cca37c9f0b | [
"BSD-3-Clause"
] | 8 | 2021-12-10T12:50:06.000Z | 2022-03-11T21:50:02.000Z | components/log.py | huzexi/SADenseNet | 95ab1b6b29f6dff973f3770ecd8b23cca37c9f0b | [
"BSD-3-Clause"
] | null | null | null | components/log.py | huzexi/SADenseNet | 95ab1b6b29f6dff973f3770ecd8b23cca37c9f0b | [
"BSD-3-Clause"
] | null | null | null | import logging
import sys
logging.basicConfig(stream=sys.stdout, level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logger = logging.getLogger("AngularSR")
| 34.666667 | 82 | 0.668269 | 25 | 208 | 5.56 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173077 | 208 | 5 | 83 | 41.6 | 0.80814 | 0 | 0 | 0 | 0 | 0 | 0.293269 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ac4e2ad65b5aab791f63ae1f8a1759073835ef23 | 19,165 | py | Python | tests/test_batch_auction.py | bitcoinbrisbane/MISO | fb541f931f9f13906eb7046bc4425e3f054c3428 | [
"Apache-2.0"
] | null | null | null | tests/test_batch_auction.py | bitcoinbrisbane/MISO | fb541f931f9f13906eb7046bc4425e3f054c3428 | [
"Apache-2.0"
] | null | null | null | tests/test_batch_auction.py | bitcoinbrisbane/MISO | fb541f931f9f13906eb7046bc4425e3f054c3428 | [
"Apache-2.0"
] | null | null | null | from brownie import accounts, web3, Wei, reverts, chain
from brownie.network.transaction import TransactionReceipt
from brownie.convert import to_address
import pytest
from brownie import Contract
from settings import *
# reset the chain after every test case
@pytest.fixture(autouse=True)
def isolation(fn_isolation):... | 37.213592 | 203 | 0.701591 | 2,355 | 19,165 | 5.379618 | 0.076858 | 0.096614 | 0.03181 | 0.0592 | 0.837319 | 0.782066 | 0.712527 | 0.639514 | 0.598311 | 0.552609 | 0 | 0.022243 | 0.167232 | 19,165 | 514 | 204 | 37.285992 | 0.771554 | 0.354918 | 0 | 0.538136 | 0 | 0 | 0.089089 | 0 | 0 | 0 | 0 | 0 | 0.110169 | 1 | 0.067797 | false | 0.004237 | 0.025424 | 0 | 0.118644 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ac6afd2c47d2dc0e90ab4f2f26c4ce0ac36ee99c | 85 | py | Python | disno/http/enums.py | QwireDev/disno | 9ae5323dd689532a86898a98223e1f8162b46700 | [
"MIT"
] | null | null | null | disno/http/enums.py | QwireDev/disno | 9ae5323dd689532a86898a98223e1f8162b46700 | [
"MIT"
] | 3 | 2022-02-26T03:15:03.000Z | 2022-03-17T01:39:51.000Z | disno/http/enums.py | QwireDev/disno | 9ae5323dd689532a86898a98223e1f8162b46700 | [
"MIT"
] | null | null | null | from enum import Enum
class AuthType(Enum):
none = 0
bot = 1
bearer = 2
| 12.142857 | 21 | 0.6 | 13 | 85 | 3.923077 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.329412 | 85 | 6 | 22 | 14.166667 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
3ba1dc14d05e496bf86aca8446c19c2f2c187a0a | 942 | py | Python | torchero/callbacks/base.py | juancruzsosa/torchero | d1440b7a9c3ab2c1d3abbb282abb9ee1ea240797 | [
"MIT"
] | 10 | 2020-07-06T13:35:26.000Z | 2021-08-10T09:46:53.000Z | torchero/callbacks/base.py | juancruzsosa/torchero | d1440b7a9c3ab2c1d3abbb282abb9ee1ea240797 | [
"MIT"
] | 6 | 2020-07-07T20:52:16.000Z | 2020-07-14T04:05:02.000Z | torchero/callbacks/base.py | juancruzsosa/torchero | d1440b7a9c3ab2c1d3abbb282abb9ee1ea240797 | [
"MIT"
] | 1 | 2021-06-28T17:56:11.000Z | 2021-06-28T17:56:11.000Z | class Callback(object):
""" Callbacks for epoch/batch training events
"""
def __init__(self):
""" Constructor
"""
self.trainer = None
def accept(self, trainer):
""" Attach the callback to the given trainer
Args:
trainer(instance of :class:`torchero.b... | 22.428571 | 68 | 0.541401 | 103 | 942 | 4.825243 | 0.38835 | 0.050302 | 0.171026 | 0.088531 | 0.263581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.36518 | 942 | 41 | 69 | 22.97561 | 0.831104 | 0.462845 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.466667 | false | 0.333333 | 0 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
3bb98e11ebd73cac7e0aee6af1a64eaaca463122 | 1,538 | py | Python | test/pytest/service-bluetooth/test_basic_control_dev_perspective.py | bitigchi/MuditaOS | 425d23e454e09fd6ae274b00f8d19c57a577aa94 | [
"BSL-1.0"
] | 369 | 2021-11-10T09:20:29.000Z | 2022-03-30T06:36:58.000Z | test/pytest/service-bluetooth/test_basic_control_dev_perspective.py | bitigchi/MuditaOS | 425d23e454e09fd6ae274b00f8d19c57a577aa94 | [
"BSL-1.0"
] | 149 | 2021-11-10T08:38:35.000Z | 2022-03-31T23:01:52.000Z | test/pytest/service-bluetooth/test_basic_control_dev_perspective.py | bitigchi/MuditaOS | 425d23e454e09fd6ae274b00f8d19c57a577aa94 | [
"BSL-1.0"
] | 41 | 2021-11-10T08:30:37.000Z | 2022-03-29T08:12:46.000Z | # Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
# For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
import time
import pytest
from harness import log
from harness.dom_parser_utils import *
from bt_fixtures import *
from bt_utils import *
@pytest.mark.rt1051
@pytest.mark.usefixtures("b... | 27.464286 | 66 | 0.706112 | 207 | 1,538 | 5.072464 | 0.280193 | 0.057143 | 0.057143 | 0.085714 | 0.702857 | 0.702857 | 0.702857 | 0.702857 | 0.537143 | 0.497143 | 0 | 0.015456 | 0.158648 | 1,538 | 55 | 67 | 27.963636 | 0.795981 | 0.083225 | 0 | 0.634146 | 0 | 0 | 0.191323 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 1 | 0.04878 | false | 0 | 0.146341 | 0 | 0.195122 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3bc2d2dd6c03538d02230392fa51891315fab700 | 321 | py | Python | nanopores/tools/__init__.py | mitschabaude/nanopores | b1a7effed8e99ef862dd24cd9aada577d6ce28e1 | [
"MIT"
] | 8 | 2016-09-07T01:59:31.000Z | 2021-03-06T12:14:31.000Z | nanopores/tools/__init__.py | mitschabaude/nanopores | b1a7effed8e99ef862dd24cd9aada577d6ce28e1 | [
"MIT"
] | null | null | null | nanopores/tools/__init__.py | mitschabaude/nanopores | b1a7effed8e99ef862dd24cd9aada577d6ce28e1 | [
"MIT"
] | 4 | 2017-12-06T17:43:01.000Z | 2020-05-01T05:41:14.000Z | from illposed import *
from errorest import *
from geometry import *
from pdesystem import *
from utilities import *
from coupled import *
from physicsclass import *
from protocol import *
from mpipool import *
from transientpde import *
from box import *
from axisym import *
import solvermethods
from solvers import *... | 20.0625 | 26 | 0.788162 | 41 | 321 | 6.170732 | 0.390244 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17134 | 321 | 15 | 27 | 21.4 | 0.951128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3bd0b98929b8ce41392fb61e5a40d8fd518851fc | 139 | py | Python | tt/__init__.py | anthonyoteri/timetrack2 | 3d246f640647ff9e231b37eefb5d75ca4186efcd | [
"BSD-3-Clause"
] | null | null | null | tt/__init__.py | anthonyoteri/timetrack2 | 3d246f640647ff9e231b37eefb5d75ca4186efcd | [
"BSD-3-Clause"
] | 68 | 2018-01-30T13:57:25.000Z | 2018-05-02T16:08:08.000Z | tt/__init__.py | anthonyoteri/timetrack2 | 3d246f640647ff9e231b37eefb5d75ca4186efcd | [
"BSD-3-Clause"
] | null | null | null | __VERSION__ = "1.0.8"
__AUTHOR__ = "Anthony Oteri"
__AUTHOR_EMAIL__ = "anthony.oteri@gmail.com"
__DESCRIPTION__ = "A timetracking utility"
| 27.8 | 44 | 0.769784 | 17 | 139 | 5.294118 | 0.823529 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024194 | 0.107914 | 139 | 4 | 45 | 34.75 | 0.701613 | 0 | 0 | 0 | 0 | 0 | 0.453237 | 0.165468 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3bf0ffe3453c85dacc7e9027bc7dde45f86124fa | 246 | py | Python | Ago-Dic-2019/Jorge Alberto Hernandez Sanchez/Practicas/Practica1/3.5_Canging_Guest_List.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 41 | 2017-09-26T09:36:32.000Z | 2022-03-19T18:05:25.000Z | Ago-Dic-2019/Jorge Alberto Hernandez Sanchez/Practicas/Practica1/3.5_Canging_Guest_List.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 67 | 2017-09-11T05:06:12.000Z | 2022-02-14T04:44:04.000Z | Ago-Dic-2019/Jorge Alberto Hernandez Sanchez/Practicas/Practica1/3.5_Canging_Guest_List.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 210 | 2017-09-01T00:10:08.000Z | 2022-03-19T18:05:12.000Z | familia = ["Jorge de Jesus", "Jose", "Ramon"]
del familia[1]
familia.append("Ramiro")
print("Te invito a cenar", familia[0])
print("Te invito a cenar", familia[1])
print("Te invito a cenar", familia[2])
print("Jose no puede asistir a la cena") | 24.6 | 45 | 0.686992 | 41 | 246 | 4.121951 | 0.536585 | 0.12426 | 0.230769 | 0.248521 | 0.461538 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0.138211 | 246 | 10 | 46 | 24.6 | 0.778302 | 0 | 0 | 0 | 0 | 0 | 0.449393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
3bf4958b14b9433b87fd5f427dd076ddf73e449f | 175 | py | Python | python/DeepSeaVectorDraw/GradientEdge.py | akb825/DeepSea | fff790d0a472cf2f9f89de653e0b4470ce605d24 | [
"Apache-2.0"
] | 5 | 2018-11-17T23:13:22.000Z | 2021-09-30T13:37:04.000Z | python/DeepSeaVectorDraw/GradientEdge.py | akb825/DeepSea | fff790d0a472cf2f9f89de653e0b4470ce605d24 | [
"Apache-2.0"
] | null | null | null | python/DeepSeaVectorDraw/GradientEdge.py | akb825/DeepSea | fff790d0a472cf2f9f89de653e0b4470ce605d24 | [
"Apache-2.0"
] | 2 | 2019-09-23T12:23:35.000Z | 2020-04-07T05:31:06.000Z | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: DeepSeaVectorDraw
class GradientEdge(object):
Clamp = 0
Repeat = 1
Mirror = 2
| 17.5 | 68 | 0.72 | 20 | 175 | 6.3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022059 | 0.222857 | 175 | 9 | 69 | 19.444444 | 0.904412 | 0.542857 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3bfe0e258936ab889b8fcb6fa11737c4ff2ea892 | 166 | py | Python | main.py | kikaxa42/My-cheat-sheet-on-neural-networks | 0bf8ebc18ec11e7c7fa3e62b58b5be3728215360 | [
"MIT"
] | null | null | null | main.py | kikaxa42/My-cheat-sheet-on-neural-networks | 0bf8ebc18ec11e7c7fa3e62b58b5be3728215360 | [
"MIT"
] | null | null | null | main.py | kikaxa42/My-cheat-sheet-on-neural-networks | 0bf8ebc18ec11e7c7fa3e62b58b5be3728215360 | [
"MIT"
] | null | null | null | import os
os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
| 20.75 | 42 | 0.710843 | 26 | 166 | 4.384615 | 0.653846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.138554 | 166 | 7 | 43 | 23.714286 | 0.79021 | 0 | 0 | 0 | 0 | 0 | 0.245283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ce2462ff572885918b26a6040e3a41a4b809b6e9 | 64 | py | Python | scenegraph/exp-official/taskographyv4tiny5_Cerberus-sat/taskographyv4tiny5_Cerberus-sat_test.py | taskography/3dscenegraph-dev | 2c261241230fbea1f1c687ff793478248f25c02c | [
"MIT"
] | 1 | 2022-01-30T22:06:57.000Z | 2022-01-30T22:06:57.000Z | scenegraph/exp-official/taskographyv5tiny5bagslots5_Cerberus-sat/taskographyv5tiny5bagslots5_Cerberus-sat_test.py | taskography/3dscenegraph-dev | 2c261241230fbea1f1c687ff793478248f25c02c | [
"MIT"
] | null | null | null | scenegraph/exp-official/taskographyv5tiny5bagslots5_Cerberus-sat/taskographyv5tiny5bagslots5_Cerberus-sat_test.py | taskography/3dscenegraph-dev | 2c261241230fbea1f1c687ff793478248f25c02c | [
"MIT"
] | null | null | null | STATS = []
num_timeouts = 70
num_timeouts = 0
num_problems = 70
| 12.8 | 17 | 0.71875 | 10 | 64 | 4.3 | 0.6 | 0.511628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096154 | 0.1875 | 64 | 4 | 18 | 16 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ce2b34aa19c7ba0b50c31cbbbec7f1135c102f65 | 246 | py | Python | app/schema/token.py | VPPR/backend-2 | 454e037f67245cae102f17c902f0494013c94e82 | [
"MIT"
] | 1 | 2021-05-16T15:05:50.000Z | 2021-05-16T15:05:50.000Z | app/schema/token.py | VPPR/backend-2 | 454e037f67245cae102f17c902f0494013c94e82 | [
"MIT"
] | 6 | 2021-02-22T06:30:49.000Z | 2021-06-26T15:17:24.000Z | app/schema/token.py | VPPR/backend-2 | 454e037f67245cae102f17c902f0494013c94e82 | [
"MIT"
] | null | null | null | from datetime import datetime
from typing import Optional
from pydantic import BaseModel
class Token(BaseModel):
access_token: str
token_type: str
expiry: datetime
class TokenPayload(BaseModel):
subject: Optional[str] = None
| 16.4 | 33 | 0.756098 | 30 | 246 | 6.133333 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191057 | 246 | 14 | 34 | 17.571429 | 0.924623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ce2d577b0a810bc39cde5d60782b83af67fd02a2 | 6,548 | py | Python | temboo/core/Library/Disqus/Forums/ListThreads.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 7 | 2016-03-07T02:07:21.000Z | 2022-01-21T02:22:41.000Z | temboo/core/Library/Disqus/Forums/ListThreads.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | null | null | null | temboo/core/Library/Disqus/Forums/ListThreads.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 8 | 2016-06-14T06:01:11.000Z | 2020-04-22T09:21:44.000Z | # -*- coding: utf-8 -*-
###############################################################################
#
# ListThreads
# Retrieve a list of threads within a forum ordered by date of creation.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (the "Lic... | 45.79021 | 278 | 0.675626 | 822 | 6,548 | 5.305353 | 0.27129 | 0.018344 | 0.035772 | 0.044715 | 0.324925 | 0.189635 | 0.145609 | 0.024765 | 0.024765 | 0.024765 | 0 | 0.004082 | 0.214417 | 6,548 | 142 | 279 | 46.112676 | 0.843701 | 0.510843 | 0 | 0 | 0 | 0 | 0.057751 | 0.012918 | 0 | 0 | 0 | 0 | 0 | 1 | 0.408163 | false | 0 | 0.102041 | 0.102041 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ce3216e82dfe512fa34cdadb9b1fb2dcc6e68679 | 58 | py | Python | class_01_introduction/hello_world.py | Fikrahelhifzi/Python_Numerical_Method | 538713303d4493f32e447137ac2a707cbc2a146f | [
"MIT"
] | null | null | null | class_01_introduction/hello_world.py | Fikrahelhifzi/Python_Numerical_Method | 538713303d4493f32e447137ac2a707cbc2a146f | [
"MIT"
] | null | null | null | class_01_introduction/hello_world.py | Fikrahelhifzi/Python_Numerical_Method | 538713303d4493f32e447137ac2a707cbc2a146f | [
"MIT"
] | null | null | null | print("Hello world!")
a = 2 + 3.2
print(a)
print(type(a))
| 11.6 | 21 | 0.603448 | 12 | 58 | 2.916667 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061224 | 0.155172 | 58 | 4 | 22 | 14.5 | 0.653061 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
020acd03f1336d864b4fa1d60d677501d8ab10e4 | 377 | py | Python | words_of_letters/cli.py | sthagen/python-words_of_letters | 9618af6bf0581d55523143655efcd509a51a28e3 | [
"MIT"
] | 1 | 2020-08-15T18:32:32.000Z | 2020-08-15T18:32:32.000Z | words_of_letters/cli.py | sthagen/python-words_of_letters | 9618af6bf0581d55523143655efcd509a51a28e3 | [
"MIT"
] | 25 | 2020-08-15T18:25:50.000Z | 2020-08-18T17:46:28.000Z | words_of_letters/cli.py | sthagen/python-words_of_letters | 9618af6bf0581d55523143655efcd509a51a28e3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# pylint: disable=line-too-long
"""Add logical documentation here later TODO."""
import os
import sys
from words_of_letters.words_of_letters import solve
DEBUG = os.getenv("WOL_DEBUG")
# pylint: disable=expression-not-assigned
def main(argv=None):
"""Process ... TODO."""
argv = sys.a... | 22.176471 | 51 | 0.697613 | 56 | 377 | 4.607143 | 0.678571 | 0.100775 | 0.108527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006309 | 0.159151 | 377 | 16 | 52 | 23.5625 | 0.807571 | 0.405836 | 0 | 0 | 0 | 0 | 0.042654 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0224041b99e8bc12f9a566e494fc8a6c442dfcbf | 573 | py | Python | RR-BOT-OCR_2020-12-30_07-24-55.py | ClointFusion-Community/CFC-Projects | c6381738ade07e6e8979bbae37400ec2b4e626c5 | [
"MIT"
] | null | null | null | RR-BOT-OCR_2020-12-30_07-24-55.py | ClointFusion-Community/CFC-Projects | c6381738ade07e6e8979bbae37400ec2b4e626c5 | [
"MIT"
] | null | null | null | RR-BOT-OCR_2020-12-30_07-24-55.py | ClointFusion-Community/CFC-Projects | c6381738ade07e6e8979bbae37400ec2b4e626c5 | [
"MIT"
] | null | null | null | import ClointFusion as cf
cf.launch_any_exe_bat_application('search')
cf.key_write_enter('notepad',key='')
cf.key_write_enter('H',key='')
cf.key_press('shift')
cf.key_write_enter('Are',key='')
cf.key_press('alt+f4')
cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(img=str(r'C:\Users\mrmay\AppData\Local\Temp\... | 57.3 | 178 | 0.806283 | 108 | 573 | 3.944444 | 0.481481 | 0.058685 | 0.070423 | 0.105634 | 0.535211 | 0.535211 | 0.535211 | 0.535211 | 0.535211 | 0.535211 | 0 | 0.046346 | 0.020942 | 573 | 9 | 179 | 63.666667 | 0.713012 | 0 | 0 | 0 | 0 | 0.222222 | 0.378709 | 0.329843 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
02240c403d36a6354c865da8e03170eabbdb343d | 20,641 | py | Python | tests/unit/commands/_utils/test_options.py | aubelsb2/aws-sam-cli | 13e80fef8c9e53ec35a500ab0ae0ab873e22a56d | [
"BSD-2-Clause",
"Apache-2.0"
] | 2,959 | 2018-05-08T21:48:56.000Z | 2020-08-24T14:35:39.000Z | tests/unit/commands/_utils/test_options.py | aubelsb2/aws-sam-cli | 13e80fef8c9e53ec35a500ab0ae0ab873e22a56d | [
"BSD-2-Clause",
"Apache-2.0"
] | 1,469 | 2018-05-08T22:44:28.000Z | 2020-08-24T20:19:24.000Z | tests/unit/commands/_utils/test_options.py | aubelsb2/aws-sam-cli | 13e80fef8c9e53ec35a500ab0ae0ab873e22a56d | [
"BSD-2-Clause",
"Apache-2.0"
] | 642 | 2018-05-08T22:09:19.000Z | 2020-08-17T09:04:37.000Z | """
Test the common CLI options
"""
import os
from datetime import datetime
from unittest import TestCase
from unittest.mock import patch, MagicMock
import click
import pytest
from tomlkit import parse
from samcli.commands._utils.options import (
get_or_default_template_file_name,
_TEMPLATE_OPTION_DEFAULT_V... | 41.531187 | 120 | 0.670123 | 2,304 | 20,641 | 5.648872 | 0.087674 | 0.043796 | 0.038725 | 0.037956 | 0.795697 | 0.756512 | 0.710488 | 0.686823 | 0.67184 | 0.650173 | 0 | 0.008121 | 0.236374 | 20,641 | 496 | 121 | 41.614919 | 0.817599 | 0.043215 | 0 | 0.57598 | 0 | 0 | 0.098544 | 0.050921 | 0 | 0 | 0 | 0 | 0.110294 | 1 | 0.093137 | false | 0.002451 | 0.026961 | 0.009804 | 0.159314 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0234430e9a75c920d4946e9063938799564023f3 | 550 | py | Python | v_1/margules.py | kraanky/vle | 85271b7c7af7eb29eac3cc77186429ed25f2cdf6 | [
"MIT"
] | null | null | null | v_1/margules.py | kraanky/vle | 85271b7c7af7eb29eac3cc77186429ed25f2cdf6 | [
"MIT"
] | 2 | 2021-03-31T19:51:01.000Z | 2021-03-31T19:54:56.000Z | v_1/margules.py | kraanky/vle | 85271b7c7af7eb29eac3cc77186429ed25f2cdf6 | [
"MIT"
] | null | null | null | import numpy as np
import scipy.constants as constants
import numpy as np
import scipy.optimize as opt
from sklearn import metrics
class Margules:
def Ge(x, A):
return A * x * (1 - x)
def gamma1(x, A, T):
return np.exp(A * (1 - x) ** 2 / (constants.R * T))
def gamma2(x, A, T):
re... | 21.153846 | 77 | 0.62 | 98 | 550 | 3.387755 | 0.408163 | 0.024096 | 0.078313 | 0.090361 | 0.343373 | 0.343373 | 0.090361 | 0 | 0 | 0 | 0 | 0.041262 | 0.250909 | 550 | 25 | 78 | 22 | 0.764563 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.294118 | 0.235294 | 0.941176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
025b82f3dce98d4e86a0c401ce363638e40baad4 | 104 | py | Python | api/nivo_api/core/db/models/__init__.py | RemiDesgrange/nivo | e13dcd7c00d1fbc41c23d51c9004901d7704b498 | [
"MIT"
] | 2 | 2019-05-07T20:23:59.000Z | 2020-04-26T11:18:38.000Z | api/nivo_api/core/db/models/__init__.py | RemiDesgrange/nivo | e13dcd7c00d1fbc41c23d51c9004901d7704b498 | [
"MIT"
] | 89 | 2019-08-06T12:47:50.000Z | 2022-03-28T04:03:25.000Z | api/nivo_api/core/db/models/__init__.py | RemiDesgrange/nivo | e13dcd7c00d1fbc41c23d51c9004901d7704b498 | [
"MIT"
] | 1 | 2020-06-23T10:07:38.000Z | 2020-06-23T10:07:38.000Z | from nivo_api.core.db.models.sql.abstract_table import (
AbstractTable,
AbstractSpatialTable,
)
| 20.8 | 56 | 0.769231 | 12 | 104 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 104 | 4 | 57 | 26 | 0.876404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
025fede9d8c56dec8a92eaf5c2d234f6dd9b4225 | 2,126 | py | Python | rapoc/loaders/loader.py | ExObsSim/Rapoc-public | dd5a4af1e7ab531e8d3176026354719585752d58 | [
"BSD-3-Clause"
] | null | null | null | rapoc/loaders/loader.py | ExObsSim/Rapoc-public | dd5a4af1e7ab531e8d3176026354719585752d58 | [
"BSD-3-Clause"
] | null | null | null | rapoc/loaders/loader.py | ExObsSim/Rapoc-public | dd5a4af1e7ab531e8d3176026354719585752d58 | [
"BSD-3-Clause"
] | null | null | null | from abc import abstractmethod
class FileLoader:
'''
Base file loaders class.
'''
def __init__(self, filename):
'''
Parameters
----------
filename: str
data file name
'''
self.filename = filename
def read_content(self):
'''
... | 26.911392 | 95 | 0.648636 | 219 | 2,126 | 6 | 0.228311 | 0.106545 | 0.202435 | 0.218417 | 0.360731 | 0.331811 | 0.331811 | 0.289954 | 0.143836 | 0 | 0 | 0 | 0.285983 | 2,126 | 78 | 96 | 27.25641 | 0.865613 | 0.220132 | 0 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.026316 | 0 | 0.342105 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0268f441de4a7f8807db8ed057f94bf661a1467a | 185 | py | Python | src/moderation/apps.py | hohner36/hexchan-engine | 8edf155e8fe64936dfe428a6e9bac69705934b1f | [
"MIT"
] | 2 | 2021-04-16T10:11:18.000Z | 2022-03-15T15:16:14.000Z | src/moderation/apps.py | hohner36/hexchan-engine | 8edf155e8fe64936dfe428a6e9bac69705934b1f | [
"MIT"
] | 2 | 2019-09-02T18:39:51.000Z | 2019-09-02T18:43:34.000Z | src/moderation/apps.py | hohner36/hexchan-engine | 8edf155e8fe64936dfe428a6e9bac69705934b1f | [
"MIT"
] | 2 | 2019-09-02T18:37:25.000Z | 2022-02-20T19:19:40.000Z | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class ModerationConfig(AppConfig):
name = 'moderation'
verbose_name = _('Moderation')
| 23.125 | 54 | 0.772973 | 21 | 185 | 6.619048 | 0.714286 | 0.143885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151351 | 185 | 7 | 55 | 26.428571 | 0.88535 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
028063b9e5041ef565ddf74bdaaad9ccfe6fd420 | 85 | py | Python | 03_For/Step02/yj.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | null | null | null | 03_For/Step02/yj.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | 3 | 2020-11-04T05:38:53.000Z | 2021-03-02T02:15:19.000Z | 03_For/Step02/yj.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | null | null | null | a = int(input())
for i in range(a):
b,c = map(int,input().split())
print(b+c) | 21.25 | 34 | 0.541176 | 17 | 85 | 2.705882 | 0.705882 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211765 | 85 | 4 | 35 | 21.25 | 0.686567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
65f1dfe8558d1cea60f5733fbfcf0979593d3ce6 | 165 | py | Python | python/python-exercises/ex005.py | viniciusFerreira22515/curso-em-video | cbe50f7df6b475d2f204c8aa2686323f44da6363 | [
"MIT"
] | null | null | null | python/python-exercises/ex005.py | viniciusFerreira22515/curso-em-video | cbe50f7df6b475d2f204c8aa2686323f44da6363 | [
"MIT"
] | null | null | null | python/python-exercises/ex005.py | viniciusFerreira22515/curso-em-video | cbe50f7df6b475d2f204c8aa2686323f44da6363 | [
"MIT"
] | null | null | null | print('{}Desafio 005{}'.format('=' * 5, '=' * 5))
n = int(input('Digite um número: '))
#a = n - 1
#s = n + 1
print('Sucessor: {}\nAntecessor: {}'.format(n+1, n-1))
| 23.571429 | 54 | 0.521212 | 26 | 165 | 3.307692 | 0.615385 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065693 | 0.169697 | 165 | 6 | 55 | 27.5 | 0.562044 | 0.109091 | 0 | 0 | 0 | 0 | 0.4375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
5a00eaeacb7f127be85cfa49f6c17f6494d4fcb3 | 1,285 | py | Python | READ/user/models.py | DongWookK/READ_v2 | f67c47a07653619b10478bf223eee5991ddf04a6 | [
"Apache-2.0"
] | 4 | 2019-10-20T14:24:50.000Z | 2020-11-16T14:48:11.000Z | READ/user/models.py | DongWookK/READ_v2 | f67c47a07653619b10478bf223eee5991ddf04a6 | [
"Apache-2.0"
] | 3 | 2019-12-05T01:11:22.000Z | 2020-06-26T05:21:34.000Z | READ/user/models.py | DongWookK/READ_v2 | f67c47a07653619b10478bf223eee5991ddf04a6 | [
"Apache-2.0"
] | 2 | 2020-05-20T12:07:51.000Z | 2022-03-31T07:06:32.000Z | from django.db import models
class READ_User(models.Model):
user_id = models.CharField(max_length=128, verbose_name="아이디")
password = models.CharField(max_length=128, verbose_name="비밀번호")
name = models.CharField(max_length=15, verbose_name="이름")
gender = models.CharField(max_length=1, verbose_name="성별"... | 42.833333 | 83 | 0.529961 | 141 | 1,285 | 4.617021 | 0.48227 | 0.168971 | 0.221198 | 0.294931 | 0.327189 | 0.230415 | 0.230415 | 0 | 0 | 0 | 0 | 0.020556 | 0.35642 | 1,285 | 30 | 84 | 42.833333 | 0.766626 | 0.042802 | 0 | 0.153846 | 0 | 0 | 0.05542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.038462 | 0.038462 | 0.038462 | 0.576923 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5a102c47637122d2fc750c0391381dd5df781ccf | 1,593 | py | Python | src/pactor/nodes_blocks.py | kstrempel/pactor | bc12dd6253bec7c08f691697108dcabd2a1c0e00 | [
"MIT"
] | 1 | 2021-03-19T21:36:35.000Z | 2021-03-19T21:36:35.000Z | src/pactor/nodes_blocks.py | kstrempel/pactor | bc12dd6253bec7c08f691697108dcabd2a1c0e00 | [
"MIT"
] | null | null | null | src/pactor/nodes_blocks.py | kstrempel/pactor | bc12dd6253bec7c08f691697108dcabd2a1c0e00 | [
"MIT"
] | null | null | null | from pactor.vm import VM
from pactor.node_parent import AstNode
class QuoteNode(AstNode):
def __init__(self, ast, ctx):
super().__init__(ctx)
self.__ast = ast
def __repr__(self):
return '[' + " ".join([str(e) for e in self.__ast.nodes]) + ']'
@property
def ast(self):
return self.__ast
def ru... | 23.776119 | 67 | 0.641557 | 223 | 1,593 | 4.134529 | 0.197309 | 0.086768 | 0.075922 | 0.065076 | 0.305857 | 0.119306 | 0.101952 | 0.101952 | 0.101952 | 0.101952 | 0 | 0.00163 | 0.229755 | 1,593 | 66 | 68 | 24.136364 | 0.749796 | 0 | 0 | 0.418182 | 0 | 0 | 0.008161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.309091 | false | 0 | 0.036364 | 0.145455 | 0.581818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5a20f0d5323f0d7839ee7287bc7c7383ddecdc03 | 24,966 | py | Python | stgelpDL/predictor/control.py | dmitryv56/stgelpDP | 5dcdf6720211ad9d2a26f6bea122962d4b42c3eb | [
"MIT"
] | null | null | null | stgelpDL/predictor/control.py | dmitryv56/stgelpDP | 5dcdf6720211ad9d2a26f6bea122962d4b42c3eb | [
"MIT"
] | null | null | null | stgelpDL/predictor/control.py | dmitryv56/stgelpDP | 5dcdf6720211ad9d2a26f6bea122962d4b42c3eb | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
r"""
This module used for allow the Control Plane functionality. It creates the ControlPlane object, checks a mode real time
or static. The members of ControlPlane class are set according by the mode.
In static modes like as "training" or "predicting" will able to use Training Plane or Predic... | 31.285714 | 120 | 0.648522 | 3,245 | 24,966 | 4.632974 | 0.119569 | 0.05002 | 0.034389 | 0.046894 | 0.307969 | 0.170879 | 0.074764 | 0.041373 | 0.034721 | 0.025143 | 0 | 0.008435 | 0.268725 | 24,966 | 797 | 121 | 31.324969 | 0.81503 | 0.111031 | 0 | 0.091633 | 0 | 0 | 0.051357 | 0.011874 | 0 | 0 | 0 | 0 | 0 | 1 | 0.23506 | false | 0.00996 | 0.021912 | 0.105578 | 0.59761 | 0.001992 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5a2100f468d6702cf9e7a48be69b12db23a91b7f | 236 | py | Python | src/main/resources/sample/python/MolecSet.py | puffproject/test-runner | 29214524fa8cc3bdddf6ffeaa218dab1f6b29f80 | [
"MIT"
] | 3 | 2021-01-05T22:11:16.000Z | 2021-05-02T00:30:26.000Z | src/main/resources/sample/python/MolecSet.py | puffproject/test-runner | 29214524fa8cc3bdddf6ffeaa218dab1f6b29f80 | [
"MIT"
] | 23 | 2021-05-09T23:58:33.000Z | 2021-12-23T21:44:25.000Z | src/main/resources/sample/python/MolecSet.py | puffproject/test-runner | 29214524fa8cc3bdddf6ffeaa218dab1f6b29f80 | [
"MIT"
] | 1 | 2021-05-04T18:25:08.000Z | 2021-05-04T18:25:08.000Z | ## @file MolecSet.py
# @author Benjamin Kostiuk
# @brief Module that defines the MolecSet ADT
# @date 02/01/2020
from Set import Set
## @brief An abstract data type that represents a Set of MoleculeT
class MolecSet(Set):
pass
| 19.666667 | 66 | 0.724576 | 36 | 236 | 4.75 | 0.805556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042328 | 0.199153 | 236 | 11 | 67 | 21.454545 | 0.862434 | 0.720339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
5a22fd24399f7845fd13a54d1667b4f15b160fc4 | 11,976 | py | Python | unittests/test_helpers.py | stepanandr/taf | 75cb85861f8e9703bab7dc6195f3926b8394e3d0 | [
"Apache-2.0"
] | 10 | 2016-12-16T00:05:58.000Z | 2018-10-30T17:48:25.000Z | unittests/test_helpers.py | stepanandr/taf | 75cb85861f8e9703bab7dc6195f3926b8394e3d0 | [
"Apache-2.0"
] | 40 | 2017-01-04T23:07:05.000Z | 2018-04-16T19:52:02.000Z | unittests/test_helpers.py | stepanandr/taf | 75cb85861f8e9703bab7dc6195f3926b8394e3d0 | [
"Apache-2.0"
] | 23 | 2016-12-30T05:03:53.000Z | 2020-04-01T08:40:24.000Z | # Copyright (c) 2011 - 2017, Intel Corporation.
#
# 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 agre... | 37.308411 | 125 | 0.652305 | 1,619 | 11,976 | 4.615195 | 0.110562 | 0.027436 | 0.047778 | 0.040685 | 0.80166 | 0.775294 | 0.742639 | 0.693121 | 0.634368 | 0.558485 | 0 | 0.052293 | 0.195224 | 11,976 | 320 | 126 | 37.425 | 0.722972 | 0.051937 | 0 | 0.441176 | 0 | 0 | 0.180166 | 0 | 0 | 0 | 0 | 0 | 0.289216 | 1 | 0.127451 | false | 0 | 0.019608 | 0 | 0.181373 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5a2e931f2342573d9307703c10694ea2524e9d03 | 734 | py | Python | bmtrain/lr_scheduler/cosine.py | zh-zheng/BMTrain | 256b0835af8f2da6014ad0ebfcc22acc01a6f8ec | [
"Apache-2.0"
] | 19 | 2022-03-14T12:30:23.000Z | 2022-03-31T11:52:29.000Z | bmtrain/lr_scheduler/cosine.py | zh-zheng/BMTrain | 256b0835af8f2da6014ad0ebfcc22acc01a6f8ec | [
"Apache-2.0"
] | 1 | 2022-03-24T02:11:32.000Z | 2022-03-24T02:14:17.000Z | bmtrain/lr_scheduler/cosine.py | zh-zheng/BMTrain | 256b0835af8f2da6014ad0ebfcc22acc01a6f8ec | [
"Apache-2.0"
] | 5 | 2022-03-18T02:03:02.000Z | 2022-03-29T13:19:09.000Z | import math
from .warmup import WarmupLRScheduler
class Cosine(WarmupLRScheduler):
r"""
After a warmup period during which learning rate increases linearly between 0 and the start_lr,
The decay period performs :math:`\text{lr}=\text{start_lr}\times \dfrac{1+\cos \left( \pi \cdot \dfrac{\text{num_i... | 45.875 | 194 | 0.682561 | 113 | 734 | 4.256637 | 0.40708 | 0.072765 | 0.087318 | 0.112266 | 0.087318 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016584 | 0.178474 | 734 | 15 | 195 | 48.933333 | 0.781095 | 0.384196 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5a36e814bb343d5ef5ca6e3c9f6ff36e7e56e436 | 124 | py | Python | tests/urls.py | knyghty/django-html5-colorfield | f921791dbfbc0f776d2dc339c19492e710d3b44c | [
"MIT"
] | 4 | 2015-03-26T18:26:03.000Z | 2017-05-04T06:39:28.000Z | tests/urls.py | knyghty/django-html5-colorfield | f921791dbfbc0f776d2dc339c19492e710d3b44c | [
"MIT"
] | null | null | null | tests/urls.py | knyghty/django-html5-colorfield | f921791dbfbc0f776d2dc339c19492e710d3b44c | [
"MIT"
] | null | null | null | from django.urls import path
from .views import DuckCreateView
urlpatterns = [
path("", DuckCreateView.as_view()),
]
| 13.777778 | 39 | 0.717742 | 14 | 124 | 6.285714 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169355 | 124 | 8 | 40 | 15.5 | 0.854369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5a5d9467a8b32289579ec4f6820a8f4cb003ad87 | 2,905 | py | Python | aliyun-python-sdk-edas/aliyunsdkedas/request/v20170801/CreateEnvHsfTrafficControlRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 1,001 | 2015-07-24T01:32:41.000Z | 2022-03-25T01:28:18.000Z | aliyun-python-sdk-edas/aliyunsdkedas/request/v20170801/CreateEnvHsfTrafficControlRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 363 | 2015-10-20T03:15:00.000Z | 2022-03-08T12:26:19.000Z | aliyun-python-sdk-edas/aliyunsdkedas/request/v20170801/CreateEnvHsfTrafficControlRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 682 | 2015-09-22T07:19:02.000Z | 2022-03-22T09:51:46.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 33.390805 | 87 | 0.76179 | 383 | 2,905 | 5.582245 | 0.321149 | 0.084191 | 0.058934 | 0.071562 | 0.126286 | 0.126286 | 0.126286 | 0 | 0 | 0 | 0 | 0.005165 | 0.133563 | 2,905 | 87 | 88 | 33.390805 | 0.844259 | 0.259553 | 0 | 0 | 0 | 0 | 0.155031 | 0.029851 | 0 | 0 | 0 | 0 | 0 | 1 | 0.404255 | false | 0 | 0.042553 | 0.191489 | 0.659574 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5a6f00ba38263b669fdece5c20c42e36d7002537 | 222 | py | Python | Latest/venv/Lib/site-packages/pyface/tasks/advanced_editor_area_pane.py | adamcvj/SatelliteTracker | 49a8f26804422fdad6f330a5548e9f283d84a55d | [
"Apache-2.0"
] | 1 | 2022-01-09T20:04:31.000Z | 2022-01-09T20:04:31.000Z | Latest/venv/Lib/site-packages/pyface/tasks/advanced_editor_area_pane.py | adamcvj/SatelliteTracker | 49a8f26804422fdad6f330a5548e9f283d84a55d | [
"Apache-2.0"
] | 1 | 2022-02-15T12:01:57.000Z | 2022-03-24T19:48:47.000Z | Latest/venv/Lib/site-packages/pyface/tasks/advanced_editor_area_pane.py | adamcvj/SatelliteTracker | 49a8f26804422fdad6f330a5548e9f283d84a55d | [
"Apache-2.0"
] | null | null | null | # Import the toolkit specific version.
from pyface.toolkit import toolkit_object
AdvancedEditorAreaPane = toolkit_object('tasks.advanced_editor_area_pane:'
'AdvancedEditorAreaPane')
| 44.4 | 74 | 0.702703 | 20 | 222 | 7.55 | 0.7 | 0.172185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243243 | 222 | 4 | 75 | 55.5 | 0.89881 | 0.162162 | 0 | 0 | 0 | 0 | 0.293478 | 0.293478 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5a757dac9cd7a61791ec1885ab02165411c60584 | 124 | py | Python | lazyblacksmith/extension/database.py | Asra/LazyBlacksmith | a34f63213f303a60eb1c8f68bc3ad03f8bb67a7f | [
"BSD-3-Clause"
] | 49 | 2016-10-24T13:51:56.000Z | 2022-02-18T06:07:47.000Z | lazyblacksmith/extension/database.py | Asra/LazyBlacksmith | a34f63213f303a60eb1c8f68bc3ad03f8bb67a7f | [
"BSD-3-Clause"
] | 84 | 2015-04-29T10:24:51.000Z | 2022-02-17T19:18:01.000Z | lazyblacksmith/extension/database.py | Asra/LazyBlacksmith | a34f63213f303a60eb1c8f68bc3ad03f8bb67a7f | [
"BSD-3-Clause"
] | 34 | 2017-01-23T13:19:17.000Z | 2022-02-02T17:32:08.000Z | # -*- encoding: utf-8 -*-
""" Declare the SQLAlchemy database """
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy() | 24.8 | 39 | 0.709677 | 14 | 124 | 6.214286 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.145161 | 124 | 5 | 40 | 24.8 | 0.811321 | 0.459677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5a85ddd75acc7a942be4ea624e4a307bc1282295 | 117 | py | Python | docs/setup.py | setminami/TableReconstructor | 6c773c990eb663dc2f6d212549b9fcff97b1d3fa | [
"MIT"
] | null | null | null | docs/setup.py | setminami/TableReconstructor | 6c773c990eb663dc2f6d212549b9fcff97b1d3fa | [
"MIT"
] | 21 | 2017-12-31T07:18:52.000Z | 2018-01-06T15:25:47.000Z | docs/setup.py | setminami/Jsonica | 6c773c990eb663dc2f6d212549b9fcff97b1d3fa | [
"MIT"
] | 2 | 2018-01-06T17:28:54.000Z | 2018-01-20T11:48:45.000Z | import setuptools
# for readthedocs
setuptools.setup(
name='jsonica',
packages=setuptools.find_packages(),
)
| 16.714286 | 40 | 0.74359 | 12 | 117 | 7.166667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145299 | 117 | 6 | 41 | 19.5 | 0.86 | 0.128205 | 0 | 0 | 0 | 0 | 0.07 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ce471a5eea29273282aae3026eaeaff965c69a52 | 517 | py | Python | raven/transport/exceptions.py | ascan-io/raven-python | 5b3f48c66269993a0202cfc988750e5fe66e0c00 | [
"BSD-3-Clause"
] | 1,108 | 2015-01-02T01:20:00.000Z | 2022-03-09T02:22:40.000Z | raven/transport/exceptions.py | nvllsvm/raven-python | c4403f21973138cd20cf9c005da4fb934836d76e | [
"BSD-3-Clause"
] | 698 | 2015-01-04T11:12:57.000Z | 2022-01-22T08:07:51.000Z | venv/lib/python3.7/site-packages/raven/transport/exceptions.py | emreatadl/atadil-personal-blog | 88c7be19d6a27b39fd86ff3d9c34b11443291e0e | [
"MIT"
] | 486 | 2015-01-04T09:00:33.000Z | 2022-03-09T02:37:18.000Z | """
raven.transport.exceptions
~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
class InvalidScheme(ValueError):
"""
Raised when a transport is constructed using a URI... | 22.478261 | 75 | 0.682785 | 63 | 517 | 5.52381 | 0.68254 | 0.028736 | 0.08046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.195358 | 517 | 22 | 76 | 23.5 | 0.817308 | 0.676983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ce5009140c9839e050e80cc53e62d2e020627402 | 195 | py | Python | chatbot/admin/controllers/index.py | hysakhr/flask_chatbot | 74852d522de0c7f28e25b47c8ad8aa47159f0d58 | [
"MIT"
] | 1 | 2020-12-01T03:04:27.000Z | 2020-12-01T03:04:27.000Z | chatbot/admin/controllers/index.py | hysakhr/flask_chatbot | 74852d522de0c7f28e25b47c8ad8aa47159f0d58 | [
"MIT"
] | 4 | 2020-09-25T19:47:06.000Z | 2022-02-10T00:23:15.000Z | chatbot/admin/controllers/index.py | hysakhr/flask_chatbot | 74852d522de0c7f28e25b47c8ad8aa47159f0d58 | [
"MIT"
] | 1 | 2022-03-06T05:36:19.000Z | 2022-03-06T05:36:19.000Z | from flask import (
Blueprint, request, render_template
)
bp = Blueprint('admin', __name__, url_prefix='/admin')
@bp.route('/')
def index():
return render_template('admin/index.html')
| 17.727273 | 54 | 0.692308 | 24 | 195 | 5.333333 | 0.708333 | 0.21875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148718 | 195 | 10 | 55 | 19.5 | 0.771084 | 0 | 0 | 0 | 0 | 0 | 0.14359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 0.285714 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
ce5e7b84ed9547ee1a47ee56fac2a7b905aaf301 | 137 | py | Python | useraccounts/__init__.py | glomium/cmstemplate | 6d51a6d97cf5a132e41ea6d2404bdfedf9edf25c | [
"BSD-3-Clause"
] | null | null | null | useraccounts/__init__.py | glomium/cmstemplate | 6d51a6d97cf5a132e41ea6d2404bdfedf9edf25c | [
"BSD-3-Clause"
] | null | null | null | useraccounts/__init__.py | glomium/cmstemplate | 6d51a6d97cf5a132e41ea6d2404bdfedf9edf25c | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# ex:set fileencoding=utf-8:
from __future__ import unicode_literals
default_app_config = 'useraccounts.apps.Config'
| 19.571429 | 47 | 0.79562 | 19 | 137 | 5.368421 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008065 | 0.094891 | 137 | 6 | 48 | 22.833333 | 0.814516 | 0.313869 | 0 | 0 | 0 | 0 | 0.26087 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ce60bacdc38fc2a1d9b7b0b64c34caf913f253b3 | 1,780 | py | Python | src/helm_dhm/features/test/conftest.py | SteffenMauceri/OWLS-Autonomy | e676282a87e17030887b0174f3b8b38aab170d15 | [
"RSA-MD"
] | null | null | null | src/helm_dhm/features/test/conftest.py | SteffenMauceri/OWLS-Autonomy | e676282a87e17030887b0174f3b8b38aab170d15 | [
"RSA-MD"
] | null | null | null | src/helm_dhm/features/test/conftest.py | SteffenMauceri/OWLS-Autonomy | e676282a87e17030887b0174f3b8b38aab170d15 | [
"RSA-MD"
] | null | null | null | from helm_dhm.features import features
import pandas as pd
import pytest
import os
import json
def read_json_as_dict(file_name: str):
with open(file_name, 'r') as f:
return json.load(f)
TRACK_FEATURES_PATH = os.path.join(os.path.dirname(__file__), 'data', 'data_track_features.csv')
@pytest.fixture
def d... | 28.709677 | 119 | 0.724719 | 262 | 1,780 | 4.507634 | 0.255725 | 0.091448 | 0.076207 | 0.091448 | 0.470787 | 0.421677 | 0.323455 | 0.323455 | 0.218459 | 0.218459 | 0 | 0.023731 | 0.147753 | 1,780 | 61 | 120 | 29.180328 | 0.754779 | 0 | 0 | 0.268293 | 0 | 0 | 0.161798 | 0.11236 | 0 | 0 | 0 | 0 | 0 | 1 | 0.243902 | false | 0 | 0.121951 | 0.170732 | 0.609756 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ce753d957009a4f2075b77db107ec8bdc6bbb4f4 | 40 | py | Python | elocli/__init__.py | bradleycwojcik/elo-cli | c04a3e534abea5303e2669106e5e5d4cfb7a3265 | [
"MIT"
] | null | null | null | elocli/__init__.py | bradleycwojcik/elo-cli | c04a3e534abea5303e2669106e5e5d4cfb7a3265 | [
"MIT"
] | 13 | 2021-10-21T19:59:49.000Z | 2021-11-20T20:44:00.000Z | elocli/__init__.py | bradleycwojcik/elo-cli | c04a3e534abea5303e2669106e5e5d4cfb7a3265 | [
"MIT"
] | null | null | null | # release version
version = '0.0.1.dev1' | 20 | 22 | 0.7 | 7 | 40 | 4 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 0.125 | 40 | 2 | 22 | 20 | 0.685714 | 0.375 | 0 | 0 | 0 | 0 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ce77070370d7346825a6241594993ea7fc218e02 | 273 | py | Python | dcoding_1d/admin.py | zsazn/dcoding | 8c2d1b95d2adc7a2f076b1a831173c81eccdb259 | [
"MIT"
] | null | null | null | dcoding_1d/admin.py | zsazn/dcoding | 8c2d1b95d2adc7a2f076b1a831173c81eccdb259 | [
"MIT"
] | null | null | null | dcoding_1d/admin.py | zsazn/dcoding | 8c2d1b95d2adc7a2f076b1a831173c81eccdb259 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Author: Zheng Zhou
# Date: 3/8/2018
from __future__ import unicode_literals
from django.contrib import admin
from dcoding_1d.models import Question, Answer
# Register your models here.
admin.site.register(Question)
admin.site.register(Answer)
| 19.5 | 46 | 0.765568 | 39 | 273 | 5.205128 | 0.666667 | 0.08867 | 0.167488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033755 | 0.131868 | 273 | 13 | 47 | 21 | 0.822785 | 0.300366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ce7e603cb2457dc3cdc273c47759e217fae6d5fe | 1,312 | py | Python | src/schemas/UserSchema.py | petelah/insta-sign | e77a669e001c088f24ba5d84f9789dd4fef9713e | [
"MIT"
] | 4 | 2020-12-12T04:41:50.000Z | 2021-01-16T03:43:32.000Z | src/schemas/UserSchema.py | petelah/insta-sign | e77a669e001c088f24ba5d84f9789dd4fef9713e | [
"MIT"
] | null | null | null | src/schemas/UserSchema.py | petelah/insta-sign | e77a669e001c088f24ba5d84f9789dd4fef9713e | [
"MIT"
] | 1 | 2021-01-10T21:46:18.000Z | 2021-01-10T21:46:18.000Z | from src import ma
from src.models import User
from marshmallow.validate import Length, Email
class UserSchema(ma.SQLAlchemyAutoSchema):
class Meta:
model = User
load_only = [
"f_name",
"l_name",
"email",
"state",
"post_code",
... | 28.521739 | 71 | 0.625762 | 156 | 1,312 | 5.173077 | 0.262821 | 0.099133 | 0.198265 | 0.247831 | 0.698885 | 0.698885 | 0.698885 | 0.698885 | 0.579926 | 0.579926 | 0 | 0.01001 | 0.238567 | 1,312 | 45 | 72 | 29.155556 | 0.797798 | 0 | 0 | 0.514286 | 0 | 0 | 0.046494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.114286 | 0.085714 | 0 | 0.485714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ce8a3c1ee9bcb1cf799609083a266579851e3eae | 333 | py | Python | tests/test_random_search.py | BioroboticsLab/diktyo | 1a81dc36005c4b44021fa69285f25fc0229115b8 | [
"Apache-2.0"
] | 3 | 2016-03-19T15:59:30.000Z | 2016-05-25T12:11:25.000Z | tests/test_random_search.py | BioroboticsLab/diktyo | 1a81dc36005c4b44021fa69285f25fc0229115b8 | [
"Apache-2.0"
] | 2 | 2016-08-11T15:27:35.000Z | 2017-04-26T10:05:42.000Z | tests/test_random_search.py | BioroboticsLab/diktyo | 1a81dc36005c4b44021fa69285f25fc0229115b8 | [
"Apache-2.0"
] | 1 | 2016-12-29T04:33:47.000Z | 2016-12-29T04:33:47.000Z | from diktya.random_search import fmin
import numpy as np
def quadratic_function(x):
return (x - 2) ** 2
def space_function():
return np.random.uniform(-2, 4)
def test_fmin():
results = fmin(quadratic_function, space_function, n=50, verbose=1)
val, space = results[0]
print(val, space)
asser... | 18.5 | 71 | 0.675676 | 51 | 333 | 4.294118 | 0.54902 | 0.155251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037879 | 0.207207 | 333 | 17 | 72 | 19.588235 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.272727 | false | 0 | 0.181818 | 0.181818 | 0.636364 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ce8d60c1643d095f463a66afa8c41cd2f1979911 | 933 | py | Python | setup_old.py | srujandeshpande/pipmate | 915572fa6f55be2da6cb06afee9d146a9bfa5f84 | [
"MIT"
] | null | null | null | setup_old.py | srujandeshpande/pipmate | 915572fa6f55be2da6cb06afee9d146a9bfa5f84 | [
"MIT"
] | null | null | null | setup_old.py | srujandeshpande/pipmate | 915572fa6f55be2da6cb06afee9d146a9bfa5f84 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name = 'pipmate',
packages = ['src/pipmate'],
version = '0.1.1-alpha.0',
license='MIT',
description = 'Move between pipfiles, pyproject.toml and requirements.txt with ease!',
author = 'Srujan Deshpande',
author_email = 'srujan.deshpande@gmail.com',
url = 'https://... | 33.321429 | 88 | 0.642015 | 102 | 933 | 5.843137 | 0.647059 | 0.127517 | 0.167785 | 0.174497 | 0.130872 | 0.130872 | 0 | 0 | 0 | 0 | 0 | 0.019973 | 0.19507 | 933 | 27 | 89 | 34.555556 | 0.773635 | 0 | 0 | 0.074074 | 0 | 0 | 0.610932 | 0.027867 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.037037 | 0 | 0.037037 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ce9fa8e09384fefe39c0e6c8767b6a41203bd96b | 514 | py | Python | aoc/day05/field.py | hron/advent-of-code-2021 | 6be8cfb88595d35a7865f8faf734f8efd9c28543 | [
"MIT"
] | null | null | null | aoc/day05/field.py | hron/advent-of-code-2021 | 6be8cfb88595d35a7865f8faf734f8efd9c28543 | [
"MIT"
] | null | null | null | aoc/day05/field.py | hron/advent-of-code-2021 | 6be8cfb88595d35a7865f8faf734f8efd9c28543 | [
"MIT"
] | null | null | null | from aoc.day05.line import Line
class Field:
def __init__(self, size_x: int, size_y: int):
self.field = [
[0 for y in range(size_y + 1)]
for _ in range(size_x + 1)
]
def draw_line(self, line: Line):
for p in line.points():
self.field[p.x][p.y] += 1
... | 22.347826 | 49 | 0.548638 | 83 | 514 | 3.216867 | 0.337349 | 0.168539 | 0.074906 | 0.127341 | 0.164794 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020115 | 0.322957 | 514 | 22 | 50 | 23.363636 | 0.747126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.0625 | 0.1875 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
cea3810cad55a14f45aac92e8223142b336aaeb0 | 468 | py | Python | onem/__init__.py | mvnm/onem-py | c3719cc1b5ca605d4cd6e99e5659f857942204a3 | [
"Apache-2.0"
] | null | null | null | onem/__init__.py | mvnm/onem-py | c3719cc1b5ca605d4cd6e99e5659f857942204a3 | [
"Apache-2.0"
] | null | null | null | onem/__init__.py | mvnm/onem-py | c3719cc1b5ca605d4cd6e99e5659f857942204a3 | [
"Apache-2.0"
] | null | null | null | import json
from . import menus, forms
class Response(object):
def __init__(self, obj):
"""
:param obj: a Menu of Form instance
"""
assert isinstance(obj, (menus.Menu, forms.Form))
self.object = obj
def as_data(self):
return {
'content_type': self... | 20.347826 | 58 | 0.557692 | 57 | 468 | 4.403509 | 0.45614 | 0.095618 | 0.095618 | 0.12749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.314103 | 468 | 22 | 59 | 21.272727 | 0.781931 | 0.074786 | 0 | 0 | 0 | 0 | 0.056235 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.230769 | false | 0 | 0.153846 | 0.153846 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
cec9c74ac333e897a5e574ba2f7252e260061789 | 134 | py | Python | pygdsm/plot_utils.py | telegraphic/pygdsm | 6c7fc4af75de13cbf76908e99c31d93ba5bd639b | [
"MIT"
] | 15 | 2020-07-27T06:46:08.000Z | 2022-03-24T01:48:19.000Z | pygdsm/plot_utils.py | telegraphic/pygdsm | 6c7fc4af75de13cbf76908e99c31d93ba5bd639b | [
"MIT"
] | 5 | 2020-07-06T14:07:54.000Z | 2022-03-30T12:31:14.000Z | pygdsm/plot_utils.py | telegraphic/pygdsm | 6c7fc4af75de13cbf76908e99c31d93ba5bd639b | [
"MIT"
] | 4 | 2020-07-16T01:56:33.000Z | 2021-11-27T11:24:31.000Z | def show_plt(): # pragma: no cover
try:
plt.show() # noqa: F821
except:
import pylab as plt
plt.show() | 22.333333 | 34 | 0.529851 | 18 | 134 | 3.888889 | 0.722222 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034884 | 0.358209 | 134 | 6 | 35 | 22.333333 | 0.77907 | 0.201493 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.166667 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cedf595191daadaeb4e9ebb7c13db9491f03ff0a | 250 | py | Python | src/util/pickle_rick.py | marc1404/quora-question-pairs | f38acbf0c4a673ced1101b250d4b4837910eb2a2 | [
"MIT"
] | 2 | 2017-11-24T12:15:56.000Z | 2018-07-12T11:13:35.000Z | src/util/pickle_rick.py | marc1404/quora-question-pairs | f38acbf0c4a673ced1101b250d4b4837910eb2a2 | [
"MIT"
] | null | null | null | src/util/pickle_rick.py | marc1404/quora-question-pairs | f38acbf0c4a673ced1101b250d4b4837910eb2a2 | [
"MIT"
] | null | null | null | import pickle
def dump(object, file_path):
file = open(file_path, 'wb')
pickle.dump(object, file)
file.close()
def load(file_path):
file = open(file_path, 'rb')
object = pickle.load(file)
file.close()
return object
| 13.888889 | 32 | 0.632 | 35 | 250 | 4.4 | 0.371429 | 0.207792 | 0.181818 | 0.207792 | 0.311688 | 0.311688 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236 | 250 | 17 | 33 | 14.705882 | 0.806283 | 0 | 0 | 0.2 | 0 | 0 | 0.016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0c8fdc5cecb9fea6c419bbedeb8d6e3049c24701 | 177 | py | Python | mypackage/__init__.py | cliffwhitworth/mypackage | b6533dd164db7cb64e741fcb4355e900fd28ddde | [
"MIT"
] | null | null | null | mypackage/__init__.py | cliffwhitworth/mypackage | b6533dd164db7cb64e741fcb4355e900fd28ddde | [
"MIT"
] | null | null | null | mypackage/__init__.py | cliffwhitworth/mypackage | b6533dd164db7cb64e741fcb4355e900fd28ddde | [
"MIT"
] | null | null | null | from pathlib import Path
import mypackage
PACKAGE_ROOT = Path(mypackage.__file__).resolve().parent
with open(PACKAGE_ROOT / 'VERSION') as f:
__version__ = f.read().strip() | 25.285714 | 56 | 0.751412 | 24 | 177 | 5.125 | 0.708333 | 0.178862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129944 | 177 | 7 | 57 | 25.285714 | 0.798701 | 0 | 0 | 0 | 0 | 0 | 0.039326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.